/* Members app styles. Every color and font is a token: theme tokens are set per org on :root by the page shell (src/themes.ts). */

:root {
  /* Fixed tokens, the same in every theme. Theme tokens (colors, fonts, icons) come from src/themes.ts via the page shell. */
  --danger: #B3261E;
  --video: #000;
  --video-ink: #fff;
  --shadow: rgba(0,0,0,0.12);
  --shadow-knob: rgba(0,0,0,0.3);
  --shadow-soft: rgba(20, 20, 19, 0.18);
  --pad: 20px;
  --header-h: 64px;
  --tab-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
/* The page colour sits on html too, so nothing white shows past the body on a phone (bounce, toolbars, short pages). */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body, .app-main { overflow-x: clip; max-width: 100vw; }
.app-main img, .app-main video, .app-main iframe, .app-main table { max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-h, 100dvh); /* measured by the page script; see fitAppHeight */
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); text-transform: var(--head-transform); font-weight: var(--head-weight); line-height: 1.05; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
/* The focus ring uses the darker accent so it reads at 3:1 or better on the page, cards and the dark header (WCAG 1.4.11; 2026-10-23). */
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

.phone-only { display: inherit; }
.desktop-only { display: none !important; }

/* Header */
.app-header {
  /* Installed on a phone, the status bar sits inside the top safe area: pad the header below it. */
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: var(--header-rule);
}
/* Signed out on DMH (Brian, 2026-10-23): the public site's header, value for value (site/css/styles.css .site-header),
   so Events and the Members sign-in match About, Services and Contact: 64px with a menu button on phones, 88px with
   the links in a row on desktop, Contact as the orange button. */
.pub-header { --site-pad: max(clamp(20px, 5vw, 72px), calc((100vw - 1296px) / 2)); position: relative; z-index: 10; flex-shrink: 0; height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--site-pad) 0; display: flex; align-items: center; justify-content: space-between; background: var(--header-bg); }
.pub-brand { display: flex; align-items: center; height: 44px; }
.pub-brand img { height: 32px; width: auto; }
.pub-menu { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--header-ink); }
.pub-menu .icon-close { display: none; }
.pub-menu[aria-expanded="true"] .icon-open { display: none; }
.pub-menu[aria-expanded="true"] .icon-close { display: block; }
.pub-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 4px; padding: 4px var(--site-pad) 28px; background: var(--header-bg); border-top: 1px solid var(--subtle); }
.pub-nav.is-open { display: flex; }
.pub-nav a { font-family: var(--font-label); font-size: 17px; font-weight: 600; line-height: normal; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--header-ink); padding: 16px 0; }
.pub-nav a:hover { color: var(--header-accent); }
.pub-nav a.pub-btn { margin-top: 12px; padding: 16px 24px; text-align: center; color: var(--on-accent); background: var(--accent); }
.pub-nav a.pub-btn:hover { color: var(--on-accent); }
@media (min-width: 900px) {
  .pub-header { height: calc(88px + env(safe-area-inset-top, 0px)); }
  .pub-brand { height: 56px; }
  .pub-brand img { height: 44px; }
  .pub-menu { display: none; }
  .pub-nav, .pub-nav.is-open { position: static; display: flex; flex-direction: row; align-items: center; gap: 40px; padding: 0; background: none; border-top: 0; }
  .pub-nav a { padding: 0; }
  .pub-nav a.pub-btn { margin-top: 0; font-size: 17px; padding: 14px 26px; }
}
/* Desktop: the wordmark group takes the left; the page tabs sit right-aligned, working leftward from the Dashboard button, which is always furthest right. */
.app-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.app-header .back { display: flex; align-items: center; gap: 4px; color: var(--header-ink); padding: 6px; margin-left: -6px; text-decoration: none; }
.app-header .back-label { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.app-header .back:hover .back-label { color: var(--header-accent); }
.app-header .brand img { height: 32px; width: auto; }
/* No logo: the org name as a wordmark in the headline font (themes, 2026-10-13). */
.brand-word { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-transform); font-size: 22px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.app-header .brand { text-decoration: none; color: var(--header-ink); }
.login-aside .brand-word { font-size: 40px; }
.brand-accent { color: var(--header-accent); }
/* The platform landing page (brief 10.9): one screen, the words and two buttons. */
.platform-hero { max-width: 680px; padding-top: 6vh; }
.platform-hero h1 { font-size: 36px; line-height: 1.05; }
@media (min-width: 900px) { .platform-hero { padding-top: 10vh; } .platform-hero h1 { font-size: 52px; } }
.header-label { font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.16em; text-transform: uppercase; color: var(--header-quiet); white-space: nowrap; text-decoration: none; }
a.header-label:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The hidden attribute always wins, even on flex and grid boxes */
[hidden] { display: none !important; }
.header-label.accent { color: var(--header-accent); }
.top-nav { display: none; }
/* Logged out: the public site's links on the right, at every size; on narrow phones the row scrolls sideways */
/* Logged-out header (item 92): on phones the four public links take a second row under the wordmark, right-aligned,
   so nothing runs off the edge (the layout check caught Contact cut off at 375px). Desktop keeps one row. */
.public-nav { display: flex; align-items: center; gap: 14px; flex-shrink: 1; min-width: 0; }
@media (max-width: 899.98px) {
  .app-header:has(.public-nav) { height: auto; min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); flex-wrap: wrap; row-gap: 2px; padding-bottom: 10px; }
  .app-header:has(.public-nav) .app-header-left { flex: 1 1 100%; min-height: calc(var(--header-h) - 10px); }
  .public-nav { flex: 1 1 100%; justify-content: flex-end; gap: 18px; }
}
.public-nav a { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--header-ink); white-space: nowrap; }
.public-nav a:hover { color: var(--header-accent); }
@media (min-width: 900px) { .public-nav { gap: 28px; } .public-nav a { font-size: 14px; } }

