/* ===== Athlete Life screens (slice D, DEC-285..DEC-289, DEC-410), built on the glass design system (glass.css) =====
   Loaded after glass.css (it uses the --ws-* tokens) and before access.css, so high contrast always wins.
   Rules (docs/worldsport/design/GLASS-DESIGN-SYSTEM.md): classes only (CSP style-src 'self'); logical properties so the
   layout mirrors in RTL; sizes in rem so the large-text setting scales everything; every gradient carries a
   background-color; no backdrop blur here at all (the screens card already blurs at the "full" level, and blur is
   never nested); text always sits on a tinted surface; reduced motion keeps the surfaces and stops movement
   (glass.css turns transitions off under data-motion="reduced"). */

.lf-root { display: grid; gap: var(--ws-space-3); min-width: 0; }
.lf-root > * { min-width: 0; }
.lf-root .sc-panel { margin: 0; }

/* ---------- surfaces inside the screens card: raised glass tiles, never blurred ---------- */
.lf-root .sc-panel, .lf-hero, .lf-tile, .lf-offer, .lf-pathways li, .lf-day, .lf-line, .lf-person, .lf-cosmetic {
  background-color: var(--ws-surface-3);
  border: 1px solid var(--ws-edge);
}
.lf-root .sc-panel {
  border-radius: var(--ws-radius-l); padding: var(--ws-space-4);
  background-color: var(--ws-surface-3);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 40%);
  box-shadow: var(--ws-shadow-1);
}
.lf-root .sc-panel > h3 {
  margin: 0 0 var(--ws-space-2); font-size: var(--ws-fs-xs); font-weight: 800; letter-spacing: var(--ws-tracking-caps);
  text-transform: uppercase; color: var(--ws-aqua-300);
}
.lf-root .sc-panel > h3::before {
  content: ""; display: inline-block; inline-size: 18px; block-size: 2px; margin-inline-end: 8px; vertical-align: 0.3em; border-radius: 2px;
  background-color: var(--ws-gold-400); background-image: linear-gradient(90deg, var(--ws-gold-400), var(--ws-aqua-400));
}
[dir="rtl"] .lf-root .sc-panel > h3::before { background-image: linear-gradient(270deg, var(--ws-gold-400), var(--ws-aqua-400)); }
.lf-root .fineprint { margin: var(--ws-space-2) 0 0; font-size: var(--ws-fs-xs); }
.lf-root .sc-msg { margin: 0; border-radius: var(--ws-radius-m); }
.lf-root .sc-msg.info { background-color: rgba(124, 200, 255, 0.10); border-color: rgba(124, 200, 255, 0.45); }

/* ---------- hero: the season clock, the week strip and the athlete's numbers ---------- */
.lf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ws-space-3) var(--ws-space-5); align-items: center;
  padding: var(--ws-space-4) var(--ws-space-5); border-radius: var(--ws-radius-xl);
  background-color: var(--ws-surface-1);
  background-image:
    radial-gradient(90% 140% at 0% 0%, rgba(62, 230, 212, 0.16), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(255, 194, 61, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow: var(--ws-shadow-2);
}
[dir="rtl"] .lf-hero {
  background-color: var(--ws-surface-1);
  background-image:
    radial-gradient(90% 140% at 100% 0%, rgba(62, 230, 212, 0.16), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 194, 61, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}
/* Edge light, as on the cards. */
:root[data-glass] .lf-hero::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05) 35%, rgba(124, 200, 255, 0.06) 65%, rgba(255, 194, 61, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
:root[data-glass="solid"] .lf-hero::before { display: none; }
:root[data-glass="solid"] .lf-hero { background-image: none; background-color: var(--ws-ink-850); }
.lf-hero.is-retired { background-color: var(--ws-surface-1); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); }
.lf-hero-main { display: grid; gap: var(--ws-space-2); min-width: 0; }
.lf-eyebrow { margin: 0; font-size: var(--ws-fs-2xs); font-weight: 800; letter-spacing: var(--ws-tracking-caps); text-transform: uppercase; color: var(--ws-aqua-300); }
.lf-clock { margin: 0; font-family: var(--ws-font-display); font-size: var(--ws-fs-xl); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--ws-text-strong); }
.lf-clock:focus { outline: none; }
.lf-remaining { margin: 0; font-size: var(--ws-fs-s); color: var(--ws-text-muted); }
.lf-remaining.is-capped { color: var(--ws-gold-300); font-weight: 700; }
.lf-tagline { grid-column: 1 / -1; margin: 0; font-size: var(--ws-fs-s); line-height: 1.5; color: var(--ws-text-muted); }

