/* Keyplan design review. Tokens first, then the review site, then the product UI. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  /* Brand */
  --ink: #0f1d2b;
  --blueprint: #1b5592;
  --blueprint-deep: #123f6e;
  --blueprint-tint: #e8eff7;
  --blueprint-line: #c9d8e8;
  --film: #f3f5f7;
  --sheet: #ffffff;
  --graphite: #586474;
  --rule: #d8dfe6;
  --rule-soft: #e9edf1;
  --grid: #eef2f6;

  /* Meaning (shared with HM Intel) */
  --hazard: #da2c2f;
  --hazard-tint: #fdecec;
  --approved: #12805f;
  --approved-fill: #16a37b;
  --approved-tint: #e3f5ee;
  --attention: #8f5d12;
  --attention-fill: #b7791f;
  --attention-tint: #fdf3df;
  --guide: #f59e1b;

  /* HM Intel */
  --hmi-ink: #02101b;
  --hmi-raised: #172534;
  --hmi-page: #f3f6f9;
  --hmi-line: #e1e7ee;
  --hmi-head: #0b1622;
  --hmi-text: #3e4b5b;
  --hmi-sub: #66758a;
  --hmi-red: #da2c2f;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  --r-control: 8px;
  --r-panel: 12px;
  --r-frame: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--film);
  color: var(--ink);
  font: 400 16px/1.55 var(--ui);
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blueprint); text-underline-offset: 3px; }
a:hover { color: var(--blueprint-deep); }
:focus-visible { outline: 3px solid var(--blueprint); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Review site chrome ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 245, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head-in {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup svg { width: 28px; height: 28px; flex: none; }
.wordmark { font: 700 21px/1 var(--display); font-stretch: 112%; letter-spacing: -0.015em; color: var(--ink); }
.lockup .by { font: 500 13px/1 var(--ui); color: var(--graphite); margin-left: 2px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav a {
  font: 500 14.5px/1 var(--ui); color: var(--graphite); text-decoration: none;
  padding: 10px 12px; border-radius: var(--r-control); white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--rule-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page-intro { padding: 56px 0 32px; max-width: 760px; }
.page-intro h1 {
  font: 650 44px/1.08 var(--display); font-stretch: 104%; letter-spacing: -0.02em; margin: 0 0 14px;
}
.page-intro p { font-size: 18px; color: var(--graphite); margin: 0; max-width: 64ch; }

.section { padding: 40px 0 24px; }
.section > h2 {
  font: 650 28px/1.15 var(--display); font-stretch: 104%; letter-spacing: -0.015em; margin: 0 0 8px;
}
.section > .lede { color: var(--graphite); max-width: 70ch; margin: 0 0 24px; }
.section h3 { font: 650 19px/1.25 var(--display); font-stretch: 100%; margin: 0 0 8px; }

.site-foot {
  margin-top: 64px; border-top: 1px solid var(--rule); padding: 28px 0 48px;
  color: var(--graphite); font-size: 14px;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* Screen frames */
.shot { margin: 0 0 56px; }
.shot-cap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 14px; max-width: 76ch; }
.shot-cap h3 { margin: 0; }
.shot-cap p { margin: 0; color: var(--graphite); }
.frame {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-frame);
  overflow: hidden; box-shadow: 0 1px 0 rgba(15, 29, 43, 0.04), 0 24px 48px -32px rgba(15, 29, 43, 0.28);
}
.frame-bar {
  height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-bottom: 1px solid var(--rule-soft); background: #fafbfc;
  font: 500 12.5px/1 var(--ui); color: var(--graphite);
}
.frame-bar .path { padding: 6px 12px; background: var(--film); border-radius: 999px; }
.stage { overflow-x: auto; }
.screen { width: 1280px; transform-origin: top left; }
.stage.scaled { overflow: hidden; }

/* Phones */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; align-items: start; }
.phone-wrap { width: 100%; max-width: 390px; }
.phone-wrap .shot-cap { margin-top: 16px; }
.phone {
  width: 390px; height: 844px;
  border-radius: 46px; padding: 10px; background: #0b1218;
  box-shadow: 0 30px 60px -36px rgba(2, 16, 27, 0.55);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 37px; overflow: hidden; position: relative;
  background: var(--hmi-page); display: flex; flex-direction: column;
}

/* ---------- Brand marks ---------- */

.mark-ink { fill: none; stroke: var(--ink); }
.mark-fill { fill: var(--blueprint); }

/* ---------- Status ---------- */

.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 12.5px/1 var(--ui); padding: 6px 10px 6px 8px; border-radius: 999px;
  border: 1px solid transparent;
}
.status svg { width: 14px; height: 14px; flex: none; }
.st-draft { color: var(--graphite); background: var(--sheet); border-color: var(--rule); }
.st-owner { color: var(--ink); background: var(--rule-soft); }
.st-submitted { color: var(--blueprint-deep); background: var(--blueprint-tint); }
.st-approved { color: var(--approved); background: var(--approved-tint); }
.st-returned { color: var(--attention); background: var(--attention-tint); }

/* ---------- Product UI (owner and department portals) ---------- */

.app { background: var(--film); font-size: 14px; line-height: 1.45; color: var(--ink); }
.app-head {
  height: 60px; background: var(--sheet); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
}
.app-head .lockup svg { width: 24px; height: 24px; }
.app-head .wordmark { font-size: 18px; }
.app-org {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid var(--rule); border-radius: var(--r-control); font-weight: 500; color: var(--ink);
}
.app-org small { color: var(--graphite); font-weight: 500; }
.app-org { white-space: nowrap; }
.app-org svg { width: 16px; height: 16px; color: var(--graphite); }
.app-nav { display: flex; gap: 2px; }
.app-nav span { padding: 8px 12px; border-radius: var(--r-control); color: var(--graphite); font-weight: 500; }
.app-nav .on { color: var(--ink); background: var(--rule-soft); }
.app-user { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--graphite); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blueprint-tint); color: var(--blueprint-deep); font: 600 12px/1 var(--ui);
}
.app-body { padding: 24px 28px 32px; }
.crumbs { color: var(--graphite); font-size: 13px; margin-bottom: 8px; }
.crumbs b { color: var(--ink); font-weight: 500; }
.titlerow { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.titlerow h1 { font: 650 26px/1.15 var(--display); font-stretch: 102%; letter-spacing: -0.015em; margin: 0; }
.titlerow .sub { color: var(--graphite); margin-top: 4px; }
.titlerow .actions { margin-left: auto; display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-control);
  font: 600 13.5px/1 var(--ui); border: 1px solid var(--rule); background: var(--sheet); color: var(--ink);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blueprint); border-color: var(--blueprint); color: #fff; }
