.timer-panel {
  padding: 8px 12px;
}

.timer-manual-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7f72;
  margin-bottom: 8px;
}

.timer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.timer-preset {
  padding: 5px 11px;
  border-radius: 20px;
  border: 1.5px solid #d9d0c4;
  background: #f3eee4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #4f6470;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.timer-preset:hover {
  background: #e7ecef;
  border-color: #486959;
  color: #486959;
}

.timer-preset.active {
  background: #486959;
  border-color: #486959;
  color: #fff;
}

.timer-preview {
  border-radius: 14px;
  border: 2px solid #D9D0C4;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.timer-preview-ring {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 8;
}

.timer-ring-fg {
  fill: none;
  stroke: #48bb78;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 0;
}

.timer-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.timer-num-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #D9D0C4;
  background: #F3EEE4;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7f72;
}

.timer-num-btn:hover {
  background: #E7ECEF;
  color: #486959;
}

.timer-num-input {
  width: 48px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1.5px solid #D9D0C4;
  font-family: inherit;
}

.timer-sep {
  font-size: 1.2rem;
  font-weight: 700;
  color: #8a7f72;
}

.timer-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.timer-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.timer-color-dot:hover {
  transform: scale(1.2);
}

.timer-color-dot.selected {
  border-color: #486959;
  transform: scale(1.15);
}

.timer-add-btn {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  background: #486959;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


.timer-add-btn:hover {
  background: #3a5547;
}

.timer-ring-wrap {
  border-radius: 18px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  user-select: none;
  padding: 10px 10px 12px;
  box-sizing: border-box;
  transition: background 0.4s;
}

.timer-ring-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.timer-ring-arc {
    fill: none;
    stroke: #48bb78;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
    stroke-dasharray: 314.16;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.9s linear, stroke 0.5s;
}

.timer-ring-ctrl {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
}

.timer-ctrl-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}

.timer-ctrl-btn:hover {
    opacity: 0.75;
}

.timer-ctrl-btn.play-btn {
    background: #48bb78;
    color: #fff;
    border-color: #38a169;
}

.timer-ctrl-btn.reset-btn {
    background: rgba(0, 0, 0, 0.1);
}