/* Ruled Workbench: component styles. Values come from tokens.css; only geometry lives here. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-writer); font-size: 16px; line-height: 1.5; letter-spacing: -0.025em; }
*, *::before, *::after { box-sizing: border-box; }

/* ---------- paper grain ---------- */
.wb-grain { position: relative; isolation: isolate; }
.wb-grain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px; }
[data-theme="dark"] .wb-grain::before { filter: invert(1); opacity: 0.025; }

/* ---------- type helpers ---------- */
.wb-eyebrow { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.wb-mark { background: var(--quote-edge); color: inherit; padding: 0 2px; }
.wb-icon { flex: none; display: block; }

/* ---------- buttons ---------- */
.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-6); height: var(--control-height); padding: 0 6px 0 10px;
  border: 1px solid transparent; border-radius: var(--radius-control); font-family: var(--font-writer); font-size: 14px; line-height: 20px; letter-spacing: -0.025em;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: all 70ms ease; }
.wb-btn--bare { padding: 0 10px; }
.wb-btn--sm { height: var(--control-height-sm); }
.wb-btn--block { width: 100%; }
.wb-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wb-btn:active { transform: scale(0.99); box-shadow: none; }
.wb-btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-primary); }
.wb-btn--primary:hover { background: var(--hover-blue); box-shadow: none; }
.wb-btn--secondary { background: var(--control-fill); color: var(--heading); border-color: var(--edge-soft); box-shadow: var(--shadow-secondary); }
.wb-btn--secondary:hover { background: var(--hover-fill); box-shadow: none; }
.wb-btn--tint { background: var(--control-light); color: var(--blue-text); border-color: var(--quote-edge); }
.wb-btn--tint:hover { background: var(--blue-wash); }
.wb-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--edge); border-radius: 3px;
  font-family: var(--font-system-mono); font-size: 10px; line-height: 1; letter-spacing: 0; color: var(--muted); text-transform: uppercase; }
.wb-btn--primary .wb-kbd { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ---------- text link ---------- */
.wb-link { font-family: var(--font-writer); font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--blue-text);
  text-decoration-line: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; transition: all 70ms ease; }
.wb-link:hover { text-decoration-color: var(--blue-text); }
.wb-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- drafting sheet ---------- */
.wb-sheet { padding: 0 var(--space-16); overflow-x: clip; }
.wb-frame { max-width: var(--frame-width); margin: 0 auto; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); position: relative; }
.wb-section { position: relative; border-bottom: 1px solid var(--rule); }
.wb-section::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: -1px; height: 1px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to right, var(--rule) 0px 4px, transparent 4px 8px); }
.wb-frame { isolation: isolate; }
.wb-node { position: absolute; bottom: -4px; width: 7px; height: 7px; background: var(--node-fill); border: 1px solid var(--node-edge); transform: rotate(45deg); z-index: 2; }
.wb-node--l { left: -4px; }
.wb-node--r { right: -4px; }
.wb-graph-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; background-image: linear-gradient(var(--graph-line) 1px, transparent 1px), linear-gradient(90deg, var(--graph-line) 1px, transparent 1px); background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.15) 0%, #000 80%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.15) 0%, #000 80%); }

/* ---------- navigation ---------- */
.wb-nav { height: var(--nav-height); position: sticky; top: 0; z-index: 100; background: var(--canvas); border-bottom: 1px solid var(--rule); padding: 0 var(--space-16); }
.wb-nav__inner { max-width: var(--frame-width); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: var(--space-16); padding: 0 var(--space-16); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.wb-nav__brand { font-family: var(--font-serif); font-size: 17px; line-height: 1; color: var(--heading); text-decoration: none; letter-spacing: 0; margin-right: var(--space-8); }
.wb-nav__links { display: flex; align-items: center; gap: 2px; }
.wb-nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-8); }
.wb-nav__link { display: inline-flex; align-items: center; gap: 4px; height: var(--control-height-sm); padding: 0 8px; border-radius: var(--radius-control);
  font-size: 14px; line-height: 20px; letter-spacing: -0.025em; color: var(--ink); text-decoration: none; transition: all 70ms ease; }
