:root {
  --bg: #0a0612;
  --bg2: #150c22;
  --surface: #1a1027;
  --surface-2: #241634;
  --border: #38204e;
  --border-soft: #2a1a3c;
  --text: #f0e6f5;
  --text-dim: #9b86ad;
  --blood: #c81e3a;
  --blood-bright: #ff2d4d;
  --gold: #f2c14e;
  --purple: #7c3aed;
  --danger: #ff2d4d;
  --radius: 6px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-pixel: "Press Start 2P", monospace;
  --font-display: "VT323", monospace;
}

* { box-sizing: border-box; }

/* Single source of truth for the "hidden" toggle used throughout the app.
   !important because several elements (.lockout-screen, .modal-overlay,
   etc.) set their own `display` unconditionally on the same class — without
   this, cascade order (not the presence of the "hidden" class) would decide
   visibility, which is exactly the bug that let .lockout-screen render at
   full-screen on every load regardless of actual lockout state. */
.hidden { display: none !important; }

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body { padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); position: relative; }

/* Fixed full-viewport background so the gradient never tiles, splits,
   or scrolls away from the content above it. */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #2a1140 0%, #150b23 45%, #0a0612 100%),
    linear-gradient(180deg, #0a0612 0%, #0a0612 100%);
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 6;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0.10) 1px, rgba(0,0,0,0) 3px);
  opacity: .45;
}

/* minimal line icons */
.ic {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ic-lg { width: 22px; height: 22px; }
.hud-chip .ic { width: 15px; height: 15px; }

.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 18px 8px; position: relative; z-index: 2;
}
.topbar h1 {
  font-family: var(--font-pixel); font-size: 12px; margin: 0;
  letter-spacing: .06em; color: var(--blood-bright);
  text-shadow: 0 0 10px rgba(200,30,58,.55);
}
.topbar-date { color: var(--text-dim); font-size: 13px; font-family: var(--font-display); }

