:root {
  --bg: #f5f4f1;
  --panel: #ffffff;
  --side: #fbfaf8;
  --ink: #1c1c1e;
  --muted: #66666c;
  --faint: #68686e;
  --line: #e6e3dd;
  --line-2: #d6d2c9;
  --accent: #2f54eb;
  --accent-soft: #eef1ff;
  --ok: #17784c;
  --ok-soft: #e6f4ec;
  --warn: #9a5400;
  --warn-soft: #fdf1e1;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 20 20 / 4%), 0 6px 20px rgb(20 20 20 / 5%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: rgb(0 0 0 / 5%); padding: 1px 5px; border-radius: 5px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.boot { padding: 48px; color: var(--muted); }
.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.i.tiny { width: 13px; height: 13px; vertical-align: -2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  background: var(--side); border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 2px 8px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.brand.portal { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand.portal img { max-width: 170px; max-height: 34px; object-fit: contain; }
.brand.portal span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.run-by { font-size: 11px; color: var(--faint); }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 8px; margin-bottom: 8px; }
.nav-client { margin-bottom: 14px; }
.nav-cname { font-weight: 650; padding: 4px 8px; }
.nav-batch {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 8px 7px 16px; border-radius: 9px; text-decoration: none; color: var(--muted);
}
.nav-batch:hover { background: #f0eee9; color: var(--ink); }
.nav-batch.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-btitle { display: flex; align-items: center; gap: 5px; min-width: 0; }
.nav-none, .nav-err { padding: 4px 16px; font-size: 12px; color: var(--faint); }
.nav-err { color: var(--bad); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.nav-link { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent); font-weight: 650; }
.me { display: flex; flex-direction: column; }
.me span { color: var(--faint); font-size: 12px; }
.pill { display: inline-block; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 99px; background: #edebe6; color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.todo { background: var(--warn-soft); color: var(--warn); }

.main { padding: 28px 32px 96px; min-width: 0; }
.mobile-bar { display: none; }

/* ---------- headers and toolbars ---------- */
.bh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; }
.bh h1 { font-size: 26px; line-height: 1.15; margin: 2px 0 4px; letter-spacing: -0.01em; }
.bh .sub { color: var(--muted); max-width: 760px; }
.crumb { color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.meters { display: flex; gap: 8px; flex-wrap: wrap; }
.meter { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 128px; }
.meter b { display: block; font-size: 20px; line-height: 1.1; }
.meter b small { font-size: 13px; color: var(--faint); font-weight: 600; }
.meter span { font-size: 12px; color: var(--muted); }
.meter .bar { height: 4px; border-radius: 4px; background: #eceae5; margin-top: 6px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ok); }
.brief { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; color: #3a3a40; white-space: pre-wrap; }
.brief b { color: var(--ink); }
.brief .lnk { color: var(--accent); }

.toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 0; margin-bottom: 14px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.tabs { display: inline-flex; flex-wrap: wrap; background: #eae8e3; border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }
.tabs .n { font-weight: 500; color: var(--faint); margin-left: 5px; }
.sel { border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; background: var(--panel); font-weight: 600; font-size: 13px; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel);
  border-radius: 9px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.btn:hover { border-color: #bdb7ab; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: rgb(0 0 0 / 4%); }
.btn.small { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

.share-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.share-banner.off { background: var(--warn-soft); color: #643700; }
.share-banner.on { background: var(--ok-soft); color: #0e4d31; }

/* ---------- groups, grid, cards ---------- */
.group { margin-bottom: 34px; }
.group-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.group-head h2 { font-size: 17px; margin: 0; }
.group-head .sub { color: var(--muted); font-size: 13px; }
.group-head .av { width: 38px; height: 38px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(430px * var(--zoom, 1))), 1fr)); gap: 20px; align-items: start; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-head { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 7px; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pid { font-weight: 700; color: var(--ink); background: #efede8; padding: 2px 7px; border-radius: 6px; }
.chip { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 6px; background: #eef0f3; color: #4a5563; }
.chip.li { background: #e8f1fb; color: #0a5aa8; }
.chip.x { background: #16181c; color: #fff; }
.chip.cta { background: #e7f6ee; color: var(--ok); }
.status { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.status.st-approved, .status.st-ready { background: var(--ok-soft); color: var(--ok); }
.status.st-scheduled { background: var(--accent-soft); color: var(--accent); }
.status.st-posted { background: var(--ok); color: #fff; }
.status.st-changes { background: var(--bad-soft); color: var(--bad); }
.status.st-review { background: var(--warn-soft); color: var(--warn); }
.card-title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.3; }
.card-sum { margin: 0; color: var(--muted); font-size: 13px; }

.stage { background: linear-gradient(#f1efea, #e9e6df); padding: 22px 8px; display: flex; justify-content: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.stage .phone { zoom: var(--zoom, 1); }

/* ---------- review panel ---------- */
.review { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--muted); min-width: 0; }
.lane b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; margin-bottom: 1px; }
.lane .dot { width: 8px; height: 8px; border-radius: 50%; background: #c8c4bb; flex: none; }
.lane.approved { background: var(--ok-soft); border-color: #bfe3cf; }
.lane.approved .dot { background: var(--ok); }
.lane.changes { background: var(--bad-soft); border-color: #f3c7c2; }
.lane.changes .dot { background: var(--bad); }
.lane.outdated { background: var(--warn-soft); border-color: #f2d6ae; }
.lane.outdated .dot { background: var(--warn); }
.updated { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: #eef4ff; border: 1px solid #cddcff; color: #1d3f9e; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.updated > span { display: flex; align-items: center; gap: 6px; }
.diffs { display: flex; flex-direction: column; gap: 6px; }
.diff-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.diff { font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: #fbfbfa; border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 280px; overflow: auto; }
.diff del { background: #fde2df; color: #8a1c12; }
.diff ins { background: #d9f3e3; color: #0e4d31; text-decoration: none; }
.diff-note { font-size: 13px; color: var(--muted); }
.decide { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.decide .hint { color: var(--faint); font-size: 12px; }
.ok-note { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 650; }
.compose textarea { width: 100%; min-height: 60px; resize: vertical; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; background: #fff; }
.compose textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.compose .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comment { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.comment.change { border-left: 3px solid var(--bad); }
.comment.resolved { border-left: 3px solid var(--ok); background: #fafaf8; }
.comment.resolved .c-text { color: var(--muted); }
.c-head { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.c-head b { color: var(--ink); }
.c-text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-text .lnk { color: var(--accent); }
.c-res { margin-top: 6px; font-size: 12px; color: var(--ok); display: flex; gap: 5px; align-items: flex-start; }
.c-actions { margin-top: 4px; }
.tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 5px; background: #efede8; color: var(--muted); }
.tag.change { background: var(--bad-soft); color: var(--bad); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.kv { display: grid; gap: 12px; margin-top: 10px; font-size: 13px; }
.kv h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.kv ul { margin: 0; padding-left: 18px; }
.kv p { margin: 0; }
.kv .internal { background: #f6f4ef; border-radius: 10px; padding: 8px 10px; }
.warn-box { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: #643700; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- overview ---------- */
.nav-top { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-top:hover { background: #f0eee9; }
.nav-top.active { background: var(--accent-soft); color: var(--accent); }
.ov-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-bottom: 24px; }
.ov-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ov-tile b { display: block; font-size: 28px; line-height: 1.1; }
.ov-tile span { font-size: 13px; color: var(--muted); }
.ov-tile.todo b { color: var(--warn); }
.ov-tile.ok b { color: var(--ok); }
.ov-tile.wait b { color: #3f5f8a; }
.ov-client { margin-bottom: 22px; }
.ov-client h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.ov-list { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ov-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 130px minmax(0, 240px); gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ov-row:first-child { border-top: 0; }
.ov-row:hover { background: #faf9f6; }
.ov-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-kind { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.ov-title { min-width: 0; display: flex; flex-direction: column; }
.ov-title b { overflow-wrap: anywhere; }
.ov-title .muted { font-size: 12px; }
.ov-flag { font-size: 12px; font-weight: 650; color: var(--warn); }
.ov-flag.bad { color: var(--bad); }
.ov-progress { display: flex; flex-direction: column; gap: 4px; }
.ov-progress .bar { display: block; height: 6px; border-radius: 4px; background: #eceae5; overflow: hidden; }
.ov-progress .bar i { display: block; height: 100%; background: var(--ok); }
.ov-progress small { font-size: 12px; color: var(--muted); }
.ov-next { justify-self: end; text-align: right; font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 99px; background: #efede8; color: var(--muted); }
.ov-next.todo { background: var(--warn-soft); color: var(--warn); }
.ov-next.bad { background: var(--bad-soft); color: var(--bad); }
.ov-next.ok { background: var(--ok-soft); color: var(--ok); }
.ov-next.done { background: transparent; color: var(--ok); }
.ov-next.wait { background: #eef2f8; color: #3f5f8a; }

/* ---------- scheduled / posted ---------- */
.delivery { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: #23409a; font-size: 13px; font-weight: 600; }
.delivery > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.delivery.ready { background: var(--ok-soft); color: var(--ok); }
.delivery.done { background: var(--ok-soft); color: var(--ok); }
.delivery a { color: inherit; }
.posted-form { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfa; }
.posted-form .field input { min-width: 0; width: 100%; }
.posted-form .row { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- decks ---------- */
.nav-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 10px 16px 3px; }
.deck-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.deck-review { display: flex; flex-direction: column; gap: 12px; }
.deck-review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.deck-review-head h3 { margin: 0; font-size: 16px; }
.deck-review-head .status { margin-left: 0; }
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.slide-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.slide-card.has-open { border-color: #efc79c; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dcd8d0; border-bottom: 1px solid var(--line); }
.thumb-inner { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
.slide-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
details.notes summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
details.notes p { margin: 6px 0 0; font-size: 13px; color: #3a3a40; white-space: pre-wrap; }
.internal-note { background: #f6f4ef; border-radius: 8px; padding: 6px 8px; font-size: 12px; color: var(--muted); }

/* ---------- webinar pages ---------- */
.crumb .pill { margin-left: 6px; }
.event-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.event-top .panel { margin-bottom: 0; min-width: 0; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
.page-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.page-head h3 { margin: 0; font-size: 15px; }
.frame-wrap { position: relative; width: 100%; aspect-ratio: 390 / 740; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f5f4f1; }
.frame-wrap iframe { position: absolute; left: 0; top: 0; width: 390px; height: 740px; border: 0; transform-origin: 0 0; }
.page-review { display: flex; flex-direction: column; gap: 10px; }
.signup-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table.signups td.q { max-width: 240px; }
.btn.danger { color: var(--bad); border-color: #f3c7c2; background: var(--bad-soft); }
.share-banner code { word-break: break-all; }
.share-banner > span:not(.spacer) { flex: 1 1 260px; }
.share-banner > .i { flex: none; }
@media (max-width: 1100px) {
  .event-top { grid-template-columns: 1fr; }
}

/* ---------- home and admin ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.batch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.batch-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.batch-list a { font-weight: 650; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select { border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; background: #fff; min-width: 190px; font-weight: 400; color: var(--ink); }
.linkbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 12px; background: var(--ok-soft); border-radius: 10px; }
.linkbox input { flex: 1; min-width: 220px; border: 1px solid #bfe3cf; border-radius: 8px; padding: 7px 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #fff; }
.panel:has(table) { overflow-x: auto; }
table.people { width: 100%; border-collapse: collapse; font-size: 13px; }
table.people th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 8px; border-bottom: 1px solid var(--line); }
table.people td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.people tr.off td { color: var(--faint); }
.row-actions { white-space: nowrap; text-align: right; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1c1c1e; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / 20%); z-index: 60; max-width: calc(100vw - 32px); }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card { max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.gate-card h1 { font-size: 22px; margin: 0 0 8px; }
.gate-card p { color: var(--muted); margin: 0; }

/* ---------- phone mock-ups ---------- */
.phone { width: 394px; height: 790px; padding: 10px; border-radius: 56px; background: #0e0e10; box-shadow: inset 0 0 0 1.5px #2c2c30, 0 18px 40px rgb(0 0 0 / 18%); flex: none; }
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; display: flex; flex-direction: column;
  background: #f4f2ee; color: rgb(0 0 0 / 90%); font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.43;
}
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #000; z-index: 3; }
.sbar { height: 52px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 8px 42px; font-size: 15px; font-weight: 600; background: #fff; color: #000; }
.sbar-r { display: flex; gap: 4px; align-items: center; }
.sbar-r .i { width: 17px; height: 17px; }
.feed { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #111; z-index: 3; }
.av { border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; background: #d8d8d8; }
.av.co { border-radius: 6px; }
.av.round { border-radius: 50%; }

/* LinkedIn */
.li-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; background: #fff; border-bottom: 1px solid #e8e6e1; color: rgb(0 0 0 / 60%); }
.li-top .av { width: 30px; height: 30px; font-size: 11px; }
.li-top > .i { width: 22px; height: 22px; }
.li-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 6px; background: #edf3f8; font-size: 15px; }
.li-search .i { width: 18px; height: 18px; }
.li-post { background: #fff; margin-top: 8px; padding-top: 12px; }
.li-head { display: flex; gap: 8px; padding: 0 14px; align-items: flex-start; }
.li-head .av { width: 48px; height: 48px; font-size: 16px; }
.li-who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: rgb(0 0 0 / 60%); line-height: 1.35; }
.li-who b { font-size: 14px; color: rgb(0 0 0 / 90%); font-weight: 600; }
.li-who .hl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-who .t { display: flex; align-items: center; gap: 3px; }
.li-who .t .i { width: 13px; height: 13px; }
.li-x { display: flex; gap: 12px; color: rgb(0 0 0 / 60%); }
.li-x .i { width: 20px; height: 20px; }
.li-textwrap { position: relative; }
.li-text { padding: 8px 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.li-text.clamp { max-height: calc(8px + 3lh); overflow: hidden; }
.li-more { position: absolute; right: 14px; bottom: 0; border: 0; padding: 0 0 0 36px; background: linear-gradient(to right, rgb(255 255 255 / 0%), #fff 30px); color: rgb(0 0 0 / 60%); cursor: pointer; line-height: inherit; }
.screen .lnk { color: #0a66c2; font-weight: 600; text-decoration: none; }
.li-media { margin-top: 8px; }
.li-media img { display: block; width: 100%; height: auto; }
.li-doc { position: relative; background: #000; }
.li-doc img { aspect-ratio: 4 / 5; object-fit: cover; }
.li-doc-title { position: absolute; inset: 0 0 auto; padding: 8px 12px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 13px; font-weight: 600; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-doc-title span { opacity: 0.8; font-weight: 400; }
.li-doc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 60%); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.li-doc-nav.prev { left: 8px; }
.li-doc-nav.next { right: 8px; }
.li-doc-nav[disabled] { opacity: 0; pointer-events: none; }
.li-doc-nav .i { width: 18px; height: 18px; }
.li-doc-count { position: absolute; bottom: 8px; left: 10px; padding: 2px 8px; border-radius: 4px; background: rgb(0 0 0 / 60%); color: #fff; font-size: 12px; z-index: 2; }
.li-placeholder { margin: 8px 14px 0; aspect-ratio: 4 / 5; border: 2px dashed #cfcac0; border-radius: 8px; display: grid; place-items: center; color: #8a857c; font-size: 13px; text-align: center; padding: 20px; background: #faf9f6; }
.li-actions { display: flex; justify-content: space-around; padding: 4px 6px; margin-top: 8px; border-top: 1px solid #ebe9e4; }
.li-actions span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: rgb(0 0 0 / 60%); padding: 6px 4px; }
.li-actions .i { width: 20px; height: 20px; }
.li-comments { background: #fff; padding: 2px 14px 16px; border-top: 1px solid #ebe9e4; }
.li-sort { font-size: 13px; font-weight: 600; color: rgb(0 0 0 / 60%); margin: 8px 0; }
.li-c { display: flex; gap: 8px; }
.li-c .av { width: 32px; height: 32px; font-size: 11px; }
.li-c-body { flex: 1; min-width: 0; }
.li-c-bubble { background: #f2f2f2; border-radius: 0 8px 8px; padding: 8px 10px; }
.li-c-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.li-badge { font-size: 11px; font-weight: 600; background: #5c5c5c; color: #fff; border-radius: 3px; padding: 0 4px; }
.li-c-hl { font-size: 12px; color: rgb(0 0 0 / 60%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-c-text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.li-c-act { font-size: 12px; font-weight: 600; color: rgb(0 0 0 / 60%); margin: 4px 0 0 10px; }
.li-nav { flex: none; display: flex; justify-content: space-around; padding: 6px 4px 24px; background: #fff; border-top: 1px solid #e8e6e1; }
.li-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: rgb(0 0 0 / 60%); }
.li-nav span.on { color: rgb(0 0 0 / 90%); }
.li-nav .i { width: 22px; height: 22px; }

/* X */
.screen.x { background: #fff; color: #0f1419; font-size: 15px; line-height: 1.33; }
.x-top { flex: none; background: #fff; border-bottom: 1px solid #eff3f4; padding: 2px 14px 0; }
.x-top-row { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.x-top-row .av { width: 30px; height: 30px; font-size: 11px; }
.x-gap { width: 30px; }
.x-tabs { display: flex; }
.x-tabs span { flex: 1; text-align: center; padding: 10px 0 12px; color: #536471; font-weight: 500; position: relative; }
.x-tabs span.on { color: #0f1419; font-weight: 700; }
.x-tabs span.on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 2px; background: #1d9bf0; }
.x-tweet { display: flex; gap: 10px; padding: 12px 14px 0; position: relative; }
.x-tweet .av { width: 40px; height: 40px; font-size: 14px; }
.x-tweet.threaded::before { content: ""; position: absolute; left: 33px; top: 56px; bottom: -12px; width: 2px; background: #cfd9de; }
.x-col { flex: 1; min-width: 0; padding-bottom: 12px; border-bottom: 1px solid #eff3f4; }
.x-tweet.threaded .x-col { border-bottom: 0; }
.x-name { display: flex; gap: 4px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.x-name b { overflow: hidden; text-overflow: ellipsis; }
.x-name span { color: #536471; overflow: hidden; text-overflow: ellipsis; }
.x-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.screen.x .lnk { color: #1d9bf0; font-weight: 400; }
.x-media { margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid #cfd9de; }
.x-media img { display: block; width: 100%; }
.x-acts { display: flex; justify-content: space-between; margin-top: 10px; color: #536471; max-width: 290px; }
.x-acts .i { width: 18px; height: 18px; }
.x-nav { flex: none; display: flex; justify-content: space-around; padding: 10px 4px 26px; border-top: 1px solid #eff3f4; background: #fff; }
.x-nav .i { width: 24px; height: 24px; color: #0f1419; }

/* Instagram */
.chip.ig { background: #fdecf4; color: #b0216f; }
.screen.ig { background: #fff; color: #0c1014; font-size: 14px; line-height: 1.4; }
.ig-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; background: #fff; border-bottom: 1px solid #efefef; font-size: 19px; }
.ig-top-r { display: flex; gap: 18px; }
.ig-top-r .i { width: 24px; height: 24px; }
.ig-post { background: #fff; padding-bottom: 14px; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-head b { flex: 1; font-size: 14px; }
.ig-ring { display: grid; padding: 2px; border-radius: 50%; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ig-ring .av { width: 32px; height: 32px; font-size: 11px; border: 2px solid #fff; }
.ig-more .i { width: 20px; height: 20px; }
.ig-media { position: relative; background: #000; }
.ig-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ig-count { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 12px; background: rgb(0 0 0 / 60%); color: #fff; font-size: 12px; font-weight: 600; }
.ig-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 85%); color: #111; cursor: pointer; }
.ig-nav.prev { left: 8px; }
.ig-nav.next { right: 8px; }
.ig-nav[disabled] { display: none; }
.ig-nav .i { width: 16px; height: 16px; }
.ig-dots { display: flex; justify-content: center; gap: 4px; padding-top: 8px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.ig-dots i.on { background: #0095f6; }
.ig-actions { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 4px; }
.ig-actions span { display: flex; gap: 14px; }
.ig-actions .i { width: 24px; height: 24px; }
.ig-caption .li-text { padding: 2px 12px 0; }
.ig-caption .li-text.clamp { max-height: calc(2px + 2lh); }
.ig-caption .li-more { right: 12px; color: #737373; }
.screen.ig .lnk { color: #00376b; font-weight: 400; }
.ig-comment { padding: 4px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-time { padding: 6px 12px 0; font-size: 11px; color: #737373; }
.ig-placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 20px; text-align: center; background: #fafafa; color: #8e8e8e; }
.ig-nav-bar { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 10px 4px 26px; border-top: 1px solid #efefef; background: #fff; }
.ig-nav-bar .i { width: 24px; height: 24px; }
.ig-nav-bar .av { width: 24px; height: 24px; font-size: 9px; }

/* ---------- dashboard ---------- */
/* Pipeline colours: a one-hue progress ramp (lighter = earlier) plus orange for change requests; validated with the dataviz checks. */
:root { --st-posted: #0d366b; --st-scheduled: #1c5cab; --st-ready: #3987e5; --st-review: #86b6ef; --st-changes: #eb6834; }
.ov-tile small { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.dash-main, .dash-side { min-width: 0; }
.dash-panel { padding: 16px 18px; }
.dash-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.dash-head h3 { margin: 0; }
.dash-head a { margin-left: auto; color: var(--accent); text-decoration: none; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.st-posted, .seg-part.st-posted { background: var(--st-posted); }
.sw.st-scheduled, .seg-part.st-scheduled { background: var(--st-scheduled); }
.sw.st-ready, .seg-part.st-ready { background: var(--st-ready); }
.sw.st-review, .seg-part.st-review { background: var(--st-review); }
.sw.st-changes, .seg-part.st-changes { background: var(--st-changes); }
.pl-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pl-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 8px 6px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.pl-row:hover { background: #f6f4ef; }
.pl-name { font-weight: 650; grid-row: span 2; }
.seg { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; background: #fff; }
.seg-part { flex-basis: 0; min-width: 4px; }
.pl-meta { font-size: 12px; color: var(--muted); }
.up-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.up-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.up-row:first-child { border-top: 0; }
.up-row:hover { background: #f8f7f3; }
.up-date { flex: none; width: 74px; display: flex; flex-direction: column; font-size: 12px; }
.up-date b { font-size: 13px; }
.up-date small { color: var(--faint); font-variant-numeric: tabular-nums; }
.up-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-title { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-title .i { vertical-align: -2px; margin-right: 5px; }
.up-row .status { flex: none; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.feed-item { display: flex; gap: 10px; font-size: 13px; }
.feed-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #eceae4; color: #3a3a40; }
.feed-av.client { background: var(--accent-soft); color: var(--accent); }
.feed-body { min-width: 0; }
.feed-body a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.feed-quote { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.feed-quote.bad { color: #8a2c1e; }
.feed-meta { margin-top: 2px; font-size: 12px; color: var(--faint); }
.feed.audit li { display: flex; gap: 10px; font-size: 13px; }
.ov-client h2 .btn { font-weight: 600; }
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ---------- calendar ---------- */
.cal-legend { margin: -4px 0 12px; }
.lg-sep { width: 1px; align-self: stretch; background: var(--line-2); margin: 0 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { background: #f3f1ec; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cal-day { background: var(--panel); min-height: 118px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; transition: background 0.12s; }
.cal-day.outside { background: #faf9f6; }
.cal-day.outside .cal-num { color: var(--faint); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day.drop { background: var(--accent-soft); }
.cal-num { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 2px 4px; }
.cal-today { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--accent); border-radius: 99px; padding: 1px 6px; }
.cal-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 5px 7px; border-radius: 8px; background: #f6f4ef; color: var(--ink); text-decoration: none; font-size: 12px; line-height: 1.25; cursor: pointer; }
.cal-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cal-platform { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--faint); }
.cal-item:hover { background: #ece9e2; }
.cal-item[draggable="true"] { cursor: grab; }
.cal-item.dragging { opacity: 0.45; }
.cal-item .i { flex: none; width: 13px; height: 13px; }
.cal-stage { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.cal-stage.st-posted { background: var(--st-posted); }
.cal-stage.st-scheduled { background: var(--st-scheduled); }
.cal-stage.st-ready { background: var(--st-ready); }
.cal-stage.st-review { background: var(--st-review); }
.cal-stage.st-changes { background: var(--st-changes); }
.cal-client { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.cal-time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-weight: 600; }
.cal-event { background: #f1effa; }
.cal-event:hover { background: #e7e3f7; }
.cal-agenda { display: none; }
.cal-agenda-day { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 6px; }
.cal-agenda-day h4 { margin: 0 0 2px; font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card.flash { box-shadow: 0 0 0 3px var(--accent), var(--shadow); transition: box-shadow 0.3s; }
.cal-wrap { container-type: inline-size; }
@container (max-width: 640px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
}

/* ---------- monthly report ---------- */
.report { max-width: 1040px; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 18px; }
.rp-logo { max-width: 160px; max-height: 48px; object-fit: contain; }
.rp-title { flex: 1; min-width: 240px; }
.rp-title h1 { margin: 2px 0 4px; font-size: 26px; line-height: 1.15; }
.rp-title .sub { color: var(--muted); }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 18px; }
.rp-tiles.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 12px; }
.rp-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rp-tile b { display: block; font-size: 28px; line-height: 1.1; }
.rp-tile span { font-size: 13px; color: var(--muted); }
.rp-tile small { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }
.rp-section { padding: 16px 18px; }
.rp-seg { height: 10px; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
.rp-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.rp-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-table td a { color: var(--ink); font-weight: 600; }
.rp-table .status { margin-left: 0; }
.rp-webinar { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.rp-webinar:first-of-type { border-top: 0; padding-top: 0; }
.rp-webinar-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.rp-webinar-head h3 { margin: 0 0 2px; font-size: 15px; }
.rp-webinar-head .status { margin-left: auto; }
.rp-webinar h4 { margin: 4px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
/* Sign-ups by source: one series (no legend), value at the bar's tip; blue validated against white. */
.rp-bars { display: grid; gap: 8px; max-width: 620px; }
.rp-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.rp-bar-label { color: var(--muted); }
.rp-bar-track { height: 14px; }
.rp-bar-track i { display: block; height: 14px; background: #2a78d6; border-radius: 0 4px 4px 0; }
.rp-bar b { font-variant-numeric: tabular-nums; }
.rp-foot { margin: 8px 0 24px; font-size: 12px; color: var(--faint); }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .side, .mobile-bar, .skip, .no-print, .signed-out, .toast, .side-backdrop { display: none !important; }
  .shell { display: block; }
  .main { padding: 0 !important; }
  .report { max-width: none; }
  .rp-tile, .panel { break-inside: avoid; box-shadow: none; }
  .rp-section { break-inside: auto; }
  a { color: inherit !important; text-decoration: none !important; }
  .seg-part, .sw, .rp-bar-track i, .status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- clients (admins) ---------- */
#cl-bar { position: sticky; top: 0; z-index: 6; }
.cl-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0 12px; margin-bottom: 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.cl-savebar h1 { margin: 2px 0 0; font-size: 24px; line-height: 1.15; }
.cl-savebar .crumb a { color: var(--muted); text-decoration: none; }
.cl-savebar .crumb a:hover { color: var(--ink); }
.cl-state { font-size: 13px; color: var(--muted); }
.cl-savebar.dirty .cl-state { color: var(--warn); font-weight: 650; }
.cl-conflict { display: inline-flex; gap: 6px; align-items: center; max-width: 520px; padding: 6px 10px; border-radius: 9px; background: var(--warn-soft); color: #643700; font-size: 13px; }
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.cl-side { position: sticky; top: 76px; }
.cl-preview { position: relative; overflow: hidden; border-radius: 10px; background: #e9e7e2; }
.cl-preview iframe { position: absolute; top: 0; left: 0; width: 2216px; height: 1350px; border: 0; transform-origin: 0 0; pointer-events: none; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.cl-grid .field.wide { grid-column: span 2; }
.cl-grid .field input, .cl-grid .field select { min-width: 0; width: 100%; }
.field textarea { border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; background: #fff; font: inherit; font-weight: 400; color: var(--ink); resize: vertical; width: 100%; }
.field .help { font-weight: 400; color: var(--faint); font-size: 12px; }
.cl-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; font-size: 13px; }
.cl-check li { display: flex; gap: 8px; align-items: flex-start; color: var(--warn); }
.cl-check li.ok { color: var(--ok); }
.cl-check li span { color: var(--ink); }
.cl-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cl-color { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-color input { flex: none; width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; cursor: pointer; }
.cl-color span { display: flex; flex-direction: column; }
.cl-color code { font-weight: 500; color: var(--ink); }
.cl-asset { display: flex; gap: 8px; align-items: center; }
.cl-asset img, .cl-noimg { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #f1efea; border: 1px solid var(--line); }
.cl-asset select { flex: 1; min-width: 0; }
.cl-fonts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.cl-profile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.cl-profile-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.cl-profile-head code { font-size: 12px; color: var(--muted); }
.cl-note { border-top: 1px solid var(--line); padding: 10px 0; }
.cl-note summary { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.cl-note textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.cl-people { margin: 0 0 10px; padding-left: 18px; }
.panel .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.field.grow { flex: 1; }
.field.grow input { width: 100%; }
@media (max-width: 1100px) {
  .cl-layout { grid-template-columns: 1fr; }
  .cl-side { position: static; order: -1; }
}

/* ---------- accessibility, sign-out, held posts ---------- */
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 8px 14px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.side-close { display: none; }
.side-backdrop { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signed-out { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #f1d3a6; font-weight: 600; }
.signed-out .i { flex: none; }
.delivery.held { background: var(--warn-soft); color: var(--warn); }
.row.center { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .ov-row { grid-template-columns: 1fr; gap: 6px; }
  .ov-next { justify-self: start; text-align: left; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 284px; z-index: 40; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 0 0 40px rgb(0 0 0 / 18%); }
  .side.open { transform: none; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .main { padding: 16px 16px 72px; }
  .toolbar { position: static; }
  #cl-bar { position: static; }
  .cl-grid .field.wide { grid-column: auto; }
  .side-close { display: inline-flex; align-self: flex-end; }
  .side-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(0 0 0 / 28%); }
  .lanes { grid-template-columns: 1fr; }
  .stage .phone { zoom: min(var(--zoom, 1), 0.82); }
  .meters { width: 100%; }
  .meter { flex: 1; min-width: 0; }
}
