:root { color-scheme: dark; --bg:#101213; --surface:#181c1d; --ink:#f1f4f0; --muted:#a3afad; --border:#353c3b; --accent:#8be3ca; --amber:#efcf89; --red:#ff9d99; }
* { box-sizing:border-box; letter-spacing:0; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif; }
button,input,textarea,select { font:inherit; }
button,a,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled,select:disabled,textarea:disabled { cursor:wait; opacity:.65; }
button:focus-visible,a:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
.container { max-width:1020px; margin:auto; padding:0 32px; }
header { padding:30px 0 26px; }
nav { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--muted); margin-bottom:24px; }
nav a { color:var(--muted); }
.title-row { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
h1 { margin:0; font-size:32px; line-height:1.2; font-weight:650; }
.badge { border:1px solid #647252; color:#c7d7a9; padding:3px 8px; font-size:11px; border-radius:4px; }
.lede { color:var(--muted); margin:10px 0 0; }
h2 { margin:0; font-size:17px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
p { margin:0 0 12px; }
.workspace { border:1px solid var(--border); border-radius:8px; background:var(--surface); overflow:hidden; }
.workspace-head { display:flex; flex-wrap:wrap; gap:6px 20px; justify-content:space-between; padding:12px 22px; background:#121616; font-size:11px; font-family:ui-monospace,monospace; color:var(--muted); }
.workspace-head>span:first-child { color:var(--accent); }
form { padding:22px; }
.input-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.input-heading>label { font-size:17px; font-weight:600; }
.role-field { display:flex; align-items:center; gap:9px; font-size:12px; color:var(--muted); }
select { background:var(--bg); color:var(--ink); border:1px solid var(--border); border-radius:5px; padding:6px 30px 6px 9px; font-size:12px; min-height:34px; }
.question-row { display:flex; align-items:stretch; gap:10px; }
textarea { flex:1; min-width:0; resize:vertical; min-height:76px; max-height:190px; padding:12px 14px; color:var(--ink); background:var(--bg); border:1px solid #5c6c68; border-radius:6px; line-height:1.5; }
textarea::placeholder { color:#a7b4b0; opacity:1; }
.primary { flex:0 0 82px; background:var(--accent); border:0; border-radius:6px; color:#112b22; font-weight:700; }
.primary:hover { background:#a8efd9; }
.examples { display:flex; flex-wrap:wrap; gap:8px; margin:13px 0; }
.examples button { font-size:12px; line-height:1.4; min-height:34px; padding:6px 10px; background:transparent; border:1px solid var(--border); border-radius:4px; color:var(--muted); }
.examples button:hover { color:var(--ink); border-color:var(--accent); }
.meta { font-size:11px; color:var(--muted); line-height:1.65; }
#data-note { margin:0; max-width:78ch; }
.result-head { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:0 22px; min-height:48px; }
.tabs { display:flex; gap:18px; }
.tabs button { height:48px; border:0; border-bottom:2px solid transparent; padding:0 2px; color:var(--muted); background:none; font-size:13px; }
.tabs button[aria-selected=true] { border-bottom-color:var(--accent); color:var(--ink); }
.status { color:var(--muted); font-size:11px; text-align:right; }
.status[data-state=allow] { color:var(--accent); }
.status[data-state=refuse],.status[data-state=error] { color:var(--red); }
.status[data-state=clarify],.status[data-state=loading] { color:var(--amber); }
#results { padding:22px; min-height:244px; }
[hidden] { display:none!important; }
.empty-title { color:var(--ink); font-size:17px; margin-bottom:6px; }
.muted { color:var(--muted); font-size:13px; }
.sample-lines { display:flex; gap:20px; margin-top:24px; max-width:540px; }
.sample-lines span { flex:1; font:10px ui-monospace,monospace; color:var(--muted); }
.sample-lines i { display:block; width:var(--level); height:4px; margin-top:9px; background:#526762; border-radius:2px; }
.sample-lines span:nth-child(2) i { background:#877950; }
.sample-lines span:nth-child(3) i { background:#766e8d; }
#answer-period { margin-top:7px; }
.chart { display:grid; gap:8px; margin:18px 0; }
.chart-row { display:grid; grid-template-columns:92px minmax(0,1fr) 88px; align-items:center; gap:12px; font-size:11px; }
.chart-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar-track { height:7px; background:#2a3430; overflow:hidden; border-radius:2px; }
.bar { height:100%; background:var(--accent); }
.chart-row:nth-child(2) .bar { background:var(--amber); }
.chart-row:nth-child(3) .bar { background:#b1a0d5; }
.chart-value { text-align:right; font-variant-numeric:tabular-nums; }
.table-scroll { overflow-x:auto; max-width:100%; }
table { border-collapse:collapse; width:100%; text-align:left; font-size:12px; font-variant-numeric:tabular-nums; }
th,td { padding:10px 14px 10px 0; border-bottom:1px solid var(--border); white-space:nowrap; }
th { color:var(--muted); font-size:11px; font-weight:500; text-transform:capitalize; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; margin:0 0 15px; font:12px/1.75 ui-monospace,monospace; color:#c6dfd7; }
#sql-params { color:var(--amber); }
#checks-list { list-style:none; padding:0; margin:0; display:grid; gap:13px; }
#checks-list li { display:grid; grid-template-columns:18px 1fr; column-gap:10px; font-size:12px; }
.check-icon { color:var(--accent); font-family:ui-monospace,monospace; }
.check-icon.blocked { color:var(--red); }
.check-detail { grid-column:2; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.session { padding:26px 0; border-bottom:1px solid var(--border); }
.section-heading { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; align-items:center; margin-bottom:12px; }
#activity { list-style:none; padding:0; margin:0; }
#activity li { border-top:1px solid var(--border); padding:10px 0; display:flex; flex-wrap:wrap; gap:6px 14px; align-items:baseline; font-size:11px; }
#activity li:first-child { border:0; }
.activity-status { color:var(--accent); min-width:44px; font-weight:600; }
.activity-status.refuse,.activity-status.error { color:var(--red); }
.activity-status.clarify { color:var(--amber); }
.activity-question { flex:1; min-width:160px; overflow-wrap:anywhere; }
.activity-id { color:var(--muted); font-family:ui-monospace,monospace; }
.context,.related { padding:26px 0; border-bottom:1px solid var(--border); }
.context h2,.related h2 { margin-bottom:12px; }
.context p { color:var(--muted); font-size:13px; max-width:83ch; }
.flow { display:flex; flex-wrap:wrap; gap:10px; font:11px/1.8 ui-monospace,monospace; color:var(--accent); margin-top:20px; }
.flow b { color:var(--muted); font-weight:400; }
.related-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.related-links a { font-size:13px; }
.related-links span { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
footer { display:flex; flex-wrap:wrap; gap:10px 20px; padding:25px 0 36px; font-size:11px; color:var(--muted); }
footer>span { flex:1; min-width:240px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media(max-width:600px) { .container { padding:0 16px; } header { padding-top:20px; } nav { margin-bottom:18px; } h1 { font-size:28px; } form,#results { padding:16px; } .workspace-head,.result-head { padding-left:16px; padding-right:16px; } .input-heading { align-items:flex-start; } .question-row { flex-wrap:wrap; } textarea { flex-basis:100%; } .primary { flex:1; min-height:42px; } .examples { gap:6px; } .related-links { grid-template-columns:1fr; gap:14px; } .chart-row { grid-template-columns:64px minmax(0,1fr) 62px; gap:8px; } .tabs { gap:14px; } .status { max-width:110px; } }
