/* Freyja Hub. Same look as the original Freyja HQ: calm cream planner, soft rounded cards, a deep sage
   focus card, blush accents, Cormorant Garamond headlines with DM Sans text, left menu, automatic dark mode. */
:root {
  --bg: #F3EEE6; --surface: #FBF8F3; --surface2: #F6F0E7; --ink: #2A2E29; --mute: #6F7068; --line: #E3DACD;
  --sage: #3A4A3E; --sage-ink: #F2EEE4; --sage-soft: #DCE3D7; --sage-text: #3A4A3E;
  --blush: #EBD5CB; --blush-ink: #7A4A3B; --accent: #A8705D;
  --ok: #3F7A57; --ok-soft: #E1EDE3; --warn: #9A6420; --warn-soft: #F5E8D2; --bad: #A5483F; --bad-soft: #F3DEDA;
  --shadow: 0 1px 2px rgba(40,40,30,.05), 0 10px 26px -14px rgba(40,40,30,.16);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151815; --surface: #1D211D; --surface2: #232823; --ink: #ECE7DD; --mute: #9D9E92; --line: #2F352F;
    --sage: #2B392E; --sage-ink: #EDE9DD; --sage-soft: #26322A; --sage-text: #B9CDB5;
    --blush: #3A2C27; --blush-ink: #E9C6B7; --accent: #D6A08C;
    --ok: #8DBB9A; --ok-soft: #1F3226; --warn: #DDAA68; --warn-soft: #3A2E1B; --bad: #E39084; --bad-soft: #3B2421;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 26px -14px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}
h1, h2, h3, p { margin: 0; }
a { color: var(--sage-text); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout: left menu + content ---------- */
.app { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 22px; }
.logo { display: flex; align-items: center; gap: 12px; }
.mark { width: 42px; height: 42px; border-radius: 12px; background: var(--sage); color: var(--sage-ink); display: grid; place-items: center; font-family: var(--display); font-size: 1.35rem; font-weight: 600; flex: none; }
.logo b { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.logo span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; color: var(--mute); font-weight: 500; min-width: 0; }
.nav button svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav button:hover { background: var(--surface2); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--sage); color: var(--sage-ink); }
.sidefoot { font-size: .8rem; color: var(--mute); line-height: 1.5; display: grid; gap: 6px; }
.sidefoot .row { display: flex; gap: 14px; }
.link-btn { appearance: none; background: none; border: 0; padding: 4px 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: .88rem; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

main { min-width: 0; display: grid; gap: 22px; }

/* ---------- headings and cards ---------- */
.view { display: grid; gap: 22px; }
.eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.view-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.02; text-wrap: balance; margin-top: 4px; }
.view-head .sub { margin-top: 8px; max-width: 60ch; }
.sub { color: var(--mute); }
section { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
section > h2 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
section > .sub { margin-top: 4px; max-width: 62ch; font-size: .94rem; }
.cols { display: grid; gap: 22px; }
@media (min-width: 860px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.notice { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; }
.notice strong { font-weight: 700; }
.notice-warn { background: var(--warn-soft); border-color: var(--warn); }
.notice-bad { background: var(--bad-soft); border-color: var(--bad); }

/* ---------- the deep sage focus card (overview) ---------- */
.focus { background: var(--sage); color: var(--sage-ink); border-color: transparent; display: grid; gap: 14px; }
.focus .eyebrow { color: var(--sage-soft); opacity: .85; }
.focus h2 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1.05; }
.focus p { opacity: .85; font-size: .92rem; max-width: 64ch; }
.bigrow { display: flex; gap: 14px 34px; flex-wrap: wrap; }
.big b { display: block; font-family: var(--display); font-size: 2.8rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.big span { font-size: .82rem; opacity: .85; }

/* ---------- number tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.tile-label { font-size: .88rem; color: var(--mute); }
.tile-value { font-family: var(--display); font-size: 3rem; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; min-height: 24px; }
.tile-prev, .tile-note { font-size: .8rem; color: var(--mute); margin-top: 6px; }
.spark { display: block; width: 100%; height: auto; margin-top: auto; padding-top: 10px; color: var(--sage); }
.spark-bars { color: var(--accent); }
@media (prefers-color-scheme: dark) { .spark { color: var(--sage-text); } }

.chip { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.7; }
.chip-up { background: var(--ok-soft); color: var(--ok); }
.chip-down { background: var(--bad-soft); color: var(--bad); }
.chip-flat, .chip-none { background: var(--surface2); color: var(--mute); }
.tag { font-size: .74rem; color: var(--blush-ink); background: var(--blush); border-radius: 999px; padding: 1px 10px; line-height: 1.7; font-weight: 700; cursor: help; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ---------- recommendations ---------- */
.recs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.btn { appearance: none; background: var(--sage); color: var(--sage-ink); border: 1px solid var(--sage); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); filter: none; }
.stamp { color: var(--mute); font-size: .86rem; }
.lead { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; max-width: 60ch; margin-top: 18px; }
.recs { margin-top: 12px; }
.rec { display: grid; gap: 10px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .rec { grid-template-columns: 5fr 7fr; } }
.rec h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.rec-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .74rem; font-weight: 700; }
.rec-meta span { border-radius: 999px; padding: 2px 10px; background: var(--surface2); color: var(--mute); }
.rec-meta .rec-brand { background: var(--sage-soft); color: var(--sage-text); }
.rec p { max-width: 62ch; }
.rec p + p { margin-top: 8px; }
.rec p b { font-weight: 700; color: var(--accent); }
.empty { margin-top: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--mute); }
.error { margin-top: 12px; color: var(--bad); font-weight: 600; }

