/* Layout: mobile-first app. Sticky logo bar on top, fixed tab bar at the bottom on phones;
   from 900px the tab bar moves up under the logo bar and content sits in a 1100px column.
   Brand: The Sauna Corner guidelines (Cream / Sand / Ink / Charcoal / Marigold, Young Serif + Figtree, 24px cards, pill buttons). */
/* Dark-first by choice: Ink background, Charcoal cards, Cream headings, Stone body text, Marigold for actions. */
:root {
  --bg: #211E22;          /* Ink */
  --alt: #2E2A2E;         /* Charcoal: pinned posts, tiles, chips */
  --surface: #2A262A;     /* cards, a step between Ink and Charcoal */
  --head: #FBF4EC;        /* Cream */
  --text: #CFC4BA;        /* Stone */
  --muted: #A3978F;
  --line: #3E383D;
  --link: #F6B23A;        /* Marigold */
  --marigold: #F6B23A;
  --rose: #EFA3B2;
  --coral: #F19264;
  --on-accent: #211E22;   /* text on rose, coral, marigold is always Ink */
  --cream: #FBF4EC;
  --ink: #211E22;
  --nav-bg: #141413;
  --nav-fg: #CFC4BA;
  --nav-on: #F6B23A;
  --danger: #F08A80;
  --gradient: linear-gradient(120deg, #EFA3B2 0%, #F19264 55%, #F6B23A 100%);
  --leaf-opacity: 0.12;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --card: 24px;
  --field: 14px;
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--head); line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 18px; }
.eyebrow { font: 700 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--link); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 100px; border: 1.5px solid var(--head); background: transparent; color: var(--head); font: 700 15px/1.2 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--alt); }
.btn.primary { background: var(--marigold); border-color: var(--marigold); color: var(--on-accent); }
.btn.primary:hover { background: var(--bg); border-color: var(--head); color: var(--head); }
.btn.slim { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; color: var(--head); }
.field .hint { font-size: 13px; color: var(--muted); }
.input { width: 100%; min-height: 48px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--field); padding: 11px 14px; font-size: 16px; color: var(--head); }
.input:focus { border-color: var(--link); outline: none; }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; color: var(--head); }
.check input { width: 20px; height: 20px; accent-color: var(--marigold); }
.error { color: var(--danger); font-size: 14px; }

/* ---------- decorative leaves ---------- */
.leafy { position: relative; isolation: isolate; overflow: hidden; }
.leafy::before, .leafy::after { content: ""; position: absolute; z-index: -1; background: center / contain no-repeat; opacity: var(--leaf-opacity); pointer-events: none; }
.leafy::before { width: 260px; height: 280px; right: -70px; top: -60px; background-image: var(--leaf-a); transform: rotate(18deg); }
.leafy::after { width: 200px; height: 220px; left: -80px; bottom: -70px; background-image: var(--leaf-b); transform: rotate(-24deg); }

/* ---------- landing / sign in ---------- */
.landing { padding-block: 20px 48px; }
.landing-grid { display: grid; gap: 22px; }
.landing-grid .signin { order: 1; }
.landing-grid .landing-extra { order: 2; }
.hero { background: var(--gradient); color: var(--on-accent); border-radius: var(--card); padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.hero::before, .hero::after { opacity: 0.22; }
.hero .logo { width: 84px; height: auto; }
.hero h1 { color: var(--on-accent); font-size: clamp(38px, 9vw, 64px); line-height: 0.98; }
.hero .lede { font-size: 17px; max-width: 32em; color: var(--on-accent); }
.hero .eyebrow { color: var(--on-accent); }
.signin { background: var(--surface); border-radius: var(--card); padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
.signin h2 { font-size: 30px; }
.demo-hint { font-size: 14px; background: var(--alt); border-radius: var(--field); padding: 12px 14px; color: var(--head); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.figure { background: var(--alt); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.figure b { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--head); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure span { font-size: 13px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 1.5px solid var(--line); border-radius: 100px; padding: 5px 14px; font-size: 14px; background: var(--surface); color: var(--head); text-decoration: none; }
a.chip:hover { border-color: var(--link); }

/* ---------- app shell ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; color: var(--head); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: var(--on-accent); font: 700 15px var(--sans); flex: none; border: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
button.avatar { cursor: pointer; }

/* bottom tab bar on phones */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--nav-bg); padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.tabbar .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: none; color: var(--nav-fg); font: 600 11px/1.1 var(--sans); cursor: pointer; border-radius: 14px; }
.tabbar .tab svg { width: 24px; height: 24px; }
.tabbar .tab[aria-current="page"] { color: var(--nav-on); }
.tabbar .tab[data-desktop] { display: none; }
main { padding-block: 22px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 40px); }

.page-head { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font-size: clamp(32px, 7vw, 46px); }
.page-head p { max-width: 38em; }

.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 18px; padding: 2px 18px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 38px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 100px; padding: 6px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--head); }
.filter[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: var(--bg); }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--text); }
.card h3 { font-size: 22px; }
.card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
button.card { text-align: left; cursor: pointer; font: inherit; width: 100%; }
button.card:hover { border-color: var(--link); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 100px; background: var(--alt); color: var(--head); }
.tag.draft { background: var(--rose); color: var(--on-accent); }
.tag.pinned { background: var(--marigold); color: var(--on-accent); }

