:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-contrast: #ffffff;
  --primary-rgb: 37, 99, 235;
  --primary-light: #7dd3fc;
  --primary-dark: #1e3a8a;
  --btn-grad-start: #1d4ed8;
  --btn-grad-end: #38bdf8;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --warning: #eab308;
  --warning-soft: #fef9c3;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, .10);
  --transition: 200ms ease;
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #172033;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-contrast: #052e13;
  --primary-rgb: 59, 130, 246;
  --primary-light: #7dd3fc;
  --primary-dark: #1e40af;
  --btn-grad-start: #3b82f6;
  --btn-grad-end: #38bdf8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, .16);
  --warning: #eab308;
  --warning-soft: rgba(234, 179, 8, .16);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background var(--transition), color var(--transition);
}

body { -webkit-tap-highlight-color: transparent; }

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 4px;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(180deg, #03a6d1, #014ca5);
  -webkit-background-clip: text;
  background-clip: text;
  color: #014ca5;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.subtitle-break { display: none; }

/* Force "T gym energy!" onto its own line on mobile instead of letting it
   wrap mid-phrase (e.g. splitting after "T gym" with "energy!" alone). */
@media (max-width: 480px) {
  .subtitle-break { display: inline; }
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.icon-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1 1 0;
  white-space: nowrap;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Cards / Panels */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

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

.card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.hint {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.field { margin-bottom: 18px; }
.field-row { display: flex; gap: 14px; margin-bottom: 18px; }
.field-row .field { flex: 1; margin-bottom: 0; }

.field label,
.field legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  padding: 0;
}

.field-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin: 6px 0 0;
}

input[type="number"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition);
}
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea { resize: vertical; }

/* Stepper (+/-) for numeric fields */
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color var(--transition);
}
.stepper:focus-within { border-color: var(--primary); }

.stepper input[type="number"] {
  flex: 1;
  min-width: 0;
  text-align: center;
  border: none;
  border-radius: 0;
  background: transparent;
  -moz-appearance: textfield;
}
.stepper input[type="number"]:focus { border-color: transparent; }
.stepper input[type="number"]::-webkit-inner-spin-button,
.stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-btn {
  flex-shrink: 0;
  width: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}
.stepper-btn:first-child { border-right: 1px solid var(--border); }
.stepper-btn:last-child { border-left: 1px solid var(--border); }
.stepper-btn:hover { background: var(--border); }
.stepper-btn:disabled { opacity: .35; cursor: not-allowed; background: transparent; }

.toggle-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toggle-field input[type="checkbox"] { width: 18px; height: 18px; }

/* Quick Setup: compact preset chips (EMOM / HIIT / Tabata) -- deliberately
   no explanatory copy, just three rows of 4 pills that fill in Seturi/
   Repetari/Timp lucru/Timp pauza/Timp incalzire. A single grid (with each
   group and its chip wrapper flattened via display:contents) puts every
   row's label in column 1 and its four chips in columns 2-5, so e.g.
   "30/30" lines up exactly under "10 rep" and above "2 set" -- fixed
   columns give that alignment regardless of each chip's own text length. */
.quick-setup { margin-bottom: 22px; }

