/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sub { color: var(--ink-2); font-size: 13px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; /* controls left, logo in the middle, controls right */
  padding: 12px 24px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--muted); }
.controls, .tb-left, .tb-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-left { justify-self: start; }
.tb-right { justify-self: end; justify-content: flex-end; }
.topbar .brand { justify-self: center; }
.brand > div { text-align: left; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* Business / Influencer: the white highlight is one piece that slides between the two buttons (app.js moveModeThumb) */
#mode-seg { position: relative; isolation: isolate; }
#mode-seg .seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; z-index: -1; border-radius: 7px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .24s cubic-bezier(.3, .7, .3, 1), width .24s cubic-bezier(.3, .7, .3, 1); }
#mode-seg .seg-thumb.snap { transition: none; }
#mode-seg.has-thumb button { position: relative; transition: color .2s; }
#mode-seg.has-thumb button.on { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { #mode-seg .seg-thumb { transition: none; } }

.select-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.select-wrap select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 8px;
}
/* The business goal picker, shown on Focus, Planner and Report */
.hero-side, .report-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.goal-pick { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.goal-lock { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--ink-2); max-width: 340px; text-align: right; }
.goal-lock svg { flex: none; }
@media (max-width: 760px) { .hero-side, .report-head-side { align-items: flex-start; } .goal-pick { justify-self: start; align-items: flex-start; } .goal-lock { text-align: left; } }
.plan-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); }
/* The current plan, shown as a tag; clicking it opens the Pricing page */
.plan-pill { font: inherit; font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--neutral-bg); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.plan-pill:hover { border-color: var(--axis); color: var(--ink); }
.sample-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--axis); color: var(--ink-2); white-space: nowrap; }
.plan-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg[hidden] { display: none; }
.free-pill { display: inline-flex; align-items: center; gap: 6px; }
.free-pill .lk { margin-left: 0; color: inherit; }
.plan-pill.paid { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- Demo banner & tabs ---------- */
.demo-banner {
  margin: 20px 0 8px; padding: 12px 16px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed var(--axis); font-size: 14px; color: var(--ink-2);
}
.demo-banner strong { color: var(--ink); }
.connect-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--ink); }
.chip em { font-style: normal; color: var(--muted); font-size: 12px; }
.chip-add { text-decoration: none; cursor: pointer; font: inherit; font-size: inherit; color: var(--ink-2); border: 1px dashed var(--axis); background: transparent; }
.chip-add:hover { color: var(--ink); border-color: var(--ink); }
.chip-connect { text-decoration: none; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip-connect:hover { opacity: 0.9; }
.live-tag { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--good-bg); color: var(--good-ink); }
.chip-btn { border: 0; background: none; padding: 0 0 0 4px; font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.chip-btn:hover { color: var(--ink); }
.banner-ok { margin-top: 4px; color: var(--good-ink); font-size: 13.5px; }
.account { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.account:empty { display: none; }
.account .who { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.account a.chip-btn, .account button.chip-btn { padding: 0; }
.btn-sm { padding: 5px 12px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 650; font-size: 13px; }
.banner-link { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.banner-note { margin-top: 4px; color: var(--ink-2); font-size: 13px; max-width: 640px; }
.banner-err { margin-top: 4px; color: var(--bad-ink); font-size: 13.5px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Page layout: the pages use the full width; the tabs float in a bar along the bottom ---------- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.shell .wrap { max-width: none; width: 100%; margin: 0; padding: 0 0 128px; }
.shell .demo-banner { margin-top: 20px; margin-bottom: 20px; }

.sidenav {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: row; gap: 2px;
  padding: 6px; margin: 0; max-width: calc(100vw - 24px);
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}
.sidenav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 82px;
  padding: 8px 12px; border: 0; border-radius: 13px; background: none;
  font-size: 12.5px; font-weight: 550; color: var(--ink-2); text-align: center; white-space: nowrap;
}
.sidenav button svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidenav button { position: relative; z-index: 1; transition: color .18s ease, background-color .18s ease; }
.sidenav button:hover { background: var(--surface-2); color: var(--ink); }
.sidenav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sidenav button.on { background: transparent; color: var(--accent-ink); font-weight: 650; }
.sidenav button.on:hover { background: transparent; color: var(--accent-ink); }
/* The highlight that glides to whichever tab is open */
.nav-indicator {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none;
  border-radius: 13px; background: var(--accent); opacity: 0;
  transition: transform .26s cubic-bezier(.3, .9, .3, 1), width .26s cubic-bezier(.3, .9, .3, 1), height .26s cubic-bezier(.3, .9, .3, 1), opacity .15s ease;
}
.nav-indicator.ready { opacity: 1; }
.nav-indicator.instant { transition: none; }
/* A small pop on the icon of the tab you just opened */
.sidenav button.on svg { animation: nav-pop .34s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes nav-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
/* The page you open eases in */
.panel:not([hidden]) { animation: panel-in .2s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Smooth loading (the demo's default, a switch in Settings): cards rise in one after another and chart lines draw themselves.
   The page sets data-intro for about a second after a page opens, so only that moment animates. */
html[data-smooth="on"] .panel:not([hidden]) { animation: none; }
html[data-smooth="on"][data-intro] .panel:not([hidden]) > :not([data-reveal]) { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
html[data-smooth="on"][data-intro] .panel:not([hidden]) > :nth-child(2) { animation-delay: .06s; }
html[data-smooth="on"][data-intro] .panel:not([hidden]) > :nth-child(3) { animation-delay: .12s; }
html[data-smooth="on"][data-intro] .panel:not([hidden]) > :nth-child(4) { animation-delay: .18s; }
html[data-smooth="on"][data-intro] .panel:not([hidden]) > :nth-child(5) { animation-delay: .24s; }
html[data-smooth="on"][data-intro] .panel:not([hidden]) > :nth-child(n+6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html[data-smooth="on"][data-intro] .ln { stroke-dasharray: 1; animation: draw .9s cubic-bezier(.3, .6, .3, 1) .1s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html[data-smooth="on"][data-intro] .chart svg .end-label, html[data-smooth="on"][data-intro] .chart svg .end-value { animation: rise .4s ease-out .8s both; }
/* Cards further down the page wait, then ease in as they scroll into view */
html[data-smooth="on"] .panel > [data-reveal="wait"] { opacity: 0; transform: translateY(14px); }
html[data-smooth="on"] .panel > [data-reveal="in"] { opacity: 1; transform: none; transition: opacity .55s ease-out, transform .55s cubic-bezier(.2, .7, .2, 1); }
html[data-smooth="on"] [data-reveal="wait"] .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: none; }
html[data-smooth="on"] [data-reveal="in"] .ln { stroke-dasharray: 1; animation: draw .9s cubic-bezier(.3, .6, .3, 1) .15s both; }
@media (prefers-reduced-motion: reduce) {
  .nav-indicator { transition: none; }
  .sidenav button.on svg, .panel:not([hidden]) { animation: none; }
  html[data-smooth] [data-intro] *, html[data-smooth][data-intro] * { animation: none !important; }
  html[data-smooth][data-intro] .ln { stroke-dasharray: none; }
}

/* ---------- Delete account (Settings) ---------- */
.del-form { display: grid; gap: 10px; min-width: min(320px, 100%); }
.del-form .f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; }
.del-form input { padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.del-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { border-color: #c0392b; color: #c0392b; }
.btn.danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ---------- Your platforms (Settings) ---------- */
.plat-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.plat-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 550; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.plat-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.plat-chip.on { border-color: var(--accent); background: var(--surface-2); color: var(--ink); }
.plat-chip:not(.on) .dot { opacity: .35; }
.plat-chip[aria-disabled="true"] { cursor: default; }
.plat-chip .plat-check { font-size: 13px; color: var(--ink-2); }
.plat-chip.on .plat-check { color: var(--accent); font-weight: 700; }
.plat-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Growth at a glance (corner mini chart) ---------- */
.minimap {
  position: fixed; right: 20px; bottom: 104px; z-index: 15; width: 264px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16); overflow: hidden;
}
.minimap[hidden] { display: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 0 14px; }
.mm-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.mm-title strong { color: var(--ink); }
.mm-btns { display: flex; gap: 2px; }
.mm-btns button { white-space: nowrap; border: 0; background: none; padding: 4px 7px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mm-btns button:hover { background: var(--surface-2); color: var(--ink); }
.mm-btns button:focus-visible, .mm-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.mm-open { display: block; width: 100%; border: 0; background: none; padding: 4px 14px 12px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.mm-open svg { display: block; width: 100%; height: auto; overflow: visible; }
.mm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mm-legend b { color: var(--ink); font-weight: 650; }
.mm-delta { font-size: 11.5px; font-weight: 700; margin-left: 4px; }
.mm-delta.up { color: var(--good-ink); }
.mm-delta.down { color: var(--bad-ink); }
.mm-delta.flat { color: var(--muted); }
.mm-empty { margin: 0; padding: 8px 14px 14px; font-size: 13px; color: var(--ink-2); }
.chart-switch { margin: 2px 0 10px; }
.chart-empty { margin: 24px 0; padding: 22px; text-align: center; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 14.5px; }
.minimap.min { width: auto; border-radius: 999px; }
.minimap.min .mm-open { padding: 9px 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.minimap.min .mm-open .up { color: var(--good-ink); }
.minimap.min .mm-open .down { color: var(--bad-ink); }

/* ---------- Cards & layout ---------- */
.panel { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); } /* one column that may shrink to the screen */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; } /* 1, 2 or 3 platforms */
.grid-3:has(> :only-child) { grid-template-columns: minmax(0, 620px); } /* a single card doesn't need the whole width */

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi .label { font-size: 13px; color: var(--ink-2); }
.kpi .value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin: 4px 0 2px; }
.kpi .note { font-size: 13px; color: var(--muted); }
.kpi .note .up { color: var(--good-ink); font-weight: 600; }

/* Legend */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Chart */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--font-sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .end-label { fill: var(--ink); font-weight: 600; }
.chart .end-value { fill: var(--ink-2); }

/* Horizontal bar rows */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; }
.bar-row.wide { grid-template-columns: 150px 1fr auto; }
.pb-header .badge { margin-left: 0; }
.bar-row .name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bar-row .val { font-size: 14px; font-weight: 600; text-align: right; min-width: 56px; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 12px; border-radius: 4px; background: var(--bar-track); }
.fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; min-width: 2px; }
.bench-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--grid); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
td .pname { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Focus ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.hero h1 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 6px; }
.hero p { color: var(--ink-2); max-width: 640px; }
.btn { border: 1px solid var(--border); background: var(--surface-2); padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--axis); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.focus-card { display: flex; flex-direction: column; gap: 14px; }
.fc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rank { font-size: 13px; font-weight: 700; color: var(--muted); }
.pname { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; }
.badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-double { background: var(--good-bg); color: var(--good-ink); }
.badge-maintain { background: var(--neutral-bg); color: var(--ink-2); }
.badge-none { background: var(--neutral-bg); color: var(--muted); }
.badge-deprioritize { background: var(--bad-bg); color: var(--bad-ink); }
.score { display: flex; align-items: baseline; gap: 8px; }
.score-num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.score-of { font-size: 13px; color: var(--muted); }

.components { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.components li { display: grid; grid-template-columns: 118px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.components .num { text-align: right; color: var(--ink); font-weight: 600; }
.mini { height: 6px; border-radius: 3px; background: var(--bar-track); overflow: hidden; }
.mini i { display: block; height: 100%; border-radius: 3px; background: var(--bar); }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.reasons li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.reasons .ic { font-weight: 800; text-align: center; }
.reasons .good .ic { color: var(--good-ink); }
.reasons .bad .ic { color: var(--bad-ink); }
.reasons .neutral .ic { color: var(--muted); }
.link-btn { margin-top: auto; align-self: flex-start; border: 0; background: none; padding: 0; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--axis); }
.link-btn:hover { text-decoration-color: var(--ink); }

.split-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hours-input { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hours-input input { width: 64px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; text-align: right; }
.stack { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; }
.stack > div { height: 100%; }
.stack > div:first-child { border-radius: 6px 0 0 6px; }
.stack > div:last-child { border-radius: 0 6px 6px 0; }
.split-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.split-legend .item { display: flex; gap: 10px; align-items: flex-start; }
.split-legend .dot { margin-top: 6px; }
.split-legend .h { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.split-legend .s { font-size: 13px; color: var(--ink-2); }

details.how { font-size: 14px; color: var(--ink-2); }
details.how summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.how ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- Playbook ---------- */
.pb-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-switch button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.pb-switch button.on { border-color: var(--ink); font-weight: 650; }
.pb-switch .mini-badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }

.pb-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pb-header h1 { font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.pb-header .dot { width: 14px; height: 14px; }
.pb-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.pb-stats .label { font-size: 12px; color: var(--muted); }
.pb-stats .v { font-size: 18px; font-weight: 650; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: 14.5px; }
.checklist input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--ink); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

.fmt-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.fmt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fmt-row:first-child { padding-top: 0; }
.fmt-top { display: flex; align-items: center; gap: 8px; }
.fmt-top .n { font-weight: 600; font-size: 14px; }
.fmt-top .v { margin-left: auto; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.fmt-meta { font-size: 12.5px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.tag-more { background: var(--good-bg); color: var(--good-ink); }
.tag-keep { background: var(--neutral-bg); color: var(--ink-2); }
.tag-less { background: var(--bad-bg); color: var(--bad-ink); }
.tag-test { background: transparent; color: var(--muted); border: 1px dashed var(--axis); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; margin-top: 6px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.day .col { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; background: var(--bar-track); min-height: 2px; }
.day .lbl { font-size: 12px; color: var(--muted); }
.day.best .lbl { color: var(--ink); font-weight: 700; }
.when-summary { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.when-summary strong { color: var(--ink); }

.tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- Free-plan locks ---------- */
.lk { display: inline-flex; margin-left: 5px; color: var(--muted); vertical-align: -1px; }
.lock-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px; border: 1px dashed var(--axis); border-radius: 14px; background: var(--surface);
}
.lock-card .lock-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.lock-card > div:nth-child(2) { flex: 1; min-width: 200px; }
.lock-card p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.locked-item { filter: blur(3.5px); user-select: none; pointer-events: none; }
.lock-inline {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2);
}
.lock-inline .lk { margin-left: 0; }
.lock-inline .btn { margin-left: auto; padding: 5px 10px; font-size: 13px; }

/* ---------- Pricing ---------- */
.pricing-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pricing-head h1 { font-size: 26px; letter-spacing: -0.02em; }
.pricing-head p { color: var(--ink-2); margin-top: 4px; }
.save { font-size: 11px; font-weight: 700; color: var(--good-ink); margin-left: 4px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 980px; width: 100%; margin: 0 auto; }
/* Four plans: two by two, or one row on wide screens (never three plus a lonely fourth) */
.price-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
@media (min-width: 1180px) { .price-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1160px; } } /* side by side on laptop screens and up */
@media (max-width: 560px) { .price-grid.four { grid-template-columns: 1fr; } }
/* All four cards are the same size: every row is as tall as the tallest card (grid-auto-rows: 1fr), the name and price
   sit at the same height in each card (a hidden tag keeps the space when a card has none, taglines get room for two lines),
   and each Choose button is pinned to the bottom */
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-grid.four { grid-auto-rows: 1fr; }
.price-card .tagline { min-height: calc(2lh); }
.price-tag.empty { visibility: hidden; }
/* Which tabs a plan opens: ticked chips for the ones you get, faint locked chips for the ones you don't */
.tab-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tab-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; }
.tab-chip.on { background: var(--good-bg); color: var(--good-ink); }
.tab-chip.off { background: transparent; color: var(--muted); border: 1px dashed var(--border); opacity: .75; }
.tab-chip svg { width: 9px; height: 9px; }

/* A tab this plan doesn't open: a lock in the tab bar, and a page that says what the tab does and which plan opens it */
.sidenav button { position: relative; }
.sidenav button.locked { opacity: .62; }
.sidenav button.locked.on { opacity: 1; }
.nav-lock { position: absolute; top: 4px; right: 6px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-style: normal; }
.nav-lock svg { width: 8px; height: 8px; }
.tab-lock { max-width: 640px; margin: 24px auto; padding: 32px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.tab-lock-ic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); color: var(--ink); margin-bottom: 4px; }
.tab-lock-ic > svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-lock-ic .lk { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--page); }
.tab-lock-ic .lk svg { width: 11px; height: 11px; }
.tab-lock h1 { font-size: 26px; letter-spacing: -0.02em; }
.tab-lock .sub { max-width: 520px; color: var(--ink-2); }
.tab-lock-list { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 14.5px; }
.tab-lock-list li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.tab-lock-list li::before { content: "✓"; color: var(--good-ink); font-weight: 800; }
.tab-lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.tab-lock-note { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .tab-lock { padding: 24px 18px; margin: 8px auto; } .tab-lock h1 { font-size: 22px; } }
.price-meta { display: grid; gap: 6px; align-content: start; }
.plan-elsewhere { max-width: 780px; margin: 0 auto 14px; text-align: center; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { /* one column on phones: each card only as tall as it needs, with no space held for lining up */
  .price-grid.four { grid-auto-rows: auto; }
  .price-tag.empty { display: none; }
  .price-card .tagline { min-height: 0; }
}
.price-card.featured { border: 2px solid var(--ink); }
.price-card .tagline { margin-top: 2px; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.price-tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); }
.price-card.featured .price-tag { background: var(--ink); color: var(--page); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .from { font-size: 13px; color: var(--muted); }
.price .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price .per { color: var(--muted); font-size: 14px; }
.price .was { color: var(--muted); font-size: 16px; }
.price-note { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.promo-note { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--good-ink); background: var(--good-bg); padding: 3px 8px; border-radius: 8px; }
.feat { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.feat li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
.feat li::before { content: "✓"; color: var(--good-ink); font-weight: 800; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card .btn:disabled { opacity: 0.55; cursor: default; }
.promo-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.promo-form input {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; text-transform: uppercase; width: 190px;
}
.promo-msg { margin-top: 10px; font-size: 14px; }
.promo-msg.ok { color: var(--good-ink); }
.promo-msg.err { color: var(--bad-ink); }
.promo-msg .link-btn { font-size: 14px; margin-left: 4px; }

/* ---------- Trends, forecast and best posts ---------- */
.kpi .note.change { margin-top: 2px; }
.delta { font-weight: 650; font-size: 13px; white-space: nowrap; }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--bad-ink); }
.delta.flat, .delta.neutral { color: var(--ink-2); }
.delta-sfx { color: var(--muted); font-size: 12.5px; }
.score-change { margin-top: -6px; }
.reasons.spacious { gap: 12px; font-size: 15px; }

/* "Why we say this" under each recommendation: small and quiet, with a confidence chip */
.why { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-weight: 400; text-wrap: pretty; }
.why-k { color: var(--ink-2); font-weight: 650; }
.conf { display: inline-block; margin-left: 2px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.conf-high { background: var(--good-bg); color: var(--good-ink); }
.conf-medium { background: var(--neutral-bg); color: var(--ink-2); }
.conf-low { background: var(--bad-bg); color: var(--bad-ink); }
.checklist li > .why { margin-left: 30px; }
.tips li > .why { margin-top: 4px; }
.reasons li .why { margin-top: 4px; }
.pb-why { flex-basis: 100%; }
.pb-why .why { margin-top: 0; }
.why-list { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grid); }
.why-list .why { margin: 0; }
.fmt-row .why { margin-top: 4px; }
.sub-head { font-size: 14px; margin: 18px 0 8px; }
.forecast-line { font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.forecast-line strong { font-size: 24px; }
.forecast .sub { margin: 6px 0 4px; }
.forecast-chart { margin: 10px 0 6px; }
.forecast-table td small.range, .forecast-table th small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.forecast-table tr.total-row td { font-weight: 700; border-top: 2px solid var(--axis); }
.rhythm { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.rhythm li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.rhythm .dot { margin-top: 6px; }
.fine-print { margin-top: 16px; font-size: 12.5px; color: var(--muted); max-width: 760px; }
.best-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; }
.post-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--grid); }
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-row .rank { color: var(--muted); font-weight: 700; font-size: 13px; }
.post-main { min-width: 0; }
.post-title { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.post-title { text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 3px; }
a.post-title:hover { text-decoration-color: var(--ink); }
.post-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.post-val { text-align: right; font-size: 14px; white-space: nowrap; }
.post-val .mult { display: block; font-size: 12px; font-weight: 650; color: var(--good-ink); }
.post-val .mult.muted { color: var(--muted); font-weight: 500; }
/* Overview: this week against the usual week */
.week-row { grid-template-columns: 110px 1fr; }
.week-none { font-size: 13px; color: var(--muted); }
.week-vs { margin: -2px 0 6px 122px; font-size: 12.5px; color: var(--muted); }
details.weakest { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grid); }
details.weakest .post-list { margin-top: 12px; }
@media (max-width: 860px) { .best-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Overview: the chart is the main attraction ---------- */
.hero-chart { padding: 24px 24px 16px; }
.hero-chart h2 { font-size: 21px; letter-spacing: -0.02em; }
.kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .kpis.kpis-3 { grid-template-columns: 1fr; } }
.top-grid { gap: 32px; }
.post-val .share { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.chart-empty.small { margin: 8px 0; padding: 16px; font-size: 14px; }

/* ---------- Results: tracked links ---------- */
.link-btn.inline { display: inline; margin: 0 0 0 4px; font-size: inherit; }
.local-note { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--neutral-bg); font-size: 13.5px; color: var(--ink-2); }
.made { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--good-bg); color: var(--ink); font-size: 14px; display: grid; gap: 8px; }
.made-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.made-row code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; }
.made-row code { padding: 4px 8px; border-radius: 8px; background: var(--surface); }
.link-form { display: grid; gap: 14px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--grid); }
.link-form .form-row { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
.link-form .f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; }
.link-form input[type="text"], .link-form input:not([type]), .link-form input[name="url"], .link-form select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--page); border: 1px solid var(--axis); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.link-form input:focus-visible, .link-form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.link-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); font-weight: 400; }
.link-form .check input { margin-top: 3px; accent-color: var(--ink); }
.form-error { padding: 9px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-ink); font-size: 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.links-table td.actions { text-align: right; white-space: nowrap; }
.links-table .chip-btn { padding: 0 0 0 10px; }
.chip-btn.danger { color: var(--bad-ink); }
.links-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 600px) { .link-form .form-row { grid-template-columns: 1fr; } }