.video-frame { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; background: var(--alt); border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 12px; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.video-frame.has-media { padding: 0; }
.video-frame.poster { position: relative; border: 0; cursor: pointer; text-decoration: none; background: var(--gradient) center / cover no-repeat; color: var(--on-accent); }
.video-frame.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 20 19 / 35%), transparent 60%); pointer-events: none; }
.play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); color: var(--on-accent); position: relative; z-index: 1; box-shadow: 0 4px 18px rgb(0 0 0 / 30%); }
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-frame.poster:hover .play { transform: scale(1.06); }
.poster-note { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 1; font-size: 12px; font-weight: 700; color: var(--on-accent); }
.intro { margin: -6px 0 20px; background: var(--alt); border-radius: 18px; }
.intro summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px; font-weight: 700; color: var(--head); }
.intro summary::-webkit-details-marker { display: none; }
.intro summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--link); }
.intro[open] summary::after { content: "–"; }
.intro .prose { padding: 0 18px 18px; font-size: 15px; }
.lib-section { margin-bottom: 26px; }
.lib-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lib-tile { display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; min-height: 112px; padding: 20px; border-radius: var(--card); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.lib-tile:hover { border-color: var(--link); }
.lib-tile:hover .lib-go { color: var(--link); transform: translateX(2px); }
.lib-tile::before { width: 150px; height: 160px; right: -50px; top: -40px; }
.lib-tile::after { display: none; }
.lib-icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--gradient); color: var(--on-accent); }
.lib-icon svg { width: 26px; height: 26px; }
.lib-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; font-size: 15px; line-height: 1.45; }
.lib-text b { font: 400 23px/1.15 var(--serif); color: var(--head); }
.lib-count { font: 700 12px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-top: 4px; }
.lib-go { flex: none; color: var(--muted); }
.lib-go svg { width: 22px; height: 22px; display: block; }
.private-note { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--link); margin-top: 4px; }
.private-note svg { width: 18px; height: 18px; flex: none; }
.new-note { margin-bottom: 22px; }
.note-form { margin-bottom: 26px; max-width: 760px; }
.kind-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-chip input { position: absolute; opacity: 0; pointer-events: none; }
.kind-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; color: var(--head); cursor: pointer; }
.kind-chip input:checked + span { background: var(--marigold); border-color: var(--marigold); color: var(--on-accent); }
.kind-chip input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.prompts { display: flex; flex-direction: column; gap: 6px; }
.chip.prompt { cursor: pointer; font: 600 13px/1.3 var(--sans); padding: 7px 12px; text-align: left; }
.chip.prompt:hover { border-color: var(--link); }
.journal { display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.month { display: flex; flex-direction: column; gap: 12px; }
.month-label { font-size: 22px; color: var(--muted); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.note h3 { font-size: 21px; }
.note .prose { font-size: 15px; }
.note-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-actions { margin-top: 4px; }
.tag.kind-session { background: var(--marigold); color: var(--on-accent); }
.tag.kind-goal { background: var(--rose); color: var(--on-accent); }
.tag.kind-practice { background: var(--coral); color: var(--on-accent); }
.journal-empty { text-align: left; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.journal-empty b { color: var(--head); }
.journal-nudge { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--alt); color: var(--text); cursor: pointer; font: inherit; }
.journal-nudge:hover { border-color: var(--link); }
.journal-nudge svg { width: 26px; height: 26px; color: var(--link); flex: none; }
.journal-nudge > span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.journal-nudge b { color: var(--head); font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin: -6px 0 6px -6px; padding: 4px 10px 4px 2px; border: 0; background: none; color: var(--link); font: 700 15px var(--sans); cursor: pointer; border-radius: 100px; }
.back-link svg { width: 20px; height: 20px; }
.back-link:hover { background: var(--alt); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--alt); border-radius: 100px; margin-bottom: 18px; max-width: 420px; }
.seg button { min-height: 42px; border: 0; border-radius: 100px; background: none; color: var(--text); font: 700 15px var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-selected="true"] { background: var(--head); color: var(--bg); }
.seg-n { font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--marigold); color: var(--on-accent); padding: 0 6px; }
.playlist { position: relative; overflow: hidden; padding-top: 0; }
.playlist .wave { display: block; width: calc(100% + 36px); height: 52px; margin: 0 -18px 4px; }
.pl-title { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.playlist .tagline { font-style: italic; color: var(--text); margin-top: -4px; }
.spotify-slot:empty { display: none; }
.spotify-slot iframe { width: 100%; height: 352px; border: 0; border-radius: 14px; display: block; }
.section-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.section-head h2 { font-size: 28px; }
.perk { gap: 14px; }
.perk-head { display: flex; flex-direction: column; gap: 4px; }
.perk .tagline { font-style: italic; color: var(--text); }
.small-prose { font-size: 15px; gap: 8px; }
.code-row { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--marigold); border-radius: 16px; padding: 8px 8px 8px 14px; min-width: 0; }
.code-label { font: 700 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); flex: none; }
.code-text { flex: 1; min-width: 0; font: 700 15px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--head); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.code-row .btn { flex: none; }
.extra-link { font-size: 14px; font-weight: 600; line-height: 1.4; }
.notice-ip { margin-top: 26px; font-size: 13px; color: var(--muted); max-width: 60ch; }

