@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f3f7ff;
  --ink: #172b4d;
  --muted: #60718e;
  --primary: #2563eb;
  --line: #dce5f4;
  --achieved: #10b88a;
  --quick: #fac327;
  --multiple: #f23e65;
  --resisted: #cef5e4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #3b82f6; outline-offset: 5px; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { width: min(1060px, calc(100% - 80px)); margin: auto; padding-bottom: 125px; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 0 29px; border-bottom: 1px solid #dce5f4; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { box-shadow: 0 4px 12px #2563eb26; width: 43px; height: 43px; display: grid; place-items: center; background: #2563eb; border-radius: 14px; }
.brand-mark svg { width: 31px; height: 31px; fill: #ffffff; }
.brand-name { display: flex; flex-direction: column; gap: 3px; font-size: 23px; font-weight: 650; letter-spacing: 4px; }
.brand-name > span { font-size: 10px; font-weight: 400; letter-spacing: 2px; color: #60718e; }
.privacy-badge { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #526987; letter-spacing: .5px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 4px #dceaff; margin-right: 4px; }
.page { animation: page-in .38s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 39px 0 31px; }
.eyebrow { font-size: 9px; font-weight: 550; letter-spacing: 2.2px; color: #5478ad; display: flex; gap: 8px; align-items: center; }
.eyebrow > span:not(.heading-dot) { height: 5px; width: 5px; background: #3b82f6; border-radius: 50%; }
h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.5; letter-spacing: .8px; font-weight: 550; margin: 12px 0 8px; }
h1 > span { color: #2563eb; }
.intro-copy { font-size: 12px; color: #60718e; letter-spacing: .7px; line-height: 1.8; }
.date-block { display: flex; flex-direction: column; align-items: center; min-width: 73px; padding-left: 25px; border-left: 1px solid #d7e3f5; }
.date-block > span { font-size: 10px; color: #5a7397; letter-spacing: 1px; }
.date-block strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 41px; line-height: 1.25; color: #2453a6; }

.checkin-card { box-shadow: 0 8px 28px #2d66c408; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #c8dcff; border-radius: 25px; background: #e7efff; background-image: radial-gradient(ellipse at 0 100%, #c8dfffc2, transparent 60%), radial-gradient(ellipse at 100% 0, #f0f6ff, transparent 60%); }
.checkin-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 28px; }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #3d6094; letter-spacing: 1px; }
.section-label .icon { width: 16px; height: 16px; }
.today-status { background: #ffffffcc; border: 1px solid #c5d9f8; border-radius: 20px; padding: 6px 11px; font-size: 10px; color: #42679d; white-space: nowrap; }
.ambient { position: absolute; border: 1px solid #6ba0f52e; width: 390px; height: 390px; border-radius: 50%; z-index: -1; pointer-events: none; }
.ambient-one { left: -225px; top: 80px; box-shadow: 0 0 0 36px #a5c8ff40, 0 0 0 72px #b0d0ff28; }
.ambient-two { right: -270px; top: -200px; box-shadow: 0 0 0 42px #a5c8ff33, 0 0 0 84px #bed8ff26; }
.actions { display: flex; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 57px); padding: 31px 24px 29px; }
.action-group { display: flex; flex-direction: column; align-items: center; }
.hold-orbit { --accent: #2563eb; width: 212px; height: 212px; position: relative; display: grid; place-items: center; }
.released-group .hold-orbit { --accent: #0879ca; }
.breathing-ring { position: absolute; inset: 5px; border: 1px solid #4588f58c; border-radius: 50%; animation: breathe 4.5s ease-out infinite; pointer-events: none; }
.breathing-ring-two { animation-delay: 2.25s; }
.released-group .breathing-ring { border-color: #368ed580; animation-delay: .9s; }
.released-group .breathing-ring-two { animation-delay: 3.15s; }
@keyframes breathe { 0% { transform: scale(.96); opacity: .7; } 100% { transform: scale(1.19); opacity: 0; } }
.hold-progress { width: 100%; height: 100%; position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; pointer-events: none; }
.hold-progress circle { fill: none; stroke-width: 1; }
.hold-progress .progress-track { stroke: #77a7f58c; }
.released-group .progress-track { stroke: #79bae08c; }
.hold-progress .progress-value { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.hold-button { position: relative; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: transform .2s, box-shadow .2s, filter .2s; outline-offset: 13px !important; }
.resisted-button { color: #ffffff; background: radial-gradient(circle at 30% 20%, #377bf5, #2563eb 70%, #1d4ed8); box-shadow: inset 0 2px 5px #ffffff55, 0 12px 25px #2563eb38; }
.released-button { color: #ffffff; background: radial-gradient(circle at 30% 20%, #3397e8, #1578c8 75%, #0a61ab); box-shadow: inset 0 2px 5px #ffffff55, 0 12px 25px #147acb30; }
.hold-button:hover { filter: brightness(1.015); transform: translateY(-2px); }
.action-symbol { display: flex; align-items: center; justify-content: center; margin-bottom: 1px; }
.action-symbol .icon { width: 30px; height: 30px; stroke-width: 1.35; }
.hold-button strong { font-size: 24px; letter-spacing: 3px; font-weight: 550; }
.hold-button-hint { font-size: 10px; letter-spacing: .9px; opacity: .94; }
.hold-button-count { display: none; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.hold-orbit.holding .hold-button { transform: scale(.96); box-shadow: inset 0 3px 12px #13388645; }
.hold-orbit.holding .breathing-ring { animation-play-state: paused; opacity: 0; }
.hold-orbit.holding .hold-button-hint { display: none; }
.hold-orbit.holding .hold-button-count { display: inline; }
.hold-orbit.completed { animation: complete-pulse .45s ease; }
@keyframes complete-pulse { 50% { transform: scale(1.045); } }
.action-caption { margin-top: 26px; color: #466796; font-size: 11px; display: flex; align-items: center; gap: 6px; letter-spacing: .3px; }
.released-group .action-caption { color: #46749a; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; }
.mini-dot.mint { background: #397cf0; }
.mini-dot.amber { background: #178bcf; }
.action-divider { color: #6782a6; font-size: 10px; line-height: 2; letter-spacing: 2px; text-align: center; margin-top: -33px; }
.hold-instructions { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 17px 12px 20px; border-top: 1px solid #bcd2f580; color: #57749a; font-size: 10px; letter-spacing: .5px; }
.hold-instructions .icon { width: 13px; height: 13px; }
.hold-instructions b { font-weight: 500; color: #355e9b; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 21px; }
.stat-card { min-width: 0; background: #ffffff; border: 1px solid #dce6f7; padding: 20px 23px 18px; border-radius: 17px; text-align: left; }
.stat-heading { display: flex; align-items: center; justify-content: space-between; color: #546b8d; font-size: 11px; letter-spacing: .5px; }
.stat-heading .icon { width: 16px; height: 16px; color: #4e82d7; }
.stat-number { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.stat-number strong { font-size: 32px; line-height: 1.2; font-weight: 450; font-family: "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; color: #2156b0; }
.stat-number > span { font-size: 11px; color: #617694; }
.stat-card > p { font-size: 10px; margin-top: 9px; line-height: 1.7; color: #677993; letter-spacing: .3px; }
.goal-card { transition: background .2s, border-color .2s; }
.goal-card:hover { background: #eaf2ff; border-color: #a9c8fa; }
.stat-number .edit-goal { font-size: 9px; display: flex; align-items: center; gap: 2px; margin-left: auto; color: #4078c6; }
.edit-goal .icon { width: 11px; height: 11px; }
.today-journal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 2px 21px; }
.today-journal > div { display: flex; align-items: center; gap: 12px; }
.journal-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #cfddf4; border-radius: 12px; color: #3474d2; }
.journal-icon .icon { width: 18px; height: 18px; }
.today-journal h2 { font-size: 11px; font-weight: 500; letter-spacing: .7px; }
.today-journal p { font-size: 10px; margin-top: 6px; color: #617694; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: #2563d9; background: none; padding: 8px 0 8px 8px; white-space: nowrap; }
.text-button .icon { width: 13px; height: 13px; }
.text-button:hover { color: #1744a6; }
.home-footnote { font-size: 9px; color: #71829d; display: flex; align-items: center; justify-content: center; gap: 5px; letter-spacing: .4px; margin-top: 13px; }
.home-footnote .icon { width: 12px; height: 12px; }
.bottom-nav { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 5px; padding: 6px; background: #fffffff0; border: 1px solid #d6e3f7; box-shadow: 0 6px 35px #2458af18, 0 1px 4px #2458af0a; backdrop-filter: blur(18px); border-radius: 24px; }
.nav-tab { background: none; display: flex; align-items: center; justify-content: center; gap: 9px; width: 127px; height: 47px; border-radius: 18px; color: #697d9e; font-size: 12px; transition: background .2s, color .2s; }
.nav-tab .icon { width: 18px; height: 18px; }
.nav-tab.active { background: var(--primary); color: #ffffff; box-shadow: 0 3px 9px #2563eb25; }
.nav-tab:not(.active):hover { background: #edf3ff; }

.calendar-intro { padding-bottom: 29px; }
.calendar-intro h1 { font-size: 35px; }
.heading-dot { color: #3b82f6; font-family: Georgia, serif; margin-left: 4px; }
.goal-pill { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 12px; border: 1px solid #bfd3f6; background: transparent; font-size: 10px; color: #4c6e9d; white-space: nowrap; }
.goal-pill:hover { background: #e2eeff; }
.goal-pill .icon { width: 15px; height: 15px; margin-right: 3px; }
.goal-pill b { color: #215bc1; font-size: 12px; font-weight: 600; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 23px; align-items: start; }
.calendar-card, .legend-card, .day-detail { background: #fffffff0; border: 1px solid #dce6f7; border-radius: 21px; }
.calendar-card { padding: 23px 26px 0; }
.month-navigation { display: flex; align-items: center; justify-content: space-between; padding-bottom: 23px; }
.month-navigation h2 { font-size: 18px; font-weight: 550; letter-spacing: 1px; }
.icon-button { height: 34px; width: 34px; display: grid; place-items: center; background: #edf3ff; border: 1px solid #dce6f7; border-radius: 10px; color: #355e9b; }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover:not(:disabled) { background: #dceaff; }
.icon-button:disabled { opacity: .28; }
.rotate { transform: rotate(180deg); }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.weekdays { margin-bottom: 15px; text-align: center; font-size: 11px; color: #667c9c; }
.weekdays span { padding: 5px 0; }
.day-cell { position: relative; border-radius: 12px; aspect-ratio: 1; background: transparent; display: grid; place-items: center; font-size: 16px; color: #344e73; transition: background .15s, box-shadow .15s, transform .15s; isolation: isolate; }
.day-cell:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 10px #2458af18; }
.day-cell.empty:not(:disabled):hover { background: #e9f2ff; }
.day-cell.future { color: #b2c0d5; }
.day-cell.achieved, .legend-swatch.achieved { background: var(--achieved); color: white; }
.day-cell.quick, .legend-swatch.quick { background: var(--quick); color: #fff; }
.day-cell.multiple, .legend-swatch.multiple { background: var(--multiple); color: white; }
.day-cell.resisted, .legend-swatch.resisted { background: var(--resisted); color: #27775d; }
.day-cell.is-today::after { content: ""; position: absolute; inset: -3px; border: 2px solid #3b82f6; border-radius: 15px; pointer-events: none; }
.day-cell.is-selected::before { content: ""; position: absolute; left: calc(50% - 2px); bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.day-count { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 12px; border: 2px solid white; background: #df2d54; color: white; display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.calendar-bottom { margin-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.calendar-bottom > span { color: #71829d; font-size: 9px; }
.month-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e3ebf8; padding: 19px 0 21px; margin-top: 14px; }
.month-summary > div { text-align: center; display: flex; align-items: center; justify-content: center; gap: 9px; }
.month-summary > div + div { border-left: 1px solid #e3ebf8; }
.month-summary strong { font-size: 20px; font-weight: 500; color: #285db8; }
.month-summary span { font-size: 10px; color: #647998; }
.legend-card { padding: 26px 23px 21px; }
.legend-card .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
.legend-card > h2 { font-size: 15px; font-weight: 550; margin: 11px 0 28px; letter-spacing: .3px; }
.legend-item { display: flex; align-items: start; gap: 12px; margin: 21px 0; }
.legend-swatch { width: 25px; height: 25px; border-radius: 7px; flex-shrink: 0; margin-top: 1px; }
.legend-swatch.today { border: 2px solid #3b82f6; }
.legend-item h3 { font-size: 12px; font-weight: 500; line-height: 1.8; }
.legend-item p { color: #637590; font-size: 10px; line-height: 1.95; margin-top: 3px; }
.legend-footnote { color: #5e779e; font-size: 10px; letter-spacing: .7px; line-height: 2; border-top: 1px solid #dce6f7; padding-top: 19px; margin-top: 23px; }
.day-detail { margin-top: 19px; padding: 20px 23px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-heading h2 { font-size: 12px; font-weight: 550; }
.detail-heading > span { color: #627c9f; font-size: 9px; }
.empty-records { padding: 22px 0 8px; display: flex; align-items: center; gap: 10px; color: #6b7e9b; font-size: 11px; line-height: 1.8; }
.empty-records .icon { width: 20px; height: 20px; opacity: .7; }
.record-list { margin: 12px 0 0; padding: 0; list-style: none; }
.record-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.record-row + .record-row { border-top: 1px solid #eaf0fb; }
.record-type-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: #e3eeff; color: #326fd0; }
.record-type-icon.released { background: #e4f2ff; color: #167fbf; }
.record-type-icon .icon { width: 17px; height: 17px; }
.record-title { font-size: 11px; color: #355c94; }
.record-time { font-size: 10px; color: #6f819c; margin-left: auto; font-variant-numeric: tabular-nums; }
.delete-record { background: none; color: #8b9ebb; display: grid; place-items: center; padding: 7px; border-radius: 7px; }
.delete-record:hover { background: #fcf0eb; color: #bc8875; }
.delete-record .icon { width: 14px; height: 14px; }
.calendar-page > .home-footnote { margin-top: 25px; }

.toast { position: fixed; z-index: 30; bottom: calc(100px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: #1749a6; color: #ffffff; border-radius: 15px; box-shadow: 0 8px 32px #1749a633; font-size: 12px; }
.toast-icon { display: flex; color: #c3dfff; }
.toast-icon .icon { width: 19px; height: 19px; }
#toast-message { line-height: 1.7; }
#toast-undo { color: #d7eaff; border-left: 1px solid #7598d9; padding: 3px 0 3px 12px; background: none; font-size: 11px; white-space: nowrap; }
.toast-close { background: none; display: flex; color: #c3d7f7; padding: 3px; }
.toast-close .icon { width: 15px; height: 15px; }
.modal { width: min(430px, calc(100% - 36px)); border: 1px solid #d2e0f5; border-radius: 24px; padding: 29px; color: var(--ink); background: #fbfdff; box-shadow: 0 25px 100px #14336330; max-height: calc(100dvh - 48px); overflow: auto; }
.modal::backdrop { background: #18345b55; backdrop-filter: blur(5px); }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.modal-symbol { background: #e2edff; border-radius: 15px; display: grid; place-items: center; width: 48px; height: 48px; color: #2563eb; }
.modal h2 { font-size: 23px; font-weight: 550; line-height: 1.5; margin: 11px 0 13px; }
.modal-copy { font-size: 12px; line-height: 2; color: #5f7494; margin-bottom: 22px; }
.modal label { font-size: 11px; color: #42669d; }
.goal-input-wrap { display: flex; align-items: center; border: 1px solid #bfd4f5; border-radius: 12px; background: white; margin-top: 8px; padding-right: 18px; color: #6580a5; font-size: 12px; }
.goal-input-wrap input { width: 100%; min-width: 0; border: 0; background: none; color: #245cb5; padding: 13px 16px; font-size: 23px; border-radius: 12px; }
.goal-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.goal-presets button { border-radius: 8px; background: #e7efff; color: #5776a4; padding: 9px 0; font-size: 11px; border: 1px solid transparent; }
.goal-presets button.selected { color: #1d4ed8; border-color: #80aef8; background: #dceaff; }
.modal-note { color: #6d809d; font-size: 10px; line-height: 1.9; margin: 19px 0; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 12px; font-size: 12px; background: #2563eb; color: #ffffff; }
.primary-button:hover { background: #1d4ed8; }
.primary-button .icon { width: 15px; height: 15px; }
.secondary-button { color: #456898; background: #e9f1ff; }
.dialog-actions { display: flex; gap: 12px; }
.storage-warning { margin-top: 20px; padding: 15px 20px; background: #fff0d6; color: #927036; border: 1px solid #ebd1a3; font-size: 12px; line-height: 1.8; border-radius: 12px; }
.noscript-message { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 30px; background: var(--page); color: var(--ink); }

@media (min-width: 1280px) {
  .app-shell { width: 1000px; }
  .app-header { padding-top: 38px; }
  .page-intro { padding-top: 43px; padding-bottom: 34px; }
  .actions { gap: 66px; padding-top: 29px; padding-bottom: 29px; }
}

@media (max-width: 900px) {
  .app-shell { width: calc(100% - 48px); }
  .calendar-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
  .calendar-card { padding: 20px 18px 0; }
  .calendar-grid, .weekdays { gap: 7px; }
  .legend-card { padding: 23px 18px; }
  .day-cell { border-radius: 9px; font-size: 14px; }
  .day-cell.is-today::after { border-radius: 12px; }
  .legend-item { gap: 9px; }
  .month-summary > div { gap: 6px; }
  .month-summary span { font-size: 9px; }
}

@media (max-width: 640px) {
  .app-shell { width: calc(100% - 36px); padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .app-header { padding: 23px 2px 22px; }
  .brand { gap: 9px; }
  .brand-mark { box-shadow: 0 4px 12px #2563eb26; width: 37px; height: 37px; border-radius: 12px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .brand-name { font-size: 20px; gap: 3px; letter-spacing: 3px; }
  .brand-name > span { font-size: 8px; letter-spacing: 1.3px; }
  .privacy-badge { font-size: 8px; letter-spacing: 0; gap: 4px; }
  .status-dot { width: 4px; height: 4px; margin-right: 3px; box-shadow: 0 0 0 3px #dceaff; }
  .page-intro { padding: 30px 3px 25px; gap: 12px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.6px; }
  h1 { font-size: 27px; line-height: 1.5; margin: 12px 0 9px; letter-spacing: .4px; }
  #home-title > span { display: block; }
  .intro-copy { font-size: 10px; letter-spacing: 0; line-height: 1.9; max-width: 270px; }
  .date-block { min-width: 48px; padding-left: 14px; align-self: flex-start; margin-top: 24px; }
  .date-block strong { font-size: 32px; }
  .date-block > span { font-size: 8px; white-space: nowrap; letter-spacing: 0; }
  .checkin-card { border-radius: 21px; }
  .checkin-topline { padding: 18px 16px; gap: 7px; }
  .section-label { font-size: 9px; letter-spacing: .3px; gap: 5px; }
  .section-label .icon { width: 13px; height: 13px; }
  .today-status { font-size: 8px; padding: 5px 7px; }
  .actions { gap: 25px; padding: 28px 12px 24px; }
  .hold-orbit { width: clamp(115px, 33.5vw, 186px); height: clamp(115px, 33.5vw, 186px); }
  .hold-button { width: calc(100% - 14px); height: calc(100% - 14px); gap: 8px; }
  .hold-button strong { font-size: 20px; letter-spacing: 2px; }
  .hold-button-hint { font-size: 8px; letter-spacing: .2px; }
  .action-symbol .icon { width: 23px; height: 23px; }
  .hold-button-count { font-size: 11px; }
  .action-divider { display: none; }
  .action-caption { margin-top: 23px; font-size: 8px; letter-spacing: -.1px; gap: 4px; }
  .mini-dot { width: 4px; height: 4px; }
  .hold-instructions { font-size: 8px; gap: 4px; padding: 15px 10px; letter-spacing: .1px; }
  .hold-instructions .icon { width: 12px; height: 12px; }
  .stats-grid { margin-top: 15px; gap: 9px; }
  .stat-card { border-radius: 14px; padding: 15px 12px 13px; }
  .stat-heading { font-size: 9px; letter-spacing: 0; }
  .stat-heading .icon { width: 13px; height: 13px; }
  .stat-number { margin-top: 11px; gap: 5px; }
  .stat-number strong { font-size: 28px; }
  .stat-number > span { font-size: 9px; }
  .stat-card > p { font-size: 8px; letter-spacing: 0; margin-top: 8px; line-height: 1.8; }
  .stat-number .edit-goal { font-size: 0; gap: 0; }
  .edit-goal .icon { width: 12px; height: 12px; }
  .today-journal { padding: 23px 3px 14px; gap: 8px; }
  .today-journal > div { gap: 9px; }
  .journal-icon { width: 32px; height: 32px; border-radius: 10px; }
  .journal-icon .icon { width: 16px; height: 16px; }
  .today-journal h2 { font-size: 10px; letter-spacing: .2px; }
  .today-journal p { font-size: 8px; margin-top: 5px; line-height: 1.8; }
  .text-button { font-size: 9px; gap: 3px; }
  .text-button .icon { width: 11px; height: 11px; }
  .home-footnote { font-size: 8px; margin-top: 19px; letter-spacing: 0; }
  .bottom-nav { padding: 5px; border-radius: 22px; bottom: calc(15px + env(safe-area-inset-bottom)); }
  .nav-tab { width: 118px; height: 44px; font-size: 11px; border-radius: 17px; }
  .nav-tab .icon { width: 18px; height: 18px; }
  .calendar-intro h1 { font-size: 29px; }
  .calendar-intro { align-items: center; }
  .calendar-intro .intro-copy { font-size: 10px; }
  .goal-pill { font-size: 8px; padding: 9px; gap: 4px; align-self: center; }
  .goal-pill .icon { width: 12px; height: 12px; margin: 0; }
  .goal-pill b { font-size: 11px; }
  .calendar-layout { display: flex; flex-direction: column; gap: 17px; }
  .calendar-main { width: 100%; }
  .calendar-card { padding: 20px 17px 0; border-radius: 19px; }
  .month-navigation { padding-bottom: 20px; }
  .month-navigation h2 { font-size: 17px; }
  .icon-button { width: 31px; height: 31px; border-radius: 9px; }
  .weekdays { margin-bottom: 12px; font-size: 10px; }
  .calendar-grid, .weekdays { gap: 7px; }
  .day-cell { font-size: 14px; border-radius: 9px; }
  .day-cell.is-today::after { border-radius: 12px; inset: -3px; }
  .day-count { height: 18px; min-width: 18px; font-size: 9px; padding: 0 3px; }
  .calendar-bottom { margin-top: 13px; }
  .calendar-bottom > span { font-size: 8px; }
  .month-summary { margin-top: 10px; padding: 16px 0 19px; }
  .month-summary strong { font-size: 19px; }
  .month-summary span { font-size: 9px; }
  .day-detail { margin-top: 15px; border-radius: 17px; padding: 19px; }
  .empty-records { font-size: 10px; padding: 19px 0 5px; }
  .legend-card { width: 100%; padding: 23px 21px; border-radius: 19px; }
  .legend-card > h2 { margin-bottom: 24px; font-size: 15px; }
  .legend-item { margin: 19px 0; gap: 12px; }
  .legend-swatch { width: 26px; height: 26px; border-radius: 7px; }
  .legend-item h3 { font-size: 12px; }
  .legend-item p { font-size: 10px; }
  .legend-footnote { margin-top: 22px; padding-top: 17px; }
  .toast { bottom: calc(89px + env(safe-area-inset-bottom)); gap: 8px; padding: 12px; font-size: 11px; }
  .modal { padding: 24px; }
  .modal h2 { font-size: 21px; }
}

@media (max-width: 360px) {
  .app-shell { width: calc(100% - 28px); }
  h1 { font-size: 24px; }
  .privacy-badge { font-size: 7px; }
  .actions { gap: 18px; padding-left: 6px; padding-right: 6px; }
  .hold-orbit { width: 116px; height: 116px; }
  .hold-button strong { font-size: 18px; }
  .hold-button-hint { font-size: 7px; }
  .action-caption { font-size: 7px; }
  .stat-card { padding-left: 9px; padding-right: 9px; }
  .stat-heading { font-size: 8px; }
  .stat-card > p { font-size: 7px; }
  .today-journal p { max-width: 158px; }
  .goal-pill { padding: 8px 6px; }
  .goal-pill .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
