/* Blast additions on top of tracker.css */
.shell.wide { max-width: none; padding: 0 0 0; }
.topbar .navlink { font-size: 14px; }
.topbar .mode-pill { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: #00000018; color: var(--topbar-ink); }
.page-head p { margin: 4px 0 0; }
.stack > * + * { margin-top: 14px; }
.muted-sm { color: var(--text-dim); font-size: 13px; }
.hidden { display: none !important; }
.right { margin-left: auto; }
.mt { margin-top: 14px; }
.mb0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.kbd { font-family: ui-monospace, SF Mono, Menlo, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* platform chips (the dashboard toggle) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px 6px 9px; font-size: 14px; font-weight: 560; cursor: pointer; user-select: none; color: var(--text); }
.chip .pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--text-faint)); }
.chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.chip.off { opacity: .55; }
.chip.active { outline: 2px solid var(--c); outline-offset: 1px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 13.5px; }
.seg button.on { background: var(--solid); color: var(--solid-ink); font-weight: 600; }

/* library grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.mcard { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.mcard.sel { outline: 3px solid var(--accent); outline-offset: -1px; }
.mcard .mthumb { aspect-ratio: 1 / 1; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; color: var(--text-faint); font-size: 28px; position: relative; }
.mcard .mkind { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: #000a; color: #fff; }
.mcard .mflag { position: absolute; right: 6px; top: 6px; }
.mcard .mname { font-size: 12.5px; padding: 7px 9px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 560; }
.mcard .msrc { font-size: 11.5px; color: var(--text-faint); padding: 0 9px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-dim); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }

/* guided flow */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.step { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--text-dim); cursor: pointer; }
.step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.step.on { color: var(--text); border-color: var(--text); font-weight: 600; }
.step.on .n { background: var(--solid); color: var(--solid-ink); }
.step.done .n { background: var(--accent); color: var(--accent-ink); }
.pick { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; background: var(--surface); }
.pick:hover { border-color: var(--border-strong); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick .big { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.pick h3 { margin-bottom: 4px; }
.phone { width: 270px; aspect-ratio: 9/16; background: #000; border-radius: 26px; border: 6px solid #1c1f24; overflow: hidden; display: grid; place-items: center; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.flow-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* post */
.target { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); }
.target + .target { margin-top: 10px; }
.target-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.count { font-size: 12px; color: var(--text-faint); text-align: right; margin-top: 3px; }
.count.over { color: var(--urgent); }

/* modal */
.modal-back { position: fixed; inset: 0; background: #0008; display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { max-width: 480px; width: 100%; }

/* toast */
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#toast .t { background: var(--solid); color: var(--solid-ink); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 20px #0003; max-width: 560px; }
#toast .t.err { background: var(--urgent); color: #fff; }

/* Create: Photoshop-style workspace (always dark) */
.studio { --ws: #1b1d21; --panel: #24272c; --panel-2: #2d3036; --line: #383c43; --ink: #e9ebee; --ink-dim: #9aa0a8;
  display: grid; grid-template-columns: 52px 1fr 290px; grid-template-rows: 48px 1fr; height: calc(100dvh - 60px); background: var(--ws); color: var(--ink); }
.studio button { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.studio button:hover { background: #3a3e45; }
.studio button.primary { background: var(--accent); border-color: var(--accent); color: #03160a; }
.studio input, .studio select, .studio textarea { background: #1b1d21; color: var(--ink); border-color: var(--line); }
.studio label { color: var(--ink-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.st-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 12px; overflow-x: auto; white-space: nowrap; background: var(--panel); border-bottom: 1px solid var(--line); }
.st-top select { width: auto; padding: 5px 8px; font-size: 13px; }
.st-tools { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; }
.st-tools button { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 17px; background: transparent; border-color: transparent; }
.st-tools button.on { background: #3a3e45; border-color: var(--line); }
.st-canvas { overflow: auto; display: grid; place-items: center; padding: 24px; background: repeating-conic-gradient(#202227 0 25%, #1b1d21 0 50%) 0 0 / 22px 22px; }
.st-canvas canvas { box-shadow: 0 10px 40px #000a; background: #fff; }
.st-side { background: var(--panel); border-left: 1px solid var(--line); overflow: auto; }
.st-sec { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.st-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 10px; }
.layer { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.layer:hover { background: var(--panel-2); }
.layer.on { background: #3a3e45; }
.layer .lt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer .lk { color: var(--ink-dim); font-size: 12px; }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.props .full { grid-column: 1 / -1; }
.props input[type=color] { width: 100%; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: #1b1d21; }
.props input[type=range] { width: 100%; }
.st-lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-lib div { aspect-ratio: 1; background: #1b1d21 center/cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--line); }
@media (max-width: 860px) { .studio { grid-template-columns: 46px 1fr; } .st-side { display: none; } }
body.is-studio .topbar { margin-bottom: 0; }
body.is-studio { overflow: hidden; }
.st-top > * { flex-shrink: 0; }
.st-top #prompt { flex-shrink: 1; }
.topbar select.brandpick { width: auto; background: #ffffff55; border-color: #00000022; color: var(--topbar-ink); font-weight: 600; padding: 5px 8px; font-size: 13.5px; }
.checklist .ck { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.checklist .ck:first-of-type { border-top: 0; }
.checklist .ckn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); flex: none; }
.checklist .ck.done .ckn { background: var(--accent); color: var(--accent-ink); }
.checklist .ck.done .ck-t { color: var(--text-dim); text-decoration: line-through; }
.hero-paste { display: flex; gap: 8px; }
.hero-paste input { font-size: 16px; padding: 12px 14px; }



.slot { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px; font-size: 12.5px; min-height: 96px; display: flex; flex-direction: column; gap: 5px; border-top: 3px solid var(--c, var(--border)); }
.slot .angle { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.slot .hook { flex: 1; line-height: 1.35; }
.slot.empty { border-style: dashed; color: var(--text-faint); align-items: center; justify-content: center; border-top-width: 1px; }
.hub-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hub-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.hub-card .big { font-size: 30px; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); display: inline-block; vertical-align: middle; }
.star { background: none; border: 0; padding: 0 2px; font-size: 18px; cursor: pointer; color: var(--text-faint); }
.star.on { color: #f5a623; }
.mcard .mstar { position: absolute; right: 6px; bottom: 6px; font-size: 15px; color: #f5a623; text-shadow: 0 1px 2px #0008; }

.hero-paste button { white-space: nowrap; }

.mcard .mremove { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 999px; background: #000b; color: #fff; border: 0; font-size: 13px; opacity: 0; transition: opacity .12s; }
.mcard:hover .mremove, .mcard .mremove:focus-visible { opacity: 1; }
.mcard .mremove:hover { background: var(--urgent); }
.mcard:has(.mremove) .mstar { right: 38px; }
@media (hover: none) { .mcard .mremove { opacity: .85; } }

/* ---------- AI drafts, assistant, login ---------- */
.ai-badge { background: color-mix(in srgb, #b06ae0 18%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, #b06ae0 45%, transparent); }
.ai-btn { border-color: color-mix(in srgb, #b06ae0 55%, var(--border)); }
.approve { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 560; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #b06ae0 10%, transparent); margin-top: 8px; cursor: pointer; }
.approve input { width: auto; margin: 0; }
.spark-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; border-radius: 999px; padding: 11px 16px; font-weight: 650; box-shadow: 0 6px 20px #0003; background: #7a3fb0; color: #fff; border: 0; }
.spark-panel { position: fixed; right: 20px; bottom: 76px; z-index: 41; width: min(400px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.spark-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.spark-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.spark-msg { padding: 9px 11px; border-radius: 10px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; max-width: 92%; }
.spark-msg.me { align-self: flex-end; background: var(--surface-2); }
.spark-msg.bot { align-self: flex-start; background: color-mix(in srgb, #b06ae0 10%, var(--surface)); border: 1px solid color-mix(in srgb, #b06ae0 25%, transparent); }
.spark-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.spark-foot textarea { min-height: 40px; height: 40px; resize: none; }
.spark-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.spark-chips button { font-size: 12.5px; padding: 4px 9px; }
.login-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.login-card { width: min(380px, 100%); }
body.logged-out #nav, body.logged-out .topbar .spacer ~ * { display: none; }
body.logged-out .spark-fab { display: none; }

/* ---------- House style (Stan): dark by default, X-Build-Pro blue, no pills, no eyebrow labels ---------- */
:root, :root:not([data-theme=light]) { color-scheme: dark;
  --bg:#000;--surface:#0b0c0d;--surface-2:#141517;--border:#1f2124;--border-strong:#303336;--text:#f2f3f5;--text-dim:#9aa0a8;--text-faint:#7c828a;
  --solid:#f7f8f9;--solid-ink:#0a0b0d;--urgent:#ff453a;--urgent-soft:#2c1210;--high:#ff9f0a;--high-soft:#2c2008;--standard:#22d3ee;--standard-soft:#0a262c;
  --topbar:#b0b5bb;--topbar-ink:#101214;--bubble-open:#2b2f34;--bubble-closed:#0a0b0c;--shadow:none; }
:root { --accent:#3d8bff; --accent-ink:#fff; --accent-soft:color-mix(in srgb, #3d8bff 16%, transparent); --ok:#3d8bff; --ok-soft:color-mix(in srgb, #3d8bff 14%, transparent); --lower:#3d8bff; --lower-soft:color-mix(in srgb, #3d8bff 14%, transparent); }
/* Status text, not pills */
.badge { background: none !important; border: 0 !important; border-radius: 0; padding: 0; font-weight: 600; font-size: 12.5px; }
.badge-plain { color: var(--text-dim); }
.ai-badge { color: #c79bf0; }
.chip { border-radius: var(--radius-sm); }
/* Section titles are normal headings, not small uppercase eyebrows */
.sec-label { text-transform: none; letter-spacing: -.01em; font-size: 16px; font-weight: 640; color: var(--text); margin-bottom: 10px; }
.slot .angle { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 650; color: var(--text-dim); }
.studio label, .st-sec h3, th, .filters .f label { text-transform: none; letter-spacing: 0; }
/* Privacy status on tiles: an outline and a plain line of text */
.mcard.flagged { outline: 2px solid var(--high); outline-offset: -2px; }
.mcard .mcheck { color: var(--high); font-size: 12px; font-weight: 600; padding: 0 8px 7px; }
.mcard .mkind { border-radius: 6px; }
.step { border-radius: var(--radius-sm); }
.spark-fab { border-radius: var(--radius-sm); background: var(--solid); color: var(--solid-ink); }
.spark-fab:hover { background: color-mix(in srgb, var(--solid) 88%, var(--accent)); }
