/* Hoje (4.4.0): tela de início em grade de cartões.
   Uma coluna no celular, 6 colunas no tablet e 12 no desktop, por container query na .page.
   Cores só pelos tokens (Aurora e Brasa, claro e escuro). Animações só em CSS, desligadas com reduzir movimento. */
.page.home { max-width: 1240px; gap: 16px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 600px) { .home-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
@container (min-width: 1000px) { .home-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; } }

.h-tile { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink);
  animation: h-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1); }
.h-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@container (min-width: 600px) { .h-tile { padding: 20px; } }
.h-tile h2 { font-size: 1.1875rem; line-height: 1.2; margin-top: 4px; }
.h-tile .eyebrow { display: flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; }
.h-tile .more { align-self: flex-start; font-size: .8125rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.h-tile .more:hover { text-decoration: underline; }
.h-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.h-head > div { min-width: 0; }
.h-note { margin: 0; font-size: .8125rem; color: var(--muted); }
@keyframes h-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes h-grow { from { transform: scaleX(0); } }
@keyframes h-talk { 50% { transform: scaleY(.55); } }
@keyframes h-dot { 50% { transform: scale(.75); } }

/* Lugar de cada cartão na grade (5.3). Ordem: onde você está; aula de hoje e revisão (o que fazer);
   sequência e ritmo (como está indo); semana e curso; módulo e nível; Passport. */
.h-hero, .h-today, .h-review, .h-streak, .h-pace, .h-week, .h-course, .h-module, .h-level, .h-passport { grid-column: 1 / -1; }
@container (min-width: 600px) {
  .h-course, .h-level { grid-column: span 3; }
  .h-module, .h-passport { grid-column: span 3; }
}
@container (min-width: 1000px) {
  .h-today { grid-column: span 7; }
  .h-review { grid-column: span 5; }
  .h-streak { grid-column: span 5; }
  .h-pace { grid-column: span 7; }
  .h-week { grid-column: span 8; }
  .h-course { grid-column: span 4; }
  .h-module { grid-column: span 7; }
  .h-level { grid-column: span 5; }
  .h-passport { grid-column: 1 / -1; }
}

/* ---------- Onde você está ---------- */
.h-hero { gap: 18px; padding: 20px 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand-b) 16%, transparent), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--brand-dot) 9%, transparent), transparent 60%), var(--surface); }
@container (min-width: 600px) { .h-hero { padding: 26px; } }
.h-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.h-hero-top .page-head { gap: 6px; min-width: 0; }
.h-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.75rem); letter-spacing: -.025em; line-height: 1.05; }
.h-hero h1 em { font-style: normal; color: var(--accent); }
.h-hero .lead { font-size: 1rem; }
.h-hero .lead strong { color: var(--ink); }
.h-hero-side { display: grid; justify-items: end; gap: 14px; flex: none; }
.h-pulse { display: none; height: 64px; align-items: center; gap: 8px; }
@container (min-width: 700px) { .h-pulse { display: flex; } }
.h-pulse i { width: 11px; height: calc(var(--h) * 64px); border-radius: 99px; background: linear-gradient(180deg, var(--brand-b), var(--brand-a)); animation: h-talk 1.4s calc(var(--d) * -1s) ease-in-out infinite; }
.h-pulse b { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-dot); margin-left: 3px; animation: h-dot 1.4s ease-in-out infinite; }

.h-zoom { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 760px) { .h-zoom { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 759px) { .h-z > span:not(.h-z-bar) { white-space: normal; } }
.h-z { display: grid; gap: 2px; align-content: start; padding: 11px 13px; border-radius: var(--r-md); background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line); min-width: 0;
  animation: h-rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(200ms + var(--z) * 90ms); }
