.timer-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.timer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
}

.timer-panel {
  position: relative;
  width: min(94vw, 430px);
  border-radius: 20px;
  background: #0b0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
  padding: 18px 14px 16px;
  color: #e5e7eb;
}

.timer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  background: #111827;
  color: #e5e7eb;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.timer-view {
  display: grid;
  gap: 12px;
}

.timer-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  color: #fff;
}

.timer-subtitle {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.timer-preset-btn {
  min-height: 40px;
  background: #111827;
  color: #e5e7eb;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.timer-duration-edit {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.timer-adjust-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 24px;
  background: #111827;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.timer-duration-main {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #10151d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 36px;
  cursor: pointer;
  user-select: none;
}

.timer-duration-main:focus {
  outline: 2px solid rgba(57, 184, 163, 0.35);
  border-color: rgba(57, 184, 163, 0.72);
}

.timer-duration-hint {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.timer-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #cbd5e1;
}

.timer-wakelock-hint {
  min-height: 18px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

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

.timer-start-btn {
  width: min(100%, 280px);
}

.timer-state {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}

.timer-countdown {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: clamp(56px, 18vw, 90px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1px;
}

.timer-subline {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
}
