:root {
  --ink: #11251f;
  --ink-soft: #1d3a31;
  --paper: #f4f1e8;
  --paper-2: #ebe7db;
  --white: #fffef9;
  --lime: #c7f36b;
  --lime-deep: #9ecb45;
  --coral: #ff755e;
  --blue: #80b8ff;
  --muted: #6f7974;
  --line: rgba(17, 37, 31, .14);
  --shadow: 0 18px 50px rgba(17, 37, 31, .10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(199, 243, 107, .18), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--lime); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(17, 37, 31, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: inherit; text-decoration: none; font-size: 13px; font-weight: 850; letter-spacing: .19em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--lime); border-radius: 50%; font-size: 17px; font-weight: 900; letter-spacing: 0; transform: rotate(-7deg); }
.nav-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.07); border-radius: 999px; }
.nav-tab { border: 0; border-radius: 999px; padding: 9px 15px; color: rgba(255,255,255,.66); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; transition: .2s ease; }
.nav-tab:hover { color: var(--white); }
.nav-tab.active { color: var(--ink); background: var(--lime); }
.progress-tools-button { justify-self: end; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 13px; color: rgba(255,255,255,.74); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.progress-tools-button:hover { color: var(--white); border-color: rgba(255,255,255,.5); }

main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) 96px; }
.hero { min-height: 460px; display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: clamp(32px, 7vw, 110px); padding: 76px 0 56px; }
.eyebrow, .section-kicker, .progress-label { margin: 0 0 16px; font-size: 11px; line-height: 1.2; font-weight: 850; letter-spacing: .18em; }
.eyebrow { display: inline-block; padding: 8px 11px; color: var(--ink); background: var(--lime); border-radius: 999px; }
h1 { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 7vw, 92px); line-height: .94; font-weight: 500; letter-spacing: -.055em; }
.hero-subtitle { max-width: 620px; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; }
.hero-stat { display: grid; gap: 3px; }
.hero-stat strong { font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.hero-stat span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress-panel { display: flex; align-items: center; gap: 24px; padding: 28px; color: var(--white); background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.progress-ring { --progress: 0deg; flex: 0 0 auto; display: grid; place-items: center; width: 142px; height: 142px; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,.12) 0); }
.progress-ring-center { display: grid; place-items: center; align-content: center; width: 108px; height: 108px; background: var(--ink); border-radius: 50%; }
.progress-ring-center strong { font-family: Georgia, serif; font-size: 35px; font-weight: 500; }
.progress-ring-center span { color: rgba(255,255,255,.6); font-size: 11px; }
.progress-label { margin-bottom: 7px; color: var(--lime); }
.progress-count { margin: 0 0 7px; font-size: 20px; font-weight: 750; }
.progress-message { max-width: 170px; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.45; }

.next-session { margin-bottom: 72px; }
.next-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(17,37,31,.06); }
.next-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--coral); }
.next-date { min-width: 64px; text-align: center; }
.next-date strong { display: block; font-family: Georgia, serif; font-size: 36px; font-weight: 500; line-height: 1; }
.next-date span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.next-overline { margin: 0 0 5px; color: var(--coral); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.next-card h2 { margin: 0; font-size: 22px; }
.next-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.next-action { border: 0; border-radius: 999px; padding: 12px 17px; color: var(--ink); background: var(--lime); cursor: pointer; font-weight: 800; }

.view { scroll-margin-top: 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; padding-top: 12px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 58px); font-weight: 500; letter-spacing: -.035em; }
.section-heading > p { max-width: 430px; margin: 0 0 6px; color: var(--muted); line-height: 1.55; }
.section-kicker { margin-bottom: 8px; color: #537062; }

.filter-bar { display: grid; grid-template-columns: 150px 150px minmax(220px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 28px; padding: 16px; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: var(--radius-md); }
.filter-bar label { display: grid; gap: 7px; }
.filter-bar label > span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.filter-bar select, .filter-bar input[type="search"] { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--ink); background: var(--white); outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--ink-soft); box-shadow: 0 0 0 3px rgba(199,243,107,.35); }
.pending-toggle { min-height: 44px; display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; padding: 0 13px; background: var(--paper-2); border-radius: 10px; cursor: pointer; }
.pending-toggle input { width: 17px; height: 17px; accent-color: var(--ink); }
.pending-toggle span { color: var(--ink) !important; white-space: nowrap; }