/* news */
.home-cols { display: grid; gap: 26px; }
.feed { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card); padding: 22px 20px; }
.post.is-pinned { background: var(--alt); border-color: transparent; }
/* News page */
.news-hero { background: var(--gradient); color: var(--on-accent); border-radius: var(--card); padding: 22px 22px 24px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.news-hero::before, .news-hero::after { opacity: 0.22; }
.news-hero .eyebrow { color: var(--on-accent); }
.news-hero h1 { color: var(--on-accent); font-size: clamp(34px, 8vw, 50px); }
.news-hero p:last-child { font-size: 17px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.quick-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 96px; padding: 14px; border-radius: 20px; border: 0; text-align: left; text-decoration: none; cursor: pointer; font: inherit; color: var(--on-accent); }
.quick-tile:hover { filter: brightness(1.06); transform: translateY(-1px); }
.quick-icon svg { width: 26px; height: 26px; display: block; }
.quick-text { display: flex; flex-direction: column; line-height: 1.25; }
.quick-text b { font: 400 20px/1.15 var(--serif); }
.quick-text span { font-size: 13px; opacity: 0.85; }
.c-rose { background: var(--rose); color: var(--on-accent); }
.c-coral { background: var(--coral); color: var(--on-accent); }
.c-marigold { background: var(--marigold); color: var(--on-accent); }
.c-cream { background: var(--cream); color: var(--on-accent); }
.c-ink { background: var(--ink); color: var(--marigold); }
.post-head { display: flex; gap: 14px; align-items: flex-start; }
.post-title { min-width: 0; flex: 1; }
.post-title h2 { margin-top: 4px; }
.post-date { color: var(--muted); }
.date-tile { flex: none; width: 56px; padding: 8px 0 7px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.date-tile b { font: 400 25px/1 var(--serif); }
.date-tile span { font: 700 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
.post.is-pinned { background: var(--cream); color: var(--ink); }
.post.is-pinned h2, .post.is-pinned .prose strong { color: var(--ink); }
.post.is-pinned .post-date { color: #4A4246; }
.post.is-pinned a { color: #B4533C; }
.side .side-list button { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.side-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.side-icon svg { width: 20px; height: 20px; }
.side-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perk-nudge { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 18px; border: 0; background: var(--gradient); color: var(--on-accent); cursor: pointer; font: inherit; }
.perk-nudge b { color: var(--on-accent); }
.perk-nudge .side-icon { background: var(--ink); color: var(--marigold); }
.post h2 { font-size: 26px; margin-top: 8px; }
.post .prose { margin-top: 12px; }
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--card); background: var(--surface); overflow: hidden; }
.side-list button { display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; cursor: pointer; min-height: 56px; }
.side-list button:last-child { border-bottom: 0; }
.side-list b { color: var(--head); }
.install { background: var(--gradient); color: var(--on-accent); border-radius: var(--card); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.install b { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.install .btn { border-color: var(--on-accent); color: var(--on-accent); }

/* prose */
.prose { max-width: 65ch; display: flex; flex-direction: column; gap: 12px; }
.prose h3 { font-size: 23px; margin-top: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose ol { list-style: none; counter-reset: step; padding-left: 0; gap: 12px; }
.prose ol li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); color: var(--on-accent); font: 700 14px/1 var(--sans); }
.recipe-intro { margin-bottom: 16px; max-width: none; font-size: 15px; }
.prose strong { color: var(--head); }
.reader { max-width: 720px; }
.reader h1 { font-size: clamp(34px, 8vw, 50px); margin-top: 14px; }
.reader .summary { font-size: 18px; margin-top: 12px; }
.reader .prose { margin-top: 26px; font-size: 17px; }

/* people */
.person { flex-direction: row; gap: 14px; align-items: flex-start; }
.person .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person h3 { font-size: 20px; }
.links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }

/* founder */
.founder { display: grid; gap: 24px; }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 100%; border-radius: var(--card); object-fit: cover; background: var(--gradient); display: grid; place-items: center; }
.portrait img { width: 46%; height: auto; }
img.portrait { display: block; object-position: 50% 28%; height: auto; }
.founder h2 { font-size: 26px; margin: 26px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); }

/* more menu */
.menu { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card); overflow: hidden; }
.menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 20px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; font-size: 17px; font-weight: 600; color: var(--head); }
.menu button:last-child { border-bottom: 0; }
.menu button span.muted { font-weight: 400; font-size: 14px; }
.menu svg { width: 20px; height: 20px; flex: none; color: var(--muted); }

