/* PBG Ops — redesign 2026-10-22 (from "Site redesign project kickoff"). Tokens first; everything else uses them. */
:root {
  --bg: #f3f5f8; --panel: #fff; --ink: #0d1321; --ink-2: #3a4252; --muted: #636b7b; --muted-2: #687181; --sub: #5b6475;
  --line: #e3e7ee; --line-2: #eef1f5; --line-3: #dde2ea; --chip: #eef1f5; --seg: #e8ecf2;
  --accent: oklch(0.52 0.2 262); --accent-ink: oklch(0.5 0.2 262); --accent-hover: oklch(0.42 0.2 262);
  --c-pc: oklch(0.55 0.2 262); --c-bb: oklch(0.62 0.17 150); --c-other: oklch(0.75 0.15 75);
  --ok-bg: oklch(0.95 0.04 155); --ok: oklch(0.45 0.12 155); --ok-dot: oklch(0.62 0.15 155);
  --warn-bg: oklch(0.96 0.05 85); --warn: oklch(0.48 0.11 70); --warn-dot: oklch(0.75 0.15 75);
  --bad-bg: oklch(0.95 0.035 25); --bad: oklch(0.5 0.18 27); --bad-dot: oklch(0.62 0.2 27);
  --info-bg: oklch(0.95 0.03 262); --info: oklch(0.45 0.18 262); --info-dot: oklch(0.55 0.2 262);
  --muted-bg: #eef1f5; --muted-dot: #9aa3b2;
  --dark: #0d1321; --dark-2: #151d2d; --dark-line: #2a3344;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 20px; --r-sm: 12px; --shadow-pop: 0 14px 30px -16px rgba(13,19,33,.3);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Manrope, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; } a:hover { color: var(--accent-hover); text-decoration: underline; }
button { font: inherit; } input::placeholder, textarea::placeholder { color: var(--muted-2); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.up { color: var(--ok); } .down { color: var(--bad); } .warnish { color: var(--warn); font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- header: brand · grouped sections · find · account */
.top { position: sticky; top: 0; z-index: 50; /* above every sticky toolbar on a page (the ad editor's is 20), or an open menu is drawn underneath it */ display: flex; align-items: center; gap: 18px; padding: 0 28px; height: 58px; background: rgba(243,245,248,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 16px; letter-spacing: -.02em; margin-right: 6px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--dark); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px; position: relative; }
.brandswitch, .brandbar { flex: none; } .brandswitch.nobrand { opacity: .45; } .brandswitch button[disabled], .brandbar button[disabled] { opacity: .45; cursor: not-allowed; } .brandbar button { display: inline-flex; align-items: center; gap: 6px; } .brandbar i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .brandbar .pc i { background: var(--c-pc); } .brandbar .bb i { background: var(--c-bb); } .brandswitch button { display: inline-flex; align-items: center; gap: 6px; } .brandswitch i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .brandswitch .pc i { background: var(--c-pc); } .brandswitch .bb i { background: var(--c-bb); }
.brand .mark i { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-pc); border: 2px solid var(--bg); }
.modules { display: flex; align-items: center; align-self: stretch; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.modules::-webkit-scrollbar { display: none; }
.modules.overflow { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.modules.overflow.at-end { mask-image: none; -webkit-mask-image: none; }
.modules .group { display: flex; align-items: center; align-self: stretch; gap: 2px; flex: none; }
.modules .group + .group { margin-left: 10px; padding-left: 10px; position: relative; }
.modules .group + .group::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; width: 1px; background: var(--line-3); transform: translateY(-50%); }
.modules a { position: relative; display: flex; align-items: center; align-self: stretch; gap: 7px; white-space: nowrap; padding: 0 10px; font-size: 13.5px; font-weight: 700; color: var(--sub); text-decoration: none; }
.modules a:hover { text-decoration: none; color: var(--ink); }
.modules a.active { color: var(--ink); } .modules a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink); }
.modules a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--bad-bg); color: var(--bad); }
.modules a.active .badge { background: var(--bad); color: #fff; }
.find { flex: 0 1 230px; min-width: 40px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; margin-left: auto; }
.find:hover { border-color: #c9d1dc; color: var(--ink-2); } .find svg { flex: none; } .find span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.find kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--ink-2); }
.aside { position: relative; flex: none; display: flex; align-items: center; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: oklch(0.93 0.04 262); color: oklch(0.42 0.18 262); font-weight: 800; font-size: 14px; }
.avatar:hover, .avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px oklch(0.88 0.06 262); }
.aside .menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); z-index: 30; }
.aside .menu .me { padding: 10px 12px 8px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.aside .menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.aside .menu a .hint { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.aside .menu a:hover { background: var(--chip); } .aside .menu a.active { background: var(--dark); color: #fff; } .aside .menu a.active .hint { color: #b5bdca; }
.aside .menu a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad-dot); }

/* ---- page */
main { max-width: 1320px; margin: 0 auto; padding: 36px 32px 96px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pagehead .text { min-width: 280px; flex: 1 1 480px; }
.pagehead h1 { font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -.04em; margin: 10px 0 0; }
.pagehead p { margin: 12px 0 0; max-width: 660px; color: var(--sub); font-size: 15px; text-wrap: pretty; }
.banner { max-width: 1320px; margin: 18px auto -10px; padding: 12px 16px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); border: 1px solid oklch(0.9 0.08 85); width: calc(100% - 64px); }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: oklch(0.9 0.05 27); } .banner a { font-weight: 800; color: inherit; }
.banner.inline { max-width: none; width: auto; margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.banner.inline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad-dot); flex: none; } .banner.inline span.t { flex: 1; font-size: 14px; }

/* segmented control (tabs + toggles) */
.seg { display: flex; gap: 2px; padding: 4px; background: var(--seg); border-radius: 13px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a, .seg button { white-space: nowrap; flex: none; padding: 8px 14px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 700; background: transparent; color: var(--sub); cursor: pointer; text-decoration: none; }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--ink); }
.seg a.active, .seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(13,19,33,.12); }
.seg.small { padding: 3px; border-radius: 11px; } .seg.small a, .seg.small button { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.seg.light { background: var(--chip); }

/* ---- cards, grids */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.card.tight { padding: 0; overflow: hidden; } .card.flush { padding: 8px 24px; }
.card.dark { background: var(--dark); color: #fff; border-color: var(--dark); } .card.dark .eyebrow { color: #9aa3b2; } .card.dark .sub { color: #b5bdca; }
.card.alert { background: oklch(0.97 0.02 27); border-color: oklch(0.91 0.04 27); } .card.alert .eyebrow { color: oklch(0.5 0.16 27); }
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); } .stack.sm { gap: 12px; }
.cols { display: flex; gap: 20px; flex-wrap: wrap; } .cols > * { min-width: 0; }
.col-2 { flex: 2 1 560px; } .col-1 { flex: 1 1 320px; } .col-half { flex: 1 1 420px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grid-auto.narrow { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .grid-auto.mid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-auto.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.nowrap { flex-wrap: nowrap; } .spacer { flex: 1; }
.sub { color: var(--sub); font-size: 14px; } .meta { color: var(--muted); font-size: 13px; } .meta2 { color: var(--muted-2); font-size: 12.5px; }
.title { font-weight: 800; font-size: 14.5px; }
h2 { font-size: 16px; font-weight: 800; margin: 0 0 12px; } h3 { font-size: 14px; font-weight: 800; margin: 14px 0 6px; }

/* stat tiles */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; } .stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat .meta { margin-top: 6px; font-size: 12.5px; } .stat.bad b { color: var(--bad); } .stat.warn b { color: var(--warn); }
.stat.big { border-radius: 18px; padding: 18px 20px; } .stat.big b { font-size: 32px; letter-spacing: -.04em; margin-top: 6px; } .stat.big .eyebrow { display: block; }
.statstrip { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; flex-wrap: wrap; }
.statstrip > div { padding: 12px 20px; border-right: 1px solid var(--line-2); } .statstrip > div:last-child { border-right: 0; }
.statstrip b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; } .statstrip span { font-size: 12.5px; color: var(--muted); } .statstrip .bad b { color: var(--bad); }
.hero { font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -.05em; } .hero.md { font-size: 44px; letter-spacing: -.04em; } .hero.sm { font-size: 34px; letter-spacing: -.04em; }

/* task cards (home) */
.task { text-align: left; color: var(--ink); cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none; }
.task:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: #cdd4df; text-decoration: none; color: var(--ink); }
.task .head { display: flex; align-items: center; gap: 8px; } .task .dot { width: 8px; height: 8px; border-radius: 50%; }
.task .n { display: flex; align-items: baseline; gap: 12px; } .task .n b { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -.04em; } .task .n span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.task .cta { font-size: 13px; font-weight: 800; color: var(--accent-ink); }

