/* Factory design tokens and components: graphite control room (desk), paper and safety orange (phone, cards). */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --paper: #f2eee4; --paper-2: #e9e3d5; --panel: #fbf9f3; --ink: #18171b; --ink-2: #57534a; --ink-3: #8b867a; --rule: #dcd4c3;
  --orange: #ff5a1f; --orange-2: #ffe2d4; --orange-ink: #b23a0c;
  --dev: #4b48d6; --dev-2: #e5e4fb; --stg: #0e8f62; --stg-2: #d9f1e6; --wait: #a86f06; --wait-2: #fbecc9; --bug: #c92d5c; --bug-2: #fbe0e8;
  /* One softer graphite for the whole desk (ghk, 22 Nov: the workshop's, everywhere, mocks included). */
  --g0: #202329; --g1: #272a31; --g2: #30343c; --g3: #3a3f48; --g4: #4b515c; --tx: #eeece6; --tx-2: #cdc9c0; --tx-3: #a5a198;
  --f-d: 'Inter', system-ui, sans-serif;
  --f-u: 'Inter', system-ui, sans-serif;
  --f-m: 'JetBrains Mono', ui-monospace, monospace;
  /* Accents on the graphite desk; the phone's paper redefines them (src/web/pages/pages.css, .v-phone). */
  --c-ok: #3ad59a; --c-ok2: #57e0ac; --c-dev: #8f8cff; --c-dev2: #a9a7ff; --c-hot: #ff8a5c; --c-warn: #f6b23c; --c-bad: #ff7a8a;
  --c-hatch: #2a2414; --c-sel: #2a1d16; --c-code: #1b1e23; --c-stripe: #23201d; --c-hold-line: #6a5222;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--f-u); color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.45;
  background-image: radial-gradient(circle, rgba(24,23,27,.09) 1px, transparent 1.2px); background-size: 18px 18px; }
.mono { font-family: var(--f-m); }
a { color: inherit; }

