.tool-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  max-width: 400px;
  margin: 0 auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: var(--shadow-base);
  position: relative;
  overflow: hidden;
}

.theme-light {
  --color-start: #22c55e;
  --color-start-hover: #16a34a;
  --color-stop: #ef4444;
  --color-stop-hover: #dc2626;
  --color-pressing: #22c55e;
  --color-releasing: #f59e0b;
  --color-complete: var(--accent);
  --color-white: #fff;
}

.theme-dark {
  --color-start: #4ade80;
  --color-start-hover: #22c55e;
  --color-stop: #f87171;
  --color-stop-hover: #ef4444;
  --color-pressing: #4ade80;
  --color-releasing: #fbbf24;
  --color-complete: var(--accent);
  --color-white: #fff;
}

.timer-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.timer-display-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.timer-circle-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.timer-circle {
  position: relative;
  width: 180px;
  height: 180px;
  z-index: 1;
}

.timer-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 0;
}

.phase-pressing .timer-glow-ring {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}

.theme-dark .phase-pressing .timer-glow-ring {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.25) 0%, transparent 70%);
}

.phase-releasing .timer-glow-ring {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
}

.theme-dark .phase-releasing .timer-glow-ring {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  position: relative;
  z-index: 1;
}

.timer-bg-ring {
  fill: none;
  stroke: var(--border-base);
  stroke-width: 6;
  opacity: 0.4;
}

.timer-progress-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke 0.4s ease;
}

.phase-pressing .timer-progress-ring {
  stroke: var(--color-pressing);
}

.phase-releasing .timer-progress-ring {
  stroke: var(--color-releasing);
}

.phase-complete .timer-progress-ring {
  stroke: var(--color-complete);
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.timer-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-base);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}

.timer-unit {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dimmed);
  margin-top: 0.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-status-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  background: var(--bg-page);
  border: 1px solid var(--border-base);
  color: var(--text-dimmed);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 120px;
}

.status-pressing {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--color-pressing);
  color: var(--color-pressing);
}

.theme-dark .status-pressing {
  background: rgba(74, 222, 128, 0.12);
}

.status-releasing {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--color-releasing);
  color: var(--color-releasing);
}

.theme-dark .status-releasing {
  background: rgba(251, 191, 36, 0.12);
}

.status-complete {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.timer-controls {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
}

.timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.timer-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.timer-btn:not(:disabled):active {
  transform: scale(0.96);
}

.btn-icon {
  flex-shrink: 0;
}

.start-btn {
  background: var(--color-start);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.25);
}

.start-btn:hover:not(:disabled) {
  background: var(--color-start-hover);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.stop-btn {
  background: var(--color-stop);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

.stop-btn:hover:not(:disabled) {
  background: var(--color-stop-hover);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.reset-btn {
  background: var(--bg-page);
  color: var(--text-dimmed);
  border: 1px solid var(--border-base);
  padding: 0.6rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-btn:hover {
  border-color: var(--accent);
  color: var(--text-base);
  background: var(--bg-surface);
}

.duration-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.chip-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-group {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-page);
  padding: 0.25rem;
  border-radius: 2rem;
  border: 1px solid var(--border-base);
}

.chip {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-dimmed);
  transition: all 0.2s ease;
}

.chip:hover {
  color: var(--text-base);
}

.chip.active {
  background: var(--accent);
  color: var(--color-white);
}

.steps-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 1.125rem;
  background: var(--bg-page);
  border-radius: 0.875rem;
  border: 1px solid var(--border-base);
}

.step-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-marker {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.8125rem;
  color: var(--text-dimmed);
  line-height: 1.4;
}

.tip-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-page);
  border-radius: 0.75rem;
  border: 1px solid var(--border-base);
}

.tip-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.1rem;
}

.tip-text {
  font-size: 0.75rem;
  color: var(--text-dimmed);
  line-height: 1.45;
}