/* buttons */
.btn { white-space: nowrap; flex: none; padding: 10px 15px; border: 1px solid var(--line-3); background: var(--panel); border-radius: 11px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; }
.btn:hover { border-color: #c9d1dc; text-decoration: none; color: var(--ink); background: #fbfcfd; }
.btn.primary { background: var(--dark); color: #fff; border-color: var(--dark); } .btn.primary:hover { background: #1b2538; color: #fff; }
.btn.accent { background: var(--accent); color: #fff; border-color: transparent; font-weight: 800; } .btn.accent:hover { background: var(--accent-hover); color: #fff; }
.btn.danger { color: var(--bad); border-color: oklch(0.88 0.06 27); } .btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.danger.solid { background: oklch(0.55 0.19 27); color: #fff; border-color: transparent; }
.btn.good { background: var(--ok-bg); color: var(--ok); border-color: transparent; font-weight: 800; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); } .btn.ghost:hover { background: var(--chip); color: var(--ink); }
.btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; } .btn.quiet { color: var(--sub); } .btn.quiet:hover { color: var(--bad); border-color: oklch(0.88 0.06 27); }
.btn.link { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 800; font-size: 13px; } .btn.link:hover { color: var(--accent-hover); background: none; }
button:disabled { opacity: .5; cursor: default; }
.btn.chip { padding: 7px 12px; border: 1px solid var(--line); background: #fafbfc; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); } .btn.chip:hover { border-color: oklch(0.75 0.1 262); color: oklch(0.45 0.18 262); }
.actionrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); cursor: pointer; text-align: left; color: var(--ink); width: 100%; }
.actionrow:hover { border-color: oklch(0.75 0.1 262); background: oklch(0.98 0.01 262); } .actionrow .l { flex: 1; } .actionrow .l b { display: block; font-size: 14px; } .actionrow .l span { font-size: 12.5px; color: var(--muted); } .actionrow .arrow { font-weight: 800; color: var(--muted-2); }

/* inputs */
input[type=text], input[type=search], input[type=date], select, textarea { font: inherit; font-size: 14px; padding: 11px 14px; border: 1px solid var(--line-3); border-radius: 12px; background: var(--panel); min-width: 0; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: oklch(0.75 0.1 262); }
input[type=search] { flex: 1 1 280px; max-width: 420px; } select { font-weight: 700; font-size: 13.5px; padding: 10px 14px; cursor: pointer; }
textarea { width: 100%; resize: vertical; }
.toggle { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; } .toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; } .toggle i { width: 34px; height: 20px; border-radius: 999px; background: #c9d1dc; position: relative; transition: background .15s; }
.toggle i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked + i { background: var(--accent); } .toggle input:checked + i::after { left: 16px; }
.findbar { display: flex; gap: 8px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px -20px rgba(13,19,33,.35); }
.findbar input { flex: 1; min-width: 0; max-width: none; padding: 12px 14px; border: 0; font-size: 17px; font-weight: 600; background: transparent; font-family: var(--mono); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.nodot::before { display: none; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.ok::before { background: var(--ok-dot); }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.warn::before { background: var(--warn-dot); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.bad::before { background: var(--bad-dot); }
.pill.info { background: var(--info-bg); color: var(--info); } .pill.info::before { background: var(--info-dot); }
.pill.muted { background: var(--muted-bg); color: var(--sub); } .pill.muted::before { background: var(--muted-dot); }
.pill.pc { background: var(--info-bg); color: var(--info); } .pill.pc::before { background: var(--c-pc); }
.pill.bb { background: oklch(0.95 0.05 150); color: oklch(0.38 0.1 150); } .pill.bb::before { background: var(--c-bb); }
.tag { padding: 3px 9px; border-radius: 8px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tag.dashed { background: none; border: 1px dashed #c9d1dc; color: var(--muted); cursor: pointer; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 7px; }
.dotd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* tables */
.tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th { text-align: left; padding: 14px 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 14px; }
th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: #fafbfc; } tr.clickable { cursor: pointer; }
td .title a { color: var(--ink); } td .sku { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.cover { width: 40px; height: 58px; flex: none; border-radius: 6px; object-fit: cover; background: repeating-linear-gradient(135deg, #e6eaf0 0 5px, #f1f4f8 5px 10px); }
.kv { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.kv:last-child { border-bottom: 0; } .kv span { color: var(--muted); } .kv b { font-weight: 700; white-space: pre-wrap; }
.listrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; } .listrow:last-child { border-bottom: 0; }
.listrow .key { font-family: var(--mono); font-size: 12.5px; width: 130px; } .listrow .grow { flex: 1; color: var(--muted); }
.listrow .ring { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ring.ok { background: var(--ok-dot); box-shadow: 0 0 0 4px var(--ok-bg); } .ring.bad { background: var(--bad-dot); box-shadow: 0 0 0 4px var(--bad-bg); } .ring.info { background: var(--info-dot); box-shadow: 0 0 0 4px var(--info-bg); } .ring.muted { background: var(--muted-dot); box-shadow: 0 0 0 4px var(--muted-bg); } .ring.warn { background: var(--warn-dot); box-shadow: 0 0 0 4px var(--warn-bg); }
.rowbtn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; }
.rowbtn:hover { text-decoration: none; color: var(--ink); } .rowbtn:last-child { border-bottom: 0; } .rowbtn .l { flex: 1; } .rowbtn .l b { display: block; font-size: 15px; } .rowbtn .l span { font-size: 13px; color: var(--muted); }

/* chart (div bars) */
.chart { position: relative; height: 190px; margin-left: 44px; } .chart.tall { height: 240px; }
.chart .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); } .chart .gl span { position: absolute; right: calc(100% + 8px); top: -8px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.chart .bars { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 4px; }
.chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; } .chart .bar:hover { opacity: .7; }
.chart .bar i { display: block; border-radius: 2px; } .chart .bar i:first-child { border-radius: 4px 4px 2px 2px; }
.chart-x { display: flex; gap: 4px; margin: 8px 0 0 44px; } .chart-x div { flex: 1; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; min-width: 0; overflow: visible; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--sub); flex-wrap: wrap; } .legend span { display: flex; align-items: center; gap: 7px; }
.hbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; } .hbar.thick { height: 12px; gap: 3px; } .hbar div { min-width: 0; }
.share { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; } .share div { height: 100%; border-radius: 999px; }

/* genre grid */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.genre { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .genre b { font-size: 13.5px; } .genre .n { font-size: 12.5px; color: var(--sub); font-weight: 600; margin: 2px 0 8px; }
.genre.warn { background: var(--warn-bg); border-color: transparent; } .genre.warn .n { color: var(--warn); } .genre.bad { background: var(--bad-bg); border-color: transparent; } .genre.bad .n { color: var(--bad); }
.genre .bar { height: 4px; border-radius: 999px; background: var(--seg); overflow: hidden; } .genre .bar div { height: 100%; border-radius: 999px; }

/* orders (mystery) */
.order { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.order .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.order .pick { display: grid; grid-template-columns: minmax(140px, 200px) 1fr auto; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.order .pick:last-child { border-bottom: 0; } .order .pick.unfilled { background: var(--bad-bg); }

/* product cards (add books) */
.cards { display: grid; gap: 12px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.pcard img { width: 64px; height: 92px; object-fit: cover; border-radius: 8px; background: var(--chip); }
.variants { margin-top: 10px; border-top: 1px solid var(--line-2); }
.variant { display: grid; grid-template-columns: 1fr 150px 90px 70px 110px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.variant:last-child { border-bottom: 0; } .variant .lbl small { display: block; color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: #fafbfc; color: var(--ink-2); cursor: pointer; user-select: none; }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); } .chip.sug { border-style: dashed; } .chip.static { cursor: default; background: var(--chip); border-color: transparent; } .chip .x { opacity: .6; } .chip .x:hover { opacity: 1; }

/* popover, toasts */
.pop { position: absolute; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 12px; min-width: 260px; }
.pop .opt { display: flex; align-items: center; gap: 8px; padding: 4px 2px; cursor: pointer; } .pop .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--dark); color: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-pop); max-width: 420px; font-size: 14px; white-space: pre-wrap; }
.toast.bad { background: oklch(0.55 0.19 27); } .toast.ok { background: oklch(0.52 0.13 155); }
.blank { padding: 36px; text-align: center; color: var(--muted); }
pre.code { background: #f1f3f7; padding: 10px 12px; border-radius: 10px; overflow: auto; font-size: 12.5px; font-family: var(--mono); } pre.code.small { font-size: 11px; max-height: 120px; margin: 6px 0 0; }
kbd { background: var(--chip); padding: 1px 6px; border-radius: 4px; font: 12px var(--mono); } .steps li { margin: 6px 0; }

/* netsuite trail */
.trail { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 4px; }
.trail .step { display: flex; align-items: center; flex: 1 0 190px; } .trail .node { flex: 1; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.trail a.node:hover { border-color: #c9d1dc; text-decoration: none; } .trail .node.this { background: var(--dark); color: #fff; border-color: var(--dark); } .trail .node.missing { background: var(--bad-bg); color: var(--bad); border: 1px dashed oklch(0.85 0.08 27); }
.trail .node .k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; } .trail .node .id { font-family: var(--mono); font-weight: 700; font-size: 13.5px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .trail .node .m { font-size: 12.5px; opacity: .8; }
.trail .link { width: 28px; flex: none; height: 2px; background: #d3d9e2; }
.actionform { margin-top: 12px; padding: 14px; border: 1px dashed var(--line-3); border-radius: 13px; background: #fafbfc; } .actionform h3 { margin-top: 0; } .actionform input[type=text] { width: 140px; }

/* findings list */
.finding { display: grid; grid-template-columns: 112px minmax(220px, 1fr) minmax(150px, 200px) 100px auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.finding:last-child { border-bottom: 0; } .finding .amt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; } .finding .acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.showmore { width: 100%; padding: 14px; border: 0; background: #fafbfc; font-weight: 800; font-size: 13.5px; color: var(--accent-ink); cursor: pointer; border-top: 1px solid var(--line-2); }

/* ask */
.ask { display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; }
.ask-side { flex: 0 1 280px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.thread { text-align: left; padding: 11px 14px; border-radius: 12px; cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--ink); text-decoration: none; display: block; }
.thread:hover { background: #fff; text-decoration: none; color: var(--ink); } .thread.active { background: #fff; border-color: var(--line); }
.thread .t { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .thread .w { font-size: 12px; color: var(--muted); }
.ask-main { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-height: 640px; }
.transcript { flex: 1; padding: 28px; display: flex; flex-direction: column; gap: 18px; overflow: auto; }
.msg.user { align-self: flex-end; max-width: 640px; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--dark); color: #fff; font-size: 15px; white-space: pre-wrap; }
.msg.tools { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); } .msg.tools::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-pc); flex: none; }
.msg.assistant { max-width: 760px; font-size: 15px; line-height: 1.6; }
.msg.assistant p { margin: 0 0 12px; } .msg.assistant p:last-child { margin-bottom: 0; } .msg.assistant ul, .msg.assistant ol { margin: 4px 0 12px; padding-left: 20px; }
.msg.assistant table { font-size: 13.5px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 6px 0 12px; } .msg.assistant th { padding: 10px 14px; background: #fafbfc; font-size: 10px; } .msg.assistant td { padding: 10px 14px; font-size: 13.5px; }
.msg.assistant code { background: var(--chip); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12.5px; } .msg.assistant h3 { margin: 12px 0 6px; }
.askfoot { padding: 16px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.askbox { display: flex; gap: 8px; align-items: flex-end; padding: 8px; border: 1px solid var(--line-3); border-radius: 16px; }
.askbox textarea { flex: 1; border: 0; resize: none; font-size: 15px; padding: 6px 8px; background: transparent; }

/* activity */
.actrow { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; } .actrow:last-child { border-bottom: 0; }
.actrow .time { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 72px; } .actrow .ini { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: oklch(0.93 0.04 262); color: oklch(0.42 0.18 262); font-weight: 800; font-size: 12.5px; flex: none; }
.actrow .body { flex: 1; min-width: 220px; font-size: 14px; } .actrow .body .mono { color: var(--accent-ink); }

/* grouped tabs (Ads: Make / Run / Results) */
.tabgroups { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.tabgroup { display: flex; flex-direction: column; gap: 5px; min-width: 0; max-width: 100%; } .tabgroup > .eyebrow { font-size: 10px; padding-left: 6px; color: var(--muted-2); }
/* the Marketing mega menu */
.navdrop.mega { padding: 18px; display: none; gap: 0 14px; border-radius: 16px; }
.navgroup.open .navdrop.mega { display: grid; }
.navdrop.mega .h { font-size: 14px; font-weight: 800; padding: 0 10px 10px; } .navdrop.mega .h.more { grid-row: 1; }
.navdrop.mega .col { display: flex; flex-direction: column; gap: 1px; } .navdrop.mega .col > .eyebrow { font-size: 10.5px; padding: 0 10px 6px; }
.navdrop.mega .morecol { padding-top: 22px; grid-row: 2; } .navdrop.mega .vsep { background: var(--line-2); grid-row: 1 / span 2; }
.navdrop.mega a { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px; border-radius: 9px; }
.navdrop.mega a b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; } .navdrop.mega a b > span:first-child { flex: 1; }
.navdrop.mega a .hint { margin: 0; padding: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .navdrop.mega a .badge { margin-left: 0; }
@media (max-width: 1440px) { .modules a { padding: 0 8px; font-size: 13px; } .modules a.active::after { left: 8px; right: 8px; } .top { gap: 14px; padding: 0 18px; } .find { flex-basis: 190px; } }
@media (max-width: 1180px) { .find { flex: 0 0 36px; padding: 0; justify-content: center; } .find span, .find kbd { display: none; } }
@media (max-width: 900px) { .finding { grid-template-columns: 1fr; gap: 6px; } .finding .amt, .finding .acts { text-align: left; justify-content: flex-start; } .kv { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 760px) {
  .top { height: auto; padding: 8px 14px 0; flex-wrap: wrap; gap: 8px 12px; } .modules { order: 5; flex: 1 1 100%; height: 42px; margin: 0 -14px; padding: 0 14px; width: calc(100% + 28px); } .find { flex: 0 0 36px; margin-left: auto; } main { padding: 22px 16px 80px; } .banner { width: calc(100% - 32px); }
  .pagehead h1 { font-size: 30px; } .variant { grid-template-columns: 1fr 80px 70px; } .variant .lbl2, .variant .price { display: none; } th, td { padding: 10px 10px; } .order .pick { grid-template-columns: 1fr; } .chart { margin-left: 38px; }
}

/* phone widths: let cards shrink below their content width */
.cols > * { max-width: 100%; }
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .cols > * { flex-basis: 100% !important; }
  .card, .stat, .statstrip, .order { overflow-x: auto; }
  .hero { font-size: clamp(34px, 11vw, 60px); } .hero.md { font-size: 36px; } .hero.sm { font-size: 30px; }
  .pagehead .text { flex-basis: 100%; } .pagehead .seg { max-width: 100%; }
  .grid-auto.wide { grid-template-columns: 1fr; }
}

/* ---- Tools: one row per tool; numbers are figures, not boxes */
.tools-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); gap: 14px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.tool.full { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px 40px; padding: 24px 26px; }
.tool .ident { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool .ident .name { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.tool .ident .name .dot, .tool .head .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tool .ident .for { font-size: 13px; color: var(--muted); margin-top: -4px; }
.tool .ident p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sub); max-width: 46ch; text-wrap: pretty; }
.tool .ident .open { margin-top: 4px; align-self: flex-start; }
.tool .data { display: flex; flex-direction: column; gap: 14px; min-width: 0; justify-content: center; }
.figs { display: flex; flex-wrap: wrap; gap: 14px 0; }
.fig { padding: 0 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line-2); min-width: 0; }
.fig:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fig b { display: block; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fig span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--sub); white-space: nowrap; }
.fig.warn b { color: var(--warn); } .fig.bad b { color: var(--bad); } .fig.info b { color: var(--accent-ink); }
.tool .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tool .links a { font-size: 13px; font-weight: 700; color: var(--ink-2); } .tool .links a:hover { color: var(--accent-ink); }
.tool .foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.tool .quiet { font-size: 13.5px; color: var(--sub); line-height: 1.5; max-width: 52ch; } .tool .quiet.bad { color: var(--bad); }
.tool.compact { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.tool.compact .head { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.tool.compact .head .open { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); } .tool.compact .head:hover .open { color: var(--accent-ink); }
.tool.compact .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; } .tool.compact .fig { padding-right: 12px; margin-right: 0; } .tool.compact .fig:last-child { padding-right: 0; } .tool.compact .fig b { font-size: 23px; } .tool.compact .fig span { font-size: 11.5px; white-space: normal; }
.tool.compact .links { margin-top: auto; } .tool.compact .links a { font-size: 12.5px; }
.group-title { font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 10px 2px; }
.syslist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 28px; padding: 6px 26px; }
.syslist a { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; min-width: 0; }
.syslist a:last-child { border-bottom: 0; } .syslist a:hover { color: var(--accent-ink); }
.syslist a b { font-size: 14px; font-weight: 800; white-space: nowrap; } .syslist a span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .syslist a i { font-style: normal; color: var(--muted-2); }
@media (max-width: 860px) { .tool.full { grid-template-columns: 1fr; gap: 18px; padding: 20px; } .fig span { white-space: normal; } .syslist { grid-template-columns: 1fr; } }

/* ---- Home: a grid of cards each person arranges (home.js) */
.home-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.widget { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.widget .wbody { display: flex; flex-direction: column; flex: 1; min-width: 0; } .widget .wbody > .card { flex: 1; }
.w-2 { grid-column: span 2; } .w-3 { grid-column: span 3; } .w-4 { grid-column: span 4; } .w-6 { grid-column: span 6; }
.widget.tall { grid-row: span 2; }
@media (max-width: 1180px) { .w-2 { grid-column: span 3; } .w-4 { grid-column: span 6; } .widget.tall { grid-row: auto; } }
@media (max-width: 760px) { .home-grid > .widget { grid-column: span 6; } }
.home-grid.editing .widget { outline: 2px dashed oklch(0.82 0.08 262); outline-offset: 6px; border-radius: var(--r); }
.wbar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: oklch(0.96 0.02 262); border: 1px solid oklch(0.88 0.05 262); border-radius: 12px; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); flex-wrap: wrap; }
.wbar .name { flex: 1; padding-left: 4px; }
.wbar button { border: 0; background: #fff; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.wbar button:hover { background: var(--dark); color: #fff; } .wbar button:disabled { opacity: .35; }
.wopts { padding: 14px 16px; } .wopts[hidden] { display: none; }
.wopts .fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.wopts label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); } .wopts label.toggle { display: flex; }
.wopts input[type=text], .wopts textarea { font-size: 13.5px; padding: 8px 11px; border-radius: 10px; }
.addpanel .opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); cursor: pointer; color: var(--ink); font: inherit; }
.addpanel .opt:hover { border-color: oklch(0.75 0.1 262); background: oklch(0.98 0.01 262); }
.addpanel .opt b { font-size: 14px; } .addpanel .opt span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* ---- Admin center */
.matrix th.c, .matrix td.c { text-align: center; } .matrix input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.aside .menu a[hidden] { display: none; }

/* ---- release calendar grid */
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-cell { min-height: 92px; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; background: var(--panel); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.empty { border: 0; background: transparent; } .cal-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day { font-size: 12px; font-weight: 800; color: var(--muted); }
.cal-item { display: block; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.bad { background: var(--bad-bg); color: var(--bad); } .cal-item.warn { background: var(--warn-bg); color: var(--warn); } .cal-item.info { background: var(--info-bg); color: var(--info); }
@media (max-width: 760px) { .cal-cell { min-height: 60px; } .cal-item { font-size: 10px; } }

/* ---- grouped top menu + command palette */
.modules { overflow: visible; gap: 2px; }
.navlink, .navtop { position: relative; display: flex; align-items: center; align-self: stretch; gap: 7px; white-space: nowrap; padding: 0 11px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--sub); text-decoration: none; background: none; border: 0; cursor: pointer; }
.navlink:hover, .navtop:hover { color: var(--ink); text-decoration: none; }
.navlink.active, .navtop.active { color: var(--ink); } .navlink.active::after, .navtop.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink); }
.navtop .chev { font-size: 10px; color: var(--muted-2); margin-left: -2px; } .navgroup.open .navtop { color: var(--ink); }
.navgroup { position: relative; display: flex; align-self: stretch; }
.navdrop { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); z-index: 40; }
.navgroup.open .navdrop { display: block; }
.navdrop a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.navdrop a:hover { background: var(--chip); text-decoration: none; } .navdrop a.active { background: var(--dark); color: #fff; } .navdrop a.active .hint { color: #b5bdca; }
.navdrop .hint { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); padding-left: 14px; } .navdrop .sep { height: 1px; background: var(--line-2); margin: 4px 8px; }
.navdrop a .badge { margin-left: auto; } .navdrop a .hint + .badge { margin-left: 8px; }
.menubtn { display: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menubtn { display: inline-flex; }
  .modules { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 8px 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); z-index: 35; }
  .modules.open { display: flex; }
  .navlink, .navtop { padding: 11px 8px; width: 100%; justify-content: flex-start; } .navlink.active::after, .navtop.active::after { display: none; } .navlink.active, .navtop.active { background: var(--chip); border-radius: 9px; }
  .navtop .chev { margin-left: auto; } .navgroup { flex-direction: column; }
  .navdrop { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; } .navgroup.open .navdrop { display: block; }
  .navdrop.mega { width: auto !important; display: none; grid-template-columns: 1fr !important; gap: 6px; padding: 0 0 6px 12px; } .navgroup.open .navdrop.mega { display: grid; }
  .navdrop.mega .h, .navdrop.mega .morecol, .navdrop.mega .vsep { grid-column: auto !important; grid-row: auto !important; } .navdrop.mega .vsep { display: none; } .navdrop.mega .morecol { padding-top: 0; } .navdrop.mega .h.more { order: 5; padding-top: 10px; } .navdrop.mega .morecol { order: 6; }
}
.palette { position: fixed; inset: 0; z-index: 60; background: rgba(13,19,33,.38); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; }
.palette[hidden] { display: none; }
.palette .box { width: min(640px, 100%); background: var(--panel); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(13,19,33,.5); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: inherit; font-size: 17px; font-weight: 600; padding: 16px 18px; outline: none; background: transparent; }
.palette .list { max-height: 60vh; overflow: auto; padding: 6px; }
.palette .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.palette .item.sel { background: var(--chip); } .palette .item .grp { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
/* phone: the open menu is a solid panel, whatever the header's translucent backdrop does */
@media (max-width: 900px) { #modules.modules.open { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; } #modules .navgroup, #modules .navtop, #modules .navlink { background: var(--panel); } #modules .navlink.active, #modules .navtop.active { background: var(--chip); } #modules .navdrop { background: var(--panel); } }

/* ---- searchable picker */
.picker { position: relative; min-width: 240px; flex: 1 1 260px; }
.pickdrop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); z-index: 45; padding: 4px; }
.pickdrop .opt { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; } .pickdrop .opt.sel { background: var(--chip); } .pickdrop .opt .meta2 { white-space: nowrap; }
.chipsel { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; color: var(--ink); }
.chipsel b { font-weight: 700; } .chipsel button { border: 0; background: #fff; border-radius: 50%; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 14px; color: var(--muted); } .chipsel button:hover { color: var(--bad); }
.multipick { display: grid; gap: 8px; } .multipick .chips:empty { display: none; }
.recipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.recipe .tile { text-align: left; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 4px; }
.recipe .tile.on { border-color: var(--accent); background: oklch(0.98 0.01 262); } .recipe .tile b { font-size: 14px; } .recipe .tile span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* ---- Library + review mode (redesign 2026-10-28) */
.lib { display: grid; grid-template-columns: 200px minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.lib.review { grid-template-columns: 240px minmax(0, 1fr) 300px; }
.rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.rail { gap: 10px; }
.railgroup { display: flex; flex-direction: column; gap: 1px; padding-top: 12px; border-top: 1px solid var(--line-2); } .railgroup:first-child { padding-top: 0; border-top: 0; } .railgroup > .eyebrow { padding: 0 8px 8px; }
.railrow.none { color: var(--muted); } .railrow.none .n { opacity: .6; }
.filterchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.filterchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; }
.filterchip .k { color: #b5bdca; font-weight: 500; } .filterchip button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; line-height: 1; color: #fff; background: rgba(255,255,255,.15); } .filterchip button:hover { background: rgba(255,255,255,.3); }
.railrow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.railrow:hover { background: var(--chip); text-decoration: none; } .railrow.active { background: var(--dark); color: #fff; } .railrow .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); } .railrow.active .n { color: #b5bdca; }
.railrow .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; } .dot.ok { background: var(--ok-dot); } .dot.warn { background: var(--warn-dot); } .dot.bad { background: var(--bad-dot); } .dot.info { background: var(--info-dot); } .dot.muted { background: var(--muted-dot); }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.libcard { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.libcard:hover { border-color: #c9d1dc; } .libcard.open { border-color: var(--accent); box-shadow: 0 0 0 2px oklch(0.52 0.2 262 / .2); }
.libcard .pic { position: relative; } .libcard .tick { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; } .libcard .tick input { margin: 0; }
.check { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); } .check.ok { background: var(--ok-dot); } .check.warn { background: var(--warn-dot); } .check.bad { background: var(--bad-dot); }
.detail { min-width: 0; }
.selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--dark); color: #fff; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(13,19,33,.6); }
.selbar b { margin-right: 6px; } .selbar .btn { background: #fff; color: var(--ink); border-color: transparent; } .selbar .btn.primary { background: var(--accent); color: #fff; } .selbar .btn.ghost { background: transparent; color: #b5bdca; }
.batchrow { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.batchrow:hover { background: var(--chip); text-decoration: none; } .batchrow.active { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.batchrow .badge.done { background: var(--ok-bg); color: var(--ok); }
.progress { display: flex; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; } .progress i { display: block; height: 100%; } .progress .ok { background: var(--ok-dot); } .progress .bad { background: var(--bad-dot); }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; } .strip .thumb { position: relative; flex: none; width: 76px; border-radius: 7px; border: 2px solid transparent; opacity: .9; } .strip .thumb.cur { border-color: var(--ink); opacity: 1; } .strip .thumb.done { opacity: .45; } .strip .thumb .mark { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; font-style: normal; } .mark.ok { background: var(--ok-dot); } .mark.bad { background: var(--bad-dot); }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.18); } .btn:not(.good):not(.danger) kbd { background: var(--chip); color: var(--ink-2); }
.btn.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 1180px) { .lib, .lib.review { grid-template-columns: 180px minmax(0, 1fr); } .detail { grid-column: 1 / -1; } .rail { position: static; } }
@media (max-width: 760px) { .lib, .lib.review { grid-template-columns: 1fr; } }
/* ---- Studio, three panes */
.studio { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1280px) { .studio { grid-template-columns: 280px minmax(0, 1fr); } .studio > :nth-child(3) { grid-column: 1 / -1; } .studio > :nth-child(2) { position: static !important; } }
@media (max-width: 760px) { .studio { grid-template-columns: 1fr; } }
/* ---- Launch, one page */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .launch { grid-template-columns: 1fr; } .launch > :nth-child(2) { position: static !important; } }
.fbpost { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; font-size: 14px; }
.fbpost .who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; } .fbpost .av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; }
.fbpost .msg { padding: 0 14px 12px; white-space: pre-wrap; } .fbpost .foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f0f2f5; }
.fbpost .foot > div { flex: 1; min-width: 0; } .fbpost .cta { flex: none; padding: 8px 12px; border-radius: 6px; background: #e4e6eb; font-weight: 700; font-size: 13px; white-space: nowrap; }
.progress .busy { background: var(--info-dot); animation: slide 1.1s ease-in-out infinite alternate; } @keyframes slide { from { margin-left: 0; } to { margin-left: 70%; } }

/* ---- audiences (6b) and a signer's fan base (6c) */
.audgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; } @media (max-width: 1100px) { .audgrid { grid-template-columns: 1fr; } }
.sentence { font-size: 22px; line-height: 1.65; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; padding: 18px 20px; border-radius: 16px; background: #f7f8fa; margin-top: 12px; }
.word { cursor: pointer; font: inherit; font-weight: 800; color: oklch(0.45 0.2 262); background: var(--info-bg); border: 0; border-bottom: 2px dashed oklch(0.7 0.12 262); border-radius: 6px; padding: 0 6px; margin: 0 2px; }
.wordpop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 14px; font-weight: 500; }
.morebox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #f7f8fa; margin-top: 10px; }
.rulesbox { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #f7f8fa; margin-top: 12px; }
.rule { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ruleop { width: 82px; flex: none; cursor: pointer; padding: 5px 0; border-radius: 8px; border: 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--dark); color: #fff; text-align: center; } .ruleop.first { background: var(--chip); color: var(--sub); cursor: default; }
.addgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); } @media (max-width: 800px) { .addgrid { grid-template-columns: 1fr; } }
.addopt { display: block; width: 100%; cursor: pointer; text-align: left; padding: 6px 8px; border-radius: 8px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink); } .addopt:hover { background: var(--bg); }
.railcard { background: var(--dark); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.railk { font-size: 13px; font-weight: 700; color: #9aa3b2; } .railn { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.04em; margin-top: 6px; } .railm { font-size: 12.5px; color: #b5bdca; margin-top: 6px; }
.tierbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; } .railtier { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #d6dbe4; white-space: nowrap; } .railtier i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.railchip { padding: 3px 10px; border-radius: 999px; background: var(--dark-2); font-size: 12px; font-weight: 700; color: #d6dbe4; white-space: nowrap; }
.railcard .btn { background: transparent; color: #fff; border: 1px solid #2a3550; } .railcard .btn.primary { background: var(--accent); border-color: var(--accent); } .railcard .btn[disabled] { opacity: .5; }
.sugrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 90px 100px 100px; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); } .sugrow.on { background: oklch(0.985 0.01 262); } .sugrow .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; } .sugrow .bar div { height: 100%; background: var(--c-pc); border-radius: 999px; }
.sugrow.four { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 110px 120px; }
@media (max-width: 900px) { .sugrow, .sugrow.four { grid-template-columns: 1fr 1fr; } }
.tierrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 70px 90px; gap: 12px; align-items: center; font-size: 13px; } .tiertrack { height: 14px; border-radius: 4px; background: var(--line-2); overflow: hidden; } .tiertrack div { height: 100%; }

