@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --heat: #fa5d19;
    --heat-dark: #db4808;
    --heat-4: rgba(250, 93, 25, 0.04);
    --heat-8: rgba(250, 93, 25, 0.08);
    --heat-16: rgba(250, 93, 25, 0.16);
    --ink: #262626;
    --ink-88: rgba(38, 38, 38, 0.88);
    --ink-64: rgba(38, 38, 38, 0.64);
    --ink-48: rgba(38, 38, 38, 0.48);
    --ink-32: rgba(38, 38, 38, 0.32);
    --ink-16: rgba(38, 38, 38, 0.16);
    --ink-6: rgba(38, 38, 38, 0.06);
    --base: #f9f9f9;
    --lighter: #fbfbfb;
    --surface: #ffffff;
    --border: #ededed;
    --border-muted: #e8e8e8;
    --code: #1c1c1c;
    --warn-bg: rgba(217, 119, 6, 0.1);
    --warn-border: rgba(217, 119, 6, 0.35);
    --warn-text: #92400e;
    --err-text: #a63520;
    --ok-text: #34725a;
    --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
    color-scheme: light;
}

[data-theme="dark"] {
    --ink: #e8e8e8;
    --ink-88: rgba(232, 232, 232, 0.88);
    --ink-64: rgba(232, 232, 232, 0.64);
    --ink-48: rgba(232, 232, 232, 0.48);
    --ink-32: rgba(232, 232, 232, 0.32);
    --ink-16: rgba(232, 232, 232, 0.16);
    --ink-6: rgba(232, 232, 232, 0.06);
    --base: #141414;
    --lighter: #191919;
    --surface: #1e1e1e;
    --border: #2b2b2b;
    --border-muted: #262626;
    --code: #0f0f0f;
    --warn-bg: rgba(217, 119, 6, 0.14);
    --warn-border: rgba(217, 119, 6, 0.4);
    --warn-text: #e2a35c;
    --err-text: #f0836b;
    --ok-text: #6fbfa0;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--base);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
}

::selection {
    background: var(--heat-16);
    color: var(--heat-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

button,
input {
    font: inherit;
}

.shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pad {
    flex: 1;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 68px;
    border-bottom: 1px solid var(--border);
    background: rgba(249, 249, 249, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

[data-theme="dark"] .site-nav {
    background: rgba(20, 20, 20, 0.9);
}

.nav-inner {
    width: min(calc(100% - 32px), 1112px);
    height: 100%;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.project-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.project-brand img {
    width: 15px;
    height: 22px;
}

.project-brand span {
    font-family: var(--mono);
    font-size: 14px;
}

.project-brand small {
    color: var(--ink-32);
    font: 400 11px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 23px;
    color: var(--ink-64);
    font-size: 14px;
}

.nav-links a {
    transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--heat);
}

.back-link {
    color: var(--ink-48);
    font-size: 13px;
}

.back-link:hover {
    color: var(--heat);
}

.demo-hero {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.demo-hero h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.demo-hero h1 em {
    color: var(--heat);
    font-style: normal;
}

.demo-hero p {
    margin: 0;
    max-width: 620px;
    color: var(--ink-64);
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
}

.demo-shell {
    flex: 1;
    min-height: 0;
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(16, 16, 16, 0.03), 0 24px 60px -24px rgba(16, 16, 16, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-toolbar {
    min-height: 48px;
    padding: 0 17px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink-48);
    font: 12.5px/1.3 var(--mono);
}

.demo-toolbar-left,
.demo-toolbar-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.demo-engine,
.demo-privacy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-engine strong {
    color: var(--ink);
    font-weight: 500;
}

.demo-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-32);
    transition: background .2s ease, box-shadow .2s ease;
}

.demo-status-dot[data-state="warming"],
.demo-status-dot[data-state="loading"] {
    background: var(--heat);
    box-shadow: 0 0 0 4px var(--heat-8);
    animation: status-pulse 1.4s ease-in-out infinite;
}

.demo-status-dot[data-state="ready"] {
    background: var(--ok-text);
    box-shadow: 0 0 0 4px rgba(52, 114, 90, 0.12);
}

.demo-status-dot[data-state="error"] {
    background: var(--err-text);
    box-shadow: 0 0 0 4px rgba(166, 53, 32, 0.12);
}

@keyframes status-pulse {
    50% {
        opacity: .45;
    }
}

.demo-lock {
    color: var(--heat);
    font-size: 12px;
}

.demo-theme {
    height: 26px;
    width: 30px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink-48);
    background: var(--surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, color .15s ease;
}

.theme-icon {
    display: block;
}

.theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.demo-batch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--heat);
}

.demo-batch[hidden] {
    display: none;
}

.demo-batch strong {
    font-weight: 500;
}

.demo-theme:hover,
.demo-theme:focus-visible {
    border-color: var(--heat);
    color: var(--heat);
}

.demo-settings {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
}

.demo-settings svg {
    display: block;
}

.demo-grid {
    flex: 1;
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    grid-template-rows: minmax(0, 1fr);
}

.demo-input {
    padding: 28px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--lighter);
    overflow: auto;
}

.drop-zone {
    min-height: 212px;
    padding: 26px 30px;
    border: 1px dashed var(--ink-16);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
    border-color: var(--heat);
    background: var(--heat-4);
}

.drop-zone.is-dragging {
    transform: scale(.995);
    box-shadow: 0 0 0 4px var(--heat-8);
}

.drop-mark {
    width: 52px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid var(--ink-16);
    border-radius: 5px 5px 9px 5px;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--heat-dark);
    background: var(--heat-4);
    font: 600 11px/1 var(--mono);
    letter-spacing: .03em;
}

.drop-mark::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-left: 1px solid var(--ink-16);
    border-bottom: 1px solid var(--ink-16);
    background: var(--surface);
}

.drop-zone strong {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.drop-zone>span:not(.drop-mark):not(.demo-choose) {
    margin-top: 6px;
    color: var(--ink-48);
    font-size: 14.5px;
}

.demo-choose {
    margin-top: 18px;
    color: var(--ink);
}

.file-queue {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

#file-queue-list {
    max-height: 172px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-16) transparent;
}

#file-queue-list::-webkit-scrollbar {
    width: 8px;
}

#file-queue-list::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: var(--ink-16);
}

.file-queue-head {
    padding: 8px 13px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-32);
    font: 9px/1 var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.file-queue-head span {
    float: right;
    color: var(--ink-32);
}

.file-queue-clear {
    border: 0;
    border-radius: 4px;
    padding: 0;
    margin-left: 10px;
    color: var(--ink-48);
    background: transparent;
    cursor: pointer;
    font: 10px/1 var(--mono);
}

.file-queue-clear:hover,
.file-queue-clear:focus-visible {
    color: var(--err-text);
}

.file-row {
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    text-align: left;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
}

.file-row:first-child {
    border-top: 0;
}

.file-row:hover {
    background: var(--heat-4);
}

.file-row.is-active {
    background: var(--heat-8);
}

.file-row strong {
    grid-column: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font: 500 13px/1.35 var(--mono);
    white-space: nowrap;
}

.file-row span {
    grid-column: 1;
    color: var(--ink-32);
    font: 11px/1.3 var(--mono);
}

.file-row-status {
    color: var(--ink-32);
}

.file-row-status.done {
    color: var(--ok-text);
}

.file-row-status.error {
    color: var(--err-text);
}

.file-row-status.parsing {
    color: var(--heat-dark);
}

.file-row-status.parsing::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border: 1.5px solid var(--heat);
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: baseline;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.file-row button {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding: 0;
    border: 0;
    color: var(--ink-48);
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
}

.file-row button:hover,
.file-row button:focus-visible {
    color: var(--err-text);
}

.options-panel {
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    background: var(--surface);
}

.options-panel[hidden] {
    display: none !important;
}

.opt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.opt-row label.opt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-64);
    font-size: 14px;
    cursor: pointer;
}

.opt-row label.opt-label input {
    accent-color: var(--heat);
    cursor: pointer;
}

.opt-tag {
    color: var(--ink-32);
    font: 10px/1 var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--lighter);
    gap: 2px;
    box-shadow: inset 0 1px 2px rgba(16, 16, 16, 0.04);
}

.segmented button {
    height: 26px;
    padding: 0 11px;
    border: 0;
    border-radius: 6px;
    color: var(--ink-48);
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
    transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}

.segmented button:hover {
    color: var(--ink);
}

.segmented button.is-active {
    color: #fff;
    background: var(--heat);
    box-shadow: 0 1px 4px rgba(250, 93, 25, 0.3);
}

.opt-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opt-field label {
    color: var(--ink-32);
    font: 10px/1 var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.opt-input {
    width: 100%;
    height: 30px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink);
    background: var(--lighter);
    font: 12px/1 var(--mono);
    outline: none;
    transition: border-color .15s ease;
}

.opt-input:focus {
    border-color: var(--heat);
}

.opt-input:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.opt-input::placeholder {
    color: var(--ink-32);
}

.demo-message {
    margin: 13px 2px 0;
    min-height: 19px;
    color: var(--ink-48);
    font: 12.5px/1.55 var(--mono);
}

.demo-message[data-tone="error"] {
    color: var(--err-text);
}

.demo-message[data-tone="success"] {
    color: var(--ok-text);
}

.demo-output {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--code);
    color: #f5f5f5;
}