#app {
  padding: 4px 16px calc(32px + var(--safe-bottom));
  max-width: 560px; margin: 0 auto; position: relative; z-index: 2;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-heading { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
.section-heading h2 { margin: 0; font-size: 14px; font-family: var(--font-pixel); flex: 1; }
.back-btn { background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1; }
.back-btn:active { color: var(--blood-bright); }
.list-heading {
  font-size: 10px; font-family: var(--font-pixel); text-transform: uppercase;
  color: var(--text-dim); margin: 22px 0 10px 4px;
}

/* ===== buttons ===== */
.btn {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; font-size: 14px; font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer; transition: transform .08s ease, box-shadow .08s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--blood); color: #fff0f2; border-color: #8a1327;
  box-shadow: 0 3px 0 #6e0f1f, 0 0 16px rgba(200,30,58,.3);
}
.btn-primary:active { box-shadow: 0 1px 0 #6e0f1f; transform: translateY(2px) scale(.98); }
.btn-secondary { background: var(--surface-2); color: var(--text); box-shadow: 0 3px 0 #120a1c; }
.btn-secondary:active { box-shadow: 0 1px 0 #120a1c; transform: translateY(2px) scale(.98); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 2px dashed var(--border); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-full { width: 100%; margin-top: 14px; }
.btn-small { padding: 8px 12px; font-size: 12px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-icon {
  background: var(--surface-2); color: var(--text); border: 2px solid var(--border);
  width: 34px; height: 34px; border-radius: 50%; font-size: 17px;
  display: flex; align-items: center; justify-content: center; padding: 0;
}

/* ===== mascot ===== */
.mascot-dock { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 14px; }
.mascot-wrap { flex-shrink: 0; width: 96px; height: 108px; animation: bob 3.4s ease-in-out infinite; }
.mascot-sm { width: 64px; height: 72px; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-5px);} }
.mascot-svg { width: 100%; height: 100%; overflow: visible; display: block; }

.react-bounce { animation: reactBounce .8s cubic-bezier(.3,1.4,.5,1); }
@keyframes reactBounce { 0%{transform:translateY(0) scale(1)} 30%{transform:translateY(-16px) scale(1.08)} 55%{transform:translateY(0) scale(.95)} 75%{transform:translateY(-6px)} 100%{transform:translateY(0) scale(1)} }
.react-shake { animation: reactShake .5s ease; }
@keyframes reactShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px) rotate(-4deg)} 40%{transform:translateX(6px) rotate(4deg)} 60%{transform:translateX(-4px) rotate(-2deg)} 80%{transform:translateX(4px) rotate(2deg)} }
.react-pop { animation: reactPop .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes reactPop { 0%{transform:scale(1)} 40%{transform:scale(1.18)} 100%{transform:scale(1)} }

/* wings flap */
.v-wing { transform-origin: 64px 78px; animation: flap 2.6s ease-in-out infinite; }
.v-wing-r { animation-delay: .12s; }
@keyframes flap { 0%,100%{transform:rotate(0) scaleY(1)} 50%{transform:rotate(-4deg) scaleY(.9)} }
.v-aura { animation: auraPulse 4s ease-in-out infinite; }
@keyframes auraPulse { 0%,100%{opacity:.5} 50%{opacity:.9} }

/* mood visibility */
.mascot-svg .face-part { display: none; }
.mascot-svg .eyes-open, .mascot-svg .mouth-idle { display: block; }
.mascot-svg.blinking .eyes-open { display: none; }
.mascot-svg.blinking .eyes-blink { display: block; }

.mascot-svg.mood-happy .eyes-open, .mascot-svg.mood-happy .eyes-blink, .mascot-svg.mood-happy .mouth-idle { display: none; }
.mascot-svg.mood-happy .eyes-happy, .mascot-svg.mood-happy .mouth-happy { display: block; }

.mascot-svg.mood-annoyed .eyes-open, .mascot-svg.mood-annoyed .eyes-blink, .mascot-svg.mood-annoyed .mouth-idle { display: none; }
.mascot-svg.mood-annoyed .eyes-annoyed, .mascot-svg.mood-annoyed .mouth-annoyed { display: block; }

.mascot-svg.mood-wink .eyes-open, .mascot-svg.mood-wink .eyes-blink, .mascot-svg.mood-wink .mouth-idle { display: none; }
.mascot-svg.mood-wink .eyes-wink, .mascot-svg.mood-wink .mouth-wink { display: block; }

.mascot-svg.mood-love .eyes-open, .mascot-svg.mood-love .eyes-blink, .mascot-svg.mood-love .mouth-idle { display: none; }
.mascot-svg.mood-love .eyes-love, .mascot-svg.mood-love .mouth-happy { display: block; }

.mascot-svg.mood-shocked .eyes-open, .mascot-svg.mood-shocked .eyes-blink, .mascot-svg.mood-shocked .mouth-idle { display: none; }
.mascot-svg.mood-shocked .eyes-shocked, .mascot-svg.mood-shocked .mouth-open { display: block; }

.mascot-svg.mood-smug .eyes-open, .mascot-svg.mood-smug .eyes-blink, .mascot-svg.mood-smug .mouth-idle { display: none; }
.mascot-svg.mood-smug .eyes-annoyed, .mascot-svg.mood-smug .mouth-smirk { display: block; }

.mascot-svg .v-hearts, .mascot-svg .v-anger, .mascot-svg .v-sweat { display: none; }
.mascot-svg.mood-love .v-hearts, .mascot-svg.mood-happy .v-hearts { display: block; animation: floatUp 1.8s ease-in-out infinite; }
@keyframes floatUp { 0%{transform:translateY(4px);opacity:.4} 50%{transform:translateY(-6px);opacity:1} 100%{transform:translateY(4px);opacity:.4} }
.mascot-svg.mood-annoyed .v-anger { display: block; animation: angerPulse .9s ease-in-out infinite; }
@keyframes angerPulse { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.12)} }
.mascot-svg.mood-shocked .v-sweat { display: block; animation: dropBob 1.2s ease-in-out infinite; }
@keyframes dropBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(3px)} }
.mascot-svg.mood-love .v-blush, .mascot-svg.mood-happy .v-blush { opacity: .85; }

/* Red Flag Court consequence — an overlay independent of mood, applied on
   top of whatever expression is currently showing (see mascot.js). */
.mascot-svg.mascot-flagged { filter: grayscale(0.85) brightness(0.6); transform: scaleX(-1); transition: filter .3s ease, transform .3s ease; }

/* speech bubble */
.speech-bubble {
  flex: 1; background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; position: relative;
  min-height: 54px; display: flex; align-items: center;
}
.speech-bubble::before { content:""; position:absolute; left:-8px; bottom:16px; border:7px solid transparent; border-right-color: var(--border); }
.speech-bubble::after { content:""; position:absolute; left:-5px; bottom:17px; border:6px solid transparent; border-right-color: var(--surface); }
.speech-bubble p { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.speech-sm { min-height: 46px; }
.speech-sm p { font-size: 16px; }

/* ===== HUD ===== */
.hud-row { display: flex; gap: 8px; margin-bottom: 8px; }
.hud-chip {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 7px 11px; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 17px;
}
.hud-label { color: var(--text-dim); font-size: 13px; }
.hud-level { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); border-color: #6b5320; }
.hud-ach { color: var(--gold); }
.hud-ach .ic { color: var(--gold); }
.xp-bar-track {
  height: 9px; background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); margin-bottom: 18px; overflow: hidden;
}
.xp-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--purple), var(--blood-bright));
  transition: width .7s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 10px rgba(255,45,77,.5);
}

