/* VENYU Studio. Brand: forest #2E4D47, pink #B28686, cream #F7F6F2, sage #96A793, stone #EBE9E1. */

:root {
  color-scheme: light;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-2: #F2F0EA;
  --surface-3: #EBE9E1;
  --line: #E2DFD5;
  --line-strong: #C9C5B8;
  --ink: #1E2B28;
  --ink-2: #485652;
  --ink-3: #66726D;
  --heading: #2E4D47;
  --accent: #2E4D47;
  --accent-hover: #233D38;
  --accent-ink: #F7F6F2;
  --accent-soft: #E2EAE6;
  --pink: #B28686;
  --pink-soft: #F4EAE8;
  --pink-ink: #7A5151;
  --sage-soft: #E8EEE6;
  --sage-ink: #3B5640;
  --warn-soft: #FBEFDD;
  --warn-ink: #774A10;
  --warn-line: #E8C893;
  --danger: #9B3B3B;
  --danger-soft: #F8E5E3;
  --ok-soft: #E3EFE7;
  --ok-ink: #2B5E42;
  --focus: #B28686;
  --aud-v: #2E4D47;
  --aud-c: #B28686;
  --aud-b: #96A793;
  --chart-1: #2F6B5E;
  --chart-ref: #66726D;
  --shadow: 0 1px 2px rgba(30, 43, 40, .05), 0 6px 20px rgba(30, 43, 40, .06);
  --radius: 12px;
  --radius-sm: 7px;
  --nav-w: 216px;
  --top-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111917;
    --surface: #18221F;
    --surface-2: #1E2A26;
    --surface-3: #25332E;
    --line: #2B3A35;
    --line-strong: #3D4F49;
    --ink: #E9E7E0;
    --ink-2: #BCC6C1;
    --ink-3: #95A29C;
    --heading: #DDE8E2;
    --accent: #A8C3B5;
    --accent-hover: #BDD4C8;
    --accent-ink: #0F1D19;
    --accent-soft: #213330;
    --pink: #D2A7A7;
    --pink-soft: #3A2B2B;
    --pink-ink: #EBC3C3;
    --sage-soft: #22322A;
    --sage-ink: #BBD0BA;
    --warn-soft: #382D1A;
    --warn-ink: #F1CD92;
    --warn-line: #6A5428;
    --danger: #F0A6A6;
    --danger-soft: #3B2323;
    --ok-soft: #1D3327;
    --ok-ink: #A3D8B7;
    --focus: #E8B9B9;
    --aud-v: #7FB6A7;
    --aud-c: #DBA8A8;
    --aud-b: #AFC2AC;
    --chart-1: #7CC0AC;
    --chart-ref: #95A29C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111917;
  --surface: #18221F;
  --surface-2: #1E2A26;
  --surface-3: #25332E;
  --line: #2B3A35;
  --line-strong: #3D4F49;
  --ink: #E9E7E0;
  --ink-2: #BCC6C1;
  --ink-3: #95A29C;
  --heading: #DDE8E2;
  --accent: #A8C3B5;
  --accent-hover: #BDD4C8;
  --accent-ink: #0F1D19;
  --accent-soft: #213330;
  --pink: #D2A7A7;
  --pink-soft: #3A2B2B;
  --pink-ink: #EBC3C3;
  --sage-soft: #22322A;
  --sage-ink: #BBD0BA;
  --warn-soft: #382D1A;
  --warn-ink: #F1CD92;
  --warn-line: #6A5428;
  --danger: #F0A6A6;
  --danger-soft: #3B2323;
  --ok-soft: #1D3327;
  --ok-ink: #A3D8B7;
  --focus: #E8B9B9;
  --aud-v: #7FB6A7;
  --aud-c: #DBA8A8;
  --aud-b: #AFC2AC;
  --chart-1: #7CC0AC;
  --chart-ref: #95A29C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .6em; }
a { color: var(--heading); text-underline-offset: 2px; }
a:hover { color: var(--pink-ink); }
img { max-width: 100%; }
small, .small { font-size: .85rem; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--pink-soft); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 10px; }

