/* Lolo dashboard, in Loren's NONLINEAR look (nonlinear.lorenhogue.com/hire).
   Mobile-first, no framework, no inline styles (strict CSP). Fonts are self-hosted under
   /static/fonts (docs/architecture.md, "Web fonts"): Libre Caslon Condensed for headings, Archivo for
   everything else. Light only, like her site. */

/* ------------------------------------------------------------------ fonts */

/* Libre Caslon Condensed (SIL OFL 1.1) is a variable font: one file per style and subset
   covers weights 400-700. It replaced the licensed heading font on 2026-11-11 (no usage fees). */
@font-face {
  font-family: "Libre Caslon Condensed";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-condensed-latin-af9ae475.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Condensed";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-condensed-latin-ext-38eac54c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Caslon Condensed";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-condensed-italic-latin-0ed32be8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Condensed";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-condensed-italic-latin-ext-d474050e.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo is a variable font: one file per subset covers every weight used here (400-700). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-7150c0ec.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-a999e009.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */

:root {
  /* Loren's palette, as named on her site. */
  --cream: #F5EEDC;
  --sand: #ECE0C6;
  --espresso: #33211C;
  --powder: #CFE1E2;
  --powder2: #BBD4D6;
  --butter: #EFDB8A;
  --gold: #B8924F;
  --denim: #3D5A6B;
  --body: #5A4A3C;
  --line: #E2D4B8;
  --serif: "Libre Caslon Condensed", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Derived for the app. Contrast on cream / card: espresso 13:1, body 7.3:1, denim 6.3:1,
     gold-ink 5.4:1, ok 5.4:1, stop 5.5:1. Plain gold (2.5:1) is for rules and fills only. */
  --white: #FFFDF8;
  --card: #FFFBF0;
  --tint: #F1E7D2;
  --gold-ink: #7A5B24;
  --field-line: #9C8462;
  --ok: #3F6640;
  --ok-tint: #E6EBDA;
  --sched-tint: #E2EDEE;
  --stop: #A2392A;
  --stop-tint: #F6E1D9;
  --wait-tint: #F5EACB;

  /* The names the templates' classes were built on, mapped onto her palette. */
  --paper: var(--cream);
  --ink: var(--espresso);
  --muted: var(--body);
  --go: var(--espresso);
  --go-ink: var(--white);
  --marker: var(--butter);
  --marker-ink: var(--espresso);
  --focus: var(--denim);
  --seg-instagram: var(--espresso);
  --seg-tiktok: var(--gold);
  --seg-youtube: var(--denim);
  --track: var(--sand);
  --radius: 14px;
  --font: var(--sans);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--cream); }

/* A column, so the footer sits at the bottom of short pages. */
body {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--espresso);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
body > main { flex: 1 0 auto; }

/* Her hero wash: butter top left, powder top right, a little gold low in the middle, fading
   into cream. Sits behind everything at the top of every page. */
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 46rem;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(245, 238, 220, 0) 45%, var(--cream) 100%),
    radial-gradient(ellipse 60% 55% at 12% 18%, rgba(239, 219, 138, 0.62) 0, rgba(239, 219, 138, 0) 70%),
    radial-gradient(ellipse 55% 60% at 88% 26%, rgba(207, 225, 226, 0.9) 0, rgba(207, 225, 226, 0) 70%),
    radial-gradient(ellipse 45% 40% at 55% 78%, rgba(184, 146, 79, 0.22) 0, rgba(184, 146, 79, 0) 70%),
    radial-gradient(ellipse 50% 50% at 35% 62%, rgba(187, 212, 214, 0.35) 0, rgba(187, 212, 214, 0) 70%);
}

/* Her film grain, very faint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--espresso);
  text-decoration-color: rgba(51, 33, 28, 0.4);
  text-underline-offset: 4px;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0 0 0.5rem; color: var(--espresso); }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.35rem, 9vw, 3.4rem); line-height: 1.02; }
h2 { font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
h3 {
  font: 600 0.75rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--denim);
}
p { margin: 0 0 0.75rem; color: var(--body); }
li { color: var(--body); }
strong, b { color: var(--espresso); font-weight: 600; }

.it, em { font-style: italic; }
h1 .it { font-family: var(--serif); }

/* Read by screen readers, not shown (the Today page's h1). */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--card); padding: 0.5rem 1rem; }
.skip:focus { left: 0.5rem; z-index: 200; }

/* Small uppercase label with wide tracking (her ".lab"). */
.eyebrow {
  margin: 0 0 0.85rem;
  font: 600 0.75rem/1.5 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--denim);
}
.eyebrow a { color: inherit; text-decoration-color: rgba(61, 90, 107, 0.45); }

/* ------------------------------------------------------------------ chrome */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 238, 220, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 1.25rem 0;
  min-height: 3.75rem;
}

/* "Lolo" as written, not all caps (Andrew, 2026-11-11). */
.wordmark {
  font: 700 1.625rem/1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--espresso);
  text-decoration: none;
  padding: 1.3rem 0;
}

/* On a phone the nav is its own row that scrolls sideways; its right edge fades so the
   cut-off link reads as "more this way". */
.nav {
  order: 3;
  flex-basis: calc(100% + 2.5rem);
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -1.25rem;
  padding: 0 2.5rem 0 1.25rem;
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  border-bottom: 2px solid transparent;
  color: var(--body);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { color: var(--espresso); }
.nav a[aria-current="page"] { color: var(--espresso); border-bottom-color: var(--gold); }
/* The Queue's count of cards waiting for her (the mockup's "Queue 3"). */
.nav-count {
  margin-left: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  background: var(--espresso);
  color: var(--white);
  font: 600 0.6875rem/1.2 var(--sans);
  letter-spacing: 0;
}

.topbar-cta { margin-left: auto; }
.signout .link { font-size: 0.875rem; font-weight: 500; }

/* The account button (her initial in a powder circle) and its menu: Settings, Sign out. */
.me { position: relative; margin-left: auto; }
.me-button {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  list-style: none; cursor: pointer;
}
.me-button::-webkit-details-marker { display: none; }
.me-button > span[aria-hidden] {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--powder); color: var(--espresso);
  font: 600 0.875rem/1 var(--sans);
}
.me[open] .me-button > span[aria-hidden], .me-button:hover > span[aria-hidden] { background: var(--powder2); }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 80;
  min-width: 13rem; padding: 0.6rem 1rem 0.4rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(51, 33, 28, 0.14);
}
.me-name { margin: 0 0 0.25rem; color: var(--espresso); font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.me-menu > a { display: flex; align-items: center; min-height: 44px; font-size: 0.9375rem; }
.me-menu .signout .link { width: 100%; text-align: left; }

.page { width: 100%; max-width: 48rem; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem;
}
.footer p { margin: 0; }
.footer .fn {
  font: 600 0.6875rem/1.5 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; flex-basis: 100%; }
.footer a { color: var(--body); font-size: 0.875rem; }

.flash-region { width: 100%; max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.flash-region:not(:empty) { padding-top: 1rem; }
.flash {
  margin: 0.5rem 0;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--denim);
  background: var(--card);
  color: var(--espresso);
}
.flash-error { border-color: var(--stop); border-left-color: var(--stop); color: var(--stop); }
.flash-error strong { color: inherit; }
/* A refusal an htmx action swapped in stays in view while she scrolls (the button she tapped
   may be far down a long form, like a carousel slide's). The next action clears it. */
.flash-region:has(.flash-error) { position: sticky; top: 0.5rem; z-index: 70; }
.flash-region:has(.flash-error) .flash { box-shadow: 0 8px 24px rgba(51, 33, 28, 0.16); }

/* ------------------------------------------------------------------ building blocks */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  margin: 0 0 1.25rem;
}
.panel > h2:first-child { margin-bottom: 0.75rem; }
.narrow { max-width: 32rem; margin-left: auto; margin-right: auto; }
.panel.narrow { padding: 2rem 1.5rem; }
.panel.narrow h1 { font-size: clamp(2.1rem, 8vw, 2.75rem); margin-bottom: 0.9rem; }
.page-head { margin: 0.25rem 0 1.75rem; }
.page-head h1 { margin-bottom: 0.75rem; }
.page-head > p:not(.eyebrow, .meta) { max-width: 60ch; font-size: 1.0625rem; }

.fine { color: var(--body); font-size: 0.875rem; }
.empty { color: var(--body); }
p.empty.panel { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--espresso); }
.notice { color: var(--ok); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; color: var(--espresso); }
code { font-size: 0.875em; overflow-wrap: anywhere; color: var(--espresso); }

/* Buttons: her espresso button (Archivo 700, uppercase, tracked) for the main action; an
   outlined one for the rest. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--espresso);
  border-radius: 4px;
  background: transparent;
  color: var(--espresso);
  font: 700 0.75rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn:hover:not(:disabled) { background: var(--espresso); color: var(--white); transform: translateY(-2px); }
.btn-go {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 1.0625rem 2.125rem;
}
.btn-go:hover:not(:disabled) { background: var(--denim); border-color: var(--denim); }
.btn-stop { border-color: var(--stop); color: var(--stop); }
.btn-stop:hover:not(:disabled) { background: var(--stop); border-color: var(--stop); color: var(--white); }
.btn-quiet { border-color: rgba(51, 33, 28, 0.3); }
.btn-small { min-height: 40px; padding: 0.65rem 1.25rem; font-size: 0.6875rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Secondary actions: underlined small text, like her "Meet the team" link. */
.link {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  min-height: 44px;
  color: var(--espresso);
  font: 500 0.9375rem/1.4 var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(51, 33, 28, 0.45);
  text-underline-offset: 4px;
}
.link:hover { text-decoration-color: currentColor; }
.link-stop { color: var(--stop); text-decoration-color: rgba(162, 57, 42, 0.5); }

.stack { display: grid; gap: 0.45rem; }
/* Grid children default to min-width: auto, so one wide control (a date-and-time field's own
   width) would stretch a whole queue card's column past its edge on a phone. */
.stack > *, .actions > *, .stack fieldset > * { min-width: 0; }
.stack .btn { justify-self: start; margin-top: 0.6rem; }
.stack fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.stack legend {
  padding: 0;
  margin-bottom: 0.25rem;
  font: 600 0.75rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--denim);
}
.stack .fine, .stack > .field-error { margin: 0; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 400; color: var(--espresso); }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--espresso); flex: none; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

label { font-weight: 600; font-size: 0.9375rem; color: var(--espresso); }
.stack > label:not(.check) { margin-top: 0.5rem; }
.stack > label:first-of-type { margin-top: 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"],
input[type="password"], input:not([type]), input[type="datetime-local"], select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  background: var(--white);
  color: var(--espresso);
  font: 16px/1.4 var(--sans); /* 16px stops iOS zooming into fields */
}
input::placeholder, textarea::placeholder { color: #7D6D59; }
input[type="file"] { font: 15px/1.4 var(--sans); color: var(--body); max-width: 100%; }
input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--espresso);
  border-radius: 4px;
  background: var(--white);
  color: var(--espresso);
  font: 700 0.6875rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.inline select { width: auto; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--stop); }
