/* ============================================================================
   Collab prototype showcase — shared site styles
   Built on the Typework design-system tokens (assets/ds/tokens/*.css).
   Two layers here:
     1. Site chrome  — header, hub, doc, footer.
     2. Wireframe kit — the "annotated blueprint" component system used to
        hand-author every screen on the wireframes page.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-paper);
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent-soft); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ── shared atoms ──────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap--reading { max-width: 820px; }

.rainbow-rule {
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: var(--grad-rainbow);
  margin: 0;
}

/* ── site header ───────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand__logo { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); }
.brand__word {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 9px;
  margin-left: 1px;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  margin-left: 4px;
}

.topnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topnav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.topnav a:hover { color: var(--ink); background: var(--bg-sunken); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--bg-sunken); }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.backlink:hover { color: var(--ink); }

/* ── page header block ─────────────────────────────────────────────────── */

.page-head { padding: 56px 0 40px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  margin: 12px 0 0;
}
.lede {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
  margin: 16px 0 0;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 32px 0 56px;
  color: var(--ink-4);
  font-size: 12.5px;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink-3); font-weight: 600; }
.footer a:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════════
   HUB (index.html)
   ════════════════════════════════════════════════════════════════════════ */

.hero {
  padding: 76px 0 20px;
  border-bottom: 1px solid var(--line);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  margin: 14px 0 0;
  max-width: 16ch;
}
.hero__lede {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 620px;
  margin: 20px 0 34px;
}
.hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--ink-4);
}
.hero__meta b { color: var(--ink-2); font-weight: 600; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 44px 0 8px;
}
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 26px 24px;
  background: var(--bg-canvas);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.hub-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.hub-card:hover::before { transform: scaleX(1); }
.hub-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.hub-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
}
.hub-card__desc { font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0 0 20px; flex: 1; }
.hub-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-card__links { display: flex; gap: 8px; flex-wrap: wrap; }
.chiplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  background: var(--bg-canvas);
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.chiplink:hover { background: var(--bg-sunken); border-color: var(--line-2); }
.chiplink--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.chiplink--dark:hover { background: var(--ink-2); }
.arrow {
  color: var(--ink-4);
  font-size: 20px;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.hub-card:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   DESIGN DOC (design/index.html)
   ════════════════════════════════════════════════════════════════════════ */

.doc { padding: 8px 0 20px; }
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }

.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  font-size: 13px;
}
.toc__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 12px;
}
.toc a {
  display: block;
  color: var(--ink-3);
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--line);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.toc a:hover { color: var(--ink); border-color: var(--ink-4); }

.prose { min-width: 0; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 52px 0 6px;
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 8px; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 30px 0 8px;
  scroll-margin-top: 90px;
}
.prose h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin: 24px 0 6px;
}
.prose p { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin: 10px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { font-size: 15px; line-height: 1.62; color: var(--ink-2); padding-left: 20px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-4); }
.prose a.inline { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-soft); }

.prose .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin: 52px 0 -2px;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--accent-softer);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout--neutral { border-left-color: var(--ink); background: var(--bg-sunken); }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.doc-table thead th {
  background: var(--bg-sunken);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 700;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc-table td strong { color: var(--ink); }

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-sunken);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}
.tag--accent { color: var(--accent); background: var(--accent-soft); }

/* Three-mode + capability cards */
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.mode-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  background: var(--bg-canvas);
}
.mode-card__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.mode-card__title { font-size: 16px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -0.01em; }
.mode-card__body { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }

/* Journey / flow steps */
.journey { display: flex; flex-direction: column; gap: 2px; margin: 20px 0; counter-reset: jstep; }
.journey__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.journey__step:last-child { border-bottom: 0; }
.journey__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.journey__title { font-size: 15px; font-weight: 700; margin: 3px 0 4px; }
.journey__body { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.journey__body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
}

