/* Gallery Delivery product design — neutral, calm, elegant.
   Ivory base, charcoal ink, Fraunces display + Source Sans 3 body.
   --accent comes from /brand/<studio>.css on client pages (per-studio
   branding); the default below is the product's own bronze. */

:root {
  --accent: #8c6a4f;
  --bg: #faf8f4;
  --card: #ffffff;
  --ink: #26241f;
  --body: #57534a;
  /* Darkened in Step 4: the old #8a857a measured 3.46:1 on the ivory
     background — the help/footer text failed WCAG AA. #6e6a5e is
     5.1:1 on --bg and 5.4:1 on white. */
  --muted: #6e6a5e;
  --line: #e4ded1;
  --danger: #a33b3b;
  --display: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* The hidden attribute must always win. Author display rules (a block
   label, a flex row) otherwise override the UA stylesheet's
   [hidden] { display: none } and resurrect elements that markup and
   JS both believe are hidden — the create modal's custom-code row
   rendered despite `hidden` until Step 8 (defect 3). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 23px;
}
a {
  color: var(--ink);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
}
/* Hover colours only with a mouse: on a touch screen a tap would leave
   them stuck on (client round 5). */
@media (hover: hover) {
  .btn:hover {
    background: var(--ink);
    color: #fff;
  }
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (hover: hover) {
  .btn-accent:hover {
    background: var(--ink);
    border-color: var(--ink);
  }
}
.btn-quiet {
  padding: 7px 16px;
  font-size: 12px;
}
.btn.danger {
  color: var(--danger);
  border-color: var(--danger);
}
.btn.danger:hover {
  background: var(--danger);
  color: #fff;
}
button[type="submit"].btn {
  font-family: var(--sans);
}

.muted {
  color: var(--muted);
  font-size: 14.5px;
}
.form-error {
  color: var(--danger);
  font-weight: 600;
}
.form-note {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
  white-space: pre-line;
}

/* ---------- landing ---------- */
html {
  scroll-behavior: smooth;
}
.center {
  text-align: center;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-wordmark {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-links {
  display: flex;
  gap: 22px;
}
.site-links a,
.signin-link {
  color: var(--body);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
}
.site-links a:hover,
.signin-link:hover {
  color: var(--ink);
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.site-actions .btn {
  padding: 9px 20px;
}

.landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 30px;
}
.hero {
  text-align: center;
  padding: 64px 0 10px;
}
.hero h1 {
  font-size: 54px;
  margin: 10px 0 18px;
}
.hero-sub {
  font-size: 19.5px;
  max-width: 660px;
  margin: 0 auto 30px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-note {
  color: var(--muted);
  font-size: 15px;
  margin: 30px auto 0;
  max-width: 620px;
}
.frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(38, 36, 31, 0.13);
  margin: 0;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 62px 0 8px;
  scroll-margin-top: 84px;
}
.section h2 {
  font-size: 31px;
  margin: 0 0 26px;
}
.code-chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--bg);
  border: 1px dashed var(--accent);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 16px;
}
.demo-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 30px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.steps h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
}
.steps p {
  margin: 0;
  font-size: 15.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}
.feature h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  font-size: 18.5px;
  margin: 0 0 7px;
}
.feature p {
  margin: 0;
  font-size: 15px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15.5px;
}
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.compare-table td:last-child {
  color: var(--ink);
  font-weight: 600;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 22px;
}
.faq-list summary {
  font-weight: 600;
  color: var(--ink);
  font-size: 16.5px;
  padding: 12px 0;
  cursor: pointer;
}
.faq-list details p {
  margin: 0 0 16px;
  font-size: 15.5px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin: 38px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.fact-list {
  margin: 0 0 8px;
  padding-left: 22px;
  display: grid;
  gap: 9px;
  font-size: 16px;
}
.honest-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
}

.request-sub {
  max-width: 620px;
  margin: 0 auto 26px;
}
.request-form {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.request-form label {
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.request-form .wide {
  grid-column: 1 / -1;
}
.request-form input,
.request-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  font-weight: 400;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
}
.request-form .optional {
  color: var(--muted);
  font-weight: 400;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 34px 24px 44px;
  text-align: center;
}
.foot-brand {
  font-family: var(--display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.site-foot nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
}
.site-foot nav a {
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.foot-small {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}

/* ---------- wordmark / headers ---------- */
.wordmark {
  text-align: center;
  padding: 26px 16px 6px;
}
.wordmark img {
  max-width: 300px;
  max-height: 90px;
  width: auto;
  height: auto;
}
.wordmark-text {
  font-family: var(--display);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.client-head .wordmark {
  padding-top: 34px;
}
.powered {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 26px 0 34px;
  margin: 0;
}
/* Persona round 3: the product credit is plain small text — the
   studio's name is the brand on a client page, not ours. */
.powered span {
  font: inherit;
}

/* ---------- gate (code entry / closed / login) ---------- */
/* Plain gradient behind the gate card: also the fallback when a
   gallery has no tiny cover derivative yet (the blurred backdrop
   <img> covers it when one exists). */
.page-gate {
  background: linear-gradient(160deg, #f4f0e7, #e6ddcb);
}
.gate-cover {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.75);
  transform: scale(1.08);
  z-index: -1;
}
.gate {
  display: flex;
  justify-content: center;
  padding: 5vh 16px 40px;
}
.gate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 500px;
  width: 100%;
  padding: 18px 42px 42px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(38, 36, 31, 0.16);
}
.gate-card h1 {
  font-size: 29px;
  margin-bottom: 6px;
}
.gate-meta {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.gate-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2px 0 0;
}
.notfound-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.gate-card .eyebrow {
  text-align: center;
}
.gate-note {
  font-size: 16px;
}
.gate-remember {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 0;
}
.gate-card form {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-top: 20px;
}
.gate-card label,
.admin-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.gate-card input,
.admin-form input,
.admin-form select {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
}
/* No text-transform: what the client sees must be exactly what they typed. */
#access-form input {
  text-align: center;
  letter-spacing: 0.3em;
  font-weight: 700;
}
.gate-card form button {
  justify-self: center;
  margin-top: 6px;
}

/* ---------- client gallery ---------- */
.gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 30px;
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 0 6px;
}
.gallery-head h1 {
  margin: 0 0 4px;
}
.expiry-banner {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 15px;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #ece7db;
  border-radius: 3px;
}
.cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The uniform grid's tiles are 3:2. A justified cell sets no ratio, so
   the img's width/height attributes size it before the photo loads
   (round 5: themed rows were 0px tall, then jumped). */
.cell:not(.jcell) img {
  aspect-ratio: 3 / 2;
}
.cell-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
/* Blur-up: the tiny 48px copy fills the cell, blurred, under the real
   photo (grid.tsx TinyPreview); the real one fades in over it. Scaled
   up a touch so the blur's soft edge stays inside the cell. */
/* The layering stays inside the photo button (isolation), so the heart
   and comment badge, later siblings, still sit on top and take taps. */
.cell-open {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cell .cell-tiny {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  transform: scale(1.12);
  z-index: -1;
}
.fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  /* Idle heart darkened in Step 4: #c9c2b2 was 1.77:1 on the white
     disc — decoration, not a control. #75705f is 4.95:1. */
  color: #75705f;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
/* Persona round 3: hearted vs not must read at phone size — an
   outlined ♡ on the white disc, or a filled accent disc with a white ♥. */
.fav.is-fav {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(38, 36, 31, 0.3);
}
.gallery-actions {
  text-align: center;
  margin-top: 28px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 20, 17, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 12px;
  line-height: 1;
}
.lb-close {
  top: 6px;
  right: 14px;
}
.lb-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 12px;
  color: #fff;
}

/* ---------- admin ---------- */
.product-name {
  font-family: var(--display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink);
}
.product-studio {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.admin {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 72px;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eee9dd;
  color: var(--ink);
}
.badge-live {
  background: #dde8d5;
}
.badge-expired {
  background: #f0d9d4;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px 26px;
  margin-top: 28px;
}
.admin-form {
  display: grid;
  /* min(): one column, never wider than its box, on a 300px screen. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}
.admin-form label {
  display: grid;
  gap: 5px;
}
.admin-form .wide {
  grid-column: 1 / -1;
}
.admin-form input[type="radio"] {
  width: auto;
}
.code-choice {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px 12px;
  margin: 0;
  display: grid;
  gap: 7px;
}
.code-choice legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.code-choice .radio {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
.code-choice .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
}
.code-choice #custom-code-row {
  margin-top: 4px;
}
.admin-form input[type="color"] {
  height: 46px;
  padding: 4px;
}
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 6px;
  padding: 26px;
  text-align: center;
  background: #fff;
}
.dropzone.is-drag {
  border-color: var(--accent);
  background: var(--bg);
}
/* Designed file picker (Step 8): the native input stays hidden; the
   label is the button and the span mirrors the chosen filename (JS
   updates it on change). No studio page shows the browser-default
   "Choose File / No file chosen" control. */
.file-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.file-pick-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.file-pick-btn:hover {
  background: var(--ink);
  color: #fff;
}
.file-pick-name {
  color: var(--muted);
  font-size: 14.5px;
  overflow-wrap: anywhere;
  min-width: 0;
}
#upload-queue {
  text-align: left;
  font-size: 15px;
  margin-top: 12px;
}
#upload-queue .q-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.admin-cell figcaption {
  font-size: 12px;
  padding: 6px 8px 0;
  word-break: break-all;
  background: var(--card);
}
.cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--card);
}
.cell-actions button {
  font: inherit;
  font-size: 13px;
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
}
.cell-actions button.danger {
  color: var(--danger);
}
.cell-pos {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ---------- dashboard overview ---------- */
.badge-expiring {
  background: #f3e3bc;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 0;
}
.dash-search {
  display: flex;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dash-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
}
.dash-search select {
  min-width: 0;
}
/* Step 7: the filter tabs read as one segmented control. */
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 16px 0 0;
  background: #efe9dd;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.filter-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  padding: 6px 15px;
  border-radius: 999px;
}
.filter-tab:hover {
  color: var(--ink);
}
.filter-tab.active {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 4px rgba(38, 36, 31, 0.18);
}
.list-count {
  margin: 10px 0 0;
  font-size: 14px;
}
.attention-strip {
  margin: 22px 0 0;
}
.attention-strip h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
.attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15.5px;
}
.attention-list li {
  background: #fdf6e0;
  border: 1px solid #ecd9a0;
  border-radius: 6px;
  padding: 9px 14px;
}
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.checklist-head h2 {
  margin: 0;
}
.checklist-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 16px;
}
.checklist-step .checklist-mark {
  display: inline-block;
  width: 22px;
  font-weight: 700;
}
.checklist-step.done {
  color: var(--muted);
}
.checklist-step.done .checklist-mark {
  color: #4c7a3f;
}
.storage-bar {
  height: 10px;
  border-radius: 999px;
  background: #ece7db;
  overflow: hidden;
}
.storage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.fill-0 {
  width: 0%;
}
.fill-5 {
  width: 5%;
}
.fill-10 {
  width: 10%;
}
.fill-15 {
  width: 15%;
}
.fill-20 {
  width: 20%;
}
.fill-25 {
  width: 25%;
}
.fill-30 {
  width: 30%;
}
.fill-35 {
  width: 35%;
}
.fill-40 {
  width: 40%;
}
.fill-45 {
  width: 45%;
}
.fill-50 {
  width: 50%;
}
.fill-55 {
  width: 55%;
}
.fill-60 {
  width: 60%;
}
.fill-65 {
  width: 65%;
}
.fill-70 {
  width: 70%;
}
.fill-75 {
  width: 75%;
}
.fill-80 {
  width: 80%;
}
.fill-85 {
  width: 85%;
}
.fill-90 {
  width: 90%;
}
.fill-95 {
  width: 95%;
}
.fill-100 {
  width: 100%;
}
.galleries-heading {
  margin-top: 30px;
}
.card-activity {
  margin: 6px 0 0;
  font-size: 14px;
}
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.gallery-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #ece7db;
}
.card-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}
.card-body {
  padding: 16px 18px 18px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
}
.card-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px;
}
.card-body h3 a {
  text-decoration: none;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.card-note {
  margin-top: 12px;
}
.empty-state {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px 30px;
  text-align: center;
}
.empty-state h2 {
  margin-top: 0;
}
.empty-state p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* picks + engagement (step 3) */
.picks-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 4px;
}
/* display:flex above defeats the UA's [hidden] rule — without this the
   bar (and its "Send my picks" button) showed at 0 favorites. */
.picks-bar[hidden] {
  display: none;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.share-key-note {
  font-size: 14.5px;
  color: var(--muted);
  margin: 8px 0 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 120;
  box-shadow: 0 12px 32px rgba(38, 36, 31, 0.35);
  max-width: 92vw;
  text-align: center;
}
.top-fav-grid {
  margin-bottom: 10px;
}
.pick-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

#share-message {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
}

/* step 5: sections, download modes, proofing, visitors */
.section-heading {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  margin: 18px 0 0;
}
.grid .section-heading:first-child {
  margin-top: 0;
}
.admin-form .radio-stack,
.admin-form .scope-fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px 12px;
  margin: 0;
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
}
.admin-form .radio-stack legend,
.admin-form .scope-fieldset legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.admin-form .radio-stack .radio {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
.admin-form .scope-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}
.admin-form .scope-option input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex: none;
}
.admin-form .check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 600;
  grid-column: 1 / -1;
}
.admin-form .check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}
.admin-form .check .optional {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
  margin-top: 3px;
}
/* Sections bar above the Photos grid (SectionsBar.tsx). */
.sections-bar {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf8;
}
.sections-bar p {
  margin: 0;
}
.sections-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.sections-bar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}
.section-chip {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.section-chip:hover,
.section-chip[aria-expanded="true"] {
  border-color: var(--accent);
}
.section-chip.section-add {
  color: var(--accent);
  border-style: dashed;
}
.section-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: end;
}
.section-editor label {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  flex: 1 1 220px;
  min-width: 0;
}
.section-editor input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.section-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* The grid's groups, as the client sees them. */
.photo-group + .photo-group {
  margin-top: 18px;
}
.photo-group-title {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.photo-group .admin-grid {
  margin-top: 0;
}
.photo-group-empty {
  margin: 0;
}
.visitor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.visitor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}
.cell-section {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 8px 8px;
}
.cell-section select {
  width: 100%;
}
.upload-target select {
  margin-left: 6px;
}
.regen-box {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 6px;
}

/* settings + passkeys (step 3) */
.settings-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.settings-list div {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.settings-list dt {
  min-width: 130px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Narrow screens: the label above its value. */
@media (max-width: 480px) {
  .settings-list div {
    display: grid;
    gap: 2px;
  }
}
.passkey-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.passkey-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.passkey-login {
  margin-top: 18px;
  text-align: center;
}
.passkey-login .btn {
  width: 100%;
}
.welcome-panel {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 27px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero {
    padding-top: 40px;
  }
  .site-nav {
    gap: 14px;
    padding: 12px 16px;
  }
  .site-links {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .request-form {
    grid-template-columns: 1fr;
  }
  .compare-table tbody th {
    white-space: normal;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .gate-card {
    padding: 10px 22px 32px;
  }
}

/* ---------- Step 7 design system: studio chrome + components ----------
   One component layer for the whole studio side (dashboard, settings,
   gallery manage): designed inputs, a segmented control, switches,
   the account dropdown, the create modal, and card refinements. No
   browser-default controls on studio pages. */

/* Studio header */
.studio-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.studio-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.studio-bar .product-name {
  text-decoration: none;
  white-space: nowrap;
}
.studio-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.studio-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.studio-nav a:hover {
  background: #efe9dd;
  color: var(--ink);
}
.studio-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
.studio-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.studio-bar-actions .btn {
  white-space: nowrap;
}

/* Account dropdown */
.account-menu {
  position: relative;
}
.account-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.account-button:hover {
  background: #efe9dd;
}
.account-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.account-caret {
  color: var(--muted);
  font-size: 11px;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 252px;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(38, 36, 31, 0.18);
  padding: 6px;
}
.account-head {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.account-head strong {
  font-size: 15px;
}
.account-email {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.account-item:hover,
.account-item:focus-visible {
  background: #f3eee3;
  outline: none;
}
.account-dropdown form {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.account-logout {
  color: var(--danger);
}

/* Designed form controls (admin scope) */
.page-admin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.page-admin select,
.page-admin textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(38, 36, 31, 0.05);
}
.page-admin
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):focus,
.page-admin select:focus,
.page-admin textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 106, 79, 0.22);
}
.page-admin select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2357534a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.page-admin input[type="color"] {
  width: 64px;
  height: 38px;
  padding: 3px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.page-admin input[type="checkbox"]:not(.switch),
.page-admin input[type="radio"] {
  accent-color: var(--accent);
}
.page-admin .btn {
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.05s ease;
}
.page-admin .btn:hover {
  border-color: var(--ink);
}
.page-admin .btn:active {
  transform: translateY(1px);
}
.page-admin .btn-accent:hover {
  background: #77593f;
  border-color: transparent;
  color: #fff;
}
.page-admin a:focus-visible,
.page-admin button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dashboard search: an icon field with a "/" hint chip */
.search-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px 0 13px;
  box-shadow: 0 1px 2px rgba(38, 36, 31, 0.05);
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 106, 79, 0.22);
}
.search-icon {
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}
.page-admin .search-field input[type="search"] {
  border: none;
  box-shadow: none;
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
}
.page-admin .search-field input[type="search"]:focus {
  border: none;
  box-shadow: none;
}
.search-kbd {
  font:
    600 11px/1 "Source Sans 3",
    sans-serif;
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--bg);
}

/* Segmented control (modal) */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 2px;
  background: #efe9dd;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.segmented .seg {
  position: relative;
  margin: 0;
  display: block;
}
.segmented .seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.segmented .seg span {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
}
.segmented .seg input:checked + span {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(38, 36, 31, 0.18);
}
.segmented .seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Switch (checkbox) */
input.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 44px;
  height: 24px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: #d8d2c4;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}