.demo-output-head {
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, .42);
    font: 12.5px/1 var(--mono);
}

.demo-output-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.demo-output-title em {
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .28);
    font-style: normal;
    white-space: nowrap;
}

.demo-output-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-copy,
.demo-download {
    height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    font: 11.5px/1 var(--mono);
}

.demo-copy:hover,
.demo-copy:focus-visible,
.demo-download:hover,
.demo-download:focus-visible {
    border-color: var(--heat);
    color: #fff;
}

.demo-copy[disabled],
.demo-download[disabled] {
    opacity: .35;
    cursor: not-allowed;
}

.demo-empty {
    min-height: 448px;
    padding: 40px;
    flex: 1;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255, 255, 255, .28);
    font: 13px/1.7 var(--mono);
}

.demo-empty span {
    display: block;
    color: var(--heat);
    font-size: 22px;
    line-height: 1;
}

.demo-result {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-result[hidden],
.demo-empty[hidden],
.demo-loading[hidden],
.demo-error[hidden] {
    display: none;
}

.demo-loading {
    min-height: 0;
    flex: 1;
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-loading-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.demo-loading-cell {
    height: 56px;
    border-radius: 6px;
}

.demo-loading-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-loading-line {
    height: 11px;
    border-radius: 5px;
}

.demo-loading-cell,
.demo-loading-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .06) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -800px 0;
    }

    100% {
        background-position: 800px 0;
    }
}

.demo-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.demo-progress[hidden] {
    display: none;
}

.demo-progress-track {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.demo-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: var(--heat);
    transition: width .25s ease;
}

.demo-progress-label {
    color: rgba(255, 255, 255, .42);
    font: 11.5px/1 var(--mono);
    white-space: nowrap;
}

.demo-error {
    min-height: 0;
    flex: 1;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.demo-error-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    border: 1px solid rgba(217, 119, 6, .4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #e2a35c;
    background: rgba(217, 119, 6, .12);
    font: 600 18px/1 var(--mono);
}

.demo-error-title {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font: 500 15px/1.3 var(--sans);
    letter-spacing: -.01em;
}

.demo-error-detail {
    margin: 0;
    max-width: 460px;
    color: rgba(255, 255, 255, .55);
    font: 12.5px/1.6 var(--mono);
    word-break: break-word;
}

.demo-error-retry {
    height: 30px;
    margin-top: 14px;
    padding: 0 16px;
    border: 1px solid var(--heat);
    border-radius: 6px;
    color: #fff;
    background: var(--heat);
    cursor: pointer;
    font: 11.5px/1 var(--mono);
    transition: background .15s ease, border-color .15s ease;
}

.demo-error-retry:hover,
.demo-error-retry:focus-visible {
    background: var(--heat-dark);
    border-color: var(--heat-dark);
}

.demo-banners {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 17px 0;
}

.demo-banner {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .045);
    font: 12.5px/1.55 var(--mono);
}

.demo-banner[data-tone="warn"] {
    border-color: rgba(217, 119, 6, .4);
    color: #e2a35c;
    background: rgba(217, 119, 6, .12);
}

.demo-banner[data-tone="info"] {
    border-color: rgba(255, 255, 255, .12);
}

.demo-verdict {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 17px 0;
    font: 11.5px/1 var(--mono);
}

.demo-verdict[hidden] {
    display: none;
}

.demo-verdict span {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
    color: rgba(255, 255, 255, .56);
}

.demo-verdict span:first-child {
    color: #ff9c70;
    border-color: rgba(250, 93, 25, .4);
}

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.demo-metrics.is-brief {
    grid-template-columns: repeat(2, 1fr);
}

.demo-metric {
    min-width: 0;
    padding: 14px 17px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}

.demo-metric:last-child {
    border-right: 0;
}

.demo-metric span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .32);
    font: 10.5px/1 var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.demo-metric strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font: 500 13.5px/1.25 var(--mono);
    white-space: nowrap;
}

.demo-metric:first-child strong {
    color: #ff9c70;
}

.demo-details {
    min-height: 0;
    padding: 0 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: rgba(255, 255, 255, .38);
    font: 11.5px/1.7 var(--mono);
}

.demo-details strong {
    color: rgba(255, 255, 255, .66);
    font-weight: 500;
}

.markdown-output {
    min-height: 0;
    margin: 0;
    padding: 23px 20px 28px;
    flex: 1;
    overflow: auto;
    color: rgba(255, 255, 255, .82);
    font: 13.5px/1.7 var(--mono);
    white-space: pre-wrap;
    word-break: break-word;
}

.markdown-render {
    min-height: 0;
    margin: 0;
    padding: 23px 24px 28px;
    flex: 1;
    overflow: auto;
    color: rgba(255, 255, 255, .85);
    font: 13.5px/1.7 var(--sans);
    word-break: break-word;
}