.field-error { color: var(--stop); margin: 0; font-weight: 500; }

/* Chips: her "Works with" pill. Status chips take a quiet tint of their state. */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.15rem 0.65rem;
  border-radius: 100px;
  border: 1px solid rgba(51, 33, 28, 0.28);
  background: var(--white);
  color: var(--espresso);
  font: 600 0.75rem/1.2 var(--sans);
  white-space: nowrap;
}
/* A platform name with its icon (queue cards). */
.pill-platform { gap: 0.3rem; padding-left: 0.5rem; }
.platform-icon { flex: none; width: 14px; height: 14px; }

/* The queue's platform filter (Andrew, 2026-11-12): one pill per platform with its pending count. */
/* One row; on a narrow phone it scrolls sideways rather than wrap. */
.filter-bar { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 1.25rem; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 44px; padding: 0.35rem 0.4rem 0.35rem 0.6rem;
  border-radius: 100px; border: 1px solid rgba(51, 33, 28, 0.28);
  background: var(--white); color: var(--espresso);
  font: 600 0.8125rem/1.2 var(--sans); text-decoration: none;
}
.filter-pill .platform-icon { width: 15px; height: 15px; }
.filter-pill:hover { background: var(--tint); }
.filter-on, .filter-on:hover { background: var(--espresso); border-color: var(--espresso); color: var(--white); }
.filter-count {
  min-width: 1.5rem; padding: 0.1rem 0.4rem; border-radius: 100px; text-align: center;
  background: var(--sand); color: var(--espresso); font-size: 0.75rem;
}
.filter-on .filter-count { background: var(--white); }
.filter-clear { flex: none; font-size: 0.875rem; margin-left: 0.25rem; }

.pill-outlier { background: var(--butter); border-color: rgba(51, 33, 28, 0.35); }
.pill-signal { background: var(--powder); border-color: rgba(61, 90, 107, 0.45); color: var(--denim); }
.pill-approved, .pill-posted, .pill-uploaded, .pill-ready, .pill-done {
  background: var(--ok-tint); border-color: rgba(63, 102, 64, 0.55); color: var(--ok);
}
.pill-scheduled, .pill-published, .pill-emailed {
  background: var(--sched-tint); border-color: rgba(61, 90, 107, 0.55); color: var(--denim);
}
.pill-rejected, .pill-failed, .pill-not_sent, .pill-unusable, .pill-expired, .pill-email_failed {
  background: var(--stop-tint); border-color: rgba(162, 57, 42, 0.55); color: var(--stop);
}
.pill-checking, .pill-uploading, .pill-running, .pill-queued, .pill-preparing,
.pill-transcribing, .pill-sending, .pill-fetching, .pill-email_pending, .pill-email_sending {
  background: var(--wait-tint); border-color: rgba(122, 91, 36, 0.5); color: var(--gold-ink);
}
.badge {
  margin-left: 0.35rem;
  padding: 0.1rem 0.55rem;
  border-radius: 100px;
  background: var(--butter);
  color: var(--espresso);
  font-size: 0.8125rem;
  font-weight: 700;
}

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; padding-top: 0.25rem; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 0.1rem; overflow-wrap: anywhere; color: var(--espresso); }
.row-main > a { font-weight: 500; }
.row-off .row-main a { color: var(--body); }
.row form { flex: none; }
.row > .btn, .row form .btn { min-height: 40px; padding: 0.6rem 0.85rem; font-size: 0.6875rem; }

/* Two forms in one panel (Higgsfield's Soul and cap, the watchlist and its list). */
form + form.stack, form.stack + form, form.stack + div { margin-top: 1.5rem; }
.row .num.strong { font: 400 1.35rem/1 var(--serif); }

/* ------------------------------------------------------------------ landing */

.hero { padding: 2.5rem 0 2rem; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.04; max-width: 16ch; margin: 0 0 1.25rem; }
.lede { font-size: 1.1875rem; color: var(--body); max-width: 40ch; }
.hero .cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Who Lolo is for, under the hero's button (Andrew, 2026-11-16): the eyebrows' small caps. */
.hero-for {
  margin: 1.25rem 0 0;
  font: 600 0.75rem/1.5 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--denim);
}
@media (max-width: 30rem) { .hero-for { font-size: 0.68rem; letter-spacing: 0.14em; } }

/* The homepage's sections: the four tiles (css/hero-demo.css animates them), the steps and a
   small FAQ. Plain text and the site's own type; no third-party logos. */
.home-section { padding: 2.5rem 0 0.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.home-section > h2 { font-size: clamp(1.75rem, 5vw, 2.4rem); line-height: 1.1; max-width: 24ch; margin-bottom: 1rem; }
.section-lede { max-width: 62ch; font-size: 1.0625rem; }
.steps { margin: 1.25rem 0 0; padding-left: 1.4rem; max-width: 62ch; }
.steps li { margin-bottom: 0.75rem; }
.faq-list { max-width: 46rem; margin: 1rem 0 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font: 400 1.3rem/1.25 var(--serif);
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--espresso);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--sans); color: var(--gold-ink); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.faq-a { max-width: 62ch; padding: 0 0 1.1rem; }
.faq-a p { margin: 0 0 0.6rem; }
.home-faq { padding-bottom: 1.5rem; }

/* The landing page uses the topbar's full width, so the hero's art can sit beside the text. */
.page-wide { max-width: 1180px; }
/* The hero's art (pub-hero, 2026-11-16): the looping demo of Lolo at work (_hero_demo.html,
   css/hero-demo.css) until Loren's recorded demo replaces it, in the frame her photo had: a
   white mat with an espresso hairline and a gold line offset to the lower right (behind the
   mat). Phones and tablets: above the title, where the photo was (Andrew, 2026-11-11), but
   the column's full width (up to 26rem) rather than 62%, so the app's words stay legible.
   Desktop: beside the text, like her NONLINEAR hero. */