.preset-grid {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  column-gap: 6px;
  row-gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.preset-group { display: contents; }
.preset-chips { display: contents; }

.preset-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.preset-chip {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.preset-chip:hover { border-color: var(--primary); color: var(--primary); }
.preset-chip:active { transform: scale(0.96); }

@media (max-width: 480px) {
  .preset-grid { column-gap: 4px; row-gap: 5px; }
  .preset-group-label { font-size: 11px; }
  .preset-chip { padding: 4px 5px; font-size: 10.5px; }
}

/* Collapsible "Configurare" section (default minimized) */
.config-details {
  margin-bottom: 18px;
}

.config-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  user-select: none;
}
.config-summary::-webkit-details-marker { display: none; }

.config-summary::after {
  content: '▾';
  font-size: 14px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.config-details[open] .config-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.config-details[open] .config-summary::after {
  transform: rotate(180deg);
}

.config-fields {
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 18px 16px 4px;
}
.config-fields .field:last-child,
.config-fields .field-row:last-child { margin-bottom: 0; }

/* Custom Interval: editable list of intervals with their own duration */
.interval-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.interval-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color var(--transition);
}
.interval-row.is-rest { border-left-color: var(--warning); }

.interval-name {
  flex: 1 1 120px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.interval-duration-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.interval-duration {
  width: 48px;
  padding: 9px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  -moz-appearance: textfield;
}
.interval-duration::-webkit-inner-spin-button,
.interval-duration::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.interval-duration-unit { color: var(--text-muted); font-size: 13px; }

.interval-rest-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.interval-rest-toggle input { width: 16px; height: 16px; }

.interval-row-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.interval-move,
.interval-remove {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.interval-move:hover { background: var(--accent-soft); color: var(--accent); }
.interval-move:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.interval-remove:hover { background: var(--danger-soft); color: var(--danger); }

/* A tap on touch devices leaves the button focused with no natural
   "unhover" to clear it, so the hover/focus tint can look stuck after
   reordering rows. Keep a visible ring for real keyboard focus only. */
.interval-move:focus:not(:focus-visible),
.interval-remove:focus:not(:focus-visible) {
  background: transparent;
  color: var(--text-muted);
}

.interval-total {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Custom Interval: single-block (manual list) and multi-block (rounds +
   exercise block) are two fully independent ways to start a session,
   each with its own start button rather than one combined config --
   combining them silently ran both, one after the other, which was
   confusing when only one was actually configured. No frame around
   either one (removed on request, to give the fields/text more room,
   especially on mobile) -- just spacing between the two. */
.custom-section {
  margin-bottom: 28px;
}
.custom-section:last-child { margin-bottom: 0; }
.custom-section .config-details { margin-bottom: 16px; }
.custom-section .start-btn { margin: 0; }

.interval-empty-warning {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.add-interval-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.add-interval-btn:hover { background: var(--accent-soft); border-color: var(--primary); }

@media (max-width: 480px) {
  .interval-row { flex-wrap: wrap; }
  .interval-name { flex-basis: 100%; }
  .interval-row-actions { flex: 1 1 auto; justify-content: flex-end; }
}

/* Start button */
.start-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-contrast);
  background: linear-gradient(90deg, var(--btn-grad-start), var(--btn-grad-end));
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), opacity var(--transition);
}
.start-btn:active { transform: scale(0.98); }
.start-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h2 { margin: 0 0 18px; font-size: 20px; }

.close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Timer card */
.timer-card { text-align: center; max-width: 380px; }

.ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 20px;
}

.ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-bg {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 10;
}

.ring-fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 628.3185;
  stroke-dashoffset: 628.3185;
  transition: stroke-dashoffset 250ms linear, stroke 300ms ease;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-time {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.ring-phase {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.timer-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.timer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.timer-next {
  margin: 2px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
  min-height: 18px;
}

/* AMRAP/For Time workout list: shown in place of the plain "AMRAP" /
   "Cronometru" title when a workout was typed in Configurare. A single
   short list reads as one centered block; once there are enough lines
   to risk crowding the card, it splits into two columns instead of
   growing taller and taller (capped upstream at 8 entries either way,
   so it never has to handle more than that). */
.workout-list {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}
.workout-item {
  padding: 2px 0;
  overflow-wrap: break-word;
}
.workout-list.two-col {
  column-count: 2;
  column-gap: 16px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.workout-list:not(.two-col) {
  text-align: center;
}

.timer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* AMRAP rounds counter -- one compact row (count, then +/- buttons)
   instead of a tall stacked card, so it doesn't eat into the limited
   vertical space a workout list also needs on mobile. */
.rounds-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.rounds-readout {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
  padding-left: 4px;
}

.rounds-count {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
}

.rounds-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.rounds-btns {
  display: flex;
  gap: 8px;
  flex: 1;
}

.rounds-btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.rounds-minus {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
}
.rounds-minus:hover { background: var(--border); }

.rounds-plus {
  flex: 1;
  padding: 7px;
  font-size: 13px;
  background: linear-gradient(90deg, var(--btn-grad-start), var(--btn-grad-end));
  color: var(--primary-contrast);
  box-shadow: var(--shadow-sm);
}
.rounds-plus:active { transform: scale(0.98); }

.timer-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 24px;
  width: auto;
}


.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.control-btn.primary {
  background: linear-gradient(90deg, var(--btn-grad-start), var(--btn-grad-end));
  color: var(--primary-contrast);
  border: none;
}

/* Result card */
.result-card { text-align: center; max-width: 380px; position: relative; z-index: 2; }
.result-emoji { font-size: 44px; }

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: .95;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(calc(var(--drift, 0) * 1px), 100vh) rotate(600deg); opacity: 0; }
}
.result-time {
  font-size: 44px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  margin: 10px 0;
}
.result-detail { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* AMRAP round splits: each round's own duration. Capped height with its
   own scroll so a long AMRAP (many rounds) never pushes the Inchide/
   Repeta buttons out of reach -- you scroll the list, not the card. */
.round-splits {
  max-height: 180px;
  overflow-y: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.round-split-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.round-split-row:last-child { border-bottom: none; }
.round-split-row span:first-child { color: var(--text-muted); font-weight: 600; }
.round-split-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Phase label color (ring-fg stroke is driven continuously by JS — it
   fades from a start color to an end color as each phase progresses,
   see updateRingCountDown/updateRingCountUp) */
.phase-rest .ring-phase { color: var(--warning); }
.phase-prep .ring-phase,
.phase-warmup .ring-phase { color: var(--accent); }
.phase-urgent .ring-phase { color: var(--danger); }

/* Transient "Runda N: 0:45" message shown in place of the AMRAP badge
   for a moment after +1 Runda, so it reads as a quick confirmation. */
.ring-phase.lap-flash { color: var(--primary); }

@media (max-width: 420px) {
  .brand h1 { font-size: 24px; }
}

/* Stack Minute/Secunde steppers on mobile — side by side they're too
   narrow to fit two-digit values (e.g. "10") next to the +/- buttons. */
@media (max-width: 480px) {
  .field-row { flex-direction: column; gap: 18px; }
}

/* Full-screen timer on mobile: the running cronometru takes over the
   whole viewport instead of sitting in a small centered card, with a
   bigger ring and bigger time readout. */
@media (max-width: 600px) {
  #timerOverlay { padding: 0; }

  #timerOverlay .timer-card {
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Plain "center" hides whatever overflows above the fold when content
       (e.g. a long workout list) grows taller than the screen -- that's
       what was pushing the ring up under the logo and burying the close
       button. "safe center" centers only while it fits, else falls back
       to the top like flex-start, so overflow only ever grows downward
       into the scroll area. The plain "center" above is the fallback for
       browsers that don't understand "safe" and ignore the second line. */
    justify-content: center;
    justify-content: safe center;
    padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  #timerOverlay .close-x {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
  }

  #timerOverlay .timer-logo {
    top: max(20px, env(safe-area-inset-top));
    left: max(20px, env(safe-area-inset-left));
  }

  #timerOverlay .ring-wrap {
    width: min(90vw, 380px);
    height: min(90vw, 380px);
    margin: 8px auto 32px;
  }

  #timerOverlay .ring-time {
    font-size: clamp(48px, 18vw, 78px);
  }

  #timerOverlay .ring-phase {
    font-size: 17px;
    margin-top: 8px;
  }

  #timerOverlay .timer-title {
    font-size: 32px;
    margin-bottom: 8px;
  }

  #timerOverlay .workout-list {
    font-size: 16px;
    margin-bottom: 14px;
  }

  #timerOverlay .workout-list.two-col {
    max-width: 320px;
  }

  #timerOverlay .timer-meta {
    font-size: 19px;
  }

  #timerOverlay .timer-next {
    font-size: 17px;
    margin-bottom: 28px;
  }

  #timerOverlay .control-btn {
    font-size: 18px;
    padding: 15px 26px;
  }

  #timerOverlay .rounds-box {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
  }

  #timerOverlay .rounds-count { font-size: 24px; }
  #timerOverlay .rounds-label { font-size: 12px; }

  #timerOverlay .rounds-minus {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  #timerOverlay .rounds-plus {
    padding: 10px;
    font-size: 15px;
  }
}
