/* Spearhead Hub. The spearheadmedia.com design language: Antonio capitals, Inter, teal.
   Plain CSS, no build step. Tokens, base, shell, components, then each page. */

:root {
  --bg: #0B0C0D;
  --rail: #0F1011;
  --panel: #151618;
  --panel-2: #1C1D20;
  --panel-3: #26272B;
  --ink: #F2F3F5;
  --ink-2: rgba(242,243,245,.68);
  --muted: rgba(242,243,245,.46);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --accent: #3CCBB1;
  --accent-2: #21AD96;
  --brand: #007565;
  --on-accent: #04231E;
  --warn: #F2B544;
  --danger: #FF6A5C;
  --info: #7AA7FF;
  --ok: #3CCBB1;
  --sweep: rgba(255,255,255,.06);
  --shadow: 0 30px 80px rgba(0,0,0,.55);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.35);
  --display: "Antonio", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --rail-w: 256px;
  --top-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F4F0;
  --rail: #EEECE6;
  --panel: #FFFFFF;
  --panel-2: #F7F6F2;
  --panel-3: #ECEAE4;
  --ink: #16181A;
  --ink-2: rgba(22,24,26,.72);
  --muted: rgba(22,24,26,.5);
  --line: rgba(22,24,26,.09);
  --line-2: rgba(22,24,26,.18);
  --accent: #007565;
  --accent-2: #0A5A4E;
  --on-accent: #FFFFFF;
  --warn: #B7791F;
  --danger: #C8412F;
  --info: #3B6FD8;
  --ok: #007565;
  --sweep: rgba(0,117,101,.07);
  --shadow: 0 24px 60px rgba(22,24,26,.14);
  --shadow-sm: 0 8px 22px rgba(22,24,26,.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[x-cloak] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .94; letter-spacing: .01em; text-wrap: balance; }
.h1 { font-size: clamp(2.7rem, 5.4vw, 4.9rem); }
.h2 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); }
.h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.05; letter-spacing: .005em; }
.h4 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.1; letter-spacing: .01em; }
.em { display: inline-block; transform: skewX(-8deg); color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .7rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: var(--line-2); }
.eyebrow .num { font-family: var(--display); font-size: 19px; line-height: 1; letter-spacing: 0; color: var(--accent); }
.nums { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: .82rem; }
.tiny { font-size: .72rem; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; overflow-y: auto; scrollbar-width: thin; }
.mark { display: flex; align-items: center; gap: .65rem; padding: 4px 8px 6px; }
.mark img { height: 26px; width: auto; }
:root:not([data-theme="light"]) .mark img { filter: invert(1) brightness(1.6); }
.mark span { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .05em; text-transform: uppercase; word-spacing: -.14em; line-height: 1; }
.mark b { font-weight: 200; color: var(--accent); }

.create { position: relative; }
.create > button { width: 100%; justify-content: center; }
.create-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.create-menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem .65rem; border-radius: 9px; }
.create-menu a:hover { background: var(--panel-2); }
.create-menu small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.create-menu b { font-weight: 600; font-size: .9rem; }

.nav { display: grid; gap: 2px; }
.nav-label { font-size: .64rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); padding: .85rem .7rem .3rem; display: flex; align-items: center; gap: .5rem; }
.nav a { position: relative; display: flex; align-items: center; gap: .72rem; padding: .56rem .7rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--panel-2); color: var(--ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.nav .count--quiet { background: var(--panel-3); color: var(--ink-2); }
.nav .sub a { padding: .38rem .7rem .38rem .8rem; font-size: .86rem; }
.nav .sub .pf { width: 22px; height: 22px; border-radius: 7px; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--c, var(--accent)); flex: none; }

