/* Seattle House email proofs: press-check world. One family, restrained color, red pencil for marks. */

:root {
  color-scheme: light;
  --table: #e8e5de;
  --table-deep: #dcd8ce;
  --sheet: #ffffff;
  --ink: #1b1b1b;
  --ink-2: #5a5a58;
  --ink-3: #6b6a66;
  --line: #cbc6bb;
  --line-soft: #e6e2d9;
  --pencil: #b3261e;
  --pencil-soft: #f7e6e4;
  --stamp: #2e6b45;
  --stamp-soft: #e2efe6;
  --ochre: #8a6100;
  --ochre-soft: #f6ecd3;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-sheet: 0 1px 2px rgba(27, 27, 27, 0.1), 0 14px 32px -14px rgba(27, 27, 27, 0.38);
  --shadow-raise: 0 2px 4px rgba(27, 27, 27, 0.12), 0 22px 44px -16px rgba(27, 27, 27, 0.45);
  --radius: 3px;
  --topbar: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; scrollbar-color: var(--line) transparent; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--table);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  caret-color: var(--pencil);
  accent-color: var(--ink);
}
::selection { background: #f0d6d2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--table); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 150ms var(--ease); }
a:hover { text-decoration-color: var(--ink); }
code { font: inherit; padding: 0 4px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #f7f5f0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 24px; line-height: 1.2; }
h2 { font-size: 16px; line-height: 1.3; }
h3 { font-size: 13px; line-height: 1.4; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--radius); z-index: 50; }
.skip:focus { top: 12px; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-reg { width: 18px; height: 18px; stroke-width: 1.25; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: var(--topbar); padding: 0 32px;
  background: var(--sheet); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-sub { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.brand-sub::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 10px -1px 0; background: var(--line); }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a { padding: 6px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); font-weight: 500; transition: background 150ms var(--ease), color 150ms var(--ease); }
.topnav a:hover { background: var(--table); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; border-radius: var(--radius); transition: color 150ms var(--ease), background 150ms var(--ease); }
.link-btn:hover { color: var(--ink); background: var(--table); }
.link-btn--quiet { color: var(--ink-3); }

/* --------------------------------------------------------------- page */
.page { max-width: 1440px; margin: 0 auto; padding: 32px; }
.sheet { position: relative; background: var(--sheet); box-shadow: var(--shadow-sheet); padding: 40px 44px 44px; }
.sheet-head { max-width: 68ch; margin-bottom: 28px; }
.sheet-head h1 { margin-bottom: 8px; }
.lede { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.section-title { margin: 40px 0 14px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.empty { padding: 32px; border: 1px dashed var(--line); color: var(--ink-2); text-align: center; }
.plain { margin: 0; padding-left: 18px; color: var(--ink-2); }
.plain li + li { margin-top: 4px; }

/* --------------------------------------------------------- vocabulary */
.stamp {
  display: inline-block; padding: 5px 10px 4px; border: 2px solid currentColor; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  color: var(--ink);
}
.stamp[data-status="draft"] { color: var(--ink-3); border-style: dashed; }
.stamp[data-status="approved"] { color: var(--stamp); }
.stamp[data-status="live"] { color: #fff; background: var(--stamp); border-color: var(--stamp); }
.plate {
  display: inline-block; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; color: var(--ink);
}
.plate--quiet { color: var(--ink-2); border-color: var(--line-soft); }
.plate + .plate { margin-left: 6px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; flex: none; }
.mark .ico { width: 12px; height: 12px; stroke-width: 2; }
.mark--pass { background: var(--stamp-soft); color: var(--stamp); }
.mark--fail { background: var(--pencil-soft); color: var(--pencil); }
.mark--warn { background: var(--ochre-soft); color: var(--ochre); }
.mark--info { background: #eeece6; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--sheet); color: var(--ink);
  font: 600 13px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 150ms var(--ease), color 150ms var(--ease), transform 100ms var(--ease), box-shadow 150ms var(--ease);
}
.btn:hover { background: var(--table); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--primary[aria-pressed="true"] { background: var(--pencil); border-color: var(--pencil); }
.btn--small { height: 28px; padding: 0 10px; font-size: 12px; }
.btn--wide { width: 100%; justify-content: center; height: 40px; }
.btn[data-done="true"] { background: var(--stamp); border-color: var(--stamp); color: #fff; }

.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.seg button {
  height: 28px; padding: 0 12px; border: 0; border-radius: 2px; background: none; color: var(--ink-2);
  font: 500 13px/1 var(--font); cursor: pointer; transition: background 150ms var(--ease), color 150ms var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.switch input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.switch--small { font-size: 12px; }
.control-note { color: var(--ink-3); }

.field { display: block; margin-bottom: 12px; }
.field span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet);
  font: 14px/1.45 var(--font); color: var(--ink); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--table); }
.field textarea { resize: vertical; min-height: 88px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow-raise);
}
.toast[data-kind="error"] { background: var(--pencil); }
.toast[data-kind="ok"] { background: var(--stamp); }

/* ---------------------------------------------------------- job sheet */
.jobs { width: 100%; border-collapse: collapse; }
.jobs th { text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.jobs td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.jobs tr:last-child td { border-bottom-color: var(--line); }
.jobs .num, .jobs th.num { text-align: right; padding-right: 0; white-space: nowrap; color: var(--ink-2); }
.jobs-title a { font-size: 16px; font-weight: 600; text-decoration: none; }
.jobs-title a:hover { text-decoration: underline; }
.jobs-summary { display: block; max-width: 48ch; margin-top: 4px; color: var(--ink-2); }
.jobs-plates { white-space: nowrap; }
.checks-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.checks-link[data-state="fail"] { color: var(--pencil); }
.checks-link[data-state="warn"] { color: var(--ochre); }
.checks-link[data-state="pass"] { color: var(--stamp); }
.marks-count { font-weight: 500; }
.marks-count[data-state="open"] { color: var(--pencil); }
.marks-count[data-state="resolved"] { color: var(--stamp); }
.marks-count[data-state="none"] { color: var(--ink-3); }

/* -------------------------------------------------------------- viewer */
.viewer-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "back back" "title actions" "facts actions"; gap: 6px 24px; align-items: start; }
.backlink { grid-area: back; display: inline-flex; align-items: center; gap: 4px; width: max-content; margin-bottom: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.backlink:hover { color: var(--ink); }
.viewer-title { grid-area: title; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.viewer-facts { grid-area: facts; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-2); }
.viewer-actions { grid-area: actions; display: flex; gap: 8px; align-self: end; }
.viewer-summary { max-width: 72ch; margin-top: 12px; color: var(--ink-2); }
.controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.workbench { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.stage { display: flex; gap: 32px; align-items: flex-start; min-width: 0; --proof-scale: 1; }
.stage[data-view="before"] #sheet-after,
.stage[data-view="after"] #sheet-before { display: none; }
.proof { flex: none; width: calc(var(--proof-w, 600px) * var(--proof-scale) + 28px); min-width: 0; }
.slug { display: flex; gap: 14px; align-items: baseline; margin: 0 0 10px; padding: 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.slug-key { color: var(--ink); flex: none; }
.slug-note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.slug-note::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 14px; background: var(--line); }
.slug-width { flex: none; margin-left: auto; font-weight: 500; color: var(--ink-2); }

/* Crop marks sit outside the sheet in the frame's padding. */
.proof-frame {
  --crop: 14px; --len: 10px;
  padding: var(--crop);
  background:
    linear-gradient(var(--ink), var(--ink)) 0 var(--crop) / var(--len) 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) var(--crop) 0 / 1px var(--len) no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 top var(--crop) / var(--len) 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right var(--crop) top 0 / 1px var(--len) no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 0 bottom var(--crop) / var(--len) 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left var(--crop) bottom 0 / 1px var(--len) no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 bottom var(--crop) / var(--len) 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right var(--crop) bottom 0 / 1px var(--len) no-repeat;
}
.proof-sheet {
  position: relative; overflow: hidden; background: var(--sheet); box-shadow: var(--shadow-sheet);
  width: calc(var(--proof-w, 600px) * var(--proof-scale));
  height: calc(var(--frame-h, 520px) * var(--proof-scale));
  transition: box-shadow 200ms var(--ease);
}
.proof-sheet iframe { position: absolute; top: 0; left: 0; border: 0; background: var(--sheet); width: var(--proof-w, 600px); height: var(--frame-h, 520px); transform: scale(var(--proof-scale)); transform-origin: 0 0; }
.proof[data-loading="true"] .proof-sheet { background: linear-gradient(90deg, #f4f2ed 25%, #ebe8e1 37%, #f4f2ed 63%) 0 0 / 400% 100%; animation: shimmer 1.4s linear infinite; }
.proof[data-loading="true"] iframe { opacity: 0; }
@keyframes shimmer { to { background-position: -400% 0; } }
body[data-placing="true"] #sheet-after .proof-sheet { box-shadow: var(--shadow-raise), 0 0 0 2px var(--pencil); }
.placing-hint { margin: 10px 0 0 14px; color: var(--pencil); font-weight: 500; }

/* Marks column */
.marks { position: sticky; top: calc(var(--topbar) + 24px); max-height: calc(100vh - var(--topbar) - 48px); display: flex; flex-direction: column; background: var(--sheet); box-shadow: var(--shadow-sheet); }
.tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.tabs [role="tab"] { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; background: none; font: 600 13px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: color 150ms var(--ease); }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.tab-dot[data-state="pass"] { background: var(--stamp); }
.tab-dot[data-state="warn"] { background: var(--ochre); }
.tab-dot[data-state="fail"] { background: var(--pencil); }
.panel { padding: 16px 20px 20px; overflow: auto; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-count { font-weight: 600; }
.panel-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.panel-intro { color: var(--ink-2); margin-bottom: 14px; }
.panel-sub { margin: 20px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

.reviewer { margin: 0 -20px 14px; padding: 12px 20px 12px; background: #faf8f4; border-bottom: 1px solid var(--line-soft); transition: background 200ms var(--ease); }
.reviewer[data-attention="true"] { background: var(--pencil-soft); }
.reviewer .field { margin-bottom: 4px; }
.reviewer-hint { font-size: 12px; color: var(--ink-3); }
.gate-lede { margin-bottom: 16px; color: var(--ink-2); }

.composer { margin: 12px -20px 4px; padding: 14px 20px 16px; background: #faf8f4; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.composer-hint { margin-bottom: 10px; font-weight: 600; color: var(--pencil); }
.composer-actions { display: flex; gap: 8px; }

.marker-list { list-style: none; margin: 8px 0 0; padding: 0; }
.marker-empty { padding: 20px 0; color: var(--ink-3); }
.marker { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-radius: var(--radius); transition: background 200ms var(--ease); }
.marker:first-child { border-top: 0; }
.marker[data-flash="true"] { background: var(--pencil-soft); }
.marker[data-resolved="true"] .marker-text, .marker[data-resolved="true"] .marker-author { color: var(--ink-3); }
.marker-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--pencil); color: #fff; font: 600 12px/1 var(--font); cursor: pointer; box-shadow: 0 1px 3px rgba(27, 27, 27, 0.3); transition: transform 150ms var(--ease); }
.marker-badge:hover { transform: scale(1.12); }
.marker-badge--note { background: var(--sheet); color: var(--ink-2); border-color: var(--line); cursor: default; box-shadow: none; }
.marker[data-resolved="true"] .marker-badge { background: var(--sheet); color: var(--ink-3); border-color: var(--ink-3); box-shadow: none; }
.marker-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.marker-author { font-weight: 600; }
.marker-time { font-size: 12px; color: var(--ink-3); }
.marker-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.marker-actions { display: flex; gap: 10px; margin: 6px 0 0 -6px; }

.checks-list { list-style: none; margin: 0; padding: 0; }
.check { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.check:first-child { border-top: 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-body { min-width: 0; flex: 1; }
.check-summary { font-weight: 500; }
.check[data-status="fail"] .check-summary { color: var(--pencil); }
.check-details { margin: 6px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 13px; }
.check-rule { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.check-rule summary { cursor: pointer; color: var(--ink-3); font-weight: 500; }
.check-rule summary:hover { color: var(--ink); }
.check-rule p { margin-top: 6px; }
.checks-list--advisory .check { padding: 8px 0; }
.check-before { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.notes { margin: 0; padding-left: 16px; color: var(--ink-2); }
.notes li + li { margin-top: 4px; }

.sheetnav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheetnav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.sheetnav a:hover { color: var(--ink); }
.sheetnav-next .ico { transform: rotate(180deg); }

/* --------------------------------------------------------- requirements */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rule { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.rule:first-child { border-top: 1px solid var(--ink); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule-num { font-size: 22px; font-weight: 600; line-height: 1; color: var(--ink-3); padding-top: 2px; }
.rule-body { max-width: 72ch; }
.rule-body h2 { margin-bottom: 6px; }
.rule-text { font-size: 15px; line-height: 1.55; }
.rule-how { margin-top: 8px; color: var(--ink-2); }
.rule-how span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 8px; color: var(--ink-3); }
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); text-align: center; vertical-align: middle; }
.matrix thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.matrix thead th a { text-decoration: none; }
.matrix th[scope="row"] { text-align: left; padding-left: 0; }
.matrix th[scope="row"] a { font-weight: 600; text-decoration: none; }
.matrix th[scope="row"] .muted { display: block; font-weight: 400; font-size: 12px; }
.matrix-total { font-weight: 600; white-space: nowrap; }
.matrix-total[data-state="fail"] { color: var(--pencil); }
.matrix-total[data-state="warn"] { color: var(--ochre); }
.matrix-total[data-state="pass"] { color: var(--stamp); }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-2); font-size: 13px; }

/* --------------------------------------------------------------- brand */
.guide-sources { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.guide-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-soft); }
.guide-nav a { padding: 4px 10px; border-radius: var(--radius); text-decoration: none; font-weight: 500; color: var(--ink-2); }
.guide-nav a:hover { background: var(--table); color: var(--ink); }
.guide-section { padding: 32px 0 8px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: calc(var(--topbar) + 16px); }
.guide-section:last-child { border-bottom: 0; }
.guide-section h2 { font-size: 20px; margin-bottom: 16px; }
.guide-sub { margin: 24px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.guide-text { max-width: 72ch; margin-bottom: 12px; color: var(--ink-2); }
.guide-list { max-width: 72ch; margin: 0 0 16px; padding-left: 18px; }
.guide-list li { margin-bottom: 6px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 28px; }
.swatch { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; gap: 2px 12px; }
.swatch-chip { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(27, 27, 27, 0.12); }
.swatch-chip--small { width: 22px; height: 22px; display: inline-block; margin-right: 6px; }
.swatch-name { font-weight: 600; }
.swatch-hex { justify-self: start; font-size: 12px; }
.swatch-token { font-size: 12px; color: var(--ink-3); }
.swatch-use { grid-column: 2; font-size: 13px; color: var(--ink-2); }
.subbrands { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.subbrand { display: flex; align-items: center; gap: 10px; }
.subbrand-name { font-weight: 600; min-width: 64px; }
.specimens { list-style: none; margin: 0; padding: 0; }
.specimen { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.specimen-sample { padding: 20px 24px; border: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.specimen-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.specimen-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.logo-specimens { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 20px; }
.logo-specimen { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 36px 24px 20px; border: 1px solid var(--line-soft); }
.logo-caption { font-size: 12px; color: var(--ink-3); }
.logo-caption--light { color: #8a8a8a; }
@media (max-width: 720px) {
  .specimen { grid-template-columns: 1fr; gap: 10px; }
}

/* -------------------------------------------------------------- assets */
.assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.asset { display: flex; flex-direction: column; gap: 10px; }
.asset-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--table); border: 1px solid var(--line-soft); }
.asset-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; }
.asset-body { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-width: 0; }
.asset-name { font-weight: 600; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- gate */
.page--login { display: grid; place-items: center; min-height: calc(100vh - var(--topbar)); }
.gate-sheet { width: min(420px, 100%); padding: 36px 40px 40px; }
.gate-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.gate-sheet h1 { margin-bottom: 8px; }
.gate-error { margin-bottom: 12px; padding: 8px 10px; border-left: 1px solid var(--pencil); background: var(--pencil-soft); color: var(--pencil); font-weight: 500; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .workbench { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}
@media (max-width: 1000px) {
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .marks { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .stage { flex-direction: column; }
}
@media (max-width: 720px) {
  .topbar { gap: 12px; padding: 0 16px; }
  .brand-sub { display: none; }
  .topnav a { padding: 6px 8px; }
  .page { padding: 16px; }
  .sheet { padding: 24px 20px 28px; }
  .viewer-head { grid-template-columns: 1fr; grid-template-areas: "back" "title" "facts" "actions"; }
  .viewer-actions { margin-top: 8px; }
  .jobs thead { display: none; }
  .jobs, .jobs tbody, .jobs tr, .jobs td { display: block; }
  .jobs td { padding: 4px 0; border: 0; }
  .jobs tr { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .jobs .num { text-align: left; }
  .controls { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