input.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(38, 36, 31, 0.3);
  transition: left 0.15s ease;
}
input.switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
input.switch:checked::after {
  left: 22px;
}
input.switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Create modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: rgba(38, 36, 31, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 24px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(38, 36, 31, 0.3);
  padding: 26px 28px;
}
.modal h2 {
  font-family: var(--display);
  font-size: 25px;
  margin: 0 0 4px;
}
.modal-sub {
  color: var(--body);
  margin: 0 0 18px;
}
.modal-note {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: -6px 0 16px;
  font-size: 0.9rem;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 6px 9px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--ink);
  background: #f3eee3;
}
.modal-form {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.modal-form label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  min-width: 0;
}
.modal-form label input {
  width: 100%;
  margin-top: 5px;
}
.modal-form .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.modal-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.modal-form legend {
  font-weight: 600;
  font-size: 14.5px;
  padding: 0;
  margin-bottom: 7px;
}
.code-generated {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
#custom-code-row {
  display: grid;
  gap: 8px;
}
.code-chip {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--bg);
  border: 1px dashed #c9c0ab;
  border-radius: 8px;
  padding: 8px 12px;
}
.field-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.toggle-row .toggle-label {
  font-weight: 600;
  font-size: 14.5px;
  flex: 1 1 auto;
  min-width: 0;
}
.toggle-row .toggle-label .optional {
  display: block;
  margin-top: 2px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
/* Bulk photo delete: the photos about to go, as small thumbnails. */
.delete-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  max-height: 40vh;
  overflow-y: auto;
}
.delete-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
.form-error {
  color: var(--danger);
  font-weight: 600;
  margin: 0;
}

/* Settings sub-nav */
.settings-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 4px 0 20px;
}
.settings-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.settings-nav a:hover {
  background: #efe9dd;
  color: var(--ink);
}
.settings-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
.settings-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Gallery cards: metadata lines + hover lift */
.gallery-card {
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.gallery-card:hover {
  box-shadow: 0 10px 28px rgba(38, 36, 31, 0.13);
  transform: translateY(-2px);
}
.card-client {
  font-weight: 600;
  margin: 3px 0 0;
}
.card-counts {
  margin: 2px 0 0;
}
.card-engage {
  margin: 7px 0 0;
  font-weight: 600;
  font-size: 14px;
}
.card-picks {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 9px 0 0;
}
.mini-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f3eee3;
  border: 1px solid var(--line);
  color: var(--body);
  border-radius: 999px;
  padding: 2px 8px;
}

@media (max-width: 640px) {
  .studio-bar-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }
  .studio-nav {
    order: 3;
    width: 100%;
  }
  .account-button .product-studio {
    display: none;
  }
  .modal {
    padding: 22px 18px;
  }
  .segmented {
    flex-wrap: wrap;
    border-radius: 14px;
  }
}

/* ---------- Step 9: client-gallery design system ----------
/* GENERATED utility scale — do not hand-edit the next block.
   .ar-<n>: flex-grow = n/20, the quantized aspect ratio a justified
   cell (or the last row's filler) grows by. .jgap-<n>: the justified
   grid's gap custom property, in px. Both exist because the strict
   CSP forbids inline styles, so per-gallery numbers ride classes. */
.ar-6 {
  flex-grow: 0.3;
}
.ar-7 {
  flex-grow: 0.35;
}
.ar-8 {
  flex-grow: 0.4;
}
.ar-9 {
  flex-grow: 0.45;
}
.ar-10 {
  flex-grow: 0.5;
}
.ar-11 {
  flex-grow: 0.55;
}
.ar-12 {
  flex-grow: 0.6;
}
.ar-13 {
  flex-grow: 0.65;
}
.ar-14 {
  flex-grow: 0.7;
}
.ar-15 {
  flex-grow: 0.75;
}
.ar-16 {
  flex-grow: 0.8;
}
.ar-17 {
  flex-grow: 0.85;
}
.ar-18 {
  flex-grow: 0.9;
}
.ar-19 {
  flex-grow: 0.95;
}
.ar-20 {
  flex-grow: 1;
}
.ar-21 {
  flex-grow: 1.05;
}
.ar-22 {
  flex-grow: 1.1;
}
.ar-23 {
  flex-grow: 1.15;
}
.ar-24 {
  flex-grow: 1.2;
}
.ar-25 {
  flex-grow: 1.25;
}
.ar-26 {
  flex-grow: 1.3;
}
.ar-27 {
  flex-grow: 1.35;
}
.ar-28 {
  flex-grow: 1.4;
}
.ar-29 {
  flex-grow: 1.45;
}
.ar-30 {
  flex-grow: 1.5;
}
.ar-31 {
  flex-grow: 1.55;
}
.ar-32 {
  flex-grow: 1.6;
}
.ar-33 {
  flex-grow: 1.65;
}
.ar-34 {
  flex-grow: 1.7;
}
.ar-35 {
  flex-grow: 1.75;
}
.ar-36 {
  flex-grow: 1.8;
}
.ar-37 {
  flex-grow: 1.85;
}
.ar-38 {
  flex-grow: 1.9;
}
.ar-39 {
  flex-grow: 1.95;
}
.ar-40 {
  flex-grow: 2;
}
.ar-41 {
  flex-grow: 2.05;
}
.ar-42 {
  flex-grow: 2.1;
}
.ar-43 {
  flex-grow: 2.15;
}
.ar-44 {
  flex-grow: 2.2;
}
.ar-45 {
  flex-grow: 2.25;
}
.ar-46 {
  flex-grow: 2.3;
}
.ar-47 {
  flex-grow: 2.35;
}
.ar-48 {
  flex-grow: 2.4;
}
.ar-49 {
  flex-grow: 2.45;
}
.ar-50 {
  flex-grow: 2.5;
}
.ar-51 {
  flex-grow: 2.55;
}
.ar-52 {
  flex-grow: 2.6;
}
.ar-53 {
  flex-grow: 2.65;
}
.ar-54 {
  flex-grow: 2.7;
}
.ar-55 {
  flex-grow: 2.75;
}
.ar-56 {
  flex-grow: 2.8;
}
.ar-57 {
  flex-grow: 2.85;
}
.ar-58 {
  flex-grow: 2.9;
}
.ar-59 {
  flex-grow: 2.95;
}
.ar-60 {
  flex-grow: 3;
}
.ar-61 {
  flex-grow: 3.05;
}
.ar-62 {
  flex-grow: 3.1;
}
.ar-63 {
  flex-grow: 3.15;
}
.ar-64 {
  flex-grow: 3.2;
}
.ar-65 {
  flex-grow: 3.25;
}
.ar-66 {
  flex-grow: 3.3;
}
.ar-67 {
  flex-grow: 3.35;
}
.ar-68 {
  flex-grow: 3.4;
}
.ar-69 {
  flex-grow: 3.45;
}
.ar-70 {
  flex-grow: 3.5;
}
.ar-71 {
  flex-grow: 3.55;
}
.ar-72 {
  flex-grow: 3.6;
}
.ar-73 {
  flex-grow: 3.65;
}
.ar-74 {
  flex-grow: 3.7;
}
.ar-75 {
  flex-grow: 3.75;
}
.ar-76 {
  flex-grow: 3.8;
}
.ar-77 {
  flex-grow: 3.85;
}
.ar-78 {
  flex-grow: 3.9;
}
.ar-79 {
  flex-grow: 3.95;
}
.ar-80 {
  flex-grow: 4;
}
.ar-81 {
  flex-grow: 4.05;
}
.ar-82 {
  flex-grow: 4.1;
}
.ar-83 {
  flex-grow: 4.15;
}
.ar-84 {
  flex-grow: 4.2;
}
.ar-85 {
  flex-grow: 4.25;
}
.ar-86 {
  flex-grow: 4.3;
}
.ar-87 {
  flex-grow: 4.35;
}
.ar-88 {
  flex-grow: 4.4;
}
.ar-89 {
  flex-grow: 4.45;
}
.ar-90 {
  flex-grow: 4.5;
}
.ar-91 {
  flex-grow: 4.55;
}
.ar-92 {
  flex-grow: 4.6;
}
.ar-93 {
  flex-grow: 4.65;
}
.ar-94 {
  flex-grow: 4.7;
}
.ar-95 {
  flex-grow: 4.75;
}
.ar-96 {
  flex-grow: 4.8;
}
.ar-97 {
  flex-grow: 4.85;
}
.ar-98 {
  flex-grow: 4.9;
}
.ar-99 {
  flex-grow: 4.95;
}
.ar-100 {
  flex-grow: 5;
}
.ar-101 {
  flex-grow: 5.05;
}
.ar-102 {
  flex-grow: 5.1;
}
.ar-103 {
  flex-grow: 5.15;
}
.ar-104 {
  flex-grow: 5.2;
}
.ar-105 {
  flex-grow: 5.25;
}
.ar-106 {
  flex-grow: 5.3;
}
.ar-107 {
  flex-grow: 5.35;
}
.ar-108 {
  flex-grow: 5.4;
}
.ar-109 {
  flex-grow: 5.45;
}
.ar-110 {
  flex-grow: 5.5;
}
.ar-111 {
  flex-grow: 5.55;
}
.ar-112 {
  flex-grow: 5.6;
}
.ar-113 {
  flex-grow: 5.65;
}
.ar-114 {
  flex-grow: 5.7;
}
.ar-115 {
  flex-grow: 5.75;
}
.ar-116 {
  flex-grow: 5.8;
}
.ar-117 {
  flex-grow: 5.85;
}
.ar-118 {
  flex-grow: 5.9;
}
.ar-119 {
  flex-grow: 5.95;
}
.ar-120 {
  flex-grow: 6;
}
.ar-121 {
  flex-grow: 6.05;
}
.ar-122 {
  flex-grow: 6.1;
}
.ar-123 {
  flex-grow: 6.15;
}
.ar-124 {
  flex-grow: 6.2;
}
.ar-125 {
  flex-grow: 6.25;
}
.ar-126 {
  flex-grow: 6.3;
}
.ar-127 {
  flex-grow: 6.35;
}
.ar-128 {
  flex-grow: 6.4;
}
.ar-129 {
  flex-grow: 6.45;
}
.ar-130 {
  flex-grow: 6.5;
}
.ar-131 {
  flex-grow: 6.55;
}
.ar-132 {
  flex-grow: 6.6;
}
.ar-133 {
  flex-grow: 6.65;
}
.ar-134 {
  flex-grow: 6.7;
}
.ar-135 {
  flex-grow: 6.75;
}
.ar-136 {
  flex-grow: 6.8;
}
.ar-137 {
  flex-grow: 6.85;
}
.ar-138 {
  flex-grow: 6.9;
}
.ar-139 {
  flex-grow: 6.95;
}
.ar-140 {
  flex-grow: 7;
}
.jgap-2 {
  --jg: 2px;
}
.jgap-3 {
  --jg: 3px;
}
.jgap-4 {
  --jg: 4px;
}
.jgap-5 {
  --jg: 5px;
}
.jgap-6 {
  --jg: 6px;
}
.jgap-7 {
  --jg: 7px;
}
.jgap-8 {
  --jg: 8px;
}
.jgap-9 {
  --jg: 9px;
}
.jgap-10 {
  --jg: 10px;
}
.jgap-11 {
  --jg: 11px;
}
.jgap-12 {
  --jg: 12px;
}
.jgap-13 {
  --jg: 13px;
}
.jgap-14 {
  --jg: 14px;
}
.jgap-15 {
  --jg: 15px;
}
.jgap-16 {
  --jg: 16px;
}
.jgap-17 {
  --jg: 17px;
}
.jgap-18 {
  --jg: 18px;
}
.jgap-19 {
  --jg: 19px;
}
.jgap-20 {
  --jg: 20px;
}
.jgap-21 {
  --jg: 21px;
}
.jgap-22 {
  --jg: 22px;
}
.jgap-23 {
  --jg: 23px;
}
.jgap-24 {
  --jg: 24px;
}

/* Theme grounds. The client pages carry data-theme on <body>; these
   variables re-skin everything below them (the per-studio brand
   stylesheet still owns --accent). Classic = the :root values. */
body[data-theme="editorial"] {
  --bg: #f6f0e4;
  --line: #e2d7c2;
}
body[data-theme="minimal"] {
  --bg: #fcfcfa;
  --line: #e8e8e2;
}
/* Noir (Step 10): the variable swap does most of the work — ground,
   card, ink, and line all go dark together, and the per-studio
   --accent still sits on top. --muted #a89d88 measures ~7:1 on the
   noir ground (AA for the small help/footer text it colors). */
body[data-theme="noir"] {
  --bg: #171512;
  --card: #221f1b;
  --ink: #f2ede3;
  --body: #cfc8b8;
  --muted: #a89d88;
  --line: #37322b;
}

/* Entrance motion — subtle, and gone entirely for reduced motion. */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body[data-theme="editorial"] .gate-card,
body[data-theme="minimal"] .gate-card,
body[data-theme="noir"] .gate-card {
  animation: rise-in 0.6s ease both;
}
body[data-theme="minimal"] .gate-card {
  box-shadow: 0 14px 34px rgba(38, 36, 31, 0.09);
}
body[data-theme="minimal"] .gate-card h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
}

/* ---------- themed client header + section nav ---------- */
body[data-theme="editorial"] .client-head,
body[data-theme="minimal"] .client-head,
body[data-theme="noir"] .client-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
body[data-theme="editorial"] .client-head .wordmark,
body[data-theme="minimal"] .client-head .wordmark,
body[data-theme="noir"] .client-head .wordmark {
  text-align: left;
  padding: 9px 0;
}
body[data-theme="editorial"] .client-head .wordmark img,
body[data-theme="minimal"] .client-head .wordmark img,
body[data-theme="noir"] .client-head .wordmark img {
  max-height: 38px;
  max-width: 170px;
}
body[data-theme="editorial"] .client-head .wordmark-text,
body[data-theme="minimal"] .client-head .wordmark-text,
body[data-theme="noir"] .client-head .wordmark-text {
  font-size: 19px;
}
.section-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar {
  display: none;
}
.section-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
}
@media (hover: hover) {
  .section-nav a:hover {
    color: var(--ink);
    background: rgba(38, 36, 31, 0.06);
  }
}
.section-nav a.is-active {
  background: var(--ink);
  color: #fff;
}