/* ---------- tables and bars ---------- */
.tbl-wrap { margin-top: 12px; overflow-x: auto; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: baseline; }
.tbl th { font-weight: 600; font-size: .84rem; color: var(--mute); border-top: 0; line-height: 1.3; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl th.num { white-space: normal; min-width: 92px; }
.tbl td.wrap { word-break: break-word; min-width: 180px; }
.tbl .row-link { font-weight: 700; }

.bars { margin-top: 14px; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: .93rem; }
.bar-track { height: 10px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--sage); border-radius: 99px; }
@media (prefers-color-scheme: dark) { .bar-fill { background: var(--sage-text); } }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

.foot { color: var(--mute); font-size: .84rem; max-width: 70ch; display: grid; gap: 6px; padding: 0 4px; }

/* ---------- sign in ---------- */
.signin { min-height: 80vh; display: grid; place-items: center; }
.signin-box { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow); }
.signin-box .mark { margin-bottom: 18px; }
.signin-box h1 { font-family: var(--display); font-size: 2.4rem; font-weight: 500; line-height: 1.05; }
.signin-box p { color: var(--mute); margin-top: 6px; }
.signin-box form { margin-top: 24px; display: grid; gap: 14px; }
.signin-box label { font-weight: 600; font-size: .92rem; }
.signin-box input { width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.loading { padding: 80px 0; text-align: center; color: var(--mute); }

/* ---------- phone: the menu becomes a strip along the top ---------- */
@media (max-width: 880px) {
  .app { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: sticky; top: 0; z-index: 20; background: var(--bg); flex-direction: row; align-items: center; gap: 10px; padding: 8px 0; }
  .logo b, .logo span, .sidefoot { display: none; }
  .nav-group { display: contents; }
  .nav-head { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; flex: 1; min-width: 0; scrollbar-width: none; }
  .nav button { white-space: nowrap; padding: 8px 12px; flex: none; }
  .bar-row { grid-template-columns: 96px 1fr 40px; }
}
.phone-foot { display: none; }
@media (max-width: 880px) { .phone-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--mute); font-size: .84rem; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 20px; max-width: 46rem; }
.panel h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin-bottom: 6px; }
.panel p { margin-top: 10px; }
a.btn { display: inline-block; text-decoration: none; }

/* ---------- grouped menu ---------- */
.nav { gap: 14px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-head { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--mute); padding: 0 12px 4px; text-transform: uppercase; }

