/* 由 pomodoro.html 内联样式抽出（内容不变，便于缓存） */

/* ====== Pomodoro - Forest/Tide style ====== */

/* --- Hero Ring --- */
.hero-area {
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ring-wrap {
  width: 260px; height: 260px; position: relative;
}
.ring-wrap canvas {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-center {
  position: absolute; top:0;right:0;bottom:0;left:0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 24px;
  text-align: center;
}
.ring-center .quote {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
  padding: 0;
  margin-top: 2px;
  max-height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.ring-center .time-display {
  font-size: 56px; font-weight: 700;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ring-center .mode-label {
  font-size: 14px; font-weight: 500;
  padding: 3px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.mode-focus .mode-label { background: #e8f5e9; color: var(--primary); }
.mode-break .mode-label { background: #fff3e0; color: #e65100; }

/* --- Control Buttons --- */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 4px;
}
.controls .btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 0;
  font-size: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--spring);
}
.controls .btn:active { transform: scale(0.88); }
.btn-play { background: var(--primary); color: #fff; }
.btn-pause { background: #ff9800; color: #fff; }
.btn-reset { background: var(--danger); color: #fff; width: 48px; height: 48px; font-size: 20px; }

/* --- Session Info --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0 8px;
}
.stat-item {
  text-align: center;
}
.stat-item .stat-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Settings Panel (ref: Alipay settings drawer) --- */
.settings-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 8px 0 0;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.settings-row select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  min-height: 44px; /* 触控目标 ≥44px */
}

/* 添加工作内容弹层（替代原生 prompt，微信内会被拦截） */
.task-modal-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.45);z-index:999;display:flex;align-items:center;justify-content:center;}
.task-modal{width:78%;max-width:320px;background:#fff;border-radius:var(--radius);padding:20px 16px;box-shadow:var(--shadow);}
.task-modal-title{font-size:16px;font-weight:600;text-align:center;margin-bottom:12px;}
.task-modal .input{width:100%;box-sizing:border-box;min-height:44px;}
.task-modal-btns{display:flex;gap:12px;margin-top:16px;}
.task-modal-btns .btn{flex:1;min-height:44px;}

/* --- Phase Transition Hint --- */
.phase-hint {
  text-align: center;
  padding: 6px 0 2px;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 20px;
  transition: opacity 0.3s;
}

/* --- Motivational quote --- */
.quote {
  text-align: center;
  padding: 8px 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* responsive */
@media (max-width: 380px) {
  .ring-wrap { width: 220px; height: 220px; }
  .ring-center .time-display { font-size: 44px; }
}
