:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #13151a;
  --line: #272a32;
  --muted: #8f96a3;
  --text: #f4f6f8;
  --lime: #c9ff43;
  --red: #ff6b6b;
  --blue: #83a7ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(89, 107, 255, .16), transparent 32rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 70px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: #111; background: var(--lime); border-radius: 8px; font-size: 11px; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.status i { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 12px var(--lime); }
.hero { padding: 76px 0 57px; }
.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
h1 { margin: 15px 0 18px; max-width: 820px; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--muted); font-style: normal; }
.lede { max-width: 650px; color: #aeb4bf; font-size: 18px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr); gap: 18px; align-items: start; }
.panel { background: rgba(19, 21, 26, .93); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 70px rgba(0, 0, 0, .2); }
.composer { padding: 30px; min-height: 520px; }
.proof { padding: 30px; position: sticky; top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.panel-head > div { display: flex; align-items: center; gap: 12px; }
.step { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 3px; }
label { display: block; margin: 20px 0 8px; color: #c4c8d0; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
input { width: 100%; color: var(--text); background: #0d0f13; border: 1px solid #30333c; border-radius: 10px; padding: 13px 14px; outline: 0; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(131, 167, 255, .12); }
.criterion-entry { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.primary { border: 0; border-radius: 10px; background: var(--lime); color: #10120c; padding: 0 18px; font-weight: 750; }
.error { min-height: 18px; margin: 6px 0 0; color: var(--red); font-size: 12px; }
.criteria { display: grid; gap: 8px; margin-top: 16px; }
.criterion-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #101217; }
.state-button { width: 27px; height: 27px; padding: 0; border: 1px solid #3a3e48; border-radius: 50%; background: transparent; }
.state-button span { display: block; width: 7px; height: 7px; margin: auto; border-radius: 50%; background: #555b66; }
[data-state="passed"] .state-button { border-color: var(--lime); }
[data-state="passed"] .state-button span { background: var(--lime); }
[data-state="failed"] .state-button { border-color: var(--red); }
[data-state="failed"] .state-button span { background: var(--red); }
.criterion-copy p { margin: 0 0 2px; }
.criterion-copy small { color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.remove { border: 0; background: transparent; color: #6f7580; font-size: 20px; }
.empty-state { margin-top: 19px; padding: 25px; text-align: center; border: 1px dashed #30343d; border-radius: 12px; color: var(--muted); }
.empty-state span { display: block; color: #d2d5da; font-size: 30px; font-weight: 650; }
.empty-state p { max-width: 340px; margin: 5px auto 0; }
.readiness { padding: 5px 9px; border-radius: 99px; color: var(--muted); background: #252830; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.readiness[data-ready="true"] { color: #12150b; background: var(--lime); }
.score-block { padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.score-copy { display: flex; align-items: baseline; justify-content: space-between; }
.score-copy strong { font-size: 48px; letter-spacing: -.06em; }
.score-copy span { color: var(--muted); font-size: 12px; }
.meter { height: 6px; margin-top: 12px; background: #272b33; border-radius: 99px; overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; background: var(--lime); transition: width .25s ease; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 0; border-bottom: 1px solid var(--line); }
.summary-grid div { display: grid; text-align: center; border-right: 1px solid var(--line); }
.summary-grid div:last-child { border: 0; }
.summary-grid strong { font-size: 23px; }
.summary-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.kane-card { display: grid; grid-template-columns: auto 1fr; gap: 13px; margin: 22px 0; }
.kane-icon { display: grid; place-items: center; width: 35px; height: 35px; color: #0f1115; background: var(--blue); border-radius: 9px; font-weight: 900; }
.kane-card strong { font-size: 13px; }
.kane-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
code { color: #c6d5ff; }
.export { width: 100%; border: 0; border-radius: 11px; padding: 14px; color: #111; background: var(--text); font-weight: 750; }
.export:disabled { cursor: not-allowed; color: #717680; background: #292c33; }
.export-note { min-height: 18px; margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
@media (max-width: 800px) { .workspace { grid-template-columns: 1fr; } .proof { position: static; } .hero { padding-top: 48px; } }
@media (max-width: 520px) { .shell { width: min(100% - 24px, 1180px); } .composer, .proof { padding: 21px; } .criterion-entry { grid-template-columns: 1fr; } .primary { padding: 12px; } }
