@import "./athlete-today.css";
@import "./physique.css";
@import "./coach-today.css";
@import "./bank-coach.css";
@import "./bank-athlete.css";
@import "./bank-invoice.css";
@import "./forms.css";
@import "./meal-planner.css";
@import "./meal-display.css";
@import "./meal-recipes.css";
@import "./privacy-help.css";
@import "./rest-timer.css";
@import "./exercise-catalogue.css";
@import "./workout-log.css";
@import "./split-builder.css";
@font-face {
  font-family: "Striate Display";
  src: url("/brand/goldman-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/brand/body.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/brand/body-semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #faf9f6;
  --muted-ink: #aeb0b1;
  --field-line: #4a4b4e;
  --edge: #353638;
  --canvas: #080909;
  --surface: #151617;
  --raised: #242628;
  --red: #cb222b;
  --light-red: #ff929a;
  --body-font: "Open Sans", Arial, sans-serif;
  --display-font: "Striate Display", "Arial Black", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; background: var(--canvas); scroll-padding-top: 18px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.5 var(--body-font);
  -webkit-font-smoothing: antialiased;
}
body :where(h1,h2,h3,h4,p) { margin: 0; }
#app { isolation: isolate; min-height: 100vh; }
#app::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  right: clamp(12px, 2.4vw, 54px); top: clamp(100px, 16vh, 185px);
  width: clamp(170px, 20vw, 330px); aspect-ratio: 550 / 472;
  background: #d6d8d8; opacity: .15;
  mask: url("/brand/background-emblem.png") center / contain no-repeat;
  mask-mode: luminance;
}
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: progress; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #ff8993; outline-offset: 3px; }
img, svg { display: block; }
img { max-width: 100%; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
::selection { background: #822c34; color: #fff; }
.app-head { background: #050505; border-bottom: 1px solid #303133; }
.header-inner, .workspace { width: min(100% - clamp(32px,7vw,110px), 1248px); margin-inline: auto; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 80px; padding-block: 12px;
}
.brand { background: transparent; border: 0; padding: 4px 0; min-height: 44px; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand img { width: 38px; height: auto; }
.brand img[src*="wordmark"] { width: 104px; }
.brand strong { display: block; font-family: var(--display-font); font-size: 1.05rem; line-height: 1.15; }
.brand small { color: var(--muted-ink); font-size: .77rem; font-weight: 400; }
.view-toggle, .tabs {
  display: inline-flex; gap: 2px; padding: 4px; align-items: stretch;
  border: 1px solid var(--edge); border-radius: 9px; background: #121315;
}
.view-toggle button, .tabs button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 7px 15px;
  min-height: 35px; font-size: .875rem; font-weight: 600; color: var(--muted-ink);
  line-height: 1.3; border: 0; background: transparent; border-radius: 5px;
}
.view-toggle button.active, .view-toggle [aria-pressed="true"], .tabs button.active, .tabs [aria-selected="true"] {
  background: #333538; color: white; box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}
.view-toggle svg,.tabs svg { width: 16px; height: 16px; }
.workspace { padding-block: clamp(30px,4.1vw,60px) 72px; }
.workspace > * + * { margin-top: 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.page-heading > div, .heading-actions > .field { min-width: 0; max-width: 100%; }
.page-heading h1 {
  font: 700 clamp(2.1rem,4.2vw,3.65rem)/1.02 var(--display-font);
  color: #fff; letter-spacing: -.05em; margin-block: .12em .08em; overflow-wrap: anywhere;
}
.page-heading h1, .section-head h2 { transform: skewX(-6deg); transform-origin: left bottom; }
.eyebrow {
  display: block; color: #f1a5aa; font-weight: 700; font-size: .76rem; line-height: 1.4;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px;
}
.page-note,.subtle { color: var(--muted-ink); }
.page-note { margin-top: 10px; max-width: 64ch; }
.heading-actions, .section-actions, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.heading-actions { justify-content: flex-end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 44px; border: 1px solid transparent; border-radius: 6px;
  font-size: .9rem; line-height: 1.35; font-weight: 700; text-decoration: none;
  background: var(--raised); color: white;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--red); color: white; }
.btn-secondary { background: #242527; border-color: #454649; }
.btn-text { padding-inline: 5px; background: transparent; border-color: transparent; color: #dfdfe0; }
.summary-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  overflow: hidden; border: 1px solid var(--edge); border-radius: 11px;
  background: var(--surface);
}
.stat { position: relative; min-width: 0; padding: clamp(16px,2.1vw,30px); }
.stat + .stat { border-left: 1px solid var(--edge); }
.stat-icon { color: #a8aaab; position: absolute; top: 21px; right: 22px; }
.stat-icon svg { height: 19px; width: 19px; }
.stat-value { display: block; font: 700 clamp(1.8rem,3.1vw,2.9rem)/1.08 var(--display-font); letter-spacing: -.055em; }
.stat-label { display: block; margin-top: 7px; font-size: .9rem; font-weight: 600; color: #bdbec0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 20px; align-items: start; }
.panel { min-width: 0; padding: clamp(18px,2.3vw,30px); border: 1px solid var(--edge); border-radius: 11px; background: rgb(21 22 23 / 94%); }
.panel > * + * { margin-top: 17px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-head h2, .panel h2 {
  color: #f5f5f3; font: 700 clamp(1.22rem,1.85vw,1.6rem)/1.18 var(--display-font); letter-spacing: -.045em;
}
.section-head h3,.panel h3 { font-size: 1.04rem; font-weight: 700; }
.section-head .subtle, .section-title p { margin: 4px 0 0; font-size: .875rem; }
.section-actions .btn { min-height: 40px; }
.rows { display: grid; }
.athlete-row {
  width: 100%; min-width: 0; text-align: left; display: flex; align-items: center; gap: 13px;
  padding: 15px 2px; border: 0; border-top: 1px solid var(--edge); border-radius: 0;
  background: transparent; color: var(--ink);
}
.athlete-row:focus-visible { outline-offset: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-content: center; border: 1px solid #494a4d;
  color: #f2f2ee; background: #2e3032; font-weight: 700; letter-spacing: -.025em; font-size: .92rem;
}
.row-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row-main strong { font-weight: 700; font-size: .995rem; color: var(--ink); overflow-wrap: anywhere; }
.row-main small,.row-right small { color: var(--muted-ink); font-size: .815rem; }
.row-right { margin-left: auto; display: flex; align-items: center; text-align: right; gap: 11px; }
.row-right .subtle { font-size: .83rem; }
.row-right > svg { flex: none; color: #999c9d; width: 16px; }
.row-arrow { color: var(--muted-ink); flex: none; }
.row-arrow svg,svg.row-arrow { height: 17px; width: 17px; }
.badge {
  display: inline-flex; align-items: center; width: fit-content; border-radius: 5px;
  padding: 4px 8px; font-size: .775rem; line-height: 1.3; font-weight: 600;
  background: #2b2e30; color: #d3d6d7; border: 1px solid #45484a;
}
.badge.pending, .badge.waiting, .badge.new { background: #382026; border-color: #663039; color: #ffb1b7; }
.badge.reviewed,.badge.done { color: #b9d4c2; border-color: #374d40; background: #223129; }
.empty { padding: 24px 0 14px; color: var(--muted-ink); border-top: 1px solid var(--edge); }
.coach-card {
  display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--edge);
}
.coach-card img { width: 46px; height: 46px; object-fit: cover; object-position: 50% 17%; border-radius: 50%; }
.coach-card p { font-size: .8rem; color: var(--muted-ink); }
.coach-card strong { font-size: .94rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.detail-grid > * { min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: .9rem; font-weight: 600; }
.field:has(textarea),.field:has(input[type="file"]),.field.full,.field-wide { grid-column: 1/-1; }
.field small { color: var(--muted-ink); font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  box-sizing: border-box; padding: 10px 12px; min-height: 44px; min-width: 0; max-width: 100%;
  border: 1px solid var(--field-line); border-radius: 6px; color: var(--ink); background-color: #111214;
  font-size: 1rem; line-height: 1.4;
}
.field :is(input,textarea,select) { width: 100%; }
textarea { min-height: 91px; resize: vertical; }
input[type="file"] { padding: 8px !important; }
input[type="file"]::file-selector-button { margin-right: 10px; color: var(--ink); background: #303236; border: 0; border-radius: 4px; padding: 5px 8px; }
input::placeholder,textarea::placeholder { color: #929497; }
.form-actions { margin-top: 20px; }
.section-count {
  color: var(--muted-ink); font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 600;
}
.detail-bar { display: flex; gap: 12px; }
.plan-sections { margin: 16px 0 0; padding: 0; }
.plan-sections > div { display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; gap: 16px; padding: 17px 0; border-top: 1px solid var(--edge); }
.plan-sections > div:last-child { padding-bottom: 0; }
.plan-sections dt { font-weight: 700; }
.plan-sections dd { margin: 0; color: #c9cac8; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-section p,.detail-section img { margin-top: 8px; }
.check-date,.form-note { font-size: .9rem; }
.metric .stat-label { margin: 0 0 5px; }
.notice.success { color: #c5e4d0; border-color: #375442; background: #1c2b21; }
.page-heading h1:focus-visible { outline: none; }
.workspace > .notice:first-child:not([role]) {
  border: 0; border-left: 2px solid #66686b; border-radius: 0; padding: 2px 10px;
  background: transparent; color: var(--muted-ink); font-size: .835rem;
}
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(86px,1fr)); overflow: hidden; gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 6px; }
.metric { background: #202123; padding: 12px; min-width: 0; }
.metric strong { display: block; color: var(--ink); font-size: 1.16rem; }
.metric small,.metric span { color: var(--muted-ink); font-size: .82rem; }
.history .athlete-row:last-child { padding-bottom: 2px; }
.feedback { padding: 14px 16px; background: #212225; border-left: 2px solid #9fa3a4; border-radius: 0 5px 5px 0; overflow-wrap: anywhere; }
.notice,.error { border: 1px solid #495052; color: #d7dddc; background: #202527; padding: 12px 15px; border-radius: 6px; font-size: .9rem; }
.error { color: #ffc7cb; background: #321c22; border-color: #76404b; }
.photo-preview { max-width: 100%; max-height: 330px; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.review-comparison { min-width: 0; }
.review-comparison h3 + .subtle { margin-top: 6px; }
.review-metrics { width: 100%; margin-block: 12px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.review-metrics :is(th, td) { padding: 10px 6px; vertical-align: middle; text-align: start; overflow-wrap: anywhere; border-bottom: 1px solid var(--edge); }
.review-metrics tr > :first-child { padding-inline-start: 0; }
.review-metrics thead th { color: var(--muted-ink); font-size: .84rem; line-height: 1.4; }
.review-metrics tbody th { font-size: .9rem; }
.review-metrics :is(small, time) { display: block; font-size: .8rem; font-weight: 400; }
.review-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.review-photo { min-width: 0; margin: 0; }
.review-photo figcaption { font-size: .86rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.review-photo :is(img, .review-photo-empty) { margin: 8px 0; width: 100%; aspect-ratio: 4 / 5; max-height: 280px; border: 1px solid var(--edge); border-radius: 6px; background: #121315; }
.review-photo img { object-fit: contain; }
.review-photo-empty { display: grid; place-items: center; padding: 8px; color: var(--muted-ink); font-size: .83rem; text-align: center; }
.review-plan { margin-top: 16px; border-block: 1px solid var(--edge); }
.review-plan summary { min-height: 44px; align-content: center; padding-block: 10px; font-weight: 600; }
.review-plan summary::marker { color: var(--muted-ink); }
.review-plan-fields { display: grid; gap: 12px; padding: 2px 0 16px; }
.review-plan-fields > p { grid-column: 1 / -1; font-size: .9rem; }
.discard-dialog { width: min(26rem, calc(100% - 32px)); max-width: none; padding: 20px; border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); }
.discard-dialog::backdrop { background: rgb(0 0 0 / 68%); }
.discard-dialog h2 { font: 700 1.25rem/1.3 var(--display-font); }
.discard-dialog p { margin-top: 8px; color: var(--muted-ink); }
@media (hover:hover) {
  .btn-primary:not(:disabled):hover { background: #ba2130; }
  .btn-secondary:not(:disabled):hover,.tabs button:hover,.view-toggle button:hover { background: #343639; color: white; }
  .btn-text:hover { color: white; text-decoration: underline; text-underline-offset: .23em; }
  .athlete-row:hover { background: #232527; }
}
@media(max-width:840px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .detail-grid { gap: 14px; }
}
@media(max-width:680px) {
  #app::before { right: 7px; top: 98px; width: clamp(90px, 28vw, 160px); opacity: .10; }
  .header-inner,.workspace { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .view-toggle button { padding: 7px; min-height: 44px; }
  .page-heading { flex-wrap: wrap; align-items: start; gap: 15px; }
  .heading-actions { justify-content: flex-start; }
  .workspace > * + * { margin-top: 17px; }
  .dashboard-grid,.detail-grid { grid-template-columns: minmax(0,1fr); }
  .fields { gap: 12px; }
  .panel { padding: 17px; }
  .section-head { flex-wrap: wrap; gap: 10px; }
  .stat { padding: 14px 10px; }
  .stat-icon { position: static; margin-bottom: 7px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-label { font-size: .78rem; line-height: 1.35; }
  .athlete-row { gap: 9px; }
  .avatar { width: 35px; height: 35px; }
  .tabs button { min-height: 44px; }
}
@media(max-width:420px) {
  .fields { grid-template-columns: minmax(0,1fr); }
  .brand { gap: 7px; }
  .brand img { width: 29px; }
  .brand img[src*="wordmark"] { width: 77px; }
  .view-toggle button { font-size: .8rem; }
  .row-right { gap: 4px; }
}

@media(max-width:480px) {
  .view-toggle svg { display: none; }
  .plan-sections > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
}
@media(max-width:374px) {
  .brand .brand-wordmark { display: none; }
}
@media(max-width:360px) {
  .row-right > svg { display: none; }
}

.resource-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--edge); }
.resource-row:last-child { padding-bottom: 0; }
.resource-row h3, .resource-preview { overflow-wrap: anywhere; }
.resource-row .subtle { font-size: .84rem; }
.resource-row .resource-preview { grid-column: 1 / -1; }
.resource-preview summary { min-height: 44px; align-content: center; font-weight: 600; }
.resource-preview > div { max-width: 70ch; padding-bottom: 8px; }
.resource-preview p + p, .attached-resource p { margin-top: 8px; }
.attached-resource { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--edge); }
.attached-resource h3 { color: var(--muted-ink); font-size: .85rem; }
.resource-link { overflow-wrap: anywhere; text-decoration: underline; }

.schedule-status { padding: 10px 14px; border-left: 2px solid var(--red); background: var(--surface); font-size: .94rem; overflow-wrap: anywhere; }
.schedule-help { margin-top: 12px; }

.workout-library-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--edge); }
.workout-builder-day, .workout-exercise { margin: 14px 0; min-width: 0; padding: 14px; border: 1px solid var(--edge); border-radius: 7px; }
.workout-builder-day > legend, .workout-exercise > legend { padding-inline: 6px; font-weight: 700; }
.workout-row-controls { margin-top: 8px; }
.workout-row-controls .btn { font-size: .82rem; }
.workout-format { display: block; overflow-wrap: anywhere; font-size: .9rem; }
.workout-day-detail { border-top: 1px solid var(--edge); padding-block: 14px 4px; overflow-wrap: anywhere; }
.workout-day-detail ol { padding-inline-start: 1.6rem; margin-block: .5rem; }
.workout-day-detail li { margin-block: .5rem; }
.workout-day-detail li span { display: block; color: var(--muted-ink); font-size: .9rem; }
.set-targets-toggle {display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin-top: .5rem; font-size: .92rem; font-weight: 600;}
.set-targets-toggle input {width: 1.05rem; height: 1.05rem; accent-color: var(--ink);}
.workout-set-targets {min-width: 0; margin: 0; padding: 0; border: 0;}
.workout-set-target {min-width: 0; margin: .6rem 0; border: 1px solid var(--edge); border-radius: 6px; padding: .7rem;}
.workout-set-target legend {font-weight: 650; padding-inline: .25rem;}
.workout-set-target .fields {grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .6rem;}
.workout-target-list {font-size: .92rem;}
.session-target {margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--edge); font-size: .9rem;}
.schedule-settings { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--edge); }
.schedule-settings > * + * { margin-top: 10px; }
.schedule-dates { min-width: 0; border: 0; padding: 0; margin-inline: 0; }
.sr-schedule { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }

.session-exercise { max-width: 44rem; }
.session-set { display: grid; grid-template-columns: minmax(2.5rem, .55fr) repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; padding-top: 12px; }
.session-set > strong { align-self: end; padding-block: 10px; font-size: .9rem; }
@media(max-width:420px) {
  .session-exercise { padding: 10px; }
  .session-set { grid-template-columns: 2.2rem repeat(2, minmax(0, 1fr)); gap: 6px; }
  .session-set .field, .session-set > strong { font-size: .82rem; }
}
.library-navigation { display: flex; flex-wrap: wrap; gap: 8px; }
.library-navigation .btn { min-height: 44px; }
.day-options { grid-column: 1/-1; display:flex; gap:4px 12px; flex-wrap:wrap; min-width:0; margin:0; padding:8px; border:1px solid var(--edge); }
.day-options label { display: flex; align-items: center; gap: 4px; min-height: 44px; }
@media(max-width:560px){.library-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.library-navigation .btn{padding-inline:8px;}}

.photo-fields { min-width: 0; padding: 12px; border: 1px solid var(--edge); border-radius: 6px; }
.photo-fields legend,.photo-pose h4 { font-weight: 700; }
.photo-fields .fields { margin-top: 10px; }
.photo-fields .field { grid-column: auto; }
.photo-pose { margin-top: 16px; }
.photo-repair { margin-block: 7px; display: grid; gap: 10px; }
.photo-repair .btn { justify-self: start; }
.photo-repair input { min-width: 0; }
.private-photo a { font-size: .88rem; }

.transfer-panels { display: grid; gap: 18px; }
.transfer-list { max-height: 19rem; overflow: auto; padding-inline-start: 1.5rem; overflow-wrap: anywhere; }
.transfer-list li { margin-block: .35rem; }
.transfer-confirm { display: flex; align-items: baseline; gap: .5rem; }
.transfer-table { overflow-x: auto; }

.transfer-meter { display: block; width: min(100%, 30rem); height: .85rem; margin-top: .5rem; accent-color: var(--light-red); }

.meal-plan-day { min-width:0; }
.meal-options { margin-block: 1rem; padding-block: .65rem; color: var(--ink); }
.meal-options > summary { cursor:pointer; color:var(--muted-ink); font-weight:600; }
.meal-options[open] > summary { margin-bottom: .85rem; }
.meal-target-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:.75rem; margin-block:.75rem; }
.meal-day-actions { margin-top:.6rem; }

.workspace-footer { margin: 2rem 0 1rem; border-top: 1px solid var(--edge); padding-top: .75rem; }
/* Only the authenticated athlete’s Today screen includes this inline control. */
.phone-install { border-block: 1px solid var(--edge); }
.phone-install > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.phone-install button { min-height: 44px; border: 0; background: transparent; }
.phone-install-action { text-align: start; font-weight: 600; padding: .5rem 0; }
.phone-install-dismiss { padding: .5rem .2rem .5rem .5rem; font-size: .82rem; color: var(--muted-ink); }
.phone-install-help summary { width: fit-content; padding: .6rem 0; font-weight: 600; }
.phone-install p, .phone-install-help p { padding: .15rem 0 .75rem; color: var(--muted-ink); font-size: .88rem; }
@media (display-mode: standalone) { .phone-install { display: none; } }

.question-comparison {margin:1rem 0}.question-comparison summary {cursor:pointer}.question-comparison table {table-layout:fixed;width:100%}.question-comparison th,.question-comparison td {overflow-wrap:anywhere;white-space:pre-wrap;vertical-align:top;}

.template-folder { padding-block: .65rem; border-top: 1px solid var(--edge); }
.template-folder > summary, details:has(> form[data-form="folderRename"]) > summary { cursor: pointer; font-weight: 700; padding-block:.35rem; }
.template-folder .section-count { margin-left:.45rem; }
.folder-unfiled { margin-block:1rem .25rem; font-size:1rem; }
.workout-defaults { margin-block:.35rem; }

.athlete-language { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted-ink); font-size: .875rem; }
.athlete-language select { min-height: 44px; width: auto; max-width: 10rem; padding: .45rem 1.7rem .45rem .65rem; }
.email-entry .athlete-language { align-self: flex-end; }

[data-email-preferences] .email-preference {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  font-weight: 600;
}
[data-email-preferences] input[type="checkbox"] {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--red);
}