/* The week strip: seven glass pills; today glows gold, finished days are filled aqua. */
.lf-strip { list-style: none; margin: var(--ws-space-1) 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-inline-size: 420px; direction: inherit; }
.lf-strip-day {
  display: grid; place-items: center; block-size: 34px; border-radius: var(--ws-radius-pill);
  font-family: var(--ws-font-mono); font-size: var(--ws-fs-xs); font-weight: 800;
  background-color: var(--ws-well); border: 1px solid var(--ws-edge); color: var(--ws-text-muted);
}
.lf-strip-day.d-done { background-color: rgba(62, 230, 212, 0.22); border-color: rgba(62, 230, 212, 0.6); color: var(--ws-text-strong); }
.lf-strip-day.d-today {
  background-color: var(--ws-gold-400); background-image: linear-gradient(180deg, var(--ws-gold-300), var(--ws-gold-400) 60%, var(--ws-gold-500));
  border-color: rgba(255, 230, 160, 0.8); color: #1a1200; box-shadow: var(--ws-glow-gold);
}

/* Stat tiles. */
.lf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--ws-space-2); min-width: 0; }
.lf-tile {
  display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: var(--ws-radius-m); min-width: 0;
  background-color: var(--ws-well); box-shadow: 0 1px 0 var(--ws-highlight) inset;
}
.lf-tile-label { font-size: var(--ws-fs-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ws-text-muted); overflow-wrap: anywhere; }
.lf-tile-val { font-family: var(--ws-font-display); font-size: var(--ws-fs-l); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ws-text-strong); overflow-wrap: anywhere; }
.lf-tile.form-sharp .lf-tile-val { color: var(--ws-aqua-300); }
.lf-tile.form-low .lf-tile-val { color: var(--ws-gold-300); }
.lf-tile.points .lf-tile-val { color: var(--ws-gold-300); }
.lf-tile .sc-meter { block-size: 6px; max-inline-size: none; margin-block-start: 4px; background-color: rgba(255, 255, 255, 0.10); }

/* Meters follow the system (aqua → mint, mirrored in RTL by screens.css). */
.lf-root .sc-meter { background-color: rgba(255, 255, 255, 0.10); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset; }
.lf-root .sc-meter i { background-color: var(--ws-aqua-400); background-image: linear-gradient(90deg, var(--ws-aqua-400), #8ef5b0); }
[dir="rtl"] .lf-root .sc-meter i { background-image: linear-gradient(270deg, var(--ws-aqua-400), #8ef5b0); }

/* ---------- tabs: a segmented glass bar ---------- */
.lf-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--ws-radius-pill);
  background-color: var(--ws-well); border: 1px solid var(--ws-edge); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset;
}
.lf-tab {
  position: relative; flex: 1 1 auto; min-height: 40px; padding: 0.4em 1em; border-radius: var(--ws-radius-pill);
  background-color: transparent; background-image: none; border-color: transparent; box-shadow: none;
  font-weight: 700; color: var(--ws-text-muted); white-space: nowrap;
}
.lf-tab:hover { background-color: rgba(255, 255, 255, 0.07); background-image: none; border-color: var(--ws-edge); color: var(--ws-text-strong); }
.lf-tab[aria-current="page"] {
  color: #1a1200; border-color: rgba(255, 230, 160, 0.7);
  background-color: var(--ws-gold-400); background-image: linear-gradient(180deg, var(--ws-gold-300), var(--ws-gold-400) 60%, var(--ws-gold-500));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, var(--ws-glow-gold);
}
.lf-dot { display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-start: 6px; vertical-align: 0.1em; border-radius: 50%;
  background-color: var(--ws-aqua-400); box-shadow: 0 0 0 2px rgba(62, 230, 212, 0.25), var(--ws-glow-aqua); }
.lf-tab[aria-current="page"] .lf-dot { background-color: #0c3a33; box-shadow: none; }
.lf-tabpanel { display: grid; gap: var(--ws-space-3); min-width: 0; }
.lf-tabpanel:focus { outline: none; }

/* ---------- week: story + clock side by side on wide screens ---------- */
.lf-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--ws-space-3); align-items: start; }
.lf-feature { border-color: rgba(255, 194, 61, 0.38); }
.lf-root .lf-feature { background-color: var(--ws-surface-3); background-image: radial-gradient(120% 90% at 0% 0%, rgba(255, 194, 61, 0.10), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 40%); }
[dir="rtl"] .lf-root .lf-feature { background-color: var(--ws-surface-3); background-image: radial-gradient(120% 90% at 100% 0%, rgba(255, 194, 61, 0.10), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 40%); }
.lf-clockcard .actions { display: grid; gap: var(--ws-space-2); }
.lf-clockcard .actions button { inline-size: 100%; white-space: normal; }

/* ---------- character lines: avatar, name, AI label always visible (AI-027) ---------- */
.lf-lines { list-style: none; margin: var(--ws-space-1) 0; padding: 0; display: grid; gap: var(--ws-space-2); }
.lf-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ws-space-3); align-items: start;
  padding: 10px 12px; border-radius: var(--ws-radius-m); background-color: var(--ws-well);
  border-inline-start: 3px solid var(--ws-ion-400);
}
.lf-line-body { min-width: 0; }
.lf-line-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lf-speaker { font-weight: 800; color: var(--ws-text-strong); }
.lf-line .lf-text { margin: 4px 0 0; line-height: 1.5; color: var(--ws-text-strong); }
.lf-when { font-size: var(--ws-fs-xs); color: var(--ws-text-muted); margin-inline-start: auto; }
.lf-lines.compact .lf-line { padding: 6px 10px; }
.lf-lines.compact .lf-avatar { inline-size: 28px; block-size: 28px; font-size: 0.7rem; }

