:root:not([data-contrast=high]) {
  --bg: #0a0a0c;
  --text: #f7f3e9;
  --muted: #b9b5ad;
  --panel: #171719;
  --raised: #242326;
  --line: #e8c97a2b;
  --stroke: #605747;
  --well: #262527;
  --key-face: #29282a;
  --key-edge: #171719;
  --console-face: #151518;
  --accent: #e8c97a;
}
:root {
  --champagne: #e8c97a;
  --lime: #d4ff51;
  --heat: #f3946b;
  --surface: linear-gradient(155deg, #252427 0%, #18181b 48%, #121215 100%);
  --glass: linear-gradient(155deg, #ffffff12 0%, #ffffff04 45%, #00000024 100%), #141416;
  --glass-depth: inset 0 1px #ffffff12, 0 8px 25px #0006;
  --gold-edge: #ead09933;
  --key-gold: linear-gradient(176deg, #fff0bd, #ebcb7a 45%, #d7ad58);
  --key-lime: linear-gradient(176deg, #efffb0, #d4ff51 48%, #afd934);
}
body {
  background: radial-gradient(ellipse at 50% 0%, #27232a80, transparent 39rem),
    linear-gradient(145deg, #131317, var(--bg) 64%);
  min-height: 100dvh;
}
.chart-definitions { position: absolute; pointer-events: none; }
#app { padding-top: clamp(17px, 4vw, 32px); }
.board-head h1, .routine-top h1, .progress-heading h1,
body:is([data-view=home], [data-view=cardio]) #app > h1,
.outlook-copy h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.05rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}
#app :is(.stat-number, .quick-value, .insights-board strong, .home-clock) {
  font-variant-numeric: tabular-nums;
}
.top, .bottom, .set-dock {
  background: #111113d9;
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}
.top { box-shadow: inset 0 -1px #ffffff0d; }
.bottom, .set-dock { box-shadow: inset 0 1px var(--gold-edge), 0 -8px 24px #0004; }
.bottom button[aria-current=page] {
  background: #e8c97a13;
  color: #ffebbb;
  box-shadow: inset 0 1px #fff3cb29;
}
.bottom button[aria-current=page] svg { stroke: currentColor; }
.top .brand :is(#home-entry, #cardio-entry, .display-btn) {
  background: var(--glass);
  box-shadow: inset 0 1px #fff4d325, 0 3px 8px #0006;
}
.top .brand :is(#home-entry, #cardio-entry)[aria-current=page],
.top .brand #home-entry[aria-pressed=true] { background: #e8c97a23; color: #ffebbb; }
main .panel:not(.logger), dialog, .bento>section,
.bento>section:first-child, .bento>section:last-child, .path-panel,
.insights-board>section, .progress-figures>section {
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--gold-edge), var(--glass-depth);
}
.load-outlook { background: linear-gradient(145deg, #262018, #151416 68%); }
:where(#app, body) button.primary, main button.primary,
.launchbar button.primary, .dock-inner button.primary, dialog button.primary {
  background: var(--key-gold);
  border-radius: 999px;
  border: 1px solid #fff0bdad;
  color: #211707;
  box-shadow: inset 0 1px #fff9e0, inset 0 -2px 3px #744d262e, 0 3px 10px #0009;
  font-weight: 760;
  min-height: 52px;
}
:where(#app, body) button.primary:active, main button.primary:active,
.launchbar button.primary:active, .dock-inner button.primary:active,
dialog button.primary:active { background: #ebcd89; }
button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #fff2c5;
  outline-offset: 2px;
}
#app :is(.split-picker, .range), .week-strip {
  background: #131316;
  border: 1px solid #e8c97a26;
  box-shadow: inset 0 1px 4px #0009;
}
#app :is(.split-picker, .range, .energy-options) button[aria-pressed=true],
.week-strip .current {
  background: linear-gradient(155deg, #6b562d, #362b18 63%, #463518);
  color: #fff0c6;
  box-shadow: inset 0 0 0 1px #f4d99983, inset 0 0 14px #e4b4512d, 0 2px 6px #0008;
}
#app .split-picker { border-radius: 999px; }
#app .split-picker button { border-radius: 999px; min-height: 44px; }
.training-hero {
  background: radial-gradient(ellipse at 74% 46%, #3a2b1e 0%, #171316 46%, #101013 78%);
  box-shadow: inset 0 0 0 1px var(--gold-edge), 0 14px 26px #0007;
  border-radius: 24px;
}
.training-photo { min-height: 306px; padding: clamp(20px, 5vw, 34px); }
.outlook-copy { width: 54%; }
.outlook-copy h2 { margin: 10px 0; }
.outlook-copy .split-line { color: var(--champagne); letter-spacing: .075em; text-transform: uppercase; }
.outlook-copy p:not(.split-line) { color: #f0e8d9; }
.outlook-copy small { color: #c1b9ac; }
.session-state { background: #292214; box-shadow: inset 0 0 0 1px #e8c97a30; }
.outlook-art {
  width: 55%;
  mask-image: none;
  background: none;
  isolation: isolate;
}
.outlook-art img {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 95%;
  object-fit: cover;
  object-position: 50% 35%;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 59% 71% at 50% 58%, #000 46%, transparent 100%);
}
.outlook-art.lower-art img { object-position: 50% 50%; object-fit: contain; }
.outlook-art svg { inset: 1% 0 auto; height: 95%; opacity: 1; z-index: 1; }
.outlook-track { stroke: #f9deb044; }
.outlook-value { filter: drop-shadow(0 0 5px #e7ba5b8c); }
.gauge-label {
  z-index: 2;
  right: 18px;
  bottom: 15px;
  background: #111112dd;
  border: 1px solid #e8c97a43;
  border-radius: 999px;
  color: #f4dfac;
  padding: 6px 11px;
  font-size: .8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bento { gap: 10px; margin: 12px 0; }
.bento h3, .bento>section:last-child h3, .insights-board h2 {
  color: #e1c899;
  font-weight: 660;
  font-size: .83rem;
  letter-spacing: .055em;
}
.bento .stat-number { font-size: clamp(1.5rem, 6vw, 2rem); }
.streak-strip .trained { background: linear-gradient(90deg, #a97928, #f6d689); }
.launchbar button.primary { min-height: 56px; box-shadow: inset 0 1px #fff9e0, 0 5px 17px #b07b3c39; }
body[data-view=routine] #app>.panel:has(.swipe-row) { background: transparent; box-shadow: none; padding: 7px 0; }
#app .routine-line {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px #e8c97a29, inset 0 1px #ffffff0c, 0 4px 10px #0005;
  border-radius: 17px;
  min-height: 86px;
  padding: 6px;
  gap: 12px;
}
.routine-line .edit-item summary { min-height: 64px; }
.routine-line .exercise-name { font-size: 1rem; font-weight: 670; line-height: 1.2; }
.routine-line .edit-item summary small { color: #bfb8ad; font-size: .84rem; }
#app .picture-thumb {
  width: 68px;
  height: 66px;
  flex: 0 0 68px;
  background: #0d0d0f;
  border: 1px solid #e8c97a3d;
  border-radius: 13px;
  padding: 0;
  box-shadow: inset 0 1px #ffffff14;
}
#app .routine-line .picture-thumb { width: 86px; height: 73px; flex-basis: 86px; }
.picture-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.picture-thumb img:is(.exercise-art, .personal-picture) { filter: none; mix-blend-mode: normal; }
#pictures .guide-cover { margin: 12px auto 18px; text-align: center; }
#pictures .guide-cover img {
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 17px;
  border: 1px solid var(--gold-edge);
  background: #0a0a0a;
}
#pictures .guide-poses { margin: 12px 0; }
#pictures .guide-poses > summary { min-height: 44px; align-content: center; }
#pictures .guide-poses .picture-pair img { background: #ece8e0; }
#pictures .picture-pair img.personal-picture { background: #111; }
.logger .lift-title { margin-bottom: 14px; }
.logger .lift-title h2 {
  margin: 2px 0 0;
  font-size: clamp(1.5rem, 5.8vw, 2.25rem);
  font-weight: 760;
  line-height: 1.08;
  text-wrap: balance;
}
.logger .lift-title .eyebrow { color: #e0c486; font-size: .82rem; }
.logger .set-chips :is(.chip-menu>summary, .warmup-chip select, button) {
  background: var(--glass);
  box-shadow: inset 0 0 0 1px #e8c97a30, inset 0 1px #ffffff15;
}
.logger [data-voice-status] { color: var(--lime); }
.logger .set-console { background: #101013b3; box-shadow: none; }
.logger .set-console .quick-set { padding: 10px 0; }
.logger .quick-set .section-line { padding: 0 4px; }
.logger .quick-set .section-line h3 { font-size: 1rem; color: #ffe6aa; }
.logger .step-field {
  position: relative;
  overflow: hidden;
  padding: 11px 10px 12px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 90% 90%, #b5ed2611, transparent 55%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--gold-edge), var(--glass-depth);
}
.logger .step-field label {
  padding: 0 6px;
  color: #e3c98c;
  letter-spacing: .08em;
  text-align: left;
  font-size: .8rem;
  text-transform: uppercase;
}
.logger .step-control {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 7px;
  padding: 3px 3px 0;
  align-items: center;
}
.logger .step-control .quick-value {
  grid-row: auto;
  grid-column: auto;
  color: #faf7ee;
  font-size: clamp(2.45rem, 10vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.23;
  background: transparent;
  padding: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.logger .step-control .quick-value.suggested { color: #f4eedf; }
.logger .step-control [data-act=nudge] {
  grid-row: auto;
  min-width: 44px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 1.6rem;
}
#app .logger .step-control [data-act=nudge][data-delta="-1"] { background: var(--glass); }
#app .logger .step-control [data-act=nudge][data-delta="1"] {
  background: var(--key-lime);
  color: #1c2506;
  box-shadow: inset 0 1px #f5ffb8, 0 2px 11px #b3e8382a;
}
.dock-inner .rest-pill { border-color: var(--gold-edge); color: #f5dba0; }
#app .dock-inner button[data-act=complete-set],
#app .gym-guide button:is([data-gym=ready], [data-gym=done], [data-gym=save]) {
  background: var(--key-lime);
  border: 1px solid #edff9bb0;
  color: #182205;
  box-shadow: inset 0 1px #f5ffca, 0 4px 18px #c6ff3936;
  font-weight: 780;
  border-radius: 999px;
  min-height: 50px;
}
#app .gym-guide button:is([data-gym=ready], [data-gym=done], [data-gym=save]) { width: 100%; }
#app .dock-inner button[data-act=complete-set]:active,
#app .gym-guide button:is([data-gym=ready], [data-gym=done], [data-gym=save]):active { background: #b9df3f; }
.gym-path .current { color: var(--champagne); border-color: #e8c97a7d; }
.gym-path .complete { color: var(--lime); }
#app :is(.home-clock, [data-coach-clock]) { color: #fff3d1; }
#timed-coach [data-coach-clock] {
  font-size: clamp(2.6rem, 11vw, 4rem);
  letter-spacing: -.065em;
  line-height: 1;
}
#timed-coach [data-coach-status][data-listening] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
}
#timed-coach [data-coach-status][data-listening]::before {
  content: '';
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px #d4ff5180;
}
#timed-coach button[data-coach=run], #coach-report button[type=submit] { min-width: min(100%, 13rem); }
.cardio-history details { background: #141416; }
.cardio-history summary { padding-block: 10px; }
.cardio-history summary time { color: #ecd29a; font-size: .86rem; }
.rest-rail i { background: var(--champagne); }
.pr-badge { background: var(--key-gold); color: #30200a; }
.insights-board>.insight-volume { background: radial-gradient(ellipse at 40% 125%, #6b352888, transparent 65%), var(--glass); }
.chart .trend-fill { fill: url(#obsidian-trend-fill); }
.chart .series { stroke: var(--heat); }
.radar-data { fill: #e8c97a3d; stroke: var(--champagne); }
.radar-ring { stroke: #ae966955; }
.award.earned .ribbon { fill: #9d602f; }
.award.earned .medal { fill: #c19a4b; stroke: #f8e1a2; }
.award.earned .engraving { stroke: #3a270b; }

@media (max-width: 600px) {
  .board-head h1 { font-size: clamp(1.8rem, 7.4vw, 2.65rem); }
  .board-head { align-items: baseline; gap: 6px; }
  .board-head time { font-size: .78rem; }
  .training-photo { padding: 17px 15px 12px; min-height: 0; align-items: center; }
  .outlook-art { position: relative; width: min(100%, 345px); height: clamp(201px, 60vw, 285px); order: 1; }
  .outlook-art svg { inset: 0 0 auto; height: 100%; }
  .outlook-art img { width: 92%; height: 96%; left: 4%; object-position: 50% 40%; }
  .outlook-copy { order: 3; width: 100%; text-align: center; padding-bottom: 3px; }
  .outlook-copy h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); margin: 4px 0 3px; }
  .outlook-copy p, .outlook-copy small { margin: 3px 0 0; }
  .outlook-copy .split-line { margin: 5px 0 0; }
  .session-state { display: none; }
  .gauge-label { position: relative; right: auto; bottom: auto; order: 2; margin: -23px 0 4px; }
  .logger .steppers { grid-template-columns: 1fr; gap: 9px; }
  .logger .step-field { padding: 9px 12px 10px; }
  .logger .step-control .quick-value { font-size: clamp(2.45rem, 12vw, 3.9rem); }
  #app .routine-line .picture-thumb { width: 74px; height: 66px; flex-basis: 74px; }
  #app .routine-line { min-height: 80px; }
}
@media (max-width: 355px) {
  .board-head { flex-wrap: wrap; }
  .insights-board { grid-template-columns: 1fr; }
  #app .routine-line .picture-thumb { width: 62px; height: 59px; flex-basis: 62px; }
}
:root[data-contrast=high] :is(.panel, .training-hero, .bento>section, .routine-line, .step-field, .insights-board>section) {
  outline: 1px solid #a59a87;
  outline-offset: -1px;
}
@media (prefers-reduced-transparency: reduce) {
  .top, .bottom, .set-dock, .gauge-label { background: #141416; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
