/* Beacon: direction A "Postbox" (docs/UI.md, chosen 24 Oct 2026). A bright mail app with a colour per channel, a left
   menu, squarer corners (cards 8px, buttons and fields 6px, tags 4px) and every control at least 44px tall. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-wght.7660bd9909fb.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght.341687eeeb6a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ground: #F5F4FB; --surface: #FFFFFF; --line: #E8E6F3; --line-in: #EFEDF7; --tabline: #E2DFEF;
  --ink: #1D1640; --text: #3D3860; --body: #2A2450; --muted: #5E5A7A; --label: #6B6787; --faint: #A9A5BF;
  --accent: #5B3DF5; --accent-soft: #5B3DF514; --accent-line: #5B3DF52E; --link: #4B32D6; --link-hover: #2F1BA8;
  --unread: #E0186C; --check-bg: #FFE58A; --check-ink: #4A3200;
  /* channels: bright (dots, tiles, charts), soft background, text that passes on the soft background */
  --seo: #12B886; --seo-soft: #DDF7EC; --seo-ink: #0B7A52;
  --paid: #FF8A1F; --paid-soft: #FFEBD9; --paid-ink: #A24A06;
  --outreach: #FF3D8B; --outreach-soft: #FFE4EF; --outreach-ink: #C2185B; --outreach-solid: #E0186C;
  --content: #2F8BFF; --content-soft: #E0EEFF; --content-ink: #1661C4;
  --social: #9B5CFF; --social-soft: #F1E5FF; --social-ink: #7A2BD6;
  --email: #FFC21A; --email-soft: #FFF3C4; --email-ink: #8A5A00;
  /* statuses */
  --st-replied-bg: #FFE4EF; --st-replied: #C2185B;
  --st-due-bg: #FFF3C4; --st-due: #8A5A00;
  --st-wait-bg: #EEEDF5; --st-wait: #3D3860;
  --st-todo-bg: #E0EEFF; --st-todo: #1661C4;
  --st-won-bg: #DDF7EC; --st-won: #0B7A52;
  --st-bad-bg: #F2E8E8; --st-bad: #8E2B2B;
  /* work stages */
  --stage-idea: #D9D6E8; --stage-planned: #A99BFF; --stage-progress: #2F8BFF; --stage-review: #FFC21A; --stage-live: #12B886;
  --r-card: 8px; --r-ctl: 6px; --r-tag: 4px;
  /* the current channel (main.ch-*) colours its tabs, meters and charts */
  --ch: var(--accent); --ch-soft: var(--accent-soft); --ch-ink: var(--accent);
  --s1: var(--accent); --s2: #FF8A1F; --s3: #12B886; --s4: #A9A5BF; --chart: #C9C5DD;
}
.ch-seo { --ch: var(--seo); --ch-soft: var(--seo-soft); --ch-ink: var(--seo-ink); --s1: var(--seo-ink); }
.ch-paid { --ch: var(--paid); --ch-soft: var(--paid-soft); --ch-ink: var(--paid-ink); --s1: var(--paid-ink); --s2: #2F8BFF; }
.ch-outreach { --ch: var(--outreach); --ch-soft: var(--outreach-soft); --ch-ink: var(--outreach-ink); --s1: var(--outreach-ink); }
.ch-content { --ch: var(--content); --ch-soft: var(--content-soft); --ch-ink: var(--content-ink); --s1: var(--content-ink); }
.ch-social { --ch: var(--social); --ch-soft: var(--social-soft); --ch-ink: var(--social-ink); }
.ch-email { --ch: var(--email); --ch-soft: var(--email-soft); --ch-ink: var(--email-ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--ink); background: var(--ground); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- the shell: left menu and content ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px;
  background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.sidetop { display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px; color: var(--ink); flex: 1; min-width: 0; }
.logo:hover { color: var(--ink); }
.logo b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.logo small { display: block; font-size: 12px; color: var(--muted); }
.mark { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: 30px; height: 30px; flex: none; }
.mark span:nth-child(1) { background: var(--outreach); border-radius: 5px 2px 2px 2px; }
.mark span:nth-child(2) { background: var(--seo); border-radius: 2px 5px 2px 2px; }
.mark span:nth-child(3) { background: var(--content); border-radius: 2px 2px 2px 5px; }
.mark span:nth-child(4) { background: var(--paid); border-radius: 2px 2px 5px 2px; }
.menubtn { display: none; }
.compose { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--r-ctl);
  background: var(--accent); color: #fff; font-weight: 700; }
.compose:hover { color: #fff; background: #4B32D6; }
.navgroups { display: flex; flex-direction: column; gap: 16px; }
.navgroup { display: flex; flex-direction: column; gap: 1px; }
.navlabel { padding: 0 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.navgroup a, .navgroup .soon { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--r-ctl);
  color: var(--text); font-weight: 600; }
.navgroup a svg { color: var(--label); }
.navgroup a:hover { background: var(--ground); color: var(--ink); }
.navgroup a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.navgroup a.on svg { color: var(--accent); }
.navgroup .t { flex: 1; min-width: 0; }
.navgroup .soon { color: var(--faint); cursor: default; }
.soontag { font-size: 11px; font-weight: 700; color: var(--faint); border: 1px solid var(--line); border-radius: var(--r-tag); padding: 0 6px; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-tag); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.badge.unread { background: var(--unread); color: #fff; }
.badge.due { background: var(--st-due-bg); color: var(--st-due); }
.badge.plain { color: var(--muted); font-weight: 600; min-width: 0; padding: 0; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.chtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chtile { height: 44px; border-radius: var(--r-ctl); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.chtile.seo { background: var(--seo-soft); color: var(--seo-ink); } .chtile.seo.on { background: var(--seo-ink); color: #fff; }
.chtile.paid { background: var(--paid-soft); color: var(--paid-ink); } .chtile.paid.on { background: var(--paid-ink); color: #fff; }
.chtile.outreach { background: var(--outreach-soft); color: var(--outreach-ink); } .chtile.outreach.on { background: var(--outreach-ink); color: #fff; }
.chtile.content { background: var(--content-soft); color: var(--content-ink); } .chtile.content.on { background: var(--content-ink); color: #fff; }
.chtile.social { background: var(--social-soft); color: var(--social-ink); }
.chtile.email { background: var(--email-soft); color: var(--email-ink); }
a.chtile:hover { filter: brightness(0.97); }
.chtile.soon { opacity: 0.45; cursor: default; }

details.who { margin-top: auto; position: relative; }
details.who > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-ctl); background: var(--ground); }
details.who > summary::-webkit-details-marker { display: none; }
details.who > summary:hover, details.who[open] > summary { background: #ECEAF6; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.whoname { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.whoname b { font-weight: 700; }
.whoname span { font-size: 12px; color: var(--muted); }
details.who summary svg { color: var(--muted); }
details.who .menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(29, 22, 64, 0.14); padding: 6px; }
details.who .menu a, details.who .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0;
  background: none; border-radius: var(--r-ctl); color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
details.who .menu a:hover, details.who .menu button:hover { background: var(--ground); color: var(--ink); }
details.who .menu svg { color: var(--label); }
details.who .menu form { margin: 0; }
details.who .menu hr { border: 0; border-top: 1px solid var(--line-in); margin: 4px 0; }

main { flex: 1; min-width: 0; padding: 24px 28px 48px; }
main > .inner { max-width: 1440px; }
main.bare { max-width: 460px; margin: 0 auto; padding: 56px 16px; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { position: static; width: auto; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 12px; }
  .menubtn { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
    background: var(--surface); font-weight: 700; cursor: pointer; }
  .navgroups, .side details.who { display: none; }
  .side.open .navgroups, .side.open details.who { display: flex; }
  .side.open details.who { display: block; margin-top: 0; }
  main { padding: 18px 16px 40px; }
}

/* ---------- headings and page heads ---------- */
h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
h2.section { font-size: 20px; letter-spacing: -0.02em; margin: 8px 0 12px; }
h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.head .muted { font-size: 13px; }
.headactions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.chead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.chead .tile { width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--ch); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chead .tile svg { width: 22px; height: 22px; }
.chead .titles { flex: 1 1 300px; display: flex; flex-direction: column; min-width: 0; }
.chead .sub { font-size: 13px; color: var(--muted); }
.chead .headactions { margin-left: 0; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--tabline); margin: 0 0 18px; }
.subtabs a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.subtabs a:hover { color: var(--ink); }
.subtabs a.on { font-weight: 800; color: var(--ink); box-shadow: inset 0 -3px 0 var(--ch); }
.lede { margin: -6px 0 16px; color: var(--muted); max-width: 820px; }
.subhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 16px; }
.subhead h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.subhead .headactions { margin-left: auto; }

/* ---------- cards and layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.card.narrow { max-width: 440px; margin: 40px auto; }
.card.warn { background: var(--st-due-bg); border-color: #F3E2A4; }
.card h2 .muted { font-weight: 500; }
.cardhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cardhead h2 { margin: 0; }
.cardhead .more { margin-left: auto; font-size: 13px; font-weight: 700; }
.cardsub { margin: -8px 0 12px; font-size: 12px; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; align-items: start; }
.cols .card { margin: 0; }
.cols + * { margin-top: 16px; }
.cols.wide-left { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.cols.wide-right { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
@media (max-width: 1000px) { .cols.wide-left, .cols.wide-right { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .card { margin: 0; }
dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 14px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.okline { color: var(--st-won); font-weight: 600; }
.err { color: var(--st-bad); font-size: 13px; font-weight: 600; }
.warnline { color: var(--st-due); font-weight: 600; }
.seclabel { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }

/* ---------- forms and buttons ---------- */
label { display: block; margin: 12px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=url], input:not([type]), select, textarea {
  display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); margin-top: 6px; font-size: 14px; font-weight: 500; }
select { padding-right: 32px; }
textarea { padding: 10px 12px; line-height: 1.55; resize: vertical; }
textarea.mail { min-height: 280px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .button:hover { background: var(--ground); color: var(--ink); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .button.primary:hover { background: #4B32D6; border-color: #4B32D6; color: #fff; }
button.soft, .button.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
button.soft:hover, .button.soft:hover { background: #5B3DF522; color: var(--accent); }
button.red, .button.red, button.danger { border-color: #E4C9C9; color: var(--st-bad); }
button.red:hover, button.danger:hover { background: var(--st-bad-bg); }
button.small, .button.small { padding: 0 12px; font-size: 13px; }
button:disabled, button:disabled:hover { opacity: 0.45; cursor: not-allowed; background: var(--surface); }
button.link { min-height: 0; background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; }
button.link:hover { color: var(--link-hover); background: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 0 18px; }
.ff label { margin: 8px 0 2px; }
.ff.bad input, .ff.bad select, .ff.bad textarea { border-color: var(--st-bad); }
.helptext, .ff .small { color: var(--muted); }
ul.errorlist { list-style: none; margin: 4px 0; padding: 0; color: var(--st-bad); font-size: 13px; font-weight: 600; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 500; min-height: 44px; margin: 4px 0; }
label.check input { width: 18px; height: 18px; display: inline; margin: 0; accent-color: var(--accent); }
.actionsbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actionsbar form, form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.actionsbar input, .actionsbar select, form.inline input, form.inline select { width: auto; margin: 0; }
.grid td.nowrap form.inline { flex-wrap: nowrap; }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.searchbar input[type=search] { flex: 1 1 260px; width: auto; margin: 0; padding-left: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6787' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 13px center / 16px; }
.searchbar select { width: auto; margin: 0; }

/* ---------- tables ---------- */
.grid { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.grid th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); white-space: nowrap; border-bottom: 1px solid var(--line); }
.grid th a { color: var(--muted); }
.grid th, .grid td { padding: 10px 12px; vertical-align: top; }
.grid td { border-bottom: 1px solid var(--line-in); }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr[data-href] { cursor: pointer; }
.grid tbody tr:hover { background: #FAF9FE; }
.grid td a { color: var(--ink); font-weight: 700; }
.grid td a:hover { color: var(--accent); }
.grid.small td, .grid.small th { font-size: 13px; padding: 8px 10px; }
.grid tfoot td { font-weight: 800; border-top: 1px solid var(--line); }
.card .grid { border: 0; border-radius: 0; }
.scrollx { overflow-x: auto; }
@media (max-width: 700px) { .grid { display: block; overflow-x: auto; } dl { grid-template-columns: 1fr; } }
table.todo { width: 100%; border-collapse: collapse; }
table.todo td { padding: 10px 0; border-bottom: 1px solid var(--line-in); vertical-align: top; }
table.todo td + td { padding-left: 10px; }
table.todo tr:last-child td { border-bottom: 0; }
table.todo a { color: var(--ink); font-weight: 700; } table.todo a:hover { color: var(--accent); }
.rowbad td { background: #FBF5F5; }
.rowwarn td { background: #FFFBEA; }

/* ---------- tags, tabs, counts ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-tag); font-size: 12px; font-weight: 700; line-height: 1.35;
  background: var(--st-wait-bg); color: var(--st-wait); white-space: nowrap; }
.pill.replied { background: var(--st-replied-bg); color: var(--st-replied); }
.pill.warn, .pill.review, .pill.due, .pill.level-warn { background: var(--st-due-bg); color: var(--st-due); }
.pill.contacted, .pill.waiting, .pill.level-info, .pill.idea { background: var(--st-wait-bg); color: var(--st-wait); }
.pill.todo, .pill.doing, .pill.writing { background: var(--st-todo-bg); color: var(--st-todo); }
.pill.brief, .pill.planned { background: var(--accent-soft); color: var(--accent); }
.pill.good, .pill.won, .pill.done, .pill.live, .pill.published { background: var(--st-won-bg); color: var(--st-won); }
.pill.bad, .pill.lost, .pill.bounced, .pill.failed, .pill.level-bad { background: var(--st-bad-bg); color: var(--st-bad); }
.pill.not_fit { background: var(--ground); color: var(--muted); }
.pill.dnc { background: var(--ink); color: #fff; }
.pill.prio-A { background: var(--accent-soft); color: var(--accent); }
.pill.prio-B { background: var(--st-wait-bg); color: var(--st-wait); }
.pill.prio-C { background: var(--ground); color: var(--muted); }
.pill.ch-seo, .pill.ch-paid, .pill.ch-outreach, .pill.ch-content, .pill.ch-social, .pill.ch-email { background: var(--ch-soft); color: var(--ch-ink); }
.chip { display: inline-block; padding: 3px 10px; border-radius: var(--r-tag); font-size: 12px; font-weight: 600; background: var(--ground); color: var(--text); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); width: fit-content; max-width: 100%; }
.tabs a { min-height: 40px; padding: 0 12px; display: flex; align-items: center; border-radius: var(--r-ctl); color: var(--muted); font-weight: 700; }
.tabs a:hover { color: var(--ink); background: var(--ground); }
.tabs a.on { background: var(--ch-soft); color: var(--ch-ink); }
.tabs a b { margin-left: 6px; font-weight: 800; }
.count { display: inline-block; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: var(--r-tag); background: var(--ground); color: var(--muted); font-weight: 700; }
.count.has { background: var(--accent-soft); color: var(--accent); }

/* ---------- messages (next to their block) ---------- */
.msg { padding: 12px 14px; border-radius: var(--r-card); margin-bottom: 12px; background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.msg.success { background: var(--st-won-bg); color: var(--st-won); }
.msg.error { background: var(--st-bad-bg); color: var(--st-bad); }
.msg.warning { background: var(--st-due-bg); color: #3B2A00; }
.msg a { color: inherit; text-decoration: underline; }
.blockmsg { margin: 0 0 12px; }
[id] { scroll-margin-top: 16px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--st-due-bg); color: #3B2A00; margin-bottom: 16px; }
.notice svg { color: var(--st-due); }
.notice > span { flex: 1 1 300px; }
.notice .button { background: var(--surface); border-color: transparent; }
.callout { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--surface); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; margin-bottom: 12px; }
.empty { color: var(--muted); padding: 8px 0; }

/* ---------- sign in ---------- */
.login .mark { width: 40px; height: 40px; gap: 4px; margin: 4px auto 10px; }
.login .mark span:nth-child(1) { border-radius: 7px 2px 2px 2px; } .login .mark span:nth-child(2) { border-radius: 2px 7px 2px 2px; }
.login .mark span:nth-child(3) { border-radius: 2px 2px 2px 7px; } .login .mark span:nth-child(4) { border-radius: 2px 2px 7px 2px; }
.login { text-align: center; padding: 28px 28px 24px; }
.login h1 { font-size: 24px; margin: 10px 0 6px; }
.login form { text-align: left; }
.login button.primary { width: 100%; margin-top: 8px; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 200px; height: 200px; }

/* ---------- figures, meters, charts ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 16px; color: var(--ink); }
a.kpi:hover { border-color: #D6D2EA; color: var(--ink); }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-num { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-num .small { font-size: 14px; letter-spacing: 0; }
.kpi-sub { font-size: 12px; font-weight: 700; color: var(--muted); }
.delta { font-weight: 800; }
.delta.up { color: var(--st-won); } .delta.down { color: var(--st-bad); }
.delta.bad.up { color: var(--st-bad); } .delta.bad.down { color: var(--st-won); }
.meter { height: 12px; background: var(--ch-soft); border-radius: 3px; overflow: hidden; margin-top: 8px; position: relative; }
.meter span { display: block; height: 100%; background: var(--ch); border-radius: 3px; }
.meter span.over { background: var(--unread); }
.meter i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.daytiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; margin-bottom: 16px; }
.daytile { margin: 0; padding: 12px 14px; color: var(--ink); }
.daytile b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.daytile b.zero { color: var(--faint); }
.daytile span { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); }
.chart .lbl { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--ch); opacity: 0.35; } .chart .bar.now { opacity: 1; } .chart .bar:hover { opacity: 0.7; }
.chart .line { fill: none; stroke: var(--s1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s2 { stroke: var(--s2); } .chart .line.s3 { stroke: var(--s3); } .chart .line.s4 { stroke: var(--s4); stroke-dasharray: 4 3; }
.chart .grid { stroke: var(--line-in); }
.chart .hit { fill: transparent; } .chart .hit:hover { fill: rgba(29, 22, 64, 0.04); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; background: var(--s1); }
.legend i.s2 { background: var(--s2); } .legend i.s3 { background: var(--s3); } .legend i.s4 { background: var(--s4); }

/* ---------- Home: the dark banner (direction B's "Aurora"), channel cards, list rows ---------- */
.banner { border-radius: var(--r-card); padding: 28px 30px; margin-bottom: 26px; color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end;
  background: #170F33; background-image: radial-gradient(420px 260px at 92% 0%, rgba(255, 138, 61, 0.55), transparent 70%),
    radial-gradient(460px 300px at 70% 110%, rgba(214, 36, 126, 0.6), transparent 70%), radial-gradient(520px 320px at 30% 120%, rgba(91, 61, 245, 0.7), transparent 70%); }
.bannertext { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bannerdate { font-size: 13px; font-weight: 700; color: #D9D3F5; }
.banner h1 { font-size: 38px; letter-spacing: -0.035em; line-height: 1.1; color: #fff; }
.banner p { margin: 0; color: #E6E1FA; font-size: 15px; }
.banneractions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.newwork > summary.button { background: #fff; border-color: #fff; color: var(--ink); font-weight: 800; }
.newwork > summary.button:hover { background: #F0EEFA; }
.newwork .menu, .popmenu { left: 0; right: auto; width: 250px; padding: 6px; }
.newwork .menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--text); font-weight: 600; }
.newwork .menu a:hover { background: var(--ground); color: var(--ink); }
.newwork .menu svg { color: var(--label); }
.nextdate { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: var(--r-tag); background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff; }
.nextdate:hover { color: #fff; background: rgba(255, 255, 255, 0.2); }
.glass { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 10px; }
.glass a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.glass a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.glass b { font-size: 32px; font-weight: 800; line-height: 1.1; }
.glass span { font-size: 13px; font-weight: 700; color: #E6E1FA; }
@media (max-width: 600px) { .banner { padding: 22px 20px; } .banner h1 { font-size: 30px; } }

.chcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 26px; }
.chcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-width: 0; }
a.chcard:hover { border-color: #D6D2EA; color: var(--ink); box-shadow: 0 4px 14px rgba(29, 22, 64, 0.06); }
.chcardhead { display: flex; align-items: center; gap: 10px; }
.chcardhead .tile { width: 36px; height: 36px; border-radius: var(--r-ctl); background: var(--ch); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ch-email .tile { color: #3B2A00; }
.chcardhead strong { flex: 1; font-size: 16px; font-weight: 800; }
.chfig { display: flex; align-items: flex-end; gap: 16px; }
.chfig > span:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chfig b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.chfig b em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.chfig b.none { color: var(--faint); }
.chfig small { color: var(--muted); font-size: 13px; }
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 54px; flex: none; }
.minibars span { width: 16px; min-height: 4px; border-radius: 3px; background: var(--ch); opacity: 0.35; }
.minibars span:nth-child(2) { opacity: 0.5; } .minibars span:nth-child(3) { opacity: 0.7; } .minibars span.now { opacity: 1; }
.chcard .meter { margin-top: 0; }
.pill.fit { align-self: flex-start; white-space: normal; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: flex; align-items: center; gap: 10px; }
.hbar .l { width: 64px; font-size: 13px; color: var(--muted); }
.hbar .track { flex: 1; height: 12px; border-radius: 3px; background: var(--ch-soft); display: flex; }
.hbar .track span { border-radius: 3px; background: var(--ch); }
.hbar .track .b1 { background: #FF7AAE; } .hbar .track .b3 { background: var(--outreach-ink); }
.hbar b { width: 28px; text-align: right; }
.softrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--ground); }
.softrow small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chcard.soon { opacity: 0.5; cursor: default; }
.cols.home { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.lrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line-in); color: var(--ink); }
.lrow.small { min-height: 44px; font-size: 13px; }
a.lrow:hover { color: var(--ink); }
a.lrow:hover .lt b { color: var(--accent); }
.lt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lt b { font-weight: 700; }
.lt small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt a { color: var(--ink); font-weight: 600; }
.lm { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sitetile { width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--ch-soft); color: var(--ch-ink); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.datetile { width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 1.1; flex: none; text-transform: uppercase; }
.datetile b { font-size: 16px; font-weight: 800; }

/* bar lists (countries, campaigns): name, figure, then a bar in the channel's colour */
.barrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line-in); }
.barrow .track { grid-column: 1 / -1; height: 8px; border-radius: 2px; background: var(--ch-soft); display: flex; }
.barrow .track span { border-radius: 2px; background: var(--ch); }
.grid tr.ours td { background: var(--ch-soft); }
.statstrip { padding: 14px 18px; }
.stripcounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 4px; }
.stripcounts a { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--r-ctl); color: var(--ink); min-height: 44px; }
.stripcounts a:hover { background: var(--ground); color: var(--ink); }
.stripcounts a.on { background: var(--ch-soft); }
.stripcounts span { font-size: 12px; color: var(--muted); }
.stripcounts b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.stripcounts .st-replied span { color: var(--st-replied); font-weight: 700; } .stripcounts .st-replied b { color: var(--st-replied); }
.stripcounts .st-won span { color: var(--st-won); font-weight: 700; } .stripcounts .st-won b { color: var(--st-won); }
.stripbar { display: flex; gap: 2px; height: 10px; margin-top: 10px; border-radius: 3px; overflow: hidden; }
.stripbar span { min-width: 4px; }
.stripbar .st-todo { background: #DCD9EC; } .stripbar .st-contacted { background: #F6A9C8; } .stripbar .st-replied { background: var(--outreach-solid); }
.stripbar .st-won { background: var(--seo); } .stripbar .st-not_fit { background: #A9A5BF; }
.tplrow { margin-bottom: 6px; color: var(--ink); } .tplrow:hover { color: var(--ink); background: #ECEAF6; }
.card.rules { background: var(--outreach-soft); border-color: #F7CFE0; }
.card.rules h2 { color: var(--outreach-ink); }
.card.rules p { margin: 0 0 6px; color: #5A0F2E; }
.cols.three { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.figgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-in); }
.figgrid div { display: flex; flex-direction: column; }
.figgrid span { font-size: 12px; color: var(--muted); }
.figgrid b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.figgrid small { font-size: 12px; color: var(--muted); }
.sharecell { min-width: 150px; }
.sharecell .track { display: inline-flex; vertical-align: middle; width: 90px; height: 8px; border-radius: 2px; background: var(--ch-soft); margin-right: 8px; }
.sharecell .track span { border-radius: 2px; background: var(--ch); }
.alertcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.alertcard { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-card); background: var(--st-due-bg); color: #3B2A00; }
.alertcard svg { color: var(--st-due); margin-top: 2px; }
.alertcard.level-bad { background: var(--paid-soft); color: #4A2400; }
.alertcard.level-bad svg { color: var(--paid-ink); }
.alertcard span { display: flex; flex-direction: column; gap: 2px; }
.alertcard small { font-size: 13px; opacity: 0.85; }
a.alertcard:hover { color: inherit; filter: brightness(0.98); }

/* ---------- the Inbox: conversations, the open thread with the reply box, the site ---------- */
.inner:has(> .inbox) { max-width: none; }
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; margin: -24px -28px -48px; min-height: 100vh; }
.convlist { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.convhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 20px 16px 8px; }
.convhead h1 { font-size: 24px; }
.convsearch { padding: 4px 16px 8px; }
.convsearch input { margin: 0; padding-left: 40px; border-color: transparent;
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6787' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 13px center / 16px; }
.convtabs { display: flex; gap: 2px; padding: 0 12px 6px; flex-wrap: wrap; }
.convtabs a { min-height: 44px; padding: 0 9px; display: flex; align-items: center; gap: 5px; border-radius: var(--r-ctl); color: var(--muted); font-size: 13px; font-weight: 700; }
.convtabs a:hover { color: var(--ink); background: var(--ground); }
.convtabs a.on { background: var(--accent-soft); color: var(--accent); }
.convtabs b { font-size: 12px; }
.convwho { display: flex; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--line); }
.convwho a { font-size: 12px; font-weight: 700; color: var(--muted); padding: 5px 9px; border-radius: var(--r-tag); }
.convwho a.on { background: var(--ground); color: var(--ink); }
.convnote { margin: 0; padding: 10px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-in); }
.conv { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-in); color: var(--ink); }
.conv:hover { background: #FAF9FE; color: var(--ink); }
.conv.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.conv .sitetile { width: 36px; height: 36px; font-size: 14px; }
.sitetile.bounce { background: var(--st-bad-bg); color: var(--st-bad); }
.convtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convtop { display: flex; justify-content: space-between; gap: 8px; }
.convtop b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convtime { font-size: 12px; color: var(--muted); white-space: nowrap; }
.conv.unread .convtop b, .conv.unread .convsubj { font-weight: 800; }
.conv.unread .convtime { color: var(--accent); font-weight: 800; }
.convsubj { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convsnip { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .chips { margin-top: 4px; }
.conv .pill { font-size: 11px; padding: 2px 8px; }
.convempty { padding: 16px; }

.convmain { padding: 24px 28px 40px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.backlink { display: none; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; }
.threadhead h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; overflow-wrap: anywhere; }
.emails { display: flex; flex-direction: column; gap: 10px; }
details.email { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
details.email > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
details.email > summary::-webkit-details-marker { display: none; }
details.email[open] { box-shadow: 0 6px 20px rgba(29, 22, 64, 0.06); }
details.email[open] > summary .emailpeek { display: none; }
.emailwho { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emailwho small { font-size: 12px; color: var(--muted); }
.emailpeek { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.email .emailsubj { margin: 0 16px 6px; font-weight: 800; }
details.email .body { padding: 0 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--body); font-size: 15px; line-height: 1.6; }
details.email .button { margin: 0 16px 14px; }
details.email .pill.fit { display: inline-block; margin: 0 16px 8px; }
details.email.in { border-color: #F3C9DA; }
.avatar.them { background: var(--outreach-soft); color: var(--outreach-ink); }
details.email.failed { border-color: #E4C9C9; background: #FBF5F5; }
.replybox { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r-card); box-shadow: 0 10px 30px var(--accent-line); display: flex; flex-direction: column; }
.replytop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-in); }
.replykind { display: flex; align-items: center; gap: 6px; font-weight: 700; padding: 0 6px; }
.replykind svg { color: var(--accent); }
.grow { flex: 1; }
.replytop label.inline { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.replytop select { width: auto; margin: 0; }
.replybox .msg, .replybox .checks { margin: 12px 12px 0; }
.checks { padding: 10px 14px; border-radius: var(--r-ctl); background: var(--st-due-bg); color: #3B2A00; }
.checks ul { margin: 4px 0 0; padding-left: 18px; }
.cfield { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 18px; border-bottom: 1px solid var(--line-in); }
.cfield span { width: 60px; color: var(--muted); font-size: 13px; flex: none; }
.cfield input { border: 0; margin: 0; padding: 0; flex: 1; border-radius: 0; }
.cfield input:focus, .replybox textarea:focus { outline: none; }
.replybox:focus-within { box-shadow: 0 10px 30px var(--accent-line), 0 0 0 3px var(--accent-soft); }
.replybox textarea.mail { border: 0; border-radius: 0; margin: 0; padding: 14px 18px; font-size: 15px; line-height: 1.6; color: var(--body); min-height: 260px; }
.replyfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-in); }

.convside { background: var(--surface); border-left: 1px solid var(--line); padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sitehead { display: flex; align-items: center; gap: 12px; }
.sitetile.big { width: 48px; height: 48px; font-size: 20px; }
.sitehead .lt b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.iconbtn { width: 44px; height: 44px; border-radius: var(--r-ctl); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.iconbtn:hover { background: var(--ground); color: var(--ink); }
.sitefigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sitefigs div { padding: 10px; border-radius: var(--r-ctl); background: var(--ch-soft); display: flex; flex-direction: column; min-width: 0; }
.sitefigs span { font-size: 11px; font-weight: 700; color: var(--ch-ink); }
.sitefigs b { font-size: 20px; font-weight: 800; color: var(--ch-ink); overflow: hidden; text-overflow: ellipsis; }
.sideblock { display: flex; flex-direction: column; gap: 6px; }
.sideblock p { margin: 0; color: var(--body); }
.sideblock label { margin: 8px 0; }
.sideblock .cardhead { margin-bottom: 0; }
ol.progress { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ol.progress li { display: flex; align-items: center; gap: 10px; }
ol.progress .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed #C9C5DD; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
ol.progress .dot svg { width: 14px; height: 14px; stroke-width: 3; }
ol.progress li.done .dot { background: var(--seo); border: 0; }
ol.progress li.now .dot { background: var(--unread); border: 0; box-shadow: 0 0 0 4px var(--outreach-soft); }
ol.progress li b { flex: 1; font-weight: 600; }
ol.progress li:not(.done):not(.now) b { color: var(--muted); font-weight: 500; }
ol.progress li.now b { color: var(--outreach-ink); font-weight: 800; }
ol.progress small { font-size: 12px; color: var(--muted); }
.contact { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line-in); }
.convpick { align-items: center; justify-content: center; grid-column: 2 / -1; }
.pickmsg { max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pickmsg > svg { width: 40px; height: 40px; color: var(--faint); }
.pickmsg h2 { margin: 0; }
@media (max-width: 1280px) {
  .inbox { grid-template-columns: 320px minmax(0, 1fr); }
  .convlist { grid-row: 1 / span 2; }
  .convside { grid-column: 2; position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .inbox { display: block; margin: -18px -16px -40px; }
  .convlist, .convside { position: static; height: auto; }
  .inbox.has-thread .convlist { display: none; }
  .backlink { display: inline-flex; }
  .convmain { padding: 18px 16px; }
}
.login ol.steps { text-align: left; padding-left: 20px; color: var(--text); }
.login p { color: var(--text); }
.login form + form { margin-top: 10px; }

/* ---------- outreach thread (older pieces still used by some pages) ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; }
.mail { border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; background: var(--surface); }
.mail.in { border-color: #F3C9DA; }
.mail .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mail .meta b { color: var(--ink); }
.mail .body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--body); line-height: 1.6; }
.mail.failed { border-color: #E4C9C9; background: #FBF5F5; }
.composebar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.composebar label { margin: 0; flex: 1 1 200px; }
.note { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
.note .meta { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
mark.check { background: var(--check-bg); color: var(--check-ink); border-radius: 3px; padding: 0 4px; }

/* ---------- boards (Idea to Live) ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.board .col { background: #ECEAF6; border-radius: var(--r-card); padding: 10px; min-height: 140px; }
.board .col h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 2px 2px 10px; }
.board .col h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--stage, var(--stage-idea)); }
.board .col.idea { --stage: var(--stage-idea); }
.board .col.brief { --stage: var(--stage-planned); }
.board .col.writing { --stage: var(--stage-progress); }
.board .col.review { --stage: var(--stage-review); background: #FFF6D6; }
.board .col.published { --stage: var(--stage-live); background: #E4F7EF; }
.board .item { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; margin-bottom: 8px; color: var(--ink); }
.board .item:hover { border-color: #D6D2EA; color: var(--ink); box-shadow: 0 4px 14px rgba(29, 22, 64, 0.06); }
.board .item .t { font-weight: 700; }
.board .item .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(5, 240px); } }

details.pop { position: relative; display: inline-block; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 340px; max-width: calc(100vw - 32px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(29, 22, 64, 0.14); padding: 14px; }
details.inline > summary { cursor: pointer; color: var(--link); font-weight: 700; min-height: 32px; display: flex; align-items: center; }
pre.script { background: var(--ink); color: #EDEBF7; padding: 14px 16px; border-radius: var(--r-card); overflow: auto; max-height: 420px; font-size: 12px; }
