.stopwatch-display {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-align: center;
  padding: 30px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  letter-spacing: 3px;
  color: var(--accent);
}

.stopwatch-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stopwatch-controls .btn {
  min-width: 90px;
}

.laps-section {
  margin-top: 24px;
}

.laps-section h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.laps-header {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.laps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
}

.laps-list li {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.laps-list li:first-child {
  color: var(--accent);
  font-weight: 700;
}

.laps-empty {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 20px !important;
  display: block !important;
}

@media (max-width: 600px) {
  .stopwatch-display {
    font-size: 2rem;
    padding: 20px 12px;
  }
}

/* ================================
   MOBILE RESPONSIVE â€” Tool Page Fix
   ================================ */

/* Inherit from global */
input, textarea, select {
  font-size: 16px; /* prevents iOS auto-zoom */
  width: 100%;
  max-width: 100%;
}

/* Responsive tool UI */
@media (max-width: 540px) {
  .tool-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Stopwatch layout */
.stopwatch-container {
  text-align: center;
}

.stopwatch-display {
  font-size: 48px;
  font-weight: 700;
  font-family: monospace;
  padding: 20px;
  letter-spacing: 2px;
}

.stopwatch-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stopwatch-laps {
  margin-top: 16px;
}

.laps-list {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.laps-empty {
  color: var(--text-secondary);
  padding: 8px;
}
