/* The page's look (the Hub's colours). Its own file, not a <style> in index.html, so the content security policy
   can refuse inline styles. */
:root {
  --accent: #283360; --accent-hover: #1C2547; --accent-tint: #F2F4FA;
  --page: #FFFFFF; --surface: #F2F2F2; --border: #E5E5E5; --text: #0F0F0F; --muted: #606060;
  --check: #FFF4DC; --missing: #FDECEC;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, sans-serif; }
header { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
header .mark { background: var(--accent); color: #fff; font-weight: 700; border-radius: 8px; padding: 6px 9px; }
header h1 { font-size: 20px; margin: 0; }
header .tag { color: var(--muted); font-size: 12px; }
#who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px;
       text-align: right; }
#who b { color: var(--text); }
.button { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--accent); color: #fff;
          font: inherit; cursor: pointer; }
.button:hover { background: var(--accent-hover); }
.button.quiet { background: var(--surface); color: var(--text); }
.button.quiet:hover { background: var(--border); }
main { padding: 18px 24px 40px; max-width: 1400px; }
#status { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
#figures { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.card { background: var(--surface); border-radius: 10px; padding: 8px 14px; min-width: 150px; }
.card-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card-value { font-size: 16px; font-weight: 700; }
#tabs, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--surface); color: var(--text);
        font: inherit; cursor: pointer; }
.chip:hover { background: var(--border); }
.chip.on { background: var(--accent); color: #fff; }
.chip.small { padding: 5px 12px; font-size: 13px; }
#toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 6px; }
select, .search { font: inherit; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
                  background: var(--page); color: var(--text); }
.search { min-width: 260px; }
.switch { color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
h2 { font-size: 16px; margin: 22px 0 6px; }
h3 { font-size: 14px; margin: 14px 0 6px; }
h3 .code { color: var(--muted); font-weight: 400; }
h3 .facts { color: var(--muted); font-weight: 400; margin-left: 10px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
thead th { font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; background: var(--accent-tint); }
thead th:hover { color: var(--accent); }
.r { text-align: right; }
tbody tr[data-do] { cursor: pointer; }
tbody tr[data-do]:hover td { background: var(--accent-tint); }
tr.bad td { background: var(--missing); }
tr.warn td { background: var(--check); }
tr.muted td, tr.past td, .muted { color: var(--muted); }
.hint, .empty { color: var(--muted); }
#panel { position: fixed; top: 0; right: 0; height: 100%; width: min(520px, 100%); background: var(--page);
         border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgba(0,0,0,.08); overflow-y: auto;
         transform: translateX(100%); transition: transform .18s ease; }
#panel.open { transform: none; }
.panel-inner { padding: 22px 24px 40px; }
.panel-inner .close { float: right; border: 0; background: var(--surface); border-radius: 999px; width: 32px;
                      height: 32px; cursor: pointer; font: inherit; }
.eyebrow { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.panel-inner h2 { font-size: 22px; margin: 4px 0 12px; }
table.facts th { color: var(--muted); font-weight: 400; width: 50%; }
table.facts td { white-space: normal; }
.history { padding-left: 18px; color: var(--text); }
.history li { margin: 2px 0; }
.notice { background: var(--accent-tint); border-radius: 12px; padding: 16px 20px; max-width: 760px; }
.notice h3 { margin-top: 0; }
.notice p { color: var(--muted); }
#gate:empty { display: none; }
#gate { display: grid; place-items: center; min-height: calc(100vh - 80px); padding: 24px 16px; }
.gate-card { text-align: center; max-width: 360px; }
.gate-card .mark { display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
                   border-radius: 10px; padding: 8px 12px; }
.gate-card h2 { font-size: 22px; margin: 12px 0 4px; }
.gate-card p { color: var(--muted); margin: 0 0 18px; }
.gate-card .problem { color: #B3261E; margin-top: 14px; }
@media (max-width: 640px) {
  header, main { padding-left: 16px; padding-right: 16px; }
  .search { min-width: 0; width: 100%; }
}
