: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; }
/* what went where, from the Buffer (board.js doneNote): in the middle of the screen, faded out by 2.5 seconds */
.flash-done { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; width: min(380px, calc(100vw - 32px)); display: grid; justify-items: center; gap: 6px; padding: 24px 28px 22px; text-align: center; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.5); color: var(--text); cursor: pointer; animation: done-fade 2.5s ease forwards; }
.flash-done .done-tick { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-teal); color: var(--brand-navy); }
.flash-done .done-tick .ico { width: 24px; height: 24px; }
.flash-done strong { font-size: 16px; font-weight: 600; }
.flash-done .done-where { color: var(--sub); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.flash-done button { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
@keyframes done-fade { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flash-done { animation: none; } }
.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: .75; } :where(.board) .item.scrapped:hover { opacity: .95; }      /* faded, but still read (the static review pages, 3 Nov 2026) */
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 21px; margin-bottom: 5px; }
.item-top-end { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
/* the content type chip in the post's head: grey (owner, 3 Nov 2026); on a card the type is a word beside the ID (.itype) */
.ctype { display: inline-flex; align-items: center; white-space: nowrap; font-size: 10px; font-weight: 400; padding: 2px 7px; border-radius: 8px;
  color: var(--sub); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.ctype.other { color: #64748B; }
/* a card's top line (owner's proposal 6, 3 Nov 2026): the ID and the type as quiet text, and one pill, the stage or the status in its place */
.item-id { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.item-id .isep { color: #475569; font-size: 11px; }
.itype { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #64748B; overflow: hidden; text-overflow: ellipsis; }
.spill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(148,163,184,.18);
  color: var(--sub); font-size: 10.5px; white-space: nowrap; }
.spill i { width: 6px; height: 6px; border-radius: 50%; background: #66758C; }
.spill.stage-in_review i { background: #5B8DEF; } .spill.stage-reviewed i { background: #A78BFA; } .spill.stage-approved i { background: #4FB98A; }
.spill.stage-scheduled i { background: var(--brand-teal); } .spill.stage-published i { background: #7C8BA1; } .spill.stage-scrapped i { background: #EF4444; }
/* a scrapped card says it is out (owner, 3 Nov 2026, as the static review pages do): a red no-entry mark, the ID and type in red, a red dot */
.item.scrapped .item-id .no, .item.scrapped .item-id .itype, .item.scrapped .item-id .isep { color: #F87171; }
.iscrap { display: inline-flex; align-self: center; color: #EF4444; } .iscrap .ico { width: 12px; height: 12px; }
.spill.late { color: #F3B4AC; border-color: rgba(224,122,110,.4); } .spill.late i { background: #E07A6E; }
.spill.soon { color: #F6C49C; border-color: rgba(240,136,78,.38); } .spill.soon i { background: #F0884E; }
/* the conversation block (comment-alerts-matrix-2026-11-03.md): the latest unread message in the sender's words, then whose action the open
   questions await. Mustard is for unread only. */
.cv { margin-top: 9px; border: 1px solid rgba(148,163,184,.15); border-radius: 9px; background: rgba(8,14,26,.45); overflow: hidden; cursor: pointer; }
.cv.closed { opacity: .72; }
.cv-unread { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 9px; padding: 8px 10px 8px; background: rgba(212,165,74,.07); }
.cv-unread + .cv-status { border-top: 1px solid rgba(148,163,184,.15); }
.cv-unread > .cav { grid-row: span 2; margin-top: 1px; }
.cv-head { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; color: var(--sub); white-space: nowrap; }
.cv-head b { color: #E7ECF3; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cv-when { color: #64748B; }
.cv-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #D4A54A; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.cv-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #D4A54A; }
.cv-quote { font-size: 12px; line-height: 17px; color: #E7ECF3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cv-more { grid-column: 2; display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 10.5px; color: var(--sub); }
.cv-stack { display: inline-flex; } .cv-stack .cav { width: 16px; height: 16px; font-size: 6.5px; margin-left: -4px; box-shadow: 0 0 0 1.5px #0F1829; } .cv-stack .cav:first-child { margin-left: 0; }
.cv-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 9px; }
.cv-st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 6px; border: 1px solid rgba(148,163,184,.16); color: var(--sub); font-size: 10.5px; white-space: nowrap; }
.cv-st .ico { width: 12px; height: 12px; }
.cv-st b { margin-left: 1px; min-width: 16px; padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,.08); color: #E7ECF3; font-weight: 500; font-size: 10px; line-height: 15px; text-align: center; font-variant-numeric: tabular-nums; }      /* the count after its label */
.cv-st.you { background: rgba(231,236,243,.1); border-color: rgba(231,236,243,.32); color: #E7ECF3; }
.cv-st.queued { border-style: dashed; }
.cv-st.done { border-color: transparent; padding-left: 0; color: #64748B; } .cv-st.done b { background: none; color: #64748B; font-weight: 400; padding: 0; }
.cav { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 8px; font-weight: 600;
  letter-spacing: .03em; color: #0B1220; background: #94A3B8; }
.cav.agency { background: var(--brand-teal); } .cav.reviewer { background: #5B8DEF; } .cav.approver { background: #A78BFA; }      /* the threads' side colours */
/* the Comments tab: open questions, and a mustard dot while anything is unread; Show details puts unread first */
.cbadge { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; }
.cbadge .cb-n { font-size: 11px; color: var(--sub); }
.cbadge .cb-dot { width: 6px; height: 6px; border-radius: 50%; background: #D4A54A; }
.badge.unread { background: rgba(212,165,74,.2); color: #E3B860; }
/* My Tasks in the top bar: how many posts have unread messages */
.navcount { display: inline-block; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: rgba(212,165,74,.2); color: #E3B860;
  font-size: 10.5px; line-height: 17px; text-align: center; vertical-align: 1px; }
/* My Tasks: unread messages, every platform and month */
.inbox { margin: 4px 0 18px; border: 1px solid rgba(148,163,184,.16); border-radius: 12px; background: var(--panel, #0F1829); overflow: hidden; }
.inbox h2 { margin: 0; padding: 10px 14px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(148,163,184,.14); }
.inbox h2 span { font-size: 12px; font-weight: 400; color: var(--sub); }
.inbox-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(148,163,184,.1); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: rgba(255,255,255,.03); }
.inbox-row .cav { grid-row: span 2; }
.ib-l1 { font-size: 12.5px; color: var(--sub); min-width: 0; } .ib-l1 b { color: #E7ECF3; font-weight: 500; } .ib-meta { color: #64748B; }
.ib-l2 { grid-column: 2; font-size: 12.5px; color: #E7ECF3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
: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; }
.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; }
/* a comment card: a 1-pixel edge at about half strength (owner, 2 Nov 2026), in place of the 3-pixel bar */
.comment { padding: 8px 10px; border-radius: 8px; background: var(--bg-card); margin-bottom: 8px; border-left: 1px solid rgba(91,141,239,.55); }
.comment.resolved { border-left-color: rgba(31,200,181,.5); } .comment.resolved > .cq, .comment.resolved > .cfoot .cstatus { opacity: .6; }
.comment.nostatus { border-left-color: rgba(148,163,184,.45); }
.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; }
.comment-actions { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.comment-ico { display: inline-flex; align-items: center; justify-content: center; padding: 4px 6px; }
.comment-ico .ico { width: 14px; height: 14px; vertical-align: 0; }
.comment-ico.danger:hover { color: #FCA5A5; border-color: #FCA5A5; }
.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: 1px solid rgba(167,139,250,.55); }

/* 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; }
}


/* ---- The Planner (planner-build-plan-2026-11-04.md): the agreed sixth preview's styles ---- */
/* Every rule here is scoped to the Plan page: its own pl- names, or under .planner. */
.planner .page .flash { margin: 0 0 14px; }
.pl-head-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pl-saved .ico { width: 13px; height: 13px; color: var(--brand-teal); }
.pl-link { background: none; border: 0; padding: 0; color: var(--brand-teal); font: inherit; font-size: inherit; cursor: pointer; }
.pl-link:hover { text-decoration: underline; }

/* the life of a plan, always on top */
.pl-track { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.pl-track li { position: relative; padding: 30px 10px 0 0; min-width: 0; }
.pl-track li::before { content: ""; position: absolute; top: 10px; left: 24px; right: 0; height: 2px; background: var(--border); }
.pl-track li:last-child::before { display: none; }
.pl-track li.done::before { background: var(--brand-teal); }
.pl-track .dot { position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-input); background: var(--bg-canvas); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.pl-track .dot .ico { width: 11px; height: 11px; }
.pl-track li.done .dot { background: var(--brand-teal); border-color: var(--brand-teal); color: #0A1120; }
.pl-track li.now .dot { border-color: var(--brand-teal); color: var(--brand-teal); box-shadow: 0 0 0 4px rgba(31,200,181,.16); }
.pl-track b { display: block; font-size: 13px; font-weight: 600; color: var(--sub); }
.pl-track li.now b { color: var(--text); } .pl-track li.todo b { color: var(--muted); font-weight: 500; }
.pl-track span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* shared bits */
.pl-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pl-ch h2 { margin: 0; font-size: 16px; }
.planner .lead { font-size: 13px; color: var(--sub); margin: 0 0 14px; line-height: 1.5; max-width: 760px; }
.pl-sub { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pl-sub:first-of-type { margin-top: 6px; }
.pl-sub .n { letter-spacing: 0; text-transform: none; font-weight: 500; }
.planner .stag { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; font-weight: 600; color: var(--sub); border: 1px solid var(--border-input); border-radius: 999px; padding: 0 8px; height: 20px; white-space: nowrap; }
.planner .stag .ico { width: 11px; height: 11px; }
.pl-opt { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; line-height: 18px; letter-spacing: 0; text-transform: none; }
.pl-ai { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(31,200,181,.14); color: var(--brand-teal); flex: none; }
.pl-ai .ico { width: 13px; height: 13px; }
.pl-actionbar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-sidebar); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.pl-actionbar .msg { font-size: 13px; color: var(--sub); flex: 1 1 320px; line-height: 1.45; }
.pl-actionbar .msg b { color: var(--text); font-weight: 600; }
.pl-actionbar .msg.warn { color: #FDE68A; }
.pl-actionbar .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.planner .btn .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.planner .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 1. the brief */
.pl-brief { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-brief > div { display: grid; gap: 16px; min-width: 0; }
.pl-brief .card { margin-bottom: 0; }
.pl-q { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.pl-q label { font: inherit; color: var(--text); margin: 0; }
.pl-intent textarea { display: block; width: 100%; min-height: 132px; font-size: 15px; line-height: 1.55; padding: 12px 14px; border-radius: 10px; }
.pl-intent .under { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pl-reads { margin-top: 12px; border: 1px solid rgba(31,200,181,.25); background: rgba(31,200,181,.05); border-radius: 10px; padding: 10px 12px; }
.pl-reads .t { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.pl-reads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-reads li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.pl-reads li .from { color: var(--muted); font-size: 12px; }
.pl-sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0 16px; }
.planner .tchip.plain { background: transparent; border: 1px solid var(--border-input); color: var(--sub); padding: 3px 11px; cursor: pointer; }
.planner .tchip.plain:hover { background: transparent; border-color: var(--brand-teal); color: var(--text); }
.planner .tchip.plain.on, .planner .tchip.plain.on:hover { background: rgba(31,200,181,.10); border-color: var(--brand-teal); color: var(--text); }
.planner .tchip.plain.on::before { content: "\2713"; font-size: 11px; color: var(--brand-teal); }
.planner .tchip.plain .tx { color: var(--muted); }
.planner .picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--sub); margin: 12px 0 4px; min-height: 28px; }
.planner .picked b { color: var(--text); font-weight: 600; margin-right: 2px; }
.planner .psearch input { width: 100%; max-width: 520px; }
.planner .ranges { display: grid; gap: 14px; margin-top: 14px; }
.planner .range .tf-label { display: block; margin-bottom: 6px; }
.planner .nomatch { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-drop { border: 1.5px dashed var(--border-input); border-radius: 12px; padding: 20px 16px; text-align: center; background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; }
.pl-drop.over { border-color: var(--brand-teal); background: rgba(31,200,181,.06); }
.pl-drop .big { width: 40px; height: 40px; border-radius: 12px; background: rgba(31,200,181,.12); color: var(--brand-teal); display: inline-grid; place-items: center; margin-bottom: 8px; }
.pl-drop .big .ico { width: 18px; height: 18px; }
.pl-drop h3 { margin: 0; font-size: 14px; }
.pl-drop p { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.pl-drop .row3 { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pl-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.03); }
.pl-file .fi { width: 38px; height: 38px; border-radius: 10px; background: rgba(31,200,181,.12); color: var(--brand-teal); display: grid; place-items: center; flex: none; }
.pl-file .fn { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.pl-file .fs { font-size: 12px; color: var(--muted); }
.pl-file .grow { flex: 1; min-width: 0; }
.pl-paste textarea { width: 100%; min-height: 140px; margin: 4px 0 10px; }
.pl-safe { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.pl-safe .ico { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.pl-safe.ask { color: #FDE68A; }
.pl-src { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pl-src:last-child { border-bottom: 0; }
.pl-src .si { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.05); display: grid; place-items: center; color: var(--sub); flex: none; }
.pl-src .si .ico { width: 15px; height: 15px; }
.pl-src .grow { flex: 1; min-width: 0; }
.pl-src .sn { font-weight: 600; font-size: 13.5px; }
.pl-src .ss { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pl-src.off .sn, .pl-src.off .si { color: var(--muted); }
.pl-src .fixed { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* 2. the AI at work, shown */
.pl-think { max-width: 640px; margin: 8px auto 0; }
.pl-think .bar { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 12px 0 6px; }
.pl-think .bar i { display: block; height: 100%; background: var(--brand-teal); transition: width .35s ease; }
.pl-tl { list-style: none; margin: 0; padding: 0; }
.pl-tl li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); opacity: .3; transition: opacity .25s; }
.pl-tl li:last-child { border-bottom: 0; }
.pl-tl li.run, .pl-tl li.done { opacity: 1; }
.pl-tl .st { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-input); flex: none; display: grid; place-items: center; margin-top: 1px; }
.pl-tl li.run .st { border-top-color: var(--brand-teal); animation: plspin .8s linear infinite; }
.pl-tl li.done .st { background: var(--brand-teal); border-color: var(--brand-teal); color: #0A1120; }
.pl-tl li.done.skip .st { background: transparent; border-color: var(--border-input); border-style: dashed; }
.pl-tl .st .ico { width: 11px; height: 11px; }
/* pl-tx, not tx: .tx is the tag chip's remove button (width 0, opacity 0), which hid these lines (5 Nov 2026) */
.pl-tl .pl-tx { flex: 1; min-width: 0; font-size: 13px; } .pl-tl .pl-tx b { font-weight: 600; } .pl-tl .pl-tx span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.pl-think .pl-eta { margin: 0 0 4px; font-variant-numeric: tabular-nums; }
@keyframes plspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pl-tl li.run .st { animation: none; } }

/* 3. the focus */
.pl-focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.pl-focus .card { margin-bottom: 0; }
.pl-find { list-style: none; margin: 8px 0 0; padding: 0; }
.pl-find li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.45; }
.pl-find li:last-child { border-bottom: 0; }
.pl-find li.off { color: var(--muted); }
.pl-find .used { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pl-frow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pl-frow .grow { flex: 1; min-width: 0; }
.pl-frow .nm { font-weight: 600; font-size: 13.5px; }
.pl-frow .rs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.pl-frow.off .nm { color: var(--muted); font-weight: 500; }
.pl-x { flex: none; width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pl-x:hover { background: var(--bg-card-hover); color: var(--text); }
.pl-x .ico { width: 13px; height: 13px; }
.pl-count { flex: none; min-width: 28px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-add { margin-top: 10px; max-width: 460px; display: flex; gap: 8px; flex-wrap: wrap; }
.pl-add input { flex: 1 1 220px; }
.pl-addlist { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-addlist button { background: transparent; border: 1px solid var(--border-input); color: var(--sub); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.pl-addlist button:hover { border-color: var(--brand-teal); color: var(--text); }
.pl-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
.planner .qty { display: flex; align-items: center; gap: 6px; flex: none; }
.planner .qty button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border-input); background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.planner .qty button:hover { border-color: var(--brand-teal); }
.planner .qty output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-frow .ptag .ico { width: 16px; height: 16px; }
.planner .switch input:disabled + .switch-track { opacity: .4; }

/* 4. the draft: summary, board, side panel */
.pl-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: stretch; }
.pl-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; min-width: 100px; }
.pl-kpi .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-kpi .v { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pl-kpi .v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pl-kpi.warn .v { color: #FDE68A; }
.pl-kpi .pfs { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-kpi .pfs span { display: inline-flex; align-items: center; gap: 4px; }
.pl-kpi .pfs .ico { width: 14px; height: 14px; color: var(--sub); }
.pl-kpi .pfs .short { color: #FDE68A; }
.pl-prov { flex: 1 1 280px; display: flex; gap: 10px; align-items: center; background: rgba(31,200,181,.06); border: 1px solid rgba(31,200,181,.25); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--sub); line-height: 1.45; }
.pl-draft { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pl-draft .card { margin-bottom: 0; }
.pl-board { padding: 12px; }
.pl-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pl-cal .h { font-size: 11px; color: var(--muted); text-transform: uppercase; padding: 0 4px 2px; }
.pl-day { min-width: 0; min-height: 118px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 5px; transition: border-color .12s, background .12s; }
.pl-day.out { background: transparent; border-color: transparent; }
.pl-day.closed, .pl-day.hol { background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 6px, transparent 6px 12px); }
.pl-day.over { border-color: var(--brand-teal); background: rgba(31,200,181,.07); }
.pl-day .dn { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.pl-day .dn b { font-weight: 600; color: var(--sub); }
.pl-day .dn .wdn { display: none; }
.pl-day .dn .hl { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pl-piece { position: relative; display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--pc, var(--muted)); border-radius: 8px; padding: 6px 7px; cursor: pointer; }
.pl-piece[draggable="true"] { cursor: grab; }
.pl-piece:hover { border-color: var(--border-input); border-left-color: var(--pc); background: var(--bg-card-hover); }
.pl-piece.sel { border-color: var(--brand-teal); border-left-color: var(--pc); box-shadow: 0 0 0 1px var(--brand-teal); }
.pl-piece.over { box-shadow: 0 0 0 2px var(--brand-teal); }
.pl-piece.dragging { opacity: .45; }
.pl-piece .pt { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); min-width: 0; }
.pl-piece .pt .ptag { margin: 0; } .pl-piece .pt .ptag .ico { width: 12px; height: 12px; }
.pl-piece .pt { align-items: flex-start; flex-wrap: wrap; }
.pl-piece .pt .ptag { margin-top: 1px; }
.pl-piece .pt .tn { min-width: 0; flex: 1 1 56px; line-height: 1.3; overflow-wrap: break-word; }     /* a badge drops under a long name, never letter by letter */
.pl-piece .hd { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.32; margin-top: 3px; color: var(--sub); }
.pl-piece.kept .hd { color: var(--text); }
.pl-piece .ok { color: var(--brand-teal); display: inline-flex; flex: none; } .pl-piece .ok .ico { width: 12px; height: 12px; }
.pl-piece .bd { flex: none; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 0 6px; line-height: 16px; }
.pl-piece .bd.wait { color: var(--c-in_review); background: rgba(91,141,239,.14); }
.pl-piece .bd.chg { color: #FDE68A; background: rgba(250,204,21,.12); }
.pl-piece .bd.ans { color: var(--brand-teal); background: rgba(31,200,181,.12); }
.pl-piece.dropped .hd { text-decoration: line-through; color: var(--muted); }
.pl-piece.dropped .bd { color: var(--muted); background: rgba(255,255,255,.06); }
.pl-hint { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.pl-side { position: sticky; top: calc(var(--chrome-h) + 12px); max-height: calc(100vh - var(--chrome-h) - 24px); overflow: auto; }
.pl-dh { display: flex; align-items: center; gap: 6px; padding-right: 30px; font-size: 13px; position: relative; }
.pl-dh .modal-x { top: -6px; right: -6px; }
.pl-dh .ptag .ico, .pl-dh > .ico { width: 15px; height: 15px; }
.pl-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pl-meta .pl-link { font-size: 12px; margin-left: 4px; }
.pl-h { margin: 10px 0 4px; font-size: 16px; line-height: 1.35; }
.pl-a { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.5; }
.pl-k { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.pl-why { margin-top: 14px; }
.pl-why ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.pl-why li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--sub); line-height: 1.45; }
.pl-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--sub); background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 10px; margin-top: 10px; line-height: 1.45; }
.pl-note .ico { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.pl-note.warn { color: #FDE68A; background: rgba(250,204,21,.08); }
.pl-ask { margin-top: 12px; border-left: 3px solid #FACC15; background: rgba(250,204,21,.06); border-radius: 0 8px 8px 0; padding: 8px 10px; }
.pl-ask p { margin: 4px 0 0; font-size: 13px; }
.pl-ask .ok-line { display: block; margin-top: 6px; font-size: 12px; color: var(--brand-teal); }
.pl-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.pl-kept { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--brand-teal); padding: 0 6px; }
.pl-kept .ico { width: 13px; height: 13px; }
.pl-edit label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.pl-edit input, .pl-edit textarea { width: 100%; }
.pl-edit textarea { min-height: 70px; }
.pl-plat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl-plat button { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--border-input); color: var(--sub); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.pl-plat button.on { border-color: var(--brand-teal); color: var(--text); background: rgba(31,200,181,.1); }
.pl-plat .ico { width: 13px; height: 13px; }
.pl-spares { display: grid; gap: 8px; margin-top: 10px; }
.pl-spare { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: rgba(255,255,255,.03); border: 1px dashed var(--border-input); border-radius: 10px; padding: 8px 10px; cursor: grab; }
.pl-spare:hover { border-color: var(--brand-teal); }
.pl-spare.sel { border-style: solid; border-color: var(--brand-teal); }
.pl-spare .pt { font-size: 11px; color: var(--muted); }
.pl-spare .hd { display: block; font-size: 12.5px; line-height: 1.35; margin: 3px 0 5px; }
.pl-spare .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-side p { font-size: 13px; color: var(--sub); line-height: 1.5; }
.pl-next { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; font-size: 12.5px; color: var(--sub); }
.pl-next li { display: flex; gap: 8px; line-height: 1.45; } .pl-next .ico { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--brand-teal); }
.pl-dates { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--sub); }
.pl-dates b { display: inline-block; min-width: 92px; color: var(--text); font-weight: 600; }
.planner .mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.planner .mini .h { font-size: 10px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.planner .mini button { height: 30px; border-radius: 6px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--sub); font: inherit; font-size: 12px; cursor: pointer; position: relative; padding: 0; }
.planner .mini button:hover:not([disabled]) { border-color: var(--border-input); color: var(--text); }
.planner .mini button[disabled] { opacity: .3; cursor: default; }
.planner .mini button.on { background: var(--brand-teal); color: #0A1120; font-weight: 600; }
.planner .mini button.hol::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #F59E0B; }
.pl-back { display: none; }
.pl-tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
.pl-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pl-tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pl-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pl-tbl tr:last-child td { border-bottom: 0; }
.pl-tbl .ptag .ico { width: 14px; height: 14px; }

/* Ashwin's view */
.pl-cv { max-width: 860px; margin: 0 auto; }
.pl-cvhead .bar { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; margin: 12px 0 6px; }
.pl-cvhead .bar i { display: block; height: 100%; background: var(--brand-teal); transition: width .25s; }
.pl-cvhead .cnt { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--sub); }
.pl-week { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.pl-cvcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--pc, var(--border)); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.pl-cvcard.agree { border-color: rgba(31,200,181,.45); border-left-color: var(--pc); }
.pl-cvcard.change { border-color: rgba(250,204,21,.45); border-left-color: var(--pc); }
.pl-cvcard.drop { opacity: .6; }
.pl-cvcard.drop h3 { text-decoration: line-through; }
.pl-cvdate { text-align: center; }
.pl-cvdate b { display: block; font-size: 22px; line-height: 1.1; }
.pl-cvdate span { font-size: 11.5px; color: var(--muted); }
.pl-cvmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.pl-cvmeta .ptag .ico { width: 14px; height: 14px; }
.pl-cvcard h3 { margin: 6px 0 4px; font-size: 15.5px; line-height: 1.35; }
.pl-cvcard p { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.5; }
.pl-cvwhy { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.pl-cvwhy b { color: var(--sub); font-weight: 600; }
.pl-cvacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pl-cvans { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; font-size: 12.5px; }
.pl-cvans .ans { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.pl-cvans .ans .ico { width: 13px; height: 13px; }
.pl-cvans .agree { color: var(--brand-teal); } .pl-cvans .change { color: #FDE68A; } .pl-cvans .drop { color: var(--muted); }
.pl-cvnote { margin-top: 10px; } .pl-cvnote textarea { width: 100%; min-height: 64px; margin-bottom: 8px; }
.pl-prev { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pl-cvdone summary { cursor: pointer; font-size: 13px; color: var(--sub); }

/* glossary */
.pl-modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(4,8,16,.6); display: grid; place-items: center; padding: 16px; }
.pl-modal-back[hidden] { display: none; }
.pl-modal { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-card); border: 1px solid var(--border-input); border-radius: 14px; padding: 18px 20px; }
.pl-modal h2 { margin: 0 0 4px; font-size: 16px; }
.pl-modal dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 12px 0 0; font-size: 12.5px; }
.pl-modal dt { font-weight: 600; } .pl-modal dd { margin: 0; color: var(--sub); line-height: 1.45; }
.planner .plan-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.planner .plan-toasts .flash { margin: 0; background: var(--bg-sidebar); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.planner .plan-toasts .flash-warn { background: #2A2614; }

@media (max-width: 1100px) { .pl-draft { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .pl-brief, .pl-focus, .pl-draft { grid-template-columns: minmax(0, 1fr); }
  .pl-side { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .planner .page { padding-left: 16px; padding-right: 16px; }
  .pl-q { font-size: 17px; }
  .pl-track li { padding-right: 4px; padding-top: 28px; }
  .pl-track li::before { left: 22px; }
  .pl-track b { font-size: 11px; line-height: 1.3; }
  .pl-track span { display: none; }
  .pl-find li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pl-kpi { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .pl-kpi.pfk { flex-basis: 100%; }
  .pl-cal { display: block; }
  .pl-cal .h, .pl-day.out, .pl-day.empty { display: none; }
  .pl-day { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px 10px; min-height: 0; margin-bottom: 8px; padding: 8px; }
  .pl-day .dn { grid-column: 1; grid-row: 1 / span 6; flex-direction: column; align-items: flex-start; gap: 0; }
  .pl-day .dn .wdn { display: block; font-size: 11px; }
  .pl-day .dn b { font-size: 18px; color: var(--text); }
  .pl-day .dn .hl { white-space: normal; font-size: 10px; }
  .pl-piece { grid-column: 2; }
  .pl-piece .hd { font-size: 13px; -webkit-line-clamp: 4; }
  .pl-piece .pt { font-size: 11.5px; }
  .pl-hint { display: none; }
  .pl-side.open { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 75; max-height: 85vh; border-radius: 16px 16px 0 0; margin: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .pl-back { display: block; position: fixed; inset: 0; z-index: 74; background: rgba(4,8,16,.55); }
  .pl-actionbar { bottom: 8px; }
  .pl-actionbar .btns { width: 100%; } .pl-actionbar .btns .btn { flex: 1 1 auto; }
  .pl-cvcard { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .pl-cvdate b { font-size: 18px; }
  .pl-modal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .pl-modal dd { margin-bottom: 8px; }
  .planner .plan-toasts { top: calc(var(--chrome-h) + 8px); bottom: auto; }
}

/* the check-in, outline, questions and dates (planner-checkin-spec-2026-11-05.md) */
.pl-turn { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sub); margin: 0 0 14px; }
.pl-turn > .ico { color: var(--brand-teal); flex: none; margin-top: 2px; } .pl-turn > span { min-width: 0; } .pl-turn b { color: var(--brand-teal); font-weight: 600; }
.pl-ck { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pl-ck > div { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 960px) { .pl-ck { grid-template-columns: minmax(0, 1fr); } }
.planner .pl-ta { width: 100%; min-height: 76px; resize: vertical; background: var(--bg-canvas); border: 1px solid var(--border-input); border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit; font-size: 13px; }
.planner .pl-in { width: 100%; background: var(--bg-canvas); border: 1px solid var(--border-input); border-radius: 8px; color: var(--text); padding: 8px 12px; font: inherit; font-size: 13px; }
.planner .pl-in:disabled { opacity: .5; }
.pl-date { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--sub); }
.pl-date:first-of-type { border-top: 0; }
.pl-date input { background: var(--bg-canvas); border: 1px solid var(--border-input); border-radius: 8px; color: var(--text); padding: 6px 10px; font: inherit; font-size: 13px; color-scheme: dark; }
.pl-olsw { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sub); cursor: pointer; margin-right: 6px; }
.pl-picks { display: grid; gap: 8px; margin: 10px 0; }
.pl-pick { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; text-align: left; width: 100%; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; color: var(--text); cursor: pointer; font: inherit; }
.pl-pick:hover { border-color: var(--border-input); }
.pl-pick[aria-pressed="true"] { border-color: var(--brand-teal); background: rgba(31,200,181,.07); }
.pl-pick .bx { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-input); display: grid; place-items: center; color: transparent; margin-top: 1px; }
.pl-pick .bx .ico { width: 12px; height: 12px; }
.pl-pick[aria-pressed="true"] .bx { background: var(--brand-teal); border-color: var(--brand-teal); color: #0A1120; }
.pl-pick .tx2 { display: grid; gap: 2px; min-width: 0; } .pl-pick .tx2 b { font-weight: 600; font-size: 13.5px; } .pl-pick .tx2 span { font-size: 12px; color: var(--sub); }
.pl-pick .lst { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pl-nrow { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); } .pl-nrow:first-of-type { border-top: 0; }
.pl-nl { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.pl-q { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--sub); } .pl-q:first-of-type { border-top: 0; }
.pl-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-opts button { border: 1px solid var(--border-input); background: transparent; color: var(--sub); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.pl-opts button[aria-pressed="true"] { border-color: var(--brand-teal); color: var(--brand-teal); background: rgba(31,200,181,.08); }
.pl-cal7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 420px; font-variant-numeric: tabular-nums; }
.pl-cal7 .h { font-size: 11px; color: var(--muted); text-align: center; }
.pl-cal7 button { min-height: 36px; border: 1px solid var(--border); background: var(--bg-sidebar); color: var(--text); border-radius: 7px; font: inherit; font-size: 12px; cursor: pointer; }
.pl-cal7 button:disabled { cursor: default; }
.pl-cal7 button.we { background: transparent; color: var(--muted); }
.pl-cal7 button.hol { border-color: rgba(250,204,21,.5); color: #FDE68A; }
.pl-cal7 button.pre { color: var(--muted); }
.pl-cal7 button.on { background: rgba(250,124,124,.14); border-color: rgba(250,124,124,.6); color: #FCA5A5; }
.pl-chipx { border: 0; background: transparent; color: inherit; font: inherit; margin-left: 6px; cursor: pointer; opacity: .8; }
.pl-qcard { border-color: rgba(250,204,21,.4); margin-bottom: 16px; }
.pl-qrow { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; } .pl-qrow:first-of-type { border-top: 0; }
.pl-skip { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); cursor: pointer; }
.pl-ow { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); } .pl-ow:first-of-type { border-top: 0; }
.pl-owh { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pl-cki .card + .card { margin-top: 0; }

/* the month screen, 5 Nov 2026: the numbers on top, the checks beside the calendar, flagged posts, the view switch */
.pl-sum .pl-kpi { flex: 1 1 150px; }
.pl-kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pl-kpi.warn .s { color: #FDE68A; }
.pl-mk { align-items: start; }
.pl-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.pl-chk { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-chk li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--sub); }
.pl-chk li .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand-teal); }
.pl-chk li.bad { color: var(--text); background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.28); border-radius: 10px; padding: 8px 10px; }
.pl-chk li.bad .ico { color: #FDE68A; }
.pl-chk .why { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.pl-piece.flag { border-color: rgba(250,204,21,.6); border-left-color: var(--pc); }
.pl-piece .fl, .pl-tbl .fl { color: #FDE68A; display: inline-flex; flex: none; vertical-align: middle; }
.pl-piece .fl .ico, .pl-tbl .fl .ico { width: 12px; height: 12px; }
.pl-tbl .fl { margin-right: 4px; }
.pl-piece .pt .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-view { margin: 0; }
.pl-view button { padding: 4px 10px; }
.pl-tbl tr[data-piece] { cursor: pointer; }
.pl-tbl tr[data-piece]:hover td { background: var(--bg-card-hover); }
.pl-tbl tr.dropped td { color: var(--muted); text-decoration: line-through; }
.planner .pl-frow select.pl-in { width: auto; max-width: 45%; flex: none; }
.pl-mk { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1180px) { .pl-mk { grid-template-columns: minmax(0, 1fr); } .pl-rail { position: static; order: -1; } }

/* 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; } }
/* Settings → Brand kit (app/kit.py): one row per location, sender or sign-off */
.settings .kit .kit-row { display: block; border-top: 1px solid var(--border); padding: 12px 0; }
.settings .kit .kit-row > summary, .settings .kit > div.kit-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; cursor: default; }
.settings .kit details.kit-row > summary { cursor: pointer; list-style: none; } .settings .kit details.kit-row > summary::-webkit-details-marker { display: none; }
.settings .kit details.kit-row[open] > summary { margin-bottom: 12px; }
.settings .kit .kit-side { text-align: right; display: grid; gap: 4px; justify-items: end; flex-shrink: 0; }
.settings .kit .kit-arch { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.settings .kit .kit-reach { color: var(--sub); margin: 0 0 10px; }
.settings .kit .kit-add > summary b { color: var(--brand-teal); }
/* the post's Brand kit section (board.js kitBody) */
.kit-picks { display: grid; gap: 10px; margin-bottom: 8px; }
.kit-pick { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 2px 10px; align-items: center; font-size: 13px; }
.kit-pick .kit-lab { color: var(--muted); } .kit-pick small { grid-column: 2; font-size: 11.5px; }
.kit-drift { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; margin-bottom: 10px; border-radius: 8px; background: rgba(251,191,36,.12); color: #FBBF24; font-size: 12.5px; }

/* reply threads under comments (board.js renderComments; comment-replies-matrix-2026-11-02.md) */
.comment.open-thread { outline: 1px solid rgba(86,106,136,.6); outline-offset: -1px; }
.cq { cursor: pointer; border-radius: 6px; }
.cfoot { margin-top: 6px; gap: 8px; flex-wrap: wrap; }
.cstatus { display: inline-flex; align-items: center; gap: 4px; font-family: inherit; font-size: 11px; color: var(--muted); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.cstatus .ico { width: 12px; height: 12px; transition: transform .15s; } .open-thread .cstatus .ico { transform: rotate(180deg); }
.cwait { color: var(--sub); }
.cnew { display: inline-flex; align-items: center; gap: 4px; color: #D4A54A; font-weight: 500; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }      /* unread is mustard everywhere; small, after the time (3 Nov 2026) */
.cnew::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #D4A54A; }
.cthread { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.creply { border-radius: 7px; padding: 7px 9px; border-left: 1px solid; }
.creply.agency { background: rgba(31,200,181,.08); border-left-color: rgba(31,200,181,.55); }
.creply.reviewer { background: rgba(91,141,239,.11); border-left-color: rgba(91,141,239,.6); }
.creply.approver { background: rgba(167,139,250,.11); border-left-color: rgba(167,139,250,.6); }
.creply.held, .creply.private { border-left-style: dashed; }
.creply .comment-head b { color: var(--text); }
.creply .comment-body { font-size: 12.5px; }
.cchip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 10px; font-weight: 600; padding: 0 6px; border-radius: 8px; border: 1px solid; white-space: nowrap; }
.cchip .ico { width: 10px; height: 10px; }
.cchip.held { color: #FBBF24; border-color: rgba(251,191,36,.5); } .cchip.private, .cchip.note { color: var(--sub); border-color: var(--border-input); }
.cchip.role.agency { color: var(--brand-teal); border-color: rgba(31,200,181,.4); } .cchip.role.reviewer { color: #5B8DEF; border-color: rgba(91,141,239,.45); }
.cchip.role.approver { color: #A78BFA; border-color: rgba(167,139,250,.45); }
.creply-box { display: grid; gap: 6px; } .creply-box textarea { margin: 0; }
.chint { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; } .chint.warn { color: #FBBF24; }
.cfiles { display: flex; flex-wrap: wrap; gap: 6px; }
.cfile { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--sub); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.cfile .ico { width: 11px; height: 11px; }
/* an icon button says its name at once on pointing */
.comment-ico { position: relative; }
.comment-ico::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 5px;
  background: #0F1829; border: 1px solid #334155; color: #E2E8F0; font: 400 11px Arial, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 20; }
.comment-ico:hover::after, .comment-ico:focus-visible::after { opacity: 1; }
.comment-ico.tip-end::after { left: auto; right: 0; transform: none; } .comment-ico.tip-start::after { left: 0; transform: none; }
.comment-ico.go { background: var(--brand-teal); border-color: var(--brand-teal); color: #0A1120; } .comment-ico.go:hover { background: #3fd8c7; color: #0A1120; }
.comment-ico[aria-pressed="true"] { color: #FBBF24; border-color: rgba(251,191,36,.6); }
@media (prefers-reduced-motion: reduce) { .cstatus .ico { transition: none; } }

/* a web address in a comment: short, with … at the end; the full address floats above it on pointing (board.js linkify) */
.clink { color: #38BDF8; text-decoration: underline; text-decoration-color: rgba(56,189,248,.45); text-underline-offset: 2px; overflow-wrap: anywhere; }
.clink:hover { text-decoration-color: currentColor; }
.link-tip { position: fixed; z-index: 10000; padding: 5px 8px; border-radius: 6px; background: #0F1829; border: 1px solid #334155; color: #E2E8F0;
  font: 400 11.5px/1.45 Arial, sans-serif; overflow-wrap: anywhere; pointer-events: none; box-sizing: border-box; }

/* ---- the post's toolbar and head, 3 Nov 2026 (comments-button-and-subject-matrix) ---- */
/* a message's head: the name on the left; the time and a small New on the right, the same place on every message (B12) */
.comment-head .chead-end { display: inline-flex; align-items: center; gap: 8px; flex: none; }
/* Revision, Desktop and Mobile as icon buttons, one height with the rest; their names show on pointing (B10) */
.item-head .btn-icon { width: 32px; padding: 0; justify-content: center; position: relative; }
.item-head .seg-btn.btn-icon { width: 34px; }
.item-head .btn-icon .ico { width: 15px; height: 15px; }
.item-head [data-tip] { position: relative; }
.item-head [data-tip]:hover::after, .item-head [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 30;
  padding: 4px 8px; border-radius: 6px; background: #0A1222; border: 1px solid var(--border); color: #E7ECF3; font-size: 11.5px; font-weight: 400; white-space: nowrap; pointer-events: none; }
.item-head .seg-group { overflow: visible; } .item-head .seg-group .seg-btn:first-child { border-radius: 7px 0 0 7px; } .item-head .seg-group .seg-btn:last-child { border-radius: 0 7px 7px 0; }
.tb-sep { width: 1px; height: 20px; background: var(--border); }
.rev-pick { position: relative; display: inline-flex; }
.rdot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #F0884E; }
.rev-menu { position: absolute; top: 38px; right: 0; z-index: 40; min-width: 250px; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 10px;
  background: #0F1829; border: 1px solid var(--border); }
.rev-menu button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border: 0; border-radius: 7px; background: none;
  font: inherit; font-size: 12.5px; color: var(--sub); text-align: left; cursor: pointer; }
.rev-menu button:hover { background: rgba(255,255,255,.05); color: #E7ECF3; } .rev-menu button.on { color: var(--brand-teal); }
.rev-menu small { color: #64748B; font-size: 11px; white-space: nowrap; }
/* an older revision on screen (B11) */
.old-rev { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 8px 6px 12px; border-radius: 8px; border: 1px solid rgba(240,136,78,.4);
  background: rgba(240,136,78,.07); font-size: 12.5px; color: var(--sub); }
.old-rev[hidden] { display: none; } .old-rev b { color: #E7ECF3; font-weight: 500; } .old-rev .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 8px; }
.old-rev .btn { margin-left: auto; }
/* the Comments button: words like Show details, the count quiet, the unread badge mustard (B1, B2) */
#commentsBtn { gap: 8px; } #commentsBtn[aria-pressed="true"], #panelToggle[aria-pressed="true"] { border-color: rgba(31,200,181,.55); color: var(--brand-teal); }
.cbtn-n { font-size: 12px; font-weight: 400; color: var(--sub); font-variant-numeric: tabular-nums; }
.cbtn-u { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: #D4A54A; color: #fff; font-size: 10.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.cbtn-u[hidden] { display: none; }
/* the subject's and preview text's length (W1 to W3, E3) */
.lcount { margin-left: 10px; font: 400 11px 'JetBrains Mono', monospace; color: #64748B; vertical-align: middle; white-space: nowrap; }
.lcount.over { color: #F0884E; }
.lcount[hidden] { display: none; }
/* editing them in place (E1) */
.ce-line { outline: 1px dashed rgba(148,163,184,.5); outline-offset: 3px; border-radius: 4px; cursor: text; }
.ce-line:focus { outline: 2px solid var(--brand-teal); }