/* ---------- posts ---------- */
.panel input, .panel textarea, .panel select, .post input[type=text], .post input[type=url], .post input[type=datetime-local], .post textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); line-height: 1.45; }
.panel textarea { margin-top: 10px; }
.panel select { width: auto; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.sect { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 30px 0 10px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 14px; max-width: 54rem; }
.post-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta { color: var(--mute); font-size: .88rem; }
.post-body { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
@media (min-width: 700px) { .post-body { grid-template-columns: 190px 1fr; } }
.post-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--surface2); display: block; }
.post-img-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--mute); font-size: .85rem; border: 1px dashed var(--line); }
.post-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post-note { color: var(--mute); font-size: .84rem; margin-top: 6px; }
.post-fields .post-note { margin-top: 0; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.when span { font-weight: 600; font-size: .88rem; }
.when input { width: auto; }
.file-btn { cursor: pointer; display: inline-block; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-draft { background: var(--surface2); color: var(--mute); }
.chip-approved { background: var(--ok-soft); color: var(--ok); }
.chip-published { background: var(--sage); color: var(--sage-ink); }
.chip-failed { background: var(--bad-soft); color: var(--bad); }
.chip-publishing { background: var(--surface2); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }

@media (max-width: 880px) {
  .nav { gap: 4px; }
  .nav-group { display: contents; }
  .nav-head { display: none; }
}

.pill { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--mute); }
.pill.on { background: var(--sage); border-color: var(--sage); color: var(--sage-ink); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { appearance: none; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface2); cursor: pointer; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--line); }
.thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.panel { max-width: 54rem; }

/* ---------- plan board menu ---------- */
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 0 7px; line-height: 1.5; }

/* ---------- account status list ---------- */
.acct-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.acct { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.acct-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface2); color: var(--mute); }
.acct-ok .acct-mark { background: var(--ok-soft); color: var(--ok); }
.acct-bad .acct-mark { background: var(--bad-soft); color: var(--bad); }
.acct-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.acct-main .post-note { flex-basis: 100%; }
.acct-plat { color: var(--mute); font-size: .86rem; }
.acct-state { font-weight: 700; font-size: .9rem; }
.acct-ok .acct-state { color: var(--ok); }
.acct-bad .acct-state { color: var(--bad); }
@media (max-width: 600px) { .acct { grid-template-columns: 34px 1fr; } .acct-state, .acct .btn { grid-column: 2; justify-self: start; } }

/* ---------- social tool: dashboard, calendar, composer, brands, publishing, analytics, strategy ---------- */
.view-head.sv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.tile > span { font-size: .88rem; color: var(--mute); }
.tile > b { font-family: var(--display); font-size: 2.3rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.tile > small { font-size: .78rem; color: var(--mute); margin-top: 4px; line-height: 1.35; }
.tile-bad { border-color: var(--bad); background: var(--bad-soft); }
.tile-bad > b { color: var(--bad); }
.view > .tiles, .view > div > .tiles { margin-top: 18px; }
.view > .notice, .view > div > .notice { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.two-col > div > .panel, .two-col > .panel { margin-top: 20px; max-width: none; }
.sv-head + * { margin-top: 18px; }

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 4px; }
.panel.channel { margin-top: 0; max-width: none; padding: 16px 18px; }
.channel h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; }
.channel ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.chl { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: .9rem; }
.chl b { font-size: .8rem; font-weight: 700; }
.chl .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chl-ok .dot { background: var(--ok); } .chl-ok b { color: var(--ok); }
.chl-bad .dot { background: var(--bad); } .chl-bad b { color: var(--bad); }
.chl-wait b { color: var(--mute); }
.channel-foot { align-self: center; }