.sample-banner { padding: 10px var(--pad); background: var(--accent); color: var(--on-accent); font-family: var(--font-label); font-size: 13px; font-weight: var(--label-weight); letter-spacing: 0.04em; text-align: center; }
.support-banner { background: var(--ink); color: var(--bg); }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }
.demo-banner a { color: inherit; }
.demo-switch { display: inline-flex; align-items: center; gap: 6px; }
.demo-switch label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.demo-switch select { font-family: var(--font-label); font-size: 13px; font-weight: var(--label-weight); padding: 4px 8px; border: 1px solid var(--strong); background: var(--surface); color: var(--strong); }
.support-banner a { color: var(--bg); text-decoration: underline; }
/* View as (2026-10-07): the owner's label by the wordmark is a dropdown of everyone in the org. */
.view-as select.header-label, .side-switch select.header-label { appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0 16px 0 0; background-image: var(--icon-chevron-header); background-repeat: no-repeat; background-position: right center; }
.view-as select.header-label option, .view-as select.header-label optgroup, .side-switch select.header-label option { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
/* Club · Business · All (account types part 2): sits by the wordmark; shown on phones too, where the view-as menu is not. */
.side-switch { display: flex; align-items: center; margin-left: 4px; }
/* A link shown as text (roster links, the public link): wraps anywhere, never runs under a button. */
.link-text { margin: 0; }
.link-text a { word-break: break-all; overflow-wrap: anywhere; }
/* Video review (2026-10-07): a clip plays inline; a YouTube link embeds at 16:9. */
.video-player { width: 100%; max-height: 70vh; background: var(--video); display: block; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--video); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Main */
.app-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 24px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.shell-member .app-main, .shell-admin .app-main { padding-bottom: 32px; }
.app-main > * { min-width: 0; }
table.data.words th[scope=row] { text-align: left; font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; }
.add-box { padding: 12px 14px; border: 1px dashed var(--rule); }
#member-picks .check-list, #dog-picks .check-list { margin-top: 10px; }
/* A fold-out pick list that looks like a dropdown (Export, review 2026-10-06). */
/* The summary is drawn like a select box so it reads as a dropdown. */
.pick-list > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--surface); border: 2px solid var(--muted); }
.pick-list[open] > summary, .pick-list > summary:focus-visible { border-color: var(--accent); outline: 0; }
.pick-list > summary::-webkit-details-marker { display: none; }
.pick-list > summary::after { content: ''; width: 14px; height: 9px; background: var(--icon-chevron) no-repeat center; flex-shrink: 0; margin-left: 12px; }
.pick-list[open] > summary::after { transform: rotate(180deg); }
.pick-list > .check-list { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--surface); max-height: 320px; overflow: auto; }
.pick-list > .check-list .check:first-child { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
#dog-picks { margin-bottom: 10px; }
/* Calendar (phase 2a): the month grid; a full day with an open waitlist carries one diagonal line, a full day
   with no waitlist two; the legend under the grid explains both. Event rows and the roster share the list look. */
.cal-month { display: flex; flex-direction: column; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; background: var(--band-bg); color: var(--band-ink); padding: 6px 6px 6px 14px; }
.cal-title { font-family: var(--font-label); font-size: 15px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; color: var(--band-ink); }
.cal-nav { font-size: 22px; line-height: 1; padding: 4px 14px; text-decoration: none; color: var(--band-btn-ink); border: 0; background: var(--band-btn-bg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { font-family: var(--font-label); font-size: 10px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); text-align: center; padding: 4px 0; }
.cal-cell { position: relative; min-height: 56px; padding: 4px; background: var(--surface); border: 1px solid var(--rule); font-family: var(--font-label); font-size: 12px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
/* Days from the months either side: no fill and a light number, still dark enough to read (4.5:1). */
.cal-cell.cal-ghost { background: transparent; border-color: var(--rule); color: var(--subtle); }
.cal-cell.cal-ghost .cal-num { font-weight: 400; color: var(--subtle); }
.cal-cell.today .cal-num { color: var(--accent-text); }
.cal-cell.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Marks on the date number: black for a group event with spots open; orange fill for a day you are booked on (Brian,
   2026-10-13, was an orange outline from the mockups). */
.cal-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; box-sizing: border-box; }
/* Calendar marks, final (brief 10.8): outline = open to you, solid = you are in it. Open event: black outline;
   private time open: orange outline; signed up or booked: orange fill; full with a waitlist: grey with one corner-to-
   corner line; full with no waitlist: grey with an X. Lines stay inside the day cell. */
/* An empty day staff can post on (2026-10-24): a plain day that is a link; a small + shows on hover. */
a.cal-cell.cal-add { color: inherit; text-decoration: none; }
a.cal-cell.cal-add:hover::after, a.cal-cell.cal-add:focus-visible::after { content: '+'; position: absolute; right: 6px; bottom: 2px; font-size: 18px; color: var(--accent-text); }
.cal-cell.has-event .cal-num { background: var(--surface); color: var(--ink); border: 2px solid var(--strong); }
.cal-cell.private .cal-num { background: var(--surface); color: var(--ink); border: 2px solid var(--accent); }
.cal-cell.mine .cal-num { background: var(--accent); color: var(--on-accent); border: 0; }
.cal-cell.mine .cal-mine { color: var(--accent-text); }
.cal-num { font-weight: 600; }
.cal-ev { font-size: 10px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.off { text-decoration: line-through; color: var(--subtle); }
.cal-mine { color: var(--accent-text); }
.cal-more { font-size: 10px; color: var(--subtle); }
.cal-cell.full-wait, .cal-cell.full-closed { background: var(--tint); color: var(--subtle); }
.cal-cell.full-wait .cal-num, .cal-cell.full-closed .cal-num { background: transparent; color: var(--subtle); border: 0; }
.cal-cell.full-wait, .cal-cell.full-closed { overflow: hidden; }
.cal-cell.mine.full-wait .cal-num, .cal-cell.mine.full-closed .cal-num { background: var(--accent); color: var(--on-accent); border: 0; }
/* The lines are a stretched picture so they always run corner to corner inside the cell: one for full with a
   waitlist, an X for full (2026-10-13; gradients drew a stray second line in some browsers). */
.cal-cell.full-wait::after, .cal-cell.full-closed::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--icon-full-wait) no-repeat; background-size: 100% 100%; }
.cal-cell.full-closed::after { background-image: var(--icon-full-closed); }
.cal-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-family: var(--font-label); font-size: 12px; color: var(--subtle); margin: 0; }
.cal-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (min-width: 900px) { .cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; } }
/* The public calendar's note under its key (2026-10-25): full events and past dates are left off. */
.cal-note { margin-top: 8px; }
.cal-key { position: relative; display: inline-block; width: 22px; height: 16px; background: var(--tint); border: 1px solid var(--rule); vertical-align: middle; overflow: hidden; }
.cal-key.has-event { background: var(--surface); border: 2px solid var(--strong); }
.cal-key.private { background: var(--surface); border: 2px solid var(--accent); }
.cal-key.mine { background: var(--accent); border-color: var(--accent); }
/* A card with the mockups' 4px orange top edge (the Coming up list and an event's When card). */
.card.edge { border-top: 4px solid var(--accent); }
.cal-key.full-wait::after, .cal-key.full-closed::after { content: ''; position: absolute; inset: 0; background: var(--icon-full-wait) no-repeat; background-size: 100% 100%; }
.cal-key.full-closed::after { background-image: var(--icon-full-closed); }
@media (min-width: 900px) { .cal-cell { min-height: 84px; } .cal-ev { font-size: 11px; } }
.event-row.off .primary { color: var(--subtle); }
.event-when { font-size: 17px; }
.event-notes { white-space: pre-line; }
.signup-panel .check-list { margin-bottom: 4px; }
.roster-row .roster-main { min-width: 0; }
/* Workshop day rows on the posting form: the day label sits above its fields on a phone, beside them on desktop. */
/* Multi-day rows (Brian, 2026-10-07): the day label heads its row; the date takes the full width on phones, and all four fields sit on one line on desktop. */
.day-row { align-items: end; }
.day-row .day-index { grid-column: 1 / -1; font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); padding-top: 6px; }