/* ---------- cover hero (editorial + minimal) ---------- */
.hero-cover {
  position: relative;
  overflow: hidden;
  background: #26241f;
  height: min(88vh, 860px);
  min-height: 420px;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tiny {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  filter: blur(24px);
  transform: scale(1.1);
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 15, 0.22),
    rgba(20, 18, 15, 0) 42%,
    rgba(20, 18, 15, 0.48)
  );
}
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  animation: rise-in 0.8s ease both;
}
.hero-studio {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-inner h1 {
  color: #fff;
  font-size: clamp(38px, 6.5vw, 68px);
  margin: 0 0 10px;
}
.hero-meta {
  margin: 0;
  font-size: 16.5px;
  letter-spacing: 0.04em;
  opacity: 0.94;
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}
body[data-theme="minimal"] .hero-cover {
  height: min(60vh, 600px);
  min-height: 340px;
}
body[data-theme="minimal"] .hero-inner {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-end;
  padding: 36px;
}
body[data-theme="minimal"] .hero-inner h1 {
  font-family: var(--sans);
  font-weight: 600;
}
body[data-theme="minimal"] .hero-scroll {
  display: none;
}

/* Editorial marquee: the clients' names + date drifting across the
   cover, magazine-style. Pure CSS; the track is two identical spans
   so -50% loops seamlessly. Decorative — aria-hidden in the markup. */
.hero-marquee {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 76px;
  overflow: hidden;
  pointer-events: none;
}
.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.hero-marquee-track span {
  font-family: var(--display);
  font-size: clamp(20px, 3.4vw, 34px);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- justified grid ---------- */
.jgrid {
  display: grid;
  gap: var(--jg, 10px);
  margin-top: 22px;
}
.jrow {
  display: flex;
  gap: var(--jg, 10px);
}
.jcell {
  display: flex;
  min-width: 0;
  border-radius: 2px;
}
/* Widths come from the .ar-<n> grow ratios alone (round 5): with the
   default basis the photos' own pixel widths decided, the last row's
   filler got nothing and one photo stretched across the page. */
.jcell,
.jfill {
  flex-basis: 0;
}
.jcell .cell-open {
  flex: 1 1 auto;
}
.jcell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jfill {
  min-width: 0;
}
.gallery-head-slim {
  align-items: center;
}
.gallery-head-slim .gate-meta {
  margin: 0;
  font-size: 15.5px;
}

/* === client contact persona round 3 === */
/* "Questions? email · phone · website": keep each link on one line. */
.client-contact a {
  white-space: nowrap;
}

/* ---------- section headers per theme ---------- */
body[data-theme="editorial"] .section-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 46px 0 0;
  scroll-margin-top: 84px;
}
body[data-theme="editorial"] .section-heading::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
body[data-theme="minimal"] .section-heading {
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 50px 0 0;
  scroll-margin-top: 84px;
}
body[data-theme="noir"] .section-heading {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 46px 0 0;
  scroll-margin-top: 84px;
}
body[data-theme="noir"] .section-heading::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

/* ---------- Noir surfaces (Step 10) ----------
   The pieces whose colors are hardcoded light in the base layer —
   the gate gradient and inputs, white banners/notes, the cell
   placeholder, the toast — get their dark counterparts here. */
body[data-theme="noir"].page-gate {
  background: linear-gradient(160deg, #211e1a, #100e0c);
}
body[data-theme="noir"] .gate-card {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
body[data-theme="noir"] .gate-card input {
  background: #171512;
}
body[data-theme="noir"] .expiry-banner,
body[data-theme="noir"] .form-note {
  background: var(--card);
}
body[data-theme="noir"] .cell {
  background: #26231f;
}
@media (hover: hover) {
  body[data-theme="noir"] .btn:hover {
    background: var(--ink);
    color: #171512;
  }
  body[data-theme="noir"] .btn-accent:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #171512;
  }
}
@media (hover: hover) {
  body[data-theme="noir"] .section-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
  }
}
body[data-theme="noir"] .section-nav a.is-active {
  background: var(--ink);
  color: #171512;
}
body[data-theme="noir"] .toast {
  background: #2b2721;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- lightbox: the gallery's room, not a black box ---------- */
.lightbox {
  background: #f4eee1;
}
body[data-theme="minimal"] .lightbox {
  background: #fbfbf8;
}
.lb-img {
  box-shadow: 0 18px 50px rgba(38, 36, 31, 0.28);
}
.lb-close,
.lb-prev,
.lb-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(38, 36, 31, 0.2);
  transition: opacity 0.35s ease;
}
.lb-close {
  top: 16px;
  right: 16px;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
.lb-bar {
  color: var(--ink);
  transition: opacity 0.35s ease;
}
.lightbox.lb-idle {
  cursor: none;
}
.lightbox.lb-idle .lb-prev,
.lightbox.lb-idle .lb-next,
.lightbox.lb-idle .lb-bar,
.lightbox.lb-idle .lb-proof {
  opacity: 0;
  pointer-events: none;
}
/* Round 2: the way OUT never fully hides. A first-time viewer who
   can't find the exit feels trapped, so the close control dims to a
   clearly visible floor (45%) while everything else sleeps. */
.lightbox.lb-idle .lb-close {
  opacity: 0.45;
}

/* Fade-in loading (Step 10): client.js adds .fade-img to grid,
   hero, and lightbox images as it arms them, and .is-loaded when
   each one is ready. The hiding rule keys off the JS-added class
   only — server markup never carries it, so a no-JS visit shows
   every photo, and known cell geometry means no layout shift. */
.fade-img {
  opacity: 0;
  transition: opacity 0.55s ease;
}
.fade-img.is-loaded {
  opacity: 1;
}

/* Noir lightbox (Step 10): near-black ground, dark discs with a
   hairline ring instead of the white discs (whose glyphs take
   --ink — soft white here — and would vanish on white). */
body[data-theme="noir"] .lightbox {
  background: #100e0c;
}
body[data-theme="noir"] .lb-img {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}
body[data-theme="noir"] .lb-close,
body[data-theme="noir"] .lb-prev,
body[data-theme="noir"] .lb-next {
  background: rgba(23, 21, 18, 0.85);
  color: #f2ede3;
  box-shadow:
    0 0 0 1px rgba(242, 237, 227, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.5);
}
body[data-theme="noir"] .lb-bar {
  color: #f2ede3;
}

/* === client lightbox bar (round 4) === */
/* Photo first: "Photo N of M" small, then icon buttons with short labels
   (views/client/lightbox.tsx). Each is at least 44px each way; colour
   comes from the bar (ink on the light lightbox, cream on noir). */
.lb-count {
  font-size: 13px;
  opacity: 0.75;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lb-action {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 52px;
  padding: 4px 8px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: inherit;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.lb-action[hidden] {
  display: none;
}
/* Hover tint only with a mouse (a tap would leave it stuck on). */
@media (hover: hover) {
  .lb-action:hover {
    background: rgba(38, 36, 31, 0.07);
  }
  body[data-theme="noir"] .lb-action:hover {
    background: rgba(242, 237, 227, 0.1);
  }
}
.lb-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.lb-icon {
  display: block;
  width: 24px;
  height: 24px;
}
.lb-label {
  line-height: 1.2;
}
.lb-fav[aria-pressed="true"] {
  color: var(--accent);
}
.lb-fav[aria-pressed="true"] .lb-icon path {
  fill: currentColor;
}
/* Cast to TV (views/client/cast-controls.tsx): the button is tinted
   while casting, and a pill at the top names the TV with a Stop. The
   pill never idle-hides: what is on the TV must stay obvious. */
.lb-cast[aria-pressed="true"] {
  color: var(--accent);
}
.lb-casting {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 6px 6px 14px;
  max-width: calc(100% - 150px);
  border-radius: 999px;
  background: rgba(23, 21, 18, 0.85);
  color: #f2ede3;
  font-size: 13.5px;
}
.lb-casting[hidden] {
  display: none;
}
/* A long TV name wraps (a phone leaves ~140px beside Stop). */
.lb-casting-text {
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.lb-cast-stop {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f2ede3;
  color: #171512;
  font: inherit;
  cursor: pointer;
}
.lb-cast-stop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* A phone's bar is full (count + up to four controls), so Cast takes the
   empty top-left corner, opposite the close button. */
@media (max-width: 640px) {
  .lb-cast {
    position: absolute;
    top: 8px;
    left: 8px;
  }
}
.lb-play .lb-icon-pause,
.lb-play[aria-pressed="true"] .lb-icon-play {
  display: none;
}
.lb-play[aria-pressed="true"] .lb-icon-pause {
  display: inline;
}
.lb-badge {
  position: absolute;
  top: 1px;
  left: calc(50% + 5px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.lb-badge[hidden] {
  display: none;
}
/* A favorite answers with the heart, not words: one short scale. */
@keyframes heart-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.lb-fav.is-popping .lb-icon,
.fav.is-popping {
  animation: heart-pop 0.32s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .lb-fav.is-popping .lb-icon,
  .fav.is-popping {
    animation: none;
  }
}
/* Phones that can share files: Download opens Save to Photos / Download
   file (web/public/client/save-photos.ts). */
.lb-download-wrap {
  position: relative;
  display: inline-flex;
}
.lb-download-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 7;
  display: grid;
  min-width: 200px;
  padding: 6px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(38, 36, 31, 0.3);
}
.lb-download-menu[hidden] {
  display: none;
}
.lb-download-menu button {
  min-height: 44px;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
}
.lb-download-menu button:hover {
  background: rgba(38, 36, 31, 0.07);
}
.lb-download-menu button:disabled {
  opacity: 0.6;
}

/* ---------- admin: theme picker + design controls ---------- */
.theme-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
  margin: 0;
}
.theme-picker legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.theme-card {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--card);
  cursor: pointer;
}
.theme-card input {
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0;
}
.theme-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 106, 79, 0.22);
}
.theme-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* A small mock of each theme's real look (lib/ThemeCards.tsx): ground,
   cover treatment, title type and grid, keyed off data-theme-card. */
.theme-mock {
  display: grid;
  gap: 5px;
  padding: 6px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #faf8f4;
  border: 1px solid var(--line);
  overflow: hidden;
}
.theme-mock-cover {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: 3px;
  background: linear-gradient(135deg, #b9a58c, #6f6252);
}
.theme-mock-title {
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  /* The real title: a long one ends in an ellipsis. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.theme-mock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.theme-mock-grid i {
  display: block;
  aspect-ratio: 1;
  background: #cfc6b6;
  border-radius: 1px;
}
/* Classic: ivory, framed photos in neat rows. */
[data-theme-card="classic"] .theme-mock-grid i {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e4ded1;
}
/* Editorial: cream, a tall full-bleed cover, small caps, justified rows. */
[data-theme-card="editorial"] .theme-mock {
  background: #f4eee2;
  padding: 0 0 6px;
}
[data-theme-card="editorial"] .theme-mock-cover {
  aspect-ratio: 2 / 1;
  border-radius: 0;
}
[data-theme-card="editorial"] .theme-mock-title {
  font-family: var(--sans);
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 10.5px;
}
[data-theme-card="editorial"] .theme-mock-grid,
[data-theme-card="noir"] .theme-mock-grid {
  grid-template-columns: 3fr 2fr 2fr 3fr 2fr;
  padding: 0 6px;
}
[data-theme-card="editorial"] .theme-mock-grid i,
[data-theme-card="noir"] .theme-mock-grid i {
  aspect-ratio: auto;
  height: 16px;
}
/* Minimal: white, quiet sans, airy grid. */
[data-theme-card="minimal"] .theme-mock {
  background: #fff;
  gap: 7px;
}
[data-theme-card="minimal"] .theme-mock-cover {
  aspect-ratio: 4 / 1;
}
[data-theme-card="minimal"] .theme-mock-title {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9.5px;
  text-align: left;
}
[data-theme-card="minimal"] .theme-mock-grid {
  gap: 6px;
}
[data-theme-card="minimal"] .theme-mock-grid i {
  background: #e3e0da;
}
/* Noir: deep charcoal, soft-white serif. */
[data-theme-card="noir"] .theme-mock {
  background: #1f1e1b;
  border-color: #1f1e1b;
}
[data-theme-card="noir"] .theme-mock-title {
  color: #ece7dc;
}
[data-theme-card="noir"] .theme-mock-grid {
  padding: 0;
}
[data-theme-card="noir"] .theme-mock-grid i {
  background: #4a4640;
}
.theme-card-name {
  font-family: var(--display);
  font-size: 17.5px;
  color: var(--ink);
}
.theme-card-blurb {
  font-size: 13.5px;
  color: var(--muted);
}
.admin-form input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
}
.range-val {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  /* Reserve the phone tile before its image loads. Collapsed flex items
     make distant lazy images appear to be near the viewport. */
  .jrow {
    flex-wrap: wrap;
  }
  .jcell {
    flex-basis: 100%;
    max-height: 380px;
  }
  .jcell img {
    height: auto;
    max-height: 380px;
  }
  .jcell img:not([width]) {
    aspect-ratio: auto 3 / 2;
  }
  .jfill {
    display: none;
  }
  .hero-cover {
    min-height: 360px;
  }
  body[data-theme="editorial"] .client-head,
  body[data-theme="minimal"] .client-head,
  body[data-theme="noir"] .client-head {
    padding: 0 14px;
  }
  .client-head .wordmark-text {
    font-size: 16px;
  }
}

/* ---------- Step 10: marketing in the Editorial language ----------
   The public pages (landing, /pass, signup — body.page-landing) wear
   the client galleries' Editorial palette: warm cream ground,
   hairline rules, Fraunces at display sizes, ONE dark pill primary.
   Everything below the hero stays on white cards, as before. */
body.page-landing {
  --bg: #f6f0e4;
  --line: #e2d7c2;
}
.hero-editorial {
  padding: 96px 0 4px;
}
.hero-editorial h1 {
  font-size: clamp(42px, 8vw, 80px);
  line-height: 1.04;
  margin: 14px 0 22px;
}
.hero-editorial .hero-sub {
  font-size: 20px;
  max-width: 680px;
}
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: transparent;
  color: var(--ink);
}
.hero-sample-link {
  align-self: center;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.marquee {
  overflow: hidden;
  margin-top: 58px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track {
    animation: none;
  }
  .fade-img {
    transition: none;
  }
  .hero-inner,
  body[data-theme="editorial"] .gate-card,
  body[data-theme="minimal"] .gate-card,
  body[data-theme="noir"] .gate-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Step 11: comments, video, sticky picks, round-2 fixes ---------- */

/* Finding 11: client-surface primary actions were 13px spaced caps
   against 17px body text — the smallest type on the page was the
   buttons. Client pages (gallery + gates) now carry 15px with
   calmer tracking; the studio side keeps its denser chrome. */
.page-gallery .btn,
.page-gate .btn {
  font-size: 15px;
  letter-spacing: 0.06em;
}
.page-gallery .btn-quiet {
  font-size: 13px;
}

.gate-helper {
  font-size: 13.5px;
  color: var(--muted);
  margin: 2px 0 0;
  text-align: center;
}
.gallery-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Proof-copy line (finding 6): sits with the download actions. */
.proof-note {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
}
.lb-proof {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 2;
  text-align: center;
  font-size: 13.5px;
  color: inherit;
  opacity: 0.78;
  margin: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Sticky picks bar (finding 5): a slim pill that rides the bottom of
   the viewport once a favorite exists. In-flow bar stays the no-JS
   path; this twin is JS-shown via the shared .picks-bar[hidden] rule. */
.picks-bar-sticky {
  position: sticky;
  bottom: 14px;
  z-index: 40;
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: 20px auto 6px;
}
/* Round 3: one line at 390px and at 130% zoom. Round 4: a small light
   pill (it was a big accent bar). */
.picks-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(38, 36, 31, 0.16);
  cursor: pointer;
}
/* The bar above the grid that appears with the first favorite: one short
   row (the count, then small Send / Download buttons). */
.page-gallery .picks-bar {
  gap: 10px;
  margin: 14px 0 0;
}
.page-gallery .picks-bar .btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 13px;
}
@media (hover: hover) {
  .picks-pill:hover {
    border-color: var(--accent);
  }
}
.picks-pill:disabled {
  opacity: 0.6;
}

/* Video tiles: the poster is the tile image; a centered play disc
   and a duration chip say what it is before anyone taps. */
.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(23, 21, 18, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  padding-left: 3px;
  pointer-events: none;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(23, 21, 18, 0.72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.comment-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(38, 36, 31, 0.25);
  pointer-events: none;
}

/* Lightbox video + comments panel. */
.lb-video {
  max-width: 92vw;
  max-height: 84vh;
  box-shadow: 0 18px 50px rgba(38, 36, 31, 0.28);
  background: #000;
}
.lb-video[hidden] {
  display: none;
}
.lb-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -8px -10px 2px 0;
}
.lb-comments-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.lb-comments-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb-comments-close:hover {
  background: rgba(38, 36, 31, 0.07);
}
.lb-comments {
  position: absolute;
  /* Clear of the next arrow (16px + 52px) on a wide screen. */
  right: 84px;
  bottom: 88px;
  z-index: 6;
  width: min(380px, calc(100vw - 32px));
  max-height: min(62vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(38, 36, 31, 0.35);
  text-align: left;
}
.lb-comments[hidden] {
  display: none;
}
.lb-comment {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.lb-comment-head {
  margin: 0;
  font-size: 13.5px;
}
.lb-comment-when {
  color: var(--muted);
  font-weight: 400;
}
.lb-comment-body {
  margin: 3px 0 2px;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lb-comments-empty {
  color: var(--muted);
  font-size: 14.5px;
}
.lb-comment-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.lb-comment-form label {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
}
.lb-comment-form input,
.lb-comment-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
}
.lb-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lb-comment-note {
  font-size: 14px;
  color: var(--muted);
}

/* Manage-page comments panel. */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.comment-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
}
.comment-row.is-hidden-comment {
  opacity: 0.62;
}
.comment-meta {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
}
.comment-meta strong {
  color: var(--ink);
}
.comment-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
}

/* Step 12: API tokens (Security page) */
.token-prefix {
  font-size: 13px;
  color: var(--muted);
}
.token-reveal {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 18px;
  background: var(--card);
}
.token-secret-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.token-secret-row code {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.scope-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.scope-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
}
.scope-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}
.scope-option input {
  margin-top: 4px;
}

/* /ai (ChatGPT & Claude): the setup prompt box under its copy button,
   the example requests as quoted cards, and the small link to the
   assistant instructions. The rest reuses the landing's components. */
.ai-prompt {
  max-width: 620px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: all;
}
.ai-examples {
  list-style: none;
  max-width: 720px;
  margin: 24px auto 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ai-examples li {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  line-height: 1.5;
}
.ai-examples li::before {
  content: "\201C";
}
.ai-examples li::after {
  content: "\201D";
}
.ai-docs-link {
  margin: 8px 0 48px;
}

/* Sign-in page help links (create account / password reset). */
.login-help {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}
.login-help a {
  color: var(--ink);
}

/* Gate pages: the contact and "Delivered with" sit on a solid strip at
   the bottom (round 5: a glow over the blurred cover was unreadable). */
.gate-footer {
  margin-top: 26px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card, #fff);
  border-top: 1px solid var(--line);
}
/* The strip sits at the bottom of the window, not mid-page. */
body.page-gate:has(.gate-footer) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.page-gate:has(.gate-footer) .gate-footer {
  margin-top: auto;
}
.page-gate .powered {
  padding: 0;
  margin: 26px auto 34px;
  width: fit-content;
  max-width: 100%;
  color: var(--body);
  text-shadow: none;
}
.page-gate .gate-footer .powered {
  margin: 4px auto;
}

/* Phone lightbox: one row, the count then the icons; the proof-copy
   note sits above the bar. */
@media (max-width: 640px) {
  .lb-bar {
    gap: 2px;
    padding: 6px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .lb-count {
    margin-right: auto;
    padding-left: 4px;
  }
  .lb-proof {
    bottom: 132px;
    font-size: 12.5px;
    padding: 0 16px;
  }
}

/* Step 14: "Email it to your client" form inside the Share panel. */
.send-gallery {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.send-gallery h3 {
  margin: 0 0 4px;
  font-size: 19px;
}
.send-gallery textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------- Step 15: homepage, "Noir" direction ----------
   body.page-home: dark, photo-first. The palette is a variable swap so
   the shared marketing pieces (FAQ, lead form, footer, buttons) follow
   along; contrast checked: --body #d6cfc2 on #12100e ≈ 12:1, --muted
   #a89f90 ≈ 7:1. */
body.page-home {
  --bg: #12100e;
  --card: #1c1916;
  --ink: #f2ede3;
  --body: #d6cfc2;
  --muted: #a89f90;
  --line: #2c2823;
  --accent: #e3c9a3;
  background: var(--bg);
  color: var(--body);
}
.page-home .btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-light {
  background: #f2ede3;
  border-color: #f2ede3;
  color: #12100e;
  padding: 15px 28px;
}
.btn-light:hover {
  background: transparent;
  color: #f2ede3;
}
.btn-light-outline {
  border-color: #f2ede3;
  color: #f2ede3;
}
.btn-light-outline:hover {
  background: #f2ede3;
  color: #12100e;
}
.btn-small {
  padding: 5px 12px;
  font-size: 11px;
}

/* 2026-11-24: the copy beside a sharp, full-colour photo (no overlay);
   on phones the square crop sits above the copy. */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
.home-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 32px 72px;
}
.home-hero-pic {
  grid-column: 2;
  grid-row: 1;
  display: block;
}
.home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 760px);
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 10px;
}
.home-nav {
  position: relative;
  z-index: 2;
  background: transparent;
  border-bottom: 0;
}
.home-nav .site-wordmark,
.home-nav .site-links a,
.home-nav .signin-link {
  color: #f2ede3;
}
.home-nav .site-links a:hover,
.home-nav .signin-link:hover {
  color: var(--accent);
}
.home-hero-copy {
  grid-column: 1;
  grid-row: 1;
}
.home-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.home-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  color: #fff;
  margin: 0 0 28px;
  max-width: 980px;
}
.home-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
}
.home-hero-row p {
  margin: 0;
  max-width: 460px;
  color: #e6dfd3;
  font-size: 17.5px;
}

