:root {
    color-scheme: dark;
    --bg: #050607;
    --panel: rgba(10, 12, 14, 0.92);
    --panel-top: rgba(18, 20, 24, 0.98);
    --text: #e7e9ee;
    --muted: #9ea6b3;
    --accent: #78f29a;
    --border: rgba(255, 255, 255, 0.09);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: radial-gradient(circle at top, #10151a 0%, #060708 58%, #030304 100%);
    overflow: hidden;
}

body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "DejaVu Sans Mono", "Courier New", monospace;
    color: var(--text);
}

#app {
    width: 100%;
    height: 100%;
}

.terminal-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(18, 20, 24, 0.75), rgba(6, 7, 8, 0.96));
}

.terminal-chrome {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: linear-gradient(180deg, var(--panel-top), rgba(14, 16, 19, 0.9));
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}

.terminal-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.terminal-title {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    letter-spacing: 0.02em;
    user-select: none;
}

.terminal-screen {
    position: relative;
    flex: 1 1 auto;
    padding: 18px 18px 22px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.96), rgba(6, 7, 8, 0.98)),
    repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 1px,
        transparent 1px,
        transparent 4px
    );
}

.terminal-screen::-webkit-scrollbar {
    width: 10px;
}

.terminal-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-size: 15px;
}

.terminal-line,
.terminal-pre,
.terminal-loader,
.terminal-intro,
.terminal-command-line {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-size: 15px;
    color: var(--text);
}

.terminal-pre {
    margin: 0 0 10px 0;
    color: var(--text);
}

.terminal-loader {
    color: var(--accent);
}

.terminal-intro {
    color: var(--accent);
}

.terminal-command-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.terminal-prompt {
    color: var(--accent);
    user-select: none;
}

.terminal-prompt-echo {
    margin-right: 0.5ch;
}

.terminal-command-text {
    color: var(--text);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 1.55;
    font-size: 15px;
    padding-top: 2px;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-input-mirror {
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-cursor {
    display: inline-block;
    width: 0.7ch;
    margin-left: 1px;
    color: var(--accent);
    background: rgba(120, 242, 154, 0.18);
    animation: blink 1s steps(1, end) infinite;
}

.terminal-capture {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

::selection {
    background: rgba(120, 242, 154, 0.28);
    color: #ffffff;
}

@keyframes blink {
    0%,
    48% {
        opacity: 1;
    }
    49%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .terminal-screen {
        padding: 14px 12px 18px;
    }

    .terminal-output,
    .terminal-line,
    .terminal-pre,
    .terminal-loader,
    .terminal-intro,
    .terminal-command-line,
    .terminal-input-row {
        font-size: 14px;
    }
}