.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:root {
  /* Design Playbook section 4 tokens (Oct 29). --muted stays as the text-2 alias other rules use. */
  --ink: #14161a;
  --lime: #c6f432;
  --lime-press: #b3e01f;
  --chalk: #f4f1ea;
  --paper: #ffffff;
  --surface-2: #f7f5f0;
  --line: #e4dfd4;
  --line-strong: #8a8f9a;
  --text-2: #3f4450;
  --text-3: #5b6170;
  --muted: #3f4450;
  --ok: #1f7a4d;
  --warn: #b54708;
  --danger: #b42318;
  --info: #0866ff;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;
  --sh-sm: 0 1px 2px rgb(20 22 26 / .06), 0 1px 3px rgb(20 22 26 / .08);
  --sh-lg: 0 8px 24px rgb(20 22 26 / .12), 0 2px 6px rgb(20 22 26 / .08);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  /* Playbook #2: the phone's own font for interface text (no download); Space Grotesk only for the wordmark and titles.
     The Inter @font-face rules below stay for the brand font picker sample, and only download when that sample shows. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", -apple-system, "SF Pro Display", sans-serif;
  color-scheme: light;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { text-decoration-thickness: 2px; }
.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 5;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.top {
  background: var(--ink);
  color: var(--paper);
}
.top a { color: var(--paper); text-decoration: none; }
.bar {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 4rem;
  padding: 0.5rem 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  margin-right: auto;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; }
.nav a, .nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.2rem;
  background: transparent;
  color: var(--paper);
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.wrap { width: min(100% - 2rem, 42rem); margin: 0 auto; padding: 1.5rem 0 3rem; }
h1, h2, legend {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2rem, 8vw, 3rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.4rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
.lede { color: var(--muted); font-size: 1.125rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  padding: 1.25rem;
  margin: 0 0 1rem;
}
.field { margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.hint, .fine { color: var(--muted); font-size: 0.95rem; }

/* GC Nov 6 14:03: notice is visually distinct from untouched archival source; external CSS preserves strict CSP. */
.archive-notice { border: 2px solid #14161a; padding: 1rem; margin: 1rem 0; background: #f4f1ea; color: #14161a; font-weight: 700; }
.archived-source { border-left: 4px solid #6c6c6c; padding-left: 1rem; }

input, select, textarea, button {
  font: inherit;
  color: var(--ink);
}
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
}
/* Stop iOS Safari zooming the page when a field is focused. Pinch zoom stays available; the viewport is unchanged. */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="datetime-local"], input[type="search"], input[type="time"], input[type="month"], input[type="week"], input:not([type]), select, textarea {
  font-size: 16px;
}
.tag-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.5rem; padding: 0; }
.tag-picks .chip-pick { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 600; cursor: pointer; margin: 0; }
.tag-picks .chip-pick:has(input:checked) { background: var(--lime, #c8f54a); }
.tag-picks .chip-pick input { width: auto; min-width: 18px; min-height: 18px; margin: 0; padding: 0; border: 0; accent-color: var(--ink); }
textarea { min-height: 7rem; }
input[type="file"] { max-width: 100%; }
[hidden] { display: none !important; }
button, .button {
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.big { min-height: 56px; padding: 0.85rem 1.6rem; font-size: 1.15rem; width: 100%; max-width: 24rem; }
.caption-edit { margin: 0.5rem 0 0.75rem; }
.caption-edit textarea { width: 100%; }
.fine.over { color: var(--danger); font-weight: 600; }
.ended-page { max-width: 40rem; }
.ended-deadline { font-size: 1.1rem; }
button.secondary, a.secondary {
  background: transparent;
  color: var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.alert {
  background: #fff4f2;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}
.alert a { color: var(--danger); }
.note {
  background: #f3f8e4;
  border: 1px solid #6d7a32;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}
.error { color: var(--danger); font-weight: 600; margin: 0.35rem 0 0; }
.steps { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.steps a, .steps span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.steps [aria-current="step"] { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 0.8rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.check label { font-weight: 500; }
fieldset { border: 1px solid var(--line); margin: 0 0 1rem; padding: 0.8rem 1rem 0.2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; letter-spacing: 0.02em; }
.scroll { overflow-x: auto; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.logos { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.logo-preview { background: #fff; border: 1px solid var(--line); padding: 0.5rem; max-width: 12rem; }
footer.site {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer.site a { color: var(--muted); }
.status { font-weight: 600; }
/* ---- Portal navigation (nav.ts) ---- */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.appbar, .side, .tabbar { background: var(--ink); color: var(--paper); }
.appbar a, .side a, .tabbar a { color: var(--paper); text-decoration: none; }
.appbar :focus-visible, .side :focus-visible, .tabbar :focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 1.3rem; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; line-height: 1.1; }
.brand .gym { font-family: var(--font); font-weight: 400; font-size: 0.8rem; letter-spacing: 0; color: #c9ccd2; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-new { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; min-width: 44px; padding: 0 1rem; background: var(--lime); color: var(--ink); border: 2px solid var(--lime); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.appbar .btn-new, .side .btn-new { color: var(--ink); }
.btn-new .i { width: 20px; height: 20px; stroke-width: 2.5; }
.btn-new-link { display: none; }
@supports not selector(:popover-open) {
  .btn-new[popovertarget] { display: none; }
  .btn-new-link { display: inline-flex; }
  .sheet { display: none; }
}
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 56px; padding: 0.35rem max(1rem, env(safe-area-inset-right)) 0.35rem max(1rem, env(safe-area-inset-left)); padding-top: max(0.35rem, env(safe-area-inset-top)); }
.gymtabs { display: flex; align-items: stretch; gap: 0.35rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; position: sticky; top: 0; z-index: 21; padding: 0.35rem max(0.75rem, env(safe-area-inset-right)) 0.35rem max(0.75rem, env(safe-area-inset-left)); padding-top: max(0.35rem, env(safe-area-inset-top)); background: var(--ink); border-bottom: 1px solid #3a3f48; }
.gymtab-form { display: flex; margin: 0; flex: 0 0 auto; }
.gymtab { flex: 0 0 auto; box-sizing: border-box; min-height: 48px; min-width: 48px; padding: 0.5rem 0.9rem; border: 1px solid #3a3f48; border-radius: 999px; background: transparent; color: var(--paper); font: inherit; font-size: 0.95rem; font-weight: 600; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; }
span.gymtab { cursor: default; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.loc-copy { margin: 0 0 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line, #d9d6cc); border-radius: 8px; background: var(--paper, #fff); }
.loc-copy form { margin: 0.6rem 0; }
.loc-copy p { margin: 0; }

.side { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 64px; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border-top: 1px solid #2c3038; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; min-width: 44px; font-size: 0.75rem; font-weight: 600; color: #c9ccd2; }
.tabbar a.tab { color: #c9ccd2; }
.tab .pill { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; }
.tabbar a.tab[aria-current] { color: var(--paper); }
.tab[aria-current] .pill { background: var(--lime); color: var(--ink); }
.tab .badge { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-size: 0.7rem; font-weight: 700; line-height: 16px; text-align: center; }
.tab[aria-current] .badge { background: var(--paper); }
/* Space the first-visit tour keeps clear of the legal footer above the tab bar (two 44px link rows, entity line, footer padding). */
body.app { --app-legal-footer-clearance: 13rem; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
html.app { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); scroll-padding-top: 72px; }
/* Sub-tabs wrap onto a second row on narrow phones, so every tab, and the current one, is always on screen without scrolling or JS. */
.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.85rem; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.subnav a[aria-current] { background: var(--ink); color: var(--paper); }
.subnav :focus-visible { outline-offset: -5px; }
.subnav a[aria-current]:focus-visible { outline-color: var(--lime); }
.subnav .n { min-width: 20px; padding: 0 5px; background: var(--lime); color: var(--ink); font-size: 0.75rem; font-weight: 700; text-align: center; }
.backrow { margin: -0.5rem 0 0.75rem; }
.back { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.back .i { width: 18px; height: 18px; }
/* + New sheet: native popover, so Escape, outside tap and focus return come free. */
.sheet { border: 0; padding: 0; margin: 0; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 85vh; overflow: auto; background: var(--paper); color: var(--ink); border-top: 4px solid var(--lime); padding-bottom: env(safe-area-inset-bottom); }
.sheet::backdrop { background: rgb(20 22 26 / 0.6); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.5rem 0.25rem 1rem; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.sheet nav { padding: 0 0.5rem 0.75rem; }
.new-item { display: flex; align-items: center; gap: 0.85rem; min-height: 64px; padding: 0.5rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.new-item:first-child { border-top: 0; }
.new-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; background: var(--ink); color: var(--lime); }
.new-item .t { display: flex; flex-direction: column; }
.new-item small, .group small { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.new-list { margin: 0 0 1.5rem; border: 2px solid var(--ink); background: var(--paper); padding: 0 0.5rem; }
/* Settings hub */
.gl { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.5rem 0 0.5rem; }
.group { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: var(--paper); }
.group li + li { border-top: 1px solid var(--line); }
.group a, .group button { display: flex; align-items: center; gap: 0.85rem; width: 100%; min-height: 60px; padding: 0.5rem 0.85rem; text-decoration: none; color: var(--ink); background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.group .ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; background: var(--chalk); }
.group .t { display: flex; flex-direction: column; flex: 1; font-weight: 600; }
.group .chev { width: 18px; height: 18px; color: var(--muted); }
.group :focus-visible { outline-offset: -4px; }
.group.logout { margin-top: 1.5rem; }
.group.logout form { margin: 0; }
/* Home */
.todo { display: grid; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.todo a { display: flex; align-items: center; gap: 0.85rem; min-height: 64px; padding: 0.75rem 1rem; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; font-weight: 600; }
.todo a.hot { background: var(--lime); }
.todo .num { font-family: var(--display); font-size: 1.6rem; min-width: 2.5rem; }
.todo .chev { margin-left: auto; width: 18px; height: 18px; }
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; border: 2px solid var(--ink); background: var(--paper); }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist a, .checklist span.row { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.4rem 0.85rem; text-decoration: none; }
.checklist .box { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border: 2px solid var(--ink); }
.checklist .done .box { background: var(--ink); color: var(--lime); }
.checklist .done .row { color: var(--muted); text-decoration: line-through; }
.checklist .box .i { width: 16px; height: 16px; stroke-width: 3; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.stats li { border: 2px solid var(--ink); background: var(--paper); padding: 0.75rem; }
.stats strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.9rem; }
.coming { list-style: none; margin: 0 0 1.5rem; padding: 0; border: 2px solid var(--ink); background: var(--paper); }
.coming li { padding: 0.65rem 0.85rem; }
.coming li + li { border-top: 1px solid var(--line); }
.coming time { display: block; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 761px) {
  .appbar, .tabbar, .subnav-phone { display: none; }
  .gymtabs { position: sticky; top: 0; }
  body.app { padding-bottom: 0; padding-left: 88px; }
  html.app { scroll-padding-bottom: 1rem; scroll-padding-top: 1rem; }
  .side { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; width: 88px; padding: 0.75rem 0.5rem; overflow-y: auto; gap: 0.5rem; }
  .side > .brand { font-size: 0.95rem; align-items: center; text-align: center; }
  .side .gymsw, .side .hq-link, .side .subs, .side .who { display: none; }
  .side .btn-new { padding: 0; margin: 0.25rem auto; width: 56px; }
  .side .btn-new span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side-tabs { display: flex; flex-direction: column; gap: 0.25rem; }
  .side-tab, .side .foot a, .side .foot button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; width: 100%; padding: 0.35rem 0.25rem; font: inherit; font-size: 0.75rem; font-weight: 600; color: #c9ccd2; background: transparent; border: 0; border-left: 4px solid transparent; cursor: pointer; }
  .side a.side-tab { color: #c9ccd2; }
  .side a.side-tab[aria-current], .side .foot a[aria-current] { color: var(--paper); background: #24272e; border-left-color: var(--lime); }
  .side-tab .cnt { position: absolute; top: 4px; right: 8px; min-width: 20px; padding: 0 4px; background: var(--lime); color: var(--ink); font-size: 0.7rem; font-weight: 700; text-align: center; }
  .side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.25rem; border-top: 1px solid #2c3038; padding-top: 0.5rem; }
  .side .foot form { margin: 0; }
  .sheet { inset: 0; margin: auto; width: min(28rem, 100% - 2rem); max-height: min(36rem, 100% - 2rem); border: 2px solid var(--ink); border-top: 4px solid var(--lime); padding-bottom: 0; }
}
@media (min-width: 1100px) {
  body.app { padding-left: 248px; }
  .subnav, .backrow { display: none; }
  .side { width: 248px; padding: 1rem 0.75rem; }
  .side > .brand { font-size: 1.4rem; align-items: flex-start; text-align: left; padding: 0 0.5rem; }
  .side .gymsw { display: flex; flex-direction: column; margin: 0; padding: 0.5rem; background: #24272e; font-size: 0.85rem; color: #c9ccd2; }
  .side .gymsw strong { color: var(--paper); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .gymsw-form { gap: 0.35rem; }
  .side .gymsw-form select { width: 100%; max-width: 100%; padding: 0.4rem 0.5rem; border: 1px solid #3a3f48; border-radius: 6px; background: #1a1d23; color: var(--paper); font: inherit; font-size: 16px; }
  .side .gymsw-role, .side .gymsw-fb { font-size: 0.8rem; color: #c9ccd2; }
  .side .hq-link { display: block; margin: 0 0 0.35rem; padding: 0 0.5rem; font-size: 0.85rem; }
  .side .hq-link a { color: var(--lime); }

  .side .btn-new { width: 100%; margin: 0.25rem 0 0.5rem; padding: 0 1rem; }
  .side .btn-new span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .side-tab, .side .foot a, .side .foot button { flex-direction: row; justify-content: flex-start; gap: 0.75rem; min-height: 44px; padding: 0 0.75rem; font-size: 1rem; }
  .side-tab .cnt { position: static; margin-left: auto; }
  .side .subs { display: flex; flex-direction: column; margin: 0 0 0.5rem; padding-left: 2.6rem; }
  .side .subs a { display: flex; align-items: center; min-height: 44px; padding: 0 0.5rem; color: #c9ccd2; font-size: 0.95rem; border-left: 2px solid #2c3038; }
  .side .subs a[aria-current] { color: var(--paper); font-weight: 600; border-left-color: var(--lime); }
  .side .subs .cnt { margin-left: auto; min-width: 20px; padding: 0 4px; background: var(--lime); color: var(--ink); font-size: 0.7rem; font-weight: 700; text-align: center; }
  .side .who { display: block; margin: 0 0.5rem 0.25rem; font-size: 0.8rem; color: #c9ccd2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (hover: hover) {
  .side a.side-tab:hover, .side .subs a:hover, .side .foot a:hover, .side .foot button:hover { color: var(--paper); background: #24272e; }
  .subnav a:not([aria-current]):hover, .group a:hover, .group button:hover, .new-item:hover, .todo a:not(.hot):hover { background: var(--chalk); }
  .btn-new:hover { background: #d6ff52; }
}
.note p { margin: 0; }
.loc-list { margin: 0; padding-left: 1.1rem; }
.loc-list li { margin: 0.35rem 0; }
.loc-list li.current strong { color: var(--ink); }
.hq-cards { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.hq-card h2 { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.hq-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.hq-card .actions button, .hq-card .actions .button { min-height: 44px; }
.hq-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hq-table th, .hq-table td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--chalk, #e8e6e1); vertical-align: top; }
.hq-table th { font-size: 0.8rem; color: #666; font-weight: 600; }
form.inline { display: inline; margin: 0; }
button.link-button { background: none; border: none; color: var(--link, #0b57d0); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }


.note .actions { margin-top: 0.6rem; }
.draft-head { margin-bottom: 0.5rem; }
.draft-head h2 { margin-bottom: 0.25rem; }
.platform { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; margin: 0.2rem 0; font-size: 1rem; }
.plat-i { width: 1.25rem; height: 1.25rem; flex: none; }
.handoff { margin-top: 0; }
.platform-row { border-top: 1px solid var(--line, #d9d6cc); padding-top: 0.9rem; margin-top: 0.9rem; }
/* Item 29: one post, edited once at the top; each app folds open below with its preview and Approve. */
.shared-post { border: 1px solid var(--line, #d9d6cc); border-radius: 12px; padding: 0.9rem 1rem; margin: 0.6rem 0 1rem; }
.shared-post h3, .apps-head { margin: 0 0 0.5rem; font-size: 1rem; }
.shared-post textarea { width: 100%; font: inherit; }
.shared-text { white-space: pre-wrap; }
.app-section { border-top: 1px solid var(--line, #d9d6cc); }
.app-summary { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0; font-weight: 700; cursor: pointer; }
.app-summary .app-name { flex: 1; }
.app-section > .app-summary { list-style: none; }
.app-section > .app-summary::-webkit-details-marker { display: none; }
.app-section > .app-summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 0.35rem 0 0.2rem; flex: none; }
.app-section[open] > .app-summary::after { transform: rotate(45deg); }
.app-body { padding: 0 0 0.9rem; }
.app-own-text { margin: 0.5rem 0; }
.count-line { margin: 0 0 1rem; }
.handoff-kit { border: 1px solid var(--line); padding: 0.8rem 1rem; margin: 0.8rem 0; }
.handoff-kit h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.kit-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.8rem; }
.kit-steps .button, .kit-steps button { min-height: 44px; }
.copy-box { width: 100%; font: inherit; }
.kit-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem; margin: 0.6rem 0; }
.kit-actions .button, .kit-actions button { min-height: 44px; width: 100%; text-align: center; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; margin-top: 0.4rem; }
.share-btn[hidden], .copy-fallback[hidden] { display: none; }
.share-btn .plat-i { stroke: currentColor; }
.mark-posted { border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.4rem; }
.mark-posted button { min-height: 44px; }
.caption-copy textarea { width: 100%; font: inherit; }
.who-posts fieldset { border: 0; padding: 0; margin: 0.6rem 0 0; }
.who-posts legend { font-weight: 700; }
.section-head { margin: 1.25rem 0 0.6rem; font-size: 1.1rem; }
.leaving { overflow: hidden; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .leaving { animation: card-leave 700ms ease-in 400ms both; }
  @keyframes card-leave {
    from { max-height: 5rem; opacity: 1; padding-top: 0.8rem; padding-bottom: 0.8rem; margin-bottom: 1rem; border-width: 1px; }
    to { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-width: 0; }
  }
  .sheet:popover-open { animation: sheet-in 160ms ease-out; }
  @keyframes sheet-in { from { transform: translateY(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.top :focus-visible { outline-color: var(--paper); }
.totp-qr svg { display: block; width: 12rem; max-width: 100%; height: auto; }
.ff-inter .font-name, .ff-inter .font-sample { font-family: "Inter", Helvetica, Arial, sans-serif; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
.ff-space-grotesk .font-name, .ff-space-grotesk .font-sample { font-family: "Space Grotesk", Helvetica, Arial, sans-serif; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
.ff-source-sans-3 .font-name, .ff-source-sans-3 .font-sample { font-family: "Source Sans 3", Helvetica, Arial, sans-serif; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
.ff-ibm-plex-sans .font-name, .ff-ibm-plex-sans .font-sample { font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
.ff-nunito-sans .font-name, .ff-nunito-sans .font-sample { font-family: "Nunito Sans", Helvetica, Arial, sans-serif; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
.ff-manrope .font-name, .ff-manrope .font-sample { font-family: "Manrope", Helvetica, Arial, sans-serif; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
.ff-outfit .font-name, .ff-outfit .font-sample { font-family: "Outfit", Helvetica, Arial, sans-serif; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/literata-latin-700-normal.woff2") format("woff2"); }
.ff-literata .font-name, .ff-literata .font-sample { font-family: "Literata", Georgia, serif; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
.ff-fraunces .font-name, .ff-fraunces .font-sample { font-family: "Fraunces", Georgia, serif; }
.need { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.check-hint { margin: -0.4rem 0 0.8rem 1.85rem; }
.affix { display: flex; align-items: stretch; }
.affix-text { display: flex; align-items: center; padding: 0 0.7rem; border: 1px solid var(--ink); border-right: 0; background: var(--chalk); font-weight: 600; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px; border: 1px solid var(--ink); vertical-align: middle; margin-left: 0.3rem; }
.tag-suggested { background: var(--lime); }
.tag-changed { background: var(--paper); }
.tag-default { background: var(--chalk); border-color: var(--line); }
.colour-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.colour-row input[type="text"] { width: 8.5rem; flex: 0 0 auto; text-transform: uppercase; }
.colour-row input[type="color"] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.swatch { flex: 0 0 auto; }
.font-cards, .tone-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.font-card, .tone-card, .radio-card { position: relative; display: flex; gap: 0.6rem; align-items: flex-start; min-height: 44px; padding: 0.7rem 0.8rem; border: 1px solid var(--line); background: var(--paper); font-weight: 500; cursor: pointer; margin: 0 0 0.6rem; }
.font-card { flex-direction: column; gap: 0.2rem; }
.font-card input, .tone-card input, .radio-card input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: 0 0 auto; }
.font-card:has(input:checked), .tone-card:has(input:checked), .radio-card:has(input:checked), .pill-choice:has(input:checked) { border: 2px solid var(--ink); background: var(--chalk); }
.font-card:has(input:focus-visible), .tone-card:has(input:focus-visible), .radio-card:has(input:focus-visible), .pill-choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.font-name { font-size: 1.1rem; font-weight: 700; }
.font-sample, .tone-sample { color: var(--muted); font-size: 0.95rem; }
.tone-card { flex-direction: column; }
.tone-name { font-weight: 700; }
.radio-card > span { display: flex; flex-direction: column; gap: 0.2rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-choice { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 500; cursor: pointer; margin: 0; }
.consent-box { border-left: 4px solid var(--lime); background: var(--chalk); padding: 0.8rem 1rem; margin: 0.4rem 0 0.8rem; }
.consent-box details, .how { margin: 0.6rem 0; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.num-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.num-steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.num-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.6rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-h { font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.8rem; align-items: start; }
.post-tile, .page-strip { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.sample-caption { background: var(--chalk); border: 1px solid var(--line); padding: 0.7rem 0.9rem; margin-top: 0.8rem; white-space: pre-line; }
.lock-note { display: inline-flex; gap: 0.35rem; align-items: center; font-weight: 600; color: var(--ink); }
.lock-note .i { width: 1rem; height: 1rem; }
.next-step { border-top-color: var(--ok); }
.suggest-card form { margin: 0 0 0.6rem; }
.actions button + button, .actions .button + .button { margin-left: 0; }
@media (max-width: 560px) {
  .preview-grid { grid-template-columns: 1fr; }
  .num-steps > li { padding-left: 0; }
  .num-steps > li::before { position: static; margin-bottom: 0.4rem; }
}
.roles{margin:0 0 .75rem;padding-left:1.25rem}
.roles li{margin:.25rem 0}
.plan-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.plan-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.plan-switch a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-switch a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.plan-card .price { font-size: 1.2rem; font-weight: 700; margin: 0.5rem 0; }
.plan-card .trial-line { margin: 0 0 1rem; }
.billing-address { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.75rem; }
.billing-address h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.address-summary { margin: 0.5rem 0; }
details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
details > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.secondary-action { margin-top: 1.5rem; }
.checkout-form { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.75rem; }
.company-fine { margin-top: 2rem; }
@media (min-width: 640px) { .field-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 0 0.75rem; } }
/* Pete steering B: the upload picker. The real file input stays in the page (focusable, required), visually hidden. */
.picker-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.picker-input:focus-visible + .picker-button { outline: 3px solid var(--ink); outline-offset: 3px; }
.picker-button { display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; margin: 0.4rem 0 0.6rem; }
.picked { list-style: none; padding: 0; margin: 0.4rem 0 0.8rem; display: grid; gap: 0.5rem; }
.picked li { display: flex; align-items: center; gap: 0.6rem; overflow-wrap: anywhere; }
.picked-thumb, .picked-kind { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 6px; background: #e8e6e1; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.thumb { object-fit: cover; border-radius: 6px; background: #e8e6e1; display: block; max-width: 100%; }
.label-preview { margin: 0 0 0.8rem; }
.label-file legend { font-weight: 700; overflow-wrap: anywhere; }
/* Pete steering C: the media library is a table on wide screens and one card per file on phones. */
.media-table table { width: 100%; }
.media-table caption { text-align: left; font-weight: 700; padding: 0 0 0.5rem; }
.media-table td { vertical-align: top; }
@media (max-width: 760px) {
  .media-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .media-table table, .media-table tbody, .media-table tr, .media-table td { display: block; width: 100%; }
  .media-table tr { border: 1px solid #d9d6cf; border-radius: 10px; padding: 0.75rem; margin: 0 0 0.9rem; }
  .media-table td { border: 0; padding: 0.25rem 0; }
  .media-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 700; color: #555; }
  .media-table td.media-thumb::before { content: none; }
}
.release-covered .label { font-weight: 700; margin: 0 0 0.25rem; }
/* Pete steering I: the draft card, top to bottom: platform, photo or video, caption, When, How, Approve, Reject. */
.step { border-top: 1px solid var(--line); margin: 0.9rem 0 0; padding: 0.8rem 0 0; }
.step h4 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.step h5, .lib-pick legend { margin: 0.8rem 0 0.4rem; font-size: 0.95rem; font-weight: 700; padding: 0; }
.lib-pick fieldset { border: 0; padding: 0; margin: 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; }
.upload-picker.compact .picker-button { background: var(--paper); color: var(--ink); }
.upload-picker.compact .hint { font-size: 0.95rem; }
.lib-item { position: relative; }
.lib-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lib-item label { display: grid; gap: 0.25rem; padding: 4px; border: 2px solid transparent; border-radius: 8px; cursor: pointer; font-size: 0.8rem; overflow-wrap: anywhere; }
.lib-item .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.lib-item input:checked + label { border-color: var(--ink); background: var(--lime); }
.lib-item input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.unfit { list-style: none; padding: 0; margin: 0.4rem 0; display: grid; gap: 0.5rem; }
.unfit li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.unfit .thumb { flex: none; opacity: 0.6; }
.media-current { display: flex; gap: 0.75rem; align-items: flex-start; }
.media-current .thumb { width: 160px; height: auto; max-height: 220px; }
.media-meta { min-width: 0; overflow-wrap: anywhere; }
.media-meta p { margin: 0 0 0.3rem; }
.ok { font-weight: 700; color: #14532d; }
.media-current.added .thumb { outline: 3px solid var(--lime); outline-offset: 2px; }
.media-change > summary { display: inline-flex; padding: 0 1rem; border: 2px solid var(--ink); margin: 0.5rem 0; }
.upload-picker.compact { border: 0; padding: 0; margin: 0; }
.caption-edit { border-top: 1px solid var(--line); margin-top: 0.9rem; padding-top: 0.8rem; }
.caption-edit label { font-weight: 700; }
.fine.over { color: #9f1239; font-weight: 600; }
.tags { overflow-wrap: anywhere; }
.save-status { min-height: 1.2em; margin: 0; }
.approve-form { border-top: 1px solid var(--line); margin-top: 0.9rem; padding-top: 0.8rem; }
.approve-form fieldset { border: 0; padding: 0; margin: 0 0 0.8rem; }
.approve-form legend { font-weight: 700; padding: 0; margin-bottom: 0.3rem; }
.approve-form .when-time { margin: 0.3rem 0 0 2rem; }
.primary-wide { width: 100%; }
.reject-form { margin: 0.4rem 0 0; text-align: center; }
.link-button { background: none; border: 0; padding: 0.4rem 0; min-height: 44px; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; }
.focus { box-shadow: 0 0 0 3px var(--lime); }
@keyframes flash { from { background: var(--lime); } to { background: transparent; } }
.flash { animation: flash 1.6s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }
/* Pete steering J: Posted filters, rows, chips. On phones the Filter button opens the filters as a bottom sheet. */
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.4rem 0; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 0.6rem; border: 1px solid var(--line, #ccc); border-radius: 999px; font-size: 0.85rem; background: var(--chalk); }
.chip-event { border-color: var(--ink); font-weight: 600; }
.tags-row { margin: 0.5rem 0; }
.tags-edit summary, .add-link summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
.filter-sheet { margin: 0.5rem 0 0.75rem; }
.filter-sheet > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; }
.filter-sheet > summary::-webkit-details-marker { display: none; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 0.75rem; }
.filters legend { font-weight: 600; margin-bottom: 0.35rem; }
.filters .plat-i { width: 1.1rem; height: 1.1rem; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.posted-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.posted-item { display: grid; grid-template-columns: 64px 1fr; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--paper); }
.posted-item .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.thumb-none { display: inline-flex; align-items: center; justify-content: center; background: var(--chalk); }
.posted-body > p { margin: 0.15rem 0; }
.posted-body .platform { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.status { font-size: 0.8rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--chalk); }
.status-failed, .status-partial { background: #fde2e1; }
.snippet { overflow-wrap: anywhere; }
.fail-reason { color: #8a1c14; }
.posted-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.posted-actions .button, .posted-actions button { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .filter-sheet[open] > form { position: fixed; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; z-index: 40; background: var(--paper); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,0.2); }
  .filter-sheet[open] > summary::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 39; }
}
/* Pete steering K: Workouts dashboard. Counters, tiles that open a sheet (bottom sheet on phones, side panel wider), week grid. */
.counters { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.counters a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; min-height: 44px; }
.counters strong { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.counters span { font-size: 0.85rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.25rem; }
@media (min-width: 761px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sheet > summary { list-style: none; cursor: pointer; }
.sheet > summary::-webkit-details-marker { display: none; }
.tile { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; min-height: 112px; padding: 0.85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.tile:hover, .sheet > summary:focus-visible { border-color: var(--ink); }
.tile .kind-i { width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 10px; background: var(--lime); box-sizing: content-box; }
.tile strong { line-height: 1.25; }
.sheet-panel { display: none; }
.sheet[open] > .sheet-panel { display: block; position: fixed; z-index: 50; background: var(--paper); overflow-y: auto; box-shadow: 0 -8px 28px rgba(0,0,0,0.22); left: 0; right: 0; bottom: 0; max-height: 88vh; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
.sheet[open] > summary::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.38); z-index: 49; }
@media (min-width: 761px) { .sheet[open] > .sheet-panel { left: auto; top: 0; bottom: 0; width: min(460px, 100vw); max-height: none; border-radius: 0; box-shadow: -8px 0 28px rgba(0,0,0,0.22); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sheet-head h2 { margin: 0; }
.week-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.week-head h2 { margin: 0; font-size: 1.15rem; }
.week-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.week-nav .button { min-height: 44px; display: inline-flex; align-items: center; }
.week-grid { list-style: none; padding: 0; margin: 0.75rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 1000px) { .week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.week-day { border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem; background: var(--paper); min-width: 0; }
.week-day.today { border: 2px solid var(--ink); }
.week-day.empty { background: transparent; }
.week-day h3 { margin: 0 0 0.35rem; font-size: 0.9rem; }
.week-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.week-item { padding: 0.45rem; border-radius: 10px; background: var(--chalk); min-width: 0; overflow-wrap: anywhere; }
.week-item > p { margin: 0.1rem 0; font-size: 0.88rem; }
.week-item-title { display: flex; gap: 0.3rem; align-items: flex-start; }
.week-item .kind-i { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; }
.week-item .chip { min-height: 22px; font-size: 0.75rem; padding: 0 0.45rem; }
.draft-state { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.draft-state .plat-icons { display: inline-flex; gap: 0.15rem; }
.draft-state .plat-i { width: 0.95rem; height: 0.95rem; }
.kind-i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more-tools summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
/* Pete steering M: platform colour on every section (stripe, tinted header strip, Share fill) and the live Preview. */
.plat { position: relative; border-left: 0; }
.plat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--p-stripe, var(--p)); border-radius: 4px 0 0 4px; }
.platform-row.plat, .handoff-kit.plat, .posted-item.plat { padding-left: 16px; }
.plat .plat::before { display: none; }
.plat .handoff-kit.plat { padding-left: 0; }
article.card.plat { padding-left: 20px; overflow: hidden; }
.plat > .platform, .plat > .draft-head > .platform, .plat .posted-body > .platform { background: var(--p-tint); color: var(--ink); border-radius: 8px; padding: 4px 8px; margin-left: -4px; width: fit-content; max-width: 100%; }
.plat .plat-i { color: var(--ink); }
.plat-snapchat .platform .plat-i { background: var(--p); border-radius: 4px; }
.plat .share-btn { background: var(--p); color: var(--p-on); border-color: var(--p); }
.pv { margin: 12px 0 16px; padding: 0; }
.pv-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.pv-tag { display: inline-block; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.pv-frame { background: #fff; color: #14161a; border: 1px solid #e4dfd4; border-radius: 16px; overflow: hidden; max-width: 380px; box-shadow: 0 1px 2px rgb(20 22 26 / .06), 0 1px 3px rgb(20 22 26 / .08); font: 0.9375rem/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.pv-head, .pv-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.pv-head > span { display: flex; flex-direction: column; }
.pv-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; flex: none; background: #f7f5f0; }
.pv-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; }
.pv-meta { color: #5b6170; font-size: 0.8125rem; font-weight: 400; }
.pv-media { position: relative; background: #f7f5f0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-empty span { color: #5b6170; font-size: 0.875rem; padding: 12px; text-align: center; }
.pv-play { position: absolute; width: 0; height: 0; border-left: 18px solid rgb(255 255 255 / .9); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.pv-actions { display: flex; align-items: center; gap: 12px; padding: 8px 12px 4px; }
.pv-words { gap: 16px; color: #3f4450; font-size: 0.8125rem; }
.pv-words > span { display: inline-flex; align-items: center; gap: 4px; }
.pv-spacer { flex: 1; }
.pv-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-text { margin: 0; padding: 4px 12px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-more { color: #5b6170; }
.pv-fb .pv-text { padding-top: 0; }
.pv-fb .pv-media { aspect-ratio: 4 / 3; }
.pv-x .pv-row { display: flex; gap: 8px; padding: 12px; }
.pv-x .pv-col { flex: 1; min-width: 0; }
.pv-x .pv-who { margin: 0 0 2px; }
.pv-x .pv-text { padding: 0 0 8px; }
.pv-x .pv-media { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid #e4dfd4; }
.pv-x .pv-actions { padding: 8px 0 0; }
.pv-count { font-variant-numeric: tabular-nums; color: #3f4450; }
.pv-count.over { color: #b42318; font-weight: 700; }
.pv-card { display: grid; border: 1px solid #e4dfd4; border-radius: 16px; overflow: hidden; margin-bottom: 4px; }
.pv-card[hidden] { display: none; }
.pv-card-img { aspect-ratio: 1.91 / 1; background: #f7f5f0; }
.pv-card-host { color: #5b6170; font-size: 0.8125rem; padding: 8px 12px 0; }
.pv-card strong { padding: 0 12px 8px; }
.pv-tall { position: relative; aspect-ratio: 9 / 16; max-width: 260px; background: #14161a; color: #fff; }
.pv-tall .pv-media { position: absolute; inset: 0; aspect-ratio: auto; background: #2a2d33; }
.pv-tall .pv-empty span { color: #e4dfd4; }
.pv-overlay { position: absolute; left: 0; right: 48px; bottom: 0; padding: 12px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); }
.pv-overlay .pv-who { margin: 0 0 4px; }
.pv-overlay .pv-text, .pv-bar .pv-text { padding: 0; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.pv-overlay .pv-more { color: #e4dfd4; }
.pv-rail { position: absolute; right: 8px; bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; }
.pv-tt { border-bottom: 3px solid #25f4ee; box-shadow: 0 3px 0 #fe2c55; }
.pv-top { position: absolute; left: 0; right: 0; top: 0; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.pv-top .pv-meta { color: #e4dfd4; }
.pv-bar { position: absolute; left: 0; right: 0; top: 55%; background: rgb(0 0 0 / .6); padding: 6px 12px; text-align: center; }
@media (min-width: 900px) { .pv-frame { max-width: 360px; } }
/* Pete N: the Connect button in the platform's colour, with its icon; the X spend-cap note on a hand-off. */
.connect-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.connect-row.plat .connect-btn { background: var(--p); color: var(--p-on); border-color: var(--p); }
.connect-row.plat { padding-left: 12px; }
.connect-row.plat .connect-btn .plat-i { color: currentColor; stroke: currentColor; }
.kit-note { background: #FEF0E6; color: #B54708; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-weight: 600; }
.tt-account { font-weight: 600; margin: 0 0 1rem; }
.tt-caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.tt-choices { margin: 0.4rem 0 0 1.6rem; }
.tt-choices[hidden] { display: none; }
.tt-yourself { margin-top: 1.5rem; }
/* Design Playbook #1: soft reset. Rounded 12px controls, 16px cards, hairline borders and a small shadow instead of 2px ink boxes.
   Inputs keep a 3:1 border (--line-strong) so the field edge stays visible. */
.card { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 16px; }
.card.next-step { border-top: 4px solid var(--ok); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="datetime-local"], select, textarea { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); }
button, .button { min-height: 48px; border-radius: var(--r-md); background: var(--lime); color: var(--ink); border: 1px solid var(--lime); }
button:active, .button:active { background: var(--lime-press); border-color: var(--lime-press); }
button.secondary, a.secondary, .button.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.link-button, .sheet-close, .nav button, .group button, .side .foot button { min-height: 44px; background: transparent; border: 0; border-radius: 0; }
.alert, .note { border-radius: var(--r-md); }
fieldset { border-radius: var(--r-md); }
.todo a, .checklist, .stats li, .coming, .group, .new-list { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.stats li { overflow: visible; }
.todo a.hot { border-color: var(--lime); }
.subnav a { border: 1px solid var(--line-strong); border-radius: var(--r-full); }
.subnav a[aria-current] { border-color: var(--ink); }
.btn-new { border-radius: var(--r-md); }
.handoff-kit, .affix-text, .font-card, .tone-card, .radio-card, .logo-preview, .sample-caption, .tile, .counters a, .week-day, .posted-item { border-radius: var(--r-md); }
.affix input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.affix-text { border-top-right-radius: 0; border-bottom-right-radius: 0; border-color: var(--line-strong); }
.media-change > summary { border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.tab .pill { border-radius: var(--r-full); }
.tab .badge, .subnav .n, .side-tab .cnt, .side .subs .cnt { border-radius: var(--r-full); }
.sheet[popover] { border-radius: 20px 20px 0 0; border-top: 0; box-shadow: var(--sh-lg); }
.sheet[open] > .sheet-panel, .filter-sheet[open] > form { border-radius: 20px 20px 0 0; }
@media (min-width: 761px) { .sheet[open] > .sheet-panel { border-radius: 0; } .sheet[popover] { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); } }
/* Playbook #3: Undo toast. Ink, lime Undo, 12px above the tab bar (bottom of the screen on wider screens). Gone after 6 s
   unless hovered or focused, so keyboard users can still reach Undo. The fade is motion, so only when motion is OK. */
.toast { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(64px + 12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 28rem; margin: 0 auto; padding: 8px 8px 8px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-md); box-shadow: var(--sh-lg); font-weight: 600; animation: toast-hide 0s linear 6s forwards; }
.toast form { margin: 0; }
.toast .toast-undo { min-height: 44px; padding: 0 16px; background: transparent; color: var(--lime); border: 0; font-weight: 700; }
.toast :focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.toast:hover, .toast:focus-within { animation-play-state: paused; }
@keyframes toast-hide { to { visibility: hidden; } }
@media (min-width: 761px) { .toast { bottom: 24px; } }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in 200ms var(--ease-out), toast-out 200ms var(--ease-in) 5.8s forwards; }
  .toast:hover, .toast:focus-within { animation-play-state: paused; }
  @keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
  @keyframes toast-out { to { opacity: 0; visibility: hidden; } }
}
/* Playbook #4: Approve check, and confetti on the first approved post and every 10th. CSS only: 24 pieces, 900ms or less
   (longest piece 840ms + 60ms delay), and only when the device allows motion. */
.toast .toast-check { vertical-align: -4px; margin-right: 6px; color: var(--lime); }
.confetti { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .toast .toast-check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: check-draw 320ms var(--ease-out) 120ms forwards; }
  @keyframes check-draw { to { stroke-dashoffset: 0; } }
  .confetti { display: block; position: fixed; z-index: 31; left: 50%; bottom: calc(64px + 40px + env(safe-area-inset-bottom)); width: 0; height: 0; pointer-events: none; }
  .confetti i { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti-burst 840ms var(--ease-out) forwards; }
  .confetti i:nth-child(1) { --x: 89px; --y: -49px; --r: 0deg; background: var(--lime); animation-delay: 0ms; }
  .confetti i:nth-child(2) { --x: 118px; --y: -12px; --r: 53deg; background: #c13584; animation-delay: 20ms; }
  .confetti i:nth-child(3) { --x: 131px; --y: 39px; --r: 106deg; background: #0866ff; animation-delay: 40ms; }
  .confetti i:nth-child(4) { --x: 68px; --y: 27px; --r: 159deg; background: #1f7a4d; animation-delay: 60ms; }
  .confetti i:nth-child(5) { --x: 58px; --y: 76px; --r: 212deg; background: #ffd400; animation-delay: 0ms; }
  .confetti i:nth-child(6) { --x: 13px; --y: 34px; --r: 265deg; background: var(--ink); animation-delay: 20ms; }
  .confetti i:nth-child(7) { --x: -16px; --y: 71px; --r: 318deg; background: var(--lime); animation-delay: 40ms; }
  .confetti i:nth-child(8) { --x: -63px; --y: 97px; --r: 11deg; background: #c13584; animation-delay: 60ms; }
  .confetti i:nth-child(9) { --x: -70px; --y: 33px; --r: 64deg; background: #0866ff; animation-delay: 0ms; }
  .confetti i:nth-child(10) { --x: -121px; --y: 34px; --r: 117deg; background: #1f7a4d; animation-delay: 20ms; }
  .confetti i:nth-child(11) { --x: -92px; --y: -21px; --r: 170deg; background: #ffd400; animation-delay: 40ms; }
  .confetti i:nth-child(12) { --x: -136px; --y: -41px; --r: 223deg; background: var(--ink); animation-delay: 60ms; }
  .confetti i:nth-child(13) { --x: -173px; --y: -81px; --r: 276deg; background: var(--lime); animation-delay: 0ms; }
  .confetti i:nth-child(14) { --x: -112px; --y: -105px; --r: 329deg; background: #c13584; animation-delay: 20ms; }
  .confetti i:nth-child(15) { --x: -126px; --y: -155px; --r: 22deg; background: #0866ff; animation-delay: 40ms; }
  .confetti i:nth-child(16) { --x: -65px; --y: -143px; --r: 75deg; background: #1f7a4d; animation-delay: 60ms; }
  .confetti i:nth-child(17) { --x: -55px; --y: -191px; --r: 128deg; background: #ffd400; animation-delay: 0ms; }
  .confetti i:nth-child(18) { --x: -25px; --y: -237px; --r: 181deg; background: var(--ink); animation-delay: 20ms; }
  .confetti i:nth-child(19) { --x: 15px; --y: -185px; --r: 234deg; background: var(--lime); animation-delay: 40ms; }
  .confetti i:nth-child(20) { --x: 61px; --y: -211px; --r: 287deg; background: #c13584; animation-delay: 60ms; }
  .confetti i:nth-child(21) { --x: 66px; --y: -148px; --r: 340deg; background: #0866ff; animation-delay: 0ms; }
  .confetti i:nth-child(22) { --x: 116px; --y: -151px; --r: 33deg; background: #1f7a4d; animation-delay: 20ms; }
  .confetti i:nth-child(23) { --x: 87px; --y: -97px; --r: 86deg; background: #ffd400; animation-delay: 40ms; }
  .confetti i:nth-child(24) { --x: 130px; --y: -78px; --r: 139deg; background: var(--ink); animation-delay: 60ms; }
  @keyframes confetti-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
}
/* Playbook #5 (finishing steering M): a pressed Share or Connect button keeps its platform colour (a little darker)
   instead of turning lime, and the tinted header strip uses the --r-sm token (8px). */
.plat .share-btn:active, .connect-row.plat .connect-btn:active { background: var(--p); border-color: var(--p); color: var(--p-on); filter: brightness(0.9); }
.plat > .platform, .plat > .draft-head > .platform, .plat .posted-body > .platform { border-radius: var(--r-sm); }
.posted-item.plat, .handoff-kit.plat { overflow: hidden; }
/* Playbook #6: on phones the Approve button sticks to the bottom of its card, just above the tab bar, while you read a
   long draft. overflow: clip (not hidden) on the card so sticky still works; older browsers keep hidden and a normal button. */
@media (max-width: 760px) {
  article.card.plat { overflow: hidden; overflow: clip; }
  .approve-bar { position: sticky; bottom: calc(64px + 8px + env(safe-area-inset-bottom)); z-index: 5; margin: 0 -8px; padding: 8px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--sh-lg); }
}
/* Playbook #7: the Home "Next up" card. One headline, one line, one main button. */
.next-up { margin: 16px 0 24px; border-left: 4px solid var(--lime); }
.next-up .eyebrow { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.next-up .next-title { margin: 0 0 4px; font-family: var(--display); font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.next-up .fine { margin: 0 0 12px; }
.next-up .platform { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.next-up .actions { margin: 0; }
/* Playbook #8: one status chip. 24px, fully rounded, 13/600; text colour carries 4.5:1 on its fill. */
.chip-s { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--ink); background: var(--surface-2); border: 0; }
.chip-s-approved { background: #f1fbd0; }
.chip-s-scheduled { background: #e7f0ff; }
.chip-s-posted { background: #e3f2ea; color: var(--ok); }
.chip-s-needs { background: #fef0e6; color: var(--warn); }
.chip-s-failed { background: #fde8e7; color: var(--danger); }
.draft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.draft-meta .fine { margin: 0; }
.posted-body .platform .chip-s { margin-left: auto; }
.chip { min-height: 24px; border-radius: var(--r-full); font-size: 0.8125rem; font-weight: 600; background: var(--surface-2); border-color: var(--line); }
/* Playbook #9 (P8): empty states. Centred, a 48px icon in a chalk circle, a headline, one sentence, one main button. */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; text-align: center; }
.empty-state .empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-full); background: var(--chalk); color: var(--ink); }
.empty-state .empty-icon .i { width: 24px; height: 24px; }
.empty-state .empty-title { margin: 4px 0 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.25; }
.empty-state p { margin: 0; max-width: 32ch; color: var(--text-2); }
.empty-state .button { margin-top: 8px; }
/* Playbook #10 (P7, P11): native-feeling page changes and presses, CSS only. Text-style buttons keep a clear background
   when pressed (not the lime of the main button), second buttons get their own press, and the cross-fade and the
   .97 press scale run only when the device allows motion. */
.link-button:active, .sheet-close:active, .nav button:active, .group button:active, .side .foot button:active { background: transparent; border-color: transparent; }
button.secondary:active, a.secondary:active, .button.secondary:active { background: var(--surface-2); border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
  button, .button, a.secondary, .tile, .todo a { transition: transform 120ms var(--ease-out); }
  button:active, .button:active, a.secondary:active, .tile:active, .todo a:active { transform: scale(.97); }
}
/* Pete (Nov 4, iPad): a tile that opens a sheet must not move while its sheet is open. Its scale on hover/press shrank the
   fixed scrim drawn by summary::after, which flickered on the left edge. Covers the Create sheet tiles too. */
.sheet[open] > summary.tile:hover, .sheet[open] > summary.tile:active { transform: none; }
/* Playbook #12 (P7): thumbnails reserve their square before they load, on a chalk placeholder that shimmers (motion only).
   While an upload form is sending, each chosen thumbnail shows a progress ring; the page that comes back says "Added ✓". */
.thumb, .picked-thumb, .picked-kind { aspect-ratio: 1; background-color: var(--chalk); }
.media-current .thumb { aspect-ratio: auto; }
.picked li { position: relative; }
.picked.uploading li::before { content: ""; position: absolute; left: 0; top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 6px; background: rgba(20, 22, 26, 0.45); }
.picked.uploading li::after { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -14px; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: var(--lime); border-radius: var(--r-full); }
.added-check { font-weight: 700; color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .thumb, .picked-thumb { background-image: linear-gradient(90deg, var(--chalk) 0%, var(--surface-2) 50%, var(--chalk) 100%); background-size: 200% 100%; animation: chalk-shimmer 1.2s var(--ease-out) infinite; }
  @keyframes chalk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
  .picked.uploading li::after { animation: upload-ring 800ms linear infinite; }
  @keyframes upload-ring { to { transform: rotate(360deg); } }
}
/* Playbook #13 (P13): calmer messages. Red .alert only for real failures; amber .alert.warn when something needs the
   gym; neutral .alert.info for information. Field errors stay next to the field and keep what was typed. */
.alert h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.alert > p { margin: 0 0 0.4rem; }
.alert.warn { background: #fff8eb; border-color: var(--warn); color: var(--ink); border-left: 4px solid var(--warn); }
.alert.warn a { color: var(--ink); }
.alert.info { background: var(--surface-2); border-color: var(--line); color: var(--ink); border-left: 4px solid var(--info); }
.alert.info a { color: var(--ink); }
/* Playbook #15 (P6, P14): sub-tabs are one row of pills that scrolls sideways instead of wrapping onto two rows (the
   current pill is ink). Display-only chips are 24px; any chip people tap is at least 44px. */
.subnav { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 1rem; padding: 2px 0; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { scroll-snap-align: start; }
.subnav a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip, .week-item .chip { min-height: 24px; height: 24px; padding: 0 10px; font-size: 0.8125rem; line-height: 1; white-space: nowrap; }
a.chip, button.chip, label.chip { min-height: 44px; height: auto; padding: 0 14px; }
/* Pete (Oct 31): Settings > Notifications, one card, iOS-style switches. And the header bell. */
.appbar-end { display: flex; align-items: center; gap: 0.35rem; }
.bell { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; }
.bell .i { width: 22px; height: 22px; }
.appbar .bell[aria-current] { color: var(--lime); }
.notif-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.notif-card form { margin: 0; }
.notif-row { display: flex; align-items: center; gap: 0.85rem; min-height: 60px; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); }
.notif-row.master { border-top: 0; cursor: pointer; }
.notif-row .t { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 600; }
.notif-row small { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.notif-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.notif-legend { display: block; width: 100%; box-sizing: border-box; padding: 0.8rem 0.9rem 0.2rem; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.notif-group .choice { border-top: 0; align-items: flex-start; cursor: pointer; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.notif-group .choice { position: relative; }
.notif-group .choice + .choice::before { content: ""; position: absolute; top: 0; right: 0; left: calc(0.9rem + 22px + 0.85rem); border-top: 1px solid var(--line); }
.choice input[type="radio"] { width: 22px; height: 22px; margin: 0.1rem 0 0; flex: none; accent-color: var(--ink); }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border: 0; border-radius: 999px; background: #c7c7cc; cursor: pointer; transition: background 160ms ease; }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 160ms ease; }
.switch:checked { background: #248a3d; }
.switch:checked::before { transform: translateX(20px); }
.switch:disabled { opacity: 0.45; cursor: not-allowed; }
.switch:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* T1: the trial reminder switch is a link or button (it never saves on its own), so its state is aria-checked. */
a.switch, button.switch { display: inline-block; padding: 0; }
/* Pete (Nov 3, 1:46 PM): every switch is a fixed 51x31 pill. A link or button switch picked up the global 44px
   min-height and stretched with multi-line text in a flex row (a tall oval). Pin the size and sit it by the title. */
.switch, a.switch, button.switch, input.switch { box-sizing: border-box; flex: 0 0 51px; width: 51px; min-width: 51px; max-width: 51px; height: 31px; min-height: 31px; max-height: 31px; align-self: flex-start; margin-top: 0.1rem; line-height: 0; }
.notif-row > .inline-form { flex: none; align-self: flex-start; display: inline-flex; }
.switch[aria-checked="true"] { background: #248a3d; }
.switch[aria-checked="true"]::before { transform: translateX(20px); }
.inline-form { display: inline; margin: 0; }
.confirm-sheet { display: block; margin: 0 0.9rem 0.9rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--paper); }
.trial-reminders-off .actions { margin-top: 0.5rem; }
.push-label { flex: 1; cursor: pointer; }
.notif-row.push-help { flex-direction: column; align-items: flex-start; gap: 0.35rem; min-height: 0; padding-top: 0; border-top: 0; }
.push-state, .push-how { margin: 0; color: var(--muted); font-size: 0.9rem; }
.push-state strong { color: var(--ink); }
.push-state[data-state="home-screen"] { color: var(--ink); }
.push-state[hidden], .push-how[hidden], .nojs-save[hidden], .toast[hidden] { display: none; }
.notif-row.push-help:not(:has(> :not([hidden]))) { display: none; }
.app-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0.45rem 0 0; padding: 0; }
.app-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem 0.15rem 0.2rem; border-radius: 999px; background: var(--p-tint); color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.app-chip::before { display: none; }
.app-chip .plat-i, .plat.app-chip .plat-i { width: 1.25rem; height: 1.25rem; padding: 3px; box-sizing: border-box; border-radius: 50%; background: var(--p); color: var(--p-on); }
.notif-row.devices { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.gl-sub { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.device-list { list-style: none; margin: 0; padding: 0; }
.device { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.device .t { display: flex; flex-direction: column; flex: 1; font-weight: 600; }
.device form { margin: 0; }
.footnote { margin: 0.75rem 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.plat-instagram { --p: #C13584; --p-on: #FFFFFF; --p-tint: #FCEAF3; --p-stripe: linear-gradient(180deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.plat-facebook { --p: #0866FF; --p-on: #FFFFFF; --p-tint: #E7F0FF; --p-stripe: #0866FF; }
.plat-x { --p: #14161A; --p-on: #FFFFFF; --p-tint: #EEEEEF; --p-stripe: #14161A; }
.plat-tiktok { --p: #14161A; --p-on: #FFFFFF; --p-tint: #E9FBFB; --p-stripe: linear-gradient(180deg, #25F4EE 0 50%, #FE2C55 50% 100%); }
.plat-snapchat { --p: #FFFC00; --p-on: #14161A; --p-tint: #FFFDE0; --p-stripe: #FFFC00; }
.plat-linkedin { --p: #0A66C2; --p-on: #FFFFFF; --p-tint: #E8F1FA; --p-stripe: #0A66C2; }
.plat-youtube { --p: #CC0000; --p-on: #FFFFFF; --p-tint: #FFECEC; --p-stripe: #CC0000; }
.plat-newsletter { --p: #14161A; --p-on: #FFFFFF; --p-tint: #F3F8E4; --p-stripe: #14161A; }
.plat-download { --p: #3F4450; --p-on: #FFFFFF; --p-tint: #F7F5F0; --p-stripe: #3F4450; }
.nl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.nl-next { display: grid; gap: 0.6rem; padding: 1rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--paper); box-shadow: var(--sh-1, none); }
.nl-next h2 { margin: 0; font-size: 1.15rem; }
.nl-next .when { margin: 0; color: var(--text-2, var(--muted)); }
.nl-next .button, .nl-next button { width: 100%; }
.nl-stub { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--r-md, 12px); background: #E7F0FF; color: var(--ink); font-size: 0.9rem; }
.nl-section { margin: 0 0 1.25rem; }
.nl-section h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.nl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.nl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.6rem; align-items: start; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--paper); }
.nl-item.removed { opacity: 0.55; background: var(--surface-2, #f3f3f0); }
.nl-item.removed strong { text-decoration: line-through; }
.nl-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2, #f3f3f0); display: flex; align-items: center; justify-content: center; }
.nl-item .meta { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--text-2, var(--muted)); }
.nl-item .body { margin: 0.25rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.nl-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nl-tools form { margin: 0; }
.nl-tools button { min-height: 44px; padding: 0 0.8rem; font-size: 0.875rem; }
.nl-frame { display: block; width: 100%; height: min(70vh, 720px); min-height: 420px; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: transparent; vertical-align: top; }
.nl-photos { border: 0; padding: 0; margin: 0 0 1rem; }
.nl-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.5rem; }
.nl-photo { position: relative; display: block; cursor: pointer; }
.nl-photo input { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; }
.nl-photo img, .nl-photo-none { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--line); border-radius: var(--r-md, 12px); background: var(--paper); font-size: 0.85rem; }
.nl-photo input:checked + img, .nl-photo input:checked + .nl-photo-none { border-color: var(--ink, #111); outline: 2px solid var(--ink, #111); }
.nl-check { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--paper); }
.nl-check input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.nl-sum { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; }
.nl-sum li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.nl-sum li span:last-child { font-weight: 600; text-align: right; }
.nl-empty { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-lg, 16px); background: var(--paper); }
.nl-empty .i { width: 40px; height: 40px; }
.nl-empty h2 { margin: 0.5rem 0 0.25rem; }
.nl-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.nl-table th, .nl-table td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.nl-qr { display: block; width: 160px; height: 160px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.nl-quote { margin: 0.5rem 0; padding: 0.6rem 0.8rem; border-left: 3px solid var(--lime); background: var(--surface-2, #f3f3f0); font-size: 0.875rem; }
.nl-bases { display: grid; gap: 0.5rem; border: 0; padding: 0; margin: 0 0 1rem; }
.nl-bases .pill-choice { display: flex; border-radius: 12px; padding: 0.6rem 0.9rem; min-height: 48px; }
@media (max-width: 480px) {
  .nl-table thead { display: none; }
  .nl-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  .nl-table td { display: block; border: 0; padding: 0.15rem 0; }
  .nl-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
}

/* Sign-up links: a long tracked link wraps instead of pushing the page sideways. */
fieldset, .radio-card, .radio-card > span, .field, .check { min-width: 0; }
.radio-card code, .card code, .note code { overflow-wrap: anywhere; word-break: break-all; user-select: all; }
/* Destructive actions: red outline, never the lime primary. */
button.danger, a.button.danger { background: var(--paper); color: var(--danger); border: 2px solid var(--danger); }
button.danger:hover, a.button.danger:hover { background: #fff4f2; }
.data-details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
/* Instagram feed is 4:5 portrait; Facebook and X show the photo as uploaded; TikTok and Snapchat stay 9:16. */
.pv-ig .pv-media { aspect-ratio: 4 / 5; }
.pv-fb .pv-media:not(.pv-empty), .pv-x .pv-media:not(.pv-empty) { aspect-ratio: auto; }
.pv-fb .pv-media:not(.pv-empty) img, .pv-x .pv-media:not(.pv-empty) img, .pv-fb .pv-media:not(.pv-empty) video, .pv-x .pv-media:not(.pv-empty) video { height: auto; max-height: 36rem; object-fit: contain; }
/* Phones: every sub-tab is visible (no tabs hidden off the right edge). Pills wrap into an even grid. */
@media (max-width: 760px) {
  .subnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.4rem; overflow: visible; }
  .subnav a { justify-content: center; padding: 0 0.4rem; font-size: 0.875rem; white-space: normal; text-align: center; line-height: 1.15; }
}
/* Hand-off card (Oct 30): Copy caption right under the caption, Options folded, Share first. */
.kit-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: -0.25rem 0 0.75rem; }
.kit-copy .copy-btn { min-height: 44px; }
.proof-copy code { overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.proof-copy .copy-btn { min-height: 44px; margin-left: 0.25rem; }
.kit-copy .fine:empty { display: none; }
details.kit-options { margin: 0.5rem 0 0.9rem; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 0.85rem; }
details.kit-options > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
details.kit-options[open] { padding-bottom: 0.85rem; }
.handoff-kit .share-btn { width: 100%; justify-content: center; gap: 0.5rem; }
.handoff-kit .kit-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mark-posted { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.mark-posted > button { width: 100%; min-height: 44px; }
details.posted-link > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
/* To approve and Scheduled tile grids (Oct 30). details.sheet is a plain box; only its panel floats. */
details.sheet { border: 0; padding: 0; margin: 0; width: auto; max-width: none; max-height: none; overflow: visible; background: transparent; inset: auto; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; }
.draft-tile { flex-direction: row; align-items: flex-start; gap: 0.75rem; min-height: 112px; }
.draft-tile .tile-thumb { flex: 0 0 auto; width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; background: var(--chalk); display: flex; align-items: center; justify-content: center; }
.draft-tile .tile-thumb .thumb { width: 72px; height: 72px; object-fit: cover; display: block; }
.draft-tile .tile-ph .i { width: 28px; height: 28px; }
.draft-tile .tile-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; flex: 1; }
.draft-tile .tile-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.draft-tile .tile-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.draft-tile .tile-plats { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.draft-tile .tile-plat .i { width: 18px; height: 18px; }
.draft-tile .tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.draft-panel > .card, .draft-panel > article { margin: 0; border: 0; padding: 0; box-shadow: none; }
@media (min-width: 761px) { .draft-sheet[open] > .sheet-panel { width: min(640px, 100vw); } }
.link-tile { text-decoration: none; color: var(--ink); justify-content: center; }
.link-tile strong::after { content: " →"; }
/* Channels: one tile per platform (Oct 30). */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.channel-tile { justify-content: flex-start; }
.channel-tile h3.platform { margin: 0 0 0.25rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; }
.channel-tile form { margin-top: auto; }
.channel-tile button { width: 100%; min-height: 44px; }
.channel-tile .chip { align-self: flex-start; }
/* Membership-software question: chip-style radios, 44px targets, wraps at 390. */
fieldset.membership-software { border: 1px solid var(--line, #d8d4cc); border-radius: 12px; padding: 0.8rem 1rem; margin: 0 0 1rem; min-width: 0; }
fieldset.membership-software legend { font-weight: 600; padding: 0 0.3rem; }
.membership-software .choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.8rem; }
.membership-software .choice-row .check { margin: 0; min-height: 44px; align-items: center; padding: 0 0.8rem; border: 1px solid var(--line, #d8d4cc); border-radius: 999px; }
.membership-software .choice-row .check:has(input:checked) { border-color: currentColor; font-weight: 600; }
.membership-software .choice-row .check input { margin-top: 0; }
.membership-software .choice-row .check label { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.membership-software .membership-other input { min-height: 44px; }
/* Settings mode: standalone panels, not the wizard. */
.back-link { margin: 0 0 0.25rem; }
.back-link a { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; text-decoration: none; font-weight: 600; }
.back-link .back { transform: rotate(180deg); }
nav.seg { display: inline-flex; gap: 0; border: 1px solid var(--line, #d8d4cc); border-radius: 999px; padding: 3px; margin: 0 0 1rem; max-width: 100%; }
nav.seg a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; text-decoration: none; }
nav.seg a[aria-current="page"] { background: var(--ink, #14202b); color: var(--paper, #fff); font-weight: 600; }
.settings-panel { padding-top: 0.5rem; }
details.settings-group { border-bottom: 1px solid var(--line, #d8d4cc); margin: 0; }
details.settings-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; cursor: pointer; padding: 0.5rem 0; }
details.settings-group > summary::-webkit-details-marker { display: none; }
details.settings-group > summary::after { content: "›"; font-size: 1.4rem; line-height: 1; opacity: 0.5; transition: transform 0.15s; }
details.settings-group[open] > summary::after { transform: rotate(90deg); }
.sg-title { font-weight: 600; }
.sg-sum { margin-left: auto; opacity: 0.7; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.sg-body { padding: 0.25rem 0 1rem; }
details.fine-tune { margin: 0 0 1rem; }
details.fine-tune > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.consent-moved p { margin: 0; }
.steps-form li.save-row { list-style: none; }
/* Workouts: 7 columns only when the week has ≥1100px; otherwise 2–3 columns. Text clamps to 2 lines without mid-word breaks. */
.week { container-type: inline-size; }
@media (min-width: 1000px) { .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 700px) { .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1100px) { .week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.week-item { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.week-item-title strong, .week-item > p:not(.week-item-title) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile strong, .tile .fine { white-space: normal; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Media library: filter popover, thumbnail grid with badges. */
.media-bar { display: flex; justify-content: flex-end; gap: 0.5rem; margin: 0 0 0.75rem; }
details.filter-pop { position: relative; }
details.filter-pop > summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; }
details.filter-pop > summary::-webkit-details-marker { display: none; }
details.filter-pop[open] > form { position: absolute; right: 0; z-index: 20; width: min(22rem, calc(100vw - 2rem)); margin-top: 0.4rem; box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
/* Item 31: the upload help line fits the device, with no script. Phones and tablets (and any browser that can't tell)
   see the phone line; a mouse or trackpad sees the computer line. */
.help-pointer { display: none; }
@media (hover: hover) and (pointer: fine) { .help-pointer { display: inline; } .help-touch { display: none; } }
/* Item 31 (Pete, 9:55 PM): on a computer the picker is also a drop zone, with no script. The real file input is laid
   over the whole dashed area at opacity 0, so a click anywhere opens the file picker and a dropped file lands in the
   input natively (the change event fires as for a pick). Phones keep the visually hidden input from css.ts. */
.drag-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .picker-drop { position: relative; border: 2px dashed var(--line); border-radius: 10px; padding: 0.75rem; margin: 0.4rem 0 0.6rem; text-align: center; }
  .picker-drop .picker-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; clip: auto; white-space: normal; opacity: 0; cursor: pointer; z-index: 1; }
  .picker-drop .picker-button { margin: 0 auto 0.4rem; }
  .picker-drop:hover, .picker-drop:focus-within { border-color: var(--ink); }
  .picker-drop .drag-hint { display: block; margin: 0; font-size: 0.9rem; }
  .compact .picker-drop { padding: 0.5rem; }
}
/* Item 31: a compact grid of square thumbnails (3 across on a phone, more on wider screens). A tile opens its sheet. */
.media-grid { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: 4px; }
@media (min-width: 761px) { .media-grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 6px; } }
.media-cell { min-width: 0; }
.media-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--chalk); list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.media-tile::-webkit-details-marker { display: none; }
.media-tile .thumb { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; max-height: none; border-radius: 0; pointer-events: none; }
.media-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.media-tile:active .thumb { opacity: 0.7; }
.media-tile .tile-badge { position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; }
.media-tile .tile-flag { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); box-sizing: border-box; }
.media-detail-sheet > .sheet-panel.media-card { padding: 0 0 calc(1rem + env(safe-area-inset-bottom)); }
.media-detail-sheet .sheet-head { padding: 0.75rem 1rem 0.5rem; }
.media-card { min-width: 0; }
.media-detail-sheet[open] > .sheet-panel.media-card { display: flex; flex-direction: column; }
.media-card-thumb { display: block; background: var(--chalk); }
.media-card-thumb .thumb { width: 100%; height: auto; max-height: 60vh; object-fit: contain; display: block; max-width: none; aspect-ratio: auto; border-radius: 0; }
.media-card-body { padding: 0.75rem 1rem 0; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.media-card-body p { margin: 0; }
.media-card-name strong { overflow-wrap: anywhere; }
.media-card .badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.media-card .chip { white-space: normal; height: auto; min-height: 24px; }
.media-verdict .verdict-k { font-weight: 600; }
.media-verdict.yes strong { color: var(--ok, #1d7a3a); }
.media-card .button { min-height: 44px; }
details.media-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; }
/* Results: number tiles first, details below. */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.page-head h1 { margin: 0; }
.page-head form { margin: 0; }
.page-head button, .page-head .button { min-height: 44px; }
.kpi-tiles { list-style: none; padding: 0; margin: 0.75rem 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 761px) { .kpi-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--paper); padding: 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.kpi .kpi-k { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.kpi .stat { font-size: 2rem; line-height: 1.1; margin: 0; }
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
@media (min-width: 1000px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.results-grid .card { margin: 0; }
/* Link page: tiles that open sheets, link rows with a "…" menu, and a phone-frame live preview beside (desktop) or on top (mobile). */
.links-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.links-preview { order: -1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
@media (min-width: 1100px) { .links-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .links-preview { order: 0; position: sticky; top: 1rem; } }
.phone-frame { width: min(100%, 320px); aspect-ratio: 9 / 16; max-height: 420px; border: 10px solid var(--ink); border-radius: 32px; overflow: hidden; background: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
@media (min-width: 1100px) { .phone-frame { max-height: 600px; } }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.link-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.link-rows { list-style: none; padding: 0; margin: 0; }
.link-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.link-row:first-child { border-top: 0; }
.link-row-main { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.link-row-main p { margin: 0; }
.link-url { overflow-wrap: anywhere; }
.link-row .badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.link-row-actions { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.link-row-actions form { margin: 0; }
.link-row-actions button { min-height: 44px; }
details.row-menu { position: relative; }
details.row-menu > summary { list-style: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }
details.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list { position: absolute; right: 0; z-index: 20; margin-top: 0.3rem; min-width: 11rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 0.3rem; }
.row-menu-list form { margin: 0; }
.row-menu-list button { width: 100%; min-height: 44px; justify-content: flex-start; text-align: left; }
/* Billing: plan summary card first, then Change plan / Invoices / Cancel as rows that open. Wording unchanged. */
.plan-summary { border-width: 2px; }
.plan-summary .status { font-size: 1.1rem; font-weight: 700; }
/* Pete (Nov 3, 1:44 PM): Billing card. Plan name + badge on one row (wraps at 375 px), plain rows, no grey pill. */
.plan-summary .plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.plan-summary .plan-head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.plan-summary .billing-badge { flex: none; }
.plan-summary .status { background: none; padding: 0; border-radius: 0; font-size: 1rem; font-weight: 600; }
.plan-summary .bill-row { margin: 0.35rem 0 0; overflow-wrap: anywhere; }
.plan-summary .bill-row:first-of-type { font-weight: 700; }
.plan-summary .bill-founding { margin-top: 0.2rem; }
details.billing-row { padding: 0; }
details.billing-row > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 56px; padding: 0.5rem 1rem; cursor: pointer; }
details.billing-row > summary::-webkit-details-marker { display: none; }
details.billing-row > summary h2 { margin: 0; font-size: 1.05rem; }
details.billing-row > summary::after { content: "›"; font-size: 1.4rem; color: var(--muted); transition: transform 0.15s; }
details.billing-row[open] > summary::after { transform: rotate(90deg); }
details.billing-row > :not(summary) { padding: 0 1rem 1rem; }
details.billing-row > summary .fine { margin-left: auto; }
/* Billing: the updated agreement sits at the top as a banner. Wording and clickwrap unchanged. */
.agreement-banner { border-left: 6px solid var(--accent, #0a66c2); background: var(--surface-2, #f4f7fb); }
.agreement-banner h2 { margin-top: 0; }
/* Draft media picker: one button opens a sheet; tapping a library tile attaches it. */
.media-sheet > summary.button { display: inline-flex; min-height: 44px; align-items: center; list-style: none; }
/* Item 19: the phone picker on a draft card is a label for the hidden file input; the input is placed inside its own
   form (position: relative) so focusing it never scrolls the page away from the draft. */
.upload-picker { position: relative; }
.media-add .picker-button { display: inline-flex; min-height: 44px; margin: 0.25rem 0 0.5rem; }
.media-sheet > summary::-webkit-details-marker { display: none; }
.lib-tile { display: grid; gap: 0.25rem; padding: 4px; min-height: 44px; border: 2px solid var(--line, #ddd); border-radius: 8px; background: var(--paper, #fff); color: inherit; font: inherit; font-size: 0.8rem; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.lib-tile:hover, .lib-tile:focus-visible { border-color: var(--ink); }
.lib-tile .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.lib-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Brand kit (Settings): summary card, mini preview, tiles that open sheets. */
.brand-tiles > form { display: contents; }
.brand-summary-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.brand-logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-md, 8px); display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.brand-swatches { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.brand-swatch { display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.brand-fonts { margin: 0; }
.brand-mini .preview-card { max-width: 640px; }
.brand-mini .preview-grid { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: start; }
@media (max-width: 480px) { .brand-mini .preview-grid { grid-template-columns: 1fr; } .brand-mini .post-tile { max-width: 220px; } }
.font-group { border: 1px solid var(--line); border-radius: var(--r-md, 8px); margin: 0 0 0.6rem; }
.font-group > summary { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; min-height: 48px; padding: 0.5rem 0.8rem; cursor: pointer; }
.font-group[open] > summary { border-bottom: 1px solid var(--line); }
.font-group .choice-group, .font-group fieldset { border: 0; margin: 0; padding: 0.5rem 0.8rem; }
.font-group .font-cards { grid-template-columns: 1fr; gap: 0; }
.font-group .font-card { flex-direction: row; align-items: center; gap: 0.6rem; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 48px; padding: 0.4rem 0.2rem; }
.font-group .font-card .font-name { min-width: 8rem; font-weight: 700; }
.font-group .font-card .font-sample { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-sheet .logos .card { margin-bottom: 0.8rem; }
/* Posted: compact filter bar. */
.posted-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 0.75rem; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong, #bbb); border-radius: 999px; overflow: hidden; max-width: 100%; }
.segmented .seg { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; text-decoration: none; color: inherit; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.segmented .seg + .seg { border-left: 1px solid var(--line-strong, #bbb); }
.segmented .seg.on { background: var(--ink); color: var(--paper, #fff); }
.pchips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pchip { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0 0.7rem; border: 1px solid var(--line-strong, #bbb); border-radius: 999px; text-decoration: none; color: inherit; font-size: 0.9rem; }
.pchip.on { border: 2px solid var(--ink); background: var(--chalk, #f1f1ee); font-weight: 700; }
.pchip.off { opacity: 0.45; cursor: not-allowed; }
.posted-bar .clear-link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 480px) { .segmented { width: 100%; } .segmented .seg { flex: 1 1 0; justify-content: center; padding: 0 0.4rem; font-size: 0.85rem; } }
/* Newsletter: uniform 3 x 2 tiles; one short form per type in "Add to this issue". */
@media (min-width: 761px) { .tiles.nl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nl-tiles > .tile, .nl-tiles > details > summary.tile { height: 100%; }
.add-types { display: grid; gap: 0.5rem; }
.add-type > summary.button { display: flex; width: 100%; min-height: 48px; align-items: center; list-style: none; }
.add-type > summary::-webkit-details-marker { display: none; }
.add-type[open] > summary.button { background: var(--ink); color: var(--paper, #fff); }
.add-type form { padding: 0.75rem 0 0.25rem; }
.add-type input:not([type=radio]):not([type=checkbox]), .add-type textarea { width: 100%; max-width: none; }
.nl-empty button[disabled] { opacity: 0.5; cursor: not-allowed; }
/* Photo release (and other record tables): stacked rows on phones, a 200px QR. */
.release-qr { width: 200px; max-width: 100%; }
.release-qr svg { display: block; width: 200px; height: 200px; max-width: 100%; }
.release-url, .release-url a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .stack-table { min-width: 0 !important; width: 100%; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line, #ddd); }
  .stack-table td { display: flex; gap: 0.75rem; justify-content: space-between; padding: 0.2rem 0; border: 0; overflow-wrap: anywhere; text-align: right; }
  .stack-table td[data-label]::before { content: attr(data-label); font-weight: 600; text-align: left; flex: none; }
  .stack-table td[colspan] { justify-content: flex-start; text-align: left; }
}
/* Leads empty state */
.empty-state { text-align: center; padding: 1.5rem 1rem; }
.empty-state h2 { margin-top: 0; }
/* Sign-up links: the X profile link in a read-only box that is easy to select. */
.copy-link input { width: 100%; max-width: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; min-height: 44px; }
/* Posting rules: one row per setting. */
.rule-rows { display: grid; gap: 0; }
.rule-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line, #ddd); min-height: 44px; }
.rule-row .check { flex: 1 1 18rem; margin: 0; }
.rule-row.locked { opacity: 0.85; }
details.rule-row { display: block; }
details.rule-row > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; min-height: 44px; }
details.rule-row > summary::-webkit-details-marker { display: none; }
.rule-label { display: grid; }
details.rule-row[open] > summary .button { opacity: 0.6; }
.rule-sheet { padding-top: 0.5rem; }
/* Team: member rows with a role chip and a … menu; Invite in a sheet. */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.page-head h1 { margin: 0; }
.invite-sheet > summary.button { list-style: none; min-height: 44px; }
.invite-sheet > summary::-webkit-details-marker { display: none; }
.member-rows { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--line); }
.member-row { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.member-email { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-menu-spacer { width: 44px; flex: none; }
.role-picker { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; display: grid; gap: 0.5rem; }
.role-picker legend { font-weight: 600; margin-bottom: 0.4rem; }
.row-menu-list .danger { color: #b42318; border-color: #b42318; }
/* Security: one row per setting; Replace / Turn off open in a sheet; Delete at the bottom in red. */
.sec-rows { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; min-height: 56px; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; }
.sec-label { display: inline-flex; align-items: center; gap: 0.5rem; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sec-actions form { margin: 0; }
.sec-actions button, .sec-actions .button, .sec-sheet > summary { min-height: 44px; }
.sec-sheet > summary { list-style: none; }
.sec-sheet > summary::-webkit-details-marker { display: none; }
.sec-danger { border-color: var(--danger); margin-top: 1.5rem; }
.delete-warning { font-weight: 600; color: var(--danger); }
.standing-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.standing-row .standing-sheet { flex: 1 1 auto; }
.standing-row .standing-off button { min-height: 44px; }
.standing-terms { white-space: pre-line; }
.radio-card.disabled { opacity: .7; }
.standing-sheet > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.standing-sheet > summary .rule-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.standing-sheet > summary .chip { width: auto; flex: 0 0 auto; }
.remove-confirm > summary { min-height: 44px; display: inline-flex; align-items: center; }
.remove-confirm[open] > summary { margin-bottom: 8px; }
.remove-confirm form button { min-height: 44px; }
/* Item 30: Close in a sheet is a quiet pill, not a bordered 44px box (button.secondary used to win). */
button.secondary.sheet-close { width: auto; min-width: 44px; min-height: 44px; height: auto; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1; flex: none; }
button.secondary.sheet-close:hover { background: var(--chalk); border-color: var(--ink); opacity: 1; }
button.secondary.sheet-close:active { background: var(--line); border-color: var(--ink); transform: scale(0.97); }
button.secondary.sheet-close:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Item 30: what works for a link, right under the field; the preview list. */
.import-outline { margin: 0.5rem 0 1rem; font-size: 0.9rem; color: var(--muted); }
.import-fit { margin: 0.5rem 0 0.15rem; color: var(--ink); }
.import-outline ul { margin: 0; padding-left: 1.1rem; }
.import-outline li { margin: 0.15rem 0; }
.import-preview { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.import-entry h2 { font-size: 1.05rem; margin: 0.15rem 0 0.35rem; }
.import-date { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.import-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
/* Item 34 (Pete, Nov 1): everything clients press in /app. CSS and markup only, no script (CoC Q1).
   Pills: one look per meaning, and never colour alone. The word is always there, and a mark adds a shape:
   a tick for on/approved/posted, "!" for anything that needs the owner, a cross for failed, a ring for scheduled.
   .chip-ok and .chip-warn (Connected, Approved, Waiting for approval, Under 18) now match .chip-s-approved and .chip-s-needs. */
.chip.chip-ok { background: #f1fbd0; border-color: #c9e86a; color: var(--ink); }
.chip.chip-warn { background: #fef0e6; border-color: #f6c9a6; color: var(--warn); }
.chip-s-approved::before, .chip-s-posted::before, .chip.chip-ok::before { content: "✓"; content: "✓" / ""; margin-right: 5px; font-weight: 700; }
.chip-s-needs::before, .chip.chip-warn::before { content: "!"; content: "!" / ""; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-right: 5px; border-radius: 50%; background: currentColor; color: inherit; font-size: 0.65rem; font-weight: 800; line-height: 1; -webkit-text-fill-color: #fff; }
.chip-s-failed::before { content: "×"; content: "×" / ""; margin-right: 4px; font-weight: 800; font-size: 1rem; line-height: 1; }
.chip-s-scheduled::before { content: ""; width: 8px; height: 8px; margin-right: 6px; border: 2px solid currentColor; border-radius: 50%; }
.chip-s-draft { box-shadow: inset 0 0 0 1px var(--line); }
/* Item 35 (Pete, Nov 2): one app's own caption. The pill keeps its word and adds a pen mark; the second choice
   ("Edit caption for X only") is a quiet 44px pill, the caption at the top stays the filled button. */
.chip-s-own { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.chip-s-own::before { content: "✎"; content: "✎" / ""; margin-right: 5px; font-weight: 700; }
.app-over p, .app-own p, .app-own-status p { margin: 0; }
.app-own-status { margin: 0 0 12px; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--chalk); }
.app-own { margin: 0 0 12px; }
.own-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
.own-actions form { margin: 0; }
.own-actions a.button, .own-actions button { width: auto; min-height: 44px; padding: 0 1rem; text-decoration: none; flex: none; }
.app-own-text > summary.own-edit-summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.app-own-text > summary.own-edit-summary::-webkit-details-marker { display: none; }
.app-own-text > summary.own-edit-summary:active { background: var(--line); transform: scale(0.97); }
.app-own-text[open] > summary.own-edit-summary { background: var(--chalk); border-color: var(--ink); }
.own-help { margin: 0.5rem 0; }
/* Steering A (Pete, Nov 2): a week tile with a post is one link to that post's review card. The whole tile is the
   target (44px at least), nothing inside it is pressable, and it gets the item 34 press look. */
.week-item.has-link { padding: 0; }
.week-item-link { display: block; min-height: 44px; padding: 0.45rem; border-radius: 10px; color: inherit; text-decoration: none; cursor: pointer; transition: background-color 120ms ease, transform 120ms ease; }
.week-item-link > p { margin: 0.1rem 0; font-size: 0.88rem; }
.week-item-link > p:not(.week-item-title) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.week-item-link .draft-stage { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.week-item-link:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.week-item-link:active { background: var(--line); transform: scale(0.98); }
@media (hover:none) { .week-item-link:hover { box-shadow: none; background: var(--line); } }
@media (prefers-reduced-motion: reduce) { .week-item-link { transition: none; } .week-item-link:active { transform: none; } }
/* Steering B (Pete, Nov 2): nothing floats over an app's preview. TikTok's settings link is a normal block below the
   preview; a sticky approve bar only ever sticks inside its own Approve form (When, How, the button), never over the
   preview above it, and any approve bar that is not in a form stays in flow. */
.actions.tiktok-settings { position: static; margin: 12px 0; }
.actions.tiktok-settings a.button { min-height: 44px; text-decoration: none; }
.approve-bar:not(form .approve-bar) { position: static; box-shadow: none; margin: 12px 0; }
/* The saved-sheets header in the Workout sheets panel: pills, then a full-size link to the list. */
.sheet-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.25rem 0 1.25rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--chalk); }
.sheet-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; min-width: 0; }
.sheet-pills .chip-s { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
a.button.sheet-summary-link { width: auto; min-height: 44px; padding: 0 1rem; gap: 0.35rem; text-decoration: none; flex: none; }
.sheet-summary-link .chev { font-size: 1.2em; line-height: 1; }
.sheet-source .sheet-pills { margin: 0.25rem 0 0.5rem; }
/* Fix 5 (Pete, Nov 3): Your sheets as a menu, one check mark for the sheet in use, and one back control on detail pages. */
p.backrow.detail-back { display: block; }
.sheet-menu-form { margin: 0.25rem 0 0.5rem; }
.sheet-menu { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--chalk); overflow: hidden; }
.sheet-row { display: flex; align-items: center; gap: 0.5rem; min-height: 56px; padding: 0 0.5rem 0 0.25rem; }
.sheet-row + .sheet-row { border-top: 1px solid var(--line); }
.sheet-pick { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; box-shadow: none; color: inherit; }
.sheet-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; line-height: 1; }
.sheet-pick.on .sheet-check { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sheet-link { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 0.5rem; align-items: center; padding: 0.5rem 0; color: inherit; text-decoration: none; }
.sheet-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-state { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; }
.sheet-link .chev { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3em; opacity: 0.6; }
.sheet-menu-help { margin: 0.5rem 0 1rem; }
/* Fix 6: Add a sheet, one simple card; Upload a file and the sharing help are quiet disclosures under it. */
.sheet-add-card { padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--chalk); }
.sheet-add-card .field { margin-bottom: 0.5rem; }
.sheet-upload-opt, .sheet-how { margin: 0.75rem 0 0; }
.sheet-upload-opt > summary, .sheet-how > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.sheet-upload-opt form { margin: 0.25rem 0 0; }

/* Links that sit side by side (Settings, Remove): each is its own 44px target. */
.link-actions { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0.25rem 0 0; }
.link-actions a { display: inline-flex; align-items: center; min-height: 44px; }
/* Plain text links in /app (Back to Workouts, Workout sheets, Excel): a press look, a taller hit area that does not move
   the text (padding on an inline box leaves the line alone), and the same ring as buttons. */
main a:not([class]), footer.site a:not([class]) { text-underline-offset: 3px; padding-block: 0.6em; border-radius: 4px; }
main a:not([class]):active, footer.site a:not([class]):active { opacity: 0.6; text-decoration-thickness: 2px; }
main p:not(.fine) > a:only-child:not([class]) { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
/* Phone check (16 Nov 2026): the five footer legal links share one <p>, so the only-child rule never applied. Give each a 44x44 tap area without changing the type. */
footer.site a:not([class]) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; min-width: 44px; }
main a:focus-visible, footer.site a:focus-visible, main summary:focus-visible, .sheet-panel :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Same pressed look while the next page loads on touch screens (written (hover:none) so the item 28 block stays first). */
@media (hover:none) {
  main a:not([class]):hover, footer.site a:not([class]):hover { opacity: 0.6; }
  button.secondary.sheet-close:hover { background: var(--line); border-color: var(--ink); opacity: 1; }
}
/* Second forms in a panel (upload under the link) get room, and a native file field gets a pill button, 44px tall. */
.sheet-panel form + form { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.field > input[type="file"] { min-height: 44px; max-width: 100%; font: inherit; border: 0; padding: 0; background: transparent; }
.field > input[type="file"]::file-selector-button { min-height: 44px; margin-right: 0.75rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.field > input[type="file"]::file-selector-button:hover { background: var(--chalk); border-color: var(--ink); }
.field > input[type="file"]:active::file-selector-button { background: var(--line); border-color: var(--ink); }
.sheet-sources { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
/* Request C (Pete, Nov 2): an open app section is clearly "the Snapchat section". The header is tinted with an
   app-coloured line under it, a 6px brand edge runs to the end of the section, a brand border with rounded corners
   and a faint tint wrap it, and the Draft pills and the Preview label take the app colour. Text stays ink on the
   light tints, and --p-on (checked for AA) on the full colour. X and TikTok use ink, so their edge reads as a
   strong black frame; Snapchat's border is a deeper yellow so the frame still shows on white. */
.app-section.plat, .posted-item.plat, .tile-plat.plat { --p-edge: var(--p); --p-line: var(--p); }
.posted-item.plat-snapchat, .tile-plat.plat-snapchat, .app-section.plat-snapchat { --p-edge: #E0D400; --p-line: #C9BE00; }
.posted-item.plat-instagram, .tile-plat.plat-instagram, .app-section.plat-instagram { --p-line: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.posted-item.plat-tiktok, .tile-plat.plat-tiktok, .app-section.plat-tiktok { --p-line: linear-gradient(90deg, #25F4EE 0 50%, #FE2C55 50% 100%); }
.app-section.plat > .app-summary { padding-left: 14px; padding-right: 8px; }
.app-section.plat.app-open, .posted-item.plat, .app-section.plat[open] { border: 2px solid var(--p-edge); border-left: 0; border-radius: 12px; margin: 10px 0; background: var(--paper); background: color-mix(in srgb, var(--p-tint) 45%, var(--paper)); }
.app-section.plat.app-open::before, .posted-item.plat::before, .app-section.plat[open]::before { width: 6px; top: -2px; bottom: -2px; border-radius: 12px 0 0 12px; }
.app-section.plat.app-open > .app-summary, .posted-item.plat .posted-body > .app-summary, .app-section.plat[open] > .app-summary { padding-left: 18px; padding-right: 10px; border-radius: 0 10px 0 0; color: var(--ink); background-color: var(--p-tint); background-image: var(--p-line); background-size: 100% 3px; background-position: left bottom; background-repeat: no-repeat; padding-bottom: calc(0.4rem + 3px); }
.app-section.plat.app-open > .app-body, .app-section.plat[open] > .app-body { padding: 0.75rem 12px 0.9rem 18px; }
.app-section.plat.app-open .chip-s-draft, .app-section.plat.app-open .pv-tag, .app-section.plat[open] .chip-s-draft, .app-section.plat[open] .pv-tag { background: var(--p); color: var(--p-on); }
.app-section.plat.app-open > .app-summary .plat-i, .posted-item.plat .app-summary .plat-i, .app-section.plat[open] > .app-summary .plat-i { color: var(--ink); }
.app-section.plat-snapchat.app-open > .app-summary, .posted-item.plat-snapchat .posted-body > .app-summary, .app-section.plat-snapchat[open] > .app-summary { background-color: var(--p); }
.app-section.plat-snapchat.app-open > .app-summary .chip-s-draft, .app-section.plat-snapchat[open] > .app-summary .chip-s-draft { background: var(--ink); color: #fff; }
/* Fix 3 (Pete, Nov 3): Scheduled cards (.app-open, always open) and Posted rows wear the open To approve section
   above, through the same rules and colours; a Scheduled card has no fold arrow. Tile app icons take the same
   tinted header and app-coloured line (TikTok cyan/red, Snapchat yellow, Instagram gradient). */
.app-section.app-open > .app-summary { cursor: default; }
.app-section.app-open > .app-summary::after { content: none; }
article.card.app-card > .app-section { margin-bottom: 0; }
.posted-item.plat .posted-body > .app-summary { margin: 0 0 0.35rem; min-height: 0; flex-wrap: wrap; }
.draft-tile .tile-plat.plat { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 4px 6px; background-color: var(--p-tint); background-image: var(--p-line); background-size: 100% 3px; background-position: left bottom; background-repeat: no-repeat; }
.draft-tile .tile-plat.plat::before { display: none; }
.draft-tile .tile-plat.plat .plat-i { color: var(--ink); }
.draft-tile .tile-plat.plat-snapchat { background-color: var(--p); }
/* Fix 4: the send time beside the chip on Scheduled tiles and cards, and the Pick a time link. */
.send-when { font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.send-pick { font-size: 0.82rem; font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }
/* App fixes item 2 (Pete, Nov 3): on every per-app header (To approve, Scheduled, Posted, the post sheet) the send time
   and the Pick a time link sit on their own line under the app name, so nothing runs off a 375 or 390 px screen. The
   header wraps, the name can break, and the time line starts under the name (icon 1.25rem + gap 0.5rem). CSS only. */
.app-summary { flex-wrap: wrap; row-gap: 0.15rem; }
.app-summary .app-name { min-width: 0; overflow-wrap: anywhere; }
.app-summary .chip-s { max-width: 100%; white-space: normal; }
.app-summary > .send-when, .app-summary > .send-pick { order: 10; flex: 1 0 100%; padding-left: 1.75rem; white-space: normal; }
.draft-tile .tile-foot .send-when { flex: 1 0 100%; white-space: normal; }
/* App fixes item 4: the Brand voice and drafts card, brand voice first, the checklist right above the button. */
.brand-drafts .bd-sub { margin: 0.25rem 0 0.75rem; }
.brand-drafts section { border-top: 1px solid var(--line, #d9d6cc); padding-top: 0.75rem; margin-top: 0.75rem; }
.brand-drafts h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.brand-drafts .bd-check-h { margin: 0.75rem 0 0.35rem; font-size: 0.95rem; }
.brand-drafts .bd-check { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.brand-drafts .bd-check li { min-height: 32px; display: list-item; }
/* Pete (Nov 3, Media): Add photos or videos as two steps. Step 2 is secondary and disabled until a file is chosen. */
/* Pete (Nov 3, E/E3): Link page. The full address wraps, the edit tiles sit with the preview, and the preview gets an
   outline while one of those sheets is open. */
.link-share .link-full { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.link-share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.link-share-actions .button { min-height: 44px; }
.link-edit .section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.link-edit .section-head h2 { margin: 0; }
.link-undo { margin: 0; max-width: 18rem; }
.link-undo button { min-height: 44px; }
.link-undo .fine { margin: 0.25rem 0 0; }
.short-list .link-url, .link-rows .link-url { overflow-wrap: anywhere; word-break: break-word; }
.links-layout:has(.link-edit details.sheet[open]) .phone-frame { outline: 3px solid var(--lime, #c6f432); outline-offset: 3px; }
.picked-count { margin: 0.35rem 0 0; font-weight: 600; }
.picked-count:empty { display: none; }
.upload-step2 button[disabled] { opacity: 0.55; cursor: not-allowed; }
/* Pete (Nov 3, Voice tab): the suggestion next to the current picks, and its confirm sheet. */
.suggest-compare { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.95rem; }
.suggest-compare th, .suggest-compare td { text-align: left; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--line, #d9d6cc); vertical-align: middle; overflow-wrap: anywhere; }
.suggest-compare thead th { font-size: 0.82rem; color: var(--muted, #555); }
.suggest-compare tr.differs td:last-child { font-weight: 700; }
.suggest-compare .swatch { width: 18px; height: 18px; vertical-align: middle; }
.suggest-use-row { margin: 0.5rem 0; }
.confirm-sheet > summary.button { display: inline-flex; list-style: none; }
.confirm-sheet > summary.button::-webkit-details-marker { display: none; }
.suggest-changes { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; }
.suggest-again { margin-top: 0.75rem; }
/* App fixes item 1: the suggested post date under a post's title on To approve (card and tile). */
.suggested-date { display: block; margin: 0 0 0.25rem; font-weight: 600; color: var(--ink); }

/* Request D (Pete, Nov 2): social accounts on the public link page are branded chips, the app's colour from request C
   (tint, brand border, brand edge on the left; Instagram and TikTok use their gradient edge). Ink text on the tint
   meets AA for every app (tests/unit/steering-c-1102). Inline SVG icons only, no outside requests. */
.social-chips { list-style: none; padding: 0; margin: 0.75rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-chips li { margin: 0; }
.social-chip { --p-edge: var(--p); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 16px 0 18px; position: relative; overflow: hidden; border: 2px solid var(--p-edge); border-radius: 999px; background: var(--p-tint); color: #14161A; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.social-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--p-stripe, var(--p)); }
.social-chip.plat-snapchat { --p-edge: #C9BE00; }
.social-chip .plat-i { color: #14161A; }
.social-chip:hover { background: var(--p); color: var(--p-on); }
.social-chip:hover .plat-i { color: var(--p-on); }
.social-chip:active { transform: scale(0.97); filter: brightness(0.95); }
.social-chip:focus-visible { outline: 3px solid #14161A; outline-offset: 2px; }

/* Request E: Type as radio chips, and only the address field for that type (CSS :has(), no script). Browsers
   without :has() show every field, each labelled; the server reads the one for the chosen type. */
.kind-chips { border: 0; padding: 0; margin: 0 0 0.75rem; }
.kind-chips legend { font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-radio { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip-pick { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip-pick:active { transform: scale(0.97); background: var(--line); }
.chip-radio:checked + .chip-pick { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-radio:focus-visible + .chip-pick { outline: 3px solid var(--ink); outline-offset: 2px; }
.dest { margin-bottom: 0.75rem; }
@supports selector(:has(*)) {
  #add-link-form .dest { display: none; }
  #add-link-form:has(#kind-url:checked) .dest-url,
  #add-link-form:has(#kind-phone:checked) .dest-phone,
  #add-link-form:has(#kind-email:checked) .dest-email,
  #add-link-form:has(#kind-intro:checked) .dest-intro,
  #add-link-form:has(#kind-hours:checked) .dest-hours { display: block; }
}

/* Request F: photo tiles (item 31's grid). A cleared photo is a radio tile; any other photo is dimmed with its state
   and the reason under it, and has no radio, so it can't be chosen. */
.photo-pick { border: 0; padding: 0; margin: 0 0 0.75rem; }
.photo-pick legend { font-weight: 600; padding: 0; }
.pick-grid { margin-top: 0.35rem; }
.pick-radio { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pick-tile { min-height: 44px; min-width: 44px; box-sizing: border-box; border: 2px solid transparent; }
.pick-none { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink); border: 2px dashed var(--line-strong); }
.pick-radio:checked + .pick-tile { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--lime); }
.pick-radio:checked + .pick-tile::after { content: "✓"; position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.pick-radio:focus-visible + .pick-tile { outline: 3px solid var(--ink); outline-offset: 2px; }
.pick-tile.is-off { cursor: not-allowed; }
.pick-tile.is-off .thumb { opacity: 0.45; filter: grayscale(1); }
.pick-state { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }
.pick-why { margin: 0.25rem 0 0; font-size: 0.8rem; overflow-wrap: anywhere; }
.link-photo-upload { margin-bottom: 1rem; }

/* Request G: the date and time pair fits on an iPhone. iOS gives datetime-local a wide intrinsic size; let it shrink. */
.link-when { border: 0; padding: 0; margin: 0 0 0.75rem; min-width: 0; }
.sheet-panel input[type="datetime-local"], .sheet-panel input[type="date"], .sheet-panel input[type="time"] { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; -webkit-appearance: none; appearance: none; }
#add-link-form, #add-link-form .field { min-width: 0; max-width: 100%; }

/* Request H: the × at the top right of every sheet, a plain link back (no script needed), and Cancel next to save. */
a.sheet-close.sheet-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin-left: auto; border-radius: 50%; color: var(--ink); font-size: 1.75rem; line-height: 1; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.sheet-close.sheet-x:hover { background: var(--chalk); opacity: 1; }
a.sheet-close.sheet-x:active { background: var(--line); transform: scale(0.95); }
a.sheet-close.sheet-x:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sheet-head:not(:has(h2, .fine)) { justify-content: flex-end; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sheet-actions .button.secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Item 35 requests K and M (Pete, Nov 2): the suggested post time at the top of a card, and Edit beside it in When. */
.suggest-bar { margin: 0 0 0.9rem; padding: 0.75rem 0.85rem; border: 2px solid var(--ink); border-radius: var(--r-md, 14px); background: #f4ffd6; }
.suggest-bar h3, .suggest-bar h4 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.suggest-bar .suggest-time { font-weight: 700; font-size: 1.05rem; }
.suggest-bar .fine { margin: 0.2rem 0 0.5rem; }
.suggest-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.suggest-actions form { margin: 0; }
.suggest-actions button, .suggest-actions summary.button { min-height: 44px; }
details.suggest-edit > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
details.suggest-edit > summary::-webkit-details-marker { display: none; }
details.suggest-edit[open] { flex-basis: 100%; }
details.suggest-edit form { margin-top: 0.6rem; }
details.suggest-edit input[type="datetime-local"] { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; }
.when-edit { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 0.5rem; margin-left: 0.35rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.when-edit:hover { color: var(--ink); text-decoration-thickness: 2px; }
.when-edit:active { transform: scale(0.96); }
h3.sub-head { margin: 1rem 0 0.25rem; font-size: 1rem; }
/* Item 35 request L: phone and library icons on the two media buttons. */
svg.media-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; margin-right: 0.4rem; }
.lib-hint { margin: 0.25rem 0 0.6rem; }
/* Item 35 requests I and J: a Posts list card scrolls sideways to show More (grey) and Delete (red). CSS scroll snap,
   no script. The … button and the :target sheets work with no swipe. */
.swipe-row { position: relative; min-width: 0; }
.swipe-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-md, 14px); }
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-main { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.swipe-acts { flex: none; display: flex; scroll-snap-align: end; }
.swipe-btn { display: flex; align-items: center; justify-content: center; width: 5.25rem; min-height: 44px; color: #fff; font-weight: 700; text-decoration: none; }
.swipe-more { background: #5b6068; }
.swipe-del { background: #b3261e; border-radius: 0 var(--r-md, 14px) var(--r-md, 14px) 0; }
.swipe-acts .swipe-btn:only-child { border-radius: 0 var(--r-md, 14px) var(--r-md, 14px) 0; }
.swipe-btn:active, .row-dots:active, .act-btn:active { transform: scale(0.96); filter: brightness(0.92); }
.swipe-btn:focus-visible, .row-dots:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.row-dots { position: absolute; top: 0.35rem; right: 0.35rem; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 1.35rem; font-weight: 700; text-decoration: none; line-height: 1; }
.row-dots:hover { border-color: var(--ink); }
.swipe-row > details.sheet[open] ~ .row-dots, .swipe-row:has(details.sheet[open]) .row-dots { display: none; }
/* Item 39 (Pete, Nov 2): an open post sheet is position: fixed, but its panel sits inside the row's sideways scroller,
   and iPhone Safari clipped it to that row, so loose "Photo or video" slices showed between cards. A row whose sheet is
   open stops being a scroller (sheet-open from the server, :has once tapped open), and its swipe buttons hide. */
.swipe-row.sheet-open .swipe-track, .swipe-row:has(details.sheet[open]) .swipe-track { overflow: visible; scroll-snap-type: none; }
.swipe-row.sheet-open .swipe-acts, .swipe-row:has(details.sheet[open]) .swipe-acts { display: none; }
.act-sheet { display: none; }
.act-sheet:target { display: block; position: fixed; inset: 0; z-index: 80; }
.act-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, 0.45); }
.act-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; box-sizing: border-box; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--paper); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18); display: grid; gap: 0.6rem; }
@media (min-width: 700px) { .act-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(30rem, 92vw); transform: translate(-50%, -50%); border-radius: 18px; } }
.act-panel .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.act-panel h2 { margin: 0; font-size: 1.15rem; }
.act-panel h3 { margin: 0.2rem 0; font-size: 1rem; }
.act-panel .act-title { margin: 0; font-weight: 600; }
.act-form { display: grid; gap: 0.4rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.act-form input[type="datetime-local"] { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; -webkit-appearance: none; appearance: none; }
.act-btn { min-height: 44px; width: 100%; justify-content: center; display: inline-flex; align-items: center; }
.act-panel .button.danger, .act-panel button.danger { background: #b3261e; color: #fff; border-color: #b3261e; min-height: 44px; }
.act-panel .button.danger:hover, .act-panel button.danger:hover { background: #8f1d17; }
.swipe-hint { margin: 0 0 0.5rem; }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }
details.hidden-later > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.hidden-list { list-style: none; margin: 0; padding: 0; }
.hidden-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.hidden-list button { min-height: 44px; }
.suggest-bar .suggest-k { display: block; font-size: 0.85rem; font-weight: 600; }
/* Staging review (Pete, Nov 2, item 35 follow-up): nothing is hidden behind the sticky Approve bar. --approve-bar-h is
   the bar's height (a 52px button plus 8px padding top and bottom). In a sheet the tab bar is covered, so the bar sticks
   to the sheet's bottom edge plus the safe-area inset (not 72px up, where it covered "Pick a time" with the time field
   showing under it). Every field in an Approve form, and the sheet and page as scroll containers, keep the bar's height
   plus the safe-area inset clear below them, so a field you tab or jump to is never under the bar. */
:root { --approve-bar-h: 68px; }
@media (max-width: 760px) {
  .sheet-panel form .approve-bar { bottom: env(safe-area-inset-bottom); }
  .sheet-panel:has(form .approve-bar) { scroll-padding-bottom: calc(var(--approve-bar-h) + 8px + env(safe-area-inset-bottom)); }
  html.app:has(main form .approve-bar) { scroll-padding-bottom: calc(64px + 8px + var(--approve-bar-h) + 8px + env(safe-area-inset-bottom)); }
  form:has(.approve-bar) :is(input, select, textarea, button, label, fieldset, .field) { scroll-margin-bottom: calc(var(--approve-bar-h) + 8px + env(safe-area-inset-bottom)); }
  form:has(.approve-bar) .approve-bar button { scroll-margin-bottom: 0; }
  form .approve-bar > .primary-wide { min-height: 52px; }
}
/* Item 37 (Pete, Nov 2): a post's video plays right in the post. Wide enough to watch (not a 160px thumbnail), its own
   controls, and a big round play button in the middle that hides while the video plays. Tap feedback is CSS only. */
.media-current .video-preview { position: relative; flex: 0 1 320px; width: min(100%, 320px); }
.media-current .video-preview .preview-video { display: block; width: 100%; height: auto; max-height: 420px; aspect-ratio: auto; background: #000; border-radius: 10px; object-fit: contain; }
.video-preview .play-full { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; padding-left: 4px; box-sizing: border-box; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease, background 0.12s ease; }
.video-preview .play-full:hover { background: rgba(0, 0, 0, 0.7); }
.video-preview .play-full:active { background: rgba(0, 0, 0, 0.8); transform: scale(0.92); }
.video-preview .play-full:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.video-preview.playing .play-full { display: none; }
.media-current.added .video-preview .preview-video { outline: 3px solid var(--lime); outline-offset: 2px; }
@media (max-width: 760px) { .media-current:has(.video-preview) { flex-wrap: wrap; } .media-current .video-preview { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .video-preview .play-full { transition: none; } .video-preview .play-full:active { transform: none; } }
/* Item 38 (Pete, Nov 2): an app already approved stays listed in its post, as a plain row (no chevron, nothing to open). */
.app-section.app-done > .app-summary { cursor: default; }
.app-section.app-done > .app-summary::after { content: none; }
.app-section.app-done.focus > .app-summary { background: var(--chalk); border-radius: 10px; }
/* Item 36 (Pete, Nov 3): New post. The app picker uses the same app colours as To approve (request C): a tinted chip
   with the app's edge, filled with the app's colour once picked. The check box stays visible and focusable. */
.new-post .app-picks { list-style: none; padding: 0; margin: 0.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; }
.new-post .app-picks li { margin: 0; }
.app-pick { --p-edge: var(--p); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 16px 0 18px; position: relative; overflow: hidden; border: 2px solid var(--p-edge); border-radius: 999px; background: var(--p-tint); color: #14161A; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-pick::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--p-stripe, var(--p)); }
.app-pick.plat-snapchat { --p-edge: #C9BE00; }
.app-pick input { margin: 0; width: 20px; height: 20px; accent-color: #14161A; }
.app-pick .plat-i { color: #14161A; }
.app-pick:has(input:checked) { background: var(--p); color: var(--p-on); }
.app-pick:has(input:checked) .plat-i { color: var(--p-on); }
.app-pick.plat-snapchat:has(input:checked) { color: #14161A; }
.app-pick.plat-snapchat:has(input:checked) .plat-i { color: #14161A; }
.app-pick:has(input:focus-visible) { outline: 3px solid #14161A; outline-offset: 2px; }
.app-pick:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .app-pick:active { transform: none; } }
/* Suggested events (Nov 4): a scrolling row of idea cards above the event form; × opens a two-choice menu. CSS only. */
.suggest { margin: 0 0 1rem; }
.sug-list { list-style: none; margin: 0.4rem 0; padding: 0; display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.sug-list.sug-all { flex-direction: column; overflow-x: visible; }
.sug-card { position: relative; flex: 0 0 15rem; min-width: 0; scroll-snap-align: start; border: 1px solid var(--line, #d8d4cc); border-radius: 12px; background: #fff; }
.sug-fill { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 2.9rem 0.7rem 0.8rem; min-height: 44px; color: inherit; text-decoration: none; }
.sug-chip, .sug-tag { font-size: 0.8rem; }
.sug-tag { align-self: flex-start; padding: 0.05rem 0.45rem; border-radius: 999px; background: #eef0f3; }
.sug-x { position: absolute; top: 0; right: 0; }
.sug-x > summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; }
.sug-x > summary::-webkit-details-marker { display: none; }
.sug-x-menu { position: absolute; right: 0.3rem; top: 2.6rem; z-index: 3; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #d8d4cc); border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.sug-btn { min-height: 44px; padding: 0 0.9rem; background: none; border: 0; text-align: left; white-space: nowrap; color: inherit; font: inherit; cursor: pointer; }
.sug-card > form { padding: 0 0.8rem 0.6rem; }
.sug-x summary:focus-visible, .sug-fill:focus-visible, .sug-btn:focus-visible { outline: 3px solid #14161A; outline-offset: 2px; }


a, button, input, select, textarea, label, summary, .button, [role="button"] { touch-action: manipulation; }
.tab:active .pill { background: rgba(255, 255, 255, 0.16); }
.tab[aria-current]:active .pill { background: var(--lime-press); }
.side a.side-tab:active, .side .foot a:active { background: rgba(255, 255, 255, 0.1); }
.subnav a:active { background: var(--surface-2); border-color: var(--ink); }
.back:active { opacity: 0.6; }
.todo a:active, .tile:active, .counters a:active, .group a:active, .new-list a:active { background: var(--surface-2); }
summary:active { opacity: 0.7; }
@media (hover: none) {
  .tab:hover .pill { background: rgba(255, 255, 255, 0.16); }
  .tab[aria-current]:hover .pill { background: var(--lime-press); }
  .tabbar a.tab:hover { color: var(--paper); }
  .subnav a:hover { background: var(--surface-2); border-color: var(--ink); }
  .back:hover { opacity: 0.6; }
  .todo a:hover, .tile:hover, .counters a:hover, .group a:hover, .new-list a:hover { background: var(--surface-2); }
  button:where(:not(:disabled)):hover, .button:hover { background: var(--lime-press); border-color: var(--lime-press); }
  .plat .share-btn:hover, .connect-row.plat .connect-btn:hover { background: var(--p); border-color: var(--p); color: var(--p-on); filter: brightness(0.9); }
  button.secondary:where(:not(:disabled)):hover, a.secondary:hover, .button.secondary:hover { background: var(--surface-2); border-color: var(--ink); }
  .link-button:hover, .sheet-close:hover, .nav button:hover, .group button:hover, .side .foot button:hover { background: transparent; border-color: transparent; opacity: 0.6; }
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: none) { button:where(:not(:disabled)):hover, .button:hover, a.secondary:hover, .tile:hover, .todo a:hover { transform: scale(.97); } }
}


/* First-visit tour (CSS only). One highlight colour, not the brand lime: #e0119b is 3.47:1 on lime, 3.94:1 on chalk,
   4.07:1 on ink, 4.45:1 on white (WCAG non-text contrast needs 3:1). */
:root { --tour-hl: #e0119b; }
.tour { position: fixed; z-index: 45; left: 0; right: 0; bottom: calc(64px + 12px + var(--app-legal-footer-clearance, 13rem) + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.tour-mark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tour-card { display: none; box-sizing: border-box; width: min(100% - 32px, 340px); padding: 16px; background: var(--ink); color: var(--paper); position: relative; border: 2px solid var(--tour-hl); border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: 1rem; line-height: 1.4; pointer-events: auto; }
.tour-card.tour-first { display: block; }
body:has([id^="tour-"]:target) .tour-card.tour-first { display: none; }
body:has(#tour-home-1:target) .tour-card[data-for="tour-home-1"],
body:has(#tour-home-2:target) .tour-card[data-for="tour-home-2"],
body:has(#tour-home-3:target) .tour-card[data-for="tour-home-3"],
body:has(#tour-posts-1:target) .tour-card[data-for="tour-posts-1"],
body:has(#tour-posts-2:target) .tour-card[data-for="tour-posts-2"],
body:has(#tour-posts-3:target) .tour-card[data-for="tour-posts-3"],
body:has(#tour-posts-4:target) .tour-card[data-for="tour-posts-4"],
body:has(#tour-media-1:target) .tour-card[data-for="tour-media-1"],
body:has(#tour-media-2:target) .tour-card[data-for="tour-media-2"],
body:has(#tour-media-3:target) .tour-card[data-for="tour-media-3"],
body:has(#tour-results-1:target) .tour-card[data-for="tour-results-1"],
body:has(#tour-results-2:target) .tour-card[data-for="tour-results-2"],
body:has(#tour-results-3:target) .tour-card[data-for="tour-results-3"],
body:has(#tour-settings-1:target) .tour-card[data-for="tour-settings-1"],
body:has(#tour-settings-2:target) .tour-card[data-for="tour-settings-2"],
body:has(#tour-settings-4:target) .tour-card[data-for="tour-settings-4"],
body:has(#tour-settings-3:target) .tour-card[data-for="tour-settings-3"] { display: block; }
body:has(#tour-off:target) .tour { display: none; }
.tour-dots { margin: 0 0 4px; font-size: 0.85rem; color: #c9ccd2; }
.tour-title { margin: 0 0 6px; font-size: 1.15rem; color: var(--paper); }
.tour-body { margin: 0 0 12px; }
.tour-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tour-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; font-size: 1rem; box-sizing: border-box; }
.tour-nav .tour-skip { margin-left: auto; color: var(--paper); text-decoration: underline; }
.tour-nav a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.tour-card::before { content: ""; position: absolute; left: 50%; top: -12px; margin-left: -10px; border: 10px solid transparent; border-top: 0; border-bottom: 12px solid var(--tour-hl); }
@media (max-width: 760px) {
  .tour-card[data-for="tour-home-3"]::before { top: auto; bottom: -12px; border-bottom: 0; border-top: 12px solid var(--tour-hl); }
}
@media (min-width: 761px) {
  .tour-card[data-for="tour-home-3"]::before { display: none; }
}
#tour-home-1, #tour-posts-1, #tour-posts-2, #tour-posts-3, #tour-posts-4, #tour-media-1, #tour-media-2, #tour-media-3, #tour-results-1, #tour-results-2, #tour-results-3, #tour-settings-1, #tour-settings-2, #tour-settings-4, #tour-settings-3 { scroll-margin-top: 8px; scroll-margin-bottom: calc(240px + var(--app-legal-footer-clearance, 13rem) + env(safe-area-inset-bottom)); }
body:has(.tour) #tour-home-1:target,
body:has(.tour) #tour-posts-1:target,
body:has(.tour) #tour-posts-2:target,
body:has(.tour) #tour-posts-3:target,
body:has(.tour) #tour-posts-4:target,
body:has(.tour) #tour-media-1:target,
body:has(.tour) #tour-media-2:target,
body:has(.tour) #tour-media-3:target,
body:has(.tour) #tour-results-1:target,
body:has(.tour) #tour-results-2:target,
body:has(.tour) #tour-results-3:target,
body:has(.tour) #tour-settings-1:target,
body:has(.tour) #tour-settings-2:target,
body:has(.tour) #tour-settings-4:target,
body:has(.tour) #tour-settings-3:target,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-home-1"]) #tour-home-1,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-posts-1"]) #tour-posts-1,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-posts-2"]) #tour-posts-2,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-posts-3"]) #tour-posts-3,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-posts-4"]) #tour-posts-4,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-media-1"]) #tour-media-1,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-media-2"]) #tour-media-2,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-media-3"]) #tour-media-3,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-results-1"]) #tour-results-1,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-results-2"]) #tour-results-2,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-results-3"]) #tour-results-3,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-settings-1"]) #tour-settings-1,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-settings-2"]) #tour-settings-2,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-settings-4"]) #tour-settings-4,
body:not(:has([id^="tour-"]:target)):has(.tour-card.tour-first[data-for="tour-settings-3"]) #tour-settings-3 { outline: 3px solid var(--tour-hl); outline-offset: 3px; }
body:has(#tour-home-2:target) .btn-new,
body:has(#tour-home-3:target) :is(.tabbar, .side-tabs),
body:has(#tour-posts-3:target) .side .subs a[href="/app/content?view=workouts"],
body:has(#tour-posts-4:target) .side .subs a[href="/app/content?view=scheduled"],
body:has(#tour-media-3:target) .side .subs a[href="/app/release"],
body:has(#tour-results-2:target) .side .subs a[href="/app/leads"],
body:has(#tour-posts-1:target) .side .subs { outline: 3px solid var(--tour-hl); outline-offset: -3px; }
@media (min-width: 761px) {
  .tour { bottom: 24px; justify-content: flex-end; padding-right: 24px; }
}
@supports (anchor-name: --a) {
  #tour-home-1 { anchor-name: --tour-home-1; }
  body:has(#tour-home-1:target) .tour-card[data-for="tour-home-1"] { position-anchor: --tour-home-1; }
  #tour-posts-1 { anchor-name: --tour-posts-1; }
  body:has(#tour-posts-1:target) .tour-card[data-for="tour-posts-1"] { position-anchor: --tour-posts-1; }
  #tour-posts-2 { anchor-name: --tour-posts-2; }
  body:has(#tour-posts-2:target) .tour-card[data-for="tour-posts-2"] { position-anchor: --tour-posts-2; }
  #tour-posts-3 { anchor-name: --tour-posts-3; }
  body:has(#tour-posts-3:target) .tour-card[data-for="tour-posts-3"] { position-anchor: --tour-posts-3; }
  #tour-posts-4 { anchor-name: --tour-posts-4; }
  body:has(#tour-posts-4:target) .tour-card[data-for="tour-posts-4"] { position-anchor: --tour-posts-4; }
  #tour-media-1 { anchor-name: --tour-media-1; }
  body:has(#tour-media-1:target) .tour-card[data-for="tour-media-1"] { position-anchor: --tour-media-1; }
  #tour-media-2 { anchor-name: --tour-media-2; }
  body:has(#tour-media-2:target) .tour-card[data-for="tour-media-2"] { position-anchor: --tour-media-2; }
  #tour-media-3 { anchor-name: --tour-media-3; }
  body:has(#tour-media-3:target) .tour-card[data-for="tour-media-3"] { position-anchor: --tour-media-3; }
  #tour-results-1 { anchor-name: --tour-results-1; }
  body:has(#tour-results-1:target) .tour-card[data-for="tour-results-1"] { position-anchor: --tour-results-1; }
  #tour-results-2 { anchor-name: --tour-results-2; }
  body:has(#tour-results-2:target) .tour-card[data-for="tour-results-2"] { position-anchor: --tour-results-2; }
  #tour-results-3 { anchor-name: --tour-results-3; }
  body:has(#tour-results-3:target) .tour-card[data-for="tour-results-3"] { position-anchor: --tour-results-3; }
  #tour-settings-1 { anchor-name: --tour-settings-1; }
  body:has(#tour-settings-1:target) .tour-card[data-for="tour-settings-1"] { position-anchor: --tour-settings-1; }
  #tour-settings-2 { anchor-name: --tour-settings-2; }
  body:has(#tour-settings-2:target) .tour-card[data-for="tour-settings-2"] { position-anchor: --tour-settings-2; }
  #tour-settings-4 { anchor-name: --tour-settings-4; }
  body:has(#tour-settings-4:target) .tour-card[data-for="tour-settings-4"] { position-anchor: --tour-settings-4; }
  #tour-settings-3 { anchor-name: --tour-settings-3; }
  body:has(#tour-settings-3:target) .tour-card[data-for="tour-settings-3"] { position-anchor: --tour-settings-3; }
  .tour-card[data-for] { position-try-fallbacks: flip-block; }
  body:has(#tour-home-1:target, #tour-posts-1:target, #tour-posts-2:target, #tour-posts-3:target, #tour-posts-4:target, #tour-media-1:target, #tour-media-2:target, #tour-media-3:target, #tour-results-1:target, #tour-results-2:target, #tour-results-3:target, #tour-settings-1:target, #tour-settings-2:target, #tour-settings-4:target, #tour-settings-3:target) .tour-card { position: fixed; position-area: block-end span-all; margin: 12px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour-card { animation: tour-in 160ms ease-out; }
  html:has(.tour) { scroll-behavior: smooth; }
}
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }