:root { --ink:#111412; --muted:#676e69; --paper:#e9e9e3; --panel:#f5f5f0; --line:rgb(17 20 18 / 22%); --acid:#c7ff37; --accent:#ff6947; --soft:#e1e2db; --source:#e5e1d6; --error:#fff0ec; --surface-strong:#111412; --on-strong:#fff; --shadow:none; --mono:"DM Mono", monospace; --sans:"Manrope", sans-serif; }
:root[data-theme="dark"] { --ink:#eef3ee; --muted:#aeb9b2; --paper:#111a16; --panel:#17231d; --line:rgb(238 243 238 / 20%); --acid:#c7ff37; --accent:#ff7959; --soft:#213129; --source:#202d26; --error:#3b211b; --surface-strong:#07120d; --on-strong:#eef3ee; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--sans); }
button,input,textarea { font:inherit; }
button { color:inherit; }
.skip-link { position:absolute; left:1rem; top:-5rem; padding:.75rem; background:var(--ink); color:white; z-index:10; }
.skip-link:focus { top:1rem; }
.topbar { min-height:82px; display:flex; align-items:center; justify-content:space-between; padding:0 clamp(1.2rem,5vw,5rem); border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; font-weight:700; letter-spacing:-.03em; }
.brand::before { content:"H"; width:34px; height:34px; display:grid; place-items:center; background:var(--surface-strong); color:var(--acid); font:500 16px var(--mono); }
.top-actions { display:flex; align-items:center; gap:1rem; }
.text-button { border:0; border-bottom:1px solid var(--ink); padding:.2rem 0; background:none; cursor:pointer; font:500 .7rem var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.theme-button { border:1px solid var(--line); padding:.35rem .5rem; color:var(--accent); }
.status { display:flex; align-items:center; gap:.5rem; color:var(--muted); font:500 .7rem var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--acid); box-shadow:0 0 0 4px rgb(199 255 55 / 12%); }
main { width:min(1240px,calc(100% - 2.4rem)); margin:auto; }
.hero { padding:clamp(4rem,9vw,8rem) 0 3.5rem; max-width:920px; }
.eyebrow,.panel-heading span,.privacy,.result-block small,.decision-row small,.source-card>span { color:var(--muted); font:500 .7rem var(--mono); letter-spacing:.12em; text-transform:uppercase; }
h1 { max-width:850px; margin:.8rem 0 1.4rem; font-family:var(--sans); font-size:clamp(2.8rem,7vw,6.6rem); font-weight:600; letter-spacing:-.075em; line-height:.92; }
.lede { max-width:680px; color:var(--muted); font-size:clamp(1rem,2vw,1.25rem); line-height:1.65; }
.demo-notice { display:inline-flex; align-items:center; gap:.5rem; max-width:max-content; margin:1.5rem 0 0; padding:.55rem .7rem; border:1px solid var(--line); color:var(--muted); font-size:.78rem; }
.demo-notice span:first-child { color:var(--acid); font-size:.95rem; }
.workspace { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow); }
.request-panel,.result-panel { min-height:610px; padding:clamp(1.25rem,3vw,2.5rem); }
.request-panel { display:flex; flex-direction:column; border-right:1px solid var(--line); }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:3rem; }
.panel-heading>div { display:flex; gap:1rem; align-items:baseline; }
.panel-heading h2 { margin:0; font-family:var(--sans); font-size:1.5rem; font-weight:600; letter-spacing:-.04em; }
.request-panel label { margin-bottom:.7rem; font-size:.82rem; font-weight:700; }
textarea { width:100%; min-height:210px; resize:vertical; padding:1.2rem; color:var(--ink); background:var(--panel); border:1px solid var(--line); line-height:1.55; }
textarea:focus,input:focus { outline:2px solid var(--accent); outline-offset:2px; }
.examples { display:flex; flex-wrap:wrap; gap:.55rem; margin:1.2rem 0 2rem; align-items:center; }
.examples>span { width:100%; color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; }
.examples button { padding:.55rem .75rem; border:1px solid var(--line); background:transparent; cursor:pointer; }
.examples button:hover { border-color:var(--ink); }
.primary-button { display:flex; justify-content:space-between; width:100%; margin-top:auto; padding:1rem 1.2rem; border:0; color:var(--acid); background:var(--surface-strong); cursor:pointer; font:500 .72rem var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.primary-button:hover { color:var(--surface-strong); background:var(--acid); }
.secondary-button { width:100%; padding:.9rem 1.2rem; border:1px solid var(--ink); color:var(--ink); background:transparent; cursor:pointer; font:500 .72rem var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.secondary-button:hover { background:var(--soft); }
.empty-state,.loading-state { min-height:430px; display:grid; place-content:center; justify-items:center; color:var(--muted); text-align:center; }
[hidden] { display:none !important; }
.route-mark { display:flex; gap:1.2rem; align-items:center; margin-bottom:1.5rem; }
.route-mark i { display:block; width:13px; height:13px; border:2px solid var(--accent); border-radius:50%; }
.route-mark i+ i:before { content:''; display:block; width:1.2rem; border-top:1px solid var(--line); transform:translate(-1.35rem,4px); }
.loading-state span { width:34px; height:34px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.decision-row { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); }
.decision-row>div { padding:1rem; border-right:1px solid var(--line); }
.decision-row>div:last-child { border:0; }
.decision-row small,.result-block small { display:block; margin-bottom:.55rem; }
.decision-row strong { text-transform:capitalize; }
.engine-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 0; border-bottom:1px solid var(--line); }
.engine-row small { color:var(--muted); font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.engine-row code { padding:.3rem .5rem; color:var(--ink); background:var(--soft); font:.75rem var(--mono); overflow-wrap:anywhere; }
.result-block { padding:1.25rem 0; border-bottom:1px solid var(--line); }
.result-block p { margin:0; line-height:1.5; }
.tags { display:flex; flex-wrap:wrap; gap:.5rem; }
.tags span { padding:.35rem .55rem; background:var(--soft); font-size:.8rem; }
.source-card { margin:1.4rem 0; padding:1.25rem; border-left:3px solid var(--accent); background:var(--source); }
.source-card strong { display:block; margin:.55rem 0; }
.source-card p { margin:.5rem 0 1rem; color:var(--muted); line-height:1.5; }
.source-card code { font-size:.75rem; }
details { border-top:1px solid var(--line); padding-top:1rem; }
summary { cursor:pointer; font-weight:700; }
details li { margin:.6rem 0; color:var(--muted); }
.error-state { margin-top:5rem; padding:1.5rem; border-left:3px solid var(--accent); background:var(--error); }
.queue-section { margin:5rem 0; padding:clamp(1.25rem,3vw,2.5rem); border:1px solid var(--line); background:var(--panel); }
.operator-form { display:grid; grid-template-columns:1fr minmax(180px,320px) auto; gap:.8rem; align-items:center; }
.operator-form input,.case-card input { width:100%; padding:.8rem; color:var(--ink); background:var(--panel); border:1px solid var(--line); }
.operator-form .secondary-button { width:auto; }
.queue-message { color:var(--accent); }
.queue-toolbar { display:flex; gap:.6rem; margin:1.5rem 0; }
.queue-toolbar button { padding:.55rem .8rem; border:1px solid var(--line); color:var(--ink); background:transparent; cursor:pointer; }
.case-list { display:grid; gap:1rem; }
.case-card { padding:1.2rem; border:1px solid var(--line); background:var(--paper); }
.case-card-head { display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.case-card p { line-height:1.5; }
.case-card small { color:var(--muted); }
.case-status { padding:.3rem .5rem; font:.68rem var(--mono); text-transform:uppercase; background:var(--soft); }
.status-pending_review { color:#8a4b00; background:#fff1c7; }
.status-approved,.status-routed { color:#245c20; background:#daf4d7; }
.status-rejected { color:#8d2618; background:#ffe0da; }
.case-actions { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin-top:.7rem; }
.case-actions .primary-button,.case-actions .secondary-button { margin:0; }
.decision-note { padding:.7rem; border-left:2px solid var(--accent); background:var(--soft); }
.principles { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin:5rem 0; background:var(--line); border:1px solid var(--line); }
.principles article { padding:2rem; background:var(--paper); }
.principles article>span { color:var(--accent); font-size:.75rem; }
.principles h3 { font-family:var(--sans); font-size:1.45rem; font-weight:600; letter-spacing:-.04em; }
.principles p { color:var(--muted); line-height:1.55; }
dialog { width:min(520px,calc(100% - 2rem)); padding:0; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(23,33,29,.55); }
dialog form { display:grid; gap:1rem; padding:1.5rem; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; }
.dialog-heading h2 { font-family:var(--sans); font-weight:600; }
.dialog-heading button { border:0; background:none; font-size:1.8rem; cursor:pointer; }
dialog input[type=url] { width:100%; padding:.8rem; border:1px solid var(--line); }
dialog p { margin:0; color:var(--muted); font-size:.85rem; }
@media (max-width:800px) { .workspace { grid-template-columns:1fr; } .request-panel { border-right:0; border-bottom:1px solid var(--line); } .request-panel,.result-panel { min-height:auto; } .result-panel { min-height:560px; } .principles { grid-template-columns:1fr; } .top-actions .status { display:none; } .operator-form { grid-template-columns:1fr; } .case-actions { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; animation:none!important; } }