.rail-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 12px; }
.me__text { min-width: 0; line-height: 1.25; }
.me__text b { display: block; font-weight: 600; font-size: .88rem; }
.me__text span { font-size: .74rem; color: var(--muted); }
.me .icon-btn { margin-left: auto; }
.avatar { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, var(--brand), var(--accent-2)); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.avatar--sm { width: 26px; height: 26px; font-size: 11px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: width .5s var(--ease), opacity .4s; }
.brands { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.brands::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .45rem; height: 32px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-on .dot { box-shadow: 0 0 0 2px var(--ink); }
.search { margin-left: auto; position: relative; flex: 0 1 260px; }
.search input { width: 100%; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); padding: 0 2.6rem 0 2.2rem; font-size: .85rem; transition: border-color .2s; }
.search input:focus { outline: none; border-color: var(--accent); }
.search .ic { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.kbd { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font-size: .68rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 .35rem; line-height: 1.4; }
.clock { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.clock i { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.page { width: 100%; max-width: 1520px; padding: 36px 32px 110px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__lede { max-width: 62ch; color: var(--ink-2); margin-top: .95rem; font-size: 1rem; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flash { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 500; margin-bottom: 20px; }
.errors { padding: .85rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); margin-bottom: 20px; }
.errors ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 70; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; gap: 4px; }
  .rail .mark, .rail .nav-label, .rail .sub, .rail .me__text, .rail-foot .theme-label, .rail .create { display: none; }
  .rail .nav { display: flex; gap: 2px; }
  .rail .nav.sub { display: none; }
  .rail .nav a { flex-direction: column; gap: 2px; font-size: .66rem; padding: .4rem .55rem; }
  .rail .nav a[aria-current="page"]::before { display: none; }
  .rail .nav .count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: .6rem; }
  .rail-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; }
  .top { padding: 0 16px; }
  .clock { display: none; }
  .page { padding: 24px 16px 110px; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; padding: 0 17px; border-radius: 999px; font-weight: 600; font-size: .87rem; letter-spacing: .005em; border: 1px solid var(--line-2); background: transparent; white-space: nowrap; transition: transform .35s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn .ic { width: 16px; height: 16px; }
.btn--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn--accent:hover { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn--ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn--ink:hover { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: var(--panel-2); border-color: transparent; }
.btn--danger { color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); }
.btn--sm { height: 32px; padding: 0 12px; font-size: .8rem; }
.btn--lg { height: 48px; padding: 0 24px; font-size: .95rem; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); gap: 2px; }
.seg a, .seg button { height: 30px; padding: 0 .9rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .is-on { background: var(--ink); color: var(--bg); }
.seg .n { font-size: .7rem; opacity: .6; font-weight: 500; }

.field { display: grid; gap: .45rem; }
.field > label, .label { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.label .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 12px; padding: .72rem .9rem; font-size: .92rem; line-height: 1.45; transition: border-color .2s, background .2s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.textarea { resize: vertical; min-height: 150px; }
.hint { font-size: .78rem; color: var(--muted); }
.input--big { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: .01em; padding: .6rem .9rem; }
.check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .88rem; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- surfaces ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; overflow: hidden; }
.card--flat { background: transparent; }
.card--tight { padding: 14px; }
.card--sweep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, var(--sweep) 50%, transparent 68%); transform: translateX(-110%); transition: transform 1s var(--ease); pointer-events: none; }
.card--sweep:hover::after { transform: translateX(110%); }
.card--link { transition: border-color .25s, transform .4s var(--ease); }
.card--link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head .eyebrow { margin: 0; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; align-items: center; gap: .6rem; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.stat { display: grid; gap: .35rem; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .88; letter-spacing: .005em; }
.stat__label { font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); }
.stat__note { font-size: .82rem; color: var(--muted); }
.stat--warn .stat__num { color: var(--warn); }
.stat--danger .stat__num { color: var(--danger); }
.stat--accent .stat__num { color: var(--accent); }

.pill { display: inline-flex; align-items: center; gap: .35rem; height: 22px; padding: 0 .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--panel-3); color: var(--ink-2); white-space: nowrap; }
.pill--brand { background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 99px; background: var(--muted); }
.status--draft i { background: var(--muted); }
.status--in_review i { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.status--in_review { color: var(--warn); }
.status--approved i, .status--scheduled i, .status--publishing i { background: var(--info); }
.status--published i, .status--sent i { background: var(--ok); }
.status--failed i, .status--partial i { background: var(--danger); }
.status--failed, .status--partial { color: var(--danger); }
.status--cancelled i, .status--skipped i { background: var(--panel-3); }

.pf { --c: var(--accent); width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 17%, transparent); color: var(--c); }
.pf .ic { width: 58%; height: 58%; }
.pf--xs { width: 18px; height: 18px; border-radius: 5px; }
.pf--xs .ic { width: 70%; height: 70%; }
.pf--sm { width: 24px; height: 24px; border-radius: 7px; }
.pf--lg { width: 46px; height: 46px; border-radius: 13px; }
.pf--xl { width: 76px; height: 76px; border-radius: 22px; }
.pf[class*="pf--"]:has(.pf__label) { width: auto; padding: 0 .6rem 0 .35rem; gap: .35rem; }
.pf__label { font-size: .78rem; font-weight: 600; color: var(--ink); }
.pfs { display: inline-flex; }
.pfs .pf { box-shadow: 0 0 0 2px var(--panel); }
.pfs .pf + .pf { margin-left: -5px; }

.thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel-3); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__badge { position: absolute; right: 5px; bottom: 5px; font-size: .66rem; font-weight: 600; padding: 0 .35rem; border-radius: 5px; background: rgba(0,0,0,.62); color: #fff; line-height: 1.5; }

.empty { display: grid; place-items: center; text-align: center; gap: .6rem; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
.empty .h3 { color: var(--ink); }
.empty .ic { width: 34px; height: 34px; color: var(--accent); }

.bar { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .8s var(--ease); }
.bar.is-over i { background: var(--danger); }

.problems { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.problems li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
.problems li .ic { width: 16px; height: 16px; margin-top: 1px; }
.problems .bad .ic { color: var(--warn); }
.problems .ok .ic { color: var(--ok); }

.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.modal { width: min(980px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal__body { padding: 18px; overflow: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }

/* reveal: only hidden once the script has said it will reveal, so content never depends on it */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } .card--sweep::after { display: none; } }

/* ---------- today ---------- */
.today-hero .h1 { max-width: 16ch; }
.datecard { text-align: right; }
.datecard b { display: block; font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: .82; }
.datecard span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); gap: 0 12px; padding: 0 0 18px; position: relative; }
.tl:last-child { padding-bottom: 0; }
.tl__time { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-align: right; padding-top: 2px; color: var(--ink-2); }
.tl__rail { position: relative; display: flex; justify-content: center; }
.tl__rail::before { content: ""; position: absolute; top: 18px; bottom: -18px; width: 1px; background: var(--line-2); }
.tl:last-child .tl__rail::before { display: none; }
.tl__rail i { position: relative; margin-top: 6px; width: 11px; height: 11px; border-radius: 99px; border: 2px solid var(--c, var(--accent)); background: var(--panel); }
.tl--past .tl__rail i { background: var(--c, var(--accent)); }
.tl__body { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .2s; }
.tl__body:hover { border-color: var(--line-2); }
.tl__body .thumb { width: 52px; height: 52px; }
.tl__title { font-weight: 600; line-height: 1.3; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wd { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); min-height: 118px; transition: border-color .2s; }
.wd:hover { border-color: var(--line-2); }
.wd.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.wd__dow { font-size: .66rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.wd__num { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: .9; }
.wd__dots { display: flex; flex-wrap: wrap; gap: 3px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick a { display: grid; gap: .6rem; padding: 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .2s, transform .35s var(--ease); }
.quick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick a .ic { width: 22px; height: 22px; color: var(--accent); }
.quick b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .01em; }
@media (max-width: 1180px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .week { grid-template-columns: repeat(7, minmax(84px, 1fr)); overflow-x: auto; } }
.health { display: grid; gap: 2px; }
.health a { display: flex; align-items: center; gap: .6rem; padding: .45rem .2rem; font-size: .86rem; border-bottom: 1px solid var(--line); }
.health a:last-child { border: 0; }
.health .status { margin-left: auto; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.strip .thumb { aspect-ratio: 1; }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2.4rem; line-height: .9; letter-spacing: .01em; min-width: 7ch; }
.cal-nav { display: inline-flex; gap: 4px; }
.cal-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pchip { display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 .7rem 0 .35rem; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.pchip .pf { width: 22px; height: 22px; border-radius: 99px; }
.pchip:hover { border-color: var(--line-2); color: var(--ink); }
.pchip.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); }

.cal { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); min-width: 940px; }
.cal-dow { padding: .6rem .7rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.cal-day { position: relative; min-height: 138px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background .2s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-out { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.cal-day.is-out .cal-num { color: var(--muted); }
.cal-day.is-weekend:not(.is-out) { background: color-mix(in srgb, var(--panel-2) 35%, transparent); }
.cal-day.is-over { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day__top { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 2px; }
.cal-num { font-family: var(--display); font-weight: 600; font-size: 1.05rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 99px; }
.cal-day.is-today .cal-num { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cal-add { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.cal-add .ic { width: 14px; height: 14px; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-add:hover { background: var(--panel-3); color: var(--ink); }
.cal-more { font-size: .72rem; color: var(--muted); padding: 0 4px; }

.ev { --c: var(--accent); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 5px 7px 5px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c) 11%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); font-size: .74rem; line-height: 1.2; transition: transform .25s var(--ease), border-color .2s, box-shadow .2s; }
.ev::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.ev:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-1px); box-shadow: var(--shadow-sm); z-index: 2; }
.ev[draggable="true"] { cursor: grab; }
.ev.is-dragging { opacity: .45; }
.ev__main { min-width: 0; }
.ev__time { font-weight: 700; font-size: .68rem; color: var(--ink-2); }
.ev__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .pfs .pf { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 11%, var(--panel-2)); }
.ev.st-in_review { border-style: dashed; border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.ev.st-failed, .ev.st-partial { border-color: color-mix(in srgb, var(--danger) 70%, transparent); }
.ev.st-published .ev__title::after, .ev.st-sent .ev__title::after { content: " ✓"; color: var(--ok); }
.ev.st-draft { opacity: .78; }

.cw { display: grid; grid-template-columns: repeat(7, minmax(160px, 1fr)); min-width: 1120px; }
.cw-col { border-right: 1px solid var(--line); min-height: 560px; display: flex; flex-direction: column; }
.cw-col:last-child { border-right: 0; }
.cw-head { padding: 12px 12px 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); display: flex; align-items: baseline; gap: .5rem; }
.cw-head b { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: .9; }
.cw-head span { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cw-col.is-today .cw-head b { color: var(--accent); }
.cw-body { padding: 8px; display: grid; gap: 8px; align-content: start; flex: 1; transition: background .2s; }
.cw-col.is-over .cw-body { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.wcard { --c: var(--accent); display: grid; gap: 7px; padding: 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--c); transition: border-color .2s, transform .3s var(--ease); }
.wcard:hover { transform: translateY(-2px); border-color: var(--line-2); border-top-color: var(--c); }
.wcard .thumb { aspect-ratio: 4 / 3; width: 100%; }
.wcard__title { font-weight: 600; font-size: .82rem; line-height: 1.3; }

.agenda { display: grid; gap: 22px; }
.ag-day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
.ag-date b { display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: .85; }
.ag-date span { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); }
.ag-date.is-today b { color: var(--accent); }
.ag-list { display: grid; gap: 8px; }
.ag-item { --c: var(--accent); display: grid; grid-template-columns: 70px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); transition: border-color .2s, transform .3s var(--ease); }
.ag-item:hover { border-color: var(--line-2); border-left-color: var(--c); transform: translateX(2px); }
.ag-item .thumb { width: 64px; height: 64px; }
.ag-item .thumb--icon { display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--panel-2)); }
.ag-time { font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-align: right; }
@media (max-width: 720px) { .ag-day { grid-template-columns: 1fr; } .ag-item { grid-template-columns: 56px minmax(0, 1fr); } .ag-item .thumb, .ag-item > :last-child { display: none; } }

