/* =========================================================================
   Workout Tracker — styles
   Calm, native-feeling, high-contrast. Mobile-first (~360–480px), responsive.
   ========================================================================= */

/* ---- Design tokens: light (default) ------------------------------------ */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: #e7e9ed;

  --border: rgba(17, 20, 26, 0.09);
  --border-strong: rgba(17, 20, 26, 0.16);

  --text: #16181d;
  --text-2: #565d6b;
  --text-3: #878e9c;

  --accent: #4f46e5;
  --accent-press: #4338ca;
  --accent-weak: rgba(79, 70, 229, 0.10);

  --success: #16a34a;
  --success-weak: rgba(22, 163, 74, 0.10);
  --success-border: rgba(22, 163, 74, 0.28);
  --on-success: #ffffff;

  --danger: #dc2626;
  --danger-weak: rgba(220, 38, 38, 0.10);

  --technique-bg: #fef3e2;
  --technique-text: #b4530a;
  --technique-border: rgba(180, 83, 10, 0.28);

  --shadow-1: 0 1px 2px rgba(17, 20, 26, 0.05);
  --shadow-sheet: 0 -8px 40px rgba(17, 20, 26, 0.18);
  --shadow-pop: 0 12px 40px rgba(17, 20, 26, 0.22);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --nav-h: 58px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ---- Dark palette (system) --------------------------------------------- */
@media (prefers-color-scheme: dark) {
  html[data-theme-mode="system"] {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1e222b;
    --surface-3: #262b35;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);

    --text: #eef1f6;
    --text-2: #a7aeba;
    --text-3: #767d8b;

    --accent: #8f88ff;
    --accent-press: #a49dff;
    --accent-weak: rgba(143, 136, 255, 0.16);

    --success: #3ecf8e;
    --success-weak: rgba(62, 207, 142, 0.13);
    --success-border: rgba(62, 207, 142, 0.32);
    --on-success: #06231a;

    --danger: #f2645d;
    --danger-weak: rgba(242, 100, 93, 0.14);

    --technique-bg: rgba(214, 158, 46, 0.14);
    --technique-text: #f0b968;
    --technique-border: rgba(240, 185, 104, 0.30);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.5);
    --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.55);
  }
}

/* ---- Dark palette (forced) --------------------------------------------- */
html[data-theme-mode="dark"] {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --surface-3: #262b35;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);

  --text: #eef1f6;
  --text-2: #a7aeba;
  --text-3: #767d8b;

  --accent: #8f88ff;
  --accent-press: #a49dff;
  --accent-weak: rgba(143, 136, 255, 0.16);

  --success: #3ecf8e;
  --success-weak: rgba(62, 207, 142, 0.13);
  --success-border: rgba(62, 207, 142, 0.32);
  --on-success: #06231a;

  --danger: #f2645d;
  --danger-weak: rgba(242, 100, 93, 0.14);

  --technique-bg: rgba(214, 158, 46, 0.14);
  --technique-text: #f0b968;
  --technique-border: rgba(240, 185, 104, 0.30);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* ---- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  line-height: 1.4;
}

button { font-family: inherit; }

a { color: var(--accent); }

[hidden] { display: none !important; }

::selection { background: var(--accent-weak); }

/* Tap highlight off; we handle press states ourselves */
* { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- App frame --------------------------------------------------------- */
#app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
}

/* =========================================================================
   Week header (sticky)
   ========================================================================= */
.week-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--safe-top) + 10px) max(14px, var(--safe-left)) 10px max(14px, var(--safe-right));
}

.wh-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wh-title-btn {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
}
.wh-title-btn:active { background: var(--surface-2); }

.wh-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.wh-title .caret { color: var(--text-3); font-size: 13px; margin-top: 1px; }

.wh-badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  line-height: 1.5;
}

.wh-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .05s;
}
.wh-arrow:active { transform: scale(0.94); background: var(--surface-2); }
.wh-arrow[disabled] { opacity: 0.34; cursor: default; }
.wh-arrow svg { width: 20px; height: 20px; }