/* ===== hero ===== */
.hero-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 0 26px rgba(124,58,237,.12);
}
.hero-card-label { font-family: var(--font-pixel); font-size: 9px; color: var(--gold); letter-spacing: .08em; margin-bottom: 8px; }
.hero-plan-name { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.hero-splits { display: flex; flex-direction: column; gap: 8px; }
.hero-split-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; color: var(--text); font-size: 15px; font-weight: 700;
  cursor: pointer; text-align: left; transition: border-color .15s, transform .08s;
}
.hero-split-btn:active { border-color: var(--blood); transform: scale(.98); }
.hero-split-btn .hs-meta { color: var(--text-dim); font-size: 12px; font-weight: 400; display: block; margin-top: 2px; }
.hero-split-btn .hs-play { color: var(--blood-bright); font-size: 15px; }
#hero-no-plan-btn { display: none; }

.home-calendar { margin-top: 26px; }

/* ===== generic cards/lists ===== */
.card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.card-row { display: flex; align-items: center; justify-content: space-between; }
.card-label { color: var(--text-dim); font-size: 14px; }
.card-value { font-size: 17px; font-weight: 700; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-item, .entry-item-clickable {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px;
}
.entry-item-clickable { cursor: pointer; }
.entry-item-clickable:active { border-color: var(--blood); }
.entry-main { display: flex; flex-direction: column; gap: 2px; }
.entry-title { font-size: 15px; font-weight: 600; }
.entry-sub { font-size: 13px; color: var(--text-dim); }
.entry-chevron { color: var(--text-dim); font-size: 18px; }
.entry-delete { background: none; border: none; font-size: 15px; opacity: .7; padding: 4px 8px; cursor: pointer; }
.empty-state { color: var(--text-dim); font-size: 14px; text-align: center; padding: 18px 8px; list-style: none; }

/* ===== menu ===== */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 17px 16px; margin-bottom: 10px; cursor: pointer; font-size: 15px; font-weight: 600;
}
.menu-item:active { border-color: var(--blood); }
.menu-chevron { margin-left: auto; color: var(--text-dim); }

