/* ═══════════════════════════════════════════════════════════════
   KOLF — Operator Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */

:root {
  /* Background */
  --bg-primary: #0A0A08;
  --bg-secondary: #0E0E0A;
  --bg-tertiary: #1A1A14;
  --bg-input: #1A1A14;
  --bg-overlay: rgba(0, 0, 0, 0.75);

  /* Border */
  --border-default: #1A1A14;
  --border-subtle: #14140F;
  --border-emphasis: #2A2A1E;

  /* Text */
  --text-primary: #C8C0A8;
  --text-heading: #F1F5F0;
  --text-secondary: #7A7A5E;
  --text-muted: #5A5A40;
  --text-ghost: #8A8A6A;

  /* Gold accent */
  --gold-50: #D4A84508;
  --gold-100: #D4A84518;
  --gold-200: #D4A84533;
  --gold-400: #D4A845;
  --gold-600: #B8942E;
  --gold-800: #8A7020;

  /* Semantic */
  --success: #8AAA3B;
  --success-bg: #8AAA3B18;
  --danger: #AA3B3B;
  --danger-bg: #AA3B3B18;
  --info: #6B8FD4;
  --info-bg: #6B8FD418;
  --warning: #D4A845;
  --purple: #B07ED4;
  --purple-bg: #B07ED418;
  --coral: #D47B6B;
  --coral-bg: #D47B6B18;

  /* Scoring ring colors */
  --ring-gold: #D4A845;
  --ring-olive: #B8A040;
  --ring-dark-olive: #8A8030;
  --ring-muted: #5A6020;
  --ring-dim: #3A4018;
  --ring-miss: #AA3B3B;

  /* Spacing (base: 4px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  /* Shadows */
  --cta-glow: 0 4px 24px rgba(212, 168, 69, 0.25);

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 220ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  /* Fonts */
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}


/* ── Reset & Base ── */

[x-cloak] { display: none !important; }

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

body.kolf-app {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── Typography ── */

.display-xl { font-family: var(--font-display); font-size: 48px; letter-spacing: 3px; color: var(--text-heading); line-height: 1; }
.display-lg { font-family: var(--font-display); font-size: 36px; letter-spacing: 2px; color: var(--text-heading); line-height: 1; }
.display-md { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--text-heading); line-height: 1.1; }
.display-sm { font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; color: var(--text-primary); line-height: 1.1; }
.display-xs { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; color: var(--text-primary); line-height: 1.2; }

.body-lg { font-family: var(--font-mono); font-size: 14px; font-weight: 400; }
.body-md { font-family: var(--font-mono); font-size: 12px; font-weight: 400; }
.body-sm { font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.body-xs { font-family: var(--font-mono); font-size: 10px; font-weight: 400; }

.label-lg { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.label-md { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.label-sm { font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.label-xs { font-family: var(--font-mono); font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

.text-gold { color: var(--gold-400); }
.text-heading { color: var(--text-heading); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-ghost { color: var(--text-ghost); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }


/* ── Layout ── */

.kolf-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) 80px;
  min-height: 100vh;
}

.kolf-screen-wide {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) 80px;
  min-height: 100vh;
}


/* ── Top Bar ── */

.top-bar {
  display: flex;
  align-items: center;
  height: 52px;
  border-bottom: 1px solid var(--border-default);
  margin: 0 calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
  margin-bottom: var(--space-3);
}

.top-bar__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 20px;
  transition: color var(--duration-fast) var(--ease-out);
}

.top-bar__back:hover { color: var(--text-primary); }

.top-bar__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text-heading);
}

.top-bar__action {
  width: 36px;
  height: 36px;
}


/* ── Bottom Nav ── */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-4);
  z-index: 100;
}

.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  opacity: 0.95;
  z-index: -1;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-ghost);
  transition: color var(--duration-fast) var(--ease-out);
}

.bottom-nav__item:hover,
.bottom-nav__item--active {
  color: var(--gold-400);
}

.bottom-nav__icon { font-size: 20px; line-height: 1; }
.bottom-nav__label { font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.bottom-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold-400);
  font-size: 28px;
  text-decoration: none;
  line-height: 1;
}


/* ── Cards ── */

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.card--elevated {
  background: var(--bg-tertiary);
}

.card--rounded {
  border-radius: 16px;
}

/* Avatar/meta row at the top of a card: flex row, centered, gap. */
.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* Fixed-width centered column for a label + value stat (session detail). */
.stat-column {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
}

/* Single-line text clipping (list rows, author names). */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Corner marks */
.card--marked {
  position: relative;
  border-radius: 16px;
  padding: 20px;
}

.card--marked::before,
.card--marked::after,
.card--marked .corner-bl::before,
.card--marked .corner-br::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold-400);
  border-style: solid;
}

.card--marked::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.card--marked::after {
  top: -1px; right: -1px;
  border-width: 2px 2px 0 0;
}
.card--marked .corner-bl::before {
  bottom: -1px; left: -1px;
  border-width: 0 0 2px 2px;
}
.card--marked .corner-br::before {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}


/* ── Tags / Badges ── */

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tag--gold {
  background: var(--gold-100);
  color: var(--gold-400);
}

.tag--muted {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.tag--success {
  background: var(--success-bg);
  color: var(--success);
}

.tag--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.tag--info {
  background: var(--info-bg);
  color: var(--info);
}


/* ── Buttons ── */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 4px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--cta-glow);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(212, 168, 69, 0.35);
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-emphasis);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-finish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  background: linear-gradient(135deg, #16A34A, #22C55E);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(34, 197, 94, 0.25);
  transition: transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-finish:hover { transform: translateY(-1px); }
.btn-finish:active { transform: scale(0.98); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  background: var(--danger);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}

.btn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  background: var(--info-bg);
  color: var(--info);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(107, 143, 212, 0.27);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}

