/* Hallmark · shape: Directory Workbench · genre: modern-minimal · theme: Rim (deal 1/3, seed five-client-side-browser-utilities-1d09·47833c3f·2026-11-18·r0) · job: try · draw: 47833c
 * hero: Ledge · nav: hairline bar · footer: ruled colophon · imagery: the product · signature: square hairline instrument wells with corner ticks and Geist Mono telemetry · rim: night
 * axes: dark/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · weakest: V, five utilities could drift into disparate widgets; unified every workbench on paper-2 wells with corner ticks, hairline axes, and tabular Geist Mono readouts */
@import url("./tokens.css");
@import url("./base.css");

/* Typography & Measurement Discipline */
h1,
h2,
h3 {
  font-weight: var(--display-weight);
  line-height: 1.04;
}

h2 {
  letter-spacing: -0.03em;
}

h3 {
  letter-spacing: -0.02em;
}

.measure,
.code {
  font-family: var(--font-outlier);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.unit {
  font-family: var(--font-display);
  font-size: 0.56em;
  color: var(--color-muted);
  margin-inline-start: var(--space-2xs);
  letter-spacing: 0;
}

/* Sticky Instrument Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 56px;
  padding-block: var(--space-xs);
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  min-height: 36px;
  flex-shrink: 0;
}

.signal-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.signal-dot--sky {
  background: var(--color-accent-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: var(--space-sm);
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-ink);
}

.nav-link[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
  font-weight: 500;
}

.nav-link--pro {
  color: var(--color-accent-2);
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.utc-readout {
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding-inline: var(--space-xs);
  white-space: nowrap;
}

.lang-group {
  display: inline-flex;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  flex-shrink: 0;
}

.lang-btn {
  min-height: 36px;
  padding-inline: var(--space-sm);
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}

.lang-btn + .lang-btn {
  border-inline-start: var(--rule-hair) solid var(--color-rule);
}

.lang-btn[aria-pressed="true"] {
  background: var(--color-paper-3);
  color: var(--color-ink);
}

.lp-hub-link {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: none;
  padding: var(--space-2xs) var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule);
  white-space: nowrap;
}

.lp-hub-link:hover {
  color: var(--color-ink);
  border-color: var(--color-muted);
}

.help-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.help-btn:hover,
.help-btn[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Interactive Spotlight Tour */
.tour-spotlight {
  position: fixed;
  z-index: var(--z-modal);
  pointer-events: none;
  box-shadow: 0 0 0 9999px var(--color-scrim), 0 0 0 2px var(--color-accent);
}

.tour-popover {
  position: fixed;
  z-index: var(--z-toast);
  width: 360px;
  max-width: calc(100% - var(--space-lg));
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: 2px solid var(--color-accent);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.tour-counter {
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.tour-close {
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-3);
  color: var(--color-ink);
  min-height: 28px;
  padding-inline: var(--space-xs);
  font-size: var(--text-xs);
  cursor: pointer;
}

.tour-title {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-ink);
}

.tour-desc {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.5;
}

.tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Surfaces, Corner Ticks & Controls */
.well {
  position: relative;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-lg);
}

.well--sunk {
  background: var(--color-paper-3);
  border-color: var(--color-rule-2);
}

.ticks {
  position: relative;
}

.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--color-muted);
  pointer-events: none;
  z-index: var(--z-raised);
}

.ticks::before {
  top: -5px;
  left: -5px;
  border-width: 1px 0 0 1px;
}

.ticks::after {
  right: -5px;
  bottom: -5px;
  border-width: 0 1px 1px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 40px;
  padding: var(--space-xs) var(--space-md);
  border-radius: 0;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out);
}

.btn:hover {
  border-color: var(--color-muted);
}

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn--primary:hover {
  border-color: var(--color-focus);
}

.btn--sky {
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
}

.btn:disabled,
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.mt-md {
  margin-top: var(--space-md);
}

.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-2xs);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0;
  border: var(--rule-hair) solid var(--color-muted-2);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-sm);
}

.textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-focus);
  outline: none;
}

