/* PosesWith — "Studio, clean" (2026-09-16): light, imagery-first, tight sans UI; the serif stays for the wordmark and page titles. */
:root {
  --paper: #f7f7f5;
  --surface: #ffffff;
  --ink: #17181a;
  --muted: #6b6b68;
  --line: #e6e5e1;
  --shade: #f0efec;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px -16px rgba(20, 20, 20, .12);
  --accent: #c2663a;
  --accent-soft: #f6e7dd;
  --accent-deep: #9e4f28;
  --success: #3e7d5a;
  --success-soft: #e3efe7;
  --danger: #b3402e;
  --danger-soft: #f7e3df;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.1; }
h2 { font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -.005em; }
h3 { font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.3; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }
p.lead { font-size: 15px; }
strong { color: var(--ink); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 6px; width: 232px; flex-shrink: 0; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; height: 100vh; }
.wordmark { display: flex; align-items: center; padding: 4px 14px 22px; }
.wordmark img { display: block; width: 172px; height: auto; }   /* design/logo/final/poseswith-logo.svg */
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink); }
.nav-link:hover { background: var(--paper); color: var(--ink); }
.nav-link.is-active { background: var(--shade); font-weight: 700; }
/* The admin inbox count next to Admin (TODO 305). */
.nav-badge { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
/* Billing and Security under the account name (2026-10-16) - a step smaller than the main menu. */
.nav-account { gap: 2px; }
.nav-account .nav-link { height: 36px; font-size: 14px; }
.sidebar-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
/* The menu wrapper (TODO 310): on desktop it is just the rest of the sidebar's column; on phones it is the fold-out panel. */
.sidebar-menu { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; }
.topbar-credit, .menu-btn { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.plan-credits { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter-fill { height: 6px; background: var(--accent); }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 14px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.signout { padding: 0 14px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
button.link:hover { color: var(--ink); }
.main { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
/* Fills whatever is left of the window beside the sidebar, with a 5% breathing gap on the right (Richie,
   2026-09-21). It used to stop at max-width:1208px, so on a wide monitor everything hugged the menu and left a
   third of the screen empty - and the tile grids that size themselves off it stayed needlessly small. */
.content { display: flex; flex-direction: column; gap: 28px; padding: 36px 5% 56px 48px; width: 100%; max-width: none; }

/* stepper */
.stepper { display: flex; align-items: center; margin: 0; padding: 0 5% 0 40px; height: 56px; list-style: none; border-bottom: 1px solid var(--line); background: var(--surface); }
.step { display: flex; align-items: center; gap: 10px; padding-right: 28px; font-size: 13px; font-weight: 500; color: var(--muted); }
.step + .step::before { content: ""; width: 28px; height: 1px; background: var(--line); margin-right: 18px; }
.step-dot { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); }
.step-dot svg { width: 13px; height: 13px; }
.step.is-current { color: var(--ink); font-weight: 700; }
.step.is-current .step-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.is-done { color: var(--ink); }
.step.is-done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }

/* blocks */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head .titles { display: flex; flex-direction: column; gap: 8px; }
.card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
/* A tile's buttons sit at the bottom of the tile, level across a row of tiles, not straight under the text (Richie, 2026-10-08). */
.card > .card-foot { margin-top: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* Admin home's "to check" row (TODO 39, 2026-11-06): always three across - .grid-3 turns into four on wide screens. */
.check-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stat { font-family: var(--body); font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.stat small { font-size: 18px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex-grow: 1; }

/* controls */
/* min-height, not height, and centred text (2026-09-23): a label that wraps ("Regenerate dry · about $0.19" in a half-width card)
   was squeezed left-aligned into a one-line box and looked lopsided. One-line buttons are unchanged. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 18px; text-align: center; line-height: 1.25; border-radius: var(--radius-sm); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
/* Button colours (Richie, 2026-11-14: "all the doing buttons like take a shot, create model etc be the same colour and any other button like
   filters be the black on white" / "i like that scheme"): btn-primary = DO something, burnt orange; plain .btn = black on white;
   btn-chosen = the SELECTED state of a pick (Selected ✓, In this shoot ✓, the chosen tab), black filled so "chosen" never reads as "do it". */
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-chosen { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-chosen:hover { background: #000; border-color: #000; color: #fff; }
/* A button that is working (Generate posting in the background) looks it - a disabled one looked live and ate the click (2026-10-26). */
.btn:disabled { opacity: .55; cursor: wait; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Tabs inside a card (Billing log | Invoices, 2026-11-11) - underlined, so they don't look like the filter chips beneath them. */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-bottom: -1px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
button.tab { background: none; border-top: 0; border-left: 0; border-right: 0; border-radius: 0; font-family: inherit; cursor: pointer; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--shade); color: var(--muted); white-space: nowrap; }
.tag-ok { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--accent-soft); color: var(--accent); }
.tag-bad { background: var(--danger-soft); color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.input { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); width: 100%; }
.input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 170px; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); text-align: center; padding: 24px; }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); }
.dropzone strong { font-size: 16px; }
/* Products: Front and Back boxes side by side for clothes, one box for anything else (TODO 228, 2026-10-25). */
.photo-sides { display: grid; grid-template-columns: 1fr; gap: 12px; }
.photo-sides.is-pair { grid-template-columns: 1fr 1fr; }
.photo-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo-sides[hidden], .photo-side[hidden], .photo-clear[hidden] { display: none; }
.photo-side .dropzone p { word-break: break-word; }
.photo-clear { align-self: center; font-size: 13px; }
@media (max-width: 520px) { .photo-sides.is-pair { grid-template-columns: 1fr; } }
/* A garment's back, small in the corner of its tile. */
.tile-art img.tile-back { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; object-fit: contain; object-position: center; background: #fff; border: 1px solid var(--line, #ddd); border-radius: 6px; }
.flow-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); position: sticky; bottom: 16px; }
.flow-bar .row { gap: 10px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* The quiet line under a form field that says what we want and why. */
.hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* A guidance panel that has to be READ, not skimmed past — the product photo rules earn one because a bad
   upload is not rejected, it quietly degrades every shot that product ever appears in. */
.guide { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; margin-top: 14px; }
.guide h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .01em; }
.guide ul { margin: 0; padding-left: 18px; }
.guide li { font-size: 13px; line-height: 1.6; color: var(--ink); }
.guide li + li { margin-top: 4px; }
.guide .no { color: var(--danger); font-weight: 700; }
.guide .yes { color: var(--success); font-weight: 700; }
/* Panels that fold shut on a phone (data-phone-fold, Products 2026-11-14). Desktop: no marker, heading inert, the add button hidden. */
.phone-fold > summary { list-style: none; cursor: default; }
.phone-fold > summary::-webkit-details-marker { display: none; }
/* "+ Add a product" (Products): the upload form folds shut behind this button on every screen; open, it reads "Hide the form". */
.add-fold > summary { list-style: none; }
.add-fold > summary::-webkit-details-marker { display: none; }
.add-fold-btn { display: flex; width: fit-content; margin-left: auto; }   /* right-hand side, orange (btn-primary) - Richie 2026-11-14 */
.add-fold[open] .add-fold-btn { margin-bottom: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.add-fold .when-open { display: none; }
.add-bar { position: relative; }
.add-bar #products-bulk { position: absolute; top: 0; left: 0; }   /* Delete selected, left of "+ Add a product" on the same line */
.add-fold[open] .when-shut { display: none; }
.add-fold[open] .when-open { display: inline; }

/* roster & scene cards */
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,20,20,.05), 0 16px 32px -18px rgba(20,20,20,.2); }
.tile.is-selected { border: 2px solid var(--ink); }
.tile-art { position: relative; height: 230px; background: var(--shade); }
.tile-art.short { height: 140px; }
.tile-art .tag { position: absolute; top: 12px; left: 12px; }
/* A draft still being made (2026-10-14, Richie: "put the being made in the middle of the tile and make it bigger"). */
.tile-art .tag.tag-centre { top: 50%; left: 50%; transform: translate(-50%, -50%); height: 36px; padding: 0 16px; font-size: 15px; }
/* A centred tag with a second line - "Building identity set" over "(x of y left)" (2026-10-15). */
.tile-art .tag.tag-centre[data-progress] { height: auto; min-height: 36px; padding: 6px 16px; line-height: 1.35; white-space: pre-line; text-align: center; }
/* Eye on a location tile: opens the whole picture (2026-10-03). */
.quick-view-eye { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.quick-view-eye:hover, .quick-view-eye:focus-visible { background: #fff; outline: 2px solid var(--accent); outline-offset: 1px; }
dialog.quick-view.location-view { width: min(1040px, calc(100vw - 32px)); }   /* wide enough for the 5:4 master (2026-10-04) */
dialog.quick-view.location-view img { display: block; width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: 8px; background: var(--shade); }
/* A location's five sizes (2026-10-14): one height, true shapes - each grows by its width/height, so the row lines up. */
.loc-sizes { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.loc-size { margin: 0; min-width: 110px; display: flex; flex-direction: column; gap: 6px; }
.loc-size .tag { align-self: flex-start; }
.loc-size img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-sm); background: var(--shade); }
dialog.quick-view.location-view .loc-size img { max-height: none; }
.loc-size figcaption { font-size: 12px; color: var(--muted); }
/* Enlarge a picture (2026-10-16, site.js): fitted to the screen, click for actual size and scroll round it. */
img[data-enlarge] { cursor: zoom-in; }
dialog.quick-view.image-enlarge { width: min(1400px, calc(100vw - 32px)); }
.enlarge-frame { max-height: calc(100vh - 170px); overflow: auto; border-radius: 8px; background: var(--shade); }
.enlarge-frame img { display: block; width: 100%; max-height: calc(100vh - 170px); object-fit: contain; cursor: zoom-in; }
.enlarge-frame.actual img { width: auto; max-width: none; max-height: none; cursor: zoom-out; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.tile-title { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; }

/* validation from Identity pages */
.text-danger, .validation-summary-errors { color: var(--danger); font-size: 13px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

@media (min-width: 1600px) {
  .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  /* The help guides' sidebar still folds this simple way (their chapter list has its own phone rules further down). */
  .sidebar { position: static; height: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-foot { margin: 0; flex-direction: row; align-items: center; }
  /* The studio's top bar (TODO 310 point 1): logo, credit pill, Menu. Stays at the top while the page scrolls. */
  .studio-sidebar { position: sticky; top: 0; z-index: 60; height: 60px; flex-wrap: nowrap; gap: 10px; padding: 0 12px 0 16px; }
  .studio-sidebar .wordmark { padding: 0; margin-right: auto; }
  .studio-sidebar .wordmark img { width: 124px; }
  .topbar-credit { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
  .topbar-credit.is-low { border-color: var(--accent); color: var(--accent-deep, #9e4f28); }
  .menu-btn { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 24px; height: 24px; }
  .menu-btn .menu-close-icon, .sidebar.is-open .menu-btn .menu-open-icon { display: none; }
  .sidebar.is-open .menu-btn .menu-close-icon { display: block; }
  .menu-dot { position: absolute; top: 9px; right: 8px; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); }
  /* The panel: everything the desktop sidebar holds, full width under the bar, scrolling on its own. */
  .sidebar-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; gap: 6px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); overflow-y: auto; overscroll-behavior: contain; }
  .sidebar.is-open .sidebar-menu { display: flex; }
  .sidebar-menu .sidebar-foot { flex-direction: column; align-items: stretch; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  /* Phone folds (Products): the guide heading opens and shuts it with a ▾/▴; the form sits behind a full-width button. */
  .phone-fold > summary { cursor: pointer; }
  .guide.phone-fold > summary h3 { display: flex; align-items: center; margin: 0; }
  .guide.phone-fold > summary h3::after { content: "▾"; margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 13px; }
  .guide.phone-fold[open] > summary h3::after { content: "▴"; }
  .guide.phone-fold[open] > summary { margin-bottom: 8px; }
  .add-fold-btn { display: flex; width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
  .add-bar #products-bulk { position: static; }
  .add-bar #products-bulk form { margin-top: 10px; }
  .content { padding: 20px 16px 40px; }   /* the 5% right gap is pointless on a phone */
  /* minmax(0, 1fr), never plain 1fr: plain 1fr can't shrink below its widest child, and a <select> is as wide as its longest option -
     Products' "How it's used?" list made the page 490px on a 390px phone (2026-11-14: "there is left/right scroll on the phone"). */
  .grid-3, .grid-4, .check-row, .split { grid-template-columns: minmax(0, 1fr); }
  select.input, input[type="file"].input { max-width: 100%; }
  /* Product tiles on a phone (Richie, 2026-11-14: "image to the left then the description... more compact" / "edit/selected across the
     bottom still"): picture left, words right, the buttons across the full width underneath. The Selected tag goes - the button says it. */
  .product-grid { gap: 12px; }
  .product-grid .tile { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .product-grid .tile-art.short { grid-column: 1; grid-row: 1; height: auto; min-height: 108px; background: #fff; }
  /* The photo fills the whole cell, centred (Richie, 2026-11-14: "Can the images on the tiles be in the middle too") - it sat at the top with grey under it. */
  .product-grid .tile-art > img:not(.tile-back) { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; object-position: center; }
  .product-grid .tile-body { grid-column: 2; grid-row: 1; flex: none !important; gap: 4px; padding: 10px 12px; }
  .product-grid .tile-title { font-size: 15px; }
  .product-grid .tile-body p { font-size: 13px; }
  .product-grid .tile-actions { grid-column: 1 / -1; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
  .product-grid .tile-art .tag-ok { display: none; }
  .product-grid .tile-read { display: none; }   /* the admin "Read: ..." line - off on phones (Richie, 2026-11-14: "dont show read on the product tiles") */
  .product-grid .tile-del { top: 6px; left: 6px; right: auto; }
  .product-grid .tile-del-btn { height: 24px; padding: 0 8px; font-size: 11px; }
  .product-grid .tile-art img.tile-back { width: 34px; height: 34px; right: 4px; bottom: 4px; }
  /* Location tiles on a phone (Richie, 2026-11-14: "see if the view can show as much as possible of the location... in the tile"): the
     whole master, at its own shape (2304x1856), instead of a 140px strip of its bottom half - two across, like Models ("lets see those 2 wide too"). */
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .location-grid .tile-art.short, .shoot-location .tile-art.short { height: auto; aspect-ratio: 2304 / 1856; }
  .shoot-location .tile-art picture { display: block; width: 100%; height: 100%; }
  .shoot-location .tile-art img { object-position: center; }
  .location-grid .tile-body { gap: 4px; padding: 10px; }
  .location-grid .tile-title { font-size: 14px; }
  .location-grid .tile-body p { font-size: 12px; line-height: 1.4; }
  .location-grid .tile-body .tag { font-size: 11px; padding: 2px 6px; }
  .location-grid .tile-body .btn { height: auto; min-height: 36px; padding: 6px 8px; font-size: 12px; line-height: 1.25; white-space: normal; text-align: center; }
  .location-grid .tile-art .tag { top: 6px; left: 6px; font-size: 11px; }
  .location-grid .tile-art .tag[style] { top: auto !important; bottom: 6px !important; }   /* Exclusive carries an inline bottom:12px */
  .location-grid .quick-view-eye { top: 6px; right: 6px; width: 30px; height: 30px; }
  /* Models on a phone: two tiles across (Richie, 2026-11-14: "so 2 tiles width") - one across was ~585px a tile, 19 models ~13,700px. */
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* Slim floating bars on Products, Models and Locations (Richie, 2026-11-14: "a bit crowded" / "yeah lets see that"): one short status
     line, no explanation sentence or thumbnail, and a short one-line button - 148px down to ~66px. */
  .flow-slim { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px 10px 16px; bottom: 10px; }
  .flow-slim > div:first-child, .flow-slim > .row:first-child > div { flex: 1 1 140px; min-width: 0; }
  .flow-slim > div:first-child > div, .flow-slim > .row:first-child > div > div { font-size: 14px !important; line-height: 1.3; }
  .flow-slim .row { gap: 8px; flex-wrap: nowrap; }
  .flow-text-top > div:first-child { flex-basis: 100% !important; }   /* words on their own line above the buttons (Make a new model, Richie: "it looks too crushed like that") */
  .flow-slim > .row:last-child { margin-left: auto; }   /* buttons stay on the right when the bar wraps (Richie: "move the buttons to the right for continuity") */
  .flow-slim .btn { white-space: nowrap; padding: 0 14px; }
  /* Start a shoot's bar on a phone (Richie, 2026-11-14: "the warning is way too big on the bar next to the button"): stacked - status, the
     lock note at full width and small, then a full-width Take a shot. Too tall to float over the page, so it sits at the end of it. */
  .flow-stack { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; position: static; }
  .flow-stack > div:first-child > div { font-size: 14px !important; line-height: 1.3; }
  .flow-stack > .row { flex-direction: column; align-items: stretch !important; gap: 10px !important; }
  .flow-stack .shot-lock-note { display: block; height: auto; max-width: none !important; font-size: 12px; line-height: 1.4 !important; padding: 7px 10px; }
  .flow-stack .btn { width: 100%; justify-content: center; }
  /* The shot page's products and models as swipe rows on a phone (Richie, 2026-11-14: "the products and the models can get quite numerous.
     How about a slider" / "yeah lets see that"; it was two across). Products ~42% cards, two and a bit showing; models ~78% so a picked
     model's position, hairstyle and product ticks have room. Doubled classes beat the later .grid-4 / .grid-5 width rules. */
  .grid-4.shot-products, .grid-5.shot-people { grid-template-columns: none; grid-auto-flow: column; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .grid-4.shot-products { grid-auto-columns: 42%; }
  .grid-5.shot-people { grid-auto-columns: 78%; align-items: start; }
  .shot-products > .tile, .shot-people > .tile { scroll-snap-align: start; }
  .shot-products .tile-body { padding: 10px; gap: 4px; }
  .shot-products .tile-title { font-size: 14px; }
  .shot-products .tile-body p { font-size: 12px; line-height: 1.35; }
  /* Studio Shoots list two across on a phone (Richie, 2026-11-14: "the shoots page in the studio can they be 2x2 also"). */
  .shoot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shoot-grid .tile-body { padding: 10px; gap: 4px; }
  .shoot-grid .tile-title { font-size: 14px; }
  .shoot-grid .tile-body p { font-size: 12px; line-height: 1.35; }
  .shoot-grid .tile-body .row { flex-wrap: wrap; }
  .shoot-grid .tile-body .tag { font-size: 11px; padding: 0 6px; height: 22px; }
  .shoot-grid .shoot-del { top: 6px !important; right: 6px !important; }
  .shoot-grid .shoot-del .btn { width: 34px !important; height: 34px !important; min-height: 34px; }
  /* Page headings on a phone (TODO 310 point 2; Richie, 2026-11-14: "yeah lets see that it sounds good"): heading and lead full width, the
     button(s) underneath on one line at their own width - side by side they were squeezed to 2-3 lines ("Make a new location"). */
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .page-head > .actions, .page-head > .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }   /* on the right (Richie: "put the buttons across to the right") */
  .page-head > .actions .btn, .page-head > .row .btn, .page-head > .btn, .page-head > form { white-space: nowrap; }
  .page-head > .btn, .page-head > form { align-self: flex-end; }
  /* Every heading button burnt orange on a phone (Richie, 2026-11-14: "lets get them all the same colour the burnt orange") - as .btn-accent. */
  .page-head > .actions .btn, .page-head > .row .btn, .page-head > .btn, .page-head > form .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
  .page-head > .actions .btn:hover, .page-head > .row .btn:hover, .page-head > .btn:hover, .page-head > form .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
  /* Library tabs on a phone (TODO 310 point 7; Richie, 2026-11-14: "yeah lets see what that looks like"): three equal thirds on one line -
     Models used to drop to a second line. The filter groups' "·" separators dangle once the chips wrap, so they go too. */
  .lib-tabs { flex-wrap: nowrap; gap: 0; }
  .lib-tab { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; padding: 10px 4px; font-size: 14px; }
  .filter-sep { display: none; }
  .wide-only { display: none !important; }
  .narrow-only { display: inline !important; }
  .model-grid .tile-body { flex: 1 1 auto; gap: 4px; padding: 10px; }
  .model-grid .tile-title { font-size: 14px; }
  .model-grid .tile-body p { font-size: 12px; line-height: 1.4; }
  .model-grid .tile-body .btn { height: auto; min-height: 36px; padding: 6px 8px; font-size: 12px; line-height: 1.25; white-space: normal; text-align: center; justify-content: center; }
  .model-grid .tile-body .btn:first-of-type { margin-top: auto; }
  .model-grid .quick-view-btn { right: 8px; bottom: 8px; padding: 0 10px; font-size: 12px; }   /* keeps the 44px touch height every .btn has */
  .model-grid .tile-art .tag { top: 8px; left: 8px; font-size: 11px; }
  /* A table wider than the phone (Security's sign-in log, Billing's log and invoices) scrolls on its own; the page stays still (TODO 310 point 5). */
  .table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Long filter names ("Prop: Placed In The Shot (Candle, Vase, Plant - On A Table Or Shelf)") wrap inside the chip instead of
     pushing the page sideways. */
  .chip { max-width: 100%; height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; white-space: normal; line-height: 1.3; }
  .stepper { overflow-x: auto; padding: 0 16px; }
  h1 { font-size: 30px; }
}

/* auth screens */
.auth-body { background: var(--paper); }
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.auth-panel { position: relative; display: flex; flex-direction: column; gap: 40px; padding: 40px 48px; background: linear-gradient(180deg, #ffffff 0%, #f1f0ec 100%); color: var(--ink); border-right: 1px solid var(--line); overflow: hidden; }
.wordmark-light { padding: 0; }
.wordmark-light img { width: 220px; }
.auth-panel-copy { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin-top: 8vh; }
.eyebrow-light { color: var(--muted); }
.auth-headline { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.08; color: var(--ink); }
.auth-sub { font-size: 15px; color: var(--muted); }
.auth-tiles { position: absolute; right: -40px; bottom: -40px; display: grid; grid-template-columns: repeat(2, 150px); gap: 14px; transform: rotate(-8deg); opacity: .9; }
.auth-tile { height: 190px; border-radius: 12px; background: linear-gradient(160deg, #eceae5, #dcd9d2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-tile.t2 { background: linear-gradient(160deg, #e9d7cc, #c9a691); }
.auth-tile.t3 { background: linear-gradient(160deg, #e3e6e8, #c3c9cf); }
.auth-tile.t4 { background: linear-gradient(160deg, #f0c9b4, #c2663a); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 420px; }
.auth-head { display: flex; flex-direction: column; gap: 8px; }
.auth-head h2 { font-family: var(--display); font-weight: 400; font-size: 34px; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.btn-block { width: 100%; min-height: 48px; font-size: 15px; }
.auth-switch { text-align: center; font-size: 14px; }
.auth-switch a { font-weight: 700; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; } /* a form button that reads as a link (two-step Resend, 2026-11-12) */
.field-error { font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }
.field-hint { font-size: 12px; color: var(--muted); }
.form-errors { color: var(--danger); font-size: 14px; padding: 12px 14px; border: 1px solid var(--danger-soft); background: var(--danger-soft); border-radius: var(--radius-sm); }
.form-errors:empty, .form-errors.validation-summary-valid { display: none; }
.form-errors ul { margin: 0; padding-left: 18px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--ink); }
.input.input-validation-error { border-color: var(--danger); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { min-height: 0; padding: 28px 24px; gap: 20px; }
  .auth-panel-copy { margin-top: 0; }
  .auth-headline { font-size: 30px; }
  .auth-tiles { display: none; }
}

/* Authenticator enrolment: QR beside the manual key, stacked on phones */
.qr-setup { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr { flex: 0 0 auto; width: 176px; height: 176px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-manual { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.qr-manual p { margin: 0; }

/* Recovery codes: ten chips as two rows of five, never overflowing the card */
.codes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.codes .chip { justify-content: center; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; cursor: default; }
@media (max-width: 720px) { .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Passkeys: add row on the Security page, "or" divider on the sign-in form */
.passkey-add { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.passkey-add .field { flex: 1 1 240px; }
.passkey-add .btn { flex: 0 0 auto; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Admin: tables, long-form inputs, thumbnails; tiles show their image when one exists */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .row { gap: 8px; }
.table tr.is-off td { opacity: .55; }
.thumb { display: block; width: 48px; height: 60px; border-radius: 6px; background: var(--shade); object-fit: cover; }
.thumb-scene { width: 80px; height: 54px; }
.thumb-lg { display: block; width: 180px; height: 225px; border-radius: var(--radius-sm); background: var(--shade); object-fit: cover; }
/* The dry and wet anchors are full length (2:3) since 2026-09-23: the whole figure shows, nothing cropped (thumb-lg is 4:5 and cut heads and feet). */
.thumb-anchor { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; border-radius: var(--radius-sm); background: var(--shade); }
.thumb-wide { width: 100%; max-width: 360px; height: auto; aspect-ratio: 3 / 2; }
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.5; }
input[type="file"].input { padding: 9px 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
/* Two explicit columns (model form): each field sits under the one before it, rather than a grid filling row by row. */
.form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; align-items: start; }
.form-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 720px) { .form-cols { grid-template-columns: 1fr; } }
.tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; background: var(--shade); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.split-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.prompt { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--shade); font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; color: var(--ink); }
details > summary { cursor: pointer; }
select[multiple].input { height: auto; padding: 6px 8px; }
select[multiple].input option { padding: 4px 6px; }

/* The hidden attribute must beat every display rule (the bust field ignored it under .field { display:flex }, 2026-09-17) */
[hidden] { display: none !important; }

/* Roster tiles: a 4:5 box so the whole portrait shows (fixed 230px was cutting heads off, 2026-09-17); quick view + fit set */
.tile-art.portrait { height: auto; aspect-ratio: 4 / 5; }
/* A pet's photo is landscape (2026-09-24): shown whole in the card rather than cropped. */
.tile-art.pet img { object-fit: contain; object-position: center; }
/* Pinned to the whole frame (Richie, 2026-10-16: "if a pet is on the same line as a person can the pets image be in the centre of their tile
   not at the top") - in the people's 4:5 box a landscape pet took its own height and sat at the top; now it is centred in the full box. */
.tile-art.pet img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* A pet's 4:5 TILE picture fills its tile like a person's (Richie, 2026-10-16: "they dont quite fill the tiles like they do on models" - the
   Library's small tiles are 3:4, so contain left bars). Only the Tile: a 3:2 portrait or anchor stays whole. */
.tile-art.pet img[src*="/pet-tile."] { object-fit: cover; object-position: center top; }
.tile-art img { object-position: center top; }
/* Locations page: a scene's master shows its bottom - the floor and furniture, not the ceiling (Richie, 2026-10-06). */
.tile-art img.from-master { object-position: center bottom; }
.tile:not(.is-selected) .tag-selected { display: none; }   /* Locations: drawn on every tile, shown on the chosen one */
.narrow-only { display: none; }   /* phone-only text, shown inside the 900px rule; .wide-only is hidden there */
/* A model draft (2026-10-15, Richie: "can the swimwear anchor be shrunk to that size just for the display"): the Models page's 4:5 frame, with
   the full-length anchor shrunk to fit inside it, head to toe - the picture on disk is untouched. */
.tile .tile-art.portrait.anchor-fit { aspect-ratio: 4 / 5; }   /* .tile first: beats .tile-sm's 3:4, further down */
.tile-art.anchor-fit img { object-fit: contain; object-position: center; }
.quick-view-btn { position: absolute; right: 12px; bottom: 12px; height: 36px; padding: 0 12px; font-size: 13px; background: rgba(255,255,255,.92); }
dialog.quick-view { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px -24px rgba(20,20,20,.35); }
dialog.quick-view::backdrop { background: rgba(20,20,20,.45); }
.quick-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fit-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fit-shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fit-shot img, .fit-empty { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: var(--radius-sm); background: var(--shade); display: block; }
.fit-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
/* Title, then the (Re)generate button on its own full-width row beneath it (Richie, 2026-09-19). */
.fit-shot figcaption { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 13px; font-weight: 700; }
.fit-shot figcaption form, .fit-shot figcaption .btn { width: 100%; }
/* Every image opens full size in a new tab (Richie, 2026-09-19); the link takes the image's place in the column. */
.fit-shot > a { display: block; cursor: zoom-in; }
@media (max-width: 720px) { .fit-set { grid-template-columns: 1fr; } }
/* Landscape images (pets, 2026-09-24): a pet side-on is 3:2 - the portrait 2:3 box cropped it left and right. Whole picture shown. */
.fit-set-wide .fit-shot img, .fit-set-wide .fit-empty { aspect-ratio: 3 / 2; object-fit: contain; object-position: center; }
.fit-set-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fit-check img { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .fit-set-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit-set-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fit-set-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .fit-set-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit-set-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fit-set-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .fit-set-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* A draft's quick view has ONE picture, the anchor (Richie, 2026-10-16: "Could the single image be bigger in there cause it is only showing
   1 image") - large, centred and whole: a pet's landscape anchor wide, a person's full length tall. */
.fit-set-single { grid-template-columns: minmax(0, 360px); justify-content: center; }
.fit-set-single .fit-shot img, .fit-set-single .fit-empty { object-fit: contain; object-position: center; }
.fit-set-single.fit-set-wide { grid-template-columns: minmax(0, 640px); }
dialog.quick-view { width: min(1240px, calc(100vw - 32px)); }

/* Compact tiles for the Start a shoot review (2026-09-20): three groups on one screen without scrolling, so the cards
   have to be small. Same tile vocabulary, just scaled down. */
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile-sm .tile-art { height: 96px; }
/* Messages (TODO 311, 2026-11-15): each conversation a card you click; new ones bold with a dot. */
.msg-row { gap: 0; padding: 14px 18px; color: inherit; text-decoration: none; }
.msg-row:hover { border-color: var(--ink-soft, #888); }
.msg-row strong { font-weight: 600; }
.msg-row.is-unread strong { font-weight: 800; }
.msg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
/* The location on Start a shoot: the whole master at its own shape (2304x1856) at every width, not a 96px strip (Richie, 2026-11-15). */
.shoot-location .tile-art.short { height: auto; aspect-ratio: 2304 / 1856; }
.shoot-location .tile-art img { object-position: center; }
.tile-sm .tile-art.portrait { height: auto; aspect-ratio: 3 / 4; }
.tile-sm .tile-body { gap: 4px; padding: 10px 12px; }
.tile-sm .tile-title { font-size: 13px; }
.tile-sm .tile-body p { font-size: 12px; }
.tile-sm .btn { height: 32px; padding: 0 10px; font-size: 12px; }
@media (max-width: 1100px) { .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* THE LIBRARY AS TABS (2026-10-15, TODO 173): My Drafts · My Locations · My Models across the top, each its full list. */
.lib-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.lib-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 600; color: var(--ink); text-decoration: none;
           border-bottom: 3px solid transparent; margin-bottom: -1px; }
.lib-tab:hover { color: var(--accent); }
.lib-tab.is-on { border-bottom-color: var(--accent); color: var(--accent); }
/* The filter pills under a tab (Richie: "a bit small and cramped"): taller, bigger text, room between the label and its count. */
.lib-filters .chip { height: 40px; padding: 0 16px; gap: 8px; font-size: 14px; }
.lib-filters .chip .tag { height: 22px; padding: 0 8px; }
/* Smaller tiles (Richie: "the model tiles are too big… your forever scrolling"): 5 across on a wide desktop, 4 laptop, 3 tablet, 2 phone. */
.lib-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1400px) { .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Narrow tiles: a long button label wraps instead of spilling out ("Approve - exclusive · $6.00"). */
.lib-grid .tile-sm .btn { height: auto; min-height: 32px; padding: 6px 8px; line-height: 1.25; white-space: normal; text-align: center; }

/* Five across: a full shot's cast (the most one shot takes) on one line (Richie, 2026-09-26). */
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Dashboard pathway (2026-09-20): the four steps to a first shoot, each a link to its page. Reuses the .step / .step-dot
   vocabulary from the header stepper — only the container differs, because this one is a call to action, not chrome. */
.pathway { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.pathway .step { padding: 8px 28px 8px 0; text-decoration: none; align-items: flex-start; }
.pathway .step-dot { flex: none; margin-top: 1px; }
.pathway .step-label { display: block; }
.pathway .step-sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.pathway a.step:hover .step-label { text-decoration: underline; }
.pathway .step + .step::before { margin-top: 20px; }

/* Delete on a product tile (2026-09-20): sits in the image corner, well away from Select, because a destructive control
   beside a toggle gets read as the toggle's opposite. Quiet until hovered, and it always confirms. */
.tile-del { position: absolute; top: 10px; right: 10px; margin: 0; }
.tile-del-btn { height: 28px; padding: 0 10px; font-size: 12px; background: var(--surface); opacity: .75; }
.tile-del-btn:hover { opacity: 1; border-color: var(--danger); color: var(--danger); }

/* Merchant model tiles: the whole tile selects or removes the model (2026-09-19). */
.tile-pick { cursor: pointer; }
/* Products: Optimise / Edit / Select pinned to the foot of the tile, outside the body (2026-11-14). */
.tile-actions { margin-top: auto; padding: 0 16px 14px; }
/* One scene at a time (2026-09-20): while one is picked the others are shown unavailable rather than silently swallowing
   the click, which would read as a broken page. Named for the existing .table tr.is-off. */
.tile.is-off { opacity: .45; }
.tile-pick.is-off, .tile-pick.is-off:hover { cursor: default; transform: none; box-shadow: var(--shadow); }

/* The shot's frame diagram (2026-09-25): a blank outline with numbered circles in a line, names filled in as they are placed. */
.frame-diagram { margin: 12px 0 8px; }
.frame-slots { display: flex; justify-content: space-evenly; align-items: center; gap: 8px; aspect-ratio: 16 / 7; max-width: 520px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--shade); padding: 12px; }
.frame-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.frame-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); font-weight: 700; }
.frame-slot.is-filled .frame-num { background: var(--ink); color: #fff; }
.frame-name { font-size: 12px; font-weight: 600; max-width: 90px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 15px; }

/* Circles over the location's own picture (2026-09-25): where each model goes, numbered; names shown once placed. */
.slot-stage { position: relative; }
.slot-dot { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: rgba(20, 20, 20, .72); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); pointer-events: none; }
.slot-dot.is-filled { background: var(--accent, #0b6); }
.slot-dot.slot-pet { border-style: dashed; font-size: 13px; }

/* Low credit (2026-09-25). */
.plan-card.is-low { border-color: var(--accent); }
.credit-warn { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent-deep, #9e4f28); }
.slot-name { position: absolute; transform: translate(-50%, 22px); background: rgba(20, 20, 20, .8); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 8px; white-space: nowrap; pointer-events: none; }

/* Shoots list: the location picture scaled to the card's width, the middle of the scene showing (Richie, 2026-09-27). */
.tile-art.scene img { object-fit: cover; object-position: center; }

/* Who's in this shot (2026-09-27): a narrow quick view holding a list - each model, then what they wear or hold. */
dialog.quick-view.cast-view { width: min(520px, calc(100vw - 32px)); }
.cast-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cast-list > li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cast-list > li > ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.cast-list > li > .field-hint { margin: 4px 0 0; }
/* The circle each one stood on, as on the frame diagram: 1-5, P for the pet spot, "With Sharon" for a led animal. */
.cast-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin-right: 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; vertical-align: middle; }
.cast-badge-wide { border-radius: 13px; font-weight: 600; }

/* Make a model: "What happens next" as numbered steps (2026-10-17). */
.walkthrough { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.walkthrough li { padding-left: 4px; line-height: 1.5; }
.walkthrough li::marker { font-weight: 700; color: var(--accent, currentColor); }

/* The account area (TODO 217, 2026-10-19): the Account page's cards, the logo in place of the sidebar letter, the confirm-your-email bar. */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));   /* min(): never wider than a phone (TODO 310 point 4) */ gap: 24px; margin-top: 24px; align-items: start; }
.avatar-logo { object-fit: cover; background: var(--surface); border: 1px solid var(--line); padding: 0; }
.logo-preview { width: 72px; height: 72px; flex: none; border-radius: 999px; object-fit: cover; border: 1px solid var(--line); }
.logo-letter { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 28px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.email-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; padding: 10px 16px; border-radius: var(--radius); background: var(--accent-soft); font-size: 14px; }
.email-bar button.link { color: var(--ink); text-decoration: underline; }
/* Account page top: Your details left, logo + sign-in email stacked right (2026-10-19); one column on a narrow screen. */
.account-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.account-stack { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) { .account-top { grid-template-columns: minmax(0, 1fr); } }
/* The 404 page (2026-10-19) - the sign-in layout with a big serif 404 above the message. */
.notfound-code { font-family: var(--display); font-size: 120px; line-height: .9; color: var(--accent); letter-spacing: -.02em; }
@media (max-width: 900px) { .notfound-code { font-size: 84px; } }
/* Tick-box dropdowns (Locations Category + Style, TODO 125, 2026-10-24) - a <details> that looks like the .input select beside it. */
.multi-pick { position: relative; flex: 1 1 0; min-width: 0; }
.multi-pick > summary { display: flex; align-items: center; cursor: pointer; list-style: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.multi-pick > summary::-webkit-details-marker { display: none; }
.multi-pick[open] > summary { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.multi-pick-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.multi-pick-menu label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.multi-pick-menu label:hover { background: var(--accent-soft); }
.multi-pick-menu label .field-hint { margin: 0 0 0 auto; }
.multi-pick-menu input { accent-color: var(--accent); width: 16px; height: 16px; }

/* NO SAVING FROM A MODAL (TODO 286, 2026-11-08): no long-press save callout or drag on pictures and clips inside an open dialog - site.js
   blocks the right-click menu. Pages outside a modal are untouched. */
dialog img, dialog video { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* THE FOOTER on studio and sign-in pages (TODO 288, 2026-11-08): "© PosesWith" and the legal and company pages, quiet, at the bottom. */
.site-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: auto; padding: 20px 5% 28px 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.auth-form-wrap { flex-direction: column; }
.auth-form-wrap .site-foot { margin-top: 40px; padding: 16px 0 0; width: 100%; max-width: 420px; }
@media (max-width: 900px) { .main > .site-foot { padding: 16px 16px 24px; } }

/* YOUR DATA (GDPR) card on the Account page (TODO 290, 2026-11-08). */
.gdpr-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gdpr-row select { flex: 1 1 220px; }

/* TERMS + PRIVACY POP-UP on sign-up (TODO 299, 2026-11-09) - a native <dialog>; the text scrolls inside it. */
.legal-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.legal-modal[open] { display: flex; flex-direction: column; }
.legal-modal::backdrop { background: rgba(23, 24, 26, .55); }
.legal-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.legal-modal-head h2 { margin: 0; font-size: 22px; }
.legal-modal-close { width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.legal-modal-body { overflow-y: auto; padding: 8px 20px 24px; max-width: none; font-size: 15px; line-height: 1.65; }
.legal-modal-body h2 { font-size: 20px; margin: 32px 0 10px; }
.legal-modal-body h3 { font-size: 16px; margin: 24px 0 6px; }
.legal-modal-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-modal-body th, .legal-modal-body td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
/* Buy credit link under the sidebar balance (TODO 35, 2026-11-11). */
.plan-topup { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: inherit; text-decoration: underline; }

/* ---------- ways-to-pay marks under Pay now (_PayMarks, Richie 2026-11-12) ---------- */
.pay-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-icons img { width: 38px; height: 24px; display: block; }
.pay-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- the help guides (TODO 265, 2026-11-12) - the studio shell, the chapters as the side menu ---------- */
.guide-eyebrow { padding: 0 14px 6px; list-style: none; pointer-events: none; }   /* only folds on a phone */
.guide-eyebrow::-webkit-details-marker { display: none; }
.guide-menu { display: flex; flex-direction: column; }
.guide-nav .nav-link { height: 38px; font-size: 14px; gap: 10px; }
.guide-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 999px; background: var(--shade); font-size: 11px; font-weight: 700; color: var(--muted); }
.guide-nav .nav-link.is-active .guide-num { background: var(--accent); color: #fff; }
.guide-sidebar { overflow-y: auto; }
.guide-toc { max-width: 820px; gap: 8px; padding: 18px 22px; }
.guide-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.guide-text { max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.guide-text h2 { font-size: 24px; line-height: 1.3; margin: 44px 0 12px; scroll-margin-top: 20px; }
.guide-text h2:first-child { margin-top: 0; }
.guide-text h3 { font-size: 18px; line-height: 1.35; margin: 30px 0 8px; }
.guide-text p, .guide-text ul, .guide-text ol { margin: 0 0 16px; }
.guide-text ul, .guide-text ol { padding-left: 24px; }
.guide-text li { margin-bottom: 8px; }
.guide-text li > p { margin-bottom: 8px; }
.guide-text strong { font-weight: 700; }
.guide-text table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.guide-text th, .guide-text td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-text th { background: var(--shade); }
/* Tip / Watch out boxes: a Markdown quote ("> **Tip:** ...") */
.guide-text blockquote { margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); }
.guide-text blockquote p:last-child { margin-bottom: 0; }
/* Screenshots: framed, full width of the text, open full size on click */
.guide-shot { display: block; margin: 12px 0 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.guide-shot img { display: block; width: 100%; height: auto; }
/* The Getting started checklist ("- [ ] step"): ticks are kept in this browser */
.guide-text .contains-task-list { list-style: none; padding-left: 0; }
.guide-text .task-list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.guide-text .task-list-item input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--accent); cursor: pointer; }
.guide-text .task-list-item.is-done { background: var(--shade); color: var(--muted); }
.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.guide-pager-link { gap: 4px; color: var(--ink); }
.guide-pager-link:hover { border-color: var(--accent); }
.guide-pager-link.is-next { text-align: right; }
.guide-ask { max-width: 820px; }
@media (max-width: 900px) {
  .guide-sidebar { overflow: visible; }
  /* On a phone the chapter list folds away under "Help guides" (guides.js closes it below 900px). */
  .guide-menu { width: 100%; order: 3; }
  .guide-eyebrow { cursor: pointer; pointer-events: auto; padding: 8px 14px; font-size: 13px; }
  .guide-eyebrow::after { content: " ▾"; }
  .guide-nav { margin-top: 6px; }
  .guide-pager { grid-template-columns: 1fr; }
}
/* The help icons (TODO 265): a small round "?" by a heading or field that opens a section of the guide in a pop-up (GuideHelpTagHelper) */
.guide-help { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 10px; vertical-align: middle; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--accent); font-family: var(--body); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-decoration: none; cursor: pointer; }
.guide-help:hover, .guide-help:focus-visible { background: var(--accent); color: #fff; }
.guide-help-modal .legal-modal-body { padding-top: 16px; font-size: 15px; }
.guide-help-modal .guide-text { max-width: none; }
.guide-help-modal .guide-shot { margin: 10px 0 18px; }
.guide-help-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.guide-help-back { flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.guide-help-modal .legal-modal-head h2 { flex: 1; }