.home-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 32px 24px;
}
.home-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}
.home-head.center {
  justify-content: center;
  text-align: center;
}
.home-head h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
/* Homepage: three text + screenshot blocks, then the price line. */
.home-shots {
  display: grid;
  gap: 88px;
}
.home-shot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px 56px;
  align-items: center;
}
.home-shot h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 14px;
}
.home-shot p {
  margin: 0;
  max-width: 480px;
  font-size: 17.5px;
}
/* A shot's <picture> (phone source) lays out as its <img>. */
.home-shot picture,
.feature-shot picture {
  display: contents;
}
.home-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.home-shot-phone img {
  max-width: 300px;
  justify-self: center;
}
.home-price {
  text-align: center;
}
.home-price .cta-row {
  justify-content: center;
}
.home-price > p {
  max-width: 640px;
  margin: 0 auto 16px;
  font-size: 19px;
  color: var(--ink);
}
.home-features h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  color: var(--ink);
  margin: 8px 0 8px;
}
.home-features p {
  margin: 0;
}
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 34px 40px;
}

.home-pass-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-top: 26px;
}
.home-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.page-home .faq-list details {
  background: var(--card);
}
.page-home .request-form input,
.page-home .request-form textarea {
  background: #1c1916;
  color: var(--ink);
  border-color: #3a352e;
}
.page-home .request-sub a {
  color: var(--accent);
}
.page-home .site-foot {
  border-top-color: var(--line);
}
.page-home .site-foot nav a,
.page-home .foot-brand {
  color: var(--ink);
}
.page-home .btn-accent {
  background: #f2ede3;
  border-color: #f2ede3;
  color: #12100e;
}
.page-home .btn-accent:hover {
  background: transparent;
  color: #f2ede3;
}

@media (max-width: 760px) {
  .home-nav .site-links {
    display: none;
  }
  .home-nav {
    padding: 14px 18px;
    gap: 12px;
  }
  .home-nav .site-actions {
    gap: 12px;
  }
  .home-nav .site-actions .signin-link:nth-child(2) {
    display: none;
  }
  .home-section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .home-hero-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 18px 56px;
    gap: 24px;
  }
  .home-hero-pic,
  .home-hero-copy {
    grid-column: 1;
    grid-row: auto;
  }
  .home-hero-pic {
    margin: 0 -18px;
  }
  .home-hero-img {
    aspect-ratio: 4 / 3;
    max-height: 50vh;
    object-position: 50% 45%;
    border-radius: 0;
  }
  .home-section {
    padding-top: 64px;
  }
  .home-shots {
    gap: 64px;
  }
  .request-form {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-img {
    transition: none;
  }
}
.landing.home {
  max-width: none;
  padding: 0;
}
.home-features .feature {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0 0;
}

/* Step 15: /pass wears the homepage's Noir palette (body.page-home)
   with its own countdown and comparison questions. */
.page-pass .site-nav {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.page-pass .site-wordmark,
.page-pass .site-links a,
.page-pass .signin-link {
  color: var(--ink);
}
.page-pass .landing {
  max-width: 1080px;
}
.page-pass .hero-editorial h1 {
  color: #fff;
  font-weight: 300;
}
.page-pass .eyebrow {
  color: var(--accent);
}
.pass-countdown {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--body);
}
.pass-days {
  font-family: var(--display);
  font-size: 44px;
  color: var(--accent);
  margin-right: 6px;
  vertical-align: -4px;
}
.page-pass .compare-table {
  background: var(--card);
  color: var(--body);
}
.page-pass .compare-table th,
.page-pass .compare-table td {
  border-color: var(--line);
}
.page-pass .compare-table th[scope="row"] {
  color: var(--ink);
}
.page-pass .honest-note {
  background: var(--card);
  border-color: var(--line);
}
.page-pass .prose a,
.page-pass .hero-sample-link {
  color: var(--ink);
}
.page-pass .site-actions .btn-quiet {
  border-color: var(--ink);
  color: var(--ink);
}
.page-pass .site-actions .btn-accent {
  background: #f2ede3;
  border-color: #f2ede3;
  color: #12100e;
}
@media (max-width: 640px) {
  .pass-questions {
    font-size: 14.5px;
  }
}
.pass-toc {
  font-size: 15px;
  margin: 0 0 30px;
  line-height: 1.9;
}
.pass-toc a {
  color: var(--ink);
}
.page-pass .faq-list {
  margin: 0;
}

/* ---------- Step 17: plans + verification ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
}
.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin: 0;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-flag {
  position: absolute;
  top: -11px;
  left: 22px;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan-price {
  margin: 6px 0 0;
  color: var(--body);
}
.plan-amount {
  font-family: var(--display);
  font-size: 40px;
  color: var(--ink);
  margin-right: 2px;
}
.plan-annual {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.plan-limits {
  list-style: none;
  padding: 0;
  margin: 4px 0 18px;
  display: grid;
  gap: 6px;
  font-size: 15px;
}
.plan-limits li {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.plan-card .btn {
  margin-top: auto;
  text-align: center;
}
.plan-soon,
.plan-current {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.plan-notes {
  max-width: 820px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
.page-admin .plan-grid {
  max-width: none;
}
.verify-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #fbf3e2;
  border-bottom: 1px solid #ecd9b3;
  color: #4d3b1f;
  font-size: 15px;
}
.verify-banner p {
  margin: 0;
}
.verify-note {
  font-size: 14px;
}
.cf-turnstile {
  display: inline-block;
  min-height: 65px;
}

/* ---------- Step 18: Noir sub-pages (/features, /pricing, /agents, /signup) ---------- */
.page-sub .site-nav {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.page-sub .site-wordmark,
.page-sub .site-links a,
.page-sub .signin-link {
  color: var(--ink);
}
.page-sub .site-links a:hover,
.page-sub .signin-link:hover {
  color: var(--accent);
}
.page-sub .site-actions .btn-accent,
.page-sub .btn-accent,
.page-sub .btn-dark {
  background: #f2ede3;
  border-color: #f2ede3;
  color: #12100e;
}
.page-sub .site-actions .btn-accent:hover,
.page-sub .btn-accent:hover,
.page-sub .btn-dark:hover {
  background: transparent;
  color: #f2ede3;
}
.page-sub .hero-editorial h1 {
  color: #fff;
  font-weight: 300;
}
.page-sub .hero-sample-link {
  color: var(--ink);
}
.page-sub .compare-table {
  color: var(--body);
}
.page-sub .code-block {
  background: #0b0a09;
  color: #e6dfd3;
  border-color: var(--line);
}
.page-sub .prose a,
.page-sub .request-sub a,
.page-sub .muted a {
  color: var(--ink);
}
.page-sub .request-form input,
.page-sub .request-form textarea {
  background: #1c1916;
  color: var(--ink);
  border-color: #3a352e;
}
.page-sub .landing:not(.home) {
  max-width: 1080px;
}
.sub-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.sub-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.sub-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(18, 16, 14, 0.95), rgba(18, 16, 14, 0));
}
.sub-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 56px;
}
.sub-hero-copy h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  color: #fff;
  margin: 0 0 16px;
  max-width: 900px;
}
.sub-hero-copy p {
  color: #e6dfd3;
  max-width: 560px;
}
.sub-top {
  padding-top: 72px;
}
.sub-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  color: #fff;
  margin: 0 0 12px;
  text-align: center;
}
.sub-lede {
  max-width: 620px;
  margin: 0 auto;
}
.home-eyebrow.center {
  text-align: center;
}
.feature-group {
  margin-bottom: 64px;
}
.feature-group > h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
  margin: 0 0 24px;
}
.center-row {
  justify-content: center;
}
.table-scroll {
  overflow-x: auto;
}
.pricing-compare {
  min-width: 640px;
}
.small {
  font-size: 13.5px;
}

/* Step 18: dark auth screens (sign in, reset, confirm email). */
body.page-auth {
  --bg: #12100e;
  --card: #1c1916;
  --ink: #f2ede3;
  --body: #d6cfc2;
  --muted: #a89f90;
  --line: #2c2823;
  --accent: #e3c9a3;
  background: radial-gradient(circle at 50% 0%, #26211c, #12100e 60%);
  color: var(--body);
  min-height: 100vh;
}
.page-auth .gate-card {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.page-auth .wordmark-text {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--muted);
}
.page-auth h1 {
  color: #fff;
  font-weight: 400;
}
.page-auth label {
  color: var(--ink);
}
.page-auth input:not([type="checkbox"]):not([type="radio"]) {
  background: #12100e !important;
  color: var(--ink) !important;
  border-color: #3a352e !important;
}
.page-auth .btn-accent {
  background: #f2ede3;
  border-color: #f2ede3;
  color: #12100e;
}
.page-auth .btn-accent:hover {
  background: transparent;
  color: #f2ede3;
}
.page-auth .btn:not(.btn-accent) {
  border-color: var(--ink);
  color: var(--ink);
}
.page-auth .login-help a,
.page-auth a {
  color: var(--ink);
}
.page-auth .muted {
  color: var(--muted);
}
/* Buttons inside prose keep their own colors (link color must not win). */
.page-sub a.btn-light,
.page-sub a.btn-dark,
.page-sub a.btn-accent,
.page-home a.btn-light {
  color: #12100e;
}
.page-sub a.btn-light:hover,
.page-sub a.btn-dark:hover,
.page-sub a.btn-accent:hover,
.page-home a.btn-light:hover {
  color: #f2ede3;
}

/* === marketing persona round 3 === */
/* Phone menu: a <details> disclosure (no script) replaces the hidden links. */
.site-menu {
  display: none;
  position: static;
}
.site-menu-button {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.site-menu-button::-webkit-details-marker {
  display: none;
}
.site-menu[open] .site-menu-button {
  border-color: var(--ink);
}
.site-menu-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  padding: 8px 16px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.site-menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.site-menu-links a:first-child {
  border-top: 0;
}
.site-nav.home-nav {
  z-index: 5;
}
.home-nav .site-menu-button {
  color: #f2ede3;
  border-color: rgba(242, 237, 227, 0.5);
}
@media (max-width: 760px) {
  .site-nav .site-links,
  .site-nav .site-actions .signin-link {
    display: none;
  }
  .site-nav .site-menu {
    display: block;
  }
  .site-nav {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .site-nav .site-wordmark {
    min-width: 0;
    font-size: 14px;
    letter-spacing: 0.16em;
    line-height: 1.35;
  }
  .site-nav .site-actions {
    gap: 10px;
  }
  .site-nav .site-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    white-space: nowrap;
  }
}

/* Footer: wraps on desktop; a tidy two-column grid on phones. */
.site-foot .foot-links {
  flex-wrap: wrap;
  row-gap: 10px;
}
.site-foot .foot-links a {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .site-foot .foot-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    max-width: 340px;
    margin: 0 auto 18px;
    text-align: left;
  }
  .site-foot .foot-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Homepage hero subhead (readable on phones, between H1 and CTA). */
.home-hero-sub {
  color: #f2ede3;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 0 22px;
}

/* /pricing comparison: our column is the emphasized one; cards on phones. */
.compare-table.pricing-compare td:last-child {
  color: inherit;
  font-weight: inherit;
}
.compare-table.pricing-compare td.compare-ours {
  color: var(--ink);
  font-weight: 700;
}
.pricing-compare {
  min-width: 0;
}
.pricing-compare thead td {
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
  .pricing-compare,
  .pricing-compare tbody,
  .pricing-compare tr,
  .pricing-compare th,
  .pricing-compare td {
    display: block;
  }
  .pricing-compare {
    border: 0;
    background: transparent;
  }
  .pricing-compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pricing-compare tr {
    background: var(--card);
    border: 1px solid var(--line);
    margin-bottom: 12px;
  }
  .pricing-compare tbody th {
    white-space: normal;
  }
  .pricing-compare td {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 10px;
  }
  .pricing-compare td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    font-size: 13.5px;
  }
  .pricing-compare tr td:last-child {
    border-bottom: 0;
  }
}

/* /features: real product screenshots between the groups. */
.feature-shot {
  margin: -24px auto 64px;
  max-width: 960px;
  text-align: center;
}
.feature-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature-shot-phone {
  max-width: 300px;
}
.feature-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.feature-aside {
  margin: -40px 0 56px;
}

/* /pass: the step-by-step box, countdown and tappable contents. */
.pass-steps-box {
  margin: 40px 0;
  padding: 6px 26px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--card);
}
.pass-steps {
  padding-left: 22px;
  display: grid;
  gap: 12px;
}
.pass-countdown-text {
  display: inline-block;
}
.pass-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
@media (max-width: 640px) {
  .pass-toc ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .pass-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* /signup: one ~440px column, each error next to its field. */
.request-form.signup-form {
  grid-template-columns: 1fr;
  max-width: 440px;
}
.signup-field {
  display: grid;
  gap: 5px;
}
.signup-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.signup-field .field-error {
  margin: 0;
  color: #f0a59a;
  font-weight: 600;
  font-size: 14px;
}
.signup-field input[aria-invalid="true"] {
  border-color: #f0a59a;
}
.signup-field .field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* === signup promo code === */
/* "Have a promo code?": a <details> (no script) that opens to the field;
   /signup?code= renders it open (pricing.tsx PromoField). */
.signup-promo summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: max-content;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.signup-promo summary::-webkit-details-marker {
  display: none;
}
.signup-promo[open] summary {
  color: var(--ink);
}

/* /about, /privacy, /terms. */
.prose-page {
  padding-top: 56px;
}
.prose-page h1 {
  color: #fff;
  font-family: var(--display);
  font-weight: 300;
}

/* Studio sign-in: the wordmark goes home; marketing pill buttons. */
.page-auth a.wordmark-home {
  display: block;
  text-decoration: none;
  color: var(--muted);
}
.page-auth a.wordmark-home:hover {
  color: var(--ink);
}
.page-auth .btn.btn-pill {
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 15.5px;
}
/* The studio button layer (.page-admin .btn-accent) loads later and would
   paint white on beige here; the sign-in pill wears the marketing colors. */
.page-auth .btn.btn-pill.btn-accent {
  background: #f2ede3;
  border-color: #f2ede3;
  color: #12100e;
}
.page-auth .btn.btn-pill.btn-accent:hover {
  background: transparent;
  color: #f2ede3;
}
.page-auth .login-client-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Step 18: gallery manage page — photos first, tabs ---------- */
.manage-back {
  margin: 6px 0 4px;
  font-size: 14.5px;
}
.manage-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.manage-title h1 {
  margin: 0 0 6px;
}
.manage-title p {
  margin: 0;
}
.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.manage-tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
  padding-top: 6px;
}
.manage-tabs a {
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.manage-tabs a:hover {
  color: var(--ink);
}
.manage-tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tab-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}
body:not(.tabs-on) .manage-tabs {
  display: none;
}
.manage #photos-panel .dropzone {
  margin-bottom: 18px;
}

/* Step 19: impersonation banner — unmistakable on every studio page. */
.imp-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #7a2e1f;
  color: #fff;
  font-size: 14.5px;
}
.imp-banner p {
  margin: 0;
}
.imp-banner .btn {
  border-color: #fff;
  color: #fff;
}
.imp-end {
  margin: 0;
}

/* Step 19: console actions. */

/* =========================================================
   Step 20: studio design system (QoL pass).
   Low-specificity :where() bases so component rules can win;
   overrides the older .page-admin input rules by source order.
   ========================================================= */
.page-admin {
  --field-border: #dcd3c2;
  --field-bg: #fff;
  --ring: rgba(140, 106, 79, 0.22);
}

/* Text-like fields + selects + textareas */
.page-admin
  :where(
    input:not([type]),
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    input[type="number"],
    input[type="url"],
    input[type="tel"],
    select,
    textarea
  ) {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(38, 36, 31, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.page-admin :where(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
.page-admin :where(input, textarea)::placeholder {
  color: #a39c8f;
}
.page-admin :where(textarea) {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}
.page-admin :where(select) {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6a5e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.page-admin :where(input[type="date"]) {
  padding-right: 10px;
}
.page-admin :where(input[type="date"])::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}
/* Undo the older, heavier rule (it out-specified component styles). */
.page-admin
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]) {
  box-shadow: 0 1px 1px rgba(38, 36, 31, 0.04);
}

/* Labels + fieldsets */
.page-admin :where(.admin-form, .modal-form) label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
.page-admin :where(.admin-form, .modal-form) label > :where(input, select, textarea) {
  margin-top: 6px;
}
.page-admin .optional {
  font-weight: 400;
  color: var(--muted);
}
.page-admin fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.page-admin legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.page-admin .admin-form .radio-stack {
  border: 0;
  padding: 0;
  gap: 8px;
}

/* Radio choices as option cards */
.page-admin .radio-stack .radio {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.page-admin .radio-stack .radio:hover {
  border-color: #c9bda6;
}
.page-admin .radio-stack .radio:has(input:checked) {
  border-color: var(--accent);
  background: #fbf6ee;
  box-shadow: 0 0 0 1px var(--accent);
}
.page-admin .radio-stack .radio .optional {
  font-weight: 400;
}
.page-admin input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  /* .admin-form input pads text fields; a radio's dot needs the room. */
  padding: 0;
  border: 1.5px solid #b9ad97;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.page-admin input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.12s;
}
.page-admin input[type="radio"]:checked {
  border-color: var(--accent);
}
.page-admin input[type="radio"]:checked::before {
  transform: scale(1);
}
.page-admin .segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Plain checkboxes (e.g. API token scopes) */
.page-admin input[type="checkbox"]:not(.switch) {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #b9ad97;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  vertical-align: -3px;
}
.page-admin input[type="checkbox"]:not(.switch)::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.page-admin input[type="checkbox"]:not(.switch):checked {
  background: var(--accent);
  border-color: var(--accent);
}
.page-admin input[type="checkbox"]:not(.switch):checked::before {
  transform: scale(1);
}

/* Switch rows (manage page + create modal share this) */
.page-admin .toggle-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
}
.page-admin .toggle-label {
  display: grid;
  gap: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.page-admin .toggle-label .optional {
  font-size: 13.5px;
  line-height: 1.45;
}
.page-admin input.switch {
  flex: none;
  cursor: pointer;
}

/* Range sliders */
.page-admin input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

/* Buttons: calm, sentence-case, consistent height */
.page-admin .btn {
  text-transform: none;
  letter-spacing: 0.005em;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-width: 1px;
  border-radius: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.page-admin .btn-quiet {
  background: #fff;
  border-color: var(--field-border);
  color: var(--ink);
  padding: 9px 14px;
  font-size: 14px;
}
.page-admin .btn-quiet:hover {
  background: #f4efe6;
  border-color: #c9bda6;
  color: var(--ink);
}
.page-admin .btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-admin .btn-accent:hover {
  background: #75573f;
  border-color: #75573f;
  color: #fff;
}
.page-admin .btn-small {
  padding: 8px 14px;
  font-size: 14px;
}
.page-admin .btn.danger,
.page-admin .btn-danger {
  background: #fff;
  border-color: #e3b3a8;
  color: #a33b3b;
}
.page-admin .btn.danger:hover,
.page-admin .btn-danger:hover {
  background: #a33b3b;
  border-color: #a33b3b;
  color: #fff;
}
.page-admin .admin-form > button,
.page-admin .admin-form > .btn {
  justify-self: start;
  width: auto;
}
.page-admin .studio-bar .btn {
  padding: 8px 14px;
}
/* New gallery: a "+" icon on phones (the label stays its name). The
   account menu's Dashboard / Settings show only there. */
.new-gallery-plus,
.account-nav-item {
  display: none;
}
@media (max-width: 640px) {
  .studio-bar-inner {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 12px;
  }
  .studio-nav {
    display: none;
  }
  .studio-bar .product-name {
    margin-right: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    letter-spacing: 0.18em;
  }
  .studio-bar-actions {
    flex: none;
    gap: 4px;
  }
  .page-admin .studio-bar .new-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    letter-spacing: 0;
  }
  .new-gallery-plus {
    display: inline;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
  }
  .new-gallery-label {
    display: none;
  }
  .account-button {
    padding: 3px;
  }
  .account-caret {
    display: none;
  }
  .account-nav-item {
    display: block;
  }
  .account-nav-item + .account-item:not(.account-nav-item) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 360px) {
  .studio-bar .product-name {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* Panels: a little more air, quieter headings */
.page-admin .panel {
  border-radius: 14px;
  border-color: #e8e1d3;
  box-shadow: 0 1px 2px rgba(38, 36, 31, 0.04);
}
.page-admin .panel > h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

/* Dashboard toolbar */
.page-admin .dash-search {
  gap: 10px;
  flex-wrap: nowrap;
}
.page-admin .search-field {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(38, 36, 31, 0.04);
}
.page-admin .search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
.page-admin .search-field .search-icon {
  color: var(--muted);
  flex: none;
}
.page-admin .search-field input[type="search"] {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  min-height: 42px;
  padding: 0;
}
/* The "/" shortcut means nothing without a keyboard. */
@media (hover: none), (max-width: 640px) {
  .page-admin .search-field .search-kbd {
    display: none;
  }
}
.page-admin .search-kbd {
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  color: var(--muted);
  background: #faf8f4;
}
.page-admin .sort-field {
  position: relative;
  flex: 0 0 210px;
  display: block;
  margin: 0;
}
.page-admin .sort-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.page-admin .sort-field select {
  padding-left: 52px;
}
.page-admin .search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  padding: 0;
  border: 0;
}
@media (max-width: 640px) {
  .page-admin .dash-search {
    flex-wrap: wrap;
  }
  .page-admin .sort-field {
    flex: 1 1 100%;
  }
}

/* Gallery cards */
.page-admin .gallery-card {
  border-radius: 14px;
  overflow: visible;
}
.page-admin .gallery-card > img,
.page-admin .gallery-card .card-cover {
  border-radius: 14px 14px 0 0;
}
.page-admin .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.page-admin .card-more {
  position: relative;
}
.page-admin .card-more > summary {
  list-style: none;
  cursor: pointer;
}
.page-admin .card-more > summary::-webkit-details-marker {
  display: none;
}
.page-admin .card-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(38, 36, 31, 0.14);
  display: grid;
}
.page-admin .card-menu a,
.page-admin .card-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.page-admin .card-menu a:hover,
.page-admin .card-menu button:hover {
  background: #f4efe6;
}
/* Phones: the menu spans the card's action row, so it never runs off
   either edge wherever More wrapped to. */
@media (max-width: 640px) {
  .page-admin .card-actions {
    position: relative;
  }
  .page-admin .card-more {
    position: static;
  }
  .page-admin .card-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

/* Create modal */
.page-admin .modal {
  border-radius: 16px;
}
.page-admin .modal-form label {
  display: block;
  margin-bottom: 2px;
}
.page-admin .modal-form label input {
  margin-top: 6px;
}
.page-admin .modal-form .toggle-row {
  margin: 4px 0;
}

/* Step 20 fixes: label hints inline, scope list as cards, no padded checkboxes. */
.page-admin .admin-form label {
  display: block;
}
.page-admin .admin-form label > :where(input:not([type="radio"]), select, textarea) {
  display: block;
}
.page-admin .admin-form label > .optional {
  font-size: 13px;
}
.page-admin .admin-form .scope-fieldset {
  border: 0;
  padding: 0;
  gap: 8px;
}
.page-admin .admin-form .scope-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  cursor: pointer;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
}
.page-admin .admin-form .scope-option:has(input:checked) {
  border-color: var(--accent);
  background: #fbf6ee;
  box-shadow: 0 0 0 1px var(--accent);
}
.page-admin .admin-form input[type="checkbox"]:not(.switch) {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin-top: 2px;
}
.page-admin #access-settings-form > label:first-child {
  grid-column: 1 / -1;
  max-width: 460px;
}
.page-admin .radio-text {
  display: grid;
  gap: 2px;
}
.page-admin .radio-text strong {
  font-weight: 600;
}
.page-admin .radio-text .optional {
  font-size: 13.5px;
}
@media (max-width: 640px) {
  /* The chips scroll sideways; the fade at the right edge says so. */
  .page-admin .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
    padding-right: 28px;
  }
  .page-admin .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .page-admin .filter-tab {
    white-space: nowrap;
  }
}
.page-admin .gallery-card {
  position: relative;
}
.page-admin .gallery-card:has(.card-more[open]) {
  z-index: 25;
}

/* ---------- Step 21: upload queue, drag reorder, bulk select, share ---------- */
#upload-queue {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}
.q-summary {
  display: grid;
  gap: 6px;
  padding: 10px 2px 4px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
}
.q-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e8e1d3;
  border-radius: 10px;
}
.q-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1ece2;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.q-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.q-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.q-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #efe8db;
  overflow: hidden;
}
.q-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.2s ease;
}
.q-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}
.q-status {
  white-space: nowrap;
}
.q-row[data-state="done"] .q-fill {
  background: #5f8a5c;
}
.q-row[data-state="done"] .q-status {
  color: #4c7a49;
}
.q-row[data-state="failed"] {
  border-color: #e3b3a8;
}
.q-row[data-state="failed"] .q-fill {
  background: #a33b3b;
}
.q-row[data-state="failed"] .q-status {
  color: #a33b3b;
  white-space: normal;
  text-align: right;
  max-width: 260px;
}
.q-retry {
  margin-top: 4px;
}

.grid-hint {
  font-size: 13.5px;
  margin: 6px 0 12px;
}
.admin-cell {
  position: relative;
}
.cell-media {
  position: relative;
}
.cell-media img {
  display: block;
}
.cell-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
}
.cell-drag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #4a463e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.admin-cell:hover .cell-check,
.admin-cell:hover .cell-drag,
.admin-cell:focus-within .cell-check,
.admin-cell:focus-within .cell-drag,
.photo-groups.is-selecting .cell-check {
  opacity: 1;
}
@media (hover: none) {
  .cell-check,
  .cell-drag {
    opacity: 1;
  }
}
.cell-cover-badge {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(38, 36, 31, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.admin-cell.is-selected {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.admin-cell.is-dragging {
  opacity: 0.55;
  transform: scale(0.97);
}
.photo-groups.is-sorting {
  user-select: none;
}
.photo-groups.is-sorting .cell-drag {
  cursor: grabbing;
}
.page-admin .admin-cell .cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.page-admin .admin-cell .cell-actions button {
  font: inherit;
  font-size: 12.5px;
  padding: 4px 9px;
  border: 1px solid #e3dccd;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.page-admin .admin-cell .cell-actions button:hover {
  background: #f4efe6;
}
.page-admin .admin-cell .cell-actions button.danger {
  color: #a33b3b;
}
.page-admin .admin-cell .cell-section {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.page-admin .admin-cell .cell-section select {
  min-height: 34px;
  padding: 4px 30px 4px 10px;
  font-size: 13.5px;
  margin-top: 3px;
  background-position: right 10px center;
}
.page-admin .admin-cell figcaption {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-bar {
  position: sticky;
  /* Right under the studio header, whatever its height (StudioChrome). */
  top: calc(var(--studio-bar-h, 61px) + 8px);
  z-index: 14;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  margin: 0 0 14px;
  background: #26241f;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(38, 36, 31, 0.25);
}
.bulk-count {
  font-weight: 700;
  margin-right: 6px;
}
.bulk-bar .btn-quiet {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.bulk-bar .btn-quiet:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.bulk-bar .btn-danger {
  background: #a33b3b;
  border-color: #a33b3b;
  color: #fff;
}
.bulk-move {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}
.page-admin .bulk-move select {
  min-height: 34px;
  width: auto;
  padding: 4px 34px 4px 10px;
  font-size: 14px;
}
.page-admin .bulk-bar .bulk-new-section {
  min-height: 34px;
  width: 12em;
  max-width: 100%;
  padding: 4px 10px;
  font-size: 14px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  align-items: start;
}
.share-card {
  border: 1px solid #e8e1d3;
  border-radius: 12px;
  padding: 18px;
  background: #fcfbf8;
  margin: 0;
}
.share-card .btn {
  white-space: normal;
  max-width: 100%;
}
@media (max-width: 360px) {
  .share-card {
    padding: 14px;
  }
  .page-admin .link-box {
    flex-wrap: wrap;
  }
  .page-admin .link-box code {
    flex-basis: 100%;
  }
}
.share-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.share-label {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 12px;
  background: #fff;
  border: 1px solid #dcd3c2;
  border-radius: 10px;
  margin-bottom: 10px;
}
.link-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--ink);
  background: none;
}
.page-admin .send-gallery.share-card {
  margin-top: 0;
  border-top: 1px solid #e8e1d3;
  padding-top: 18px;
}
/* The code + ready-to-send message copy box (web/studio/lib/CodeKit.tsx):
   after Create, in the Share tab, under a card after New gallery code. */
.page-admin .code-kit {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.page-admin .code-kit h3 {
  margin: 0;
  font-size: 18px;
}
.page-admin .code-kit p {
  margin: 0;
}
.page-admin .code-kit-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.page-admin .code-kit-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.page-admin .code-kit-chip {
  font-size: 22px;
  padding: 6px 14px;
  overflow-wrap: anywhere;
}
.page-admin .code-kit-message {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.page-admin .code-kit-message textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #dcd3c2;
  border-radius: 10px;
  background: #fff;
  resize: vertical;
}
.page-admin .code-kit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-admin .draft-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.page-admin .ready-panel {
  border: 1px solid var(--accent);
  margin-bottom: 18px;
}
.page-admin .ready-panel .code-kit {
  margin-top: 0;
}
.page-admin .card-code {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.q-row,
.q-main,
.q-name {
  text-align: left;
  justify-items: stretch;
}
.q-main .q-bar {
  width: 100%;
}
.page-admin .upload-target {
  margin: 0 0 12px;
}
.page-admin .upload-target label {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.page-admin .upload-target select {
  width: auto;
  min-width: 220px;
  margin: 0;
}
.page-admin .admin-cell .cell-section {
  background: none;
  padding: 0 2px;
  border: 0;
}
.page-admin .admin-cell figcaption {
  background: none;
  padding: 6px 2px 0;
}
.page-admin .admin-cell .cell-actions {
  padding: 0 2px;
}
.share-card h3 {
  margin-top: 0;
}
.send-gallery.share-card > p.muted {
  margin-top: 4px;
}
/* Beat the older Step 2 queue/cell rules (id + element specificity). */
#upload-queue .q-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  justify-content: stretch;
  padding: 8px 10px;
  border: 1px solid #e8e1d3;
  border-bottom: 1px solid #e8e1d3;
}
#upload-queue .q-row[data-state="failed"] {
  border-color: #e3b3a8;
}
.page-admin .admin-grid .admin-cell {
  background: #fff;
  border: 1px solid #ece6da;
  border-radius: 10px;
  padding-bottom: 10px;
  overflow: visible;
}
.page-admin .admin-grid .admin-cell .cell-media {
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  aspect-ratio: 1;
}
.page-admin .admin-grid .admin-cell .cell-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .page-admin .admin-grid .admin-cell .cell-cover-badge {
    left: 6px;
    bottom: 6px;
    padding: 1px 6px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .page-admin .admin-grid .admin-cell .cell-pos {
    right: 6px;
    bottom: 6px;
  }
  /* One line ending in an ellipsis: wrapping split "p13.jpg" mid-word. */
  .page-admin .photo-group .admin-grid .admin-cell .cell-foot figcaption {
    line-height: 1.3;
  }
}
/* iOS at 130% zoom: two across keeps a tile's corners apart. */
@media (max-width: 360px) {
  .page-admin .photo-group .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Phones: a big Choose photos button instead of drag & drop. */
.drop-button {
  margin: 0 0 6px;
}
@media (max-width: 640px), (hover: none) {
  .drop-button .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .drop-text {
    display: none;
  }
}
.page-admin .admin-grid .admin-cell figcaption {
  background: none;
  padding: 8px 10px 0;
  word-break: normal;
}
.page-admin .admin-grid .admin-cell .cell-actions,
.page-admin .admin-grid .admin-cell .cell-section {
  padding: 0 10px;
}
.page-admin .admin-grid .admin-cell.is-selected {
  outline-offset: 0;
  border-color: var(--accent);
}
.page-admin .admin-grid .admin-cell .cell-pos {
  /* Bottom-right of the photo: the tick box, drag handle and cover
     badge have the other three corners. */
  top: auto;
  left: auto;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(38, 36, 31, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

/* ---------- Step 23: proofing loop, notifications, gallery QoL ---------- */
/* Cover focal point: generated utility classes set --fx/--fy (CSP-safe). */
.fx-0 {
  --fx: 0%;
}
.fx-5 {
  --fx: 5%;
}
.fx-10 {
  --fx: 10%;
}
.fx-15 {
  --fx: 15%;
}
.fx-20 {
  --fx: 20%;
}
.fx-25 {
  --fx: 25%;
}
.fx-30 {
  --fx: 30%;
}
.fx-35 {
  --fx: 35%;
}
.fx-40 {
  --fx: 40%;
}
.fx-45 {
  --fx: 45%;
}
.fx-50 {
  --fx: 50%;
}
.fx-55 {
  --fx: 55%;
}
.fx-60 {
  --fx: 60%;
}
.fx-65 {
  --fx: 65%;
}
.fx-70 {
  --fx: 70%;
}
.fx-75 {
  --fx: 75%;
}
.fx-80 {
  --fx: 80%;
}
.fx-85 {
  --fx: 85%;
}
.fx-90 {
  --fx: 90%;
}
.fx-95 {
  --fx: 95%;
}
.fx-100 {
  --fx: 100%;
}
.fy-0 {
  --fy: 0%;
}
.fy-5 {
  --fy: 5%;
}
.fy-10 {
  --fy: 10%;
}
.fy-15 {
  --fy: 15%;
}
.fy-20 {
  --fy: 20%;
}
.fy-25 {
  --fy: 25%;
}
.fy-30 {
  --fy: 30%;
}
.fy-35 {
  --fy: 35%;
}
.fy-40 {
  --fy: 40%;
}
.fy-45 {
  --fy: 45%;
}
.fy-50 {
  --fy: 50%;
}
.fy-55 {
  --fy: 55%;
}
.fy-60 {
  --fy: 60%;
}
.fy-65 {
  --fy: 65%;
}
.fy-70 {
  --fy: 70%;
}
.fy-75 {
  --fy: 75%;
}
.fy-80 {
  --fy: 80%;
}
.fy-85 {
  --fy: 85%;
}
.fy-90 {
  --fy: 90%;
}
.fy-95 {
  --fy: 95%;
}
.fy-100 {
  --fy: 100%;
}
.hero-img {
  object-position: var(--fx, 50%) var(--fy, 50%);
}
.focus-picker {
  grid-column: 1 / -1;
  margin: 6px 0 4px;
}
.focus-picker .field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.focus-stage {
  position: relative;
  display: inline-block;
  max-width: 420px;
  cursor: crosshair;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.focus-stage img {
  width: 100%;
  height: auto;
  display: block;
}
.focus-dot {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Notification bell + feed */
.notif-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--ink);
}
.notif-bell:hover {
  background: #f1ece2;
}
.notif-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #a33b3b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.page-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notif-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.notif-row.is-unread {
  background: #fbf6ee;
}
.notif-kind {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.notif-row time {
  font-size: 12.5px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .notif-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Settings → Notifications */
.settings-stack {
  display: grid;
  gap: 0;
}
.reminder-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reminder-days legend {
  width: 100%;
}
.day-chip {
  display: inline-flex !important;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--field-border, #dcd3c2);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.day-chip:has(input:checked) {
  border-color: var(--accent);
  background: #fbf6ee;
}
.day-chip:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Room under the last panel so the sticky save bar never covers it;
   its note is plain text, not a boxed note. */
#settings-form,
#defaults-form {
  padding-bottom: 24px;
}
.settings-save .form-note {
  border: 0;
  background: none;
  padding: 0;
  font-weight: 600;
  color: var(--ink);
}
.stat-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 4px;
}
/* The phone ⋯ menu: both actions the same width, text aligned alike. */
.manage-more-menu > .btn {
  display: block;
  width: 100%;
  text-align: center;
}
.settings-save {
  position: sticky;
  bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #fffdf9;
  border: 1px solid #e8e1d3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(38, 36, 31, 0.12);
  width: fit-content;
}

/* Client picks panel */
.picks-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.picks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e8e1d3;
  border-radius: 12px;
  background: #fcfbf8;
}
.picks-who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.picks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-badge-quiet {
  background: #efe9dd;
  color: var(--muted);
}
.inline-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.picks-all {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Comment replies (studio) */
.comment-reply {
  margin: 8px 0 0 18px;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: #fbf6ee;
  border-radius: 0 8px 8px 0;
}
.reply-form {
  display: grid;
  gap: 6px;
  margin: 10px 0 4px;
}
.reply-form textarea {
  min-height: 60px;
}
.reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.lb-comment-studio {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.lb-comment-studio .lb-comment-head strong::after {
  content: " · photographer";
  font-weight: 400;
  opacity: 0.7;
}

/* Share tab QR, details actions */
.qr-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qr-form input {
  flex: 1 1 180px;
  min-height: 38px;
}
.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* === studio persona round 3 === */
/* Dashboard card: who the gallery was sent to (one line, trimmed). */
.card-sent {
  margin: 2px 0 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sent.is-unsent {
  color: var(--muted);
}
/* Share tab: the send form's buttons and the empty-gallery note. */
.send-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.send-empty {
  color: var(--accent);
  font-weight: 600;
}
/* Gallery Settings tab: one form, one sticky save bar while dirty. */
.save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 18px 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(38, 36, 31, 0.16);
}
/* While it shows, focus moves keep fields above it. */
html:has(.save-bar[role="group"]) {
  scroll-padding-bottom: 110px;
}
/* A select as wide as its words (a full-width row, not a grid cell). */
.page-admin .admin-form label > select.select-fit {
  width: auto;
  max-width: 100%;
}
/* …that never widens the form past a 300 px screen. */
.page-admin .admin-form label:has(> select.select-fit) {
  min-width: 0;
}
.save-bar > span {
  margin-right: auto;
  font-weight: 600;
  color: var(--ink);
}
#settings-result {
  margin: 0 0 18px;
}
.save-bar.save-note {
  justify-content: flex-start;
  font-weight: 600;
  color: var(--ink);
}
.field-static {
  margin: 0;
}
.danger-zone {
  border-color: #e6c9c0;
}
.danger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.danger-row p {
  margin: 0;
  flex: 1 1 240px;
}
/* Dashboard stat tiles (views, favorites, downloads, storage). */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
}
.stat-value {
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-value-small {
  font-size: 16px;
  line-height: 1.4;
}
.stat-storage .storage-bar {
  height: 6px;
  margin-top: 4px;
}
.stat-link {
  font-size: 13px;
  margin-top: 2px;
}
@media (max-width: 640px) {
  /* Two by two on phones, Downloads included. */
  .stat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-tile {
    padding: 10px 12px;
  }
  .stat-value {
    font-size: 21px;
  }
  .stat-value-small {
    font-size: 12.5px;
  }
}
/* Photos tab: a compact grid (5–6 across on a laptop, 3 on a phone);
   each cell's actions sit behind ⋯. */
.page-admin .admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.page-admin .admin-grid .admin-cell {
  padding-bottom: 6px;
}
.cell-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.page-admin .admin-grid .admin-cell .cell-foot figcaption {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 4px 0 10px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-menu-wrap {
  position: relative;
  flex: none;
  margin: 4px 6px 0 0;
}
.cell-more {
  min-width: 32px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cell-more:hover,
.cell-more[aria-expanded="true"] {
  border-color: var(--line);
  color: var(--ink);
}
.cell-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 4px);
  display: grid;
  min-width: 150px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(38, 36, 31, 0.14);
}
.cell-menu[hidden] {
  display: none;
}
/* Flipped when there's no room above (under the sticky header) or to
   the left (the first column on a phone): see CellMenu. */
.cell-menu.is-below {
  bottom: auto;
  top: calc(100% + 4px);
}
.cell-menu.is-left {
  right: auto;
  left: 0;
}
.cell-menu button {
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.cell-menu button:hover:not(:disabled) {
  background: #f4efe6;
}
.cell-menu button:disabled {
  color: var(--muted);
  cursor: default;
}
.cell-menu button.danger {
  color: var(--danger);
}
.page-admin .admin-grid .admin-cell .cell-section select {
  font-size: 12.5px;
}
.drop-details {
  margin-top: 4px;
  font-size: 14px;
}
.drop-details summary {
  cursor: pointer;
  color: var(--muted);
}
@media (max-width: 640px) {
  .page-admin .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}
/* New gallery dialog: options folded under one toggle; Create sticks to
   the bottom of the screen while the dialog scrolls. */
.create-options-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.create-defaults-link {
  flex: none;
  font-size: 14px;
  color: var(--accent);
}
.create-options-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.create-options-toggle::before {
  content: "▸";
  color: var(--muted);
}
.create-options-toggle[aria-expanded="true"]::before {
  content: "▾";
}
.create-options-body {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.create-options-body[hidden] {
  display: none;
}
.create-actions .create-next {
  flex: 1 0 100%;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
.modal .create-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 4px -28px -26px;
  padding: 14px 28px 18px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}
@media (max-width: 640px) {
  .modal .create-actions {
    margin: 4px -18px -22px;
    padding: 12px 18px 16px;
    bottom: 0;
  }
  /* The backdrop's bottom padding held the sticky Create bar 24px above
     the screen's edge, with the form showing through below it. */
  .modal-backdrop:has(.create-actions) {
    padding-bottom: 0;
  }
  .modal:has(.create-actions) {
    border-radius: 16px 16px 0 0;
  }
  .modal .create-actions {
    border-radius: 0;
  }
}
/* Theme cards: the name on its own line above the description (the
   form-label rules made both spans run together inline). */
.theme-cards .theme-card {
  display: grid;
  gap: 4px;
}
.theme-cards .theme-card-name,
.theme-cards .theme-card-blurb {
  display: block;
}
.theme-cards .theme-card-name {
  font-weight: 600;
}
/* Settings → Branding: logo thumbnail + buttons, and the header preview. */
/* Accent and logo stack in one column, top-aligned (the form's own
   auto-fit columns left the accent floating bottom-left). */
.brand-grid .admin-form {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: start;
}
.brand-grid .admin-form label {
  justify-items: start;
}
.logo-field .optional {
  font-size: 13.5px;
}
.accent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.saved-inline {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}
/* "Logo" reads as a field label, like "Accent color" above it. */
.page-admin .logo-field .field-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.brand-warning {
  color: var(--danger);
}
.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.logo-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.logo-thumb-empty {
  font-size: 12.5px;
  color: var(--muted);
}
.brand-preview {
  margin: 0;
}
.brand-preview-head {
  --preview-accent: var(--accent);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px;
  background: #fbf9f5;
  border: 1px solid var(--line);
  border-top: 4px solid var(--preview-accent);
  border-radius: 12px;
}
.brand-preview-logo {
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
}
.brand-preview-name {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
}
.brand-preview-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}
.brand-preview-button {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--preview-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.brand-preview figcaption {
  margin-top: 6px;
}
@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}
/* Settings → Security: the AI assistant section and plain-word scopes. */
.ai-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ai-block h3 {
  margin: 0 0 6px;
}
/* First in its panel (Settings → ChatGPT & Claude): no divider above. */
.panel > .ai-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
/* A field's warning ("You asked for 40 but the gallery has 30 photos."):
   plain text under the field, not a boxed note. */
.field-warning {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--danger);
}
.scope-code {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  padding: 0;
}
/* Activity: when a client sent their favorites (in their row). */
.picks-sent {
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
}
/* Manage header: view / copy inline on wide screens, in a ⋯ menu on
   phones (Send to client stays the one visible button). */
.manage-actions {
  align-items: center;
}
.manage-actions-wide {
  display: contents;
}
.manage-more {
  display: none;
  position: relative;
}
.manage-more > button {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  justify-content: center;
}
.manage-more-menu {
  position: absolute;
  z-index: 25;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(38, 36, 31, 0.14);
}
@media (max-width: 640px) {
  .manage-title h1 {
    font-size: 26px;
  }
  .summary-link,
  .manage-actions-wide {
    display: none;
  }
  .manage-more {
    display: block;
  }
  .manage-head {
    gap: 12px;
    margin-bottom: 12px;
  }
  /* Four equal tabs that fit a phone. */
  .manage-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: visible;
  }
  .manage-tabs a {
    padding: 10px 2px;
    text-align: center;
    font-size: 14.5px;
  }
  .manage-tabs .tab-count {
    min-width: 0;
    padding: 0 5px;
    margin-left: 2px;
  }
}
/* === end studio persona round 3 === */

/* Client gallery: welcome note, pick counter, locked picks, shortcuts */
.welcome-note {
  max-width: 720px;
  margin: 18px auto 8px;
  padding: 18px 22px;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
}
.welcome-note p {
  margin: 0 0 8px;
}
.welcome-note p:last-child {
  margin: 0;
}
.picks-bar.is-full #picks-count {
  color: var(--accent);
  font-weight: 700;
}
.picks-locked {
  font-weight: 600;
  color: var(--ink);
}
.kbd-help {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  background: rgba(18, 16, 14, 0.6);
}
.kbd-help dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  padding: 22px 26px;
  background: #fff;
  border-radius: 14px;
  color: #26241f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.kbd-help dt {
  font-weight: 700;
  font-family: ui-monospace, monospace;
}
.kbd-help dd {
  margin: 0;
}
.kbd-help-title {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* === client persona round 3 === */
.photos-by {
  margin: 2px 0 4px;
  font-size: 16px;
  color: var(--body);
}
.gallery-head-slim .photos-by {
  margin: 0;
}
.gallery-head-actions .btn {
  white-space: nowrap;
}
.gallery-after {
  margin-top: 30px;
  text-align: center;
}
.gallery-after .gallery-actions {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.download-phone-note {
  display: none;
  font-size: 14px;
  color: var(--muted);
}
.gallery-after .proof-note {
  margin-top: 14px;
}
.gallery-after .share-row {
  justify-content: center;
  margin-top: 22px;
}
.for-developers > summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
}
.for-developers[open] > summary {
  margin-bottom: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Dashboard: Cards / List, the compact list, and its bulk bar. */
.layout-toggle {
  margin: 0 0 12px auto;
  width: max-content;
}
.dash-bulk {
  position: sticky;
  top: calc(var(--studio-bar-h, 61px) + 8px);
  z-index: 14;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  background: #26241f;
  color: #fff;
  border-radius: 12px;
}
.dash-bulk .btn-quiet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.gallery-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.gallery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.gallery-table th,
.gallery-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.gallery-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.gallery-table tbody th {
  font-weight: 600;
  white-space: normal;
  min-width: 160px;
}
.gallery-table tbody tr:last-child > * {
  border-bottom: 0;
}
.gallery-table tr.is-selected {
  background: #fbf6ee;
}
.gallery-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gallery-table .row-sub {
  display: none;
}
/* Phones: two lines per gallery (title and status, then client · photos
   · sent); the narrow columns step aside so nothing scrolls sideways. */
@media (max-width: 480px) {
  .gallery-table .col-wide {
    display: none;
  }
  .gallery-table th,
  .gallery-table td {
    padding: 10px 8px;
  }
  .gallery-table tbody th {
    min-width: 0;
    width: 100%;
  }
  .gallery-table .row-sub {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
  }
}
.attention-summary .link-button {
  padding: 0;
  font-size: inherit;
}
.link-button {
  background: none;
  border: 0;
  padding: 6px 2px;
  font: inherit;
  font-size: 14.5px;
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.notfound-studio {
  text-align: center;
  font-size: 13px;
  margin: 14px 0 0;
}
.notfound-studio a {
  color: var(--muted);
}
.send-confirm {
  max-width: min(440px, calc(100vw - 32px));
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.send-confirm::backdrop {
  background: rgba(18, 16, 14, 0.55);
}
.send-confirm h2 {
  margin: 0 0 8px;
  font-size: 21px;
}
.send-confirm p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
}
.send-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.toast-action {
  margin-left: 10px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
}
.field-error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger, #b42318);
}
.lb-comment-form [aria-invalid="true"] {
  border-color: var(--danger, #b42318);
}
/* A running slideshow keeps Pause on screen while the rest dozes. */
.lightbox.lb-idle.lb-playing .lb-bar {
  opacity: 1;
  pointer-events: none;
}
.lightbox.lb-idle.lb-playing .lb-bar > :not(.lb-play) {
  opacity: 0;
}
.lightbox.lb-idle.lb-playing .lb-play {
  pointer-events: auto;
}
@media (max-width: 640px) {
  .download-phone-note {
    display: block;
  }
  body[data-theme="classic"] .client-head .wordmark-text {
    font-size: 26px;
  }
  /* The photos start high on a phone (they started ~630px down). */
  body[data-theme="classic"] .client-head .wordmark {
    padding-top: 18px;
  }
  .gallery-head {
    gap: 12px;
    padding-top: 12px;
  }
  .gallery-head .gate-meta {
    margin-top: 0;
  }
  .expiry-banner {
    font-size: 14px;
    padding: 8px 12px;
  }
  .grid {
    margin-top: 16px;
  }
  /* Long toasts (the iPhone download help) read as a wide card, not a
     tall narrow pill. */
  .toast {
    left: 16px;
    right: 16px;
    transform: none;
    max-width: none;
    border-radius: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  /* One row at 390px; at 130% text zoom (300px) the second button
     wraps instead of widening the page (persona round 5). */
  .gallery-head-actions .btn {
    padding: 11px 16px;
    letter-spacing: 0.03em;
  }
  /* Phone lightbox as a grid: close on top, the photo, then the arrows
     and the controls below it — nothing sits on the photo (swipe moves
     too). */
  .lightbox {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-rows: 68px minmax(0, 1fr) auto auto;
    align-items: center;
    justify-items: center;
  }
  .lb-close {
    position: static;
    grid-area: 1 / 3;
  }
  .lb-img,
  .lb-video {
    grid-area: 2 / 1 / 3 / 4;
    max-width: 100vw;
    max-height: 100%;
  }
  .lb-prev,
  .lb-next {
    position: static;
    grid-row: 3;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
    opacity: 0.85;
  }
  .lb-prev {
    grid-column: 1;
  }
  .lb-next {
    grid-column: 3;
  }
  .lb-proof {
    position: static;
    grid-area: 3 / 2;
    padding: 0 4px;
  }
  .lb-bar {
    position: static;
    grid-area: 4 / 1 / 5 / 4;
    width: 100%;
  }
  .lb-comments {
    top: 64px;
    right: 16px;
    bottom: auto;
    max-height: 55vh;
  }
}

/* === client persona round 5 === */
/* The favorites bar: the count and Send on one row, then short quiet
   lines (whose favorites these are, who already sent, what was asked). */
.page-gallery .picks-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.picks-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.picks-bar p {
  margin: 0;
}
.picks-own,
.picks-others,
.picks-hint,
.picks-contact {
  font-size: 14px;
  color: var(--muted);
}
.picks-done,
.picks-asked {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.picks-ask .btn {
  margin-top: 2px;
}
.picks-download {
  font-size: 14.5px;
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-gallery .picks-bar .btn:disabled {
  opacity: 0.45;
  cursor: default;
}
/* A sent, locked list: the hearts stay visible but read as done. */
.fav[aria-disabled="true"],
.lb-fav[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}
/* Send confirmation: whose favorites these are. */
.send-confirm form {
  display: grid;
  gap: 6px;
}
.send-confirm label {
  font-size: 14px;
  font-weight: 600;
}
.send-confirm input {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #26241f;
}
.send-confirm input[aria-invalid="true"] {
  border-color: var(--danger, #b42318);
}
.send-confirm .send-confirm-actions {
  margin-top: 12px;
}
/* Studio Activity: the client asked to change a locked list; the
   photos in each list. */
.mini-badge-ask {
  background: #f6e9df;
  border-color: transparent;
  color: var(--accent);
}
.picks-files {
  flex-basis: 100%;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
/* Phones (round 5): the viewer is a dark, tight frame (a landscape photo
   was small in a beige room), a slideshow goes darker still, and with
   comments open the panel's close is the only ×. */
@media (max-width: 640px) {
  .lightbox,
  body[data-theme="minimal"] .lightbox {
    background: #161412;
    grid-template-rows: 60px minmax(0, 1fr) auto auto;
  }
  .lightbox .lb-bar,
  .lightbox .lb-proof {
    color: #f4f0e7;
  }
  .lightbox .lb-img {
    box-shadow: none;
  }
  .lightbox.lb-playing {
    background: #050505;
  }
  .lightbox.lb-comments-open .lb-close {
    visibility: hidden;
  }
}
/* Section nav: the edge fades while more names are off to the side. */
.section-nav.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
@media (max-width: 640px) {
  .section-nav a {
    padding: 6px 10px;
    letter-spacing: 0.05em;
  }
  /* The studio's name on one line, the sections on a row of their own
     (side by side, a long name wrapped to three lines). */
  .client-head {
    flex-wrap: wrap;
    column-gap: 0;
  }
  .client-head .wordmark {
    min-width: 0;
    max-width: 100%;
  }
  .client-head .wordmark-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .client-head .section-nav {
    flex: 1 0 100%;
    margin: 0 -14px;
    padding: 0 14px 6px;
  }
}
/* Desktop: the viewer's watermark line sits top left, off the photo
   (over the photo's bottom edge it was hard to read). */
@media (min-width: 641px) {
  .lb-proof {
    top: 30px;
    bottom: auto;
    left: 28px;
    right: auto;
    max-width: min(36vw, 420px);
    text-align: left;
  }
}
/* The sample gallery's note in place of the comment form. */
.lb-comments-off {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
/* Under the comment box: who can read it. */
.lb-comment-privacy {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.75;
}
/* The studio's contact, under the photos with the sharing links. */
.gallery-contact {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
/* The public sample gallery: a slim bar back to signup. */
.sample-bar {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  background: #26241f;
  color: #f4f0e7;
}
.sample-bar a {
  color: #fff;
  font-weight: 700;
}

/* Round 7: the studio's "View as client" says it's a preview. */
.preview-bar {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  background: #f6e9df;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ---------- OAuth consent (quality pass) ---------- */
.page-consent .consent-card {
  max-width: 540px;
}
.page-consent .consent-warn {
  background: rgba(227, 201, 163, 0.1);
  border: 1px solid #4a4036;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}
.page-consent .consent-scopes {
  border: 0;
  padding: 0;
  margin: 18px 0 8px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.page-consent .consent-scopes legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.page-consent .consent-scope {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.page-consent .consent-scope:hover {
  border-color: #4a4036;
}
.page-consent .consent-scope input {
  margin-top: 2px;
  flex: none;
}
.page-consent .consent-scope > span {
  display: grid;
  gap: 2px;
}
.page-consent .consent-scope strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.page-consent .consent-scope .muted {
  font-size: 13.5px;
}
.page-consent .consent-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 10px;
}
.page-consent .consent-actions .btn {
  min-width: 120px;
}
.page-auth .btn:not(.btn-accent) {
  background: transparent;
}
.page-auth .btn:not(.btn-accent):hover {
  background: var(--ink);
  color: #12100e;
}

/* ---------- Report this gallery ---------- */
.powered .report-link {
  color: var(--muted);
  font-size: 12.5px;
}
.page-report .gate-card {
  text-align: left;
}
.page-report fieldset {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-report legend {
  font-weight: 700;
  margin-bottom: 6px;
}
.page-report .report-reason {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
.page-report textarea {
  width: 100%;
  font: inherit;
}

/* ---------- Operator announcements in the studio app ---------- */
.announce-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #eef2f6;
  border-bottom: 1px solid #cfd8e3;
  color: #1f2d3d;
  font-size: 15px;
}
.announce-banner p {
  margin: 4px 0 0;
  max-width: 720px;
}

/* === persona round 5: public pages === */
/* Home: the plain line under the hero buttons. */
.home-hero-note {
  margin: 16px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
/* Phone Menu: a real button (web/public/site-menu.ts) instead of <summary>. */
.site-menu-button {
  background: transparent;
  font-family: inherit;
}
.site-menu-button[aria-expanded="true"] {
  border-color: var(--ink);
}
.site-menu-links[hidden] {
  display: none;
}
/* Signup: a promo code that checks out. */
.promo-ok {
  color: #9fd3a8;
  font-weight: 600;
}
.promo-ok:empty {
  display: none;
}
/* Sign-in: the primary button fills the form; the passkey one is quieter. */
.page-auth .gate-card form button.btn-wide {
  justify-self: stretch;
  width: 100%;
}
.page-auth .passkey-login .btn.btn-quiet {
  background: transparent;
  border-color: #4a443b;
  color: var(--body);
  font-weight: 400;
}
.page-auth .passkey-login .btn.btn-quiet:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
/* 404: the sign-in page's dark chrome; one clear way home. */
.page-notfound .gate-note {
  color: var(--body);
}
.page-notfound .notfound-studio a {
  color: var(--muted);
}
/* /about, /privacy, /terms: the page title clearly outranks section heads. */
.prose-page h1 {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.prose.prose-page h2 {
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.25;
}
/* /ai: which plans can connect, under the copy button. */
.ai-plans {
  max-width: 560px;
  margin: 8px auto 0;
}
/* /features: the last screenshot sits right above the closing buttons. */
.home-section .feature-shot:last-child {
  margin-bottom: 24px;
}
.home-section.features-end {
  padding-top: 0;
}
/* Under 360px (a phone at large text sizes) the header keeps the wordmark
   and Menu; Start free moves into the Menu so nothing overlaps. */
.site-menu-links .menu-start {
  display: none;
}
@media (max-width: 359px) {
  .site-nav .site-actions .btn {
    display: none;
  }
  .site-menu-links .menu-start {
    display: flex;
  }
}

/* A light band so the dark page has rhythm: the palette swaps back to
   cream inside it (contrast: --body #3d3a33 on #f6f0e4 ≈ 10:1, --muted
   #675f52 ≈ 5.5:1). */
.page-home .home-band {
  --bg: #f6f0e4;
  --card: #fffdf8;
  --ink: #26241f;
  --body: #3d3a33;
  --muted: #675f52;
  --line: #e2d8c6;
  --accent: #9a6a3a;
  background: var(--bg);
  color: var(--body);
  margin-top: 96px;
  padding-bottom: 72px;
}
.home-band .home-section {
  padding-top: 72px;
}
.home-client-line {
  margin-top: 26px;
}
/* /compare pages and /free-client-gallery: breadcrumbs and the hub list. */
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}
.breadcrumbs a {
  color: var(--ink);
}
.compare-hub {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.compare-hub li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
}
.compare-hub a {
  font-weight: 700;
}
.compare-more {
  margin-top: 18px;
}
.compare-more a,
.compare-hub a {
  color: var(--ink);
}

/* === 2026-11-24 shared marketing blocks (views/marketing/blocks.tsx) ===
   docs/research/2026-11-pages-persona-review.md §2: split hero (B1), cream
   band (B2), stat duel (B3), price bars (B4), table glyphs (B5), verdict
   cards (B6), icon cards (B7), steps (B8), device frames (B9), photo strip
   (B10), closing CTA band (B11) and callouts (B12). Dark page palette from
   body.page-home; .band-cream and .cta-band swap to cream like .home-band. */
.page-home .band-cream,
.page-home .cta-band {
  --bg: #f6f0e4;
  --card: #fffdf8;
  --ink: #26241f;
  --body: #3d3a33;
  --muted: #675f52;
  --line: #e2d8c6;
  --accent: #9a6a3a;
  background: var(--bg);
  color: var(--body);
}
.band-cream {
  margin-top: 96px;
  padding-bottom: 88px;
}
.band-cream .mk-section {
  padding-top: 80px;
}
.band-cream a:not(.btn),
.cta-band a:not(.btn) {
  color: var(--ink);
}
/* The light pill would vanish on cream: it turns dark there. */
.page-home .home-band a.btn-light,
.page-home .band-cream a.btn-light,
.page-home .cta-band a.btn-light {
  background: #12100e;
  border-color: #12100e;
  color: #f6f0e4;
}
.page-home .home-band a.btn-light:hover,
.page-home .band-cream a.btn-light:hover,
.page-home .cta-band a.btn-light:hover {
  background: transparent;
  color: #12100e;
}
.page-blocks .site-nav {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.page-blocks .site-wordmark,
.page-blocks .site-links a,
.page-blocks .signin-link {
  color: var(--ink);
}

/* B1 split hero */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 40px;
}
.hero-split h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  color: #fff;
  margin: 0 0 20px;
}
.hero-split-lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
  color: #e6dfd3;
}
.hero-split-note {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.hero-split-media {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero-split .breadcrumbs {
  margin-bottom: 18px;
}
.mk-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin: 30px 0 0;
}

/* Sections and their heads */
.mk-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px 0;
}
.mk-section.mk-narrow > * {
  max-width: 760px;
}
.mk-head {
  max-width: 760px;
  margin: 0 0 32px;
}
.mk-head h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.mk-head .home-eyebrow {
  margin-bottom: 12px;
}
.mk-lede {
  margin: 14px 0 0;
  font-size: 17.5px;
  max-width: 640px;
}
.mk-section > p,
.mk-section .mk-prose p {
  max-width: 720px;
  font-size: 17px;
}
.mk-section .faq-list {
  margin: 0;
}
.mk-section > p.small {
  font-size: 13.5px;
}
.chat-caption {
  order: 1;
  align-self: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* B9 device frames */
.frame-browser,
.frame-phone {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1c1916;
}
.frame-browser {
  width: 100%;
  padding-top: 26px;
  border: 1px solid #3a352e;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.frame-browser::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a5248;
  box-shadow:
    14px 0 0 #5a5248,
    28px 0 0 #5a5248;
}
.frame-browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.frame-phone {
  width: 100%;
  max-width: 290px;
  border: 9px solid #2a2622;
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.frame-phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 50%;
  width: 20%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #0b0a09;
}
.frame-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

/* B3 stat duel (.duel; .stat-* is the studio dashboard's) */
.duel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
.duel-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 24px;
}
.duel-num {
  margin: 0;
  line-height: 1.1;
}
.duel-num strong {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1;
  color: var(--accent);
}
.duel-vs {
  font-size: 17px;
  color: var(--muted);
}
.duel-label {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--body);
}

/* B4 price bars */
.price-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.bar-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 22px;
}
.bar-title {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar-row {
  margin-top: 14px;
}
.bar-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 0 0 6px;
  font-size: 15px;
}
.bar-name {
  color: var(--ink);
  font-weight: 600;
}
.bar-ours .bar-name,
.bar-ours .bar-value {
  color: var(--accent);
  font-weight: 700;
}
.bar {
  display: block;
  width: 100%;
  height: 12px;
}
.bar-fill {
  fill: #5a5248;
}
.bar-ours .bar-fill {
  fill: var(--accent);
}
.bar-fill.bar-approx {
  fill: rgba(90, 82, 72, 0.4);
  stroke: var(--muted);
}
.as-of {
  margin: 18px 0 0;
  font-size: 16px;
  max-width: 760px;
}

/* B5 table glyphs and the highlighted "ours" column */
.cell-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 6px;
  color: var(--muted);
}
.cell-yes .cell-icon {
  color: var(--accent);
}
.compare-table thead .compare-ours {
  box-shadow: inset 0 2px 0 var(--accent);
  color: var(--accent);
}
.page-blocks .compare-table .compare-ours {
  background: rgba(227, 201, 163, 0.06);
}

/* B7 icon cards */
.icon-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.icon-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.icon-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.icon-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.icon-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.icon-card .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.icon-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  color: var(--ink);
  margin: 12px 0 6px;
}
.icon-card p {
  margin: 0;
  font-size: 15.5px;
}

/* B8 steps (.mk-steps; .steps is the old landing list) */
.mk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mk-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
.mk-step {
  counter-increment: mk-step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 26px;
}
.mk-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.mk-step h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  color: var(--ink);
  margin: 14px 0 6px;
}
.mk-step h3::before {
  content: counter(mk-step) ". ";
  color: var(--accent);
}
.mk-step p {
  margin: 0;
  font-size: 15.5px;
}

/* B10 photo strip */
.photo-strip {
  margin: 0;
}
.photo-strip-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.photo-strip-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}
.photo-strip figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* B11 closing CTA band */
.cta-band {
  margin-top: 104px;
  padding: 84px 24px 92px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.cta-band .cta-row {
  justify-content: center;
}
.cta-band-note {
  margin: 20px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.band-cream + .cta-band {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

/* B12 callouts */
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0 0;
  max-width: 760px;
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink);
}
.callout-title .icon {
  flex: none;
  color: var(--accent);
}
.callout-body p {
  margin: 0;
}
.callout-honest {
  border-left-color: var(--muted);
}

@media (max-width: 760px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 18px 8px;
    gap: 28px;
  }
  .hero-split-media {
    order: -1;
  }
  .hero-split-lede {
    font-size: 17.5px;
  }
  .hero-split .mk-photo {
    border-radius: 10px;
  }
  .hero-split .frame-phone {
    max-width: 210px;
  }
  .hero-split .frame-phone img {
    aspect-ratio: 390 / 560;
  }
  .mk-section {
    padding: 64px 18px 0;
  }
  .band-cream {
    margin-top: 64px;
    padding-bottom: 64px;
  }
  .band-cream .mk-section {
    padding-top: 56px;
  }
  .mk-head h2 {
    font-size: 30px;
  }
  .photo-strip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-strip-img {
    height: 150px;
  }
  .photo-strip-img:nth-child(n + 5) {
    display: none;
  }
  .cta-band {
    margin-top: 72px;
    padding: 60px 18px 68px;
  }
  .duel-tile {
    padding: 22px 20px;
  }
}

/* /compare hub cards (compare-hub.tsx): PASS full width first, a card per
   rival with a mini price bar, the free plans last. */
.compare-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.compare-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 24px;
}
.compare-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}
.compare-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.compare-card h3 a:hover {
  text-decoration: underline;
}
.compare-card p {
  margin: 0;
  font-size: 15.5px;
}
.compare-card strong {
  color: var(--ink);
}
.compare-card .bar-group {
  background: transparent;
  padding: 0;
  border: 0;
}
.compare-card-go {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.compare-card-go .icon {
  width: 18px;
  height: 18px;
}
.compare-card-go:hover {
  background: var(--ink);
  color: var(--bg);
}
.compare-free {
  grid-column: 1 / -1;
}
.compare-free .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.mk-table {
  margin-top: 28px;
}
.price-bars-one {
  grid-template-columns: minmax(0, 760px);
}
.mk-section .about-email {
  max-width: none;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.about-email a {
  color: var(--ink);
}
.compare-free {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.compare-free p {
  flex: 1 1 280px;
}
.compare-free .compare-card-go {
  margin-top: 0;
}

/* Photo strip with three frames (/pass). */
.photo-strip-row.photo-strip-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* /ai (agents.tsx): an example conversation in the hero, prompt cards,
   and setup last. */
.chat-mock {
  width: 100%;
  max-width: 460px;
  margin: 0;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1c1916;
  border: 1px solid #3a352e;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.chat-bubble {
  margin: 0;
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.45;
}
.chat-you {
  align-self: flex-end;
  background: #e3c9a3;
  color: #12100e;
  border-bottom-right-radius: 4px;
}
.chat-them {
  align-self: flex-start;
  background: #2a2622;
  color: #f2ede3;
  border-bottom-left-radius: 4px;
}
.chat-tool {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #3a352e;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.chat-tool .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.prompt-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 22px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.prompt-card .icon {
  color: var(--accent);
}
.ai-connect .ai-prompt {
  max-width: 720px;
  margin: 18px 0 8px;
}
.ai-connect .ai-works {
  margin: 22px 0 8px;
  color: var(--ink);
}
.ai-which {
  max-width: 720px;
}
.ai-which summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
}
.ai-which .ai-plans {
  margin: 4px 0 0;
  max-width: none;
}
.ai-connect .ai-docs-link {
  margin-top: 22px;
}

/* /features: a screenshot beside its cards, then more cards under it. */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}
.feature-split-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.mk-more {
  margin-top: 28px;
}
.features-hero-img {
  object-position: 50% 40%;
}
.ai-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px 32px;
  align-items: center;
  background: #0b0a09;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
}
.ai-card p {
  margin: 0;
}
.ai-card-prompt {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}

/* /pricing: coming soon inside the paid cards, grouped questions, and the
   detailed comparisons as link cards. */
.plan-note {
  margin: 0 0 6px;
  padding: 8px 12px;
  border: 1px solid rgba(227, 201, 163, 0.45);
  border-radius: 8px;
  background: rgba(227, 201, 163, 0.08);
  color: var(--accent);
  font-size: 13.5px;
  line-height: 1.4;
}
.faq-group + .faq-group {
  margin-top: 28px;
}
.faq-group h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.more-title {
  margin: 48px 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
}
.more-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.more-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 44px;
}
.more-card h4 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
}
.more-card h4 a {
  color: var(--ink);
  text-decoration: none;
}
.more-card h4 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.more-card p {
  margin: 0;
  font-size: 15px;
}
.more-card .icon {
  position: absolute;
  left: 22px;
  bottom: 16px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.signup-layout .request {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px) 0 24px;
}
.signup-layout h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 12px;
}

/* /pass: hero width, prose columns, timeline, checklist, offer card. */
.pass-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.pass-prose {
  max-width: 824px;
  padding-left: 32px;
  padding-right: 32px;
}
.band-cream .pass-prose {
  padding-top: 80px;
}
.pass-timeline {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 4px 0 22px;
}
.checklist {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: check;
  display: grid;
  gap: 12px;
}
.checklist li {
  counter-increment: check;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px 14px 60px;
}
.checklist li::before {
  content: counter(check);
  position: absolute;
  left: 16px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass-offer-card {
  margin: 8px 0 48px;
  padding: 8px 28px 24px;
  border: 2px solid #e3c9a3;
  border-radius: 16px;
  background: var(--card);
}
.page-pass .callout {
  margin-top: 20px;
}

@media (max-width: 760px) {
  .feature-split,
  .feature-split-flip,
  .ai-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-split .frame-phone {
    max-width: 240px;
    margin: 0 auto;
  }
  .pass-top,
  .pass-prose {
    padding-left: 18px;
    padding-right: 18px;
  }
  .photo-strip-row.photo-strip-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .photo-strip-3 .photo-strip-img {
    height: 110px;
  }
  /* The contents: one row of pills that scrolls sideways, not five lines. */
  .pass-toc ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }
  .pass-toc li {
    flex: none;
  }
  .pass-toc a {
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
  }
  .chat-bubble {
    font-size: 15px;
  }
}
/* /pass: the block sections share the guide's reading column. */
.page-pass .mk-section {
  max-width: 824px;
}
.page-pass .icon-grid-3,
.page-pass .mk-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* === 2026-11-25 redesign leftovers (persona review §6.1, §6.2, §6.10) === */
/* B8 step screenshots: crops of the studio forms, by class, not new files. */
.mk-step-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfaf7;
}
/* The code field is wider than the box: keep its label and the field's
   start, lose the empty right edge. */
.mk-step-shot-code {
  box-sizing: border-box;
  padding: 10px 0 0 14px;
  background: #fff;
  object-position: left center;
}
/* /features: the four themes as two halves of one capture. */
.themes-4up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.themes-half {
  margin: 0;
}
.themes-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 828;
  object-fit: cover;
}
.themes-left {
  object-position: left center;
}
.themes-right {
  object-position: right center;
}
.themes-half figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
/* The home price as three tiles inside the cream band. */
.home-price .duel {
  text-align: left;
  margin: 0 0 28px;
}
.home-price .duel-num strong {
  font-size: clamp(40px, 4.4vw, 56px);
}
.home-strip {
  padding-bottom: 0;
}
/* /privacy: the contents as pills. */
.toc-chips ul {
  list-style: none;
  margin: 18px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.toc-chips a:hover {
  border-color: var(--accent);
}
.page-prose .icon-grid {
  margin: 0 0 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .page-prose .icon-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .themes-4up {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc-chips ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .toc-chips li {
    flex: none;
  }
  .toc-chips a {
    min-height: 44px;
  }
}
/* No phone capture of the Activity tab: phones get the favorites panel
   crop (favorites-list.webp) at its own shape instead of a 16:10 crop. */
@media (max-width: 600px) {
  .frame-activity img {
    aspect-ratio: 1000 / 422;
    object-fit: contain;
  }
}
/* The wordmark stays on one line on phones (§6.1), up to the big ones. */
@media (max-width: 430px) {
  .site-nav {
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-nav .site-wordmark {
    font-size: 12.5px;
    letter-spacing: 0.1em;
  }
  .site-nav .site-actions .btn {
    padding: 0 12px;
  }
}
@media (max-width: 374px) {
  .site-nav .site-wordmark {
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }
}

/* ---------- "Show my favorites" (web/public/client/fav-filter.ts) ----------
   Filtered, the photos become one uniform grid: justified rows with
   cells taken out would leave odd, stretched tiles. Section headings and
   the section nav step aside; each tile shows the whole photo (contain),
   its blurred tiny copy filling the margins. An un-hearted photo dims
   for the moment before it leaves. Last in the file, body-scoped: the
   themes' own heading rules set display too. */
.fav-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.fav-filter[hidden],
body.fav-only .section-nav,
body.fav-only .section-heading,
body.fav-only .jfill,
body .cell.is-out {
  display: none;
}
body.fav-only .jgrids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
body.fav-only .jgrid,
body.fav-only .jrow {
  display: contents;
}
body.fav-only .cell .cell-img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
body.fav-only:not(.col-only) .cell:not(:has(.fav.is-fav)),
body.col-only .cell.is-leaving {
  opacity: 0.45;
}
@media (max-width: 640px) {
  body.fav-only .jgrids {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
}

/* ---------- Collections (migration 0032) ----------
   The bookmark beside each heart opens "Save to…" (web/public/client/
   collections.ts); with a mouse it shows on hover or once the photo is
   saved somewhere, on touch it is always there. The row of lists under
   the favorites line: pill toggles with their "12 of 40". */
.cell-save {
  position: absolute;
  top: 8px;
  right: 58px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #75705f;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.cell-save.is-saved {
  color: var(--accent);
}
.cell-save.is-saved path,
.lb-collect.is-saved .lb-icon path {
  fill: currentColor;
}
.lb-collect.is-saved {
  color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .cell-save:not(.is-saved) {
    opacity: 0;
  }
  .cell:hover .cell-save,
  .cell-save:focus-visible {
    opacity: 1;
  }
}
.collections-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.collections-bar[hidden],
.collection-tools[hidden] {
  display: none;
}
.collection-chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card, #fff);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.collection-chip .chip-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.collection-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.collection-chip[aria-pressed="true"] .chip-count {
  color: inherit;
  opacity: 0.85;
}
.collection-tools {
  display: inline-flex;
  gap: 6px;
}
.collect-lists {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.collect-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  cursor: pointer;
}
.send-confirm .collect-row {
  font-weight: 400;
}
.send-confirm .collect-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.collect-dialog {
  width: min(400px, calc(100vw - 32px));
}
.collect-note {
  font-weight: 600;
}
.collect-note.is-error {
  color: var(--danger, #b42318);
}
.collect-note[hidden] {
  display: none;
}
.collect-new {
  margin-bottom: 4px;
}
/* Studio side of collections: each person's lists under their favorites
   (Activity), and the preset rows (manage → Client experience, Settings →
   Gallery defaults). */
.picks-collections {
  flex-basis: 100%;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.picks-collection {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-left: 3px solid #e8e1d3;
  background: #fff;
  border-radius: 8px;
}
.preset-rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: 1 / -1;
}
.preset-rows legend {
  margin-bottom: 6px;
  font-weight: 600;
}
.preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 8px;
  align-items: center;
}
.preset-head {
  font-size: 13px;
  color: var(--muted);
}
.preset-rows > .btn {
  justify-self: start;
  /* "Add print sizes (16x20, 8x10, 5x7, 4x6)" wraps on a 300px phone. */
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
/* Print planning (Tanner, 2026-11): a tile's lists as small labels at
   its foot-left ("8x10", "5x7", "+1"; the comment badge keeps the
   right), wrapping (the box grows upward) on a narrow tile, cut with an ellipsis past
   its width; the summary line under the chips; "Plan prints" in the row
   and the picker; the picker's key hints only with a keyboard. */
.cell-lists {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 76px);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
/* A video's duration chip has the foot-left: the labels sit above it. */
.cell[data-kind="video"] .cell-lists {
  bottom: 34px;
}
.cell-lists[hidden],
.plan-prints[hidden],
.collections-summary[hidden],
.collect-tip[hidden] {
  display: none;
}
.cell-list {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 21, 18, 0.78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.collections-summary {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.collect-plan {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}
.collect-key,
.collect-tip {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .collect-key {
    display: inline-block;
    margin-left: auto;
    min-width: 22px;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
  }
  .collect-tip:not([hidden]) {
    display: block;
    margin: -8px 0 12px;
    color: var(--muted);
    font-size: 14px;
  }
}
/* The viewer's bar gained Save (collections): on phones each action
   narrows (still a 44px+ target) so count + play + favorite + save +
   comments + download fit one row at 375px, and the four without a show
   at 300px. */
@media (max-width: 640px) {
  .lb-action {
    min-width: 52px;
    padding: 4px;
  }
}
@media (max-width: 360px) {
  .lb-bar {
    padding-left: 8px;
    padding-right: 8px;
  }
  .lb-action {
    min-width: 46px;
  }
}