/* ===== inputs ===== */
.text-input {
  width: 100%; background: var(--bg2); border: 2px solid var(--border); color: var(--text);
  border-radius: var(--radius); padding: 11px 12px; font-size: 15px; margin-bottom: 12px; -webkit-appearance: none;
}
.text-input::placeholder { color: var(--text-dim); }
.textarea { resize: vertical; font-family: inherit; }
.field-label { font-size: 10px; color: var(--text-dim); margin: 0 0 6px 2px; display: block; font-family: var(--font-pixel); }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.chip {
  flex: 0 0 auto; background: var(--surface-2); border: 2px solid var(--border); color: var(--text-dim);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.chip-active { background: var(--blood); color: #fff0f2; border-color: #8a1327; font-weight: 600; }

.set-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; align-items: center; }
.set-row .text-input { margin-bottom: 8px; }
.set-remove { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; margin-bottom: 8px; }

/* ===== calendar ===== */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-month-label { font-family: var(--font-display); font-size: 21px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; color: var(--text-dim); font-size: 11px; margin-bottom: 4px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1; background: var(--surface); border: 2px solid var(--border-soft); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-size: 13px;
}
.cal-cell-empty { background: transparent; border: none; cursor: default; }
.cal-cell-today { border-color: var(--blood-bright); box-shadow: 0 0 10px rgba(255,45,77,.35); }
.cal-daynum { font-weight: 600; }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot-exercise { background: var(--blood-bright); }
.dot-weight { background: var(--purple); }
.calendar-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.legend-item { display: flex; align-items: center; gap: 6px; }

/* ===== modals ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(5,2,10,.72); display: flex; align-items: flex-end; z-index: 100; }
.modal-overlay.hidden { display: none; }
.modal-sheet {
  background: var(--surface); border-top: 2px solid var(--blood); border-radius: 12px 12px 0 0;
  width: 100%; max-height: 85vh; overflow-y: auto;
  padding-bottom: calc(20px + var(--safe-bottom)); animation: slideup .2s ease;
}
.modal-sheet-tall { max-height: 90vh; }
@keyframes slideup { from { transform: translateY(28px); opacity:.5 } to { transform:none; opacity:1 } }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 16px 18px 10px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 13px; font-family: var(--font-pixel); }
.modal-close { background: var(--surface-2); border: none; color: var(--text); width: 30px; height: 30px; min-width: 30px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.modal-body { padding: 16px 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(32px + var(--safe-bottom));
  transform: translateX(-50%) translateY(8px);
  background: var(--surface-2); border: 2px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius); font-size: 13px;
  opacity: 0; transition: opacity .18s, transform .18s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.hidden { display: none; }

/* =========================================================
   SESSION PLAYER (full screen, one set per page)
   ========================================================= */
.session-screen {
  position: fixed; inset: 0; z-index: 150;
  background:
    radial-gradient(120% 70% at 50% 0%, #2a1140 0%, #150b23 45%, #0a0612 100%);
  display: flex; flex-direction: column;
  padding-top: var(--safe-top); padding-bottom: var(--safe-bottom);
  overflow-y: auto;
}
.session-screen.hidden { display: none; }

.session-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 6px; }
.session-x, .session-list-btn {
  background: var(--surface-2); border: 2px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px;
}
.session-crumb { flex: 1; text-align: center; min-width: 0; }
.session-plan-crumb { font-family: var(--font-pixel); font-size: 8px; color: var(--gold); letter-spacing: .06em; }
.session-ex-crumb { font-size: 12px; color: var(--text-dim); margin-top: 3px; }

.session-dots { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 6px 20px 10px; }
.sdot { width: 22px; height: 4px; border-radius: 2px; background: var(--border); transition: background .2s, transform .2s; }
.sdot.done { background: var(--blood); }
.sdot.current { background: var(--blood-bright); transform: scaleY(1.8); box-shadow: 0 0 8px rgba(255,45,77,.6); }

.session-swipe { flex: 1; padding: 0 16px 24px; touch-action: pan-y; }
.session-card { max-width: 520px; margin: 0 auto; }
.session-card.swipe-out-left { animation: swipeOutL .22s ease forwards; }
.session-card.swipe-out-right { animation: swipeOutR .22s ease forwards; }
.session-card.swipe-in-left { animation: swipeInL .26s ease; }
.session-card.swipe-in-right { animation: swipeInR .26s ease; }
@keyframes swipeOutL { to { transform: translateX(-40%); opacity: 0; } }
@keyframes swipeOutR { to { transform: translateX(40%); opacity: 0; } }
@keyframes swipeInL { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swipeInR { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }

.session-mascot-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; }

.set-badge { display: flex; align-items: baseline; gap: 8px; justify-content: center; margin-bottom: 6px; }
.set-badge-label { font-family: var(--font-pixel); font-size: 9px; color: var(--text-dim); }
.set-badge-num {
  font-family: var(--font-pixel); font-size: 30px; color: var(--blood-bright);
  text-shadow: 0 0 14px rgba(255,45,77,.5);
}
.set-badge-of { font-family: var(--font-display); font-size: 18px; color: var(--text-dim); }

.session-ex-name { text-align: center; font-size: 22px; margin: 4px 0 4px; line-height: 1.2; }
.session-target-line { text-align: center; color: var(--gold); font-family: var(--font-display); font-size: 18px; margin-bottom: 20px; }

.big-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.big-input-group { text-align: center; }
.big-label { font-family: var(--font-pixel); font-size: 9px; color: var(--text-dim); display: block; margin-bottom: 8px; }
.stepper {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 4px;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 4px;
}
.step-btn {
  background: var(--surface-2); border: none; color: var(--text); font-size: 20px;
  height: 44px; border-radius: 4px; cursor: pointer; line-height: 1;
}
.step-btn:active { background: var(--blood); }
.big-input {
  background: transparent; border: none; color: var(--text); text-align: center;
  font-family: var(--font-display); font-size: 34px; width: 100%; padding: 0; -webkit-appearance: none;
}
.big-input:focus { outline: none; color: var(--blood-bright); }
.big-input::-webkit-outer-spin-button, .big-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-log-set { font-family: var(--font-pixel); font-size: 12px; padding: 17px; letter-spacing: .04em; }
.session-nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.session-nav-row .btn { flex: 1; }

.history-block { margin-top: 26px; }
.history-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-pixel); font-size: 9px; color: var(--text-dim); margin-bottom: 8px;
}
.history-pr { color: var(--gold); }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 2px solid var(--border-soft); border-radius: var(--radius);
  padding: 9px 12px; margin-bottom: 6px; font-size: 13px;
}
.history-date { color: var(--text-dim); font-family: var(--font-display); font-size: 15px; }
.history-sets { font-weight: 600; }

/* ===== rest timer ===== */
.rest-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,4,15,.96); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; padding-bottom: calc(24px + var(--safe-bottom));
  animation: fadein .2s ease;
}
.rest-overlay.hidden { display: none; }
.rest-inner { text-align: center; width: 100%; max-width: 340px; }
.rest-inner .mascot-wrap { margin: 0 auto; }
.rest-line { font-family: var(--font-display); font-size: 19px; color: var(--text); margin: 8px 0 20px; min-height: 46px; }