.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.prow-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--blush); }
.prow-none { display: grid; place-items: center; color: var(--blush-ink); font-family: var(--display); font-size: 1.5rem; }
.prow-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.prow-text { margin-top: 4px !important; font-size: .92rem; overflow-wrap: anywhere; }
.prow .error { margin-top: 4px; font-size: .86rem; }
.prow .btn { white-space: nowrap; }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-bar .btn { padding: 4px 14px; }
.cal-title { font-family: var(--display); font-weight: 500; font-size: 1.5rem; flex: 1; margin-left: 6px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head span { text-align: center; font-size: .8rem; color: var(--mute); padding: 4px 0; }
.cal-cell { appearance: none; text-align: left; min-height: 88px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.cal-cell.off { opacity: .45; }
.cal-cell.today .cal-n { background: var(--accent); color: #fff; }
.cal-cell.sel { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage); }
.cal-n { align-self: flex-start; font-size: .82rem; font-weight: 700; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-chip { font-size: .68rem; font-weight: 700; border-radius: 6px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: .72rem; color: var(--mute); }
.cal-side .sect:first-child { margin-top: 0; }

.compose { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 4px; }
.compose .panel { max-width: none; }
.compose-main, .compose-side { display: grid; gap: 0; min-width: 0; }
.compose-side { position: sticky; top: 20px; }
.fld { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; min-width: 0; }
.fld > span:first-child { display: flex; justify-content: space-between; gap: 10px; }
.fld.wide { margin-top: 14px; }
.row-wrap .fld { flex: 1 1 200px; }
.panel textarea, .panel input[type=text], .panel input[type=url], .panel input[type=datetime-local], .panel select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 10px 12px; }
.panel textarea { margin-top: 0; resize: vertical; line-height: 1.45; }
.counter { color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; }
.when { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 14px; }
.when .fld { flex: 0 1 260px; }
.panel .row-wrap { margin-top: 14px; }
.pv { padding: 0 !important; overflow: hidden; margin-top: 0 !important; }
.pv-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pv-top b { display: block; font-size: .9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: var(--sage-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.pv-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pv-none { display: grid; place-items: center; background: var(--blush); color: var(--blush-ink); font-size: .9rem; }
.pv-text { padding: 12px 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; margin: 0 !important; }
.pv-tags { padding: 6px 14px 14px; color: var(--sage-text); font-size: .88rem; margin: 0 !important; }
.pv-text:last-child { padding-bottom: 14px; }
.ideas { display: grid; gap: 12px; margin-top: 12px; }
.idea { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface2); }
.idea p { margin-top: 6px; font-size: .9rem; white-space: pre-wrap; }
.idea .btn { margin-top: 10px; }
.panel-later { border-style: dashed; background: transparent; }
.notice-ok { background: var(--ok-soft); border-color: var(--ok); }
.compose-wrap-note { margin-top: 8px; }
.view > .notice-ok, .view > .notice-bad { margin-top: 16px; }

.panel.brand { max-width: none; }
.brand h2 { font-size: 1.8rem; }

.bullets { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.bullets li > .post-note { display: block; margin-top: 2px; }

.abars { display: grid; gap: 6px; margin-top: 12px; }
.abar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 118px; gap: 10px; align-items: center; font-size: .84rem; }
.abar-t { height: 12px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.abar-t i { display: block; height: 100%; background: var(--sage); border-radius: 999px; }
.abar-v { color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.abar.few { opacity: .5; }
.abar.few .abar-t i { background: var(--accent); }
.avatar, .thumb { flex: none; }

@media (max-width: 900px) {
  .cal-wrap, .compose { grid-template-columns: minmax(0, 1fr); }
  .compose-side { position: static; }
}
@media (max-width: 600px) {
  .prow { grid-template-columns: 48px minmax(0, 1fr); }
  .prow > .btn, .prow > .link-btn { grid-column: 2; justify-self: start; }
  .prow-img { width: 48px; height: 48px; }
  .cal-cell { min-height: 58px; padding: 4px; }
  .cal-chip { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  .cal-chip.chip-approved { background: var(--ok); } .cal-chip.chip-draft { background: var(--mute); } .cal-chip.chip-published { background: var(--sage); } .cal-chip.chip-failed { background: var(--bad); }
  .abar { grid-template-columns: 44px minmax(0, 1fr) 100px; }
}

.panel.wide { max-width: none; }
.channels { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