.hero { display: flex; flex-direction: column; }
.page-wide .hero { padding-top: 1rem; }
.hero h1 .nobr { white-space: nowrap; }
.hero-art {
  order: -1;
  position: relative;
  width: calc(100% - 10px);
  max-width: 26rem;
  margin: 0 10px 2.25rem 0;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--gold);
  border-radius: 14px;
}
.hero-art .mat {
  position: relative;
  display: block;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(51, 33, 28, 0.3);
  border-radius: 14px;
}
@media (min-width: 40rem) {
  /* Line the hero up with the wordmark: the same side padding as the top bar. */
  .page.page-wide { padding-left: 2.625rem; padding-right: 2.625rem; }
}
@media (min-width: 56rem) {
  .hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 50px; align-items: center; }
  /* Beside the art, the title follows the column's width: two lines from 900 px up. */
  .hero h1 { font-size: clamp(3.2rem, 5.6vw, 4.6rem); }
  .page-wide .hero { padding-top: 4rem; }
  .hero-art { order: 0; width: calc(100% - 14px); max-width: 28rem; margin: 0 14px 14px auto; }
  .hero-art::before { inset: 14px -14px -14px 14px; border-radius: 16px; }
  .hero-art .mat { padding: 8px; border-radius: 16px; }
}
@media (min-width: 56rem) and (max-width: 71.99rem) {
  /* Laptop widths: half and half, so the art isn't squeezed (its words scale with it). From
     72rem the 1.08 : 0.92 split already gives it its full 28rem. */
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ the goal bar */

.goal-bar { display: block; width: 100%; height: 14px; border-radius: 100px; overflow: hidden; }
.goal-track { fill: var(--track); }
.seg-instagram { fill: var(--seg-instagram); }
.seg-tiktok { fill: var(--seg-tiktok); }
.seg-youtube { fill: var(--seg-youtube); }

/* ------------------------------------------------------------------ checklist */

/* Lolo's to-dos: a small gold diamond (they clear themselves, nothing to tick); a task gets
   the real tick box below, on Today as on the Checklist tab. */
.todos .row { align-items: center; }
.todo-mark { flex: none; width: 0.55rem; height: 0.55rem; transform: rotate(45deg); background: var(--gold); }
.todo-approve .todo-mark { background: var(--espresso); }
/* Today's boxed checklist (Loren, 2026-11-12): a few short lines, each a link. Not checkboxes
   (Loren, 2026-11-14: a box looked tappable): an open check circle until Lolo sees every post of
   the line out, then a filled one; a chevron at the end says the line opens its posts. */
.today-box { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.today-line + .today-line { border-top: 1px solid var(--line); }
.today-line > a, .today-none { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0.55rem 0.75rem 0.55rem 0.9rem; }
.today-line > a { color: var(--espresso); text-decoration: none; }
.today-line > a:hover .today-text, .today-line > a:focus-visible .today-text { text-decoration: underline; }
.today-text { flex: 1 1 auto; min-width: 0; font: 500 1rem/1.35 var(--sans); }
.today-progress { flex: none; white-space: nowrap; }
.today-done .today-text { color: var(--body); text-decoration: line-through; text-decoration-color: rgba(90, 74, 60, 0.5); }
.circle {
  flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 1.5px solid rgba(51, 33, 28, 0.45); background: var(--white);
}
.circle-done {
  border-color: var(--espresso);
  background: var(--espresso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9L12.4 5' fill='none' stroke='%23FFFDF8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.chevron {
  flex: none; width: 0.5rem; height: 0.5rem; margin-left: 0.15rem;
  border-top: 2px solid var(--body); border-right: 2px solid var(--body);
  transform: rotate(45deg);
}
.today-line > a:hover .chevron { border-color: var(--espresso); }
/* Check if it's live (2026-11-14): a quiet button, then what Lolo found. */
.live-check { margin-top: 0.75rem; }
.live-check form.inline { display: inline-block; }
.live-result { margin-top: 0.4rem; }
.live-result p { margin: 0.15rem 0 0; }
.live-status { display: flex; align-items: center; gap: 0.5rem; margin: 0; min-height: 40px; color: var(--espresso); font-size: 0.875rem; }
.live-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); animation: live-pulse 1.2s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.publish .live-check { margin-top: 0.5rem; }
.posted-this { margin-top: 0.4rem; }
.carried { color: var(--gold-ink); font-weight: 600; }

.plan-platform { margin: 1.1rem 0 0.25rem; }
.panel > h2 + .plan-platform { margin-top: 0; }
.plan .row { align-items: center; }
.plan-time { flex: none; width: 4.6rem; color: var(--espresso); font-weight: 600; font-size: 0.9375rem; }
.row-off .plan-time { color: var(--body); }

.tasks .row { align-items: flex-start; }
.upcoming-title { margin: 1.75rem 0 0.25rem; }
.upcoming-day { margin: 1rem 0 0.15rem; font: 600 0.9375rem/1.4 var(--sans); color: var(--espresso); }
.task-title { color: var(--espresso); font-weight: 500; }
.task-notes { white-space: pre-line; }
/* A feature request's details keep her line breaks (Requests tab). */
.request-details { white-space: pre-line; }
.task-done .task-title { color: var(--body); text-decoration: line-through; text-decoration-color: rgba(90, 74, 60, 0.5); }

/* The tick: a 44px target around a 1.4rem box; ticked, her espresso with a cream check. */
.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -0.55rem 0 -0.55rem -0.6rem; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.tick::before {
  content: "";
  width: 1.4rem; height: 1.4rem;
  border: 1.5px solid var(--espresso); border-radius: 4px; background: var(--white);
  transition: background 0.2s ease;
}
.tick:hover::before { background: var(--tint); }
.tick-done::before, .tick-done:hover::before {
  background: var(--espresso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.6l3.1 3L12.8 4.6' fill='none' stroke='%23FFFDF8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

/* ------------------------------------------------------------------ queue items */

.items { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* Folded cards (Andrew, 2026-11-12): the summary row is the whole tap target; the full card
   opens under it. */
.item-summary {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 1.25rem;
  grid-template-areas: "thumb head chev" "thumb toggle chev";
  column-gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
  /* Not the small uppercase "+" summary of the forms inside a card. */
  min-height: 0;
  font: 400 1rem/1.5 var(--sans);
  letter-spacing: normal;
  text-transform: none;
}
.item-summary::-webkit-details-marker { display: none; }
.item-fold { border-top: 0; }
.item-fold[open] > .item-summary { margin-bottom: 0; }
.item-summary::after {
  content: "";
  grid-area: chev;
  align-self: center;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--espresso); border-bottom: 2px solid var(--espresso);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.item-fold[open] > .item-summary::after { content: ""; transform: rotate(-135deg); }
.item-summary:focus-visible { outline: 2px solid var(--denim); outline-offset: -2px; border-radius: var(--radius); }
.item-thumb {
  grid-area: thumb;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--sand) 0 6px, var(--tint) 6px 12px);
  display: flex; align-items: flex-end;
  font: 600 0.5rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--body);
}
.item-thumb > span { padding: 0.2rem; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-head { grid-area: head; min-width: 0; display: grid; gap: 0.3rem; }
.item-head h2 { font-size: 1.25rem; margin: 0; }
.item-head .meta { margin: 0; }
.item-snippet { color: var(--body); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-toggle { grid-area: toggle; margin-top: 0.35rem; font: 600 0.6875rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.item-fold[open] .when-closed, .item-fold:not([open]) .when-open { display: none; }
.item-full {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
}
.item-full:not(:has(.item-preview)) { grid-template-columns: 1fr; }
.item-approved, .item-posted { box-shadow: inset 0 3px 0 var(--ok); }
.item-scheduled { box-shadow: inset 0 3px 0 var(--denim); }
.item-failed, .item-rejected { box-shadow: inset 0 3px 0 var(--stop); }
.item-preview {
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, var(--sand) 0 8px, var(--tint) 8px 16px);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 0.4rem;
  font: 600 0.625rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
}
.item-media { padding: 0; background: var(--espresso); overflow: hidden; }
.item-media video, .item-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.frames { margin: 0.75rem 0 0; }
.frames img { display: block; width: 100%; max-width: 24rem; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.frames figcaption { margin-top: 0.3rem; }
.repost-media { margin: 0.75rem 0; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.slides { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; counter-reset: slide; }
.slides img { display: block; width: 4.5rem; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.item-body { min-width: 0; }
/* A card that isn't folded (phone packs): the body is the whole card. */
.item > .item-body { padding: 1.1rem; }
.item > .item-body > h2 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.item-body > .fine:first-child { margin-top: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem; color: var(--body); font-size: 0.875rem; }

.fields { margin: 0.75rem 0; }
.fields dt {
  margin-top: 0.85rem;
  font: 600 0.6875rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--denim);
}
.fields dt:first-child { margin-top: 0; }
.fields dt .link { min-height: 0; margin-left: 0.4rem; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; }
.fields dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; color: var(--espresso); }
.caption { white-space: pre-wrap; }
.dm-copy { display: block; white-space: pre-wrap; }

.publish { border-top: 1px solid var(--line); margin-top: 0.9rem; padding-top: 0.85rem; }
.publish h3 { color: var(--gold-ink); }
.publish ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.publish ul.states { list-style: none; padding-left: 0; gap: 0.5rem; }
.publish li { overflow-wrap: anywhere; color: var(--espresso); }
.publish li .pill { margin-right: 0.25rem; }
.post-email .actions-row { margin-top: 0.4rem; }
.post-email details { flex: 1 1 100%; }
/* Highlights: her butter as a highlighter. */
mark { background: var(--marker); color: var(--marker-ink); padding: 0.05em 0.3em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.actions { display: grid; gap: 0.25rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.actions > form .btn { width: 100%; }
.blocked { margin: 0; color: var(--stop); font-size: 0.9rem; font-weight: 500; }
.decided { margin: 1rem 0 0; font: italic 400 1.15rem/1.35 var(--serif); color: var(--espresso); }

details { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font: 700 0.75rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font: 400 1.35rem/1 var(--serif); color: var(--gold-ink); }
details[open] > summary::after { content: "\2212"; }
details[open] > summary { margin-bottom: 0.25rem; }
details > form, details > p { padding-bottom: 1rem; }

.downloads { list-style: none; padding: 0; margin: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* The upload pad (Andrew, 2026-11-12): drop files on it or tap it; no Upload button. */
.dropzone { margin: 0; }
.drop-pad {
  position: relative;
  display: grid; justify-items: center; align-content: center; gap: 0.35rem;
  min-height: 9.5rem; padding: 1.5rem 1.25rem;
  border: 1.5px dashed rgba(51, 33, 28, 0.45); border-radius: var(--radius);
  background: var(--white); color: var(--espresso); text-align: center; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.drop-pad:hover, .drop-over { background: var(--tint); border-color: var(--espresso); }
.drop-pad:focus-within { outline: 2px solid var(--denim); outline-offset: 2px; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.drop-icon { color: var(--gold-ink); }
.drop-title { font: 600 1rem/1.3 var(--sans); }
.drop-hint { font: 400 0.875rem/1.45 var(--sans); color: var(--body); letter-spacing: normal; text-transform: none; }

/* ------------------------------------------------------------------ settings */

.mode {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  background: var(--tint);
  color: var(--espresso);
}
.mode-live { border-left-color: var(--stop); }
.mode-draft { border-left-color: var(--gold); }
.mode-dry_run { border-left-color: var(--denim); }
.user-code {
  margin: 0.25rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px dashed #CDBFA2;
  border-radius: 10px;
  background: var(--sand);
  font: 700 1.9rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  color: var(--espresso);
  text-align: center;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ uploads */

.uploads { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.upload { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; align-items: center; }
.upload-name { font-weight: 600; color: var(--espresso); overflow-wrap: anywhere; }
.upload progress { grid-column: 1 / -1; width: 100%; height: 0.5rem; accent-color: var(--espresso); }
.upload-done .upload-status { color: var(--ok); }
.upload-failed .upload-status { color: var(--stop); }

/* ------------------------------------------------------------------ reposts */

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 100px;
  border: 1px solid rgba(51, 33, 28, 0.3);
  background: var(--white);
  color: var(--espresso);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.filters a[aria-current="page"] { background: var(--espresso); border-color: var(--espresso); color: var(--white); }
.reel-views { display: grid; min-width: 3.5rem; text-align: right; }
.reel-views .fine { font: 600 0.625rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.preview { overflow-wrap: anywhere; }
.hint { font-size: 0.875rem; padding-left: 0.6rem; border-left: 3px solid var(--gold); color: var(--body); }
.original-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; color: var(--espresso); }
.ig-fetch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

/* ------------------------------------------------------------------ images (HF1) */

.generations { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.generation { border-top: 1px solid var(--line); padding-top: 1rem; }
.generation:first-child { border-top: 0; padding-top: 0; }
.generation-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; color: var(--espresso); }
.generation-head strong { font: 400 1.3rem/1.2 var(--serif); }
.prompt { margin: 0.5rem 0; font: italic 400 1.1rem/1.4 var(--serif); color: var(--espresso); overflow-wrap: anywhere; }
.image-grid { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 1rem 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.generations + .fine { margin-top: 1.25rem; }
.image-cell { display: grid; gap: 0.45rem; align-content: start; }
.image-cell img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line);
  background: var(--sand); }
.image-cell .btn { min-height: 40px; padding: 0.5rem 0.8rem; font-size: 0.6875rem; }
/* "Use in carousel" (1330): a toggle. Pressed, it fills espresso with a check, and the image
   takes her butter marker ring and a "Picked for carousel" chip. */
.image-cell > form { margin: 0; }
.image-cell .btn-pick { width: 100%; }
.btn-pick[aria-pressed="true"] { background: var(--espresso); color: var(--white); }
.btn-pick[aria-pressed="true"]::before { content: "\2713"; }
.btn-pick[aria-pressed="true"]:hover:not(:disabled) { background: var(--denim); border-color: var(--denim); }
.image-cell.is-picked img { border-color: var(--espresso); box-shadow: 0 0 0 3px var(--butter); }
.pill-picked { justify-self: start; background: var(--butter); border-color: rgba(51, 33, 28, 0.35); }

/* ------------------------------------------------------------------ brand kit */

/* Swatches are inline SVG: the colour is the rect's fill attribute, which the strict CSP
   (no inline styles) allows. */
.swatches { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.brand-swatch { display: grid; gap: 0.2rem; align-content: start; overflow-wrap: anywhere; }
.brand-swatch .fine { margin: 0; }
.swatch-chip { width: 100%; max-width: 4.5rem; height: auto; aspect-ratio: 1 / 1; }
.swatch-chip rect { stroke: rgba(51, 33, 28, 0.25); stroke-width: 1; }
.swatch-name { font-weight: 600; color: var(--espresso); }
.stack fieldset.colour-row { padding: 0.75rem 0; border-top: 1px solid var(--line); gap: 0.35rem; }
.colour-field { display: grid; gap: 0.2rem; min-width: 0; }
.colour-field label { font-size: 0.875rem; }
/* Font previews: the class comes from /brand/fonts.css (one @font-face per font). */
.font-name { font-size: 1.5rem; line-height: 1.2; color: var(--espresso); }
.font-sample { font-size: 1.05rem; line-height: 1.4; color: var(--espresso); }
.logo-preview { margin: 0 0 0.75rem; display: grid; gap: 0.5rem; justify-items: start; }
.logo-preview img { max-width: min(100%, 16rem); max-height: 10rem; height: auto;
  padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.voice-kind { margin-top: 1rem; }

@media (min-width: 40rem) {
  .stack fieldset.colour-row { grid-template-columns: 2fr 1.2fr 1.4fr; column-gap: 0.75rem; }
  .stack fieldset.colour-row legend { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ playbook */

.slide-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.slide-plan li { padding: 0.85rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; color: var(--espresso); }
.slide-plan li:first-child { border-top: 0; padding-top: 0.25rem; }
.slide-plan p { margin: 0.3rem 0 0; }
.slide-plan .slide-role { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.slide-number { font: 400 1.35rem/1 var(--serif); color: var(--gold-ink); min-width: 1.5rem; }
.tag-list { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.examples { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; overflow-wrap: anywhere; }
.stack fieldset.slide-fields { margin-top: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ carousels (1340) */

/* The slide grounds of design spec section 3.1 (the slides' own colours, not the app's). */
.ground-cream { background: #F3EDDB; }
.ground-cream-warm { background: #F4ECE0; }
.ground-espresso { background: #33211B; }
.ground-espresso-deep { background: #24120C; }
.ground-wash { background: linear-gradient(135deg, #EFDEA8 0%, #ECE3CA 45%, #DDE2DE 100%); }
.ground-ink-deep { background: linear-gradient(180deg, #1C0E0B 0%, #120904 100%); }
.ground-neutral { background: #EAEBF0; }
.ground-photo { background: linear-gradient(160deg, #8C7A68 0%, #4F3E37 60%, #2F1F1A 100%); }

/* The list. */
.carousel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.carousel-row { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; align-items: start;
  padding: 1rem 0; border-top: 1px solid var(--line); }
.carousel-row:first-child { border-top: 0; padding-top: 0.25rem; }
.carousel-thumb { display: block; text-decoration: none; }
.carousel-thumb img, .mock-tile { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.mock-tile { display: flex; align-items: flex-end; padding: 0.4rem; font: 400 1.4rem/1 var(--serif);
  color: rgba(51, 33, 28, 0.55); }
.mock-tile.ground-espresso, .mock-tile.ground-ink-deep { color: rgba(240, 236, 216, 0.7); }
.carousel-row-main { min-width: 0; display: grid; gap: 0.15rem; }
.carousel-row-title { font: 400 1.35rem/1.15 var(--serif); color: var(--espresso); overflow-wrap: anywhere; }
.carousel-row .meta { margin: 0.25rem 0 0; }
.carousel-row .fine { margin: 0; }

/* A slide in the editor: the rendered JPEG, or a sketch in its ground with its words. Sizes
   inside the sketch follow its width (container units), so it reads the same at any size. */
.face { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 6px; background: var(--sand); container-type: inline-size;
  box-shadow: 0 1px 0 rgba(51, 33, 28, 0.08), 0 6px 18px rgba(51, 33, 28, 0.10); }
.face-tall { aspect-ratio: 9 / 16; }
.face-large, .face-medium { border-radius: 10px; }
.face-render { display: block; width: 100%; height: 100%; object-fit: cover; }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16cqw 8cqw 12cqw; color: #2E1E18; text-align: left; }
.mock-v-start { justify-content: flex-start; }
.mock-v-center { justify-content: center; }
.mock-h-center { text-align: center; }
.mock-dark { color: #F0ECD8; }
.mock-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock.ground-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51, 33, 27, 0) 38%, rgba(51, 33, 27, 0.55) 60%, rgba(51, 33, 27, 0.93) 100%); }
.mock-header { position: absolute; z-index: 1; top: 6cqw; left: 8cqw; right: 8cqw; display: flex;
  justify-content: space-between; gap: 4cqw; font: 600 2.6cqw/1 var(--sans); letter-spacing: 0.2em;
  text-transform: uppercase; color: #3D5A6B; }
.mock-dark .mock-header { color: rgba(240, 236, 216, 0.85); }
.mock-words { position: relative; z-index: 1; display: grid; gap: 3cqw; }
.mock-text { font: 400 10.5cqw/0.98 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.mock-sub { font: 500 4cqw/1.35 var(--sans); opacity: 0.85; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.mock-number { position: absolute; z-index: 1; right: 8cqw; bottom: 6cqw; font: 500 2.8cqw/1 var(--sans);
  letter-spacing: 0.15em; opacity: 0.7; }

/* The editor. Every save swaps the whole editor in place; without this, the browser's scroll
   anchoring jumps the page (to the foot) instead of leaving her where she was. */
.carousel-editor { overflow-anchor: none; }
.editor-head { margin-bottom: 1.25rem; }
.editor-head h1 { overflow-wrap: anywhere; }
.render-status { margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 10px; background: var(--card);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; }
.render-status > * { margin: 0; }
.render-status .render-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  flex: 1 1 18rem; color: var(--espresso); }
.render-status form { margin-left: auto; }
.render-status > p:not(.render-line), .render-status details { flex-basis: 100%; }
.render-ready, .render-submitted { border-left-color: var(--ok); }
.render-failed { border-left-color: var(--stop); }
.render-rendering { border-left-color: var(--denim); }
.render-status details { border-top: 0; }
.render-status details ul { margin: 0; padding-left: 1.1rem; font-size: 0.875rem; }
.pill-draft { background: var(--tint); }

.look-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.25rem; margin: 0 0 1rem; }
.look-bar .filters { margin: 0; }
.theme-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.look-label { font: 600 0.6875rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--denim); margin-right: 0.25rem; }
.btn-theme { min-height: 2.25rem; padding: 0.4rem 0.8rem; border-radius: 100px; border-color: rgba(51, 33, 28, 0.3);
  letter-spacing: 0.06em; }
.btn-theme[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--white); }

/* The slide strip: scrolls sideways on a phone, wraps on wider screens. */
.strip-wrap { margin: 0 -1.25rem 1.25rem; overflow-x: auto; scrollbar-width: thin; }
.slide-strip { list-style: none; margin: 0; padding: 0.35rem 1.25rem 0.75rem; display: flex; gap: 0.6rem;
  align-items: stretch; }
.strip-item { flex: none; width: 6.75rem; }
.strip-link { display: grid; gap: 0.45rem; padding: 4px; border-radius: 9px; border: 2px solid transparent;
  color: var(--espresso); text-decoration: none; }
.strip-link:hover .face { box-shadow: 0 0 0 2px var(--gold); }
.strip-item.is-selected .strip-link { border-color: var(--espresso); background: var(--card); }
.strip-caption { font: 600 0.625rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body); overflow-wrap: anywhere; }
.strip-num { font: 400 1rem/1 var(--serif); letter-spacing: 0; color: var(--gold-ink); margin-right: 0.2rem; }
.strip-flag { justify-self: start; padding: 0.15rem 0.45rem; border-radius: 100px; background: var(--stop);
  color: var(--white); font: 600 0.625rem/1.3 var(--sans); letter-spacing: 0.04em; }
.slide-notes { margin: 0 0 1rem; padding: 0.6rem 0.8rem 0.6rem 1.6rem; border-left: 3px solid var(--stop);
  border-radius: 8px; background: var(--card); font-size: 0.875rem; }
.slide-notes li + li { margin-top: 0.3rem; }
.fit-notes { flex-basis: 100%; }
.fit-notes ul { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.875rem; }
.strip-add { width: 9.5rem; padding: 0.75rem; border: 1.5px dashed var(--field-line); border-radius: 10px;
  display: grid; align-content: center; }
.strip-add .stack .btn { margin-top: 0.25rem; }
.strip-add label { font-size: 0.8125rem; }

.editor-grid { display: grid; gap: 1.25rem; align-items: start; }
.editor-preview { min-width: 0; }
.slide-preview { display: grid; gap: 0.6rem; justify-items: center; }
.slide-preview > .face { max-width: 24rem; }
.slide-preview > .face-tall { max-width: 18rem; }
.preview-note { margin: 0; text-align: center; }
.preview-empty { padding: 3rem 1rem; text-align: center; font-family: var(--serif); font-style: italic; }
.cover-faces { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.cover-faces li { display: grid; gap: 0.35rem; }
.aspect-offer { display: grid; gap: 0.35rem; justify-items: center; text-align: center; }
.aspect-offer p { margin: 0; }

/* The crop tool (problem report 237911ed; static/js/crop.js): the photo in the frame it fills
   on the slide, moved by dragging (touch too: no scrolling while a finger is on it) or the
   arrow keys. The script sets the frame's shape and the photo's box (CSSOM, not inline
   styles); the photo keeps its own aspect, so object-fit only absorbs rounding. */
.crop-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.crop-dialog { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto;
  padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--espresso); }
.crop-dialog::backdrop { background: rgba(28, 22, 20, 0.6); }
.crop-dialog h2 { margin: 0 0 0.35rem; font-size: 1.5rem; }
.crop-form { display: grid; gap: 0.75rem; }
.crop-form > p { margin: 0; }
.crop-stage { position: relative; width: 100%; margin: 0 auto; overflow: hidden; border-radius: 8px;
  background: var(--sand); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-stage[hidden] { display: none; }
.crop-stage:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.crop-stage.is-dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.crop-grid::before, .crop-grid::after { content: ""; position: absolute; inset: 0; }
.crop-grid::before { left: 33.333%; right: 33.333%; border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5); }
.crop-grid::after { top: 33.333%; bottom: 33.333%; border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.crop-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; border: 0; }
.crop-presets legend { width: 100%; margin-bottom: 0.35rem; font-size: 0.8125rem; }
.crop-zoom { display: grid; gap: 0.25rem; }
.crop-zoom input { width: 100%; accent-color: var(--espresso); }

.slide-panel-head { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.slide-panel-head h2 { margin: 0; }
.slide-actions form { margin: 0; }
.slide-actions .btn { min-height: 40px; padding: 0.55rem 0.9rem; font-size: 0.6875rem; }
.slide-form .form-actions { margin-top: 0.75rem; }
.slide-form .form-actions .btn { margin-top: 0; }
.slide-fields { gap: 0.45rem; }
.field-pair { display: grid; gap: 0.45rem 0.9rem; }
.stack fieldset.field-pair { gap: 0.45rem 0.9rem; }
.field-pair > .stack > label { margin-top: 0.5rem; }
.rows-fields .row-fields { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; padding: 0.75rem 0;
  border-top: 1px solid var(--line); }
.rows-fields .row-fields .slide-number { padding-top: 0.6rem; }
.reads-as { margin: 0.15rem 0 0.25rem; padding: 0.6rem 0.8rem; border-radius: 8px; background: var(--tint);
  font: 400 1.25rem/1.2 var(--serif); color: var(--espresso); overflow-wrap: anywhere; }
.reads-as .fine { font-family: var(--sans); margin-right: 0.35rem; }
.em-accent { font-style: italic; color: var(--denim); }
.em-chip { background: var(--powder); border-radius: 4px; padding: 0 0.2em; }
.em-swash { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px;
  text-underline-offset: 4px; }
.em-strong { font-weight: 700; }

/* Background: colour chips, or one of her photos (shown once "A photo" is chosen; browsers
   without :has() always show the photos). */
.stack fieldset.bg-picker { margin-top: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--line); gap: 0.6rem; }
.ground-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.35rem 0.75rem; }
.ground-option { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 500; font-size: 0.875rem; }
.ground-option input { margin: 0; accent-color: var(--espresso); flex: none; }
.ground-chip { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid rgba(51, 33, 28, 0.3); }
.bg-picker:has(.ground-options input[value="photo"]:not(:checked)) .photo-fields { display: none; }
.photo-fields { display: grid; gap: 0.5rem; }
.photo-fields > .fine, .photo-fields > .empty { margin: 0; }
.photo-picker { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); }
.photo-option { position: relative; display: grid; gap: 0.25rem; cursor: pointer; font-weight: 400; }
.photo-option input { position: absolute; top: 0.4rem; left: 0.4rem; margin: 0; width: 1.15rem; height: 1.15rem;
  accent-color: var(--espresso); }
.photo-option img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: var(--sand); }
.photo-option:has(input:checked) img { border-color: var(--espresso); box-shadow: 0 0 0 3px var(--butter); }
.photo-option .fine { font-size: 0.75rem; line-height: 1.3; }
.stack fieldset.proof-fields, .stack fieldset.rows-fields { margin-top: 0.75rem; padding-top: 0.85rem;
  border-top: 1px solid var(--line); }
.stack fieldset.cover-variant { padding: 1rem 0; border-top: 1px solid var(--line); }
.stack fieldset.cover-variant:first-of-type { border-top: 0; padding-top: 0; }

.send-panel .stack fieldset { margin-top: 0.5rem; }
.send-state { display: grid; gap: 0.35rem; }
.send-state .fine { margin: 0.5rem 0 0; }
.sent-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.sent-cards li { color: var(--espresso); }
.sent-cards ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.picks-actions { margin: 0.25rem 0 0.5rem; }
.picks-actions form { margin: 0; }

@media (min-width: 40rem) {
  .field-pair { grid-template-columns: 1fr 1fr; }
  .stack fieldset.field-pair legend { grid-column: 1 / -1; }
  .carousel-row { grid-template-columns: 5.5rem 1fr; }
  .strip-wrap { margin: 0 0 1.5rem; overflow: visible; }
  .slide-strip { flex-wrap: wrap; padding: 0.35rem 0 0; }
}

@media (min-width: 60rem) {
  .editor-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem; }
  .editor-preview { position: sticky; top: 1rem; }
  .slide-preview > .face { max-width: none; }
  .slide-preview > .face-tall { max-width: 20rem; }
  .slide-panel-head { grid-template-columns: auto 1fr; align-items: center; }
  .slide-actions { justify-content: flex-end; }
}

@media (min-width: 75rem) {
  .editor-preview { top: 7.5rem; } /* below the sticky top bar (about 6.3rem) */
}

/* ------------------------------------------------------------------ policy */

.draft-banner {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  background: var(--butter);
  color: var(--espresso);
}
.draft-banner strong { font: 700 0.6875rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* The policy and support pages (pub-site, 2026-11-16): a readable column of long text. */
.legal-page { max-width: 52rem; }
.legal { padding: 2rem 1.5rem 1.5rem; }
.legal h1 { font-size: clamp(2.1rem, 8vw, 2.75rem); margin: 0.75rem 0 0.5rem; }
.legal h2 { font-size: 1.45rem; margin: 2rem 0 0.6rem; }
.legal h3 { margin: 1.25rem 0 0.35rem; }
.legal p, .legal li { max-width: 68ch; }
/* Long addresses (Google's permissions page, the support email) wrap on a phone. */
.legal a { overflow-wrap: anywhere; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.35rem; }
.draft-note { margin-top: 0.6rem; }
.legal-meta { color: var(--gold-ink); font: 600 0.75rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0.75rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.legal-nav a { font-size: 0.9375rem; }
.legal-nav a[aria-current="page"] { font-weight: 600; text-decoration: none; }
.legal-toc { margin: 1.25rem 0 0.5rem; padding: 0.9rem 1.1rem 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.legal-toc ol { margin: 0; columns: 2 14rem; column-gap: 2rem; }
.legal-summary { margin-top: 1.25rem; }
.legal-summary h2 { margin-top: 0.5rem; }
.legal-conditional { padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--powder2); }
.lede-small { font-size: 1.0625rem; }
.table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal-table th, .legal-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--body); }
.legal-table thead th { color: var(--espresso); font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.legal-table th[scope="row"] { color: var(--espresso); font-weight: 600; min-width: 10rem; }
.legal-contact { margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
mark.todo { background: var(--butter); color: var(--espresso); padding: 0 0.2em; border-radius: 3px; }

/* ------------------------------------------------------------------ Lolo Studio (1370) */

/* The approved mockup (Andrew, 2026-11-12): Home is prompt-first; a project is the chat on
   the left (460px) and the live carousel or reel on the right; below 900px one pane at a time
   with Chat | Preview tabs. Every target is at least 44px. */

.label {
  margin: 0;
  font: 700 0.75rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--denim);
}
.grow { flex: 1; }
.phone-only { display: none; }
/* Hidden means hidden, whatever display a class gives (the script toggles these). */
.studio [hidden], .prompt-box [hidden], .home [hidden] { display: none; }

/* Round icon buttons: "+" and send. */
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--espresso);
  cursor: pointer; list-style: none;
}
.icon-button::-webkit-details-marker { display: none; }
.icon-button:hover { background: var(--tint); }
.send-round {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--espresso); color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.send-round:hover:not(:disabled) { background: var(--denim); }
.send-round:disabled { opacity: 0.35; cursor: not-allowed; }
.stop-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1rem;
  border: 1.5px solid var(--espresso); border-radius: 100px;
  background: var(--white); color: var(--espresso);
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
}
.stop-pill:hover { background: var(--espresso); color: var(--white); }
.stop-square { width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.9rem;
  border: 1px solid rgba(51, 33, 28, 0.28); border-radius: 100px;
  background: var(--card); color: var(--espresso);
  font: 600 0.8125rem/1.2 var(--sans);
  cursor: pointer; list-style: none; white-space: nowrap;
}
.chip::-webkit-details-marker { display: none; }
.chip:hover:not(:disabled) { background: var(--tint); }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }
.chip-square { border-radius: 10px; border-color: var(--line); }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(51, 33, 28, 0.28); border-radius: 100px;
  background: var(--white); color: var(--espresso);
  font: 700 0.6875rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
}
.btn-pill:hover:not(:disabled) { background: var(--tint); }
.btn-pill-go { border-color: var(--espresso); background: var(--espresso); color: var(--white); }
.btn-pill-go:hover:not(:disabled) { background: var(--denim); border-color: var(--denim); }
.btn-pill:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- the prompt box (Home, Studio list) */

.prompt-box {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.1rem 1.1rem 0.9rem 1.375rem;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(51, 33, 28, 0.08);
}
.prompt-box textarea, .composer textarea {
  min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; resize: none;
}
.prompt-box textarea { font: 400 1.125rem/1.5 var(--sans); }
.prompt-box textarea:focus, .composer textarea:focus { outline: none; }
/* The box's own text field has no outline, so the box shows where focus is. */
.prompt-box:focus-within, .composer-box:focus-within {
  border-color: var(--denim); box-shadow: 0 0 0 2px rgba(61, 90, 107, 0.22);
}
.prompt-bar, .composer-bar { display: flex; align-items: center; gap: 0.5rem; }
/* On a phone the quick starts take their own rows above "+" and Start. */
.prompt-bar { flex-wrap: wrap; }
.quick-starts { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1 1 100%; }
.prompt-error { margin: 0; color: var(--stop); font-weight: 500; font-size: 0.9375rem; }

/* The "+" menu and its image picker. The menus are <details>: none of the app's folding
   section look (rule above, uppercase label, "+" after). */
.attach, .playbook-chip, .versions { position: relative; }
.me, .attach, .playbook-chip, .versions { border-top: 0; }
.me > summary, .attach > summary, .playbook-chip > summary, .versions > summary {
  min-height: 44px; gap: 0.5rem; letter-spacing: 0; text-transform: none;
}
.me[open] > summary, .attach[open] > summary, .playbook-chip[open] > summary, .versions[open] > summary { margin-bottom: 0; }
.me > summary::after, .attach > summary::after, .playbook-chip > summary::after, .versions > summary::after { content: none; }
.versions > .versions-menu { padding-bottom: 0.4rem; }
.attach-menu {
  position: absolute; z-index: 40; bottom: calc(100% + 0.4rem); right: 0;
  display: grid; gap: 0.15rem; min-width: 12rem; padding: 0.4rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); box-shadow: 0 18px 40px rgba(51, 33, 28, 0.14);
}
.playbook-menu { left: 0; right: auto; max-height: 18rem; overflow-y: auto; }
.playbook-menu .fine { margin: 0.25rem 0.5rem; }
.attach-item {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  border: 0; border-radius: 8px; background: none; color: var(--espresso);
  font: 500 0.9375rem/1.3 var(--sans); text-align: left; cursor: pointer;
}
.attach-item:hover, .attach-item[aria-pressed="true"] { background: var(--tint); }
.attach-item[aria-pressed="true"] { font-weight: 700; }
.clip-uploader { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.att-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.att-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.25rem; padding: 0.2rem 0.25rem 0.2rem 0.5rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--espresso); font-size: 0.8125rem; font-weight: 600;
}
.att-chip img { width: 1.6rem; height: 2rem; object-fit: cover; border-radius: 3px; }
.att-chip button {
  width: 44px; height: 44px; margin: -0.45rem -0.35rem -0.45rem -0.25rem;
  border: 0; border-radius: 8px; background: none;
  color: var(--body); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.att-chip button:hover { background: var(--tint); color: var(--espresso); }
/* A photo she added with the "+": uploading, Checking..., ready, or refused with why. */
.att-photo { max-width: 100%; }
.att-photo .att-thumb { flex: none; width: 1.6rem; height: 2rem; border-radius: 3px; background: var(--sand); }
.att-photo .att-state { min-width: 0; font-weight: 500; color: var(--body); }
.att-photo.is-ready .att-state { font-weight: 600; color: var(--espresso); }
.att-photo.is-uploading .att-thumb, .att-photo.is-checking .att-thumb,
.att-photo.is-uploading img, .att-photo.is-checking img { opacity: 0.55; }
.att-photo.is-failed { border-color: var(--stop); }
.att-photo.is-failed .att-state { color: var(--stop); }
.att-chip .att-retry {
  width: auto; height: auto; min-height: 44px; margin: -0.45rem 0; padding: 0 0.4rem;
  color: var(--espresso); font-size: 0.8125rem; font-weight: 600; text-decoration: underline;
}
.prompt-box.drop-over, .composer.drop-over .composer-box { border-color: var(--espresso); background: var(--tint); }
.uploads-mini { margin: 0; gap: 0.35rem; }
.uploads-mini:empty { display: none; }
.uploads-mini .upload { font-size: 0.8125rem; }
.image-picker { padding: 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.image-picker-head { display: flex; align-items: center; justify-content: space-between; }
.picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)); gap: 0.4rem;
  max-height: 12rem; overflow-y: auto; margin: 0.4rem 0 0; padding: 0; list-style: none;
}
.image-choice {
  display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 6px;
  background: var(--sand); cursor: pointer; overflow: hidden;
}
.image-choice img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.image-choice[aria-pressed="true"] { border-color: var(--espresso); }

/* ---- Home */

main.home { width: 100%; padding: 2rem 1rem 3rem; }
.home-hero { display: grid; gap: 1.1rem; width: 100%; max-width: 55rem; margin: 0 auto; }
.home-hero h1 {
  margin: 0; text-align: center;
  font: 400 clamp(2.4rem, 9vw, 3.75rem)/1.02 var(--serif);
}
.home-hero h1 em { color: var(--gold-ink); }
.home-note { margin: 0; text-align: center; font-size: 0.8125rem; }
.home-cols { display: grid; gap: 1.75rem; width: 100%; max-width: 70rem; margin: 2.25rem auto 0; }
.home-ideas, .home-side { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem; }
.idea-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.idea-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.idea-pills .pill { min-height: 1.4rem; padding: 0.1rem 0.55rem; font-size: 0.6875rem; }
.pill-top { background: var(--butter); border-color: var(--butter); }
.idea-topic { margin: 0; font: 400 1.375rem/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--espresso); }
.idea-meta { margin: 0; font-size: 0.8125rem; overflow-wrap: anywhere; }
.idea-card form { margin-top: auto; }
.more-ideas > summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  font-weight: 600; color: var(--espresso);
}
.more-ideas[open] > summary { margin-bottom: 0.5rem; }
.home-side .todos-today { padding: 0; margin: 0; border: 0; background: none; }
.home-side .todos-today > h2 {
  margin: 0 0 0.9rem;
  font: 700 0.75rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--denim);
}
.home-side .today-text { font-size: 0.9375rem; }
.home-views { display: grid; gap: 0.4rem; }
.views-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 0; color: var(--espresso); }
.views-total { font: 400 1.75rem/1 var(--serif); }
.views-goal { font-size: 0.875rem; font-weight: 600; }
.goal-bar-thin { height: 6px; }
/* Home's stats (Andrew, 2026-11-13): the pace, then a row per platform with its views, 7-day
   change and 30-day line (small multiples, each line on its own scale). */
.pace { margin: 0.35rem 0 0; color: var(--espresso); font-size: 0.9375rem; line-height: 1.4; }
.pace strong { font-weight: 700; }
.pace-why { margin: 0; font-size: 0.8125rem; line-height: 1.45; }
.platform-stats { display: grid; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.platform-stat {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name spark" "value spark";
  align-items: center; column-gap: 0.75rem; row-gap: 0.1rem;
  padding: 0.55rem 0; border-top: 1px solid var(--line);
}
.platform-stat:last-child { border-bottom: 1px solid var(--line); }
.ps-name { grid-area: name; display: flex; align-items: center; gap: 0.35rem; font: 600 0.8125rem/1.3 var(--sans); color: var(--espresso); }
.ps-name .fine { font-size: 0.75rem; font-weight: 400; }
.ps-value { grid-area: value; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; margin: 0; }
.ps-views { font: 600 1.125rem/1.2 var(--sans); color: var(--espresso); }
.delta { font: 600 0.8125rem/1.2 var(--sans); white-space: nowrap; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--stop); }
.delta-flat { color: var(--body); }
.spark { grid-area: spark; display: block; width: 120px; height: 32px; overflow: visible; }
/* YouTube's attribution beside YouTube data (pub-youtube): small, never the main element. */
.yt-attribution { display: inline-flex; align-items: center; gap: 0.3rem; font: 400 0.75rem/1.3 var(--sans); }
.yt-attribution .yt-icon { height: 20px; width: auto; }
.spark-instagram { --spark: var(--seg-instagram); }
.spark-tiktok { --spark: var(--seg-tiktok); }
.spark-youtube { --spark: var(--seg-youtube); }
.spark-area { fill: var(--spark); fill-opacity: 0.09; }
.spark-line, .spark-tail { fill: none; stroke: var(--spark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark-tail { stroke-opacity: 0.4; }
.spark-dot { fill: var(--spark); stroke: var(--paper); stroke-width: 2; }
.spark-hit { fill: transparent; }
.spark-hit:hover { fill: rgba(51, 33, 28, 0.08); }
.stats-note { margin: 0.35rem 0 0; font-size: 0.8125rem; line-height: 1.45; }
.daily > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--espresso); }
.daily-scroll { overflow-x: auto; }
.daily table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.daily th, .daily td { padding: 0.2rem 0.4rem; text-align: right; white-space: nowrap; color: var(--espresso); }
.daily th:first-child { padding-left: 0; text-align: left; font-weight: 400; color: var(--body); }
.daily thead th { font-weight: 600; border-bottom: 1px solid var(--line); }
.daily .fine { margin: 0.4rem 0 0; font-size: 0.8125rem; }
/* What's working: her own posts as cards, like the ideas. */
.home-main { display: grid; gap: 2rem; align-content: start; min-width: 0; }
.home-working { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.home-working .empty, .home-working .fine { margin: 0; }
/* Cards at least 14rem wide (three across on a laptop), so "Make another like this" stays on
   one line. */
.idea-grid.work-grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.work-card .btn-pill { padding: 0 0.875rem; letter-spacing: 0.06em; white-space: nowrap; }
.work-hook { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.recent { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.recent li { display: flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; font-size: 0.875rem; }
.recent-name { display: flex; flex: 1; align-items: center; gap: 0.15rem; min-width: 0; }
.recent-name > a { min-width: 0; overflow-wrap: anywhere; color: var(--espresso); }
.recent .chat-thumb { width: 2rem; height: 2.5rem; }
.home-recent .fine { margin: 0.25rem 0 0; }
.pill-draft { background: var(--tint); border-color: var(--tint); }
.pill-inqueue { background: var(--powder); border-color: var(--powder); color: var(--denim); }
.pill-posted { background: rgba(63, 102, 64, 0.15); border-color: transparent; color: var(--ok); }
.pill-chat { background: transparent; }
.pill-working { background: var(--wait-tint); border-color: rgba(122, 91, 36, 0.5); color: var(--gold-ink); }

/* ---- the Studio list */

.page-studio-list .prompt-box { margin-bottom: 2.5rem; }
.projects-section { display: grid; gap: 0.9rem; }
.projects { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
/* A row is one link: the title's, stretched over the row (::after), with the rename pencil
   above it (a button can't sit inside a link). */
.project {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "thumb kind pill" "thumb title pill" "thumb meta pill";
  align-items: center; column-gap: 1rem;
  padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--espresso);
}
.project:hover { border-color: var(--field-line); }
.project:hover .project-title { text-decoration: underline; text-decoration-color: rgba(51, 33, 28, 0.4); }
.project > .chat-thumb { grid-area: thumb; width: 2.75rem; height: 3.4rem; }
.project-kind { grid-area: kind; font: 700 0.6875rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.project-name { grid-area: title; display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.project-title { min-width: 0; font: 400 1.375rem/1.2 var(--serif); overflow-wrap: anywhere; color: var(--espresso); text-decoration: none; }
.project-title::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.project-title:focus-visible { outline: none; }
.project-title:focus-visible::after { outline: 2px solid var(--denim); outline-offset: 2px; }
.project .rename-btn, .project .rename-form { position: relative; z-index: 1; }
.project-meta { grid-area: meta; font-size: 0.8125rem; color: var(--body); }
.project .pill { grid-area: pill; }
.pager { display: flex; gap: 1.5rem; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Settings: the hub */

.hub { margin: 0 0 1.75rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.hub-card {
  display: grid; gap: 0.25rem; height: 100%;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--espresso); text-decoration: none;
}
.hub-card:hover { border-color: var(--field-line); }
.hub-name { font: 400 1.375rem/1.15 var(--serif); }
.hub-card:hover .hub-name { text-decoration: underline; text-decoration-color: rgba(51, 33, 28, 0.4); }
.hub-text { color: var(--body); font-size: 0.875rem; }
.hub-more { margin: 0.9rem 0 0; line-height: 2.4; }

/* ---- a project: the two panes */

main.studio-main { display: flex; flex-direction: column; min-height: 0; }
/* The studio fills the screen: a message floats over its top (tap it to close) instead of
   pushing the composer and the meter below the fold. */
.page-studio .flash-region {
  position: fixed; top: calc(0.5rem + env(safe-area-inset-top)); left: 0; right: 0; z-index: 80;
  padding: 0 1rem; pointer-events: none;
}
.page-studio .flash-region:not(:empty) { padding-top: 0; }
.page-studio .flash-region .flash { pointer-events: auto; cursor: pointer; }
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "head" "pane";
  height: 100vh; height: 100dvh;
  background: var(--card);
}
.studio-head {
  grid-area: head;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.75rem 0.6rem;
  padding: calc(0.875rem + env(safe-area-inset-top)) 1rem 0.75rem;
  border-bottom: 1px solid var(--line); background: var(--cream);
}
.studio-back {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: -0.6rem; color: var(--espresso);
}
.studio-titles {
  min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "thumb name" "thumb sub";
  column-gap: 0.75rem; align-items: center;
}
.studio-thumb { grid-area: thumb; display: flex; }
.studio-name, .studio-titles > .rename-form { grid-area: name; display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.studio-title {
  margin: 0; font: 400 1.375rem/1.1 var(--serif); letter-spacing: 0;
  overflow-wrap: anywhere;
}
.studio-sub { grid-area: sub; margin: 0.15rem 0 0; font-size: 0.75rem; }
.studio-tabs {
  grid-column: 1 / -1;
  display: flex; padding: 3px; border-radius: 100px; background: var(--sand);
}
.studio-tabs a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; border-radius: 100px;
  color: var(--body); font: 600 0.875rem/1 var(--sans); text-decoration: none;
}
.studio-tabs a[aria-current="page"] { background: var(--white); color: var(--espresso); }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.tab-dot[hidden] { display: none; }

.studio-chat, .studio-preview { grid-area: pane; min-height: 0; min-width: 0; }
.studio[data-view="chat"] .studio-preview, .studio[data-view="preview"] .studio-chat { display: none; }

/* The chat. */
.studio-chat { display: flex; flex-direction: column; background: var(--card); }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
.chat-alert { margin: 0 0 1rem; padding: 0.6rem 0.85rem; border-radius: 10px; background: var(--stop-tint); color: var(--stop); font-weight: 500; }
.chat-intro p { font: italic 400 1.2rem/1.35 var(--serif); color: var(--body); }
.older { margin: 0 0 0.75rem; text-align: center; font-size: 0.875rem; }
.older a { display: inline-flex; align-items: center; min-height: 44px; }
.messages { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.45; }
.msg { color: var(--espresso); }
.msg-me { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; max-width: min(85%, 20.625rem); }
.bubble {
  padding: 0.7rem 0.9rem; border-radius: 16px 16px 4px 16px;
  background: var(--espresso); color: var(--white);
  white-space: pre-line; overflow-wrap: anywhere;
}
.msg-atts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.msg-atts img { display: block; width: 2.75rem; height: 3.4rem; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.att-clip { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 8px; background: var(--tint); font-size: 0.8125rem; font-weight: 600; }
.msg-sel { margin: 0; font-size: 0.75rem; color: var(--body); }
/* A message Lolo wrote herself (W10: "Lolo started this from your recording"): a centred line
   between rules, neither her bubble nor a reply. */
.msg-system { display: flex; align-items: center; gap: 0.6rem; width: 100%; }
.msg-system::before, .msg-system::after { content: ""; flex: 1 1 0.75rem; min-width: 0.75rem; border-top: 1px solid var(--line); }
.msg-system-line {
  flex: 0 1 auto; max-width: 85%; margin: 0; text-align: center;
  font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.02em; color: var(--gold-ink);
  overflow-wrap: anywhere;
}
.msg-lolo { display: flex; flex-direction: column; gap: 0.6rem; max-width: min(100%, 23.75rem); }
.msg-who { margin: 0; font: 600 0.6875rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.msg-text { white-space: pre-line; overflow-wrap: anywhere; color: var(--espresso); }
.msg-working { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; color: var(--body); }
.msg-notice { margin: 0; font-size: 0.875rem; color: var(--body); }
.msg-error { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--stop); }
.changes-card {
  display: grid; gap: 0.5rem; margin: 0; padding: 0.75rem 0.9rem; list-style: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 0.875rem;
}
.changes-card li { display: flex; align-items: center; gap: 0.5rem; color: var(--espresso); }
.check-mark { flex: none; color: var(--ok); }
.changes-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.change-pill {
  padding: 0.2rem 0.65rem; border: 1px solid rgba(51, 33, 28, 0.28); border-radius: 100px;
  background: var(--white); color: var(--espresso); font: 600 0.75rem/1.4 var(--sans);
}
.pill-link {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  border: 1px solid rgba(51, 33, 28, 0.28); border-radius: 100px; background: var(--white);
  font: 600 0.8125rem/1 var(--sans); text-decoration: none;
}
.pill-link:hover { background: var(--tint); }
.msg-view {
  display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.4rem 0.75rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--espresso); text-decoration: none;
}
.msg-view-text { flex: 1; font-size: 0.8125rem; font-weight: 600; }

/* "Lolo is working" dots. */
.dots { display: inline-flex; gap: 3px; }
.dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-ink); animation: lolo-dot 1.2s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: 0.15s; }
.dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lolo-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* The composer, the meter and the rule under it. */
.chat-foot {
  display: grid; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--card);
}
.chat-foot > * { min-width: 0; }
.composer-box {
  display: grid; gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border: 1px solid var(--line); border-radius: 22px; background: var(--white);
}
.composer textarea { font: 400 1rem/1.4 var(--sans); padding-top: 0.35rem; }
.sel-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2rem; padding: 0 0.25rem 0 0.6rem;
  border-radius: 100px; background: var(--tint); color: var(--espresso); font: 600 0.75rem/1 var(--sans);
  white-space: nowrap;
}
.sel-chip[hidden] { display: none; }
.sel-chip button { width: 44px; height: 44px; margin: -0.375rem -0.5rem -0.375rem -0.25rem; border: 0; background: none; cursor: pointer; color: var(--body); font-size: 1rem; }
.stop-form { display: none; }
.limit { display: grid; gap: 0.5rem; padding: 0.85rem 1rem; border-radius: 12px; background: var(--wait-tint); }
.limit p { margin: 0; color: var(--espresso); font-size: 0.875rem; }
.limit .btn { justify-self: start; }
.meter { display: flex; align-items: center; gap: 0.6rem; font-size: 0.6875rem; color: var(--body); }
.meter-bar { flex: 1; height: 3px; }
.meter-track { fill: var(--sand); }
.meter-fill { fill: var(--gold-ink); }
.chat-rule { margin: 0; font-size: 0.75rem; }

/* ---- the preview */

.studio-preview { display: flex; flex-direction: column; overflow-y: auto; background: var(--cream); }
.studio-preview .preview { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; padding: 1rem; }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.seg-form { margin: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 100px; background: var(--sand); }
.seg button {
  min-height: 44px; padding: 0 1rem; border: 0; border-radius: 100px;
  background: transparent; color: var(--body); font: 600 0.8125rem/1 var(--sans); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--espresso); }
.seg button:hover:not(:disabled):not([aria-pressed="true"]) { color: var(--espresso); }
.seg button:disabled { opacity: 0.45; cursor: not-allowed; }
.pill-button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(51, 33, 28, 0.28); border-radius: 100px; background: var(--white);
  color: var(--espresso); font: 600 0.8125rem/1 var(--sans); cursor: pointer; list-style: none;
}
.pill-button::-webkit-details-marker { display: none; }
.versions-menu { position: absolute; z-index: 40; top: calc(100% + 0.4rem); right: 0; display: grid; gap: 0.15rem; min-width: 12rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 18px 40px rgba(51, 33, 28, 0.14); }
.versions-menu .fine { margin: 0.25rem 0.5rem; }
.btn-send {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.375rem; border-radius: 100px;
  background: var(--espresso); color: var(--white);
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.btn-send:hover { background: var(--denim); }
.preview-status, .preview-error { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; }
.preview-error { color: var(--stop); }
.preview-error .ask-form { display: inline; }

/* The big slide, prev/next, the thumbnails. On a phone the slides swipe (scroll-snap). */
.stage { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex: 1; min-height: 0; }
.stage-nav {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--espresso);
}
.stage-nav:hover { background: var(--tint); }
.stage-slides { margin: 0; padding: 0; list-style: none; }
.stage-slide figure { position: relative; margin: 0; }
.stage-slide img {
  display: block; width: auto; max-width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px; background: var(--sand);
  box-shadow: 0 24px 60px rgba(51, 33, 28, 0.14);
}
.badge-changed, .badge-overflow {
  position: absolute; top: -12px; right: -12px;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font: 700 0.6875rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-changed { background: var(--ok); color: var(--white); }
/* The editor's crop tool on this slide's photo (problem report 237911ed). */
.stage-crop { position: absolute; left: 10px; bottom: 10px; padding: 0.35rem 0.8rem; border-radius: 100px;
  background: rgba(255, 253, 248, 0.94); color: var(--espresso); text-decoration: none;
  font: 700 0.6875rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(51, 33, 28, 0.18); }
.stage-crop:hover, .stage-crop:focus-visible { background: var(--white); }
.badge-overflow { top: auto; bottom: -12px; background: var(--stop); color: var(--white); }
.thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.thumb {
  position: relative; display: block; width: 76px; height: 95px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px; background: var(--sand);
}
.thumb-tall { height: 135px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border: 2px solid var(--espresso); }
.thumb-changed::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--white); }
.caption-line { margin: 0; text-align: center; font-size: 0.75rem; }
.slide-skeleton { width: min(70vw, 420px); aspect-ratio: 4 / 5; border-radius: 6px; background: linear-gradient(100deg, var(--sand) 30%, var(--tint) 50%, var(--sand) 70%); background-size: 200% 100%; animation: lolo-shimmer 1.6s infinite linear; }
@keyframes lolo-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.queue-line { margin: 0; text-align: center; }

.studio-preview .preview-empty { display: flex; flex: 1; align-items: center; justify-content: center; padding: 2rem 0; }
.preview-empty-card { max-width: 26rem; text-align: center; }
.preview-empty-card h2 { margin: 0.4rem 0 0.6rem; font-size: 2rem; }

/* Preview original: the platform's own embed, built on tap (studio.js). */
.original { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 1.25rem; font-style: normal; font-family: var(--sans); }
.original-frame { flex-basis: 100%; display: flex; justify-content: center; }
.original-frame[hidden] { display: none; }
.original-frame iframe { width: 100%; max-width: 20rem; aspect-ratio: 9 / 16; border: 0; border-radius: 12px; background: var(--sand); }
.original-frame-instagram iframe { max-width: 25rem; aspect-ratio: auto; height: 40rem; }

/* A reel: the 9:16 player and "In this cut". */
.reel-stage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.75rem; flex: 1; }
.player {
  position: relative; width: min(100%, 21.125rem); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #4A3A30 0 10px, #3A2B23 10px 20px);
  box-shadow: 0 24px 60px rgba(51, 33, 28, 0.2);
}
.player-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--espresso); }
.player-part {
  position: absolute; top: 14px; right: 14px; pointer-events: none;
  padding: 0.2rem 0.5rem; border-radius: 6px; background: rgba(51, 33, 28, 0.55);
  color: var(--sand); font: 600 0.6875rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
}
.player-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  height: 100%; padding: 1.5rem; text-align: center; color: var(--cream);
}
.player-empty p { color: var(--cream); margin: 0; }
.player-empty .player-hook { padding: 0.4rem 0.75rem; border-radius: 6px; background: var(--white); color: var(--espresso); font: 700 1.25rem/1.15 var(--sans); }
.player-empty .btn { border-color: var(--cream); color: var(--cream); }
.cut { display: grid; gap: 1rem; width: min(100%, 18.75rem); }
.cut-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.cut-list li + li { border-top: 1px solid var(--line); }
.cut-part {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 44px; padding: 0.6rem 0.75rem;
  border: 0; background: none; color: var(--espresso); font: 400 0.875rem/1.3 var(--sans); text-align: left; cursor: pointer;
}
.cut-part:hover, .cut-part[aria-current="true"] { background: var(--tint); }
.cut-thumb { flex: none; width: 28px; height: 44px; border-radius: 4px; background: #4A3A30; }
.cut-thumb-1 { background: var(--body); }
.cut-thumb-2 { background: var(--gold-ink); }
.cut-thumb-3 { background: var(--denim); }
.cut-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cut-time { color: var(--body); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.cut-facts { display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.5rem 0.75rem; margin: 0; font-size: 0.8125rem; }
.cut-facts dt { font-weight: 600; color: var(--espresso); }
.cut-facts dd { margin: 0; color: var(--body); }

/* Send for approval, inside the preview. */
.studio-preview .send-panel { width: 100%; max-width: 44rem; margin: 0 auto; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.studio-preview .send-panel:focus { outline: none; }
.send-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.send-head h2 { margin: 0; }
.send-blocked { display: grid; gap: 0.5rem; margin: 0 0 0.75rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--wait-tint); }
.send-blocked p { margin: 0; color: var(--espresso); }
.send-blocked .btn { justify-self: start; }
.send-alt { margin-top: 0.5rem; }
.sent-cards { display: grid; gap: 0.5rem; padding: 0; margin: 0 0 1rem; list-style: none; }

/* The phone's bottom bar on the preview. */
.phone-actions { display: none; }

/* ---- a phone (below 900px): one pane at a time. */
@media (max-width: 56.24rem) {
  .page-studio .topbar, .page-studio .footer { display: none; }
  .desk-only { display: none; }
  .phone-only { display: initial; }
  .studio-preview .preview { padding: 1rem; gap: 0.85rem; }
  .preview-bar .versions { display: none; }
  .seg-single { display: none; }
  .slide-count.phone-only { display: inline; font-size: 0.8125rem; color: var(--body); }
  .stage { display: block; flex: none; }
  .stage-nav { display: none; }
  .stage-slides {
    display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 0.5rem;
  }
  .stage-slides::-webkit-scrollbar { display: none; }
  .stage-slide { flex: 0 0 100%; scroll-snap-align: center; }
  .stage-slides-tall .stage-slide { flex-basis: 70%; }
  .stage-slide img { width: 100%; }
  .thumbs { display: none; }
  .dots-row { display: flex; justify-content: center; gap: 6px; }
  .dot { width: 8px; height: 4px; border-radius: 2px; background: #CBBFA3; transition: width 0.2s ease; }
  .dot.is-current { width: 22px; background: var(--espresso); }
  .caption-line span:first-child { display: none; }
  .phone-actions {
    display: grid; gap: 0.25rem; margin: auto -1rem -1rem; padding: 0.75rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: var(--card);
  }
  .btn-send-big { min-height: 52px; font-size: 0.8125rem; }
  .ask-link { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 0.875rem; font-weight: 600; }
  .player { width: min(100%, 18rem); }
  .cut { width: 100%; }
  .studio-preview .send-panel { padding: 1rem; }
  .badge-changed { top: 10px; right: 10px; }
  .badge-overflow { bottom: 10px; right: 10px; }
  /* The phone's reply shows a "View" card instead of the updated pills (PhoneChat). */
  .changes-pills { display: none; }
  /* The phone's composer is one row: "+", the box, send (PhoneChat). */
  .composer-box { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem; padding: 6px 6px 6px 8px; }
  .composer-bar { display: contents; }
  .composer-box > .att-list, .composer-box > .uploads-mini, .composer-box > .image-picker,
  .composer-box > .prompt-error { flex: 0 0 100%; order: -2; }
  .composer-box .attach { order: -1; }
  .composer-box textarea { flex: 1; min-width: 0; padding: 0.6rem 0; }
  .composer-box .playbook-chip, .composer-box .grow { display: none; }
  .composer-box .sel-chip, .composer-box .send-round, .composer-box .stop-pill { order: 1; }
  .composer-box .icon-button { border: 0; border-radius: 50%; background: var(--tint); }
  .composer-box .attach-menu { left: 0; right: auto; }
  .chat-rule { display: none; }
}

/* ---- wider: the mockup's desktop layout */
@media (min-width: 40rem) {
  main.home { padding: 3.25rem 2rem 4rem; }
  .prompt-bar { flex-wrap: nowrap; }
  .quick-starts { flex: 0 1 auto; }
  .home-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.75rem; }
  .idea-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
}
@media (min-width: 56.25rem) {
  .studio {
    grid-template-columns: 28.75rem minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "head preview" "chat preview";
    height: calc(100vh - 4rem); height: calc(100dvh - 4rem);
  }
  .studio-head {
    display: block; padding: 1.25rem 1.5rem 0.875rem;
    background: var(--card); border-right: 1px solid var(--line);
  }
  .studio-back, .studio-tabs { display: none; }
  .studio-title { font-size: 1.625rem; line-height: 1.15; }
  .studio-sub { margin-top: 0.25rem; font-size: 0.8125rem; }
  .studio[data-view] .studio-chat { display: flex; grid-area: chat; border-right: 1px solid var(--line); }
  .studio[data-view] .studio-preview { display: flex; grid-area: preview; }
  .chat-scroll { padding: 1.25rem 1.5rem; }
  .messages { gap: 1.125rem; }
  .msg-view { display: none; }
  .chat-foot { padding: 0.875rem 1.25rem 1.125rem; gap: 0.625rem; }
  .composer-box { gap: 0.6rem; padding: 0.75rem 0.75rem 0.625rem 0.875rem; border-radius: 14px; }
  .composer textarea { font-size: 0.9375rem; line-height: 1.5; padding-top: 0; min-height: 2.8rem; }
  .meter { font-size: 0.75rem; }
  .meter-bar { height: 4px; }
  .studio-preview .preview { padding: 1.375rem 2.25rem 1.625rem; gap: 1.25rem; }
  .stage-slides { display: flex; align-items: center; justify-content: center; }
  .stage-slide { display: none; }
  .stage-slide.is-current { display: block; }
  /* As tall as the window allows, but a narrow pane shrinks the whole slide: a set height
     with max-width: 100% squashed it sideways (problem report 237911ed, "stretched"). The
     width is a length (no percentage in it: min(100%, ...) made the slide's box as wide as the
     JPEG and left the slide off centre, away from its arrows and badges); the base rule's
     max-width: 100% shrinks it and height: auto keeps the aspect. */
  .stage-slide img { width: calc(max(16rem, min(32.8rem, 100dvh - 23.5rem)) * 4 / 5); height: auto; }
  .stage-slides-tall .stage-slide img { width: calc(max(16rem, min(36rem, 100dvh - 26rem)) * 9 / 16); }
  .dots-row { display: none; }
  .player { width: auto; height: min(37.5rem, calc(100dvh - 13rem)); min-height: 20rem; }
}

/* ------------------------------------------------------------------ wider screens */

@media (min-width: 40rem) {
  /* The mockup's bar: one 64px row across the whole width (wordmark, the four links, her
     account button on the right). */
  .topbar-inner { max-width: none; min-height: 4rem; padding: env(safe-area-inset-top) 1.75rem 0; gap: 0 2rem; }
  .wordmark { padding: 0.95rem 0; }
  /* Wider than a phone the nav sits in the bar beside the wordmark and never scrolls (a mouse
     wheel can't move it sideways, so a link past the edge would be out of reach): it wraps
     instead, which four links never need. */
  .nav {
    order: 0; flex-basis: auto; flex-wrap: wrap; gap: 0 1.5rem;
    margin: 0; padding: 0; overflow: visible; border-top: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .nav a { min-height: 4rem; padding-top: 2px; font-size: 0.8125rem; letter-spacing: 0.12em; }
  .page { padding: 3rem 2rem 4rem; }
  .flash-region { padding: 0 2rem; }
  .footer-inner { padding: 2.5rem 2.625rem 3rem; }
  .footer nav { flex-basis: auto; }
  .panel { padding: 1.75rem; }
  .panel.narrow { padding: 2.75rem 2.5rem; }
  .item-summary { padding: 1.1rem 1.5rem; }
  .item > .item-body { padding: 1.5rem; }
  .item-full { grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding: 1.25rem 1.5rem 1.5rem; }
  .actions > form .btn { width: auto; }
  .hero { padding: 4rem 0 3rem; }
}

/* Lolo's iPhone app (Capacitor; native.js marks <html class="native-app">): its controls
   (Save to Photos, Post to ..., Turn on notifications) exist only there, and the web's
   "open this in Safari" hints only outside it. */
.native-only { display: none !important; }
html.native-app .native-only { display: block !important; }
html.native-app .native-hide { display: none !important; }
.native-actions { margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.native-actions h3 { margin: 0 0 0.6rem; }
.native-actions .actions-row .btn { flex: 1 1 auto; }
.native-status:empty, .native-push-status:empty { display: none; }
.native-status, .native-push-status { margin: 0.6rem 0 0; }
/* What to try next under the status line (Open YouTube, Save it to Photos instead, Save again). */
.native-actions .native-next { margin: 0.6rem 0 0; }

/* Notifications are off for Lolo on this iPhone (native.js shows it; "Not now" for 7 days). */
.push-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: var(--butter);
  color: var(--espresso); font-size: 0.875rem;
}
.push-banner[hidden] { display: none !important; }
/* Never on the chat page: the studio fills the screen (100dvh) and, on a phone, hides the
   topbar that carries the safe-area padding, so a banner above <main> would sit under the
   status bar and push the composer below the fold. Home and Settings show it. */
.page-studio .push-banner { display: none; }
.push-banner p { flex: 1 1 14rem; margin: 0; }
.push-banner-actions { display: flex; align-items: center; gap: 1rem; }

/* ------------------------------------------------------------------ chat names and pictures */

/* A chat's picture (Home's Recent, the Studio list, the chat's header): her draft's cover or
   its reel's poster, else a format glyph; never another creator's thumbnail. */
.chat-thumb {
  flex: none; width: 2.5rem; height: 3.125rem; border-radius: 6px;
  background: var(--sand); object-fit: cover;
}
.chat-glyph { display: inline-flex; align-items: center; justify-content: center; color: var(--gold-ink); }
.chat-glyph-chat { background: var(--cream); border: 1px solid var(--line); }
/* The pencil beside a title: a 44px target around a small icon. */
.rename-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--body);
}
.rename-btn:hover, .rename-btn:focus-visible { background: var(--sand); color: var(--espresso); }
.rename-btn[hidden] { display: none; }
@media (pointer: coarse) { .rename-btn { width: 2.75rem; height: 2.75rem; } }
.rename-form { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; min-width: 0; }
.rename-form input[type="text"] { flex: 1 1 10rem; min-width: 0; min-height: 2.5rem; font: inherit; font-size: 1rem; }
[data-chat-title][hidden] { display: none; }

/* ------------------------------------------------------------------ program anchors

   Lolo's program (2026-11-13) adds panels through include anchors with "ignore missing" in
   base.html, dashboard.html, settings.html and _studio_preview.html (docs/architecture.md,
   "Posts that get smarter"). Feature CSS lives in each feature's own file
   (static/css/<feature>.css), linked from the feature's own templates; these markers keep
   the few shared rules a feature needs here, in its own section (the lead edits this file
   after wave 1).

   -- W2 alerts: _shell_banners.html (base), _settings_alerts.html. On the chat page
      (body.page-studio: 100dvh, no topbar on a phone) a banner floats, like
      .page-studio .flash-region (position: fixed; top: calc(0.5rem +
      env(safe-area-inset-top))), instead of sitting in the flow above <main>.
   -- W5 teach: _home_teach.html, _home_recap.html, _reactions.html, _settings_teach.html
   -- W7 news: _settings_news.html
   -- W8 learning: _idea_why.html, _settings_explore.html
   -- W9 daily plan: _home_plan.html
   -- W12 icons: _settings_icons.html */

/* The bar stays put while scrolling on a wide screen. */
@media (min-width: 75rem) {
  .topbar { position: sticky; top: 0; z-index: 60; }
}

@media (hover: none) {
  .btn:hover:not(:disabled) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .btn:hover:not(:disabled) { transform: none; }
}