.flow-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 14px 0;
  overflow-x: auto;
  white-space: pre-wrap;
}
.flow-line b { color: var(--accent); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════
   WIREFRAME KIT  (wireframes/index.html) — "annotated blueprint"
   Grayscale structure, accent reserved for callouts + a few product-accent
   elements (pins, match tags, paywall). Every region carries a label.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --wf-ink: #33333a;          /* wireframe "ink" — softened, blueprint feel */
  --wf-line: #c9c9cf;         /* region borders                             */
  --wf-line-soft: #dedee2;    /* faint fills / dividers                     */
  --wf-fill: #f0f0f2;         /* region fill                                */
  --wf-fill-2: #e6e6ea;       /* stronger fill (bars, avatars)              */
  --wf-label: #8a8a91;        /* region label text                          */
}

/* section navigation on the wireframes page */
.wf-subnav {
  position: sticky;
  top: 55px;
  z-index: 40;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.wf-subnav strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-right: 6px;
}
.wf-subnav a {
  font-weight: 600;
  color: var(--ink-3);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}
.wf-subnav a:hover { color: var(--ink); background: var(--bg-sunken); }

.wf-section { padding: 40px 0 8px; scroll-margin-top: 108px; }
.wf-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.wf-section__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wf-section__desc { font-size: 14px; color: var(--ink-3); }
.wf-section__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-left: auto;
}

.wf-groupname {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-2);
}

/* grid of wireframe cards */
.wf-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  align-items: start;
}
.wf-grid--web { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }

/* one wireframe card = title + frame + notes */
.wf {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-canvas);
  padding: 16px 16px 6px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.wf__head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 14px; }
.wf__step {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--wf-ink);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  flex-shrink: 0;
}
.wf__title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.wf__state {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-sunken);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  margin-left: auto;
  flex-shrink: 0;
}

.wf__frame-wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0 14px;
}

/* ── device frames ─────────────────────────────────────────────────────── */

.wf-phone {
  position: relative;
  width: 244px;
  height: 512px;
  border: 8px solid #1c1c1f;
  border-radius: 40px;
  background: var(--bg-canvas);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  flex-shrink: 0;
}
.wf-phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  background: #1c1c1f;
  border-radius: var(--r-pill);
  z-index: 8;
}
.wf-phone__status {
  position: absolute;
  top: 10px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 18px;
  font-size: 9px;
  font-weight: 700;
  color: var(--wf-ink);
  z-index: 7;
}
.wf-screen {
  position: absolute;
  inset: 0;
  padding: 34px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.wf-screen--flush { padding: 0; }

.wf-browser {
  position: relative;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--wf-line);
  border-radius: var(--r-lg);
  background: var(--bg-canvas);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.wf-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--wf-line);
}
.wf-browser__dots { display: flex; gap: 5px; }
.wf-browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--wf-line); }
.wf-browser__url {
  flex: 1;
  height: 18px;
  border-radius: var(--r-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--wf-line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--wf-label);
  display: flex; align-items: center;
  padding: 0 8px;
}
.wf-viewport {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
}
.wf-viewport--tall { height: 420px; }

/* ── generic region + atoms ────────────────────────────────────────────── */

.wf-region {
  position: relative;
  border: 1px dashed var(--wf-line);
  border-radius: var(--r-md);
  background: var(--wf-fill);
  padding: 12px 10px 10px;
}
.wf-region--solid { border-style: solid; }
.wf-region--plain { border: 0; background: transparent; padding: 0; }
.wf-region--fill { background: var(--wf-fill-2); }
.wf-region__label {
  position: absolute;
  top: -8px; left: 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wf-label);
  background: var(--bg-canvas);
  padding: 0 5px;
  white-space: nowrap;
}
.wf-region--fill .wf-region__label,
.wf-region--onfill .wf-region__label { background: var(--wf-fill); }

.wf-stack { display: flex; flex-direction: column; gap: 8px; }
.wf-stack--tight { gap: 5px; }
.wf-row { display: flex; align-items: center; gap: 8px; }
.wf-row--between { justify-content: space-between; }
.wf-row--wrap { flex-wrap: wrap; }
.wf-grow { flex: 1; min-width: 0; }
.wf-spacer { flex: 1; }

