:root {
  --bg: #f6f7f9; --panel: #fff; --ink: #14202b; --muted: #5b6b7a; --line: #e2e7ec;
  --brand: #0f766e; --brand-ink: #fff; --brand-soft: #e6f4f2; --amber: #f59e0b;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c; --radius: 10px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); }
.top { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); }
.brand small { color: var(--muted); font-size: 11px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 500; }
nav a.active, nav a:hover { background: var(--brand-soft); color: var(--brand); }
main { max-width: 1200px; margin: 0 auto; padding: 24px; min-height: 70vh; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
.banner { background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #7c2d12; padding: 8px 24px; font-size: 14px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card.link:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(15,118,110,.08); }
.card p { margin: 4px 0 0; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 12px; border-radius: 7px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 3px 8px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: progress; }
label { display: block; font-weight: 500; font-size: 13px; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 720px) { .form2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #fafcfc; }
.tablewrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #eef2f5; color: var(--muted); white-space: nowrap; }
.tag.mandatory, .tag.bad, .tag.exception, .tag.disqualified, .tag.no_go, .tag.high { background: #fee2e2; color: var(--bad); }
.tag.rated, .tag.open, .tag.submitted { background: #e0f2fe; color: #0369a1; }
.tag.pricing, .tag.partial, .tag.conditional, .tag.medium, .tag.ai_draft { background: #fef3c7; color: var(--warn); }
.tag.comply, .tag.approved, .tag.awarded, .tag.go, .tag.low, .tag.won, .tag.reviewed { background: #dcfce7; color: var(--ok); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 8px 12px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--brand); border-color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; }
.req { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.req .q { font-weight: 500; }
.req textarea { min-height: 110px; margin-top: 8px; }
.score { font-size: 22px; font-weight: 700; }
.bar { height: 8px; background: #eef2f5; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }
.empty { text-align: center; padding: 40px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.hero { background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.hero h1 { font-size: 28px; } .hero p { color: #d1fae5; max-width: 760px; margin: 6px 0 0; }
.stat { font-size: 28px; font-weight: 700; }
#toast { position: fixed; bottom: 20px; right: 20px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 420px; z-index: 10; }
#toast.show { opacity: 1; }
#toast.err { background: var(--bad); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(720px, 94vw); }
dialog::backdrop { background: rgba(20,32,43,.35); }
