
/* ---------- Brand tokens (from products/Preactify/website/preactifybtc1-theme.css) ---------- */
.brand-preactify {
  --background: 40 38% 97%; --foreground: 245 45% 17%;
  --primary: 37 100% 61%; --primary-foreground: 245 45% 17%;
  --secondary: 252 47% 94%; --secondary-foreground: 245 45% 17%;
  --accent: 175 80% 27%; --accent-foreground: 0 0% 100%;
  --muted: 252 47% 94%; --muted-foreground: 246 23% 36%;
  --border: 249 41% 87%; --card: 0 0% 100%; --card-foreground: 245 45% 17%;
  --destructive: 7 100% 67%; --destructive-foreground: 245 45% 17%;
  --sidebar: 245 45% 17%; --sidebar-foreground: 40 38% 97%;
  --chart-1: 37 100% 61%; --chart-2: 174 71% 42%; --chart-3: 7 100% 67%; --chart-4: 243 45% 39%; --chart-5: 175 80% 27%;
  --sand: 40 100% 83%; --mint: 172 60% 84%; --blush: 8 100% 88%;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --radius: 1.25rem;
}
.brand-preactify.theme-dark {
  --background: 245 40% 10%; --foreground: 40 38% 95%;
  --secondary: 245 30% 22%; --secondary-foreground: 40 38% 95%;
  --accent: 174 71% 42%; --accent-foreground: 245 45% 10%;
  --muted: 245 30% 18%; --muted-foreground: 250 20% 74%;
  --border: 245 25% 26%; --card: 245 38% 14%; --card-foreground: 40 38% 95%;
  --sidebar: 245 45% 7%; --sidebar-foreground: 40 38% 95%;
  --sand: 37 60% 28%; --mint: 174 45% 22%; --blush: 7 50% 28%;
}
/* A sample partner brand (spec 12): kept so brand switching can be tested; selected only by a tenant brand key. */
.brand-partner {
  --background: 150 20% 97%; --foreground: 160 40% 12%;
  --primary: 160 55% 30%; --primary-foreground: 0 0% 100%;
  --secondary: 150 25% 92%; --secondary-foreground: 160 40% 12%;
  --accent: 14 80% 45%; --accent-foreground: 0 0% 100%;
  --muted: 150 22% 92%; --muted-foreground: 160 15% 32%;
  --border: 150 18% 82%; --card: 0 0% 100%; --card-foreground: 160 40% 12%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 100%;
  --sidebar: 160 40% 14%; --sidebar-foreground: 150 20% 96%;
  --chart-1: 160 55% 30%; --chart-2: 14 80% 45%; --chart-3: 0 72% 51%; --chart-4: 200 50% 35%; --chart-5: 45 80% 45%;
  --sand: 45 90% 85%; --mint: 150 45% 85%; --blush: 14 90% 90%;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 0.5rem;
}
.brand-partner.theme-dark {
  --background: 160 30% 8%; --foreground: 150 20% 94%;
  --secondary: 160 25% 18%; --secondary-foreground: 150 20% 94%;
  --muted: 160 25% 15%; --muted-foreground: 150 12% 70%;
  --border: 160 20% 24%; --card: 160 30% 12%; --card-foreground: 150 20% 94%;
  --sidebar: 160 35% 6%; --primary: 160 50% 45%; --primary-foreground: 160 40% 8%;
  --sand: 45 40% 25%; --mint: 150 30% 20%; --blush: 14 40% 25%;
}
/* High contrast always wins over any brand (§12.2 DB-BR-7). */
.hc {
  --background: 0 0% 100%; --foreground: 0 0% 0%; --card: 0 0% 100%; --card-foreground: 0 0% 0%;
  --muted: 0 0% 94%; --muted-foreground: 0 0% 10%; --border: 0 0% 0%;
  --primary: 220 100% 30%; --primary-foreground: 0 0% 100%; --accent: 220 100% 30%; --accent-foreground: 0 0% 100%;
  --secondary: 0 0% 92%; --secondary-foreground: 0 0% 0%; --sidebar: 0 0% 0%; --sidebar-foreground: 0 0% 100%;
  --sand: 50 100% 85%; --mint: 140 60% 88%; --blush: 0 100% 92%;
}

