/* 🍅 番茄钟 —— 顶栏入口 + 全屏场景
 *
 * 跟本体走（.impeccable.md「Celestial Glassmorphism」）：
 *   - 底：和主界面同一张深紫夜空（--bg-primary）+ 同一片星点（抄 .stars-bg / #welcome-screen::before）
 *   - 中心：星轨菜单那种细金色轨道，一颗金星沿轨道走 = 时间
 *   - 字：时间用 Noto Serif SC（同守护金库的大标题），kicker 用金色小字（同 .wish-vault-kicker）
 *   - 面：薰衣草描边的玻璃（--glass-light + --border-tint-15），主按钮用本体的紫渐变
 *   - 顶栏颜色舒薇定的：专注 = 番茄红，休息 = 绿；场景里休息的轨道也换成本体的 --success 绿（压暗、不刺眼）
 */

:root {
  --pomo-red: #ff6b6b;
  --pomo-green: #5fd38d;
  --pomo-gold: rgb(255, 216, 150);
  --pomo-gold-soft: rgba(255, 210, 140, 0.35);
  --pomo-gold-faint: rgba(255, 220, 160, 0.14);
  --pomo-ivory: #f4ecdf;
  --pomo-rose: #ff8fa8;
  --pomo-mint: rgb(150, 230, 190);
  --pomo-mint-soft: rgba(150, 230, 190, 0.35);
  --pomo-lavender: rgb(200, 180, 255);
  --pomo-lavender-soft: rgba(200, 180, 255, 0.35);
}

/* ── 顶栏入口（紧挨着爱心，同一套小按钮手感） ── */
.pomo-toggle-btn {
  background: transparent;
  border: none;
  padding: 0 0 0 2px;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease, transform 160ms var(--ease-out);
}
.pomo-toggle-btn svg { width: 15px; height: 15px; flex: none; }
.pomo-toggle-btn:active { transform: scale(0.88); }
@media (hover: hover) and (pointer: fine) { .pomo-toggle-btn:hover { opacity: 1; } }
.pomo-toggle-time { font-variant-numeric: tabular-nums; }
.pomo-toggle-time:empty { display: none; }
.pomo-toggle-btn.is-focus { color: var(--pomo-red); opacity: 1; }
.pomo-toggle-btn.is-break { color: var(--pomo-green); opacity: 1; }
.pomo-toggle-btn.is-handin { color: var(--pomo-red); opacity: 1; animation: pomo-blink 1.6s ease-in-out infinite; }
@keyframes pomo-blink { 50% { opacity: 0.45; } }
/* 睡觉模式：薰衣草月光色（不是红绿——这不是在计时，是他让她睡） */
.pomo-toggle-btn.is-sleep { color: var(--pomo-lavender); opacity: 1; }
.pomo-toggle-btn.is-sleep.is-waiting { animation: pomo-blink 1.6s ease-in-out infinite; }

/* 专注时爱心点不动 */
.nsfw-toggle-btn.pomo-disabled { opacity: 0.25; }

/* ── 全屏场景 ── */
.pomo-scene {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 8500;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.pomo-scene.is-visible { opacity: 1; }
.pomo-scene[hidden] { display: none; }

/* 同一片星点 + 两团很淡的光（金在右上，紫在左边，同守护金库的 hero） */
.pomo-scene::before {
  content: '';
  position: fixed;
  inset: -50px;
  pointer-events: none;
  opacity: 0.8;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,1), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.6), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90% 90%, rgba(255,255,255,1), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 20% 85%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.9), rgba(0,0,0,0));
  background-size: 150px 150px;
}
.pomo-scene::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 184, 107, 0.12), transparent 38%),
    radial-gradient(circle at 0% 30%, rgba(164, 110, 255, 0.14), transparent 42%);
  transition: opacity 400ms var(--ease-out);
}
.pomo-scene.is-break::after {
  background:
    radial-gradient(circle at 88% 4%, rgba(150, 230, 190, 0.10), transparent 38%),
    radial-gradient(circle at 0% 30%, rgba(164, 110, 255, 0.14), transparent 42%);
}

