:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#172235;background:#f3f6fa;font-synthesis:none;font-size:16px;--blue:#1759d5;--line:#dee5ee;--muted:#66758a}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--blue);text-underline-offset:3px}.sidebar{width:244px;background:#101d31;color:#dce5f6;position:fixed;inset:0 auto 0 0;padding:32px 20px;display:flex;flex-direction:column}.brand{font-weight:800;font-size:21px;letter-spacing:-.6px;text-decoration:none;color:white}.brand span{color:#75aaff;margin-left:4px}.workspace-label{font-size:12px;letter-spacing:1.15px;color:#9baac2;margin:32px 0 18px}nav{display:grid;gap:7px}.nav-item{border:0;background:none;color:#adbbd0;text-align:left;border-radius:7px;padding:13px 12px;font-size:14px;display:flex;justify-content:space-between}.nav-item:hover{background:#1c2e49}.nav-item.active{background:#254873;color:white}.nav-item span{color:#a6cbff}.sidebar-bottom{margin-top:auto;font-size:14px;line-height:1.8;color:#9baac2}.sidebar-bottom strong{color:#dce5f6;font-weight:500}.sidebar-bottom small{display:block;margin-top:18px;font-size:12px}main{margin-left:244px;width:calc(100% - 244px)}.topbar{height:70px;border-bottom:1px solid var(--line);background:white;padding:0 36px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.muted{color:var(--muted)}#view{padding:32px 36px;max-width:1600px;margin:auto}h1{font-size:30px;letter-spacing:-.7px;margin:0 0 8px}h2{font-size:21px;margin:0 0 20px}h3{font-size:17px;margin:0 0 12px}p{line-height:1.6;margin:8px 0 18px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.page-heading p{margin:0;color:var(--muted);font-size:14px}.actions{display:flex;gap:10px;flex-wrap:wrap}.button{border:1px solid var(--line);padding:10px 16px;border-radius:7px;background:white;color:#24354f;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.button:hover{background:#eef3fb}.button.primary{background:var(--blue);color:white;border-color:var(--blue)}.button.primary:hover{background:#1249b3}.button.danger{color:#a52929}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{border:1px solid var(--line);border-radius:9px;background:white;padding:20px}.stat span{font-size:14px;color:var(--muted)}.stat strong{display:block;font-size:30px;margin-top:12px;font-weight:650}.toolbar{display:flex;gap:12px;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--line)}.toolbar input{min-width:220px;flex:1}input,select,textarea{border:1px solid #cbd5e2;border-radius:6px;background:white;color:inherit;padding:10px 12px;min-width:0;width:100%;font-size:14px}select{width:auto}textarea{resize:vertical;line-height:1.5}.toolbar select{max-width:240px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:20px}.panel.padded{padding:24px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;background:#f8fafc;color:var(--muted);font-weight:500;padding:14px 18px;white-space:nowrap}td{padding:18px;border-top:1px solid #eaf0f5;vertical-align:top}td.title{max-width:440px}td.title button{border:0;background:none;text-align:left;padding:0;color:#183b71;font-weight:600;line-height:1.5;font-size:15px}td small{display:block;color:var(--muted);margin-top:7px;font-size:12px}.nowrap{white-space:nowrap}.badge{display:inline-block;font-size:12px;font-weight:600;padding:5px 9px;border-radius:5px;white-space:nowrap}.candidate,.succeeded{background:#e5f4ee;color:#166547}.review,.needs_attention{background:#fff1d9;color:#895a04}.excluded,.failed,.interrupted{background:#f9e8e8;color:#983838}.queued,.running{background:#e9f0ff;color:#2157ae}.unknown{background:#edf1f6;color:#56667b}.empty{text-align:center;padding:64px 24px;max-width:640px;margin:auto}.empty h2{margin:0 0 12px}.empty p{font-size:15px;color:var(--muted)}.empty .number-mark{width:56px;height:56px;background:#eaf1ff;color:var(--blue);margin:0 auto 18px;border-radius:12px;display:grid;place-items:center;font-size:22px;font-weight:700}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.full{grid-column:1/-1}label{display:grid;gap:7px;font-size:14px;color:#4b5c73}label small{font-size:12px;color:var(--muted)}.field-check{display:flex;align-items:center;gap:10px}.field-check input{width:auto}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.notice{padding:13px 16px;background:#eff4fd;border-left:3px solid #4b80d8;color:#3b526e;font-size:14px;line-height:1.5;margin-bottom:18px}.warning{background:#fff6e7;border-color:#dda642}.source-card{padding:24px}.source-card+.source-card{border-top:1px solid var(--line)}.source-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}.source-head h3{margin:0}.source-card p{font-size:14px;color:var(--muted)}.source-info{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;margin:16px 0}.details-grid{display:grid;grid-template-columns:160px 1fr;gap:12px;font-size:14px;line-height:1.5}.details-grid dt{color:var(--muted)}.details-grid dd{margin:0;overflow-wrap:anywhere}.section-divider{border:0;border-top:1px solid var(--line);margin:24px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fb;padding:14px;font-size:13px;line-height:1.6}details{margin:18px 0}summary{cursor:pointer;color:#3c5880;font-size:14px}dialog{border:1px solid var(--line);border-radius:12px;padding:26px;width:min(820px,calc(100% - 32px));max-height:90vh;box-shadow:0 22px 90px #0b1b3538}dialog::backdrop{background:#09182b70}.dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:12px}.dialog-top h2{margin:0;line-height:1.4}.icon-button{border:0;background:#f1f4f8;width:32px;height:32px;border-radius:6px;font-size:24px;color:#617087;flex-shrink:0}#toast{position:fixed;right:28px;bottom:26px;max-width:460px;padding:16px 20px;color:white;background:#142a48;border-radius:8px;box-shadow:0 6px 30px #13274426;font-size:14px;z-index:5;white-space:pre-wrap}.loading{padding:50px;color:var(--muted)}.error-box{padding:24px;color:#9e3030}.document-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.result-list{line-height:1.6;padding-left:20px;font-size:14px}.spacer{margin-top:22px}@media(max-width:1050px){.sidebar{width:200px}main{margin-left:200px;width:calc(100% - 200px)}#view{padding:24px}.stats{gap:10px}.stat{padding:15px}.topbar{padding:0 24px}.page-heading{align-items:flex-start;flex-direction:column}}@media(max-width:720px){body{display:block}.sidebar{position:static;width:100%;padding:18px}.workspace-label,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;margin-top:16px}.nav-item{white-space:nowrap}.brand{font-size:19px}main{width:100%;margin:0}.topbar{height:50px;padding:0 18px}#view{padding:22px 16px}.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.toolbar{padding:12px}.toolbar input,.toolbar select{width:100%;max-width:none}.source-head{flex-direction:column}.details-grid{grid-template-columns:1fr;gap:5px}.details-grid dd{margin-bottom:12px}h1{font-size:26px}.button{min-height:42px}dialog{padding:20px}}

.signed-out .sidebar,.signed-out .topbar{display:none}.signed-out main{margin:0;width:100%}.login-panel{max-width:480px;margin:8vh auto}.message-preview{white-space:pre-wrap;line-height:1.7;background:#f2f6ff;border-radius:12px;padding:20px;margin:14px 0;overflow-wrap:anywhere}.delivery-row{border-bottom:1px solid var(--line);padding:16px 0}.delivery-row span{display:block;color:var(--muted);font-size:13px;margin-top:6px}.stats .stat strong{font-size:24px}.toolbar .field-check{white-space:nowrap}.toolbar .field-check input{min-width:0;width:auto}

[hidden]{display:none!important}