.lf-avatar {
  display: grid; place-items: center; flex: none; inline-size: 38px; block-size: 38px; border-radius: 50%;
  font-size: var(--ws-fs-xs); font-weight: 800; letter-spacing: 0.02em; color: #06131a;
  background-color: var(--ws-ion-400); background-image: linear-gradient(135deg, var(--ws-ion-300), var(--ws-ion-400));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}
.lf-avatar:empty::before { content: "AI"; }
.role-coach .lf-avatar { background-color: var(--ws-aqua-400); background-image: linear-gradient(135deg, var(--ws-aqua-300), var(--ws-aqua-400)); }
.role-mentor .lf-avatar { background-color: #8ef5b0; background-image: linear-gradient(135deg, #c3fbd5, #8ef5b0); }
.role-rival .lf-avatar { background-color: var(--ws-violet-400); background-image: linear-gradient(135deg, #cdbfff, var(--ws-violet-400)); }
.role-journalist .lf-avatar, .role-sponsor .lf-avatar { background-color: var(--ws-gold-400); background-image: linear-gradient(135deg, var(--ws-gold-300), var(--ws-gold-400)); color: #1a1200; }
.role-system .lf-avatar { background-color: #c9d3de; background-image: linear-gradient(135deg, #eef2f6, #c9d3de); }
.lf-line.role-coach { border-inline-start-color: var(--ws-aqua-400); }
.lf-line.role-mentor { border-inline-start-color: #8ef5b0; }
.lf-line.role-rival { border-inline-start-color: var(--ws-violet-400); }
.lf-line.role-journalist, .lf-line.role-sponsor { border-inline-start-color: var(--ws-gold-400); }
.lf-line.role-system { border-inline-start-color: var(--ws-edge-strong); }

.lf-label {
  display: inline-block; padding: 1px 8px; border-radius: var(--ws-radius-pill); font-size: var(--ws-fs-2xs); font-weight: 800; letter-spacing: 0.03em;
  color: #06131a; background-color: var(--ws-ion-300);
}

/* ---------- storylets and press: numbered option cards ---------- */
.lf-story-title { margin: 2px 0 6px; font-family: var(--ws-font-display); font-size: var(--ws-fs-l); font-weight: 800; color: var(--ws-text-strong); }
.lf-story-body { margin: 0 0 var(--ws-space-2); line-height: 1.6; color: var(--ws-text-strong); }
.lf-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--ws-space-2); margin: var(--ws-space-2) 0; }
.lf-option {
  display: flex; align-items: center; gap: var(--ws-space-3); min-height: 52px; padding: 10px 14px; text-align: start; white-space: normal;
  border-radius: var(--ws-radius-m); font-weight: 600; line-height: 1.35;
}
.lf-option:hover { border-color: rgba(255, 194, 61, 0.7); }
.lf-option-n {
  display: grid; place-items: center; flex: none; inline-size: 28px; block-size: 28px; border-radius: 50%;
  font-family: var(--ws-font-mono); font-size: var(--ws-fs-xs); font-weight: 800; color: #1a1200;
  background-color: var(--ws-gold-400); border: 1px solid rgba(255, 230, 160, 0.8); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.6);
}
.lf-story-result {
  margin: var(--ws-space-2) 0 0; padding: 10px 14px; border-radius: var(--ws-radius-m);
  background-color: rgba(62, 230, 212, 0.10); border: 1px solid rgba(62, 230, 212, 0.55);
}
.lf-story-result p { margin: 4px 0; }
.lf-choice-made { font-weight: 800; color: var(--ws-text-strong); }
.lf-question { margin: var(--ws-space-2) 0; font-family: var(--ws-font-display); font-size: var(--ws-fs-l); font-weight: 700; line-height: 1.35; color: var(--ws-text-strong); }

/* ---------- week planner: 7 day columns → 4 → 2 → 1 ---------- */
.lf-weekswitch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--ws-space-2); padding: 4px; border-radius: var(--ws-radius-pill); background-color: var(--ws-well); border: 1px solid var(--ws-edge); }
.lf-weekswitch button { min-height: 36px; padding: 0.3em 1em; border-radius: var(--ws-radius-pill); background-color: transparent; background-image: none; border-color: transparent; box-shadow: none; }
.lf-weekswitch [aria-pressed="true"] { background-color: rgba(255, 194, 61, 0.16); border-color: var(--ws-gold-400); box-shadow: 0 0 0 1px rgba(255, 194, 61, 0.25) inset; color: var(--ws-text-strong); }
.lf-suggest {
  display: grid; gap: var(--ws-space-2); margin: var(--ws-space-2) 0; padding: 10px 12px; border-radius: var(--ws-radius-m);
  background-color: var(--ws-well); border: 1px dashed rgba(62, 230, 212, 0.55);
}
.lf-suggest p { margin: 0; }
.lf-suggest > button { justify-self: start; }
.lf-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: var(--ws-space-2) 0; }
.lf-day { display: grid; gap: 6px; align-content: start; padding: 8px 6px; border-radius: var(--ws-radius-m); min-width: 0; background-color: var(--ws-well); }
.lf-day h4 { margin: 0 2px; font-size: var(--ws-fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ws-text-muted); }
.lf-slot {
  display: grid; gap: 4px; padding: 6px; border-radius: var(--ws-radius-s); min-width: 0;
  background-color: var(--ws-surface-3); border: 1px solid var(--ws-edge); border-block-start: 3px solid var(--ws-edge-strong);
}
.lf-slot select { inline-size: 100%; min-width: 0; font-size: var(--ws-fs-xs); padding: 0.35em 0.4em; min-height: 36px; }
.lf-half { font-size: var(--ws-fs-2xs); font-weight: 800; color: var(--ws-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lf-slot.k-training { border-block-start-color: var(--ws-ion-400); background-color: rgba(124, 200, 255, 0.08); }
.lf-slot.k-rest { border-block-start-color: var(--ws-aqua-400); background-color: rgba(62, 230, 212, 0.07); }
.lf-slot.k-recovery_mission { border-block-start-color: #8ef5b0; }
.lf-slot.k-study { border-block-start-color: var(--ws-violet-400); background-color: rgba(164, 139, 255, 0.10); }
.lf-slot.k-side_job { border-block-start-color: var(--ws-gold-400); background-color: rgba(255, 194, 61, 0.08); }
.lf-slot.k-competition { border-block-start-color: var(--ws-coral-400); }
.lf-slot.k-village, .lf-slot.k-media, .lf-slot.k-travel { border-block-start-color: #c9d3de; }
.lf-problems {
  margin: var(--ws-space-2) 0; padding-block: 8px; padding-inline: 28px 12px; border-radius: var(--ws-radius-m);
  color: #ffd6d6; background-color: rgba(255, 107, 107, 0.12); border: 1px solid var(--ws-coral-400);
}
.lf-draft { color: var(--ws-gold-300); font-weight: 700; }
.lf-draft::before { content: "● "; }

/* ---------- people ---------- */
.lf-cast { list-style: none; margin: var(--ws-space-1) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: var(--ws-space-2); }
.lf-person { display: flex; align-items: center; gap: var(--ws-space-3); padding: 8px 10px; border-radius: var(--ws-radius-m); background-color: var(--ws-well); min-width: 0; }
.lf-person-body { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.lf-name { font-weight: 800; color: var(--ws-text-strong); overflow-wrap: anywhere; }
.lf-root .sc-attrs dt { color: var(--ws-text-muted); }

/* ---------- sponsors: invented brands; the patch is the cosmetic, nothing else ---------- */
.lf-root .sc-callout {
  margin: 0; padding: 12px 16px; border-radius: var(--ws-radius-l);
  background-color: rgba(62, 230, 212, 0.08); border: 1px solid rgba(62, 230, 212, 0.4); border-inline-start: 4px solid var(--ws-aqua-400);
}
.lf-reward { display: flex; align-items: center; gap: 6px; margin-block-start: 4px; padding: 6px 10px; border-radius: var(--ws-radius-s);
  background-color: rgba(255, 194, 61, 0.10); border: 1px solid rgba(255, 194, 61, 0.4); color: var(--ws-text-strong); font-weight: 600; }
.lf-reward::before { content: "★"; color: var(--ws-gold-300); }
.hc .lf-root .sc-callout, .hc .lf-reward { background: #000; border: 2px solid #fff; color: #fff; }
.lf-offers { list-style: none; margin: var(--ws-space-1) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--ws-space-3); }
.lf-offer {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: var(--ws-radius-l);
  background-color: var(--ws-well); box-shadow: var(--ws-shadow-1);
}
.lf-offer.st-active { border-color: rgba(62, 230, 212, 0.6); }
.lf-offer.st-completed { border-color: rgba(142, 245, 176, 0.6); }
.lf-offer p { margin: 0; }
.lf-offer .actions { margin-block-start: var(--ws-space-2); }
.lf-offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 4px; }
.lf-offer-head strong { font-size: var(--ws-fs-m); }
.lf-patch {
  display: inline-block; flex: none; inline-size: 2rem; block-size: 2rem; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.85);
  background-color: var(--ws-aqua-400); background-image: linear-gradient(135deg, var(--ws-aqua-400), var(--ws-ion-400));
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
.lf-patch.ob-warmup_jacket { border-radius: 50% 50% 8px 8px; background-color: var(--ws-gold-400); background-image: linear-gradient(135deg, var(--ws-gold-300), #ff8a3d); }
.lf-patch.ob-village_banner { inline-size: 2.6rem; border-radius: 4px; background-color: var(--ws-violet-400); background-image: linear-gradient(90deg, var(--ws-violet-400), var(--ws-ion-400)); }
.lf-patch.ob-media_backdrop { border-radius: 3px; background-color: var(--ws-ink-700); background-image: repeating-linear-gradient(45deg, var(--ws-ink-700) 0 4px, var(--ws-ion-400) 4px 8px); }
.lf-locker { list-style: none; margin: var(--ws-space-1) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ws-space-2); }
.lf-cosmetic { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--ws-radius-pill); background-color: var(--ws-well); border-color: rgba(62, 230, 212, 0.55); font-weight: 700; }
[dir="rtl"] .lf-cosmetic { padding: 6px 6px 6px 12px; }
.lf-cosmetic .lf-patch { inline-size: 1.5rem; block-size: 1.5rem; }

/* ---------- study and side jobs ---------- */
.lf-progress { list-style: none; margin: var(--ws-space-1) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--ws-space-2); }
.lf-progress li { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: var(--ws-radius-m); background-color: var(--ws-well); border: 1px solid var(--ws-edge); }
.lf-progress li p { margin: 0; }
.lf-progress li button { justify-self: start; min-height: 38px; }
.lf-progress-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lf-progress-row .sc-meter { flex: 1 1 120px; }
.pos-text { color: var(--ws-aqua-300); font-weight: 700; }

/* ---------- career book: a timeline ---------- */
.lf-book { margin: var(--ws-space-2) 0 0; padding-inline-start: 0; list-style: none; display: grid; gap: var(--ws-space-2); position: relative; }
.lf-book::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 7px; inline-size: 2px; border-radius: 2px;
  background-color: var(--ws-edge-strong); background-image: linear-gradient(180deg, var(--ws-aqua-400), var(--ws-edge)); }
.lf-book li { position: relative; padding-inline-start: 28px; }
.lf-book li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 0.35em; inline-size: 12px; block-size: 12px; border-radius: 50%;
  background-color: var(--ws-ink-700); border: 2px solid var(--ws-edge-strong); }
.lf-book li.verified::before { background-color: var(--ws-aqua-400); border-color: var(--ws-aqua-300); box-shadow: var(--ws-glow-aqua); }
.lf-book .lf-when { margin-inline: 0 8px; }
.lf-book p { margin: 4px 0 0; line-height: 1.5; }

.lf-pathways { list-style: none; margin: var(--ws-space-2) 0 0; padding: 0; display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--ws-space-3); }
.lf-pathways li { padding: 12px 14px; border-radius: var(--ws-radius-l); display: grid; gap: 6px; align-content: start; background-color: var(--ws-well); }
.lf-pathways li p { margin: 0; }
.lf-pathways li.open { border-color: rgba(124, 200, 255, 0.55); }
.lf-pathways li.closed { border-style: dashed; }
.lf-pathways li.closed strong { color: var(--ws-text-muted); }
.lf-pathways li > button { justify-self: start; }
.lf-confirm {
  display: grid; gap: var(--ws-space-2); padding: 12px; border-radius: var(--ws-radius-m);
  border: 2px solid var(--ws-gold-400); background-color: rgba(60, 40, 0, 0.55); box-shadow: var(--ws-glow-gold);
}
.lf-confirm p { margin: 0; font-weight: 700; }

/* ---------- create: hero + two segmented choices ---------- */
.lf-create { display: grid; gap: var(--ws-space-3); }
.lf-create-hero { grid-template-columns: minmax(0, 1fr); }
.lf-create-hero .lf-clock { font-size: var(--ws-fs-2xl); }
.lf-promises { list-style: none; margin: var(--ws-space-1) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--ws-space-2); }
.lf-promises li { position: relative; padding: 10px 12px; padding-inline-start: 36px; border-radius: var(--ws-radius-m); font-size: var(--ws-fs-s); line-height: 1.45;
  background-color: var(--ws-well); border: 1px solid var(--ws-edge); color: var(--ws-text-strong); }
.lf-promises li::before { content: "✓"; position: absolute; inset-inline-start: 12px; inset-block-start: 10px; font-weight: 900; color: var(--ws-aqua-400); }
.lf-field { display: grid; gap: 6px; margin: 0 0 var(--ws-space-4); }
.lf-field > p { margin: 0; }
.lf-legend { font-weight: 700; color: var(--ws-text-strong); }
.lf-seg { margin: 0; gap: 8px; }
.lf-seg label { min-height: 40px; padding: 8px 14px; font-weight: 600; }
.lf-seg input { accent-color: var(--ws-gold-400); }
.lf-cta { min-height: 48px; padding-inline: 1.6em; font-size: var(--ws-fs-m); }

