:root {
    color-scheme: dark;
    /* Preserve the original site's charcoal surfaces and gray accents */
    --bg: #292a2d;
    --surface: #3b3d42;
    --header: #252627;
    --text: #a9a9b3;
    --muted: var(--text);
    --strong: #eaeaea;
    --line: #4a4b50;
    --accent: #aaa;
    --terminal-bg: #000;
    --terminal-bar: #e8e6e8;
    --terminal-bar-text: #222;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-size: 15px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}
button,
input,
select {
    font: inherit;
}
button,
.button,
.file-button {
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 7px;
    padding: 0.65rem 1rem;
    transition: background 0.15s;
}
button:hover,
.button:hover {
    background: var(--line);
    color: var(--strong);
}
button:disabled {
    opacity: 0.4;
    cursor: default;
}
.primary {
    background: var(--surface);
    color: var(--strong);
    border-color: var(--accent);
    font-weight: 650;
}
.primary:hover {
    background: var(--line);
    color: var(--strong);
}
input,
select {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--header);
    color: var(--text);
    padding: 0.65rem 0.8rem;
    min-width: 0;
}
input[type='checkbox'] {
    accent-color: var(--accent);
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.site-header,
.site-footer,
main {
    max-width: 1180px;
    margin: auto;
}
main {
    padding-top: 40px;
}
.site-header-bar {
    background: var(--header);
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 104px;
    border-bottom: 1px solid var(--line);
    gap: 24px;
}
.brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.7px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.brand-avatar {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.site-header nav,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: var(--text);
}
.site-header nav a[aria-current='page'],
.site-footer nav a[aria-current='page'] {
    color: var(--strong);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}
.nav-install {
    border: 1px solid var(--line);
    padding: 8px 17px;
    border-radius: 6px;
    color: var(--accent);
}
.nav-install span {
    margin-left: 15px;
}
code,
pre {
    font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
code {
    font-size: 0.88em;
}
.demo-window {
    width: min(790px, 100%);
    margin: 10px auto 68px;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden;
    background: var(--terminal-bg);
    box-shadow: 0 30px 65px #0003;
}
.terminal-title {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--terminal-bar);
    border-bottom: 1px solid var(--line);
    color: var(--terminal-bar-text);
    font:
        11px ui-monospace,
        monospace;
    padding: 0 17px;
}
.window-dots {
    display: flex;
    gap: 6px;
}
.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: #ec6a5f;
    border: 1px solid #d04e42;
}
.window-dots i:nth-child(2) {
    background: #f5c04f;
    border-color: #d6a13d;
}
.window-dots i:nth-child(3) {
    background: #64cc57;
    border-color: #4ea73b;
}
.demo-label,
.terminal-mode {
    margin-left: auto;
    letter-spacing: 1px;
    font-size: 9px;
    color: inherit;
}
.demo-window pre {
    padding: 20px 27px;
    font-size: 13px;
    line-height: 1.85;
    margin: 0;
}
.prompt,
.success,
.cursor {
    color: var(--accent);
}
.dim {
    color: var(--muted);
}
.demo-timeline {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 13px 20px;
    border-top: 1px solid var(--line);
    font:
        10px ui-monospace,
        monospace;
    color: var(--muted);
}
.demo-timeline > div {
    height: 3px;
    flex: 1;
    background: var(--surface);
}
.demo-timeline i {
    display: block;
    width: 28%;
    height: 100%;
    background: var(--accent);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 54px;
    border-top: 1px solid var(--line);
    padding: 40px 0;
}
.feature-number {
    font:
        10px ui-monospace,
        monospace;
    letter-spacing: 1.5px;
    color: var(--muted);
}
.feature-grid h2 {
    font-size: 18px;
    font-weight: 550;
    letter-spacing: -0.5px;
    margin-top: 17px;
}
.feature-grid p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}
.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 35px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    gap: 20px;
}
.site-footer nav {
    font-size: 11px;
    gap: 22px;
}
.release-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 45px;
}
.page-note {
    margin: 0 0 24px;
    color: var(--muted);
}
.empty-state {
    min-height: 40vh;
    padding-bottom: 40px;
}
.muted {
    color: var(--muted);
}
.source-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 22px;
}
.source-label {
    flex: 1;
    font-size: 12px;
    color: var(--muted);
}
.source-label input {
    display: block;
    width: 100%;
    margin-top: 6px;
}
.file-button {
    white-space: nowrap;
}
.file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
}
.terminal-window {
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
}
.terminal-scroll {
    background: var(--terminal-bg);
    overflow: auto;
    padding: 16px;
}
.terminal-surface {
    min-height: 340px;
    width: max-content;
    min-width: 100%;
}
.playback-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--header);
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}
.playback-bar label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.seek-label {
    flex: 1;
}
.seek-label input {
    width: 100%;
    accent-color: var(--accent);
}
.time {
    white-space: nowrap;
    font-family: monospace;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px 0;
}
.search,
.export-buttons {
    display: flex;
    gap: 7px;
}
.toolbar button {
    font-size: 12px;
}
.toolbar input {
    width: 190px;
}
.secondary {
    margin: 38px 0 60px;
}
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
.settings-panel {
    padding: 20px 0;
}
.settings-panel h2 {
    font-size: 20px;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 22px 0;
}
.settings-grid label {
    font-size: 13px;
}
.settings-grid select {
    display: block;
    margin-top: 8px;
}
.prose {
    max-width: 780px;
    margin: 0 auto 50px;
}
.prose h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
    margin: 43px 0 12px;
}
.prose h2:first-of-type {
    margin-top: 0;
}
.prose p {
    color: var(--text);
}
.prose pre {
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: auto;
    color: var(--accent);
    font-size: 13px;
}
.prose code {
    color: var(--strong);
}
.prose pre code {
    color: inherit;
}
.skip-link {
    position: fixed;
    top: -80px;
    left: 10px;
    background: var(--accent);
    color: var(--terminal-bar-text);
    padding: 8px;
    z-index: 100;
}
.skip-link:focus {
    top: 10px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
}
.export-terminal {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1280px;
    height: 720px;
}
#boot-status {
    max-width: 1180px;
    margin: 20px auto;
    font-size: 12px;
    color: var(--muted);
}
[x-cloak] {
    display: none !important;
}
tbt-shell,
tbt-terminal,
tbt-settings,
tbt-help,
acl-boundary,
acl-dynamic {
    display: block;
}
@media (max-width: 1240px) {
    main,
    .site-header,
    .site-footer,
    #boot-status {
        margin-left: 28px;
        margin-right: 28px;
    }
}
@media (max-width: 700px) {
    .site-header {
        height: auto;
        min-height: 85px;
        flex-wrap: wrap;
        padding: 22px 0;
        gap: 18px;
    }
    .site-header nav {
        gap: 18px;
        font-size: 12px;
    }
    .nav-install {
        padding: 4px 10px;
    }
    main {
        padding-top: 28px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 25px 0;
    }
    .site-footer {
        flex-direction: column;
    }
    .site-footer nav {
        flex-wrap: wrap;
    }
    .source-bar {
        flex-wrap: wrap;
    }
    .source-label {
        flex-basis: 100%;
    }
    .playback-bar {
        flex-wrap: wrap;
    }
    .seek-label {
        min-width: 50%;
    }
    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }
    .demo-window pre {
        font-size: 11px;
        padding: 20px 17px;
    }
    main,
    .site-header,
    .site-footer,
    #boot-status {
        margin-left: 20px;
        margin-right: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.terminal-skeleton {
    min-height: 20rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 1rem;
}
.terminal-skeleton div {
    height: 0.75rem;
    width: 75%;
    margin-top: 1rem;
    background: var(--line);
    border-radius: 0.25rem;
}
.terminal-skeleton div:last-child {
    width: 40%;
}
