.client {
  font-family: var(--font-ui);
  line-height: 1.5;
  --bg: var(--client-bg);
  --ink: var(--client-ink);
  --muted: var(--client-muted);
  --muted-2: var(--client-muted);
  --line: var(--client-line);
  --paper: var(--client-paper);
  --r-card: var(--client-radius);
  --r-lg: var(--client-radius);
  overflow-wrap: anywhere;
}
.client button, .client input, .client select, .client textarea { font-family: var(--font-ui); }
.client .hero-bal-amt { font-weight: 700; }
.client .container { max-width: var(--client-shell); padding-inline: 24px; }
.client .page { max-width: var(--client-shell); padding: 36px 24px 56px; }
.client header { background: var(--surface); border-bottom: 1px solid var(--line); }
.client .header-top { padding-top: 10px; padding-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.client .header-logo { font-size: var(--fs-2xl); }
.client .header-auth { gap: 12px; flex-wrap: wrap; }
.client .nav-links { gap: 8px; }
.client .nav-link { padding: 12px 16px; border-radius: var(--r-pill); line-height: 1.5; }
.client .nav-link.active { background: var(--brand-tint); color: var(--brand); }
.client .page-title, .client h1.section-title { font-family: var(--font-ui); font-size: var(--fs-client-title); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.client .section-title { font-family: var(--font-ui); font-weight: 700; line-height: 1.3; }
.client .card { padding: 28px; box-shadow: none; border: 1px solid var(--line); }
/* A form card is 420px wide: the page-level title size broke its heading into two lines. */
.client .card--form .page-title { font-size: var(--fs-2xl); }
.client .btn { min-height: 48px; padding: 11px 22px; line-height: 1.5; border-radius: var(--r-pill); font-weight: 700; text-align: center; }
.client .field input:not([type="radio"]):not([type="checkbox"]), .client .field select, .client .field textarea { min-height: 48px; border-color: var(--client-input-line); border-radius: var(--r-control); line-height: 1.5; }
.client .field { margin-bottom: 22px; }
.client .field label { color: var(--ink); font-weight: 600; }
.client .notice { padding: 20px; border-radius: var(--r-card); }
.client a:focus-visible, .client button:focus-visible, .client summary:focus-visible, .client input:focus-visible, .client select:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.client .section { margin-top: var(--client-section-space); }
.client .works-grid { gap: 20px; }
.client .works-cap { text-align: center; font-size: var(--fs-sm); margin-top: 10px; }
.client .agelist { gap: 12px; }
.client .agelist__row { padding: 22px; }
.client .price-grid { gap: 20px; }
.client .pcard { padding: 28px 20px; }
.client .announce { padding: 28px; }
.client .trust { padding: 32px; }
.client .agroup { margin-bottom: 20px; }
.client .agroup__head { padding: 24px; }
.client .agroup__body { padding: 0 24px 28px; }
.client .agroup__age { font-family: var(--font-ui); font-size: var(--fs-2xl); }
.client .agroup__more { min-height: 44px; padding: 12px 0; }
.client .home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 24px 0 32px; }
.client .eyebrow { color: var(--brand); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.client .home-hero h1 { font-family: var(--font-ui); font-size: var(--fs-client-hero); line-height: 1.13; font-weight: 700; letter-spacing: -.025em; margin-bottom: 24px; }
.client .home-hero p { font-size: var(--fs-lg); line-height: 1.75; color: var(--muted); }
.client .home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.client .home-hero-art { border-radius: var(--r-lg); }
@media (max-width: 767px) {
  .client .container { padding-inline: 16px; }
  .client .page { padding: 24px 16px 40px; }
  .client .home-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; }
  .client .card { padding: 20px; }
  .client .price-grid { gap: 8px; }
  .client .pcard { padding: 20px 8px; }
  .client .agroup__head { padding: 20px; }
  .client .agroup__body { padding: 0 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .client *, .client *::before, .client *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.client .account-welcome { color: var(--muted); margin-bottom: 24px; }
.client .account-dashboard { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin: 24px 0; }
.client .account-dashboard .card { margin: 0; padding: 28px; }
.client .account-next p { margin: 12px 0; }
.client .account-next .btn { margin-top: 12px; }
.client .account-balance { background: var(--brand-tint-soft); display: flex; flex-direction: column; gap: 16px; }
.client .account-balance .balance-num { font-size: var(--fs-2xl); }
.client .account-settings { margin-top: 28px; }
.client .account-settings .hero { background: none; padding: 0; margin: 0; border: 0; }
.client .card:has(> .card-head), .client .card:has(> .card-body) { padding: 0; }
.client .card-head { padding: 20px 24px; }
.client .card-body { padding: 24px; }
.client .session-card { border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; gap: 24px; }
.client .session-card-img { width: 120px; border-radius: var(--r-card); }
.client .session-title { font-size: var(--fs-lg); }
.client .session-meta { line-height: 1.8; }
.client .week-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.client .week-nav-btn, .client .cal-btn { min-height: 44px; min-width: 44px; line-height: 1.5; }
.client .daystrip-day { min-height: 64px; }
.client .day-title { font-family: var(--font-ui); font-size: var(--fs-lg); margin: 28px 0 14px; }
.client .btn-cancel { min-height: 44px; padding: 8px 14px; line-height: 1.5; }
/* A dense feed: two covers a row on a phone (down to 320 px), four from a tablet
   up (spec 031, FR-005). */
.client .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 768px) {
  .client .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.client .album { display: flex; flex-direction: column; }
/* No backdrop of its own: a bare frame shows only the picture (see .frame--bare). */
.client .album-cover { order: -1; box-shadow: none; background: none; }
.client .album-head { margin: 8px 0 0; gap: 2px 8px; justify-content: center; text-align: center; }
.client .album-title { font-size: var(--fs-base); line-height: 1.3; }
.client .album-date { font-size: var(--fs-xs); }
.client .photo-cell img { border-radius: var(--r-card); }
.client .g-filter { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); gap: 16px; margin: 24px 0 32px; }
.client .g-filter select { min-height: 44px; }
.client .gallery-switch { min-height: 44px; padding: 10px 16px; line-height: 1.5; }
.client .ex-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.client .ex-body { padding: 24px; gap: 10px; }
.client .ex-title { font-family: var(--font-ui); font-size: var(--fs-xl); color: var(--ink); }
.client .ex-notice { padding: 16px 20px; margin: 24px 0; line-height: 1.7; }
.client .ex-works.rows { gap: 32px; }
.client .ex-work-title { font-size: var(--fs-lg); margin-top: 16px; }
.client .ex-head { gap: 32px; padding: 24px 0; }
.client .ex-portrait { width: 200px; }
@media (max-width: 767px) {
  .client .account-dashboard { grid-template-columns: 1fr; gap: 16px; }
  .client .card-head, .client .card-body { padding: 20px; }
  .client .session-card { padding: 16px; gap: 16px; }
  .client .session-card-img { width: 80px; }
  .client .ex-head-text { min-width: 0; flex-basis: 100%; }
}
.client .session-card--past { background: var(--bg); }
.client .account-balance .hero-bal-amt { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.2; }

/* Shared navigation and forms keep usable targets and a visible keyboard path. */
.client main { padding: 0; }
.client .header-link, .client .header-btn { display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 4px; line-height: 1.5; font-family: inherit; }
.client .nav-toggle { min-height: 44px; }
.client .nav-link { min-height: 44px; }
.client .skip-link { position: fixed; top: 12px; left: 16px; z-index: 200;
  transform: translateY(-200%); padding: 12px 20px; border-radius: var(--r-control);
  background: var(--surface); color: var(--brand); font-weight: 700; }
.client .skip-link:focus { transform: none; }
.client textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.client .field input:focus, .client .field select:focus,
.client .field textarea:focus { border-color: var(--brand); }
.client main:focus { outline: none; }
@media (max-width: 559.98px) {
  .client .header-logo { font-size: var(--fs-xl); }
  .client .header-auth { gap: 8px; }
  .client .nav-disc[open] .nav-links { max-height: 55svh; overflow-y: auto; padding: 8px; }
}

/* ── Pictures by their stored shape (spec 031, contracts/ui.md) ──
   The frame is 3:4; frame--fill crops a portrait picture to fill it, frame--whole
   shows the picture entire over a blurred copy of itself, which sits behind it
   (z-index inside the isolated frame) and after it in the markup. */
.client .frame { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  isolation: isolate; background: var(--surface); }
.client .frame__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.client .frame--fill .frame__img { object-fit: cover; }
.client .frame__blur { position: absolute; z-index: -1; inset: -12px; width: calc(100% + 24px);
  height: calc(100% + 24px); max-width: none; object-fit: cover; filter: blur(12px) saturate(1.1);
  opacity: .55; }
/* A bare frame keeps its place in the grid and shows nothing of its own: a picture
   it cannot fill sits whole in its middle, its own corners rounded. The frame is a
   size container, so the picture is capped by the frame (cq units) while the box
   around it — the anchor of a badge — shrinks to the picture. */
.client .frame--bare { display: flex; align-items: center; justify-content: center;
  background: none; overflow: visible; container-type: size; }
.client .frame__pic { position: relative; display: block; line-height: 0; }
.client .frame--bare .frame__img { width: auto; height: auto; max-width: 100cqw;
  max-height: 100cqh; border-radius: var(--r-lg); }
/* Justified rows: a cell grows in proportion to its photo's w/h (--r), so a row
   has one height and every photo keeps its shape. The cap keeps a photo left
   alone on its row from growing to the full width; such a row is centred, and
   the ::after spacer stops the last, short row from stretching. --mat and
   --edge are a passe-partout's margin and line, zero unless a page sets them. */
.client .rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  --row: 140px; --mat: 0px; --edge: 0px; }
@media (min-width: 768px) {
  .client .rows { --row: 200px; }
}
.client .rows::after { content: ""; flex-grow: 1000; }
.client .rows__cell { min-width: 0;
  flex: var(--r, 1) 1 calc(var(--r, 1) * var(--row) + 2 * var(--mat) + 2 * var(--edge));
  max-width: calc(var(--r, 1) * var(--row) * 1.6 + 2 * var(--mat) + 2 * var(--edge)); }
.client .rows__cell img { display: block; width: 100%; height: auto; aspect-ratio: var(--r, 1);
  object-fit: cover; }
/* No stored shape: a square cell that shows the photo whole (FR-018). */
.client .rows__cell--unknown img { object-fit: contain; background: var(--surface); }
