/* FOUNDRY design system. Copyright (c) 2026 OptimaTech Labs, LLC
   Comic-panel pop style, same tokens as the FOUNDRY world HUD. Fonts are self-hosted (OFL, licences in /assets/fonts). */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/chakra-petch-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/chakra-petch-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/chakra-petch-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fraunces-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/fraunces-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }
:root {
  --bg: #8fe3fb; --paper: #fffaf0; --ink: #1b1033; --ink-2: #3b2f63; --dim: #5b5079;
  --pink: #ff2e93; --pink-ink: #c8106a; --cyan: #19d3f0; --yellow: #ffd21f; --mint: #3ee6a8;
  --purple: #8b5cff; --orange: #ff7a1a; --lav: #9a8fd6; --ok: #0f8a57; --bad: #d11a2a;
  --shadow: 4px 4px 0 var(--ink); --shadow-lg: 7px 7px 0 var(--ink); --shadow-sm: 3px 3px 0 var(--ink);
  --border: 3px solid var(--ink);
  --display: "Chakra Petch", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --serif: "Fraunces", Georgia, serif;
  --dots: radial-gradient(circle, rgba(27,16,51,.09) 1.6px, transparent 1.8px) 0 0 / 12px 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--dots), var(--bg); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
a { color: var(--pink-ink); }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* brand sticker */
.brand { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); border: var(--border); box-shadow: var(--shadow); padding: 6px 14px 6px 6px; transform: rotate(-1.5deg); text-decoration: none; color: var(--ink); }
.brand img { width: 50px; height: 50px; margin: -10px 0 -10px -10px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.brand strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--pink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); transform: skewX(-6deg); }
.brand small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }

/* chunky buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; background: #fff; border: var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.pink { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.btn.yellow { background: var(--yellow); }
.btn.cyan { background: var(--cyan); }
.btn.mint { background: var(--mint); }
.btn.purple { background: var(--purple); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 13px; }
.btn kbd { font-family: var(--mono); font-size: 11px; background: #fff; color: var(--ink); text-shadow: none; border: 2px solid var(--ink); padding: 0 5px; }

/* counters (HUD tiles) */
.counters { display: flex; gap: 10px; flex-wrap: wrap; }
.counter { position: relative; min-width: 104px; padding: 8px 12px 8px; background: #fff; border: var(--border); box-shadow: var(--shadow); }
.counter:nth-child(odd) { transform: rotate(-1deg); } .counter:nth-child(even) { transform: rotate(1deg); }
.counter::before { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 9px; background: var(--cc, var(--cyan)); border: var(--border); border-bottom-width: 0; }
.counter b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.counter span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cc-y { --cc: var(--yellow); } .cc-m { --cc: var(--mint); } .cc-o { --cc: var(--orange); } .cc-l { --cc: var(--lav); } .cc-p { --cc: var(--pink); } .cc-c { --cc: var(--cyan); } .cc-v { --cc: var(--purple); }

/* panels */
.panel { background: var(--paper); border: var(--border); box-shadow: var(--shadow-lg); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: var(--border); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 2px 2px 0 var(--ink); background: var(--pink); }
.panel-head.purple { background: var(--purple); } .panel-head.cyan { background: var(--cyan); } .panel-head.yellow { background: var(--yellow); color: var(--ink); text-shadow: none; } .panel-head.mint { background: var(--mint); color: var(--ink); text-shadow: none; }
.panel-head .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.panel-body { padding: 16px; }
.tilt-l { transform: rotate(-1deg); } .tilt-r { transform: rotate(1deg); }

/* section titles */
.kicker { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: #fff; border: 2px solid var(--ink); padding: 4px 10px; box-shadow: var(--shadow-sm); }
.h-pop { font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--pink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); text-transform: uppercase; margin: 0; }
.h-ink { font-weight: 700; line-height: 1.05; margin: 0; }

/* pills / chips */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--ink); background: #fff; padding: 3px 9px; white-space: nowrap; }
.pill.y { background: var(--yellow); } .pill.m { background: var(--mint); } .pill.p { background: var(--pink); color: #fff; } .pill.c { background: var(--cyan); } .pill.o { background: #ffb27a; } .pill.v { background: #c9b8ff; }
.live { position: relative; padding-left: 24px; }
.live::before { content: ""; position: absolute; left: 7px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--ink); background: var(--mint); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

/* seat score squares like the Idea Lab list */
.seats { display: flex; gap: 4px; }
.seat { width: 30px; height: 26px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; border: 2px solid var(--ink); }
.s-hi { background: var(--mint); } .s-mid { background: var(--yellow); } .s-lo { background: #ff8a80; }

/* idea rows */
.row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 14px; align-items: center; background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 10px 14px 10px 0; border-left: 10px solid var(--yellow); }
.row.ok { border-left-color: var(--mint); } .row.lo { border-left-color: var(--orange); }
.row .name { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.row .dom { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.score { font-size: 26px; font-weight: 700; }
.score.hi { color: var(--ok); } .score.mid { color: #b56a00; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea { min-height: 46px; border: var(--border); background: #fff; padding: 8px 12px; font-family: var(--mono); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; box-shadow: inset 3px 3px 0 rgba(27,16,51,.08); }
.field textarea { resize: vertical; }

/* toggle (segmented) */
.seg { display: flex; border: var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.seg button { flex: 1; min-height: 44px; border: 0; background: transparent; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.seg button + button { border-left: var(--border); }
.seg button[aria-pressed="true"] { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }

/* app shell */
.hud { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: var(--dots), var(--bg); border-bottom: var(--border); flex-wrap: wrap; }
.hud .counters { flex: 1; justify-content: center; }
.dock { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: var(--border); background: #fff4e4; }
.dock .btn[aria-current="page"] { background: var(--ink); color: var(--yellow); }
.app { padding: 24px 20px 60px; max-width: 1440px; margin: 0 auto; }
.grid2 { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }

/* log */
.log { list-style: none; margin: 0; padding: 4px 0; }
.log li { display: grid; grid-template-columns: 62px auto 1fr; gap: 2px 8px; padding: 8px 14px; font-size: 13px; border-bottom: 2px dashed rgba(27,16,51,.12); }
.log time { font-family: var(--mono); color: var(--dim); }
.log .what { grid-column: 3; font-family: var(--mono); font-weight: 600; }
.log .det { grid-column: 3; font-family: var(--mono); color: var(--dim); font-size: 12px; }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px; border-bottom: var(--border); background: #fff3b0; white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 2px dashed rgba(27,16,51,.15); vertical-align: middle; }
.scrollx { overflow-x: auto; }

.bar { height: 12px; background: #f1ecfa; border: 2px solid var(--ink); }
.bar i { display: block; height: 100%; background: var(--pink); }

.frame { border: var(--border); box-shadow: var(--shadow-lg); background: #fff; }
.sticker { position: absolute; background: var(--yellow); border: var(--border); box-shadow: var(--shadow); padding: 8px 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 1000px) { .grid2, .grid3 { grid-template-columns: minmax(0,1fr); } .grid4 { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: minmax(0,1fr); } .row { grid-template-columns: minmax(0,1fr) auto; padding-left: 12px; } .row .pill, .row .seats { display: none; } .wrap { padding: 0 16px; } }

/* admin layout + shared bits for the full page set */
.admin { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 22px; align-items: start; }
.subnav { display: flex; flex-direction: column; gap: 8px; }
.subnav .btn { justify-content: flex-start; }
.subnav-group { display: flex; flex-direction: column; gap: 6px; }
.subnav-group + .subnav-group { margin-top: 8px; }
.subnav-h { font-size: 11px; align-self: flex-start; }
.subnav .btn[aria-current="page"], .dock .btn[aria-current="page"] { background: var(--ink); color: var(--yellow); text-shadow: none; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 52px; margin-top: 12px; }
.page-head p { font-weight: 500; max-width: 520px; margin: 0; }
.kpi { background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 12px 14px; }
.kpi b { display: block; font-size: 28px; line-height: 1.1; }
.kpi span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.toggle input { appearance: none; width: 48px; height: 28px; border: var(--border); background: #f1ecfa; position: relative; cursor: pointer; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--ink); transition: left .15s; }
.toggle input:checked { background: var(--mint); }
.toggle input:checked::after { left: 24px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 12px 14px; border-bottom: 2px dashed rgba(27,16,51,.15); }
@media (max-width: 1000px) { .admin { grid-template-columns: minmax(0,1fr); } .subnav { flex-direction: column; } .subnav-group { flex-direction: row; flex-wrap: wrap; align-items: center; } .subnav-group + .subnav-group { margin-top: 2px; } .subnav-h { flex-basis: auto; } }

/* ===== platform components (no inline styles anywhere: the CSP forbids them) ===== */
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; }
.skip:focus { left: 8px; }
kbd.k { font-family: var(--mono); font-size: 11px; background: #fff; color: var(--ink); text-shadow: none; border: 2px solid var(--ink); padding: 0 5px; }
.panel-head kbd.k { margin-left: auto; }
.btn.danger { background: #ff8a80; }
.btn.block { justify-content: center; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.panel-head.red { background: #ff8a80; color: var(--ink); text-shadow: none; }
.panel-head.between { justify-content: space-between; flex-wrap: wrap; }
.panel-head .pills { display: flex; gap: 8px; flex-wrap: wrap; text-shadow: none; }
.panel-head .btn { text-shadow: none; }
.dot.pink { background: var(--pink); }

/* layout utilities */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.stack-xl { display: flex; flex-direction: column; gap: 26px; }
.rowx { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rowx.gap-l { gap: 14px; } .rowx.gap-xl { gap: 18px; }
.rowx.top { align-items: flex-start; }
.between { justify-content: space-between; }
.grow { flex: 1 1 200px; min-width: 0; }
.grow-s { flex: 1 1 140px; min-width: 0; }
.ml-auto { margin-left: auto; }
.m0 { margin: 0; }
.mt-s { margin-top: 8px; } .mt { margin-top: 14px; } .mt-l { margin-top: 24px; }
.self-start { align-self: flex-start; }
.center { text-align: center; }
.minw0 { min-width: 0; }
.maxw-640 { max-width: 640px; } .maxw-760 { max-width: 760px; } .maxw-920 { max-width: 920px; }
.lead { font-size: 19px; line-height: 1.5; font-weight: 500; margin: 0; }
.p { font-weight: 500; line-height: 1.5; margin: 0; }
.small { font-family: var(--mono); font-size: 13px; }
.tiny { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--dim); }
.ink2 { color: var(--ink-2); }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.h2 { font-size: 24px; text-transform: uppercase; margin: 0 0 6px; }
.h-26 { font-size: 26px; text-transform: uppercase; }
.big-num { font-size: 72px; color: var(--yellow); }
.plain-link { text-decoration: none; color: inherit; }
.tbl.minw-820 { min-width: 820px; } .tbl.minw-680 { min-width: 680px; }
.tbl .num { text-align: right; font-family: var(--mono); }
.field .hint { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.inline input, .field.inline select { min-height: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--pink); flex: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; min-height: 44px; display: grid; place-items: center; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 0 8px; }
.seg label + label { border-left: var(--border); }
.seg label:has(input:checked) { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.seg.tabs a { flex: 1; min-height: 44px; display: grid; place-items: center; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.seg.tabs a + a { border-left: var(--border); }
.seg.tabs a[aria-current="page"] { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.m-14 { margin: 14px 14px 0; }

/* flash messages */
.flashes { display: flex; flex-direction: column; gap: 10px; }
.flash { border: var(--border); box-shadow: var(--shadow-sm); padding: 12px 14px; font-weight: 600; background: #fff; }
.flash.ok { background: #c9f7e4; } .flash.error { background: #ffd0cb; }
.flash::before { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-right: 8px; }
.flash.ok::before { content: "Done"; } .flash.error::before { content: "Problem"; }

/* empty states */
.empty { border: 3px dashed var(--ink); background: var(--dots), #fff; padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty h2, .empty h3 { margin: 0; text-transform: uppercase; }
.empty p { margin: 0; font-weight: 500; line-height: 1.5; max-width: 620px; }

/* app shell on phones: HUD scrolls away, dock scrolls sideways inside itself */
.hud .pill { text-decoration: none; color: var(--ink); }
.hud form { margin: 0; }
.dock .btn.add { margin-left: auto; }
@media (max-width: 760px) {
  .hud { position: static; gap: 12px; padding: 10px 12px; }
  .hud .counters { justify-content: flex-start; gap: 8px; }
  .counter { min-width: 0; flex: 1 1 88px; padding: 6px 8px; }
  .counter b { font-size: 20px; }
  .counter span { font-size: 10px; }
  .dock { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; }
  .dock .btn { flex: none; }
  .app { padding: 18px 12px 48px; }
  .page-head h1 { font-size: 40px; }
  .brand strong { font-size: 22px; }
}

/* landing */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.top nav { display: flex; gap: 10px; flex-wrap: wrap; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 40px; align-items: start; padding: 30px 0 70px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); margin-top: 18px; }
.hero .lead { margin: 22px 0 26px; max-width: 560px; }
.world { position: relative; }
.world .frame { transform: rotate(1.2deg); overflow: hidden; }
.world .s1 { top: -18px; left: 24px; transform: rotate(-4deg); background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.world .s2 { bottom: -20px; right: 30px; transform: rotate(3deg); font-family: var(--mono); font-size: 13px; }
.world .s3 { top: 40%; left: -22px; transform: rotate(-6deg); background: var(--mint); }
.band { background: var(--ink); color: #fff; border-top: var(--border); border-bottom: var(--border); padding: 26px 0; }
.band .counters { justify-content: center; }
.band .counter { color: var(--ink); }
.line { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.station { background: #fff; border: var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.station:nth-child(odd) { transform: rotate(-.8deg); } .station:nth-child(even) { transform: rotate(.8deg); }
.station .ph { aspect-ratio: 4/3; border-bottom: var(--border); background-size: cover; background-position: center; position: relative; display: grid; place-items: center; }
.station .ph .n { position: absolute; top: 8px; left: 8px; }
.station .ph .h-pop { font-size: 40px; }
.ph-idealab { background-image: url(img/idealab.webp); }
.ph-board { background-image: url(img/board.webp); }
.ph-world { background-image: url(img/world.webp); }
.ph-research { background: var(--dots), #c9b8ff; }
.ph-launch { background: var(--dots), var(--mint); }
.station h3 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.station p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
section.sec { padding: 80px 0; }
section.sec.pinkband { background: var(--dots), #ffd3ec; border-top: var(--border); border-bottom: var(--border); }
section.sec.cream { background: var(--dots), #fff4e4; border-top: var(--border); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; max-width: 820px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 58px); }
.sec-head p { font-size: 18px; line-height: 1.5; font-weight: 500; margin: 0; }
.h-52 { font-size: clamp(36px, 5vw, 52px); }
.prof { background: #fff; border: var(--border); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.prof h3 { margin: 0; font-size: 20px; text-transform: uppercase; }
.prof p { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.plan { background: #fff; border: var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.plan .ph { padding: 12px 16px; border-bottom: var(--border); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan .ph.c { background: var(--cyan); } .plan .ph.y { background: var(--yellow); } .plan .ph.m { background: var(--mint); }
.plan .ph.p { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.plan.hot { box-shadow: 10px 10px 0 var(--pink); }
.plan .pb { padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan .price { font-size: 40px; font-weight: 700; line-height: 1; }
.plan ul { margin: 12px 0 18px; padding-left: 18px; font-weight: 500; line-height: 1.7; }
.plan .btn { margin-top: auto; justify-content: center; }
.foot { background: var(--ink); color: #fff; padding: 30px 0; border-top: var(--border); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.foot a { color: var(--yellow); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 1000px) { .hero { grid-template-columns: minmax(0,1fr); } .line { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .line { grid-template-columns: minmax(0,1fr); } .top nav .navlink { display: none; } .world .s3 { left: -6px; } section.sec { padding: 56px 0; } }

/* auth pages */
body.sky { min-height: 100vh; background: var(--dots), linear-gradient(160deg, #2fc6f2, #ffd3ec); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,460px); gap: 48px; align-items: center; padding: 40px 0 60px; }
.split h1 { font-size: clamp(40px, 6vw, 76px); }
.split .frame { overflow: hidden; max-width: 560px; }
.bar-head { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); gap: 28px; padding-top: 16px; } }

/* setup */
.setup-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.setup-head .h-pop { font-size: 36px; color: var(--yellow); text-transform: none; }
.setup-main { margin: 20px 0 60px; }
.setup-main .panel-body { padding: 22px; }
.steps-top { display: flex; gap: 8px; flex-wrap: wrap; }
.steps-top span { font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; border: 2px solid var(--ink); background: #fff; padding: 6px 10px; color: var(--ink); text-shadow: none; }
.steps-top span.on { background: var(--yellow); box-shadow: var(--shadow-sm); }
.steps-top span.done { background: var(--mint); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); grid-auto-rows: 1fr; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; max-width: 100%; }
.choice.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice label { background: #fff; border: var(--border); padding: 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font-weight: 500; position: relative; min-width: 0; height: 100%; overflow-wrap: anywhere; }
.choice label:has(input:checked) { background: var(--yellow); box-shadow: var(--shadow); transform: rotate(-1deg); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.choice b { text-transform: uppercase; }
.choice input { position: absolute; opacity: 0; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.js .step-nav .js-only, .step-nav .nojs-only { display: inline-flex; }
.step-nav .js-only, .js .step-nav .nojs-only { display: none; }
.js .step[data-off] { display: none; }
.step + .step { margin-top: 26px; }
.js .step + .step { margin-top: 0; }
.ontheline { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ontheline .h-pop { font-size: 48px; }
.ontheline .frame { overflow: hidden; max-width: 560px; }
@media (max-width: 420px) { .choice, .choice.two { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; } }
@media (max-width: 760px) { .ontheline .h-pop { font-size: 36px; } }

/* lists */
.listtabs { display: flex; gap: 10px; flex-wrap: wrap; }
.listtabs .btn[aria-current="page"] { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.stage { display: flex; gap: 3px; }
.stage i { width: 18px; height: 14px; border: 2px solid var(--ink); background: #f1ecfa; }
.stage i.d { background: var(--mint); } .stage i.n { background: var(--yellow); } .stage i.x { background: #ff8a80; }
.drop { border: 3px dashed var(--ink); background: var(--dots), #fff; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.drop input[type=file] { max-width: 100%; font-family: var(--mono); font-size: 13px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; border-bottom: var(--border); align-items: center; }
.refused { list-style: none; margin: 0; padding: 0; }
.refused li { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 4px 10px; padding: 8px 14px; border-bottom: 2px dashed rgba(27,16,51,.15); font-family: var(--mono); font-size: 13px; }
.refused li b { overflow-wrap: anywhere; }
.refused li span { grid-column: 2; color: var(--bad); }
.levers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; border: 0; margin: 0; padding: 0; }
.levers legend { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; padding: 0; }
details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; margin-left: auto; font-family: var(--mono); }
details.panel[open] > summary::after { content: "−"; }
@media (max-width: 760px) { .levers { grid-template-columns: minmax(0,1fr); } }

/* dashboard */
.funnel { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; align-items: end; padding: 16px; }
.funnel .col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.funnel b { font-size: 24px; }
.funnel span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.meter { height: 150px; display: flex; align-items: flex-end; border-bottom: 3px solid var(--ink); }
.meter i { display: block; width: 100%; border: var(--border); border-bottom: 0; box-shadow: var(--shadow-sm); min-height: 6px; }
.meter.h0 i { height: 6px; } .meter.h1 i { height: 12%; } .meter.h2 i { height: 25%; } .meter.h3 i { height: 37%; } .meter.h4 i { height: 50%; }
.meter.h5 i { height: 62%; } .meter.h6 i { height: 75%; } .meter.h7 i { height: 87%; } .meter.h8 i { height: 100%; }
.bg-lav { background: var(--lav); } .bg-purple { background: var(--purple); } .bg-lilac { background: #c9b8ff; } .bg-cyan { background: var(--cyan); }
.bg-mint { background: var(--mint); } .bg-yellow { background: var(--yellow); } .bg-pink { background: var(--pink); } .bg-white { background: #fff; }
@media (max-width: 800px) { .funnel { grid-template-columns: repeat(4,minmax(0,1fr)); } }

/* error page */
.err { min-height: 70vh; display: grid; place-items: center; padding: 40px 0; }
.err .panel { max-width: 640px; }
.err .code { font-size: clamp(80px, 16vw, 140px); }

/* legal prose */
.prose { max-width: 820px; }
.prose h2 { text-transform: uppercase; font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { font-weight: 500; line-height: 1.6; font-size: 16px; }
.prose ul { padding-left: 20px; }
.draft { background: var(--yellow); border: var(--border); box-shadow: var(--shadow-sm); padding: 10px 14px; font-weight: 700; }

/* admin outbox preview */
.mail-frame { width: 100%; height: 620px; border: var(--border); background: #fff; display: block; }
pre.mailtext { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; margin: 0; padding: 14px; background: #fff; border: var(--border); }
.code-big { font-family: var(--mono); font-size: 24px; font-weight: 600; background: var(--yellow); border: var(--border); padding: 6px 12px; display: inline-block; }
.grant { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.grant input { width: 90px; min-height: 38px; border: var(--border); padding: 4px 8px; font-family: var(--mono); }
.grant input.note { width: 160px; }
@media (max-width: 560px) { .err .panel { transform: none; } .split .frame { display: none; } }
@media (max-width: 760px) {
  .hud .counters { flex: 1 1 100%; order: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hud .counter { transform: none; }
  .meter { height: 80px; }
}
@media (max-width: 400px) { .hud .counters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== phase 2: the line (Idea Lab to the Board), no inline styles ===== */
.linetabs { display: flex; gap: 8px; flex-wrap: wrap; }
.linetabs .btn { position: relative; }
.linetabs .btn[aria-current="page"] { background: var(--ink); color: var(--yellow); text-shadow: none; }
.linetabs .btn .st { width: 10px; height: 10px; border: 2px solid var(--ink); background: #fff; display: inline-block; }
.linetabs .btn .st.done { background: var(--mint); } .linetabs .btn .st.wait { background: var(--pink); } .linetabs .btn .st.run { background: var(--yellow); }
.linetabs .btn .st.bad { background: #ff8a80; }
.statusbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 10px 14px; }
.statusbar form { margin: 0; }
.statusbar.wait { background: #ffe3f1; } .statusbar.pause { background: #ffd0cb; } .statusbar.ok { background: #c9f7e4; }
.gate { border: var(--border); background: #fff3b0; box-shadow: 6px 6px 0 var(--pink); }
.gate .panel-body { display: flex; flex-direction: column; gap: 12px; }
.gate textarea, .field textarea.tall { min-height: 92px; }
.field textarea.huge { min-height: 520px; font-size: 13px; line-height: 1.5; }
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.idea { background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.idea.win { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.idea.dropped { opacity: .55; background: #f1ecfa; }
.idea .t { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.idea p { margin: 0; font-weight: 500; line-height: 1.45; font-size: 14px; overflow-wrap: anywhere; }
.idea .ev { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.idea .ev li { overflow-wrap: anywhere; margin-bottom: 4px; }
.idea .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.idea details summary { cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.facts { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 8px 12px; margin: 0; font-weight: 500; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 2px dashed rgba(27,16,51,.15); }
.vlist li.cur { background: #fff3b0; }
.vlist form { margin: 0; }
.vlist .why { flex: 1 1 220px; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.scoretbl td.sc { text-align: center; font-family: var(--mono); font-weight: 600; }
.scoretbl tr.win td { background: #fff3b0; }
.stamp { display: inline-block; border: var(--border); box-shadow: var(--shadow); padding: 6px 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-3deg); background: #fff; }
.stamp.gold { background: var(--yellow); } .stamp.back { background: #ff8a80; } .stamp.go { background: var(--mint); } .stamp.rev { background: #ffb27a; }
.chairs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.chair { background: #fff; border: var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-width: 0; }
.chair .ch { padding: 10px 12px; border-bottom: var(--border); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.chair .ch.c-ceo { background: var(--yellow); } .chair .ch.c-cfo { background: var(--mint); } .chair .ch.c-brand { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.chair .ch.c-tech { background: var(--cyan); } .chair .ch.c-gtm { background: var(--purple); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.chair .ch .pill { text-shadow: none; color: var(--ink); }
.chair .cb { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chair .big { font-size: 44px; font-weight: 700; line-height: 1; }
.chair .big.hi { color: var(--ok); } .chair .big.mid { color: #b56a00; } .chair .big.lo { color: var(--bad); }
.bubble { position: relative; background: #fffaf0; border: 2px solid var(--ink); padding: 10px 12px; font-weight: 500; font-size: 14px; line-height: 1.45; margin: 6px 0 0; overflow-wrap: anywhere; }
.bubble::before { content: ""; position: absolute; top: -9px; left: 18px; width: 14px; height: 14px; background: #fffaf0; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.tally { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tally .h-pop { font-size: 56px; }
.shots { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.shots .desk { flex: 3 1 360px; min-width: 0; }
.shots .phone { flex: 1 1 160px; max-width: 240px; min-width: 0; }
.shots figure, .shotfig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shots img, .shotfig img { border: var(--border); box-shadow: var(--shadow); background: #fff; width: 100%; }
.shots figcaption, .shotfig figcaption { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.refusal { border: var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.refusal .rh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-bottom: var(--border); background: #ffd0cb; }
.refusal.ok .rh { background: #c9f7e4; }
.refusal .rb { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.refusal ul { margin: 0; padding-left: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.refusal ul li { overflow-wrap: anywhere; }
.mood { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.mood img { border: var(--border); box-shadow: var(--shadow-sm); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; width: 86px; }
.swatch svg { width: 86px; height: 56px; border: var(--border); display: block; }
.kitline { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; border-bottom: 2px dashed rgba(27,16,51,.15); padding: 10px 0; }
.kitline .role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; width: 70px; flex: none; }
.kitline .sample { font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.kitline .sample.t { font-size: 18px; } .kitline .sample.m { font-size: 16px; }
.doc { background: var(--paper); border: var(--border); box-shadow: 10px 10px 0 var(--ink); max-width: 980px; }
.doc > header { background: var(--purple); color: #fff; padding: 22px 24px; border-bottom: var(--border); }
.doc > header .h-pop { color: var(--yellow); text-transform: none; font-size: clamp(28px, 5vw, 44px); overflow-wrap: anywhere; }
.doc .summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 18px 24px; border-bottom: var(--border); }
.doc .summary .kpi b { font-size: 15px; line-height: 1.4; font-weight: 600; }
.doc .md { padding: 8px 24px 24px; }
.doc .summary .kpi { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 761px) { [data-gate="card"], [data-gate="artlab"], #preview-revision { scroll-margin-top: 132px; } }
@media (min-width: 761px) and (max-width: 1100px) { [data-gate="card"], [data-gate="artlab"], #preview-revision { scroll-margin-top: 220px; } }
.plan-research > summary { padding: 18px 24px; cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
.plan-research[open] > summary { border-bottom: 1px solid var(--ink); }
.plan-research .md { overflow-wrap: anywhere; }
.concept-reference { min-width: 0; }
.concept-reference .report-shot img { max-height: 420px; object-fit: contain; background: var(--paper); }
.concept-reference > summary { overflow-wrap: anywhere; }
@media (max-width: 560px) { .plan-research > summary { padding-left: 14px; padding-right: 14px; } }

.md h2, .md h3, .md h4 { text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 8px; font-size: 19px; }
.md p, .md li { font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.md blockquote { margin: 10px 0; padding: 8px 14px; border-left: 6px solid var(--pink); background: #fff; font-weight: 500; }
.md code { font-family: var(--mono); font-size: 13px; background: #fff; border: 1px solid var(--ink); padding: 0 4px; }
.md .tbl { font-size: 13px; }
.md hr { border: 0; border-top: 3px solid var(--ink); }
.queue-card { background: #fff; border: var(--border); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 12px minmax(0,1fr) auto; }
.queue-card .edge { border-right: var(--border); background: var(--purple); }
.queue-card.under .edge { background: var(--orange); } .queue-card.paused .edge { background: #ff8a80; }
.queue-card .bd { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.queue-card .acts { padding: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-content: center; justify-content: flex-end; }
.queue-card h2 { margin: 0; font-family: var(--serif); font-size: 20px; overflow-wrap: anywhere; }
.linetbl td, .linetbl th { white-space: nowrap; }
.mono-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; margin: 0; }
@media (max-width: 1100px) { .chairs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .ideas, .mood, .doc .summary, .compare { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 800px) { .queue-card { grid-template-columns: 12px minmax(0,1fr); } .queue-card .acts { grid-column: 2; justify-content: flex-start; padding-top: 0; } }
@media (max-width: 560px) { .chairs { grid-template-columns: minmax(0,1fr); } .facts { grid-template-columns: minmax(0,1fr); } .doc > header, .doc .md, .doc .summary { padding-left: 14px; padding-right: 14px; } .tally .h-pop { font-size: 44px; } }
.pct-0 { width: 0%; } .pct-1 { width: 1%; } .pct-2 { width: 2%; } .pct-3 { width: 3%; } .pct-4 { width: 4%; } .pct-5 { width: 5%; } .pct-6 { width: 6%; } .pct-7 { width: 7%; } .pct-8 { width: 8%; } .pct-9 { width: 9%; } .pct-10 { width: 10%; } .pct-11 { width: 11%; } .pct-12 { width: 12%; } .pct-13 { width: 13%; } .pct-14 { width: 14%; } .pct-15 { width: 15%; } .pct-16 { width: 16%; } .pct-17 { width: 17%; } .pct-18 { width: 18%; } .pct-19 { width: 19%; } .pct-20 { width: 20%; } .pct-21 { width: 21%; } .pct-22 { width: 22%; } .pct-23 { width: 23%; } .pct-24 { width: 24%; } .pct-25 { width: 25%; } .pct-26 { width: 26%; } .pct-27 { width: 27%; } .pct-28 { width: 28%; } .pct-29 { width: 29%; } .pct-30 { width: 30%; } .pct-31 { width: 31%; } .pct-32 { width: 32%; } .pct-33 { width: 33%; } .pct-34 { width: 34%; } .pct-35 { width: 35%; } .pct-36 { width: 36%; } .pct-37 { width: 37%; } .pct-38 { width: 38%; } .pct-39 { width: 39%; } .pct-40 { width: 40%; } .pct-41 { width: 41%; } .pct-42 { width: 42%; } .pct-43 { width: 43%; } .pct-44 { width: 44%; } .pct-45 { width: 45%; } .pct-46 { width: 46%; } .pct-47 { width: 47%; } .pct-48 { width: 48%; } .pct-49 { width: 49%; } .pct-50 { width: 50%; } .pct-51 { width: 51%; } .pct-52 { width: 52%; } .pct-53 { width: 53%; } .pct-54 { width: 54%; } .pct-55 { width: 55%; } .pct-56 { width: 56%; } .pct-57 { width: 57%; } .pct-58 { width: 58%; } .pct-59 { width: 59%; } .pct-60 { width: 60%; } .pct-61 { width: 61%; } .pct-62 { width: 62%; } .pct-63 { width: 63%; } .pct-64 { width: 64%; } .pct-65 { width: 65%; } .pct-66 { width: 66%; } .pct-67 { width: 67%; } .pct-68 { width: 68%; } .pct-69 { width: 69%; } .pct-70 { width: 70%; } .pct-71 { width: 71%; } .pct-72 { width: 72%; } .pct-73 { width: 73%; } .pct-74 { width: 74%; } .pct-75 { width: 75%; } .pct-76 { width: 76%; } .pct-77 { width: 77%; } .pct-78 { width: 78%; } .pct-79 { width: 79%; } .pct-80 { width: 80%; } .pct-81 { width: 81%; } .pct-82 { width: 82%; } .pct-83 { width: 83%; } .pct-84 { width: 84%; } .pct-85 { width: 85%; } .pct-86 { width: 86%; } .pct-87 { width: 87%; } .pct-88 { width: 88%; } .pct-89 { width: 89%; } .pct-90 { width: 90%; } .pct-91 { width: 91%; } .pct-92 { width: 92%; } .pct-93 { width: 93%; } .pct-94 { width: 94%; } .pct-95 { width: 95%; } .pct-96 { width: 96%; } .pct-97 { width: 97%; } .pct-98 { width: 98%; } .pct-99 { width: 99%; } .pct-100 { width: 100%; } 
.maxw-phone { max-width: 260px; }
.idea .facts { font-size: 14px; }

/* ---------- Phase 3: studio, billing, businesses (from docs/mockup studios.html, billing.html, businesses.html) ---------- */
.panel-head.pink-head { background: var(--pink); }
.panel-head.red { background: #ff8a80; color: var(--ink); text-shadow: none; }
.bad-text { color: var(--bad); }
.sr { position: absolute; left: -9999px; }
.mt-auto { margin-top: auto; }
.h-28 { font-size: 28px; }
.gap-s { gap: 10px; }
.w-90 { width: 90px; min-height: 38px; border: var(--border); padding: 4px 8px; font-family: var(--mono); }
.btn.purple-btn { background: var(--purple); color: #fff; }
.studio { background: #fff; border: var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.studio:nth-child(odd) { transform: rotate(-.6deg); } .studio:nth-child(even) { transform: rotate(.6deg); }
.studio .sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: var(--border); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--cyan); }
.studio .sh.mint { background: var(--mint); } .studio .sh.yellow { background: var(--yellow); } .studio .sh.lav { background: #f1ecfa; } .studio .sh.red-bg { background: #ff8a80; }
.studio .sb { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.studio .nm { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 0; overflow-wrap: anywhere; }
.steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.steps.steps4 { grid-template-columns: repeat(4,minmax(0,1fr)); } .steps.steps6 { grid-template-columns: repeat(6,minmax(0,1fr)); }
.steps span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; text-align: center; padding: 6px 2px; border: 2px solid var(--ink); background: #f1ecfa; }
.steps .done { background: var(--mint); } .steps .now { background: var(--yellow); animation: nowpulse 1.6s infinite; }
/* the running step pulses in colour, not size, so the last column never pushes a phone page sideways */
@keyframes nowpulse { 50% { background: #fff3b0; box-shadow: inset 0 0 0 3px var(--pink); } }
.mini { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.mini.mini4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.mini div { border: 2px solid var(--ink); padding: 8px; background: #fffaf0; min-width: 0; }
.mini b { display: block; font-size: 22px; overflow-wrap: anywhere; }
.mini span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--dim); }
.studio-bay { display: flex; flex-direction: column; gap: 24px; }
.liveshot-wrap { border-bottom: var(--border); background: var(--dots), #f1ecfa; }
.liveshot { width: 100%; height: auto; display: block; }
.liveshot-empty { min-height: 320px; display: grid; place-items: center; }
.quote-price { border: var(--border); background: var(--yellow); box-shadow: var(--shadow-sm); padding: 8px 14px; text-align: right; }
.quote-price b { display: block; font-size: 30px; } .quote-price span { font-family: var(--mono); font-size: 12px; }
.quote-amt { font-size: 28px; }
.quote-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border: var(--border); background: #fff; padding: 12px; }
.addr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; }
.addr input { min-height: 46px; border: var(--border); background: #fff; padding: 8px 12px; font-family: var(--mono); font-size: 15px; width: min(260px, 100%); }
.fixes { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; }
.fix { border: var(--border); background: #fff; box-shadow: var(--shadow-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.fix .pill { align-self: flex-start; } .fix b { overflow-wrap: anywhere; } .fix .small, .fix .tiny { overflow-wrap: anywhere; }
.fix-empty { font-family: var(--mono); font-size: 13px; padding: 8px; }
.fix.new { animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.96); background: var(--yellow); } to { transform: none; } }
.final-shots { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 16px; padding: 16px; align-items: start; }
.final-shots figure { margin: 0; border: var(--border); background: #fff; }
.final-shots figcaption { padding: 6px 10px; border-top: 2px solid var(--ink); }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: var(--border); background: #fff; padding: 12px 14px; font-weight: 700; cursor: pointer; }
.pack:has(input:checked) { background: var(--yellow); box-shadow: var(--shadow-sm); }
.pack input { width: 20px; height: 20px; accent-color: var(--pink); }
.biz { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 0; background: #fff; border: var(--border); box-shadow: var(--shadow-lg); }
.biz .shot { border-right: var(--border); background: var(--dots), #f1ecfa; display: grid; place-items: center; min-height: 280px; overflow: hidden; }
.biz .shot img { width: 100%; height: auto; align-self: start; }
.biz .info { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.owner-link { border: var(--border); background: #c9f7e4; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat { border: var(--border); background: var(--paper); }
.chat .chat-head { font-size: 13px; }
.chat .m { padding: 10px 12px; border-bottom: 2px dashed rgba(27,16,51,.15); font-weight: 500; font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.chat .m b { font-family: var(--mono); font-size: 11px; text-transform: uppercase; display: block; color: var(--dim); }
.chat-form { padding: 10px; }
.chat-form .field input { min-height: 40px; }
.dl { font-size: 13px; }
@media (max-width: 900px) { .biz { grid-template-columns: minmax(0,1fr); } .biz .shot { border-right: 0; border-bottom: var(--border); min-height: 180px; } .final-shots { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) { .mini.mini4 { grid-template-columns: repeat(2,minmax(0,1fr)); } .steps.steps6 { grid-template-columns: repeat(3,minmax(0,1fr)); } .studio { transform: none !important; } }
.log .what, .log .det { overflow-wrap: anywhere; min-width: 0; }
.flash, .statusbar .small, .studio-bay .panel-body p { overflow-wrap: anywhere; } .studio-bay, .studio-bay > * { min-width: 0; }

/* landing: the live public factory in the hero (phase 4) */
.world .live-world { position: relative; aspect-ratio: 16 / 10; background: #8fe3fb; }
.world .live-world iframe { display: block; width: 100%; height: 100%; border: 0; }
.world .world-open { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--ink); border: var(--border); box-shadow: var(--shadow); padding: 4px 10px; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.world .world-open:hover { background: var(--yellow); }

/* long domain names never push a page sideways at 390 */
.page-head h1, .h-pop { overflow-wrap: anywhere; }

/* ===== phase 5: alerts, results, replay, film, admin A1 to A8, site pages, landing additions (from docs/mockup) ===== */
.bg-red { background: #ff8a80; } .bg-orange { background: var(--orange); }
.maxw-980 { max-width: 980px; } .maxw-1100 { max-width: 1100px; }
.alert { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; background: #fff; border: var(--border); box-shadow: var(--shadow); }
.alert .e { border-right: var(--border); }
.alert .b { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.alert .a { padding: 14px; display: flex; align-items: center; gap: 8px; }
.alert.unread { box-shadow: 5px 5px 0 var(--pink); }
@media (max-width: 560px) { .alert { grid-template-columns: 12px minmax(0,1fr); } .alert .a { grid-column: 2; padding-top: 0; } }
/* results page (P13) */
.results { display: flex; flex-direction: column; gap: 34px; }
.res-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 26px; align-items: end; background: var(--dots), #ffd3ec; border: var(--border); box-shadow: var(--shadow-lg); padding: 24px; }
.res-hero h1 { font-size: clamp(40px, 6.5vw, 88px); margin: 14px 0 10px; }
.res-title { font-size: 26px; font-weight: 700; margin: 0 0 12px; overflow-wrap: anywhere; }
.res-kpis .kpi b { font-size: 30px; }
.res-sec .sec-head { margin-bottom: 18px; }
.res-sec .sec-head h2 { font-size: clamp(30px, 4vw, 48px); }
.res-sources { margin: 0; padding: 12px 14px 12px 34px; font-family: var(--mono); font-size: 13px; line-height: 1.6; max-height: 360px; overflow-y: auto; }
.res-attempts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.res-attempts img { border: 2px solid var(--ink); }
.res-final img { width: 100%; }
.res-film { overflow: hidden; max-width: 1100px; background: var(--ink); }
.res-film video { display: block; width: 100%; height: auto; }
.res-total td { background: #fff3b0; }
@media (max-width: 900px) { .res-hero, .res-attempts { grid-template-columns: minmax(0,1fr); } }
/* replay timeline (P14) */
.rtrack { display: flex; border: var(--border); box-shadow: var(--shadow-sm); min-height: 54px; overflow: hidden; background: #fff; }
.rseg { display: flex; align-items: center; justify-content: center; min-width: 6px; border-right: 2px solid var(--ink); text-decoration: none; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; overflow: hidden; }
.rseg span { white-space: nowrap; overflow: hidden; text-overflow: clip; padding: 0 4px; }
.rseg:last-child { border-right: 0; }
.rseg.on { box-shadow: inset 0 -6px 0 var(--pink); }
.st-line { background: var(--lav); } .st-idealab { background: #c9b8ff; } .st-shortlist { background: var(--yellow); } .st-artlab { background: #ffb3d9; }
.st-mockup { background: var(--mint); } .st-board { background: #ffe066; } .st-studio { background: var(--cyan); } .st-launch { background: #a6f4c5; } .st-film { background: #ffb27a; }
.rctl input[type=range] { width: 100%; accent-color: var(--pink); }
.rctl select { min-height: 38px; border: var(--border); font-family: var(--mono); }
.rnow { border: var(--border); background: #fff3b0; box-shadow: 6px 6px 0 var(--pink); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rlog { max-height: 560px; overflow-y: auto; }
.rlog li.on { background: #fff3b0; }
/* site page: the site brain front and centre, own domain (H5) */
.site-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px; align-items: start; }
.brain-hero { box-shadow: 9px 9px 0 var(--mint), 9px 9px 0 3px var(--ink); }
.brain-modes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.bm { border: var(--border); background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bm .pill { align-self: flex-start; }
.qlist li { display: flex; flex-direction: column; gap: 4px; }
.biz-one { grid-template-columns: minmax(0,1fr); }
.biz-one .shot { border-right: 0; border-bottom: var(--border); min-height: 200px; }
.steps-own { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-weight: 500; line-height: 1.5; }
.dnsrec { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 3px dashed var(--ink); background: var(--dots), #fff; padding: 12px 14px; }
.code-ip { background: var(--yellow); border: 2px solid var(--ink); padding: 0 6px; }
.owndom { border: var(--border); background: #fff; box-shadow: var(--shadow-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.brain-front { box-shadow: 5px 5px 0 var(--mint); }
.brain-front .panel-head .pill { text-shadow: none; }
@media (max-width: 1000px) { .site-grid, .brain-modes { grid-template-columns: minmax(0,1fr); } }
/* invite only: the beta application modal and page */
.apply-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; overflow-y: auto; color: var(--ink); }
.apply-dialog::backdrop { background: rgba(27,16,51,.55); }
.wants { border: var(--border); background: #fff; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; }
.wants legend { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 0 6px; }
.nocode { border: 3px dashed var(--ink); background: #fff3b0; padding: 10px 12px; font-weight: 500; }
.apply-page { padding: 30px 0 70px; }
@media (max-width: 700px) { .wants { grid-template-columns: minmax(0,1fr); } }
/* landing (phase 5): the headline never breaks a word; the site brain lead story; Why FOUNDRY; the gallery note */
.hero h1.hero-h { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: clamp(38px, 5.4vw, 80px); }
.hero-h .w { display: inline-block; white-space: nowrap; }
section.sec.brainband { background: var(--dots), #c9f7e4; border-top: var(--border); border-bottom: var(--border); }
.brain-lead { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 44px; align-items: center; }
.brain-how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-weight: 500; line-height: 1.5; font-size: 17px; }
.brain-demo { position: relative; display: flex; flex-direction: column; gap: 18px; padding-bottom: 18px; }
.brain-site { position: relative; overflow: hidden; transform: rotate(-1deg); }
.brain-site img { filter: saturate(.9); }
.bwidget { position: absolute; right: 14px; bottom: 14px; width: min(340px, 64%); background: #fff; border: var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 88%; overflow: hidden; }
.bw-head { background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.dotlive { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); border: 2px solid #fff; }
.bw-q, .bw-a { margin: 0; font-size: 13.5px; line-height: 1.45; padding: 8px 10px; overflow-wrap: anywhere; }
.bw-q { align-self: flex-end; background: #fff3b0; border: 2px solid var(--ink); margin: 8px 8px 0 32px; font-weight: 600; }
.bw-a { background: #f1ecfa; border: 2px solid var(--ink); margin: 6px 32px 0 8px; font-weight: 500; }
.bwidget .bw-a:last-child { margin-bottom: 8px; }
.owner-chat { margin-left: 12%; }
.owner-chat .bw-q { margin-left: 30px; } .owner-chat .bw-a { margin-right: 0; margin-left: 0; }
.brain-demo .s4 { position: absolute; left: -10px; bottom: -14px; transform: rotate(-2deg); font-family: var(--mono); font-size: 12px; background: var(--yellow); max-width: 92%; }
.proof-k b { font-size: 34px; color: var(--pink-ink); }
.compare-tbl { min-width: 980px; font-size: 14px; }
.compare-tbl td { vertical-align: top; line-height: 1.4; }
.compare-tbl th.us, .compare-tbl td.us { background: #ffe3f1; font-weight: 600; border-left: 3px solid var(--ink); }
.compare-tbl th.us { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
section.sec.gallery { background: var(--dots), #efe6ff; border-top: var(--border); }
@media (max-width: 1000px) { .brain-lead { grid-template-columns: minmax(0,1fr); } .owner-chat { margin-left: 0; } }
@media (max-width: 560px) { .bwidget { position: static; width: auto; max-height: none; border-width: 3px 0 0; box-shadow: none; } .brain-site { transform: none; } }
/* admin A1 to A8 (docs/mockup/admin*.html) */
.slot.on td { background: #fff3b0; }
.testbox { border-top: var(--border); background: var(--dots), #efe6ff; }
.mtest { padding: 14px; border-bottom: 2px dashed rgba(27,16,51,.15); display: flex; flex-direction: column; gap: 8px; }
.sbs > div { border: 2px solid var(--ink); background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.self-end { align-self: flex-end; }
.gauge { height: 26px; border: var(--border); background: #f1ecfa; position: relative; }
.gauge i { display: block; height: 100%; background: var(--mint); border-right: 3px solid var(--ink); }
.gauge i.warn { background: var(--yellow); } .gauge i.bad { background: #ff8a80; }
.health { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.hcard { border: var(--border); background: #fff; box-shadow: var(--shadow-sm); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hcard.ok { background: #c9f7e4; } .hcard.bad { background: #ffd0cb; } .hcard.warn { background: #fff3b0; }
.hcard b { font-size: 20px; overflow-wrap: anywhere; }
.viewas { background: var(--ink); color: var(--yellow); border-bottom: var(--border); padding: 10px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.viewas form { margin: 0; }
@media (max-width: 1000px) { .health { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.w-220 { width: 220px; min-height: 38px; border: var(--border); padding: 4px 8px; font-family: var(--mono); max-width: 100%; }
.brain-front .panel-head .pill, .brain-hero .panel-head .pill { white-space: normal; text-align: left; }
.pill.break { white-space: normal; overflow-wrap: anywhere; }
.results > *, .res-sec, .res-sec > *, .res-hero > * { min-width: 0; }
.world .step-inside { position: relative; z-index: 2; margin-top: 30px; font-size: 18px; min-height: 54px; padding: 0 24px; transform: rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }

/* ===== Phase 7: build options and running the business ===== */
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 12px 14px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; }
.opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); flex: none; min-height: 0; box-shadow: none; }
.opt > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.opt b { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.opt .small, .opt .tiny { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-weight: 400; }
.opt:has(input:checked) { background: #fff3b0; box-shadow: var(--shadow); }
.opt:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.opt.off { opacity: .6; cursor: not-allowed; background: #f2eee6; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.plan-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.plan-list li .small { flex-basis: 100%; font-family: var(--mono); }
.tool-card { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; background: #fff3b0; border: var(--border); box-shadow: var(--shadow-sm); padding: 12px 14px; }
.tool-card .small { flex-basis: 100%; font-family: var(--mono); }
.prewrap { white-space: pre-wrap; }
.mini.mini3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .mini.mini3 { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 2px dashed rgba(27,16,51,.15); }
.checklist li .pill { justify-content: center; }
.checklist li div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.checklist li .small { font-family: var(--mono); }
@media (max-width: 520px) { .checklist li { grid-template-columns: minmax(0, 1fr); } .checklist li .pill { justify-self: start; } }
.warnbox { background: #fff3b0; border: 2px solid var(--ink); padding: 10px 12px; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slotrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; background: #fff; border: 2px solid var(--ink); padding: 8px 10px; }
.slotrow b { font-size: 14px; }
@media (max-width: 760px) { .slotrow { grid-template-columns: minmax(0, 1fr); } }
details.more summary { cursor: pointer; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.rpage { background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rpage[data-review-state="approved"] { background: #effff7; }
.rpage[data-review-state="fix"] { background: #fff4ea; }
.rpage details summary { cursor: pointer; font-weight: 700; }
.rtext { font-family: var(--serif); font-size: 17px; line-height: 1.65; max-width: 72ch; margin-top: 10px; overflow-wrap: anywhere; }
mark { background: #ffe680; color: var(--ink); padding: 0 2px; }
.openchange { background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.h-26 { font-size: 22px; }
.slotrow .field { min-width: 0; }
.slotrow .field input, .slotrow .field select { width: 100%; min-width: 0; }

.choice.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.own-brief { display: none; }
.step:has(input[name=line][value=own]:checked) .own-brief { display: flex; }

/* Phase 8: the empire (E1), site numbers (E2), virtual workers (E3). */
.eperiod { align-self: flex-start; } .eperiod a { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.ekpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ekpis .kpi { position: relative; padding-top: 18px; min-width: 0; }
.ekpis .kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; border-bottom: 2px solid var(--ink); background: var(--lav); }
.ekpis .kpi b { overflow-wrap: anywhere; }
.ek-y::before { background: var(--yellow) !important; } .ek-c::before { background: var(--cyan) !important; } .ek-m::before { background: var(--mint) !important; }
.ek-p::before { background: var(--purple) !important; } .ek-o::before { background: var(--orange) !important; } .ek-v::before { background: #c9b8ff !important; } .ek-r::before { background: var(--pink) !important; }
.echart { display: flex; flex-direction: column; gap: 6px; }
.ecols { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 170px auto; gap: 4px 8px; }
.ecols .ey { display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; margin: -6px 0; }
.ecols .eplot { display: flex; align-items: flex-end; gap: 2px; border-bottom: 2px solid var(--ink); background: linear-gradient(rgba(27,16,51,.12) 1px, transparent 1px) 0 0 / 100% 50%; }
.ecols .ecol { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; cursor: default; }
.ecols .ecol:hover { background: rgba(27,16,51,.06); }
.ecols .ecol i { display: block; width: 100%; background: var(--purple); border-radius: 4px 4px 0 0; }
.ecols .ecol:hover i { background: var(--pink-ink); }
.ecols .ex { grid-column: 2; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.vh-0 { height: 0%; } .vh-1 { height: 1%; } .vh-2 { height: 2%; } .vh-3 { height: 3%; } .vh-4 { height: 4%; } .vh-5 { height: 5%; } .vh-6 { height: 6%; } .vh-7 { height: 7%; } .vh-8 { height: 8%; } .vh-9 { height: 9%; } .vh-10 { height: 10%; } .vh-11 { height: 11%; } .vh-12 { height: 12%; } .vh-13 { height: 13%; } .vh-14 { height: 14%; } .vh-15 { height: 15%; } .vh-16 { height: 16%; } .vh-17 { height: 17%; } .vh-18 { height: 18%; } .vh-19 { height: 19%; } .vh-20 { height: 20%; } .vh-21 { height: 21%; } .vh-22 { height: 22%; } .vh-23 { height: 23%; } .vh-24 { height: 24%; } .vh-25 { height: 25%; } .vh-26 { height: 26%; } .vh-27 { height: 27%; } .vh-28 { height: 28%; } .vh-29 { height: 29%; } .vh-30 { height: 30%; } .vh-31 { height: 31%; } .vh-32 { height: 32%; } .vh-33 { height: 33%; } .vh-34 { height: 34%; } .vh-35 { height: 35%; } .vh-36 { height: 36%; } .vh-37 { height: 37%; } .vh-38 { height: 38%; } .vh-39 { height: 39%; } .vh-40 { height: 40%; } .vh-41 { height: 41%; } .vh-42 { height: 42%; } .vh-43 { height: 43%; } .vh-44 { height: 44%; } .vh-45 { height: 45%; } .vh-46 { height: 46%; } .vh-47 { height: 47%; } .vh-48 { height: 48%; } .vh-49 { height: 49%; } .vh-50 { height: 50%; } .vh-51 { height: 51%; } .vh-52 { height: 52%; } .vh-53 { height: 53%; } .vh-54 { height: 54%; } .vh-55 { height: 55%; } .vh-56 { height: 56%; } .vh-57 { height: 57%; } .vh-58 { height: 58%; } .vh-59 { height: 59%; } .vh-60 { height: 60%; } .vh-61 { height: 61%; } .vh-62 { height: 62%; } .vh-63 { height: 63%; } .vh-64 { height: 64%; } .vh-65 { height: 65%; } .vh-66 { height: 66%; } .vh-67 { height: 67%; } .vh-68 { height: 68%; } .vh-69 { height: 69%; } .vh-70 { height: 70%; } .vh-71 { height: 71%; } .vh-72 { height: 72%; } .vh-73 { height: 73%; } .vh-74 { height: 74%; } .vh-75 { height: 75%; } .vh-76 { height: 76%; } .vh-77 { height: 77%; } .vh-78 { height: 78%; } .vh-79 { height: 79%; } .vh-80 { height: 80%; } .vh-81 { height: 81%; } .vh-82 { height: 82%; } .vh-83 { height: 83%; } .vh-84 { height: 84%; } .vh-85 { height: 85%; } .vh-86 { height: 86%; } .vh-87 { height: 87%; } .vh-88 { height: 88%; } .vh-89 { height: 89%; } .vh-90 { height: 90%; } .vh-91 { height: 91%; } .vh-92 { height: 92%; } .vh-93 { height: 93%; } .vh-94 { height: 94%; } .vh-95 { height: 95%; } .vh-96 { height: 96%; } .vh-97 { height: 97%; } .vh-98 { height: 98%; } .vh-99 { height: 99%; } .vh-100 { height: 100%; } 
.etable-toggle { margin-top: 10px; } .etable-toggle summary { cursor: pointer; font-weight: 700; }
.efilters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 14px 0; }
.efilters .btn[aria-current="page"] { background: var(--ink); color: #fff; }
.scrollx-wide { overflow-x: auto; }
.etbl td small { display: block; font-size: 11px; color: var(--dim); font-family: var(--mono); }
.etbl .ename b { display: block; font-size: 16px; }
.etbl .ename span { display: block; }
.etbl .eneed ul { margin: 0; padding-left: 16px; font-size: 13px; }
.etbl .eact { white-space: nowrap; }
.etbl .eact .btn + .btn { margin-left: 6px; }
.etbl tfoot td { font-weight: 700; background: #fff3b0; border-top: var(--border); }
.etbl tbody tr:hover td { background: rgba(255,210,31,.12); }
.epad { padding: 0 14px 14px; margin: 0; }
.ebarlist { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; gap: 8px; }
.ebarlist li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; }
.ebarlist .ebl { display: block; height: 12px; background: rgba(27,16,51,.07); border-radius: 0 4px 4px 0; }
.ebarlist .ebl i { display: block; height: 100%; background: var(--cyan); border-right: 2px solid var(--ink); border-radius: 0 4px 4px 0; }
.ebarlist b { font-family: var(--mono); font-size: 13px; text-align: right; }
.eincome { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 16px; }
.wcard { background: #fff; border: var(--border); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top-width: 10px; min-width: 0; }
.wcard header { display: flex; gap: 12px; align-items: center; }
.wcard h2 { margin: 0; font-size: 20px; }
.wcard .btn { align-self: flex-start; }
.wav { flex: none; width: 46px; height: 46px; border-radius: 50%; border: var(--border); display: grid; place-items: center; font-weight: 700; font-size: 22px; background: var(--cyan); box-shadow: var(--shadow-sm); }
.c-support { border-top-color: var(--cyan); } .c-support .wav, .wdot.c-support { background: var(--cyan); }
.c-writer { border-top-color: var(--pink); } .c-writer .wav, .wdot.c-writer { background: var(--pink); color: #fff; }
.c-seo { border-top-color: var(--purple); } .c-seo .wav, .wdot.c-seo { background: var(--purple); color: #fff; }
.c-ads { border-top-color: var(--yellow); } .c-ads .wav, .wdot.c-ads { background: var(--yellow); }
.c-bookkeeper { border-top-color: var(--mint); } .c-bookkeeper .wav, .wdot.c-bookkeeper { background: var(--mint); }
.c-social { border-top-color: var(--orange); } .c-social .wav, .wdot.c-social { background: var(--orange); }
.c-custom { border-top-color: var(--lav); } .c-custom .wav, .wdot.c-custom { background: var(--lav); }
.wdot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.rcard { position: relative; display: flex; background: #fff; border: var(--border); border-top-width: 8px; box-shadow: var(--shadow-sm); padding: 12px; cursor: pointer; min-width: 0; }
.rcard input { position: absolute; opacity: 0; pointer-events: none; }
.rcard > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rcard b { font-size: 16px; }
.rcard:has(input:checked) { background: #fff3b0; box-shadow: var(--shadow); transform: translate(-1px, -1px); outline: 3px solid var(--ink); }
.rcard:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.wtask { background: #fff; border: var(--border); box-shadow: var(--shadow-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wtask header .tiny { display: block; }
.wtask[data-task-status="needs_approval"] { border-left: 10px solid var(--pink); }
.wout { background: var(--paper); border: 2px dashed rgba(27,16,51,.3); padding: 10px 12px; overflow-wrap: anywhere; }
.wout ol, .wout ul { margin: 6px 0 0; padding-left: 18px; }
.wacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; }
.wacts form { min-width: 0; }
.wchat .m { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .etbl, .etbl tbody, .etbl tfoot, .etbl tr, .etbl td { display: block; width: 100%; }
  .etbl thead { display: none; }
  .etbl tr { border-bottom: var(--border); padding: 10px 12px; }
  .etbl td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .etbl td::before { content: attr(data-label); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
  .etbl td.num { text-align: left; }
  .etbl td.ename, .etbl td.eact { grid-template-columns: minmax(0, 1fr); }
  .etbl td.ename::before, .etbl td.eact::before { display: none; }
  .etbl .eact { white-space: normal; display: flex; flex-wrap: wrap; gap: 8px; }
  .etbl .eact .btn + .btn { margin-left: 0; }
  .etbl tfoot td:empty { display: none; }
  .eincome { grid-template-columns: minmax(0, 1fr); }
  .ecols { grid-template-rows: 140px auto; }
  .etbl td > .pill { justify-self: start; }
  .ekpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ekpis .kpi b { font-size: 22px; }
}
.rcard, .rcard span { text-transform: none; letter-spacing: normal; font-weight: 500; }
.rcard b { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rcard .small { font-family: var(--display); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.roster { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.eperiod { max-width: 100%; }
@media (max-width: 560px) { .eperiod a { padding-left: 8px; padding-right: 8px; font-size: 12px; letter-spacing: .04em; } }

/* ---------- phase 9: marketplace, gallery, portfolio, team, reports ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 16px; }
.sec .mgrid, .gallery-page .mgrid { padding: 0; }
.mcard { display: flex; flex-direction: column; gap: 10px; background: #fff; border: var(--border); box-shadow: var(--shadow); padding: 14px; min-width: 0; color: var(--ink); text-decoration: none; position: relative; }
.mcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--pink); border-bottom: 2px solid var(--ink); }
.mcard:nth-child(3n+2)::before { background: var(--cyan); } .mcard:nth-child(3n)::before { background: var(--yellow); }
.mcard header { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; min-width: 0; }
.mcard h2 { margin: 0; font-size: 21px; line-height: 1.15; }
a.mcard:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-lg); }
.mfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mfacts div { border: 2px solid var(--ink); background: var(--paper); padding: 6px 8px; min-width: 0; }
.mfacts dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.mfacts dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.mprice { font-size: 24px; font-weight: 700; color: var(--pink-ink); }
.mprice small { font-size: 12px; color: var(--dim); font-family: var(--mono); text-transform: uppercase; }
.mthread { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.mthread li { max-width: min(560px, 92%); border: 2px solid var(--ink); padding: 8px 12px; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.mthread li.me { align-self: flex-end; background: #e6fbff; }
.mthread li.them { align-self: flex-start; background: #fff3fa; }
.brand-preview { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: var(--border); min-height: 84px; }
.brand-preview .brand-name { display: block; font-size: 22px; letter-spacing: .04em; }
.brand-preview .tiny { color: #fff; opacity: .9; }
.brand-logo { max-height: 52px; width: auto; background: #fff; padding: 4px; border: 2px solid var(--ink); }
.gallery-page { padding-top: 24px; padding-bottom: 48px; }
.ekpis .kpi .pill { align-self: flex-start; font-size: 10px; }
.ekpis .kpi { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
  .mgrid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .mthread li { max-width: 100%; }
  .brand-preview { flex-wrap: wrap; }
}

/* Polish 1: seats. A button a builder or viewer seat may not use is off, with the reason in its title. */
.seat-note { margin: 0; padding: 8px 12px; border: 2px solid var(--ink); background: #e9f9ff; box-shadow: 3px 3px 0 var(--ink); font-weight: 600; max-width: 920px; }
a.seat-off { opacity: .55; cursor: not-allowed; }
/* Polish 1: nothing scrolls sideways at 320 px. Long links and addresses in text wrap; selects never outgrow their row;
   the empire's period tabs wrap their words on the smallest phones. */
main.app p, main.app li, main.app dd { overflow-wrap: anywhere; }
.field select, .field.inline select { max-width: 100%; min-width: 0; }
.field.inline { min-width: 0; max-width: 100%; }
@media (max-width: 360px) { .eperiod a { white-space: normal; text-align: center; padding-left: 6px; padding-right: 6px; } }
/* Polish 1: into the 3D world from a 2D page (View in 3D, Walk in, VR; key 3) */
.v3d { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nowrap-x { flex-wrap: wrap; gap: 6px; }
.mass-acts { flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
.mass-thumb { display: block; width: 120px; max-width: none; height: 84px; object-fit: cover; object-position: top; border: 2px solid #1b1033; background: #fff; }
.mass-pager { justify-content: center; padding-top: 14px; }
/* Polish 1: held lists, run through */
.w-num { width: 5.5em; }
.run-bar { border-bottom: var(--border); background: #fff8e1; }
.mode-seg button { padding: 0 14px; }
.mode-seg button.on { background: var(--pink); color: #fff; }
/* Polish 1: pills on a coloured panel head keep their own ink (they read white on white on the purple head) */
.panel-head .pill { color: var(--ink); text-shadow: none; }
[data-count] { white-space: normal; max-width: 100%; }
/* Admin, Prompts */
.prompt-edit { min-height: 22em; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.prompt-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; max-height: 32em; overflow: auto; margin: 0; background: #fff; border: 2px solid var(--ink); padding: 10px; }
.var-chips { gap: 6px; flex-wrap: wrap; }
.var-chips .btn { text-transform: none; letter-spacing: 0; font-family: var(--mono); }
pre.diff { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; margin: 0; }
pre.diff .add { display: block; background: #c9f7e4; }
pre.diff .del { display: block; background: #ffd0cb; text-decoration: line-through; }
pre.diff .same { display: block; color: var(--ink-2); }
/* Art Lab mood controls */
.mood-edit { margin-top: 8px; }
.mood-edit summary { cursor: pointer; font-weight: 700; }
.mood-edit form { margin-top: 8px; }
/* Polish 2: the domain overview's side column at 1000 to 1200 px (three KPIs and the credit lines in about 400 px). */
.grid3.kpis-fit { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.kpis-fit .kpi b { font-size: 20px; overflow-wrap: break-word; word-break: normal; hyphens: none; -webkit-hyphens: none; } /* UX fix 55: no "fac-tory" */
.ledger-mini td.small { min-width: 150px; overflow-wrap: break-word; word-break: normal; }
/* Polish 2, the guided line: "Where am I" stepper, "What happens here" coach, Help drawer, Run this name. */
.stepper { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; counter-reset: s; }
.stepper .step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 13px; line-height: 1.2; box-shadow: var(--shadow-sm); }
.stepper .step .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); background: #fff; font-weight: 700; }
.stepper .step.done .n { background: var(--mint); }
.stepper .step.now { background: var(--yellow); font-weight: 700; }
.stepper .step.now .n { background: var(--pink); color: #fff; }
.stepper .step.next { opacity: .62; box-shadow: none; }
.stepper .step:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.coach { border: 3px dashed var(--ink); background: #fff; padding: 10px 14px; }
.coach > summary { cursor: pointer; font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.coach[open] .when-closed, .coach:not([open]) .when-open { display: none; }
.coach-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.coach-steps li { line-height: 1.45; }
.help-drawer { margin: 0 0 14px; border: 3px solid var(--ink); background: var(--paper); padding: 8px 14px; }
.help-drawer > summary { cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.help-drawer[open] { box-shadow: var(--shadow-sm); }
.panel-body.pb0 { padding-bottom: 0; }
.run-this .rowx { align-items: flex-end; }
.run-start .run-start-go { align-items: center; }
.run-start .run-start-go .p { font-size: 1.05rem; }
.run-opts > summary { cursor: pointer; font-family: var(--mono); font-size: 13px; font-weight: 700; text-decoration: underline; }
.run-opts[open] > summary { margin-bottom: 10px; }
@media (max-width: 520px) { .stepper .step { padding: 4px 8px 4px 4px; font-size: 12px; } .stepper .step .n { width: 20px; height: 20px; } }
/* FOUNDRY GUIDE (polish 2): the factory bot, docked bottom-right; the page keeps room for it so it never covers a button. */
body:has(.guide) { padding-bottom: 150px; }
.guide { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(310px, calc(100vw - 32px)); font-family: var(--display, inherit); }
.guide-tab { display: inline-flex; align-items: center; gap: 6px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: var(--shadow-sm); padding: 2px 10px 2px 2px; cursor: pointer; order: 2; font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: 12px; color: var(--ink); }
.guide-tab:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.guide-box { order: 1; width: 100%; border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); padding: 10px 12px; display: grid; gap: 8px; }
.guide.closed .guide-box { display: none; }
.guide-bubble { position: relative; background: #fff; border: 3px solid var(--ink); padding: 8px 10px; display: grid; gap: 6px; }
.guide-bubble::after { content: ""; position: absolute; right: 22px; bottom: -14px; border: 7px solid transparent; border-top-color: var(--ink); }
.guide-bubble p { margin: 0; font-size: 13px; line-height: 1.4; }
.guide-title { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.guide-ask { display: flex; gap: 6px; }
.guide-ask input { flex: 1; min-width: 0; border: 3px solid var(--ink); padding: 6px 8px; font: inherit; font-size: 14px; }
.guide-bot .guide-eye { transform-origin: center; animation: guide-blink 5s infinite; transform-box: fill-box; }
.guide-bot .guide-led { animation: guide-led 2.4s infinite; }
.guide.talking .guide-mouth { animation: guide-talk .25s infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes guide-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes guide-led { 0%, 100% { fill: #ff2e93; } 50% { fill: #3ee6a8; } }
@keyframes guide-talk { from { transform: scaleY(.4); } to { transform: scaleY(1.6); } }
.guide-glow { outline: 4px solid var(--pink) !important; outline-offset: 4px; box-shadow: 0 0 0 10px rgba(255, 46, 147, .25) !important; transition: outline-color .2s; }
@media (prefers-reduced-motion: reduce) { .guide-bot .guide-eye, .guide-bot .guide-led, .guide.talking .guide-mouth { animation: none; } }
@media (max-width: 600px) { body:has(.guide) { padding-bottom: 90px; } .guide { right: 8px; bottom: 8px; max-width: calc(100vw - 16px); } .guide-tab svg { width: 34px; height: 34px; } }
/* The open guide keeps its own column on wide screens, so it never sits over the page's buttons. */
/* The guide floats (owner feedback): no column of its own; it folds itself away when it would cover the page's main button. */
.guide:not(.closed) .guide-box { max-height: 52vh; overflow: auto; }
.guide-tab { position: relative; }
.guide-tab .guide-badge { position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); display: none; }
.guide.closed.has-new .guide-badge { display: block; }
/* The instruction strip under every page title (owner request). */
.page-help { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 3px solid var(--ink); background: var(--yellow); box-shadow: var(--shadow-sm); padding: 10px 14px; }
.page-help p { flex: 1 1 320px; line-height: 1.45; }
.page-help .ph-what { color: var(--ink-2); }
.page-help .ph-now { display: inline; }
@media (max-width: 520px) { .page-help { padding: 8px 10px; } .page-help .btn { width: 100%; text-align: center; } }
/* Polish 2 (owner request): the header's counters are links to what they count. */
a.counter { display: block; color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
a.counter:hover { transform: translate(-2px, -2px) rotate(0deg); box-shadow: var(--shadow-lg); }
a.counter:active { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }
a.counter:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
/* "Ready for you" pop-ups (owner request, polish 2). */
.notify.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(27, 21, 48, .45); padding: 16px; }
.notify.toast { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: min(380px, calc(100vw - 32px)); }
.notify-card { background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow-lg); padding: 16px 18px; display: grid; gap: 10px; max-width: 460px; }
.notify-title { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.notify-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.notify .plainbtn { background: none; border: 0; box-shadow: none; text-decoration: underline; justify-self: start; padding: 0; cursor: pointer; font-size: 13px; }

/* Worker figures in 3D (world/src/office/figure.js): the list cards, a worker's page, the hire form's look picker. The
   figure is drawn on a canvas inside .w3d; until it is (or without WebGL) the initial badge shows instead. */
.w3d { position: relative; min-width: 0; }
.w3d-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.w3d-canvas.grab { cursor: grabbing; }
.w3d:not(.w3d-on) .w3d-canvas { visibility: hidden; position: absolute; inset: 0; }
.w3d.w3d-on > .wav { display: none; }
.w3d-card { display: none; }
.w3d-yes .w3d-card { display: block; }
.w3d-card.w3d-fail { display: none; }
.w3d-card { height: 168px; margin: -4px -4px 0; background: radial-gradient(ellipse at 50% 85%, #fff3b0 0, #fff 62%); border-bottom: 2px dashed var(--line, #d9d2ea); }
.wcard.w3d-ready header .wav { display: none; }
.w3d-hero { height: 340px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 88%, #fff3b0 0, #fffaf0 60%); border: var(--border); box-shadow: var(--shadow-sm); }
.wav-lg { width: 96px; height: 96px; font-size: 44px; }
.wfig { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.wfig-stage, .lpreview { margin: 0; display: grid; gap: 6px; min-width: 0; }
.lookrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 16px; align-items: start; }
.look-pick { min-width: 0; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lcard { position: relative; display: grid; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; min-width: 0; text-align: center; }
.lcard input { position: absolute; opacity: 0; pointer-events: none; }
.lcard .w3d-pick { height: 118px; }
.lcard .w3d-pick .w3d-canvas { cursor: pointer; touch-action: auto; }
.lcard .lname { font-family: var(--mono, monospace); font-size: 11px; padding: 2px 4px 4px; overflow-wrap: anywhere; }
.lcard:has(input:checked) { background: #fff3b0; outline: 3px solid var(--ink); transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.lcard:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.lauto { place-items: center; padding: 8px; min-height: 140px; }
.lauto-in { display: grid; gap: 4px; }
.hairs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.hsw { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.hsw input { position: absolute; opacity: 0; pointer-events: none; }
.hsw i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); }
.hsw-auto span { font-size: 12px; border: 2px solid var(--ink); padding: 3px 8px; background: #fff; }
.hsw:has(input:checked) i, .hsw:has(input:checked) span { outline: 3px solid var(--ink); outline-offset: 2px; }
.hsw:has(input:focus-visible) i, .hsw:has(input:focus-visible) span { outline: 3px solid var(--pink); outline-offset: 2px; }
.hair-2b1d16 { background: #2b1d16; } .hair-5a3a22 { background: #5a3a22; } .hair-8a4b2a { background: #8a4b2a; } .hair-d9a94e { background: #d9a94e; }
.hair-1b1033 { background: #1b1033; } .hair-cfc6bb { background: #cfc6bb; } .hair-ff2e93 { background: #ff2e93; } .hair-19d3f0 { background: #19d3f0; }
.hair-8b5cff { background: #8b5cff; } .hair-3ee6a8 { background: #3ee6a8; } .hair-ff7a1a { background: #ff7a1a; }
@media (max-width: 760px) { .wfig, .lookrow { grid-template-columns: minmax(0, 1fr); } .w3d-hero { height: 300px; } .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Edit by hand (click-to-edit a live site) ---------- */
.edit-app { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.edit-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 12px 14px; }
.edit-pagepick { flex: 1 1 220px; min-width: 0; }
.edit-pagepick select { width: 100%; }
.edit-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; align-items: start; }
.edit-stage { border: var(--border); box-shadow: var(--shadow-lg); background: #fff; min-width: 0; }
.edit-stage iframe { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; background: #fff; }
.edit-side { position: sticky; top: 12px; min-width: 0; }
.edit-pending { margin: 0; padding: 12px 14px; display: grid; gap: 10px; max-height: 40vh; overflow: auto; }
.edit-pending li { display: grid; gap: 4px; border-bottom: 2px dashed rgba(27,16,51,.15); padding-bottom: 8px; }
.edit-msg { padding: 0 14px 12px; min-height: 1em; }
.edit-thumb { width: 120px; height: 80px; object-fit: cover; border: 2px solid var(--ink); background: #fff; }
.edit-tbl td { vertical-align: top; }
.edit-diff summary { cursor: pointer; }
.diff-file { margin-top: 10px; min-width: 0; }
.diff-name { background: #fff3b0; border: 2px solid var(--ink); border-bottom: 0; padding: 4px 8px; overflow-wrap: anywhere; }
.diff-hunk { margin: 0 0 8px; border: 2px solid var(--ink); background: #fff; padding: 6px 0; overflow-x: auto; font-size: 12px; line-height: 1.5; max-width: 100%; }
.diff-hunk .dl { display: block; padding: 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-hunk .dl.add { background: #c9f7e4; } .diff-hunk .dl.del { background: #ffd0cb; }
.edit-hist { margin: 6px 0 0; padding-left: 16px; }
.edit-modal { max-width: 520px; width: 100%; }
.edit-modal input[type=file] { min-height: 0; padding: 8px; }
.edit-mood { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-mood-pick { padding: 0; border: 3px solid var(--ink); background: #fff; cursor: pointer; line-height: 0; }
.edit-mood-pick img { width: 96px; height: 64px; object-fit: cover; }
.edit-mood-pick[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--yellow); }
.edit-modal-prev { width: 240px; max-width: 100%; height: 160px; object-fit: cover; border: 2px solid var(--ink); }
@media (max-width: 1000px) { .edit-grid { grid-template-columns: minmax(0, 1fr); } .edit-side { position: static; } .edit-stage iframe { height: 70vh; min-height: 420px; } }
/* Full name reports (lists/{id}/names/{n}): ideas A and B side by side, each with its homepage mockup. */
.grid-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; }
.report-shot { border-bottom: var(--border); background: var(--dots), #f1ecfa; min-height: 120px; }
.report-shot img { width: 100%; height: auto; }
.report-shot .pad { padding: 14px 16px; }
.report-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.report-dl dt { font-weight: 700; }
.report-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .report-dl { grid-template-columns: minmax(0, 1fr); } .report-dl dd { margin-bottom: 6px; } }
.report-card > summary { gap: 10px; flex-wrap: wrap; }
.report-card .report-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-card .report-thumbs img { border: 2px solid var(--ink); }
.report-rev { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Lists (owner request, 2026-10-19): one Add names card, the review cards, a compact toolbar and a sticky action bar. */
.field.inline > input:not([type=checkbox]):not([type=radio]), .field.inline > select { min-width: 0; max-width: 100%; }
.field.inline.grow > input, .field.inline.grow > select { flex: 1 1 auto; width: 100%; }
.lists-head { margin-bottom: 4px; }
.intake { box-shadow: var(--shadow-lg); }
/* UX fixes 21 and 22: the one Add flow, behind the Add names button on Lists; Settings for a new list folded away. */
details.intake > summary { cursor: pointer; list-style: none; }
details.intake > summary::-webkit-details-marker, .add-settings > summary::-webkit-details-marker { display: none; }
details.intake:not([open]) { box-shadow: var(--shadow-sm); }
.add-settings { border-top: 3px solid var(--ink); padding: 12px 16px 0; }
.add-settings > summary { list-style: none; cursor: pointer; margin-bottom: 12px; }
.add-settings > .panel-body { padding: 0 0 16px; }
.review-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; justify-content: space-between; }
.rv-filter { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; min-width: 0; }
.rv-filter .field { min-width: 0; }
.rv-filter input[type=search] { width: min(260px, 100%); }
@media (max-width: 520px) { .rv-filter, .rv-filter .field, .rv-filter input[type=search], .rv-filter select { width: 100%; } }
.intake-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px 20px; align-items: start; }
.intake-paste textarea { min-height: 190px; font-size: 16px; line-height: 1.5; width: 100%; }
.intake-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.intake-side select, .intake-side input[type=text] { width: 100%; min-width: 0; }
.intake-side .btn.block { min-height: 54px; font-size: 17px; }
.drop.drop-sm { padding: 12px; gap: 6px; }
.drop.drop-sm input[type=file] { width: 100%; }
.intake-check { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.intake-check .intake-valid { background: var(--mint); border: 2px solid var(--ink); padding: 1px 8px; }
.intake-check .warn { color: var(--bad); font-weight: 700; }
.intake-detail { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.intake-group { border: 2px solid var(--ink); background: #fff; min-width: 0; }
.intake-group > summary { cursor: pointer; padding: 6px 10px; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.intake-group.bad > summary { background: #ffd0cb; } .intake-group.have > summary { background: #fff3b0; } .intake-group.dupe > summary { background: #e7defc; }
.intake-group .refused { max-height: 220px; overflow-y: auto; }
.intake-group .refused li { grid-template-columns: minmax(0, 1fr); }
.intake-group .refused li span { grid-column: 1; }
.intake-refused .refused li { grid-template-columns: minmax(0, 1fr); }
.intake-refused .refused li > .muted { display: none; }
.intake-refused .refused li span { grid-column: 1; }
@media (max-width: 860px) { .intake-body { grid-template-columns: minmax(0, 1fr); } .intake-paste textarea { min-height: 150px; } }
.view-seg { box-shadow: none; text-shadow: none; flex: 0 1 auto; max-width: 100%; }
.view-seg a { min-height: 36px; padding: 0 12px; font-size: 12px; background: #fff; }
.view-seg a[aria-current="page"] { background: var(--yellow); color: var(--ink); text-shadow: none; }
.review-progress { border-bottom: var(--border); background: #fff; }
.review-line { font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.review-tools { padding-bottom: 0; }
.rv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.rv-card { background: #fff; border: var(--border); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rv-card.rv-report { background: #fffdf3; }
.rv-card.rv-assessing { background: var(--dots), #fff; }
.rv-card:has(.rv-pick:checked) { outline: 4px solid var(--pink); outline-offset: 2px; }
.rv-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.rv-pick { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--pink); flex: none; }
.rv-name { margin: 0; flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rv-name a { color: var(--ink); }
.rv-score { flex: none; font-size: 14px; }
.rv-idea { line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.rv-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rv-thumb { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; min-width: 0; }
.rv-thumb img { border: 2px solid var(--ink); width: 100%; aspect-ratio: 640 / 366; object-fit: cover; object-position: top; background: #f1ecfa; }
.rv-thumb .tiny { overflow-wrap: anywhere; }
.rv-thumb:hover img, .rv-thumb:focus-visible img { box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.rv-thumb-wait { border: 2px dashed var(--ink); background: var(--dots), #f1ecfa; aspect-ratio: 640 / 366; display: grid; place-items: center; text-align: center; padding: 6px; }
.rv-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.rv-more { margin: 14px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-bottom: var(--border); background: #fff; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; flex: 1 1 420px; min-width: 0; }
.tb-search { flex: 1 1 200px; min-width: 0; min-height: 38px; border: var(--border); background: #fff; padding: 4px 10px; font-family: var(--mono); font-size: 15px; }
.tb-adv { flex: 0 1 auto; min-width: 0; }
.tb-adv > summary { list-style: none; }
.tb-adv > summary::-webkit-details-marker { display: none; }
.tb-adv[open] { flex: 1 1 100%; order: 3; }
.tb-adv[open] > summary { background: var(--yellow); }
.adv-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px 12px; align-items: end; padding: 12px; border: 2px dashed var(--ink); background: #fffaf0; }
.adv-grid .field { min-width: 0; font-size: 12px; }
.adv-grid .field input, .adv-grid .field select { min-height: 40px; width: 100%; min-width: 0; }
.adv-pair { display: flex; gap: 6px; min-width: 0; }
.adv-pair input { flex: 1 1 0; min-width: 0; width: 100%; min-height: 40px; border: var(--border); background: #fff; padding: 6px 8px; font-family: var(--mono); font-size: 15px; }
.adv-go { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-right .mode-seg button { min-height: 38px; font-size: 12px; }
.tb-status { padding: 10px 14px 0; }
.box-products { gap: 14px; }
.box-product, .box-logo { display: flex; flex-direction: column; gap: 8px; }
.box-product img { width: 100%; height: auto; border: 2px solid #1b1033; background: #fff; }
.box-logo img { width: 160px; height: auto; border: 2px solid #1b1033; background: #fff; }
.rv-more { flex: 1 1 100%; }
.rv-more > summary { cursor: pointer; font-family: var(--mono); font-size: 13px; font-weight: 700; text-decoration: underline; padding: 4px 0; }
.rv-more-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; padding-top: 8px; }
.list-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 12px 14px 0; }
.list-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border: 2px solid #1b1033; background: #fff; }
.list-group.on { background: #ffe844; }
.list-group-name { font-weight: 800; color: inherit; text-decoration: none; line-height: 1.2; }
.list-group-name b { font-size: 1.7rem; margin-right: 4px; }
.list-group-name:hover, .list-group-name:focus-visible { text-decoration: underline; }
.list-group form, .list-group > .btn { margin-top: auto; }
@media (max-width: 640px) { .list-groups { grid-template-columns: 1fr; } }
.tb-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 14px; border-bottom: 2px dashed rgba(27,16,51,.15); }
.assess-slim { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 14px; }
.assess-slim .warnbox { padding: 4px 8px; }
.assess-slim form { margin: 0; }
.actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding-left: max(14px, calc((100vw - 1280px) / 2 + 24px)) !important; padding-right: max(14px, calc((100vw - 1280px) / 2 + 24px)) !important; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 14px; background: var(--yellow); border-top: var(--border); box-shadow: 0 -4px 0 rgba(27,16,51,.12); }
.actbar.idle { display: none; }
.actbar-count { font-family: var(--mono); font-weight: 700; font-size: 14px; margin-right: 4px; }
.actbar-depth select { min-height: 38px; }
.actbar-more { flex: 0 1 auto; min-width: 0; }
.actbar-more > summary { cursor: pointer; font-family: var(--mono); font-size: 13px; font-weight: 700; text-decoration: underline; padding: 6px 2px; }
.actbar-more[open] { flex: 1 1 100%; }
.actbar-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; padding: 10px 0 2px; }
.actbar-opts .field select, .actbar-opts .field input { width: 100%; min-width: 0; min-height: 40px; }
.actbar-opts .tiny { grid-column: 1 / -1; }
.act-form { margin: 0; }
body.actbar-on .guide { bottom: calc(var(--actbar-h, 70px) + 12px); }
body.actbar-on { padding-bottom: var(--actbar-h, 70px); }
.actbar-more[open] .actbar-opts { max-height: 50vh; overflow-y: auto; }
.list-settings { margin-top: 0; }
.list-delete { border-top: var(--border); }
@media (max-width: 560px) { .actbar { padding: 8px 10px; gap: 6px 8px; } .actbar .btn.sm { padding: 0 9px; font-size: 12px; min-height: 36px; } .actbar-depth { font-size: 12px; } .review-line { font-size: 15px; } }

/* Products team on the roster (CPG phase C): the same card as .rcard, in its own group. */
.pcard { position: relative; display: flex; background: #fff; border: var(--border); border-top-width: 8px; box-shadow: var(--shadow-sm); padding: 12px; cursor: pointer; min-width: 0; text-transform: none; letter-spacing: normal; font-weight: 500; }
.pcard input { position: absolute; opacity: 0; pointer-events: none; }
.pcard > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard span { text-transform: none; letter-spacing: normal; font-weight: 500; }
.pcard b { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pcard .small { font-family: var(--display); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pcard:has(input:checked) { background: #fff3b0; box-shadow: var(--shadow); transform: translate(-1px, -1px); outline: 3px solid var(--ink); }
.pcard:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.c-supplier_followup { border-top-color: var(--cyan); } .c-supplier_followup .wav, .wdot.c-supplier_followup { background: var(--cyan); }
.c-reorder_manager { border-top-color: var(--mint); } .c-reorder_manager .wav, .wdot.c-reorder_manager { background: var(--mint); }
.c-review_watch { border-top-color: var(--pink); } .c-review_watch .wav, .wdot.c-review_watch { background: var(--pink); color: #fff; }
.c-compliance_watch { border-top-color: var(--purple); } .c-compliance_watch .wav, .wdot.c-compliance_watch { background: var(--purple); color: #fff; }
/* Radio and checkbox choices: the control on the left, the text wrapping beside it (not under it), normal case. */
.optrow { display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; line-height: 1.45; cursor: pointer; padding: 6px 0; }
.optrow input[type=radio], .optrow input[type=checkbox], .field .optrow input[type=radio], .field .optrow input[type=checkbox] { min-height: 0; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; flex: 0 0 auto; box-shadow: none; accent-color: var(--pink, #ff2e93); }
.optrow > span { flex: 1; min-width: 0; }
/* Landing header links: plain bold text beside the buttons (not boxes); a pink underline on hover. */
.top nav { align-items: center; }
.navlink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.navlink:hover, .navlink:focus-visible { border-bottom-color: var(--pink); }

/* UX fixes (owner approved 2026-10-20). Item 10, the shorter shell: two badges in the header (Approvals, Credits), the dock
   behind a Menu button on phones, keyboard letters only after "?". Item 8: the Guide is smaller, a round icon on phones,
   and the page keeps room for it at the bottom on every size. */
.hud .hud-badges { flex: 1; justify-content: flex-end; }
.hud .hud-badges .counter { min-width: 92px; }
.hud .hud-badges .counter.due { background: #fff3b0; }
.menu-btn { display: none; }
kbd.k, .keys-note { display: none; }
body.show-keys kbd.k { display: inline-block; }
body.show-keys .keys-note { display: inline; align-self: center; }
body:has(.guide) main { padding-bottom: 72px; }
.guide-tab svg { width: 34px; height: 34px; }
.guide-tab { font-size: 11px; }
@media (max-width: 767px) {
  .menu-btn { display: inline-flex; }
  .hud { gap: 8px 10px; }
  .hud .counters.hud-badges { order: 0; flex: 1 1 auto; display: flex; gap: 8px; justify-content: flex-end; }
  .hud .hud-badges .counter { min-width: 0; flex: 0 1 auto; padding: 5px 8px; }
  .hud .hud-badges .counter b { font-size: 18px; }
  .hud .hud-acts { flex: 1 1 100%; justify-content: flex-end; }
  .dock { display: none; flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 8px; }
  .dock.open { display: flex; }
  .dock .btn { width: 100%; justify-content: flex-start; }
  .dock .btn.add { margin-left: 0; }
  .guide { right: auto; left: 8px; align-items: flex-start; }
  .guide-tab { padding: 2px; border-radius: 50%; }
  .guide-tab .guide-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .guide-tab svg { width: 30px; height: 30px; }
  .guide-bubble::after { right: auto; left: 22px; }
  .guide.guide-wait { visibility: hidden; }
}
/* Item 9: a step this domain's path never ran. */
.stepper .step.skip { opacity: .55; box-shadow: none; border-style: dashed; }
.stepper .step.skip .n { background: #fff; }
/* Item 12: the Edit site mode buttons wrap their price line on phones. */
.edit-modes .btn { white-space: normal; height: auto; text-align: left; }
/* Item 26: the line as a numbered list (how many at each step). */
/* The line on the dashboard: one row of equal tiles (number over label), arrows between steps; 4 a row on tablets, 2 on phones. */
.line-steps { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.line-steps li { position: relative; min-width: 0; }
.line-steps li + li::before { content: '\2192'; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); font-size: 14px; }
.line-steps .ls-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 84px; padding: 10px 6px; border: var(--border); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; text-align: center; }
.line-steps .ls-tile:not([class*="bg-"]) { background: #fff; }
.line-steps a.ls-tile:hover { transform: translate(-2px, -2px); }
.line-steps .ls-tile b { font-size: 28px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-steps .ls-tile span { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.25; }
.line-steps li.zero .ls-tile { box-shadow: none; border-style: dashed; color: var(--ink-2); opacity: .7; }
.line-total { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1000px) { .line-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .line-steps li:nth-child(4n+1)::before { display: none; } }
@media (max-width: 520px) { .line-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .line-steps li::before { display: none; } }
/* Site page tabs grouped as Site, Money, Settings (UX fix 31) */
.sitetabs { gap: 10px 18px; align-items: flex-start; }
.sitetabs .tabgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.sitetabs .tabgroup-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2, #3b3355); }
.sitetabs .adv, .adv-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; border: 2px solid currentColor; padding: 0 4px; margin-left: 4px; }
@media (max-width: 560px) { .sitetabs { flex-direction: column; gap: 8px; } .sitetabs .tabgroup-l { width: 100%; } }
[data-transfer-rules] ul { padding-left: 18px; }
/* UX fixes 17, 44 (landing): the stickers sit on the live frame's own box, so the "Step inside" button below never covers them; four stations; the levers example. */
.world .world-box { position: relative; }
.world .step-inside { margin-top: 44px; }
.line.line-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.line.line-4 .ph-launch { background: url(img/cyberfans-site.webp) top center / cover, var(--mint); }
@media (max-width: 1000px) { .line.line-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .line.line-4 { grid-template-columns: minmax(0,1fr); } }
.levers-example { max-width: 760px; }
.levers-dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 18px; margin: 0 0 10px; }
.levers-dl dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.levers-dl dd { margin: 2px 0 0; font-weight: 700; }
@media (max-width: 560px) { .levers-dl { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.top nav .navlink[data-have-code] { font-size: 14px; }

/* Settings, Connections (UX fix 56): the Products research sources moved here from /products */
.cpg-conn { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
/* Item 29: the steps on the tabs (tick when done, the current step marked) and a compact header on sub-tabs. */
.steptabs { margin: 4px 0 10px; }
.steptabs .btn { gap: 6px; }
.steptabs .btn .tick, .steptabs .btn .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border: 2px solid var(--ink); background: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.steptabs .btn.ts-done .tick { background: var(--mint); }
.steptabs .btn.ts-now:not([aria-current="page"]) { background: var(--yellow); }
.steptabs .btn.ts-now .n { background: var(--pink); color: #fff; }
.steptabs .btn.ts-skip { opacity: .55; box-shadow: none; border-style: dashed; }
.page-head.compact { align-items: center; }
.page-head.compact h1 { font-size: 34px; margin-top: 4px; }
@media (max-width: 600px) {
  .steptabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .steptabs .btn { flex: 0 0 auto; }
  .page-head.compact h1 { font-size: 26px; }
  .page-head.compact .v3d [data-v3d-walk] { display: none; }
}
/* Item 51: the research card is its own segment on the replay track. */
.st-card { background: #d9ccff; }
/* UX fix 25: the name report's Build idea A and B are the big buttons; the product brand is a small text button. */
.btn.lg { min-height: 54px; padding: 12px 22px; font-size: 17px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover, .linkbtn:focus-visible { text-decoration-thickness: 3px; }
.report-brand { margin: 0; }

/* UX fix 42 (owner approved 2026-10-21): six places (Home, Domains, Sites, Products, Market, 3D), each place's own pages
   as a second row, the Approvals and Credits badges, Add domains, and an account menu. Phones: logo, badges, Menu. */
.hud .hud-add { flex: none; }
.dock { flex-direction: column; gap: 10px; }
.dock-main { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dock-main .btn { min-width: 104px; justify-content: center; }
.dock-sub { display: none; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.dock-sub.here { display: flex; }
.dock-acct { display: none !important; }
.sublink { display: inline-flex; align-items: center; min-height: 34px; padding: 0 4px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.sublink:hover, .sublink:focus-visible { border-bottom-color: var(--pink); }
.sublink[aria-current="page"] { border-bottom-color: var(--ink); }
.hud .counter[aria-current="page"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.acct { position: relative; }
.acct > summary { list-style: none; cursor: pointer; max-width: 220px; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary.on { background: var(--ink); color: var(--yellow); }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.acct-dot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 11px; font-size: 12px; letter-spacing: 0; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; display: flex; flex-direction: column; background: var(--paper); border: var(--border); box-shadow: var(--shadow-lg); padding: 8px; }
.acct-menu a { padding: 10px 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px dashed #e5dcc8; }
.acct-menu a:hover, .acct-menu a:focus-visible, .acct-menu a[aria-current="page"] { background: var(--yellow); }
.acct-menu form { margin: 8px 0 0; }
.acct-menu form .btn { width: 100%; justify-content: center; }
.acct-who { margin: 2px 10px 6px; color: var(--dim); overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .hud .hud-add, .hud .acct { display: none; }
  .hud .hud-acts { flex: 0 0 auto; }
  .dock-main { flex-direction: column; align-items: stretch; }
  .dock-main .btn { justify-content: flex-start; }
  .dock-sub, .dock-sub.here, .dock-acct { display: flex !important; flex-direction: column; align-items: stretch; gap: 0; padding-left: 14px; border-left: 3px solid var(--ink); }
  .dock-sub .sublink { min-height: 40px; }
  .dock-acct form { margin: 8px 0 0; }
}
@media (max-width: 767px) { .dock-sub::before { content: attr(aria-label); font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 4px 0 2px; } }
/* Owner, 2026-10-21: one row, one style. The six places and the current place's own pages sit on one line; the current
   page is the only dark button. */
.key-only { display: none !important; }
@media (min-width: 768px) {
  .dock { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 20px; }
  .dock-main { gap: 8px; }
  .dock-main .btn { min-width: 0; min-height: 40px; padding: 0 16px; box-shadow: var(--shadow-sm); }
  .dock-sub.here { padding-left: 20px; border-left: 3px solid var(--ink); }
}

/* Visible progress for name assessments, reports and mockups. */
.review-working { display: flex; align-items: center; gap: 20px; padding: 16px 20px; margin: 6px 4px 10px 0; border: var(--border); box-shadow: var(--shadow); background: var(--dots), var(--cyan); }
.review-working > div { min-width: 0; }
.review-working strong { display: block; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; margin-bottom: 6px; }
.review-gear { width: 96px; height: 96px; flex: none; overflow: visible; transform-origin: 50% 50%; animation: review-gear-turn 8s linear infinite; }
.review-gear polygon, .review-gear path { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.review-gear circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.review-working.is-delayed { background-color: var(--yellow); }
.review-working[data-progress-state="unavailable"] .review-gear { animation-play-state: paused; }
@keyframes review-gear-turn { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .review-working { padding: 12px; gap: 12px; } .review-gear { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .review-gear { animation: none; } }

/* Pending work stays visibly alive; stopped and finished states remain still. */
.progress-panel:not([data-progress-state="working"]):not([data-progress-state="queued"]):not([data-progress-state="delayed"]) .review-gear { animation-play-state: paused; }
.progress-panel[data-progress-state="queued"] .review-gear, .progress-panel[data-progress-state="delayed"] .review-gear { animation-duration: 14s; }
.progress-panel[data-progress-state="queued"], .progress-panel[data-progress-state="paused"], .progress-panel[data-progress-state="review"] { background-color: var(--yellow); }
.progress-panel[data-progress-state="failed"], .progress-panel[data-progress-state="unavailable"], .progress-panel[data-progress-state="delayed"] { background-color: #ffb27a; }
.progress-panel[data-progress-state="done"] { background-color: var(--mint); }
