/* HyperNext One. Light, instrument-grade interface built on the HyperNext palette. */
:root {
  --ground: #F1F2F2;      /* Soft White */
  --surface: #FFFFFF;
  --ink: #1D263D;         /* Midnight Blue */
  --ink-2: #455268;       /* Stone Blue */
  --ink-3: #6B7588;
  --iceberg: #B7C0D2;     /* Iceberg Blue */
  --rule: #DDE1E8;
  --rule-2: #E9ECF1;
  --hover: #F5F6F8;
  --signal: #01E90A;      /* Lazer Green: brand mark, live and active indicators only */
  --signal-ink: #067A12;
  --focus: #1E5FD9;
  --a: #0A7F3F; --a-bg: #E6F4EC;
  --b: #1E5FD9; --b-bg: #E8EFFC;
  --c: #B45309; --c-bg: #FDF1E3;
  --d: #B42318; --d-bg: #FDECEA;
  --mark: #D92D20;
  --mat: #E6E9EE;
  --sans: "Silka", "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "Silka Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-s: 4px; --r: 6px; --r-l: 10px;
  --shadow-pop: 0 1px 2px rgba(29,38,61,.08), 0 8px 28px rgba(29,38,61,.16);
  --bar: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 14px/1.5 var(--sans); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: 24px; } h2 { font-size: 17px; } h3 { font-size: 14.5px; } h4 { font-size: 13px; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: #CFE0FF; }

/* ---------- app bar ---------- */
.bar { height: var(--bar); background: var(--surface); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 14px; padding: 0 18px; position: relative; z-index: 30; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--ink) 0, var(--ink) 120px, transparent 120px); }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.lockup img.hnx { height: 32px; width: auto; display: block; }
.lockup .div { width: 1px; height: 28px; background: var(--rule); }
.lockup .product { font-weight: 600; font-size: 14px; white-space: nowrap; }
/* the portal logo: the HyperNext prong */
.glyph { width: auto; display: block; }
.glyph.inbar { height: 26px; }
.lockup .partner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lockup .partner img { height: 26px; max-width: 120px; object-fit: contain; display: block; }
.lockup .partner span { font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .grow { flex: 1; min-width: 0; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 0; cursor: pointer; }
.menu { position: absolute; right: 12px; top: calc(var(--bar) - 4px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-pop); min-width: 260px; padding: 6px; z-index: 60; }
.menu .meta { padding: 10px 12px 12px; border-bottom: 1px solid var(--rule-2); margin-bottom: 6px; }
.menu .meta b { display: block; }
.menu button { display: flex; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; border-radius: var(--r-s); cursor: pointer; gap: 10px; align-items: center; }
.menu button:hover { background: var(--hover); }
.menu button .ic { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.menu button:disabled { opacity: .6; cursor: default; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--iceberg); background: var(--hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2A3552; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--d); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.block { width: 100%; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(30,95,217,.14); }
input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; height: 52px; }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); padding: 2px; background: var(--surface); gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }

/* ---------- status ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.st.issued { color: var(--ink-2); }
.st.in_review { color: var(--focus); }
.st.superseded, .st.withdrawn { color: var(--ink-3); }
.st.common { color: var(--ink-2); }
.code { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 4px; font-weight: 800; font-size: 12px; color: #fff; }
.code.A { background: var(--a); } .code.B { background: var(--b); } .code.C { background: var(--c); } .code.D { background: var(--d); }
.codepill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(1,233,10,.18); }

/* ---------- alerts, toast ---------- */
.alert { padding: 10px 12px; border-radius: var(--r); font-size: 13px; border: 1px solid; margin-bottom: 14px; }
.alert.err { background: var(--d-bg); border-color: #F3C2BC; color: #8E1C13; }
.alert.ok { background: var(--a-bg); border-color: #B5DEC6; color: #0A5C2E; }
.alert.info { background: #F5F7FA; border-color: var(--rule); color: var(--ink-2); }
.alert.warn { background: #FFF7E8; border-color: #F2D49B; color: #7A4A00; }
.toasts { position: fixed; top: calc(var(--bar) + 14px); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 9px 14px; border-radius: var(--r); font-size: 13px; box-shadow: var(--shadow-pop); animation: toast .18s ease-out; max-width: 90vw; }
.toast.err { background: var(--d); }
@keyframes toast { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } * { transition: none !important; } }

/* ---------- modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(29,38,61,.42); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-l); width: 100%; max-width: 540px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-pop); }
.modal.wide { max-width: 860px; }
.modal header { padding: 18px 22px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal header p { margin-top: 3px; color: var(--ink-2); font-size: 13px; }
.modal .body { padding: 16px 22px; overflow: auto; }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--rule-2); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal footer .grow { flex: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; word-break: break-word; }
.secret { font-family: var(--mono); font-size: 15px; padding: 10px 12px; background: var(--ground); border-radius: var(--r); user-select: all; word-break: break-all; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-2); padding: 9px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.go { cursor: pointer; }
.tbl tr.go:hover td { background: #FAFBFC; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); }
.panel > header { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rule-2); flex-wrap: wrap; }
.panel > header .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel > .pad { padding: 16px 18px; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 32px; height: 34px; width: 240px; }

/* ---------- page shell ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--ink-2); margin-top: 4px; }

/* counters strip: one rule-separated band, not cards */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); margin-bottom: 22px; overflow: hidden; }
.counters > div { padding: 14px 18px; border-left: 1px solid var(--rule-2); }
.counters > div:first-child { border-left: 0; }
.counters .v { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.counters .k { font-size: 12.5px; color: var(--ink-2); }
.counters .v.alarm { color: var(--d); }

@media (max-width: 720px) {
  .page { padding: 18px 14px 40px; }
  .bar { padding: 0 12px; gap: 10px; }
  .lockup .product, .lockup .div.p { display: none; }
  .search input { width: 100%; }
  .row { flex-direction: column; gap: 0; }
  .counters .v { font-size: 22px; }
}
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt18 { margin-top: 18px; } .mb14 { margin: 8px 0 14px; }
.enrol { display: grid; grid-template-columns: 168px 1fr; gap: 20px; align-items: start; }
.enrol .qr svg { width: 168px; height: 168px; display: block; border: 1px solid var(--rule); border-radius: var(--r); padding: 8px; background: #fff; }
@media (max-width: 520px) { .enrol { grid-template-columns: 1fr; } }
.keys { grid-template-columns: 130px 1fr; }
kbd { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; background: var(--ground); }
.row.col { flex-direction: column; gap: 8px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--ground); color: var(--ink-2); white-space: nowrap; }
.pill.on { background: var(--a-bg); color: var(--a); }
.pill.warn { background: var(--c-bg); color: var(--c); }
.pill.off { background: var(--d-bg); color: var(--d); }

/* password rules checklist */
.pwrules { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.pwrules li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); transition: color .15s; }
.pwrules li .ic { width: 16px; height: 16px; flex: none; }
.pwrules li.ok { color: var(--a); }

/* first-use guide */
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-dim { position: absolute; inset: 0; background: rgba(29,38,61,.55); }
.tour-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(29,38,61,.55), 0 0 0 2px var(--signal); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--surface); border-radius: 14px; box-shadow: 0 2px 6px rgba(29,38,61,.12), 0 18px 48px rgba(29,38,61,.28); padding: 18px 20px 16px; outline: none; transition: left .25s ease, top .25s ease; }
.tour-card.centre { width: min(440px, calc(100vw - 24px)); padding: 26px 26px 20px; }
.tour-card.centre h3 { font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.tour-card.docked { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; transform: none !important; }
.tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tour-n { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tour-skip { border: 0; background: none; font-size: 12.5px; color: var(--ink-3); cursor: pointer; padding: 2px 0; }
.tour-skip:hover { color: var(--ink); text-decoration: underline; }
.tour-card h3 { font-size: 16px; margin-bottom: 6px; }
.tour-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tour-dots { display: flex; gap: 5px; margin: 14px 0 12px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--rule); transition: width .2s; }
.tour-dots span.on { width: 18px; background: var(--ink); }
.tour-acts { display: flex; justify-content: flex-end; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; } }