/* ---- profit (6a) */
.dollarlegend { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; } .dollarlegend > div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; } .dollarlegend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mstrip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; margin: 12px 0 6px; } .mcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-decoration: none; color: var(--muted-2); } .mcol:hover { text-decoration: none; } .mcol .mv { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; } .mcol .mbar { width: 100%; flex: 1; display: flex; align-items: flex-end; margin: 4px 0; } .mcol .mbar div { width: 100%; border-radius: 4px 4px 0 0; background: #c9d1dc; } .mcol.on .mbar div { background: var(--c-pc); } .mcol.on { color: var(--ink); } .mcol .ml { font-size: 11px; }
.attn { display: grid; grid-template-columns: 14px minmax(0, 1fr) 120px 120px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px 18px; border: 0; border-top: 1px solid var(--line-2); background: #fff; cursor: pointer; font: inherit; color: var(--ink); } .attn:hover, .attn.on { background: oklch(0.985 0.01 262); } .attnt { display: flex; flex-direction: column; min-width: 0; } .attnt b { font-size: 14px; } .attnt span { font-size: 12.5px; color: var(--sub); } .attnv { text-align: right; font-variant-numeric: tabular-nums; } .attncta { text-align: right; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
@media (max-width: 800px) { .attn { grid-template-columns: 14px 1fr; } .attnv, .attncta { grid-column: 2; text-align: left; } }

/* ---- studio (5a / 5b) */
.studiogrid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 18px; align-items: start; } .studiogrid.two { grid-template-columns: minmax(0, 1fr) 560px; } @media (max-width: 1200px) { .studiogrid, .studiogrid.two { grid-template-columns: 1fr; } }
.looksrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; } .lookcard { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; } .lookcard.on { border-color: var(--accent); background: oklch(0.98 0.01 262); } .lookcard > span { display: flex; flex-direction: column; } .lookcard b { font-size: 13px; }
.scenechip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line-3); background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; } .scenechip.on { border-color: var(--accent); box-shadow: 0 0 0 2px oklch(0.9 0.05 262); } .scenechip i, .scenechip img { width: 22px; height: 22px; border-radius: 50%; display: inline-block; object-fit: cover; border: 1px solid rgba(0,0,0,.1); }
.editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ckrow { display: flex; align-items: center; gap: 10px; } .ckmark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: 12px; flex: none; } .ckmark.ok { background: var(--ok-bg); color: var(--ok); } .ckmark.warn { background: var(--warn-bg); color: var(--warn); }
.swatchbtn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; } .swatchbtn.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dark); }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; } @media (min-width: 1400px) { .qgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qcard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; } .qcard.on { border-color: var(--accent); background: oklch(0.98 0.01 262); } .qcard b { font-size: 13px; } .qcard > span:last-child { display: flex; flex-direction: column; }
.qwords { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 72px; padding: 8px 12px; border-radius: 8px; background: var(--dark); color: #fff; line-height: 1.1; } .qswatch { display: grid; place-items: center; width: 100%; height: 72px; border-radius: 8px; }
.qnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 12px; margin-right: 8px; }
/* ---- Studio 2: setup column + pictures, then the layered editor */
.st2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; } .st2.editing { grid-template-columns: minmax(0, 1fr); } @media (max-width: 1100px) { .st2 { grid-template-columns: 1fr; } }
.st-picked { display: flex; flex-direction: column; gap: 6px; } .st-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; } .st-chip img, .st-chip i { width: 34px; height: 44px; object-fit: contain; border-radius: 4px; background: var(--chip); flex: none; } .st-chip .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; } .st-chip .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-chip .x { border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 0 4px; }
.st-toplist { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 8px; max-height: 360px; overflow: auto; } .st-top { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 8px; cursor: pointer; } .st-top:hover { background: var(--chip); } .st-top img, .st-top i { width: 30px; height: 40px; object-fit: contain; background: var(--chip); border-radius: 4px; flex: none; } .st-top .nm { display: flex; flex-direction: column; min-width: 0; font-size: 13px; } .st-top .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; } .st-cand { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); } .st-cand img { width: 100%; border-radius: 10px; background: #111; cursor: pointer; display: block; }
.st-progress { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.cr-header { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:22px 24px; background:var(--card,#fff); border:1px solid var(--line); border-radius:16px; }
.cr-steps { display:flex; flex-wrap:wrap; gap:8px; } .cr-steps button { padding:11px 16px; border:1px solid var(--line); border-radius:9px; background:transparent; color:var(--sub); font:inherit; font-size:13px; cursor:pointer; } .cr-steps button.active { background:var(--ink); color:white; border-color:var(--ink); }
.st2.reviewing { grid-template-columns:minmax(0,1fr); }
.cr-memory { padding:22px 26px; border:1px solid var(--line); border-radius:14px; background:white; margin-bottom:16px; } .cr-memory h2 { margin:8px 0; font-size:24px; letter-spacing:-.6px; }
.cr-memory-row { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-top:1px solid var(--line); font-size:13px; } .cr-memory-row span { color:var(--sub); } .cr-memory-row b { text-align:right; max-width:65%; }
.cr-reference-preview { padding:18px; background:white; border:1px solid var(--line); border-radius:14px; } .cr-reference-preview img { display:block; width:100%; max-height:680px; object-fit:contain; border-radius:8px; }
.cr-empty-preview { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:24px; min-height:330px; padding:40px; background:linear-gradient(135deg,#e9e6df,#f6f2e9); border-radius:16px; } .cr-empty-preview b { font-family:Georgia,serif; font-size:40px; line-height:1.18; font-weight:400; white-space:pre-line; letter-spacing:-1px; }
.cr-name { border:0; background:transparent; width:100%; font-size:23px; font-weight:800; color:var(--ink); padding:0; min-width:0; }
.cr-name:focus { outline:2px solid var(--accent); outline-offset:5px; border-radius:3px; }
.cr-directions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.cr-direction { display:grid; grid-template-columns:108px minmax(0,1fr); gap:15px; text-align:left; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); cursor:pointer; align-items:center; }
.cr-direction.selected { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.cr-direction img { width:108px; height:130px; object-fit:cover; border-radius:8px; }
.cr-direction-label { font-size:15px; font-weight:800; }
.cr-font-status { display:flex; flex-direction:column; gap:10px; padding:14px; background:var(--chip); border-radius:10px; }
.cr-list { display:grid; gap:12px; }
.cr-saved { display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding:22px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); text-decoration:none; }
.cr-saved>div { flex:1; min-width:160px; } .cr-saved b { font-size:16px; }
.cr-saved:hover { border-color:var(--accent); }
@media(max-width:1100px) { .cr-direction { grid-template-columns:1fr; align-content:start; } .cr-direction img { width:100%; height:150px; } }
@media(max-width:600px) { .cr-header { padding:16px; } .cr-name { font-size:19px; } .cr-directions { gap:8px; } .cr-direction { padding:8px; gap:9px; } .cr-direction img { height:92px; } .cr-direction-label { font-size:12px; } .cr-direction .meta2 { display:none; } .cr-direction .pill { font-size:10px; padding:4px 5px; } .cr-font-status .toggle { align-items:flex-start; } }
.cv { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 14px; align-items: start; } @media (max-width: 1200px) { .cv { grid-template-columns: 200px minmax(0, 1fr); } .cv .cv-inspector { grid-column: 1 / -1; } } @media (max-width: 760px) { .cv { grid-template-columns: 1fr; } }
.cv-tool { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); position: sticky; top: 64px; z-index: 20; }
.cv-stagewrap { display: flex; justify-content: center; align-items: flex-start; padding: 16px; background: var(--dark); border-radius: 16px; min-height: 420px; }
.cv-stage { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.8); outline: none; background: #000; } .cv-stage.drop { outline: 3px dashed #7aa2ff; outline-offset: -3px; } .cv-stage.bgsel::after { content: ''; position: absolute; inset: 0; outline: 4px dashed rgba(122,162,255,.9); outline-offset: -4px; pointer-events: none; }
.cv-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; } .cv-layer { user-select: none; -webkit-user-select: none; } .cv-text[contenteditable="true"] { outline: 2px solid #7aa2ff; outline-offset: 4px; background: rgba(0,0,0,.25); }
.cv-guides { position: absolute; inset: 0; pointer-events: none; } .cv-guides i { position: absolute; background: #ff4fd8; } .cv-guides .gx { top: 0; bottom: 0; width: 1px; } .cv-guides .gy { left: 0; right: 0; height: 1px; }
.cv-sel { position: absolute; border: 1.5px solid #7aa2ff; pointer-events: none; transform-origin: 50% 50%; } .cv-sel .hd { position: absolute; width: 11px; height: 11px; background: #fff; border: 1.5px solid #7aa2ff; border-radius: 3px; pointer-events: auto; } .cv-sel .nw { left: -6px; top: -6px; cursor: nwse-resize; } .cv-sel .ne { right: -6px; top: -6px; cursor: nesw-resize; } .cv-sel .sw { left: -6px; bottom: -6px; cursor: nesw-resize; } .cv-sel .se { right: -6px; bottom: -6px; cursor: nwse-resize; } .cv-sel .n { left: calc(50% - 6px); top: -6px; cursor: ns-resize; } .cv-sel .s { left: calc(50% - 6px); bottom: -6px; cursor: ns-resize; } .cv-sel .w { left: -6px; top: calc(50% - 6px); cursor: ew-resize; } .cv-sel .e { right: -6px; top: calc(50% - 6px); cursor: ew-resize; }
.cv-sel .rot { position: absolute; left: calc(50% - 7px); top: -30px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1.5px solid #7aa2ff; pointer-events: auto; cursor: grab; } .cv-sel .rot::before { content: ''; position: absolute; left: 6px; top: 13px; width: 1.5px; height: 10px; background: #7aa2ff; }
.cv-sel .cv-tag { position: absolute; left: 0; top: -22px; font: 700 11px var(--mono); color: #fff; background: #7aa2ff; padding: 2px 6px; border-radius: 4px; white-space: nowrap; transform: translateY(-100%); margin-top: -4px; }
.cv-layers, .cv-inspector { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; max-height: calc(100vh - 180px); overflow: auto; } .cv-lhead, .cv-ihead { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; } .cv-ihead b { font-size: 14px; }
.cv-lrow { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; } .cv-lrow:hover { background: var(--chip); } .cv-lrow.on { background: oklch(0.95 0.03 262); } .cv-lrow.off { opacity: .5; } .cv-lrow .ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--chip); overflow: hidden; font-weight: 800; font-size: 12px; flex: none; } .cv-lrow .ic img { width: 100%; height: 100%; object-fit: cover; } .cv-lrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cv-lrow .tb { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--muted); padding: 2px 4px; opacity: 0; } .cv-lrow:hover .tb, .cv-lrow.on .tb { opacity: 1; }
.cv-field { display: flex; flex-direction: column; gap: 5px; padding: 6px 6px 8px; } .cv-field > .meta { font-size: 12px; } .cv-field input[type=range] { width: 100%; } .cv-field textarea, .cv-field input[type=text], .cv-field select { width: 100%; }
.cv-check i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); margin-right: 6px; } .cv-check.warn i { background: var(--warn-dot); }
.cv-checkpop { position: absolute; right: 0; top: 100%; margin-top: 6px; z-index: 40; width: 340px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 8px; }
@font-face { font-family: 'OpenSauceOne'; font-weight: 700; src: url(/fonts/OpenSauceOne-700.ttf) format('truetype'); } @font-face { font-family: 'OpenSauceOne'; font-weight: 800; src: url(/fonts/OpenSauceOne-800.ttf) format('truetype'); }
[hidden] { display: none !important; }

/* Ideas: connected opportunity workspace */
.ib-root { --brain-lime: #d8f4a4; --brain-night: #14262a; display:flex; flex-direction:column; gap:18px; }
.ib-intro { display:flex; justify-content:space-between; align-items:center; overflow:hidden; position:relative; padding:30px 34px; border-radius:22px; color:#f4f6ee; background:var(--brain-night); }
.ib-intro .eyebrow {color:#b1d38f;}
.ib-intro h2 {font-size:clamp(24px,3vw,37px);line-height:1.16;letter-spacing:-.045em;margin:10px 0;max-width:690px;font-weight:600;}
.ib-intro p {color:#b9c8c3;margin:0;font-size:14px;}
.ib-orbit-mark {position:relative;flex:none;width:130px;height:110px;margin-left:25px;display:grid;place-items:center;color:var(--brain-lime);font-size:52px;}
.ib-orbit-mark i {position:absolute;inset:15px 0;border:1px solid #62866d;border-radius:50%;transform:rotate(35deg);}
.ib-orbit-mark i:nth-child(2) {transform:rotate(-35deg);}.ib-orbit-mark i:nth-child(3) {transform:rotate(90deg);}
.ib-toolbar {display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
.ib-goal {display:flex;align-items:center;gap:10px;margin-left:auto;font-size:12px;color:var(--muted);}
.ib-goal select {min-width:200px;}.ib-toolbar .brandbar {margin:0;}
.ib-summary {display:flex;gap:0;background:white;border:1px solid var(--line);border-radius:16px;padding:18px 22px;align-items:center;}
.ib-summary>div {display:flex;flex-direction:column;gap:2px;padding:0 22px;border-right:1px solid var(--line);}
.ib-summary>div:first-child {padding-left:0;}.ib-summary>div:last-child{border:0;}
.ib-summary b {font-size:25px;line-height:1.2;letter-spacing:-.04em;}.ib-summary span {font-size:11px;color:var(--muted);}
.ib-summary .ib-freshness {margin-left:auto;max-width:330px;}.ib-freshness details {font-size:11px;color:var(--muted);}.ib-freshness p {margin:8px 0;}
.ib-status {font-size:12px;color:var(--muted);min-height:18px;}.ib-status.error{color:var(--bad);}
.ib-warn {border:1px solid var(--bad);border-left-width:4px;border-radius:10px;padding:12px 14px;display:grid;gap:8px;background:color-mix(in srgb, var(--bad) 6%, var(--card, #fff));}
.ib-warn-head {display:grid;gap:2px}.ib-warn-head span{font-size:12px;color:var(--muted)}
.ib-warn-row {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto auto;gap:12px;align-items:center;font-size:13px;border-top:1px solid var(--line);padding-top:8px}
.ib-warn-name,.ib-warn-prod {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ib-warn-prod{color:var(--muted)}
.ib-opp-campaign {display:block;font-size:11px;color:var(--muted);margin-top:2px}.ib-opp-campaign.gap{color:var(--bad);font-weight:600}.ib-opp-campaign.running{color:var(--ok, #2a7)}
@media(max-width:850px){.ib-warn-row{grid-template-columns:1fr auto}.ib-warn-prod{grid-column:1/-1}}
.ib-board {border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start;}
.ib-rail {border:1px solid var(--line);border-radius:18px;background:white;overflow:hidden;}
.ib-rail-head {display:flex;flex-direction:column;gap:12px;padding:18px;border-bottom:1px solid var(--line);}.ib-rail-head input,.ib-rail-head select {width:100%;font-size:12px;}
.ib-list {max-height:815px;overflow-y:auto;overscroll-behavior:contain;}
.ib-opportunity {display:flex;width:100%;text-align:left;align-items:center;gap:10px;border:0;border-bottom:1px solid #edf0ec;padding:17px 14px;background:white;color:var(--ink);cursor:pointer;position:relative;}
.ib-opportunity:hover{background:#f7f9f4;}.ib-opportunity.selected{background:#eef4e7;box-shadow:inset 3px 0 #76934e;}
.ib-opp-image {width:43px;height:62px;flex:none;display:grid;place-items:center;background:#fff;border:1px solid #e7ebe1;border-radius:7px;overflow:hidden;}.ib-opp-image img{width:100%;height:100%;object-fit:contain;}
.ib-opp-copy{display:flex;flex-direction:column;min-width:0;gap:5px;}.ib-opp-copy b{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}.ib-opp-copy>span{font-size:10px;color:#5b6e5b;}
.ib-opp-tag {font:9px var(--mono);text-transform:uppercase;letter-spacing:.025em;color:#6b7d65;}.ib-score {font:11px var(--mono);margin-left:auto;color:#53684d;align-self:flex-start;}
.ib-rail-footer{display:flex;flex-direction:column;gap:12px;padding:16px;font-size:11px;}.ib-rail-footer .row{gap:8px;}.ib-rail-footer input{width:auto;}.ib-rail-footer .btn{font-size:11px;}
.ib-work{min-width:0;}.ib-work-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 0 18px;}.ib-work-heading h2{font-size:22px;line-height:1.3;letter-spacing:-.04em;margin:8px 0 0;max-width:650px;}.ib-work-heading .pill{font-size:10px;}
.ib-map {height:460px;position:relative;border:1px solid #dce5d5;border-radius:20px;overflow:hidden;background:radial-gradient(ellipse at center,#e6eedb 0, #f5f7f1 46%,#f9faf6 100%);}
.ib-map:before {content:'';position:absolute;inset:0;background-image:radial-gradient(#bac8ad 1px,transparent 1px);background-size:19px 19px;opacity:.35;}
.ib-map-caption{position:absolute;top:15px;left:0;right:0;text-align:center;font:9px var(--mono);text-transform:uppercase;letter-spacing:.1em;color:#7b8a71;}
.ib-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}.ib-lines path{fill:none;stroke:#a5bb86;stroke-width:1.5;vector-effect:non-scaling-stroke;}
.ib-node{position:absolute;z-index:1;width:31%;height:166px;text-align:left;border:1px solid #dce4d5;border-radius:14px;background:rgba(255,255,255,.96);color:var(--ink);padding:15px;display:flex;flex-direction:column;gap:8px;cursor:pointer;box-shadow:0 4px 14px #1f361609;transition:transform .15s,border-color .15s;}
.ib-node:hover{border-color:#8da968;transform:translateY(-2px);}.ib-node.active{border-color:#6f8f47;box-shadow:0 0 0 2px #dce9c9;}.ib-node:focus-visible,.ib-opportunity:focus-visible,.ib-option:focus-visible,.ib-design-option:focus-visible{outline:3px solid #397a72;outline-offset:2px;}
.ib-node-why{top:43px;left:18px;}.ib-node-buyers{top:43px;right:18px;}.ib-node-design{bottom:18px;left:18px;}.ib-node-prompt{bottom:18px;right:18px;}
.ib-node-label{font:9px var(--mono);letter-spacing:.03em;text-transform:uppercase;color:#79856c;}.ib-node b{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.ib-node-body{font-size:11px;line-height:1.5;color:#65715e;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}.ib-node-foot{margin-top:auto;font-size:10px;font-weight:700;color:#4c6840;}
.ib-hub{position:absolute;z-index:2;top:125px;left:35%;width:30%;height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:16px;border-radius:22px;background:#18302c;box-shadow:0 14px 25px #17311b1c;color:#f5f7ef;}.ib-hub-label{font:9px var(--mono);text-transform:uppercase;letter-spacing:.06em;color:#cfdfa7;}.ib-hub img{width:100%;height:100px;object-fit:contain;filter:drop-shadow(0 6px 5px #0004);}.ib-hub strong{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}.ib-hub>span:last-child{font-size:10px;color:#b1c7bb;}.ib-image-empty{font:22px var(--mono);color:#aac48c;}
.ib-detail{margin-top:16px;padding:22px;background:white;border:1px solid var(--line);border-radius:16px;min-height:230px;}.ib-detail-title{display:flex;justify-content:space-between;align-items:center;gap:12px;}.ib-evidence-reason{font-size:14px;line-height:1.7;color:var(--ink-2);margin:12px 0 20px;}.ib-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;}.ib-facts>div{display:flex;flex-direction:column;gap:6px;}.ib-facts small{font-size:10px;color:var(--muted);}.ib-facts b{font-size:16px;}.ib-facts span{font-size:10px;color:var(--muted);}.ib-detail summary{cursor:pointer;font-size:12px;color:#536e41;}.ib-factors{margin-top:14px;}.ib-factors>div{display:grid;grid-template-columns:1fr auto;gap:5px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;}.ib-factors p{grid-column:1/-1;color:var(--muted);font-size:11px;margin:0;}
.ib-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:16px;}.ib-option{padding:16px;border:1px solid var(--line);border-radius:12px;text-align:left;background:#fff;color:var(--ink);cursor:pointer;}.ib-option.selected,.ib-design-option.selected{border-color:#789752;background:#f4f8ee;box-shadow:0 0 0 1px #789752;}.ib-option b{font-size:12px;}.ib-option .pill{font-size:9px;}.ib-option p{font-size:11px;color:var(--muted);line-height:1.6;}.ib-design-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;}.ib-design-option{border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;background:white;text-align:left;color:var(--ink);cursor:pointer;}.ib-design-option img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px;}.ib-design-option b{font-size:12px;}.ib-design-option>span{font-size:10px;color:var(--muted);}.ib-design-option .pill{white-space:normal;line-height:1.5;}
.ib-prompt-options{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;}.ib-prompt-text{width:100%;resize:vertical;font-size:12px;line-height:1.8;background:#f8faf5;border-color:#dde5d4;color:#3e4a39;}.ib-buildbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0 8px;}.ib-buildbar b{font-size:14px;}.ib-buildbar p{margin:5px 0 0;max-width:520px;font-size:11px;color:var(--muted);}.ib-buildbar a{font-size:12px;}.ib-build{flex:none;}.ib-root .ib-build.btn{background:#203e31;color:#e2f4bf;border:1px solid #203e31;}.ib-root .ib-build.btn:hover{background:#315743;}.ib-root .ib-build.btn:disabled{opacity:.5;}.ib-empty{padding:35px 22px;color:var(--muted);font-size:13px;}.ib-empty h2{color:var(--ink);}.cr-origin{background:#edf4e5;border:1px solid #dce6d1;border-radius:12px;padding:14px 18px;font-size:12px;}.cr-origin summary{cursor:pointer;font-weight:700;color:#4a6339;}
@media(min-width:1500px){.ib-board{grid-template-columns:330px minmax(0,1fr)}.ib-node{padding:18px}.ib-node b{font-size:15px}.ib-node-body{font-size:12px}}
@media(max-width:1120px){.ib-board{grid-template-columns:250px minmax(0,1fr);gap:14px}.ib-node{width:32%;padding:12px;height:171px}.ib-node-why,.ib-node-design{left:10px}.ib-node-buyers,.ib-node-prompt{right:10px}.ib-node-foot{font-size:9px}.ib-summary>div{padding:0 14px}.ib-freshness{max-width:200px!important}.ib-buildbar{align-items:stretch;flex-direction:column}.ib-hub{left:35%;width:30%;padding:10px}.ib-hub img{height:85px}}
@media(max-width:850px){.ib-board{grid-template-columns:1fr}.ib-list{display:flex;max-height:none;overflow-x:auto}.ib-opportunity{min-width:245px;width:245px;border-right:1px solid var(--line);border-bottom:0}.ib-rail-head{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ib-rail-head .eyebrow{grid-column:1/-1}.ib-rail-footer{flex-direction:row;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--line)}.ib-summary .ib-freshness{display:none}.ib-summary>div:nth-child(3){border:0}.ib-goal{margin-left:0}.ib-toolbar .brandbar{margin-right:auto}.ib-intro{padding:24px}.ib-orbit-mark{width:90px;height:90px}.ib-node{width:31%;height:166px;padding:14px}.ib-node-why,.ib-node-design{left:16px}.ib-node-buyers,.ib-node-prompt{right:16px}}
@media(max-width:540px){.ib-intro{padding:22px}.ib-orbit-mark{display:none}.ib-intro h2{font-size:27px}.ib-summary{padding:16px}.ib-summary>div{padding:0 12px;flex:1}.ib-summary span{font-size:9px}.ib-summary b{font-size:22px}.ib-goal{flex:1;justify-content:space-between}.ib-goal select{min-width:0;max-width:205px}.ib-toolbar>.btn{width:100%}.ib-work-heading h2{font-size:20px}.ib-map{height:auto;padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.ib-map-caption{position:static;grid-column:1/-1;margin-bottom:4px}.ib-lines{display:none}.ib-hub{position:relative;inset:auto;width:100%;height:auto;grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:60px 1fr;text-align:left;gap:6px 14px;padding:16px}.ib-hub img{grid-column:1;grid-row:1/4;height:80px}.ib-hub-label,.ib-hub strong,.ib-hub>span:last-child{grid-column:2}.ib-node{position:relative;inset:auto;width:100%;height:185px;padding:13px}.ib-node b{font-size:12px}.ib-node-body{font-size:10px}.ib-node-foot{font-size:9px}.ib-node-why{grid-column:1}.ib-node-buyers{grid-column:2}.ib-node-design{grid-column:1}.ib-node-prompt{grid-column:2}.ib-facts{grid-template-columns:1fr;gap:14px}.ib-facts>div{padding-bottom:12px;border-bottom:1px solid var(--line)}.ib-detail{padding:18px}.ib-design-options{grid-template-columns:1fr}.ib-design-option{display:grid;grid-template-columns:82px 1fr}.ib-design-option img{grid-row:1/4}.ib-detail-title{align-items:flex-start}.ib-rail-head{grid-template-columns:1fr}.ib-rail-head .eyebrow{grid-column:auto}.ib-rail-footer .btn{font-size:10px}.ib-root .ib-build{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.ib-node{transition:none}}

/* Make an ad: one brief, a visible production choice, a durable creative history. */
.mk-workspace { max-width:1120px; margin:0 auto; display:grid; gap:24px; }
.mk-workspace h2 { margin:6px 0 8px; font-size:24px; line-height:1.2; letter-spacing:-.035em; }
.mk-topline,.mk-section-head,.mk-actions { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.mk-actions { justify-content:flex-start; }
.mk-actions .meta2 { flex:1 1 240px; }
.mk-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.mk-steps>span { border-top:2px solid var(--line); padding-top:12px; display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; }
.mk-steps i { font:normal 11px var(--mono); border:1px solid var(--line); width:24px; height:24px; display:grid; place-items:center; border-radius:50%; flex:none; }
.mk-steps .active { border-color:var(--accent); color:var(--ink); font-weight:700; }
.mk-steps .active i { background:var(--accent); color:#fff; border-color:var(--accent); }
.mk-steps .complete { border-color:var(--ok-dot); }
.mk-start,.mk-plan { padding:clamp(20px,3vw,34px); background:var(--panel); border:1px solid var(--line); border-radius:var(--r); min-width:0; }
.mk-start { background:linear-gradient(130deg,#fff 60%,#f0f3ff); }
.mk-start textarea { width:100%; border:1px solid var(--line-3); padding:18px; border-radius:14px; resize:vertical; font-family:inherit; font-size:18px; line-height:1.6; font-weight:500; min-height:120px; color:var(--ink); background:#fff; }
.mk-start textarea:focus { outline:2px solid var(--accent); outline-offset:2px; }
.mk-examples { display:flex; flex-wrap:wrap; gap:4px; margin:10px 0 22px; }
.mk-examples .btn { white-space:normal; text-align:left; height:auto; }
.mk-plan-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:30px; margin:24px 0; }
.mk-product { display:flex; gap:14px; align-items:center; }
.mk-product img { width:70px; height:82px; object-fit:contain; background:var(--bg); border-radius:8px; }
.mk-product strong { display:block; line-height:1.4; font-size:14px; }
.mk-product .meta2 { display:block; margin-top:4px; }
.mk-refs { display:flex; flex-wrap:wrap; gap:12px; }
.mk-refs figure { margin:0; flex:0 1 108px; min-width:0; }
.mk-refs img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:9px; border:1px solid var(--line); }
.mk-refs figcaption { font-size:10px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; margin-top:4px; }
.mk-output { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:18px; margin:20px 0; display:grid; grid-template-columns:minmax(200px,.7fr) 1fr; gap:24px; }
.mk-output>label { display:flex; flex-direction:column; gap:12px; font-size:13px; }
.mk-output select { width:100%; padding:10px; font:inherit; border:1px solid var(--line-3); border-radius:8px; background:#fff; }
.mk-type-status { color:var(--ink-2); font-size:13px; line-height:1.6; }
.mk-type-status p { margin:5px 0 10px; }
.mk-consent { display:flex; align-items:flex-start; gap:8px; margin-bottom:8px; font-weight:600; }
.mk-consent input { margin-top:4px; }
.mk-font-warning { color:var(--warn); font-size:13px; }
.mk-error { padding:16px 20px; border:1px solid var(--bad); color:var(--bad); background:var(--bad-bg); border-radius:12px; white-space:pre-wrap; }
.mk-progress { padding:22px; background:var(--dark); color:#fff; border-radius:14px; display:grid; gap:6px; }
.mk-progress .meta2 { color:#b7bfd0; }
.mk-results:empty { display:none; }
.mk-candidates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:18px; }
.mk-candidate { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; min-width:0; }
.mk-candidate>a { display:block; background:#e9ecf1; }
.mk-candidate>a>img { display:block; width:100%; height:340px; object-fit:contain; }
.mk-candidate-body { padding:18px; }
.mk-candidate-body p { margin:0; }
.mk-candidate-body summary { font-size:12px; cursor:pointer; }
.mk-copy { display:grid; gap:3px; font-size:12px; color:var(--muted); }
.mk-recent { border-top:1px solid var(--line); padding-top:20px; }
@media(max-width:700px) {
  .mk-workspace { gap:18px; }
  .mk-plan-grid,.mk-output,.mk-candidates { grid-template-columns:1fr; gap:18px; }
  .mk-steps { gap:6px; }
  .mk-steps>span { font-size:10px; gap:5px; align-items:flex-start; flex-direction:column; }
  .mk-start textarea { font-size:16px; }
  .mk-candidate>a>img { height:auto; max-height:480px; }
}
.mk-start>summary { cursor:pointer; list-style:none; }
.mk-start>summary::-webkit-details-marker { display:none; }
.mk-start>summary .meta { margin:8px 0; }

/* One ads workspace: five primary destinations, local tools below. */
.ads-navigation { display:grid; gap:0; margin-bottom:24px; border-bottom:1px solid var(--line); }
.ads-primary-nav { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding-bottom:12px; }
.ads-primary-nav>a:not(.btn) { padding:10px 16px; color:var(--ink-2); text-decoration:none; border-radius:9px; font-weight:600; }
.ads-primary-nav>a.active { color:var(--accent); background:var(--chip); }
.ads-make-action { margin-left:auto; }
.mk-studio-nav { display:flex; flex-wrap:wrap; gap:8px 22px; padding:12px 4px; border-top:1px solid var(--line); }
.mk-studio-nav a { color:var(--muted); font-size:13px; text-decoration:none; padding:4px 0; }
.mk-studio-nav a.active { color:var(--ink); font-weight:700; }
.mk-studio-start { max-width:900px; width:100%; }
.mk-studio-start .mk-actions { flex-wrap:wrap; }
.mk-workspace [hidden] { display:none!important; }
.mk-layer-promise { border-left:3px solid var(--accent); padding:4px 18px; max-width:900px; }
.mk-layer-promise p { color:var(--muted); font-size:13px; line-height:1.6; margin:7px 0; }
.cp-list { display:grid; gap:16px; }
.cp-plan { padding:22px; border:1px solid var(--line); background:var(--panel); border-radius:var(--r); display:grid; gap:16px; }
.cp-title { color:var(--ink); font-size:18px; font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.cp-adset { display:flex; gap:12px 24px; flex-wrap:wrap; border-left:2px solid var(--line); padding:8px 18px; margin-left:10px; }
.st-cand-preview { border:0; padding:0; background:none; display:block; width:100%; cursor:pointer; }
.st-cand-preview img { display:block; width:100%; }
.mk-photo-option.selected { outline:2px solid var(--accent); outline-offset:2px; }
.st-cands>.mk-quality-rejected { grid-column:1/-1; }
.st2 .seg,.cv-tool .seg { flex-wrap:wrap; }
.cv>* { min-width:0; }
.cv-field input,.cv-field select,.cv-field textarea { max-width:100%; }
.mk-quality-rejected .st-cand { max-width:420px; margin-top:16px; }
.btn[aria-disabled=true] { opacity:.55; cursor:default; }
.cv-save-dialog { position:fixed; left:50%; top:20%; transform:translateX(-50%); z-index:60; width:min(440px,calc(100vw - 32px)); padding:18px; }
/* Creative workspace: the direction, source material and finished work share one stage. */
.pagehead:has(.ads-navigation) .ads-navigation { flex:1 1 100%; margin-bottom:0; }
.st2 { grid-template-columns:300px minmax(0,1fr); gap:24px; }
.st-sidebar-heading { display:grid; gap:6px; padding:0 4px 3px; }
.st-settings { border:0; margin:0; padding:0; min-width:0; }
.st-settings-section { padding:16px; min-width:0; }
.st-settings-section>summary { font-weight:700; cursor:pointer; }
.st-settings-section>div { padding-top:16px; }
.st-reference-options { grid-template-columns:minmax(0,1fr); gap:8px; }
.st-reference-options .cr-direction { grid-template-columns:56px minmax(0,1fr); padding:8px; gap:10px; }
.st-reference-options .cr-direction img { width:56px; height:70px; object-fit:contain; }
.st-reference-options .cr-direction-label { font-size:12px; }
.st-reference-options .cr-direction .meta2 { display:none; }
.st-reference-options .cr-direction .pill { font-size:10px; padding:3px 5px; }
.st-concept-heading,.st-preview-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.st-concept-heading { margin-bottom:14px; }
.st-concept-heading h2 { margin:6px 0 0; font-size:24px; letter-spacing:-.6px; }
.st-concept-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.st-concept { display:grid; align-content:start; grid-template-columns:16px minmax(0,1fr); gap:9px 8px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); text-align:left; font:inherit; cursor:pointer; min-width:0; }
.st-concept.selected { border-color:var(--accent); background:#f0f3ff; }
.st-concept b { font-size:13px; }
.st-concept>span:last-child { grid-column:2; font-size:12px; color:var(--sub); line-height:1.55; }
.st-concept-mark { color:var(--accent); }
.st-preview-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.st-plan-preview,.st-preview-body>.st-cand { padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:16px; display:grid; gap:16px; min-width:0; }
.st-artboard { aspect-ratio:var(--st-ratio); max-height:600px; min-height:300px; background:#edf0f6; border-radius:10px; padding:clamp(18px,3vw,38px); display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:16px; overflow:hidden; }
.st-tone-warm { background:#f4eee5; }
.st-tone-editorial { background:#e9edf0; }
.st-plan-label { font:11px var(--mono); text-transform:uppercase; letter-spacing:.12em; color:var(--sub); }
.st-artboard h3 { margin:0; text-align:center; font-size:clamp(21px,2.8vw,34px); line-height:1.18; letter-spacing:-.03em; overflow-wrap:anywhere; }
.st-plan-message { margin:0; text-align:center; color:var(--sub); font-size:15px; }
.st-plan-products { display:flex; flex:1; width:100%; min-height:0; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.st-plan-products figure { display:flex; flex-direction:column; gap:8px; min-width:0; flex:0 1 240px; align-items:center; margin:0; }
.st-plan-products img { max-height:280px; max-width:100%; width:auto; object-fit:contain; border-radius:4px; }
.st-plan-products figcaption { color:var(--sub); font-size:11px; text-align:center; max-width:240px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.st-artboard:has(figure:nth-child(2)) { aspect-ratio:auto; max-height:none; }
.st-plan-products:has(figure:nth-child(2)) { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); }
.st-plan-products:has(figure:nth-child(2)) img { height:170px; }
.st-source-note { font-size:11px; color:var(--sub); text-align:center; }
.st-source-missing,.st-plan-empty { text-align:center; color:var(--sub); }
.st-preview-reference { display:flex; gap:14px; align-items:center; }
.st-preview-reference>img { width:58px; height:72px; object-fit:contain; flex:none; background:var(--chip); border-radius:5px; }
.st-preview-reference p { margin:5px 0; }
.st-preview-body>.st-cand>.st-cand-preview img { max-height:620px; object-fit:contain; background:var(--dark); }
.st-version-strip { display:flex; flex-wrap:wrap; gap:10px; }
.st-version { display:flex; flex-direction:column; gap:5px; width:100px; min-width:0; padding:6px; background:var(--panel); border:1px solid var(--line); border-radius:10px; font:inherit; color:var(--ink); cursor:pointer; text-align:left; }
.st-version.selected { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.st-version img { width:100%; height:76px; object-fit:contain; border-radius:5px; background:var(--chip); }
.st-version span,.st-version small { font-size:11px; }
.st-version small { color:var(--sub); }
.st-context-proof { padding:16px; border-top:1px solid var(--line); }
.st-context-proof>summary { cursor:pointer; color:var(--sub); font-size:13px; }
.st-create-bar { display:grid; gap:12px; }
.st-readiness { padding:14px 16px; border-radius:10px; background:var(--chip); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.st-readiness p { margin:5px 0 0; }
.st-readiness.needs-attention { background:#fff2dd; }
.st-create-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.st-create-actions>.btn { width:auto!important; min-width:220px; }
.st-style-guide { min-width:0; padding:12px 0; border-top:1px solid var(--line); }
.st-style-guide>summary { cursor:pointer; font-size:13px; font-weight:700; }
.st-style-guide>div { padding-top:10px; }
.st-style-guide p { margin:4px 0; }
.st-style-row { display:grid; gap:4px; font-size:12px; color:var(--sub); }
.st-style-row>b { color:var(--ink); }
.st-style-palette { display:flex; flex-wrap:wrap; gap:8px 12px; }
.st-style-palette>span { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--sub); }
.st-style-palette i { display:block; width:15px; height:15px; border:1px solid var(--line); border-radius:50%; flex:none; }
/* Visual reference library. Native dialog supplies focus trapping and Escape. */
.mk-look-entry { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 28px; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--ink); text-decoration:none; }
.mk-look-entry:hover { border-color:var(--accent); box-shadow:0 4px 18px #19212d0b; }
.mk-look-entry .eyebrow { display:block; font-size:10px; margin-bottom:8px; color:var(--accent); }
.mk-look-entry b { display:block; font-size:20px; letter-spacing:-.5px; }
.mk-look-entry p { margin:7px 0 0; font-size:13px; color:var(--sub); }
.mk-look-link { font-size:12px; font-weight:800; white-space:nowrap; color:var(--accent); }
.rb-choice { display:grid; gap:10px; justify-items:start; min-width:0; }
.rb-choice-button { display:grid; grid-template-columns:86px minmax(0,1fr); gap:14px; width:100%; text-align:left; align-items:center; padding:10px; border:1px solid var(--line); background:#f8f9fb; color:var(--ink); border-radius:12px; font:inherit; cursor:pointer; }
.rb-choice-button:hover { border-color:var(--accent); background:#fff; }
.rb-choice-copy { display:grid; gap:6px; min-width:0; }
.rb-choice-copy b { font-size:14px; overflow-wrap:anywhere; }
.rb-choice-copy .eyebrow { font-size:9px; }
.rb-choice-action { color:var(--accent); font-size:12px; font-weight:700; }
.rb-artwork { display:flex; align-items:center; justify-content:center; position:relative; min-width:0; background:#19212d; overflow:hidden; }
.rb-artwork img { display:block; width:100%; height:100%; object-fit:contain; }
.rb-artwork img[hidden] { display:none; }
.rb-image-missing::after { content:'Preview unavailable'; padding:16px; color:#d3dbe5; font-size:12px; }
.rb-choice-image,.rb-choice-empty { width:86px; height:104px; border-radius:7px; }
.rb-choice-empty { display:grid; place-items:center; background:#e6eaf2; color:#64748b; font-size:38px; }
.rb-dialog { width:min(1180px,calc(100vw - 48px)); height:min(900px,calc(100dvh - 48px)); max-width:none; max-height:none; padding:0; border:1px solid #dbe0e8; border-radius:20px; color:var(--ink); background:#fff; box-shadow:0 28px 100px #0d132150; overflow:hidden; }
.rb-dialog[open] { display:flex; flex-direction:column; }
.rb-dialog::backdrop { background:#0d1321b8; backdrop-filter:blur(7px); }
.rb-mobile-tabs { display:none; }
.rb-header { display:flex; gap:24px; justify-content:space-between; padding:25px 28px 20px; border-bottom:1px solid var(--line); flex:none; }
.rb-header .eyebrow { color:var(--accent); font-size:10px; }
.rb-header h2 { margin:7px 0 5px; font-size:30px; letter-spacing:-1px; line-height:1.12; }
.rb-header p { margin:0; color:var(--sub); font-size:13px; }
.rb-close { flex:none; align-self:flex-start; width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font:inherit; font-size:24px; cursor:pointer; }
.rb-body { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr); flex:1; min-height:0; }
.rb-library { display:flex; flex-direction:column; min-width:0; min-height:0; padding:20px 22px 0; }
.rb-tools { display:flex; gap:8px; flex:none; }
.rb-tools input[type=search] { width:100%; min-width:0; max-width:none; flex:1; font-size:12px; }
.rb-tools select { width:138px; min-width:0; padding:10px; font-size:12px; flex:none; }
.rb-filters { display:flex; gap:5px; flex-wrap:wrap; padding:15px 0 12px; }
.rb-filter { padding:7px 10px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--sub); cursor:pointer; font:inherit; font-size:11px; font-weight:700; }
.rb-filter:hover { background:#f1f3f8; }
.rb-filter.active { background:#19212d; color:#fff; }
.rb-library-meta { display:flex; justify-content:space-between; gap:10px; font-size:10px; color:var(--muted); padding:0 0 12px; }
.rb-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; overflow-y:auto; min-height:0; padding:3px 3px 22px; align-content:start; overscroll-behavior:contain; }
.rb-tile { position:relative; display:flex; flex-direction:column; min-width:0; padding:0; background:#fff; border:1px solid #dbe0e8; border-radius:11px; color:var(--ink); text-align:left; font:inherit; cursor:pointer; transition:border-color .12s,box-shadow .12s; }
.rb-tile:hover { border-color:#8694ac; box-shadow:0 3px 14px #19212d15; }
.rb-tile.rb-highlighted { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.rb-tile .rb-artwork { aspect-ratio:1; width:100%; padding:7px; box-sizing:border-box; border-radius:10px 10px 0 0; }
.rb-tile-copy { display:grid; gap:4px; padding:10px; }
.rb-tile-copy b { font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.rb-tile-copy>span { color:var(--muted); font-size:10px; }
.rb-current-mark { position:absolute; top:8px; left:8px; border:1px solid #ffffff55; border-radius:5px; background:#fffef0; color:#1d314b; padding:4px 6px; font-size:9px; font-weight:800; box-shadow:0 1px 8px #0004; }
.rb-detail { display:flex; flex-direction:column; min-height:0; overflow:auto; background:#f3f5f8; border-left:1px solid var(--line); overscroll-behavior:contain; }
.rb-detail-image { height:min(42vh,420px); min-height:180px; flex:none; padding:18px 22px 42px; box-sizing:border-box; background:#151e2b; }
.rb-enlarge { position:absolute; right:12px; bottom:10px; padding:6px 9px; border:1px solid #ffffff33; border-radius:6px; background:#17202ee8; color:#fff; font-size:10px; font-weight:700; text-decoration:none; }
.rb-enlarge:hover { background:#30415b; color:#fff; }
.rb-detail-copy { padding:21px 22px; }
.rb-detail-title { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.rb-detail h3 { margin:0; font-size:20px; line-height:1.25; letter-spacing:-.4px; overflow-wrap:anywhere; }
.rb-detail-copy>p { margin:8px 0; }
.rb-detail-intent { color:var(--ink-2); font-size:12px; line-height:1.6; }
.rb-type-note { margin-top:17px; padding:14px 0; border-top:1px solid var(--line); }
.rb-type-note p { margin:9px 0 0; line-height:1.6; }
.rb-file-info { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.rb-file-info summary { cursor:pointer; }
.rb-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 24px; border-top:1px solid var(--line); background:white; flex:none; }
.rb-footer-label { display:grid; gap:3px; min-width:0; }
.rb-footer-label b { font-size:13px; overflow-wrap:anywhere; }
.rb-footer-label>span { font-size:11px; color:var(--muted); }
.rb-footer-actions { display:flex; gap:8px; flex:none; }
.rb-empty { grid-column:1/-1; padding:40px 16px; text-align:center; color:var(--sub); font-size:13px; }
.rb-dialog button:focus-visible,.rb-choice button:focus-visible { outline:3px solid #688af1; outline-offset:3px; }
@media(max-width:760px) {
  .mk-look-entry { padding:20px; align-items:flex-start; flex-direction:column; gap:16px; }
  .rb-dialog { width:calc(100vw - 16px); height:calc(100dvh - 16px); border-radius:14px; }
  .rb-header { padding:20px 18px 16px; gap:12px; }
  .rb-header h2 { font-size:26px; }
  .rb-header p { max-width:32ch; font-size:12px; }
  .rb-body { display:block; overflow-y:auto; }
  .rb-mobile-tabs { display:flex; gap:6px; flex:none; padding:10px 15px; border-bottom:1px solid var(--line); }
  .rb-mobile-tabs button { flex:1; border:0; border-radius:7px; background:#f1f3f8; color:var(--sub); padding:9px; font:inherit; font-size:11px; font-weight:700; cursor:pointer; }
  .rb-mobile-tabs button[aria-pressed=true] { background:#19212d; color:#fff; }
  .rb-library { display:block; padding:16px 15px 0; }
  .rb-grid { grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:12px; padding-bottom:18px; }
  .rb-tools select { width:116px; }
  .rb-detail { display:none; border-left:0; overflow:visible; }
  .rb-show-preview .rb-detail { display:flex; }
  .rb-show-preview .rb-library { display:none; }
  .rb-detail-image { height:340px; }
  .rb-footer { padding:12px; gap:8px; }
  .rb-footer-label { max-width:130px; }
  .rb-footer-label b { font-size:11px; }
  .rb-footer-actions { gap:4px; }
  .rb-footer-actions .btn { padding:10px; font-size:11px; }
  .rb-library-meta>span:last-child { font-size:9px; }
}
@media(max-width:1000px) {
  .st2 { grid-template-columns:minmax(0,1fr); }
  .st2>.st-settings { order:2; }
  .st2>div:last-child { order:1; }
  .st2.editing>div:last-child { order:0; }
  .st-artboard { aspect-ratio:auto; min-height:420px; }
}
@media(max-width:560px) {
  .st-concept-options { grid-template-columns:minmax(0,1fr); }
  .st-concept { padding:12px; gap:5px 8px; }
  .st-concept>span:last-child { font-size:12px; }
  .st-artboard { min-height:360px; padding:18px; }
  .st-plan-products img { max-height:210px; }
  .st-preview-reference { align-items:flex-start; }
  .st-readiness { align-items:flex-start; }
  .st-create-actions>.btn { width:100%!important; min-width:0; }
}
@media(max-width:600px) {
  .cv { grid-template-columns:minmax(0,1fr); }
  .cv-stagewrap { min-height:300px; }
  .ads-primary-nav { gap:4px; }
  .ads-primary-nav>a:not(.btn) { padding:9px 10px; font-size:13px; }
  .ads-make-action { margin-left:0; }
  .mk-studio-nav { gap:8px 18px; }
  .cr-header .cr-name { width:100%; min-width:0; }
  .cp-plan { padding:16px; }
}
.mk-brief-editor { margin-top:18px; }
.mk-candidates:has(>.mk-candidate:only-child) { grid-template-columns:minmax(0,620px); justify-content:center; }
.mk-candidates>.mk-candidate:only-child>a>img { height:auto; max-height:520px; }
.mk-revise { border-top:1px solid var(--line); padding-top:10px; }
.mk-revise textarea { display:block; width:100%; margin:12px 0 8px; padding:10px; border:1px solid var(--line-3); border-radius:8px; font:inherit; resize:vertical; }
.mk-revise button { margin-top:10px; }
.mk-photo-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(85px,1fr)); gap:8px; margin-top:10px; }
.mk-photo-option { border:1px solid var(--line); border-radius:8px; padding:6px; background:#fff; cursor:pointer; }
.mk-photo-option img { width:100%; height:110px; object-fit:contain; }
.mk-photo-option span { display:block; font-size:11px; }
.mk-quality-rejected { padding:20px; background:var(--warn-bg); border:1px solid var(--warn-dot); border-radius:12px; margin-top:18px; }
.mk-quality-rejected>p { font-size:13px; }
.mk-failed-attempt { display:flex; gap:16px; margin-top:18px; align-items:flex-start; }
.mk-failed-attempt>img { width:110px; max-height:180px; object-fit:contain; }
.mk-failed-attempt>div { min-width:0; flex:1; }

/* ---- Product facts (#ads/facts): queue left, the product's facts right */
.pf { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.pf-list { max-height: calc(100vh - 220px); overflow: auto; } .pf-list-head { display: grid; gap: 2px; padding: 14px 16px 8px; }
.pf-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 16px; border: 0; border-top: 1px solid var(--line-2); background: none; cursor: pointer; font: inherit; color: var(--ink); }
.pf-row:hover, .pf-row.on { background: var(--chip); } .pf-row img { width: 40px; height: 52px; object-fit: contain; background: #fff; border-radius: 4px; }
.pf-row-body { display: grid; gap: 1px; min-width: 0; } .pf-row-body b { font-size: 13px; line-height: 1.25; } .pf-row-body .meta { font-size: 11.5px; }
.pf-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 100px; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.pf-k { color: var(--muted); } .pf-k b { color: var(--bad); } .pf-grid input { width: 100%; } .pf-grid input.human { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pf-src { font-family: var(--mono); font-size: 11px; color: var(--muted-2); } .pf-src.human { color: var(--accent-ink); }
.pf-imgs { display: flex; gap: 8px; flex-wrap: wrap; } .pf-imgs img { width: 64px; height: 86px; object-fit: contain; background: #fff; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; } .pf-imgs img.on { border-color: var(--accent); } .pf-imgs img.flat { outline: 1px dashed var(--ok-dot); outline-offset: 1px; }
.pf-editions { margin-top: 14px; }
@media (max-width: 1000px) { .pf { grid-template-columns: 1fr; } .pf-list { max-height: 40vh; } .pf-grid { grid-template-columns: 1fr; gap: 2px 0; } .pf-grid input { margin-bottom: 8px; } }

/* ---- Approvals (#ads/approvals): one card per thing, three big buttons */
.ap-list { display: grid; gap: 12px; }
.ap-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 16px; } .ap-card.first { border-color: var(--accent); box-shadow: 0 0 0 2px oklch(0.92 0.04 262); } .ap-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-preview { display: block; border-radius: 12px; overflow: hidden; background: #0d1321; aspect-ratio: 1; } .ap-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ap-preview.empty { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 28px; background: var(--dark); }
.ap-body { display: grid; gap: 8px; align-content: start; min-width: 0; } .ap-title { margin: 0; font-size: 16px; } .ap-summary { margin: 0; color: var(--sub); font-size: 13.5px; }
.ap-list { min-width: 0; } .ap-body .pill { white-space: normal; text-align: left; line-height: 1.3; }
.ap-choices { display: flex; gap: 8px; flex-wrap: wrap; } .ap-choice { display: grid; gap: 4px; justify-items: center; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ap-choice img { width: 72px; height: 96px; object-fit: contain; background: #fff; border-radius: 6px; } .ap-choice.on { border-color: var(--accent); box-shadow: 0 0 0 2px oklch(0.88 0.06 262); }
.ap-body input[type=text] { width: 100%; }
.ap-buttons { display: flex; gap: 8px; flex-wrap: wrap; } .ap-buttons .btn { min-width: 120px; }
@media (max-width: 760px) { .ap-card { grid-template-columns: 1fr; } .ap-preview { max-width: 260px; } .ap-buttons .btn { flex: 1 1 45%; padding: 14px; font-size: 15px; } }

/* ---- Compose (#ads/compose): the conversation and the stage */
.cx { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 22px; align-items: start; }
.cx-chat { display: grid; grid-template-rows: auto minmax(300px, calc(100vh - 330px)) auto auto; gap: 10px; padding: 0; overflow: hidden; }
.cx-chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.cx-spark { color: var(--accent-ink); } .cx-live { font-size: 11px; }
.cx-thread { overflow: auto; display: grid; gap: 12px; align-content: start; padding: 6px 18px; }
.cx-hello { padding: 26px 4px 10px; display: grid; gap: 12px; } .cx-hello-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--info-bg); color: var(--accent-ink); font-size: 18px; }
.cx-hello h2 { margin: 6px 0 0; font-size: 28px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; } .cx-hello p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.5; }
.cx-starter { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid oklch(0.85 0.06 262); border-radius: 12px; background: var(--info-bg); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.cx-starter:hover { border-color: var(--accent); } .cx-starter-ico { color: var(--accent-ink); } .cx-starter-go { margin-left: auto; color: var(--accent-ink); font-weight: 800; }
.cx-msg { display: grid; gap: 4px; } .cx-msg.user { justify-items: end; }
.cx-bubble { max-width: 94%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; background: var(--chip); color: var(--ink); }
.cx-msg.user .cx-bubble { background: var(--dark); color: #fff; border-bottom-right-radius: 5px; } .cx-msg.assistant .cx-bubble { border-bottom-left-radius: 5px; }
.cx-bubble.thinking { color: var(--muted); } .cx-tools { font-family: var(--mono); font-size: 11px; color: var(--muted-2); padding-left: 4px; }
.cx-status { min-height: 16px; padding: 0 18px; font-size: 12.5px; color: var(--accent-ink); }
.cx-composer { display: grid; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line-2); }
.cx-composer textarea { width: 100%; resize: none; font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line-3); border-radius: 12px; background: var(--panel); color: var(--ink); min-height: 44px; max-height: 140px; }
.cx-composer textarea:focus { outline: none; border-color: oklch(0.75 0.1 262); }
.cx-composer-row { display: flex; align-items: center; gap: 8px; }
.cx-send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; } .cx-send:hover { background: var(--accent-hover); } .cx-send:disabled { opacity: .5; cursor: default; }
.cx-right { display: grid; gap: 8px; min-width: 0; }
.cx-stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cx-stage-title h2 { margin: 2px 0 8px; font-size: 24px; letter-spacing: -.03em; font-weight: 800; }
.cx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cx-chip.link { color: var(--accent-ink); } .cx-chip.link:hover { text-decoration: none; border-color: var(--accent); }
.cx-chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; } .cx-chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.cx-actions { display: flex; gap: 8px; flex: none; }
.cx-stage { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel) radial-gradient(circle, var(--line-3) 1px, transparent 1.2px) 0 0 / 18px 18px; min-height: 420px; display: grid; place-items: center; padding: 28px; }
.cx-empty { color: var(--muted); font-size: 14px; }
.cx-shot { margin: 0; display: grid; gap: 8px; justify-items: center; }
.cx-shot img { display: block; max-height: 640px; max-width: 100%; border-radius: 6px; box-shadow: 0 24px 50px -24px rgba(13,19,33,.45), 0 1px 0 rgba(13,19,33,.06); background: #000; }
.cx-shot.a9-16 img { max-height: 720px; } .cx-shot figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.cx-all { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; justify-content: center; } .cx-all .cx-shot img { max-height: 380px; }
.cx-layouts { display: grid; gap: 8px; margin-top: 6px; } .cx-layouts-head { display: flex; gap: 10px; align-items: baseline; }
.cx-layouts-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.cx-layout { flex: none; width: 112px; display: grid; gap: 6px; justify-items: center; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; font: inherit; font-size: 11.5px; color: var(--sub); }
.cx-layout img, .cx-layout-blank { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--chip); display: grid; place-items: center; font-size: 28px; color: var(--muted-2); }
.cx-layout:hover { background: var(--chip); } .cx-layout.on { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.cx-details { padding: 18px; } .cx-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; } .cx-details-grid > div { display: grid; gap: 8px; align-content: start; }
.cx-field { display: grid; gap: 4px; } .cx-field > span { font-size: 12px; color: var(--muted); } .cx-details select, .cx-details input[type=text] { width: 100%; max-width: 100%; }
.cx-imgs, .cx-bgs { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-imgs img { width: 56px; height: 74px; object-fit: contain; background: #fff; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; } .cx-imgs img.on { border-color: var(--accent); } .cx-imgs img.flat { outline: 1px dashed var(--ok-dot); outline-offset: 1px; }
.cx-swatch, .cx-bgs img { width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; padding: 0; object-fit: cover; } .cx-swatch.on, .cx-bgs img.on { border-color: var(--accent); box-shadow: 0 0 0 2px oklch(0.88 0.06 262); }
@media (max-width: 1100px) { .cx { grid-template-columns: 1fr; } .cx-chat { grid-template-rows: auto minmax(220px, 40vh) auto auto; } .cx-shot img { max-height: 520px; } }

/* ---- Make an ad (11/9): folder cards, the step rail, Build ---- */
.flowrail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--seg); border-radius: 999px; width: fit-content; max-width: 100%; }
.flowrail .fr-type { font-weight: 800; font-size: 13px; color: var(--ink); padding: 0 8px 0 12px; }
.fr-step { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fr-step i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-3); font-size: 11px; }
.fr-step.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(13,19,33,.08), 0 4px 14px rgba(13,19,33,.06); }
.fr-step.on i { background: var(--accent); border-color: transparent; color: #fff; }
.fr-step.done { color: var(--ink-2); } .fr-step.done i { background: oklch(0.62 0.15 155); border-color: transparent; color: #fff; }
a.fr-step.done:hover { background: rgba(255,255,255,.6); text-decoration: none; }

.folders { display: grid; grid-template-columns: repeat(4, minmax(0, 250px)); gap: 20px; justify-content: center; }
@media (max-width: 1140px) { .folders { grid-template-columns: repeat(2, minmax(0, 260px)); } }
@media (max-width: 600px) { .folders { grid-template-columns: 1fr; } }
.folder { --tab: linear-gradient(135deg, #8f7cff, #5a3fe0 55%, #2a1a8a); --body: linear-gradient(180deg, #2a1f86, #1a1250); --fg: #fff; --sub: #c9c3f5;
  position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4.1; border-radius: 18px; overflow: hidden; color: var(--fg); text-decoration: none;
  box-shadow: 0 1px 2px rgba(13,19,33,.12), 0 18px 40px -18px rgba(13,19,33,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.folder:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(13,19,33,.12), 0 28px 50px -18px rgba(13,19,33,.55); text-decoration: none; color: var(--fg); }
.folder:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.folder.paper { --tab: linear-gradient(135deg, #ffb39a, #f0705a 60%, #c9384a); --body: linear-gradient(180deg, #f6f7fa, #e9ecf2); --fg: #0d1321; --sub: #5b6475; }
.folder.aurora { --tab: linear-gradient(135deg, #7ef0d0, #3fb6e0 45%, #7a5cff); --body: linear-gradient(180deg, #0f2a3a, #0a1a26); --fg: #fff; --sub: #a8d4e2; }
.folder.ink { --tab: linear-gradient(135deg, #e6eef7, #9fb3c8 60%, #5d7389); --body: linear-gradient(180deg, #1b2230, #0f141d); --fg: #fff; --sub: #a9b3c2; }
.fd-tab { position: relative; height: 34%; background: var(--tab); transition: height .45s cubic-bezier(.2,.8,.2,1); }
.folder:hover .fd-tab { height: 52%; }
.fd-body { position: relative; flex: 1; background: var(--body); padding: 18px 18px 20px; display: flex; flex-direction: column; margin-top: -1px; }
.fd-body::before { content: ""; position: absolute; left: 0; top: -22px; width: 58%; height: 23px; background: var(--body); border-top-right-radius: 14px; clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); }
.fd-n { font-size: 42px; letter-spacing: -1px; line-height: 1; }
.fd-arrow { font-size: 15px; opacity: .8; }
.fd-title { margin-top: auto; font-weight: 800; font-size: 17px; }
.fd-line { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--sub); }
/* the object that rises out of the folder on hover: three glossy cards for a brand ad, one for a product, a fan for a collection */
.fd-obj { position: absolute; left: 50%; bottom: -30px; width: 120px; height: 120px; transform: translate(-50%, 40px) scale(.85); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.folder:hover .fd-obj { transform: translate(-50%, -18px) scale(1); opacity: 1; }
.fd-obj i { position: absolute; left: 30px; top: 10px; width: 60px; height: 84px; border-radius: 8px; background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.35) 45%, rgba(255,255,255,.15)); box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.6); backdrop-filter: blur(2px); }
.fd-obj.brand i:nth-child(1) { transform: rotate(-16deg) translateX(-26px); } .fd-obj.brand i:nth-child(3) { transform: rotate(16deg) translateX(26px); }
.fd-obj.product i:nth-child(1), .fd-obj.product i:nth-child(3) { display: none; } .fd-obj.product i:nth-child(2) { width: 76px; height: 96px; left: 22px; top: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #0d1321 0 9%, #f6dc93 10% 13%, #1b1714 14% 100%); }
.fd-obj.generate i:nth-child(1), .fd-obj.generate i:nth-child(3) { display: none; } .fd-obj.generate i:nth-child(2) { left: 26px; width: 68px; height: 68px; top: 18px; border-radius: 18px; transform: rotate(45deg); background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(160,240,255,.5) 50%, rgba(122,92,255,.35)); }
.fd-obj.collection i:nth-child(1) { transform: translate(-30px, 10px) rotate(-8deg); } .fd-obj.collection i:nth-child(2) { transform: translate(0, -4px); } .fd-obj.collection i:nth-child(3) { transform: translate(30px, 10px) rotate(8deg); }
@media (prefers-reduced-motion: reduce) { .folder, .fd-tab, .fd-obj { transition: none; } }

.bd { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .bd { grid-template-columns: 1fr; } }
.bd-needs { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.bd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 360px; overflow: auto; }
.bd-tile { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; cursor: pointer; font-size: 11px; line-height: 1.25; color: var(--ink-2); }
.bd-tile:hover { border-color: var(--accent); }
.bd-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--chip); border-radius: 6px; }
.bd-picked { display: flex; flex-direction: column; gap: 6px; }
.bd-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.bd-chip img { width: 34px; height: 34px; object-fit: contain; background: var(--chip); border-radius: 6px; }
.bd-chip span { flex: 1; min-width: 0; }
.bd-empty { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.bd-empty p { max-width: 460px; }
.bd-hit { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 0; background: none; text-align: left; border-radius: 8px; cursor: pointer; font-size: 12px; }
.bd-hit:hover { background: var(--chip); } .bd-hit img { width: 36px; height: 36px; object-fit: contain; }
.bd-foot { gap: 12px; }
.bd.editing { grid-template-columns: minmax(0, 1fr); } .bd.editing > .bd-left { display: none; }
.folders.two { grid-template-columns: repeat(2, minmax(0, 280px)); }
@media (max-width: 600px) { .folders.two { grid-template-columns: 1fr; } }

/* Moving-ad templates (Make an ad, after the products are picked): cards that play on hover */
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mt-card { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mt-card:hover, .mt-card:focus-visible { border-color: var(--accent); box-shadow: 0 6px 22px rgb(0 0 0 / .08); transform: translateY(-2px); outline: none; }
.mt-card:disabled { cursor: progress; opacity: .7; transform: none; }
.mt-card .meta2 { white-space: normal; line-height: 1.35; }
.mt-pic { position: relative; width: 100%; border-radius: 9px; overflow: hidden; background: #0d1830; }
.mt-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(13 24 48 / .72); color: #fff; font-weight: 700; }
.mt-scratch { display: grid; place-items: center; background: var(--chip); border: 2px dashed var(--line-3, var(--line)); color: var(--muted, #777); font-size: 15px; font-weight: 700; }
.mt-scratch span { font-size: 40px; font-weight: 300; line-height: 1; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.mt-tags:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .mt-card { transition: none; } .mt-card:hover { transform: none; } }

/* ---- 11/15 reliability pass (U1–U4, U10, accessibility) */
/* a keyboard focus ring everywhere; mouse clicks on buttons do not show it (focus-visible), fields keep their soft ring */
:where(button, a, summary, [role=button], [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.75 0.1 262 / .35); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
/* the Marketing menu (and any wide one) never runs past the window: it shrinks to fit (hints wrap instead of being cut on
   narrower screens), and scrolls inside itself only if the window is too short */
.navdrop.mega { max-width: calc(100vw - 24px); max-height: calc(100vh - 80px); overflow-y: auto; }
@media (min-width: 901px) and (max-width: 1180px) {
  .navdrop.mega { padding: 14px 10px; gap: 0 6px; } .navdrop.mega a { padding: 7px 8px; } .navdrop.mega a .hint { white-space: normal; } .navdrop.mega .col > .eyebrow, .navdrop.mega .h { padding-left: 8px; padding-right: 8px; }
}
/* the in-page question box (act.js ask) */
dialog.ask { border: 0; padding: 0; border-radius: 18px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 60px -20px rgba(13,19,33,.45); background: var(--panel); color: var(--ink); }
dialog.ask::backdrop { background: rgba(13,19,33,.38); }
dialog.ask form { display: grid; gap: 12px; padding: 22px; } dialog.ask h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; } dialog.ask p, dialog.ask .askbody { margin: 0; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
dialog.ask .askfield { display: grid; gap: 4px; font-size: 13px; font-weight: 700; } dialog.ask .askfield input, dialog.ask .askfield textarea { width: 100%; max-width: none; }
dialog.ask .askbtns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; } dialog.ask .askbtns .btn { min-height: 40px; }
/* a button at work (act.js action) and a page waiting on its last click: no second click lands */
.btn[aria-busy=true] { cursor: progress; opacity: .7; }
.is-working { cursor: progress; } .is-working :is(button, input[type=checkbox], select, .btn) { pointer-events: none; }
/* a note by a Save button when what is on screen is not saved yet */
.unsaved { font-size: 12.5px; font-weight: 700; color: var(--warn); display: inline-flex; align-items: center; gap: 8px; } .unsaved[hidden] { display: none; }
/* the day cell "+" on the Social calendar: a real target, not a 15px glyph */
.dayadd { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; min-width: 28px; min-height: 28px; border-radius: 7px; display: inline-grid; place-items: center; } .dayadd:hover { background: var(--chip); color: var(--ink); }
/* fixed grids on the desks and campaign reporting fold to one column on a phone (.fold); .fold-wide lets a fixed-width field fill the row */
@media (max-width: 760px) {
  .fold { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; } .fold > .pill { justify-self: start; }
  .fold-hide { display: none !important; }
  .fold-wide { min-width: 0 !important; width: 100% !important; flex: 1 1 100% !important; }
}
/* phones and touch screens: every button, switch and tick box is at least 40px to hit */
@media (max-width: 760px), (pointer: coarse) {
  .btn, .btn.small, .seg a, .seg button, select { min-height: 40px; } .btn.small { padding: 8px 13px; }
  input[type=checkbox] { width: 22px !important; height: 22px !important; } .dayadd { min-width: 40px; min-height: 40px; }
  .picker .chipsel button { min-width: 32px; min-height: 32px; }
}

/* kit */
/* the shared screen pieces (public/kit.js, docs/UI-KIT.md). Everything here starts with .kit- so it cannot change another screen. */
.kit-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kit-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted-dot); } .kit-dot.ok { background: var(--ok-dot); } .kit-dot.warn { background: var(--warn-dot); } .kit-dot.bad { background: var(--bad-dot); }
.kit-link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-ink); font-weight: 700; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.kit-empty { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
/* loading: grey lines, then the content; a reload keeps the content and shows a small "Updating…" */
.kit-load { position: relative; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.kit-skel { display: grid; gap: 12px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.kit-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line-2) 0%, var(--line) 50%, var(--line-2) 100%); background-size: 200% 100%; animation: kit-shine 1.4s ease-in-out infinite; }
.kit-skel i:first-of-type { height: 20px; width: 40% !important; }
@keyframes kit-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.kit-updating { position: sticky; top: 66px; z-index: 5; justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 12.5px; font-weight: 700; color: var(--sub); margin-bottom: -40px; }
.kit-updating[hidden] { display: none; }
.kit-updating i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--accent); animation: kit-spin .8s linear infinite; }
@keyframes kit-spin { to { transform: rotate(360deg); } }
.kit-error { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--bad-bg); color: var(--bad); border: 1px solid oklch(0.9 0.05 27); font-size: 14px; }
.kit-error .t { flex: 1 1 220px; } .kit-error.quiet { padding: 8px 12px; font-size: 13px; }
/* a section that folds away */
.kit-fold { padding: 0; } .kit-fold > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 22px; cursor: pointer; list-style: none; border-radius: var(--r); }
.kit-fold > summary::-webkit-details-marker { display: none; }
.kit-fold > summary::before { content: '›'; display: inline-grid; place-items: center; width: 18px; font-size: 18px; color: var(--muted); transition: transform .15s; }
.kit-fold[open] > summary::before { transform: rotate(90deg); }
.kit-fold > summary:hover { background: #fbfcfd; } .kit-fold-t { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.kit-fold-b { padding: 0 22px 20px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.kit-fold-b > .card { border: 0; padding: 0; border-radius: 0; } .kit-fold-b > .card + .card { border-top: 1px solid var(--line-2); padding-top: 16px; }
.kit-fold.bare .kit-fold-b > .card > .eyebrow:first-child { display: none; } .kit-fold.bare .kit-fold-b > .card > .eyebrow:first-child + * { margin-top: 0 !important; }
/* do these now */
.kit-do { display: grid; gap: 4px; } .kit-do-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .kit-do-head h2 { margin: 0; font-weight: 700; color: var(--ink-2); } .kit-do-head .meta { margin-left: auto; }
.kit-do-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.kit-do-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line-2); }
.kit-do-item:first-child { border-top: 0; }
.kit-do-n { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted); padding-top: 2px; text-align: right; }
.kit-do-item.bad .kit-do-n { color: var(--bad); } .kit-do-item.warn .kit-do-n { color: var(--warn); }
.kit-do-body { min-width: 0; display: grid; gap: 2px; } .kit-do-body p { margin: 0; }
.kit-do-title { font-weight: 800; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; } .kit-do-title a { color: inherit; } .kit-do-title .pill { margin-left: 8px; vertical-align: 1px; }
.kit-do-why { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; } .kit-do-value, .kit-do-who { font-size: 13px; color: var(--muted); }
.kit-do-how { margin: 4px 0 2px; padding: 8px 12px; border-radius: 10px; background: var(--chip); font-size: 13px; color: var(--ink-2); }
.kit-do-acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.kit-do-later { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0 2px; } .kit-do-later[hidden] { display: none; }
.kit-do-item.off { opacity: .75; } .kit-do-off { margin: 0; }
.kit-do-foot { display: flex; gap: 14px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line-2); } .kit-do-all { margin-left: auto; font-size: 13px; font-weight: 800; }
@media (max-width: 760px) {
  .kit-do-item { grid-template-columns: 22px minmax(0, 1fr); } .kit-do-acts { grid-column: 2; justify-content: flex-start; }
}
/* the save bar */
.kit-savebar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid oklch(0.9 0.08 85); box-shadow: var(--shadow-pop); }
.kit-savebar[hidden] { display: none; } .kit-save-n { font-size: 13.5px; font-weight: 800; color: var(--warn); }
.kit-rec { display: grid; gap: 12px; } .kit-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.kit-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; min-width: 0; align-content: start; } .kit-field.wide { grid-column: 1 / -1; }
.kit-field input, .kit-field select, .kit-field textarea { width: 100%; max-width: none; } .kit-field .meta { font-weight: 400; }
/* the fix tracker */
.kit-check { display: grid; gap: 8px; } .kit-check-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.kit-check-steps li { position: relative; display: grid; gap: 2px; justify-items: start; padding: 0 8px 0 0; font-size: 12.5px; color: var(--muted); }
.kit-check-steps li::before { content: ''; position: absolute; left: 14px; right: 0; top: 6px; height: 2px; background: var(--line); } .kit-check-steps li:last-child::before { display: none; }
.kit-check-steps li.done::before { background: var(--ok-dot); }
.kit-check-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-3); background: var(--panel); }
.kit-check-steps li.done .kit-check-dot { background: var(--ok-dot); border-color: var(--ok-dot); } .kit-check-steps li.now .kit-check-dot { border-color: var(--accent); box-shadow: 0 0 0 4px oklch(0.75 0.1 262 / .3); background: var(--accent); }
.kit-check-l { font-weight: 700; color: var(--ink-2); } .kit-check-steps li.now .kit-check-l { color: var(--ink); font-weight: 800; } .kit-check-steps li.next .kit-check-l { color: var(--muted); font-weight: 600; }
.kit-check-at { font-variant-numeric: tabular-nums; } .kit-check-next { margin: 0; }
.kit-check-problem { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 13px; font-weight: 700; }
.kit-check.has-problem li.now .kit-check-dot { background: var(--bad-dot); border-color: var(--bad-dot); box-shadow: none; }
@media (max-width: 600px) {
  .kit-check-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; } .kit-check-steps li { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0; }
  .kit-check-steps li::before { left: 6px; right: auto; top: 16px; width: 2px; height: calc(100% - 6px); }
}
/* freshness, copy, length, Google preview, glossary */
.kit-fresh { margin: 0; font-size: 12.5px; color: var(--muted); }
.kit-copy { display: grid; gap: 4px; min-width: 0; } .kit-copy-l { font-size: 13px; font-weight: 700; }
.kit-copy-row { display: flex; gap: 8px; align-items: flex-start; } .kit-copy-v { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--chip); font-size: 13.5px; overflow-wrap: anywhere; user-select: all; }
.kit-len { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 10px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kit-len-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .kit-len-bar i { display: block; height: 100%; background: var(--ok-dot); }
.kit-len[data-level=short] .kit-len-bar i, .kit-len[data-level=long] .kit-len-bar i { background: var(--warn-dot); } .kit-len[data-level=too_long] .kit-len-bar i { background: var(--bad-dot); }
.kit-len[data-level=long] .kit-len-w { color: var(--warn); } .kit-len[data-level=too_long] .kit-len-w, .kit-len[data-level=empty] .kit-len-w { color: var(--bad); }
.kit-len-cut { grid-column: 2; font-weight: 500; overflow-wrap: anywhere; } .kit-len-cut mark { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.kit-gp { max-width: 600px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-family: Arial, system-ui, sans-serif; display: grid; gap: 3px; }
.kit-gp-site { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #4d5156; min-width: 0; } .kit-gp-site b { color: #202124; font-weight: 400; } .kit-gp-site > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-gp-icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; font-size: 12px; font-weight: 700; color: #4d5156; }
.kit-gp-title { font-size: 19px; line-height: 1.3; color: #1a0dab; overflow-wrap: anywhere; } .kit-gp-desc { font-size: 14px; line-height: 1.55; color: #4d5156; overflow-wrap: anywhere; }
.kit-gp .none { font-style: italic; color: #70757a; }
.kit-term-wrap { position: relative; display: inline; } .kit-term { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.kit-term-tip { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow-pop); white-space: normal; }
.kit-term-tip[hidden] { display: none; } .kit-term-tip b { font-weight: 800; }
/* a connection row */
.kit-conn { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 1.6fr) minmax(130px, auto) auto; gap: 4px 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line-2); }
.kit-conn-a { display: flex; gap: 10px; align-items: flex-start; } .kit-shape { font-size: 13px; line-height: 1.6; flex: none; color: var(--muted-dot); } .kit-shape.ok { color: var(--ok-dot); } .kit-shape.warn { color: var(--warn-dot); } .kit-shape.bad { color: var(--bad-dot); }
.kit-conn-state { font-size: 12.5px; font-weight: 700; color: var(--muted); } .kit-conn.ok .kit-conn-state { color: var(--ok); } .kit-conn.warn .kit-conn-state { color: var(--warn); } .kit-conn.bad .kit-conn-state { color: var(--bad); }
.kit-conn-b { font-size: 13.5px; min-width: 0; } .kit-conn-c { text-align: right; } .kit-conn-d { justify-self: end; }
.kit-conn-s { grid-column: 2 / -1; margin: 0; font-size: 13.5px; } .kit-conn.bad .kit-conn-s { color: var(--bad); font-weight: 700; }
.kit-conn-more { grid-column: 2 / -1; font-size: 13px; } .kit-conn-more summary { cursor: pointer; color: var(--accent-ink); font-weight: 700; }
@media (max-width: 760px) { .kit-conn { grid-template-columns: minmax(0, 1fr); } .kit-conn-c { text-align: left; } .kit-conn-d { justify-self: start; } .kit-conn-s, .kit-conn-more { grid-column: 1; } }
/* the batch sheet: a table on a wide screen, one card a row on a phone */
.kit-sheet { display: grid; gap: 10px; } .kit-sheet-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.kit-sheet table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .kit-sheet th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 10px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.kit-sheet td { padding: 8px 10px; border-top: 1px solid var(--line-2); vertical-align: top; overflow-wrap: anywhere; } .kit-sheet td input, .kit-sheet td textarea { width: 100%; max-width: none; min-width: 180px; }
.kit-sheet-tick { width: 36px; } .kit-sheet-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--panel); padding: 8px 0; }
@media (max-width: 600px) {
  .kit-sheet-wrap { border: 0; } .kit-sheet thead tr { display: flex; align-items: center; gap: 8px; } .kit-sheet thead th:not(.kit-sheet-tick) { display: none; } .kit-sheet thead th.kit-sheet-tick::after { content: 'Tick every row'; font-weight: 700; margin-left: 8px; }
  .kit-sheet tbody, .kit-sheet tr, .kit-sheet td { display: block; } .kit-sheet tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; } .kit-sheet td { border: 0; padding: 4px 0; } .kit-sheet td input, .kit-sheet td textarea { min-width: 0; }
  .kit-sheet td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .kit-skel i, .kit-updating i { animation: none; } .kit-fold > summary::before { transition: none; } }

/* ---- Meta desk (public/desk.js, 11/17): one list of campaigns, and a campaign opened in a side panel */
.desk-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 6px; }
.desk-filters input[type=search] { flex: 1 1 180px; max-width: 260px; padding: 8px 12px; } .desk-filters select { padding: 8px 12px; }
.desk-rowhead, .desk-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 200px 130px 140px minmax(0, 1.3fr); gap: 14px; align-items: center; }
.desk-rowhead { padding: 10px 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.desk-row { border-top: 1px solid var(--line-2); padding: 12px 0; cursor: pointer; } .desk-row:hover { background: #fafbfc; } .desk-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.desk-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .desk-c-name, .desk-c-next { min-width: 0; } .desk-c-next b { font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.desk-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; border: 1px dashed var(--muted-dot); color: var(--muted); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.desk-v-ok { color: var(--ok); font-weight: 700; } .desk-v-warn { color: var(--warn); font-weight: 700; } .desk-v-bad { color: var(--bad); font-weight: 700; } .desk-v-muted { color: var(--muted); }
.desk-coming { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.desk-rel { flex: 0 0 250px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 6px; }
.desk-scrim { position: fixed; inset: 0; background: rgba(13,19,33,.38); z-index: 30; }
.desk-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--panel); z-index: 31; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.desk-ph { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; } .desk-ph h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.desk-pb { padding: 18px 22px 28px; overflow-y: auto; flex: 1; display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.desk-track { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.desk-track span { padding: 2px 9px; border-radius: 999px; background: var(--chip); font-weight: 600; } .desk-track span.on { background: var(--ok-bg); color: var(--ok); font-weight: 800; } .desk-track span.now { background: var(--warn-bg); color: var(--warn); font-weight: 800; }
.desk-sec h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; }
.desk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; } .desk-fields input, .desk-fields select { width: 100%; }
.desk-piece, .desk-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14px; } .desk-kv b { font-variant-numeric: tabular-nums; }
.desk-set { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); } .desk-set input[type=text] { padding: 7px 10px; }
.desk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; } .desk-thumbs img, .desk-thumbs span { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--chip); border: 1px solid var(--line); } .desk-thumbs .meta { font-size: 11.5px; margin-top: 3px; }
.desk-wrow { display: grid; grid-template-columns: 22px minmax(0, 1.3fr) minmax(0, 1.2fr) 150px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-2); } .desk-wrow input[type=text], .desk-wrow input[type=date] { padding: 8px 10px; }
.desk-whead { border-top: 0; padding: 0 0 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .desk-rowhead { display: none; } .desk-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .desk-c-name, .desk-c-next { grid-column: 1 / -1; } .desk-c-verdict { text-align: right; }
  .desk-fields { grid-template-columns: 1fr; } .desk-wrow { grid-template-columns: 22px minmax(0, 1fr); } .desk-wrow input[type=text], .desk-wrow input[type=date] { grid-column: 2; } .desk-whead { display: none; }
}

/* Catalogs (public/catalogs.js): a list of product sets to search on the left, the open one with its products on the right */
.cat-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; } .cat-top .meta { line-height: 1.5; } .cat-bad { color: var(--bad); font-weight: 700; }
.cat-cols { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cat-left, .cat-pane { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.cat-left { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 24px); overflow: hidden; }
.cat-tools { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2); } .cat-tools input { width: 100%; }
.btn.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-list { overflow-y: auto; min-height: 200px; }
.cat-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cat-row:first-child { border-top: 0; } .cat-row:hover { background: var(--chip); } .cat-row.on { background: var(--accent-soft, #eef3ff); box-shadow: inset 3px 0 0 var(--accent); }
.cat-row-t { display: grid; min-width: 0; } .cat-row-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cat-row-t .meta { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row-n { display: grid; justify-items: end; gap: 3px; } .cat-row-n > b { font-variant-numeric: tabular-nums; font-size: 14px; } .cat-row-n .pill { font-size: 11px; padding: 2px 8px; }
.cat-th { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--chip); flex: none; } .cat-th img, .cat-th i { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--chip); min-height: 0; }
.cat-th.big { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; gap: 3px; }
.cat-pane { padding: 20px 22px 24px; display: grid; gap: 18px; min-height: 420px; align-content: start; }
.cat-head { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; } .cat-head h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cat-facts { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; } .cat-facts > div { display: grid; gap: 3px; padding: 11px 14px; border-top: 1px solid var(--line-2); font-size: 14px; } .cat-facts > div:first-child { border-top: 0; } .cat-facts .meta { font-size: 12px; }
.cat-words { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; align-items: center; } .cat-words span { background: var(--chip); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; }
.cat-products h4 { margin: 0 0 10px; font-size: 14.5px; } .cat-products.busy { opacity: .55; transition: opacity .15s; } .cat-products > p { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px 12px; }
.cat-p { display: grid; gap: 4px; align-content: start; min-width: 0; color: inherit; text-decoration: none; font-size: 12.5px; } a.cat-p:hover { text-decoration: none; } a.cat-p:hover b { color: var(--accent-ink); }
.cat-p img, .cat-p i { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; } .cat-p i { background: var(--chip); }
.cat-p b { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cat-p.out img { opacity: .45; }
.cat-send { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.cat-lab { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.cat-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .cat-kinds button { display: grid; gap: 3px; align-content: start; text-align: left; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.cat-kinds button b { font-size: 14px; } .cat-kinds button span { font-size: 12.5px; color: var(--muted); line-height: 1.35; } .cat-kinds button:hover { border-color: var(--ink-2); } .cat-kinds button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.cat-f { display: grid; gap: 5px; font-size: 13px; font-weight: 700; } .cat-f input, .cat-f select { width: 100%; max-width: 560px; } .cat-f .meta { font-weight: 400; }
.cat-check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 700; } .cat-check input { width: 17px; height: 17px; }
.cat-hits { display: grid; gap: 6px; max-width: 560px; } .cat-hit { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; color: inherit; }
.cat-hit img, .cat-hit i { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: var(--chip); display: block; } .cat-hit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cat-hit b { color: var(--accent-ink); font-size: 12.5px; } .cat-hit:hover { border-color: var(--accent); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; } .cat-tiles button { display: grid; gap: 5px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; min-width: 0; } .cat-tiles b { font-size: 14px; } .cat-tiles button:hover b { color: var(--accent-ink); }
.cat-row:focus-visible, .cat-kinds button:focus-visible, .cat-tiles button:focus-visible, .cat-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 900px) { .cat-cols { grid-template-columns: 1fr; } .cat-left { position: static; max-height: 60vh; } .cat-kinds { grid-template-columns: 1fr 1fr; } }

/* Shipping · To be split: the by-title lists */
.ship-titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.ship-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 9px 8px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 6px; }
.ship-title:hover { background: var(--chip); } .ship-title:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Make an ad (public/makead.js): four questions, one card, a rail across the top */
.mka-rail { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: var(--seg); border-radius: 14px; padding: 6px; width: fit-content; max-width: 100%; }
.mka-rail-name { padding: 0 10px 0 8px; font-size: 13.5px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mka-step { display: flex; gap: 8px; align-items: center; padding: 7px 14px 7px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--sub); text-decoration: none; }
.mka-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; background: #fff; color: var(--sub); border: 1px solid var(--line); }
.mka-step.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(13,19,33,.12); } .mka-step.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.mka-step.done { color: var(--ink-2); } .mka-step.done i { background: var(--ok-bg, #e6f6ec); border-color: transparent; color: var(--ok); } a.mka-step:hover { text-decoration: none; color: var(--ink); }
.mka-card { padding: 28px 30px 26px; } .mka-main { display: grid; gap: 22px; min-width: 0; } .mka-h { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.mka-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; } .mka-tiles.kinds { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mka-tile { display: grid; gap: 4px; align-content: start; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, box-shadow .12s; }
.mka-tile b { font-size: 15.5px; font-weight: 800; } .mka-tile > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.4; } .mka-tile:hover { border-color: var(--ink-2); }
.mka-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mka-mini { display: grid; gap: 4px; height: 84px; border-radius: 10px; background: var(--chip); padding: 8px; margin-bottom: 8px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 20px; } .mka-mini i { border-radius: 5px; background: #fff; border: 1px solid var(--line); }
.mka-mini i:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, oklch(0.78 0.09 262), oklch(0.88 0.06 200)); border: 0; }
.mka-mini.k-picture, .mka-mini.k-moving { grid-template-rows: 1fr; } .mka-mini.k-picture i:not(:first-child), .mka-mini.k-moving i:not(:first-child) { display: none; } .mka-mini.k-moving i:first-child { background: linear-gradient(110deg, oklch(0.78 0.09 262) 0 45%, oklch(0.86 0.08 300) 45% 55%, oklch(0.88 0.06 200) 55%); }
.mka-mini.k-carousel { grid-template-rows: 1fr; } .mka-mini.k-carousel i:first-child { grid-column: auto; background: #fff; border: 1px solid var(--line); }
.mka-field { display: grid; gap: 6px; font-size: 14px; min-width: 0; } .mka-field > b { font-size: 13.5px; } .mka-field input[type=text], .mka-field input[type=search], .mka-field input[type=url], .mka-field select, .mka-field textarea { width: 100%; max-width: 620px; } .mka-field .meta { font-weight: 400; }
.mka-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.mka-list { border: 1px solid var(--line-2); border-radius: 12px; max-height: 320px; overflow-y: auto; max-width: 720px; }
.mka-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; } .mka-row:first-child { border-top: 0; }
.mka-row b, .mka-row .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mka-row:hover { background: var(--chip); } .mka-row.on { background: var(--info-bg, #eef3ff); box-shadow: inset 3px 0 0 var(--accent); }
.mka-foot { gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 18px; }
.mka-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 18px; align-items: start; } .mka-side { position: sticky; top: 12px; display: grid; gap: 4px; }
.mka-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .mka-sizes figure { margin: 0; display: grid; gap: 4px; } .mka-sizes img { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: var(--chip); display: block; }
.mka-groups { border: 1px solid var(--line-2); border-radius: 12px; max-width: 720px; } .mka-group { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-2); cursor: pointer; } .mka-group:first-child { border-top: 0; } .mka-group input { width: 17px; height: 17px; }
.mka-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; } .mka-check input { width: 18px; height: 18px; margin-top: 2px; }
.mka-result { border-radius: 14px; padding: 16px 20px; display: grid; gap: 8px; } .mka-result p, .mka-result ul { margin: 0; font-size: 14px; } .mka-result ul { padding-left: 18px; } .mka-result b { font-size: 16px; }
.mka-result.ok { background: var(--ok-bg, #e6f6ec); } .mka-result.warn { background: var(--warn-bg, #fff4d6); }
.mka-tile:focus-visible, .mka-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .mka-cols { grid-template-columns: 1fr; } .mka-side { position: static; } .mka-card { padding: 20px 18px; } .mka-step span { display: none; } .mka-step.on span { display: inline; } }

.mka-more { border: 1px dashed var(--line); border-radius: 12px; max-width: 720px; } .mka-more summary { cursor: pointer; padding: 11px 14px; font-weight: 800; font-size: 14px; color: var(--accent-ink); } .mka-more[open] summary { border-bottom: 1px solid var(--line-2); }
.mka-more-b { display: grid; gap: 18px; padding: 16px 14px; }
.mka-hits { display: grid; gap: 6px; max-width: 620px; } .mka-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: 13.5px; text-align: left; color: inherit; }
.mka-hit > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } .mka-hit b { color: var(--accent-ink); font-size: 12.5px; } .mka-hit:hover { border-color: var(--accent); } .mka-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Audiences → Build: the ready-to-use list (11/18) */
.pickrow { display: grid; grid-template-columns: minmax(0, 1.5fr) 96px minmax(0, 1.3fr) minmax(170px, auto); gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); } .pickrow.off { opacity: .6; }
.picksec { margin-top: 18px; } .picksec > .row { padding-bottom: 8px; }
.ownbuilder > summary { cursor: pointer; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 900px) { .pickrow { grid-template-columns: 1fr 1fr; } }
/* Audiences → Build: the builder (11/18) */
.partbox { margin-top: 16px; } .parthead { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--line); } .parthead.in { color: var(--ok, #0a7a43); border-color: var(--ok, #0a7a43); } .parthead.out { color: var(--bad, #b42318); border-color: var(--bad, #b42318); }
.partrow, .srcrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.whybox { margin-top: 14px; padding: 12px 14px; background: var(--chip); border-radius: 12px; font-size: 13px; } .whybox ul { margin: 6px 0 0; padding-left: 18px; } .whybox li { margin: 3px 0; }
.railcard input[type=text] { background: transparent; color: #fff; border: 1px solid #2a3550; }

/* A title's page (public/title.js): needs, bookplates, files, money and the portal link for one title. */
.title-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.title-ln { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); min-width: 0; } .card > .row + .title-ln { border-top: 0; margin-top: 4px; }
.title-lock { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; display: inline-block; }
.stat .meta .title-lock { margin-top: 4px; font-size: 10px; display: inline-block; color: var(--sub); }
.title-ship { padding: 14px 0; border-top: 1px solid var(--line-2); } .card > .row + .title-ship { border-top: 0; }
.title-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.title-steps button { font: inherit; font-size: 11.5px; text-align: left; color: var(--sub); background: none; border: 0; border-top: 4px solid var(--line); padding: 6px 0 0; cursor: pointer; min-width: 0; }
.title-steps button:hover { color: var(--ink); } .title-steps button.done { border-color: var(--ok); color: var(--ink); font-weight: 700; } .title-steps button.next { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.title-steps small { display: block; font-weight: 400; color: var(--muted); }
.title-form { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--chip); }
.title-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.title-file { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 8px; display: grid; gap: 6px; align-content: start; min-width: 0; font-size: 12.5px; }
.title-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.title-thumb { display: grid; place-items: center; height: 104px; border-radius: 8px; background: var(--chip) center / cover no-repeat; color: var(--muted); font-family: var(--mono); font-size: 12px; text-decoration: none; }
.title-sel { flex: 1; min-width: 0; font-size: 12px; padding: 4px 6px; }
.title-share { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--sub); cursor: pointer; }
.title-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; text-align: center; color: var(--sub); font-size: 13px; background: var(--chip); cursor: pointer; } .title-drop.over { border-color: var(--accent); }
.title-made { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.title-tile { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; text-decoration: none; color: var(--ink); min-width: 0; } .title-tile:hover { border-color: var(--accent); text-decoration: none; }
.title-copy { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--chip); font-size: 13.5px; white-space: pre-wrap; }
@media (max-width: 900px) { .title-two { grid-template-columns: minmax(0, 1fr); } .title-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
