:root {
  --bg: #FDFCFF;
  --surface: #F5F3F7;
  --border: #ECEAF0;
  --muted: #DFDBE5;
  --accent: #D2CDD8;
  --accent-warm: #c4b5a0;
  --text: #78737E;
  --text-dark: #4a4550;
  --text-light: #a09aa8;
  --card-shadow: 0 2px 12px rgba(120,115,126,0.06);
  --radius: 14px;
  --tab-height: 68px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  padding-bottom: var(--tab-height);
  -webkit-font-smoothing: antialiased;
}
.page { position: absolute; left: 0; right: 0; padding: 0 20px 32px; visibility: hidden; pointer-events: none; opacity: 0; }
.page.active { position: relative; visibility: visible; pointer-events: auto; opacity: 1; }

/* Header */
.header {
  text-align: center;
  padding: 52px 20px 8px;
}
.header-welcome {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--text-light);
  text-transform: uppercase;
}
.header-names {
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin: 4px 0 2px;
}
.header-names em {
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  margin: 0 8px;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 10px;
  padding: 12px 20px 20px;
}
.stat-card {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-dark);
}
.stat-label {
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--card-shadow);
}
.card-title {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* Health grid */
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.health-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.health-icon {
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.health-value {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dark);
}
.sleep-detail {
  margin-top: 10px;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.sleep-col { text-align: center; }
.sleep-label { font-size: 0.55rem; letter-spacing: 1px; color: var(--text-light); text-transform: uppercase; }
.sleep-value { font-size: 0.95rem; font-weight: 300; color: var(--text-dark); margin-top: 2px; }
.wake-info {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
}

/* Milestone */
.milestone-list { display: flex; flex-direction: column; gap: 12px; }
.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.milestone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}
.milestone-content { flex: 1; }
.milestone-date {
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-light);
}
.milestone-text {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.4;
  margin-top: 2px;
}

