:root{--ink:#193b41;--muted:#627779;--teal:#12665f;--line:#dbe4e0;--paper:#fff;--bg:#f3f5f1;--gold:#967421;--red:#a33c35}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:15px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;padding:10px 16px;font-weight:600}button:hover{background:#edf4ee}button:disabled{cursor:default;opacity:.5}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#0e514b}.danger{color:var(--red)}a{color:var(--teal)}header{background:var(--ink);color:white;display:flex;align-items:center;justify-content:space-between;padding:16px 32px;gap:20px}header .brand{display:flex;align-items:center;gap:20px}.logo{width:190px;height:auto;background:white;border-radius:5px;padding:6px}.wordmark{font-size:20px;font-weight:600}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);font-weight:700}.brand .eyebrow{color:#b9d3c9;margin-top:4px}nav{display:flex;gap:8px;flex-wrap:wrap}nav button{background:transparent;color:#fff;border-color:#527071}nav button.active{background:#e4eee6;color:var(--ink)}main{max-width:1320px;margin:auto;padding:32px}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}h1{font-size:34px;letter-spacing:-1px;margin:8px 0 12px;line-height:1.15}h2{font-size:21px;margin:0 0 14px}h3{font-size:17px;margin:0 0 12px}p{line-height:1.6}.muted{color:var(--muted)}.hero p{max-width:650px;margin:0}.metric{background:#e6eee7;border-radius:12px;padding:20px 28px;min-width:170px}.metric strong{display:block;font-size:32px;line-height:1.2}.metric span{font-size:13px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;box-shadow:0 3px 12px #193b4105}.cardtop,.spread{display:flex;justify-content:space-between;align-items:center;gap:12px}.cardtop{margin-bottom:16px}.card h2{margin:0}.badge{display:inline-block;padding:4px 9px;border-radius:20px;font-size:12px;background:#edf0ed;color:var(--muted);white-space:nowrap}.badge.approved{background:#d9eee3;color:#215d3c}.badge.flagged{background:#fff0d0;color:#876017}.badge.excluded{background:#f9ded8;color:#9a3830}.card .count{font-size:28px;font-weight:650;margin:8px 0}.card .count small{font-size:14px;color:var(--muted);font-weight:400}progress{width:100%;height:9px;accent-color:var(--teal);border:none;border-radius:5px;margin:8px 0 12px}.cardfooter{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:12px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}.toolbar select,.toolbar input{width:auto;min-width:145px}.toolbar input{flex:1}.workspace{display:grid;grid-template-columns:275px minmax(0,1fr);gap:24px;align-items:start}.queue{position:sticky;top:18px;background:#e9eee8;border:1px solid var(--line);border-radius:12px;overflow:hidden}.queuehead{padding:15px;font-size:13px;color:var(--muted)}.queuelist{max-height:72vh;overflow:auto}.qrow{display:block;width:100%;text-align:left;background:transparent;border:none;border-bottom:1px solid var(--line);border-radius:0;padding:14px 16px;font-weight:400}.qrow.selected{background:white;box-shadow:inset 4px 0 var(--teal)}.qrow .smallrow{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px;gap:6px}.qrow .preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5}.editor{min-width:0}.section{background:white;border:1px solid var(--line);padding:24px;border-radius:12px;margin-bottom:18px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sectionhead h2,.sectionhead h3{margin:0}.meta{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 18px}.callout{padding:13px 16px;border-left:3px solid var(--gold);background:#faf4e6;border-radius:5px;font-size:13px;line-height:1.6;margin:16px 0}.label,label.field{display:block;font-size:13px;font-weight:600;margin-bottom:8px}input:not([type=radio]),textarea,select{width:100%;border:1px solid #cbd7d1;border-radius:7px;background:#fcfdfb;padding:11px;color:var(--ink)}textarea{resize:vertical;line-height:1.5;min-height:72px}textarea.stem{min-height:100px;font-size:18px;font-weight:600}input:focus,textarea:focus,select:focus{border-color:var(--teal);outline:2px solid #9bc9b9}input[type=radio]{width:18px;height:18px;accent-color:var(--teal);margin:0 8px 0 0}.answer{padding:15px;border:1px solid var(--line);border-radius:8px;margin:12px 0}.answer.selected{background:#f0f7ef;border-color:#b4ceb6}.answerhead{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-weight:650}.answer textarea{min-height:60px}.feedback{margin-top:10px}.feedback textarea{font-size:13px;min-height:58px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fieldgroup{margin-bottom:18px}.section details summary{cursor:pointer;font-weight:600;padding:4px 0}.section details p{font-size:13px}.actions{position:sticky;bottom:0;background:#ffffffee;backdrop-filter:blur(8px);border:1px solid var(--line);padding:15px;border-radius:12px;display:flex;flex-wrap:wrap;gap:8px;z-index:2}.actions .primary{margin-left:auto}.savehint{width:100%;font-size:12px;color:var(--muted);margin-bottom:3px}.empty{padding:50px;text-align:center;background:white;border:1px dashed var(--line);border-radius:12px}.source{font-size:13px;margin:10px 0;overflow-wrap:anywhere}.source a{display:block}.history{margin-top:10px}.history button{display:block;width:100%;text-align:left;margin-top:8px;font-size:13px}.login{max-width:460px;margin:9vh auto;padding:35px}.login .logo{width:250px;padding:0;margin-bottom:25px}.login h1{font-size:30px}.login button{width:100%;margin-top:18px}.login label{display:block;margin:18px 0 8px}.login small{display:block;margin-top:22px;line-height:1.6;color:var(--muted)}footer{padding:30px;text-align:center;color:var(--muted);font-size:12px}#notice{position:fixed;right:22px;bottom:22px;z-index:10;padding:14px 20px;background:var(--ink);color:#fff;border-radius:10px;box-shadow:0 4px 20px #0002;display:none;max-width:450px}#notice.visible{display:block}#notice.error{background:#8d322c}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;max-width:850px;width:90vw;max-height:85vh;color:var(--ink)}dialog::backdrop{background:#193b4177}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:15px;font-size:13px}dialog button{margin-top:18px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:12px;text-align:left;border-bottom:1px solid var(--line)}th{background:#edf2ec}.delta{color:var(--gold);font-weight:700}.loading{padding:70px;text-align:center}.hidden{display:none!important}.inline{display:flex;gap:8px;align-items:center}.wide{width:100%}.note{font-size:13px;line-height:1.6}.searchcount{font-size:12px;color:var(--muted)}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}header{padding:16px}.brand .wordmark{display:none}.workspace{grid-template-columns:220px minmax(0,1fr)}main{padding:22px}.fields{grid-template-columns:1fr}}@media(max-width:700px){header{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.hero{align-items:start}.metric{display:none}.workspace{display:block}.queue{position:static;margin-bottom:18px}.queuelist{max-height:190px}.section{padding:18px}main{padding:16px}h1{font-size:28px}.actions .primary{margin-left:0}.login{margin:4vh 16px}.toolbar>*{max-width:100%}}

@media(max-width:700px){.hero{flex-direction:column}.hero .inline{flex-wrap:wrap}.toolbar select{min-width:0;width:100%}.toolbar input{min-width:0}.sectionhead{flex-wrap:wrap}}
