.page { padding: 40px 20px; max-width: 900px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 24px; font-size: 14px; }

.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid #222;
  margin-bottom: 28px;
}
.tab {
  padding: 10px 18px; background: transparent; border: none; color: #888;
  font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: #ddd; }
.tab.active { color: #ff4444; border-bottom-color: #ff4444; }

.panel { display: none; }
.panel.active { display: block; }

.ring-wrap {
  position: relative; width: 280px; height: 280px; margin: 0 auto 24px;
}
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #1f1f1f; stroke-width: 8; }
.ring-fg {
  fill: none; stroke: #ff4444; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 578;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.2s linear;
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.phase-label {
  color: #888; font-size: 13px; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 6px;
}
.time {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 48px; font-weight: 700; color: #fff; letter-spacing: 2px;
}
.session-label { color: #666; font-size: 12px; margin-top: 8px; font-family: 'SF Mono', Monaco, monospace; }

.stop-time {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 72px; font-weight: 700; color: #fff;
  text-align: center; margin: 40px 0; letter-spacing: 2px;
}

.ctrl-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}
.ctrl-row .btn {
  padding: 10px 22px; background: #141414; border: 1px solid #2a2a2a;
  color: #ccc; border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.ctrl-row .btn:hover { border-color: #ff4444; color: #fff; }
.ctrl-row .btn-primary {
  background: #cc0000; border-color: #cc0000; color: #fff;
}
.ctrl-row .btn-primary:hover { background: #ff1a1a; border-color: #ff1a1a; }

.opts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  background: #141414; border: 1px solid #262626;
  padding: 16px; border-radius: 10px;
}
.opts label {
  display: flex; flex-direction: column; gap: 4px;
  color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.opts input {
  width: 80px; background: #0d0d0d; border: 1px solid #2a2a2a;
  color: #fff; border-radius: 6px; padding: 8px 10px; font-size: 14px;
  font-family: inherit; outline: none;
}
.opts input[type=text] { width: 120px; }
.opts input:focus { border-color: #ff4444; }

.laps {
  max-width: 500px; margin: 20px auto 0;
  background: #0d0d0d; border: 1px solid #262626; border-radius: 10px;
  max-height: 280px; overflow-y: auto;
}
.lap-row {
  display: grid; grid-template-columns: 60px 1fr 1fr; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid #1a1a1a;
  font-family: 'SF Mono', Monaco, monospace; font-size: 13px; color: #ccc;
}
.lap-row:last-child { border-bottom: none; }
.lap-num { color: #888; }
.lap-total { color: #666; text-align: right; }

@media (max-width: 800px) {
  .stop-time { font-size: 54px; }
  .time { font-size: 38px; }
  .ring-wrap { width: 240px; height: 240px; }
}