@media (min-width: 900px) { .field-row.day-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roster-row .secondary a { color: inherit; }
/* Sortable card stacks: "Arrange cards" (a small switch at the foot of the stack) shows a Move pill inside the top right corner of
   each card; cards get room at the top so the pill never sits on a title. The card lifts while it is dragged. */
.sortable-wrap { position: relative; }
/* While arranging (brief 12.9): a Done bar stays in view above the tab bar; it is not on the page otherwise. */
.arrange-done-bar { display: none; margin: 0; }
.sortable.arranging + .arrange-done-bar { display: flex; justify-content: center; position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 5; background: var(--bg); padding: 10px 0; }
@media (min-width: 900px) { .sortable.arranging + .arrange-done-bar { bottom: 0; } }
.arrange-done { font-family: var(--font-label); font-size: 14px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); border: 0; padding: 12px 24px; cursor: pointer; }
.sort-item { position: relative; }
.drag-handle { display: none; position: absolute; top: 10px; right: 10px; z-index: 2; align-items: center; gap: 4px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; padding: 6px 9px; cursor: grab; touch-action: none; }
.drag-handle span { letter-spacing: -2px; font-size: 13px; }
.sortable.arranging .drag-handle { display: inline-flex; }
.sortable.arranging .sort-item > .card, .sortable.arranging .sort-item > .stack > .card:first-child, .sortable.arranging .sort-item > .edit-view > .card, .sortable.arranging .sort-item > .edit-form > .card, .sortable.arranging .sort-item > details > .card:first-child, .sortable.arranging .sort-item > details > summary { padding-top: 44px; }
.sortable.arranging .sort-item { outline: 1px dashed var(--subtle); outline-offset: 3px; }
.drag-handle:hover, .drag-handle:focus-visible { color: var(--accent-text); border-color: var(--accent); }
.sort-item.dragging { opacity: 0.8; outline: 2px dashed var(--accent); outline-offset: 4px; }
.sort-item.dragging .drag-handle { cursor: grabbing; }
body.is-dragging { user-select: none; -webkit-user-select: none; }
/* A stack that flows into two columns on desktop (admin member page); the order still reads top-left to bottom-right. */
@media (min-width: 900px) { .stack.sortable-columns { display: block; column-count: 2; column-gap: 20px; } .stack.sortable-columns > .sort-item { break-inside: avoid; margin-bottom: 20px; } }
.page-foot { margin-top: auto; padding-top: 12px; text-align: center; font-size: 13px; color: var(--subtle); display: flex; flex-direction: column; gap: 4px; }
.page-foot a { color: inherit; }
.page-foot-legal { font-size: 11px; }
.issue-body { margin: 4px 0; white-space: pre-wrap; }
.filter-links { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; }
.filter-links a { color: var(--subtle); text-decoration: none; }
.filter-links a.current { color: var(--accent-text); }
.card, .note, .notice, .list .row { min-width: 0; overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-tight { display: flex; flex-direction: column; gap: 10px; }
/* A box the form reveals (multi-day, the guest, the host, the public link): its pieces keep the form's own spacing (Brian, 2026-10-07). */
.form-block { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .field-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.narrow { max-width: 560px; }
.wide { max-width: 1100px; }

.app-footer { flex-shrink: 0; padding: 20px 24px; display: flex; justify-content: center; background: var(--header-bg); border-top: var(--bar-rule); font-size: 12px; color: var(--header-quiet); }

/* Tab bar (phone): sticky at the end of the page flow rather than fixed, so it never floats above the bottom after a
   page load in the home-screen app (iOS lays fixed elements against a stale viewport until the first scroll; 2026-10-06). */
.tab-bar {
  position: sticky; bottom: 0; margin-top: auto; width: 100%; flex-shrink: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 0 12px env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--header-bg);
  border-top: var(--bar-rule);
  z-index: 20;
  /* Four tabs fill the bar; a fifth or more scrolls sideways at the same size instead of shrinking (Brian, 2026-10-07). */
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar a { flex: 0 0 25%; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 64px; text-decoration: none; color: var(--header-ink); font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; }
/* Each tab fills the bar's full height, so the whole 72px band is the touch target, not just the icon and word (44px minimum; 2026-10-22). */
.tab-bar a.current { color: var(--header-accent); }
/* While the on-screen keyboard is up the footer is hidden outright, so it never floats mid-screen (item 73) */
body.keyboard-open .tab-bar { display: none !important; }

/* Type helpers */
.label { font-family: var(--font-label); font-size: 13px; font-weight: var(--label-weight); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.label-small { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.meta { font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); color: var(--subtle); }
.subtle { color: var(--subtle); font-size: 13px; line-height: 1.45; }
.page-head { display: flex; flex-direction: column; gap: 6px; }
/* The helper line belongs to the title above it: it sits close under the heading rather than a full section gap away. */
.page-head + .page-help-text { margin-top: -12px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.empty { color: var(--ink); }
.small-text { font-size: 14px; color: var(--subtle); line-height: 1.5; }

/* Links and buttons */
.link-rule { font-family: var(--font-label); font-size: 13px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; align-self: flex-start; }
.link-rule.small { font-size: 11px; }
/* Small text links and text buttons keep their look but get a finger-sized tap area around them (2026-10-23). */
.link-rule.small, .as-button { position: relative; }
.link-rule.small::after, .as-button::after { content: ''; position: absolute; inset: -12px -6px; }
.link-raw { font-size: 12px; line-height: 1.5; color: var(--subtle); word-break: break-all; overflow-wrap: anywhere; }
.as-button { background: none; border: 0; border-bottom: 2px solid var(--accent); padding: 0 0 2px; cursor: pointer; font: inherit; font-family: var(--font-label); }
.btn { display: inline-block; font-family: var(--font-label); font-size: 16px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; text-decoration: none; color: var(--on-accent); background: var(--accent); padding: 16px 24px; border: 0; border-radius: 0; cursor: pointer; line-height: normal; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-outline { color: var(--ink); background: var(--surface); border: 2px solid var(--ink); padding: 10px 14px; font-size: 13px; }
/* Tertiary: a text link in button clothing, for the least-wanted action in a row (Remove, Log out, Keep as is) */
.btn-text, .btn-quiet { color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; padding: 0 0 2px; font-size: 12px; letter-spacing: 0.08em; }
.btn-text:hover, .btn-quiet:hover { color: var(--accent-dark); }
.btn-pair .btn-text, .btn-pair .btn-quiet { padding: 0 0 2px; align-self: center; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* A person on the People card: name and email, Remove on the right (2026-10-08). */
.person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.person-head .btn { flex: 0 0 auto; }
/* Sort by (2026-10-09): one line like the filter links; the choices open under it. */
.sort-menu { position: relative; font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; }
.sort-menu summary { list-style: none; cursor: pointer; color: var(--subtle); white-space: nowrap; padding: 4px 0; }
.sort-menu summary::-webkit-details-marker { display: none; }
.sort-menu summary span { color: var(--ink); border-bottom: 2px solid var(--accent); }
.sort-menu summary::after { content: " ▾"; color: var(--accent-text); }
.sort-list { position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 30; min-width: 200px; background: var(--surface); border: 2px solid var(--rule); box-shadow: 0 6px 18px var(--shadow); display: flex; flex-direction: column; }
.sort-list a { padding: 10px 14px; color: var(--ink); text-decoration: none; }
.sort-list a:hover { background: var(--bg); }
.sort-list a.current { color: var(--accent-text); }
.person-head > .link-rule { flex: 0 0 auto; }
/* Edit all on People and Roles: each person or role sits in its own box so it is clear where one ends (2026-10-08). */
.sub-cards { display: flex; flex-direction: column; gap: 12px; }
.sub-card { border: 2px solid var(--rule); background: var(--bg); padding: 14px; }
/* Platform: each organization in its own box, its name first and larger than the links (2026-10-12). */
.org-card { background: var(--surface); }
.org-name { margin: 0; font-size: 19px; line-height: 1.3; }
.org-card .chip .as-button { font-size: 10px; }
.set-toggle { display: none; }
/* Settings on a phone: each card folds to its name (2026-10-12). */
@media (max-width: 767px) {
  .set-item .set-label { display: none; }
  .set-item.set-closed > :not(.set-toggle) { display: none; }
  .set-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 0; padding: 16px; font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); cursor: pointer; text-align: left; }
  .set-toggle::after { content: "+"; color: var(--ink); font-size: 18px; line-height: 1; }
  .set-toggle[aria-expanded="true"]::after { content: "−"; }
  .set-item:not(.set-closed) .set-toggle { border-bottom: 0; }
  .settings-section .section-grid { gap: 8px; }
}
.one-edit { margin-top: 12px; padding: 14px; border: 2px solid var(--rule); background: var(--bg); }
.inline-form { display: inline; }
/* In an action row, a form-wrapped button and a plain one (Copy link) sit on the same line (2026-10-08). */
.btn-row > .inline-form { display: inline-flex; align-items: center; }
.btn-row .as-button { align-self: center; }
/* A text button reads exactly like a text link beside it (Pause signups, Copy link, Send booking link; 2026-10-09). */
.link-rule.as-button { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); line-height: normal; }

/* Forms */
form.stack { gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); line-height: 1.35; }
.req { color: var(--accent-text); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; margin: 0; padding: 0 12px;
  /* 16px or more (2026-10-25): an iPhone zooms into any box with smaller text when it is tapped, and stays zoomed after an
     in-place save, so the whole page then pans sideways. */
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--muted); border-radius: 0;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: var(--icon-chevron); background-repeat: no-repeat; background-position: right 12px center; }
/* Text boxes show focus as an orange border; radios and checkboxes have no border, so they keep the focus ring (scan, 2026-10-23). */
.field input:not([type=radio]):not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }
/* A video or sheet embed: its wrapper takes the focus ring while the player has focus (the page script sets has-focus). */
.embed-wrap.has-focus { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.field .help { font-size: 13px; color: var(--subtle); }
/* Fields in a row line up at the top, so an error line under one pushes what follows down instead of lifting it (2026-10-09). */
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
/* Phones: one field per line so labels never wrap into two squeezed columns */
@media (max-width: 479px) { .field-row { grid-template-columns: 1fr; } }
.row-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.length-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.length-row input[hidden] { display: none; }
.length-row:has(input[hidden]) { grid-template-columns: 1fr; }
/* Number fields: typed box first; the native spinner is hidden and small − / + buttons sit at the side */
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-inner-spin-button, .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.number-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.number-row .steppers { display: inline-flex; border: 2px solid var(--rule); }
.number-row .step { width: 36px; height: 40px; padding: 0; font-family: var(--font-label); font-size: 18px; line-height: 1; background: var(--surface); border: 0; color: var(--subtle); cursor: pointer; }
.number-row .step + .step { border-left: 2px solid var(--rule); }
.number-row .step:hover { color: var(--ink); background: var(--bg); }
/* Milestone series (item 77): a collapsible row per series, the levels listed inside */
.milestone-groups details.series { border-bottom: 1px solid var(--rule); }
.milestone-groups details.series summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; }
.milestone-groups details.series summary::-webkit-details-marker { display: none; }
.milestone-groups details.series summary .primary { font-size: 16px; }
.milestone-groups details.series summary .secondary { font-size: 13px; color: var(--subtle); }
.milestone-groups details.series summary::after { content: "+"; font-family: var(--font-label); font-weight: var(--label-weight); color: var(--accent-text); margin-left: auto; }
.milestone-groups details.series[open] summary::after { content: "−"; }
.milestone-groups details.series .list { padding-left: 16px; }
.milestone-groups details.series .list .row:last-child { border-bottom: 0; }
/* A checkbox that sits beside a field in a field-row lines up with the box, not the label */
/* A checkbox beside a field: it gets a label line too, and its box lines up with the input beside it (Brian, 2026-10-05). */
.field-check { justify-content: flex-end; }
.field-check > label:first-child { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.field-check .check { min-height: 52px; display: flex; align-items: center; }
/* Time fields: typed box with a clock button; the picker is three small dropdowns under it */
.time-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
/* Clock and calendar buttons match: bone fill, so they read as something to tap (Brian, 2026-10-09). */
.time-row .clock { height: 44px; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 2px solid var(--muted); color: var(--ink); cursor: pointer; }
.time-row .clock:hover { border-color: var(--ink); }
.time-row .clock[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); }
/* The picker floats under its field so nothing beside or below it moves (2026-10-08). */
.time-field { position: relative; }
.time-pick { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 1.2fr); gap: 10px; padding: 10px; border: 2px solid var(--rule); background: var(--bg); position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 30; width: max(100%, 300px); box-sizing: border-box; box-shadow: 0 6px 18px var(--shadow); }
/* The grid picker (Brian, 2026-10-09): white boxes on bone, like the calendar's day boxes; the pick turns orange. */
.tp-label { margin: 0 0 4px; font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.tp-ap .tp-grid { grid-template-columns: 1fr; }
.tp-cell { height: 36px; padding: 0; border: 1px solid var(--rule); border-radius: 0; background: var(--surface); font-family: var(--font-label); font-size: 14px; font-weight: var(--label-weight); color: var(--ink); cursor: pointer; }
.tp-cell:hover { border-color: var(--ink); }
.tp-cell.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.time-pick[hidden] { display: none; }
/* Date picker: a small month grid under the date box (review 2026-10-06). */
.date-field { position: relative; }
/* The date picker wears the main calendar's look (Brian, 2026-10-09): black month bar, orange month and arrows, bone behind white day boxes, orange today, ghost days around the month. */
.date-pick { position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 30; width: max(min(320px, 100%), 280px); box-sizing: border-box; padding: 8px; border: 2px solid var(--rule); background: var(--bg); box-shadow: 0 10px 28px var(--shadow-soft); }
.date-pick[hidden] { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; background: var(--band-bg); padding: 4px 4px 4px 10px; }
.dp-title { font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-ink); }
.dp-nav { border: 0; background: var(--band-btn-bg); color: var(--band-btn-ink); font-size: 18px; line-height: 1; padding: 3px 12px; cursor: pointer; }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dp-dow { font-family: var(--font-label); font-size: 10px; font-weight: var(--label-weight); color: var(--subtle); text-align: center; padding: 2px 0; }
.dp-day { height: 36px; border: 1px solid var(--rule); border-radius: 0; background: var(--surface); font-family: var(--font-label); font-size: 13px; font-weight: var(--label-weight); color: var(--ink); cursor: pointer; padding: 0; }
.dp-day:hover { border-color: var(--ink); }
.dp-day.ghost { background: transparent; color: var(--subtle); font-weight: 400; }
.dp-day.today { color: var(--accent-text); font-weight: 600; }
.dp-day.on { background: var(--accent); color: var(--on-accent); }
.field .time-pick select { height: 40px; font-size: 16px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; gap: 16px; flex-wrap: wrap; }
.login-form .field input { height: 52px; padding: 0 16px; font-size: 17px; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-top: var(--card-top); }
.card-accent { border: 2px solid var(--rule); border-top: 4px solid var(--accent); }
.card-strong { border: 2px solid var(--ink); }
/* On a dark card the bright accent reads; the darker text accent is for light backgrounds. */
.card h2 { font-size: 22px; }
.card .card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.card-section { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--font-label); font-size: 10px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); padding: 3px 7px; }

