/* The step flow (/start/), the account page and the admin page share this sheet. Tokens and base
   classes from tokens.css; nav from home-hero.css; .wrap, .step-num and .icon from home-sections.css;
   footer from home-page.css. */

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pitch above the first screen (signed out visitors only) */
.start-hero { padding: 48px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.start-hero h1 { margin-top: 16px; }
.start-hero .lede { max-width: 720px; margin-top: 24px; }
.start-hero .ready { max-width: 720px; margin-top: 16px; color: var(--ink); }
.start-hero .hero-signin { margin-top: 8px; }
.points {
  list-style: none; margin: 64px 0 0; padding: 48px; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  background: var(--paper); border-radius: var(--radius-card); text-align: left;
}
.points li { display: flex; flex-direction: column; gap: 24px; }
.point-heading { font-size: 26px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.point-body { margin-top: 8px; font-size: 18px; line-height: 1.5; color: var(--graphite); }
.featured-note { margin-top: 24px; }

/* Stage and screens */
.flow { margin: 48px auto 128px; }
.flow.flow-top { margin-top: 48px; }
.stage { position: relative; min-height: 320px; }
.screen { width: 100%; }
@keyframes screen-fwd { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes screen-back { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
.screen[data-dir="fwd"] { animation: screen-fwd 260ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.screen[data-dir="back"] { animation: screen-back 260ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .screen { animation: none !important; } }

.screen-card { max-width: 760px; margin: 0 auto; padding: var(--card-pad); background: var(--paper); border-radius: var(--radius-card); }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.run-head .step-label { color: var(--graphite); }
.step-count { font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.progress { height: 4px; margin-top: 12px; border-radius: 2px; background: var(--numeral-circle); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 2px; background: var(--signal); transition: width 260ms ease; }
.step-title { margin-top: 32px; color: var(--ink); }
.step-title:focus { outline: none; }
.step-hint { margin-top: 8px; }
.step-hint strong { font-weight: 500; color: var(--ink); }
.screen-card .fields { margin-top: 24px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
.fields > .wide { grid-column: 1 / -1; }
.form-err { margin-top: 16px; }
.add-row { margin-top: 16px; }
.policy-note a { text-decoration: underline; text-underline-offset: 3px; }

.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.actions .back { order: 1; }
.actions .continue { order: 2; }
.actions .skip { order: 3; }
.actions .saved { order: 4; margin-left: auto; }
.actions .btn:disabled { cursor: default; opacity: 0.6; }
.btn-panel { background: var(--panel); }

/* For coaches (/coaches/): the step label above the pitch headline, the line under the buttons on the first step,
   links inside a message, and a shorter box for the optional note */
.start-hero .step-label { color: var(--graphite); }
.after-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; }
.after-actions .caption { max-width: 640px; }
.coaches .step-hint a { text-decoration: underline; text-underline-offset: 3px; }
.flow.coaches textarea { min-height: 96px; }
/* The caption above the step while a message written on a player's file waits to be sent. Same width as the card under it. */
.flow .arrival { max-width: 760px; margin: 0 auto 12px; }

/* Fields */
.field { display: flex; flex-direction: column; min-width: 0; }
fieldset.field { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.check), .field > legend, .lbl {
  display: block; margin: 0 0 8px; padding: 0; font-size: 16px; line-height: 1.4; color: var(--ink);
}
.field > legend { float: left; width: 100%; }
.field > legend + * { clear: left; }
.req { margin-left: 8px; font-size: 14px; color: var(--graphite); white-space: nowrap; }
.check .req { display: block; margin: 2px 0 0; }
.hint { margin-top: 8px; }
.err { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--down); }
.sub-h { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.sub-h-rule { padding-top: 24px; border-top: 1px solid var(--hairline); }
.source-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; min-height: 44px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hairline); }

.flow input[type="text"], .flow input[type="email"], .flow input[type="tel"], .flow input[type="url"],
.flow select, .flow textarea {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
  border: 0; border-radius: var(--radius-input); background: var(--panel);
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.flow select {
  padding-right: 36px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233c3860' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.flow select:has(option[value=""]:checked) { color: var(--graphite); }
.flow select option { color: var(--ink); }
.flow textarea { height: auto; min-height: 144px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.flow ::placeholder { color: #9a9a9a; opacity: 1; }
.flow :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.flow input:focus-visible, .flow select:focus-visible, .flow textarea:focus-visible { outline-offset: 0; }
.flow [aria-invalid="true"] { outline: 1px solid var(--down); outline-offset: 0; }
.flow [data-focus]:focus, .flow [data-focus]:focus-visible { outline: none; }
.flow .turnstile-field { min-height: 0; }
.flow .turnstile:empty { display: none; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pair-city { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.unit-input { position: relative; }
.flow .unit-input input[type="text"] { padding-right: 52px; font-variant-numeric: tabular-nums; }
.unit-input .unit {
  position: absolute; top: 0; right: 14px; bottom: 0; display: flex; align-items: center;
  font-size: 14px; color: var(--graphite); pointer-events: none;
}
.range-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.range-pair .to { font-size: 14px; color: var(--graphite); }
/* Profile picture step: the picture in the page's 4:5 frame, the picker beside it */
.photo-pick { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 24px; align-items: start; }
.photo-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-panel); overflow: hidden; background: var(--panel); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.photo-pick > .err { grid-column: 1 / -1; }
/* While a picked photo is placed in the crop editor (site/assets/photo.js), the frame grows to 320px */
.photo-pick.editing { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
/* Admin review card: the current picture and Remove */
.photo-card .photo-pick { grid-template-columns: 160px minmax(0, 1fr); }
.lines { display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; align-items: center; gap: 16px; }
.line input { flex: 1; min-width: 0; }

/* Position chips: checkbox under a pill face. Selected gets the 1px signal outline. */
.chips { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: block; min-width: 0; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-face {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 8px;
  border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--panel);
  font-size: 15px; line-height: 1; color: var(--ink); white-space: nowrap;
}
.chip input:checked + .chip-face { border-color: var(--signal); }
.chip input:checked + .chip-face::before {
  content: ""; width: 9px; height: 5px; margin-top: -3px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg);
}
.chip input:focus-visible + .chip-face { outline: 2px solid var(--signal); outline-offset: 2px; }
.chip input[aria-invalid="true"] + .chip-face { border-color: var(--down); }

/* Checkboxes and radios: native input under a 24px box, whole row is the target */
.checks, .radios { display: flex; flex-direction: column; }
.check {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0;
  font-size: 16px; line-height: 1.5; color: var(--ink); cursor: pointer;
}
.check input { position: absolute; top: 10px; left: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check .box { position: relative; flex: none; width: 24px; height: 24px; border: 1px solid transparent; border-radius: var(--radius-input); background: var(--panel); }
.check input:checked + .box { border-color: var(--signal); }
.check input:checked + .box::after {
  content: ""; position: absolute; top: 6px; left: 6px; width: 10px; height: 5px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg);
}
.radio .box { border-radius: 50%; }
.radio input:checked + .box::after { top: 7px; left: 7px; width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--ink); transform: none; }
.radio-sub { display: block; }
.check input:focus-visible + .box { outline: 2px solid var(--signal); outline-offset: 2px; }
.check input[aria-invalid="true"] + .box { border-color: var(--down); }
.check-hint { margin-top: 0; padding-left: 36px; }

.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 14px; line-height: 1.4; color: var(--graphite); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }
.link-btn:disabled { cursor: default; opacity: 0.6; }

/* The file page: name, the section list, send for review */
.file-page { max-width: 760px; margin: 0 auto; }
.file-head { display: flex; flex-direction: column; align-items: flex-start; }
.file-head .step-label { color: var(--graphite); }
.file-head h1 { margin-top: 16px; }
.file-head h1:focus { outline: none; }
.file-head .body { margin-top: 16px; max-width: 640px; }
.file-head .body a { text-decoration: underline; text-underline-offset: 3px; }
.file-meta { margin-top: 12px; }
.see-page { margin-top: 24px; }
.section-list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.section-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 24px;
  background: var(--paper); border-radius: var(--radius-panel); color: var(--ink); transition: background-color 160ms ease;
}
.section-row:hover, .section-row:focus-visible { background: var(--numeral-circle); outline: none; }
.section-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.section-title { font-weight: 500; }
.pill {
  display: inline-flex; align-items: center; flex: none; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: var(--panel); font-size: 14px; line-height: 1; white-space: nowrap; color: var(--graphite);
}
.pill-in_progress { color: var(--ink); }
.pill-done { color: var(--ink); border-color: var(--signal); }
.review-card { margin-top: 24px; padding: var(--card-pad); background: var(--paper); border-radius: var(--radius-card); }
.review-card .card-heading { color: var(--ink); }
.review-card .body { margin-top: 8px; }
.review-card .btn { margin-top: 24px; }
.file-foot { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.file-foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
/* The end of a run opened from the preview: Back to my page is the one button, Back to my file a caption link under it. */
.end-file-link { flex-basis: 100%; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; background: var(--panel); border-radius: var(--radius-panel); }
.next-steps .step-num { margin-right: 0; }
.next-steps p { font-size: 16px; line-height: 1.5; color: var(--ink); }

/* Account and admin lists */
.list-card { max-width: 760px; margin: 0 auto; padding: var(--card-pad); background: var(--paper); border-radius: var(--radius-card); }
.list-card + .list-card { margin-top: 24px; }
.list-card .card-heading { color: var(--ink); }
.list-card > .body { margin-top: 8px; }
.rows { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.row-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; background: var(--panel); border-radius: var(--radius-panel); }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-title { font-size: 18px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.row-actions { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.row-actions .btn { height: 40px; padding: 0 20px; background: var(--paper); }
.row-actions .btn-primary { background: var(--signal); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 16px; margin-top: 16px; }
.kv .k { font-size: 14px; line-height: 1.5; color: var(--graphite); }
.kv .v { font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.kv .v a { text-decoration: underline; text-underline-offset: 3px; }
.events { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; }
.events li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--hairline-on-white); font-size: 14px; line-height: 1.5; }
.events li:first-child { border-top: 0; }
.events .d { color: var(--graphite); font-variant-numeric: tabular-nums; }
/* Changes on the page, on the review page: date, what changed, Undo. The button is 44px to tap. */
.changes-card .events li.edit-row { grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; }
.changes-card .edit-row .btn { height: 44px; padding: 0 20px; background: var(--canvas); }
.changes-card .sub-h { margin-top: 16px; }
.events .e { color: var(--ink); }
.admin-note { margin-top: 24px; }
.status-group { margin-top: 32px; }
.status-group:first-child { margin-top: 0; }
.status-group h3 { color: var(--ink); }
.danger { color: var(--graphite); }
.page-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Messages under the Coach access card on /account/: one row a message, never its text */
.msg-head { margin-top: 32px; }
.msg-rows { margin-top: 12px; }
.msg-row { gap: 4px; }
.msg-name { color: var(--ink); font-weight: 500; }

/* Admin board: five status columns on desktop, tabs on phones */
.file-page.admin-board { max-width: 1200px; }
.admin-board .list-card { max-width: none; }
.admin-board > .list-card { margin-bottom: 24px; }
.ktabs { display: none; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { background: var(--paper); border-radius: var(--radius-card); padding: 16px; }
.kcol-head { font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--ink); padding: 4px 4px 0; }
.kcount { color: var(--graphite); font-weight: 400; font-variant-numeric: tabular-nums; }
.kcards { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.kcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--panel); border-radius: var(--radius-panel); min-width: 0; }
.kcard .row-title { font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.kcard .row-title:hover { text-decoration: underline; }
.kcard .row-actions { margin-top: 6px; gap: 8px; }
.kcard .row-actions .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.kempty { padding: 4px; }
.kdrafts { margin-top: 24px; }
.kdrafts .kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* People (coach and scout verification). The columns, tabs, cards and list cards above are reused; these are the
   Files and People switch in the head of both views, the waiting badge, the search box and the person view. */
.view-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.vtab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1; white-space: nowrap; }
.vtab[aria-current="page"] { background: var(--panel); outline: 1px solid var(--signal); outline-offset: -1px; }
.vtab:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--highlight); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.kanban.kanban-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The search box sits on the white page, so its field is paper (a field on a paper card is white). Its label is read
   by screen readers only; the placeholder says what it matches. */
.people-search { max-width: 480px; margin-bottom: 24px; }
.people-search input[type="text"] { background: var(--paper); }
.people-search .field > label:not(.check) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.people .kanban + .list-card { margin-top: 24px; }
/* The name link covers its whole card, so a tap anywhere on a card opens the person (the Open button goes to the same place). */
.people .kcard { position: relative; }
.people .kcard .row-title::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-panel); }
.people .kcard .caption, .people .row-card .caption, .people .row-card .row-title { overflow-wrap: anywhere; }
.people .kdrafts .kcards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.row-meta { display: flex; flex-direction: column; gap: 4px; }
.people .row-card .row-actions .btn { height: 44px; }
.people .list-card > .fields { margin-top: 24px; }
.people textarea { min-height: 96px; }
.person .file-head { margin-bottom: 24px; }
.people .back-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.people .file-head h1, .people .file-head .body, .people .file-head .caption, .people .file-head .err { overflow-wrap: anywhere; }
.people .file-head .flash { margin-top: 12px; color: var(--ink); }
.people .file-head .err { margin-top: 12px; font-size: 16px; }
.people .domain-line { margin-top: 16px; overflow-wrap: anywhere; }
.people .host, .people .note-text { overflow-wrap: anywhere; }
.people .note-text { white-space: pre-line; }
.check-steps { margin: 16px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.check-steps li { padding-left: 4px; overflow-wrap: anywhere; }
.check-steps li::marker { color: var(--graphite); font-variant-numeric: tabular-nums; }
.people .events li { grid-template-columns: 128px minmax(0, 1fr); }
.events .e .sub { display: block; color: var(--graphite); overflow-wrap: anywhere; white-space: pre-line; }
.domain-form { margin-top: 24px; }
.domain-form .fields { margin-top: 16px; }
.domain-form .page-actions { margin-top: 24px; }
/* Held messages on a person: the text keeps its line breaks, and one long word never pushes the page sideways */
.people .held-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.people .held-msg .under-18 { color: var(--ink); }

@media (max-width: 720px) {
  .start-hero { padding-top: 24px; }
  .photo-pick, .photo-card .photo-pick, .photo-pick.editing { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .photo-frame { width: 160px; }
  .photo-side .btn { white-space: nowrap; }
  .ktabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
  .ktabs::-webkit-scrollbar { display: none; }
  .ktab { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; white-space: nowrap; cursor: pointer; }
  .ktab[aria-selected="true"] { background: var(--panel); outline: 1px solid var(--signal); outline-offset: -1px; }
  .kanban { display: block; }
  .kcol { display: none; padding: 12px; }
  .kcol.is-active { display: block; }
  .kcol-head { display: none; }
  .kcards { margin-top: 0; }
  .kcard .row-actions .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .start-hero h1 { margin-top: 8px; }
  .start-hero .lede { margin-top: 16px; }
  .points { margin-top: 32px; padding: 4px 20px; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .points li { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px 0; }
  .points li + li { border-top: 1px solid var(--hairline); }
  .points .icon { width: 28px; height: 28px; flex: 0 0 28px; }
  .point-heading { font-size: 17px; line-height: 1.35; }
  .point-body { margin-top: 4px; font-size: 15px; line-height: 1.45; }
  .featured-note { margin-top: 16px; }

  .flow { margin: 24px auto 72px; }
  .flow.has-bar { margin-bottom: 132px; }
  .screen-card { padding: 20px 20px 24px; }
  .step-title { margin-top: 20px; }
  .screen-card .fields { margin-top: 20px; }
  .fields { gap: 20px 12px; }
  .fields > * { grid-column: 1 / -1; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .source-head { margin-top: 0; padding-top: 12px; }

  /* Continue pinned to the bottom of the phone screen */
  .actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--hairline-on-white);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px;
  }
  .actions .back { grid-column: 1; grid-row: 1; background: var(--paper); padding: 0 18px; height: 48px; }
  .actions .continue { grid-column: 2; grid-row: 1; width: 100%; height: 48px; }
  /* 44px to tap, laid out as 32px: the negative margins keep the bar as tall as it was */
  .actions .skip { grid-column: 1; grid-row: 2; justify-content: flex-start; min-height: 44px; margin: -6px 0; padding-left: 8px; }
  .actions .saved { grid-column: 2; grid-row: 2; margin: 0; align-self: center; text-align: right; font-size: 12px; min-height: 0; }
  .actions .saved:empty { display: none; }
  .screen-card:has(.actions .continue) { padding-bottom: 24px; }
  .actions > .btn-primary:has(+ .end-file-link) { grid-column: 1 / -1; width: 100%; height: 48px; }
  .end-file-link { grid-column: 1 / -1; justify-content: center; margin: -6px 0; }
  .coaches .actions > .btn-primary:only-child { grid-column: 1 / -1; }
  /* A message screen that ends on two buttons, back to the player's file and the account, stacks them in the bar */
  .coaches .actions > a.btn-primary:first-child:not(:only-child), .coaches .actions > a.btn-panel:last-child:not(:only-child) { grid-column: 1 / -1; }
  .coaches .actions > a.btn-panel:last-child:not(:only-child) { background: var(--paper); }
  .after-actions { margin-top: 12px; }
  /* The pinned bar is 72px tall: the footer of this page keeps that much room, so its last links are never under it */
  main:has(.coaches) ~ .footer { padding-bottom: 96px; }
  main:has(.coaches .actions > a.btn-panel:last-child:not(:only-child)) ~ .footer { padding-bottom: 148px; }

  .file-head .body { margin-top: 12px; }
  .section-list { margin-top: 24px; }
  .section-row { padding: 14px 16px; min-height: 64px; }
  .section-text .caption { font-size: 12px; }
  .review-card { margin-top: 16px; }
  .review-card .btn { width: 100%; }
  .next-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .next-steps li { flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
  .next-steps .step-num { flex: none; width: 36px; height: 36px; }
  .list-card { padding: 20px 16px; }
  .changes-card .events li.edit-row { grid-template-columns: minmax(0, 1fr) auto; }
  .changes-card .edit-row .d { grid-column: 1 / -1; }
  .row-card { padding: 16px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv .k { margin-top: 10px; }
  .events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .page-actions { flex-direction: column; align-items: stretch; }
  .page-actions .btn { width: 100%; }

  /* People: the two view links share the width, the search runs full width, the person view stacks */
  .view-switch { align-self: stretch; margin: 20px 0; }
  .vtab { flex: 1 1 0; padding: 0 12px; }
  .people-search { max-width: none; }
  .people .list-card > .fields { margin-top: 20px; }
  .people .events li { grid-template-columns: minmax(0, 1fr); }
  .check-steps { padding-left: 20px; gap: 8px; font-size: 15px; line-height: 1.45; }
}