.range-input {
  width: 100%;
  min-height: 32px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* Page Sections & Ledge Headers */
.hero-hub {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: end;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-copy .lead {
  color: var(--color-ink-2);
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-3);
}

.telemetry-cell {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.telemetry-cell + .telemetry-cell {
  border-inline-start: var(--rule-hair) solid var(--color-rule);
}

.telemetry-val {
  font-size: var(--text-display-s);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.telemetry-caption {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Tool Landing Page Screen 1 Workbench */
.workbench-section {
  padding-block: var(--space-xl) var(--space-2xl);
}

.workbench-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.workbench-title-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.workbench-title-group h1 {
  font-size: var(--text-section);
  max-width: 26ch;
}

.workbench-title-group .lead {
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.workbench-kpi {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.workbench-kpi-val {
  font-size: var(--text-2xl);
  color: var(--color-accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.workbench-kpi-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.section-block {
  padding-block: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.section-block--band {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.section-head p {
  color: var(--color-muted);
  max-width: 54ch;
}

/* CLS-Safe Google AdSense Slots */
.ad-region {
  padding-block: var(--space-lg);
}

.ad-slot {
  width: 100%;
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule-2);
  display: flex;
  flex-direction: column;
}

.ad-slot--leaderboard {
  min-height: 118px;
}

.ad-slot--rectangle {
  min-height: 278px;
}

.ad-slot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3xs) var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  font-size: var(--text-xs);
  color: var(--color-muted-2);
}

.ad-slot-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  flex-wrap: wrap;
}

.ad-placeholder-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.ad-placeholder-spec {
  font-size: var(--text-xs);
  color: var(--color-muted-2);
}

/* Contextual Affiliate Hardware & Supply Recommendations */
.fault-banner {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-accent);
  background: var(--color-paper-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.fault-banner-text {
  color: var(--color-ink);
  font-size: var(--text-sm);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}

.partner-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out);
}

.partner-card:hover {
  background: var(--color-paper-3);
}

.partner-card:hover .btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.partner-card + .partner-card {
  border-inline-start: var(--rule-hair) solid var(--color-rule);
}

.partner-card-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.partner-store {
  font-size: var(--text-xs);
  color: var(--color-accent-2);
  font-weight: 500;
}

.partner-title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
}

.partner-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.partner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule-2);
}

.partner-price {
  font-size: var(--text-md);
  color: var(--color-ink);
}

/* Hub Directory Rows & Cards */
.tool-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-lg);
  text-decoration: none;
  transition: border-color var(--dur-short) var(--ease-out);
}

.tool-card:hover {
  border-color: var(--color-accent);
}

.tool-card--wide {
  grid-column: 1 / -1;
  background: var(--color-paper-3);
  color: var(--color-ink);
  border-color: var(--color-accent-2);
}

.tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}

.tool-card-index {
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.tool-card-cpc {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.tool-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tool-card-body p {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.tool-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Tool 1: Device Check (Mouse, Keyboard, Display) */
.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-3);
  margin-bottom: var(--space-lg);
}

.mode-tab {
  min-height: 40px;
  padding: var(--space-xs) var(--space-md);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.mode-tab + .mode-tab {
  border-inline-start: var(--rule-hair) solid var(--color-rule);
}

.mode-tab[aria-selected="true"] {
  background: var(--color-paper);
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}

.pad-title {
  font-size: var(--text-title);
  font-weight: var(--display-weight);
  color: var(--color-ink);
  line-height: 1.2;
}

.split-bench {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-lg);
  align-items: start;
}

.click-pad {
  width: 100%;
  min-height: 220px;
  border: var(--rule-hair) solid var(--color-muted);
  background: var(--color-paper-3);
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.click-pad:active {
  border-color: var(--color-accent);
  background: var(--color-paper);
}

.click-pad--fault {
  border-color: var(--color-error);
}

.stat-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  margin-top: var(--space-md);
}

.stat-box {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.stat-box + .stat-box {
  border-inline-start: var(--rule-hair) solid var(--color-rule-2);
}

.stat-box-val {
  font-size: var(--text-xl);
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.stat-box-val--fault {
  color: var(--color-error);
}

.stat-box-val--ok {
  color: var(--color-success);
}

.stat-box-lbl {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.log-list {
  max-height: 240px;
  overflow-y: auto;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
}

.log-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}

.log-row--fault {
  color: var(--color-error);
}

.key-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-md);
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  overflow-x: auto;
}

.key-row {
  display: flex;
  gap: var(--space-2xs);
}

.key-cap {
  min-width: 38px;
  height: 38px;
  padding-inline: var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-muted);
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.key-cap--wide {
  min-width: 68px;
}

.key-cap--space {
  min-width: 220px;
}

.key-cap.is-down {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.key-cap.is-tested {
  border-color: var(--color-accent-2);
  color: var(--color-ink);
}

.key-cap.is-chatter {
  border-color: var(--color-error);
  color: var(--color-error);
}

.pixel-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.swatch-btn {
  min-height: 48px;
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.swatch-btn:hover {
  border-color: var(--color-muted);
}

.swatch-chip {
  width: 12px;
  height: 12px;
  border: var(--rule-hair) solid var(--color-rule);
  flex-shrink: 0;
}

.swatch-chip--red { background: var(--color-swatch-red); }
.swatch-chip--green { background: var(--color-swatch-green); }
.swatch-chip--blue { background: var(--color-swatch-blue); }
.swatch-chip--white { background: var(--color-print-paper); }
.swatch-chip--black { background: var(--color-paper-3); }

.pixel-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-tooltip);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--color-paper-3);
}

.pixel-overlay-hint {
  background: var(--color-paper);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
}