/* Day indicator chips */
.wh-days {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.wh-day-chip {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  min-width: 0;
  transition: background .15s, border-color .15s;
}
.wh-day-chip:active { background: var(--surface-2); }
.wh-day-chip.is-current {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.wh-day-chip.is-done .wh-dot {
  background: var(--success);
  border-color: var(--success);
  color: var(--on-success);
}
.wh-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
}
.wh-dot svg { width: 12px; height: 12px; display: none; }
.wh-day-chip.is-done .wh-dot svg { display: block; }
.wh-day-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.wh-day-chip.is-current .wh-day-name { color: var(--accent); }

/* Progress bar + count */
.wh-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.wh-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.wh-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--success);
  transition: width .32s cubic-bezier(.2,.7,.3,1);
}
.wh-count {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.wh-count.is-complete { color: var(--success); }

/* =========================================================================
   Week sheet / days (accordion)
   ========================================================================= */
.week-scroll { }

.week-sheet {
  padding: 12px max(12px, var(--safe-left)) 8px max(12px, var(--safe-right));
  display: flex;
  flex-direction: column;
  gap: 12px;
  touch-action: pan-y;
  will-change: transform;
}
.week-sheet.anim-in-right { animation: slideInRight .26s cubic-bezier(.2,.7,.3,1); }
.week-sheet.anim-in-left { animation: slideInLeft .26s cubic-bezier(.2,.7,.3,1); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.day-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background .15s;
}
.day-header:active { background: var(--surface-2); }

.day-status {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--on-success);
  transition: background .2s, border-color .2s;
}
.day-status svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s; }
.day.is-done .day-status { background: var(--success); border-color: var(--success); }
.day.is-done .day-status svg { opacity: 1; transform: none; }

.day-name {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 0;
}

.day-count {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.day.is-done .day-count { color: var(--success); }

.day-chev {
  flex: 0 0 auto;
  color: var(--text-3);
  transition: transform .26s cubic-bezier(.2,.7,.3,1);
}
.day-chev svg { width: 18px; height: 18px; display: block; }
.day.is-open .day-chev { transform: rotate(180deg); }

/* Collapsible panel: animated via max-height (JS sets it) */
.day-panel {
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.2,.7,.3,1);
}
.day-panel-inner {
  padding: 2px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}

/* =========================================================================
   Exercise card
   ========================================================================= */
.ex {
  display: flex;
  gap: 12px;
  padding: 13px 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid transparent;
  position: relative;
  transition: background .2s, border-color .2s;
}
.ex + .ex { }
.ex.is-done {
  background: var(--success-weak);
  border-color: var(--success-border);
}

/* Big completion toggle */
.ex-check {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: -4px 0 0 -6px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ex-check-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.4px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--on-success);
  background: transparent;
  transition: background .18s, border-color .18s, transform .12s;
}
.ex-check svg { width: 18px; height: 18px; opacity: 0; transform: scale(.4); transition: opacity .18s, transform .18s; }
.ex-check:active .ex-check-ring { transform: scale(0.86); }
.ex.is-done .ex-check-ring {
  background: var(--success);
  border-color: var(--success);
}
.ex.is-done .ex-check svg { opacity: 1; transform: none; }

.ex-main {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 3px;
}

.ex-name {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.25;
}
a.ex-name:active { color: var(--accent); }
.ex-name .link-ico {
  align-self: center;
  color: var(--text-3);
  flex: 0 0 auto;
}
.ex-name .link-ico svg { width: 14px; height: 14px; display: block; }
a.ex-name:active .link-ico { color: var(--accent); }

