* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { margin: 0; min-height: 100vh; color: var(--foreground); font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace; line-height: 1.5; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, .result-body:focus-visible { outline: 2px solid var(--page-accent); outline-offset: 3px; }
::selection { background: color-mix(in oklch, var(--page-accent) 55%, transparent); color: var(--foreground); }
.ambient { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in oklch, var(--page-accent) 10%, transparent), transparent 75%), linear-gradient(to right, oklch(78% .05 12 / .023) 1px, transparent 1px), linear-gradient(to bottom, oklch(78% .05 12 / .023) 1px, transparent 1px); background-size: auto, 50px 50px, 50px 50px; z-index: 0; }
.shell { max-width: 1620px; margin: auto; padding: 0 clamp(16px,3.6vw,66px) 24px; position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 78px; border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .1em; font-weight: 700; }
.brand { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.brand-glyph { display: inline-flex; align-items: center; font-size: 27px; font-weight: 1000; line-height: 1; letter-spacing: -.13em; color: var(--foreground); }
.mark-dot { color: var(--page-accent); }
.nav-separator, .location { color: var(--muted-foreground); }
.location { margin-left: 8px; }
.privacy { margin-left: auto; color: var(--ok); display: flex; align-items: center; gap: 9px; }
.led, .mini-led { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px color-mix(in oklch,var(--ok) 55%, transparent); }
.hero { padding: clamp(28px,5vw,62px) 0 32px; }
.eyebrow { display: flex; align-items: center; gap: 20px; color: var(--muted-foreground); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.eyebrow-number { color: var(--page-accent); }
.eyebrow-rule { display: inline-block; width: 36px; height: 1px; background: var(--border); }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
h1 { font-size: clamp(3.2rem, 8.7vw, 7.7rem); line-height: 1.03; margin: 8px 0 8px; letter-spacing: -.09em; font-weight: 950; }
.slash { color: var(--muted-foreground); font-size: .65em; letter-spacing: -.16em; margin: 0 .13em 0 .06em; }
.hero-emphasis { color: var(--page-accent); text-shadow: 2px 1px 0 color-mix(in oklch, var(--info) 45%, transparent); }
.terminal-cursor { font-size: .7em; color: var(--muted-foreground); }
.subline { margin: 0; font-size: clamp(12px, 1.35vw, 15px); color: var(--muted-foreground); }
.hero-icon { display: flex; gap: 10px; align-items: center; justify-content: center; border: 1px solid var(--border); width: 106px; height: 106px; flex-shrink: 0; transform: rotate(6deg); font-size: 40px; font-weight: 800; color: var(--page-accent); box-shadow: var(--glow-ambient); }
.hero-icon span:nth-child(2) { font-size: .6em; color: var(--info); transform: translateY(-6px); }
.workbench { border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 78%, var(--background)); box-shadow: 0 24px 80px oklch(0% 0 0 / .25); }
.controlbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.control-cluster { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { min-height: 42px; padding: 0 17px; border: 1px solid var(--border); font-weight: 800; font-size: 12px; letter-spacing: .05em; display: inline-flex; gap: 12px; align-items: center; justify-content: center; transition: background .15s,border-color .15s; }
.btn-primary { background: var(--action); color: var(--primary-foreground); border-color: var(--action); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.13); box-shadow: var(--glow-attention); }
.btn-secondary { background: var(--secondary); color: var(--foreground); }
.btn-secondary:hover:not(:disabled) { border-color: var(--page-accent); }
.button-symbol { font-size: 17px; line-height: 1; }
.shortcut { font-size: 10px; opacity: .65; padding-left: 12px; border-left: 1px solid currentColor; }
.select-wrap, .check-wrap { color: var(--muted-foreground); font-size: 11px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.select-wrap select { min-height: 36px; background: var(--background); border: 1px solid var(--input); border-radius: 0; color: var(--foreground); padding: 0 30px 0 10px; font-size: 12px; }
.check-wrap { gap: 8px; cursor: pointer; user-select: none; }
.check-wrap input { position: absolute; opacity: 0; height: 1px; width: 1px; }
.fake-check { width: 16px; height: 16px; border: 1px solid var(--muted-foreground); display: inline-grid; place-items: center; }
.check-wrap input:checked + .fake-check { border-color: var(--page-accent); background: var(--page-accent); color: var(--primary-foreground); }
.check-wrap input:checked + .fake-check::after { content: '✓'; font-size: 12px; font-weight: 800; }
.check-wrap input:focus-visible + .fake-check { outline: 2px solid var(--page-accent); outline-offset: 3px; }
.helper { font-size: 13px; }
.editors { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1px; background: var(--border); }
.pane { min-width: 0; display: flex; flex-direction: column; background: var(--background); }
.pane-head, .pane-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: color-mix(in oklch,var(--card) 80%,var(--background)); }
.pane-head { padding: 15px 18px; border-bottom: 1px solid var(--border); }
.pane-title { font-size: 12px; font-weight: 850; letter-spacing: .065em; white-space: nowrap; }
.pane-index { color: var(--page-accent); margin-right: 10px; }
.pane-meta { font-size: 11px; font-weight: 400; color: var(--muted-foreground); }
.pane-utils, .foot-actions { display: flex; gap: 14px; align-items: center; }
.counter, .foot-left, .validation-details { color: var(--muted-foreground); font-size: 10px; letter-spacing: .04em; }
.text-action { color: var(--info); border: 0; background: transparent; padding: 5px 0; font-size: 11px; white-space: nowrap; font-weight: 700; }
.text-action:hover:not(:disabled) { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }
.input-body, .result-body { height: clamp(360px, 48vh, 680px); min-height: 320px; position: relative; }
textarea { display: block; width: 100%; height: 100%; background: none; color: var(--foreground); border: 0; outline: none; resize: vertical; padding: 24px; font-size: 13px; line-height: 1.72; tab-size: 2; white-space: pre; overflow: auto; caret-color: var(--page-accent); }
textarea:focus-visible { outline: 1px solid var(--page-accent); outline-offset: -1px; }
textarea::placeholder { color: color-mix(in oklch, var(--muted-foreground) 48%, transparent); }
.input-body.drag-over { outline: 2px dashed var(--page-accent); outline-offset: -8px; }
.drop-hint { display: none; position: absolute; inset: 10px; background: color-mix(in oklch, var(--background) 91%,var(--page-accent)); align-items: center; justify-content: center; color: var(--page-accent); font-weight: 900; letter-spacing: .09em; pointer-events: none; }
.drag-over .drop-hint { display: flex; }
.result-body { display: flex; overflow: auto; background: color-mix(in oklch, var(--background) 90%,var(--card)); font-size: 13px; line-height: 1.72; }
.line-numbers { flex-shrink: 0; min-width: 47px; padding: 24px 9px 24px 12px; border-right: 1px solid var(--border); color: color-mix(in oklch,var(--muted-foreground) 52%,transparent); text-align: right; user-select: none; white-space: pre; }
pre { margin: 0; padding: 24px; min-width: max-content; tab-size: 2; }
code { font: inherit; white-space: pre; }
.placeholder { color: var(--muted-foreground); }
.token-key { color: var(--info); }
.token-string { color: var(--ok); }
.token-number { color: var(--page-accent); }
.token-literal { color: var(--accent-crimson); font-weight: 700; }
.pane-foot { padding: 11px 18px; min-height: 48px; border-top: 1px solid var(--border); }
.foot-left { display: flex; align-items: center; gap: 9px; }
.mini-led { width: 5px; height: 5px; }
.validation { padding: 14px 18px; display: flex; gap: 18px; align-items: center; justify-content: space-between; background: color-mix(in oklch,var(--card) 75%,var(--background)); border-top: 1px solid var(--border); font-size: 12px; }
.validation-main { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.validation-symbol { font-size: 17px; color: var(--muted-foreground); }
.validation.valid .validation-symbol { color: var(--ok); }
.validation.error .validation-symbol { color: var(--destructive); }
.error-jump { background: none; border: none; color: var(--destructive); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; font-size: 11px; }
.validation-details { white-space: nowrap; margin-left: auto; }
.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 18px 0; font-size: 10px; letter-spacing: .08em; color: var(--muted-foreground); }
.foot-star { color: var(--page-accent); }
.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; }
@media (max-width: 1024px) { .hero-icon { width: 76px; height: 76px; font-size: 31px; } .validation-details { display: none; } .editors { grid-template-columns: 1fr; } .input-body, .result-body { height: 340px; } }
@media (max-width: 620px) { .shell { padding-inline: 12px; } .topbar { min-height: 62px; gap: 9px; } .location, .hero-icon { display: none; } .brand { gap: 8px; } .hero { padding: 27px 2px 20px; } h1 { font-size: clamp(3.5rem,16vw,6rem); } .subline { max-width: 34ch; } .controlbar { padding: 12px; } .settings { width: 100%; justify-content: space-between; } .btn { padding: 0 12px; } .shortcut { display: none; } .pane-head { padding: 12px; } .pane-foot { padding: 9px 12px; } textarea, pre { padding: 16px; } .line-numbers { padding-top: 16px; } .input-body, .result-body { height: 300px; } .privacy { font-size: 9px; } .validation { align-items: flex-start; padding: 14px 12px; } .page-foot { line-height: 1.8; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
