/* PaloSpring terminal styles, loaded only on home and PaloSpring pages. */
.ps-tui {
    background: #1e1e1d;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'SF Mono C', 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    width: 100%;
    color: #EFEFE8;
    display: flex;
    flex-direction: column;
    height: clamp(360px, 43vw, 540px);
    min-height: 360px;
    max-height: 540px;
    min-width: 0;
}

.ps-tui-topbar {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: #242424;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
    gap: 0.45rem;
}

.ps-tui-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.ps-tui-dot--close { background: #e05c5c; }
.ps-tui-dot--minimize { background: #e5a835; }
.ps-tui-dot--maximize { background: #57e389; }
.ps-tui-topbar-spacer { flex: 1; min-width: 0.5rem; }

.ps-terminal-label {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #EFEFE8;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.ps-tui-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ps-tui-left {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0.85rem 1rem 0.55rem;
}

.ps-demo-root {
    width: 100%;
    min-width: 0;
}

.ps-terminal-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: text;
}

.ps-terminal-screen .xterm { height: 100%; }
.ps-terminal-screen .xterm-viewport { overflow-y: auto !important; }
.ps-terminal-screen .xterm-screen { display: block; }

/* The current terminal design has no bottom status strip. */
.ps-terminal-statusbar {
    display: none;
}

@media (max-width: 1023px) {
    .ps-tui,
    .ps-demo-root {
        height: 420px;
        min-height: 320px;
        max-height: 420px;
    }
}