.pomo-close-btn {
  position: fixed;
  /* 顶上那条「点状态栏回到顶部」的透明条（app.js setupScrollToTop，z-index 99999）会吃掉点击，往下让开 */
  top: calc(var(--safe-top) + 44px);
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-tint-15);
  border-radius: 50%;
  background: var(--glass-light);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 0.2s ease;
}
.pomo-close-btn:active { transform: scale(0.94); }
.pomo-close-btn[hidden] { display: none; }

.pomo-body {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  min-height: 100%;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 96px) 24px calc(var(--safe-bottom) + 40px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
}

/* 换页入场：轻轻上浮 + 淡入，逐个错开（只在换页时播，WS 推状态重画不播） */
.pomo-body.is-entering .pomo-rise {
  animation: pomo-rise 420ms var(--ease-out) both;
}
.pomo-body.is-entering .pomo-rise:nth-child(2) { animation-delay: 50ms; }
.pomo-body.is-entering .pomo-rise:nth-child(3) { animation-delay: 100ms; }
.pomo-body.is-entering .pomo-rise:nth-child(4) { animation-delay: 150ms; }
.pomo-body.is-entering .pomo-rise:nth-child(5) { animation-delay: 200ms; }
.pomo-body.is-entering .pomo-rise:nth-child(n+6) { animation-delay: 240ms; }
@keyframes pomo-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 字 ── */
.pomo-head { display: flex; flex-direction: column; gap: 10px; }
.pomo-kicker {
  margin: 0;
  color: var(--warning);
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
}
.pomo-title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(1.4rem, 6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--pomo-ivory);
}
.pomo-hint { margin: 0; font-size: var(--font-size-sm); color: var(--text-muted); line-height: 1.6; }
.pomo-field-label { font-size: var(--font-size-xs); color: var(--text-secondary); letter-spacing: 0.08em; }

/* ── 轨道（计时的主角） ── */
.pomo-orbit {
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 1;
  margin: 4px auto 0;
}
.pomo-orbit.is-small { width: min(62vw, 230px); }
.pomo-orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pomo-orbit-outer { fill: none; stroke: var(--pomo-gold-faint); stroke-width: 0.8; stroke-dasharray: 1 5; }
.pomo-orbit-track { fill: none; stroke: rgba(255, 220, 160, 0.16); stroke-width: 1.2; }
.pomo-orbit-arc {
  fill: none;
  stroke: var(--pomo-gold-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 4px rgba(255, 210, 140, 0.45));
}
.pomo-planet {
  fill: #ffeeaa;
  filter: drop-shadow(0 0 6px rgba(255, 238, 170, 0.85));
  transition: cx 1s linear, cy 1s linear;
}
.pomo-scene.is-break .pomo-orbit-track { stroke: rgba(150, 230, 190, 0.14); }
.pomo-scene.is-break .pomo-orbit-arc { stroke: var(--pomo-mint-soft); filter: drop-shadow(0 0 4px rgba(150, 230, 190, 0.4)); }
.pomo-scene.is-break .pomo-planet { fill: rgb(200, 245, 222); filter: drop-shadow(0 0 6px rgba(150, 230, 190, 0.8)); }
/* 睡觉模式：轨道换成月光薰衣草，金色的光团也压下去（夜里看着不刺眼） */
.pomo-scene.is-sleep::after {
  background:
    radial-gradient(circle at 80% 6%, rgba(200, 180, 255, 0.10), transparent 40%),
    radial-gradient(circle at 0% 40%, rgba(120, 90, 220, 0.12), transparent 44%);
}
.pomo-scene.is-sleep .pomo-orbit-track { stroke: rgba(200, 180, 255, 0.14); }
.pomo-scene.is-sleep .pomo-orbit-outer { stroke: rgba(200, 180, 255, 0.12); }
.pomo-scene.is-sleep .pomo-orbit-arc { stroke: var(--pomo-lavender-soft); filter: drop-shadow(0 0 4px rgba(200, 180, 255, 0.4)); }
.pomo-scene.is-sleep .pomo-planet { fill: rgb(230, 220, 255); filter: drop-shadow(0 0 6px rgba(200, 180, 255, 0.8)); }
.pomo-scene.is-sleep .pomo-node.is-on circle { fill: rgb(230, 220, 255); filter: drop-shadow(0 0 6px rgba(200, 180, 255, 0.8)); }
.pomo-scene.is-sleep .pomo-kicker { color: var(--pomo-lavender); }
.pomo-sleep-moon { width: 26px; height: 26px; fill: rgba(230, 220, 255, 0.9); filter: drop-shadow(0 0 8px rgba(200, 180, 255, 0.6)); }