/* placeholder text bars */
.wf-bar { height: 8px; border-radius: 3px; background: var(--wf-fill-2); width: 100%; }
.wf-bar--title { height: 12px; background: #cfcfd4; border-radius: 4px; }
.wf-bar--80 { width: 80%; }
.wf-bar--60 { width: 60%; }
.wf-bar--40 { width: 40%; }
.wf-bar--30 { width: 30%; }
.wf-ink { color: var(--wf-ink); font-size: 11px; font-weight: 600; }
.wf-ink--sm { font-size: 9.5px; color: var(--wf-label); font-weight: 600; }
.wf-ink--title { font-size: 13px; font-weight: 700; color: var(--wf-ink); letter-spacing: -0.01em; }
.wf-ink--h { font-size: 15px; font-weight: 700; color: var(--wf-ink); letter-spacing: -0.02em; }

/* chips / tags / buttons */
.wf-chips { display: flex; gap: 5px; overflow: hidden; }
.wf-chip {
  font-size: 9px;
  font-weight: 600;
  color: var(--wf-ink);
  background: var(--bg-canvas);
  border: 1px solid var(--wf-line);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-chip--on { background: var(--wf-ink); color: #fff; border-color: var(--wf-ink); }
.wf-tag {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--wf-ink);
  background: var(--wf-fill-2);
  border-radius: var(--r-pill);
  padding: 2px 7px;
  white-space: nowrap;
}
.wf-tag--accent { color: var(--accent); background: var(--accent-soft); }

.wf-btn {
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--r-pill);
  padding: 8px 12px;
  background: var(--wf-fill-2);
  color: var(--wf-ink);
  border: 1px solid var(--wf-line);
}
.wf-btn--primary { background: var(--wf-ink); color: #fff; border-color: var(--wf-ink); }
.wf-btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.wf-btn--ghost { background: transparent; }
.wf-btn--block { display: block; width: 100%; }
.wf-btn--sm { font-size: 9.5px; padding: 6px 10px; }

/* avatars / icons */
.wf-avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--wf-ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wf-avatar--sm { width: 24px; height: 24px; border-radius: 7px; font-size: 8px; }
.wf-avatar--lg { width: 42px; height: 42px; border-radius: 12px; font-size: 12px; }
.wf-avatar--round { border-radius: 50%; }
.wf-avatar--blur { filter: blur(3.5px); }
.wf-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--wf-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--wf-label);
  flex-shrink: 0;
}

/* inner card (a list item / need card) */
.wf-card {
  border: 1px solid var(--wf-line);
  border-radius: var(--r-md);
  background: var(--bg-canvas);
  padding: 9px;
  display: flex;
  gap: 8px;
}
.wf-card--paper { background: var(--wf-fill); }

/* map */
.wf-map {
  position: relative;
  flex: 1;
  border-radius: var(--r-md);
  background:
    radial-gradient(rgba(10,10,11,0.10) 1px, transparent 1px) 0 0 / 14px 14px,
    var(--wf-fill);
  overflow: hidden;
  min-height: 90px;
}
.wf-map--full { border-radius: 0; }
.wf-pin {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(10,10,11,0.35);
  transform: translate(-50%, -50%);
}
.wf-you {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--wf-ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(10,10,11,0.10);
}

/* mobile tab bar */
.wf-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px 4px;
  border-top: 1px solid var(--wf-line);
  background: var(--bg-canvas);
}
.wf-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 7.5px; font-weight: 600; color: var(--wf-label);
  flex: 1;
}
.wf-tab i {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--wf-line);
  display: block;
}
.wf-tab--on { color: var(--accent); }
.wf-tab--on i { border-color: var(--accent); }
.wf-fab {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--wf-ink);
  color: #fff;
  border: 3px solid var(--bg-canvas);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 400;
  margin-top: -18px;
  box-shadow: var(--shadow-2);
  flex-shrink: 0;
}

/* overlays: sheet / drawer / modal / toast */
.wf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,11,0.32);
  z-index: 10;
  display: flex;
}
.wf-overlay--bottom { align-items: flex-end; }
.wf-overlay--center { align-items: center; justify-content: center; }
.wf-overlay--right { justify-content: flex-end; }

.wf-sheet {
  position: relative;
  width: 100%;
  background: var(--bg-canvas);
  border-radius: 18px 18px 0 0;
  padding: 12px;
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: 8px;
  max-height: 88%;
  overflow: hidden;
}
.wf-sheet__grip { width: 34px; height: 4px; border-radius: 2px; background: var(--wf-line); margin: 2px auto 4px; }
.wf-sheet--tall { height: 84%; }