/* Primary prescription */
.ex-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 9px;
}
.ex-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.ex-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ex-stat-val {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ex-stat-sep { color: var(--border-strong); font-size: 12px; }

/* Options */
.ex-options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ex-option {
  font-size: 13.5px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}
.ex-option .opt-tag { color: var(--text-3); font-weight: 600; flex: 0 0 auto; }
.ex-option .opt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ex-option { color: var(--accent); }
a.ex-option .opt-name { text-decoration: none; }
.ex-option .link-ico { color: var(--text-3); flex: 0 0 auto; }
.ex-option .link-ico svg { width: 12px; height: 12px; display: block; vertical-align: middle; }
a.ex-option .link-ico { color: var(--accent); }

/* Secondary prescription */
.ex-secondary {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--text-2);
}
.ex-sub {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.ex-sub b {
  font-weight: 600;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ex-sub span { color: var(--text); font-weight: 550; font-variant-numeric: tabular-nums; }

/* Intensity technique — must not be missed */
.ex-technique {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--technique-bg);
  border: 1px solid var(--technique-border);
  color: var(--technique-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.ex-technique svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ex-technique .tq-label { font-weight: 700; letter-spacing: 0.02em; }

/* Notes */
.ex-notes {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}

/* =========================================================================
   Progress view
   ========================================================================= */
.progress-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--safe-top) + 14px) max(16px, var(--safe-left)) 14px max(16px, var(--safe-right));
}
.progress-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.progress-scroll { padding: 16px max(14px, var(--safe-left)) 8px max(14px, var(--safe-right)); }

.summary-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--shadow-1);
}
.tile-num {
  font-size: 26px;
  font-weight: 730;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tile-num small { font-size: 15px; font-weight: 620; color: var(--text-3); }
.tile-label {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 550;
}

.progress-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-3);
  margin: 0 2px 10px;
}
.progress-legend .lg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); display: inline-block; margin-right: 4px;
  vertical-align: middle;
}

.weeklist { display: flex; flex-direction: column; gap: 8px; }

.wl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  box-shadow: var(--shadow-1);
  transition: background .15s, border-color .15s;
}
.wl-row:active { background: var(--surface-2); }
.wl-row.is-current { border-color: var(--accent); }

.wl-week {
  flex: 0 0 auto;
  width: 92px;
  font-size: 14px;
  font-weight: 650;
}
.wl-week small { display: block; font-size: 10.5px; font-weight: 600; color: var(--accent); letter-spacing: .01em; }

.wl-dots { flex: 1 1 auto; display: flex; gap: 7px; }
.wl-dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--on-success);
}
.wl-dot svg { width: 9px; height: 9px; display: none; }
.wl-dot.is-done { background: var(--success); border-color: var(--success); }
.wl-dot.is-done svg { display: block; }

.wl-status {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-3);
  text-align: right;
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.wl-status.is-complete { color: var(--success); text-transform: uppercase; letter-spacing: .03em; }

/* =========================================================================
   Bottom navigation
   ========================================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.nav-btn {
  flex: 1 1 0;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-3);
  transition: color .15s;
}
.nav-btn:active { color: var(--text-2); }
.nav-btn.is-active { color: var(--accent); }
.nav-ico { line-height: 0; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .01em; }

/* =========================================================================
   Bottom sheets & modals
   ========================================================================= */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s ease;
  padding: 0;
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-sheet);
  padding: 8px max(18px, var(--safe-left)) calc(20px + var(--safe-bottom)) max(18px, var(--safe-right));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.8,.25,1);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-backdrop.is-open .sheet { transform: none; }
.sheet--tall { min-height: 60vh; }

.sheet-grabber {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  margin: 6px auto 4px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 12px;
}
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  display: grid; place-items: center;
}
.sheet-close:active { background: var(--surface-3); }

/* Week navigator grid */
.weeknav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 4px 0 8px;
}
.wn-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
  position: relative;
  transition: background .15s, border-color .15s, transform .05s;
}
.wn-cell:active { transform: scale(0.95); }
.wn-cell.is-current { border-color: var(--accent); background: var(--accent-weak); }
.wn-num { font-size: 17px; font-weight: 700; }
.wn-cell.is-current .wn-num { color: var(--accent); }
.wn-dots { display: flex; gap: 3px; }
.wn-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--surface-3);
  display: block;
}
.wn-dots i.on { background: var(--success); }
.wn-tag {
  position: absolute;
  top: 5px; right: 6px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--accent);
}
.wn-cell.is-complete { border-color: var(--success-border); }
.wn-check {
  position: absolute;
  bottom: 5px; right: 6px;
  color: var(--success);
  display: none;
}
.wn-cell.is-complete .wn-check { display: block; }
.wn-check svg { width: 13px; height: 13px; display: block; }