/* Tabs */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tabs a { font-family: var(--font-label); font-size: 13px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 10px 2px; border-bottom: 3px solid transparent; color: var(--subtle); white-space: nowrap; }
.tabs a.current { border-bottom-color: var(--accent); color: var(--ink); }

/* Notes */
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); color: var(--subtle); }
.note p { font-size: 15px; line-height: 1.5; white-space: pre-line; }
.note-log { display: flex; flex-direction: column; gap: 8px; }
.note-log .entry { display: flex; flex-direction: column; gap: 2px; }
.note-log .entry p { font-size: 14px; line-height: 1.45; }

/* Lists and tables */
.list { display: flex; flex-direction: column; }
/* A list row that opens in place (Contacts, review 2026-10-06): the summary is the row, the body sits under it. */
.row-details > summary { list-style: none; cursor: pointer; }
.row-details > summary::-webkit-details-marker { display: none; }
.row-details > summary .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.row-details > summary .primary, .row-details > summary .secondary { display: block; }
.row-details > summary::after { content: '▸'; color: var(--subtle); font-size: 12px; margin-left: auto; padding-left: 12px; }
.row-details[open] > summary::after { content: '▾'; }
.row-details > .row-body { padding: 8px 0 16px; border-bottom: 1px solid var(--rule); }
.row-details > .row-body .facts { margin-bottom: 8px; }
.list .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.list .row .primary { font-size: 16px; }
.list .row .secondary { font-size: 13px; color: var(--subtle); }
.list .row .right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.status { font-family: var(--font-label); font-size: 10px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--ink); }
.status-paused, .status-past { color: var(--subtle); border-color: var(--muted); }
.status-ok { border-color: var(--accent); color: var(--accent-text); }
.status-fail { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.status-skip { color: var(--subtle); border-color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
table.data td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.notice { padding: 12px 16px; background: var(--surface); border: 2px solid var(--accent); font-size: 15px; display: flex; align-items: center; gap: 12px; transition: opacity 0.4s; }
.notice > span { flex: 1; }
.notice-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--subtle); cursor: pointer; padding: 0 4px; }
.notice-close:hover { color: var(--ink); }
.notice.fading { opacity: 0; }
.notice-warn { border-color: var(--ink); }

