/* PANZER MODE / Black Orchid
   Visual system inspired by luminous editorial analytics dashboards.
   This sheet changes presentation only; training calculations remain untouched. */

:root {
  --bg: #07060d;
  --panel: #11101a;
  --panel2: #1b1725;
  --edge: #6e587c;
  --ink: #ffffff;
  --muted: #d6cbdf;
  --lime: #f16ae7;
  --lime2: #be52f3;
  --orchid: #ea4ddd;
  --orchid-bright: #ffc0f4;
  --violet: #9d83ff;
  --cyan: #80d8ff;
  --warning: #ffc08e;
  --accent: #f28dea;
  --accent-light: #ffc0f4;
  --surface-deep: #171020;
  --surface-raised: #291c36;
  --border-strong: #a875b5;
  color-scheme: dark;
}

html { background: #07060d; }
body {
  background:
    radial-gradient(ellipse 760px 450px at 4% 0%, #a52a8859, transparent 72%),
    radial-gradient(ellipse 630px 570px at 96% 100%, #40388c36, transparent 75%),
    #07060d;
  color: var(--ink);
}
button, input, select, textarea { accent-color: var(--orchid); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orchid-bright);
  outline-offset: 2px;
}
::selection { background: #bc51eb; color: #fff; }

.app-shell {
  background:
    radial-gradient(ellipse 430px 310px at 2% 0%, #be3fab34, transparent 78%),
    radial-gradient(ellipse 390px 360px at 100% 38%, #6948c41d, transparent 80%),
    #0b0912;
  border-color: #47384f;
  box-shadow: 0 28px 110px #000a, 0 0 95px #a63a8918;
}
.topbar {
  background: #0b0912dc;
  border-bottom: 1px solid #ffffff13;
  backdrop-filter: blur(24px);
}
.brand-cat {
  border-radius: 13px;
  border-color: #c977dc54;
  filter: drop-shadow(0 0 12px #b64eda65);
}
.brand-word {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.9px;
}
.brand-word > span {
  background: linear-gradient(105deg, #ffa2e9 0%, #e656f5 52%, #a4a1ff 100%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.brand-word small {
  letter-spacing: 1px;
  font-size: 9px;
  color: #aaa0bb;
  font-weight: 600;
}
.status {
  background: #1c1425;
  border: 1px solid #593761;
  color: #e9cee9;
  font-size: 10px;
  font-weight: 800;
}
.status-dot {
  background: #e85cf1;
  box-shadow: 0 0 9px #e85cf1c4;
}
.status.attention .status-dot { background: #ffc08e; }
.nav-caption { display: none; }
.screen { padding-top: 24px; }
.profile-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 8px;
  text-align: left;
}
.profile-welcome { min-width: 0; }
.profile-kicker, .page-eyebrow, .tagline {
  color: var(--orchid-bright);
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 900;
}
.profile-kicker { margin: 0 0 10px; }
.profile-zone h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: -1.9px;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 10px 40px #bb4ccf2e;
}
.period { color: var(--orchid-bright); }
.profile-sub {
  margin: 9px 0 0;
  color: #b9accb;
  font-size: 12px;
  line-height: 1.4;
}
.avatar-ring {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 1px solid #e56fe3;
  padding: 4px;
  box-shadow: 0 0 0 5px #c24bd211, 0 0 34px #bd3dc047;
}
.avatar-illustration .hair { transform: rotate(6deg) scale(.76); top: 0; }
.avatar-illustration .head { transform: scale(.74); top: 6px; }
.avatar-illustration .face { transform: scale(.8); top: 5px; }
.page-title {
  font: 800 clamp(40px, 11vw, 60px)/.94 'DM Sans', system-ui, sans-serif;
  letter-spacing: -2.6px;
  margin: 2px 0 26px;
}
.page-title em, .complete-inner h2 em {
  color: var(--orchid-bright);
  text-shadow: 0 5px 28px #d74cd644;
}
.section-heading h2, .breakdown-heading {
  font: 800 17px/1.2 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.4px;
}
.panel h2 {
  font: 800 18px/1.25 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.35px;
}
.section-heading { gap: 12px; }
.tiny-label, .inline-link {
  color: #df86ff;
  font-size: 11px;
  letter-spacing: .5px;
}
.screen-intro, .legal-note, .panel p, .profile-focus p {
  color: #c9c1d4;
  font-size: 14px;
  line-height: 1.6;
}
.small-detail, .panel .small-detail { color: #bdb3c9; }

/* Surfaces: soft bevel, restrained glass, violet edge light. */
.panel, .exercise-card, .history-item, .radar-tile, .quick-workout {
  background: linear-gradient(137deg, #1c1728 0%, #12101b 48%, #0e0d16 100%);
  border: 1px solid #42374f;
  box-shadow: inset 0 1px 0 #ffffff0b, 0 10px 35px #0003;
  border-radius: 21px;
}
.panel { padding: 20px 18px; }
.panel.coach-highlight, .intelligence-panel, .meet-panel, .profile-focus {
  background:
    radial-gradient(ellipse 250px 190px at 0% 0%, #df54cc38, transparent 76%),
    linear-gradient(125deg, #25192b 0%, #130f1e 60%, #0d0c16 100%);
  border-color: #684669;
}
.panel code { background: #38213f; color: #ffb9f4; }
.panel .field-label { margin-top: 15px; }
.hero-metrics {
  gap: 9px;
  padding: 15px 0 28px;
}
.hero-metrics > div {
  border: 1px solid #58385a;
  border-radius: 18px;
  min-height: 121px;
  padding: 17px 7px 13px;
  background: radial-gradient(circle at 15% 0%, #b541b64a, transparent 80%), #1a1322;
}
.hero-metrics > div:nth-child(2) {
  border-color: #3c477e;
  background: radial-gradient(circle at 15% 0%, #575cbf5c, transparent 80%), #151629;
}
.hero-metrics > div:nth-child(3) {
  border-color: #664578;
  background: radial-gradient(circle at 15% 0%, #8e51c45a, transparent 80%), #1a1527;
}
.hero-metrics b {
  color: #fff;
  font-size: clamp(20px, 5.5vw, 29px);
  line-height: 1.2;
  letter-spacing: -.5px;
}
.hero-metrics b span { color: #d6cadf; }
.hero-metrics small {
  color: #d6cede;
  font-size: 11px;
  font-weight: 600;
}
.metric-icon { color: #ff9ef1; }
.hero-metrics > div:nth-child(2) .metric-icon { color: #a7a3ff; }
.hero-metrics > div:nth-child(3) .metric-icon { color: #d0adff; }
.calendar-panel { margin-top: 2px; }
.day-strip { gap: 6px; }
.day-box {
  background: #171320;
  border-color: #382d43;
  border-radius: 14px;
}
.day-box.active {
  border-color: #d75fd9;
  background: linear-gradient(145deg, #59305b, #25172f);
  box-shadow: inset 0 0 0 1px #d971d63b, 0 0 23px #dd50ce24;
}
.day-box .dot { background: #685873; }
.day-box .dot.today { background: #fff; }
.day-box .dot.done { background: #ee7ae7; box-shadow: 0 0 9px #eb6bde99; }
.day-box strong { color: #fcf9ff; }
.day-box.active strong { color: #ffb4f4; }
.day-box small { color: #bfb0cf; }
.hero-slide {
  border-radius: 22px;
  border-color: #ffffff24;
  height: 234px;
  box-shadow: inset 0 1px 0 #ffffff25;
}
.hero-track { border-radius: 22px; }
.hero-slide h2 { font-size: clamp(37px, 10vw, 52px); }
.hero-slide p { color: #f0e4f4; }
.slide-tag, .slide-blue .slide-tag, .slide-violet .slide-tag { color: #ffe0fa; }
.slide-lime {
  background:
    radial-gradient(circle at 10% 0%, #ffa5e8b2, transparent 45%),
    radial-gradient(circle at 100% 100%, #6330a96a, transparent 57%),
    linear-gradient(120deg, #642758, #1c1326 66%);
}
.slide-lime h2 { color: #fff; }
.slide-watermark { color: #ffc0ff39; }
.slide-blue {
  background: radial-gradient(circle at 95% 5%, #8ce5ff7d, transparent 56%), linear-gradient(125deg, #253f76, #161127 85%);
}
.slide-violet {
  background: radial-gradient(circle at 100% 3%, #ec68f49c, transparent 58%), linear-gradient(120deg, #503075, #161025);
}
.slide-dark {
  background: radial-gradient(circle at 92% 20%, #db71f359, transparent 59%), linear-gradient(115deg, #251b37, #0c0d17);
}
.slide-dark h2 span, .slide-total b { color: #ff9be9; }
.slide-orbit { border-color: #c491ff39; }
.slide-mini-track { background: #ffffff29; }
.slide-mini-track span { background: linear-gradient(90deg, #fb7ddd, #a68eff, #d8b7ff); }
.banner-dots button.active { background: #ff8de8; box-shadow: 0 0 15px #f16ae7b3; }
.checkpoint-notice {
  background: linear-gradient(115deg, #4a2355, #17111f);
  border-color: #bf71d7;
}
.checkpoint-notice > span { color: #ffb4f6; }
.checkpoint-notice button { background: #e66be8; color: #1a071d; }
.next-mission {
  background: radial-gradient(circle at 0% 0%, #a94d9c38, transparent 60%), #1a1423;
  border-color: #5b4169;
  box-shadow: inset 0 1px 0 #ffffff0b;
}
.next-mission b { color: #fff; }
.next-mission small { color: #bfb4ca; }
.mission-icon {
  background: linear-gradient(130deg, #ffb3ea, #e55af4 72%, #9a75ff);
  color: #260d31;
  box-shadow: 0 0 30px #df48ce48;
}
.mission-icon svg { width: 27px; height: 27px; display: block; }
.chevron { color: #f7a3f1; }

/* Interactive program, progress, settings and competition controls. */
.selectors label, .field-label { color: #d6ccdf; font-size: 12px; }
.selectors select, .field-label input, .field-label select, .athlete-option,
.lift-field input, .feedback-field input, .comment-area textarea, .field-label textarea,
.exercise-name {
  background: #100e19;
  border: 1px solid #635371;
  color: #fff;
  border-radius: 12px;
}
.selectors select, select.athlete-option, .field-label select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' stroke='%23f6acf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
}
.day-overview {
  background: radial-gradient(ellipse at 95% 10%, #bc5fcd40, transparent 55%), linear-gradient(120deg, #32203e, #15111f);
  border-color: #77578b;
}
.day-overview h2 { color: #fff; }
.day-overview p { color: #d6cbdc; }
.day-symbol { background: linear-gradient(140deg, #ff98e7, #b672ff); color: #25102d; }
.day-symbol svg { width: 38px; height: 38px; display: block; }
.quick-workout { border-color: #574066; }
.quick-workout p { color: #cbbdd7; }
.quick-mode { background: #171121; border-color: #5e4e69; color: #f1e7fa; }
.quick-mode.active {
  background: linear-gradient(115deg, #ffa0ea, #db60ec, #ac7aff);
  border-color: #ffbcef;
  color: #270c2e;
  box-shadow: 0 0 17px #d34dc751;
}
.quick-caption { color: #ffadf4 !important; }
.volume-strip {
  background: #21162a;
  border-color: #603d69;
}
.volume-strip span { color: #ffa5ed; }
.workout-rail {
  top: max(5px, env(safe-area-inset-top));
  background: #1b1224f3;
  border-color: #bc71c9;
  box-shadow: 0 14px 36px #000a, 0 0 26px #c947c333;
}
.workout-rail > div > b { color: #fff; }
.workout-rail > div > small { color: #cbbdd7; }
.rail-bar { background: #4e3756; }
.rail-bar span {
  background: linear-gradient(90deg, #fe8cd9, #b087ff);
  box-shadow: 0 0 15px #e66bed;
}
.exercise-card.finished { border-color: #dd68dc; }
.exercise-index { color: #ffabea; }
.exercise-top h3 { font-family: 'DM Sans', system-ui, sans-serif; font-size: 20px; font-weight: 800; }
.pill { color: #e5d8ef; background: #292234; border-color: #514260; }
.pill.lime { color: #ffa9f3; border-color: #713b78; background: #39213e; }
.set-header { background: #251c30; color: #d5c5e0; border-top-color: #45364e; }
.set-line { border-color: #382b43; }
.set-line.done { background: #3a21435c; }
.set-number { color: #d6c5e5; }
.set-input { background: #0b0912; border-color: #594767; }
.set-line.done .set-input { border-color: #ae67c1; }
.set-check { background: #21182a; border-color: #735d7e; }
.set-check:checked { border-color: #f28dea; background: #ea73e5; }
.set-check:checked:after { color: #250a29; }
.set-foot, .exercise-actions small, .comment-area label, .exercise-swap summary, .coach-note summary {
  color: #c4b6cf;
}
.coach-note, .exercise-actions { border-color: #44354e; }
.coach-note summary { color: #efa1ea; }
.ghost-lift { background: linear-gradient(130deg, #182335, #151222); border-color: #716ca4; }
.ghost-lift > span { color: #bcb2ff; }
.smart-advice { background: linear-gradient(130deg, #3c2043, #211527); border-color: #a254b2; }
.smart-advice span { color: #ffb0f6; }
.smart-accept { background: #ed8fe9; border-color: #ffc4f2; color: #240f27; }
.stat-card {
  border: 1px solid #564461;
  background: #1b1424;
  border-radius: 19px;
}
.stat-card:nth-child(1) { background: radial-gradient(ellipse at 0% 0%, #c45bca56, transparent 90%), #1a1323; }
.stat-card:nth-child(2) { background: radial-gradient(ellipse at 0% 0%, #7975d153, transparent 90%), #171728; }
.stat-card:nth-child(3) { background: radial-gradient(ellipse at 0% 0%, #ab57cb4e, transparent 90%), #191323; }
.stat-card:nth-child(4) { background: radial-gradient(ellipse at 0% 0%, #ca649f41, transparent 90%), #1a1323; }
.stat-card strong { color: #fff; font-family: 'DM Sans', system-ui, sans-serif; font-size: 28px; letter-spacing: -.9px; }
.stat-card small, .stat-card > span { color: #d5c7df; }
.radar-tile { border-color: #544169; background: #15111f; }
.radar-tile span { color: #f4eaff; }
.radar-tile strong { font-family: 'DM Sans', sans-serif; font-size: 24px; }
.radar-tile > small { color: #bcaece; }
.meet-countdown {
  background: radial-gradient(ellipse at 10% 0%, #bb4ab988, transparent 74%), #27182f;
  border-color: #d577cf;
  color: #ffd4f7;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
}
.meet-grid-header b, .meet-footer > strong { color: #ef8fe9; }
.meet-grid-row > b { color: #e4d5ef; }
.attempt-input { background: #100d1a; border-color: #675177; }
.achievement { background: #16111e; border-color: #44384e; }
.achievement.earned { background: linear-gradient(115deg, #3b2044, #1e1627); border-color: #aa61ba; }
.achievement-medal { background: #292135; color: #c6b9d1; }
.achievement.earned .achievement-medal { background: linear-gradient(130deg, #ff9be9, #bd7cff); color: #220d29; }
.achievement-progress { background: #35273e; }
.achievement-progress span { background: linear-gradient(90deg, #eb69dc, #9d83ff); }
.history-item { border-color: #4e3d5b; }
.history-num, .history-item .history-num { background: #3d2146; color: #ef9aeb; }
.history-right b { color: #ff9af3; }
.history-body small, .history-right small { color: #c4b5d0; }
.one-rm-grid > div { background: #1a1524; border-color: #51405f; }
.one-rm-grid > div:nth-child(1) { background: linear-gradient(140deg, #482347, #191222); }
.one-rm-grid > div:nth-child(2) { background: linear-gradient(140deg, #27244d, #171324); }
.one-rm-grid > div:nth-child(3) { background: linear-gradient(140deg, #432557, #171324); }
.one-rm-grid small, .profile-record small { color: #c8b9d4; }
.one-rm-grid b span { color: #f89ae8; }
.mini-avatar { border-color: #965fa4; background: #342039; color: #ffacf1; }
.season-option {
  border-color: #5d4c68;
  color: #f7eefa;
  background: linear-gradient(140deg, #211a2c, #130f1b);
}
.season-option small { color: #bfb2cc; }
.season-option.active {
  background: linear-gradient(125deg, #ffb2e8, #df68ef, #a783ff);
  border-color: #ffd0f4;
  color: #200d26;
  box-shadow: 0 7px 27px #ed64e347;
}
.season-option.active small { color: #422348; }
.profile-gear { background: #2d1d37; color: #ff9bef; border-color: #8b5998; }
.profile-focus { border-color: #65436e; }
.profile-focus > span { color: #f3a0ec; }
.back-link, .inline-link { color: #f3a0ec; }
.feedback-choice { background: #17111f; border-color: #51405e; }
.feedback-choice:has(input:checked) { background: #432449; border-color: #d27cda; }
.feedback-choice small { color: #c2b3ce; }
.feedback-choice input { accent-color: #d86be6; }
.advice { border-left-color: #e77bec; background: #321d38; color: #edddef; }
.feedback-field { border-bottom-color: #483953; }
.feedback-field small { color: #bfb1c9; }
.tone-preview { background: #311d3c; border-color: #b46abf; color: #ffe8ff; }
.primary-btn {
  background: linear-gradient(110deg, #ffade9, #e15fe8, #ac7bff);
  border: 1px solid #ffa4ef;
  color: #1f0a28;
  box-shadow: 0 8px 30px #c14fc641, inset 0 1px 0 #ffffff5d;
  border-radius: 14px;
}
.secondary-btn { background: #2a2036; border-color: #765a87; color: #f6eaff; }
.report-awards { background: #311c39; border-color: #da82df; }
.report-awards > b { color: #ffb2ee; }
.report-awards > span { background: #f69aef; color: #200b26; }
.complete-dialog { background: #0d0916; border-color: #86528e; box-shadow: 0 0 0 100vmax #000b, 0 0 75px #b852c433; }
.complete-badge { color: #f6a7ed; }
.tonnage-box { background: radial-gradient(ellipse at 30% 0%, #a348a55b, transparent 75%), #22152b; border-color: #93599c; }
.tonnage-box strong { color: #ffadef; }
.quote-card { background: #301c38; border-left-color: #e66dea; }
.quote-card span { color: #ffb6f3; }
#toast { background: #ffb2eb; color: #290e2d; font-size: 13px; }

/* Mobile navigation stays fixed; wide screens become a true dashboard. */
.bottom-nav {
  background: #0f0b18ed;
  border-top: 1px solid #513458;
  box-shadow: 0 -14px 45px #0009;
}
.bottom-nav button { color: #ac9bbd; }
.bottom-nav button.active { color: #ff9af0; }
.bottom-nav button.active:before { background: #f171e7; box-shadow: 0 0 17px #ed72e68a; }
.bottom-nav small { font-size: 10px; }
.empty-state { border-color: #695076; color: #c3b4d0; background: #17111f; }

@media (max-width: 390px) {
  .brand-cat { width: 37px; height: 37px; flex-basis: 37px; }
  .brand-word { font-size: 15px; }
  .brand-word small { font-size: 8px; }
  .status { font-size: 9px; padding: 8px; }
  .profile-zone h1 { font-size: 28px; }
  .avatar-ring { width: 58px; height: 58px; flex-basis: 58px; }
  .hero-metrics small { font-size: 10px; }
  .page-title { font-size: 41px; }
}

@media (min-width: 900px) {
  body { padding: 24px; }
  .app-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: 128px minmax(0, 1fr);
    max-width: 1360px;
    min-height: calc(100dvh - 48px);
    padding-bottom: 0;
    border-radius: 26px;
    overflow: visible;
    border: 1px solid #554160;
  }
  .topbar {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding: 23px 19px 9px 26px;
    background: #0f0b18;
    border-bottom: 0;
    border-right: 1px solid #36273d;
    border-radius: 26px 0 0 0;
  }
  .topbar .status { font-size: 9px; padding: 7px 10px; }
  #appView {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    background:
      radial-gradient(ellipse 520px 350px at 0% 9%, #a347b83a, transparent 75%),
      radial-gradient(ellipse 350px 300px at 100% 35%, #5754af20, transparent 78%);
    border-radius: 0 26px 26px 0;
  }
  .bottom-nav {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: fit-content;
    min-height: 410px;
    padding: 26px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    background: #0f0b18;
    border: 0;
    border-right: 1px solid #36273d;
    border-radius: 0 0 0 26px;
    box-shadow: none;
    backdrop-filter: none;
  }
  .nav-caption {
    display: block;
    color: #7f718e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin: 0 0 15px 13px;
  }
  .bottom-nav button {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 49px;
    gap: 15px;
    padding: 9px 14px;
    border-radius: 12px;
    color: #c7b9d1;
    text-align: left;
  }
  .bottom-nav button.active {
    color: #250c2e;
    background: linear-gradient(110deg, #f6b0ea, #eb70eb 63%, #bf72fa);
    box-shadow: 0 8px 30px #d454d329;
  }
  .bottom-nav button.active:before { display: none; }
  .bottom-nav .nav-ico { font-size: 19px; line-height: 22px; }
  .bottom-nav small { font-size: 13px; font-weight: 800; letter-spacing: .1px; }
  .screen { padding: 37px clamp(25px, 4vw, 56px) 54px; max-width: 1110px; margin: 0 auto; }
  .page-title { font-size: 50px; }
  .profile-zone h1 { font-size: 38px; }
  #screenHome.screen-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro intro"
      "metrics metrics"
      "calendar carousel"
      "next carousel";
    column-gap: 22px;
    row-gap: 18px;
  }
  #screenHome .profile-zone { grid-area: intro; padding: 0 0 2px; }
  #screenHome .hero-metrics { grid-area: metrics; padding: 0; gap: 17px; }
  #screenHome .hero-metrics > div { min-height: 145px; padding-top: 28px; }
  #screenHome .hero-metrics b { font-size: 30px; }
  #screenHome .calendar-panel { grid-area: calendar; margin-top: 15px; }
  #screenHome .hero-carousel { grid-area: carousel; margin: 15px 0 0; align-self: stretch; }
  #screenHome .hero-slide { height: 295px; padding: 28px; }
  #screenHome .hero-slide h2 { font-size: 51px; }
  #screenHome .next-section { grid-area: next; margin: 0; align-self: start; }
  #screenHome #feedbackCheckpoint { grid-column: 1 / -1; }
  #screenHistory.screen-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 17px 22px;
  }
  #screenHistory > .page-eyebrow, #screenHistory > .page-title,
  #screenHistory > .stats-grid, #screenHistory > .achievements-panel,
  #screenHistory > .history-head, #screenHistory > .history-list { grid-column: 1 / -1; }
  #screenHistory > .page-title { margin-bottom: 0; }
  #screenHistory .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; }
  #screenHistory .stat-card { min-height: 145px; padding: 21px; }
  #screenHistory .intelligence-panel, #screenHistory .meet-panel { margin: 0; }
  #screenHistory .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screenHistory .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screenCoach.screen-active { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
  #screenCoach > .page-eyebrow, #screenCoach > .page-title, #screenCoach > .coach-highlight { grid-column: 1 / -1; }
  #screenProfile.screen-active { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; align-content: start; }
  #screenProfile > .profile-head, #screenProfile > .profile-record { grid-column: 1 / -1; }
  #screenProfile .one-rm-grid { grid-column: 1 / -1; }
  #screenProfile .profile-focus { grid-column: 2; }
  #screenProfile .season-panel { grid-column: 1; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Black Orchid / readability pass
   Brighter foreground hierarchy and stronger separation without turning
   the training workspace into a glowing wall of cards. */
html { font-size: 16px; }
body { font-size: 16px; }
.app-shell {
  background:
    radial-gradient(ellipse 420px 270px at 0% 0%, #ae43a735, transparent 83%),
    radial-gradient(ellipse 380px 360px at 100% 38%, #6948c41d, transparent 80%),
    #0c0a13;
  border-color: #685471;
}
.topbar { border-color: #5c4566; }
.brand-word { font-size: 18px; }
.brand-word small { font-size: 10px; color: #d2c1de; }
.status { background: #28182f; border-color: #81528c; color: #fff0ff; font-size: 11px; }
.profile-kicker, .page-eyebrow, .tagline { color: #ffb7f1; font-size: 12px; }
.profile-sub { color: #e3d8e9; font-size: 13px; }
.page-title { text-shadow: 0 3px 22px #0008; }
.section-heading h2, .breakdown-heading { font-size: 19px; }
.panel h2 { font-size: 20px; }
.tiny-label, .inline-link { color: #f6abef; font-size: 12px; }
.panel, .exercise-card, .history-item, .radar-tile, .quick-workout {
  background: linear-gradient(135deg, #241b30 0%, #181321 59%, #14111c 100%);
  border-color: #655273;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 10px 32px #0004;
}
.panel.coach-highlight, .intelligence-panel, .meet-panel, .profile-focus {
  background: radial-gradient(ellipse 250px 190px at 0% 0%, #e469d13d, transparent 76%), linear-gradient(135deg, #2b1f36, #18121f 69%);
  border-color: #906296;
}
.panel p, .profile-focus p, .screen-intro {
  color: #eadfed;
  font-size: 15px;
  line-height: 1.65;
}
.small-detail, .panel .small-detail { color: #d2c3df; font-size: 13px; }
.legal-note { font-size: 12.5px; color: #c9bdd1; }
.hero-metrics > div { border-color: #7b5381; }
.hero-metrics > div:nth-child(2) { border-color: #5e63a0; }
.hero-metrics > div:nth-child(3) { border-color: #806394; }
.hero-metrics b { font-size: clamp(24px, 5.6vw, 30px); }
.hero-metrics small { color: #f3e9f7; font-size: 12px; font-weight: 700; }
.day-box { background: #21192c; border-color: #574468; }
.day-box.active { background: linear-gradient(140deg, #683b70, #392142); }
.day-box small { color: #eadceb; font-size: 12px; }
.day-box strong { font-size: 19px; }
.hero-slide { border-color: #ba8fc259; }
.hero-slide p { color: #fff1fa; font-size: 15px; line-height: 1.5; }
.slide-tag, .slide-blue .slide-tag, .slide-violet .slide-tag { color: #ffe2f9; font-size: 12px; }
.slide-unit { color: #ffe8fb; font-size: 12px; }
.slide-total span { color: #f3dff8; font-size: 12px; }
.next-mission { border-color: #9a68a5; background: linear-gradient(118deg, #33213b, #201729); }
.next-mission b { font-size: 22px; }
.next-mission small { color: #e4d5e9; font-size: 14px; }
.checkpoint-notice { border-color: #d782dd; }
.selectors label, .field-label { color: #f0e7f5; font-size: 13px; letter-spacing: .55px; }
.selectors select, .field-label input, .field-label select, .athlete-option,
.lift-field input, .feedback-field input, .comment-area textarea, .field-label textarea,
.exercise-name, .attempt-input {
  background-color: #171020;
  border-color: #9474a0;
  color: #fff;
  font-size: 16px;
  min-height: 44px;
}
input::placeholder, textarea::placeholder,
.attempt-input::placeholder, .comment-area textarea::placeholder {
  color: #cdbbd4;
  opacity: 1;
}
.selectors select, .field-label input, .field-label select { min-height: 49px; }
.day-overview { border-color: #a16fae; }
.day-overview p { color: #f0e2f3; font-size: 14px; }
.quick-workout { border-color: #8a6697; }
.quick-workout p { color: #efe2f1; font-size: 14px; }
.quick-mode { border-color: #9276a0; color: #fff; font-size: 13px; min-height: 44px; }
.quick-caption { color: #ffbcf2 !important; font-size: 13px !important; }
.workout-rail { background: #271730f8; border-color: #e898eb; }
.workout-rail > div > b { font-size: 20px; }
.workout-rail > div > small { color: #efe1f4; font-size: 11px; }
.volume-strip { border-color: #8c61a0; background: #302039; }
.volume-strip span { color: #ffc0f2; font-size: 12px; }
.volume-strip b { font-size: 15px; }
.exercise-top h3 { font-size: 22px; line-height: 1.25; }
.exercise-index { color: #ffb9f1; font-size: 12px; }
.pill { background: #3a2c45; border-color: #856b93; color: #fff; font-size: 12px; }
.pill.lime { background: #492650; border-color: #ac6eb4; color: #ffc5f5; }
.set-header { color: #f4e9f6; font-size: 11px; letter-spacing: .3px; }
.set-line { border-color: #624d6a; }
.set-line.done { background: #48294d91; }
.set-number { color: #f1e3f5; font-size: 18px; }
.set-input { background-color: #0d0916; border-color: #8d709a; font-size: 17px; }
.set-foot { color: #e1d2e9; font-size: 12px; }
.exercise-actions small, .comment-area label, .exercise-swap summary,
.coach-note summary { color: #f1e3f6; font-size: 12px; }
.ghost-lift { border-color: #9188ca; }
.ghost-lift > span, .smart-advice span { font-size: 12px; }
.ghost-lift small, .smart-advice small { color: #e6dbee; font-size: 13px; }
.smart-advice { border-color: #d17ada; }
.smart-advice b { font-size: 15px; }
.smart-accept { font-size: 13px; min-height: 45px; }
.stat-card { border-color: #83658f; }
.stat-card small, .stat-card > span { color: #f0e6f4; font-size: 12px; }
.stat-card strong { font-size: 32px; }
.radar-tile { border-color: #856b98; background: #21182c; }
.radar-tile span { font-size: 14px; }
.radar-tile > small { color: #e3d6ec; font-size: 12px; }
.meet-countdown { border-color: #e0a1df; color: #ffe0f8; }
.meet-grid-header b { color: #ffc0f2; font-size: 11px; }
.meet-grid-row > b { color: #f3e5f8; }
.meet-footer > span { color: #eee0f3; font-size: 13px; }
.achievement { border-color: #776084; background: #201729; opacity: 1; }
.achievement.earned { border-color: #d185d9; }
.achievement p { color: #e1d3ea; font-size: 13px; }
.achievement small { color: #f1e5f8; font-size: 12px; }
.history-item { border-color: #795e86; }
.history-body b { font-size: 15px; }
.history-body small, .history-right small { color: #e3d5ed; font-size: 12px; }
.one-rm-grid > div { border-color: #82658d; }
.one-rm-grid small, .profile-record small { color: #efe1f4; font-size: 12px; }
.season-option { border-color: #8c709a; }
.season-option b { font-size: 23px; }
.season-option small { color: #e4d6ed; font-size: 13px; }
.feedback-choice { border-color: #7a618b; }
.feedback-choice b { color: #fff; font-size: 13px; }
.feedback-choice small { color: #e0d1e8; font-size: 12px; }
.feedback-field b { font-size: 14px; }
.feedback-field small { color: #dfd0e6; font-size: 12px; }
.advice { color: #f8eafb; font-size: 14px; }
.tone-preview { color: #fff; font-size: 16px; border-color: #d492de; }
.primary-btn { font-size: 16px; min-height: 53px; }
.secondary-btn { font-size: 14px; min-height: 45px; border-color: #9b7aaa; }
.bottom-nav { border-top-color: #74547e; }
.bottom-nav button { color: #e1d1e8; }
.bottom-nav button.active { color: #ffc0f2; }
.bottom-nav small { font-size: 11px; }
.empty-state { border-color: #9779a4; color: #e1d3e8; font-size: 14px; }

@media (max-width: 390px) {
  .brand-word { font-size: 16px; }
  .brand-word small { font-size: 9px; }
  .status { font-size: 10px; padding: 8px; }
  .day-box small { font-size: 11px; }
  .hero-metrics small { font-size: 11px; }
  .set-header { font-size: 10px; }
  .bottom-nav small { font-size: 10px; }
}
@media (min-width: 900px) {
  .bottom-nav button { color: #eee0f5; }
  .bottom-nav button.active { color: #210b2b; }
  .bottom-nav small { font-size: 14px; }
  .nav-caption { color: #c4b0d0; font-size: 12px; }
}

/* Streamlined navigation, single-source workout headings and dashboard cards. */
.topbar {
  min-height: 48px;
  padding: 8px 16px;
  gap: 8px;
  box-shadow: none;
}
.brand { gap: 7px; }
.brand-cat { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; }
.brand-word { font-size: 13px; letter-spacing: -.4px; }
.brand-word small { display: none; }
.status { padding: 5px 7px; font-size: 9px; background: #1c1522; border-color: #47354f; }
.status-dot { width: 5px; height: 5px; }
.screen { padding-top: 15px; }
#screenHome .next-section { margin-top: 14px; }
#screenHome .calendar-panel { margin-top: 18px; }
#screenHome .intelligence-panel, #screenHome .meet-panel { margin: 19px 0 0; }
#screenHome .strength-radar { margin-top: 14px; }
#screenPlan .workout-title {
  font-size: clamp(32px, 8.3vw, 53px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 7px 0 22px;
  overflow-wrap: anywhere;
}
#screenPlan #workoutBlockLabel { margin-top: 10px; }
#screenPlan .selectors { margin-top: 4px; }
#screenPlan .quick-workout { margin-top: 16px; }
#screenPlan .workout-rail { margin-top: 20px; }

/* Current maxes should look like a featured result, not an inactive form. */
#screenCoach .coach-highlight {
  background:
    radial-gradient(ellipse 330px 240px at 0 0, #f779d75c, transparent 73%),
    radial-gradient(ellipse 330px 210px at 100% 10%, #8d67db30, transparent 79%),
    linear-gradient(135deg, #36203b, #1d142b 64%, #130f1e);
  border: 1px solid #d289d7;
  box-shadow: inset 0 1px 0 #ffd4f53b, 0 10px 40px #b54baf38;
}
#screenCoach .coach-highlight > .tagline { color: #ffd1f6; font-size: 13px; }
#screenCoach .coach-maxes { gap: 11px; }
#screenCoach .coach-maxes > div {
  background: linear-gradient(150deg, #392640, #21172f);
  border: 1px solid #9b71aa;
  border-radius: 16px;
  padding: 17px 12px;
  box-shadow: inset 0 1px 0 #ffffff22;
}
#screenCoach .coach-maxes small { color: #f2e3f4; font-size: 13px; font-weight: 700; }
#screenCoach .coach-maxes b {
  display: block;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(23px, 5vw, 39px);
  letter-spacing: -.9px;
  color: #fff;
  line-height: 1.2;
}
#screenCoach .coach-maxes b span { font-size: 13px; color: #f7eaf9; font-weight: 600; }
#screenCoach .coach-total { border-top-color: #9c70a9; }
#screenCoach .coach-total span, #screenCoach .coach-class { color: #f3dcf5; font-size: 12px; }
#screenCoach .coach-total strong { color: #fff; font: 900 27px 'DM Sans',sans-serif; }
#screenCoach .lift-field { border-bottom-color: #574662; }
#screenCoach .lift-field > small { color: #ffb6f0; font-size: 12px; }
#screenCoach .score-card {
  background: linear-gradient(125deg, #422345, #241a35);
  border: 1px solid #9763a2;
}
#screenCoach .score-card span { color: #ffe5fb; font-size: 12px; }
#screenCoach .score-card strong { color: #ffc1f0; }
#screenCoach .volume-recommendations > div { background: #23192e; border-color: #6e537b; }
#screenCoach .volume-recommendations span { color: #f2e8f5; font-size: 13px; }
#screenCoach .volume-recommendations b { color: #ffc0f0; }
#screenCoach .volume-recommendations small { color: #e0cfe8; font-size: 11px; }
#screenCoach .calc-output {
  background: radial-gradient(ellipse at 30% 0, #a850b25c, transparent 75%), #23182e;
  border-color: #9464a0;
}
#screenCoach .calc-output span, #screenCoach .calc-output small { color: #f1dff4; font-size: 12px; }
#screenCoach .calc-output strong { color: #ffc0f2; }

@media (min-width: 900px) {
  .app-shell { grid-template-rows: 92px minmax(0, 1fr); }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 18px 8px 23px;
    gap: 10px;
    border-right: 1px solid #36273d;
  }
  .brand-cat { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-word { font-size: 16px; }
  .topbar .status { font-size: 9px; padding: 5px 8px; }
  .screen { padding-top: 35px; }
  #screenHome.screen-active {
    grid-template-areas:
      "intro intro"
      "metrics metrics"
      "next carousel"
      "calendar carousel"
      "checkpoint checkpoint"
      "radar meet";
    align-content: start;
  }
  #screenHome .next-section { grid-area: next; margin-top: 15px; align-self: end; }
  #screenHome .calendar-panel { grid-area: calendar; margin-top: 2px; }
  #screenHome .hero-carousel { grid-area: carousel; margin-top: 15px; }
  #screenHome #feedbackCheckpoint { grid-area: checkpoint; }
  #screenHome .intelligence-panel { grid-area: radar; margin: 0; }
  #screenHome .meet-panel { grid-area: meet; margin: 0; }
  #screenHome .intelligence-panel, #screenHome .meet-panel { align-self: start; }
  #screenHome .hero-slide { height: 315px; }
  #screenHistory.screen-active { display: block; }
  #screenHistory .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screenHistory .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screenProfile .profile-focus { grid-column: 2; }
}

/* Dashboard v15: one compact status line, short radar, expandable meet planner. */
.status[data-sync-state="error"] { border-color: #e6a47b; color: #ffe2cf; }
.status[data-sync-state="error"] .status-dot { background: var(--warning); box-shadow: 0 0 8px #ffc08e88; }
.status[data-sync-state="offline"] .status-dot { background: #b3a1bc; box-shadow: none; }
.status[data-sync-state="syncing"] .status-dot { background: var(--cyan); box-shadow: 0 0 10px #80d8ff99; }
.status[data-sync-state="synced"] .status-dot { background: #e89bf5; box-shadow: 0 0 9px #f2a7ff88; }
#screenHome .strength-radar { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 13px 0; }
#screenHome .radar-tile { min-width: 0; padding: 13px 9px; display: flex; flex-direction: column; gap: 8px; border-radius: 13px; border-color: #7c5e8a; background: var(--surface-deep); }
#screenHome .radar-tile > span { font-size: 11px; color: #f8d4fa; letter-spacing: .1px; overflow-wrap: anywhere; }
#screenHome .radar-tile strong { font: 900 clamp(19px, 4.1vw, 26px)/1.1 'DM Sans',sans-serif; color: #fff; white-space: normal; letter-spacing: -.6px; }
#screenHome .radar-tile strong small { font-size: 11px; color: #edcdea; }
#screenHome .radar-tile > small { font-size: 10px; line-height: 1.45; color: #d9c5e2; }
.panel-link { display: block; width: 100%; padding: 10px 6px 3px; border: 0; background: transparent; color: var(--accent-light); font-weight: 800; font-size: 11px; letter-spacing: .2px; text-align: left; }
.panel-link:hover { color: #fff; }
.meet-summary { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 13px; margin: 16px 0 13px; }
.meet-summary > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: 13px; background: #171020; border: 1px solid #795988; min-width: 0; }
.meet-summary span { color: #e2cfe9; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .25px; }
.meet-summary #meetTotal { color: #fff; font: 800 clamp(18px,3.5vw,27px)/1.2 'DM Sans',sans-serif; letter-spacing: -.8px; }
.meet-summary .meet-countdown { display: block; text-align: left; font: 850 15px/1.4 'DM Sans',sans-serif; letter-spacing: -.3px; color: #ffc3f1; padding: 0; margin: 0; border: 0; background: none; overflow-wrap: anywhere; }
.meet-prep { border: 1px solid #9d6cad; border-radius: 14px; padding: 13px; margin-bottom: 14px; background: radial-gradient(ellipse at 0 0,#c654b83b,transparent 72%),#24182d; }
.meet-prep-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.meet-prep-dates > div { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.meet-prep-dates > div+div { border-left: 1px solid #84638e; padding-left: 12px; }
.meet-prep-dates span { font-size: 11px; font-weight: 850; letter-spacing: .25px; color: #fbc3f0; }
.meet-prep-dates strong { color: #fff; font: 850 clamp(14px,2.4vw,19px)/1.35 'DM Sans',sans-serif; overflow-wrap: anywhere; }
#screenHome .meet-prep p { font-size: 12px; color: #f2e4f3; line-height: 1.6; margin: 12px 0 0; }
.meet-prep-link { background: transparent; border: 0; border-top: 1px solid #825b8f; color: #ffc8f2; display: block; text-align: left; width: 100%; padding: 11px 0 0; margin-top: 11px; font-size: 11px; font-weight: 850; letter-spacing: .3px; }
.meet-prep-link[hidden] { display: none !important; }
.meet-editor { border-top: 1px solid #73577e; padding-top: 12px; }
.meet-editor summary { cursor: pointer; list-style: none; font-weight: 850; letter-spacing: .4px; color: #ffc2f3; font-size: 12px; padding: 8px 0; }
.meet-editor summary::-webkit-details-marker { display: none; }
.meet-editor summary::after { content: '⌄'; float: right; font-size: 18px; line-height: .8; }
.meet-editor[open] summary::after { content: '⌃'; }
.meet-editor > p { margin: 12px 0 0; }

/* One-handed set logging: RIR confirms, next set is visually indicated, undo is always within reach. */
.workout-rail .undo-set { grid-column: 1 / -1; width: 100%; min-height: 32px; background: #40254b; border: 1px solid #b67cc7; border-radius: 9px; color: #ffe3fa; font: 850 11px 'DM Sans',sans-serif; padding: 6px 9px; }
.workout-rail .undo-set[hidden] { display: none !important; }
.workout-rail { border-color: var(--border-strong); box-shadow: 0 8px 28px #000b, 0 0 14px #d563d522; }
.set-line.next-set:not(.done) { background: #41244f8c; box-shadow: inset 3px 0 0 var(--accent-light); }
.set-line .set-check { min-width: 32px; min-height: 32px; }
.set-line .set-input { min-height: 43px; }
.exercise-est { background: #2b1b39; border-color: #865998; }
.exercise-est span { color: #e8cce9; font-size: 11px; }
.exercise-est b { color: #ffb8f0; }
.exercise-actions button { background: #392644; border-color: #a575b6; color: #ffc5f1; min-height: 42px; }
.exercise-swap { border-top-color: #755781; }
.exercise-swap summary { color: #ffc0f4; }
.exercise-swap p { color: #e8d8eb; }
.exercise-swap button { background: var(--accent); color: #240e2a; }
.volume-strip { background: #2b1a3c; border-color: #9961ad; }
.volume-strip span { color: #f8dafa; }
.quick-mode.active { background: linear-gradient(120deg, #ffb0e9, #cd7aff); color: #220c2b; border-color: #ffb4ee; box-shadow: 0 0 16px #d257de44; }
.smart-advice { background: linear-gradient(130deg, #3c2043, #211527); border-color: #b478c7; }
.smart-advice b, .smart-advice small { color: #f7eafa; }
.smart-accept { background: #f4a2ee; color: #27102e; border-color: #ffcff6; }

/* Clear separation: verified competition results versus personalized training maxes. */
#screenCoach .official-pr-panel { border: 1px solid #e4a6ec; background: radial-gradient(ellipse at 0 0,#e65dcc72,transparent 72%),linear-gradient(135deg,#3a1e43,#1a1228 70%); }
#screenCoach .official-pr-panel .coach-maxes > div { background: #251633; border-color: #ac7cbb; }
#screenCoach .official-pr-panel .coach-maxes b { color: #fff; }
#screenCoach .pr-source-date { color: #dfc8e4; font-size: 10px; font-weight: 650; line-height: 1.5; margin-top: 8px; }
#screenCoach .source-note { margin: 13px 0 0; font-size: 12px; color: #f0def3; }
#screenCoach .source-note a { color: #ffd1f7; text-decoration: underline; text-underline-offset: 2px; }
.training-max-panel .training-max-list { display: grid; gap: 8px; margin-top: 15px; }
.training-max-panel .training-max-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 11px; background: #1a1124; border: 1px solid #664d72; }
.training-max-panel .training-max-list span { color: #e3d1e9; font-size: 12px; }
.training-max-panel .training-max-list strong { color: #fff; white-space: nowrap; font-size: 16px; }
.training-total { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin: 15px 0 9px; padding-top: 14px; border-top: 1px solid #71547d; }
.training-total span { font-size: 11px; font-weight: 800; color: #d7c2e0; }
.training-total strong { color: #ffb9f0; font-size: 20px; }

/* Real data analytics, kept readable even at the narrowest gym-sized viewport. */
.progress-insights { display: grid; gap: 15px; margin: 21px 0; }
.progress-insights .panel { min-width: 0; }
.volume-chart { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); align-items: end; gap: 7px; height: 165px; margin: 14px 0 11px; }
.chart-column { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.chart-value { color: #edd7f1; font-size: 10px; font-weight: 700; min-height: 15px; white-space: nowrap; }
.chart-column > small { color: #d6c1df; font-size: 10px; }
.chart-bar-track { width: 100%; flex: 1; display: flex; align-items: end; padding: 0 3px; background: #201628; border: 1px solid #5f4870; border-radius: 8px; overflow: hidden; }
.chart-bar-fill { display: block; width: 100%; border-radius: 5px 5px 3px 3px; background: linear-gradient(0deg,#a974ff,#f478dd 68%,#ffcaef); }
.progress-summary { border-top: 1px solid #675373; padding-top: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.progress-summary span { color: #d9c8e4; font-size: 10px; font-weight: 750; }
.progress-summary b { color: #fff; font-size: 19px; }
.adherence-display { padding: 16px 0 8px; display: grid; gap: 8px; }
.adherence-display strong { color: #fff; font-size: 44px; font-weight: 900; letter-spacing: -2px; }
.adherence-display > span { color: #e8d5ed; font-size: 11px; font-weight: 750; line-height: 1.55; }
.adherence-track { height: 10px; background: #21182b; border: 1px solid #6d537d; overflow: hidden; border-radius: 20px; }
.adherence-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#bb79f7,#fc93e9); }
.season-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.season-summary { display: grid; gap: 8px; background: #191222; border: 1px solid #63506d; border-radius: 12px; padding: 14px 10px; min-width: 0; }
.season-summary.current { border-color: #da91dc; background: #39203f; }
.season-summary span { color: #ffc0ee; font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.season-summary b { color: #fff; font-size: 13px; }
.season-summary small { color: #e8d8ed; font-size: 11px; }
.strength-trends { display: grid; gap: 9px; margin-top: 16px; }
.strength-trend { min-width: 0; background: #1c1525; border: 1px solid #6d547b; border-radius: 13px; padding: 14px; }
.strength-trend > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.strength-trend b { color: #ffbcef; font-size: 12px; }
.strength-trend strong { color: #fff; font-size: 20px; }
.strength-trend .trend-change { color: #e9c4f5; font-size: 11px; font-weight: 800; }
.strength-trend svg { display: block; width: 100%; height: 76px; margin: 10px 0 5px; }
.strength-trend > small { display: block; color: #d5c4e0; font-size: 10px; }
.trend-empty { color: #d9c5e0; font-size: 12px; padding: 25px 0; }
.sync-status-card { border: 1px solid #865f9a; border-radius: 14px; background: var(--surface-deep); padding: 15px; margin: 15px 0 18px; }
.sync-status-card b { color: #ffc3f1; font-size: 12px; letter-spacing: .4px; }
.sync-status-card p { font-size: 13px; color: #f1e4f3; margin: 8px 0 0; line-height: 1.5; }
.sync-status-card[data-sync-state="synced"] { border-color: #bb80d4; background: #291932; }
.sync-status-card[data-sync-state="error"] { border-color: #f3a37b; background: #39262b; }
.sync-status-card[data-sync-state="error"] b { color: #ffd6b8; }
.sync-status-card[data-sync-state="syncing"] { border-color: #88c6ed; }
@media (min-width: 900px) {
  #screenHistory .progress-insights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
  #screenHistory .progress-strength-panel { grid-column: 1 / -1; }
  #screenHistory .strength-trends { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
