:root{
  --bg:#f6f7fb;--card:#fff;--text:#171821;--muted:#727684;
  --line:#e5e7ef;--accent:#7057ff;--accent2:#5e45ef;
  --danger:#b42318;--success:#16794a;--warning:#9a6700;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1080px,calc(100% - 32px));margin:0 auto}
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner{height:68px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:21px;font-weight:800;text-decoration:none}
.brand:hover{text-decoration:none}
.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center}
.header-right{display:flex;align-items:center;gap:16px}.user-email{font-size:14px;color:var(--muted)}
.link-button{border:0;background:none;color:var(--accent);font:inherit;cursor:pointer;padding:0}
.page{padding:34px 0 60px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
h1{font-size:30px;line-height:1.2;margin:0 0 8px;letter-spacing:-.4px}
h2{font-size:20px;margin:0 0 9px}.lead{color:var(--muted);margin:0;line-height:1.55}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:16px}
.card-row{display:flex;align-items:center;justify-content:space-between;gap:22px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:10px;background:var(--accent);color:#fff;padding:0 16px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--accent2);text-decoration:none}.btn-secondary{background:#efedff;color:#5842d6}.btn-secondary:hover{background:#e7e3ff}
.muted{color:var(--muted);font-size:14px}.token{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid .card{margin:0}
.report-card p{color:var(--muted);line-height:1.5;min-height:44px}
.report-card-title{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.report-card-title h2{margin-bottom:0}
.report-card-development{border:2px solid #f59e0b;border-left-width:7px;background:#fff8e8;box-shadow:0 8px 24px rgba(245,158,11,.12)}
.development-badge{display:flex;align-items:center;width:100%;border-radius:12px;padding:10px 14px;background:#f59e0b;color:#fff;font-size:16px;font-weight:850;line-height:1.2;box-shadow:0 4px 12px rgba(245,158,11,.22)}
.development-badge svg{width:28px!important;height:28px!important;margin-right:9px!important;flex:none}
.report-card p.development-note{min-height:0;margin:2px 0 16px;color:#9a4d00;font-size:14px;font-weight:800}
.development-alert{display:flex;flex-direction:column;gap:7px;margin:14px 0 18px;padding:15px 16px;border:2px solid #f59e0b;border-left-width:6px;border-radius:12px;background:#fff8e8;color:#7a4a00;font-size:14px;line-height:1.45}
.development-alert strong{display:flex;align-items:center;color:#9a4d00;font-size:18px;line-height:1.2}
.development-alert strong svg{width:30px!important;height:30px!important;margin-right:10px!important;flex:none}
.field{margin-bottom:20px}
label{display:block;font-size:14px;font-weight:700;margin-bottom:7px}
input:not([type="radio"]):not([type="checkbox"]),select{width:100%;height:46px;border:1px solid #dcdfea;border-radius:10px;background:#fff;padding:0 12px;font:inherit;outline:none}
input:not([type="radio"]):not([type="checkbox"]):focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(112,87,255,.12)}
input[type="radio"],input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:var(--accent);flex:0 0 auto}
.choice-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.choice-chips>div{margin:0}
.choice-chips label{display:flex;align-items:center;gap:9px;margin:0;padding:10px 14px;border:1px solid #dcdfea;border-radius:10px;background:#fff;font-size:14px;font-weight:650;line-height:1.2;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease}
.choice-chips label:hover{border-color:#c8c1ff;background:#faf9ff}
.choice-chips label:has(input:checked){border-color:var(--accent);background:#f1eeff;color:#533be0;box-shadow:0 0 0 2px rgba(112,87,255,.08)}
.helptext{display:block;color:var(--muted);font-size:13px;line-height:1.45;margin-top:6px}
.errorlist{color:var(--danger);font-size:13px;padding-left:18px}.form-errors{color:var(--danger);margin-bottom:18px}
.status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}
.status-queued{background:#f3f0ff;color:#5d47d7}.status-running{background:#fff4d7;color:var(--warning)}
.status-ready{background:#e7f8ee;color:var(--success)}.status-failed{background:#fdecec;color:var(--danger)}.status-canceled{background:#eef0f4;color:#666b78}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;border-bottom:1px solid var(--line);padding:12px 10px;font-size:14px}.table th{color:var(--muted);font-weight:650}
.report-title-link{font-weight:500}.report-action-col{width:112px;text-align:right!important;white-space:nowrap}
.report-delete-form,.report-cancel-form{margin:0;display:inline-flex}
.report-delete{width:30px;height:30px;border:1px solid #f3b8b4;border-radius:8px;background:#fff5f4;color:var(--danger);font:inherit;font-size:20px;font-weight:700;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;margin-left:auto}
.report-delete:hover{background:#fde3e1;border-color:#e69791}
.report-cancel{border:0;background:transparent;color:var(--danger);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:4px 0}
.report-cancel:hover{text-decoration:underline}.report-canceling{color:var(--muted);font-size:12px}
.auth-shell{width:min(430px,100%);margin:40px auto}.auth-brand{text-align:center;font-size:28px;font-weight:850;margin-bottom:20px}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 18px 55px rgba(25,28,44,.08)}
.auth-card h1{text-align:center;font-size:25px}.auth-sub{text-align:center;color:var(--muted);margin:0 0 26px}
.auth-foot{text-align:center;color:var(--muted);font-size:14px;margin-top:20px}
.flash{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:18px}
.back{display:inline-block;margin-bottom:18px;font-size:14px}
.stats-list{display:flex;gap:12px;flex-wrap:wrap}.stat-pill{background:#f4f5f9;border-radius:9px;padding:8px 10px;font-size:13px}
pre.error{white-space:pre-wrap;background:#fff1f1;color:#8f1d17;padding:14px;border-radius:10px;font-size:13px}
.schema-alert{background:#fff9e8;border:1px solid #ead8a2;border-radius:16px;padding:20px 22px;margin-bottom:16px}
.schema-alert h2{color:#7d5600;margin-bottom:7px}
.schema-alert-intro{margin:0 0 14px;color:#725d2f;line-height:1.5}
.schema-warning-item{border-top:1px solid #eadfbd;padding-top:13px;margin-top:13px}
.schema-warning-item:first-of-type{border-top:0;padding-top:0;margin-top:0}
.schema-warning-item strong{display:block;margin-bottom:5px}
.schema-warning-item p{margin:0;color:#5f553c;line-height:1.5;font-size:14px}
.schema-fields{margin-top:9px;padding:9px 11px;background:rgba(255,255,255,.7);border:1px solid #eadfbd;border-radius:9px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5;word-break:break-word}
.progress-message{margin:14px 0 12px;font-weight:700;line-height:1.45}
.progress-note{margin:0 0 12px;line-height:1.5}
.progress-refresh{margin-top:4px}
@media(max-width:700px){
  .grid{grid-template-columns:1fr}.page-head,.card-row{align-items:stretch;flex-direction:column}.user-email{display:none}
  h1{font-size:26px}.container{width:min(100% - 24px,1080px)}.auth-card{padding:24px 18px}
  .choice-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.choice-chips label{width:100%;justify-content:flex-start}
  .development-badge{font-size:15px;padding:10px 12px}
}