/* ---------- Shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--heading); }
.brand-word { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .14em; font-weight: 500; }
.brand-sub { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; color: var(--pink-ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3); white-space: nowrap; }
.who select { min-width: 9.5rem; }
.director-badge { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-ink); background: var(--pink-soft); padding: 2px 8px; border-radius: 99px; }

.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.sidenav {
  position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h));
  padding: 18px 12px; border-right: 1px solid var(--line); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.sidenav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.sidenav a:hover { background: var(--surface-2); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--accent-soft); color: var(--heading); }
.sidenav a[aria-current="page"]::before { content: ''; width: 3px; height: 18px; border-radius: 2px; background: var(--pink); margin-left: -6px; }
.sidenav .nav-count { margin-left: auto; font-size: .75rem; min-width: 1.6em; text-align: center; padding: 1px 6px; border-radius: 99px; background: var(--pink-soft); color: var(--pink-ink); }
.sidenav .nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.sidenav .nav-foot { margin-top: auto; padding: 12px; font-size: .78rem; color: var(--ink-3); }

main { padding: 26px clamp(16px, 3vw, 36px) 80px; min-width: 0; }
main:focus { outline: none; }
.topbar .menu-btn { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar .menu-btn { display: inline-flex; }
  .sidenav {
    position: fixed; z-index: 50; top: var(--top-h); left: 0; bottom: 0; height: auto; width: min(280px, 82vw);
    background: var(--surface); box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .18s ease;
    border-right: 1px solid var(--line);
  }
  body.nav-open .sidenav { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(0, 0, 0, .25); z-index: 45; }
  .topbar { padding: 0 12px; gap: 8px; }
  .who .who-label { display: none; }
  .who select { min-width: 0; max-width: 8.5rem; }
  main { padding: 18px 16px 80px; }
}
@media (max-width: 560px) { .director-badge { display: none; } }
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- Page furniture ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 20px; }
.page-head .titles { min-width: 0; flex: 1 1 260px; }
.page-head .sub { color: var(--ink-3); margin: 4px 0 0; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-ink); font-weight: 600; margin-bottom: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.12rem; }
.card.alert { border-color: var(--warn-line); background: var(--warn-soft); }
.card.alert h2 { color: var(--warn-ink); }
.card.quiet { box-shadow: none; background: var(--surface-2); }

.grid { display: grid; gap: 16px; }
.grid > .card + .card { margin-top: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.span-all { grid-column: 1 / -1; }

.empty { color: var(--ink-3); padding: 14px 0; font-style: italic; }
.note { background: var(--surface-2); border-left: 3px solid var(--sage); padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-2); }
.note.warn { border-left-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }

/* ---------- Controls ---------- */
button, input, select, textarea { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.pink { background: var(--pink-soft); border-color: transparent; color: var(--pink-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { min-height: 30px; padding: 4px 10px; font-size: .86rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0 10px; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

input[type="text"], input[type="search"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], input[type="email"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; min-height: 38px; padding: 7px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
select { padding-right: 28px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
::placeholder { color: var(--ink-3); opacity: 1; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.fields .wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-family: var(--font-head); font-size: 1.05rem; color: var(--heading); padding: 0; margin-bottom: 10px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 200px; min-width: 0; }
.toolbar select, .toolbar input { width: auto; min-width: 0; max-width: 100%; }
.toolbar input[type="search"] { flex: 1 1 200px; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: var(--surface); padding: 7px 12px; cursor: pointer; color: var(--ink-2); min-height: 36px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.check-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border: 1px solid var(--line-strong); border-radius: 99px; cursor: pointer; background: var(--surface); font-size: .88rem; user-select: none; }
.check-chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--heading); }
.check-chip input { width: 15px; height: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Pills and chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }
.st-idea { background: var(--surface-3); color: var(--ink-2); }
.st-drafting { background: var(--sage-soft); color: var(--sage-ink); }
.st-ready { background: var(--pink-soft); color: var(--pink-ink); }
.st-changes { background: var(--warn-soft); color: var(--warn-ink); }
.st-approved { background: var(--ok-soft); color: var(--ok-ink); }
.st-scheduled { background: var(--accent-soft); color: var(--heading); }
.st-posted { background: transparent; color: var(--ink-3); border: 1px solid var(--line-strong); }
.tag { display: inline-block; font-size: .75rem; padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.aud-V { border-color: color-mix(in srgb, var(--aud-v) 50%, transparent); }
.tag.aud-C { border-color: color-mix(in srgb, var(--aud-c) 60%, transparent); }
.tag.kind { text-transform: capitalize; }
.yn { font-size: .78rem; padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.yn-yes { background: var(--ok-soft); color: var(--ok-ink); }
.yn-no { background: var(--danger-soft); color: var(--danger); }
.yn-ask { background: var(--warn-soft); color: var(--warn-ink); }
.yn-na { background: var(--surface-2); color: var(--ink-3); }
.aud-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.aud-dot.V { background: var(--aud-v); }
.aud-dot.C { background: var(--aud-c); }
.aud-dot.B { background: linear-gradient(90deg, var(--aud-v) 50%, var(--aud-c) 50%); }
.aud-dot.T { background: transparent; border: 2px solid var(--ink-3); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; min-width: 0; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 500; overflow-wrap: anywhere; }
.row .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: .84rem; color: var(--ink-3); }
.row .time { width: 4.6em; flex: none; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .9rem; padding-top: 1px; }
a.row { text-decoration: none; color: inherit; border-radius: var(--radius-sm); }
a.row:hover { background: var(--surface-2); }
.task-row { align-items: flex-start; }
.task-row input[type="checkbox"] { margin-top: 3px; }
.task-row.done .title { text-decoration: line-through; color: var(--ink-3); }
details.more summary { cursor: pointer; color: var(--ink-3); font-size: .84rem; }
details.more[open] summary { margin-bottom: 4px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.stat .label { font-size: .8rem; color: var(--ink-3); }
.stat .value { font-family: var(--font-head); font-size: 1.7rem; color: var(--heading); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .value small { font-family: var(--font-body); font-size: .85rem; color: var(--ink-3); font-weight: 400; }
.bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--chart-1); border-radius: 99px; }
.stat.good .bar > span { background: var(--ok-ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
table.data th button { all: unset; cursor: pointer; }
table.data th button:focus-visible { outline: 3px solid var(--focus); }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .clickable { cursor: pointer; }
table.data:not(.stack) td:first-child { white-space: nowrap; }
table.data td select { min-height: 32px; padding: 3px 26px 3px 8px; font-size: .86rem; width: auto; }
@media (max-width: 760px) {
  .table-wrap.stack { border: 0; background: transparent; overflow: visible; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 4px; }
  table.stack td { border: 0; padding: 5px 12px; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
  table.stack td::before { content: attr(data-label); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding-top: 2px; }
  table.stack td.lead { grid-template-columns: 1fr; font-weight: 600; }
  table.stack td.lead::before { display: none; }
  table.stack td:empty { display: none; }
  table.stack td.num { text-align: left; }
}

/* ---------- Calendar ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--ink-3); margin: -4px 0 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.month { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.month .dow { background: var(--surface-2); padding: 7px 8px; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.month .day { background: var(--surface); min-height: 128px; padding: 6px 6px 8px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.month .day.other { background: var(--surface-2); }
.month .day.other .num { opacity: .55; }
.month .day.today { box-shadow: inset 0 0 0 2px var(--pink); }
.month .day.drop { background: var(--accent-soft); }
.day .num { font-size: .82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; gap: 4px; }
.day .num b { color: var(--ink); font-weight: 600; }
.today .num b { color: var(--pink-ink); }
.item {
  display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; border: 0; cursor: pointer;
  padding: 3px 6px; border-radius: 5px; font-size: .78rem; line-height: 1.3; color: var(--ink); background: var(--surface-2);
  border-left: 3px solid var(--line-strong); min-width: 0;
}
.item:hover { background: var(--surface-3); }
.item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.item .tm { color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.item.aud-V { border-left-color: var(--aud-v); }
.item.aud-C { border-left-color: var(--aud-c); }
.item.aud-B { border-left-color: var(--aud-b); }
.item.k-task, .item.k-ads, .item.k-routine { background: transparent; border-left-style: dotted; }
.item.k-milestone { background: var(--pink-soft); border-left-color: var(--pink); font-weight: 600; }
.item.is-done .t { text-decoration: line-through; color: var(--ink-3); }
.item .sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sdot.st-idea { background: var(--line-strong); }
.sdot.st-drafting { background: var(--sage-ink); }
.sdot.st-ready { background: var(--pink); }
.sdot.st-changes { background: var(--warn-ink); }
.sdot.st-approved, .sdot.st-scheduled { background: var(--ok-ink); }
.sdot.st-posted { background: transparent; border: 1px solid var(--ink-3); }
.more-btn { border: 0; background: none; color: var(--heading); font-size: .76rem; text-align: left; padding: 2px 6px; cursor: pointer; text-decoration: underline; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.week .wday { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.week .wday.today { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.week .wday h3 { font-size: .95rem; display: flex; justify-content: space-between; }
.week .item { white-space: normal; flex-wrap: wrap; padding: 6px 8px; font-size: .82rem; }
.week .item .t { white-space: normal; overflow: visible; flex-basis: 100%; }
.agenda { display: none; }
@media (max-width: 760px) {
  .month { display: none; }
  .agenda { display: block; }
  .week { grid-template-columns: 1fr; }
  .week .wday { min-height: 0; }
}
.agenda .aday { margin-bottom: 14px; }
.agenda .aday h3 { font-size: .95rem; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.agenda .aday.today h3 { color: var(--pink-ink); }
.agenda .item { padding: 7px 9px; font-size: .86rem; margin-bottom: 4px; }
.agenda .item .t { white-space: normal; }

/* ---------- Post editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 20px; align-items: start; }
.editor aside { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.editor aside .card + .card { margin-top: 0; }
@media (max-width: 1080px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor aside { position: static; } }
.statusbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.statusbar .flow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .8rem; color: var(--ink-3); }
.statusbar .flow .on { color: var(--heading); font-weight: 700; }
.statusbar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.caption-box textarea { min-height: 220px; font-size: 1rem; }
.counters { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--ink-3); }
.counters .over { color: var(--danger); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn-ink); font-size: .87rem; border-left: 3px solid var(--warn-line); }
.checks li small { display: block; opacity: .9; overflow-wrap: anywhere; }
.checks-ok { color: var(--ok-ink); background: var(--ok-soft); padding: 8px 10px; border-radius: var(--radius-sm); font-size: .9rem; }
.ig-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-size: .9rem; background: var(--surface); }
.ig-preview .handle { font-weight: 700; margin-right: 6px; }
.ig-preview .more { color: var(--ink-3); }
.photo-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.perm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .8rem; align-items: center; }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 0; margin-top: 8px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.savebar .dirty { color: var(--pink-ink); font-size: .88rem; }
.comment { padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.comment:first-child { border-top: 0; }
.comment .who { font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.history { font-size: .82rem; color: var(--ink-3); max-height: 260px; overflow: auto; }
.history div { padding: 4px 0; border-top: 1px dashed var(--line); }
.banner { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.banner.changes { background: var(--warn-soft); color: var(--warn-ink); border: 1px solid var(--warn-line); }

/* ---------- Check queue ---------- */
.queue { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .queue { grid-template-columns: minmax(0, 1fr); } }
.queue-list .q-item { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; color: var(--ink); }
.queue-list .q-item:hover { border-color: var(--line-strong); }
.queue-list .q-item[aria-current="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--pink); }
.read-aloud .ra-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 8px; }
.read-aloud .ra-caption { font-size: var(--ra-size, 1.3rem); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 40em; padding: 18px 20px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line); margin: 14px 0; }
.read-aloud .ra-caption.empty { font-size: 1rem; font-style: italic; color: var(--ink-3); }
.twelve { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.twelve label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.twelve label:hover { background: var(--surface-2); }
.twelve input { margin-top: 3px; }
.twelve .n { font-variant-numeric: tabular-nums; color: var(--ink-3); width: 1.6em; flex: none; text-align: right; }
.twelve label:has(input:checked) .txt { color: var(--ink-3); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text { fill: var(--ink-3); font-size: 12px; font-family: var(--font-body); }
.chart .series { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--chart-1); stroke: var(--surface); stroke-width: 2; }
.chart .ref { stroke: var(--chart-ref); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.chart .ref-dot { fill: var(--surface); stroke: var(--chart-ref); stroke-width: 2; }
.chart .ref-text { fill: var(--ink-2); font-size: 12px; font-family: var(--font-body); }
.chart .barf { fill: var(--chart-1); }
.chart .bar-plan { fill: none; stroke: var(--chart-ref); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; }
.chart-card h3 { font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.chart-card .now { font-family: var(--font-head); font-size: 1.5rem; color: var(--heading); }
.chart-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.chart-key i { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--chart-1); vertical-align: middle; margin-right: 5px; }
.chart-key i.ref { border-top: 2px dashed var(--chart-ref); }
.chart-key i.box { width: 10px; height: 10px; border: 0; background: var(--chart-1); border-radius: 2px; }
.chart-key i.box.ref { background: none; border: 1.5px dashed var(--chart-ref); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 9px; border-radius: 6px; font-size: .8rem; line-height: 1.35; max-width: 240px; box-shadow: var(--shadow); }

/* ---------- Dialogs and toasts ---------- */
dialog { border: 0; padding: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog.wide { width: min(880px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(17, 25, 23, .45); }
.dlg { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 18px; overflow-y: auto; }
.dlg-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.dlg-foot .left { margin-right: auto; }
#toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .toast.error { color: #1a0d0d; }

/* ---------- Phone previews (js/preview.mjs, js/feed-grid.mjs) ----------
   The screens copy each app's own light and dark colours; the device frame stays subtle. */
:root {
  --pv-bg: #FFFFFF; --pv-ink: #0C1014; --pv-muted: #737373; --pv-line: #DBDBDB; --pv-soft: #EFEFEF;
  --pv-link: #00376B; --pv-dot: #0095F6; --pv-btn: #EFEFEF;
  --phone-edge: #2A302E; --phone-ring: #5B6461;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pv-bg: #000000; --pv-ink: #F5F5F5; --pv-muted: #A8A8A8; --pv-line: #262626; --pv-soft: #1A1A1A;
    --pv-link: #E0F1FF; --pv-dot: #0095F6; --pv-btn: #262626;
    --phone-edge: #3A4541; --phone-ring: #6B7772;
  }
}
:root[data-theme="dark"] {
  --pv-bg: #000000; --pv-ink: #F5F5F5; --pv-muted: #A8A8A8; --pv-line: #262626; --pv-soft: #1A1A1A;
  --pv-link: #E0F1FF; --pv-dot: #0095F6; --pv-btn: #262626;
  --phone-edge: #3A4541; --phone-ring: #6B7772;
}

dialog.pv-dialog.wide { width: min(900px, calc(100vw - 24px)); }
.pv-dialog .dlg-body { padding: 16px; }
.pv-wrap { display: flex; flex-direction: column; gap: 14px; }
.pv-tabs { align-self: flex-start; max-width: 100%; }
.pv-tabs button { min-height: 32px; padding: 5px 11px; font-size: .86rem; }
.pv-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 720px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } }
.pv-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pv-label { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); }
.pv-tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--pink-soft); color: var(--pink-ink); }
.pv-keys { font-size: .78rem; color: var(--ink-3); margin: 0; text-align: center; }
.pv-info { min-width: 0; }
.pv-info-title { margin: 4px 0 8px; overflow-wrap: anywhere; }
.pv-info h4 { font-family: var(--font-body); font-size: .86rem; font-weight: 600; color: var(--ink-2); margin: 16px 0 6px; }
.pv-credits { margin: 0; padding: 0; list-style: none; font-size: .86rem; display: flex; flex-direction: column; gap: 6px; }
.pv-credits li { padding: 6px 8px; background: var(--surface-2); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.pv-noalt { color: var(--warn-ink); }

/* The device */
.phone { position: relative; width: min(316px, calc(100vw - 72px)); padding: 8px; border-radius: 40px; background: var(--phone-edge); box-shadow: inset 0 0 0 1.5px var(--phone-ring), var(--shadow); flex: none; }
.phone-island { position: absolute; z-index: 6; top: 15px; left: 50%; transform: translateX(-50%); width: 74px; height: 19px; border-radius: 99px; background: #000; pointer-events: none; }
.phone-screen {
  position: relative; aspect-ratio: 9 / 16; border-radius: 32px; overflow: hidden auto; overscroll-behavior: contain;
  background: var(--pv-bg); color: var(--pv-ink); padding-top: 34px; scrollbar-width: none;
  font: 400 13px/1.38 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen.full { padding-top: 0; overflow: hidden; }
.phone-screen.tall { aspect-ratio: auto; min-height: 520px; padding-bottom: 14px; }
.phone-screen b { font-weight: 600; }
.pv-ic { display: inline-flex; flex: none; }
.pv-ic svg { width: 22px; height: 22px; display: block; }
.pv-av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: #F7F6F2; color: #2E4D47; font-family: var(--font-head); font-weight: 600; line-height: 1; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.pv-av.emma { background: #B28686; color: #FFFFFF; font-family: var(--font-body); }
.pv-media { position: relative; overflow: hidden; background: var(--pv-soft); }
.ar-45 { aspect-ratio: 4 / 5; }
.ar-43 { aspect-ratio: 4 / 3; }
.ar-169 { aspect-ratio: 16 / 9; }
.pv-media > img, .pv-slide > img, .pv-cell > img, .pv-li-img > img, .pv-gbp-img > img, .pv-blog-img > img, .pv-pin-img > img, .pv-reel-bg > img, .pv-story-frame > img, .ig-tile > img {
  width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none;
}
.pv-missing { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; text-align: center; font-size: 11px; background: var(--pv-soft); color: var(--pv-muted); overflow-wrap: anywhere; }
.pv-cap { padding: 4px 12px; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.pv-more { all: unset; color: var(--pv-muted); cursor: pointer; }
.pv-more:focus-visible { outline: 2px solid var(--focus); border-radius: 3px; }
.pv-ell { color: var(--pv-muted); }
.pv-hash, .pv-at, .pv-link { color: var(--pv-link); }
.pv-todo { background: rgba(240, 180, 40, .3); border-radius: 3px; box-shadow: 0 0 0 1px rgba(240, 180, 40, .35); }
.pv-nocap { color: var(--pv-muted); font-style: italic; }
.pv-time { padding: 4px 12px 16px; font-size: 11px; color: var(--pv-muted); }

/* The "No design yet" card: brand cream in both themes, so it reads as a stand-in for the design */
.pv-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; overflow: auto; background: #F7F6F2; color: #2E4D47; border: 2px dashed #B28686; text-align: left; }
.pv-ph.compact { inset: 15% 9% 32% 9%; border-radius: 14px; }
.pv-ph-tag { align-self: flex-start; font: 700 10px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; background: #B28686; color: #FFFFFF; padding: 5px 8px; border-radius: 99px; }
.pv-ph-hook { font: 500 17px/1.25 var(--font-head); overflow-wrap: anywhere; }
.pv-ph-format { font: 600 11px/1.3 var(--font-body); color: #485652; }
.pv-ph-notes { font: 400 11.5px/1.45 var(--font-body); color: #1E2B28; white-space: pre-wrap; border-top: 1px solid #E2DFD5; padding-top: 8px; overflow-wrap: anywhere; }

/* Slides */
.pv-viewport { touch-action: pan-y; }
.pv-track { display: flex; height: 100%; transition: transform .25s ease; }
.pv-slide { flex: 0 0 100%; height: 100%; position: relative; }
.pv-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #262626; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 19px; line-height: 1; padding: 0 0 3px; }
.pv-arrow.prev { left: 8px; }
.pv-arrow.next { right: 8px; }
.pv-arrow[hidden] { display: none; }
.pv-count { position: absolute; z-index: 2; top: 10px; right: 10px; background: rgba(18, 18, 18, .72); color: #FFFFFF; font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.pv-dots { display: flex; gap: 4px; justify-content: center; }
.pv-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--pv-line); }
.pv-dots span.on { background: var(--pv-dot); }

/* Instagram feed */
.pv-appbar { display: flex; align-items: center; gap: 10px; padding: 4px 10px 6px; font-size: 15px; }
.pv-appbar .pv-ic svg { width: 20px; height: 20px; }
.pv-ig-head { display: flex; align-items: center; gap: 9px; padding: 6px 10px 8px; }
.pv-who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-ig-head .pv-ic svg { width: 18px; height: 18px; }
.pv-ig-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 10px 4px; }
.pv-ig-actions .l { display: flex; gap: 14px; }
.pv-ig-actions .r { justify-self: end; }

/* Reels, TikTok, Shorts */
.pv-reel, .pv-story { position: absolute; inset: 0; background: #121212; color: #FFFFFF; overflow: hidden; }
.pv-reel-bg, .pv-story-frame { position: absolute; inset: 0; }
.pv-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 20%, transparent 55%, rgba(0, 0, 0, .65)); }
.pv-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
.pv-play svg { width: 28px; height: 28px; }
.pv-reel-top { position: absolute; z-index: 2; top: 40px; left: 14px; font-weight: 700; font-size: 17px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pv-tt .pv-reel-top, .pv-yt .pv-reel-top { left: 0; right: 0; text-align: center; font-size: 15px; }
.pv-hook { position: absolute; z-index: 2; top: 22%; left: 10%; right: 18%; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.45; }
.pv-hook span { background: rgba(0, 0, 0, .62); padding: 2px 7px; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pv-tt .pv-hook span { background: #FFFFFF; color: #000000; }
.pv-side-icons { position: absolute; z-index: 2; right: 8px; bottom: 92px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.pv-side-icons .pv-ic svg { width: 27px; height: 27px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.pv-tt-av { position: relative; margin-bottom: 4px; }
.pv-tt-plus { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: #FE2C55; border-radius: 50%; }
.pv-side-icons .pv-tt-plus svg { width: 16px; height: 16px; stroke-width: 3; filter: none; }
.pv-disc { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #FFFFFF; background: #2E4D47; }
.pv-tt .pv-disc { border-radius: 50%; border-width: 6px; border-color: #222222; }
.pv-reel-foot { position: absolute; z-index: 2; left: 0; right: 52px; bottom: 0; padding: 0 12px 16px; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.pv-reel-who { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.pv-follow { border: 1px solid rgba(255, 255, 255, .85); border-radius: 7px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.pv-reel .pv-cap, .pv-story .pv-cap { padding: 0; color: #FFFFFF; }
.pv-reel .pv-more, .pv-reel .pv-ell { color: rgba(255, 255, 255, .8); }
.pv-reel .pv-hash, .pv-reel .pv-at, .pv-reel .pv-link { color: #FFFFFF; font-weight: 600; }
.pv-reel .pv-nocap { color: rgba(255, 255, 255, .7); }
.pv-audio { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.pv-audio .pv-ic svg { width: 14px; height: 14px; }

/* Stories */
.pv-bars { position: absolute; z-index: 3; top: 38px; left: 8px; right: 8px; display: flex; gap: 3px; }
.pv-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.pv-bars span i { display: block; height: 100%; width: 0; background: #FFFFFF; }
.pv-bars span.done i { width: 100%; }
.pv-bars span.on i { width: 45%; }
.pv-story-head { position: absolute; z-index: 3; top: 48px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pv-story-head small { opacity: .8; }
.pv-live .pv-story-head { top: 40px; }
.pv-live-badge { background: linear-gradient(45deg, #D300C5, #FF0069); color: #FFFFFF; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: .06em; text-shadow: none; }
.pv-story-foot { position: absolute; z-index: 3; bottom: 14px; left: 10px; right: 10px; display: flex; gap: 12px; align-items: center; }
.pv-msg { flex: 1; border: 1px solid rgba(255, 255, 255, .75); border-radius: 99px; padding: 8px 14px; font-size: 13px; }
.pv-tap { position: absolute; z-index: 2; top: 80px; bottom: 64px; width: 35%; background: transparent; border: 0; cursor: pointer; padding: 0; }
.pv-tap.prev { left: 0; }
.pv-tap.next { right: 0; }
.pv-tap:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }

/* Facebook and LinkedIn */
.pv-fb-head, .pv-li-head { display: flex; align-items: center; gap: 9px; padding: 6px 12px 8px; }
.pv-fb-name, .pv-li-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pv-fb-name small, .pv-li-name small { color: var(--pv-muted); font-size: 11.5px; }
.pv-fb-head .pv-ic svg, .pv-li-head .pv-ic svg { width: 18px; height: 18px; color: var(--pv-muted); }
.pv-fb .pv-cap, .pv-li .pv-cap { font-size: 13.5px; padding: 0 12px 10px; }
.pv-fb .pv-more, .pv-li .pv-more { font-weight: 600; }
.pv-fbgrid { display: grid; gap: 2px; background: var(--pv-bg); aspect-ratio: 1 / 1; }
.pv-fbgrid.one { aspect-ratio: 4 / 5; }
.pv-fbgrid.two { grid-template-columns: 1fr 1fr; }
.pv-fbgrid.three, .pv-fbgrid.four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pv-fbgrid.three > :first-child { grid-row: span 2; }
.pv-fbgrid.five { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1.2fr 1fr; }
.pv-fbgrid.five > :nth-child(-n+2) { grid-column: span 3; }
.pv-fbgrid.five > :nth-child(n+3) { grid-column: span 2; }
.pv-cell { position: relative; overflow: hidden; background: var(--pv-soft); min-height: 0; min-width: 0; }
.pv-plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #FFFFFF; font-size: 26px; font-weight: 600; }
.pv-li-img { position: relative; max-height: 380px; overflow: hidden; background: var(--pv-soft); aspect-ratio: 4 / 5; }
.pv-actbar { display: grid; margin: 8px 8px 0; padding: 4px 0 12px; border-top: 1px solid var(--pv-line); }
.pv-actbar.three { grid-template-columns: repeat(3, 1fr); }
.pv-actbar.four { grid-template-columns: repeat(4, 1fr); }
.pv-actbar > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px; color: var(--pv-muted); font-size: 11px; font-weight: 600; }
.pv-actbar.three > span { flex-direction: row; justify-content: center; gap: 6px; font-size: 12.5px; }
.pv-actbar .pv-ic svg { width: 18px; height: 18px; }

/* Google Business Profile, Pinterest, blog */
.pv-gbp-wrap { padding: 4px 12px 16px; }
.pv-gbp-title { font-size: 15px; font-weight: 600; margin: 4px 2px 10px; }
.pv-gbp { border: 1px solid var(--pv-line); border-radius: 12px; overflow: hidden; padding-bottom: 12px; }
.pv-gbp-head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.pv-gbp-head small { display: block; color: var(--pv-muted); font-size: 11.5px; }
.pv-gbp-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pv-soft); }
.pv-gbp .pv-cap { padding: 10px 12px; }
.pv-gbp-btn { display: inline-block; margin: 0 12px; padding: 7px 16px; border: 1px solid var(--pv-line); border-radius: 99px; color: #1A73E8; font-weight: 600; font-size: 13px; }
.pv-pin { padding: 6px 12px 16px; }
.pv-pin-img { position: relative; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; background: var(--pv-soft); }
.pv-pin-img .pv-ph.compact { inset: 0; border-radius: 18px; }
.pv-pin-save { position: absolute; z-index: 2; top: 10px; right: 10px; background: #E60023; color: #FFFFFF; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 99px; }
.pv-pin-title { font-weight: 600; font-size: 14px; margin: 10px 2px 2px; overflow-wrap: anywhere; }
.pv-pin-desc { color: var(--pv-muted); font-size: 12px; margin: 0 2px 6px; }
.pv-pin-by { display: flex; align-items: center; gap: 7px; font-size: 12px; margin: 6px 2px 0; }
.pv-url { margin: 0 10px 8px; padding: 6px 12px; border-radius: 99px; background: var(--pv-soft); color: var(--pv-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-blog-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pv-soft); }
.pv-blog-body { padding: 12px 14px 18px; }
.pv-blog-date { font-size: 11px; color: var(--pv-muted); text-transform: uppercase; letter-spacing: .06em; }
.pv-blog-title { font-family: var(--font-head); color: var(--pv-ink); font-size: 19px; margin: 6px 0 8px; overflow-wrap: anywhere; }
.pv-blog-body p { font-size: 13px; color: var(--pv-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-blog-more { color: var(--pv-link); font-weight: 600; font-size: 13px; }

/* Instagram profile grid (Calendar > Grid) */
.grid-page { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .grid-page { grid-template-columns: minmax(0, 1fr); } }
.grid-phone { width: min(360px, calc(100vw - 48px)); }
.ig-profile { display: flex; gap: 14px; align-items: center; padding: 6px 14px 12px; }
.ig-bio { color: var(--pv-muted); font-size: 12px; }
.ig-tabs { display: flex; border-top: 1px solid var(--pv-line); }
.ig-tabs span { flex: 1; display: flex; justify-content: center; padding: 8px 0; color: var(--pv-muted); }
.ig-tabs span.on { color: var(--pv-ink); box-shadow: inset 0 -1.5px 0 var(--pv-ink); }
.ig-tabs .pv-ic svg { width: 20px; height: 20px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ig-tile { position: relative; display: block; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--pv-soft); overflow: hidden; cursor: pointer; color: inherit; font: inherit; }
.ig-tile:hover { filter: brightness(.94); }
.ig-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 0; }
.ig-tile-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px; background: #F7F6F2; color: #2E4D47; border: 1.5px dashed #B28686; text-align: left; overflow: hidden; }
.ig-tile-ph .pv-ph-tag { font-size: 8px; padding: 3px 5px; }
.ig-tile-hook { font: 500 10.5px/1.25 var(--font-head); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.ig-tile-ic { position: absolute; top: 5px; right: 5px; color: #FFFFFF; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.ig-tile-ic svg { width: 16px; height: 16px; }
.ig-tile-date { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .62); color: #FFFFFF; font-size: 9.5px; line-height: 1.4; padding: 1px 5px; border-radius: 4px; }
.ig-tile-date .sdot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.ig-empty, .ig-older { color: var(--pv-muted); font-size: 12px; text-align: center; padding: 18px 14px 0; margin: 0; }
.grid-notes h2 { margin-bottom: 4px; }
.grid-list { margin: 10px 0 0; padding-left: 1.3em; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.linkish { all: unset; cursor: pointer; color: var(--heading); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.linkish:hover { color: var(--pink-ink); }
.linkish:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* Preview buttons beside calendar items and check-queue items */
.item-row { display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.item-row > .item { flex: 1 1 auto; width: auto; }
.pv-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; min-height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); cursor: pointer; }
.pv-btn:hover { background: var(--surface-3); color: var(--ink); }
.pv-btn .pv-ic svg { width: 15px; height: 15px; }
.month .item-row .pv-btn { opacity: 0; }
.month .item-row:hover .pv-btn, .month .item-row:focus-within .pv-btn { opacity: 1; }
@media (hover: none) { .month .item-row .pv-btn { opacity: 1; } }
.week .item-row .pv-btn, .agenda .item-row .pv-btn { width: 32px; }
.agenda .item-row { margin-bottom: 4px; }
.agenda .item-row > .item { margin-bottom: 0; }
.q-wrap { position: relative; }
.q-wrap .q-item { padding-right: 46px; }
.q-pv { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.q-pv:hover { background: var(--surface-2); color: var(--ink); }
.q-pv .pv-ic svg { width: 17px; height: 17px; }
.btn .pv-ic svg { width: 16px; height: 16px; }

/* Designs in the post editor */
.media-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.media-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--surface-2); }
.media-thumb { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--surface-3); display: block; }
.media-thumb.missing { display: flex; align-items: center; justify-content: center; text-align: center; font-size: .75rem; color: var(--ink-3); border: 1px dashed var(--line-strong); }
.media-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.media-acts { display: flex; flex-direction: column; gap: 6px; }
.media-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.media-add input { flex: 1 1 260px; width: auto; }
@media (max-width: 560px) {
  .media-row { grid-template-columns: 64px minmax(0, 1fr); }
  .media-thumb { width: 64px; }
  .media-acts { grid-column: 1 / -1; flex-direction: row; }
}

.loading { color: var(--ink-3); padding: 30px 0; }
.kbd { font-size: .78rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink-3); }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.stack-sm > * + * { margin-top: 8px; }
.prewrap { white-space: pre-wrap; }
.link-list { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .86rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .sidenav, .savebar, .actions { display: none !important; } .shell { display: block; } }

/* ---------- Signed-in person (header menu) ---------- */
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.user-btn:hover { background: var(--surface-2); }
.user-btn .avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-size: .9rem; }
.user-btn .user-name { font-weight: 600; font-size: .9rem; }
.user-btn .role-tag { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-ink); background: var(--pink-soft); padding: 1px 7px; border-radius: 99px; }
.user-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.user-pop[hidden] { display: none; }
.user-pop .who-line { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-pop .who-line strong { display: block; font-size: .98rem; }
.user-pop .who-line small { color: var(--ink-3); overflow-wrap: anywhere; }
.user-pop a, .user-pop button.menu-item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.user-pop a:hover, .user-pop button.menu-item:hover { background: var(--surface-2); }
.header-widgets { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .user-btn .user-name, .user-btn .role-tag { display: none; } .user-btn { padding: 0 4px; } }
.readonly-note { font-size: .86rem; color: var(--ink-3); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; }
.module-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Sign-in page ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 60%),
  radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); }
.auth-card { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px 26px; }
.auth-brand { display: flex; align-items: baseline; gap: 10px; color: var(--heading); margin-bottom: 4px; }
.auth-brand .brand-word { font-size: 1.9rem; }
.auth-brand .brand-sub { font-size: 1.3rem; }
.auth-card h1 { font-family: var(--font-head); font-weight: 500; color: var(--heading); font-size: 1.35rem; margin: 18px 0 6px; }
.auth-card p.lead { color: var(--ink-2); margin: 0 0 18px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn.primary { width: 100%; min-height: 44px; font-size: 1rem; }
.auth-msg { border-radius: var(--radius-sm); padding: 10px 12px; font-size: .92rem; }
.auth-msg.error { background: var(--danger-soft); color: var(--danger); }
.auth-msg.ok { background: var(--ok-soft); color: var(--ok-ink); }
.auth-msg[hidden] { display: none; }
.auth-foot { margin-top: 18px; font-size: .82rem; color: var(--ink-3); text-align: center; }
.pw-row { position: relative; }
.pw-row input { padding-right: 64px; }
.pw-row .show-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 28px; padding: 2px 8px; font-size: .8rem; border-radius: 6px; border: 0; background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.pw-rules { font-size: .82rem; color: var(--ink-3); margin: -4px 0 0; }
