:root {
  --navy: #000066; --accent: #6d9eeb; --gold: #ffcc00; --bsn: #241f50; --bsn-blue: #336ef1;
  --ink: #1d1d2b; --muted: #6b6f80; --line: #dfe2ea; --bg: #f5f6fa; --card: #fff;
  --red: #b00020; --orange: #d97706; --green: #15803d; --blue: #1d4ed8; --grey: #6b7280;
  --radius: 8px; --shadow: 0 1px 2px rgba(20, 20, 60, .08), 0 1px 8px rgba(20, 20, 60, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 16px; margin: 22px 0 8px; color: var(--navy); } h3 { font-size: 14px; margin: 12px 0 6px; }
p { margin: 6px 0; } .muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.top { display: flex; align-items: center; gap: 18px; background: var(--navy); color: #fff; padding: 0 18px; height: 50px; position: sticky; top: 0; z-index: 5; }
.top .brand { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .2px; } .top .brand .mark { color: var(--gold); font-family: Georgia, serif; font-size: 22px; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: #d9ddf5; padding: 6px 10px; border-radius: 6px; } .top nav a.on, .top nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d9ddf5; } .who b { color: #fff; } .who button { background: transparent; color: #d9ddf5; border: 1px solid rgba(255,255,255,.3); }
main { max-width: 1320px; margin: 0 auto; padding: 18px 20px 60px; }
.loading { color: var(--muted); padding: 40px; text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.cols { display: grid; gap: 16px; } .cols.c2 { grid-template-columns: 1fr 1fr; } .cols.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cols.c2, .cols.c3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef0f7; color: #3a3f5c; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
tr:last-child td { border-bottom: 0; } tr.group td { background: #f7f8fc; font-weight: 600; color: var(--navy); }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #fafbff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; color: #fff; line-height: 16px; }
.badge.P0 { background: var(--red); } .badge.P1 { background: var(--orange); } .badge.P2 { background: var(--blue); } .badge.P3 { background: var(--grey); }
.chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: #e8eaf3; color: #333a5e; white-space: nowrap; }
.chip.not_started { background: #e8eaf3; } .chip.in_progress { background: #dbeafe; color: #1e3a8a; } .chip.blocked { background: #fee2e2; color: #991b1b; }
.chip.review { background: #fef3c7; color: #92400e; } .chip.completed { background: #dcfce7; color: #166534; } .chip.deferred { background: #e5e7eb; color: #374151; }
.chip.requested { background: #e8eaf3; } .chip.issued { background: #dcfce7; color: #166534; } .chip.superseded { background: #e5e7eb; color: #6b7280; } .chip.expired { background: #fee2e2; color: #991b1b; }
.chip.gsn { background: #000066; color: #fff; } .chip.brightscape { background: var(--bsn-blue); color: #fff; }
.chip.kind { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.chip.risk-high { background: #fee2e2; color: #991b1b; } .chip.risk-medium { background: #fef3c7; color: #92400e; } .chip.risk-low { background: #e5e7eb; color: #374151; }
.chip.open { background: #fef3c7; color: #92400e; } .chip.validated { background: #dcfce7; color: #166534; } .chip.invalid { background: #e5e7eb; color: #6b7280; text-decoration: line-through; }
.due.overdue { color: var(--red); font-weight: 600; } .due.soon { color: var(--orange); font-weight: 600; }
.blocker { color: var(--red); font-size: 12.5px; } .warn { color: var(--orange); font-size: 12px; }
button, .btn { font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 6px; border: 1px solid #c9cde0; background: #fff; color: var(--ink); cursor: pointer; }
button:hover, .btn:hover { background: #f3f4fa; text-decoration: none; } button:disabled { opacity: .5; cursor: default; }
button.primary, .btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); } button.primary:hover { background: #1a1a80; }
button.danger { color: var(--red); border-color: #f3c0c6; } button.small, .btn.small { font-size: 12px; padding: 2px 8px; }
button.link { border: 0; background: none; color: var(--blue); padding: 2px 4px; } button.link:hover { text-decoration: underline; background: none; }
.actions { display: flex; gap: 4px; flex-wrap: wrap; }
input, select, textarea { font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid #c9cde0; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 70px; resize: vertical; } input[type=checkbox] { width: auto; } select.inline, input.inline { width: auto; padding: 2px 4px; font-size: 12.5px; }
label { display: block; font-size: 12px; color: #3a3f5c; font-weight: 600; margin: 8px 0 3px; } label.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; padding: 4px 12px 10px; } legend { font-size: 12px; font-weight: 700; color: var(--navy); padding: 0 4px; }
dialog { border: 0; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 0; width: min(640px, 94vw); } dialog.wide { width: min(1000px, 96vw); }
dialog::backdrop { background: rgba(10, 10, 40, .45); }
dialog form { padding: 18px 20px; } dialog h2 { margin: 0 0 8px; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.toast { background: #1d1d2b; color: #fff; padding: 9px 14px; border-radius: 8px; box-shadow: var(--shadow); font-size: 13px; max-width: 420px; } .toast.err { background: var(--red); }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; min-width: 150px; }
.stat .n { font-size: 22px; font-weight: 700; color: var(--navy); } .stat .l { font-size: 12px; color: var(--muted); } .stat .sub { font-size: 12px; margin-top: 2px; }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } @media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } }
.ladder .lvl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.ladder .lvl h3 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; }
.ladder .ver { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; } .ladder .ver:first-of-type { border-top: 0; }
.ladder .num { font-size: 13px; }
.login { max-width: 760px; margin: 40px auto; } .login .team { margin-bottom: 18px; } .login button { margin: 4px 6px 4px 0; padding: 8px 14px; } .login button small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.act { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .act .meta { color: var(--muted); font-size: 12px; } .act:last-child { border-bottom: 0; }
.lines td { padding: 3px 5px; } .lines input { padding: 3px 6px; font-size: 13px; } .lines td.num input { text-align: right; }
.lines .w-desc { min-width: 240px; } .lines .w-sm { width: 70px; } .lines .w-md { width: 110px; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 12px; } .tabs a { padding: 6px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; } .tabs a.on { color: var(--navy); border-color: var(--navy); font-weight: 600; }
.banner { background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; padding: 8px 12px; border-radius: var(--radius); margin: 10px 0; }
.banner.issued { background: #dcfce7; border-color: #86efac; color: #14532d; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: 13px; } .kv div:nth-child(odd) { color: var(--muted); }
.empty { color: var(--muted); padding: 14px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.chain { font-size: 12.5px; color: var(--muted); }
.search { max-width: 260px; }
.filelist li { padding: 4px 0; } .filelist { padding-left: 18px; margin: 4px 0; }
.preview-table { max-height: 50vh; overflow: auto; }
.brandbar { height: 4px; border-radius: 2px; margin-bottom: 10px; } .brandbar.gsn { background: linear-gradient(90deg, #000066, #6d9eeb); } .brandbar.brightscape { background: linear-gradient(90deg, var(--bsn), var(--bsn-blue)); }
.chip.waiting { background: #ede9fe; color: #5b21b6; } .chip.approved { background: #d1fae5; color: #065f46; }
.chip.kind.q { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; } .chip.kind.appr { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.waiting { color: #5b21b6; font-size: 12.5px; }
.banner.wait { background: #ede9fe; border-color: #c4b5fd; color: #4c1d95; } .banner.q { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }
.count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: middle; }
.top nav .count { margin-left: 4px; }
.mention { background: #fff3bf; color: #5c4a00; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention-menu { position: fixed; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; font-size: 13px; }
.mention-menu .mi { padding: 5px 10px; border-radius: 5px; cursor: pointer; } .mention-menu .mi.on, .mention-menu .mi:hover { background: #eef0f7; }
.inbox .act.read { opacity: .55; }
.sync h2 { margin-top: 18px; } .sync .walk { margin-bottom: 10px; } .sync .walk h3 { margin: 0; } .sync .walk .act { border: 0; padding: 2px 0; }
.print-only { display: none; }
@media print {
  .top, .no-print, #toasts, dialog { display: none !important; } .print-only { display: block; }
  main { max-width: none; padding: 0; } body { background: #fff; font-size: 11px; } .card, table { box-shadow: none; break-inside: avoid; }
  .cols.c2 { grid-template-columns: 1fr; } a { color: inherit; } h2 { break-after: avoid; }
}

/* Sign-in, people, acting-as, brand switch */
.login .google { display: inline-block; padding: 10px 18px; font-size: 15px; margin: 6px 0 10px; }
.login h3 { margin-top: 20px; }
.acting { color: var(--gold); } .acting b { color: var(--gold); }
.who select.brandpick { background: transparent; color: #d9ddf5; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 3px 4px; font-size: 12px; }
.top .brand .co { font-weight: 400; font-size: 12px; color: #d9ddf5; margin-left: 8px; letter-spacing: .3px; }
.rolebox { display: inline-block; margin: 2px 10px 2px 0; font-size: 12.5px; white-space: nowrap; } .rolebox input { vertical-align: -2px; margin-right: 3px; }
table.people tr.off td { color: var(--grey); } table.people td.roles { max-width: 360px; }
body[data-brand="brightscape"] { --navy: #241f50; --accent: #336ef1; --gold: #a9c0ff; }
/* Phones */
@media (max-width: 720px) {
  .top { flex-wrap: wrap; height: auto; min-height: 44px; padding: 6px 10px; gap: 6px 10px; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; white-space: nowrap; gap: 0; } .top nav a { padding: 5px 8px; font-size: 13px; }
  .who { margin-left: auto; gap: 6px; } .who > span:first-child { display: none; }
  main { padding: 10px; }
  table { display: block; overflow-x: auto; }
  .cols, .cols.c2, .cols.c3 { display: block; } .cols > * { margin-bottom: 12px; }
  .field-row { display: block; } .field-row > div { margin-bottom: 8px; }
  .row.between { flex-wrap: wrap; gap: 8px; }
  dialog { width: calc(100vw - 20px); max-width: none; }
}
