/* Scribbl — placeholder skin until the brand files land. Tokens from the Brand Assets file: ink #1D1D1D, white, pop green #E0FFAB, Suisse Intl. */
@font-face { font-family: "Suisse"; src: url(/gui/fonts/SuisseIntl-Regular.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "Suisse"; src: url(/gui/fonts/SuisseIntl-Book.woff2) format("woff2"); font-weight: 450; }
@font-face { font-family: "Suisse"; src: url(/gui/fonts/SuisseIntl-Medium.woff2) format("woff2"); font-weight: 500; }

:root {
  --ink: #141414; --paper: #fff; --pop: #141414; --pop-ink: #fff;
  --bg: #f6f4f0; --card: #fff; --line: #e6e2dc; --line-2: #d3cec6; --muted: #6f6a63; --soft: #f1eee9;
  --stale: #ffe08a; --stale-ink: #5a4200; --bad: #ff6b6b;
  --r: 16px; --r-s: 10px; --nav-w: 224px;
  --font: "Prodigy Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --hand: "LORE", "Prodigy Sans", sans-serif;
}
@font-face { font-family: "Prodigy Sans"; src: url(/gui/fonts/ProdigySans-Regular.otf) format("opentype"); font-weight: 400; }
@font-face { font-family: "Prodigy Sans"; src: url(/gui/fonts/ProdigySans-Medium.otf) format("opentype"); font-weight: 500 700; }
@font-face { font-family: "LORE"; src: url(/gui/fonts/LORE-Regular.otf) format("opentype"); font-weight: 400; }
@font-face { font-family: "LORE"; src: url(/gui/fonts/LORE-Bold.otf) format("opentype"); font-weight: 700; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .01em; }
.nav a[data-nav] .soon { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.nav a[data-nav].active .soon { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.client-mark { background: #141414; color: #fff; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 500; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.spacer { flex: 1; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.nav { width: var(--nav-w); flex: 0 0 auto; background: var(--paper); border-right: 1px solid var(--line); padding: 26px 18px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand img { width: 96px; display: block; }
.client { margin: 22px -6px 14px; position: relative; }
.client-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 8px; background: none; border: 1px solid transparent; border-radius: 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.client-btn:hover, .client.open .client-btn { background: var(--soft); border-color: var(--line); }
.client-btn i { font-style: normal; color: var(--muted); margin-left: auto; font-size: 14px; line-height: 1; transform: translateY(-2px); }
.client-mark { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--pop); display: grid; place-items: center; font-weight: 500; font-size: 13px; }
.client-name { font-weight: 500; font-size: 13px; line-height: 1.2; min-width: 0; }
.client-name span, .client-row small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.client-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.10); padding: 6px; z-index: 30; }
.client-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.2; }
.client-row.on { background: var(--soft); } .client-row b { margin-left: auto; font-weight: 500; color: var(--ink); }
.client-row.soon { color: var(--muted); } .client-row.soon .client-mark { background: var(--soft); color: var(--muted); border: 1px dashed var(--line); }
.nav a[data-nav] .soon { margin-left: auto; font-style: normal; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--pop); color: var(--ink); border-radius: 999px; padding: 2px 7px; }
.nav a[data-nav].active .soon { background: var(--pop); }
.eve { max-width: 620px; }
.eve .chat { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.eve .bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--soft); font-size: 14px; line-height: 1.45; }
.eve .bub.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.eve .bub.eve { align-self: flex-start; border-bottom-left-radius: 4px; }
.eve .who { font-size: 11px; color: var(--muted); margin: 0 0 -6px 4px; }
.nav nav { display: flex; flex-direction: column; gap: 2px; }
.nav a[data-nav] { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 999px; font-weight: 450; color: var(--ink); transition: background .12s; }
.nav a[data-nav] i { font-style: normal; width: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.nav a[data-nav]:hover { background: var(--soft); }
.nav a[data-nav].active { background: var(--ink); color: #fff; }
.nav a[data-nav].active i { color: var(--pop); }
.nav-sec { display: block; margin: 16px 12px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.nav-foot .stamp { width: 34px; opacity: .85; margin-left: 12px; }
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 18px 32px 0; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; }
main { padding: 20px 32px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 18px; margin: 6px 0 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 8px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }

/* ---------- controls ---------- */
button { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 450; cursor: pointer; line-height: 1; white-space: nowrap; transition: transform .08s, background .12s; }
button:hover { background: #000; }
button:active { transform: translateY(1px); }
button.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
button.ghost:hover { background: var(--soft); }
button.pop { background: var(--pop); color: var(--ink); border-color: var(--pop); }
button.pop:hover { background: #d4fa93; }
button.small { padding: 6px 12px; font-size: 12.5px; }
button.icon { background: transparent; border: 0; color: var(--muted); font-size: 20px; padding: 4px 8px; }
button.icon:hover { color: var(--ink); }
button.danger { color: var(--bad); border-color: #ffd0d0; background: #fff; }
button:disabled { opacity: .45; cursor: default; }
input[type=text], input[type=password], input[type=email], input:not([type]), textarea, select { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-s); padding: 9px 11px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
textarea { min-height: 72px; resize: vertical; white-space: pre; font-family: var(--font); }
label.f { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.field { min-width: 180px; }
.field.grow { flex: 1; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.search { width: 260px; border-radius: 999px; padding: 9px 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 12.5px; cursor: pointer; font-weight: 400; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.pop { background: var(--pop); border-color: var(--pop); color: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--ink); }

/* ---------- cards / panels ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.card h2 { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; display: block; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,29,29,.08); }
.tile .ph { aspect-ratio: 4/3; background: var(--soft) center/cover no-repeat; position: relative; }
.tile .ph .v { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--pop); font-size: 10.5px; padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.tile .body { padding: 12px 14px 13px; }
.tile .name { font-weight: 500; }
.tile .meta { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.tile .dots { display: flex; gap: 4px; margin-left: auto; }
.tile .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: block; }
.tile .dots i.ok { background: #86d36b; } .tile .dots i.stale { background: var(--stale); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 10px 14px; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 450; }
.tabs button:hover { color: var(--ink); background: transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.sticky-save { position: sticky; bottom: 18px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; z-index: 5; }
.sticky-save .bar { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.sticky-save .bar button { background: var(--pop); color: var(--ink); border-color: var(--pop); }
.sticky-save .bar .ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- outputs ---------- */
.outputs { display: grid; grid-template-columns: 1fr; gap: 16px; }
.output { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; }
.output .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.output .head h2 { margin: 0; }
.output .head .code { background: var(--ink); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 500; letter-spacing: .04em; }
.sizetabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.sizetabs button { background: transparent; border: 0; color: var(--muted); padding: 5px 12px; font-size: 12.5px; }
.sizetabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sizetabs button.on.stale { background: var(--stale); }
.pane { display: none; } .pane.on { display: block; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.strip .c { flex: 0 0 auto; width: 250px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); scroll-snap-align: start; position: relative; }
.strip.tall .c { width: 176px; aspect-ratio: 9/16; } .strip.mid .c { width: 200px; aspect-ratio: 4/5; }
.strip .c img, .strip .c video { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip .c .n { position: absolute; left: 8px; bottom: 8px; background: rgba(29,29,29,.75); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; }
.skel .c { background: linear-gradient(90deg, var(--soft) 25%, #ebebe7 37%, var(--soft) 63%); background-size: 400% 100%; animation: sh 1.4s infinite; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
@keyframes sh { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
.empty { color: var(--muted); padding: 18px 0; font-size: 13px; }
.meta-line { color: var(--muted); font-size: 12px; margin: 8px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.meta-line a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- media editor ---------- */
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.slot { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; transition: border-color .12s, background .12s; }
.slot.over { border-color: var(--ink); background: var(--pop); }
.slot .name { font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; margin-bottom: 8px; }
.slot .img { aspect-ratio: 1; border-radius: 8px; background: var(--soft); position: relative; overflow: hidden; cursor: crosshair; }
.slot .img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.slot .img .empty-drop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; padding: 10px; }
.focal { position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.5); transform: translate(-50%, -50%); pointer-events: none; }
.slot .meta { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tag.low { background: #ffe1e1; color: #a12626; }
.tag.pop { background: var(--pop); color: var(--pop-ink); }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cand { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: grab; background: #fff; position: relative; }
.cand:active { cursor: grabbing; }
.cand img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.cand .cap { font-size: 11px; padding: 6px 8px; display: flex; justify-content: space-between; gap: 6px; color: var(--muted); }
.cand .cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand.used { outline: 2px solid var(--ink); }
.cand .use { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--pop); font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; transition: all .12s; }
.dropzone.over { border-color: var(--ink); background: var(--pop); color: var(--ink); }
.cover { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.cover .img { aspect-ratio: 1; border-radius: 12px; background: var(--soft); position: relative; overflow: hidden; cursor: crosshair; }
.cover .img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- sortable lists ---------- */
.sortable { display: flex; flex-direction: column; gap: 6px; }
.sortable .item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: grab; }
.sortable .item.dragging { opacity: .35; }
.sortable .item.over { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.sortable .item .grip { color: var(--line-2); font-size: 16px; letter-spacing: -2px; }
.sortable .item .n { width: 22px; color: var(--muted); font-size: 12px; }
.sortable .item .name { font-weight: 450; }
.sortable .item .region { color: var(--muted); font-size: 12px; }
.sortable .item button { margin-left: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plist { max-height: 520px; overflow: auto; }

/* ---------- generate grid ---------- */
.gen-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 4; }
.gtable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.gtable thead tr:first-child th:first-child { border-top-left-radius: var(--r); } .gtable thead tr:first-child th:last-child { border-top-right-radius: var(--r); }
.gtable th, .gtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; vertical-align: middle; }
.gtable th { background: var(--soft); font-weight: 500; font-size: 12px; color: var(--muted); }
.gtable.sticky th { position: sticky; top: 52px; z-index: 3; }
.gtable th.grp { text-align: center; color: var(--ink); border-left: 1px solid var(--line); }
.gtable td.cell { border-left: 1px solid var(--line); text-align: center; width: 92px; }
.gtable tr:last-child td { border-bottom: 0; }
.gtable tr.sec td { background: var(--soft); font-weight: 500; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gtable .name a:hover { text-decoration: underline; text-underline-offset: 2px; }
.gtable .sub { color: var(--muted); font-size: 11.5px; }
.st { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 62px; padding: 4px 8px; border-radius: 999px; font-size: 11.5px; cursor: pointer; border: 1px solid transparent; user-select: none; }
.st.ok { background: #eef8e6; color: #2d5a1a; } .st.stale { background: var(--stale); color: var(--stale-ink); } .st.none { background: var(--soft); color: var(--muted); }
.st.busy { background: repeating-linear-gradient(45deg, #e9e9e4 0 6px, #f6f6f2 6px 12px); color: var(--muted); animation: slide 1s linear infinite; }
@keyframes slide { to { background-position: 17px 0; } }
.st.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.gtable .rowsel { width: 30px; text-align: center; } .gtable input[type=checkbox] { accent-color: var(--ink); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); align-items: center; }

/* ---------- queue drawer ---------- */
.queue-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); padding: 8px 14px 8px 10px; font-size: 12.5px; }
.queue-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.queue-pill.on { border-color: var(--ink); } .queue-pill.on .dot { background: var(--pop); box-shadow: 0 0 0 3px #eefad0; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 420px; background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(0,0,0,.06); transform: translateX(100%); transition: transform .2s; z-index: 50; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
#drawerBody { padding: 14px 18px; overflow: auto; }
.prog .bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 10px 0; }
.prog .bar i { display: block; height: 100%; background: var(--ink); transition: width .6s; }
.prog .cur { font-weight: 500; }
.qlist { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.qlist div { font-size: 12.5px; color: var(--muted); padding: 6px 10px; background: var(--soft); border-radius: 8px; display: flex; gap: 8px; }
.qlist div b { color: var(--ink); font-weight: 500; }
.log { flex: 1; margin: 0; padding: 12px 18px; background: var(--ink); color: #cfe6a8; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; white-space: pre-wrap; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px; opacity: 0; transition: all .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13px; }
.kv b { font-weight: 450; color: var(--muted); }
code { font: 12px ui-monospace, Menlo, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 1000px) { .slots { grid-template-columns: repeat(3, 1fr); } .two, .cover { grid-template-columns: 1fr; } }
/* busy panes: hide the strip, show the shimmer */
.pane .skel { display: none; } .pane.busy .skel { display: flex; } .pane.busy .strip:not(.skel), .pane.busy .empty, .pane.busy .meta-line { display: none; }
/* keep wide strips inside their cards */
.outputs > * { min-width: 0; } .output { min-width: 0; }
.gtable.sticky thead tr:first-child th { top: 52px; } .gtable.sticky thead tr:nth-child(2) th { top: 90px; }

/* small top-right notice after queuing, instead of opening the drawer */
.notice { position: fixed; top: 62px; right: 32px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 240px; box-shadow: 0 12px 30px rgba(0,0,0,.18); opacity: 0; transform: translateY(-8px); transition: all .2s; pointer-events: none; z-index: 45; font-size: 13px; }
.notice.show { opacity: 1; transform: none; pointer-events: auto; }
.notice b { font-weight: 500; } .notice .eta { color: var(--pop); font-size: 12px; } .notice a { color: rgba(255,255,255,.7); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; margin-top: 4px; }

/* copy suggestions */
.copy .proof { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.cfield { margin-top: 14px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { text-align: left; white-space: normal; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; line-height: 1.35; font-weight: 400; }
.opt:hover { background: var(--soft); border-color: var(--ink); }
.opt.on { background: var(--pop); border-color: var(--pop); }
.opt.on::after { content: " ✓"; font-weight: 500; }
@media (max-width: 1100px) { .opts { grid-template-columns: 1fr; } }

/* ---------- ad previews: how the carousel reads in a feed ---------- */
.viewtoggle { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.viewtoggle button { background: transparent; border: 0; color: var(--muted); padding: 6px 14px; font-size: 12.5px; }
.viewtoggle button.on { background: var(--ink); color: #fff; }
.adprev { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.adprev .phone { width: 344px; background: #111; border-radius: 40px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.18); flex: 0 0 auto; }
.adprev .screen { background: #fff; border-radius: 30px; overflow: hidden; height: 640px; overflow-y: auto; scrollbar-width: none; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; color: #050505; }
.adprev .screen::-webkit-scrollbar { display: none; }
.adprev .statusbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 13px; font-weight: 600; }
.adprev .side { flex: 1; min-width: 260px; }
.adprev .side .kv { grid-template-columns: 120px 1fr; font-size: 12.5px; }
.adprev .side .kv b { font-weight: 450; }
.adprev .side .val { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; white-space: pre-wrap; }
.adprev .side .val.warn { border-color: var(--stale); background: #fff9e6; }
.adprev .cnt { color: var(--muted); font-size: 11px; margin-left: 6px; }
/* facebook feed */
.fb .head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.fb .avatar, .ig .avatar { width: 40px; height: 40px; border-radius: 50%; background: #3B163F; display: grid; place-items: center; flex: 0 0 auto; }
.fb .avatar img, .ig .avatar img { width: 18px; }
.fb .who b { font-size: 14px; display: block; } .fb .who span { font-size: 12px; color: #65676b; }
.fb .primary { padding: 2px 12px 10px; font-size: 14.5px; line-height: 1.34; white-space: pre-wrap; }
.fb .cards { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fb .cards::-webkit-scrollbar { display: none; }
.fb .fcard { flex: 0 0 250px; border: 1px solid #e4e6eb; border-radius: 10px; overflow: hidden; scroll-snap-align: start; background: #fff; }
.fb .fcard .m { width: 250px; aspect-ratio: 1; background: #eee; } .fb .fcard .m img, .fb .fcard .m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb .fcard .t { padding: 9px 10px 10px; display: flex; align-items: center; gap: 8px; }
.fb .fcard .t div { min-width: 0; flex: 1; } .fb .fcard .t b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fb .fcard .t span { font-size: 12px; color: #65676b; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb .btn { border: 1px solid #ccd0d5; border-radius: 6px; padding: 7px 10px; font-size: 13px; font-weight: 600; background: #e4e6eb; color: #050505; white-space: nowrap; }
.fb .react { display: flex; justify-content: space-around; padding: 10px 12px; border-top: 1px solid #e4e6eb; margin-top: 8px; color: #65676b; font-size: 13px; font-weight: 600; }
.fb .counts { display: flex; justify-content: space-between; padding: 8px 12px 0; font-size: 12.5px; color: #65676b; }
/* instagram feed */
.ig .head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig .head .avatar { width: 34px; height: 34px; } .ig .head .avatar img { width: 15px; }
.ig .who b { font-size: 13.5px; display: block; } .ig .who span { font-size: 12px; color: #737373; }
.ig .media { position: relative; background: #eee; } .ig .media img, .ig .media video { width: 100%; display: block; object-fit: cover; }
.ig .media .n { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.ig .cta { display: flex; justify-content: space-between; align-items: center; background: #0095f6; color: #fff; padding: 11px 14px; font-size: 14px; font-weight: 600; }
.ig .icons { display: flex; gap: 14px; padding: 10px 12px 4px; font-size: 20px; }
.ig .dots { text-align: center; letter-spacing: 3px; color: #c7c7c7; font-size: 10px; padding-top: 6px; } .ig .dots b { color: #0095f6; }
.ig .cap { padding: 4px 12px 14px; font-size: 13.5px; line-height: 1.35; } .ig .cap b { margin-right: 6px; }
/* instagram story */
.story .screen { background: #000; position: relative; height: 640px; overflow: hidden; }   /* same phone as the feeds; the story itself is a 9:16 block at the top with the reply bar under it */
.story .media { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 9 / 16; background: #000; } .story .media img, .story .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; } .story .bars i { flex: 1; height: 2px; background: rgba(255,255,255,.4); border-radius: 2px; } .story .bars i.on { background: #fff; }
.story .head { position: absolute; top: 20px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story .head .avatar { width: 32px; height: 32px; border-radius: 50%; background: #3B163F; display: grid; place-items: center; } .story .head .avatar img { width: 14px; }
.story .head b { font-size: 13px; } .story .head span { font-size: 12px; opacity: .85; margin-left: 6px; }
.story .foot { position: absolute; bottom: 86px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; }
.story .foot .pill { background: #fff; color: #000; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 600; }
.story .foot .chev { font-size: 14px; opacity: .9; }
.story .nav { position: absolute; top: 44%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; padding: 0; }
.story .nav.l { left: 10px; } .story .nav.r { right: 10px; }
.ig .media { cursor: pointer; }

/* preview strips: arrows + instagram snap strip */
.cardswrap, .ig .media { position: relative; }
.arrow { position: absolute; z-index: 5; top: 45%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; border: 0; padding: 0; font-size: 18px; line-height: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; }
.arrow.l { left: 16px; } .arrow.r { right: 16px; }
.cardswrap:hover .arrow, .ig .media:hover .arrow { opacity: 1; }
.igstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .igstrip::-webkit-scrollbar { display: none; }
.igc { flex: 0 0 100%; scroll-snap-align: start; } .igc img, .igc video { width: 100%; display: block; object-fit: cover; }
.ig .media .n { z-index: 2; }
.story .reply { position: absolute; left: 0; right: 0; bottom: 0; height: 71px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #fff; }
.story .reply .in { flex: 1; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 9px 14px; font-size: 13px; color: rgba(255,255,255,.75); }
.story .reply span { font-size: 20px; }

.cands.bf .cand { cursor: default; } .cands.bf .cand img { aspect-ratio: 4/3; }
.cands.bf .addbf { position: absolute; top: 6px; right: 6px; padding: 4px 10px; font-size: 11.5px; }

.sortable .item.block { cursor: default; } .sortable .item.block .grip { cursor: grab; }
.bfields .field { min-width: 160px; }

.ppin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--ink); color: var(--pop); font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ppin.res { background: #86d36b; color: #fff; }
/* ---------- visual EDM editor ---------- */
.edmgrid { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(400px, 500px); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .edmgrid { grid-template-columns: 1fr; } }
.pvcol { position: sticky; top: 14px; }
.pvwrap { position: relative; max-height: calc(100vh - 200px); overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); scrollbar-width: thin; }
.pvinner { position: relative; }
.pvwrap img { display: block; width: 100%; }
#pvOverlays { position: absolute; inset: 0; }
.pvov { position: absolute; left: 0; right: 0; cursor: pointer; border-radius: 6px; transition: background .12s; }
.pvov span { position: absolute; top: 6px; left: 8px; background: var(--ink); color: var(--pop); font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.pvov:hover { background: rgba(59, 23, 64, .10); box-shadow: inset 0 0 0 2px var(--ink); }
.pvov:hover span { opacity: 1; }
.pvov.sel { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pvov.sel span { opacity: 1; }
.pvwrap .building { display: none; position: absolute; inset: 0; background: rgba(244,241,245,.82); align-items: center; justify-content: center; font-size: 13px; color: var(--muted); z-index: 4; }
.pvwrap .building .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.pane.busy .building { display: flex; }
.blockcard { display: block; padding: 10px 12px; }
.blockcard.sel { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.bchead { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bthumb { width: 132px; flex: 0 0 auto; border-radius: 8px; background-color: var(--soft); border: 1px solid var(--line); min-height: 36px; }
.bcmeta b { display: block; font-weight: 500; font-size: 13.5px; }
.bcmeta .hint { font-size: 11.5px; }
.bfields { margin-top: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; }
.palitem { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; text-align: center; }
.palitem:hover { background: var(--soft); border-color: var(--ink); }
.palthumb { display: flex; align-items: center; justify-content: center; border-radius: 8px; background-color: var(--soft); min-height: 44px; color: var(--muted); font-weight: 500; }
.pvscale { position: relative; overflow: hidden; margin: 0 auto; }
.pvwrap { scrollbar-gutter: stable; }
#pvFrame { border: 0; display: block; transform-origin: top left; background: #fff; pointer-events: auto; }

/* ---------- EDM inspector (visual editor v2) ---------- */
.sortable .item.blockcard { display: block; cursor: default; }
.blockcard .bchead { cursor: pointer; }
.blockcard .caret { color: var(--muted); font-size: 11px; transition: transform .15s; }
.blockcard.open .caret { transform: rotate(180deg); }
.blockcard.open .bthumb { display: none; }
.bfields { display: none; }
.blockcard.open .bfields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.fsep { flex-basis: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 4px; }
.pgrid { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pthumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; padding: 0; background: var(--soft); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pthumb:hover { border-color: var(--line-2); }
.pmore { max-width: 165px; }
.fgroup { flex-basis: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--soft); }
.fgroup.off { display: none; }
.fgroup .ghead { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fgroup .gx { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 2px; }
.fgroup .gbody { gap: 10px; }
.addchips { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- modals + photo strips (UX pass) ---------- */
.modal-ov { position: fixed; inset: 0; background: rgba(29,29,29,.45); backdrop-filter: blur(3px); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 28px; }
.modal { background: #fff; border-radius: 16px; max-width: 880px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 20px 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28); scrollbar-width: thin; }
.mhead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; position: sticky; top: -20px; background: #fff; padding: 8px 0; z-index: 2; }
.mhead h2 { margin: 0; flex: 1; font-size: 18px; }
.msect { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 8px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mthumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: var(--soft); position: relative; }
.mthumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.mthumb span { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); border-radius: 6px; padding: 2px 7px; font-size: 11px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mthumb.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mthumb:hover { border-color: var(--line-2); }
.palgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.palcard { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 10px; text-align: left; }
.palcard .pallab { font-size: 13px; font-weight: 500; color: var(--ink); }
.palcard:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.palshot { display: block; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; background-color: var(--soft); }
.pstrip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; scrollbar-width: thin; }
.pstrip .pthumb { flex: 0 0 auto; width: 74px; height: 74px; scroll-snap-align: start; }
.pbrowse { display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted); border: 1.5px dashed var(--line-2); background: #fff; cursor: pointer; }
.pbrowse:hover { border-color: var(--ink); color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--ink); }

/* ---------- Calendar (monthly plan) ---------- */
.mnav { display: inline-block; width: 30px; text-align: center; color: var(--muted); text-decoration: none; border-radius: 8px; }
.mnav:hover { background: var(--soft); color: var(--ink); }
.cal-pane { position: relative; min-height: 200px; }
.cal-pane .building { display: none; position: absolute; inset: 0; background: rgba(242,242,239,.8); align-items: center; justify-content: center; font-size: 13px; color: var(--muted); z-index: 4; border-radius: var(--r); }
.cal-pane.busy .building { display: flex; }
.cal-pane .building .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: rot .9s linear infinite; }
.cal-empty { text-align: center; padding: 44px 28px; } .cal-empty .hint { max-width: 520px; margin: 8px auto 0; line-height: 1.6; }
.cal-strat .cs-focus { font-size: 15px; font-weight: 500; line-height: 1.45; margin-bottom: 12px; }
.cal-strat .cs-row { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.cs-init { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; } .cs-init summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cs-igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.cs-igrid > div { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; } .cs-igrid b { display: block; font-weight: 500; } .cs-igrid p { margin-top: 4px; color: var(--muted); }
.cs-warn { margin-top: 12px; font-size: 12.5px; background: var(--stale); color: var(--stale-ink); border-radius: 8px; padding: 7px 11px; display: inline-block; }
.cal-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1000px) { .cal-tiers { grid-template-columns: 1fr; } }
.tcol .thead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; } .tcol .thead b { font-weight: 500; }
.tcol.over { box-shadow: 0 0 0 2px var(--ink); }
.tchips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; margin-bottom: 10px; }
.tchip { display: inline-flex; align-items: center; gap: 5px; background: var(--pop); color: var(--pop-ink); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 12px; cursor: grab; }
.tchip i { font-style: normal; opacity: .6; font-size: 10.5px; }
.tchip.unused { background: var(--soft); color: var(--muted); border: 1px dashed var(--line-2); }
.tchip.dragging { opacity: .4; }
.tx { border: 0; background: none; cursor: pointer; color: inherit; opacity: .45; font-size: 13px; line-height: 1; padding: 0 2px; } .tx:hover { opacity: 1; }
.tadd { width: 100%; font-size: 12.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 0 4px 4px; }
.cal-cell { position: relative; min-height: 118px; background: var(--soft); border-radius: 10px; padding: 24px 5px 6px; display: flex; flex-direction: column; gap: 5px; }
.cal-cell.off { background: none; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-d { position: absolute; top: 6px; left: 8px; font-size: 11.5px; color: var(--muted); }
.cal-add { position: absolute; top: 3px; right: 4px; border: 0; background: none; font-size: 16px; color: var(--muted); opacity: 0; cursor: pointer; }
.cal-cell:hover .cal-add { opacity: 1; }
.slot-card { display: flex; flex-direction: column; gap: 3px; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 8px; padding: 6px 7px; cursor: pointer; font-family: inherit; }
.slot-card:hover { border-color: var(--ink); }
.sc-top { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sc-theme { font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.sc-parks { font-size: 10.5px; color: var(--muted); } .sc-parks b { font-weight: 500; color: var(--ink); }
.st-writing, .st-drafted { border-left-color: #AFCDFF; } .st-proof, .st-amends { border-left-color: var(--stale); } .st-approved { border-left-color: #86d36b; } .st-klaviyo { border-left-color: var(--ink); }
.dropzone { display: block; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; font-size: 13.5px; }
.dropzone.over, .dropzone:hover { border-color: var(--ink); color: var(--ink); }
.mslot { max-width: 760px; }
/* social lane: one compact chip per post, under the day's email sends */
.post-chip { display: flex; flex-direction: column; gap: 2px; text-align: left; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 6px; padding: 4px 6px; cursor: pointer; font-family: inherit; color: var(--muted); min-width: 0; overflow: hidden; white-space: normal; }
.post-chip:hover { border-color: var(--ink); background: #fff; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.pc-acc { background: var(--line-2); color: var(--ink); border-radius: 999px; padding: 0 5px; font-size: 9px; line-height: 14px; letter-spacing: .03em; white-space: nowrap; }
.pc-theme { font-size: 11.5px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.ps-drafted { border-left-color: #AFCDFF; } .ps-approved { border-left-color: #86d36b; } .ps-scheduled { border-left-color: var(--ink); }
.cal-addpost { right: 22px; top: 7px; font-size: 10.5px; letter-spacing: .03em; }
.mpost { max-width: 720px; }
.slot-card { white-space: normal; min-width: 0; overflow: hidden; }
.sc-theme { overflow-wrap: anywhere; }
.sc-parks { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
label.f .hint { text-transform: none; letter-spacing: 0; font-size: 11.5px; }

.gtable tr.good td:first-child { box-shadow: inset 3px 0 0 #86d36b; } .gtable tr.poor td:first-child { box-shadow: inset 3px 0 0 var(--stale); }

/* ---------- pre-flight QA ---------- */
.card.qa { padding: 10px 14px; }
.card.qa summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.card.qa summary::-webkit-details-marker { display: none; }
.qa-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: 0 0 auto; }
.qa-pass > summary .qa-dot, li.st-pass .qa-dot { background: #86d36b; }
.qa-warn > summary .qa-dot, li.st-warn .qa-dot, .qa-todo > summary .qa-dot, li.st-todo .qa-dot { background: var(--stale); }
.qa-fail > summary .qa-dot, li.st-fail .qa-dot { background: var(--bad); }
li.st-skip .qa-dot { background: var(--line-2); }
.qa-list { list-style: none; margin: 10px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.qa-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; } .qa-list li .qa-dot { margin-top: 5px; } .qa-list b { font-weight: 500; }
.qa-items { margin-top: 4px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }

.msearch { flex: 1; max-width: 300px; }
.mthumb .mlow { position: absolute; top: 6px; right: 6px; background: var(--stale); color: var(--stale-ink); font-style: normal; font-size: 10px; border-radius: 6px; padding: 1px 6px; }

.tchip-t b { font-weight: 600; margin-right: 2px; } .tchip-t.fit5 { background: var(--pop); color: var(--pop-ink); } .tchip-t.fit4 { background: #eef8e6; }

/* ---------- Social page ---------- */
.wk { margin-bottom: 22px; } .wk-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } .wk-head h2 { margin: 0; }
.pgrid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pcard.st-drafted { border-left-color: #AFCDFF; } .pcard.st-approved { border-left-color: #86d36b; } .pcard.st-scheduled { border-left-color: var(--ink); }
.pc-head { display: flex; align-items: center; gap: 6px; } .pc-date { font-size: 12.5px; color: var(--muted); } .pc-status { font-size: 12px; padding: 3px 6px; }
.pc-theme { font-weight: 500; font-size: 15px; line-height: 1.25; } .pc-onscreen { font-size: 13px; color: var(--ink); background: var(--soft); border-radius: 8px; padding: 6px 10px; }
.pc-idea { font-size: 13px; color: var(--muted); line-height: 1.5; } .pc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mstrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.mth { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); }
.mth img { width: 100%; height: 100%; object-fit: cover; display: block; } .mth.on { border-color: var(--ink); } .mth.lead { border-color: var(--ink); box-shadow: 0 0 0 2px var(--pop); }
.mth i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(29,29,29,.75); color: #fff; font-style: normal; font-size: 10px; text-align: center; padding: 1px 0; }
.mth.lead i { background: var(--pop); color: var(--pop-ink); } .mth.more { display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted); border: 1.5px dashed var(--line-2); background: #fff; }
.pc-cap summary { cursor: pointer; font-size: 12.5px; color: var(--muted); } .pc-cap textarea { min-height: 120px; font-size: 12.5px; white-space: pre-wrap; } .pc-cap .field.grow { min-width: 160px; }
.pc-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; } .pc-note { font-size: 11.5px; }

.mth.vid { border-color: var(--ink); } .mth.vid i { background: rgba(29,29,29,.85); }

/* ---------- Media section ---------- */
.mres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mres { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.mres img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--soft); }
.mres-l { display: block; font-size: 12.5px; font-weight: 500; padding: 8px 10px 0; line-height: 1.3; } .mres-s { display: block; font-size: 11px; color: var(--muted); padding: 2px 10px 9px; }
.mres .mlow { top: 8px; right: 8px; }
.mres-set { display: none; gap: 4px; flex-wrap: wrap; padding: 0 8px 8px; } .mres:hover .mres-set { display: flex; } .mres-set .chip { font-size: 11px; padding: 3px 8px; }
.slots-m { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } @media (max-width: 900px) { .slots-m { grid-template-columns: repeat(2, 1fr); } }
.slot-img { aspect-ratio: 4/3; background: var(--soft) center/cover no-repeat; border-radius: 10px; position: relative; border: 1px solid var(--line); }
.slot-k { position: absolute; left: 8px; top: 8px; background: rgba(29,29,29,.8); color: #fff; font-size: 10.5px; border-radius: 6px; padding: 2px 7px; }
.mtile .ph { position: relative; }
.mpart summary { cursor: pointer; list-style: none; } .mpart summary::-webkit-details-marker { display: none; } .mpart[open] summary { margin-bottom: 8px; }

/* ---------- content checks (Generate table, Parks tiles) ---------- */
td.checks { max-width: 300px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px; }
.tile .checks { margin-top: 6px; }
.chk { display: inline-block; font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: 999px; white-space: nowrap; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.chk.bad { background: #FDE8E8; color: #A12626; } .chk.warn { background: #FFF1D6; color: #8A5A00; } .chk.pending { background: #E8F1FF; color: #2A4E8A; }
.chk.ok { background: var(--pop); color: var(--pop-ink); } .chk.muted { background: var(--soft); color: var(--muted); border-color: var(--line); }
a.chk:hover { filter: brightness(.95); }

/* ---------- Review list ---------- */
.rv-list { display: flex; flex-direction: column; gap: 10px; }
.rv-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rv-name b { font-size: 15px; font-weight: 500; } .rv-status { margin-top: 6px; } .rv-actions { margin-top: 10px; }
.rv-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rv-img { display: block; aspect-ratio: 4/3; border-radius: 10px; background: var(--soft) center/cover no-repeat; position: relative; border: 1px solid var(--line); }
.rv-photo.empty .rv-img { display: grid; place-items: center; }
.rv-k { position: absolute; left: 8px; top: 8px; background: rgba(29,29,29,.8); color: #fff; font-size: 10.5px; border-radius: 6px; padding: 2px 7px; }
.rv-img .mlow { top: 8px; right: 8px; }
.rv-cap { width: 100%; margin-top: 6px; font-size: 13px; padding: 7px 9px; } .rv-cap:disabled { background: var(--soft); color: var(--muted); }
@media (max-width: 1100px) { .rv-row { grid-template-columns: 1fr; } .rv-photos { grid-template-columns: repeat(3, 1fr); } }