/* ---------- Settings ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 8px; }
.theme-tile { display: grid; gap: 8px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.theme-tile:hover { border-color: var(--axis); }
.theme-tile.on { border: 2px solid var(--ink); padding: 13px; }
.theme-tile:focus-visible, .seg button:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile-preview { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); }
.tile-preview i { display: block; flex: none; border-radius: 50%; }
.theme-tile strong { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.tile-check { margin-left: auto; font-size: 13px; }
.tile-desc { font-size: 13px; color: var(--ink-2); }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--grid); }
.theme-grid + .setting-row { margin-top: 12px; }
.setting-row .lbl strong { font-size: 15px; }
.setting-row .sub { margin-top: 2px; }
.btn { display: inline-block; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* Compact spacing (Settings > Spacing) */
:root[data-density="compact"] body { font-size: 14px; }
:root[data-density="compact"] .card { padding: 14px; }
:root[data-density="compact"] .panel { gap: 10px; }
:root[data-density="compact"] .kpis, :root[data-density="compact"] .grid-2, :root[data-density="compact"] .grid-3, :root[data-density="compact"] .price-grid { gap: 10px; }
:root[data-density="compact"] .kpi .value { font-size: 24px; }
:root[data-density="compact"] th, :root[data-density="compact"] td { padding: 7px 10px; }
:root[data-density="compact"] .setting-row { padding: 9px 0; }
:root[data-density="compact"] .sidenav button { padding: 6px 10px; }