.markdown-render> :first-child {
    margin-top: 0;
}

.markdown-render> :last-child {
    margin-bottom: 0;
}

.markdown-render h1,
.markdown-render h2,
.markdown-render h3,
.markdown-render h4,
.markdown-render h5,
.markdown-render h6 {
    margin: 22px 0 8px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, .95);
}

.markdown-render h1 {
    font-size: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.markdown-render h2 {
    font-size: 17px;
}

.markdown-render h3 {
    font-size: 15px;
}

.markdown-render h4,
.markdown-render h5,
.markdown-render h6 {
    font-size: 13.5px;
}

.markdown-render p {
    margin: 10px 0;
}

.markdown-render ul,
.markdown-render ol {
    margin: 10px 0;
    padding-left: 22px;
}

.markdown-render li {
    margin: 3px 0;
}

.markdown-render code {
    padding: 1.5px 5px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--lighter);
    font: 11.5px/1.5 var(--mono);
    color: var(--heat-dark);
}

.markdown-render pre {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--lighter);
    overflow: auto;
}

.markdown-render pre code {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    font-size: 11.5px;
    white-space: pre;
}

.markdown-render table {
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 12.5px;
}

.markdown-render th,
.markdown-render td {
    padding: 5px 10px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.markdown-render th {
    background: var(--lighter);
    font-weight: 600;
}

.markdown-render blockquote {
    margin: 12px 0;
    padding: 2px 0 2px 12px;
    border-left: 3px solid var(--heat);
    color: var(--ink-64);
}

.markdown-render hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.markdown-render a {
    color: var(--heat);
}

.demo-footer {
    text-align: center;
    padding: clamp(24px, 3vw, 36px) 0;
    color: var(--ink-48);
    font: 12px/1.5 var(--mono);
}

.demo-footer a {
    color: var(--heat);
}

a:focus-visible,
label:focus-visible,
button:focus-visible {
    outline: 2px solid var(--heat);
    outline-offset: 3px;
}

@media (max-width: 900px) {

    html,
    body {
        height: auto;
        overflow: auto;
    }

    body {
        display: block;
    }

    .shell {
        height: auto;
        min-height: 100vh;
    }

    .pad {
        flex: none;
    }

    .demo-shell {
        flex: none;
        overflow: visible;
        border-left: 0;
        border-right: 0;
    }

    .demo-grid {
        flex: none;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .demo-input {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }

    .demo-output {
        min-height: 50vh;
    }

    .demo-result {
        flex: none;
    }

    .markdown-output,
    .markdown-render {
        max-height: 50vh;
    }

    .demo-empty {
        min-height: 220px;
    }

    .demo-verdict {
        flex-wrap: wrap;
    }

    .demo-details {
        padding-bottom: 10px;
    }

    .demo-settings {
        display: inline-flex;
    }

    .options-panel {
        display: none;
    }

    .options-panel.is-open {
        display: flex;
    }
}

@media (max-width: 680px) {
    .demo-toolbar {
        padding: 10px 14px;
    }

    .demo-engine strong {
        display: none;
    }

    .demo-input {
        padding: 14px;
    }

    .drop-zone {
        min-height: 160px;
        padding: 18px 14px;
    }

    .drop-zone strong {
        font-size: 16px;
    }

    .drop-mark {
        width: 44px;
        height: 48px;
        margin-bottom: 14px;
    }

    .demo-choose {
        margin-top: 14px;
    }

    .demo-hero {
        padding: 14px 14px 10px;
    }

    .demo-hero h1 {
        font-size: 19px;
    }

    .options-panel {
        padding: 11px 12px;
        gap: 9px;
    }

    .demo-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-loading-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-metric:nth-child(2) {
        border-right: 0;
    }

    .demo-metric:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .demo-metric {
        padding: 11px 12px;
    }

    .demo-metric strong {
        font-size: 11px;
    }

    .demo-empty {
        min-height: 200px;
        padding: 24px;
    }

    .demo-output-head {
        padding: 0 12px;
    }

    .demo-output-title em {
        display: none;
    }

    .demo-banners {
        padding: 10px 12px 0;
    }

    .markdown-output {
        padding: 18px 14px 22px;
        font-size: 11px;
    }
}

@media (max-width: 860px) {
    .demo-hero p {
        display: none;
    }
}

@media (max-width: 480px) {
    .demo-privacy {
        display: none;
    }
}

@media (max-height: 720px) {
    .demo-hero {
        padding: 10px 18px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }

    .demo-loading-cell,
    .demo-loading-line,
    .demo-status-dot,
    .file-row-status.parsing::before {
        animation: none !important;
    }
}