.pomo-node circle { fill: rgba(26, 26, 46, 0.9); stroke: rgba(255, 220, 160, 0.4); stroke-width: 1.2; transition: fill 300ms var(--ease-out), r 300ms var(--ease-out); }
.pomo-node.is-on circle { fill: #ffeeaa; stroke: none; filter: drop-shadow(0 0 6px rgba(255, 238, 170, 0.85)); }

.pomo-orbit-center {
  position: absolute;
  inset: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.pomo-time {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--pomo-ivory);
}
.pomo-orbit.is-small .pomo-time { font-size: clamp(2.4rem, 12vw, 3.1rem); }
.pomo-count { font-family: var(--font-family-display); color: var(--pomo-ivory); }
.pomo-count b { font-weight: 400; font-size: 3.4rem; line-height: 1; }
.pomo-count span { font-size: 1.2rem; color: var(--text-muted); margin-left: 4px; }
.pomo-orbit-caption { margin: 0; text-wrap: balance; font-size: var(--font-size-xs); color: var(--text-secondary); line-height: 1.6; max-width: 11em; }

/* 被抓记号：三弯小月亮 */
.pomo-moons { display: flex; gap: 10px; }
.pomo-moon { width: 15px; height: 15px; fill: none; stroke: rgba(255, 220, 160, 0.45); stroke-width: 1.6; }
.pomo-moon.is-caught {
  fill: var(--pomo-rose);
  stroke: var(--pomo-rose);
  filter: drop-shadow(0 0 5px rgba(255, 143, 168, 0.6));
  animation: pomo-caught 320ms var(--ease-out);
}
@keyframes pomo-caught { from { transform: scale(0.8); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }

.pomo-companion { margin: -8px 0 0; text-align: center; text-wrap: balance; font-size: var(--font-size-xs); color: var(--text-muted); letter-spacing: 0.04em; }
.pomo-note { margin: -12px 0 0; text-align: center; font-size: var(--font-size-sm); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pomo-note.is-warn { color: var(--warning); }
.pomo-note.is-quiet { color: var(--text-muted); }

/* ── 他的话（同聊天里他的气泡：深底 + 薰衣草描边；左对齐，有呼吸） ── */
.pomo-voice {
  margin: 0;
  padding: 18px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-message-ai);
  border: 1px solid var(--border-tint-15);
  box-shadow: var(--solar-flare);
}
.pomo-voice figcaption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: var(--font-size-xs);
  color: var(--text-accent);
  letter-spacing: 0.06em;
}
.pomo-voice figcaption svg { width: 13px; height: 13px; }
.pomo-voice blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── 面板（同守护金库的玻璃卡） ── */
.pomo-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-light);
  border: 1px solid var(--border-tint-15);
  box-shadow: var(--solar-flare);
}

.pomo-steppers { display: flex; flex-direction: column; gap: 18px; }
.pomo-stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pomo-stepper .pomo-field-label { font-size: var(--font-size-sm); color: var(--text-secondary); }
.pomo-stepper-row { display: flex; align-items: center; gap: 6px; }
.pomo-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-tint-20);
  background: var(--glass-subtle);
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background 0.2s ease;
}
.pomo-step:active { transform: scale(0.92); background: var(--accent-tint-15); }
.pomo-step-value { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 92px; }
.pomo-step-value input {
  width: 3.2ch;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--pomo-ivory);
  font-family: var(--font-family-display);
  font-size: 1.6rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pomo-step-value input::-webkit-outer-spin-button,