.rest-ring-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto 22px; }
.rest-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.rest-ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg {
  stroke: var(--blood-bright); stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(255,45,77,.6));
  transition: stroke-dashoffset .95s linear;
}
.rest-time {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel); font-size: 28px; color: var(--text);
}
.rest-time.urgent { color: var(--blood-bright); animation: urgentPulse .9s ease-in-out infinite; }
@keyframes urgentPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.rest-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rest-adjust { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.rest-adjust .btn { flex: 1; }

/* ===== overview sheet ===== */
.ov-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 2px solid var(--border-soft); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px;
}
.ov-row.ov-current { border-color: var(--blood-bright); box-shadow: 0 0 12px rgba(255,45,77,.25); }
.ov-row.ov-done { opacity: .55; }
.ov-mark { width: 22px; text-align: center; font-size: 15px; }
.ov-main { flex: 1; min-width: 0; }
.ov-name { font-size: 14px; font-weight: 600; }
.ov-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ===== achievements ===== */
.ach-progress { margin-bottom: 18px; }
#ach-progress-text { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); display: block; margin-bottom: 8px; }
.ach-cat-heading { font-family: var(--font-pixel); font-size: 10px; color: var(--blood-bright); margin: 20px 0 10px; }
.ach-cat-heading:first-child { margin-top: 0; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ach-tile {
  background: var(--surface); border: 2px solid var(--border-soft); border-radius: var(--radius);
  padding: 10px 6px; text-align: center; position: relative;
}
.ach-tile.unlocked { border-color: var(--gold); box-shadow: 0 0 12px rgba(242,193,78,.15); }
.ach-tile.locked { opacity: .4; }
.ach-tile-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.ach-tile.locked .ach-tile-icon { filter: grayscale(1); }
.ach-tile-name { font-size: 11px; font-weight: 700; line-height: 1.2; margin-bottom: 3px; }
.ach-tile-desc { font-size: 10px; color: var(--text-dim); line-height: 1.25; }

.achievement-sheet {
  text-align: center; padding: 30px 24px calc(24px + var(--safe-bottom));
  border-top: 2px solid var(--gold);
  background: radial-gradient(ellipse at top, #2f2010 0%, var(--surface) 70%);
  position: relative; overflow: hidden;
}
.ach-rays {
  position: absolute; top: -60px; left: 50%; width: 340px; height: 340px; margin-left: -170px;
  background: conic-gradient(from 0deg, rgba(242,193,78,.16) 0deg 12deg, transparent 12deg 30deg);
  animation: spinRays 12s linear infinite; pointer-events: none;
}
@keyframes spinRays { to { transform: rotate(360deg); } }
.achievement-burst { font-size: 54px; position: relative; animation: burst .55s cubic-bezier(.2,1.5,.4,1); filter: drop-shadow(0 0 16px rgba(242,193,78,.7)); }
@keyframes burst { 0%{transform:scale(0) rotate(-25deg)} 70%{transform:scale(1.28) rotate(8deg)} 100%{transform:scale(1) rotate(0)} }
.achievement-unlocked-label { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); letter-spacing: .1em; margin: 14px 0 6px; position: relative; }
.achievement-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; position: relative; }
.achievement-desc { color: var(--text-dim); font-size: 14px; position: relative; }