/* ---------- social ---------- */
.pf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pf-tile { --c: var(--accent); display: grid; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .3s, transform .45s var(--ease); }
.pf-tile::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; border-radius: 99px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); opacity: .55; transition: opacity .4s, transform .6s var(--ease); pointer-events: none; }
.pf-tile:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-3px); }
.pf-tile:hover::before { opacity: .95; transform: scale(1.15); }
.pf-tile.is-off { opacity: .6; }
.pf-tile__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-tile__nums b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: .9; }
.pf-tile__nums span { display: block; margin-top: 4px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--c) 70%, transparent); }
.spark i.is-zero { background: var(--panel-3); }
.pf-hero { --c: var(--accent); position: relative; overflow: hidden; border-radius: 22px; padding: 30px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 55%), var(--panel); display: flex; gap: 22px 28px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.accounts { display: flex; gap: 8px; flex-wrap: wrap; }
.account { display: inline-flex; align-items: center; gap: .5rem; height: 34px; padding: 0 .8rem 0 .3rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 500; }
.account .avatar { width: 26px; height: 26px; font-size: 11px; background: color-mix(in srgb, var(--c) 60%, #000); }
.account.is-expired { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); }

.ig-profile { max-width: 520px; margin-inline: auto; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.ig-grid a { position: relative; aspect-ratio: 4 / 5; background: var(--panel-3); overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-grid a:hover img { transform: scale(1.05); }
.ig-grid .flag { position: absolute; left: 6px; top: 6px; }
.ig-grid .is-planned::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--warn); pointer-events: none; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.yt-card { display: grid; gap: 8px; }
.yt-card .thumb { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; }
.feed { display: grid; gap: 12px; max-width: 620px; }

/* ---------- composer ---------- */
.composer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 20px; align-items: start; }
@media (max-width: 1180px) { .composer { grid-template-columns: 1fr; } }
.cmp-side { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 16px; }
.section-title { display: flex; align-items: center; gap: .6rem; margin-bottom: 14px; }
.section-title .num { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--accent); line-height: 1; }
.section-title b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.brand-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-pick button { --c: var(--accent); display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--ink-2); transition: .2s; }
.brand-pick button:hover { border-color: var(--line-2); color: var(--ink); }
.brand-pick button.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tile { --c: var(--accent); display: flex; align-items: center; gap: .65rem; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); text-align: left; transition: border-color .2s, background .2s, transform .3s var(--ease); position: relative; }
.tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tile.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel-2)); }
.tile__check { margin-left: auto; width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: .2s; }
.tile.is-on .tile__check { background: var(--c); border-color: var(--c); color: #fff; }
.tile__check .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.tile__text { min-width: 0; line-height: 1.25; }
.tile__text b { display: block; font-size: .84rem; font-weight: 600; }
.tile__text span { display: block; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.is-expired .tile__text span { color: var(--danger); }
.limits { display: grid; gap: 6px; margin-top: 10px; }
.limit { display: grid; grid-template-columns: 22px 1fr 76px; gap: 8px; align-items: center; font-size: .74rem; color: var(--muted); }
.limit .pf { width: 20px; height: 20px; border-radius: 6px; }
.limit span { text-align: right; }
.limit.is-over span { color: var(--danger); font-weight: 600; }
.media-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.mt { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line); }
.mt img { width: 100%; height: 100%; object-fit: cover; }
.mt__n { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; font-weight: 700; }
.mt__tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .2s; }
.mt:hover .mt__tools { opacity: 1; }
.mt__tools button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.66); color: #fff; }
.mt__tools .ic { width: 14px; height: 14px; }
.mt--add { display: grid; place-items: center; gap: 4px; align-content: center; border-style: dashed; border-color: var(--line-2); color: var(--ink-2); background: transparent; font-size: .78rem; font-weight: 600; transition: border-color .2s, color .2s; }
.mt--add:hover { border-color: var(--accent); color: var(--accent); }
.mt--add .ic { width: 22px; height: 22px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--panel-2); text-align: left; transition: border-color .2s; }
.pick.is-on { border-color: var(--accent); }
.pick .thumb { aspect-ratio: 1; width: 100%; border-radius: 0; }
.pick__meta { padding: 7px 8px 9px; font-size: .74rem; line-height: 1.3; }
.pick__check { position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 99px; border: 2px solid #fff; background: rgba(0,0,0,.35); display: grid; place-items: center; color: transparent; }
.pick.is-on .pick__check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pick__check .ic { width: 13px; height: 13px; stroke-width: 2.8; }
.pick.is-blocked { opacity: .45; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.actionbar { position: sticky; bottom: 0; z-index: 30; margin-top: 18px; padding: 14px 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: linear-gradient(to top, var(--bg) 72%, transparent); }
.actionbar__group { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.actionbar__group .input { width: 200px; }
/* On a phone the nav rail is a fixed bar along the bottom; the actions sit just above it. */
@media (max-width: 900px) { .actionbar { bottom: calc(80px + env(safe-area-inset-bottom)); padding-bottom: 10px; } }
@media (max-width: 640px) { .actionbar__group { margin-left: 0; width: 100%; } .actionbar__group .input { flex: 1; width: auto; } }

.preview-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.preview-tabs button { flex: none; }
.device { margin-inline: auto; width: 100%; max-width: 380px; border-radius: 30px; padding: 10px; background: #0A0A0B; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.device__screen { border-radius: 22px; overflow: hidden; background: #fff; color: #111; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.4; }
.device__screen--dark { background: #000; color: #fff; }
.pv-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.pv-avatar { width: 32px; height: 32px; border-radius: 99px; background: linear-gradient(140deg, #007565, #3CCBB1); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex: none; }
.pv-avatar--ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #E1306C; }
.pv-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.pv-sub { font-size: 11px; color: #737373; }
.pv-media { position: relative; background: #e9e9e9; }
.pv-media img { width: 100%; height: 100%; object-fit: cover; }
.pv-media--45 { aspect-ratio: 4 / 5; }
.pv-media--11 { aspect-ratio: 1; }
.pv-media--169 { aspect-ratio: 16 / 9; }
.pv-media--916 { aspect-ratio: 9 / 16; }
.pv-media__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9a9a9a; font-size: 12px; }
.pv-dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; }
.pv-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.55); }
.pv-dots i:first-child { background: #fff; }
.pv-count { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.pv-actions { display: flex; gap: 14px; padding: 10px 12px 4px; }
.pv-actions .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.pv-actions .ic:last-child { margin-left: auto; }
.pv-caption { padding: 4px 12px 14px; white-space: pre-wrap; word-break: break-word; }
.pv-caption b { font-weight: 600; margin-right: 4px; }
.pv-caption .more { color: #737373; }
.pv-text { padding: 0 12px 10px; white-space: pre-wrap; word-break: break-word; }
.pv-link { margin: 0 12px 12px; border: 1px solid #e3e3e3; border-radius: 10px; padding: 8px 10px; font-size: 12px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-bar { display: flex; justify-content: space-around; border-top: 1px solid #ececec; padding: 8px 6px; font-size: 12px; font-weight: 600; color: #606770; }
.pv-yt-title { padding: 10px 12px 2px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.pv-tt { position: relative; }
.pv-tt__over { position: absolute; left: 0; right: 56px; bottom: 0; padding: 14px 12px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
.pv-tt__rail { position: absolute; right: 8px; bottom: 60px; display: grid; gap: 16px; color: #fff; justify-items: center; }
.pv-tt__rail .ic { width: 26px; height: 26px; }
.pv-gb-btn { margin: 0 12px 12px; display: inline-flex; padding: 6px 14px; border-radius: 99px; border: 1px solid #dadce0; color: #1a73e8; font-weight: 600; font-size: 12px; }
.pv-empty { padding: 40px 20px; text-align: center; color: #8a8a8a; }

/* ---------- library ---------- */
.lib-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.lib-toolbar .input { max-width: 340px; border-radius: 999px; height: 40px; padding: 0 1rem; }
.lib-grid { columns: 5 220px; column-gap: 12px; }
.lib-card { position: relative; break-inside: avoid; margin-bottom: 12px; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .4s var(--ease); }
.lib-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lib-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lib-card__img { position: relative; background: var(--panel-3); cursor: pointer; }
.lib-card__img img { width: 100%; height: auto; min-height: 120px; object-fit: cover; }
.lib-card__over { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); opacity: 0; transition: opacity .25s; }
.lib-card:hover .lib-card__over, .lib-card.is-selected .lib-card__over { opacity: 1; }
.lib-check { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 99px; border: 2px solid #fff; background: rgba(0,0,0,.3); display: grid; place-items: center; color: transparent; opacity: 0; transition: opacity .2s, background .2s; }
.lib-card:hover .lib-check, .lib-card.is-selected .lib-check { opacity: 1; }
.lib-card.is-selected .lib-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lib-check .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.lib-kind { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; font-weight: 600; }
.lib-kind .ic { width: 11px; height: 11px; }
.lib-card__meta { padding: 10px 12px 12px; display: grid; gap: 4px; }
.lib-card__title { font-weight: 600; font-size: .84rem; line-height: 1.3; }
.selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; display: flex; gap: 12px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.selbar .btn { border-color: transparent; }
.selbar .btn--ghost { color: var(--bg); opacity: .7; }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 26px; border: 1.5px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--ink-2); transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--ink); }
.dropzone .ic { width: 28px; height: 28px; color: var(--accent); }
.drawer-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); }
.drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.drawer__media { background: #000; max-height: 56vh; display: grid; place-items: center; }
.drawer__media img, .drawer__media video { max-height: 56vh; width: 100%; object-fit: contain; }
.drawer__body { padding: 20px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .86rem; margin: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; }

/* ---------- email ---------- */
.series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.series { --c: var(--accent); position: relative; display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-align: left; overflow: hidden; transition: border-color .25s, transform .4s var(--ease); }
.series::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.series:hover { border-color: var(--line-2); transform: translateY(-2px); }
.series.is-on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.series__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; line-height: .95; letter-spacing: .01em; }
.series code { font-size: .74rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 1px 6px; border-radius: 5px; justify-self: start; }
.inbox { border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.inbox__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; }
.inbox__row + .inbox__row { border-top: 1px solid var(--line); opacity: .45; }
.inbox__from { font-weight: 700; font-size: .86rem; }
.inbox__line { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__line b { font-weight: 600; }
.inbox__line span { color: var(--muted); }
.block { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.block__head { display: flex; align-items: center; gap: .5rem; }
.block__head .ic { color: var(--muted); }
.email-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-2); box-shadow: var(--shadow); }
.email-frame__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.email-frame__bar i { width: 10px; height: 10px; border-radius: 99px; background: var(--panel-3); }
.email-frame iframe { display: block; width: 100%; height: 760px; border: 0; background: #f3f2ee; transition: width .4s var(--ease); margin-inline: auto; }
.email-frame.is-phone iframe { width: 390px; max-width: 100%; }
.guard { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--panel)); }
.guard .ic { color: var(--warn); }
.guard--info { border-color: color-mix(in srgb, var(--info) 35%, transparent); background: color-mix(in srgb, var(--info) 7%, var(--panel)); }
.guard--info .ic { color: var(--info); }

/* ---------- approvals ---------- */
.appr { display: grid; gap: 14px; }
.appr-card { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 0; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.appr-media { position: relative; background: var(--panel-3); min-height: 220px; }
.appr-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.appr-media__icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c, var(--accent)); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c, var(--accent)) 26%, transparent), transparent 60%); }
.appr-media__icon .ic { width: 54px; height: 54px; }
.appr-body { padding: 18px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.appr-actions { padding: 18px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: var(--panel-2); }
@media (max-width: 1100px) { .appr-card { grid-template-columns: 1fr; } .appr-media { min-height: 200px; } .appr-actions { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- leads ---------- */
/* A lead has no picture, so it gets two columns rather than an empty media well. */
.lead-list { display: grid; gap: 12px; }
.lead-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); overflow: hidden; }
.lead-card .appr-body { padding: 16px 18px; gap: 7px; }
.lead-card .appr-actions { align-content: center; }
@media (max-width: 760px) { .lead-card { grid-template-columns: minmax(0, 1fr); } .lead-card .appr-actions { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- listing videos ---------- */
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lv-card { display: grid; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .45s var(--ease); }
.lv-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.lv-card__img { position: relative; aspect-ratio: 16 / 9; background: var(--panel-3); overflow: hidden; }
.lv-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lv-card:hover .lv-card__img img { transform: scale(1.04); }
.lv-card__img .status { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.66); color: #fff; }
.lv-card__img .thumb__badge { right: 10px; bottom: 10px; }
.lv-card__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.lv-card.is-preparing .lv-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--sweep) 50%, transparent 70%); animation: shimmer 1.6s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.player { border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.thumb-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.thumb-pick { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel-3); border: 2px solid transparent; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .35s var(--ease); }
.thumb-pick:hover { transform: translateY(-2px); }
.thumb-pick img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pick.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.thumb-pick__n { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: rgba(0,0,0,.62); color: #fff; font-size: .72rem; font-weight: 700; }
.thumb-pick.is-on .thumb-pick__n { background: var(--accent); color: var(--on-accent); }
.opt-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: border-color .2s, background .2s; }
.opt-card:hover { border-color: var(--line-2); }
.opt-card.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel-2)); }
.opt-card__radio { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 99px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.opt-card.is-on .opt-card__radio { border-color: var(--accent); }
.opt-card.is-on .opt-card__radio::after { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.opt-card__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.opt-card__meta { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .74rem; padding: 2px 9px; border-radius: 99px; background: var(--panel-3); color: var(--ink-2); }
.meta-list dd.is-gap { color: var(--warn); }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
@media (max-width: 960px) { .login { grid-template-columns: 1fr; } .login__art { min-height: 46vh; } }
.login__art { position: relative; overflow: hidden; padding: 38px; display: flex; flex-direction: column; justify-content: space-between; background: #07080A; color: #F2F3F5; isolation: isolate; }
.login__art::before { content: ""; position: absolute; inset: -20%; z-index: -2; background: radial-gradient(40% 40% at 25% 30%, rgba(60,203,177,.35), transparent 70%), radial-gradient(35% 35% at 80% 70%, rgba(0,117,101,.5), transparent 70%), radial-gradient(30% 30% at 60% 15%, rgba(33,173,150,.25), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.login__art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent); }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 2%, 0) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .login__art::before { animation: none; } }
.login__art .mark img { filter: invert(1) brightness(1.6); }
.login__art .display { font-size: clamp(3.2rem, 7.5vw, 7.8rem); }
.login__art .em { color: #3CCBB1; }
.login__platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.login__form { display: grid; place-items: center; padding: 38px; background: var(--bg); }
.login__card { width: min(400px, 100%); display: grid; gap: 18px; }
.badge-ring { position: absolute; right: 38px; top: 38px; width: 118px; height: 118px; }
.badge-ring svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-ring text { font-family: var(--display); font-size: 10.5px; letter-spacing: .18em; fill: rgba(242,243,245,.75); text-transform: uppercase; }
.badge-ring i { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; background: #3CCBB1; -webkit-mask: url(/img/logo-mark-black.png) center / contain no-repeat; mask: url(/img/logo-mark-black.png) center / contain no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge-ring svg { animation: none; } }

/* ---------- contacts ---------- */
/* The list beside the one contact being looked at. Not .cw, which is the calendar's week grid. */
.people { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.people > aside { position: sticky; top: 12px; }
.lead-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 1100px) { .people { grid-template-columns: minmax(0, 1fr); } .people > aside { position: static; } }

/* ---------- paid ads ---------- */
/* The ad as it sits in a Facebook feed. Light on purpose: that is what the feed looks like. */
.adprev { background: #fff; color: #050505; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.adprev__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.adprev__head b { display: block; font-size: .9rem; }
.adprev__head small { display: block; font-size: .75rem; color: #65676b; }
.adprev__avatar { width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; display: grid; place-items: center; overflow: hidden; flex: none; }
.adprev__avatar img { width: 22px; height: 22px; object-fit: contain; }
.adprev__text { margin: 0 12px 10px; font-size: .88rem; line-height: 1.35; white-space: pre-line; }
.adprev__text .muted { color: #65676b; }
.adprev__media { aspect-ratio: 1; background: #f0f2f5; }
.adprev__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adprev__empty { display: grid; place-items: center; height: 100%; color: #bcc0c4; }
.adprev__empty .ic { width: 44px; height: 44px; }
.adprev__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.adprev__foot small { display: block; font-size: .7rem; color: #65676b; letter-spacing: .02em; }
.adprev__foot b { display: block; font-size: .92rem; line-height: 1.25; }
.adprev__cta { flex: none; padding: 7px 12px; border-radius: 6px; background: #e4e6eb; font-size: .82rem; font-weight: 600; }
.ad-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ad-dates .input { min-width: 0; width: 100%; }

/* ---------- insights ---------- */
.ins-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.ins-wide { grid-column: 1 / -1; }
.ins-multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 28px; }
.ins-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ins-sub b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; }
/* A bar list that is also its own table view: label, bar, value. */
.ins-bars { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ins-bars th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 5px 10px 5px 0; white-space: nowrap; width: 1%; }
.ins-bars td.nums { text-align: right; padding-left: 10px; color: var(--ink); width: 1%; white-space: nowrap; }
.ins-bars tr:hover th, .ins-bars tr:hover td.nums { color: var(--ink); }
.ins-bar-cell { position: relative; width: auto; padding: 5px 0; }
/* Thin mark, recessive track, 4px rounded data end, square at the baseline. */
.ins-bar { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--panel-3); overflow: hidden; }
.ins-bar i { display: block; height: 100%; min-width: 3px; background: var(--accent); border-radius: 0 4px 4px 0; }
.ins-bars tr:hover .ins-bar i { filter: brightness(1.12); }
/* Hover layer: the whole row is the target, the tip carries the detail. */
.ins-bar-cell[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% - 2px); z-index: 5; padding: 5px 8px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.ins-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.ins-facts dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.ins-facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.ins-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 24px; }
.ins-sources li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: start; }
.ins-state { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.ins-state .ic { width: 15px; height: 15px; }
.ins-state--on .ic { color: var(--ok); }
.ins-state--off .ic { color: var(--warn); }
.ins-state--later .ic { color: var(--muted); }
@media (max-width: 520px) { .ins-sources li { grid-template-columns: 1fr; gap: 2px; } }
.seg--sm button, .seg--sm a { height: 24px; padding: 0 .65rem; font-size: .72rem; text-transform: none; letter-spacing: 0; }
/* One tab per ad in a campaign. */
.ad-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ad-tab { position: relative; display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); transition: border-color .2s, box-shadow .2s; }
.ad-tab > button:first-child { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; text-align: left; }
.ad-tab.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ad-tab__thumb { position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; color: var(--muted); flex: none; }
.ad-tab__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-tab__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.28); }
.ad-tab__play .ic { width: 16px; height: 16px; }
.ad-tab__text { display: grid; gap: 2px; }
.ad-tab__text b { font-size: .85rem; }
.ad-tab__text small { font-size: .72rem; color: var(--muted); }
.ad-tab__text .status { font-size: .7rem; }
.ad-tab__x { width: 26px; border-left: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.ad-tab__x:hover { color: var(--danger); }
.ad-tab--add { align-items: center; gap: .4rem; padding: 0 14px; min-height: 58px; border-style: dashed; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.ad-tab--add:hover { color: var(--ink); border-color: var(--line-2); }
.adprev__media { position: relative; }
.adprev__media--video { aspect-ratio: 16 / 9; }
.adprev__play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.adprev__play .ic { width: 22px; height: 22px; margin-left: 3px; }
.adprev__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; font-weight: 600; }
.adprev__desc { margin-top: 2px; }
/* Claude's versions of the ad copy, side by side. */
.ad-writer { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--panel); }
.ad-versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ad-version { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.ad-version__text { margin: 0; font-size: .86rem; line-height: 1.45; white-space: pre-line; }
.ad-version__head b { display: block; font-size: .92rem; }
.ad-version__head small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }

/* Chat automations */
.linkish { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.linkish:hover { color: var(--accent); }
.setup-steps { display: grid; gap: 10px; margin: 0; padding-left: 1.3rem; font-size: .9rem; line-height: 1.55; }
.setup-steps li::marker { color: var(--accent); font-weight: 700; }
.setup-steps code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; overflow-wrap: anywhere; }
.code { display: block; margin-top: 8px; padding: .7rem .9rem; white-space: pre; overflow-x: auto; }
.code i { color: var(--accent); font-style: normal; }
.copy { user-select: all; }
.lead-card .appr-actions .input { padding: .45rem .7rem; font-size: .85rem; }

/* Events & launches */
.mo-date { flex: none; width: 52px; height: 56px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-content: center; text-align: center; line-height: 1; }
.mo-date b { font-family: var(--display); font-size: 1.55rem; }
.mo-date span { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.mo-suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-bottom: 1.6rem; }
.mo-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--panel); }
@media (max-width: 520px) { .mo-card { grid-template-columns: auto minmax(0, 1fr); } .mo-card > .row { grid-column: 1 / -1; } }
.mo-progress { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; max-width: 320px; }
.mo-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.mo-weeks { display: grid; gap: 18px; }
.mo-week { display: grid; gap: 6px; }
.mo-week__head { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mo-task { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); }
.mo-task.is-late { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.mo-task.is-closed { opacity: .55; }
.mo-task.is-closed b { text-decoration: line-through; text-decoration-color: var(--muted); }
.mo-task__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--accent); }
.mo-task__body { display: grid; gap: 3px; min-width: 0; }
.mo-task__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .mo-task { grid-template-columns: 34px minmax(0, 1fr); } .mo-task__actions { grid-column: 2; justify-content: flex-start; } }
.mo-past { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mo-past li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cal-moment { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: -2px 0 4px; }
.cal-moment.is-suggested { color: var(--muted); font-weight: 600; }
.next-task { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.next-task:last-child { border-bottom: 0; }
.next-task .mo-task__icon { width: 30px; height: 30px; border-radius: 9px; }
.next-task.is-late .when { color: var(--danger); font-weight: 600; }

/* Weekly plan */
.plan-writing { display: flex; gap: 14px; align-items: center; margin-bottom: 1.4rem; }
.plan-writing > .ic { color: var(--accent); width: 28px; height: 28px; animation: plan-pulse 1.6s var(--ease) infinite; }
@keyframes plan-pulse { 50% { opacity: .35; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .plan-writing > .ic { animation: none; } }
.plan-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.2rem; }
.plan-summary { margin: 0; max-width: 70ch; font-size: 1.02rem; line-height: 1.55; }
.plan-approve { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-day__date { display: grid; align-content: start; line-height: 1.05; }
.plan-day__date b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.plan-day__date span { font-size: .74rem; color: var(--muted); }
.plan-day__items { display: grid; gap: 10px; }
.plan-item { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); }
.plan-item.is-dropped { opacity: .5; }
.plan-item.is-dropped b { text-decoration: line-through; }
.plan-item__top { display: flex; gap: 12px; align-items: flex-start; }
.plan-item__body { display: grid; gap: 8px; }
.plan-item__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-text { margin: 0; white-space: pre-line; color: var(--ink-2); font-size: .9rem; line-height: 1.5; max-width: 72ch; }
.plan-media { display: flex; gap: 6px; align-items: center; }
.plan-media .thumb { width: 64px; height: 64px; }
.plan-edit { display: grid; gap: 8px; }
@media (max-width: 640px) { .plan-day { grid-template-columns: 1fr; gap: 8px; } .plan-day__date { display: flex; gap: 8px; align-items: baseline; } }

/* Ad results */
.res-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 14px; }
.res-totals div { display: grid; }
.res-totals b { font-family: var(--display); font-size: 1.6rem; line-height: 1.05; }
.res-totals span { font-size: .74rem; color: var(--muted); }
.res-chart { margin: 0 0 14px; display: grid; gap: 6px; }
.res-chart svg { width: 100%; height: 72px; display: block; }
.res-bar { fill: var(--accent); }
.res-bar:hover { fill: var(--ink); }
.res-base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.res-axis { display: flex; justify-content: space-between; }
.res-ads { width: 100%; border-collapse: collapse; font-size: .84rem; }
.res-ads th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.res-ads td { padding: 6px 0; border-top: 1px solid var(--line); }
.res-ads th.nums, .res-ads td.nums { text-align: right; }

/* Ad platforms */
.plat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.plat-pick button { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; }
.plat-pick button .ic { color: var(--c); margin-top: 2px; }
.plat-pick button b { display: block; color: var(--ink); font-size: .86rem; }
.plat-pick button small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.plat-pick button:hover { border-color: var(--line-2); }
.plat-pick button.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel-2)); }
.mono-lines { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; line-height: 1.6; }
.gprev { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-sm); background: #fff; color: #202124; font-family: Arial, Helvetica, sans-serif; }
.gprev__sponsored { font-size: .75rem; font-weight: 700; }
.gprev__site { display: flex; gap: 10px; align-items: center; }
.gprev__site b { display: block; font-size: .86rem; font-weight: 400; }
.gprev__site small { display: block; font-size: .74rem; color: #4d5156; }
.gprev__fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; }
.gprev__fav img { width: 16px; height: 16px; }
.gprev__title { color: #1a0dab; font-size: 1.12rem; line-height: 1.3; }
.gprev__desc { font-size: .84rem; line-height: 1.5; color: #4d5156; }
.pf-ad { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.pf-ad .ic { color: var(--c); width: 14px; height: 14px; }
.plat-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 1.1rem; }
.plat-chip { flex: none; display: grid; gap: 2px; text-align: left; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.plat-chip b { color: var(--ink); font-size: .86rem; }
.plat-chip small { font-size: .72rem; color: var(--muted); }
.plat-chip .ic { color: var(--c, var(--accent)); width: 16px; height: 16px; }
.plat-chip.is-on { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 10%, var(--panel)); }
.g-writer { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); }
.g-suggest { display: grid; gap: 6px; padding: 12px; border-radius: var(--r-sm); border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); }

/* SEO */
.seo-issue { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; }
.seo-issue:hover { background: var(--panel-2); }
.seo-issue.is-on { border-color: var(--accent); background: var(--panel-2); }
.seo-issue b { font-family: var(--display); font-size: 1.15rem; }
.seo-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.seo-table th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.seo-table td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.seo-table .nums { text-align: right; padding-left: 10px; white-space: nowrap; }
.seo-page { display: grid; gap: 10px; }
.promote-menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20; display: grid; min-width: 240px; padding: 6px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.promote-menu button { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font-size: .86rem; }
.promote-menu button:hover { background: var(--panel-2); }
.promote-menu .ic { color: var(--c); }
.voice-check { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 8%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); }
.voice-check .problems li { color: var(--ink-2); }
.voice-check .problems .ic { color: var(--warn); }