.wb-nav__link:hover { background: var(--hover-fill); }
.wb-nav__link:active, .wb-nav__search:active { transform: scale(0.99); }
.wb-nav__link:focus-visible, .wb-nav__search:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wb-nav__search { display: inline-flex; align-items: center; gap: var(--space-6); height: var(--control-height-sm); padding: 0 6px 0 8px; border: 1px solid var(--edge-soft); border-radius: var(--radius-control);
  background: var(--control-fill); color: var(--muted); font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; }
.wb-nav__search span { min-width: 72px; text-align: left; }
@media (max-width: 767px) { .wb-nav__links, .wb-nav__search span, .wb-nav__hide-sm { display: none; } .wb-nav__inner { padding: 0 var(--space-8) 0 var(--space-16); } }

/* ---------- editorial rail ---------- */
.wb-rail { display: flex; flex-direction: column; width: var(--editorial-rail); padding: var(--space-16) 0; }
.wb-rail__label { padding: 0 var(--space-16) var(--space-8); }
.wb-rail__item { display: flex; align-items: center; min-height: 28px; padding: 4px 16px; border-left: 1px solid transparent; font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--ink); text-decoration: none; }
.wb-rail__item:hover { color: var(--heading); }
.wb-rail__item.is-active { border-left-color: var(--rail-edge); background: var(--rail-fill); color: var(--blue-text); }
.wb-rail__item:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
@media (max-width: 767px) { .wb-rail { width: auto; flex-direction: row; flex-wrap: wrap; } .wb-rail__label { width: 100%; } }

/* ---------- opening stage ---------- */
.wb-opening { position: relative; isolation: isolate; min-height: var(--hero-height); padding: var(--space-72) var(--space-32); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, var(--wash-top) 0%, rgba(0,0,0,0) 100%); overflow: hidden; }
.wb-opening .wb-atmos { z-index: -1; }
.wb-opening__title { margin: 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(1.7rem, 1.5rem + 1.85vw, 2rem); line-height: 1.2; letter-spacing: normal; color: var(--blue-text); }
.wb-opening__support { margin: var(--space-8) auto 0; max-width: var(--opening-copy); font-size: 16px; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink); }
.wb-opening .wb-actions { margin-top: var(--space-28); }
.wb-opening__link { margin-top: 20px; }
.wb-actions { display: flex; gap: var(--space-8); justify-content: center; flex-wrap: wrap; }
@media (max-width: 1023px) { .wb-actions--stack { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; } }

/* ---------- numeric atmosphere ---------- */
.wb-atmos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wb-atmos text { fill: var(--blue-text); font-family: var(--font-mono); letter-spacing: 0; }

/* ---------- chapter header ---------- */
.wb-chapter { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-24); padding: var(--space-48); }
.wb-chapter--center { flex-direction: column; align-items: center; text-align: center; }
.wb-chapter__copy { max-width: var(--lead-measure); }
.wb-chapter .wb-eyebrow { margin-bottom: var(--space-8); }
.wb-chapter__title { margin: 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(1.4rem, 1.5rem + 1.55vw, 1.6rem); line-height: 1.25; letter-spacing: normal; color: var(--heading); }
.wb-chapter__lead { margin: var(--space-8) 0 0; font-size: 16px; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink); }
@media (max-width: 767px) { .wb-chapter { flex-direction: column; align-items: flex-start; padding: var(--space-32) var(--space-16); } .wb-chapter--center { align-items: center; } }

/* ---------- capability selector ---------- */
.wb-caplist { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.wb-caprow { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-12) var(--space-48); border: 0; border-bottom: 1px solid var(--rule); background: none; width: 100%; text-align: left;
  font-family: var(--font-writer); font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--ink); }
button.wb-caprow { cursor: pointer; transition: all 70ms ease; }
button.wb-caprow:hover { background: var(--hover-fill); color: var(--heading); }
button.wb-caprow:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
.wb-caprow__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.wb-caprow__head .wb-icon { color: var(--muted); }
.wb-caprow.is-open { padding-top: var(--space-24); padding-bottom: var(--space-24); background: var(--sheet-soft); }
.wb-caprow__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 18.4px; line-height: 1.3; color: var(--heading); }
.wb-caprow__body { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink); }
@media (max-width: 767px) { .wb-caprow { padding-left: var(--space-16); padding-right: var(--space-16); } }

