/* Helio SEO work surfaces (admin + portal): the M light work-surface language.
   Near-neutral ground, white cards, blue accent, violet for Helio himself.
   Type: Outfit (headings/numbers) + Instrument Sans (body). */

:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #131b2c;
  --ink-2: #5d6474;
  --ink-3: #8a90a0;
  --line: #e3e6ea;
  --line-strong: #d5d9e0;
  --blue: #2c5ef0;
  --blue-dark: #2450cc;
  --sky: #dbe7ff;
  --sky2: #eef3ff;
  --butter: #ffe9c2;
  --sage: #dcefdd;
  --blush: #ffe3d6;
  --violet: #7c3aed;
  --violet-soft: #ede6fd;
  --good: #1c7a3d;
  --bad: #b3372f;
  --font-body: 'Instrument Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-body);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
header.top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
header.top .inner {
  max-width: 1120px; margin: 0 auto; padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap;
}
.wordmark span { color: #E8A13F; }
.wordmark:hover { text-decoration: none; }
header.top .tag { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
header.top .right { margin-left: auto; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  header.top .tag { display: none; }
}

main { max-width: 1120px; margin: 0 auto; padding: 26px 16px 90px; }
@media (min-width: 900px) { main { padding: 34px 24px 100px; } }

h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 8px; font-weight: 700;
}
.sub { color: var(--ink-2); margin: 0 0 24px; font-size: 14.5px; max-width: 72ch; }
.sub a { overflow-wrap: anywhere; }

main > h2 {
  font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em;
  font-weight: 700; margin: 38px 0 12px;
}

/* ---------- stat tiles ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 0 0 24px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; box-shadow: 0 8px 24px -20px rgba(16, 29, 61, 0.35);
}
.stat .k { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.stat .v {
  font-family: var(--font-display); font-size: 27px; font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; line-height: 1.15;
}
.stat .v small { font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* ---------- layout ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 8px 24px -20px rgba(16, 29, 61, 0.3);
}
@media (min-width: 900px) { .panel { padding: 20px 24px; } }
.panel h2 {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700;
  letter-spacing: -0.01em; margin: 24px 0 10px;
}
.panel h2:first-child { margin-top: 0; }
.panel + .panel { margin-top: 16px; }

/* ---------- progress ---------- */
.progress { height: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 9px 0 4px; }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width 300ms ease; }

/* ---------- tables ---------- */
table.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rows th {
  text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600;
  padding: 8px 10px 7px; border-bottom: 1.5px solid var(--line);
}
table.rows td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rows tr:last-child td { border-bottom: 0; }
table.rows tbody tr { transition: background 150ms ease; }
@media (hover: hover) { table.rows tbody tr:hover { background: var(--sky2); } }
table.rows td strong { font-weight: 600; }
table.rows td a:not(.btn) { color: var(--ink); }
table.rows td a:not(.btn):hover { color: var(--blue); text-decoration: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
td.idx { font-family: var(--font-display); font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }

@media (max-width: 719px) {
  table.rows, table.rows tbody, table.rows tr, table.rows td { display: block; width: 100%; }
  table.rows thead { display: none; }
  table.rows tr { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; padding: 12px 14px; background: var(--surface); }
  table.rows td { border: 0; padding: 3px 0; }
  table.rows td.num { text-align: left; }
  table.rows td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: 6px;
  }
  table.rows td:empty { display: none; }
}