/* message pop-up */
.msgpop .modal { max-width: 560px; border-top: 4px solid var(--signal); }
.msgpop .modal header h2 { font-size: 22px; letter-spacing: -0.02em; }
.msgbody { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
/* BOQ Excel request: reason shown in the decision dialog */
.xreason { padding: 10px 12px; background: #F6F7F9; border-left: 3px solid var(--ink, #1D263D); margin-bottom: 14px; }
.xreason p { margin: 4px 0 0; white-space: pre-wrap; }
.dlg h3 { font-size: 13px; font-weight: 650; margin: 0 0 8px; }
.dlg + .dlg { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-2); }

/* ---------- collaboration: RFIs and submittals ---------- */
.bad-t { color: var(--d); } .warn-t { color: var(--c); }
.ctab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctab th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-bottom: 1px solid var(--rule); background: #F7F8FA; white-space: nowrap; }
.ctab td { padding: 9px 12px; border-bottom: 1px solid var(--rule-2, #EEF0F4); vertical-align: top; }
.ctab tbody tr { cursor: pointer; }
.ctab tbody tr:hover td { background: #F7F9FC; }
.ctab tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--d); }
.ctab .ttl { font-weight: 500; } .ctab .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ctab .nw, .cmeta .nw { white-space: nowrap; }
.cmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.cpost { border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 14px; margin-bottom: 10px; background: var(--surface); }
.cpost.q { background: #F7F9FC; }
.cpost.ans { border-left: 3px solid var(--a); }
.cpost.st { border: 0; padding: 2px 4px; background: none; }
.cpost .ch { font-size: 13px; margin-bottom: 4px; }
.cpost .cb { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.cfiles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 14px; font-size: 12.5px; background: var(--surface); color: var(--ink); text-decoration: none; max-width: 100%; }
.fchip svg { width: 14px; height: 14px; flex: none; }
a.fchip:hover { border-color: var(--focus); }
.fchip button { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; }
.cpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cpick .fl { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.cpick .fl:empty { display: none; }
.ccompose { margin-top: 16px; display: grid; gap: 8px; }
.ccompose textarea { width: 100%; }
.crev h3 { font-size: 14px; margin: 14px 0 8px; }
.seg.codes { flex-wrap: wrap; }
.collab-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.collab-head .grow { flex: 1; }
.collab-empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.collab-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.modal.xwide { max-width: 1160px; }

/* ---------------------------------------------------------------
   Vendor welcome. One quiet screen: what the campus is, what has
   been built, and what is waiting on this vendor.
   --------------------------------------------------------------- */
.wel { margin: 0 0 18px; }
/* Delay notices, above everything else on the welcome screen */
.wel .warns { margin-bottom: 20px; border: 1px solid #F0C2BD; border-radius: 16px; background: #FDF4F3; padding: 22px 24px; }
.wel .warns h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; color: #8E2020; }
.wel .warns .note { margin: 6px 0 16px; font-size: 13px; line-height: 1.55; color: var(--ink-2); max-width: 90ch; }
.wel .wn { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.wel .wn:last-child { margin-bottom: 0; }
.wel .wn.final { border-color: #E0908A; }
.wel .wn .wh { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.wel .wn .wh b { font-size: 14.5px; }
.wel .wn .lv { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #FDECEA; color: #B42318; }
.wel .wn.notice .lv { background: #FFF6E6; color: #8A5A00; }
.wel .wn .late { font-size: 12px; font-weight: 600; color: #B42318; }
.wel .wn p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.wel .wn .wm { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.wel .wn .wok { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: #15692B; }
.wel .wn .wbtn { margin-top: 14px; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #11182B; color: #fff; }
.wel .wn .wbtn:hover { background: #1D263D; }

.wel .hero { position: relative; overflow: hidden; border-radius: 18px; background: #11182B; color: #fff; padding: 56px 44px 46px; }
.wel .hero::after { content: ''; position: absolute; inset: auto -10% -60% 55%; height: 320px; background: radial-gradient(closest-side, rgba(1,233,10,.22), transparent 70%); pointer-events: none; }
@media (max-width: 720px) { .wel .hero { padding: 34px 22px 30px; border-radius: 14px; } }
.wel .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #01E90A; margin: 0 0 18px; }
.wel h1 { margin: 0; font-size: clamp(30px, 5.2vw, 54px); line-height: 1.04; letter-spacing: -.022em; font-weight: 700; max-width: 16ch; }
.wel h1 em { font-style: normal; color: #01E90A; }
.wel .sub { margin: 18px 0 0; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55; color: #C6CEDD; max-width: 52ch; }
.wel .greet { margin: 26px 0 0; font-size: 14px; color: #8E99AE; }
.wel .greet b { color: #fff; font-weight: 600; }
.wel .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 34px; }
.wel .figs div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }
.wel .figs b { display: block; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; letter-spacing: -.02em; }
.wel .figs b i { font-style: normal; font-size: .5em; letter-spacing: 0; color: #8E99AE; margin-left: 3px; }
.wel .figs span { display: block; margin-top: 5px; font-size: 11.5px; color: #8E99AE; }

.wel .built { margin-top: 14px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--surface); padding: 22px 24px; }
.wel .built h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.wel .built .note { margin: 4px 0 16px; font-size: 12.5px; color: var(--ink-2); }
.wel .pkgs { display: grid; gap: 12px; }
.wel .pkg .ln { display: flex; gap: 8px; align-items: baseline; }
.wel .pkg b { font-size: 13.5px; }
.wel .pkg .sc { font-size: 12px; color: var(--ink-2); flex: 1; }
.wel .pkg .amt { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .wel .pkg .ln { flex-wrap: wrap; } .wel .pkg .sc { flex-basis: 100%; } }
.wel .pkg .t { height: 7px; border-radius: 4px; background: rgba(17,24,43,.08); margin-top: 7px; overflow: hidden; }
.wel .pkg .t i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #11182B, #2C3A5C); }
.wel .pkg:nth-child(2) .t i { background: linear-gradient(90deg, #15692B, #01E90A); }
.wel .pkg:nth-child(3) .t i { background: linear-gradient(90deg, #5A4A12, #D9B429); }
.wel .total { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--rule-2); font-size: 13px; display: flex; justify-content: space-between; }
.wel .total b { font-variant-numeric: tabular-nums; }

.wel .yours { margin-top: 14px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--surface); padding: 22px 24px; }
.wel .yours h2 { margin: 0 0 3px; font-size: 15px; }
.wel .yours .note { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); }
.wel .todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.wel .todo button { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--surface); padding: 13px 15px; cursor: pointer; color: var(--ink); transition: border-color .12s, transform .12s; }
.wel .todo button:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.wel .todo b { font-size: 24px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wel .todo span { font-size: 12.5px; color: var(--ink-2); }
.wel .clear { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.wel .clear b { color: var(--c-ink); }

.wel .green { margin-top: 14px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--surface); padding: 22px 24px; }
.wel .green h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.wel .green .note { margin: 4px 0 18px; font-size: 12.5px; color: var(--ink-2); }
.wel .gl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 24px; }
.wel .gl > div { border-top: 2px solid #01E90A; padding-top: 11px; }
.wel .gl b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.wel .gl p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }

.wel .trust { margin-top: 14px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--surface); padding: 22px 24px; }
.wel .trust h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.wel .trust .note { margin: 4px 0 18px; font-size: 12.5px; color: var(--ink-2); max-width: 70ch; }
.wel .rec { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.wel .rec + .rec { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.wel .rec > div { border-left: 2px solid var(--ink); padding-left: 12px; }
.wel .rec.live > div { border-left-color: #01E90A; }
.wel .rec b { display: block; font-size: 19px; letter-spacing: -.02em; line-height: 1.15; }
.wel .rec b i { font-style: normal; font-size: .62em; color: var(--ink-2); margin-left: 3px; }
.wel .rec span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.wel .trust .mine { margin: 16px 0 0; font-size: 13px; }
.wel .gl.prom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.wel .gl.prom > div { border-top-color: var(--ink); }

.wel .wall { margin-top: 14px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--surface); padding: 22px 24px; }
.wel .wall h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.wel .wall .note { margin: 4px 0 18px; font-size: 12.5px; color: var(--ink-2); }
.wel .logos { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.wel .logos .lg { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 96px; padding: 6px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: #fff; }
.wel .logos .lg img { max-height: 30px; max-width: 128px; object-fit: contain; display: block; }
.wel .logos .nm { display: inline-flex; align-items: center; height: 46px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); background: var(--surface); }

/* ---------- loading screen ---------- */
#boot { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--ground); transition: opacity .4s ease; }
#boot.gone { opacity: 0; pointer-events: none; }
#boot .boot-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 24px; }
#boot .boot-glyph { height: 64px; width: auto; animation: bootProng .7s cubic-bezier(.2,.7,.3,1) .05s backwards; }
#boot .boot-name { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); opacity: 0; animation: bootIn .5s ease .25s forwards; }
#boot .boot-bar { width: 190px; height: 2px; border-radius: 2px; background: var(--rule); overflow: hidden; position: relative; opacity: 0; animation: bootIn .4s ease .3s forwards; }
#boot .boot-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 56px; border-radius: 2px; background: var(--signal); animation: bootSweep 1.15s ease-in-out infinite; }
#boot .boot-note { font-size: 12px; color: var(--ink-3); opacity: 0; animation: bootIn .4s ease .45s forwards; }
@keyframes bootIn { to { opacity: 1; } }
@keyframes bootProng { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes bootSweep { 0% { left: 0; } 50% { left: calc(100% - 56px); } 100% { left: 0; } }
@media (prefers-reduced-motion: reduce) {
  #boot .boot-glyph, #boot .boot-name, #boot .boot-bar, #boot .boot-note { opacity: 1; animation: none; }
  #boot .boot-bar::after { animation: none; }
}

/* ---------- drawings assigned to a named reviewer ---------- */
.myrev { border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); padding: 16px 18px 10px; margin-bottom: 18px; }
.myrev header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.myrev header h2 { margin: 0; font-size: 16px; }
.rvrow { display: grid; grid-template-columns: 1fr 180px 150px 120px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-s); margin-bottom: 8px; text-decoration: none; color: inherit; }
.rvrow:hover { background: var(--hover); border-color: var(--rule); }
.rvrow.late { border-color: #F0C2BD; background: #FDF4F3; }
.rvrow .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rvrow .t span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvrow .v, .rvrow .d { font-size: 13px; color: var(--ink-2); }
.rvdone { margin: 6px 0 4px; }
.rvdone summary { font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 6px 2px; }
@media (max-width: 860px) { .rvrow { grid-template-columns: 1fr; gap: 4px; } }

/* the reviewer's own panel on a drawing */
.rvpanel { border: 1px solid var(--rule); border-left: 3px solid var(--signal); border-radius: var(--r); background: var(--surface); padding: 12px 14px; }
.rvpanel.late { border-left-color: #B42318; }
.rvpanel.done { border-left-color: var(--ink-3); }
.rvpanel .rvh { font-weight: 600; margin-bottom: 4px; }
.rvpanel .rvnote { font-size: 13px; color: var(--ink-2); margin: 4px 0 6px; }
.rvpanel .rvdec { font-size: 15px; margin: 6px 0; }
.rvpanel .rvdec b { font-size: 18px; margin-right: 6px; }

/* reviewers listed on a drawing, for HyperNext */
.rvlist { display: flex; flex-direction: column; gap: 8px; }
.rvi { border-left: 2px solid var(--rule); padding: 2px 0 2px 10px; }
.rvi.done { border-left-color: var(--signal); }
.rvi.late { border-left-color: #B42318; }
.rvi b { display: block; font-size: 13px; }

/* widths and offsets set in markup; the content security policy forbids inline styles */
[data-mw="120"] { max-width: 120px; }
[data-mw="140"] { max-width: 140px; }
[data-mw="150"] { max-width: 150px; }
[data-mw="160"] { max-width: 160px; }
[data-mw="170"] { max-width: 170px; }
[data-mw="180"] { max-width: 180px; }
[data-mw="190"] { max-width: 190px; }
[data-mw="200"] { max-width: 200px; }
[data-mw="210"] { max-width: 210px; }
[data-mw="220"] { max-width: 220px; }
[data-mw="230"] { max-width: 230px; }
[data-mw="240"] { max-width: 240px; }
[data-mw="260"] { max-width: 260px; }
[data-mt="22"] { margin-top: 22px; }