.wb-split { display: grid; grid-template-columns: 5fr 7fr; }
.wb-split > :last-child { border-left: 1px solid var(--rule); padding: var(--space-16); display: flex; align-items: center; }
@media (max-width: 1023px) { .wb-split { grid-template-columns: 1fr; } .wb-split > :last-child { border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- interface panel ---------- */
.wb-iface { position: relative; padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius-media); width: 100%;
  background-color: var(--iface-frame); background-image: radial-gradient(var(--iface-dots) 1px, transparent 1px); background-size: 6px 6px; }
.wb-iface--light::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, var(--edge-light), transparent); }
.wb-iface__win { background: var(--panel-dark); border: 1px solid var(--panel-line); border-radius: var(--radius-media); overflow: hidden; color: var(--panel-ink); font-family: var(--font-mono); font-size: 12px; line-height: 20px; letter-spacing: 0; }
.wb-iface__tabs { display: flex; border-bottom: 1px solid var(--panel-line); }
.wb-iface__tab { padding: 6px 14px; color: var(--panel-muted); border-right: 1px solid var(--panel-line); }
.wb-iface__tab.is-active { color: var(--panel-ink); background: rgba(255,255,255,0.03); box-shadow: inset 0 -1px 0 var(--quote-edge); }
.wb-iface__body { display: grid; grid-template-columns: 1fr auto; }
.wb-iface__code { padding: 10px 0; overflow: hidden; }
.wb-iface__line { display: flex; white-space: pre; padding-right: 12px; }
.wb-iface__line.is-selected { background: rgba(19,72,220,0.28); box-shadow: inset 2px 0 0 var(--quote-edge); }
.wb-iface__line.is-add { background: rgba(134,239,172,0.07); }
.wb-iface__line.is-del { color: var(--panel-muted); text-decoration: line-through; text-decoration-color: rgba(138,145,158,0.6); }
.wb-iface__n { width: 40px; flex: none; padding-right: 12px; text-align: right; color: var(--panel-muted); opacity: 0.7; }
.wb-iface__sign { width: 14px; flex: none; color: var(--panel-muted); }
.wb-tok-k { color: var(--panel-blue); } .wb-tok-s { color: var(--panel-green); } .wb-tok-c { color: var(--panel-muted); font-style: italic; }
.wb-iface__side { width: 220px; border-left: 1px solid var(--panel-line); padding: 10px 12px; font-family: var(--font-writer); font-size: 12px; line-height: 18px; color: var(--panel-ink); }
.wb-iface__side .wb-iface__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--panel-muted); margin-bottom: 6px; }
.wb-iface__note { margin-top: 10px; padding: 8px; border: 1px solid var(--panel-line); border-radius: var(--radius-media); background: rgba(255,255,255,0.03); }
.wb-iface__note b { font-weight: 400; color: var(--panel-blue); }
@media (max-width: 639px) { .wb-iface__side { display: none; } .wb-iface__body { grid-template-columns: 1fr; } }

/* ---------- quotes ---------- */
.wb-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--quote-matrix); margin: 0 auto; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.wb-quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-32); padding: var(--space-16); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.wb-quote.is-highlighted { position: relative; z-index: 1; margin: -1px 0 0 -1px; border: 1px solid var(--quote-edge); border-radius: 2px 2px 0 2px;
  background: var(--highlight-fill); box-shadow: var(--shadow-quote); }