.daily-list { display: grid; gap: 30px; }
.week-group { display: grid; gap: 12px; }
.week-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.week-header h3 { margin: 0; font-size: 16px; }
.week-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.week-progress { min-width: 130px; text-align: right; color: var(--muted); font-size: 11px; font-weight: 750; }
.mini-track { width: 130px; height: 5px; margin-top: 6px; overflow: hidden; background: rgba(17,37,31,.1); border-radius: 999px; }
.mini-track span { display: block; height: 100%; background: var(--lime-deep); border-radius: inherit; }
.session-card { display: grid; grid-template-columns: auto minmax(110px,.55fr) minmax(210px,1.2fr) minmax(170px,.8fr) auto; gap: 18px; align-items: center; min-height: 102px; padding: 17px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
.session-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17,37,31,.07); }
.session-card.completed { opacity: .67; background: #ecebdc; }
.session-card.completed .session-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.check-button { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid #94a49d; border-radius: 50%; background: transparent; cursor: pointer; transition: .2s; }
.check-button::after { content: ""; width: 11px; height: 6px; border-left: 2px solid transparent; border-bottom: 2px solid transparent; transform: rotate(-45deg) translateY(-1px); }
.check-button:hover { border-color: var(--ink); background: rgba(199,243,107,.25); }
.check-button[aria-pressed="true"] { border-color: var(--ink); background: var(--lime); }
.check-button[aria-pressed="true"]::after { border-color: var(--ink); }
.session-date strong { display: block; font-size: 14px; }
.session-date span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.session-main { min-width: 0; }
.session-title { margin: 0 0 7px; font-size: 17px; line-height: 1.25; }
.phase-label { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #537062; font-size: 11px; font-weight: 750; }
.session-metrics { display: flex; flex-wrap: wrap; gap: 7px; }
.metric { padding: 6px 8px; color: var(--ink-soft); background: var(--paper); border-radius: 8px; font-size: 11px; font-weight: 700; }
.metric.intense { background: #ffe1dc; color: #8a2f22; }
.metric.race { background: var(--ink); color: var(--lime); }
.details-button { border: 0; padding: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.session-details { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; background: var(--paper); border-radius: 12px; }
.session-details[hidden] { display: none; }
.detail-block span, .note-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.detail-block p { margin: 0; font-size: 13px; line-height: 1.5; }
.note-field { grid-column: 1 / -1; }
.note-field textarea { width: 100%; min-height: 58px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); }
.empty-state { padding: 72px 24px; text-align: center; background: rgba(255,255,255,.45); border: 1px dashed var(--line); border-radius: var(--radius-md); }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 6px; color: var(--muted); }

.weeks-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.week-card { display: grid; gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.week-card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.week-number { display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--ink); border-radius: 12px; font-family: Georgia, serif; font-size: 21px; }
.week-card h3 { margin: 0 0 4px; font-size: 15px; }
.week-card .period { color: var(--muted); font-size: 12px; }
.week-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.week-kpi { padding: 10px; background: var(--paper); border-radius: 10px; }
.week-kpi strong { display: block; font-size: 18px; }
.week-kpi span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.race-chip { width: max-content; max-width: 100%; padding: 6px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #813829; background: #ffe1dc; border-radius: 999px; font-size: 10px; font-weight: 800; }
.week-progress-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.week-card .mini-track { width: 100%; }

.races-timeline { position: relative; display: grid; gap: 16px; max-width: 940px; }
.races-timeline::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 31px; width: 2px; background: rgba(17,37,31,.16); }
.race-card { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.race-dot { z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; margin-left: 20px; background: var(--lime); border: 5px solid var(--ink); border-radius: 50%; }
.race-date { margin: 0 0 4px; color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.race-card h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.race-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.race-target { min-width: 155px; padding: 14px; color: var(--white); background: var(--ink); border-radius: 12px; }
.race-target span { display: block; color: var(--lime); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.race-target strong { display: block; margin-top: 5px; font-size: 18px; }
.race-target small { display: block; margin-top: 4px; color: rgba(255,255,255,.65); }

.principles-content { max-width: 980px; display: grid; grid-template-columns: 240px 1fr; gap: 18px 40px; }
.principle-heading { grid-column: 1; margin: 0; padding-top: 4px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.principle-text { grid-column: 2; margin: 0; padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.72; border-bottom: 1px solid var(--line); }
.principle-text.numbered { position: relative; padding-left: 45px; }
.principle-text.numbered::before { content: attr(data-number); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--lime); border-radius: 50%; font-size: 12px; font-weight: 850; }
.safety-note { grid-column: 1 / -1; margin-top: 16px; padding: 22px; color: var(--white); background: var(--ink); border-radius: var(--radius-md); line-height: 1.6; }
.safety-note strong { color: var(--lime); }

footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px clamp(18px, 4vw, 64px); color: rgba(255,255,255,.55); background: var(--ink); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); padding: 11px 16px; color: var(--white); background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; overflow-x: auto; justify-content: center; }
  .progress-tools-button { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 58px; }
  .progress-panel { max-width: 520px; transform: none; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .session-card { grid-template-columns: auto 110px 1fr auto; }
  .session-metrics { grid-column: 3; }
  .details-button { grid-column: 4; grid-row: 1 / span 2; }
  .session-details { grid-column: 2 / -1; }
  .weeks-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .topbar { gap: 10px; min-height: 64px; padding: 10px 16px; }
  .brand span:last-child { display: none; }
  .nav-tabs { justify-content: start; margin: 0 -16px -10px; padding: 7px 16px 9px; border-radius: 0; }
  .nav-tab { flex: 0 0 auto; }
  main { padding-inline: 14px; }
  .hero { padding: 45px 4px 38px; gap: 34px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-stats { gap: 18px 28px; }
  .progress-panel { align-items: center; padding: 20px; }
  .progress-ring { width: 114px; height: 114px; }
  .progress-ring-center { width: 86px; height: 86px; }
  .progress-ring-center strong { font-size: 28px; }
  .next-session { margin-bottom: 52px; }
  .next-card { grid-template-columns: auto 1fr; padding: 20px; }
  .next-action { grid-column: 1 / -1; width: 100%; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .session-card { grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
  .session-date { grid-column: 2; }
  .session-main { grid-column: 2 / -1; }
  .session-metrics { grid-column: 2 / -1; }
  .details-button { grid-column: 2 / -1; grid-row: auto; width: max-content; padding-left: 0; }
  .session-details { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .note-field { grid-column: auto; }
  .weeks-grid { grid-template-columns: 1fr; }
  .race-card { grid-template-columns: 46px 1fr; gap: 14px; }
  .races-timeline::before { left: 22px; }
  .race-dot { margin-left: 11px; }
  .race-target { grid-column: 2; }
  .principles-content { grid-template-columns: 1fr; gap: 9px; }
  .principle-heading, .principle-text { grid-column: 1; }
  .principle-heading { margin-top: 22px; }
  footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Família CORREa — identidade visual */
:root {
  --ink: #0b0c0e;
  --ink-soft: #24222a;
  --paper: #f4f4f5;
  --paper-2: #e8e8eb;
  --white: #ffffff;
  --lime: #63f27b;
  --lime-deep: #2ed65d;
  --coral: #6d3ab2;
  --purple: #6d3ab2;
  --purple-deep: #40206d;
  --silver: #c9cbd0;
  --muted: #716f78;
  --line: rgba(11, 12, 14, .14);
  --shadow: 0 22px 60px rgba(11, 12, 14, .16);
}

body {
  background:
    radial-gradient(circle at 14% 5%, rgba(99, 242, 123, .16), transparent 22rem),
    radial-gradient(circle at 94% 11%, rgba(109, 58, 178, .13), transparent 26rem),
    linear-gradient(180deg, #f7f7f8 0%, #ededf0 100%);
}

.topbar {
  min-height: 78px;
  background-color: rgba(9, 10, 12, .97);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.04) 0 1px, transparent 1.5px),
    linear-gradient(120deg, rgba(255,255,255,.025), transparent 45%);
  background-size: 9px 9px, 100% 100%;
  border-bottom: 1px solid rgba(99, 242, 123, .24);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

.brand { gap: 11px; letter-spacing: 0; }
.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(99,242,123,.16);
}
.brand-wordmark { display: grid; line-height: .86; }
.brand-wordmark small { font-size: 8px; font-weight: 850; letter-spacing: .32em; }
.brand-wordmark strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 21px; font-style: italic; letter-spacing: .01em; }
.brand-wordmark strong span { color: var(--purple); text-transform: lowercase; }

.nav-tabs { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.06); }
.nav-tab.active { color: #07130a; background: linear-gradient(135deg, var(--lime), #a0ff71); box-shadow: 0 4px 16px rgba(99,242,123,.22); }
.progress-tools-button { border-color: rgba(99,242,123,.28); }
.progress-tools-button:hover { color: var(--lime); border-color: var(--lime); }

main { max-width: 1500px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  margin-top: 28px;
  padding: clamp(42px, 6vw, 82px);
  color: var(--white);
  background-color: #090a0c;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(99,242,123,.14), transparent 22rem),
    radial-gradient(circle at 88% 80%, rgba(109,58,178,.24), transparent 25rem),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.035) 0 1px, transparent 1.7px);
  background-size: auto, auto, 9px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(6,7,8,.22);
}
.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 380px;
  height: 380px;
  border: 2px solid rgba(99,242,123,.42);
  border-left-color: transparent;
  border-bottom-color: rgba(109,58,178,.38);
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: #07130a; background: linear-gradient(135deg, var(--lime), #a0ff71); box-shadow: 0 5px 18px rgba(99,242,123,.18); }
h1 {
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: clamp(55px, 8vw, 108px);
  line-height: .85;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
h1 em { color: var(--lime); font-style: inherit; text-shadow: 3px 3px 0 rgba(109,58,178,.75); }
.hero-subtitle { max-width: 650px; color: rgba(255,255,255,.72); }
.hero-stat strong { color: var(--white); font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-style: italic; }
.hero-stat span { color: rgba(255,255,255,.56); }

.brand-progress-stack { position: relative; z-index: 2; display: grid; gap: 16px; justify-items: end; }
.brand-showcase { width: min(100%, 330px); margin: 0; padding: 7px; background: linear-gradient(135deg, rgba(99,242,123,.78), rgba(109,58,178,.72)); border-radius: 27px; box-shadow: 0 24px 55px rgba(0,0,0,.38); transform: rotate(1.2deg); }
.brand-showcase img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 21px; }
.progress-panel { width: min(100%, 390px); padding: 19px 22px; background: rgba(22,22,27,.88); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 40px rgba(0,0,0,.26); transform: rotate(-1deg); backdrop-filter: blur(12px); }
.progress-ring { width: 108px; height: 108px; background: conic-gradient(var(--lime) var(--progress), rgba(109,58,178,.36) 0); }
.progress-ring-center { width: 80px; height: 80px; background: #111216; }
.progress-ring-center strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-style: italic; font-size: 29px; }
.progress-label { color: var(--lime); }

.next-card { border-top: 1px solid rgba(99,242,123,.55); box-shadow: 0 14px 38px rgba(11,12,14,.1); }
.next-card::before { width: 7px; background: linear-gradient(180deg, var(--lime), var(--purple)); }
.next-overline { color: var(--purple); }
.next-action { color: #07130a; background: linear-gradient(135deg, var(--lime), #9dff70); box-shadow: 0 7px 20px rgba(46,214,93,.2); }

.section-heading h2,
.race-card h3,
.principle-heading {
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.section-kicker { color: var(--purple); }
.filter-bar { background: rgba(255,255,255,.72); border-top: 2px solid rgba(109,58,178,.42); box-shadow: 0 10px 30px rgba(11,12,14,.05); }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,58,178,.16); }
.pending-toggle input { accent-color: var(--purple); }

.week-header { border-bottom-color: rgba(109,58,178,.25); }
.week-header h3 { text-transform: uppercase; font-style: italic; }
.mini-track span { background: linear-gradient(90deg, var(--purple), var(--lime)); }
.session-card { border-color: rgba(11,12,14,.12); box-shadow: 0 7px 20px rgba(11,12,14,.035); }
.session-card:hover { border-color: rgba(109,58,178,.28); box-shadow: 0 14px 30px rgba(11,12,14,.09); }
.session-card.completed { background: #e8f4e9; border-color: rgba(46,214,93,.28); }
.check-button { border-color: #aaa8b0; }
.check-button:hover { border-color: var(--purple); background: rgba(109,58,178,.1); }
.check-button[aria-pressed="true"] { border-color: #111216; background: linear-gradient(135deg, var(--lime), #9dff70); }
.phase-label { color: var(--purple-deep); }
.metric.intense { color: #3c1e65; background: #e6dbf4; }
.metric.race { color: var(--lime); background: #111216; border: 1px solid rgba(99,242,123,.32); }

.week-card { border-top: 3px solid var(--purple); box-shadow: 0 10px 25px rgba(11,12,14,.05); }
.week-number { background: linear-gradient(145deg, #121317, var(--purple-deep)); border: 1px solid rgba(99,242,123,.3); }
.race-chip { color: #35185c; background: #e6dbf4; }
.races-timeline::before { background: linear-gradient(var(--lime), var(--purple)); }
.race-dot { background: var(--lime); border-color: var(--purple-deep); }
.race-date { color: var(--purple); }
.race-target { background: linear-gradient(145deg, #111216, #2b173e); border: 1px solid rgba(99,242,123,.24); }
.safety-note { background: linear-gradient(135deg, #111216, #261537); border-left: 5px solid var(--lime); }

footer { align-items: center; background-color: #090a0c; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.04) 0 1px, transparent 1.5px); background-size: 9px 9px; border-top: 1px solid rgba(99,242,123,.26); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--silver); border-radius: 50%; }
.footer-brand span { display: grid; gap: 3px; }
.footer-brand strong { color: var(--white); font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 16px; font-style: italic; letter-spacing: .05em; }
.footer-brand small { color: var(--lime); font-size: 8px; letter-spacing: .12em; }
.toast { background: #111216; border: 1px solid rgba(99,242,123,.42); }

@media (max-width: 1040px) {
  .brand-progress-stack { justify-items: start; grid-template-columns: minmax(220px, 310px) minmax(300px, 1fr); align-items: end; }
  .brand-showcase, .progress-panel { width: 100%; }
}

@media (max-width: 700px) {
  .topbar { min-height: 68px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-wordmark { display: grid !important; }
  .brand-wordmark strong { font-size: 17px; }
  .brand-wordmark small { font-size: 7px; }
  .hero { margin-top: 14px; padding: 40px 22px 26px; border-radius: 24px; }
  h1 { font-size: clamp(52px, 16vw, 76px); }
  .brand-progress-stack { grid-template-columns: 1fr; justify-items: stretch; }
  .brand-showcase { max-width: 290px; margin-inline: auto; }
  .progress-panel { max-width: none; }
  .progress-ring { width: 96px; height: 96px; }
  .progress-ring-center { width: 70px; height: 70px; }
  footer { align-items: start; }
}

body.dialog-open { overflow: hidden; }
.progress-dialog {
  width: min(92vw, 680px);
  max-height: min(90dvh, 850px);
  padding: 0;
  color: var(--ink);
  background: #f8f7f2;
  border: 1px solid rgba(99,242,123,.42);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}
.progress-dialog[open] { animation: dialog-in .2s ease-out; }
.progress-dialog::backdrop { background: rgba(7,8,10,.78); backdrop-filter: blur(7px); }
.progress-dialog-shell { display: grid; gap: 20px; padding: clamp(20px, 4vw, 32px); }
.progress-dialog-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.progress-dialog-head h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(31px, 6vw, 48px); font-style: italic; line-height: .95; text-transform: uppercase; }
.progress-dialog-head > div > p:last-child { max-width: 540px; margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.dialog-kicker { margin: 0 0 8px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.dialog-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 25px; line-height: 1; }
.progress-security-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; color: var(--white); background: linear-gradient(135deg, #111216, #28163d); border-radius: 16px; }
.progress-security-summary > div { display: grid; gap: 4px; }
.progress-security-summary span { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.progress-security-summary strong { color: var(--lime); font-size: 13px; line-height: 1.35; }
.progress-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.progress-tool-card { display: grid; align-content: start; gap: 9px; padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.progress-tool-card.recovery-card { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; }
.tool-number { display: grid; place-items: center; width: 32px; height: 32px; color: var(--lime); background: #141519; border-radius: 9px; font-size: 10px; font-weight: 900; }
.progress-tool-card h3 { margin: 0; font-size: 16px; }
.progress-tool-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.progress-tool-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.progress-tool-action.primary { color: #07130a; background: linear-gradient(135deg, var(--lime), #9dff70); border-color: transparent; }
.progress-tool-action:disabled { cursor: not-allowed; opacity: .45; }
.danger-zone { overflow: hidden; border: 1px solid rgba(177,45,45,.24); border-radius: 15px; background: #fff8f6; }
.danger-zone summary { padding: 14px 16px; cursor: pointer; color: #8b2727; font-size: 12px; font-weight: 850; }
.danger-panel { display: grid; gap: 13px; padding: 0 16px 16px; border-top: 1px solid rgba(177,45,45,.12); }
.danger-panel p { margin: 14px 0 0; color: #6e4545; font-size: 12px; line-height: 1.5; }
.confirmation-field { display: grid; gap: 6px; }
.confirmation-field span { color: #8b2727; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.confirmation-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid rgba(177,45,45,.28); border-radius: 10px; background: var(--white); outline: none; }
.confirmation-field input:focus { border-color: #a72d2d; box-shadow: 0 0 0 3px rgba(177,45,45,.12); }
.danger-action { min-height: 44px; border: 0; border-radius: 11px; color: var(--white); background: #9f2929; cursor: pointer; font-size: 12px; font-weight: 850; }
.danger-action:disabled { cursor: not-allowed; opacity: .38; }
.progress-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.progress-dialog-footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

@media (max-width: 620px) {
  .progress-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); border-radius: 21px; }
  .progress-dialog-shell { gap: 15px; padding: 18px; }
  .progress-security-summary, .progress-tool-grid { grid-template-columns: 1fr; }
  .progress-tool-card.recovery-card { grid-column: auto; grid-template-columns: auto 1fr; }
  .progress-tool-card.recovery-card .progress-tool-action { grid-column: 1 / -1; width: 100%; }
  .progress-dialog-footer { align-items: stretch; flex-direction: column; }
  .progress-dialog-footer .progress-tool-action { width: 100%; }
}
/* Motion system: lightweight, touch-friendly and accessibility-aware */
@property --progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.motion-ready [data-animate] {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity .62s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .72s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    filter .52s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.motion-ready [data-animate="scale"] { transform: translate3d(0, 18px, 0) scale(.975); }
.motion-ready [data-animate].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

.hero::before { animation: hero-orbit 15s ease-in-out infinite; }
.brand-showcase { animation: brand-float 6.5s ease-in-out infinite; }
.progress-ring { transition: --progress .85s cubic-bezier(.22, 1, .36, 1); }
.progress-ring-center strong { transition: transform .35s ease, color .35s ease; }
.progress-panel:hover .progress-ring-center strong { color: var(--lime); transform: scale(1.06); }

.nav-tab,
.progress-tools-button,
.next-action,
.progress-tool-action,
.dialog-close,
.details-button {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.next-action,
.progress-tool-action.primary { position: relative; overflow: hidden; isolation: isolate; }
.next-action::after,
.progress-tool-action.primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  transform: skewX(-18deg) translateX(-240%);
  transition: transform .65s ease;
  pointer-events: none;
}
.next-action:hover::after,
.progress-tool-action.primary:hover::after { transform: skewX(-18deg) translateX(520%); }

.session-card.completion-pop { animation: completion-card .68s cubic-bezier(.2,.9,.25,1); }
.session-card.completion-return { animation: completion-return .46s ease-out; }
.session-card.completion-pop .check-button { animation: check-pop .62s cubic-bezier(.2,.9,.25,1); }
.check-button { position: relative; }
.session-card.completion-pop .check-button::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(99,242,123,.72);
  border-radius: 50%;
  animation: check-halo .62s ease-out forwards;
  pointer-events: none;
}
.toast.show { animation: toast-arrive .36s cubic-bezier(.2,.9,.25,1); }
.progress-dialog[open] .progress-tool-card { animation: dialog-card-in .4s both; }
.progress-dialog[open] .progress-tool-card:nth-child(2) { animation-delay: .07s; }
.progress-dialog[open] .progress-tool-card:nth-child(3) { animation-delay: .14s; }

@media (hover: hover) and (pointer: fine) {
  .progress-tools-button:hover,
  .next-action:hover,
  .progress-tool-action:hover:not(:disabled),
  .dialog-close:hover { transform: translateY(-2px); }
  .session-card:hover { transform: translateY(-4px); }
  .week-card:hover,
  .race-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,12,14,.09); }
}

@keyframes hero-orbit {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: .9; }
  50% { transform: rotate(12deg) scale(1.06); opacity: .64; }
}
@keyframes brand-float {
  0%, 100% { transform: rotate(1.2deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-.4deg) translate3d(0, -9px, 0); }
}
@keyframes completion-card {
  0% { transform: scale(1); box-shadow: 0 7px 20px rgba(11,12,14,.035); }
  42% { transform: scale(1.012); box-shadow: 0 18px 38px rgba(46,214,93,.19); }
  100% { transform: scale(1); }
}
@keyframes completion-return {
  0% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
@keyframes check-pop {
  0% { transform: scale(.84); }
  55% { transform: scale(1.18) rotate(-5deg); }
  100% { transform: scale(1); }
}
@keyframes check-halo {
  from { opacity: .85; transform: scale(.65); }
  to { opacity: 0; transform: scale(1.45); }
}
@keyframes toast-arrive {
  from { opacity: 0; transform: translate(-50%, 16px) scale(.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes dialog-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .motion-ready [data-animate] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}