/* More menu */
.menu-section { margin-bottom: 16px; }
.menu-section:last-of-type { margin-bottom: 8px; }
.menu-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 4px 2px 8px;
}
.segmented {
  display: flex;
  background: var(--surface-2);
  border-radius: 11px;
  padding: 3px;
  gap: 3px;
}
.seg {
  flex: 1 1 0;
  border: 0;
  background: none;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 14px;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  margin-bottom: 8px;
  transition: background .15s;
}
.menu-item:active { background: var(--surface-3); }
.menu-item:last-child { margin-bottom: 0; }
.menu-item-ico { flex: 0 0 auto; color: var(--accent); line-height: 0; }
.menu-item-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-item-title { font-size: 15px; font-weight: 620; }
.menu-item-sub { font-size: 12px; color: var(--text-3); }
.menu-item-chev { color: var(--text-3); font-size: 20px; }
.menu-item--main { background: var(--accent-weak); }
.menu-item--main .menu-item-title, .menu-item--main .menu-item-chev { color: var(--accent); }
.menu-item--danger .menu-item-title { color: var(--danger); }
.menu-item--danger { background: var(--danger-weak); }
.menu-item--danger:active { background: color-mix(in srgb, var(--danger) 20%, transparent); }

.menu-footnote {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  margin: 14px 0 0;
}

