:root {
  color-scheme: dark;
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");         /* the chevron of the icon set, for CSS-drawn markers */
  --bg-canvas: #0A0F1D; --bg-sidebar: #131D2E; --bg-card: #1E2B3E; --bg-card-hover: #27384F; --bg-stage: #070B14;
  --border: #26364D; --border-input: #566A88; --border-active: #1FC8B5; --brand-blue: #1E93E0; --brand-teal: #1FC8B5; --brand-navy: #0A192F;
  --text: #F8FAFC; --muted: #94A3B8; --sub: #CBD5E1;
  --c-draft: #FACC15; --c-in_review: #5B8DEF; --c-reviewed: #A78BFA; --c-approved: #1FC8B5; --c-scheduled: #34D399; --c-published: #10B981; --c-scrapped: #FA7C7C;
  --topbar-h: 56px; --pbar-h: 0px; --chrome-h: calc(var(--topbar-h) + var(--pbar-h));
  /* one colour per platform, used by the Calendar, the Dashboard's dots and its month calendar (audit G-56); Facebook is off blue so
     it does not read as Email or LinkedIn. Always shown with the platform's name or tag. */
  --p-email: #38BDF8; --p-linkedin: #A78BFA; --p-instagram: #F472B6; --p-facebook: #FB923C;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* the app's icon set (templates/_icons.html): thin line icons in the colour of the text around them */
.ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Back to top: small, quiet, bottom right */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: var(--bg-card); color: var(--sub); border: 1px solid var(--border-input); cursor: pointer; }
.to-top:hover { color: var(--text); border-color: var(--brand-teal); }
.to-top.docked { position: static; } .to-top-slot { display: inline-flex; width: 28px; height: 28px; margin-left: 4px; } .to-top .ico { width: 14px; height: 14px; vertical-align: 0; }
/* All posts pages */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.pager-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager .pager-on { border-color: var(--brand-teal); color: var(--brand-teal); } .pager .off { opacity: .45; cursor: default; } .pager-gap { color: var(--muted); padding: 0 4px; }
.chev-mark { display: inline-block; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html, body { height: 100%; }
body { font-family: 'Poppins', 'Inter', -apple-system, sans-serif; background: var(--bg-canvas); color: var(--text); font-size: 14px; display: flex; flex-direction: column; min-height: 100vh; }
a { color: #38BDF8; text-decoration: none; } a:hover { color: #fff; }
h1 { font-size: 20px; font-weight: 600; } h2 { font-size: 15px; font-weight: 600; margin-bottom: 10px; } h3 { font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 12px; } small { font-size: 11px; color: var(--muted); }
code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; }
.inline { display: inline; } .row { display: flex; align-items: center; } .gap { gap: 8px; } .between { justify-content: space-between; } .end { justify-content: flex-end; } .wrap { flex-wrap: wrap; }
.pad { padding: 16px; }

/* top bar */
/* top bar: one row that never wraps. The pages never shrink; the workspace name gives way first (ellipsis). The account is one button
   (initials and first name) whose menu holds the name, role, Settings and Sign out. z-index above the month bar so the menu opens over it. */
.topbar { height: var(--topbar-h); min-height: var(--topbar-h); background: #0A1120; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 20px; position: relative; z-index: 45; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; } .brand-name { color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal)); }
.ws-name { color: var(--muted); font-size: 12px; padding-left: 12px; border-left: 1px solid var(--border); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .nav { display: flex; align-items: center; gap: 4px; flex: none; } .topbar .nav a { padding: 6px 12px; border-radius: 6px; color: var(--sub); font-weight: 500; font-size: 13px; white-space: nowrap; } .topbar .nav a.active, .topbar .nav a:hover { background: rgba(31,200,181,.12); color: var(--brand-teal); }
/* a group of pages on the bar (Content studio, Help): a button that opens its pages below it, like the account menu */
.navdd { position: relative; flex: none; } .navdd > summary { list-style: none; } .navdd > summary::-webkit-details-marker { display: none; }
.topbar .nav .navdd > summary { gap: 6px; border-radius: 6px; color: var(--sub); font-weight: 500; font-size: 13px; white-space: nowrap; cursor: pointer; user-select: none; }
/* every item on the bar, link or group, is the same 32px box with its words centred, so they share one line */
.topbar .nav > a, .topbar .nav .navdd > summary { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; line-height: 1; box-sizing: border-box; }
.topbar .nav .navdd-chev .ico { width: 14px; height: 14px; vertical-align: 0; transition: transform .15s; } .topbar .nav .navdd[open] .navdd-chev .ico { transform: rotate(180deg); }
.topbar .nav .navdd > summary.active .navdd-chev, .topbar .nav .navdd > summary:hover .navdd-chev, .topbar .nav .navdd[open] > summary .navdd-chev { color: inherit; }
.topbar .nav .navdd > summary:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: -2px; }
.topbar .nav .navdd > summary.active, .topbar .nav .navdd > summary:hover, .topbar .nav .navdd[open] > summary { background: rgba(31,200,181,.12); color: var(--brand-teal); }
.navdd-chev { color: var(--muted); font-size: 11px; display: inline-flex; }
.topbar .nav .navdd-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 190px; display: grid; gap: 2px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 10px; padding: 6px; z-index: 50; }
.topbar .nav .navdd-menu a { display: block; padding: 9px 12px; border-radius: 6px; line-height: 1.2; }
.user-name { font-size: 12px; color: var(--sub); }
.acct, .navmenu { position: relative; flex: none; }
.acct > summary, .navmenu > summary { list-style: none; } .acct > summary::-webkit-details-marker, .navmenu > summary::-webkit-details-marker { display: none; }
.acct-btn { display: flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.acct-btn:hover, .acct[open] > .acct-btn { background: var(--bg-card-hover); }
.acct-ini { width: 26px; height: 26px; border-radius: 50%; background: rgba(31,200,181,.14); color: var(--brand-teal); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.acct-chev { color: var(--muted); font-size: 11px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.acct-who { display: grid; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.acct-who .user-name { color: var(--text); font-size: 13px; font-weight: 600; } .acct-who small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.acct-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--sub); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.acct-item:hover { background: var(--bg-card-hover); color: var(--text); }
.navmenu { display: none; }

/* month bar: the month dropdown alone (owner's pick, 28 Oct 2026), a second row under the topbar. It is in the page only when a
   route passes `period` and the page has no month dropdown of its own (the Content studio's is in its header).
   --pbar-h joins --chrome-h on those pages (the bar is a fixed height wherever the Studio is a fixed-height screen), so
   .board's calc(100vh - var(--chrome-h)) still fits the window and the page gets no second scrollbar. */
:root:has(.pbar) { --pbar-h: 44px; }
.pbar { position: relative; z-index: 40; flex: none; height: var(--pbar-h); display: flex; align-items: center; gap: 4px 16px; padding: 0 20px; background: var(--bg-sidebar); border-bottom: 1px solid var(--border); }
.pbar-ctl { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.pbar-pick { position: relative; min-width: 0; }
/* the month picker as a form field (Goes out in): as wide and tall as the other fields */
.month-field { margin: 4px 0 6px; } .month-field .pbar-trig { width: 100%; height: 38px; }
.field-label { font-size: 13px; color: var(--sub); }
.pbar-trig { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 100%; height: 30px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pbar-trig:hover { background: var(--bg-card-hover); }
.pbar-pick.open .pbar-trig { border-color: var(--brand-teal); }
.pbar-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar-chev { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pbar-pop { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 41; width: 424px; max-width: calc(100vw - 24px); max-height: min(72vh, 520px); overflow-y: auto; padding: 12px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 12px; }
.pbar-pick.open .pbar-pop { display: block; }
.pbar-all { display: block; margin-bottom: 4px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: var(--bg-card); color: var(--text); font-size: 13px; font-weight: 500; }
.pbar-all:hover { background: var(--bg-card-hover); color: var(--text); }
.pbar-all[aria-current], .pbar-cell[aria-current] { border-color: var(--brand-teal); color: var(--brand-teal); font-weight: 700; } .pbar-all[aria-current] { background: var(--bg-sidebar); } .pbar-cell[aria-current] { border-width: 2px; }
.pbar-yh { margin: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pbar-col2 { grid-column-start: 2; } .pbar-col3 { grid-column-start: 3; } .pbar-col4 { grid-column-start: 4; }
.pbar-cell { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 8px; border: 1px solid transparent; background: var(--bg-card); color: var(--text); font-size: 13px; font-weight: 500; }
.pbar-cell:hover { background: var(--bg-card-hover); color: var(--text); }
.pbar-cell:focus-visible, .pbar-all:focus-visible { outline-offset: -2px; }
.pbar-cell.has::before { content: ""; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); } .pbar-cell.now.has::before { background: #fff; }
/* month colours: bright blue = current month, teal outline = selected (the legend swatches use the same values) */
.pbar-cell.now { background: #2D9CFF; color: #04122B; } .pbar-cell.now:hover { background: #52AEFF; color: #04122B; }
.pbar-cell.now[aria-current] { color: #04122B; }
.pbar-key { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.pbar-key span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pbar-key i { display: inline-block; flex: none; }
.pbar-key .k-has { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); }
.pbar-key .k-sel, .pbar-key .k-now { width: 12px; height: 12px; border-radius: 4px; border: 2px solid transparent; } .pbar-key .k-sel { border-color: var(--brand-teal); background: var(--bg-card); } .pbar-key .k-now { background: #2D9CFF; }
/* phone: the month button takes the bar's width and its popup the window's */
@media (max-width: 699px) {
  .brand-name { min-height: 44px; }
  .group-toggle { min-height: 44px; }
  .tband-note a { display: inline-block; padding: 12px 2px; }
  .pbar { padding: 0 12px; }
  .pbar-ctl { flex: 1 1 auto; }
  .pbar-pick { flex: 1 1 auto; position: static; }
  .pbar-trig { width: 100%; }
  .pbar-pop { left: 12px; right: 12px; width: auto; max-width: none; top: calc(100% + 4px); }
}

/* buttons & inputs */
.btn { font-family: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:hover { background: var(--bg-card-hover); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand-teal); border-color: var(--brand-teal); color: #0A1120; } .btn-primary:hover { background: #3fd8c7; }
.btn-ghost { background: transparent; }
.btn-outline { background: transparent; border: 1.5px solid var(--brand-teal); color: var(--text); } .btn-outline:hover { background: rgba(31,200,181,.14); border-color: var(--brand-teal); color: var(--text); }
.btn-sm { padding: 6px 10px; font-size: 12px; } .btn-xs { padding: 3px 8px; font-size: 11px; } .wide { width: 100%; }
.btn-approve { background: #15803d; border-color: #15803d; color: #fff; font-size: 15px; padding: 12px 22px; }
.btn-approve.on { background: #0f766e; border-color: var(--brand-teal); }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], textarea, select, .input, .select {
  font-family: inherit; font-size: 13px; color: var(--text); background: #0F1829; border: 1px solid var(--border-input); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--brand-teal); }
:is(input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], textarea, select, .input, .select):hover:not(:focus) { border-color: #7A8DAB; }
/* text fields: the focus ring sits over the 1px border, so the field shows one 2px teal edge, not border + gapped ring */
:is(input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], textarea, select, .input, .select):focus-visible { outline-offset: -1px; }
/* keyboard focus: one plain teal ring for every control */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.seg-btn:focus-visible, .person-switch a:focus-visible, .tgroup > summary:focus-visible, .ptab:focus-visible, .acc summary:focus-visible { outline-offset: -2px; }
:where(.board) .item:focus-visible, .group-toggle:focus-visible { outline-offset: -2px; }
textarea { resize: vertical; line-height: 1.5; } textarea.code { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
label { display: block; font-size: 12px; color: var(--sub); margin: 10px 0 4px; } label input, label select, label textarea { margin-top: 4px; }
label.chk { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 0 0; } label.chk input { width: auto; margin: 0; }
.select.small { width: auto; padding: 5px 8px; font-size: 12px; }
input[type=file] { color: var(--muted); font-size: 12px; }
input[type=file]::file-selector-button { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text); background: transparent; border: 1px solid var(--border-input); border-radius: 8px; padding: 6px 10px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--bg-card-hover); }
/* G-12: the picked day in words beside a date box, so 5/11 cannot be read as 11 May */
.date-words { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--sub); white-space: nowrap; }
/* G-11: one mark for a required field, on every form */
.req { color: #F87171; font-style: normal; margin-left: 2px; }
/* G-10: a filter row's Apply is as tall as the fields beside it */
form.filters .btn { min-height: 38px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* cards & layout */
.page { padding: 20px 24px 64px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.card.compact { padding: 8px 12px; } .card.narrow { max-width: 420px; width: 100%; }
.error-actions { margin-top: 14px; }
/* sign-in card: one 16px rhythm between header, fields and button; fields and button share one height */
.card.auth { padding: 28px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { font-size: 22px; } .auth-sub { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.auth label { margin: 0; font-weight: 500; } .auth label input { margin-top: 6px; padding: 10px 12px; font-size: 14px; }
.auth .flash.static { margin: 0; } .auth .btn { margin-top: 4px; padding: 10px 14px; font-size: 14px; }
.centered { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.flash { margin: 10px 24px 0; padding: 10px 14px; border-radius: 8px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; background: rgba(31,200,181,.12); border: 1px solid rgba(31,200,181,.4); color: #99F6E4; }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; }
.flash-err { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #FCA5A5; }
.flash-warn { background: rgba(250,204,21,.1); border-color: rgba(250,204,21,.4); color: #FDE68A; }
.flash.static { margin: 6px 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 400; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.draft { color: var(--c-draft); background: rgba(250,204,21,.1); } .pill.in_review { color: var(--c-in_review); background: rgba(91,141,239,.14); }
.pill.reviewed { color: var(--c-reviewed); background: rgba(167,139,250,.14); } .pill.approved { color: var(--c-approved); background: rgba(31,200,181,.12); }
.pill.scheduled { color: var(--c-scheduled); background: rgba(52,211,153,.12); } .pill.published { color: var(--c-published); background: rgba(16,185,129,.14); }
.pill.scrapped { color: var(--c-scrapped); background: rgba(239,68,68,.12); }
.no { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--brand-teal); }
ul.plain { list-style: none; } ul.plain li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; } .table th { text-align: left; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding: 8px; border-bottom: 1px solid var(--border); }
.table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; } .table.small td { font-size: 12px; padding: 4px 8px; }
.table-card { padding: 0; overflow-x: auto; }
.filters { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; } .filters select, .filters input { width: auto; min-width: 140px; } .filters label { margin: 0; }
.target-line strong { color: #fff; }
/* Tasks page */
.person-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .person-switch a { padding: 6px 12px; font-size: 12.5px; color: var(--sub); } .person-switch a.on { background: var(--bg-card); color: #fff; }
.tasks-table tr.grp td { background: var(--bg-sidebar); color: #fff; font-weight: 600; font-size: 12.5px; padding: 8px 12px; } .tasks-table tr.grp .grp-act { float: right; }
.tasks-table td.when { font-weight: 600; } .tasks-table tr.late td.when { color: #F87171; } .tasks-table td.note { color: var(--muted); max-width: 320px; } .tasks-table td.act { text-align: right; white-space: nowrap; }
/* every section opens with the same head (title + one muted sentence, optional action on the right) */
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 20px 0 10px; }
.section-head h2 { font-size: 17px; margin: 0 0 2px; } .section-head p { margin: 0; }
.pool-quick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .pool-quick .pill { padding: 4px 10px; font-size: 12px; } .pool-quick .pill.active { outline: 1px solid currentColor; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 8px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; margin: 0; color: inherit; } .guide-card:hover { border-color: var(--brand-teal); color: inherit; } .guide-card h3 { margin: 0; font-size: 15px; }
.guideline { max-width: 900px; } .prose { font-size: 14px; line-height: 1.6; } .prose h2 { font-size: 16px; margin: 18px 0 6px; } .prose h2:first-child { margin-top: 0; } .prose h3 { font-size: 14px; margin: 14px 0 4px; } .prose p { margin: 0 0 10px; color: var(--sub); } .prose ul, .prose ol { margin: 0 0 10px 20px; color: var(--sub); } .prose li { margin-bottom: 4px; } .prose strong { color: #fff; }
.guideline textarea { width: 100%; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12.5px; line-height: 1.5; }
.res-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; } .res-form label { margin: 0; font-size: 12px; } .res-form .grow { flex: 1 1 260px; } .res-form input, .res-form select { width: 100%; min-width: 160px; }
.res-form.compact { margin-top: 8px; padding: 10px; background: rgba(255,255,255,.03); border-radius: 8px; }
.res-group h2 { display: flex; gap: 8px; align-items: baseline; }
.res-list { display: flex; flex-direction: column; } .res-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); } .res-row:first-child { border-top: 0; }
.res-provider { font-size: 11px; font-weight: 600; color: var(--sub); background: rgba(255,255,255,.05); border-radius: 6px; padding: 3px 8px; justify-self: start; white-space: nowrap; }
.res-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .res-title { font-weight: 600; } .res-note { font-size: 13px; color: var(--sub); }
.res-actions { display: flex; gap: 6px; align-items: flex-start; } .res-edit summary { list-style: none; cursor: pointer; } .res-edit[open] { grid-column: 1 / -1; }
@media (max-width: 720px) { .res-row { grid-template-columns: 1fr; gap: 6px; } }
.overdue { color: #FCA5A5; font-weight: 600; }
.to-resolve { color: #FBBF24; font-weight: 500; }
/* All posts (redesign, 26 Oct 2026): one toolbar, stage tabs, a short table */
.pool-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.pool-search { flex: 1 1 260px; min-width: 200px; } .pool-search input[type=search] { height: 34px; }
.pool-pf { height: 34px; } .pool-pf .seg-btn { display: inline-flex; align-items: center; padding: 0 10px; }
.pool-pop { position: relative; } .pool-pop > summary { list-style: none; height: 34px; display: inline-flex; align-items: center; } .pool-pop > summary::-webkit-details-marker { display: none; }
.pool-pop > summary::after { content: ""; width: 12px; height: 12px; margin-left: 6px; background: var(--muted); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; }
.pool-pop-body { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 220px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 8px; }
/* All posts: the Tags button and its full-width panel under the toolbar */
.pool-tagbtn { height: 34px; display: inline-flex; align-items: center; }
.pool-tagbtn::after { content: ""; width: 12px; height: 12px; margin-left: 6px; background: var(--muted); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transition: transform .15s; }
.pool-tagbtn[aria-expanded=true] { border-color: var(--brand-teal); color: var(--brand-teal); } .pool-tagbtn[aria-expanded=true]::after { transform: rotate(180deg); background: var(--brand-teal); }
.pool-tagpanel { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.pool-tagpanel[hidden] { display: none; }
.pool-tagpanel .tfilter { margin: 0; } .pool-tagpanel .tmanage { margin-top: 4px; }
.pool-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.pool-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13px; color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pool-tab:hover { color: var(--text); } .pool-tab.on { color: var(--text); border-bottom-color: var(--brand-teal); font-weight: 600; }
.pool-tab .tcount { color: var(--muted); font-weight: 400; font-size: 12px; } .pool-tab .tdot { margin-right: 0; }
.pool-tab.gap { margin-left: 14px; }
.pool-table td { vertical-align: middle; } .pool-table .no { width: 84px; }
.pool-table tr.pool-row { cursor: pointer; } .pool-table tr.pool-row:hover td { background: rgba(255,255,255,.025); }
.pool-title a { color: var(--text); font-weight: 500; } .pool-title a:hover { color: var(--brand-teal); }
.pool-table .trow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0 0 0 6px; vertical-align: baseline; }
/* tags as quiet words after the title, not pills: '· Agriculture & Irrigation' */
.pool-table .trow .tchip { font-size: 12px; padding: 0 4px 0 0; border: 0; background: none; color: var(--muted); }
.pool-table .trow .tchip::before { content: "·"; margin-right: 5px; color: var(--muted); }
.pool-table .trow .tchips { display: inline-flex; flex-wrap: wrap; gap: 0 6px; }
.pool-table .tadd { visibility: hidden; } .pool-table tr:hover .tadd, .pool-table tr:focus-within .tadd, .pool-table .tadd[aria-expanded=true] { visibility: visible; }
.pool-pi { width: 40px; text-align: center; }
.picon { display: inline-flex; align-items: center; justify-content: center; color: var(--sub); vertical-align: middle; }
.picon .ico { width: 16px; height: 16px; vertical-align: 0; }
.seg-btn.active .picon { color: var(--brand-teal); }
.pool-table.hide-comments .col-comments, .pool-table.hide-tags .col-tags, .pool-table.hide-created .col-created, .pool-table.hide-edited .col-edited,
.pool-table.hide-date .col-date, .pool-table.hide-owner .col-owner { display: none; }
.pool-table td.col-owner { font-size: 12px; color: var(--sub); }      /* Written by: the writer's first name, quiet beside the dates */
/* All posts: the Sort menu, the order in use in teal */
.pool-sort .pool-pop-body { gap: 2px; padding: 6px; } .pool-sort .menu-item.on { color: var(--brand-teal); }
.page-head .coming { color: var(--sub); }      /* My Tasks: an approver's posts still with the reviewer (audit AP-02) */
.settings { max-width: 1060px; } .settings .card { margin-bottom: 16px; } .settings h2 { margin-top: 0; }
.targets-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; } .targets-form label { font-size: 13px; }

/* home */
.link-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--brand-teal); }
ul.plain.compact li { padding: 3px 0; border: 0; }
.nowrap { white-space: nowrap; }
.panel-close { background: transparent; border: 0; color: var(--muted); font-size: 18px; padding: 0 10px; cursor: pointer; }
.panel-close:hover { color: #fff; }
/* platform tags: one colour per platform everywhere (the --p-* tokens), always with its short tag, so colour is never the only clue */
.ptag { display: inline-flex; flex: none; margin-right: 4px; color: var(--sub); }      /* the platform as the icon set's line icon (one grey) */
.ptag .ico { width: 13px; height: 13px; }
.p-email { --pc: var(--p-email); } .p-linkedin { --pc: var(--p-linkedin); } .p-instagram { --pc: var(--p-instagram); } .p-facebook { --pc: var(--p-facebook); }
.cal-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--sub); margin: 6px 0 10px; }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 2px; }
.cal-legend .lg-planned { display: inline-block; width: 18px; height: 11px; margin-right: 4px; border: 1px dashed var(--muted); border-radius: 3px; }
.mk { flex: none; margin-right: 4px; line-height: 1; display: inline-flex; } .mk .ico { width: 12px; height: 12px; } .mk.sched { color: var(--c-scheduled); } .mk.sent { color: var(--c-published); font-weight: 700; }

/* calendar: seven equal columns, whatever the titles; days outside the month drawn faintly; a phone gets a list of the days with posts */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: 11px; color: var(--muted); text-transform: uppercase; padding: 4px; }
.cal-cell { min-width: 0; min-height: 84px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); border-radius: 6px; padding: 4px; }
.cal-cell.out { background: transparent; border-color: rgba(255,255,255,.03); } .cal-cell.out .cal-day { color: #475569; }
.cal-cell.today { border-color: var(--brand-teal); }
.cal-cell .wd { display: none; }
.cal-day { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cal-item { display: flex; align-items: center; min-width: 0; font-size: 11px; color: var(--sub); padding: 2px 4px; border-radius: 4px; background: rgba(255,255,255,.05); border-left: 2px solid var(--pc, var(--muted)); margin-bottom: 2px; }
.cal-item .ct { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.planned { background: transparent; border: 1px dashed color-mix(in srgb, var(--pc, var(--muted)) 70%, transparent); color: var(--muted); }
.cal-empty { margin: 4px 0 12px; }
.planned-row td { color: var(--muted); }
@media (max-width: 699px) {
  .cal { display: block; }
  .cal-head, .cal-cell.out, .cal-cell:not(.has) { display: none; }
  .cal-cell.has { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 8px; align-items: start; min-height: 0; margin-bottom: 6px; padding: 8px; }
  .cal-cell .wd { display: block; grid-column: 1; grid-row: 1; font-size: 11px; color: var(--muted); }
  .cal-cell.has .cal-day { grid-column: 1; grid-row: 2; font-size: 16px; color: var(--text); font-weight: 600; }
  .cal-cell.has .cal-item { grid-column: 2; font-size: 12.5px; padding: 6px 8px; }
  .cal-cell.has .cal-item:first-of-type { grid-row: 1 / span 2; align-self: start; }
}

/* editor */
.editor-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: 1fr; } }
#askHint { margin-bottom: 18px; }      /* the approver's note to the agency (audit AP-01), set apart from the preview below it */
.asset-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.asset-row { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px; border-radius: 6px; } .asset-row:hover { background: rgba(255,255,255,.04); }
.asset-row input { width: auto; margin: 0; } .asset-row img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: #000; }
.file-ico { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; background: rgba(255,255,255,.08); border-radius: 4px; text-transform: uppercase; }
.editor-preview { height: 520px; background: #fff; border-radius: 8px; overflow: hidden; } .editor-preview iframe { width: 100%; height: 100%; border: 0; }
details summary { cursor: pointer; color: var(--sub); font-size: 12px; margin: 8px 0; }

/* board. The generic names (.item .group .sidebar .tab .stage .panel) are scoped with :where(.board) so they cannot reach other pages
   (td.item in My Tasks); :where adds no specificity, so the cascade between these rules is unchanged. */
body.board-body { overflow: hidden; height: 100vh; }
/* Review page: full-width platform header, then list | item | details */
.board { display: flex; flex-direction: column; height: calc(100vh - var(--chrome-h)); overflow: hidden; }
/* the Studio's one header row (owner's pick, 28 Oct 2026): title, platform dropdown, month dropdown, New post; above the panes so
   the dropdowns open over them */
.review-head { position: relative; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 6px 20px; box-sizing: border-box; border-bottom: 1px solid var(--border); background: var(--bg-sidebar); flex-wrap: wrap; }
/* the Studio's header and the month bar share their left edge and height, so Month sits in the same place on every page */
@media (max-width: 699px) { .review-head { padding-left: 12px; padding-right: 12px; } }
.review-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the small grey label before each dropdown (Platform, Month); the second one keeps a gap from the dropdown before it */
.hd-cap { font-size: 12.5px; color: var(--muted); } .review-tabs .hd-cap ~ .hd-cap { margin-left: 10px; }
/* the platform dropdown: the month button's look, the More menu's list, each platform with how many posts wait with the client */
.more.plat-pick > summary { display: flex; gap: 8px; margin: 0; }
.more.plat-pick[open] > summary { border-color: var(--brand-teal); }
.plat-pick .ico { width: 15px; height: 15px; vertical-align: 0; }
.plat-pick .menu { min-width: 200px; }
.plat-opt { display: flex; align-items: center; gap: 8px; } .plat-opt .tab-count { margin-left: auto; } .plat-opt.on { color: var(--brand-teal); }
.tab-count { display: inline-block; white-space: nowrap; min-width: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; background: rgba(167,139,250,.2); color: #C4B5FD; text-align: center; margin-left: 4px; }
.review-right { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.review-right > .btn { height: 30px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }   /* as tall as the dropdowns beside it */
.review-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr 380px; }
.review-body > * { min-width: 0; min-height: 0; overflow: hidden; } .review-body .stage { position: relative; z-index: 1; }
.board.no-panel .review-body { grid-template-columns: 340px 1fr; }
/* list groups */
:where(.board) .group { border-bottom: 1px solid var(--border); } :where(.board) .group.is-empty { opacity: .7; }
/* a group's heading: plain small capitals, pinned to the top of the list while its posts scroll under it; the count bubble carries the
   stage's colour (owner's pick, 27 Oct 2026) */
.group-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; cursor: pointer; font-size: 10.5px; font-weight: 600; color: var(--muted); user-select: none;
  background: var(--bg-sidebar); position: sticky; top: 0; z-index: 2; } .group-head:hover { color: var(--sub); }
.group-label { text-transform: uppercase; letter-spacing: .06em; }
.group-head .chev { display: inline-flex; width: 14px; color: var(--muted); } .group-toggle[aria-expanded=false] .chev .ico { transform: rotate(-90deg); } .group-label { flex: 1; } .group-count { color: #0A0F1D; font-weight: 600; font-size: 11px; background: var(--tc, var(--muted)); border-radius: 999px; padding: 1px 9px; letter-spacing: 0; white-space: nowrap; }
.group-toggle { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.group-head .btn { margin-left: 6px; }
/* the Studio list: each post a card, on the measurements of the owner's reference card (logosutra.com/allflo/edm, 27 Oct 2026):
   the ID and one flag, the title, how long, the intro, the tags */
:where(.board) .item { display: block; margin: 0 12px 8px; padding: 12px 14px; background: var(--bg-card); border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
:where(.board) .item:hover { background: var(--bg-card-hover); } :where(.board) .item.active { background: #16243A; border-color: var(--brand-teal); }
:where(.board) .item.scrapped { opacity: .55; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 21px; margin-bottom: 5px; }
:where(.board) .item .no { font-family: inherit; color: var(--brand-teal); font-size: 11px; font-weight: 400; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
:where(.board) .item .no.none { color: #64748B; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }      /* DRAFT, TEST, DEMO: muted grey */
.iflag { display: inline-flex; align-items: center; white-space: nowrap; font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: var(--sub); white-space: nowrap; }
.iflag.late { color: #FCA5A5; border-color: rgba(248,113,113,.4); } .iflag.soon { color: #FDE68A; border-color: rgba(251,191,36,.4); }
.item-title { font-size: 13.5px; font-weight: 600; line-height: 19px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-meta { font-size: 10.5px; color: #64748B; margin-top: 8px; }
.item-intro { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-intro.none { color: #64748B; font-style: italic; }
/* item head above the preview */
.item-head { padding: 12px 18px 10px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; background: #0A1120; }
.mail-row { display: flex; align-items: center; gap: 12px; }
.mail-from-row { display: grid; grid-template-columns: 40px 1fr auto; }
.mail-subject { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: #fff; line-height: 1.3; min-width: 0; }
.edited-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; background: rgba(56,189,248,.12); color: #7DD3FC; white-space: nowrap; }
.cap { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-right: 10px; vertical-align: middle; }
.env-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1E93E0; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.env-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .env-from { font-size: 14px; overflow-wrap: anywhere; } .env-from strong { color: #fff; } .env-to { font-size: 12px; } .env-to .sep { margin: 0 4px; }
.env-side { display: flex; align-items: center; gap: 10px; align-self: start; }
.stage-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--sub); }
.stage-line .pill { flex: none; font-weight: 600; } .stage-line .stage-text { min-width: 0; overflow-wrap: anywhere; }
/* the month the post is filed under; for the people who may move it, it opens the Move dialog */
.month-chip { font: inherit; white-space: nowrap; font-size: 11.5px; font-weight: 500; line-height: 1.4; padding: 1px 9px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--sub); cursor: pointer; white-space: nowrap; }
.month-chip:hover { background: var(--bg-card-hover); color: var(--text); }
.month-chip.static { display: inline-block; cursor: default; } .month-chip.static:hover { background: transparent; color: var(--sub); }
/* a draft the client sent back: who, why, and the way to the rest of the comments */
.return-note { margin: 0; padding: 7px 10px; border-left: 3px solid #FBBF24; border-radius: 6px; background: rgba(251,191,36,.08); color: var(--sub); font-size: 13px; line-height: 1.45; }
.return-note strong { color: #FBBF24; font-weight: 600; } .return-note .return-why { color: var(--text); overflow-wrap: anywhere; } .return-note a { margin-left: 4px; white-space: nowrap; }
.mail-preheader { font-size: 13px; color: var(--sub); }
.mail-preheader .env-missing { color: #FBBF24; }
/* one toolbar row under the subject: do on the left, view on the right */
.toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 2px; }
.tb-group { display: flex; align-items: center; gap: 8px; } .tb-right { margin-left: auto; }
.item-head .btn-sm, .item-head .seg-btn, .item-head .select.small { height: 32px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; font-size: 12.5px; }
.item-head .seg-group { height: 32px; } .item-head .more summary { height: 32px; display: inline-flex; align-items: center; }
.tb-right .select.small { width: auto; min-width: 0; }
.more { position: relative; } .more summary { list-style: none; cursor: pointer; display: inline-block; } .more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; }
.menu-item { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.menu-item:hover { background: var(--bg-card-hover); color: #fff; } .menu-item.danger { color: #FCA5A5; }
/* details accordions */
.acc { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; } .acc summary { padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.acc summary::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--muted); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transform: rotate(-90deg); } .acc[open] summary::before { transform: none; } .acc summary::-webkit-details-marker { display: none; }
.acc-body { padding: 0 12px 10px; } .acc-body .kv { margin-bottom: 0; }
@media (max-width: 1100px) { .review-body { grid-template-columns: 280px minmax(0, 1fr) 300px; } .board.no-panel .review-body { grid-template-columns: 280px minmax(0, 1fr); } }
:where(.board) .sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.sidebar-head { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
:where(.board) .tab { padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--sub); border: 1px solid transparent; } :where(.board) .tab.active { background: rgba(30,147,224,.14); border-color: rgba(56,189,248,.4); color: #38BDF8; }
.item-list { flex: 1; overflow-y: auto; } .item-list .item { scroll-margin: 44px 0; }
:where(.board) .item.scrapped { opacity: .55; }
.badge { display: inline-block; white-space: nowrap; min-width: 16px; padding: 0 5px; border-radius: 8px; font-size: 10px; background: rgba(239,68,68,.2); color: #FCA5A5; text-align: center; } .badge:empty { display: none; }
:where(.board) .stage { background: var(--bg-stage); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.seg-group { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { font-family: inherit; font-size: 12px; padding: 5px 10px; background: transparent; color: var(--sub); border: 0; cursor: pointer; } .seg-btn.active { background: rgba(31,200,181,.15); color: var(--brand-teal); }
.stage-content { flex: 1; display: flex; gap: 10px; padding: 14px; overflow: auto; justify-content: center; align-items: flex-start; position: relative; }
.frame-wrap { background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.4); height: 100%; width: 100%; max-width: 100%; display: flex; flex-direction: column; overflow: hidden; }
.frame-wrap iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.frame-label { font-size: 11px; padding: 4px 8px; background: #0F1829; color: var(--muted); }
.stage-content.mobile .frame-wrap { max-width: var(--mobile-w, 375px); }
.stage-content.desktop .frame-wrap { max-width: var(--desktop-w, 640px); }
/* the Studio empty state fills the stage; scoped so the Calendar's .cal-cell.empty padding cells stay ordinary grid cells */
.stage-content > .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
:where(.board) .panel { background: var(--bg-sidebar); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.panel-tabs { display: flex; border-bottom: 1px solid var(--border); }
.ptab { flex: 1; white-space: nowrap; padding: 10px 6px; font-family: inherit; font-size: 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--sub); cursor: pointer; }
.ptab.active { color: var(--brand-teal); border-bottom-color: var(--brand-teal); }
.panel-body { flex: 1; overflow-y: auto; padding: 12px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 8px; font-size: 12px; margin-bottom: 10px; } .kv dt { color: var(--muted); } .kv dd { word-break: break-word; }
.val-err { color: #FCA5A5; font-size: 12px; } .val-warn { color: #FDE68A; font-size: 12px; }
.comment { padding: 8px 10px; border-radius: 8px; background: var(--bg-card); margin-bottom: 8px; border-left: 3px solid var(--c-in_review); }
.comment.resolved { opacity: .6; border-left-color: var(--c-approved); }
.comment-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; gap: 6px; }
.comment-body { font-size: 13px; white-space: pre-wrap; }
.comment-form textarea { margin-bottom: 6px; }
.rev { padding: 8px 10px; border-radius: 8px; background: var(--bg-card); margin-bottom: 6px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rev.approved { border: 1px solid rgba(31,200,181,.5); }
.event { font-size: 12px; overflow-wrap: anywhere; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); } .event .when { color: var(--muted); font-size: 11px; }
.diff { font-family: 'JetBrains Mono', monospace; font-size: 11px; white-space: pre-wrap; background: #0F1829; border-radius: 8px; padding: 8px; max-height: 320px; overflow: auto; }
.diff .add { color: #86EFAC; } .diff .del { color: #FCA5A5; text-decoration: line-through; } .diff .hunk { color: var(--muted); }
.diff-media { margin: 0 0 8px; padding: 8px; border-radius: 8px; background: #0F1829; font-size: 12px; }      /* What changed: images and files */
.diff-media .dm-head { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.diff-media .dm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 3px 0; }
.diff-media .dm-kind { min-width: 64px; color: var(--sub); }
.diff-media .dm-side { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; word-break: break-all; }
.diff-media .dm-side img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: #fff; flex: none; }
.diff-media .dm-side.del span { color: #FCA5A5; text-decoration: line-through; } .diff-media .dm-side.add span { color: #86EFAC; }
.diff-media .dm-arrow { color: var(--muted); }
.copybox { background: #0F1829; border-radius: 8px; padding: 8px; font-size: 12px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; align-items: center; } .copybox span { word-break: break-word; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; width: 420px; max-width: 95vw; }
.modal-card h3 { margin-top: 0; padding-right: 30px; font-size: 15px; }
.modal-card .row { flex-wrap: wrap; }
.modal-card .move-hint { margin: 6px 0 12px; line-height: 1.45; }
#modalHint, #confirmHint { white-space: pre-line; }
/* editing in place on the preview (owner's direction, 26 Oct 2026): the bar above the frame; the post's own buttons wait until it closes */
.ce-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--border-active); border-radius: 8px; background: var(--bg-card); }
.ce-bar[hidden] { display: none; }
.ce-bar .ce-tools { display: inline-flex; gap: 4px; }
.ce-bar .ce-tools[hidden] { display: none; }
.ce-bar .ce-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.src-note { margin: 0 0 4px; }      /* Details: the line saying where the post came from */
.ce-on #envPrimary, .ce-on #itemActions, .ce-on #revSel { display: none !important; }      /* a hint may list comments, one per line */
.modal-card .modal-tick { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 14px; font-size: 13px; color: var(--sub); }
.modal-card .modal-tick input { margin-top: 2px; }
.modal-card .modal-choice { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; padding: 0; border: 0; font-size: 13px; }
.modal-card .modal-choice[hidden] { display: none; }
.modal-card .modal-dup { display: grid; gap: 8px; margin: 0 0 10px; }
.modal-card .modal-dup[hidden] { display: none; }
.modal-card .danger-ok { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.flag-reject { display: inline-block; white-space: nowrap; border-radius: 10px; padding: 0 8px; font-size: 11px; font-weight: 600; background: rgba(250, 124, 124, .15); color: #FCA5A5; }
.confirm-pick { display: grid; gap: 6px; margin: 4px 0 14px; } .confirm-pick label { font-size: 12px; color: var(--sub); } .confirm-pick select { width: 100%; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; } .modal-x:hover { background: var(--bg-card-hover); color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #2D3D54; border-radius: 4px; }
@media (max-width: 899px) { .review-body { grid-template-columns: 280px minmax(0, 1fr); } :where(.board) .panel { position: fixed; right: 0; top: var(--chrome-h); bottom: 0; width: min(360px, 100vw); z-index: 30; box-shadow: -10px 0 30px rgba(0,0,0,.5); } }
/* my tasks work list */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sidebar); color: var(--sub); }
.tile strong { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; } .tile span { font-size: 12px; }
.tile:hover { background: var(--bg-card-hover); color: var(--sub); } .tile.on { border-color: var(--brand-teal); color: #fff; }
.tile.t-attention strong { color: #FBBF24; } .tile.t-attention.on { border-color: #FBBF24; }
.tile.t-draft strong { color: var(--c-draft); } .tile.t-in_review strong { color: var(--c-in_review); } .tile.t-reviewed strong { color: var(--c-reviewed); }
.tile.t-approved strong { color: var(--c-approved); } .tile.t-scheduled strong { color: var(--c-scheduled); }
.tile .tile-late { color: #FCA5A5; font-size: 11.5px; white-space: nowrap; }
.tbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .tbar-row .search { max-width: 360px; }
.tgroup { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sidebar); margin-bottom: 12px; overflow: hidden; }
.tgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--sub); user-select: none; }
.tgroup > summary::-webkit-details-marker { display: none; } .tgroup:not([open]) > summary .chev { transform: rotate(-90deg); } .tgroup .chev { display: inline-block; width: 10px; color: var(--muted); }
.tgroup .tcount { color: var(--muted); font-weight: 500; } .tgroup .tlate { color: #F87171; font-weight: 500; font-size: 12px; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px minmax(120px, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); border-left: 3px solid transparent; }
.task.warm { border-left-color: #FBBF24; } .task.late { border-left-color: #F87171; }
.task .t-title { font-size: 13.5px; font-weight: 500; color: #fff; } .task .t-title .no { color: var(--muted); font-size: 12px; margin-right: 2px; }
.task .t-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* a grouped task opens to one line per post: ID or stage, title in the quiet words All posts uses for tags, Open at the right */
.task .t-list { grid-column: 1 / -1; margin: 0; } .t-list > summary { list-style: none; cursor: pointer; display: inline-block; font-size: 12px; color: var(--brand-teal); user-select: none; }
.t-list > summary::-webkit-details-marker { display: none; } .t-list[open] > summary { color: var(--muted); }
.t-list .t-hide, .t-list[open] .t-show { display: none; } .t-list[open] .t-hide { display: inline; }
.t-list > summary .chev-mark { width: 10px; height: 10px; margin-left: 4px; vertical-align: -1px; transition: transform .15s; } .t-list[open] > summary .chev-mark { transform: rotate(180deg); }
.t-list ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.t-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 0 4px 10px; border-left: 1px solid var(--border); }
.t-list li .no { font-size: 11.5px; } .t-list li .pill { justify-self: start; }
.t-list li .t-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .t-due { font-size: 12.5px; display: flex; flex-direction: column; } .task .t-due small { color: var(--muted); font-size: 11px; }
.task .t-who { font-size: 12.5px; color: var(--sub); }
.task .t-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid; white-space: nowrap; }
.flag.amber { color: #FBBF24; border-color: rgba(251,191,36,.4); } .flag.red { color: #F87171; border-color: rgba(248,113,113,.45); }
.task .t-act { justify-self: end; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .task { grid-template-columns: minmax(0, 1fr) auto; } .task .t-who, .task .t-flags { grid-column: 1 / -1; } }
/* dashboard (every rule scoped under .dash so nothing collides with the Calendar page or the lists) */
.dash .dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .dash .dash-head h1 .accent { color: var(--brand-teal); }
.dash .dash-head p { max-width: 92ch; margin-top: 4px; } .dash .dash-head p b { color: var(--sub); font-weight: 500; }
.dash .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 16px; align-items: start; }
.dash .tband + .dash-grid { margin-top: 16px; } .dash .dash-grid.solo { grid-template-columns: minmax(0, min(420px, 100%)); }
.dash .dash-note { margin: 16px 0 12px; font-size: 13.5px; }
.dash .card { padding: 0; overflow: hidden; }
.dash .card-h { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); } .dash .card-h h2 { margin: 0; } .dash .card-h a { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.dash .card-f { padding: 12px 16px; border-top: 1px solid var(--border); } .dash .card-f a { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.dash .tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dash .tbl th { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.dash .tbl td { padding: 9px 10px; border-top: 1px solid var(--border); font-size: 13px; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .tbl tbody tr:first-child td { border-top: 0; }
.dash .tbl .c-why { width: 168px; } .dash .tbl .c-who { width: 96px; } .dash .tbl .c-when { width: 100px; text-align: right; } .dash .tbl .c-left { width: 126px; text-align: right; } .dash .tbl .c-act { width: 160px; text-align: right; }
.dash .tbl td.c-why, .dash .tbl td.c-who, .dash .tbl td.c-what { white-space: normal; }          /* nothing is cut off: long text wraps */
.dash .tbl .c-what { padding-left: 16px; } .dash .tbl .c-act { padding-right: 16px; }
.dash .pd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--muted); }
.dash .p-email, .dash .p-linkedin, .dash .p-instagram, .dash .p-facebook { background: var(--pc); }      /* the --p-* platform colours, set on .p-* above */
.dash .what b { font-weight: 500; color: #fff; } .dash .what .m { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 0 14px; }
.dash .what .no { white-space: nowrap; font-size: 12px; margin-right: 2px; }      /* the post's ID leads the row and never wraps (30 Oct 2026) */
.dash .why { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; } .dash .why::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dash .why.red { color: #F87171; } .dash .why.red::before { background: #F87171; } .dash .why.amber { color: #FBBF24; } .dash .why.amber::before { background: #FBBF24; }
.dash .why.violet { color: #A78BFA; } .dash .why.violet::before { background: #A78BFA; } .dash .why.blue { color: #38BDF8; } .dash .why.blue::before { background: #38BDF8; }
.dash .who { color: var(--sub); } .dash .who.me { color: var(--muted); }
.dash .when, .dash .left { font-variant-numeric: tabular-nums; } .dash .left { color: var(--muted); } .dash .when.red, .dash .left.red { color: #F87171; } .dash .when.amber, .dash .left.amber { color: #FBBF24; }
.dash .tbl .c-act .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 132px; height: 28px; padding: 0 8px; border-radius: 8px; line-height: 1; font-size: 12px; }
.dash .ac-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 24px 30px; }
.dash .ac-empty svg { width: 44px; height: 44px; fill: none; stroke: #7C8DB0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.dash .ac-empty .t { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--text); }
.dash .ac-empty .d { color: var(--sub); max-width: 46ch; }
.dash .ac-empty .btn { margin-top: 12px; }
.dash .ac .foot { padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
/* dashboard calendar */
.dash .dcal { padding: 12px 14px 8px; }
.dash .dcal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .dash .dcal-h strong { font-size: 14px; }
.dash .dcal-dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.dash .dcal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dash .dcal-d { height: 44px; border-radius: 8px; padding: 4px 0 0; text-align: center; font-size: 12.5px; color: var(--sub); position: relative; font-variant-numeric: tabular-nums; cursor: pointer; }
.dash .dcal-d:hover { background: var(--bg-card-hover); } .dash .dcal-d.off { color: #69798F; pointer-events: none; } .dash .dcal-d.past { color: var(--muted); }
.dash .dcal-d.today { background: rgba(31,200,181,.14); color: #fff; font-weight: 600; outline: 1px solid var(--brand-teal); } .dash .dcal-d.sel { outline: 1px solid var(--sub); }
.dash .dcal-d:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: -2px; }
.dash .dcal-dots { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 3px; height: 6px; }
.dash .dcal-dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
/* every post a solid dot in its platform's colour; sent ones dimmed; one that missed its day ringed in red */
.dash .dcal-dots i.miss { width: 8px; height: 8px; margin-top: -1px; border: 1.5px solid #F87171; } .dash .dcal-dots i.sent { opacity: .4; }
.dash .dcal-panel { border-top: 1px solid var(--border); margin-top: 8px; padding: 10px 2px 2px; font-size: 12.5px; }
.dash .dcal-panel h5 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--sub); display: flex; justify-content: space-between; } .dash .dcal-panel h5 span { color: var(--muted); font-weight: 400; }
.dash .dcal-dp { display: grid; grid-template-columns: 14px 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; color: var(--text); }
.dash .dcal-dp i { width: 8px; height: 8px; border-radius: 50%; display: block; } .dash .dcal-dp i.miss { width: 10px; height: 10px; border: 1.5px solid #F87171; } .dash .dcal-dp i.sent { opacity: .4; }
.dash .dcal-dp .no { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); } .dash .dcal-dp .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .dcal-dp .st { font-size: 11.5px; color: var(--muted); white-space: nowrap; } .dash .dcal-dp .st.red { color: #F87171; } .dash .dcal-dp .st.ok { color: var(--brand-teal); }
.dash .dcal-panel .none { color: var(--muted); }
.dash .dcal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; color: var(--muted); padding: 10px 2px 4px; border-top: 1px solid var(--border); margin-top: 8px; }
.dash .dcal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; } .dash .dcal-legend i.plan { background: var(--sub); } .dash .dcal-legend i.miss { width: 10px; height: 10px; background: var(--sub); border: 1.5px solid #F87171; } .dash .dcal-legend i.sent { background: var(--sub); opacity: .4; }
/* next month's pipeline band (agency): title + one line, send-by box tinted by urgency, one row per platform */
.dash .tband { margin-top: 16px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px 18px; display: grid; gap: 14px; }
.dash .tband-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; }
.dash .tband .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-teal); margin-bottom: 6px; }
.dash .tband h2 { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 0; }
.dash .tband .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 70ch; }
.dash .sendby { display: grid; gap: 2px; border-radius: 10px; padding: 9px 14px 10px; font-size: 13.5px; line-height: 1.35; color: var(--sub); background: var(--bg-card); white-space: nowrap; }
.dash .sendby b { font-weight: 600; color: var(--text); } .dash .sendby .days { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash .sendby.calm { background: var(--bg-card); }
.dash .sendby.soon { background: rgba(251,191,36,.10); } .dash .sendby.soon b { color: #FBBF24; }
.dash .sendby.urgent, .dash .sendby.passed { background: rgba(239,68,68,.12); } .dash .sendby.urgent b, .dash .sendby.passed b { color: #F87171; }
.dash .sendby.passed { background: rgba(239,68,68,.22); }
.dash .sendby.done { background: rgba(31,200,181,.10); } .dash .sendby.done b { color: var(--brand-teal); }
/* statements without a date ("Review done on time"): the state colours the words instead */
.dash .sendby .nodate { font-weight: 500; }
.dash .sendby.done .nodate { color: var(--brand-teal); } .dash .sendby.soon .nodate { color: #FBBF24; } .dash .sendby.urgent .nodate, .dash .sendby.passed .nodate { color: #F87171; }
.dash .ptable { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-card); }
.dash .prow { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(3, minmax(80px, 1fr)); align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--border); }
.dash .prow.head { border-top: 0; background: var(--bg-sidebar); padding: 8px 14px; }
.dash .prow.head span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.dash .prow.head span:first-child { text-align: left; }
.dash .prow .pname { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 500; }
.dash .prow .pname .pd { margin: 0; }
.dash .prow .pcell { display: grid; gap: 2px; min-width: 0; }
.dash .prow .pmeta { padding-left: 20px; font-size: 11.5px; color: var(--muted); }
.dash .prow .n.full { color: var(--brand-teal); } .dash .prow .n.dash { color: var(--muted); }
.dash .prow .n small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.dash .prow .n { text-align: center; font-size: 20px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash .prow .n.zero { color: var(--muted); }
.dash .prow.quiet .pname { color: var(--muted); }
@media (max-width: 1000px) { .dash .dash-grid { grid-template-columns: 1fr; } .dash .tbl .c-who, .dash .tbl .c-left { display: none; } }
/* phone: each platform becomes a small block, name on top and the three figures beneath, each carrying its own label */
@media (max-width: 560px) {
  .dash .sendby { white-space: normal; }
  .dash .ptable { position: relative; }
  .dash .prow.head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }   /* still read out to screen readers */
  .dash .prow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; padding: 12px 14px; }
  .dash .prow.head + .prow { border-top: 0; }
  .dash .prow .pcell { grid-column: 1 / -1; }
  .dash .prow .n { display: block; font-size: 18px; }
  .dash .prow .n::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 380px) { .dash .tband { padding: 14px 12px 16px; } .dash .prow { gap: 6px; padding: 12px 10px; } .dash .prow .n::before { font-size: 10px; letter-spacing: 0; } }
.req-tag { white-space: nowrap; font-size: 11px; color: #A78BFA; border: 1px solid rgba(167,139,250,.5); border-radius: 10px; padding: 0 7px; margin-left: 6px; }
.req-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--sub); } .req-row .select.small { width: auto; }
.comment.request { border-left: 3px solid #A78BFA; }

/* a note under a field or under the pipeline: amber, the same tint as a deadline that is getting close */
.month-note, .dash .tband-note { background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.45); color: #FBBF24; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.45; margin: 4px 0 8px; }
.dash .tband-note { font-size: 13.5px; padding: 9px 12px; margin: 0; }
.dash .tband-note a { color: inherit; text-decoration: underline; }
.dash .tband-note a:hover { color: #FDE68A; }
/* dashboard task board on narrower screens: time left goes first, then the holder; on a phone each row becomes a small block */
@media (max-width: 1280px) { .dash .tbl .c-left { display: none; } }
@media (max-width: 1140px) { .dash .tbl .c-who { display: none; } }
@media (max-width: 700px) {
  .dash .tbl { table-layout: auto; }
  .dash .tbl thead { display: none; }
  .dash .tbl tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 11px 14px; border-top: 1px solid var(--border); }
  .dash .tbl tbody tr:first-child { border-top: 0; }
  .dash .tbl td { display: block; width: auto; padding: 0; border: 0; text-align: left; }
  .dash .tbl .c-what { grid-column: 1 / -1; padding: 0; white-space: normal; }
  .dash .tbl .c-why { grid-column: 1; } .dash .tbl .c-when { grid-column: 2; text-align: right; }
  .dash .tbl .c-act { grid-column: 1 / -1; padding: 0; text-align: left; }
  .dash .tbl .c-act .btn { width: 100%; }
}

/* how the monthly cycle works: three blocks under the pipeline */
.dash .cycle { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px 20px; margin: 16px 0; }
.dash .cycle h2 { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }
.dash .cycle p { margin: 2px 0 12px; }
.dash .cycle .steps, .settings .cycle .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cycle .step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.cycle .step .days { font-size: 12px; color: var(--muted); }
.cycle .step strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cycle .step .what { font-size: 13px; color: var(--sub); }
.cycle .step .by { margin-top: 6px; font-size: 12px; color: var(--muted); } .cycle .step .by b { color: var(--brand-teal); font-weight: 600; }

/* Dashboard: the monthly workflow as a timeline, three numbered stops on one line */
.dash .flow-card { padding: 22px 26px 28px; }
.dash .flow-card h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.dash .flow-card .flow-sub { margin: 4px 0 20px; font-size: 13.5px; color: var(--sub); }
/* the Dashboard's workflow card only: Help's journey diagram has its own classes (.jd), so this grid and line never reach it */
.flow-card .flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.flow-card .flow::before { content: ""; position: absolute; left: 14px; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, #1E93E0 0%, #1A86F0 38%, #1FC8B5 76%, rgba(31,200,181,0) 100%); }
.fstep { position: relative; display: grid; gap: 4px; align-content: start; padding-right: 28px; }
.fnum { position: relative; z-index: 1; justify-self: start; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: #fff; }
.fstep.s1 .fnum { background: #1AA3F5; } .fstep.s2 .fnum { background: #1678F2; } .fstep.s3 .fnum { background: #12C9DB; }
.fdays { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fstep strong { font-size: 17px; font-weight: 700; line-height: 1.3; }
.fwhat { max-width: 36ch; font-size: 13.5px; line-height: 1.5; color: var(--sub); }
@media (max-width: 700px) {
  .dash .flow-card { padding: 18px 16px 22px; }
  .flow-card .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow-card .flow::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; background: linear-gradient(180deg, #1E93E0 0%, #1A86F0 45%, #1FC8B5 100%); }
  .fstep { grid-template-columns: 28px 1fr; column-gap: 14px; padding-right: 0; }
  .fnum { grid-row: 1 / span 4; margin-bottom: 0; }
}
.settings .cycle .rules { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--sub); font-size: 13px; }

/* settings: a menu on the left, one section on the right */
.settings .sgrid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings .snav { display: grid; gap: 2px; align-content: start; position: sticky; top: 12px; }
.settings .sgrp { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.settings .sgrp:first-child { padding-top: 0; }
.settings .snav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--sub); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.settings .snav a:hover { background: var(--bg-card); }
.settings .snav a.on { background: var(--bg-card); color: var(--brand-teal); }
.settings .snav a:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 1px; }
.tag-amber, .tag-grey { font-size: 10.5px; font-weight: 600; padding: 3px 6px; border-radius: 5px; white-space: nowrap; line-height: 1; }
.tag-amber { background: rgba(251,191,36,.16); color: #FBBF24; } .tag-grey { background: var(--bg-card); color: var(--muted); }
.settings .shead { margin-bottom: 12px; } .settings .shead h2 { margin: 0 0 2px; }
.settings .sfields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }
.settings .sfield { display: grid; gap: 5px; align-content: start; min-width: 0; }
.settings .sfield.wide { grid-column: 1 / -1; }
.settings .sfield > label:first-child { font-size: 12.5px; color: var(--muted); }
.settings .sfield input[type="text"], .settings .sfield input[type="date"], .settings .sfield textarea { width: 100%; box-sizing: border-box; }
.settings .sfield .ro { font-size: 14px; color: var(--text); overflow-wrap: anywhere; } .settings .sfield .ro.blank { color: var(--muted); font-style: italic; }
.settings .sfield .chk { font-size: 12.5px; color: var(--sub); } .settings .sfield small { font-size: 11.5px; }
.settings .sactions { margin-top: 16px; }
.settings .skv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 14px; margin: 10px 0 0; font-size: 13.5px; }
.settings .skv dt { color: var(--muted); } .settings .skv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 800px) { .settings .sgrid { grid-template-columns: 1fr; } .settings .snav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .settings .sgrp { display: none; } .settings .skv { grid-template-columns: 1fr; } }

/* brand and account details on Resources */
.resources .details-block { margin-bottom: 28px; }
.resources .det-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.resources .det-card h3 { margin: 0 0 8px; font-size: 14.5px; }
.resources .drow { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--border); font-size: 13px; }
.resources .drow:first-of-type { border-top: 0; }
.resources .dk { color: var(--muted); } .resources .dv { color: var(--text); overflow-wrap: anywhere; } .resources .dv a { color: #38BDF8; text-decoration: none; }

/* settings: errors, who changed what, unsaved changes */
.settings .sfield.err input, .settings .sfield.err textarea { border-color: #F87171; }
.settings .sfield .ferr { color: #F87171; font-size: 12px; }
.settings .lastchg { margin: 0 0 12px; font-size: 13px; color: var(--muted); } .settings .lastchg b { color: var(--text); font-weight: 600; }
.settings .recent { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.settings .recent li { padding-top: 10px; border-top: 1px solid var(--border); } .settings .recent li:first-child { padding-top: 0; border-top: 0; }
.settings .sactions { display: flex; align-items: center; gap: 12px; } .settings .sdirty { font-size: 12.5px; color: #FBBF24; }

@media (max-width: 1099px) { .item-head .tb-group { flex-wrap: wrap; } }
/* below 1180px the workspace name has no room beside the admin's pages: it goes rather than leave its divider behind with no text */
@media (min-width: 1000px) and (max-width: 1179px) { .topbar .ws-name { display: none; } }
/* tablet: the topbar becomes two rows (brand and account, then the nav, which scrolls sideways inside its own row); --chrome-h follows.
   Above 999px the one row fits for every role, the admin's longest bar included. */
@media (max-width: 999px) {
  :root:has(.topbar .nav) { --topbar-h: 96px; }
  .topbar:has(.nav) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) 44px; gap: 0 12px; padding: 0 12px; }
  .topbar:has(.nav) .brand { grid-column: 1; grid-row: 1; } .topbar:has(.nav) .acct { grid-column: 2; grid-row: 1; }
  .topbar:has(.nav) .nav { grid-column: 1 / -1; grid-row: 2; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .nav a { flex: none; }
  /* the nav row scrolls sideways here, which would clip a menu hung from it: the menu hangs from the top bar instead */
  .topbar .nav .navdd { position: static; } .topbar .nav .navdd-menu { top: 100%; left: auto; margin-top: -4px; }
}
/* phone: one short row, the brand and a Menu button that opens every page and the account in one list */
@media (max-width: 699px) {
  :root:has(.topbar .nav) { --topbar-h: 56px; }
  .topbar, .topbar:has(.nav) { display: flex; padding: 0 12px; gap: 12px; }
  .topbar .nav, .topbar .acct, .topbar .ws-name { display: none; }
  .navmenu { display: block; position: static; }
  .navmenu-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--topbar-h)); overflow-y: auto; padding: 8px 12px 12px; background: var(--bg-sidebar); border-bottom: 1px solid var(--border); }
  .navmenu-links a { display: block; padding: 11px 10px; border-radius: 8px; color: var(--sub); font-size: 14px; font-weight: 500; }
  .navmenu-links a.active, .navmenu-links a:hover { background: rgba(31,200,181,.12); color: var(--brand-teal); }
  .navmenu-links .navdd > summary { pointer-events: none; padding: 12px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
  .navmenu-links .navdd-chev { display: none; } .navmenu-links .navdd-menu { padding-left: 10px; }
  .navmenu-acct { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
  .navmenu-acct .acct-who { border-bottom: 0; margin-bottom: 0; } .navmenu-acct .acct-item { padding: 11px 10px; font-size: 14px; }
}
/* phone: the Studio stacks (list, then preview) and the page scrolls instead of the two panes */
@media (max-width: 699px) {
  body.board-body { height: auto; min-height: 100vh; overflow: visible; }
  .board { height: auto; overflow: visible; }
  .board .review-body, .board.no-panel .review-body { flex: none; grid-template-columns: minmax(0, 1fr); }
  :where(.board) .sidebar { max-height: 45vh; border-right: 0; border-bottom: 1px solid var(--border); }
  :where(.board) .stage { height: 100vh; min-height: 520px; }
  :where(.board) .panel { width: 100vw; }
  .item-head { padding: 10px 12px; }
  .env-side { flex-direction: column; align-items: flex-end; gap: 4px; }      /* the month chip sits above the date, so the sender line keeps its room */
  .stage-content { padding: 8px; }
}

/* tags: a tag is a soft pill in its own colour (--tc) with no border; a tag without a colour is grey. Chips, the Buffer's filter bar, the box that
   adds tags to a post, and the Manage tags panel. templates/_tags_panel.html and tags.js write the same markup. */
.tchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; padding: 3px 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--tc, #94A3B8) 20%, transparent); color: var(--text); font-family: inherit; font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchip.archived { opacity: .6; font-style: italic; }
.tchip.more { padding: 3px 4px; background: transparent; color: var(--muted); }
a.tchip, button.tchip { cursor: pointer; text-decoration: none; }
a.tchip:hover, button.tchip:hover { background: color-mix(in srgb, var(--tc, #94A3B8) 32%, transparent); color: var(--text); }
a.tchip.on, button.tchip.on, a.tchip.on:hover, button.tchip.on:hover { background: color-mix(in srgb, var(--tc, var(--brand-teal)) 44%, transparent); color: var(--text); }
.tpill.on::before { content: "\2713"; font-size: 11px; }
.tchip:focus-visible, .tx:focus-visible, .tadd:focus-visible, .tpick-all:focus-visible, .tpick-q:focus-visible, .tf-q:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
/* the x on a tag: it takes room only while the pointer is over the tag (always, where there is no pointer to hover with) */
.tx { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-family: inherit; font-size: 14px; line-height: 1; opacity: 0; overflow: hidden; cursor: pointer; transition: width .12s, margin .12s, opacity .12s; }
.tchip:hover .tx, .tchip:focus-within .tx, .tx:focus-visible { width: 14px; margin-left: 2px; opacity: .85; } .tx:hover { opacity: 1; }
@media (hover: none) { .tx { width: 14px; margin-left: 2px; opacity: .7; } }
.tcount { color: var(--muted); font-variant-numeric: tabular-nums; } .tchip .tcount { color: var(--sub); } .tchip.on .tcount { color: var(--text); }
.tchips { display: inline-flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tnote { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.tdot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tc, var(--border-input)); vertical-align: middle; }
.topt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 3px 0; font-size: 13px; color: var(--text); cursor: pointer; }
.topt input { width: auto; margin: 0; accent-color: var(--brand-teal); }
.topt .tdot { margin-right: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the box that adds tags to a post (Buffer row, Studio Details): find a tag, View all, click to add or remove */
.trow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; } .trow:empty { display: none; }
.tadd { display: inline-flex; align-items: center; padding: 3px 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-family: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; white-space: nowrap; }
.tadd:hover { background: rgba(255,255,255,.12); color: var(--text); }
.tpick-slot { flex: 1 1 100%; min-width: 0; }
.tpick { display: grid; gap: 8px; max-width: 480px; margin: 2px 0 4px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.tpick-bar { display: flex; align-items: center; gap: 6px; }
input.tpick-q, input.tf-q { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; padding: 6px 10px; border: 1px solid var(--border-input); border-radius: 8px; background: rgba(0,0,0,.28); color: var(--text); font-family: inherit; font-size: 13px; }
input.tf-q { flex: 0 1 220px; }
.tpick-all { flex: none; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--brand-teal); font-family: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; } .tpick-all:hover { background: rgba(31,200,181,.12); }
.tpick-res { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tpick-cap { flex: 1 1 100%; margin-top: 2px; font-size: 11px; color: var(--muted); }
.tpick-more, .tpick-none { font-size: 12px; color: var(--muted); }
.tpick-err, .terr { margin: 0; font-size: 12.5px; color: #FCA5A5; }
.tpanel-err { margin: 6px 0 0; font-size: 12.5px; color: #FCA5A5; }
.tpanel-actions { display: flex; gap: 8px; margin-top: 10px; }
/* Buffer: filter bar, group-by, headings, rows */
.tfilter { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.tf-line, .tf-group, .tf-opts, .tf-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tf-opts { gap: 8px 24px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.tf-label { margin-right: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tf-g { font-weight: 600; }
.tf-list { display: none; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.tfilter.tf-open .tf-list { display: flex; }
a.seg-btn { display: inline-block; } a.seg-btn:hover { color: #fff; } a.seg-btn.active, a.seg-btn.active:hover { color: var(--brand-teal); }
.tgroupby { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .tgroupby label { margin: 0; font-size: 12px; color: var(--muted); }
.tgroupby select { width: auto; min-width: 150px; padding: 4px 8px; font-size: 12px; }
.tag-none, .tag-hint, .tag-stale { margin: 0 0 12px; }
.table .tag-head th { padding: 9px 8px; background: var(--bg-sidebar); color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.item-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lpill { font-size: 10px; line-height: 15px; padding: 2px 8px; border-radius: 8px; background: rgba(30,147,224,.12); border: 1px solid rgba(30,147,224,.3); color: #38BDF8; white-space: nowrap; }
.lpill.archived { background: transparent; border-color: rgba(148,163,184,.3); color: #7B8AA0; font-style: italic; } .lpill.more { background: transparent; border-color: rgba(148,163,184,.3); color: var(--muted); }
/* Manage tags */
.tmanage { margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-sidebar); }
.tmanage > summary { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--sub); }
.tmanage > summary::-webkit-details-marker { display: none; } .tmanage > summary::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; background: var(--muted); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transform: rotate(-90deg); } .tmanage[open] > summary::before { transform: none; }
.tmanage > summary:focus-visible { outline-offset: -2px; }
.tmanage-body { padding: 0 14px 14px; }
.tm-list, .tm-kids { list-style: none; } .tm-list { display: grid; gap: 8px; margin: 10px 0; }
.tm-item { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.tm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; }
.tm-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; } .tm-sub .tm-name { font-weight: 500; }
.tm-flag { white-space: nowrap; padding: 1px 7px; border: 1px solid var(--border); border-radius: 8px; font-size: 11px; color: var(--muted); }
.tm-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tm-kids { margin: 0; padding: 0 0 4px 22px; border-top: 1px solid var(--border); } .tm-sub + .tm-sub { border-top: 1px solid rgba(255,255,255,.05); }
.tm-item.archived > .tm-row .tm-name, .tm-sub.archived > .tm-row .tm-name { color: var(--muted); }
.tm-slot { margin: 0 12px 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sidebar); }
.tm-add + .tm-slot { margin: 10px 0 0; }
.tm-msg { margin: 8px 0 0; font-size: 12.5px; color: #FCA5A5; }
.tm-form { display: grid; gap: 10px; max-width: 460px; } .tm-title { font-size: 13px; color: var(--text); }
.tm-field { display: grid; gap: 4px; margin: 0; font-size: 12px; color: var(--sub); } .tm-field input[type=text] { margin: 0; }
.tm-lbl { font-size: 12px; color: var(--sub); }
.tm-ex { align-items: flex-start; flex-wrap: wrap; }
.tsws { display: flex; flex-wrap: wrap; gap: 8px; }
.tsw { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.tsw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tsw .dot { width: 22px; height: 22px; border: 2px solid transparent; border-radius: 50%; background: var(--tc); }
.tsw .dot.none { border: 2px dashed var(--border-input); background: transparent; }
.tsw input:checked + .dot { border-style: solid; border-color: var(--text); }
.tsw input:focus-visible + .dot { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
@media (max-width: 699px) {
  .tm-actions { margin-left: 0; width: 100%; } .tm-kids { padding-left: 10px; } .tgroupby select { min-width: 0; flex: 1 1 140px; }
}

/* Help (26 Oct 2026): the stage strip, the role tabs, numbered steps and folded reference parts */
/* Help: a post's journey by who moves it, in the app's own stage colours (owner's pick, 27 Oct 2026) */
.help .jd { display: block; width: 100%; max-width: 760px; height: auto; margin: 4px 0 6px; font-family: inherit; }
.help .jd .lane { fill: none; stroke: var(--border); stroke-dasharray: 4 4; }
.help .jd .who { fill: var(--text); font-size: 13px; font-weight: 600; } .help .jd .whosub { fill: var(--muted); font-size: 11px; }
.help .jd .st rect { stroke-width: .8; } .help .jd .st text { font-size: 12.5px; text-anchor: middle; dominant-baseline: central; }
.help .jd .st.draft rect { fill: rgba(250,204,21,.12); stroke: var(--c-draft); } .help .jd .st.draft text { fill: var(--c-draft); }
.help .jd .st.in_review rect { fill: rgba(91,141,239,.14); stroke: var(--c-in_review); } .help .jd .st.in_review text { fill: var(--c-in_review); }
.help .jd .st.reviewed rect { fill: rgba(167,139,250,.14); stroke: var(--c-reviewed); } .help .jd .st.reviewed text { fill: var(--c-reviewed); }
.help .jd .st.approved rect { fill: rgba(31,200,181,.12); stroke: var(--c-approved); } .help .jd .st.approved text { fill: var(--c-approved); }
.help .jd .st.scheduled rect { fill: rgba(52,211,153,.12); stroke: var(--c-scheduled); } .help .jd .st.scheduled text { fill: var(--c-scheduled); }
.help .jd .flow { fill: none; stroke: var(--muted); stroke-width: 1; } .help .jd marker path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.help .hstages td { vertical-align: top; }
.help .htabs { margin: 0 0 12px; } .help .htabs .seg-btn { font-size: 13px; padding: 7px 14px; }
.help .hsteps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.help .hsteps li::marker { color: var(--brand-teal); font-weight: 600; }
.help .hknow { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-sidebar); color: var(--sub); font-size: 13px; line-height: 1.5; }
.help .hrefs { margin: 22px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: none; }
.help .hfold { padding-top: 12px; padding-bottom: 12px; }
.help .hfold summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.help .hfold summary::-webkit-details-marker { display: none; }
.help .hfold summary::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--muted); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transform: rotate(-90deg); } .help .hfold details[open] summary::before { transform: none; }
.help .hfold summary h2 { margin: 0; } .help .hfold details[open] summary { margin-bottom: 10px; }
/* the tracking ID (EDM-122) at the start of the open post's stage line */
.stage-line .tid { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--brand-teal); margin-right: 8px; letter-spacing: .02em; }

/* Content studio: the list on the left hidden with Hide list (owner's pick, 26 Oct 2026); last in the file so it wins at every width */
.board.no-list .sidebar { display: none; }
.board.no-list .review-body { grid-template-columns: minmax(0, 1fr) 380px; }
.board.no-list.no-panel .review-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .board.no-list .review-body { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 899px) { .board.no-list .review-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .board.no-list.no-panel .review-body { grid-template-columns: minmax(0, 1fr); } }

/* Add block: the block library beside the email being edited (board.js cb*, app/blocks.py; 27 Oct 2026) */
.cb-lib { position: fixed; z-index: 45; right: 16px; top: calc(var(--chrome-h) + 16px); width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - var(--chrome-h) - 32px);
  display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 12px; }
.cb-lib[hidden] { display: none; }
.cb-lib-head { display: flex; justify-content: space-between; align-items: center; }
.cb-lib-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.cb-item { background: var(--bg-card); border: 1px solid transparent; border-radius: 10px; }
.cb-item:hover { border-color: var(--border-input); }
.cb-pick { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 11px 4px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font-family: inherit; }
.cb-item-name { font-size: 12.5px; font-weight: 600; } .cb-pin { font-size: 10px; color: var(--brand-teal); font-weight: 500; }
.cb-item-from { font-size: 10.5px; color: var(--brand-teal); } .cb-item-text { font-size: 11px; color: var(--muted); line-height: 15px; }
.cb-item-acts { display: flex; gap: 2px; padding: 0 6px 6px; }


/* Planner (28 Oct 2026): coming soon; its calendar is the Calendar's (.cal) */
.planner-soon { display: inline-block; white-space: nowrap; margin-left: 8px; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; vertical-align: middle; color: #FDE68A; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4); }

/* Settings → Monthly workflow (28 Oct 2026, owner's pick, option A): one layout for its three cards, and a switch drawn from a checkbox */
.wf form { margin-top: 12px; } .wf p.muted { max-width: 780px; }
.wf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wf-table th, .wf-table td { padding: 9px 12px; text-align: left; vertical-align: middle; border-top: 1px solid var(--border); }
.wf-table th:first-child { padding-left: 0; }
.wf-table thead th { white-space: nowrap; border-top: 0; padding-top: 0; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.wf-table thead th:nth-child(2) { width: 120px; } .wf-table thead th:nth-child(3) { width: 190px; }
.wf-table tbody th { font-weight: 500; color: var(--text); }
.wf input.wf-num { width: 72px; min-width: 0; flex: none; text-align: center; }
.wf-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.wf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; } .wf-row .wf-actions { margin-top: 0; }
.wf-field { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--sub); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--border-input); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--brand-teal); } .switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.switch .switch-off, .switch input:not(:checked) ~ .switch-on { display: none; } .switch input:not(:checked) ~ .switch-off { display: inline; }
@media (max-width: 699px) { .wf-table thead th:nth-child(3) { width: auto; } .wf-table th, .wf-table td { padding: 9px 6px; } }
