@charset "UTF-8";

:root {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #26352b;
  background: #e9ece4;
  font-synthesis: none;
  --paper: #f8f6ef;
  --ink: #26352b;
  --muted: #536558;
  --line: #dcded3;
  --sage: #789b72;
  --sage-deep: #436e53;
  --sage-pale: #e8efe2;
  --warm: #f3efe4;
  --negative: #a86458;
  --negative-pale: #f8ede8;
  --shadow: 0 22px 65px #374c3717;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, textarea, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: var(--sage-deep); }
button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible, .timeline-viewport:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 30; padding: 9px 13px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.page-wrap {
  min-height: 100dvh;
  padding: 20px 14px 58px;
  background: radial-gradient(circle at 18% 2%, #f8f4e8 0, transparent 28%), #e9ece4;
}
.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 32px 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 0; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.brand-mark { color: var(--sage); font-family: Georgia, serif; font-size: 31px; line-height: 20px; font-weight: 400; }
.icon-button, .history-link, .text-button {
  border: 0; background: none; color: var(--sage-deep); font-size: 13px; font-weight: 600;
  transition: color .24s ease, transform .24s ease;
}
.icon-button { min-height: 44px; padding: 9px 0 9px 8px; }
.icon-button:hover, .history-link:hover, .text-button:hover { color: var(--ink); }
.icon-button:active, .history-link:active, .text-button:active { transform: translateY(1px); }
.mini-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .09em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }

/* The clock is the first and strongest visual anchor. */
.sprint-card { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.sprint-card .mini-label { margin-bottom: 13px; }
.sprint-card h1 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.35; }
.sprint-target { margin: 15px 0 0; color: var(--sage-deep); font-size: 12px; font-weight: 600; }
.sprint-timer {
  margin: 1px 0 9px;
  color: #1e2b22;
  font: 400 clamp(64px, 14vw, 94px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sprint-context { max-width: 39ch; min-height: 37px; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.day-thirds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.third { display: flex; flex-direction: column-reverse; gap: 9px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.third i { display: block; height: 5px; border-radius: 8px; background: #deded5; overflow: hidden; }
.third i::before { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--sage); transform: scaleX(var(--fill-scale, 0)); transform-origin: left; transition: transform .9s linear; }
.third.active { color: var(--sage-deep); font-weight: 600; }
.stage-countdown, .hour-countdown, .sprint-footnote { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stage-countdown { margin-top: 17px; color: #4d6251; }
.sprint-footnote { margin-top: 11px; }

/* Quiet writing space and a reusable liquid vessel. */
.whisper-card { position: relative; padding: 33px 0 34px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.history-link { min-height: 44px; padding: 10px 0 10px 10px; white-space: nowrap; }
.history-link span { font-size: 15px; }
.whisper-workspace { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: end; gap: 8px; min-height: 258px; margin-top: 11px; }
.whisper-entry { z-index: 1; align-self: end; padding-bottom: 10px; }
.whisper-entry label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.whisper-entry textarea {
  display: block; width: 100%; min-height: 132px; resize: vertical; padding: 12px 13px;
  color: var(--ink); background: #fbfaf6; border: 1px solid #d9dbd0; border-radius: 15px;
  font-size: 14px; line-height: 1.6; box-shadow: 0 8px 18px #63765e09;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.whisper-entry textarea::placeholder { color: #68796a; }
.whisper-entry textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px #86a47a1e; outline: none; }
.primary-button {
  min-height: 44px; padding: 10px 17px; border: 1px solid var(--sage-deep); border-radius: 13px;
  background: var(--sage-deep); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 13px #496d4c18;
  transition: background .24s ease, transform .24s ease, box-shadow .24s ease;
}
.primary-button:hover { background: #355f44; box-shadow: 0 8px 18px #496d4c24; }
.primary-button:active { transform: translateY(1px) scale(.985); }
.whisper-entry .primary-button { width: 100%; margin-top: 12px; }
.whisper-entry-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.potion-jar {
  position: relative; display: block; align-self: end; width: 100%; height: 258px;
  padding: 0; border: 0; background: transparent; filter: drop-shadow(7px 13px 13px #758a6a1b);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
.potion-jar:hover { transform: translateY(-2px); filter: drop-shadow(9px 17px 16px #758a6a2b); }
.potion-jar:active { transform: translateY(1px) scale(.985); }
.flask { display: block; width: 100%; height: 100%; overflow: visible; }
.flask-shadow { fill: #596c582a; filter: url(#flask-soft); }
.flask-base { fill: url(#flask-glass); stroke: #82968790; stroke-width: 6; }
.flask-body { fill: url(#flask-glass); stroke: url(#flask-edge); stroke-width: 5; }
.flask-volume { fill: url(#flask-volume); opacity: .7; }
.flask-rim-shadow { fill: none; stroke: #5f766372; stroke-width: 3; }
.flask-inner-edge { fill: none; stroke: #fff9; stroke-width: 3; }
.flask-highlight { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; opacity: .8; }
.flask-highlight.right { stroke-width: 5; opacity: .5; }
.flask-lip { fill: #ffffffb8; stroke: url(#flask-edge); stroke-width: 5; }
.flask-mouth { fill: #f8f6ef95; stroke: #91a4959c; stroke-width: 2; }
.flask-bottom-highlight { fill: none; stroke: #fff9; stroke-width: 6; stroke-linecap: round; }
.flask-fluid { transform: translateY(calc(100% - var(--fill, 0%))); transform-box: fill-box; transform-origin: center bottom; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.flask-liquid-depth { mix-blend-mode: multiply; opacity: .38; }
.flask-bubble { fill: #fff9; stroke: #fff8; stroke-width: 1; opacity: 0; }
.potion-jar.has-potion .flask-bubble { opacity: .7; animation: flask-bubble 2.8s ease-in-out infinite; }
.potion-jar.has-potion .bubble-two { animation-delay: .7s; }
.potion-jar.has-potion .bubble-three { animation-delay: 1.4s; }
.flask-pour { opacity: 0; stroke-dasharray: 230; stroke-dashoffset: 230; }
.potion-jar.pouring .flask-pour { animation: flask-pour .95s ease-out both; }
.potion-jar.draining .flask-fluid { transform: translateY(100%); transition-duration: .75s; transition-timing-function: cubic-bezier(.7,0,1,.7); }
.potion-jar.draining { animation: flask-drain .75s ease-in-out; }
@keyframes flask-pour { 0% { opacity: 0; stroke-dashoffset: 230; } 20% { opacity: .9; } 70% { opacity: .85; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes flask-bubble { 0% { transform: translateY(4px); opacity: .2; } 60% { opacity: .7; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes flask-drain { 50% { transform: rotate(1.5deg); } }
.potion-caption { margin: 0; color: var(--sage-deep); font-size: 12px; font-weight: 600; }
.quiet-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* A single ruler carries the entire 90-day journey. */
.timeline-card { padding: 34px 0 36px; border-bottom: 1px solid var(--line); }
.timeline-heading { align-items: center; }
.journey-count { color: var(--sage-deep); font: 500 24px/1.1 Georgia, serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 13px; margin-top: 17px; }
.timeline-status strong { font-size: 20px; font-weight: 600; }
.timeline-status span { color: var(--sage-deep); font-size: 13px; }
.timeline-summary { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.timeline-range { margin: 18px 0 0; color: var(--sage-deep); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; margin-top: 0; padding: 22px 0 2px; scrollbar-width: thin; scrollbar-color: #93ac8b transparent; touch-action: pan-x; }
.timeline-track { position: relative; width: 300%; height: 49px; }
.timeline-progress-base { position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: #d8ddcf; border-radius: 3px; }
.timeline-progress-fill { display: block; width: 100%; height: 100%; background: var(--sage); border-radius: 3px; transform-origin: left; transition: transform .6s cubic-bezier(.2,.75,.3,1); }
.timeline-marker { position: absolute; top: -9px; width: 19px; height: 19px; border: 5px solid var(--sage-deep); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px #f8f6ef; transform: translateX(-50%); transition: left .6s cubic-bezier(.2,.75,.3,1); }
.timeline-marker.at-start { transform: none; }
.timeline-marker.at-end { transform: translateX(-100%); }
.timeline-ruler { position: absolute; inset: 25px 0 0; }
.timeline-ruler span { position: absolute; top: 0; transform: translateX(-50%); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.timeline-ruler span::before { content: ""; display: block; width: 1px; height: 6px; margin: 0 auto 3px; background: #bac5b6; }
.timeline-ruler span:first-child { transform: none; }
.timeline-ruler span:last-child { transform: translateX(-100%); }
.timeline-ruler .major-tick { color: var(--sage-deep); font-weight: 600; }
.timeline-ruler .major-tick::before { height: 8px; background: var(--sage-deep); }
.timeline-hint { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.timeline-current { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.daily-experience { min-width: 0; padding: 16px; background: #f0f3e9; border-radius: 16px; }
.daily-experience.is-next { background: #f4f1e9; }
.daily-experience-eyebrow { margin: 0 0 7px; color: var(--sage-deep); font-size: 12px; font-weight: 600; }
.daily-experience h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.3; }
.daily-experience-phase { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.daily-experience .target-chip-section { margin-top: 13px; }
.daily-experience .target-chip-section h3 { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.daily-experience .effect-chips { gap: 5px; }
.daily-experience .effect-chip { min-height: 32px; padding: 6px 8px; border-radius: 7px; font-size: 12px; text-align: left; }
.daily-experience-empty { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stage-detail-link { padding: 8px 0 0; }
.timeline-actions { margin-top: 18px; }
.outline-button {
  min-height: 44px; padding: 9px 15px; border: 1px solid #c4d1c0; border-radius: 12px;
  color: var(--sage-deep); background: transparent; font-size: 13px; font-weight: 600;
  transition: border-color .23s ease, background .23s ease, transform .23s ease;
}
.outline-button:hover { border-color: var(--sage); background: #eef3e9; }
.outline-button:active { transform: translateY(1px) scale(.985); }

/* Dates and goal labels stay separate touch targets. */
.calendar-card { padding: 34px 0 36px; border-bottom: 1px solid var(--line); }
.calendar-top { align-items: center; }
.month-controls { display: flex; align-items: center; gap: 3px; color: var(--ink); white-space: nowrap; }
.month-controls span { min-width: 84px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.month-controls button { width: 38px; height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--sage-deep); font-size: 24px; line-height: 1; transition: background .2s ease, transform .2s ease; }
.month-controls button:not(:disabled):hover { background: var(--sage-pale); }
.month-controls button:not(:disabled):active { transform: scale(.92); }
.month-controls button:disabled { color: #c3c8bf; }
.cycle-summary { display: flex; align-items: center; gap: 16px; margin-top: 23px; padding: 13px 15px; background: #ecf0e6; border-radius: 12px; }
.cycle-summary strong { color: var(--sage-deep); font: 500 23px/1 Georgia, serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cycle-summary span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cycle-summary b { font-size: 13px; font-weight: 600; }
.cycle-summary small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.calendar-instruction { margin: 17px 0 14px; color: var(--muted); font-size: 12px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekday-row { margin-bottom: 7px; color: var(--muted); text-align: center; font-size: 12px; }
.calendar-grid { align-items: stretch; }
.calendar-empty { min-height: 80px; }
.calendar-day-cell { min-width: 0; min-height: 80px; display: flex; flex-direction: column; align-items: stretch; padding: 2px; border: 1px solid transparent; border-radius: 10px; }
.calendar-day-cell.in-cycle { background: #eef1e8; }
.calendar-day-cell.history-cycle { background: #f0eee7; }
.calendar-day-cell.success { background: #e4eee0; }
.calendar-day-cell.event { background: var(--negative-pale); }
.calendar-day-cell.today { border-color: var(--sage-deep); }
.calendar-day-cell.key-day-cell { box-shadow: inset 0 0 0 1px #abc3a4; }
.calendar-date-button { position: relative; width: 100%; min-height: 42px; padding: 5px 1px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.1; font-variant-numeric: tabular-nums; transition: background .2s ease, transform .2s ease; }
.calendar-date-button:not(:disabled):hover { background: #fff9; }
.calendar-date-button:not(:disabled):active { transform: scale(.94); }
.calendar-date-button:disabled { color: #718076; }
.calendar-date-button.success { color: #315f3e; font-weight: 600; }
.calendar-date-button.event { color: var(--negative); }
.calendar-date-button i { position: absolute; top: 1px; right: 2px; font-size: 9px; font-style: normal; }
.calendar-target-button { display: block; width: 100%; min-height: 32px; margin-top: auto; padding: 3px 0; border: 1px solid #86a683; border-radius: 7px; background: #f8fbf5; color: #315d37; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .2s ease, transform .2s ease; }
.calendar-target-button.key { border-color: #3f704b; background: #d9ead2; color: #234d30; box-shadow: inset 0 -2px #79a774; }
.calendar-target-button.achieved { background: #b9d9af; }
.calendar-target-button:hover { background: #c9e0c0; }
.calendar-target-button:active { transform: scale(.94); }
.calendar-target-placeholder { display: block; min-height: 32px; }

/* Daily actions and the optional support action. */
.today-card { padding: 37px 0 30px; }
.status-tag { padding: 4px 0; color: var(--muted); font-size: 12px; }
.status-tag.success { color: var(--sage-deep); }
.status-tag.event { color: var(--negative); }
.today-date { margin: 10px 0 16px; color: var(--muted); font-size: 13px; }
.today-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.today-actions .outline-button { min-width: 88px; }
.urge-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 18px 19px; border: 1px solid #dfd8ca; border-radius: 15px; background: #f3eee3; color: var(--ink); text-align: left; transition: background .22s ease, transform .22s ease; }
.urge-button:hover { background: #eee7d8; }
.urge-button:active { transform: scale(.988); }
.urge-button strong, .urge-button small { display: block; }
.urge-button strong { font-size: 14px; font-weight: 600; }
.urge-button small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.urge-button .arrow { color: #7a9277; font-size: 22px; }
.site-footer { padding: 26px 0 3px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.site-footer button { min-height: 36px; padding: 4px; border: 0; background: none; color: var(--sage-deep); text-decoration: underline; }

/* Dialogs and detail flows. */
.modal { width: min(92vw, 480px); max-height: min(88dvh, 820px); padding: 25px; border: 1px solid #e5e4d9; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 75px #1c2b2447; overflow-y: auto; }
.modal::backdrop { background: #1f2d26a8; backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; line-height: 1.25; }
.modal-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #e9ede4; color: var(--ink); font-size: 24px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.modal-close:hover { background: #dae5d8; }
.modal-close:active { transform: scale(.94); }
.modal-subtitle, .settings-copy, .target-stage-description { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.success-choice { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px; border: 1px solid #cdd8c8; border-radius: 13px; background: #f4f7f0; color: var(--ink); text-align: left; }
.success-choice.active { border-color: var(--sage); background: #e3efdd; }
.choice-check { flex: 0 0 30px; display: grid; place-items: center; height: 30px; border-radius: 9px; background: #dce8d8; color: var(--sage-deep); }
.success-choice strong, .success-choice small { display: block; }
.success-choice strong { font-size: 13px; }
.success-choice small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.editor-divider { margin: 23px 0 9px; color: var(--muted); font-size: 12px; }
.event-field { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 65px; border-bottom: 1px solid var(--line); }
.event-field strong, .event-field small { display: block; }
.event-field strong { font-size: 13px; }
.event-field small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 8px; background: #e9eee4; color: var(--sage-deep); font-size: 19px; }
.stepper input { width: 45px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.sex-field input { width: 20px; height: 20px; accent-color: var(--sage-deep); }
.editor-hint { min-height: 38px; margin: 17px 0; color: var(--sage-deep); font-size: 12px; line-height: 1.6; }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-actions .primary-button { flex: 1; }
.modal-actions .text-button { padding: 10px 0; }
.target-progress-line { margin: 0 0 16px; padding: 10px 12px; background: #eaf0e4; border-radius: 10px; color: var(--sage-deep); font-size: 12px; }
.target-chip-section { margin: 18px 0; }
.target-chip-section h3 { margin: 0 0 9px; font-size: 12px; font-weight: 600; }
.effect-chips { display: flex; flex-wrap: wrap; align-items: start; gap: 7px; }
.effect-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid #b9d3b3; border-radius: 9px; background: #eaf3e7; color: #386943; font-size: 12px; line-height: 1.4; text-align: left; transition: transform .2s ease, background .2s ease; }
.effect-chip:hover { background: #d9ead3; }
.effect-chip:active { transform: scale(.97); }
.effect-chip.negative { border-color: #e1c8bf; background: var(--negative-pale); color: #9d564b; }
.effect-chip.negative:hover { background: #f4dfd8; }
.effect-chip span:first-child { flex: 0 0 auto; font-weight: 700; }
.no-effect-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.target-record-button { width: 100%; margin-top: 17px; }
.endpoint-inline-button { width: 100%; }
.source-note { margin: 0 0 14px; color: var(--ink); font-size: 12px; line-height: 1.7; }
.source-entry { padding: 15px 0; border-top: 1px solid var(--line); }
.source-entry h3 { margin: 0 0 7px; font-size: 13px; }
.source-entry p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-entry a { display: inline-block; min-height: 34px; margin-top: 9px; padding: 6px 0; font-size: 12px; }
.endpoint-item { padding: 17px 0; border-top: 1px solid var(--line); }
.endpoint-item h3 { margin: 0 0 5px; font-size: 16px; }
.endpoint-level, .endpoint-measure { margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.endpoint-item .effect-chips { margin-top: 12px; }
.show-more { display: block; margin: 13px auto; padding: 9px; }
.target-footnote { margin: 17px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.history-empty { color: var(--muted); font-size: 12px; }
.history-day { margin: 25px 0 5px; color: var(--sage-deep); font-size: 13px; }
.history-item { display: grid; grid-template-columns: 45px 1fr; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.history-text { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.urge-illustration { display: none; }
.urge-main, .urge-progress { color: var(--ink); font-size: 13px; line-height: 1.7; }
.urge-progress { padding: 15px; background: var(--sage-pale); border-radius: 12px; }
.urge-modal .primary-button { width: 100%; }
.settings-facts p { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.settings-facts strong { display: block; margin-bottom: 2px; color: var(--ink); }
.settings-action { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 57px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; transition: background .2s ease; }
.settings-action:hover { background: #eef1e9; }
.settings-action > span:first-child { width: 28px; color: var(--sage-deep); font-size: 23px; text-align: center; }
.settings-action strong, .settings-action small { display: block; }
.settings-action strong { font-size: 13px; }
.settings-action small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.danger-action > span:first-child, .danger-action strong { color: var(--negative); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 20px; width: max-content; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px #1e30225c; font-size: 12px; line-height: 1.4; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .page-wrap { padding: 0; background: var(--paper); }
  .app-shell { width: 100%; min-height: 100dvh; padding-inline: 22px; box-shadow: none; }
  .sprint-card { padding-top: 41px; }
  .sprint-timer { font-size: clamp(59px, 15.6vw, 82px); }
  .whisper-workspace { min-height: 248px; }
  .potion-jar { height: 248px; }
  .timeline-current { grid-template-columns: 1fr; gap: 9px; }
  .daily-experience { padding: 14px 16px; }
}
@media (max-width: 380px) {
  .app-shell { padding-inline: 16px; }
  .sprint-card { padding-top: 35px; }
  .sprint-timer { font-size: clamp(54px, 15.3vw, 68px); }
  .section-heading h2 { font-size: 21px; }
  .whisper-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 226px; }
  .potion-jar { height: 226px; }
  .whisper-entry textarea { min-height: 116px; padding: 10px; font-size: 14px; }
  .whisper-entry .primary-button { padding-inline: 8px; font-size: 12px; }
  .timeline-current { gap: 8px; }
  .daily-experience { padding: 12px 13px; }
  .weekday-row, .calendar-grid { gap: 2px; }
  .calendar-day-cell { padding: 1px; }
  .month-controls span { min-width: 64px; }
  .month-controls button { width: 34px; }
  .modal { width: min(96vw, 480px); padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