/* admin */
.admin-grid { display: grid; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel h2 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rows { display: flex; flex-direction: column; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row .what { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
.list-row .what b { color: var(--head); overflow-wrap: anywhere; }
.list-row.inactive .what { opacity: 0.6; }
.codebox { background: var(--alt); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.codebox .code { font: 700 26px var(--sans); letter-spacing: 0.1em; color: var(--head); font-variant-numeric: tabular-nums; }
.codebox textarea { min-height: 120px; font-size: 15px; }
.confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); background: var(--head); color: var(--bg); padding: 12px 20px; border-radius: 100px; font-weight: 700; z-index: 50; max-width: calc(100% - 36px); text-align: center; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--card); padding: 28px 20px; text-align: center; color: var(--muted); }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .wrap { padding-inline: 28px; }
  .filters { margin-inline: -28px; padding-inline: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .hero { padding: 36px 34px; }
  .signin { padding: 30px 28px; }
}

/* ---------- desktop: tab bar moves to the top ---------- */
@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .tabbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); bottom: auto; z-index: 19; display: flex; justify-content: safe center; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 8px 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .tabbar .tab { flex: none; flex-direction: row; min-height: 40px; padding: 8px 16px; border-radius: 100px; font-size: 15px; color: var(--text); }
  .tabbar .tab svg { width: 18px; height: 18px; }
  .tabbar .tab:hover { background: var(--alt); }
  .tabbar .tab[aria-current="page"] { background: var(--head); color: var(--bg); }
  .tabbar .tab[data-desktop] { display: flex; }
  .tabbar .tab[data-more] { display: none; }
  main { padding-block: 36px 80px; }
  .landing { padding-block: 40px 64px; }
  .landing-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "hero form" "extra form"; align-items: start; gap: 28px; }
  .landing-grid .hero { grid-area: hero; }
  .landing-grid .landing-extra { grid-area: extra; }
  .signin { grid-area: form; position: sticky; top: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lib-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lib-tile { flex-direction: column; align-items: flex-start; min-height: 230px; }
  .lib-go { margin-top: auto; }
  .home-cols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 32px; }
  .founder { grid-template-columns: 320px minmax(0, 1fr); gap: 44px; align-items: start; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .panel.wide { grid-column: 1 / -1; }
  .toast { bottom: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .view { animation: rise 0.22s ease-out; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}