/* Embeds on the All notes page */
.embed { width: 100%; height: 70vh; border: 1px solid var(--rule); background: var(--surface); }

/* Login */
.login-mark { display: flex; justify-content: center; }
.login-mark img { display: block; width: auto; height: 112px; aspect-ratio: 521 / 700; }
/* Phone (2026-10-25): the mark sits just above the label, no extra band. */
@media (max-width: 899px) { .login-panel.stack { gap: 16px; } }
.login-mark + .stack-tight { margin-top: 4px; }
.login-aside { display: none; }

/* Wizard */
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.how-steps { margin: 0; padding-left: 20px; }
.how-steps li { margin: 4px 0; }
.steps span { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.steps span.current { color: var(--accent-text); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.two-col { display: flex; flex-direction: column; gap: 20px; }
/* Settings: sections with a title, cards sized to their content (never stretched to the tallest neighbor) */
.settings-section { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.settings-section + .settings-section { margin-top: 28px; }
.section-title { font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.section-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }

@media (min-width: 900px) {
  :root { --pad: 56px; --header-h: 80px; }
  .phone-only { display: none !important; }
  .desktop-only { display: inherit !important; }
  .app-header .brand img { height: 40px; }
  /* Desktop keeps the labeled back link too (item 78); only the arrow-only form hides */
  .app-header .back:not(:has(.back-label)) { display: none; }
  .app-header .back-label { font-size: 12px; }
  .top-nav { display: flex !important; align-items: center; gap: 36px; margin-left: auto; margin-right: 12px; }
  .top-nav a { font-family: var(--font-label); font-size: 15px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--header-ink); }
  .top-nav a.current { color: var(--header-accent); }
  .app-header > .header-label.phone-only { display: none !important; }
  .app-main { padding: 40px var(--pad) 56px; max-width: 1280px; margin: 0 auto; }
  .shell-member .app-main, .shell-admin .app-main { padding-bottom: 56px; }
  h1 { font-size: 40px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns that close their gaps: cards flow into whichever column is shorter (review 2026-10-06). */
  .section-grid { display: block; column-count: 2; column-gap: 20px; }
  .section-grid > * { break-inside: avoid; margin-bottom: 20px; }
  .two-col { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; }
  .two-col.narrow-side { grid-template-columns: 300px minmax(0, 1fr); }
  .two-col.main-first { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .btn.btn-fit { width: auto; align-self: flex-start; }
  /* Login: black aside with the mark, form on the right */
  .login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 560px; min-height: calc(100vh - var(--header-h) - 96px); }
  .login-aside { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; padding: 56px; margin: 0 24px 0 0; background: var(--strong); color: var(--bg); text-align: center; border-top: 4px solid var(--accent); }
  .login-aside img { width: 240px; height: 320px; object-fit: contain; }
  .login-aside .login-aside-line { font-family: var(--font-head); text-transform: var(--head-transform); font-weight: var(--head-weight); font-size: 34px; line-height: 1.1; }
  .login-panel { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
  .login-panel h1 { font-size: 44px; }
  .login-panel p.intro { font-size: 18px; }
  .login-mark { display: none; }
  .login-panel .btn { align-self: flex-start; padding: 16px 36px; }
  /* Long settings lists (session types) run in columns on desktop instead of one tall stack. */
  .list.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
  .login-contact { display: block; }
}

/* Feature switches: five groups, a toggle per feature, an info icon that shows a one-line explanation on tap or hover */
.feature-groups { display: flex; flex-direction: column; gap: 20px; }
/* The locked Features view: grouped lines with On / Off; Off lines sit back so what is on reads at a glance. */
.feature-status { display: grid; grid-template-columns: 1fr; gap: 16px 32px; }
.feature-status-group { display: flex; flex-direction: column; gap: 2px; }
.feature-status-group summary { margin-bottom: 6px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.feature-status-group summary::-webkit-details-marker { display: none; }
/* Feature groups start folded on every screen; the Show / Hide cue says they open (review 2026-10-06). */
.feature-status-group summary::after { content: '▾ Hide'; font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 1px; margin-left: 10px; }
.feature-status-group:not([open]) summary::after { content: '▸ Show'; }
.feature-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.feature-line.off { color: var(--subtle); }
.feature-line .tag { white-space: nowrap; flex-shrink: 0; }
.feature-line .tag.on { background: var(--accent); color: var(--on-accent); }
/* Two flowing columns, not a grid: a folded group leaves no hole beside its neighbour. */
@media (min-width: 900px) { .feature-status { display: block; column-count: 2; column-gap: 32px; } .feature-status-group { break-inside: avoid; margin-bottom: 16px; } }
.feature-group { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-group summary { padding: 0; margin-bottom: 4px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.feature-group summary::-webkit-details-marker { display: none; }
.feature-group summary::after { content: '▾ Hide'; font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 1px; margin-left: 10px; }
.feature-group:not([open]) summary::after { content: '▸ Show'; }
.switch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.switch-row:last-child { border-bottom: 0; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); cursor: pointer; min-width: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-track { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 12px; background: var(--rule); transition: background 0.15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform 0.15s; box-shadow: 0 1px 2px var(--shadow-knob); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { overflow-wrap: anywhere; }
.info { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--subtle); background: transparent; color: var(--subtle); font-family: var(--font-body); font-style: italic; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.info[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); }
.info-text { grid-column: 1 / -1; margin: 0 0 2px 54px; font-size: 13px; line-height: 1.45; color: var(--subtle); }
.info-text[hidden] { display: none; }
.info-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
label .info-wrap { vertical-align: middle; margin-left: 4px; }
label .info-wrap .info-text { text-transform: none; letter-spacing: 0; font-weight: 400; display: block; }
.info-wrap .info-text { flex-basis: 100%; margin: 0; }
.check-row .info-wrap { display: inline-flex; }

/* Dashboard button: top right once logged in; the wordmark goes out to the public site */
.dashboard-link { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); text-decoration: none; border: 1.5px solid var(--accent); padding: 7px 12px; white-space: nowrap; flex-shrink: 0; }
.dashboard-link:hover, .dashboard-link:focus-visible { background: var(--accent); color: var(--on-accent); outline: 0; }

/* Locked (read-only) details: label/value pairs; Edit opens the form, Save locks it again */
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field input[readonly] { background: var(--bg); color: var(--subtle); }
.list .row .row-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; font-family: var(--font-label); font-size: 10px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); border: 1px solid var(--rule); }
/* The staff member's own record (Brian, 2026-10-13): the You tag in solid accent orange so it stands out in a list. */
.tag.you { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.collapsed-dogs { padding-top: 8px; border-top: 1px solid var(--rule); }
/* Dog page header: round picture, name beneath, one info line, chips; the tabs follow it */
.dog-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 4px; }
.dog-head h1 { line-height: 1.1; }
.dog-head .dog-line { color: var(--subtle); font-size: 15px; line-height: 1.45; }
.dog-head .chips { margin-top: 2px; }
.two-col.main-first { flex-direction: column; }
/* Training cards: the name is the way into the dog's page; links at the foot share one baseline */
a.dog-link { color: inherit; text-decoration: none; }
a.dog-link:hover h2 { color: var(--accent-text); }
.card .card-foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; padding-top: 6px; }

/* Documents: categories as file-folder tabs across a rule; the row scrolls sideways on phones */
.folder-tabs { display: flex; gap: 4px; align-items: flex-end; border-bottom: 2px solid var(--ink); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 4px; }
.folder-tabs::-webkit-scrollbar { display: none; }
/* Phones: the tab row only ever moves sideways; a swipe on it never drags the page or bounces (item 72) */
.folder-tabs { overflow-y: hidden; touch-action: pan-x; overscroll-behavior: contain; }
.folder-tabs a { flex-shrink: 0; font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--subtle); padding: 10px 14px 8px; margin-bottom: -2px; border: 2px solid var(--rule); border-bottom: 2px solid var(--ink); border-radius: 6px 6px 0 0; background: transparent; white-space: nowrap; }
.folder-tabs a.current { color: var(--ink); background: var(--surface); border-color: var(--ink); border-bottom-color: var(--surface); }
.folder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* File pickers: the browser button and file name sit on the field's vertical center */
.field input[type="file"] { height: auto; min-height: 44px; padding: 8px 12px; line-height: 1.4; display: flex; align-items: center; }
.field input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 10px; font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }

/* Validation: an invalid field outlines red and shows its helper line under it */
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid label { color: var(--danger); }
.help-error { font-size: 13px; color: var(--danger); }

/* Photos: round profile pictures; a grid of photos with their details under each */
.avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--rule); }
.avatar-sm { width: 44px; height: 44px; }
.avatar-lg { width: 120px; height: 120px; }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-label); font-weight: var(--label-weight); color: var(--subtle); }
.avatar-lg.avatar-empty { font-size: 40px; }
.with-avatar { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Document preview card (desktop): the PDF, image or embeddable link inline */
.doc-preview iframe { width: 100%; height: 560px; border: 1px solid var(--rule); background: var(--surface); }
.doc-preview img { width: 100%; height: auto; border: 1px solid var(--rule); }
/* Tapping a picture offers View / Change profile picture (polish 69) */
.avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; display: inline-flex; }
.avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; min-width: 200px; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 6px 18px var(--shadow); }
.avatar-menu[hidden] { display: none; }
.avatar-menu a { font-family: var(--font-label); font-size: 12px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 10px 14px; }
.avatar-menu a + a { border-top: 1px solid var(--rule); }
.avatar-menu a:hover { background: var(--bg); }
/* Profile picture tab: a row of photos to choose from */
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-row .pick { display: inline; }
.pick-row .pick button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 50%; display: inline-flex; }
.pick-row .pick button img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.pick-row .pick.current button { border-color: var(--accent); cursor: default; }
.capture { display: flex; flex-direction: column; gap: 10px; }
.capture-thumb { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--rule); }
.recorder { display: flex; flex-direction: column; gap: 10px; background: var(--strong); padding: 12px; }
.recorder video { width: 100%; max-height: 60vh; background: var(--video); }
.recorder .countdown { font-family: var(--font-label); font-size: 20px; font-weight: 700; color: var(--video-ink); letter-spacing: 0.04em; min-width: 64px; }
.photo.clip video { width: 100%; aspect-ratio: 4 / 3; background: var(--video); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
/* Profile photos strip (item 22): three on a phone, six on desktop, newest first; See all opens the gallery. */
.photo-grid.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-grid.strip .photo-thumb:nth-child(n+4) { display: none; }
.photo-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule); display: block; }
@media (min-width: 900px) { .photo-grid.strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } .photo-grid.strip .photo-thumb:nth-child(n+4) { display: block; } }
.section-rule { border: 0; border-top: 3px solid var(--accent); margin: 12px 0 0; height: 0; }
.section-heading { font-family: var(--font-head); font-size: 26px; text-transform: var(--head-transform); margin: 0; line-height: 1.1; }
.dog-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dog-card .primary { font-size: 17px; font-weight: 600; }
.dog-card .secondary { font-size: 13px; color: var(--subtle); }
.dog-card .link-rule { white-space: nowrap; }
.dog-actions { margin: -8px 0 0; }
.photo { margin: 0; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--rule); padding: 8px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { display: flex; flex-direction: column; gap: 6px; }
.photo figcaption p { font-size: 14px; }
.photo .btn-row .field { flex: 1; min-width: 140px; }
.photo .btn-row .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.photo .btn-row { position: relative; align-items: flex-end; }