/* ---------- pills ---------- */
.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--line); white-space: nowrap;
}
.pill.published { color: var(--good); border-color: transparent; background: var(--sage); }
.pill.draft, .pill.drafted { color: #7a5203; border-color: transparent; background: var(--butter); }
.pill.writing, .pill.running, .pill.pending { color: var(--blue-dark); border-color: transparent; background: var(--sky); }
.pill.failed, .pill.rejected { color: var(--bad); border-color: transparent; background: var(--blush); }
.pill.writing::after, .pill.running::after { content: "…"; }

/* ---------- buttons & forms ---------- */
button, .btn {
  font: 600 14px/1 var(--font-body); color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  min-height: 44px; transition: background 160ms ease, transform 160ms ease;
}
button:hover, .btn:hover { background: #000; transform: translateY(-1px); }
button.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
button.quiet:hover { background: var(--surface-2); border-color: var(--ink-3); }
button.accent { background: var(--blue); }
button.accent:hover { background: var(--blue-dark); }
button.danger { background: transparent; color: var(--bad); border: 1.5px solid #ecc9c4; }
button.danger:hover { background: var(--blush); }
button.small { padding: 8px 14px; min-height: 36px; font-size: 13px; }
form.inline { display: inline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 719px) {
  .actions button, .actions .btn { flex: 1 1 auto; }
}

label { display: block; font-size: 13px; font-weight: 600; margin: 15px 0 5px; }
input[type="text"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--line-strong);
  border-radius: 12px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  background: #fff; color: var(--ink);
}
textarea { min-height: 100px; resize: vertical; }
textarea.body { min-height: 380px; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* ---------- keywords ---------- */
.keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.keywords .kw {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2);
}
.keywords .kw.high { border-color: transparent; background: var(--sky); color: var(--blue-dark); }

/* ---------- article prose ---------- */
.prose { max-width: 720px; overflow-wrap: anywhere; }
.prose h2, .prose h3 { font-family: var(--font-display); letter-spacing: -0.015em; }
.prose h2 { font-size: 20px; margin: 26px 0 8px; }
.prose h3 { font-size: 16.5px; margin: 20px 0 6px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12px 0; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.prose tr.hl td { color: #004A9E; font-weight: 600; }
.prose ul { margin: 0 0 14px 20px; }
.prose a { color: #004A9E; }
/* Accented sections travel with the article: subtle box, little brand border. */
.prose .callout { background: #f4f6fb; border: 1px solid var(--line); border-left: 3px solid #E8A13F;
  border-radius: 10px; padding: 16px 18px; margin: 16px 0; font-size: 15px; }
.prose .callout p, .prose .callout b { margin: 0; }
.prose blockquote { margin: 16px 0; padding: 4px 0 4px 18px; border-left: 3px solid #E8A13F;
  font-style: italic; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose .tag { display: inline-block; background: #eef2fb; color: #004A9E; font-size: 12px;
  font-weight: 600; border-radius: 12px; padding: 4px 12px; margin-bottom: 8px; }
.prose .cta { background: #131b2c; color: #fff; border-radius: 14px; padding: 22px 24px; margin: 22px 0; }
.prose .cta h3 { color: #fff; margin: 0 0 8px; }
.prose .cta a { display: inline-block; margin-top: 10px; background: #E8A13F; color: #131b2c;
  text-decoration: none; font-weight: 600; padding: 9px 18px; border-radius: 999px; }
.prose-scroll { overflow-x: auto; }

/* ---------- misc ---------- */
.notice {
  background: var(--butter); color: #6b4a06;
  border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin: 0 0 20px;
}
.muted { color: var(--ink-2); font-size: 13.5px; }
details > summary { cursor: pointer; font-weight: 600; font-size: 14px; margin: 6px 0; min-height: 32px; }
.brief { color: var(--ink-2); font-size: 13px; }

.tab-gone { display: none; }

/* mobile tabs on the article page */
.tabbar { display: none; }
@media (max-width: 899px) {
  .tabbar { display: flex; gap: 8px; margin-bottom: 14px; }
  .tabbar button { flex: 1; }
  .tabbar button[aria-selected="false"] { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
  .tab-hidden { display: none; }
}

/* ---------- customer dashboard ---------- */
.tabnav {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 24px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.tabnav button {
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; min-height: 38px; font-size: 13.5px; font-weight: 600;
}
.tabnav button:hover { background: var(--surface-2); color: var(--ink); transform: none; }
.tabnav button[aria-selected="true"] { background: var(--navy, #101d3d); background: #101d3d; color: #fff; border-color: #101d3d; }
.tabnav button .cnt {
  display: inline-block; margin-left: 7px; background: var(--butter); color: #6b4a06;
  border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700;
}
[data-tabpanel][hidden] { display: none; }

.callout {
  background: var(--butter); border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 20px;
}
.callout .t { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #4a3403; }
.callout .s { color: #6b4a06; font-size: 13.5px; }
.callout form, .callout a.btn { margin-left: auto; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.activity li:last-child { border-bottom: 0; }
.activity time { flex: none; width: 74px; color: var(--ink-3); font-size: 12px; padding-top: 1px; }
.activity .dot2 { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 6px; }

.gapchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gapchips span {
  background: var(--sky2); border-radius: 10px; padding: 7px 13px;
  font-size: 13px; font-weight: 500; color: #28324e;
}

.intentrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.intentrow span {
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700;
}
.intentrow .informational { background: var(--sky); color: #1e3f9e; }
.intentrow .commercial { background: var(--sage); color: var(--good); }
.intentrow .transactional { background: var(--blush); color: #8a3c1c; }
.intentrow .navigational, .intentrow .comparison { background: var(--violet-soft); color: var(--violet); }

.prio { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; }
.prio.high { background: var(--blush); color: #8a3c1c; }
.prio.medium { background: var(--butter); color: #6b4a06; }
.prio.low { background: var(--surface-2); color: var(--ink-2); }

.checksrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.checksrow span {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--good-bg, #f0f9f2); background: #f0f9f2; color: var(--good);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.checksrow span.warn { background: var(--butter); color: #6b4a06; }

.schedchip { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* platform picker cards */
.platgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 4px; }
@media (min-width: 1100px) { .platgrid { grid-template-columns: repeat(3, 1fr); } }
.plat { position: relative; display: block; border: 1.5px solid var(--line-strong); border-radius: 14px;
  padding: 13px 15px; cursor: pointer; background: var(--surface); transition: border-color 150ms ease; margin: 0; }
.plat:hover { border-color: var(--ink-3); }
.plat input { position: absolute; opacity: 0; pointer-events: none; }
.plat b { font-family: var(--font-display); font-size: 14.5px; display: block; }
.plat span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; font-weight: 400; }
.plat:has(input:checked) { border-color: var(--blue); background: var(--sky2); }
.plat:has(input:checked) b { color: var(--blue-dark); }

.steps-note { background: var(--surface-2); border-radius: 12px; padding: 13px 16px; margin-top: 14px; }
.steps-note ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.steps-note ol li { margin: 4px 0; }
.codebox { background: #131b2c; color: #dfe7ff; border-radius: 10px; padding: 12px 14px;
  font: 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto;
  white-space: pre; margin-top: 10px; }
.codewrap { position: relative; }
.codewrap .codebox { padding-right: 62px; }
.copybtn { position: absolute; top: 16px; right: 8px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 7px; padding: 5px 11px; transition: background .15s ease; }
.copybtn:hover { background: rgba(255,255,255,.26); }
.copybtn.ok { background: #16794f; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Locked Settings preview shown to demo tenants (read-only, no live forms). */
.demo-locked form { pointer-events: none; }
.demo-locked .actions,
.demo-locked button[type="submit"] { display: none; }
.demo-locked input,
.demo-locked select,
.demo-locked textarea { background: #f4f4f6; color: #55606f; cursor: default; }

/* Edit-in-place: the article body is editable as formatted text, never raw HTML. */
.prose.editable {
  border: 1.5px solid var(--line-strong, #d5d9e0); border-radius: 12px;
  padding: 18px 22px; min-height: 300px; outline: none; background: #fff;
}
.prose.editable:focus { border-color: #004A9E; box-shadow: 0 0 0 3px rgba(0,74,158,.12); }

/* Journalist-request queue */
.authreq { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 14px; }
.authdraft { white-space: pre-wrap; font: inherit; background: var(--surface-2, #f6f7f9);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0 0; }
.authreq .copybtn { position: static; top: auto; right: auto; background: transparent;
  color: var(--ink); border: 1.5px solid var(--line-strong); }
.authreq .copybtn:hover { background: var(--surface-2); }
.authreq .copybtn.ok { background: #16794f; color: #fff; border-color: #16794f; }
.citchip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px;
  padding: 3px 10px; margin-left: 8px; vertical-align: 2px;
  background: var(--surface-2, #f6f7f9); color: #5a6472; border: 1px solid var(--line); }
.citchip.live { background: #e7f5ec; color: #16794f; border-color: #bfe3cd; }
.citchip.saved { background: #fdf3e0; color: #8a6116; border-color: #f0ddb2; }
.codebox.wrapbox { white-space: pre-wrap; word-break: break-word; padding-right: 72px; }

/* ── approval celebration (portal article page, ?approved=1) ── */
.celebrate{position:relative;display:flex;gap:16px;align-items:center;background:#e6f4e3;border:1px solid #bfe3c4;border-radius:14px;padding:18px 22px;margin-bottom:20px;overflow:hidden}
.celebrate .csun{flex:none;animation:cel-pop .6s cubic-bezier(.2,1.6,.4,1)}
.celebrate .ctxt{position:relative;z-index:1}
.celebrate b{font-family:'Outfit',sans-serif;font-size:17px;color:#14532d}
.celebrate p{margin:4px 0 0;font-size:14px;color:#2f5d3a}
.celebrate a{color:#1c7a3d;font-weight:600}
@keyframes cel-pop{0%{transform:scale(.4) rotate(-14deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}
.cheer{position:absolute;inset:0;pointer-events:none}
.cheer i{position:absolute;top:-12px;width:8px;height:12px;border-radius:2px;opacity:.9;animation:cel-fall linear forwards}
@keyframes cel-fall{to{transform:translateY(150px) rotate(320deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.cheer{display:none}.celebrate .csun{animation:none}}

/* Per-article LinkedIn share button (Published table) */
.lnkbtn{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border:1.5px solid #0A66C2;
  border-radius:999px;color:#0A66C2;font-size:12.5px;font-weight:600;text-decoration:none;white-space:nowrap}
.lnkbtn:hover{background:#0A66C2;color:#fff}

/* ============================================================
   Helio Reach additions — cadence calendar, needs-you queue,
   workspace tabs, composer. Same M light work-surface language.
   ============================================================ */

/* --- "Needs you" queue (agency dashboard, top of page) --- */
.needs { display: grid; gap: 8px; margin: 0 0 26px; }
.needrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 8px 24px -20px rgba(16,29,61,.3);
}
.needrow.cadence { border-left-color: #d9932b; }
.needrow.review  { border-left-color: var(--violet); }
.needrow.inbox   { border-left-color: #1c7a3d; }
.needrow .who { font-weight: 700; font-family: var(--font-display); }
.needrow .what { color: var(--ink-2); font-size: 14px; }
.needrow .go { margin-left: auto; }

/* --- workspace cards (agency grid) --- */
.wgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px){ .wgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px){ .wgrid { grid-template-columns: 1fr 1fr 1fr; } }
.wcard {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px; color: inherit;
  box-shadow: 0 8px 24px -20px rgba(16,29,61,.3); transition: transform .16s ease, box-shadow .16s ease;
}
.wcard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(16,29,61,.4); }
.wcard h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 3px; letter-spacing: -.01em; }
.wcard .url { color: var(--ink-3); font-size: 12.5px; }
.wcard .cadline { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; }
.dots { display: inline-flex; gap: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dot.on { background: var(--good); }
.dot.risk { background: #e0a43b; }
.wcard .meta { display: flex; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.wcard .meta b { font-family: var(--font-display); color: var(--ink); }

/* --- tabs --- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1.5px solid var(--line); margin: 6px 0 22px; }
.tabs a {
  padding: 9px 14px; border-radius: 10px 10px 0 0; font-weight: 600; font-size: 14px;
  color: var(--ink-2); border: 1.5px solid transparent; border-bottom: none; margin-bottom: -1.5px;
}
.tabs a:hover { text-decoration: none; color: var(--ink); background: var(--surface-2); }
.tabs a.on { color: var(--ink); background: var(--surface); border-color: var(--line); border-bottom-color: var(--surface); }
.tabs a .n { display:inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px;
  background: var(--sky); color: var(--blue-dark); font-size: 11px; font-weight: 700; text-align: center; }
.tabs a .n.warn { background: var(--butter); color: #7a5203; }

/* --- cadence calendar strip --- */
.calhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.calhead .hint { color: var(--ink-2); font-size: 13.5px; }
.calstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.slot {
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: var(--surface);
  min-height: 118px; display: flex; flex-direction: column; box-shadow: 0 8px 24px -20px rgba(16,29,61,.25);
}
.slot .day { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: -.01em; }
.slot .day small { color: var(--ink-3); font-weight: 600; }
.slot.filled { border-color: #bfe3c6; }
.slot.filled .day::after { content: "● scheduled"; float: right; color: var(--good); font-size: 10.5px; font-weight: 700; }
.slot.open { border-style: dashed; border-color: #e6c07a; background: linear-gradient(0deg, #fffaf0, var(--surface)); }
.slot.open .day::after { content: "○ open"; float: right; color: #b5791b; font-size: 10.5px; font-weight: 700; }
.slot .body { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slot .fillbtn { margin-top: 10px; }
.slot .pill { align-self: flex-start; margin-top: 8px; }

/* --- composer / post detail --- */
.composer { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px){ .composer { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.postbox {
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  padding: 18px 20px; font-size: 15px; line-height: 1.55; white-space: pre-wrap;
}
.postbox .tags { color: var(--blue-dark); font-weight: 600; margin-top: 12px; }
.postbox.li { max-width: 560px; }
.field { display: block; margin: 0 0 14px; }
.field > span { display:block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
textarea, input[type=text], input[type=email], input[type=url], input[type=date], input[type=time], select {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--surface);
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.approve { background: var(--good); }
.btn.small { padding: 8px 14px; min-height: 38px; font-size: 13px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.reviewnote { background: var(--butter); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #7a5203; margin: 0 0 14px; }
.kv { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.kv b { color: var(--ink); font-weight: 600; }

/* --- empty states --- */
.empty { text-align: center; padding: 42px 20px; color: var(--ink-2); border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface-2); }
.empty h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0 auto 14px; max-width: 44ch; font-size: 14px; }

/* --- submission cards --- */
.subcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); margin: 0 0 12px; }
.subcard .top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.subcard .who { font-weight: 700; font-family: var(--font-display); font-size: 14px; }
.subcard .note { font-size: 14px; color: var(--ink); }
.subcard img.thumb { max-height: 120px; border-radius: 10px; margin-top: 10px; border: 1px solid var(--line); }
.subcard .acts { margin-top: 12px; display: flex; gap: 8px; }
.mediahint { display:inline-block; font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* ============================================================
   DESIGN PASS v2 — icons, warmer accents, elevated calendar,
   section headers, dashboard polish. Layers over the base.
   ============================================================ */
:root { --amber: #E8A13F; --amber-soft: #fdeccd; --amber-ink: #8a5a12; }

/* icons */
.ic { width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none; }
.ic.big { width: 22px; height: 22px; }
.eyebrow-ic { color: var(--amber); }

/* header lockup with the Helio mark */
header.top .inner { gap: 10px; }
.brandlock { display: inline-flex; align-items: center; gap: 9px; }
.brandlock:hover { text-decoration: none; }

/* section header with icon */
.sec { display: flex; align-items: center; gap: 9px; margin: 38px 0 14px; }
.sec .ic { color: var(--amber); width: 20px; height: 20px; }
.sec h2 { margin: 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
.sec .count { margin-left: 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* "Needs you" queue — elevated */
.needrow { align-items: center; gap: 13px; border-left-width: 4px; padding: 14px 18px; }
.needrow .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.needrow .badge .ic { width: 18px; height: 18px; }
.needrow.cadence .badge { background: var(--amber-soft); color: var(--amber-ink); }
.needrow.review  .badge { background: var(--violet-soft); color: var(--violet); }
.needrow.inbox   .badge { background: var(--sage); color: var(--good); }
.needrow .stack { display: flex; flex-direction: column; gap: 1px; }
.needrow .who { font-size: 14.5px; }
.needrow .go { display: inline-flex; align-items: center; gap: 5px; }

/* workspace cards — cadence ring + channel chip */
.wcard { position: relative; }
.wcard .chanchip { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #0a66c2; background: #eaf3fb; border: 1px solid #d3e6f5; border-radius: 999px; padding: 3px 9px; }
.wcard .chanchip .ic { width: 13px; height: 13px; }
.wcard .cadline { margin: 16px 0 4px; }
.wcard .meta .ic { width: 14px; height: 14px; vertical-align: -.18em; color: var(--ink-3); margin-right: 3px; }

/* calendar: week grouping + channel + richer slots */
.weeklabel { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-2); letter-spacing: -.01em; }
.weeklabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.weeklabel .tag { font-size: 11px; font-weight: 700; color: var(--amber-ink); background: var(--amber-soft); border-radius: 999px; padding: 2px 9px; }
.slot { position: relative; transition: transform .14s ease, box-shadow .14s ease; }
.slot.filled:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(16,29,61,.4); }
.slot .chan { position: absolute; top: 12px; right: 12px; color: #0a66c2; }
.slot .chan .ic { width: 15px; height: 15px; }
.slot.filled .day::after, .slot.open .day::after { font-family: var(--font-body); }
.slot .fillbtn .btn { display: inline-flex; align-items: center; gap: 6px; }

/* pill scheduled variant (no ellipsis) */
.pill.scheduled { color: var(--blue-dark); background: var(--sky); border-color: transparent; }
.pill .ic { width: 12px; height: 12px; vertical-align: -.1em; margin-right: 2px; }

/* buttons with icons */
.btn .ic { width: 16px; height: 16px; vertical-align: -.2em; margin-right: 5px; }
.btn.iconly .ic { margin-right: 0; }

/* tabs get a touch more presence */
.tabs a { display: inline-flex; align-items: center; gap: 6px; }
.tabs a .ic { width: 15px; height: 15px; }

/* subcard: submitter avatar + richer */
.subcard { transition: box-shadow .14s ease; }
.subcard:hover { box-shadow: 0 14px 30px -24px rgba(16,29,61,.4); }
.subcard .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-soft); color: var(--violet);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; flex: none; }
.subcard .kindchip { display: inline-flex; align-items: center; gap: 5px; }

/* empty states get an icon medallion */
.empty .medallion { width: 52px; height: 52px; border-radius: 16px; background: var(--sky2); color: var(--blue);
  display: grid; place-items: center; margin: 0 auto 14px; }
.empty .medallion .ic { width: 26px; height: 26px; }

/* fix: the channel icon and the old day::after status float collided in slots.
   The status is shown by the pill now, so drop the redundant ::after text. */
.slot.filled .day::after, .slot.open .day::after { content: none !important; }
.slot .day { padding-right: 22px; }  /* leave room for the channel icon */
.slot .chan { opacity: .85; }

/* fix: password inputs were left out of the field styling rule (login + /password
   rendered browser-default narrow boxes). */
input[type=password] {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  background: var(--surface);
}
input[type=password]:focus { outline: none; border-color: var(--blue); }

/* needs-you: publish (due today) is the most urgent kind — amber-red bar */
.needrow.publish { border-left-color: #d9534f; }
.needrow.publish .badge { background: #fde3e1; color: #b23b36; }
/* review-tab section subheads */
.subhead { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.subhead .ic { width: 16px; height: 16px; color: var(--ink-3); }
.undo { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.btn.danger { color: var(--bad); }

/* LinkedIn post preview (approve-what-ships) */
.lipreview { border: 1px solid var(--line); border-radius: 14px; background: #fff; max-width: 520px; box-shadow: 0 10px 30px -22px rgba(16,29,61,.4); overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.lipreview .lihead { display: flex; gap: 10px; padding: 14px 16px 8px; align-items: center; }
.lipreview .liava { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex: none; }
.lipreview .liname { font-weight: 700; font-size: 14px; color: #1b1f23; }
.lipreview .limeta { font-size: 12px; color: #666; }
.lipreview .limeta .ic { width: 12px; height: 12px; vertical-align: -.1em; }
.lipreview .libody { padding: 4px 16px 2px; font-size: 14px; line-height: 1.45; color: #1b1f23; white-space: pre-wrap; }
.lipreview .lisee { background: none; border: 0; color: #666; font-size: 14px; padding: 2px 16px 12px; cursor: pointer; min-height: 0; font-weight: 600; }
.lipreview .lisee:hover { color: var(--blue); text-decoration: underline; }
.lipreview .limedia { width: 100%; display: block; max-height: 260px; object-fit: cover; }
.lipreview .livideo { height: 120px; background: #eef2f6; display: flex; align-items: center; justify-content: center; gap: 8px; color: #666; font-size: 13px; }
.lipreview .lifoot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid #eee; color: #666; font-size: 13px; font-weight: 600; }
.lipreview .lifoot .ic { width: 15px; height: 15px; vertical-align: -.15em; }
.lipreview-cap { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; max-width: 520px; }
/* redraft steer + slot pill on empty calendar slots */
.slotpillar { font-size: 12px; padding: 6px 8px; border-radius: 8px; margin-bottom: 8px; width: 100%; }
.redraft { display: flex; gap: 8px; margin-top: 12px; }
.redraft input { flex: 1; }

/* guided setup (welcome page) */
.setup { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.setup li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 8px 24px -20px rgba(16,29,61,.3); }
.setup .snum { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.setup .sbody { flex: 1; }
.setup h3 { font-family: var(--font-display); font-size: 16.5px; margin: 2px 0 6px; letter-spacing: -.01em; }
.setup p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.setup .shint { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }
.linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; }
.linkbox code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: var(--ink); word-break: break-all; flex: 1; }