/* ---------- Page ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; flex-direction: column; }
#root { flex: 1; min-height: 0; display: flex; }

/* ---------- The app ---------- */
.app {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.app[data-width="tablet"] { width: 820px; flex: none; }
.app[data-width="phone"] { width: 390px; flex: none; }
.app.previewing { outline: 6px solid hsl(var(--chart-2)); outline-offset: -6px; }
.app.assisting { outline: 6px solid hsl(var(--destructive)); outline-offset: -6px; }
.app h1, .app h2, .app h3 { font-family: var(--font-heading); letter-spacing: -0.02em; margin: 0 0 .4em; line-height: 1.15; }
.app h1 { font-size: 28px; } .app h2 { font-size: 20px; } .app h3 { font-size: 16px; }
.app p { margin: 0 0 .7em; }
.app a { color: hsl(var(--accent)); }
.app button { font: inherit; color: inherit; cursor: pointer; }
.app :focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.app[data-width="phone"] .grid { grid-template-columns: 1fr; }

.btn { border: 2px solid hsl(var(--foreground)); background: hsl(var(--card)); border-radius: 999px; padding: 7px 16px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.btn.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.btn.accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: hsl(var(--accent)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 30px; padding: 3px 11px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.iconbtn { border: none; background: transparent; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 17px; position: relative; }
.iconbtn:hover { background: hsl(var(--muted)); }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--foreground)); white-space: nowrap; }
.badge.amber { background: hsl(var(--sand)); }
.badge.teal { background: hsl(var(--mint)); }
.badge.coral { background: hsl(var(--blush)); }
.badge.ink { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.badge.ai { background: hsl(var(--secondary)); font-weight: 600; }
.card { background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 2px solid hsl(var(--border)); border-radius: var(--radius); padding: 16px; }
.card.click { cursor: pointer; transition: border-color .15s, transform .15s; }
.card.click:hover { border-color: hsl(var(--foreground)); }
.card.locked { border-style: dashed; }
.meter { height: 8px; border-radius: 99px; background: hsl(var(--muted)); overflow: hidden; }
.meter > span { display: block; height: 100%; background: hsl(var(--chart-2)); }
.meter.warn > span { background: hsl(var(--primary)); }
.meter.full > span { background: hsl(var(--destructive)); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 600; padding: 6px 8px; border-bottom: 2px solid hsl(var(--border)); }
table.t td { padding: 8px; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: hsl(var(--muted)); }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid hsl(var(--border)); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: none; background: transparent; padding: 8px 12px; font-weight: 600; color: hsl(var(--muted-foreground)); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--primary)); }
.specref { font-size: 11px; color: hsl(var(--muted-foreground)); border: 1px dashed hsl(var(--border)); border-radius: 6px; padding: 1px 6px; font-family: ui-monospace, Consolas, monospace; }
.app:not(.show-refs) .specref { display: none; }
.modechip { display: none; font: 700 10px ui-monospace, Consolas, monospace; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.app.show-modes .modechip { display: inline-block; }
.modechip.E { background: #1fb5a6; color: #fff; } .modechip.L { background: #ffb43a; color: #1b1840; }
.modechip.W { background: #8a7fd8; color: #fff; } .modechip.S { background: #888; color: #fff; }
.alert { border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 2px solid; margin-bottom: 14px; }
.alert.warn { background: hsl(var(--sand)); border-color: hsl(var(--primary)); color: hsl(245 45% 17%); }
.alert.bad { background: hsl(var(--blush)); border-color: hsl(var(--destructive)); color: hsl(245 45% 17%); }
.alert.info { background: hsl(var(--mint)); border-color: hsl(var(--chart-2)); color: hsl(245 45% 17%); }
.theme-dark .alert.warn, .theme-dark .alert.bad, .theme-dark .alert.info { color: hsl(var(--foreground)); }

/* Stage banner (§6.1, A-6) */
.stage { background: repeating-linear-gradient(45deg, hsl(var(--primary)), hsl(var(--primary)) 12px, hsl(var(--sand)) 12px, hsl(var(--sand)) 24px); color: hsl(245 45% 17%); font-size: 12px; font-weight: 700; text-align: center; padding: 3px 8px; }
.preview-bar { background: hsl(var(--chart-2)); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; display: flex; gap: 10px; align-items: center; }
.preview-bar.assist { background: hsl(var(--destructive)); color: hsl(245 45% 17%); }
.preview-bar button { background: rgba(255,255,255,.9); color: #1b1840; border: none; border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: 12px; }

/* Menu bar (§6.2) */
.menubar { height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: hsl(var(--card)); border-bottom: 2px solid hsl(var(--border)); flex: none; }
.brandslot { display: flex; align-items: center; gap: 8px; border: none; background: none; padding: 4px 6px; border-radius: 10px; }
.brandslot .logo { width: 30px; height: 30px; border-radius: 9px; background: hsl(var(--foreground)); color: hsl(var(--primary)); display: grid; place-items: center; font-weight: 800; font-family: var(--font-heading); }
.brandslot .name { font-family: var(--font-heading); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.sectorsw { display: flex; align-items: center; gap: 6px; border: 2px solid hsl(var(--border)); background: hsl(var(--background)); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 14px; max-width: 290px; }
.sectorsw .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbox { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; max-width: 420px; display: flex; align-items: center; gap: 8px; border: 2px solid hsl(var(--border)); border-radius: 999px; padding: 5px 12px; color: hsl(var(--muted-foreground)); background: hsl(var(--background)); font-size: 14px; }
.searchbox kbd { margin-left: auto; font-size: 11px; border: 1px solid hsl(var(--border)); border-radius: 5px; padding: 0 5px; }
.usage { display: flex; flex-direction: column; gap: 3px; min-width: 120px; border: none; background: none; text-align: left; padding: 4px 8px; border-radius: 10px; font-size: 12px; }
.usage:hover { background: hsl(var(--muted)); }
.dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px; background: hsl(var(--destructive)); color: hsl(245 45% 17%); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 3px; }
.avatar { width: 34px; height: 34px; border-radius: 99px; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); display: grid; place-items: center; font-weight: 700; font-size: 13px; border: none; }
.app[data-width="phone"] .searchbox, .app[data-width="phone"] .usage, .app[data-width="phone"] .hide-phone { display: none; }
.app[data-width="phone"] .searchbtn { display: inline-grid; }
.searchbtn { display: none; }
.app[data-width="tablet"] .usage { display: none; }

/* Scene mode slim bar (§6.7) */
.scenebar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: hsl(var(--sidebar)); color: hsl(var(--sidebar-foreground)); flex: none; font-size: 14px; }
.scenebar .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scenebar .btn { border-color: hsl(var(--sidebar-foreground)); background: transparent; color: hsl(var(--sidebar-foreground)); min-height: 32px; padding: 2px 12px; }
.scenebar .btn.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

/* Body regions */
.body { flex: 1; min-height: 0; display: flex; position: relative; }
.left { width: 270px; flex: none; background: hsl(var(--sidebar)); color: hsl(var(--sidebar-foreground)); overflow-y: auto; padding: 10px 8px 20px; font-size: 14px; }
.left.rail { width: 58px; padding: 10px 6px; }
.left.rail .lbl, .left.rail .sec-h, .left.rail .tree, .left.rail .cnt, .left.rail .badge { display: none; }
.left .sec-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin: 14px 8px 4px; display: flex; align-items: center; gap: 6px; }
.left .sec-h button { margin-left: auto; background: none; border: none; color: inherit; opacity: .8; font-size: 12px; }
.nav-i { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: none; background: transparent; color: inherit; text-align: left; font-weight: 500; }
.nav-i:hover { background: hsla(var(--sidebar-foreground) / .1); }
.nav-i.on { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; }
.nav-i .ic { width: 22px; text-align: center; flex: none; }
.nav-i .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-i .cnt { font-size: 11px; opacity: .8; }
.nav-i.mode-L .lbl::after { content: " 🔒"; font-size: 11px; }
.nav-i.mode-S { opacity: .55; cursor: default; }
.left .badge { background: hsla(var(--sidebar-foreground) / .15); color: inherit; }
.tree { margin: 2px 0 4px 18px; border-left: 1px solid hsla(var(--sidebar-foreground) / .2); padding-left: 4px; }
.tree .nav-i { padding: 4px 8px; font-size: 13px; }
.tree .tw { width: 14px; font-size: 10px; opacity: .7; flex: none; }
.main { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; }
.crumbs { padding: 10px 22px 0; font-size: 13px; color: hsl(var(--muted-foreground)); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crumbs button { border: none; background: none; padding: 0; color: hsl(var(--accent)); font-weight: 600; font-size: 13px; }
.view { padding: 14px 22px 40px; max-width: 1180px; width: 100%; }
.app[data-width="phone"] .view { padding: 12px 14px 90px; }
.right { width: 360px; flex: none; border-left: 2px solid hsl(var(--border)); background: hsl(var(--card)); display: flex; flex-direction: column; min-height: 0; }
.right.float { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: -10px 0 30px rgba(0,0,0,.2); }
.app[data-width="phone"] .right { position: absolute; inset: 0; width: 100%; z-index: 40; border-left: none; }
.right-h { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; border-bottom: 2px solid hsl(var(--border)); }
.right-h .tabs { border: none; margin: 0; flex: 1; }
.right-ctx { font-size: 11.5px; color: hsl(var(--muted-foreground)); padding: 6px 14px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid hsl(var(--border)); }
.right-b { flex: 1; overflow-y: auto; padding: 12px 14px 30px; font-size: 14px; }
.art { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.art:hover { border-color: hsl(var(--foreground)); }
.art b { display: block; }
.status { height: 28px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 11.5px; border-top: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--muted-foreground)); }
.status button { border: none; background: none; color: inherit; font-size: 11.5px; padding: 0; text-decoration: underline; }
.sdot { width: 9px; height: 9px; border-radius: 99px; background: #1fb5a6; display: inline-block; margin-right: 4px; }
.app[data-width="phone"] .status { display: none; }
.bottombar { display: none; }
.app[data-width="phone"] .bottombar { display: flex; position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: hsl(var(--card)); border-top: 2px solid hsl(var(--border)); z-index: 35; }
.bottombar button { flex: 1; border: none; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; gap: 2px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.bottombar button.on { color: hsl(var(--foreground)); }
.bottombar .ic { font-size: 19px; }

/* Content pieces */
.hero { border-radius: var(--radius); padding: 22px; background: hsl(var(--sidebar)); color: hsl(var(--sidebar-foreground)); margin-bottom: 18px; }
.hero h1 { color: inherit; }
.block { margin-bottom: 24px; }
.block > .bh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.block > .bh h2 { margin: 0; }
.scard { display: flex; flex-direction: column; gap: 8px; }
.scard .path { font-size: 12px; color: hsl(var(--muted-foreground)); }
.scard .ttl { font-weight: 700; font-size: 16px; font-family: var(--font-heading); }
.cast { display: flex; gap: -6px; }
.cast .cav { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid hsl(var(--card)); margin-right: -8px; color: hsl(245 45% 17%); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 2px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.chip.on { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }
.prog { display: flex; gap: 3px; }
.prog i { width: 18px; height: 6px; border-radius: 3px; background: hsl(var(--muted)); }
.prog i.d { background: hsl(var(--chart-2)); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: hsl(var(--muted-foreground)); }
.kv dd { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app[data-width="phone"] .two, .app[data-width="tablet"] .two { grid-template-columns: 1fr; }
.list { margin: 0; padding-left: 18px; }
.list li { margin-bottom: 4px; }

/* Scene */
.scene { display: flex; flex-direction: column; height: 100%; }
.scene .msgs { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 640px; border-radius: 16px; padding: 10px 14px; border: 2px solid hsl(var(--border)); background: hsl(var(--card)); }
.bub.me { align-self: flex-end; background: hsl(var(--secondary)); }
.bub .who { font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.scene .composer { display: flex; gap: 8px; padding: 10px 22px 14px; border-top: 2px solid hsl(var(--border)); background: hsl(var(--card)); }
.scene .composer input { flex: 1; font: inherit; border: 2px solid hsl(var(--border)); border-radius: 999px; padding: 8px 14px; background: hsl(var(--background)); color: inherit; }
.ai-banner { background: hsl(var(--secondary)); font-size: 12px; font-weight: 600; text-align: center; padding: 4px; }

/* Overlays */
.scrim { position: absolute; inset: 0; background: rgba(15, 12, 40, .45); z-index: 50; display: flex; }
.sheet { margin-left: auto; width: min(520px, 100%); height: 100%; background: hsl(var(--card)); color: hsl(var(--card-foreground)); overflow-y: auto; padding: 22px; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
.dialog { margin: auto; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow-y: auto; background: hsl(var(--card)); color: hsl(var(--card-foreground)); border-radius: var(--radius); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.palette { margin: 70px auto auto; width: min(620px, calc(100% - 24px)); background: hsl(var(--card)); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.palette input { width: 100%; border: none; border-bottom: 2px solid hsl(var(--border)); padding: 14px 16px; font: inherit; font-size: 16px; background: transparent; color: inherit; }
.palette .res { max-height: 380px; overflow-y: auto; padding: 6px; }
.palette .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--muted-foreground)); padding: 8px 10px 2px; }
.palette .it { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.palette .it:hover, .palette .it.sel { background: hsl(var(--muted)); }
.menu { position: absolute; z-index: 45; background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 2px solid hsl(var(--border)); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 6px; min-width: 260px; font-size: 14px; }
.menu .mi { display: flex; gap: 10px; align-items: center; width: 100%; border: none; background: none; text-align: left; padding: 7px 10px; border-radius: 8px; }
.menu .mi:hover { background: hsl(var(--muted)); }
.menu .mh { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--muted-foreground)); padding: 8px 10px 2px; }
.menu hr { border: none; border-top: 1px solid hsl(var(--border)); margin: 4px 0; }
.toast { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); z-index: 60; background: hsl(var(--foreground)); color: hsl(var(--background)); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; border: 2px solid hsl(var(--border)); border-radius: 10px; padding: 7px 10px; background: hsl(var(--background)); color: inherit; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: hsl(var(--muted)); }
.steps i.d { background: hsl(var(--primary)); }
.fullpage { flex: 1; display: grid; place-items: center; padding: 30px; text-align: center; }
.fullpage .card { max-width: 520px; }
.coachmark { border: 2px dashed hsl(var(--primary)); border-radius: 12px; padding: 8px 12px; background: hsl(var(--sand)); color: hsl(245 45% 17%); font-size: 13px; margin-bottom: 12px; }

/* ---------- Product additions (plan 8) ---------- */
@media (max-width: 760px) { .app .left { display: none; } .app .right { position: absolute; inset: 0; width: 100%; z-index: 40; } .app .searchbox, .app .usage { display: none; } }
.player-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-frame { flex: 1; width: 100%; border: 0; background: hsl(var(--background)); }
.md h1 { font-size: 20px; } .md h2 { font-size: 16px; margin-top: 1em; } .md h3 { font-size: 14px; }
.md ul { padding-left: 18px; } .md code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: hsl(var(--muted)); padding: 0 4px; border-radius: 4px; }
.changes { margin: 8px 0; padding-left: 18px; font-size: 13px; }
.err { color: hsl(var(--destructive)); font-weight: 600; }
.field .hint { font-size: 12px; color: hsl(var(--muted-foreground)); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.pill-list { display: flex; gap: 4px; flex-wrap: wrap; }
.signin { max-width: 440px; }
.sector-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
@media (max-width: 760px) { .sector-row { grid-template-columns: 1fr; } }
.loading { padding: 30px; color: hsl(var(--muted-foreground)); }
