:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#15223b;background:#f2f5f9;font-synthesis:none;line-height:1.5;--ink:#12244d;--blue:#254bbf;--muted:#485976;--rule:#d4dce7;--focus:#1464df}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,select,input[type=file]{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}a,button,select,input,textarea,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{position:fixed;top:1rem;left:1rem;background:white;color:var(--blue);padding:.5rem;z-index:4}
.shell{width:min(100% - 3rem,78rem);margin-inline:auto}.top{background:var(--ink);color:white}.top-inner,.nav-inner,.dialog-top,.line,.heading,.kpis,.tags,.actions,.card-head,.switches{display:flex;align-items:center}.top-inner{min-height:4.8rem;gap:1.6rem}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.85rem;font-weight:740;letter-spacing:-.075em}.mark{display:flex;align-items:center;justify-content:center;gap:3px;width:2.15rem;height:2.15rem;background:#d6ee68;border-radius:.35rem;transform:rotate(-4deg)}.mark i{background:var(--ink);width:4px;height:17px;transform:skew(-18deg)}.mark i:first-child{height:9px}.mark i:last-child{height:13px}.product{font-size:.95rem;line-height:1.25;color:#d5def0;border-left:1px solid #667493;padding-left:1.5rem}.file-button{margin-left:auto;border:1px solid #8897b5;background:transparent;color:white;border-radius:.4rem;padding:.42rem .85rem;font-weight:650}.file-button:hover{background:#25385f}
nav{background:white;border-bottom:1px solid var(--rule)}.nav-inner{gap:1.6rem;overflow-x:auto}.nav-inner button{border:0;border-bottom:3px solid transparent;white-space:nowrap;background:none;padding:.9rem .12rem .73rem;font-weight:630;color:var(--muted)}.nav-inner button[aria-current]{border-bottom-color:var(--blue);color:var(--blue)}.nav-inner button:focus-visible{outline-offset:-3px}
main{min-height:68vh;padding-block:2.6rem 3rem}main:focus{outline:none}.heading{align-items:flex-end;justify-content:space-between;gap:1rem;margin:0 0 1.45rem}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.16;text-wrap:balance}h1{font-size:clamp(2rem,4.2vw,3.6rem);letter-spacing:-.067em;font-weight:700}h2{font-size:1.35rem;letter-spacing:-.035em}h3{font-size:1rem}.heading p,.hint,.muted{color:var(--muted)}.heading p{max-width:48rem;margin-top:.55rem}.btn{border:1px solid #b7c2d2;border-radius:.4rem;padding:.46rem .85rem;background:white;font-weight:610;line-height:1.45}.btn:hover{background:#edf1fa}.btn.primary{color:white;background:var(--blue);border-color:var(--blue)}.btn.primary:hover{background:#183993}.btn.small{padding:.27rem .63rem;font-size:.875rem}.btn.link{padding:.15rem .3rem;color:var(--blue);border:0;background:transparent;text-decoration:underline;text-underline-offset:3px}
.kpis{background:#152b57;color:white;border-radius:.8rem;align-items:stretch;overflow:hidden;margin-bottom:1.35rem}.metric{padding:1.3rem 1.5rem;flex:1;min-width:0;display:flex;flex-direction:column;gap:.26rem}.metric+.metric{border-left:1px solid #425477}.metric strong{font:650 clamp(1.7rem,3.5vw,2.4rem)/1 "Inter","Segoe UI",sans-serif;letter-spacing:-.065em;font-variant-numeric:tabular-nums}.metric span{font-size:.9rem;color:#e1e7f2}.metric.accent strong{color:#d6ee68}
.split{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:1rem;align-items:start}.card{border:1px solid var(--rule);background:white;border-radius:.75rem;overflow:hidden}.card-head{padding:1.1rem 1.3rem;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.detail{padding:1.3rem}.switches{gap:.25rem;background:#ebeff6;padding:.2rem;border-radius:.4rem}.switches button{border:0;background:transparent;border-radius:.25rem;padding:.29rem .48rem;font-size:.875rem}.switches button[aria-pressed=true]{background:white;color:var(--blue);box-shadow:0 1px 3px #142d4e28;font-weight:650}.tickets{list-style:none;margin:0;padding:0}.ticket{width:100%;display:block;border:0;border-top:1px solid var(--rule);background:white;text-align:left;padding:.8rem 1.3rem .9rem}.ticket:hover,.ticket[aria-pressed=true]{background:#eef2ff}.ticket:focus-visible{outline-offset:-4px}.ticket[aria-pressed=true]{box-shadow:inset 4px 0 0 var(--blue)}.ticket p{margin-top:.3rem;line-height:1.4}.line{justify-content:space-between;gap:.6rem}.id,.eyebrow{font-family:"Geist Mono",Consolas,monospace;font-size:.82rem;color:var(--muted);letter-spacing:.02em}.tag{display:inline-block;border-radius:1rem;line-height:1.4;font-size:.83rem;padding:.18rem .52rem;font-weight:650;color:#364d72;background:#edf1f8}.tag.review{background:#fff0c9;color:#714c08}.tag.route{background:#e0f2ed;color:#225947}.tag.human{background:#eae5fc;color:#534482}
.request{font-size:clamp(1.12rem,1.65vw,1.38rem);line-height:1.42;font-weight:560;letter-spacing:-.015em;margin:.85rem 0 1rem;overflow-wrap:anywhere}.actions,.tags{flex-wrap:wrap;gap:.5rem}.section{margin-top:1.15rem;padding-top:1.1rem;border-top:1px solid var(--rule)}.hint{font-size:.94rem;line-height:1.5}.section h3,.form-field>span{display:block;margin-bottom:.35rem}.ranking{list-style:none;padding:0;margin:.65rem 0}.ranking li{display:grid;grid-template-columns:6.8rem minmax(1rem,1fr) 3.3rem;align-items:center;gap:.5rem;margin:.42rem 0;font-size:.875rem}.bar{height:.4rem;overflow:hidden;border-radius:1rem;background:#e7ecf3}.bar span{display:block;background:#8399cf;height:100%;border-radius:inherit}.ranking li:first-child .bar span{background:var(--blue)}.num{text-align:right;font-variant-numeric:tabular-nums}.quote{margin:.65rem 0 .4rem;border-left:3px solid #637cc2;padding:.4rem 0 .4rem .8rem;color:#314366;overflow-wrap:anywhere}.term{padding:.12rem .4rem;background:#eef2ff;color:#263f80;border-radius:.25rem;font:500 .85rem/1.5 Consolas,monospace}
.empty{padding:1.35rem;color:var(--muted);border-top:1px solid var(--rule)}.dataset{list-style:none;margin:0;padding:0}.dataset li{display:flex;align-items:center;justify-content:space-between;gap:.9rem;padding:.85rem 1.25rem;border-top:1px solid var(--rule)}.dataset li p{overflow-wrap:anywhere}.dataset li div{min-width:0}.dataset .tag{margin-bottom:.26rem}.labelled{display:flex;gap:.5rem;align-items:center;font-size:.9rem}.labelled select{max-width:100%}.info-card{padding:1.2rem 1.3rem}.info-card+.card{margin-top:1rem}.info-card p{margin:.45rem 0}.info-card summary{cursor:pointer;font-weight:650}.threshold-label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.3rem}.threshold-label output{font-size:1.15rem;color:var(--blue);font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:var(--blue);margin:.45rem 0 .65rem}.dataset small{font-size:.875rem;color:var(--muted);display:block;margin-top:.25rem}.eval-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(16rem,1fr);gap:1rem;align-items:start}.corpus{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(16rem,1fr);gap:1rem;align-items:start}footer{border-top:1px solid var(--rule);padding-block:1rem 2rem;display:flex;gap:.75rem;justify-content:space-between;flex-wrap:wrap;font-size:.85rem;color:var(--muted)}
dialog{width:min(34rem,calc(100vw - 2rem));padding:1.4rem;border:1px solid var(--rule);border-radius:.8rem;box-shadow:0 1.5rem 4rem #0e1d3e3d;color:var(--ink)}dialog::backdrop{background:#111e37a8}.dialog-top{justify-content:space-between;gap:.5rem;margin-bottom:1rem}.dialog-top button{background:white;border:1px solid var(--rule);border-radius:.3rem;font-size:1.4rem;line-height:1;width:2rem;height:2rem}.form-field{display:block;margin:.85rem 0}.form-field>span,.label{font-weight:650}.form-field textarea,.form-field select,.labelled select{border:1px solid #9caac0;border-radius:.35rem;color:var(--ink);background:white;padding:.45rem}.form-field textarea{width:100%;min-height:7rem;resize:vertical}.form-field select{min-width:10rem}.actions.end{justify-content:flex-end;margin-top:1rem}.error{color:#932c27;font-weight:600;margin-top:.5rem}.error:empty{display:none}.file-data p{margin:.55rem 0}.file-data input{max-width:100%;margin-top:.5rem}.load-hint{padding:.65rem .8rem;background:#edf1fc;border-radius:.4rem;margin:0 0 1rem;color:#253c73}
@media(max-width:52rem){.split,.eval-grid,.corpus{grid-template-columns:1fr}.eval-grid>aside,.corpus>aside{grid-row:1}.top-inner{min-height:4rem}.heading{align-items:flex-start}.detail[data-chosen=true]{scroll-margin-top:.6rem}}
@media(max-width:38rem){.shell{width:calc(100% - 1.5rem)}.brand{font-size:1.55rem}.product{display:none}.nav-inner{gap:1rem}.nav-inner button{font-size:.91rem}.heading{flex-direction:column}.heading p{font-size:.97rem}main{padding-block:1.4rem}.metric{padding:.85rem .63rem}.metric span{font-size:.8rem}.card-head,.detail,.info-card{padding:.9rem}.ticket,.dataset li{padding:.7rem .9rem}.dataset li{align-items:flex-start}.top-inner{min-height:3.65rem}.kpis{border-radius:.5rem}.card-head h2{font-size:1.2rem}.actions,.tags{gap:.4rem}footer{gap:.25rem;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.ticket p,.ticket .id,.hint,.dataset small{overflow-wrap:anywhere}
.bank-nav{color:var(--blue);font-weight:630;text-decoration:none;white-space:nowrap;padding:.78rem .12rem}
.bank-nav:hover,.bank-nav[aria-current]{text-decoration:underline;text-underline-offset:4px}
.queue-actions{justify-content:flex-end;flex-shrink:0;max-width:40%}
.queue-order{margin:0 1.3rem .8rem}
.sample-link{color:var(--blue);text-underline-offset:.2em}
.detail-id{margin-top:.65rem;overflow-wrap:anywhere}
.detail-id+.request{margin-top:.25rem}
.long-queue{max-height:68vh;overflow-y:auto}
@media(max-width:52rem){.queue-actions{flex-shrink:1}}
@media(max-width:38rem){.queue-actions{justify-content:flex-start;max-width:100%}.queue-order{margin-inline:.9rem}}

@media (max-width: 38rem) {
  .top-inner, .nav-inner, .detail .line { flex-wrap: wrap; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.5em), 1fr)); }
  .metric, .ranking li > span:first-child { overflow-wrap: anywhere; }
  .ranking li { grid-template-columns: minmax(0, 1.1fr) minmax(1rem, .6fr) max-content; }
}
.batch-audit { margin: 0 0 1rem; overflow: visible; }
.batch-audit summary { color: var(--blue); }
.audit-body { min-width:0; max-width:50rem; padding:0; margin:0; border:0; overflow-wrap:anywhere; }
.audit-body .form-field input, .audit-body .form-field select { max-width: 100%; min-width: 0; }
.audit-body input[type=number] { width: 6rem; padding: .45rem; border: 1px solid #9caac0; border-radius: .35rem; }
.audit-body .audit-progress { font-weight: 650; }
.audit-body .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.audit-body .btn + .btn.small { margin-inline-start: .3rem; }
.team-counts { padding: 0; margin: .75rem 0; list-style: none; }
.team-counts li { display: grid; gap: .15rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.team-counts li span { color: var(--muted); font-size: .9rem; }
.tag, .ranking li > span:first-child { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.labelled { max-width: 100%; min-width: 0; }
.labelled select { min-width: 0; }
.form-field select { min-width: min(10rem, 100%); max-width: 100%; }

.load-panel{margin-bottom:1rem}
.load-panel summary{cursor:pointer;font-weight:650}
.load-body{margin-top:.85rem}
.load-form{display:grid;grid-template-columns:minmax(0,5rem) minmax(0,max-content);gap:.5rem .65rem;margin:1rem 0}
.load-form label{grid-column:1/-1;font-weight:650}
.load-form input{min-width:0;font:inherit;color:var(--ink);background:white;border:1px solid var(--rule);border-radius:.35rem;padding:.45rem .55rem}
.load-result{margin-block:1rem}
.load-table{width:100%;border-collapse:collapse;font-size:.88rem;font-variant-numeric:tabular-nums}
.load-table caption{text-align:left;padding:.45rem 0;font-weight:650}
.load-table th,.load-table td{padding:.6rem .45rem;border-bottom:1px solid var(--rule);text-align:left}
.load-table th[scope=col]:not(:first-child),.load-table td{text-align:right}
.load-table th[scope=row]{font-weight:500}
.outside-count{padding:0 1.15rem}
