/* ==========================================================================
   Flick Academy — Drills Central (drills.html for Free, drills-pro.html for Pro).
   Built on the dashboard styles (dashboard.css): the same grey ground, white cards, navy ink and
   logo orange, with Pro gold on the Pro page. Sample data only, drawn by drills.js.
   ========================================================================== */
.drills .card h2 { font-size: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.card-head > p, .card-head > a { margin: 0; font-size: 13px; color: #6b7486; white-space: nowrap; }
.card-head > a { color: var(--logo-orange); font-weight: 600; text-decoration: none; }
.drills .muted { margin: 0; font-size: 13px; }
.btn.small { height: 34px; padding: 0 16px; font-size: 13px; }
.drills .hello .kicker { margin-bottom: 2px; color: var(--navy); }
[data-theme="dark"] .drills .hello .kicker { color: #fff; }

/* ---------- today: the daily goal and today's plan in one slim bar (Drills Central) ---------- */
.today-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 18px 24px; }
.today-strip .goal { flex-direction: row; gap: 14px; text-align: left; padding-right: 26px; border-right: 1px solid #eef1f6; }
.today-strip .goal .ring { width: 84px; height: 84px; margin: 0; flex: none; }
.today-strip .goal .ring-num b { font-size: 22px; }
.today-strip .goal .ring-num b small { font-size: 12px; }
.today-strip .goal .ring-num span { font-size: 10px; margin-top: 2px; }
.today-strip .goal h2 { margin: 2px 0 4px; font-size: 17px; white-space: nowrap; }
.today-strip .goal p { font-size: 12.5px; white-space: nowrap; }
.today-strip .card-head { margin-bottom: 8px; }
.today-strip .card-head .kicker { margin: 0; }
.today-strip .plan { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.today-strip .plan li { grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; row-gap: 8px; align-content: start; padding: 10px 12px; border: 1px solid #eef1f6; border-radius: 12px; }
.today-strip .plan li:last-child { border-bottom: 1px solid #eef1f6; }
.today-strip .plan li > :nth-child(2) { min-width: 0; overflow: hidden; }
/* drill names wrap to a second line instead of being cut off ("Arm-Led Tracki…"); the note under them gets two lines too */
.today-strip .plan b { display: block; font-size: 14.5px; line-height: 1.25; overflow-wrap: break-word; }
.today-strip .plan small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; overflow: hidden; }
.today-strip .plan li > :nth-child(3) { grid-column: 2; justify-self: start; }
.today-strip .plan-score { white-space: nowrap; }
/* the training engine's plan (drills.js, engine-desktop.js): length chips and a focus pick in the head, a Swap button
   beside each drill's button, and one line on why under the plan */
.today-strip .card-head { flex-wrap: wrap; align-items: center; }
.plan-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.plan-len { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #f2f4f8; }
.plan-len button { height: 26px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 12px var(--font-heading); color: #5b6578; transition: background .2s, color .2s; }
.plan-len button:hover { color: var(--navy); }
.plan-len button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(28, 45, 74, .14); }
.plan-focus select { height: 32px; padding: 0 28px 0 12px; border: 1px solid #dde2ea; border-radius: 999px; cursor: pointer;
  font: 600 12px var(--font-heading); color: var(--navy); appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236b7486' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; }
.plan-focus select:hover, .plan-focus select:focus-visible { border-color: var(--logo-orange); outline: none; }
.plan-acts { display: inline-flex; align-items: center; gap: 6px; }
.plan-acts .btn { white-space: nowrap; }
.plan-swap { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #dde2ea; border-radius: 50%;
  background: #fff; color: #6b7486; cursor: pointer; transition: border-color .2s, color .2s; }
.plan-swap svg { width: 15px; height: 15px; }
.plan-swap:hover, .plan-swap:focus-visible { border-color: var(--logo-orange); color: var(--logo-orange); outline: none; }
.plan-swap:disabled { opacity: .4; cursor: default; border-color: #dde2ea; color: #6b7486; }
.plan-why { margin: 10px 0 0; font-size: 12.5px; color: #5b6578; }
.plan-why b { font: 700 12.5px var(--font-heading); color: var(--navy); }

/* Gunther stands in the bottom right corner with his wrench. When all of today's plan is done he holds up his #1 foam finger (.done)
   and does a little hop with three sparks, once a day (.cheer) */
.today-strip { position: relative; overflow: visible; padding-right: 92px; margin-top: 24px; }   /* room above for his speech bubble */
.gunther { position: absolute; right: 16px; bottom: 6px; width: 63px; height: 96px; cursor: default; background: url("assets/gunther-cheer.png?v=2") center bottom / contain no-repeat; }
/* plan done: he swaps the wrench for his #1 foam finger */
.gunther.done { background-image: url("assets/gunther-fan.png?v=1"); }
.gunther.cheer { animation: gunther-hop .9s .3s ease-out; }
@keyframes gunther-hop { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-12px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-6px) rotate(5deg); } }
/* three small sparks over his head */
.gunther i { position: absolute; top: -6px; left: 50%; width: 5px; height: 5px; background: var(--logo-orange); opacity: 0; }
.gunther.cheer i { animation: gunther-spark .7s .45s ease-out; }
.gunther i:nth-of-type(1) { --x: -22px; --y: -2px; }
.gunther i:nth-of-type(2) { --x: 0px; --y: -12px; animation-delay: .53s; }
.gunther i:nth-of-type(3) { --x: 22px; --y: -2px; animation-delay: .61s; }
@keyframes gunther-spark { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), var(--y)) scale(1); } }
/* his speech bubble: one line in the gap just above the Today bar's top right corner, off the panel so it never covers
   a drill card, tail pointing down at him. As wide as the line needs, so every line fits */
.gunther-say {
  position: absolute; bottom: calc(100% + 7px); right: 6px; z-index: 2; max-width: none; margin: 0; padding: 4px 12px 5px; border: 1px solid #e3e7ee; border-radius: 999px;
  background: #fff; box-shadow: 0 3px 10px rgba(28, 45, 74, .1); font: 600 12.5px/1.35 var(--font-heading); color: var(--navy); white-space: nowrap;
}
.gunther-say::before { content: "Gunther"; margin-right: 7px; font: 800 9.5px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--logo-orange); }
.gunther-say::after {
  content: ""; position: absolute; right: 37px; top: 100%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg);
  background: inherit; border-right: 1px solid #e3e7ee; border-bottom: 1px solid #e3e7ee;
}
.gunther-say.pop { animation: gunther-say-in .32s 1.1s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes gunther-say-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.today-strip .plan-score small { display: inline; }

/* the header's link between Drills Central and Your progress */
.progress-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.progress-btn svg { width: 18px; height: 18px; }
/* no outline; on hover it lifts with an orange glow, like the nav buttons */
.btn.line { background: #fff; color: var(--navy); transition: transform .2s ease, box-shadow .2s ease, background-color .25s, color .25s; }
.btn.line:hover, .btn.line:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(254, 132, 46, .35); background: var(--logo-orange); color: #fff; outline: none; }
[data-member="pro"] .dash .btn.line:hover, [data-member="pro"] .dash .btn.line:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(254, 132, 46, .35); }
[data-theme="dark"] .btn.line { background: rgba(168, 179, 199, .14); color: #fff; }
[data-theme="dark"] .btn.line:hover, [data-theme="dark"] .btn.line:focus-visible { background: var(--logo-orange); }

/* ---------- Your progress (progress.html): tracker, milestones, challenge and setup in pairs ---------- */
.row-two { grid-template-columns: 1fr 1fr; }
.goal { display: flex; flex-direction: column; align-items: center; text-align: center; }
.goal .kicker, .goal h2 { align-self: stretch; text-align: left; }
.goal .ring { margin: 14px 0 12px; width: 140px; height: 140px; }
.goal .ring-num b small { font-size: 16px; font-weight: 700; color: #8a93a3; }
.goal p { margin: 0; font-size: 14px; color: #4a5568; }
.goal p + p { margin-top: 4px; }
.ring-fill { transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1); }

.plan-card { display: flex; flex-direction: column; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; }
.plan li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef1f6; }
.plan li:last-child { border-bottom: 0; }
.plan .tick svg { display: block; width: 20px; height: 20px; color: #8a93a3; }
.plan b { display: block; font: 700 15px var(--font-heading); }
.plan small { font-size: 12.5px; color: #6b7486; }
.plan li.done b { color: #6b7486; }
.plan-score { font: 800 18px var(--font-heading); color: var(--logo-orange); }

/* the tracker: weeks run left to right, days top to bottom (Mon to Sun) */
.heat-wrap { display: flex; gap: 8px; }
.heat-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(7, 26px); gap: 5px; font-size: 10.5px; color: #8a93a3; }
.heat-days li { display: flex; align-items: center; min-height: 0; }
.heat { display: grid; grid-template-rows: repeat(7, 26px); grid-auto-flow: column; grid-auto-columns: 26px; gap: 5px; }
.tracker .heat-wrap { justify-content: center; }
.heat i, .heat-legend i { display: block; border-radius: 4px; background: #e6e9f0; }
.heat i.pad { background: none; }
.heat .l1, .heat-legend .l1 { background: rgba(254, 132, 46, .22); }
.heat .l2, .heat-legend .l2 { background: rgba(254, 132, 46, .45); }
.heat .l3, .heat-legend .l3 { background: rgba(254, 132, 46, .72); }
.heat .l4, .heat-legend .l4 { background: var(--logo-orange); }
.heat i.today { box-shadow: 0 0 0 2px var(--navy); }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: #8a93a3; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; }
.heat-legend span:first-child { margin-right: 4px; }
.heat-legend span:last-child { margin-left: 4px; }
.heat-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef1f6; }
.heat-stats b { display: block; font: 800 22px/1 var(--font-heading); }
.heat-stats span { display: block; margin-top: 4px; font-size: 12px; color: #6b7486; }

/* ---------- drill performance ---------- */
.perf .card-head { margin-bottom: 8px; }
.perf-tabs, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.perf-tabs button, .chips button {
  flex: none; height: 32px; padding: 0 14px; border: 1px solid #dde2ea; border-radius: 999px; background: #fff; cursor: pointer;
  font: 600 13px var(--font-heading); color: var(--navy); transition: border-color .2s, background .2s, color .2s;
}
.perf-tabs button:hover, .chips button:hover { border-color: var(--logo-orange); }
.perf-tabs button[aria-selected="true"], .chips button[aria-pressed="true"] { background: var(--logo-orange); border-color: var(--logo-orange); color: #fff; }
.perf-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: center; margin-top: 10px; }
.perf-chart .line { fill: none; stroke: var(--logo-orange); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.perf-chart .area { fill: rgba(254, 132, 46, .1); }
.perf-chart .dot { fill: #fff; stroke: var(--logo-orange); stroke-width: 2.5; }
.perf-chart .dot.pb { fill: var(--logo-orange); }
.perf-chart .pb-line { stroke: #a8b3c7; stroke-dasharray: 5 6; }
.perf-chart .pb-lbl { font: 700 11px var(--font-heading); fill: #6b7486; }
.perf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perf-stats div { padding: 9px 11px; border-radius: 8px; background: #f5f7fa; }
.perf-stats span { display: block; font: 800 9.5px var(--font-heading); letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; color: #8a93a3; }
.perf-stats b { display: block; margin-top: 5px; font: 800 20px/1 var(--font-heading); }
.perf-stats b small { font-size: 13px; color: #8a93a3; }
.perf-stats .up { color: var(--logo-orange); }
.perf-stats .down { color: #8a93a3; }
.perf-rank { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 8px; background: #f5f7fa; font-size: 14px; color: #4a5568; }
.perf-rank b { color: var(--navy); font-family: var(--font-heading); }
.perf-rank.locked { background: #fff6e6; }
.perf-rank svg { flex: none; width: 18px; height: 18px; color: #fbb018; }
.perf-rank a { margin-left: auto; font: 700 13px var(--font-heading); color: var(--navy); white-space: nowrap; }
/* under the chart: Flick Notes on the latest session beside the ranking */
.perf-foot { display: grid; grid-template-columns: 1fr 290px; gap: 24px; align-items: start; margin-top: 12px; }
.perf-note { padding: 12px 16px; border-left: 3px solid var(--logo-orange); border-radius: 0 8px 8px 0; background: #fff6ee; }
.perf-note b { display: block; font: 800 10.5px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--logo-orange); }
.perf-note p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #4a5568; }
.perf-note .next { color: var(--navy); font-weight: 600; }
.perf-note .next span { color: var(--logo-orange); }

/* ---------- the library ---------- */
.lib-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.chips { min-width: 0; gap: 6px; }
.chips button { padding: 0 12px; }
.search { position: relative; flex: none; display: block; width: 180px; }
.search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #8a93a3; }
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid #dde2ea; border-radius: 999px; outline: none;
  background: #fff; color: var(--navy); font-size: 13.5px; transition: border-color .2s;
}
.search input:focus { border-color: var(--logo-orange); }
.library { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
/* a short card: the picture runs to the card's edges, then the name, the cue, the level and the button */
.drill { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; border: 1px solid #e3e7ee; border-radius: 12px; background: #fff;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s; }
.drill > :not(.art):not(.pro-tag) { margin-left: 14px; margin-right: 14px; }
/* hover: the card lifts a little with a soft shadow and the picture zooms in slightly inside its frame */
.drill:not(.locked):hover { transform: translateY(-4px); border-color: rgba(254, 132, 46, .5); box-shadow: 0 14px 30px rgba(28, 45, 74, .12); }
.drill .art img { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.drill:not(.locked):hover .art img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .drill, .drill .art img { transition: none; } .drill:not(.locked):hover, .drill:not(.locked):hover .art img { transform: none; } }
/* the drill's own picture (assets/drill-thumbs, drawn by scripts/drill-thumb-scenes.js) */
.drill .art { aspect-ratio: 360 / 203; border-radius: 12px 12px 0 0; border-bottom: 1px solid #eef1f6; background: #fff; overflow: hidden; }
.drill .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.drill-body { margin-top: 2px; }
/* the drill name sits on a navy tag in white letters (a lighter navy in dark mode so it still shows) */
.drill-body b { display: inline-block; font: 700 17px var(--font-heading); color: #fff; background: var(--navy); border-radius: 8px; padding: 5px 12px; margin-left: -2px; }
.drill-body .cue { margin: 4px 0 0; font: 600 13.5px/1.4 var(--font-heading); color: #4a5568; }
/* the level and the size of a set, on one line */
.drill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.drill-row .meta { font: 600 12px var(--font-heading); color: #8a93a3; }
.seg { display: flex; align-items: center; gap: 8px; font: 700 12px var(--font-heading); color: var(--navy); }
.seg i { display: flex; gap: 3px; }
.seg i b { width: 18px; height: 6px; border-radius: 3px; background: #e3e7ee; }
.seg i b.on { background: var(--logo-orange); }
.seg i b.now { background: #fff; box-shadow: inset 0 0 0 1.5px var(--logo-orange); }
/* Details: the focus, the standard, what to watch for in a match and the lesson, in a pop-over above the button */
.dt { position: relative; margin-left: auto; }
.dt summary { cursor: pointer; list-style: none; font: 700 12.5px var(--font-heading); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.dt summary::-webkit-details-marker { display: none; }
.dt summary:hover, .dt[open] summary { color: var(--logo-orange); }
.dt-pop {
  position: absolute; right: -14px; bottom: calc(100% + 10px); z-index: 3; width: 260px; max-width: calc(100vw - 48px); padding: 12px 14px;
  border: 1px solid #e3e7ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(28, 45, 74, .16); animation: pop-in .16s ease-out;
  font-size: 12.5px; line-height: 1.45; color: #4a5568;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } }
.dt-pop p { margin: 0 0 8px; }
.dt-pop b { color: var(--navy); font-weight: 600; }
.dt-pop .dt-from { color: #8a93a3; }
.dt-pop a { font: 700 12.5px var(--font-heading); color: var(--logo-orange); }
.std { font-size: 12.5px; line-height: 1.45; color: #4a5568; }
.std .sets-in { display: block; margin-top: 2px; font: 700 12px var(--font-heading); color: var(--logo-orange); }
.std.done { color: var(--navy); font-weight: 600; }
.drill-actions { display: flex; align-items: center; gap: 12px; }
.link { padding: 0; border: 0; background: none; cursor: pointer; font: 600 13px var(--font-heading); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--logo-orange); }
/* drills Free doesn't have: dimmed, with a gold Pro tag */
.drill.locked .art { opacity: .45; }
.drill.locked .drill-body p { color: #8a93a3; }
.drill.locked .drill-body b { opacity: .55; }
/* ...and blurred, so the Pro drills tease what's inside; the Pro tag and Unlock button stay sharp */
.drill.locked .art, .drill.locked .drill-body, .drill.locked .drill-row { filter: blur(3px); user-select: none; pointer-events: none; }
.pro-tag {
  position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: linear-gradient(100deg, #ffc41f 0%, #fbb018 62%, #f0761f 100%); color: #1c2d4a; font: 800 11px var(--font-heading); letter-spacing: .04em;
}
.pro-tag svg { width: 12px; height: 12px; }
.library .empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: #6b7486; }
.lib-upsell { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 18px 22px; border-radius: 10px; background: #1c2d4a; color: #fff; }
.lib-upsell b { display: block; font: 800 17px var(--font-heading); }
.lib-upsell span { display: block; margin-top: 3px; font-size: 13.5px; color: #a8b3c7; }

/* ---------- history and the side column ---------- */
/* milestones, the weekly challenge and your setup: three cards side by side, the same height */
/* practice log: each session's sets against the standard, with a note on what's next; two columns across the page */
.log { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.log li { padding: 12px 0; border-top: 1px solid #eef1f6; }
.log li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.log .empty { grid-column: 1 / -1; font-size: 13px; color: #6b7486; }
.log-head { display: flex; align-items: baseline; gap: 10px; }
.log-day { min-width: 84px; font-size: 12.5px; color: #6b7486; }
.log-head b { font: 700 14.5px var(--font-heading); }
.log-lv { margin-left: auto; font: 700 11px var(--font-heading); color: #8a93a3; }
.log-sets { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 94px; }
.log-sets span { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px; background: #f1f3f8; font: 800 13px var(--font-heading); color: #6b7486; }
.log-sets span.hit { background: var(--logo-orange); color: #fff; }
.log-sets small { margin-left: 4px; font-size: 12px; color: #8a93a3; }
.log-note { margin: 6px 0 0 94px; font-size: 13px; color: #4a5568; }

/* milestones: levels passed */
.records { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.records li { display: flex; align-items: center; gap: 12px; }
.records li > span b { display: block; font: 700 14px var(--font-heading); }
.records small { font-size: 12px; color: #6b7486; }
.records .mile { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--logo-orange); color: #fff; font: 800 13px var(--font-heading); }
.records .empty { font-size: 13px; color: #6b7486; }

.challenge p:not(.kicker) { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; color: #4a5568; }
.challenge .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #6b7486; }
.challenge .meta b { color: var(--navy); }

.setup dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.setup dl div { padding: 10px 12px; border-radius: 8px; background: #f5f7fa; }
.setup dt { font: 800 10.5px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: #8a93a3; }
.setup dd { margin: 4px 0 0; font: 800 18px var(--font-heading); }

/* ---------- Pro page: Pro gold on the fills (the Go Pro gradient), as on the Pro dashboard ---------- */
.drills.pro { --gold-metal: linear-gradient(100deg, #ffc41f 0%, #fbb018 62%, #f0761f 100%); }
.drills.pro .bar i { background: var(--gold-metal); }

@media (max-width: 1080px) {
  .today-strip { grid-template-columns: 1fr; gap: 14px; }
  .today-strip .goal { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid #eef1f6; }
}
@media (max-width: 980px) {
  .perf-body, .perf-foot { grid-template-columns: 1fr; }
  .log { grid-template-columns: 1fr; }
  .log li:nth-child(2) { border-top: 1px solid #eef1f6; padding-top: 12px; }
  .lib-controls { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
}
@media (max-width: 640px) {
  .row-two { grid-template-columns: 1fr; }
  .today-strip .plan { grid-auto-flow: row; grid-template-columns: 1fr; }
  .today-strip { padding-right: 24px; padding-bottom: 128px; margin-top: 0; }
  .gunther-say { top: auto; bottom: 46px; right: 92px; padding: 6px 11px 7px; border-radius: 11px; white-space: normal; max-width: calc(100% - 120px); overflow-wrap: anywhere; }
  .gunther-say::before { display: block; margin: 0; }
  .gunther-say::after { right: -5px; top: auto; bottom: 14px; margin: 0; border: 0; border-top: 1px solid #e3e7ee; border-right: 1px solid #e3e7ee; }
  .progress-btn { margin-left: 0; }
  .perf-stats { grid-template-columns: 1fr 1fr; }
  .lib-upsell { flex-direction: column; align-items: flex-start; }
  .log-sets, .log-note { margin-left: 0; }
  .log-day { min-width: 0; }
  .setup dl { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- dark mode (the dashboard's: deep navy ground, navy cards) ---------- */
[data-theme="dark"] .plan-len { background: rgba(168, 179, 199, .12); }
[data-theme="dark"] .plan-len button { color: #a8b3c7; }
[data-theme="dark"] .plan-len button[aria-pressed="true"] { background: #2a3b5c; color: #fff; box-shadow: none; }
[data-theme="dark"] .plan-focus select, [data-theme="dark"] .plan-swap { background-color: transparent; border-color: rgba(168, 179, 199, .25); color: #e6eaf2; }
[data-theme="dark"] .plan-focus select option { color: var(--navy); }
[data-theme="dark"] .plan-why { color: #a8b3c7; }
[data-theme="dark"] .plan-why b { color: #fff; }
[data-theme="dark"] .plan li, [data-theme="dark"] .today-strip .goal, [data-theme="dark"] .heat-stats, [data-theme="dark"] .log li { border-color: rgba(168, 179, 199, .14); }
[data-theme="dark"] .heat i, [data-theme="dark"] .heat-legend i { background: rgba(168, 179, 199, .18); }
[data-theme="dark"] .heat i.pad { background: none; }
[data-theme="dark"] .heat .l1, [data-theme="dark"] .heat-legend .l1 { background: rgba(254, 132, 46, .28); }
[data-theme="dark"] .heat .l2, [data-theme="dark"] .heat-legend .l2 { background: rgba(254, 132, 46, .5); }
[data-theme="dark"] .heat .l3, [data-theme="dark"] .heat-legend .l3 { background: rgba(254, 132, 46, .75); }
[data-theme="dark"] .heat .l4, [data-theme="dark"] .heat-legend .l4 { background: var(--logo-orange); }
[data-theme="dark"] .perf-tabs button, [data-theme="dark"] .chips button, [data-theme="dark"] .search input { background: transparent; border-color: rgba(168, 179, 199, .25); }
[data-theme="dark"] .perf-tabs button[aria-selected="true"], [data-theme="dark"] .chips button[aria-pressed="true"] { background: var(--logo-orange); border-color: var(--logo-orange); }
[data-theme="dark"] .perf-stats div, [data-theme="dark"] .perf-rank, [data-theme="dark"] .setup dl div,
[data-theme="dark"] .log-sets span { background: #0f1b2e; }
[data-theme="dark"] .seg i b { background: #33476a; }
[data-theme="dark"] .seg i b.on { background: var(--logo-orange); }
[data-theme="dark"] .seg i b.now { background: transparent; }
[data-theme="dark"] .log-sets span.hit { background: var(--logo-orange); }
[data-theme="dark"] .perf-note { background: rgba(254, 132, 46, .1); }
[data-theme="dark"] .perf-rank.locked { background: rgba(251, 176, 24, .1); }
[data-theme="dark"] .perf-chart .dot { fill: #1c2d4a; }
[data-theme="dark"] .perf-chart .dot.pb { fill: var(--logo-orange); }
[data-theme="dark"] .drill { border-color: rgba(168, 179, 199, .16); background: transparent; }
[data-theme="dark"] .drill:not(.locked):hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
[data-theme="dark"] .drill .art { border-color: #22324d; }
[data-theme="dark"] .drill-body b { background: #2e4570; }
/* the Tests/Checks group (checks and the warm-up routine) gets an orange tag with navy letters, in both themes */
.drill.is-test .drill-body b, [data-theme="dark"] .drill.is-test .drill-body b { background: var(--logo-orange); color: var(--navy); }
/* the benchmarks get an outlined tag: navy letters in a navy stroke, no fill (white letters, light stroke in dark mode) */
.drill.is-bench .drill-body b { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 3px 10px; }
[data-theme="dark"] .drill.is-bench .drill-body b { background: transparent; color: #fff; border-color: #8fa3c4; }
[data-theme="dark"] .drill .art img { filter: brightness(.94); }
[data-theme="dark"] .gunther-say, [data-theme="dark"] .gunther-say::after { background: #16243b; border-color: rgba(168, 179, 199, .2); color: #e8edf5; }
[data-theme="dark"] .dt-pop { background: #16243b; border-color: rgba(168, 179, 199, .2); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
[data-theme="dark"] .lib-upsell { background: #0f1b2e; border: 1px solid rgba(251, 176, 24, .35); }
[data-theme="dark"] .pro-tag { color: #1c2d4a; }
[data-theme="dark"] .drills :is(.goal p, .plan small, .plan li.done b, .heat-days, .heat-legend, .heat-stats span, .perf-rank,
  .drill-body .cue, .std, .dt-pop, .perf-note p:not(.next), .log-day, .log-note, .log-sets small,
  .records small, .challenge p:not(.kicker), .challenge .meta, .card-head > p) { color: #a8b3c7; }

/* "Your setup": the aiming style from the Pivot Check */
.setup-style { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #fff6ee; font-size: 13px; }
.setup-style > span { white-space: nowrap; font: 800 10.5px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: #8a93a3; }
.setup-style b { font: 800 15px var(--font-heading); color: var(--navy); }
.setup-style a { margin-left: auto; font: 700 12.5px var(--font-heading); color: var(--logo-orange); white-space: nowrap; }
.std.result b { color: var(--navy); }
[data-theme="dark"] .setup-style { background: rgba(254, 132, 46, .1); }

/* practice log before the first set */
.log .empty { font-size: 13px; color: #6b7486; }

/* skill badges: one per skill group, Bronze / Silver / Gold; the group name follows the curve of the badge's ribbon */
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px 8px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge-art { position: relative; display: block; height: 90px; }
.badge-art img { display: block; height: 100%; width: auto; filter: drop-shadow(0 3px 4px rgba(28, 45, 74, .2)); }
.badge-name { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.badge-name text { font: 800 19px var(--font-heading); letter-spacing: .04em; fill: #fff; }
.badge b { margin-top: 4px; font: 800 12.5px var(--font-heading); color: var(--navy); }
.badge small { margin-top: 1px; font: 600 11px/1.3 var(--font-heading); color: #6b7486; }
.badge.t-bronze b { color: #b0652b; }
.badge.t-silver b { color: #6f7c90; }
.badge.t-gold b { color: #d08a00; }
/* not earned yet: the badge in gray, with a lock for Free members and visitors */
.badge.locked .badge-art img { filter: grayscale(1) opacity(.45); }
.badge-lock { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; }
.badge-lock svg { width: 12px; height: 12px; }
.badges-card .card-head { margin-bottom: 10px; }
#badgesNote a { font: 700 13px var(--font-heading); color: var(--logo-orange); }
[data-theme="dark"] .badge b { color: #fff; }
[data-theme="dark"] .badge small { color: #a9b3c4; }
@media (max-width: 560px) { .badges { grid-template-columns: repeat(4, 1fr); gap: 10px 4px; } .badge-art { height: 72px; } .badge small { font-size: 10px; } }
[data-theme="dark"] .today-strip .plan li, [data-theme="dark"] .today-strip .plan li:last-child { border-color: rgba(168, 179, 199, .14); }
.tracker #goalWeek { margin-top: 10px; }

/* skill badges, slimmer (Nov 12): smaller badges, tighter card (no tier key: players find out how to earn them by playing) */
.badges-card { padding-top: 18px; padding-bottom: 16px; }
.badges-card .card-head { margin-bottom: 6px; }
.badges-card .kicker { margin-bottom: 0; }
.badges { gap: 8px 6px; }
.badge-art { height: 62px; }
.badge b { margin-top: 2px; font-size: 11.5px; }
.badge small { font-size: 10px; }
@media (max-width: 560px) { .badge-art { height: 54px; } }

/* skill badges in five tiers (Nov 13), matching the Aim Ranks */
.badge.t-copper b { color: #c4532a; }
.badge.t-diamond b { color: #0a8fd6; }
[data-theme="dark"] .badge.t-copper b { color: #f08a5c; }
[data-theme="dark"] .badge.t-diamond b { color: #5fd0ff; }

/* the unlock moment: the badge lands in the middle of the screen, gray at first, then in full color */
.unlock { --tier: #d08a00; position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 16, 32, .78); opacity: 0; transition: opacity .25s ease; }
.unlock.t-bronze { --tier: #c27a45; } .unlock.t-copper { --tier: #e0673a; } .unlock.t-silver { --tier: #b9c4d4; }
.unlock.t-gold { --tier: #fcb52a; } .unlock.t-diamond { --tier: #3cc3ff; }
.unlock.in { opacity: 1; }
.unlock.out { opacity: 0; }
.unlock-box { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.unlock-rays { position: absolute; left: 50%; top: 120px; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--tier) 55%, transparent) 0%, transparent 62%),
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tier) 22%, transparent) 0deg 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  opacity: 0; transform: scale(.4); }
.unlock.in .unlock-rays { animation: unlock-rays .7s .55s ease-out forwards, unlock-spin 24s .55s linear infinite; }
.unlock-art { height: 240px; }
.unlock-art img { filter: grayscale(1) brightness(.7) drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); transform: scale(.55); opacity: 0; }
.unlock.in .unlock-art img { animation: unlock-pop .5s cubic-bezier(.2, .9, .3, 1.3) forwards, unlock-color .45s .55s ease-out forwards; }
.unlock-art .badge-name { opacity: 0; }
.unlock.in .unlock-art .badge-name { animation: unlock-fade .3s .75s forwards; }
.unlock-title, .unlock-sub { margin: 0; opacity: 0; transform: translateY(8px); color: #fff; text-transform: uppercase; }
.unlock-title { margin-top: 18px; font: 800 28px/1.1 var(--font-heading); letter-spacing: .04em; }
.unlock-title span { color: var(--tier); }
.unlock-sub { margin-top: 4px; font: 800 18px var(--font-heading); letter-spacing: .2em; color: #fff; }
.unlock.in .unlock-title { animation: unlock-rise .35s .8s forwards; }
.unlock.in .unlock-sub { animation: unlock-rise .35s .9s forwards; }
.unlock-ok { margin-top: 22px; min-width: 120px; border: 0; cursor: pointer; opacity: 0; }
.unlock.in .unlock-ok { animation: unlock-fade .3s 1.1s forwards; }
@keyframes unlock-pop { to { transform: scale(1); opacity: 1; } }
@keyframes unlock-color { 0% { filter: grayscale(1) brightness(.7) drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
  45% { filter: grayscale(0) brightness(1.8) drop-shadow(0 0 26px var(--tier)); }
  100% { filter: grayscale(0) brightness(1) drop-shadow(0 0 18px color-mix(in srgb, var(--tier) 70%, transparent)); } }
@keyframes unlock-rays { to { opacity: 1; transform: scale(1); } }
@keyframes unlock-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes unlock-fade { to { opacity: 1; } }
@keyframes unlock-rise { to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .unlock-art { height: 180px; } .unlock-rays { top: 90px; } .unlock-title { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .unlock.in .unlock-art img, .unlock.in .unlock-rays, .unlock.in .unlock-title, .unlock.in .unlock-sub, .unlock.in .unlock-ok, .unlock.in .unlock-art .badge-name { animation-duration: .01s; animation-delay: 0s; animation-iteration-count: 1; }
}
/* progress toward the next tier: just how many drills are there, never the rule itself */
.badge-bar { display: block; width: 70%; max-width: 90px; height: 4px; margin-top: 4px; border-radius: 4px; background: #e6e9ef; overflow: hidden; }
.badge-bar i { display: block; height: 100%; border-radius: 4px; background: #b0652b; }
.badge-bar.t-copper i { background: #c4532a; } .badge-bar.t-silver i { background: #8d99ab; }
.badge-bar.t-gold i { background: #e9a100; } .badge-bar.t-diamond i { background: #1aa8ef; }
[data-theme="dark"] .badge-bar { background: rgba(255, 255, 255, .12); }

/* earned badges twinkle on hover: a quick shine across the metal and three little sparkles */
.badge:not(.locked) .badge-art { transition: transform .2s ease; }
.badge:not(.locked):hover .badge-art { transform: translateY(-2px); }
.badge:not(.locked) .badge-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .6) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }
.badge:not(.locked):hover .badge-art::after { animation: badge-shine .8s ease-out; }
.twinkle { position: absolute; inset: 0; pointer-events: none; }
.twinkle i { position: absolute; width: 15px; height: 15px; background: #fff; opacity: 0; transform: scale(0);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 3px rgba(255, 214, 120, .95)); }
.twinkle i:nth-child(1) { left: 24%; top: 26%; }
.twinkle i:nth-child(2) { right: 22%; top: 46%; width: 12px; height: 12px; }
.twinkle i:nth-child(3) { left: 58%; top: 14%; width: 11px; height: 11px; }
.badge:not(.locked):hover .twinkle i { animation: badge-twinkle 1.2s ease-in-out infinite; }
.badge:not(.locked):hover .twinkle i:nth-child(2) { animation-delay: .35s; }
.badge:not(.locked):hover .twinkle i:nth-child(3) { animation-delay: .7s; }
@keyframes badge-shine { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@keyframes badge-twinkle { 0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 30% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 0; transform: scale(.3) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .gunther, .gunther-say, .dt-pop { transition: none; animation: none !important; } .gunther i { display: none; } }
@media (prefers-reduced-motion: reduce) { .badge:not(.locked):hover .badge-art::after, .badge:not(.locked):hover .twinkle i { animation: none; } }

/* ==========================================================================
   Your progress, refined (Nov 13): you + achievements at the top, a "where you are / what's next" line
   with the drill one click away, a shorter drill picker, four plain stat boxes, a labeled chart
   (taller on phones), milestones and the challenge stacked beside the tracker, and a slim setup row.
   ========================================================================== */
/* you: avatar, name, rank | achievements */
.me { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 28px; align-items: center; }
.me-who { display: flex; align-items: center; gap: 20px; }
/* the avatar's own frame: animations (later) go on .me-av so nothing around it moves */
.me-av { position: relative; flex: none; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; overflow: hidden;
  background: var(--navy); box-shadow: 0 0 0 4px var(--logo-orange); }
[data-plan="pro"] .me-av { box-shadow: 0 0 0 4px #fbb018; }
.me-av b { font: 800 52px/1 var(--font-heading); color: #fff; }
.me-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.me-id { min-width: 0; }
.me-id .kicker { margin: 0 0 2px; }
.me-id h1 { margin: 0; font: 800 28px/1.1 var(--font-heading); overflow-wrap: anywhere; }
.me-since { margin: 4px 0 0; font-size: 13px; color: #6b7486; }
.me-since:empty { display: none; }
.me-rank:empty { display: none; }
.me-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #f5f7fa;
  font: 700 12.5px var(--font-heading); color: var(--navy); text-decoration: none; transition: background .15s ease; }
.me-chip:hover, .me-chip:focus-visible { background: #fff1e4; }
.me-chip img { width: 20px; height: 23px; image-rendering: pixelated; }
.me-lock { display: flex; gap: 7px; align-items: flex-start; margin: 9px 0 0; padding: 7px 10px; border-radius: 8px; background: #fff6e6; font-size: 12.5px; line-height: 1.4; color: #4a5568; }
.me-lock svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #fbb018; }
.me-lock a { font-weight: 700; color: var(--navy); white-space: nowrap; }
/* Your progress: the Drills Central button sits top right above the cards, like My progress on Drills Central */
.page-top { display: flex; justify-content: flex-end; }
.me-ach { min-width: 0; padding-left: 28px; border-left: 1px solid #eef1f6; }
.me-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.me-top .kicker { margin: 0; }
.me-how-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 13px var(--font-heading); color: var(--logo-orange); }
.me-how-btn svg { width: 12px; height: 12px; transition: transform .2s ease; }
.me-how-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.me-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 0; list-style: none; }
.me-badges li { width: 56px; }
.me-badges img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.me-badges li.off img { filter: grayscale(1); opacity: .28; }
.me-how { margin: -4px 0 14px; padding: 12px 14px; border-radius: 10px; background: #f5f7fa; }
.me-how ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.me-how li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: #4a5568; }
.me-how li b { flex: none; width: 80px; white-space: nowrap; font: 800 12px var(--font-heading); }
.me-how li b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.me-how .t-bronze b { color: #b0703a; } .me-how .t-copper b { color: #c4673f; } .me-how .t-silver b { color: #8a96a8; }
.me-how .t-gold b { color: #e0a100; } .me-how .t-diamond b { color: #3fa9d6; }
.me-how p { margin: 8px 0 0; font-size: 12.5px; color: #6b7486; }
.me-how p a { font-weight: 700; color: var(--navy); }
.me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.me-stats div { padding: 9px 11px; border-radius: 8px; background: #f5f7fa; }
.me-stats span { display: block; font: 800 9.5px var(--font-heading); letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; color: #8a93a3; }
.me-stats b { display: block; margin-top: 5px; font: 800 20px/1 var(--font-heading); }
.me-stats b small { font-size: 13px; color: #8a93a3; }
.me-stats em, .perf-stats em { display: block; margin-top: 5px; font: normal 600 11.5px/1.3 var(--font-body, inherit); color: #6b7486; }
.me-next em img { width: 20px; height: 20px; margin-right: 5px; border-radius: 50%; vertical-align: -5px; filter: grayscale(1); opacity: .65; }

/* where you are and what's next, above the chart */
.perf-status { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; padding: 12px 14px; border-radius: 10px; background: #f5f7fa; }
.perf-status:empty { display: none; }
.perf-status .pill { flex: none; padding: 4px 11px; border: 2px solid var(--logo-orange); border-radius: 999px; background: #fff;
  font: 800 12px var(--font-heading); color: var(--logo-orange); white-space: nowrap; }
.perf-status .pill.done { border-color: #2f9e5b; color: #2f9e5b; }
.perf-status p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: #4a5568; }
.perf-status p b { color: var(--navy); }
.perf-status .btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; }
.perf-status .btn svg { width: 11px; height: 11px; }

/* the drill picker: recent drills, then "All drills" as a menu that looks like one more button */
.perf-all { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px dashed #c5cdd9; border-radius: 999px;
  font: 700 13px var(--font-heading); color: #4a5568; cursor: pointer; }
.perf-all::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.perf-all:hover, .perf-all:focus-within { border-color: var(--logo-orange); }
.perf-all select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

/* the chart's caption, and the four stat boxes with their hints */
.perf-chart .cap { font: 700 11px var(--font-heading); fill: #8a93a3; }
.perf-stats b.up { color: #2f9e5b; }
.perf-stats b.down { color: #8a93a3; }
.perf-stats b.flat { color: var(--navy); }

/* milestones and the weekly challenge stacked beside the tracker */
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.stack > .card { margin: 0; }
.stack .challenge p:not(.kicker) { margin-bottom: 12px; }

/* your setup in one slim row */
.setup.slim { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px 24px; align-items: center; }
.setup.slim .card-head { display: block; margin: 0; }
.setup.slim .card-head > a { display: inline-block; margin-top: 4px; font-size: 13px; }
.setup.slim dl { margin: 0; }
.setup-rows { display: grid; gap: 8px; }
.setup.slim .setup-style { margin: 0; }

@media (max-width: 900px) {
  .me { grid-template-columns: 1fr; gap: 18px; }
  .me-ach { padding: 18px 0 0; border-left: 0; border-top: 1px solid #eef1f6; }
  .setup.slim { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .me-av { width: 92px; height: 92px; }
  .me-av b { font-size: 40px; }
  .me-id h1 { font-size: 24px; }
  .me-stats { grid-template-columns: 1fr 1fr; }
  .me-badges { gap: 6px; }
  .me-badges { flex-wrap: nowrap; }
  .me-badges li { flex: 1 1 0; min-width: 0; max-width: 56px; }
  .perf-status { flex-wrap: wrap; }
  .perf-status p { flex-basis: calc(100% - 140px); }
  .perf-status .btn { flex-basis: 100%; justify-content: center; }
}

[data-theme="dark"] :is(.me-stats div, .perf-status, .me-how, .me-chip) { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .me-chip { color: #e8edf5; }
[data-theme="dark"] .me-chip:hover { background: rgba(254, 132, 46, .14); }
[data-theme="dark"] :is(.me-since, .me-stats em, .perf-stats em, .perf-status p, .me-how li, .me-how p) { color: #a8b3c7; }
[data-theme="dark"] :is(.perf-status p b, .me-how p a, .me-lock a, .perf-stats b.flat) { color: #e8edf5; }
[data-theme="dark"] .perf-status .pill { background: transparent; }
[data-theme="dark"] .me-ach { border-color: rgba(168, 179, 199, .16); }
[data-theme="dark"] .me-lock { background: rgba(251, 176, 24, .1); color: #a8b3c7; }
[data-theme="dark"] .perf-all { border-color: rgba(168, 179, 199, .35); color: #e8edf5; }
[data-theme="dark"] .perf-all select { color: #1c2d4a; }
[data-theme="dark"] .perf-stats b.up, [data-theme="dark"] .perf-status .pill.done { color: #4cc47f; border-color: #4cc47f; }
[data-theme="dark"] .me-av { background: #0f1a2e; }
/* the header's My progress / Drills Central button: the nav bar's look (white, orange outline, orange words),
   kept out of the nav. Hover lifts it with the orange glow and fills it orange, like the nav buttons. */
.dash .btn.progress-btn:not(.ghost), [data-member="pro"] .dash .btn.progress-btn:not(.ghost) {
  height: 42px; padding: 0 20px; border: calc(1.1 * max(var(--px), 1.55px)) solid var(--logo-orange); border-radius: 6px;   /* the same outline width as the nav buttons */
  background: #fff; color: var(--logo-orange); font-family: var(--font-heading); font-weight: 600; letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .25s, color .25s;
}
.dash .btn.progress-btn:not(.ghost):hover, .dash .btn.progress-btn:not(.ghost):focus-visible,
[data-member="pro"] .dash .btn.progress-btn:not(.ghost):hover, [data-member="pro"] .dash .btn.progress-btn:not(.ghost):focus-visible {
  /* the nav buttons' exact hover (site.css .nav-btn): same lift, glow, fill and timing */
  transform: translateY(calc(-1.2 * var(--px))); box-shadow: 0 calc(2.5 * var(--px)) calc(6 * var(--px)) rgba(254, 132, 46, .35); background-color: var(--logo-orange); color: #fff; outline: none;
}
[data-theme="dark"] .dash .btn.progress-btn:not(.ghost) { background: transparent; }
[data-theme="dark"] .dash .btn.progress-btn:not(.ghost):hover, [data-theme="dark"] .dash .btn.progress-btn:not(.ghost):focus-visible { background: var(--logo-orange); }

/* Gunther on hover: a small tilt while he talks (drills.js swaps in one of his lines) */
.gunther { transition: transform .2s ease; transform-origin: 50% 100%; }
.gunther.hi { transform: rotate(-4deg) translateY(-2px); }

/* skill badges on hover: the badge grows a little and a small note above it says what the skill is */
.badge { position: relative; outline: none; }
.badge-art { transition: transform .2s ease; transform-origin: 50% 60%; }
.badge:hover .badge-art, .badge:focus-visible .badge-art { transform: scale(1.12); }
.badge-tip {
  position: absolute; left: 50%; bottom: calc(100% - 4px); z-index: 3; width: max-content; max-width: 210px; padding: 6px 10px 7px;
  border: 1px solid #e3e7ee; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(28, 45, 74, .12);
  font: 600 11.5px/1.35 var(--font-heading); color: var(--navy); text-align: center; pointer-events: none;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease;
}
.badge-tip b { display: block; margin: 0 0 1px; font: 800 9.5px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--logo-orange); }
.badge-tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; margin: -4px 0 0 -4px; transform: rotate(45deg);
  background: inherit; border-right: 1px solid #e3e7ee; border-bottom: 1px solid #e3e7ee;
}
.badge:hover .badge-tip, .badge:focus-visible .badge-tip { opacity: 1; transform: translate(-50%, 0); }
[data-theme="dark"] .badge-tip { background: #16243b; border-color: rgba(168, 179, 199, .2); color: #e8edf5; }
[data-theme="dark"] .badge-tip::after { border-color: rgba(168, 179, 199, .2); }

/* phones and tablets: a short note under the heading that drills need a computer and a mouse (drills.js adds it) */
.device-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(253, 128, 43, .35); border-radius: 12px; background: rgba(253, 128, 43, .07); font-size: 14px; line-height: 1.45; }
.device-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--logo-orange, #fd802b); }
.device-note b { font-weight: 700; }