.h-z small { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-z b { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; }
.h-z > span:not(.h-z-bar) { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-z-bar { display: block; height: 4px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.h-z-bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--accent); transform-origin: left; animation: h-grow 1.1s calc(.4s + var(--z) * .1s) cubic-bezier(.2, .8, .2, 1) both; }
.h-z.now { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--accent) 90%, transparent); }
.h-z.now small, .h-z.now > span:not(.h-z-bar) { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.h-z.now .h-z-bar { background: color-mix(in srgb, var(--accent-ink) 25%, transparent); }
.h-z.now .h-z-bar i { background: var(--accent-ink); }

.h-journey { display: grid; gap: 8px; }
.h-journey-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font-size: .8125rem; }
.h-journey-head span { color: var(--muted); }
.h-track { position: relative; display: flex; gap: 6px; padding-top: 34px; }
.h-mod { display: flex; gap: 2px; flex: var(--n); min-width: 0; }
.h-wk { flex: 1; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; animation: h-pop .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(300ms + var(--w) * 22ms); }
.h-mod .h-wk:first-child { border-radius: 8px 4px 4px 8px; }
.h-mod .h-wk:last-child { border-radius: 4px 8px 8px 4px; }
.h-wk.done { background: linear-gradient(90deg, var(--brand-a), color-mix(in srgb, var(--brand-a) 50%, var(--brand-b))); border-color: transparent; }
.h-wk.cur { border-color: var(--highlight); box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 22%, transparent); animation: h-pop .4s cubic-bezier(.2, .8, .2, 1) both, h-ring 2s 1.4s ease-in-out infinite; animation-delay: calc(300ms + var(--w) * 22ms), 1.4s; }
.h-wk.cur i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--highlight); }
@keyframes h-pop { from { opacity: 0; transform: scaleY(.2); } }
@keyframes h-ring { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--highlight) 8%, transparent); } }
.h-pin { --tx: -50%; position: absolute; top: 0; z-index: 1; display: grid; justify-items: center; transform: translateX(var(--tx)); pointer-events: none; animation: h-drop .7s 1s cubic-bezier(.2, .8, .2, 1) both; }
.h-pin.is-start { --tx: -12px; justify-items: start; }
.h-pin.is-end { --tx: calc(-100% + 12px); justify-items: end; }
.h-pin > span { padding: 3px 8px; border-radius: 999px; background: var(--highlight); color: #fff; font-size: .6875rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--highlight) 80%, transparent); animation: h-bob 2.4s 1.8s ease-in-out infinite; }
.h-pin::after { content: ""; width: 2px; height: 8px; margin-inline: 11px; background: var(--highlight); }
@keyframes h-drop { from { opacity: 0; transform: translate(var(--tx), -10px); } }
@keyframes h-bob { 50% { transform: translateY(-3px); } }
.h-mods { display: flex; gap: 6px; }
.h-mods span { flex: var(--n); min-width: 0; font-size: .6875rem; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-mods span.on { color: var(--ink); font-weight: 700; }
.h-mods b { font-weight: inherit; }
.h-mods em { font-style: normal; }
@container (max-width: 760px) { .h-mods em { display: none; } .h-mods span { text-align: center; } }
.h-cefr { display: flex; justify-content: space-between; padding-top: 4px; border-top: 1px dashed var(--line); font-size: .6875rem; font-weight: 700; color: var(--muted); }

/* ---------- Aula de hoje ---------- */
.h-today { gap: 16px; border: 0; overflow: hidden; color: #fff;
  background: radial-gradient(130% 90% at 100% 0%, var(--brand-b), transparent 60%), linear-gradient(155deg, var(--brand-a), color-mix(in srgb, var(--brand-a) 55%, #120F2A)); }
.h-today .eyebrow { color: rgba(255, 255, 255, .8); }
.h-today-bars { position: absolute; top: 20px; right: -6px; display: flex; align-items: center; gap: 10px; height: 140px; opacity: .14; pointer-events: none; }
.h-today-bars i { width: 20px; height: calc(var(--h) * 140px); border-radius: 99px; background: #fff; animation: h-talk 1.8s calc(var(--d) * -1s) ease-in-out infinite; }
.h-today-bars b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-dot); }
.h-lesson-no { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 3.25rem; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.h-lesson-no small { margin-left: 4px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; opacity: .75; }
.h-today-txt { position: relative; display: grid; gap: 8px; }
.h-today h2 { font-size: 1.5rem; color: inherit; }
.h-today p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .84); }
.h-parts { display: grid; gap: 8px; margin-top: auto; }
.h-parts-lbl { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.h-parts-lbl b { color: #fff; }
.h-parts-row { display: flex; gap: 4px; }
.h-parts-row i { flex: var(--g); height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; }
.h-parts-row i::after { content: ""; position: absolute; inset: 0; background: var(--k); transform: scaleX(var(--f)); transform-origin: left; animation: h-grow 1s .6s cubic-bezier(.2, .8, .2, 1) both; }
.h-go { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.h-go small { font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.h-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: #fff; color: var(--brand-a); font-weight: 700; text-decoration: none; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); transition: transform .25s ease, gap .25s ease; }
.h-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.h-btn:hover { transform: translateY(-1px); gap: 14px; }
.h-today.is-rest { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.h-today.is-rest .eyebrow, .h-today.is-rest p, .h-today.is-rest .h-parts-lbl, .h-today.is-rest .h-go small { color: var(--muted); }
.h-today.is-rest .h-parts-lbl b { color: var(--ink); }
.h-today.is-rest .h-today-bars { display: none; }
.h-today.is-rest .h-parts-row i { background: var(--surface-2); }
.h-today.is-rest .h-btn { background: var(--accent); color: var(--accent-ink); }

/* ---------- Semana ---------- */
.h-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.h-day { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 10px 8px; border-radius: var(--r-md); background: var(--surface-2); border: 1.5px solid transparent; text-align: center; color: inherit; text-decoration: none;
  animation: h-rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(250ms + var(--d) * 60ms); transition: border-color .2s ease; }
.h-day:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.h-day small { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.h-dn { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.h-st { width: 26px; height: 26px; margin: 2px auto 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); color: var(--muted); }
.h-st svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.h-fc { font-size: .6875rem; line-height: 1.25; color: var(--muted); min-height: 2.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.h-mini { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.h-mini i { display: block; height: 100%; width: var(--p); background: var(--accent); }
.h-day.done .h-st { background: var(--pass); border-color: var(--pass); color: var(--surface); }
.h-day.done .h-mini i { background: var(--pass); }
.h-day.prog .h-st { border-color: var(--accent); color: var(--accent); }
.h-day.miss .h-st { border-style: dashed; border-color: var(--warn); color: var(--warn); }
.h-day.today { background: var(--surface); border-color: var(--accent); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.h-day.today small { color: var(--accent); }
@container (max-width: 440px) { .h-day { padding: 9px 4px; } .h-fc { display: none; } }

.h-meter { display: grid; gap: 8px; }
.h-meter-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-size: .8125rem; }
.h-meter-top b { font-family: var(--font-display); font-size: 1.375rem; }
.h-bar { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.h-bar > i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 70%, var(--highlight))); transform-origin: left; animation: h-grow 1.2s .5s cubic-bezier(.2, .8, .2, 1) both; }
.h-bar.ok > i { background: linear-gradient(90deg, var(--pass), color-mix(in srgb, var(--pass) 70%, var(--accent))); }
.h-goal { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--ink); }
.h-goal span { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.h-foot { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }
.h-foot b { color: var(--ink); }

/* ---------- Curso completo ---------- */
.h-ring { position: relative; width: min(100%, 176px); aspect-ratio: 1; margin: 0 auto; }
.h-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.h-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.h-ring .bg { stroke: var(--surface-2); }
.h-ring .fg { stroke: var(--accent); animation: h-arc 1.4s .5s cubic-bezier(.2, .8, .2, 1) both; }
.h-ring .fg.cur { stroke: var(--highlight); }
@keyframes h-arc { from { stroke-dasharray: 0 999; } }
.h-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.h-ring-c b { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h-ring-c small { font-size: .75rem; color: var(--muted); }
.h-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.h-kv > div { display: grid; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.h-kv b { font-family: var(--font-display); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.h-kv b small { font-size: .75em; color: var(--muted); }
.h-kv span { font-size: .6875rem; color: var(--muted); }

/* ---------- Módulo ---------- */
.h-mweeks { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
@container (max-width: 440px) { .h-mweeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h-mw { display: grid; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.h-mw small { font-size: .6875rem; font-weight: 700; color: var(--muted); }
.h-mw span { font-size: .75rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-mw.done { background: var(--pass-soft); }
.h-mw.done small { color: var(--pass); }
.h-mw.cur { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.h-mw.cur small { color: var(--accent); }
.h-objs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h-objs li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.h-ck { flex: none; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line); }
.h-ck svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.h-objs li.done .h-ck { background: var(--pass); border-color: var(--pass); color: var(--surface); }
.h-objs li.done > span:last-child { color: var(--muted); }
.h-objs li.cur .h-ck { border-color: var(--accent); background: var(--accent-soft); }
.h-eval { margin: auto 0 0; font-size: .8125rem; color: var(--muted); }

/* ---------- Meu nível ---------- */
a.h-level { text-decoration: none; }
.h-lvl { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; }
.h-lvl small { margin-left: 8px; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.h-scale { position: relative; display: block; height: 10px; margin-top: 8px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 25%, var(--surface-2)), var(--accent), var(--highlight)); }
.h-you { position: absolute; top: 50%; left: var(--p); width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); transform: translate(-50%, -50%); animation: h-slide 1.3s .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes h-slide { from { left: 0; } }
.h-scale-l { display: flex; justify-content: space-between; font-size: .6875rem; font-weight: 700; color: var(--muted); }
.h-level .h-note { margin-top: auto; }

/* ---------- Passport ---------- */
.h-passport .doc-acts { flex: none; }
.h-stamps { display: grid; grid-template-columns: repeat(6, minmax(0, 64px)); gap: 10px; }
.h-stamp { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; position: relative; border-radius: 50%; border: 2px dashed var(--line); color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: .875rem; }
.h-stamp.done, .h-stamp.now { border-style: solid; transform: rotate(var(--r)); animation: h-stamp .55s calc(700ms + var(--s) * 120ms) cubic-bezier(.3, 1.6, .5, 1) both; }
.h-stamp.done { border-color: var(--pass); color: var(--pass); background: var(--pass-soft); }
.h-stamp.now { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.h-stamp.done::after, .h-stamp.now::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid currentColor; opacity: .45; }
.h-stamp.goal { border-color: var(--highlight); color: var(--highlight); }
@keyframes h-stamp { from { opacity: 0; transform: scale(1.8) rotate(-20deg); } }
.h-passport .h-note { margin-top: auto; }

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .h-tile:hover { transform: none; }
}

/* 5.0: certificado ocupa a linha inteira */
.h-cert { grid-column: 1 / -1; animation: h-rise .5s .08s ease both; }
.h-cert > .panel { margin: 0; }

/* ---------- Seu ritmo (5.2): semana de estudo, aulas feitas x previstas e término ---------- */
.h-pace { --tone: var(--pass); overflow: hidden;
  background: radial-gradient(110% 120% at 100% 0%, color-mix(in srgb, var(--tone) 13%, transparent), transparent 58%), var(--surface); }
.h-pace.is-atrasado { --tone: var(--warn); }
.h-pace.is-adiantado, .h-pace.is-novo { --tone: var(--accent); }
.pace-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); }
.pace-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 55%, transparent); animation: pace-ping 2s ease-out infinite; }
.pace-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pace-week li { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; border-radius: var(--r-md); background: var(--surface-2); text-align: center; min-width: 0;
  animation: pace-in .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(180ms + var(--d) * 70ms); }
.pace-week small { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pace-week b { font-family: var(--font-display); font-size: 1.125rem; line-height: 1; }
.pace-week em { font-style: normal; font-size: .625rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pace-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--line); background: var(--surface); }
.pace-dot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pace-week .pd-done .pace-dot { border: 0; background: var(--pass); color: #fff; }
.pace-week .pd-late { background: var(--warn-soft); }
.pace-week .pd-late .pace-dot { border: 0; background: var(--warn); color: #fff; }
.pace-week .pd-off { opacity: .55; }
.pace-week .is-today { background: linear-gradient(160deg, var(--brand-a), var(--brand-b)); color: #fff; box-shadow: 0 12px 22px -12px var(--brand-a); }
.pace-week .is-today small, .pace-week .is-today em { color: rgba(255, 255, 255, .85); }
.pace-week .is-today .pace-dot { border: 0; background: #fff; color: var(--brand-a); }
.pace-week .is-today.pd-done .pace-dot { color: var(--pass); }
.pace-week .pd-today .pace-dot svg { fill: currentColor; stroke: none; width: 11px; height: 11px; margin-left: 2px; }
.pace-week .pd-today .pace-dot { animation: pace-beat 1.8s ease-in-out 1s infinite; }
.pace-meter { display: grid; gap: 6px; }
.pace-scale { position: relative; height: 10px; border-radius: 99px; margin-top: 22px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 55%, var(--surface-2)), var(--surface-2) 38%, color-mix(in srgb, var(--pass) 45%, var(--surface-2)) 50%, var(--surface-2) 62%, color-mix(in srgb, var(--accent) 50%, var(--surface-2))); }
.pace-scale::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.pace-needle { position: absolute; top: 50%; left: var(--x); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--tone); border: 3px solid var(--surface); box-shadow: 0 4px 12px -4px var(--tone);
  animation: pace-slide 1.1s .35s cubic-bezier(.2, .9, .3, 1.15) both; }
.pace-needle b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--tone); color: #fff; font-size: .6875rem; font-weight: 800; white-space: nowrap; }
.pace-labels { display: flex; justify-content: space-between; font-size: .6875rem; font-weight: 600; color: var(--muted); }
@keyframes pace-slide { from { left: 50%; opacity: 0; } }
.pace-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pace-stats li { display: grid; gap: 2px; min-width: 0; }
.pace-stats b { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.1; }
.pace-stats b small { font-size: .75rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.pace-stats span { font-size: .75rem; color: var(--muted); }
.pace-body { margin: 0; font-size: .875rem; color: var(--muted); }
.pace-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pace-acts .muted { font-size: .8125rem; }
@keyframes pace-in { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes pace-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes pace-beat { 50% { transform: scale(1.14); } }
