:root {
  --bg: #f5f7f9; --card: #fff; --ink: #17242f; --muted: #64707c;
  --accent: #0a7d8c; --accent-ink: #fff; --line: #dde4ea;
  --ok: #1d7d4f; --warn: #a05a00; --bad: #b3261e;
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); }
h1 { font-size: 1.4rem; margin: .2em 0 .5em; }
h2 { font-size: 1.1rem; margin: .3em 0 .5em; }
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .92em; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #0e2231; color: #fff; }
.brand { font-weight: 700; letter-spacing: .02em; }
.brand span { color: #58c7d6; }
.topbar-right { display: flex; gap: 12px; align-items: center; font-size: .9em; }
.view { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.auth-card { max-width: 420px; margin: 8vh auto; }
label { display: block; margin: 10px 0; font-weight: 600; font-size: .92em; }
label input, label select, .row input, .row select {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400;
}
.row input, .row select { width: auto; margin-top: 0; }
.row input[style*="flex"] { flex: 1; }
label.check { font-weight: 400; }
label.check input { display: inline; width: auto; margin-right: 6px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
legend { font-weight: 600; font-size: .9em; padding: 0 6px; }
.btn { padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: inherit; }
.btn.small { padding: 4px 9px; font-size: .85em; }
.row { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.row.spread { justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.error { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c2; padding: 8px 12px; border-radius: 7px; margin: 8px 0; }
.notice { background: #eef6f8; border: 1px solid #cfe5ea; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.notice.ok { background: #edf7f1; border-color: #cbe7d6; }
.notice.warn { background: #fdf4e7; border-color: #f2ddbd; color: var(--warn); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 14px 0; }
.tab { border: none; background: none; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
table.list { width: 100%; border-collapse: collapse; font-size: .93em; }
table.list th, table.list td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-size: .85em; text-transform: uppercase; letter-spacing: .04em; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78em; font-weight: 600; }
.pill.required, .pill.open { background: #eef6f8; color: var(--accent); }
.pill.attested, .pill.done { background: #edf7f1; color: var(--ok); }
.pill.draft, .pill.needs_answer { background: #fdf4e7; color: var(--warn); }
.pill.not_applicable { background: #eee; color: var(--muted); }
.pill.floor { background: #e8eef8; color: #274b8f; }
.pill.industry { background: #f0e9f8; color: #6b3fa0; }
.pill.client { background: #fdeef3; color: #a02458; }
.modal-wrap { position: fixed; inset: 0; background: rgba(14, 34, 49, .5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { max-width: 720px; width: 92%; max-height: 86vh; overflow: auto; }
.md { line-height: 1.55; }
.md blockquote { border-left: 3px solid var(--accent); margin: 8px 0; padding: 4px 12px; background: #f4f9fa; }
.md table { border-collapse: collapse; }
.md td, .md th { border: 1px solid var(--line); padding: 5px 8px; }
.bar-wrap { background: #edf1f4; border-radius: 6px; height: 14px; overflow: hidden; margin: 3px 0 8px; }
.bar { height: 100%; background: var(--accent); border-radius: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.answer { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; background: #fbfcfd; }
pre.json { background: #0e2231; color: #cfe5ea; padding: 12px; border-radius: 8px; overflow: auto; font-size: .8em; }
