/**
 * Shot Timer v2 — namespaced styles
 *
 * All selectors are scoped under `.shottimer-v2-root` (the wrapper mounted
 * by competition-timer-ui.js into #screen-shottimer) so the prototype's
 * generic class names (.nav-item, .modal-overlay, .segment, .filter-btn,
 * etc.) cannot leak into the rest of the app's CSS.
 *
 * Ported from prototypes/shot-timer-v2-app-preview/index.html (2026-06-01).
 * Layout token names match the prototype 1:1; the prototype used :root vars
 * which we localise here under the scope to avoid clobbering global theming.
 */

.shottimer-v2-root {
  --st-bg-primary: #0a0a0a;
  --st-bg-secondary: #141414;
  --st-bg-tertiary: #1a1a1a;
  --st-bg-elevated: #222222;
  --st-text-primary: #ffffff;
  --st-text-secondary: #8a8a8a;
  --st-text-tertiary: #5a5a5a;
  --st-accent: #c8c8c8;
  --st-accent-dim: rgba(255, 255, 255, 0.10);
  --st-success: #00c853;
  --st-warning: #ffab00;
  --st-danger: #ff5252;
  --st-border: #2a2a2a;
  --st-border-subtle: #1a1a1a;

  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 70vh;
  background: var(--st-bg-primary);
  color: var(--st-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.shottimer-v2-root *,
.shottimer-v2-root *::before,
.shottimer-v2-root *::after {
  box-sizing: border-box;
}

.shottimer-v2-root .st-nav-bar {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  border-bottom: 1px solid var(--st-border);
  background: var(--st-bg-secondary);
  flex-shrink: 0;
}

.shottimer-v2-root .st-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 12px;
  color: var(--st-text-secondary);
  background: transparent;
  border: none;
  font: inherit;
}

.shottimer-v2-root .st-nav-item:hover { background: var(--st-bg-tertiary); }
.shottimer-v2-root .st-nav-item.active { color: var(--st-accent); }
.shottimer-v2-root .st-nav-label { font-size: 11px; font-weight: 600; color: var(--st-text-secondary); letter-spacing: 0.5px; }
.shottimer-v2-root .st-nav-item.active .st-nav-label { color: var(--st-accent); }

.shottimer-v2-root .st-screen-container { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; min-height: 0; }
.shottimer-v2-root .st-screen { display: none; min-height: 100%; padding: 16px; }
.shottimer-v2-root .st-screen.active { display: flex; flex-direction: column; }

/* Timer screen */
.shottimer-v2-root .st-timer-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.shottimer-v2-root .st-timer-main {
  font-size: 96px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
}

.shottimer-v2-root .st-timer-main.running { color: var(--st-accent); }
.shottimer-v2-root .st-timer-main.stopped { color: var(--st-text-primary); }
.shottimer-v2-root .st-timer-main.par-missed { color: var(--st-danger); }
.shottimer-v2-root .st-timer-main.par-made { color: var(--st-success); }

.shottimer-v2-root .st-timer-par-indicator {
  font-size: 14px;
  color: var(--st-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shottimer-v2-root .st-timer-par-value { color: var(--st-accent); font-weight: 600; }

.shottimer-v2-root .st-splits-container {
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shottimer-v2-root .st-split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--st-bg-tertiary);
  border-radius: 10px;
  font-size: 14px;
}

.shottimer-v2-root .st-split-row.slowest { border-left: 3px solid var(--st-warning); }
.shottimer-v2-root .st-split-row.fastest { border-left: 3px solid var(--st-success); }

.shottimer-v2-root .st-split-shot { color: var(--st-text-secondary); font-weight: 500; }
.shottimer-v2-root .st-split-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.shottimer-v2-root .st-split-diff { font-size: 12px; color: var(--st-text-tertiary); }

.shottimer-v2-root .st-reaction-time {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--st-accent-dim);
  border-radius: 20px;
  font-size: 13px;
}

.shottimer-v2-root .st-reaction-label { color: var(--st-text-secondary); }
.shottimer-v2-root .st-reaction-value { color: var(--st-accent); font-weight: 600; }

.shottimer-v2-root .st-big-tap-container { height: 180px; padding: 16px; flex-shrink: 0; }

.shottimer-v2-root .st-big-tap-button {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 24px;
  background: linear-gradient(145deg, #00e676, #00a73d);
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,200,83,0.40);
}

.shottimer-v2-root .st-big-tap-button:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(0,200,83,0.25); }
.shottimer-v2-root .st-big-tap-button:disabled { background: var(--st-bg-elevated); color: var(--st-text-tertiary); box-shadow: none; cursor: not-allowed; }
.shottimer-v2-root .st-big-tap-button.drill-active { background: linear-gradient(145deg, #00e676, #00a73d); color: #ffffff; box-shadow: 0 8px 32px rgba(0,200,83,0.40); }
.shottimer-v2-root .st-big-tap-button.countdown { background: var(--st-warning); box-shadow: 0 8px 32px rgba(255,171,0,0.3); color: var(--st-bg-primary); }
.shottimer-v2-root .st-big-tap-button.running { background: var(--st-danger); box-shadow: 0 8px 32px rgba(255,82,82,0.3); color: var(--st-bg-primary); }

.shottimer-v2-root .st-shooter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--st-bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.shottimer-v2-root .st-shooter-label { font-size: 10px; color: var(--st-text-tertiary); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; flex-shrink: 0; }
.shottimer-v2-root .st-shooter-input { flex: 1; background: transparent; border: none; color: var(--st-text-primary); font-size: 15px; font-weight: 600; outline: none; padding: 4px 0; }
.shottimer-v2-root .st-shooter-input::placeholder { color: var(--st-text-tertiary); font-weight: 400; }

.shottimer-v2-root .st-drill-banner {
  background: var(--st-bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shottimer-v2-root .st-drill-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shottimer-v2-root .st-drill-banner-label {
  font-size: 10px;
  color: var(--st-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.shottimer-v2-root .st-drill-banner-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--st-text-primary);
  line-height: 1.1;
}
.shottimer-v2-root .st-drill-banner-clear {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--st-text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.shottimer-v2-root .st-drill-banner-clear:active { background: rgba(255,255,255,0.06); }
.shottimer-v2-root .st-drill-banner-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--st-text-secondary);
}
.shottimer-v2-root .st-drill-banner-meta strong {
  color: var(--st-text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shottimer-v2-root .st-countdown-number { font-size: 72px; font-weight: 200; }

.shottimer-v2-root .st-settings-panel { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.shottimer-v2-root .st-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--st-bg-tertiary);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.shottimer-v2-root .st-setting-label { font-size: 15px; color: var(--st-text-primary); }
.shottimer-v2-root .st-setting-control { display: flex; align-items: center; gap: 12px; }

.shottimer-v2-root .st-segmented-control { display: flex; background: var(--st-bg-primary); border-radius: 8px; padding: 2px; }
.shottimer-v2-root .st-segment { padding: 6px 14px; font-size: 13px; border-radius: 6px; cursor: pointer; transition: all 0.2s; color: var(--st-text-secondary); }
.shottimer-v2-root .st-segment.active { background: var(--st-bg-elevated); color: var(--st-text-primary); }

.shottimer-v2-root .st-par-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.shottimer-v2-root .st-par-chip { padding: 6px 12px; border-radius: 16px; font-size: 13px; background: var(--st-bg-primary); color: var(--st-text-secondary); cursor: pointer; transition: all 0.2s; }
.shottimer-v2-root .st-par-chip.active { background: var(--st-accent); color: var(--st-bg-primary); }

/* History + Charts merged tab */
.shottimer-v2-root .st-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.shottimer-v2-root .st-history-title { font-size: 20px; font-weight: 600; }
.shottimer-v2-root .st-history-filters { display: flex; gap: 8px; }

.shottimer-v2-root .st-filter-btn {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: var(--st-bg-tertiary);
  color: var(--st-text-secondary);
  border: none;
  cursor: pointer;
}

.shottimer-v2-root .st-filter-btn.active { background: var(--st-accent); color: var(--st-bg-primary); }

.shottimer-v2-root .st-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--st-text-tertiary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 18px 0 10px;
}

.shottimer-v2-root .st-section-label:first-child { margin-top: 0; }

/* Per-drill chart card */
.shottimer-v2-root .st-drill-chart-card {
  background: var(--st-bg-tertiary);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.shottimer-v2-root .st-drill-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 8px;
}

.shottimer-v2-root .st-drill-chart-name { font-size: 14px; font-weight: 600; color: var(--st-text-primary); }
.shottimer-v2-root .st-drill-chart-best { font-size: 13px; color: var(--st-accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.shottimer-v2-root .st-drill-chart-best .label { color: var(--st-text-tertiary); font-weight: 500; margin-right: 4px; }

.shottimer-v2-root .st-drill-chart-svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* same footprint as the chart svg so cards don't change height */
.shottimer-v2-root .st-drill-chart-single {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--st-text-tertiary);
}

.shottimer-v2-root .st-drill-chart-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--st-text-tertiary);
  margin-top: 6px;
}

.shottimer-v2-root .st-drill-chart-empty {
  font-size: 12px;
  color: var(--st-text-tertiary);
  padding: 10px 0;
  text-align: center;
}

.shottimer-v2-root .st-drill-chart-sub-label {
  font-size: 10px;
  color: var(--st-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 14px 0 6px;
}
.shottimer-v2-root .st-drill-chart-leaderboard { display: flex; flex-direction: column; gap: 4px; }
.shottimer-v2-root .st-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 4px 0;
}
.shottimer-v2-root .st-lb-row .st-lb-rank {
  color: var(--st-text-tertiary);
  width: 22px;
  font-weight: 600;
}
.shottimer-v2-root .st-lb-row .st-lb-name {
  flex: 1;
  color: var(--st-text-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shottimer-v2-root .st-lb-row .st-lb-name.st-lb-name-empty { color: var(--st-text-tertiary); font-weight: 400; font-style: italic; }
.shottimer-v2-root .st-lb-row .st-lb-time { color: var(--st-text-primary); font-weight: 700; }
.shottimer-v2-root .st-lb-row .st-lb-date {
  color: var(--st-text-tertiary);
  font-size: 12px;
  min-width: 52px;
  text-align: right;
}
.shottimer-v2-root .st-lb-row.st-lb-best .st-lb-rank { color: var(--st-text-primary); }
.shottimer-v2-root .st-lb-row.st-lb-best .st-lb-time { color: #fff; }
.shottimer-v2-root .st-lb-row.st-lb-best .st-lb-name { color: #fff; }

.shottimer-v2-root .st-history-list { display: flex; flex-direction: column; gap: 8px; }

.shottimer-v2-root .st-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--st-bg-tertiary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.shottimer-v2-root .st-history-item:hover { background: var(--st-bg-elevated); }
.shottimer-v2-root .st-history-item:active { transform: scale(0.99); }
.shottimer-v2-root .st-history-item.par-made { border-left: 3px solid var(--st-success); }
.shottimer-v2-root .st-history-item.par-missed { border-left: 3px solid var(--st-danger); }

.shottimer-v2-root .st-history-date { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.shottimer-v2-root .st-history-day { font-size: 20px; font-weight: 600; line-height: 1; }
.shottimer-v2-root .st-history-month { font-size: 10px; text-transform: uppercase; color: var(--st-text-tertiary); }
.shottimer-v2-root .st-history-details { flex: 1; min-width: 0; }
.shottimer-v2-root .st-history-tag { font-size: 13px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shottimer-v2-root .st-history-meta { font-size: 11px; color: var(--st-text-tertiary); }
.shottimer-v2-root .st-history-time { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--st-accent); }
.shottimer-v2-root .st-history-actions { display: flex; gap: 8px; }

.shottimer-v2-root .st-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--st-bg-primary);
  color: var(--st-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Drills (full-width info cards) */
.shottimer-v2-root .st-drills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shottimer-v2-root .st-drill-card {
  background: var(--st-bg-tertiary);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-left: 3px solid transparent;
}

.shottimer-v2-root .st-drill-card:hover { background: var(--st-bg-elevated); border-left-color: var(--st-accent); }
.shottimer-v2-root .st-drill-card:active { transform: scale(0.99); }

.shottimer-v2-root .st-drill-card.favorite::after {
  content: '★';
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--st-warning);
  font-size: 14px;
}

.shottimer-v2-root .st-drill-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  padding-right: 18px;
}

.shottimer-v2-root .st-drill-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--st-text-primary);
  line-height: 1.2;
}

.shottimer-v2-root .st-drill-par {
  flex-shrink: 0;
  padding: 3px 10px;
  background: var(--st-accent-dim);
  color: var(--st-accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.shottimer-v2-root .st-drill-description {
  font-size: 13px;
  color: var(--st-text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.shottimer-v2-root .st-drill-block {
  font-size: 12px;
  color: var(--st-text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.shottimer-v2-root .st-drill-block:last-child { margin-bottom: 0; }
.shottimer-v2-root .st-drill-block .label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--st-text-tertiary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.shottimer-v2-root .st-drill-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--st-border-subtle);
  font-size: 12px;
}

.shottimer-v2-root .st-drill-stats .shots { color: var(--st-text-tertiary); font-weight: 500; letter-spacing: 0.5px; }
.shottimer-v2-root .st-drill-stats .start-hint { color: var(--st-accent); font-weight: 600; letter-spacing: 0.5px; }

.shottimer-v2-root .st-custom-drill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--st-bg-tertiary);
  border: 2px dashed var(--st-border);
  border-radius: 16px;
  color: var(--st-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.shottimer-v2-root .st-custom-drill-btn:hover { border-color: var(--st-accent); color: var(--st-accent); }

/* Export */
.shottimer-v2-root .st-export-config { background: var(--st-bg-tertiary); border-radius: 16px; padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; }
.shottimer-v2-root .st-export-config-section { display: flex; flex-direction: column; gap: 8px; }
.shottimer-v2-root .st-export-config-label { font-size: 10px; color: var(--st-text-tertiary); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.shottimer-v2-root .st-export-select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--st-bg-elevated); color: var(--st-text-primary); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.shottimer-v2-root .st-export-mode-list { display: flex; flex-direction: column; gap: 6px; }
.shottimer-v2-root .st-export-mode-row { display: flex; align-items: center; gap: 10px; background: var(--st-bg-elevated); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--st-text-primary); }
.shottimer-v2-root .st-export-mode-row input[type="radio"] { accent-color: var(--st-text-primary); width: 16px; height: 16px; flex-shrink: 0; }
.shottimer-v2-root .st-export-mode-row span { font-weight: 600; }

.shottimer-v2-root .st-export-options { display: flex; flex-direction: column; gap: 12px; }
.shottimer-v2-root .st-export-card { background: var(--st-bg-tertiary); border-radius: 16px; padding: 20px; cursor: pointer; transition: all 0.2s; }
.shottimer-v2-root .st-export-card:hover { background: var(--st-bg-elevated); }
.shottimer-v2-root .st-export-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.shottimer-v2-root .st-export-title { font-size: 16px; font-weight: 600; }
.shottimer-v2-root .st-export-desc { font-size: 13px; color: var(--st-text-secondary); }

.shottimer-v2-root .st-export-preview {
  background: var(--st-bg-primary);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  color: var(--st-text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

/* In-timer modal (scoped, separate from app-level modal) */
.shottimer-v2-root .st-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.shottimer-v2-root .st-modal-overlay.active { display: flex; }

.shottimer-v2-root .st-modal-content {
  background: var(--st-bg-secondary);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
}

.shottimer-v2-root .st-modal-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.shottimer-v2-root .st-modal-body { font-size: 14px; color: var(--st-text-secondary); line-height: 1.5; margin-bottom: 20px; white-space: pre-wrap; }
.shottimer-v2-root .st-modal-actions { display: flex; gap: 12px; }

.shottimer-v2-root .st-modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.shottimer-v2-root .st-modal-btn.primary { background: var(--st-accent); color: var(--st-bg-primary); }
.shottimer-v2-root .st-modal-btn.secondary { background: var(--st-bg-tertiary); color: var(--st-text-primary); }

.shottimer-v2-root .st-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.shottimer-v2-root .st-form-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--st-text-secondary); }
.shottimer-v2-root .st-form-hint { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--st-text-tertiary); margin-left: 4px; }
.shottimer-v2-root .st-form-input {
  background: var(--st-bg-tertiary);
  border: 1px solid var(--st-accent-dim);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--st-text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.shottimer-v2-root .st-form-input:focus { border-color: var(--st-accent); }
.shottimer-v2-root .st-form-textarea { resize: vertical; min-height: 60px; line-height: 1.4; }
.shottimer-v2-root .st-modal-error { color: var(--st-danger); font-size: 12px; min-height: 14px; }

.shottimer-v2-root .st-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--st-text-tertiary);
  text-align: center;
  padding: 40px;
}

.shottimer-v2-root .st-empty-title { font-size: 16px; font-weight: 600; color: var(--st-text-secondary); }
.shottimer-v2-root .st-empty-desc { font-size: 13px; }

/* Welcome overlay (in-timer, scoped) */
.shottimer-v2-root .st-welcome-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 24px;
}
.shottimer-v2-root .st-welcome-overlay.show { display: flex; }
.shottimer-v2-root .st-welcome-card {
  background: var(--st-bg-secondary);
  border: 1px solid var(--st-border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.shottimer-v2-root .st-welcome-logo { font-size: 56px; line-height: 1; margin-bottom: 12px; }
.shottimer-v2-root .st-welcome-title { font-size: 22px; font-weight: 700; color: var(--st-text-primary); margin-bottom: 4px; letter-spacing: -0.5px; }
.shottimer-v2-root .st-welcome-subtitle { font-size: 13px; color: var(--st-text-secondary); margin-bottom: 20px; }
.shottimer-v2-root .st-welcome-points { list-style: none; text-align: left; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shottimer-v2-root .st-welcome-points li { font-size: 14px; line-height: 1.5; color: var(--st-text-secondary); padding-left: 18px; position: relative; }
.shottimer-v2-root .st-welcome-points li::before { content: '•'; position: absolute; left: 4px; color: var(--st-success); }
.shottimer-v2-root .st-welcome-points strong { color: var(--st-text-primary); font-weight: 600; }
.shottimer-v2-root .st-welcome-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #00e676, #00a73d);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,200,83,0.30);
}
.shottimer-v2-root .st-welcome-btn:active { transform: scale(0.98); }
.shottimer-v2-root .st-welcome-foot { margin-top: 14px; font-size: 11px; color: var(--st-text-tertiary); }

/* Sensitivity slider */
.shottimer-v2-root .st-sensitivity-row { display: flex; flex-direction: column; gap: 6px; }
.shottimer-v2-root .st-sensitivity-head { display: flex; justify-content: space-between; align-items: center; }
.shottimer-v2-root .st-sensitivity-head .st-setting-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--st-text-secondary); }
.shottimer-v2-root .st-sensitivity-value { font-size: 12px; font-weight: 700; color: var(--st-text-primary); font-variant-numeric: tabular-nums; }
.shottimer-v2-root .st-sensitivity-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--st-border);
  border-radius: 2px;
  outline: none;
}
.shottimer-v2-root .st-sensitivity-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--st-text-primary);
  border-radius: 50%;
  cursor: pointer;
}
.shottimer-v2-root .st-sensitivity-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--st-text-primary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.shottimer-v2-root .st-sensitivity-foot { font-size: 11px; color: var(--st-text-tertiary); margin-top: 2px; }

/* Mic permission banner */
.shottimer-v2-root .st-mic-warning {
  display: none;
  background: rgba(255,82,82,0.10);
  border: 1px solid rgba(255,82,82,0.30);
  color: var(--st-danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.shottimer-v2-root .st-mic-warning.show { display: block; }
.shottimer-v2-root .st-mic-warning strong { color: #ff8a8a; }

/* Live volume meter */
.shottimer-v2-root .st-volume-meter {
  display: none;
  height: 4px;
  background: var(--st-border-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.shottimer-v2-root .st-volume-meter.show { display: block; }
.shottimer-v2-root .st-volume-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--st-success) 0%, var(--st-warning) 70%, var(--st-danger) 100%);
  transition: width 60ms linear;
}