.footnote { margin-top: 28px; font-size: 12.5px; color: var(--muted); max-width: 760px; }

/* ---------- Tooltip ---------- */
.tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14); max-width: 280px;
}
.tooltip .tt-title { font-weight: 650; margin-bottom: 4px; }
.tooltip .tt-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.tooltip .tt-row .dot { width: 8px; height: 8px; }
.tooltip .tt-row b { font-weight: 650; }

/* ---------- Responsive ---------- */
/* Narrower windows: the logo gets a row of its own in the middle, controls sit below it */
@media (max-width: 1220px) {
  .topbar { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "left right"; row-gap: 10px; }
  .topbar .brand { grid-area: brand; }
  .tb-left { grid-area: left; }
  .tb-right { grid-area: right; }
}
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
/* Phones and narrow windows: the side navigation moves to a bar along the bottom */
@media (max-width: 860px) {
  .shell { display: block; padding: 0; }
  .shell .wrap { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
  .sidenav {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; transform: none; max-width: none;
    flex-direction: row; justify-content: space-around; gap: 0;
    margin: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-radius: 0; border-width: 1px 0 0 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }
  .sidenav button { flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 1px; font-size: 10.5px; text-align: center; border-radius: 11px; }
  .sidenav button svg { width: 22px; height: 22px; }
  .minimap { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 224px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px 32px; }
  /* Phones: the logo on its own row, then all the controls flowing and centered underneath */
  .topbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 10px 14px; position: static; }
  .topbar .brand { order: -1; width: 100%; justify-content: center; }
  .tb-left, .tb-right { display: contents; }
  .seg button { white-space: nowrap; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .split-legend { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 90px 1fr auto; }
  .pb-stats { margin-left: 0; }
}
@media (max-width: 440px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .value { font-size: 22px; }
  .card { padding: 16px; }
}

/* Password box with a Show / Hide button inside it */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 64px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Monthly goal (Overview, Business plan) */
.goal-nums { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.goal-nums strong { font-size: 30px; letter-spacing: -0.02em; color: var(--ink); margin-right: 2px; }
.goal-bar { position: relative; height: 12px; border-radius: 6px; background: var(--bar-track); margin: 12px 0 10px; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--accent); }
.goal-bar i.done, .goal-bar i.on-track { background: var(--good-ink); }
.goal-bar i.behind { background: var(--bad-ink, #c0392b); }
.goal-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: 0.55; }
.goal-say { font-size: 14.5px; color: var(--ink-2); }
.goal-say strong { color: var(--ink); }
.goal-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 4px 0 8px; }
.goal-form .f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; }
.goal-form input { width: 160px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.goal-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* QR codes (Results tab) */
.qr-panel { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.qr-panel h3 { font-size: 16px; margin: 0 0 2px; }
.qr-body { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.qr-img { width: 200px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.qr-img svg { display: block; width: 100%; height: auto; }
.qr-info { flex: 1; min-width: 220px; display: grid; gap: 8px; align-content: start; }
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media print {
  body.printing-qr * { visibility: hidden !important; }
  body.printing-qr .qr-img, body.printing-qr .qr-img * { visibility: visible !important; }
  body.printing-qr .qr-img { position: fixed; top: 20mm; left: 50%; transform: translateX(-50%); width: 80mm; }
}
.link-form .form-hint { margin-top: -6px; font-weight: 400; }
.kind-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--good-bg); color: var(--ink); font-size: 11.5px; font-weight: 650; }

/* QR kit: the form in the QR panel, and the printed page (US Letter) */
.kit-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grid); display: grid; gap: 8px; }
.kit-box h4 { font-size: 14.5px; margin: 0; }
.kit-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.kit-row .f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; flex: 1; min-width: 200px; max-width: 360px; }
.kit-row input { padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
#print-kit { display: none; }
@media print {
  @page { size: letter portrait; margin: 0.4in; }
  body.printing-kit > *:not(#print-kit) { display: none !important; }
  body.printing-kit { background: #fff !important; }
  body.printing-kit #print-kit { display: block; color: #000; font-family: var(--font-sans); }
  #print-kit * { color: #000 !important; }
  #print-kit svg { display: block; width: 100%; height: auto; }
  #print-kit .kit-top { display: grid; grid-template-columns: 4.1in 3.4in; gap: 0.2in; height: 3.7in; }
  #print-kit .kit-sign, #print-kit .kit-desk { border: 1px dashed #999; padding: 0.15in; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.06in; break-inside: avoid; }
  #print-kit .kit-sign .kit-qr { width: 2.4in; }
  #print-kit .kit-desk .kit-qr { width: 2.1in; }
  #print-kit .kit-big { font-size: 20pt; font-weight: 750; line-height: 1.1; letter-spacing: -0.01em; }
  #print-kit .kit-name { font-size: 11pt; font-weight: 650; }
  #print-kit .kit-sub { font-size: 9pt; }
  #print-kit .kit-mark { font-size: 7pt; opacity: 0.75; margin-top: 0.03in; }
  #print-kit .kit-cards { display: grid; grid-template-columns: 3.5in 3.5in; grid-auto-rows: 2in; gap: 0.1in 0.2in; margin-top: 0.2in; justify-content: center; }
  #print-kit .kit-card { border: 1px dashed #999; display: flex; align-items: center; gap: 0.12in; padding: 0.15in; break-inside: avoid; }
  #print-kit .kit-card .kit-qr { width: 1.55in; flex: none; }
  #print-kit .kit-card .kit-text { display: grid; gap: 0.04in; }
  #print-kit .kit-card .kit-head { font-size: 12pt; font-weight: 720; line-height: 1.15; }
}

/* Pricing: framed around what you get, not what you pay */
.pricing-hero { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 18px 12px 6px; }
.pricing-hero h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -0.025em; max-width: 640px; }
.pricing-hero p { color: var(--ink-2); max-width: 560px; font-size: 15.5px; }
.pricing-hero .early-note { font-size: 13px; color: var(--muted); }
.price-card.featured { border: 2px solid var(--ink); box-shadow: 0 14px 40px color-mix(in srgb, var(--ink) 12%, transparent); }
.price-card.current { outline: 1px dashed var(--axis); outline-offset: 3px; }
.worth { display: grid; gap: 10px; }
.worth-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.worth-q label { font-weight: 650; font-size: 15.5px; }
.worth-field { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; background: var(--surface-2); }
.worth-field span { color: var(--muted); font-weight: 650; }
.worth-field input { width: 90px; padding: 9px 2px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; outline: none; }
.worth-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.worth-out { color: var(--ink-2); font-size: 15px; }
.worth-out strong { color: var(--ink); }
.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; color: var(--ink-2); }
.trust-row li::before { content: "✓"; color: var(--good-ink); font-weight: 800; margin-right: 7px; }
details.promo { text-align: center; font-size: 14px; }
details.promo summary { cursor: pointer; color: var(--muted); display: inline-block; }
details.promo summary:hover { color: var(--ink); }
details.promo .promo-form { justify-content: center; margin-top: 10px; }

/* The recommended plan stands a little forward of the others */
/* (the recommended card used to sit 8px higher; it now lines up with the others and stands out by its border) */

/* Playbook: "More tips for your posts" (Business plan) */
details.more-tips { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
details.more-tips > summary { cursor: pointer; font-weight: 650; font-size: 14.5px; }
details.more-tips h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
details.more-tips .tips { margin-top: 6px; }
.more-tips-lock { margin-top: 14px; }

/* Overview: the platform names under the chart are buttons that open "what works on this platform" */
.legend.legend-pick { gap: 8px; }
.chart-legend { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grid, var(--border)); }
.legend-btn { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.legend-btn:hover { border-color: var(--axis); color: var(--ink); }
.legend-btn.static { cursor: default; }
.legend-btn.static:hover { border-color: var(--border); color: var(--ink-2); }
.legend-btn.on { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.legend-btn .caret { font-size: 10px; opacity: .6; transition: transform .2s ease; }
.legend-btn.on .caret { transform: rotate(180deg); opacity: 1; }
.legend-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.format-panel { margin-top: 0; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 4px; }
.fmt-h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.fmt-lead { font-size: 17px; margin: 0 0 10px; }
.fmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fmt-row { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 13.5px; }
.fmt-row .fmt-name { font-weight: 650; color: var(--ink); }
.fmt-bar { display: block; height: 7px; border-radius: 4px; background: var(--bar-track); overflow: hidden; }
.fmt-bar i { display: block; height: 100%; border-radius: 4px; background: var(--axis); }
.fmt-row.best .fmt-bar i { background: var(--good-ink); }
.fmt-val { color: var(--ink-2); }
.fmt-val small { margin-left: 8px; color: var(--muted); }
.fmt-thin { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- Planner ---------- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.plan-head h1 { font-size: 26px; letter-spacing: -0.02em; margin: 2px 0 6px; }
.plan-head-text p { color: var(--ink-2); font-size: 14.5px; max-width: 600px; }
.plan-head-side { display: grid; gap: 12px; min-width: min(300px, 100%); }
.plan-weeks button { line-height: 1.25; padding: 6px 14px; }
.plan-weeks button small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.plan-progress-nums { font-size: 13.5px; color: var(--ink-2); }
.plan-progress-nums strong { font-size: 20px; color: var(--ink); margin-right: 2px; }
.plan-progress .goal-bar { height: 8px; margin: 6px 0 0; }
.plan-progress .goal-bar i { background: var(--ink); }
.plan-progress .goal-bar i.done { background: var(--good-ink); }
.cal-card { padding: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-day { display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day.past .slot:not(.done) { opacity: .8; }
.cal-head { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-head b { font-size: 18px; letter-spacing: 0; color: var(--ink); }
.cal-head em { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--page); font-style: normal; font-size: 10.5px; letter-spacing: 0; text-transform: none; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 9px; transition: opacity .2s ease; }
.slot label { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 9px; cursor: pointer; }
.slot input { width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--ink); }
.slot-body { display: grid; gap: 1px; min-width: 0; }
.slot-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0 5px; font-size: 11.5px; color: var(--ink-2); }
.slot-top .dot { width: 7px; height: 7px; }
.slot-time { color: var(--muted); }
.slot-time::before { content: "· "; }
.slot b { font-size: 13.5px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.slot-idea { font-size: 12px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.slot.own { border-style: dashed; border-left-style: solid; }
.slot.own label { padding-right: 22px; }
.slot.done { opacity: .62; }
.slot.done b, .slot.done .slot-idea { text-decoration: line-through; }
.slot-x { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 15px; line-height: 1.2; cursor: pointer; }
.slot-x:hover { background: var(--surface-2); color: var(--ink); }
.cal-rest { margin: 2px 0; font-size: 12.5px; color: var(--muted); }
.cal-add { margin-top: auto; padding: 6px; border: 1px dashed var(--axis); border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.cal-add:hover { border-color: var(--ink-2); color: var(--ink); }
.slot-form { display: grid; gap: 6px; margin-top: auto; }
.slot-form select, .slot-form input { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; }
.slot-form .form-error { padding: 6px 8px; font-size: 12px; }
.slot-form-btns { display: flex; gap: 6px; }
.slot-form-btns .btn { flex: 1; padding: 5px 8px; font-size: 12.5px; }
.time-rows { display: grid; gap: 16px; }
.time-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 14px; }
.time-track { position: relative; height: 10px; border-radius: 5px; background: var(--bar-track); }
.time-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.time-track i.planned { opacity: .35; }
.time-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.time-val { text-align: right; font-weight: 650; }
.time-val small { font-weight: 500; color: var(--muted); }
.plan-move { margin-bottom: 10px; font-size: 15.5px; font-weight: 600; }
.section-title { margin: 14px 0 -4px; font-size: 20px; letter-spacing: -0.01em; }
.pb-title { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -0.02em; }
.pb-title .dot { width: 14px; height: 14px; }
.more-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.plat-more { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.plat-more h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 18px; }
.plat-more .sub { max-width: 660px; }
.plat-more-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) { .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .cal { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .time-row { grid-template-columns: 86px minmax(0, 1fr) 84px; gap: 8px; font-size: 13px; }
}

/* ---------- Report: one page with everything, also printable ---------- */
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.report-head h1 { margin: 2px 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.report-summary h2 { margin-bottom: 6px; font-size: 18px; }
.report-lead { margin-bottom: 10px; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.report-table th, .report-table td { white-space: nowrap; }
.report-table .badge { margin-left: 6px; }
.fmt-table small { display: block; font-size: 12px; color: var(--muted); }
.report-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 10px; }
.report-nums span { display: block; font-size: 12.5px; color: var(--muted); }
.report-nums b { font-size: 24px; letter-spacing: -0.02em; }
.report-nums small { display: block; font-size: 12px; color: var(--muted); }
.report-plan { list-style: none; margin: 0; padding: 0; display: grid; }
.report-plan li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--grid); }
.report-plan li:first-child { border-top: 0; }
.rp-day { font-size: 13.5px; font-weight: 650; }
.rp-posts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.rp-post { display: inline-flex; align-items: center; gap: 6px; }
.rp-post small { color: var(--muted); }
.report-foot { padding: 4px 0 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
@media print {
  body.printing-report {
    --page: #fff; --surface: #fff; --surface-2: #f3f3f1; --ink: #111; --ink-2: #444; --muted: #777;
    --grid: #e3e3de; --axis: #c8c8c0; --border: rgba(0, 0, 0, 0.14); --bar-track: #ececea;
    --good-ink: #1a7a1a; --good-bg: #e6f2e6; --bad-ink: #a8431c; --bad-bg: #fbeae2; --neutral-bg: #eeeeea;
    background: #fff !important; color: #111;
  }
  body.printing-report .topbar, body.printing-report .sidenav, body.printing-report .minimap, body.printing-report #banner,
  body.printing-report .footnote, body.printing-report .panel:not(#report), body.printing-report [data-print-report],
  body.printing-report .tooltip, body.printing-report #report .link-btn, body.printing-report .goal-pick { display: none !important; }
  body.printing-report #report { display: grid !important; animation: none !important; }
  body.printing-report .shell, body.printing-report .shell .wrap { max-width: none; padding: 0; }
  body.printing-report .card { break-inside: avoid; box-shadow: none; }
  body.printing-report .table-wrap { overflow: visible; }
}

/* How the week fits the owner's hours (Planner) */
.fit-meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); }
.fit-meter .goal-bar { margin: 0; }
.fit-meter strong { color: var(--ink); }
.fit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-h { font-size: 13px; font-weight: 600; margin: 0 0 8px; letter-spacing: 0.01em; }
.fit-cols > div > .fit-h:not(:first-child) { margin-top: 16px; }
.fit-in, .fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.fit-in li { display: flex; gap: 8px; align-items: baseline; }
.fit-list li { padding-left: 12px; border-left: 2px solid var(--border); }
.fit-h.drop + .fit-list li { border-left-color: var(--bad-ink); }
.fit-h.swap + .fit-list li { border-left-color: var(--muted); }
.fit-card > .why { margin-top: 14px; }
@media (max-width: 720px) { .fit-cols { grid-template-columns: 1fr; } }

/* Free plan: "What paid plans add here" on Overview (a plain list, not locked copies of the paid cards) */
.paid-extras .extras-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.paid-extras .sub { margin-bottom: 14px; }

/* Switching Business / Influencer on Pricing: the new cards fade up quickly, one after another */
@keyframes price-swap { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .price-grid.swap-in > .price-card { animation: price-swap .26s cubic-bezier(.2, .7, .3, 1) backwards; }
  .price-grid.swap-in > .price-card:nth-child(2) { animation-delay: .035s; }
  .price-grid.swap-in > .price-card:nth-child(3) { animation-delay: .07s; }
  .price-grid.swap-in > .price-card:nth-child(4) { animation-delay: .105s; }
}

/* Most popular plan (Business, or Creator Pro for creators): outlined and lit in green so it stands out, as on the homepage */
.price-tags { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.price-card.popular { border: 2px solid var(--good-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--good-ink) 10%, var(--surface)), var(--surface) 65%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-ink) 14%, transparent), 0 14px 40px color-mix(in srgb, var(--good-ink) 20%, transparent); }
.price-card .price-tag.pop { background: var(--good-ink); color: var(--page); }
.price-card.popular .amt { color: var(--good-ink); }

/* Overview for a signed-in account with nothing connected yet: what to log in to, no sample numbers */
.connect-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 10px; }
.connect-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.connect-item .name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.connect-act { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.connect-bad { color: var(--bad-ink); }

/* ---------- Focus Score gauge (half circle: Pull back / Maintain / Double down zones, dark arc up to the score) ---------- */
.gauge { display: grid; justify-items: center; gap: 6px; }
.gauge svg { width: 100%; max-width: 230px; height: auto; overflow: visible; }
.gauge .g-zone, .gauge .g-value { fill: none; stroke-width: 16; }
.gauge .g-zone { stroke-linecap: butt; }
.gauge .g-bad { stroke: var(--bad-bg); }
.gauge .g-neutral { stroke: var(--neutral-bg); }
.gauge .g-good { stroke: var(--good-bg); }
.gauge .g-value { stroke-linecap: round; stroke: var(--ink-2); }
.gauge.g-good .g-value { stroke: var(--good-ink); }
.gauge.g-bad .g-value { stroke: var(--bad-ink); }
.gauge .g-knob { transform-origin: 100px 108px; transform-box: view-box; }
.gauge .g-knob circle { fill: var(--surface); stroke: var(--ink-2); stroke-width: 3; }
.gauge.g-good .g-knob circle { stroke: var(--good-ink); }
.gauge.g-bad .g-knob circle { stroke: var(--bad-ink); }
.gauge .g-tick { font-size: 10px; fill: var(--muted); font-weight: 600; }
.gauge .g-num { font-size: 40px; font-weight: 750; letter-spacing: -0.03em; fill: var(--ink); }
.gauge .g-of { font-size: 11px; fill: var(--muted); }
.gauge.is-empty .g-zone { opacity: .55; }
.gauge.is-empty .g-num { fill: var(--muted); }
.gauge-verdict { margin: 0; text-align: center; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; max-width: 30ch; }
.gauge-verdict strong { display: block; font-size: 15px; color: var(--ink); }
.gauge-verdict.good strong { color: var(--good-ink); }
.gauge-verdict.bad strong { color: var(--bad-ink); }
@media (prefers-reduced-motion: no-preference) {
  .gauge .g-value { animation: gauge-sweep 1s cubic-bezier(.3, .7, .2, 1) both; }
  .gauge .g-knob { animation: gauge-turn 1s cubic-bezier(.3, .7, .2, 1) both; }
}
@keyframes gauge-sweep { from { stroke-dasharray: 0 100; } }
@keyframes gauge-turn { from { transform: rotate(0deg); } }

/* Arriving from setup or sign-up fades in instead of flashing (the other pages opt in from landing.css) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* Corner chart on Overview: glides in once the full chart is scrolled past, and out again on the way back up */
.minimap { transform-origin: 100% 100%; transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0s; }
.minimap.mm-away { opacity: 0; transform: translateY(18px) scale(.94); visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .3s ease, visibility 0s linear .3s; }
@media (prefers-reduced-motion: reduce) { .minimap, .minimap.mm-away { transition: none; } }

/* Coming into the app from sign-up, setup or the home page: the old page eases out, the app eases in, and the
   dashboard itself rises in once it's drawn for the right person (app.js adds .arriving, then .arrived) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-old(start-form), ::view-transition-old(start-stage) { animation: pyx-leave .3s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: pyx-enter .45s cubic-bezier(.2, .7, .2, 1) .1s both; }
  html.arriving #banner, html.arriving main, html.arriving .footnote { opacity: 0; transform: translateY(14px); }
  html.arrived #banner, html.arrived main, html.arrived .footnote { transition: opacity .5s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); }
  html.arrived main { transition-delay: .07s; }
  html.arrived .footnote { transition-delay: .14s; }
}
@keyframes pyx-leave { to { opacity: 0; transform: scale(.985); } }
@keyframes pyx-enter { from { opacity: 0; } }