.wb-quote__text { margin: 0; font-size: 14px; line-height: 20px; letter-spacing: -0.025em; color: var(--ink); }
.wb-quote__by { display: flex; align-items: center; gap: 10px; }
.wb-quote__avatar { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: var(--radius-media); background: var(--sheet);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--muted); }
.wb-quote__name { display: block; font-family: var(--font-serif); font-size: 15px; line-height: 1.3; color: var(--heading); letter-spacing: 0; }
.wb-quote__role { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
@media (max-width: 767px) { .wb-quotes { grid-template-columns: 1fr; } }

/* ---------- metrics sheet ---------- */
.wb-metrics { padding: 10px 10px 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-control); box-shadow: var(--shadow-proof); max-width: var(--quote-matrix); }
.wb-metrics__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: 2px 4px 8px 6px; }
.wb-metrics__title { font-size: 13px; line-height: 1.5; color: var(--ink); letter-spacing: 0; }
.wb-metrics__ranges { display: flex; border: 1px solid var(--edge-soft); border-radius: var(--radius-control); overflow: hidden; }
.wb-metrics__range { border: 0; border-right: 1px solid var(--edge-soft); background: var(--control-fill); padding: 2px 8px; font-family: var(--font-system-mono); font-size: 11px; line-height: 18px; color: var(--muted); cursor: pointer; }
.wb-metrics__range:last-child { border-right: 0; }
.wb-metrics__range.is-active { background: var(--sheet); color: var(--blue-text); }
.wb-metrics__range:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.wb-metrics svg { display: block; width: 100%; height: auto; }
.wb-metrics .grid { stroke: var(--rule); stroke-width: 1; }
.wb-metrics .axis { fill: var(--muted); font-family: var(--font-writer); font-size: 11px; letter-spacing: 0; }
.wb-metrics .s0 { stroke: var(--blue-text); } .wb-metrics .s1 { stroke: var(--muted); stroke-dasharray: 4 3; } .wb-metrics .s2 { stroke: var(--heading); stroke-dasharray: 1 3; }
.wb-metrics .line { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.wb-metrics__legend { display: flex; justify-content: center; gap: var(--space-16); padding: 6px 0 10px; font-size: 11px; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
.wb-metrics__legend span { display: inline-flex; align-items: center; gap: 6px; }
.wb-metrics__legend svg { width: 16px; height: 6px; }

/* ---------- capability ledger ---------- */
.wb-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-ledger__cell { padding: var(--space-40) var(--space-24); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--space-8); }
.wb-ledger__cell:nth-child(3n) { border-right: 0; }
.wb-ledger__media { margin-bottom: var(--space-16); padding: 8px; border: 1px dashed var(--edge); border-radius: var(--radius-media); }
.wb-ledger__title { margin: 0; font-family: var(--font-serif); font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--heading); letter-spacing: 0; }
.wb-ledger__body { margin: 0; font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--ink); }
.wb-ledger .wb-link { margin-top: 4px; align-self: flex-start; }
@media (max-width: 767px) { .wb-ledger { grid-template-columns: 1fr; } .wb-ledger__cell { border-right: 0; padding: var(--space-24) var(--space-16); } }