/* Note actions (Edit · Delete) sit on one baseline at one size */
.note-meta .btn-row { gap: 14px; align-items: baseline; }
.note-meta .btn-row .link-rule, .note-meta .btn-row .as-button { font-size: 11px; line-height: 1; padding-bottom: 2px; }
.note-meta .inline-form { display: inline-flex; align-items: baseline; }

/* Button pairs: a primary (or outlined) action with Cancel beside it as a matching outlined block, same height */
.btn-pair { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.btn-pair .btn { padding: 12px 18px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

/* Filter rows: the button lines up with the fields beside it */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-row .btn { height: 44px; padding: 0 16px; font-size: 13px; display: inline-flex; align-items: center; }

/* Note actions (Edit · Delete) sit on one baseline at one size */
.note-meta .btn-row { gap: 14px; align-items: baseline; }
.note-meta .btn-row .link-rule, .note-meta .btn-row .as-button { font-size: 11px; line-height: 1; padding-bottom: 2px; }
.note-meta .inline-form { display: inline-flex; align-items: baseline; }

/* Button pairs: a primary (or outlined) action with Cancel beside it as a matching outlined block, same height */
.btn-pair { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.btn-pair .btn { padding: 12px 18px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

/* Filter rows: the button lines up with the fields beside it */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-row .btn { height: 44px; padding: 0 16px; font-size: 13px; display: inline-flex; align-items: center; }
/* The Manage tabs link sits at the far right of the tab row, on the rule, styled as a plain link rather than a tab */
.folder-tabs .folder-tabs-end { margin-left: auto; align-self: flex-end; padding: 0 4px 10px 12px; flex-shrink: 0; display: inline-flex; }
.folder-tabs .folder-tabs-end a { flex-shrink: 0; margin: 0; padding: 0 0 2px; border: 0; border-bottom: 2px solid var(--accent); background: none; color: var(--ink); font-size: 11px; letter-spacing: 0.08em; }
/* A stacked row inside a list keeps its children full width (platform orgs, manage tabs, session types) */
.list .row.row-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.field .counter { font-family: var(--font-label); font-size: 11px; color: var(--subtle); text-align: right; }

/* Phase 3 consent switches: the wording sits under its switch, lined up with the label. */
.consent-item .consent-text { margin: 2px 0 0 30px; }
.consent-item .help { margin: 2px 0 0 30px; }
.consent-item .consent-sub { margin: 10px 0 0 30px; }
.list .row.dog-row { align-items: flex-start; }
/* Second-level tabs (Time blocks · Booking links · Holds) as small pills under the page tabs (2026-10-13). */
.tabs.tabs-sub { border-bottom: 0; gap: 8px; flex-wrap: wrap; }
.tabs.tabs-sub a { font-size: 11px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.tabs.tabs-sub a.current { background: var(--ink); border-color: var(--ink); color: var(--surface); }
/* The event you are in reads in orange on its day, so it stands out among the others (2026-10-13). */
.cal-ev.is-mine { color: var(--accent-text); font-weight: 600; }
/* Hide (brief 10.8): a hidden card is out of sight; while arranging each card shows Hide beside Move; "Show hidden"
   brings hidden cards back, dimmed, each with Show. */
.sort-item.is-hidden { display: none; }
.sortable.showing-hidden > .sort-item.is-hidden { display: block; opacity: 0.55; }
.hide-card, .unhide-card { display: none; position: absolute; top: 10px; z-index: 2; align-items: center; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; cursor: pointer; }
.hide-card { right: 92px; }
.unhide-card { right: 10px; }
.sortable.arranging > .sort-item:not(.is-hidden) .hide-card { display: inline-flex; }
.sortable.showing-hidden > .sort-item.is-hidden .unhide-card { display: inline-flex; opacity: 1; }
.sortable.showing-hidden > .sort-item.is-hidden .drag-handle, .sortable.showing-hidden > .sort-item.is-hidden .hide-card { display: none; }
.hide-card:hover, .unhide-card:hover, .hide-card:focus-visible, .unhide-card:focus-visible { color: var(--accent-text); border-color: var(--accent); }
/* Settings on a phone (2026-10-13): with the card's name on the fold button, its top-right link (Edit, Add...) moves to
   the bottom of the card, where the other cards keep theirs (Run setup again, Platform admin). */
@media (max-width: 767px) {
  .settings-section .set-item:not(.set-closed) .card { display: flex; flex-direction: column; }
  .settings-section .set-item .card > .card-title { order: 99; margin: 4px 0 0; justify-content: flex-start; }
}
/* Invite shortcut and QR codes (brief 11.6, 2026-10-14). The code is drawn in currentColor: ink on the surface, with its own quiet zone. */
.invite-kind { text-decoration: none; color: var(--ink); }
.invite-kind .primary { font-family: var(--font-label); font-weight: var(--label-weight); letter-spacing: 0.06em; text-transform: uppercase; }
.invite-qr > summary { list-style: none; cursor: pointer; display: inline-block; }
.invite-qr > summary::-webkit-details-marker { display: none; }
.qr-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.qr { display: block; width: 240px; max-width: 100%; height: auto; color: var(--ink); background: var(--surface); }
.invite-kind .row-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Sent from this demo (2026-10-14): each message as it would have gone out. */
.demo-mail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.demo-banner > a { color: inherit; text-decoration: underline; }
/* Join link (2026-10-14): the link itself, spelled out so it can be read and typed. */
.join-link { font-family: var(--font-label); font-weight: var(--label-weight); overflow-wrap: anywhere; }
.join-card { display: flex; align-items: center; gap: 16px; }
.qr.qr-small { width: 110px; flex-shrink: 0; }
/* Profile (2026-10-15): Your dogs and Account start with a quiet label, not a page break. */
.profile-section { margin-top: 20px; }

/* Document page (2026-10-16): the document shows inside the app, under its title and the Back link. */
.doc-view { margin-top: 12px; }
.doc-pages { display: flex; flex-direction: column; gap: 12px; }
.doc-page { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--rule); }
.doc-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.doc-frame { display: block; width: 100%; height: 75vh; border: 1px solid var(--rule); background: var(--surface); }

/* Invite & join card (2026-10-16): the join code at profile-picture size; tapping it shows it full screen to scan. */
.qr-thumb { flex-shrink: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.qr.qr-thumb-code { width: 72px; }
.qr-full { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); }
.qr-full:popover-open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.qr-full-org { font-family: var(--font-head); text-transform: var(--head-transform); font-weight: var(--head-weight); font-size: 28px; line-height: 1.1; margin: 0; }
.qr.qr-full-code { width: min(80vw, 56vh); }
.qr-full .small-text { word-break: break-all; max-width: 32ch; }

/* Primary action on the title row (brief 11.8): right-aligned beside the title; wraps below it, left-aligned, when there is no room. */
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.title-row h1 { min-width: 0; margin-right: auto; }
/* Title-row icons (Brian, 2026-10-24): the (i) and the "⋯" sit together at the right end of the title row, after the
   primary action; on a phone with a primary action, the icons stay beside the title and the action drops below. */
.title-icons { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; margin-right: -10px; }
.title-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--subtle); cursor: pointer; }
.title-icon:hover, .title-icon[aria-expanded="true"] { color: var(--accent-text); }
.title-row .title-action { order: 2; }
.title-row .title-icons { order: 3; }
/* The helper sentence is the title row's last line, right under the title; on a phone it comes before a primary action. */
.title-row .page-help-text { order: 5; flex-basis: 100%; margin: 0; }
@media (max-width: 899.98px) { .title-row:has(.title-icons) .title-action { order: 4; flex-basis: 100%; } .title-row .page-help-text { order: 3; } }
.dog-head { position: relative; }
.title-icons.head-corner { position: absolute; top: 0; right: 0; }
/* The "⋯" sheet (brief 12.9): from the bottom on a phone, a small box in the middle on desktop. */
.options-sheet { margin: auto auto 0; width: min(100%, 440px); max-width: 100%; border: 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); box-shadow: 0 -4px 24px var(--shadow-soft); }
.options-sheet:popover-open { display: flex; flex-direction: column; }
.options-sheet::backdrop { background: var(--shadow-soft); }
.options-sheet .label-small { margin: 0 0 4px; }
.options-sheet .show-hidden-row { margin: 0; }
.options-item { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); font-family: var(--font-label); font-size: 14px; font-weight: var(--label-weight); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.options-item.options-close { border-bottom: 0; color: var(--subtle); }
@media (min-width: 900px) { .options-sheet { margin: auto; padding-bottom: 16px; } }
.title-action .btn-outline { padding: 8px 12px; font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }

/* Phones (2026-10-25): every other text box and menu is 16px too, so tapping one never zooms the page in. */
@media (max-width: 899.98px) {
  .demo-switch select, .side-switch select.header-label, .filter-row input, .filter-row select, input[type=search] { font-size: 16px; }
  .side-switch select.header-label { letter-spacing: 0.04em; }
}

/* Profile picture framer (2026-10-25): the photo under a round window; drag to move, slide or pinch to zoom. */
.crop { display: grid; gap: 10px; justify-items: start; }
.crop[hidden] { display: none; }
.crop-view { position: relative; width: min(280px, 100%); aspect-ratio: 1; overflow: hidden; background: var(--ink); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-view:active { cursor: grabbing; }
.crop-view:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.crop-img { position: absolute; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px color-mix(in srgb, var(--ink) 55%, transparent); border: 2px solid var(--bg); pointer-events: none; }
.crop-zoom-field { width: min(280px, 100%); margin: 0; }
.crop-zoom { width: 100%; font-size: 16px; accent-color: var(--accent); }

/* A link inside a sentence (Brian, 2026-10-25): the sentence's own type, with the orange line under it. */
.link-inline { font: inherit; color: inherit; text-transform: none; letter-spacing: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sample-banner .link-inline { text-decoration-color: currentColor; }

/* Picker labels (2026-10-25): the file inputs stay in the page, unseen, so their labels open them natively on phones. */
.capture-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

/* Profile picture card (2026-10-25): the round picture with a camera badge opens the sheet. */
.pp-head { display: flex; align-items: center; gap: 16px; }
.pp-head .avatar-btn { position: relative; flex-shrink: 0; }
.pp-badge { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); border: 3px solid var(--surface); }
.pp-head .small-text { margin: 0; }
.pp-form:not(:has(.crop:not([hidden]))) { gap: 0; }
.profile-picture .pick-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.profile-picture .pick-row .pick button img { width: 56px; height: 56px; }
.sheet-picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sheet-picks .pick button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; display: inline-flex; }
.sheet-picks .pick button img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sheet-form { margin: 0; }
.options-item.options-danger { color: var(--danger); }
label.options-item { box-sizing: border-box; }
/* One switch that saves as it flips. */
.switch-form { display: grid; gap: 4px; }
.switch-form .switch-row { border-bottom: 0; padding: 4px 0; }
.switch-form .small-text { margin: 0; }
.card-more { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -12px -10px -12px 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
/* A row's "⋯" sits at the end of its buttons; a photo's at the end of its caption. */
.btn-row .card-more, .btn-pair .card-more, .right .card-more { margin: 0; }
.right:has(.card-more) { display: flex; align-items: center; gap: 4px; }
.photo-more { display: flex; justify-content: flex-end; margin: -8px 0 0; }