/* Calendar */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal-month {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.cal-nav {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 10px;
}
.cal-weekdays, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.cal-weekdays { margin-bottom: 6px; }
.cal-wd {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  margin: 1px;
}
.cal-day:hover { background: var(--border); }
.cal-day.today { border: 1.5px solid var(--accent-warm); color: var(--text-dark); font-weight: 500; }
.cal-day.has-entry { background: var(--muted); color: var(--text-dark); font-weight: 500; }
.cal-day.has-entry.selected { background: var(--accent); color: #fff; }
.cal-day.empty { visibility: hidden; cursor: default; }

/* Diary entry detail */
.diary-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.diary-entry {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.diary-date { font-size: 0.6rem; letter-spacing: 1px; color: var(--text-light); }
.diary-title { font-size: 0.95rem; font-weight: 400; color: var(--text-dark); margin: 4px 0; }
.diary-sub { font-size: 0.8rem; color: var(--text); line-height: 1.5; white-space: pre-line; }
.diary-author { font-size: 0.6rem; color: var(--accent-warm); margin-top: 6px; letter-spacing: 1px; }

/* Diary add form */
.diary-add-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: none;
  border: 1.5px dashed var(--muted);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.diary-add-btn:hover { border-color: var(--accent); color: var(--text); }
.diary-form {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--border);
}
.diary-form input, .diary-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-dark);
  outline: none;
  margin-bottom: 8px;
}
.diary-form input:focus, .diary-form textarea:focus { border-color: var(--accent); }
.diary-form textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.diary-form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.diary-form-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  font-family: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  color: var(--text);
}
.diary-form-btn.save { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Chat */
#page-chat {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: var(--tab-height);
  background: var(--bg);
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
#page-chat.active { visibility: visible; pointer-events: auto; opacity: 1; }
.chat-header {
  padding: env(safe-area-inset-top, 48px) 20px 10px;
  padding-top: max(env(safe-area-inset-top, 12px), 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.chat-header h2 {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-dark);
}
.chat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 8px; display: inline-block; }
.chat-dot.ok { background: #9aba9a; }
.chat-actions { display: flex; gap: 6px; }
.chat-btn {
  background: none; border: 1px solid var(--border); color: var(--text-light);
  padding: 3px 10px; border-radius: 10px; font-family: inherit; font-size: 0.6rem;
  letter-spacing: 1px; cursor: pointer;
}
.chat-btn:hover { border-color: var(--accent); color: var(--text); }
.chat-btn.stop { border-color: #d4a0a0; color: #b07070; }
.model-toggle {
  background: rgba(196,181,160,0.15); border: 1px solid var(--accent-warm); color: var(--accent-warm);
  padding: 3px 10px; border-radius: 10px; font-family: inherit; font-size: 0.6rem;
  letter-spacing: 1px; cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.model-toggle:hover { background: rgba(196,181,160,0.25); }
.model-toggle.sonnet { border-color: #8aa4c4; color: #7a96b8; background: rgba(138,164,196,0.12); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
  -webkit-overflow-scrolling: touch;
}
.chat-row { display: flex; flex-direction: row; max-width: 85%; gap: 8px; align-items: flex-end; }
.chat-row.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-row.assistant { align-self: flex-start; }
.chat-row.sys { align-self: center; }
.chat-row-body { display: flex; flex-direction: column; min-width: 0; }
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  margin-bottom: 2px;
}
.chat-row.sys .chat-avatar { display: none; }
.chat-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.chat-row.user .chat-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.chat-row.assistant .chat-bubble { background: #f0ede8; border: 1px solid #e5e0d8; border-bottom-left-radius: 4px; }
.chat-row.sys .chat-bubble { background: none; color: var(--text-light); font-size: 0.7rem; font-style: italic; }
.chat-thinking-wrap {
  background: linear-gradient(135deg, rgba(210,205,216,0.12), rgba(196,181,160,0.08));
  border-radius: 10px;
  border: 1px solid rgba(210,205,216,0.25);
  margin: 6px 0;
  overflow: hidden;
}
.chat-thinking-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--accent-warm);
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.chat-thinking-label:hover { color: var(--text-dark); }
.chat-thinking-arrow {
  display: inline-block;
  font-size: 0.5rem;
  transition: transform 0.3s ease;
  color: var(--text-light);
}
.chat-thinking-wrap.expanded .chat-thinking-arrow { transform: rotate(90deg); }
.chat-thinking-label.streaming::after {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-warm);
  animation: think-pulse 1.2s infinite;
  margin-left: 2px;
}
@keyframes think-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.chat-thinking {
  color: var(--text);
  font-size: 0.75rem;
  font-style: italic;
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  cursor: pointer;
  transition: max-height 0.4s ease, padding 0.3s ease;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
}
.chat-thinking-wrap.expanded .chat-thinking {
  max-height: 5000px;
  padding: 0 12px 10px;
}
.chat-thinking-wrap.streaming .chat-thinking {
  max-height: 5000px;
  padding: 0 12px 10px;
}
.chat-attach-preview {
  padding: 6px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.chat-attach-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.chat-attach-remove {
  background: none; border: none;
  color: var(--text-light); cursor: pointer;
  font-size: 0.7rem; padding: 2px 6px;
}
.chat-attach-remove:hover { color: var(--text-dark); }
.chat-attach-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-light); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; flex-shrink: 0;
  font-size: 16px; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s;
}
.chat-attach-btn:hover { border-color: var(--accent); color: var(--text); }
.chat-input-area {
  padding: 10px 16px; border-top: 1px solid var(--border);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0;
  background: var(--bg);
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.chat-typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-bounce 1.2s infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-bubble img.chat-img {
  max-width: 100%; border-radius: 8px;
  margin-bottom: 6px; display: block;
}
#chatInput {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dark); font-family: inherit; font-size: 16px;
  padding: 9px 14px; border-radius: 18px; outline: none;
  resize: none; max-height: 100px; line-height: 1.5;
}
#chatInput:focus { border-color: var(--accent); }
#chatInput::placeholder { color: var(--text-light); }
.chat-time { font-size: 0.6rem; color: var(--text-light); margin-top: 2px; padding: 0 4px; }
.chat-row.user .chat-time { text-align: right; }
#chatSend {
  background: var(--accent); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px;
}
#chatSend:disabled { opacity: .3; cursor: not-allowed; }
.chat-streaming .chat-header::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
  background-size: 200% 100%;
  animation: chatslide 1.5s infinite;
}
@keyframes chatslide { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* Tab bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-height);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 6px);
  z-index: 100;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--text-light);
  transition: color 0.2s;
}
.tab.active { color: var(--text-dark); }
.tab-icon {
  width: 20px;
  height: 20px;
}
.tab-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab-label { font-size: 0.5rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* Desire Panel */
.desire-header-card { text-align: center; padding: 28px 18px 22px; }
.desire-title {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.desire-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}
.chat-tool-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.7rem;
  color: var(--text-light);
  background: var(--surface);
  border-radius: 10px;
  margin: 2px 0;
}
.chat-tool-indicator::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-warm);
  border-radius: 50%;
  animation: toolPulse 1.2s ease-in-out infinite;
}
@keyframes toolPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.push-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.push-label {
  font-size: 0.75rem;
  color: var(--text-light);
}
.push-btn {
  font-size: 0.7rem;
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.push-btn.on {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent-warm);
}
.push-btn:disabled { opacity: 0.6; cursor: default; }
.desire-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.desire-bar-row + .desire-bar-row { border-top: 1px solid var(--border); }
.desire-bar-label {
  width: 62px;
  flex-shrink: 0;
  text-align: right;
}
.desire-bar-label-en {
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-transform: lowercase;
}
.desire-bar-label-zh {
  font-size: 0.7rem;
  color: var(--text-dark);
  font-weight: 400;
}
.desire-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.desire-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
  min-width: 2px;
}
.desire-bar-val {
  width: 32px;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--text-light);
  font-family: monospace;
  letter-spacing: 0.5px;
  text-align: right;
}
.desire-bar-fill[data-drive="attachment"] { background: #c4899a; }
.desire-bar-fill[data-drive="curiosity"] { background: #8aa4c4; }
.desire-bar-fill[data-drive="reflection"] { background: #a78abf; }
.desire-bar-fill[data-drive="duty"] { background: #a0a0a8; }
.desire-bar-fill[data-drive="social"] { background: #8abfa0; }
.desire-bar-fill[data-drive="fatigue"] { background: #888; }
.desire-bar-fill[data-drive="libido"] { background: #c47888; }
.desire-bar-fill[data-drive="stress"] { background: #c4a878; }

.desire-intent-card { position: relative; }
.desire-intent-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.6;
  font-style: italic;
  padding: 4px 0;
}
.desire-intent-drive {
  font-size: 0.6rem;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Ours - TOC */
.ours-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dotted var(--border);
  cursor: pointer;
  transition: color 0.2s;
  gap: 12px;
}
.ours-item:last-child { border-bottom: none; }
.ours-item:hover { color: var(--accent-warm); }
.ours-item-title { font-size: 0.8rem; color: var(--text-dark); flex: 1; }
.ours-item-time { font-size: 0.65rem; color: var(--text-light); white-space: nowrap; font-family: monospace; letter-spacing: 0.5px; }
.ours-item.appendix { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--muted); font-style: italic; }

/* Ours - Reader (dark theme) */
#ours-reader {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: var(--tab-height);
  background: #1A1620;
  color: #E8DFD3;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 50;
  padding: 0 24px 60px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 300;
  line-height: 1.85;
}
#ours-reader .ours-back {
  position: sticky;
  top: 0;
  padding: 16px 0;
  background: #1A1620;
  z-index: 2;
  font-size: 0.75rem;
  color: #8A8273;
  cursor: pointer;
  letter-spacing: 1px;
  border-bottom: 1px solid #382E3F;
}
#ours-reader .ours-back:hover { color: #B5848F; }
#ours-reader .ours-entry-date {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #B5848F;
  text-transform: uppercase;
  margin-top: 24px;
}
#ours-reader .ours-entry-time {
  font-size: 0.65rem;
  color: #8A8273;
  letter-spacing: 0.1em;
  font-family: monospace;
}
#ours-reader h2 {
  font-weight: 400;
  font-size: 1.5rem;
  margin: 12px 0 4px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
#ours-reader .ours-entry-sub {
  font-style: italic;
  color: #C9BFB0;
  font-size: 0.85rem;
  margin-bottom: 32px;
}
#ours-reader .entry-body {
  font-size: 0.9rem;
  line-height: 2;
}
#ours-reader .entry-body p { margin-bottom: 20px; text-align: justify; }
#ours-reader .voice { color: #B5848F; font-style: italic; }
#ours-reader .ke-voice { color: #8B9DAF; font-style: italic; }
#ours-reader blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  border-left: 2px solid #B5848F;
  color: #C9BFB0;
  font-style: italic;
}
#ours-reader .timestamp {
  font-family: monospace;
  font-size: 0.7rem;
  color: #B5848F;
  background: rgba(181,132,143,0.08);
  padding: 1px 6px;
  border-radius: 2px;
}
#ours-reader .signature {
  margin-top: 40px;
  text-align: right;
  font-style: italic;
  font-size: 1rem;
  color: #B5848F;
  letter-spacing: 0.1em;
}
#ours-reader .signature::before { content: "—— "; color: #8A8273; }
#ours-reader hr { border: none; border-top: 1px dashed #382E3F; margin: 28px 0; }

