:root { color-scheme: light; --bg:#f5f7fb; --card:#ffffff; --ink:#1f2937; --muted:#6b7280; --line:#e5e7eb; --accent:#2563eb; --ok:#047857; --warn:#b45309; --bad:#b91c1c; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
header { background:#0f172a; color:white; padding:16px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
header h1 { font-size:18px; margin:0; }
nav a { color:#dbeafe; margin-left:14px; text-decoration:none; font-size:14px; }
nav a:hover { color:white; }
main { max-width:1180px; margin:24px auto; padding:0 20px 60px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; margin-bottom:18px; box-shadow:0 10px 25px rgba(15,23,42,0.04); }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
.metric { padding:18px; border-radius:12px; background:#eef2ff; }
.metric strong { display:block; font-size:30px; margin-top:4px; }
label { display:block; margin:10px 0 4px; font-weight:600; font-size:14px; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:10px 12px; background:white; font:inherit; }
textarea { min-height:100px; }
button, .button { display:inline-block; border:0; border-radius:10px; padding:10px 14px; background:var(--accent); color:white; text-decoration:none; font-weight:700; cursor:pointer; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.badge { display:inline-flex; align-items:center; border-radius:999px; padding:3px 8px; font-size:12px; font-weight:700; background:#e0f2fe; color:#0369a1; }
.badge.ok { background:#dcfce7; color:var(--ok); }
.badge.warn { background:#fef3c7; color:var(--warn); }
.badge.bad { background:#fee2e2; color:var(--bad); }
.muted { color:var(--muted); }
pre { background:#0f172a; color:#e5e7eb; padding:14px; overflow:auto; border-radius:10px; }
.stage { border-left:4px solid var(--line); padding:9px 0 9px 12px; margin:8px 0; }
.stage.pass { border-left-color:var(--ok); }
.stage.fail { border-left-color:var(--bad); }
.two { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:18px; }
@media (max-width: 800px) { header { display:block; } nav { margin-top:12px; } nav a { display:inline-block; margin:4px 10px 0 0; } .two { grid-template-columns:1fr; } }
.hidden { display:none !important; }
.thinking-panel { display:flex; gap:14px; align-items:flex-start; border:1px solid #bfdbfe; background:#eff6ff; padding:14px; border-radius:12px; margin:12px 0; }
.spinner { width:28px; height:28px; border:4px solid #dbeafe; border-top-color:#1d4ed8; border-radius:50%; animation:spin 1s linear infinite; flex:0 0 auto; margin-top:2px; }
.mini-steps { margin:8px 0 0 18px; color:var(--muted); font-size:13px; }
button:disabled { opacity:.7; cursor:progress; }
@keyframes spin { to { transform:rotate(360deg); } }
.process-strip { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.process-strip span { background:#eef2ff; border:1px solid #c7d2fe; border-radius:999px; padding:7px 10px; font-size:13px; font-weight:700; color:#3730a3; }
.escalation-card { border:1px solid var(--line); border-radius:14px; padding:16px; margin:16px 0; background:#fff; }
.escalation-card.selected { outline:3px solid #bfdbfe; }
.escalation-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:10px; }
.escalation-head h3 { margin:0 0 4px; }
.badges { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.admin-form { background:#f8fafc; border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0; }
details summary { cursor:pointer; font-weight:700; margin-top:8px; }
@media (max-width: 800px) { .escalation-head { display:block; } .badges { justify-content:flex-start; margin-top:8px; } }
.button.secondary { background:#64748b; }
.mono-small { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:12px; word-break:break-all; }
.inline-form { max-width:520px; }
.suggestion-card { border:1px solid var(--line); border-radius:14px; padding:16px; margin:16px 0; background:#fff; }
.suggestion-card ol { margin-left:20px; }
.suggestion-card h3 { margin:0 0 4px; }
.grid-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; align-items:end; }
.grid-form .full { grid-column:1 / -1; }
