.pomo-page-body { overflow-y: auto; }

.pomo-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  position: relative;
  z-index: 1;
}

.pomo-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pomo-top-title { display: flex; align-items: center; }

.pomo-main { display: flex; flex-direction: column; gap: 1.25rem; }

/* Timer card */
.pomo-timer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pomo-big-mode {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.pomo-big-mode.break { color: var(--green); }

.pomo-big-ring-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin-bottom: 1.5rem;
}

.pomo-big-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.pomo-big-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.pomo-big-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 615.75;
  stroke-dashoffset: 615.75;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.pomo-big-ring-progress.break { stroke: var(--green); }

.pomo-big-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pomo-big-time {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pomo-big-sub { font-size: 0.8rem; color: var(--text-secondary); }

.pomo-big-sessions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pomo-big-sessions .pomo-session-dot { width: 9px; height: 9px; }

.pomo-big-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pomo-big-btn {
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border);
}

.pomo-big-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2.5rem;
}

.pomo-big-btn.primary:hover { background: var(--accent-hover); }

.pomo-big-btn.ghost {
  background: var(--bg);
  color: var(--text-secondary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomo-big-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Settings panel */
.pomo-settings-panel {
  width: 100%;
  max-width: 420px;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}

.pomo-settings-panel.show { display: flex; }

.pomo-settings-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: left;
}

.pomo-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.pomo-settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.pomo-settings-grid span {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.pomo-settings-grid input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.pomo-settings-grid input:focus { border-color: var(--accent); }

/* Stats row */
.pomo-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.pomo-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  text-align: center;
}

.pomo-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.pomo-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.pomo-stat-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* History */
.pomo-history-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}

.pomo-history-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.pomo-history-empty {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.pomo-history-list { display: flex; flex-direction: column; gap: 0.55rem; }

.pomo-history-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.pomo-history-item:last-child { border-bottom: none; padding-bottom: 0; }

.pomo-history-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99,102,241,.12);
  color: var(--accent);
}

.pomo-history-icon.break { background: rgba(34,197,94,.12); color: var(--green); }
.pomo-history-icon svg { width: 15px; height: 15px; }

.pomo-history-info { flex: 1; }
.pomo-history-info h4 { font-size: 0.82rem; font-weight: 600; }
.pomo-history-info p { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.1rem; }

.pomo-history-time { font-size: 0.72rem; color: var(--text-secondary); flex-shrink: 0; }

.pomo-reset-all {
  display: block;
  width: fit-content;
  margin: 0.85rem auto 0;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s;
}

.pomo-reset-all:hover { opacity: 0.85; text-decoration: underline; }

@media (max-width: 560px) {
  .pomo-stats-row { grid-template-columns: repeat(2, 1fr); }
  .pomo-settings-grid { grid-template-columns: 1fr; }
  .pomo-big-ring-wrap { width: 220px; height: 220px; }
  .pomo-big-time { font-size: 2.8rem; }
}