/* ---------- activity ---------- */
.wb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.wb-stat { padding: var(--space-16); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.wb-stat b { font-weight: 400; color: var(--blue-text); margin-right: 6px; }
.wb-rows { border-top: 1px solid var(--rule); }
.wb-row { display: flex; align-items: center; gap: var(--space-12); min-height: 53px; padding: var(--space-16) var(--space-48); border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
a.wb-row:hover { background: var(--hover-fill); }
.wb-row__avatar { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: var(--radius-media); background: var(--sheet); font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 0; }
.wb-row__title { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: var(--heading); letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-row__meta { font-size: 11px; line-height: 1.5; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
@media (max-width: 767px) { .wb-row { padding: var(--space-16); } }

/* ---------- plans ---------- */
.wb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: var(--space-32); justify-content: center; }
.wb-plan { display: flex; flex-direction: column; padding: var(--space-24); border: 1px solid var(--rule); border-radius: var(--radius-control); min-height: 465px; background: var(--sheet-soft); }
.wb-plan--recommended { border-color: var(--quote-edge); background: var(--recommend-fill); box-shadow: var(--shadow-proof); }
.wb-plan__label { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-system-mono); font-size: 13px; line-height: 1.5; letter-spacing: 0.025em; text-transform: uppercase; color: var(--heading); }
.wb-plan__badge { font-size: 11px; color: var(--blue-text); }
.wb-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: var(--space-16); }
.wb-plan__amount { font-family: var(--font-serif); font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; color: var(--blue-text); }
.wb-plan__unit { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.wb-plan__summary { margin: var(--space-12) 0 0; font-size: 14px; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink); }
.wb-plan__features { list-style: none; margin: var(--space-24) 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wb-plan__features li { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--ink); }
.wb-plan__features .wb-icon { color: var(--blue-text); margin-top: 3px; }
.wb-plan__action { margin-top: auto; }
@media (max-width: 1023px) { .wb-plans { grid-template-columns: minmax(0, 420px); } .wb-plan { min-height: 0; } }

/* ---------- emblem ---------- */
.wb-emblem { width: var(--emblem); height: var(--emblem); padding: 0; border: 8px solid var(--emblem-rim); border-radius: var(--radius-emblem-rim); background: var(--emblem-rim); box-shadow: var(--shadow-emblem); flex: none; }
.wb-emblem__face { position: relative; isolation: isolate; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: var(--radius-emblem-face); border: 1px solid var(--panel-line); color: var(--white);
  background: radial-gradient(circle at 85% 90%, rgba(147,184,255,0.22), transparent 45%), var(--panel-dark); }
.wb-emblem__face.wb-grain::before { opacity: 0.12; filter: none; }

/* ---------- conversion stage ---------- */
.wb-convert { position: relative; isolation: isolate; min-height: var(--conversion-stage); padding: var(--space-48) var(--space-16); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.wb-convert__title { margin: var(--space-32) 0 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(1.4rem, 1.5rem + 1.55vw, 1.6rem); line-height: 1.25; color: var(--blue-text); }
.wb-convert__support { margin: var(--space-8) 0 0; max-width: var(--opening-copy); font-size: 16px; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink); }
.wb-convert .wb-actions { margin-top: var(--space-28); }

/* ---------- footer ---------- */
.wb-footer { position: relative; isolation: isolate; background: var(--blue); color: var(--footer-text); min-height: var(--footer-height); padding: 0 var(--space-16); display: flex; overflow: hidden; }
.wb-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>"); background-size: 180px 180px; }
.wb-footer__frame { flex: 1; max-width: var(--frame-width); margin: 0 auto; display: flex; flex-direction: column; border-left: 1px solid var(--footer-rail); border-right: 1px solid var(--footer-rail); }
.wb-footer__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wb-footer__company { grid-column: span 2; display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-24) var(--space-16); border-right: 1px solid var(--footer-rule); }
.wb-footer__brand { font-family: var(--font-serif); font-size: clamp(0.875rem, 0.8rem + 0.35vw, 0.95rem); line-height: 1.1; color: var(--white); }
.wb-footer__tag { margin: 0; font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--footer-text); max-width: 260px; }
.wb-footer__legal { margin-top: auto; font-size: 11px; line-height: 1.5; letter-spacing: 0; color: var(--footer-text); }
.wb-fcol { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-24) var(--space-16); border-right: 1px solid var(--footer-rule); }
.wb-fcol:last-child { border-right: 0; }
.wb-fcol__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(0.875rem, 0.8rem + 0.35vw, 0.95rem); line-height: 1.1; color: var(--white); letter-spacing: 0; }
.wb-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-12); }
.wb-fcol a { font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--footer-text); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); text-underline-offset: 3px; }
.wb-fcol a:hover { text-decoration-color: var(--white); }
.wb-fcol a:focus-visible, .wb-footer a:focus-visible { outline: 3px solid rgba(255,255,255,0.5); outline-offset: 2px; }
.wb-footer__hatch { flex: 1; min-height: 200px; border-top: 1px solid var(--footer-rule);
  background: repeating-linear-gradient(135deg, var(--footer-rule) 0px 1px, transparent 1px 4px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, rgba(0,0,0,0.35)); mask-image: linear-gradient(to bottom, #000 40%, rgba(0,0,0,0.35)); }
@media (max-width: 1023px) { .wb-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wb-footer__company { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--footer-rule); } .wb-fcol:nth-child(5) { border-right: 0; } }
@media (max-width: 639px) { .wb-footer__grid { grid-template-columns: 1fr; } .wb-fcol { border-right: 0; border-bottom: 1px solid var(--footer-rule); } .wb-footer__hatch { min-height: 120px; } }