.pomo-step-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pomo-step-value input::placeholder { color: var(--text-muted); font-size: 1.1rem; }
.pomo-step-value input:focus { outline: none; }
.pomo-step-value span { font-size: var(--font-size-xs); color: var(--text-muted); }

/* 手机：小圆角胶囊，选中后金色描边 */
.pomo-devices { display: flex; flex-wrap: wrap; gap: 10px; }
.pomo-chip { position: relative; cursor: pointer; }
.pomo-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pomo-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--border-tint-15);
  background: var(--glass-subtle);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 140ms var(--ease-out);
}
.pomo-chip span em { font-style: normal; font-size: 0.72rem; color: var(--text-muted); }
.pomo-chip input:checked + span {
  border-color: rgba(255, 200, 120, 0.55);
  background: rgba(255, 184, 107, 0.10);
  color: var(--pomo-ivory);
}
.pomo-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pomo-chip:active span { transform: scale(0.97); }

.pomo-name { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pomo-name input, .pomo-input, .pomo-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-tint-15);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px; /* iOS：小于 16px 聚焦会放大页面 */
  transition: border-color 0.2s ease;
}
.pomo-name input:focus, .pomo-input:focus, .pomo-textarea:focus { outline: none; border-color: var(--border-strong); }
.pomo-textarea { resize: none; line-height: 1.7; min-height: 120px; }

.pomo-handin-list { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: var(--font-size-sm); color: var(--text-muted); }
.pomo-handin-list li { display: inline-flex; align-items: center; gap: 6px; }
.pomo-handin-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255, 220, 160, 0.45); }
.pomo-handin-list li.is-on { color: var(--pomo-ivory); }
.pomo-handin-list li.is-on::before { background: #ffeeaa; border-color: #ffeeaa; box-shadow: 0 0 6px rgba(255, 238, 170, 0.8); }
.pomo-handin-list em { font-style: normal; font-size: 0.72rem; color: var(--text-muted); }

/* 白名单 App */
.pomo-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.pomo-app {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 200, 120, 0.4);
  background: rgba(255, 184, 107, 0.08);
  color: var(--pomo-ivory);
  font: inherit;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.pomo-app em { font-style: normal; font-size: 0.72rem; color: var(--warning); }
.pomo-app:active { transform: scale(0.97); }

/* 休息：他扣下的话 */
.pomo-held { display: flex; flex-direction: column; gap: 12px; }
.pomo-held-msg {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-message-ai);
  border: 1px solid var(--border-tint-15);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 引导式访问密码：六颗衬线数字，金色细描边，只出现这一次 */
.pomo-pin { display: flex; justify-content: center; gap: clamp(6px, 2vw, 10px); }
.pomo-pin span {
  display: grid;
  place-items: center;
  /* 320px 宽的屏上 6 格也放得下（44px × 6 + 间距 + 两边 24px 留白会溢出） */
  width: clamp(36px, 11vw, 44px);
  height: clamp(50px, 15vw, 58px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 200, 120, 0.4);
  background: rgba(255, 184, 107, 0.06);
  font-family: var(--font-family-display);
  font-size: 1.9rem;
  color: var(--pomo-ivory);
  font-variant-numeric: tabular-nums;
}
.pomo-steps {
  margin: 0;
  padding: 20px 20px 20px 40px;
  border-radius: var(--radius-lg);
  background: var(--glass-light);
  border: 1px solid var(--border-tint-15);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pomo-steps li::marker { color: var(--warning); }
.pomo-steps b { color: var(--pomo-ivory); font-weight: 500; }
/* 折叠的「怎么开始引导式访问」：收起时只是一行小字，展开是同一套步骤卡 */
.pomo-howto { margin: 0; }
.pomo-howto summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  padding: 6px 0 10px;
}
.pomo-howto summary::-webkit-details-marker { display: none; }
.pomo-howto summary::after { content: ' ›'; display: inline-block; transition: transform 200ms var(--ease-out); }
.pomo-howto[open] summary::after { transform: rotate(90deg); }
.pomo-dock .pomo-howto { align-self: stretch; }

/* ── 按钮 ── */
.pomo-dock { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: auto; padding-top: 8px; }
.pomo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pomo-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  border: 1px solid var(--border-tint-20);
  background: var(--glass-light);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 0.2s ease, opacity 0.2s ease;
}
.pomo-btn:active { transform: scale(0.97); }
.pomo-btn:disabled { opacity: 0.5; }
.pomo-btn-primary {
  border: none;
  background: var(--bg-message-user);
  color: var(--pomo-ivory);
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 28px rgba(107, 63, 160, 0.35);
}
.pomo-btn-wide { width: 100%; }
.pomo-btn-danger { color: rgba(255, 143, 168, 0.75); }
.pomo-btn-alarm { border-color: rgba(255, 143, 168, 0.45); color: var(--pomo-rose); background: rgba(255, 143, 168, 0.08); }