.btn-approve { background: var(--approved); border-color: var(--approved); color: #fff; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--graphite); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.tabs span { padding: 0 0 12px; color: var(--graphite); font-weight: 500; position: relative; }
.tabs .on { color: var(--ink); }
.tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blueprint); }
.tabs .count { color: var(--graphite); font-weight: 500; margin-left: 4px; }

.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-panel); }
.panel-head { padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); display: flex; align-items: center; gap: 10px; }
.panel-head h2 { font: 650 15px/1.2 var(--display); margin: 0; }
.panel-head .meta { margin-left: auto; color: var(--graphite); font-size: 12.5px; }

/* Buildings table */
.btable { width: 100%; border-collapse: collapse; }
.btable th {
  text-align: left; font: 500 12.5px/1 var(--ui); color: var(--graphite);
  padding: 12px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.btable td { padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.btable tr:last-child td { border-bottom: 0; }
.bname { display: flex; align-items: center; gap: 14px; }
.bname b { display: block; font-weight: 600; font-size: 14.5px; }
.bname small { color: var(--graphite); font-size: 13px; }
.fp { width: 52px; height: 40px; flex: none; border-radius: 6px; background: var(--film); border: 1px solid var(--rule-soft); }
.fp svg { width: 52px; height: 40px; }
.muted { color: var(--graphite); }
.small { font-size: 12.5px; }
.note-attn { color: var(--attention); font-weight: 500; }

/* Sheet: the plan drawing, the brand's centre piece */
.sheet {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-panel);
  overflow: hidden;
}
.sheet-tools {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft);
}
.tool {
  height: 32px; min-width: 32px; padding: 0 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--graphite); font-weight: 500; font-size: 13px; border: 1px solid transparent;
}
.tool svg { width: 16px; height: 16px; }
.tool.on { color: var(--blueprint-deep); background: var(--blueprint-tint); border-color: var(--blueprint-line); }
.tools-sep { width: 1px; height: 20px; background: var(--rule); margin: 0 4px; }
.floorsel { margin-left: auto; display: flex; gap: 2px; padding: 3px; background: var(--film); border-radius: 9px; }
.floorsel span { padding: 6px 10px; border-radius: 7px; color: var(--graphite); font-weight: 500; font-size: 13px; }
.floorsel .on { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }

.plan { position: relative; aspect-ratio: 1000 / 660; }
.plan > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: miter; }
.pl-part { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.pl-thin { fill: none; stroke: #8794a3; stroke-width: 1; }
.pl-rack { fill: #f1f4f7; stroke: #b8c2cd; stroke-width: 1; }
.pl-grid { stroke: #c9d3de; stroke-width: 1; stroke-dasharray: 2 6; }
.pl-bubble { fill: var(--sheet); stroke: #8794a3; stroke-width: 1.2; }
.pl-bubble-t { font: 600 13px/1 var(--display); font-stretch: 90%; fill: var(--graphite); text-anchor: middle; }
.pl-room, .pl-roomsub { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; text-anchor: middle; }
.pl-room { font: 600 17px/1 var(--display); font-stretch: 86%; fill: var(--ink); }
.pl-roomsub { font: 500 12.5px/1 var(--ui); fill: var(--graphite); }
.pl-door { fill: none; stroke: #8794a3; stroke-width: 1.2; }
.pl-dock { fill: #f7f9fa; stroke: #8794a3; stroke-width: 1.2; }
.pl-store { fill: url(#hatch); stroke: var(--hazard); stroke-width: 1.5; stroke-dasharray: 5 3; }
.pl-cage { fill: url(#hatch); stroke: var(--hazard); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pl-street { fill: #eef1f4; }
.pl-street-t { font: 600 12px/1 var(--display); font-stretch: 100%; fill: #8794a3; letter-spacing: 0.08em; text-anchor: middle; }
.pl-north { fill: var(--ink); }
.pl-scale { font: 500 10px/1 var(--ui); fill: var(--graphite); }

/* Markers sit on the drawing at fractions of its width and height, as stored */
.mk {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center; z-index: 2;
}
.mk-hz {
  width: 30px; height: 30px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--hazard); border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(218, 44, 47, 0.35);
}
.mk-hz span { transform: rotate(-45deg); color: #fff; font: 700 12px/1 var(--display); font-stretch: 90%; }
.mk-ft {
  min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px;
  background: var(--ink); color: #fff; font: 700 10.5px/1 var(--display); font-stretch: 92%; letter-spacing: 0.03em;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15, 29, 43, 0.3);
}
.mk-ex {
  min-width: 34px; height: 22px; padding: 0 5px; border-radius: 5px;
  background: var(--approved-fill); color: #fff; font: 700 10px/1 var(--display); font-stretch: 92%;
  border: 2px solid #fff;
}
.mk.sel::after {
  content: ""; position: absolute; inset: -9px; border-radius: 10px;
  border: 2px solid var(--blueprint); background: rgba(27, 85, 146, 0.08);
}
.mk-hz.sel::after { inset: -8px; border-radius: 6px; }
.mk-tag {
  position: absolute; transform: translate(-50%, 0); z-index: 3;
  background: var(--ink); color: #fff; font: 500 11.5px/1.25 var(--ui); padding: 6px 9px; border-radius: 6px; white-space: nowrap;
}

/* Title block: status written the way a drawing records it */
.titleblock {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--ink);
  font-size: 12.5px;
}
.titleblock > div { padding: 10px 14px; border-right: 1px solid var(--rule); }
.titleblock > div:last-child { border-right: 0; }
.titleblock dt { color: var(--graphite); font-size: 11.5px; }
.titleblock dd { margin: 2px 0 8px; font-weight: 600; }
.titleblock dd:last-child { margin-bottom: 0; }
.tb-name { font: 650 15px/1.2 var(--display); }

.stamp {
  display: inline-block; transform: rotate(-3deg);
  border: 2px solid var(--approved); border-radius: 10px; padding: 3px;
  color: var(--approved);
}
.stamp-in { border: 1px solid var(--approved); border-radius: 7px; padding: 8px 14px 9px; text-align: center; }
.stamp b { display: block; font: 750 17px/1.1 var(--display); font-stretch: 110%; letter-spacing: 0.01em; }
.stamp span { display: block; font: 600 11px/1.35 var(--ui); white-space: nowrap; }

/* Right-hand inspector */
.inspector { display: flex; flex-direction: column; }
.area { border-bottom: 1px solid var(--rule-soft); padding: 14px 16px; }
.area:last-child { border-bottom: 0; }
.area-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.area-head b { font-weight: 600; }
.area-head .muted { margin-left: auto; font-size: 12.5px; }
.area.on { background: #f8fafc; box-shadow: inset 3px 0 0 var(--blueprint); }
.mat { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.mat + .mat { border-top: 1px dashed var(--rule-soft); }
.dia {
  width: 20px; height: 20px; transform: rotate(45deg); border-radius: 3px; margin: 3px;
  background: var(--hazard); display: grid; place-items: center;
}
.dia span { transform: rotate(-45deg); color: #fff; font: 700 9.5px/1 var(--display); }
.dia.none { background: var(--sheet); border: 1.5px dashed var(--attention-fill); }
.dia.none span { color: var(--attention); }
.mat b { font-weight: 600; display: block; }
.mat small { color: var(--graphite); font-size: 12.5px; }
.qty { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty small { display: block; font-weight: 500; }
.guidepill {
  display: inline-block; padding: 2px 6px; border-radius: 5px; background: var(--guide); color: #1b1203;
  font: 700 11px/1.3 var(--ui); font-variant-numeric: tabular-nums;
}
.unmatched {
  margin-top: 6px; padding: 10px 12px; border-radius: var(--r-control);
  background: var(--attention-tint); color: var(--attention); font-size: 12.5px; line-height: 1.4;
}
.field {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--sheet); color: var(--graphite);
}
.field.focus { border-color: var(--blueprint); box-shadow: 0 0 0 3px rgba(27, 85, 146, 0.14); color: var(--ink); }
.field svg { width: 16px; height: 16px; }
.lookup { margin-top: 6px; border: 1px solid var(--rule); border-radius: var(--r-control); overflow: hidden; background: var(--sheet); }
.lookup div { padding: 9px 12px; display: flex; gap: 10px; align-items: center; }
.lookup div + div { border-top: 1px solid var(--rule-soft); }
.lookup .hl { background: var(--blueprint-tint); }
.lookup em { font-style: normal; color: var(--graphite); margin-left: auto; font-size: 12px; }

/* Checklist and dialog */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 18px; height: 18px; margin-top: 1px; }
.ok { color: var(--approved); }
.warn { color: var(--attention-fill); }
.scrim { position: absolute; inset: 0; background: rgba(15, 29, 43, 0.42); z-index: 5; }
.dialog {
  position: absolute; z-index: 6; background: var(--sheet); border-radius: 14px; width: 520px;
  box-shadow: 0 30px 80px -20px rgba(2, 16, 27, 0.5); overflow: hidden;
}
.dialog-head { padding: 20px 24px 6px; }
.dialog-head h2 { font: 650 20px/1.2 var(--display); margin: 0 0 4px; }
.dialog-body { padding: 10px 24px 6px; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px 20px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; padding: 12px 14px; background: var(--film); border-radius: var(--r-control); margin: 8px 0 14px; }
.kv dt { color: var(--graphite); }
.kv dd { margin: 0; font-weight: 600; }
.tick { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 10px 0; }
.box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--blueprint); background: var(--blueprint); display: grid; place-items: center; margin-top: 1px; }
.box svg { width: 12px; height: 12px; color: #fff; }
.box.empty { background: var(--sheet); border-color: #9aa6b4; }
.textarea { border: 1px solid var(--rule); border-radius: var(--r-control); padding: 10px 12px; min-height: 64px; color: var(--ink); }

/* Revision table */
.revs { width: 100%; border-collapse: collapse; font-size: 13px; }
.revs th { text-align: left; font-weight: 500; color: var(--graphite); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--ink); }
.revs td { padding: 11px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.revs .v { font: 650 15px/1 var(--display); }

/* Department map */
.map { position: relative; background: #eef1f3; }
.map svg { width: 100%; height: 100%; }
.mp-road { stroke: #ffffff; stroke-linecap: round; fill: none; }
.mp-road-edge { stroke: #dde3e8; stroke-linecap: round; fill: none; }
.mp-label { font: 500 11px/1 var(--ui); fill: #7c8896; }
.mp-area { fill: rgba(27, 85, 146, 0.05); stroke: var(--blueprint); stroke-width: 2; stroke-dasharray: 8 6; }
.mp-block { fill: #e3e8ec; }
.mp-water { fill: #d9e6ef; }
.pin { position: absolute; transform: translate(-50%, -100%); z-index: 2; display: grid; justify-items: center; }
.pin-dot {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(15, 29, 43, 0.3);
}
.pin-dot svg { transform: rotate(45deg); width: 14px; height: 14px; color: #fff; }
.pin-approved { background: var(--approved-fill); }
.pin-submitted { background: var(--blueprint); }
.pin-owner { background: #6b7786; }
.pin-returned { background: var(--attention-fill); }
.pin-label {
  margin-top: 4px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px;
  padding: 4px 8px; font: 600 11.5px/1.2 var(--ui); white-space: nowrap;
}
.queue-item { padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.queue-item.on { background: #f8fafc; box-shadow: inset 3px 0 0 var(--blueprint); }
.queue-item b { font-weight: 600; }
.queue-item .muted { font-size: 12.5px; }
.waiting { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--rule-soft); font-size: 12.5px; color: var(--graphite); }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.note-card { padding: 12px 14px; border-radius: var(--r-control); background: #f8fafc; border: 1px solid var(--rule-soft); }
.note-card b { font-weight: 600; }

/* ---------- HM Intel screens ---------- */

.hmi { font-family: var(--ui); color: var(--hmi-text); font-size: 14px; line-height: 1.4; }
.hmi-status { height: 44px; background: var(--hmi-ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font: 600 14px/1 var(--ui); flex: none; }
.hmi-status .icons { display: flex; gap: 6px; align-items: center; }
.hmi-status .icons i { display: block; width: 16px; height: 10px; border-radius: 2px; background: #fff; opacity: 0.9; }
.hmi-head { background: var(--hmi-ink); color: #fff; padding: 8px 16px 16px; flex: none; }
.hmi-head-row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.hmi-head-row svg.logo { width: 30px; height: 30px; }
.hmi-title { font: 700 20px/1.2 var(--ui); letter-spacing: -0.2px; color: #fff; }
.hmi-back { display: inline-flex; align-items: center; gap: 2px; color: #fff; font: 600 15px/1 var(--ui); padding: 8px 10px 8px 4px; border-radius: 10px; background: var(--hmi-raised); }
.hmi-back svg { width: 18px; height: 18px; }
.hmi-eyebrow { color: #ff3b3f; font: 600 12.5px/1 var(--ui); margin-bottom: 4px; }
.hmi-search {
  margin-top: 12px; height: 48px; border-radius: 12px; background: var(--hmi-raised); border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #a9b5c2; font-size: 15px;
}
.hmi-search svg { width: 18px; height: 18px; }
.hmi-body { flex: 1; overflow: hidden; padding: 14px 14px 0; }
.hmi-sect { font: 700 13px/1 var(--ui); color: var(--hmi-head); margin: 6px 4px 10px; display: flex; align-items: center; gap: 8px; }
.hmi-sect .muted { color: var(--hmi-sub); font-weight: 500; margin-left: auto; }
.hmi-card { background: #fff; border-radius: 16px; border: 1px solid var(--hmi-line); margin-bottom: 10px; overflow: hidden; }
.hmi-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; align-items: center; }
.hmi-row + .hmi-row { border-top: 1px solid var(--hmi-line); }
.hmi-row b { color: var(--hmi-head); font: 600 15.5px/1.25 var(--ui); }
.hmi-row small { color: var(--hmi-sub); font-size: 13px; display: block; margin-top: 2px; }
.hmi-dist { font: 700 15px/1 var(--ui); color: var(--hmi-head); font-variant-numeric: tabular-nums; text-align: right; }
.hmi-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font: 600 12px/1 var(--ui); margin-top: 6px; width: max-content; }
.hmi-pill svg { width: 12px; height: 12px; }
.hmi-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #eaf3fc; color: #1d4f99; font-size: 13px; line-height: 1.4; margin-bottom: 12px; border: 1px solid #d3e3f6; }
.hmi-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.hmi-banner { border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.hmi-banner svg { width: 24px; height: 24px; }
.hmi-banner b { display: block; font: 700 15px/1.3 var(--ui); }
.hmi-banner span { font-size: 13px; }
.hmi-banner.ok { background: var(--approved-tint); color: #0e6b50; border: 1px solid #bfe6d6; }
.hmi-contact { display: grid; grid-template-columns: 1fr 52px; gap: 12px; padding: 12px 12px 12px 16px; align-items: center; }
.hmi-contact + .hmi-contact { border-top: 1px solid var(--hmi-line); }
.hmi-contact b { color: var(--hmi-head); font: 600 15px/1.25 var(--ui); display: block; }
.hmi-call { width: 52px; height: 52px; border-radius: 14px; background: var(--hmi-red); display: grid; place-items: center; }
.hmi-call svg { width: 22px; height: 22px; color: #fff; }
.ah { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: var(--hmi-ink); color: #fff; font: 600 10.5px/1.3 var(--ui); vertical-align: 1px; }
.hmi-area { padding: 12px 16px 6px; }
.hmi-area + .hmi-area { border-top: 1px solid var(--hmi-line); }
.hmi-area-name { font: 600 12.5px/1 var(--ui); color: var(--hmi-sub); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.hmi-area-name svg { width: 13px; height: 13px; }
.hmi-good { display: grid; grid-template-columns: 44px 1fr 18px; gap: 12px; align-items: center; padding: 6px 0 10px; }
.hmi-good b { color: var(--hmi-head); font: 600 15px/1.25 var(--ui); display: block; }
.hmi-good small { font-size: 12.5px; color: var(--hmi-sub); }
.hmi-good > svg { width: 18px; height: 18px; color: var(--hmi-sub); }
.placard { width: 40px; height: 40px; transform: rotate(45deg); border-radius: 4px; margin: 2px; display: grid; place-items: center; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #c9d1da; overflow: hidden; position: relative; }
.placard span { transform: rotate(-45deg); font: 800 12px/1 var(--ui); color: #fff; position: relative; z-index: 1; }
.pl-c2 { background: #d71920; }
.pl-c3 { background: #d71920; }
.pl-c8 { background: linear-gradient(135deg, #fff 50%, #111 50%); }
.pl-c8 span { color: #fff; font-size: 11px; transform: rotate(-45deg) translate(0, 7px); }
.hmi-tabbar { height: 82px; background: #fff; border-top: 1px solid var(--hmi-line); display: grid; grid-template-columns: repeat(6, 1fr); padding: 8px 4px 22px; flex: none; }
.hmi-tabbar span { display: grid; justify-items: center; gap: 4px; font: 600 10.5px/1 var(--ui); color: var(--hmi-sub); }
.hmi-tabbar svg { width: 23px; height: 23px; }
.hmi-tabbar .on { color: var(--hmi-red); }
.hmi-attrib { text-align: center; color: var(--hmi-sub); font-size: 12px; padding: 4px 0 14px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.hmi-attrib svg { width: 14px; height: 14px; }
.hmi-chips { display: flex; gap: 8px; padding: 0 2px 12px; }
.hmi-chip { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1 var(--ui); background: #fff; border: 1px solid var(--hmi-line); color: var(--hmi-head); }
.hmi-chip.on { background: var(--hmi-ink); color: #fff; border-color: var(--hmi-ink); }
.hmi-chip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.hmi-plan { background: #fff; border-radius: 16px; border: 1px solid var(--hmi-line); overflow: hidden; position: relative; }
.hmi-plan .plan { width: 640px; transform-origin: 0 0; }
.hmi-sheet { position: absolute; left: 0; right: 0; bottom: 82px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px -12px rgba(2, 16, 27, 0.3); padding: 10px 16px 16px; z-index: 4; }
.hmi-grab { width: 40px; height: 5px; border-radius: 3px; background: #d5dce4; margin: 0 auto 12px; }
.hmi-btn { height: 52px; border-radius: 14px; background: var(--hmi-ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--ui); margin-top: 12px; }
.hmi-btn svg { width: 18px; height: 18px; }

/* ---------- Brand page ---------- */

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sw { border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; background: var(--sheet); }
.sw-chip { height: 92px; }
.sw-meta { padding: 10px 12px 12px; font-size: 13px; }
.sw-meta b { display: block; font-size: 14px; }
.sw-meta code { font: 500 12.5px/1.4 var(--ui); color: var(--graphite); }
.sw-meta p { margin: 4px 0 0; color: var(--graphite); font-size: 12.5px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 22px; }
.card p { margin: 6px 0 0; color: var(--graphite); }
.logo-stage { display: grid; place-items: center; min-height: 220px; border-radius: var(--r-panel); }
.logo-stage.light { background: var(--sheet); border: 1px solid var(--rule); }
.logo-stage.dark { background: var(--ink); }
.logo-stage.dark .wordmark { color: #fff; }
.logo-stage.dark .mark-ink { stroke: #fff; }
.logo-stage.dark .mark-fill { fill: #6fa2d8; }
.logo-stage.dark .lockup .by { color: #a9b5c2; }
.logo-stage .lockup svg { width: 52px; height: 52px; }
.logo-stage .wordmark { font-size: 40px; }
.logo-stage .lockup { gap: 16px; }
.logo-stage .lockup .by { font-size: 16px; }
.specimen { font-family: var(--display); }
.type-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.type-row:last-child { border-bottom: 0; }
.type-row .lbl { color: var(--graphite); font-size: 13px; }
.dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dodont .card h3 { display: flex; align-items: center; gap: 8px; }
.dodont ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink); }
.dodont li { margin: 6px 0; }
.sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--sheet); overflow: hidden; }
.sym { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.sym .mk { position: static; transform: none; }
.sym .mk-hz { transform: rotate(45deg); }
.sym small { display: block; color: var(--graphite); font-size: 12.5px; }
.voice td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.voice th { text-align: left; padding: 10px 14px; font-weight: 500; color: var(--graphite); font-size: 13px; border-bottom: 1px solid var(--rule); }
.voice { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; }

/* ---------- Overview page ---------- */

.hero { padding: 48px 0 24px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.hero h1 { font: 700 64px/0.98 var(--display); font-stretch: 108%; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero p { font-size: 19px; color: var(--graphite); margin: 0 0 24px; max-width: 42ch; }
.hero .who { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero .who li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.hero .who svg { width: 22px; height: 22px; color: var(--blueprint); margin-top: 2px; }
.hero .who b { display: block; }
.hero .who span { color: var(--graphite); font-size: 14.5px; }
.hero-sheet .titleblock { grid-template-columns: 1.3fr 0.8fr 1.3fr; }
.index-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.index-links a { display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 20px; text-decoration: none; color: var(--ink); }
.index-links a:hover { border-color: var(--blueprint-line); box-shadow: 0 0 0 3px var(--blueprint-tint); }
.index-links b { font: 650 17px/1.2 var(--display); display: block; margin-bottom: 6px; }
.index-links span { color: var(--graphite); font-size: 14px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.principles div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.principles div:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--rule); }
.principles div:nth-child(even) { padding-left: 24px; }
.principles b { font: 650 17px/1.25 var(--display); display: block; margin-bottom: 4px; }
.principles span { color: var(--graphite); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 48px; }
  .index-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-head-in { gap: 12px; padding: 0 16px; }
  .site-head .lockup .by { display: none; }
  .hero-sheet .mk { scale: 0.7; }
  .wrap { padding: 0 16px; }
  .page-intro h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  .index-links, .cols-2, .dodont, .principles { grid-template-columns: 1fr; }
  .principles div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .principles div:nth-child(even) { padding-left: 0; }
  .type-row { grid-template-columns: 1fr; gap: 6px; }
  .phone { transform-origin: top left; }
  .hero-sheet .titleblock { grid-template-columns: 1fr; }
  .hero-sheet .titleblock > div { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Selection box and change tags on the drawing */
.selbox { position: absolute; z-index: 1; border: 2px solid var(--blueprint); background: rgba(27, 85, 146, 0.06); border-radius: 2px; }
.selbox i { position: absolute; width: 9px; height: 9px; background: #fff; border: 2px solid var(--blueprint); border-radius: 2px; }
.selbox i:nth-child(1) { left: -6px; top: -6px; }
.selbox i:nth-child(2) { right: -6px; top: -6px; }
.selbox i:nth-child(3) { left: -6px; bottom: -6px; }
.selbox i:nth-child(4) { right: -6px; bottom: -6px; }
.chg { position: absolute; z-index: 3; transform: translate(-50%, -100%); background: var(--blueprint); color: #fff; font: 600 10.5px/1 var(--ui); padding: 4px 6px; border-radius: 5px; white-space: nowrap; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.layout-2b { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 20px; align-items: start; }
.feed { padding: 4px 16px 8px; }
.feed-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.feed-item:last-child { border-bottom: 0; }
.feed-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--film); color: var(--graphite); }
.feed-ico svg { width: 16px; height: 16px; }
.feed-ico.attn { background: var(--attention-tint); color: var(--attention); }
.feed-ico.dept { background: var(--blueprint-tint); color: var(--blueprint-deep); }
.feed-item b { font-weight: 600; }
.feed-item p { margin: 2px 0 0; color: var(--graphite); font-size: 13px; }
.searchbox { width: 260px; }
.stack { display: grid; gap: 16px; }
.preview-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); }
.preview-step:last-child { border-bottom: 0; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; font: 600 11.5px/1 var(--ui); color: var(--graphite); background: var(--sheet); }
.step-dot.now { border-color: var(--blueprint); color: var(--blueprint); }
.banner-mini { margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: 13px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.banner-mini svg { width: 18px; height: 18px; }
.banner-mini.ok { background: var(--approved-tint); color: var(--approved); }
.banner-mini.owner { background: var(--rule-soft); color: var(--ink); }
.banner-mini b { display: block; font-weight: 600; }
.log td { font-size: 13px; }
.chan { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--film); font-weight: 500; font-size: 12px; white-space: nowrap; }
.chan svg { width: 13px; height: 13px; }
.chan.hmi { background: var(--hmi-ink); color: #fff; }
.hmi-sect svg { width: 15px; height: 15px; }
.hmi-sub { color: #a9b5c2; font-size: 14px; margin-top: 2px; }
.hmi-credit { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #a9b5c2; font: 500 12.5px/1 var(--ui); }
.hmi-credit svg { width: 16px; height: 16px; }
.hmi-credit .mark-ink { stroke: #fff; }
.hmi-credit .mark-fill { fill: #6fa2d8; }
.placard.none { background: #fff; box-shadow: none; border: 2px dashed var(--attention-fill); }
.placard.none span { color: var(--attention); }
.hmi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hmi-action { height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--ui); color: #fff; }
.hmi-action svg { width: 20px; height: 20px; }
.hmi-action.ink { background: var(--hmi-ink); }
.hmi-action.red { background: var(--hmi-red); }
.hmi-notfound { font-size: 12.5px; color: var(--attention); font-weight: 600; }
.hmi-seg { display: flex; gap: 2px; padding: 3px; background: #e6ebf0; border-radius: 12px; margin-bottom: 10px; }
.hmi-seg span { flex: 1; text-align: center; padding: 9px 0; border-radius: 9px; font: 600 13.5px/1 var(--ui); color: var(--hmi-sub); }
.hmi-seg .on { background: #fff; color: var(--hmi-head); box-shadow: 0 1px 2px rgba(2, 16, 27, 0.12); }
.hmi-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 3; }
.hmi-zoom span { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--hmi-line); display: grid; place-items: center; color: var(--hmi-head); }
.hmi-zoom svg { width: 18px; height: 18px; }