[disabled], .disabled {
  opacity: 0.4;
  pointer-events: none;
}


/* ── Form Inputs ── */

.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-emphasis);
  border-radius: var(--radius-lg);
  color: var(--text-heading);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.input:focus {
  border-color: var(--gold-400);
}

.input::placeholder {
  color: var(--text-ghost);
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235A5A40'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}


/* ── Filter Chips ── */

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: var(--space-3);
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-emphasis);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.chip:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.chip--active {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--bg-primary);
}


/* ── Drill Card Grid ── */

.drill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drill-card {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.drill-card:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-2px);
}

.drill-card--selected {
  border-color: var(--gold-400);
}

.drill-card__icon { font-size: 28px; margin-bottom: 6px; }
.drill-card__name { font-size: 12px; font-weight: 700; color: var(--text-heading); }
.drill-card__desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.drill-card__category { margin-top: 8px; }


/* ── Shot Buttons ── */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.shot-grid--two { grid-template-columns: repeat(2, 1fr); }

.shot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 4px;
  border-radius: var(--radius-lg);
  border: 2px solid;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--duration-fast) var(--ease-out);
}

.shot-btn:active {
  transform: scale(0.92);
}

.shot-btn__score {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.shot-btn__label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 2px;
}


/* ── Distribution Bars ── */

.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dist-row + .dist-row { margin-top: 5px; }

.dist-label {
  width: 48px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.dist-track {
  flex: 1;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 5px;
  overflow: hidden;
}

.dist-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 300ms ease;
  min-width: 0;
}

.dist-count {
  width: 28px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}


/* ── Stat Block ── */

.stat-grid {
  display: grid;
  gap: 8px;
}

.stat-grid--2x2 { grid-template-columns: repeat(2, 1fr); }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }

.stat-block {
  text-align: center;
  padding: var(--space-2);
}

.stat-block__label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-ghost);
}

.stat-block__value {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-top: 2px;
}

.stat-block__value--gold {
  color: var(--gold-400);
}

.stat-block__value--sm {
  font-size: 18px;
}


/* ── Score Ring (CSS-only) ── */

.score-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring svg {
  transform: rotate(-90deg);
}

.score-ring__track {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 7;
}

.score-ring__fill {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms ease;
}

.score-ring__center {
  position: absolute;
  text-align: center;
}


/* ── Shot Chips (detail page) ── */

.shot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shot-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}


/* ── Shot Strip ── */

.shot-strip {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.shot-strip__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-ghost);
  margin-bottom: 8px;
}

.shot-strip__bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 48px;
}

.shot-strip__bar {
  flex: 1;
  min-height: 4px;
  border-radius: 2px;
  transition: height var(--duration-normal) var(--ease-out);
}


/* ── Progress Bar ── */

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--warning));
  border-radius: 3px;
  transition: width 300ms ease;
}


/* ── Session Card (list) ── */

.session-row {
  display: block;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out);
}

.session-row:hover {
  background: var(--bg-secondary);
}

.session-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.session-row__drill {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--text-heading);
}

.session-row__score {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--gold-400);
}

.session-row__meta {
  display: flex;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: 10px;
}


/* ── Section Headers ── */

.section-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-400);
  margin-bottom: 10px;
  margin-top: var(--space-6);
}


/* ── Modal ── */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-box {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 360px;
  width: calc(100% - 32px);
}

.modal-box__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.modal-box__body {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: var(--space-4);
}

.modal-box__actions {
  display: flex;
  gap: 10px;
}

.modal-box__actions > * {
  flex: 1;
}


/* ── Toggle Switch ── */

.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--border-emphasis);
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  border: none;
  padding: 0;
}

.toggle--active {
  background: var(--gold-400);
}

.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease-out);
}

.toggle--active .toggle__thumb {
  transform: translateX(20px);
}


/* ── Preset Buttons ── */

.preset-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-emphasis);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.preset--active {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--bg-primary);
}


/* ── Unit Toggle ── */

.unit-toggle {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-emphasis);
}

.unit-toggle__option {
  padding: 10px 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast) var(--ease-out);
}

.unit-toggle__option--active {
  background: var(--gold-400);
  color: var(--bg-primary);
}


/* ── Form Layout ── */

.form-group {
  margin-bottom: 18px;
}

.form-group__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.form-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}


/* ── Timer Display ── */

.timer-display {
  text-align: center;
  padding: var(--space-3) 0;
}

.timer-display__score {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--text-heading);
  letter-spacing: 3px;
  line-height: 1;
}

.timer-display__meta {
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: var(--space-1);
}


/* ── Action Bar (recording bottom) ── */

.action-bar {
  display: flex;
  gap: 10px;
  margin-top: var(--space-4);
}

.action-bar > * {
  flex: 1;
}

.action-bar > .btn-finish {
  flex: 1.5;
}


/* ── Timing card splits ── */

.timing-card .split-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.timing-card .split-row__num {
  font-family: var(--font-mono);
  color: var(--text-ghost);
  font-size: 12px;
  min-width: 32px;
}

.timing-card .split-row__input {
  flex: 1;
}


/* ── Empty State ── */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--text-ghost);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.empty-state__text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}


/* ── Pagination ── */

.pagination-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
}


/* ── Animations ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp var(--duration-normal) var(--ease-out) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