.lf-notices { display: grid; gap: 4px; }
.lf-notices .fineprint { margin: 0; }

/* Disabled actions (clock at its daily cap, a retired life) must look unavailable, not only be unavailable. */
.lf-root button:disabled, .lf-root button.primary:disabled { opacity: 0.45; cursor: not-allowed; filter: saturate(0.4); box-shadow: none; }

/* Solid level (high contrast is handled by access.css on top): opaque tiles. */
:root[data-glass="solid"] :is(.lf-root .sc-panel, .lf-tile, .lf-line, .lf-day, .lf-offer, .lf-pathways li, .lf-person, .lf-progress li, .lf-promises li, .lf-tabs) { background-image: none; background-color: var(--ws-ink-850); }

/* High contrast (the .hc class on <html>, DEC-250): black surfaces, white 2 px borders, yellow for the current item. */
.hc :is(.lf-root .sc-panel, .lf-hero, .lf-tile, .lf-line, .lf-day, .lf-slot, .lf-offer, .lf-pathways li, .lf-person, .lf-progress li, .lf-promises li, .lf-tabs, .lf-suggest, .lf-story-result, .lf-weekswitch, .lf-cosmetic) {
  background: #000; border: 2px solid #fff; box-shadow: none; color: #fff;
}
.hc .lf-hero::before { display: none; }
.hc :is(.lf-tab[aria-current="page"], .lf-strip-day.d-today, .lf-weekswitch [aria-pressed="true"]) { background: #ffd400; color: #000; border-color: #ffd400; box-shadow: none; }
.hc :is(.lf-label, .lf-avatar) { background: #fff; color: #000; box-shadow: none; }
.hc :is(.lf-eyebrow, .lf-root .sc-panel > h3, .lf-remaining, .lf-tile-label, .lf-tile-val, .lf-when, .lf-half, .lf-day h4) { color: #fff; }
.hc .lf-option-n { background: #ffd400; color: #000; border-color: #ffd400; box-shadow: none; }
.hc .lf-strip-day { background: #000; color: #fff; border: 2px solid #fff; }
.hc .lf-strip-day.d-done { background: #6ff7ee; color: #000; }
.hc :is(.lf-dot, .lf-book li.verified::before) { background: #6ff7ee; box-shadow: none; }
.hc .lf-confirm { background: #000; border: 3px solid #ffd400; box-shadow: none; }
.hc .lf-problems { background: #000; color: #fff; border: 2px solid #ff7a7a; }

/* ---------- screen types ---------- */
/* Tablet and small desktop. */
@media (max-width: 1100px) {
  .lf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Tablet portrait and phones held sideways. */
@media (max-width: 860px) {
  .lf-hero { grid-template-columns: minmax(0, 1fr); padding: var(--ws-space-4); }
  .lf-cols { grid-template-columns: minmax(0, 1fr); }
  .lf-clockcard .actions { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
  .lf-tabs { border-radius: var(--ws-radius-l); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lf-tab { border-radius: var(--ws-radius-m); }
}
/* Phones. The server-screens tab bar becomes one scrolling row while Athlete Life is open (phone first, DEC-288). */
@media (max-width: 560px) {
  .screens:has(#screens-body[data-screen="life"]) .screens-nav { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block-end: 6px; }
  .lf-tagline { display: none; }
  .screens:has(#screens-body[data-screen="life"]) .screens-nav .sc-tab { flex: 0 0 auto; }
  .lf-root .sc-panel { padding: var(--ws-space-3); border-radius: var(--ws-radius-m); }
  .lf-hero { border-radius: var(--ws-radius-l); padding: var(--ws-space-3); }
  .lf-clock { font-size: var(--ws-fs-l); }
  .lf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lf-tabs { border-radius: var(--ws-radius-l); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lf-tab { padding: 0.45em 0.4em; font-size: var(--ws-fs-xs); white-space: normal; line-height: 1.2; border-radius: var(--ws-radius-m); }
  .lf-grid { grid-template-columns: minmax(0, 1fr); }
  .lf-day { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lf-day h4 { grid-column: 1 / -1; }
  .lf-line { gap: var(--ws-space-2); padding: 8px 10px; }
  .lf-avatar { inline-size: 32px; block-size: 32px; font-size: 0.72rem; }
  .lf-strip-day { block-size: 30px; }
  .lf-when { margin-inline-start: 0; inline-size: 100%; }
}
/* Phones held sideways: keep the hero short so the tabs show above the fold, and keep the server-screens tab bar on
   one scrolling row (same 44 px targets, less height) while Athlete Life is open. */
@media (orientation: landscape) and (max-height: 520px) {
  .screens:has(#screens-body[data-screen="life"]) .screens-nav { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-block: 6px 4px; padding-block-end: 4px; }
  .screens:has(#screens-body[data-screen="life"]) .screens-nav .sc-tab { flex: 0 0 auto; }
  .screens:has(#screens-body[data-screen="life"]) .screens-card { padding-block: 10px; }
  .lf-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lf-tab { font-size: var(--ws-fs-xs); white-space: normal; line-height: 1.15; padding-inline: 0.3em; }
  .lf-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--ws-space-3); }
  .lf-tagline, .lf-strip { display: none; }
  .lf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lf-tile { padding: 6px 8px; }
  .lf-tile-val { font-size: var(--ws-fs-m); }
}
/* Coarse pointers: 44 px targets everywhere on the life screen. */
@media (pointer: coarse) {
  .lf-tab, .lf-weekswitch button, .lf-root select, .lf-root button, .lf-seg label { min-height: var(--ws-target); }
}