/* Tool 2: A4 Barcode & QR Sheet Generator */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.sheet-stage {
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md);
  overflow-x: auto;
}

.print-sheet {
  background: var(--color-print-paper);
  color: var(--color-print-ink);
  width: 100%;
  max-width: 630px;
  aspect-ratio: 210 / 297;
  margin-inline: auto;
  padding: var(--space-sm);
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
}

.print-sheet[data-preset="tomy103"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.print-sheet[data-preset="tomy108"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.print-sheet[data-preset="tomy145"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.print-sheet[data-preset="avery5160"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.print-sheet[data-preset="avery5163"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.label-cell {
  border: 1px dashed var(--color-print-rule);
  padding: var(--space-2xs) var(--space-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-print-paper);
  color: var(--color-print-ink);
}

.label-cell svg {
  max-width: 100%;
  height: auto;
}

.label-name {
  font-size: 10px;
  line-height: 1.15;
  font-weight: 500;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-meta {
  font-family: var(--font-outlier);
  font-size: 9px;
  line-height: 1.1;
}

/* Tool 3: Offline ID Watermark & Compressor */
.canvas-frame {
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.id-canvas {
  max-width: 100%;
  height: auto;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
}

.privacy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-success);
}

/* Tool 4: Loan Early Payoff & EV vs Gas Simulator */
.chart-well {
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md);
}

.chart-svg {
  width: 100%;
  height: auto;
}

.chart-legend {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Tool 5: Global Meeting Overlap & Bank Holiday Timeline */
.timeline-stack {
  display: flex;
  flex-direction: column;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
}

.timeline-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 130px;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}

.timeline-city {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.timeline-city-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.timeline-city-zone {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.timeline-track {
  position: relative;
  height: 28px;
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule-2);
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

.hour-cell {
  border-inline-end: var(--rule-hair) solid var(--color-rule-2);
  height: 100%;
}

.hour-cell--work {
  background: color-mix(in oklab, var(--color-accent-2) 28%, transparent);
}

.hour-cell--selected {
  background: var(--color-accent);
}

.timeline-local {
  text-align: right;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.holiday-alert {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-accent);
  background: var(--color-paper-3);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.city-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.city-chip {
  min-height: 36px;
  padding-inline: var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-muted);
  font-size: var(--text-xs);
  cursor: pointer;
}

.city-chip[aria-pressed="true"] {
  border-color: var(--color-accent-2);
  color: var(--color-ink);
  background: var(--color-paper-3);
}

/* Tool 6: CutOptix Free 1D/2D Cutting Diagrams */
.cut-bars-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cut-sheets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.cut-bar-card {
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cut-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.cut-bar-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-2);
  word-break: break-word;
}

/* Data Tables, Reference Guides & FAQ */
.spec-table-wrap {
  overflow-x: auto;
  border: var(--rule-hair) solid var(--color-rule);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.spec-table th {
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-paper-2);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.spec-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink-2);
}

.guide-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-columns);
  align-items: start;
}

.guide-prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--color-ink-2);
}

.faq-list {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.faq-item {
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  padding-block: var(--space-md);
}

.faq-item summary {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 36px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

/* Legal Prose */
.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--gap-columns);
  padding-block: var(--space-2xl);
}

.legal-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.legal-toc a {
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.legal-toc a:hover {
  color: var(--color-ink);
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}

.legal-section p {
  color: var(--color-ink-2);
}

/* Ruled Colophon Footer */
.site-footer {
  border-top: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-3);
  color: var(--color-ink);
  padding-block: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: var(--gap-columns);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-muted-2);
}

/* Responsive Breakpoints */
@media (max-width: 64rem) {
  .utc-readout {
    display: none;
  }

  .hero-grid,
  .split-bench,
  .guide-cols,
  .legal-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .telemetry-strip,
  .stat-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-cell:nth-child(3),
  .stat-box:nth-child(3) {
    border-inline-start: 0;
  }

  .telemetry-cell:nth-child(n+3),
  .stat-box:nth-child(n+3) {
    border-top: var(--rule-hair) solid var(--color-rule-2);
  }

  .partner-grid,
  .tool-directory,
  .help-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .partner-card + .partner-card {
    border-inline-start: 0;
    border-top: var(--rule-hair) solid var(--color-rule);
  }

  .timeline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .timeline-local {
    text-align: left;
  }
}

/* Exact A4 / Letter Print Sheet Output */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  body {
    background: var(--color-print-paper);
    color: var(--color-print-ink);
  }

  .site-nav,
  .tour-spotlight,
  .tour-popover,
  .workbench-header,
  .no-print,
  .ad-region,
  .section-block,
  .site-footer {
    display: none !important;
  }

  .workbench-section,
  .well,
  .sheet-stage {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .ticks::before,
  .ticks::after {
    display: none !important;
  }

  .print-sheet {
    max-width: none;
    width: 198mm;
    height: 285mm;
    padding: 0;
  }
}