/* Program notes */
.notes-body { padding-bottom: 8px; }
.notes-lead { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.notes-list { margin: 0 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 11px; }
.notes-list li { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.notes-list strong { color: var(--text); }
.notes-subhead { font-size: 15px; font-weight: 700; margin: 4px 0 10px; }
.notes-body p { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 0 0 10px; }
.notes-muted { color: var(--text-3) !important; font-size: 13px !important; }

/* Confirm dialog */
.confirm-backdrop { align-items: center; padding: 24px; }
.confirm {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 24px 22px 18px;
  transform: scale(.92);
  opacity: 0;
  transition: transform .2s cubic-bezier(.2,.8,.25,1), opacity .2s;
}
.confirm-backdrop.is-open .confirm { transform: none; opacity: 1; }
.confirm h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.confirm p { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.confirm-actions { display: flex; gap: 10px; }
.btn {
  flex: 1 1 0;
  border: 0;
  border-radius: 12px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 640;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:active { background: var(--surface-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:active { background: color-mix(in srgb, var(--danger) 84%, #000); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 18px);
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  max-width: calc(100% - 36px);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%); }

/* =========================================================================
   Responsive niceties
   ========================================================================= */
@media (min-width: 560px) {
  .wh-day-name { font-size: 12px; }
  .ex-name { font-size: 17px; }
}

@media (max-width: 340px) {
  .wl-row { gap: 8px; padding: 13px 11px; }
  .wl-dots { gap: 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================================
   Cardio + Super Complete + celebration
   ========================================================================= */

/* ---- Accent tokens ---- */
:root {
  --cardio: #e11d48;
  --cardio-weak: rgba(225, 29, 72, 0.10);
  --cardio-border: rgba(225, 29, 72, 0.30);
  --super: #b45309;
  --super-weak: rgba(245, 158, 11, 0.15);
  --super-border: rgba(217, 119, 6, 0.42);
  --super-grad: linear-gradient(135deg, #f59e0b, #fbbf24);
}
@media (prefers-color-scheme: dark) {
  html[data-theme-mode="system"] {
    --cardio: #fb7185;
    --cardio-weak: rgba(251, 113, 133, 0.15);
    --cardio-border: rgba(251, 113, 133, 0.36);
    --super: #fbbf24;
    --super-weak: rgba(251, 191, 36, 0.16);
    --super-border: rgba(251, 191, 36, 0.42);
    --super-grad: linear-gradient(135deg, #f59e0b, #fcd34d);
  }
}
html[data-theme-mode="dark"] {
  --cardio: #fb7185;
  --cardio-weak: rgba(251, 113, 133, 0.15);
  --cardio-border: rgba(251, 113, 133, 0.36);
  --super: #fbbf24;
  --super-weak: rgba(251, 191, 36, 0.16);
  --super-border: rgba(251, 191, 36, 0.42);
  --super-grad: linear-gradient(135deg, #f59e0b, #fcd34d);
}

/* ---- Cardio card ---- */
.ex--cardio { box-shadow: inset 3px 0 0 var(--cardio); }
.ex-cardio-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-name--cardio { display: inline-flex; align-items: center; gap: 7px; }
.cardio-ico { color: var(--cardio); line-height: 0; display: inline-flex; }
.cardio-ico svg { width: 18px; height: 18px; display: block; }
.cardio-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cardio); background: var(--cardio-weak);
  border: 1px solid var(--cardio-border); border-radius: 999px; padding: 2px 8px;
}
.ex-notes--cardio { border-top: none; padding-top: 5px; margin-top: 5px; }

/* Cardio day header identity */
.day--cardio .day-name { color: var(--cardio); }
.day--cardio:not(.is-done) .day-status { border-color: var(--cardio-border); color: var(--cardio); }
.day--cardio:not(.is-done) .day-status svg { opacity: .55; transform: none; }

/* ---- 6 sessions: compact day chips ---- */
.wh-days { gap: 5px; }
.wh-day-chip { padding: 6px 2px 6px; }
.wh-day-name { font-size: 9.5px; letter-spacing: -0.02em; }
.wh-dot { width: 16px; height: 16px; }
@media (min-width: 560px) { .wh-day-name { font-size: 11px; } }

.wh-day-chip--cardio:not(.is-done) .wh-dot { border-color: var(--cardio-border); color: var(--cardio); }
.wh-day-chip--cardio:not(.is-done) .wh-dot svg { display: block; opacity: .5; }
.wh-day-chip--cardio.is-current { border-color: var(--cardio); background: var(--cardio-weak); }
.wh-day-chip--cardio.is-current .wh-day-name { color: var(--cardio); }

/* ---- Super complete ---- */
.wh-bar-fill.is-super { background: var(--super-grad); }
.wh-count.is-super {
  color: var(--super); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.wh-count-star { display: inline-flex; line-height: 0; }
.wh-count-star svg { width: 13px; height: 13px; }

.wn-cell.is-super { border-color: var(--super-border); background: var(--super-weak); }
.wn-cell.is-super .wn-num { color: var(--super); }
.wn-cell.is-super .wn-check { color: var(--super); }
.wn-dots i.cardio.on { background: var(--cardio); }
.wn-dots i.cardio:not(.on) { box-shadow: inset 0 0 0 1.5px var(--cardio-border); background: transparent; }

.wl-dot--cardio.is-done { background: var(--cardio); border-color: var(--cardio); }
.wl-dot--cardio:not(.is-done) { border-color: var(--cardio-border); }
.wl-row.is-super { border-color: var(--super-border); background: var(--super-weak); }
.wl-status.is-super { color: var(--super); display: inline-flex; align-items: center; gap: 3px; justify-content: flex-end; }
.wl-star { display: inline-flex; line-height: 0; }
.wl-star svg { width: 12px; height: 12px; }

.progress-legend b { color: var(--cardio); font-weight: 650; }

/* ---- Check "pop" micro-interaction ---- */
@keyframes checkpop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  72% { transform: scale(.9); }
  100% { transform: scale(1); }
}
.ex-check-ring.pop { animation: checkpop .42s cubic-bezier(.2, .7, .3, 1); }

/* ---- Confetti overlay ---- */
.confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 300;
}

/* =========================================================================
   Calendar: week dates, banners, setup sheet
   ========================================================================= */
.wh-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.wh-dates {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.wh-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.5;
}
.wh-pill--now { background: var(--success-weak); color: var(--success); }
.wh-pill--missed { background: var(--surface-3); color: var(--text-3); }

.wh-jump-row { display: flex; justify-content: center; margin-top: 6px; }
.wh-jump {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.wh-jump svg { width: 15px; height: 15px; }
.wh-jump:active { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.round-banner { padding: 12px max(12px, var(--safe-left)) 0 max(12px, var(--safe-right)); }
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-weak);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.banner-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-body b { font-size: 15px; }
.banner-body span { font-size: 13px; color: var(--text-2); }

.round-line {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  margin: -4px 2px 12px;
}

.wl-status.is-missed { color: var(--text-3); letter-spacing: .03em; }
.wl-status small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
.wl-status.is-upcoming { color: var(--text-3); font-weight: 550; }
.wl-week small { color: var(--text-3); font-weight: 550; }

.wn-date { font-size: 10px; font-weight: 600; color: var(--text-3); margin-top: -4px; }
.wn-cell.is-missed { background: var(--surface-2); }
.wn-cell.is-missed .wn-num { color: var(--text-3); }
.wn-cell.is-now:not(.is-current) { border-color: var(--success-border); }

.setup-lead { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 0 0 16px; }
.setup-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3);
}
.setup-field input {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color-scheme: light dark;
}
.setup-field input::placeholder { color: var(--text-3); font-weight: 500; opacity: .7; }
.setup-preview { font-size: 13px; line-height: 1.5; color: var(--text-2); min-height: 40px; margin: 10px 2px 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-press); }
.btn-block { width: 100%; flex: none; display: block; }

/* =========================================================================
   Stats view
   ========================================================================= */
/* Series colours, validated for CVD separation + contrast on each surface. */
:root { --chart-strength: #4f46e5; --chart-cardio: #e11d48; }
@media (prefers-color-scheme: dark) {
  html[data-theme-mode="system"] { --chart-strength: #7c74f5; --chart-cardio: #f0506e; }
}
html[data-theme-mode="dark"] { --chart-strength: #7c74f5; --chart-cardio: #f0506e; }

/* The headline: sessions per week */
.tile--hero { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.tile--hero .tile-num { font-size: 48px; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: normal; }
.tile--hero .tile-label { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tile--hero .tile-label b { font-size: 16px; font-weight: 680; color: var(--text); letter-spacing: -0.01em; }

.summary-tiles--4 .tile-label { font-size: 12px; }
.tile-num small { font-size: 14px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 15px 16px 16px;
  margin-bottom: 12px;
}
.stat-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stat-card h2 small { font-size: 12px; font-weight: 550; color: var(--text-3); margin-left: 4px; }
.stat-note { font-size: 13px; color: var(--text-2); margin: 0 0 10px; }
.stat-tip {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 10px;
  min-height: 18px;
  font-variant-numeric: tabular-nums;
}

.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.totals div { display: flex; flex-direction: column; }
.totals b { font-size: 22px; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.totals b small { font-size: 13px; font-weight: 600; color: var(--text-3); }
.totals span { font-size: 12px; color: var(--text-2); }

/* Legend */
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key--strength { background: var(--chart-strength); }
.key--cardio { background: var(--chart-cardio); }

/* Month by month: stacked columns */
.mchart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
  height: 160px;
  padding-top: 22px;
  border-bottom: 1px solid var(--border-strong);
}
.mcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  position: relative;
}
.mbar {
  width: min(100%, 24px);
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.mseg { display: block; flex: none; width: 100%; min-height: 3px; }
.mseg:nth-last-child(2) { border-radius: 4px 4px 0 0; }
.mtotal {
  flex: none;
  font-size: 12px; font-weight: 680; line-height: 16px; text-align: center; white-space: nowrap;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.mseg--strength { background: var(--chart-strength); }
.mseg--cardio { background: var(--chart-cardio); }
.mlabel {
  position: absolute;
  bottom: -20px;
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
}
.mcol:hover, .mcol.is-tipped { background: var(--surface-2); }
.mcol.is-tipped .mlabel { color: var(--text); }
.mchart + .stat-tip { margin-top: 28px; }

.stat-table { margin-top: 10px; overflow-x: auto; }
.stat-table summary { font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.stat-table table {
  width: 100%; border-collapse: collapse; margin-top: 8px;
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.stat-table th, .stat-table td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--border); }
.stat-table th:first-child { text-align: left; white-space: nowrap; }
.stat-table thead th { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.stat-table tbody th { font-weight: 600; }
.stat-table--open table { margin-top: 0; }

/* Activity heatmap: 20 week-columns x 7 day-rows */
.heatmap-wrap { display: flex; gap: 6px; }
.hm-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 9.5px; color: var(--text-3); line-height: 1; }
.hm-days span { display: flex; align-items: center; }
.heatmap {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
}
.hm { display: block; aspect-ratio: 1 / 1; border-radius: 3px; background: var(--surface-3); }
.hm-1 { background: color-mix(in srgb, var(--chart-strength) 32%, var(--surface-3)); }
.hm-2 { background: color-mix(in srgb, var(--chart-strength) 56%, var(--surface-3)); }
.hm-3 { background: color-mix(in srgb, var(--chart-strength) 78%, var(--surface-3)); }
.hm-4 { background: var(--chart-strength); }
.hm--future { background: transparent; }
.heatmap .hm.is-tipped { outline: 2px solid var(--text); outline-offset: 1px; }
.hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10.5px; color: var(--text-3); margin-top: 8px; }
.hm-legend .hm { width: 11px; }

/* Habits: weekday bars + time of day */
.hbars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hbar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hbar-label { width: 30px; color: var(--text-2); font-weight: 600; }
.hbar-track { flex: 1 1 auto; height: 10px; }
.hbar-fill {
  display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--chart-strength) 45%, var(--surface-3));
}
.hbar-row.is-top .hbar-fill { background: var(--chart-strength); }
.hbar-row.is-top .hbar-label { color: var(--text); }
.hbar-val { width: 22px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

.tod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.tod div {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px;
  display: flex; flex-direction: column; align-items: center; border: 1px solid transparent;
}
.tod div.is-top { border-color: var(--accent); background: var(--accent-weak); }
.tod b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tod span { font-size: 11.5px; color: var(--text-2); }

.ex-facts { display: flex; flex-direction: column; gap: 12px; }
.ex-facts div { display: flex; flex-direction: column; }
.ex-facts span { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.ex-facts b { font-size: 15.5px; }
.ex-facts small { font-size: 12px; color: var(--text-2); }

.stats-empty { text-align: center; padding: 48px 24px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.stats-empty p { margin: 0 0 6px; }
.stats-empty b { color: var(--text); font-size: 16px; }
.stats-empty-ico { color: var(--super); margin-bottom: 8px; }
.stats-empty-ico svg { width: 36px; height: 36px; }

@media (min-width: 480px) {
  .totals { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   Rounds: switch, round line
   ========================================================================= */
.round-switch { margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.round-switch .seg { min-width: 78px; }
.wh-round { font-size: 11.5px; font-weight: 600; color: var(--text-3); }

/* =========================================================================
   Account + cloud backup
   ========================================================================= */
/* Signed out by itself: a dot on "More" until signed in again */
.nav-menu .nav-ico { position: relative; }
.nav-menu.has-alert .nav-ico::after {
  content: ''; position: absolute; top: 0; right: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--super); border: 2px solid var(--surface);
}

.acct-card {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--success-weak); border: 1px solid var(--success-border);
}
.acct-ico { flex: none; line-height: 0; color: var(--success); }
.acct-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-who b { font-size: 15px; font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span { font-size: 12.5px; color: var(--text-2); }

.acct-error { margin: 8px 2px 10px; min-height: 19px; font-size: 13px; line-height: 19px; color: var(--danger); }
.acct-note { margin: -6px 0 14px; font-size: 13px; line-height: 1.45; color: var(--technique-text); }
.acct-links { display: flex; justify-content: space-between; margin-top: 8px; }
.setup-lead b { color: var(--text); overflow-wrap: anywhere; }
.setup-field .code-input { font-size: 26px; font-weight: 680; text-align: center; letter-spacing: .32em; text-indent: .32em; font-variant-numeric: tabular-nums; }

.link-btn {
  border: 0; background: none; cursor: pointer;
  padding: 10px 4px; font-size: 13.5px; font-weight: 620; color: var(--accent);
}
.link-btn[disabled] { color: var(--text-3); cursor: default; }
.link-btn--block { display: block; width: 100%; margin-top: 6px; }

.confirm-field { margin: -6px 0 18px; }
.confirm-field span { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 550; color: var(--text-2); }
.confirm-field b { color: var(--text); }

#recap-body .tile { box-shadow: none; background: var(--surface-2); }