::-webkit-scrollbar { width: 0; }

/* ── Period tracker ── */
.period-card { text-align: center; }
.period-title { font-size: 1.35rem; font-weight: 600; letter-spacing: 3px; margin-top: 4px; font-family: 'Songti SC', 'Noto Serif SC', 'STSong', serif; }
.period-title em { font-style: normal; color: #e46a8b; }
.period-sub { font-size: .72rem; opacity: .45; letter-spacing: 3px; margin: 6px 0 16px; }
.period-hero { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 18px; font-size: 1.15rem; font-family: 'Songti SC', 'Noto Serif SC', 'STSong', serif; }
.period-emoji { font-size: 30px; line-height: 1; }
.period-hero-text b { font-size: 2rem; color: #e46a8b; font-weight: 700; margin: 0 3px; font-family: 'Didot', 'Songti SC', serif; }
.period-stats { display: flex; gap: 10px; margin: 4px 0 12px; }
.period-stat { flex: 1; background: rgba(255,255,255,.045); border-radius: 14px; padding: 14px 6px; }
.period-stat-label { font-size: .72rem; opacity: .5; letter-spacing: 1px; }
.period-stat-value { font-size: 1.25rem; font-weight: 600; margin-top: 6px; }
.period-next { font-size: 13px; opacity: .8; margin: 6px 0; }
.period-pms { font-size: 13px; background: rgba(255,180,80,.12); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.period-actions { display: flex; gap: 10px; margin: 10px 0 4px; }
.period-btn { flex: 1; padding: 9px 0; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; background: rgba(255,120,150,.16); color: inherit; }
.period-btn:active { transform: scale(.97); }
.period-history { margin-top: 8px; }
.period-hist-row { font-size: 12px; opacity: .55; padding: 2px 0; }