/* The design sheet around each screen */
.sheet { max-width: 1480px; margin: 0 auto; padding: 48px 40px 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.sheet-head .kicker { font-family: var(--f-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.sheet-head h1 { font-family: var(--f-d); font-weight: 800; font-size: 54px; line-height: .95; letter-spacing: -.02em; margin-top: 8px; }
.sheet-head p { max-width: 74ch; color: var(--ink-2); margin-top: 12px; font-size: 15px; }
.sheet-head nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sheet-head nav a { font-family: var(--f-m); font-size: 12px; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; background: var(--panel); }
.sheet-head nav a.on { background: var(--ink); color: var(--paper); }
.screen-label { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; }
.screen-label .n { font-family: var(--f-d); font-weight: 800; font-size: 34px; color: var(--orange); line-height: 1; }
.screen-label h2 { font-family: var(--f-d); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.screen-label p { color: var(--ink-2); max-width: 80ch; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note { border-left: 3px solid var(--orange); padding: 2px 0 2px 12px; color: var(--ink-2); font-size: 13px; }
.note b { color: var(--ink); display: block; font-size: 13px; margin-bottom: 2px; }

/* Stamps, tags and lane glyphs */
.tag { font-family: var(--f-m); font-size: 10.5px; font-weight: 500; padding: 2px 6px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.3; display: inline-block; }
.tag.dev { color: var(--dev); } .tag.stg { color: var(--stg); } .tag.wait { color: var(--wait); } .tag.bug { color: var(--bug); } .tag.or { color: var(--orange-ink); }
.tag.fill-dev { background: var(--dev); color: #fff; border-color: var(--dev); }
.tag.fill-stg { background: var(--stg); color: #fff; border-color: var(--stg); }
.tag.fill-or { background: var(--orange); color: #fff; border-color: var(--orange); }
.glyph { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-d); font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.stamp { font-family: var(--f-m); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border: 2px solid currentColor; padding: 3px 8px; border-radius: 3px; transform: rotate(-3deg); display: inline-block; font-weight: 700; }
.hazard { background: repeating-linear-gradient(-45deg, var(--orange) 0 8px, var(--ink) 8px 16px); }

/* ---------- Desk (dark control room) ---------- */
.desk { background: var(--g0); color: var(--tx); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(15,16,19,.55), 0 0 0 1px #000; font-size: 13px; }
.desk-top { height: 56px; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 18px 0 0; background: var(--g1); border-bottom: 1px solid var(--g3); }
.brand { display: flex; align-items: center; gap: 10px; height: 100%; padding-left: 14px; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--orange); display: grid; place-items: center; }
.brand b { font-family: var(--f-d); font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: block; line-height: 1.05; }
.brand small { color: var(--tx-3); font-family: var(--f-m); font-size: 12px; }
.search { height: 34px; border-radius: 9px; background: var(--g2); border: 1px solid var(--g3); display: flex; align-items: center; padding: 0 12px; color: var(--tx-3); gap: 8px; max-width: 520px; }
.search kbd { margin-left: auto; font-family: var(--f-m); font-size: 11.5px; border: 1px solid var(--g4); border-radius: 4px; padding: 1px 5px; }
.top-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--g3); background: var(--g2); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ad59a; box-shadow: 0 0 0 3px rgba(58,213,154,.16); }
.gauge { width: 56px; height: 6px; background: var(--g4); border-radius: 3px; overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--orange); }
.me { width: 32px; height: 32px; border-radius: 50%; background: #e9e3d5; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.desk-body { display: grid; grid-template-columns: 72px minmax(0, 1fr) 392px; min-height: 0; }
.rail { background: var(--g1); border-right: 1px solid var(--g3); padding: 12px 8px; display: grid; gap: 4px; align-content: start; }
.rail a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; color: var(--tx-3); text-decoration: none; font-size: 12px; font-weight: 600; position: relative; }
.rail a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.rail a.on { color: var(--tx); background: var(--g3); }
.rail a.on::before { content: ''; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--orange); }
.rail a .badge { position: absolute; top: 4px; right: 10px; background: var(--orange); color: #fff; font-size: 11px; font-family: var(--f-m); border-radius: 8px; padding: 0 4px; }
.desk-main { padding: 20px 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.desk-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.desk-h h3 { font-family: var(--f-d); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.desk-h span { color: var(--tx-3); font-family: var(--f-m); font-size: 12.5px; }
.desk-side { background: var(--g1); border-left: 1px solid var(--g3); display: grid; align-content: start; min-width: 0; }
.desk-foot { height: 38px; display: flex; align-items: center; gap: 22px; padding: 0 18px; background: var(--g1); border-top: 1px solid var(--g3); font-family: var(--f-m); font-size: 12px; color: var(--tx-2); white-space: nowrap; overflow: hidden; }
.desk-foot b { color: var(--tx); font-weight: 500; }
.desk-foot .ok { color: #3ad59a; }
.desk-foot .lbl { color: var(--orange); letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }

/* The line: stations across, lanes down */
.line { background: var(--g1); border: 1px solid var(--g3); border-radius: 14px; overflow: hidden; }
.line-grid { display: grid; grid-template-columns: 178px repeat(6, minmax(0, 1fr)); }
.st-head { padding: 12px 10px 10px; border-bottom: 1px solid var(--g3); border-left: 1px dashed var(--g3); display: grid; gap: 2px; }
.st-head:first-child { border-left: 0; }
.st-head small { font-family: var(--f-m); font-size: 11.5px; color: var(--tx-3); letter-spacing: .1em; text-transform: uppercase; }
.st-head b { font-family: var(--f-d); font-size: 22px; font-weight: 800; line-height: 1; }
.st-head.dev b { color: #8f8cff; } .st-head.stg b { color: #3ad59a; }
.lane { display: contents; }
.lane > div { border-bottom: 1px solid var(--g2); border-left: 1px dashed var(--g3); min-height: 70px; position: relative; padding: 9px 8px; }
.lane > .who { border-left: 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.who b { display: block; font-size: 13px; }
.who small { display: block; color: var(--tx-3); font-size: 12px; }
.who .state { font-family: var(--f-m); font-size: 11.5px; }
.state.run { color: #3ad59a; } .state.idle { color: var(--tx-3); } .state.pause { color: #f6b23c; }
.lane.dim > div { opacity: .45; }
/* bead trail from where the item started to where it is */
.trail { position: absolute; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 11px); left: 0; right: 0; }
.trail.start { left: 50%; }
.ticket { position: relative; z-index: 1; width: 178%; background: var(--g2); border: 1px solid var(--g4); border-radius: 8px; padding: 7px 9px 8px; display: grid; gap: 3px;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left/51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right/51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left/51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right/51% 100% no-repeat; }
.ticket.sel { background: var(--c-sel); border-color: var(--orange); }
.ticket .id { font-family: var(--f-m); font-size: 12px; color: var(--orange); font-weight: 700; }
.ticket .t { font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket .s { font-family: var(--f-m); font-size: 11.5px; color: var(--tx-2); }
.ticket .bar { height: 3px; background: var(--g4); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.ticket .bar i { display: block; height: 100%; background: var(--orange); }

/* Side panel */
.side-sec { padding: 16px 18px; border-bottom: 1px solid var(--g3); display: grid; gap: 10px; }
.side-sec h5 { font-family: var(--f-m); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); font-weight: 500; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 5px 0; position: relative; }
.step::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: -6px; width: 2px; background: var(--g3); }
.step:last-child::before { display: none; }
.step .k { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--g4); display: grid; place-items: center; font-size: 11.5px; background: var(--g1); z-index: 1; }
.step.done .k { background: var(--orange); border-color: var(--orange); color: #fff; }
.step.now .k { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.step b { font-size: 13.5px; font-weight: 600; display: block; }
.step small { color: var(--tx-3); font-size: 12px; }
.step .w { font-family: var(--f-m); font-size: 12px; color: var(--tx-3); }
.feed { display: grid; gap: 6px; font-family: var(--f-m); font-size: 12px; color: var(--tx-2); }
.feed div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.feed div span:first-child { color: var(--tx-3); }
.feed .ok { color: #3ad59a; }
.feed .msg { color: var(--tx); font-family: var(--f-u); font-size: 13.5px; background: var(--g2); border-radius: 8px; padding: 7px 9px; }
.composer { display: flex; gap: 8px; align-items: center; background: var(--g2); border: 1px solid var(--g4); border-radius: 10px; padding: 8px 8px 8px 12px; color: var(--tx-3); font-size: 13.5px; }
.composer .send { margin-left: auto; background: var(--orange); color: #fff; border-radius: 7px; padding: 5px 10px; font-weight: 700; font-size: 13px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--g4); background: var(--g2); color: var(--tx); border-radius: 8px; padding: 6px 11px; font-weight: 600; font-size: 13px; }
.btn.or { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Chat (item, lane and workshop conversations) ----------
   People's messages plain, agents' in a tinted box with their colour, events as one quiet line. */
.chat { display: grid; gap: 14px; align-content: start; }
.c-day { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--tx-3); }
.c-day::before, .c-day::after { content: ''; flex: 1; height: 1px; background: var(--g3); }
.c-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.c-ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #e9e3d5; color: var(--ink); }
.c-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.c-head b { font-size: 13.5px; font-weight: 600; color: var(--tx); }
.c-via { font-size: 12px; color: var(--tx-3); }
.c-head time { margin-left: auto; font-size: 12px; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.c-text { font-size: 14px; line-height: 1.55; color: var(--tx); display: grid; gap: 8px; }
.c-msg.agent .c-ava { border-radius: 8px; }
.c-msg.agent .c-text { background: var(--g2); border-left: 3px solid var(--c); border-radius: 0 10px 10px 0; padding: 8px 11px; }
/* A lane's message is also .lane, the Lini's row (display: contents, padded cells): undone inside a chat. */
.chat .c-msg.lane { display: grid; } .chat .c-msg.lane > div { border: 0; min-height: 0; padding: 0; position: static; }
.c-msg.lane { --c: #8f8cff; } .c-msg.lane .c-ava { background: #2b2a52; color: #d6d4ff; }
.c-msg.tester { --c: #3ad59a; } .c-msg.tester .c-ava { background: #173b2d; color: #9ff0cc; }
.c-msg.mira { --c: var(--orange); } .c-msg.mira .c-ava { background: var(--orange); color: var(--ink); }
.c-act { font-family: var(--f-m); font-size: 11.5px; color: var(--tx-3); display: grid; gap: 2px; }
.c-ev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--tx-2); }
.c-ev::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--g4); justify-self: center; align-self: center; }
.c-ev b { color: var(--tx); font-weight: 600; }
.c-ev time { font-size: 12px; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.c-ev .mono, .c-text .mono { font-size: 12px; }

/* ---------- Phone pages (paper) ---------- */
.phone-frame { width: 304px; border-radius: 40px; background: #0d0d0f; padding: 10px; box-shadow: 0 24px 40px -18px rgba(15,16,19,.6); flex: 0 0 auto; }
.phone-screen { border-radius: 31px; overflow: hidden; height: 640px; background: var(--paper); display: flex; flex-direction: column; position: relative; }
.notch { height: 26px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-family: var(--f-m); font-size: 10.5px; font-weight: 700; flex: 0 0 auto; }
.pg-top { background: var(--ink); color: var(--paper); padding: 12px 16px 14px; display: grid; gap: 3px; flex: 0 0 auto; }
.pg-top small { font-family: var(--f-m); font-size: 10px; color: #b7b1a3; letter-spacing: .06em; }
.pg-top b { font-family: var(--f-d); font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.pg-body { padding: 12px; display: grid; gap: 10px; align-content: start; overflow: hidden; flex: 1 1 auto; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 11px 12px; display: grid; gap: 6px; }
.card .id { font-family: var(--f-m); font-size: 10.5px; color: var(--orange-ink); font-weight: 700; }
.card .t { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.card .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.seg { display: flex; gap: 6px; overflow: hidden; }
.seg span { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); white-space: nowrap; }
.seg span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); background: var(--panel); flex: 0 0 auto; }
.tabbar span { text-align: center; padding: 8px 0 12px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); display: grid; justify-items: center; gap: 2px; }
.tabbar span.on { color: var(--orange-ink); }
.tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mini-line { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.mini-line i { height: 5px; border-radius: 3px; background: var(--paper-2); }
.mini-line i.d { background: var(--orange); }
.mini-line i.n { background: var(--orange); opacity: .4; }
.mini-lbl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; font-family: var(--f-m); font-size: 8.5px; color: var(--ink-3); text-transform: uppercase; }

/* ---------- WhatsApp ---------- */
.wa { background: #efe7dd; display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 12px 12px; }
.wa-top { display: flex; gap: 10px; align-items: center; background: #f6f4f0; padding: 8px 12px; border-bottom: 1px solid #ddd6cb; flex: 0 0 auto; }
.wa-top .ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--f-d); font-size: 13px; color: #fff; background: var(--ink); }
.wa-top b { font-size: 13.5px; display: block; line-height: 1.2; }
.wa-top small { font-size: 11px; color: #6f6a60; display: block; line-height: 1.2; }
.wa-chat { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; flex: 1 1 auto; justify-content: flex-end; }
.day { align-self: center; font-size: 10.5px; background: #fff; border-radius: 6px; padding: 2px 8px; color: #6f6a60; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.b { max-width: 86%; background: #fff; border-radius: 10px; padding: 6px 9px 4px; font-size: 12.8px; line-height: 1.38; box-shadow: 0 1px 0 rgba(0,0,0,.08); position: relative; align-self: flex-start; }
.b.me { align-self: flex-end; background: #d8f7c6; }
.b .who { font-size: 11.5px; font-weight: 700; margin-bottom: 1px; }
.b .tm { font-size: 9.5px; color: #8a857a; text-align: right; margin-top: 1px; }
.b .q { border-left: 3px solid var(--orange); background: rgba(0,0,0,.045); border-radius: 5px; padding: 3px 7px; font-size: 11.5px; color: #55524b; margin-bottom: 4px; }
.b .q b { color: var(--orange-ink); display: block; font-size: 11px; }
.b.img { padding: 3px 3px 4px; }
.b.img .cap { padding: 4px 6px 0; }
.b .shot { border-radius: 7px; height: 120px; background: linear-gradient(135deg, #dfe6ee, #c7d1dc); display: grid; place-items: center; color: #5a6675; font-size: 11px; font-family: var(--f-m); }
.wa-in { display: flex; gap: 8px; align-items: center; padding: 8px 10px 14px; background: #f6f4f0; flex: 0 0 auto; }
.wa-in div { flex: 1; background: #fff; border-radius: 18px; padding: 7px 12px; font-size: 12px; color: #8a857a; }
.wa-in i { width: 32px; height: 32px; border-radius: 50%; background: #1f8f5f; flex: 0 0 auto; }
.c-mira { color: var(--orange-ink); } .c-a { color: #6b3fa0; } .c-b { color: #0b7a8a; } .c-c { color: #a04b1f; }

/* ---------- Card image (sent into WhatsApp by Mira) ---------- */
.fcard { background: var(--panel); border-radius: 7px; overflow: hidden; border: 1px solid var(--rule); font-size: 11.5px; }
.fcard-h { background: var(--ink); color: var(--paper); padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fcard-h b { font-family: var(--f-d); font-weight: 800; font-size: 14px; letter-spacing: -.01em; line-height: 1.1; }
.fcard-h small { font-family: var(--f-m); font-size: 9.5px; color: #c9c2b2; }
.fcard-b { padding: 9px 10px 10px; display: grid; gap: 7px; }
.fcard .big { font-family: var(--f-d); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.fcard .kv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 8px; font-size: 11px; }
.fcard .kv span:nth-child(odd) { color: var(--ink-3); }
.fcard .foot { font-family: var(--f-m); font-size: 9px; color: var(--ink-3); display: flex; justify-content: space-between; border-top: 1px dashed var(--rule); padding-top: 5px; }

/* ---------- Storyboard ---------- */
.flow { background: var(--panel); border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px 22px 26px; display: grid; gap: 18px; }
.flow-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.flow-h .n { font-family: var(--f-d); font-weight: 800; font-size: 46px; line-height: .85; color: var(--orange); }
.flow-h h2 { font-family: var(--f-d); font-weight: 800; font-size: 26px; letter-spacing: -.015em; line-height: 1.05; }
.flow-h p { color: var(--ink-2); max-width: 82ch; margin-top: 4px; }
.flow-h .who { font-family: var(--f-m); font-size: 11px; color: var(--ink-2); text-align: right; display: grid; gap: 4px; justify-items: end; }
.strip { display: flex; gap: 0; overflow-x: auto; padding: 4px 2px 8px; align-items: flex-start; }
.frame { display: grid; gap: 10px; justify-items: center; flex: 0 0 auto; }
.frame > .cap { width: 300px; font-size: 12.5px; color: var(--ink-2); display: block; }
.frame > .cap > b { color: var(--ink); font-size: 13px; display: block; margin: 2px 0 3px; }
.frame > .cap .lbl { display: block; font-family: var(--f-m); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.link { width: 40px; flex: 0 0 auto; align-self: center; margin-top: -60px; display: grid; justify-items: center; gap: 4px; font-family: var(--f-m); font-size: 9px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.link::before { content: ''; width: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 10px); }

/* Narrow screens: the sheet around the mocks stacks (T1) */
@media (max-width: 900px) { .flow { padding: 16px 12px 20px; } .flow-h { grid-template-columns: auto minmax(0, 1fr); } .flow-h .who { grid-column: 1 / -1; justify-items: start; text-align: left; } .sheet { padding: 28px 16px 56px; } .sheet-head { grid-template-columns: minmax(0, 1fr); } .sheet-head h1 { font-size: 40px; } .notes { grid-template-columns: minmax(0, 1fr); } }