.wf-modal {
  width: 86%;
  background: var(--bg-canvas);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: 8px;
}
.wf-drawer {
  height: 100%;
  width: 74%;
  background: var(--bg-canvas);
  box-shadow: var(--shadow-3);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.wf-toast {
  position: absolute;
  left: 12px; right: 12px; bottom: 60px;
  background: var(--wf-ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 9px 11px;
  font-size: 9.5px;
  font-weight: 600;
  z-index: 9;
  box-shadow: var(--shadow-3);
}

/* web console sidebar */
.wf-sidebar {
  width: 128px;
  flex-shrink: 0;
  background: var(--dark-0);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wf-sidebar--collapsed { width: 46px; align-items: center; }
.wf-sidebar__brand { display: flex; align-items: center; gap: 6px; padding: 4px 4px 12px; }
.wf-sidebar__brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--grad-rainbow-d); flex-shrink: 0; }
.wf-sidebar__brand span { font-family: var(--font-wordmark); font-size: 11px; font-weight: 700; color: #fff; }
.wf-navitem {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  font-size: 10px; font-weight: 600;
  color: var(--dark-ink-3);
}
.wf-navitem i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.85; flex-shrink: 0; }
.wf-navitem--on { background: var(--dark-3); color: #fff; }
.wf-navitem__badge {
  margin-left: auto;
  font-size: 8px; font-weight: 700;
  background: var(--accent); color: #fff;
  border-radius: var(--r-pill);
  padding: 0 5px;
}
.wf-console-main { flex: 1; min-width: 0; padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; background: var(--bg-canvas); }

/* QR placeholder for the web swipe page */
.wf-qr {
  width: 74px; height: 74px;
  border-radius: var(--r-sm);
  background: repeating-conic-gradient(var(--wf-ink) 0% 25%, transparent 0% 50%) 0 0 / 10px 10px, var(--bg-canvas);
  border: 1px solid var(--wf-line);
  position: relative;
}
.wf-qr::after {
  content: "SCAN";
  position: absolute; inset: 8px;
  background: var(--bg-canvas);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 7px; color: var(--wf-label);
}

/* blurred / locked helper */
.wf-blur { filter: blur(3px); opacity: 0.6; }
.wf-lockfade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--wf-fill) 82%);
}

/* small bar chart placeholder (AI report) */
.wf-chart { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.wf-chart i { flex: 1; background: var(--wf-fill-2); border-radius: 2px; }

/* ── annotation notes under each frame ─────────────────────────────────── */

.wf-notes {
  list-style: none;
  margin: 0;
  padding: 12px 4px 8px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wf-note {
  position: relative;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.wf-note::before {
  content: "";
  position: absolute;
  left: 3px; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wf-line);
}
.wf-note b { color: var(--ink-2); font-weight: 600; }
.wf-note--key { color: var(--ink-2); }
.wf-note--key::before { background: var(--accent); }
.wf-note--key b { color: var(--ink); }

/* ── wireframe layout helpers ──────────────────────────────────────────── */

.wf-appbody { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 30px 11px 6px; overflow: hidden; }
.wf-appbody--map { padding: 0; }
.wf-scroll { flex: 1; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.wf-mt { margin-top: auto; }
.wf-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 18px; }
.wf-check { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wf-progress { display: flex; gap: 4px; }
.wf-progress i { height: 3px; flex: 1; border-radius: 2px; background: var(--wf-line); }
.wf-progress i.on { background: var(--wf-ink); }
.wf-web-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; align-items: center; flex: 1; }
.wf-web-two { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px; flex: 1; overflow: hidden; }
.wf-field { border: 1px solid var(--wf-line); border-radius: var(--r-sm); background: var(--bg-canvas); padding: 8px 9px; display: flex; align-items: center; }
.wf-field--area { height: 42px; align-items: flex-start; }
.wf-code { letter-spacing: 0.4em; font-family: var(--font-mono); font-size: 13px; color: var(--wf-label); }

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .topbar, .wf-subnav { padding-left: 24px; padding-right: 24px; }
  .hub-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: none; }
}
@media (max-width: 560px) {
  .topnav { display: none; }
  .wrap { padding: 0 18px; }
  .topbar, .wf-subnav { padding-left: 18px; padding-right: 18px; }
}
