:root { color-scheme: dark; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: #dce2e8; background: #14171c; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: var(--viewport-height, 100dvh); padding: clamp(12px, 4vw, 56px); display: grid; place-items: center; }
.terminal { width: min(1100px, 100%); height: min(780px, calc(var(--viewport-height, 100dvh) - clamp(24px, 8vw, 112px))); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #39404a; border-radius: 10px; background: #1b1f26; box-shadow: 0 18px 60px #0003; }
nav { flex: none; display: flex; padding: 12px 16px 0; border-bottom: 1px solid #39404a; background: #20252d; }
nav a { padding: 12px 22px 13px; border: 1px solid #414a56; border-bottom: 2px solid #9cd6bd; border-radius: 6px 6px 0 0; color: #edf2f6; background: #1b1f26; text-decoration: none; font-size: 14px; }
nav a span { color: #9cd6bd; margin-right: 9px; }
#viewport { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: clamp(16px, 3vw, 34px); font-size: 15px; line-height: 1.7; scrollbar-color: #535d6b #1b1f26; }
#output > div { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.7em; }
.welcome-line { color: #f3f6fa; font-weight: 600; }
.welcome-message { color: #e5bd77; font-weight: 600; margin-top: 12px; margin-bottom: 8px; }
#output > .banner-line { color: #e5bd77; white-space: pre; overflow-wrap: normal; font-size: 15px; line-height: 1.2; min-height: 1.2em; }
.welcome-line + .banner-line { margin-top: 16px; }
.muted-line { color: #aeb8c6; }
.command-line { color: #9cd6bd; margin-top: 14px; }
.error-line { color: #ffb2ac; }
.input-line { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#prompt { color: #9cd6bd; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
#command { flex: 1 1 160px; width: 160px; min-width: 100px; max-width: 100%; font: inherit; font-size: 16px; line-height: 1.7; border: 0; border-radius: 2px; padding: 2px 4px; background: transparent; color: #f3f6fa; caret-color: #9cd6bd; }
#command:disabled { opacity: .4; }
#command[aria-invalid="true"] { outline-color: #ffb2ac; }
:focus-visible { outline: 2px solid #9cd6bd; outline-offset: 3px; }
#command:focus { outline: 1px solid #637d74; outline-offset: 2px; }
footer { flex: none; min-height: 38px; padding: 10px 20px; font-size: 11px; color: #aeb8c6; border-top: 1px solid #343b45; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
footer a { color: #9cd6bd; }
.local-badge { margin-left: auto; letter-spacing: .08em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { color: #ffb2ac; padding: 12px 20px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { body { padding: 8px; } .terminal { height: calc(var(--viewport-height, 100dvh) - 16px); border-radius: 7px; } nav { padding: 8px 10px 0; } nav a { padding: 10px 16px; } #viewport { padding: 16px 12px; } footer { padding: 10px 12px; } .local-badge { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