/* ===== plans ===== */
.plan-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.plan-card:active { border-color: var(--blood); }
.plan-card-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.plan-card-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.plan-split-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.split-chip { background: var(--surface-2); border: 2px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.split-row { background: var(--surface-2); border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.split-row-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.split-row-name { font-weight: 700; font-size: 15px; }
.split-row-exercises { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
.split-block { background: var(--surface-2); border: 2px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.split-block-header { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.split-block-header .text-input { margin-bottom: 0; flex: 1 1 auto; min-width: 0; width: auto; }
.split-remove-btn { background: none; border: none; color: var(--danger); font-size: 13px; cursor: pointer; white-space: nowrap; }
.plan-ex-row { display: grid; grid-template-columns: 1fr 52px 64px 24px 44px; gap: 6px; align-items: center; margin-bottom: 8px; }
.plan-ex-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-ex-row .text-input { margin-bottom: 0; padding: 8px; font-size: 13px; }
.plan-ex-remove { background: none; border: none; color: var(--text-dim); font-size: 15px; cursor: pointer; }
.plan-ex-reorder { display: flex; flex-direction: column; }
.plan-ex-reorder button { background: none; border: none; color: var(--text-dim); font-size: 11px; cursor: pointer; line-height: 1; }
.add-exercise-to-split-btn { background: none; border: 2px dashed var(--border); color: var(--blood-bright); border-radius: var(--radius); padding: 8px; width: 100%; font-size: 13px; cursor: pointer; margin-top: 4px; }

.entry-list-compact .entry-item { padding: 8px 12px; margin-bottom: 6px; }
.entry-list-compact .entry-title { font-size: 13px; }
.entry-list-compact .entry-sub { font-size: 12px; }
.session-group-heading { font-size: 11px; font-family: var(--font-pixel); color: var(--blood-bright); margin: 14px 0 8px; }
.session-group-heading:first-child { margin-top: 0; }

/* =========================================================
   HEADER NAV (replaces the bottom tab bar)
   ========================================================= */
.topbar { align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.hdr-btn {
  background: var(--surface); border: 2px solid var(--border); color: var(--text-dim);
  width: 38px; height: 38px; border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: color .15s, border-color .15s, transform .08s;
}
.hdr-btn:active { transform: scale(.94); }
.hdr-btn.is-active { color: var(--blood-bright); border-color: var(--blood); }
.hdr-btn.hidden { display: none; }
#hdr-trophy { color: var(--gold); border-color: #6b5320; }

/* ===== weight trend card ===== */
.trend-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 12px; cursor: pointer;
}
.trend-card:active { border-color: var(--blood); }
.trend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.trend-label { font-family: var(--font-pixel); font-size: 9px; color: var(--text-dim); letter-spacing: .06em; }
.trend-more { font-size: 12px; color: var(--text-dim); }
.trend-body { display: flex; align-items: center; gap: 14px; }
.trend-numbers { flex-shrink: 0; }
.trend-current { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.trend-delta { font-size: 12px; margin-top: 3px; color: var(--text-dim); }
.trend-delta.up { color: #ff8a5c; }
.trend-delta.down { color: #7fd4ff; }
.trend-spark { flex: 1; min-width: 0; height: 52px; }
.trend-empty { color: var(--text-dim); font-size: 13px; text-align: center; padding: 6px 0 2px; }
.trend-card.is-empty .trend-body { display: none; }
.trend-card:not(.is-empty) .trend-empty { display: none; }

/* ===== library hub ===== */
.menu-text { display: flex; flex-direction: column; gap: 2px; }
.menu-text small { color: var(--text-dim); font-size: 12px; font-weight: 400; }

/* ===== lifetime stat grid ===== */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-box {
  background: var(--surface); border: 2px solid var(--border-soft); border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.stat-val { font-family: var(--font-display); font-size: 25px; color: var(--blood-bright); line-height: 1; }
.stat-key { font-size: 11px; color: var(--text-dim); margin-top: 5px; }

/* ===== bodyweight toggle ===== */
.bw-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; margin-top: 10px; cursor: pointer; color: var(--text-dim); text-align: left;
}
.bw-toggle.on { border-color: var(--gold); color: var(--text); }
.bw-box {
  width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px;
  flex-shrink: 0; position: relative;
}
.bw-toggle.on .bw-box { background: var(--gold); border-color: var(--gold); }
.bw-toggle.on .bw-box::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #1a1002; font-size: 13px; font-weight: 900;
}
.bw-text { font-size: 13px; font-weight: 600; }
.bw-text small { display: block; font-weight: 400; font-size: 11px; color: var(--text-dim); margin-top: 1px; }

/* ===== stopwatch ===== */
.stopwatch {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-top: 12px; text-align: center;
}
.sw-display {
  font-family: var(--font-pixel); font-size: 26px; color: var(--text); margin-bottom: 12px;
  letter-spacing: .02em;
}
.sw-display.running { color: var(--blood-bright); text-shadow: 0 0 12px rgba(255,45,77,.5); }
.sw-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-pace { margin-top: 10px; font-size: 12px; color: var(--gold); font-family: var(--font-display); font-size: 16px; min-height: 18px; }
.stepper-time .big-input { font-size: 30px; }

/* ===== modality picker ===== */
.modality-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mod-opt {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px 8px; cursor: pointer; color: var(--text-dim); text-align: center;
}
.mod-opt strong { display: block; font-size: 14px; }
.mod-opt small { display: block; font-size: 11px; margin-top: 3px; }
.mod-opt.mod-active { border-color: var(--blood); color: var(--text); background: var(--surface-2); }

/* ===== history rows with copy ===== */
.history-row { gap: 8px; }
.history-main { display: flex; justify-content: space-between; align-items: center; flex: 1; min-width: 0; gap: 10px; }
.copy-btn {
  background: var(--surface-2); border: 2px solid var(--border); color: var(--text-dim);
  border-radius: 4px; padding: 6px 8px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.copy-btn:active { border-color: var(--gold); color: var(--gold); transform: scale(.92); }
.copy-btn.copied { border-color: var(--gold); color: var(--gold); animation: copyFlash .5s ease; }
@keyframes copyFlash { 0%{transform:scale(1)} 40%{transform:scale(1.16)} 100%{transform:scale(1)} }
.copy-btn .ic { width: 15px; height: 15px; }

/* modality chip on exercise rows */
.mod-chip {
  font-size: 10px; font-family: var(--font-pixel); padding: 3px 6px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  margin-left: 8px; flex-shrink: 0;
}
.mod-chip.cardio { color: #7fd4ff; border-color: #2b5c73; }

/* =========================================================
   REFINEMENT PASS — fluidity, motion, and finish
   ========================================================= */

/* sound toggle states */
#hdr-sound .ic-sound-off { display: none; }
#hdr-sound.muted .ic-sound-on { display: none; }
#hdr-sound.muted .ic-sound-off { display: block; }
#hdr-sound.muted { opacity: .55; }

/* smoother global feel */
.btn, .hdr-btn, .chip, .entry-item, .entry-item-clickable, .menu-item,
.hero-split-btn, .plan-card, .cal-cell, .copy-btn, .mod-opt, .ov-row, .ach-tile {
  transition: transform .12s cubic-bezier(.2,.8,.3,1), border-color .15s ease,
              box-shadow .15s ease, background-color .15s ease, opacity .2s ease;
}
.entry-item-clickable:active, .menu-item:active, .plan-card:active { transform: scale(.985); }
.cal-cell:active { transform: scale(.92); }

/* staggered list entrance */
.entry-list .entry-item, .menu-list .menu-item, .plan-card, .ov-row, .history-row {
  animation: riseIn .3s cubic-bezier(.2,.8,.3,1) both;
}
.entry-list .entry-item:nth-child(1), .menu-list .menu-item:nth-child(1) { animation-delay: .02s; }
.entry-list .entry-item:nth-child(2), .menu-list .menu-item:nth-child(2) { animation-delay: .06s; }
.entry-list .entry-item:nth-child(3), .menu-list .menu-item:nth-child(3) { animation-delay: .10s; }
.entry-list .entry-item:nth-child(4), .menu-list .menu-item:nth-child(4) { animation-delay: .14s; }
.entry-list .entry-item:nth-child(5), .menu-list .menu-item:nth-child(5) { animation-delay: .18s; }
.entry-list .entry-item:nth-child(n+6), .menu-list .menu-item:nth-child(n+6) { animation-delay: .22s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* achievement tiles cascade */
.ach-grid .ach-tile { animation: riseIn .34s cubic-bezier(.2,.8,.3,1) both; }
.ach-grid .ach-tile:nth-child(3n+1) { animation-delay: .03s; }
.ach-grid .ach-tile:nth-child(3n+2) { animation-delay: .08s; }
.ach-grid .ach-tile:nth-child(3n)   { animation-delay: .13s; }

/* hero splits slide in */
.hero-splits .hero-split-btn { animation: riseIn .3s cubic-bezier(.2,.8,.3,1) both; }
.hero-splits .hero-split-btn:nth-child(2) { animation-delay: .06s; }
.hero-splits .hero-split-btn:nth-child(3) { animation-delay: .12s; }

/* xp bar shimmer */
.xp-bar-fill { position: relative; overflow: hidden; }
.xp-bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 130% 0; } 55%,100% { background-position: -90% 0; } }

/* streak flame pulse when active */
.hud-chip:first-child .ic { color: var(--blood-bright); animation: flamePulse 1.8s ease-in-out infinite; }
@keyframes flamePulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.14); opacity: 1; } }

/* calendar dots pop in */
.cal-dots .dot { animation: dotPop .3s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes dotPop { from { transform: scale(0); } to { transform: scale(1); } }

/* today's cell breathing glow */
.cal-cell-today { animation: todayGlow 2.6s ease-in-out infinite; }
@keyframes todayGlow {
  0%,100% { box-shadow: 0 0 6px rgba(255,45,77,.25); }
  50%     { box-shadow: 0 0 14px rgba(255,45,77,.5); }
}

/* set badge number thump on change */
.set-badge-num { display: inline-block; animation: numThump .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes numThump { 0% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* speech bubble text swap */
.speech-bubble p { animation: lineFade .35s ease; }
@keyframes lineFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* toast slides with spring */
.toast { transition: opacity .22s ease, transform .28s cubic-bezier(.2,1.2,.4,1); }

/* modal close affordance */
.modal-close:active { transform: scale(.88) rotate(90deg); transition: transform .15s ease; }

/* inputs focus glow */
.text-input:focus, .big-input:focus {
  outline: none;
  border-color: var(--blood);
  box-shadow: 0 0 0 3px rgba(200,30,58,.15);
}
.stepper:focus-within { border-color: var(--blood); box-shadow: 0 0 0 3px rgba(200,30,58,.12); }

/* trend spark draws attention subtly */
.trend-current { transition: color .3s ease; }
.trend-card:active .trend-current { color: var(--blood-bright); }

/* stat boxes cascade + hover accent */
.stat-grid .stat-box { animation: riseIn .32s cubic-bezier(.2,.8,.3,1) both; }
.stat-grid .stat-box:nth-child(2n) { animation-delay: .05s; }
.stat-grid .stat-box:nth-child(3n) { animation-delay: .09s; }

/* rest ring entrance */
.rest-ring-wrap { animation: popIn .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* session dots smoother */
.sdot { transition: background .25s ease, transform .25s cubic-bezier(.2,1.4,.4,1), box-shadow .25s ease; }

/* scrollbars (webkit) kept minimal */
::-webkit-scrollbar { width: 0; height: 0; }

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================= friends / pairing ============================= */
.friend-tab-row { display: flex; gap: 8px; margin-bottom: 14px; }
.friend-tab-btn { flex: 1; }
.friend-tab-btn.is-active { background: var(--blood); color: #fff0f2; box-shadow: 0 3px 0 #6b0f1f; }
.friend-tab-panel.hidden { display: none; }
.my-qr-holder {
  display: flex; justify-content: center; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.my-qr-holder svg { width: 100%; max-width: 240px; height: auto; }
.scan-video {
  width: 100%; border-radius: var(--radius); background: #000; margin-bottom: 10px;
  max-height: 280px; object-fit: cover;
}
.scan-video.hidden { display: none; }
#my-code-text, #paste-code-input { font-family: var(--font-mono, monospace); font-size: 11px; resize: none; }
.friend-row-name { font-weight: 700; }
.friend-row-sub { color: var(--text-dim); font-size: 12px; }
.sync-status-row { margin-top: 10px; }
[data-sync-status] { font-weight: 700; color: var(--text-dim); }
[data-sync-status="online"] { color: var(--success, #3fb950); }
[data-sync-status="connecting"] { color: var(--gold); }
.friend-ping-btn { margin-left: 8px; flex-shrink: 0; }

/* ============================= leaderboards ============================= */
.seg-row { display: flex; gap: 8px; margin-bottom: 12px; }
.seg-btn { flex: 1; }
.seg-btn.is-active { background: var(--blood); color: #fff0f2; box-shadow: 0 3px 0 #6b0f1f; }
#lb-exercise-picker { margin-bottom: 12px; }
.lb-rank { font-family: var(--font-pixel); font-size: 12px; color: var(--gold); margin-right: 8px; }
.lb-row-me { border: 2px solid var(--blood); }
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-row .seg-btn { flex: 1; min-width: 90px; }
#resume-card .entry-item { cursor: default; }
.resume-rank { color: var(--gold); font-family: var(--font-pixel); font-size: 11px; }

/* ============================= profile modal ============================= */
.gender-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.gender-opt {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px 8px; cursor: pointer; color: var(--text-dim); text-align: center;
}
.gender-opt strong { display: block; font-size: 14px; }
.gender-opt.gender-active { border-color: var(--blood); color: var(--text); background: var(--surface-2); }

/* ============================= groups ============================= */
.group-type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.group-type-opt {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px 8px; cursor: pointer; color: var(--text-dim); text-align: center;
}
.group-type-opt strong { display: block; font-size: 14px; }
.group-type-opt small { display: block; font-size: 11px; margin-top: 3px; }
.group-type-opt.group-type-active { border-color: var(--blood); color: var(--text); background: var(--surface-2); }
.group-type-badge {
  font-size: 10px; font-family: var(--font-pixel); padding: 3px 6px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  text-transform: uppercase; margin-left: 6px;
}
.group-type-badge.group-type-snowball { color: var(--gold); border-color: #6b5320; }

/* ============================= red flag court ============================= */
.mod-member-row { flex-direction: column; align-items: stretch; gap: 8px; }
.mod-member-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-member-actions .btn { flex: 1; min-width: 100px; }

.lockout-screen {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg, #0a0612);
}
.lockout-card {
  max-width: 420px; background: var(--surface); border: 2px solid var(--danger); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
}
.lockout-card h2 { color: var(--danger); margin-bottom: 12px; }
.lockout-card p { color: var(--text-dim); margin-bottom: 12px; }
.lockout-card .btn { margin-top: 10px; }