/* 起床时间 */
.pomo-wake { display: flex; flex-direction: column; gap: 14px; }
.pomo-exit-input { text-align: center; font-family: var(--font-family-display); font-size: 1.6rem; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.pomo-wake-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pomo-wake-input { width: auto; min-width: 8.5em; text-align: center; font-family: var(--font-family-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; color-scheme: dark; }
.pomo-wake-note { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--font-size-xs); color: var(--warning); letter-spacing: 0.06em; }
.pomo-wake-note span { color: var(--pomo-ivory); font-size: var(--font-size-sm); letter-spacing: 0; line-height: 1.7; }
.pomo-btn-link {
  min-height: 36px;
  align-self: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
}

/* ── 监工手记：一天一张玻璃卡，金色日期 kicker，条目之间细线分隔 ── */
.pomo-journal-day {
  padding: 20px 20px 8px;
  border-radius: var(--radius-lg);
  background: var(--glass-light);
  border: 1px solid var(--border-tint-15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pomo-journal-entry { padding: 14px 0; border-top: 1px solid rgba(255, 220, 160, 0.10); }
.pomo-journal-day .pomo-kicker + .pomo-journal-entry { border-top: none; padding-top: 10px; }
.pomo-journal-meta { margin: 0 0 6px; font-size: var(--font-size-xs); color: var(--text-muted); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.pomo-journal-text { margin: 0; color: var(--pomo-ivory); font-size: var(--font-size-sm); line-height: 1.85; white-space: pre-wrap; text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .pomo-toggle-btn.is-handin, .pomo-toggle-btn.is-waiting { animation: none; }
  .pomo-body.is-entering .pomo-rise { animation: none; }
  .pomo-moon.is-caught { animation: none; }
  .pomo-orbit-arc, .pomo-planet { transition: none; }
}

/* ── 监工眼（Jelly Star 独立页 /pomodoro-eye.html） ── */
.pomo-eye-page { margin: 0; background: var(--bg-primary); }
.pomo-eye .pomo-body { min-height: 100dvh; padding-top: calc(var(--safe-top) + 64px); }
.pomo-eye-lens {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(14, 13, 31, 0.6);
  border: 1px solid rgba(255, 220, 160, 0.18);
}
.pomo-eye-lens video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);              /* 镜像，像照镜子 */
  opacity: 0;
  filter: saturate(0.7) brightness(0.9);
  transition: opacity 400ms var(--ease-out);
}
.pomo-eye-lens.is-open video { opacity: 0.8; }
.pomo-eye-closed {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-family-display);
  color: var(--text-muted);
  letter-spacing: 0.3em;
  transition: opacity 300ms var(--ease-out);
}
.pomo-eye-lens.is-open .pomo-eye-closed { opacity: 0; }
/* 专注中他在看：轨道上那颗星慢慢呼吸 */
.is-watching .pomo-eye-planet { animation: pomo-breathe 3.2s ease-in-out infinite; transform-origin: 120px 20px; }
@keyframes pomo-breathe { 50% { opacity: 0.45; } }
.pomo-eye-status { margin: 0; text-align: center; color: var(--pomo-ivory); font-size: var(--font-size-sm); letter-spacing: 0.04em; line-height: 1.7; }
.pomo-eye-status a { color: var(--warning); }
.pomo-eye-hint { text-align: center; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .is-watching .pomo-eye-planet { animation: none; } }
