@charset "UTF-8";:root{color-scheme:light;--surface: #fffaf7;--panel: #ffffff;--ink: #382c30;--muted: #75626a;--soft-ink: #806f75;--line: #eee3e3;--actual: #f2d8df;--forecast: #fbf0f2;--forecast-line: #b16b80;--accent: #9b4962;--accent-soft: #f8eaee;--danger: #a12f47;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:var(--ink);background:#f3edeb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button,input,select,summary{touch-action:manipulation}button{border:0;background:none}button:disabled{cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.calendar-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}.app-shell{width:100%;max-width:540px;height:100vh;height:100dvh;margin:0 auto;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);padding-top:env(safe-area-inset-top);box-shadow:0 0 80px #382c3008}.app-header{display:flex;align-items:center;justify-content:space-between;padding:25px 25px 19px;flex-shrink:0;gap:12px}.brand-block{display:flex;align-items:center;gap:12px}.brand-mark{width:40px;height:47px;display:grid;place-items:center;border-radius:20px 20px 17px 17px;background:#f4e1e7;color:var(--accent)}h1{font-size:12px;letter-spacing:2px;color:var(--muted);font-weight:500;margin-bottom:6px}.month-switch{padding:0;min-height:27px;display:flex;gap:6px;align-items:center;font-size:20px;font-weight:600;letter-spacing:-.4px;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:8px}.today-button{min-height:42px;min-width:54px;border:1px solid #e8d8dd;border-radius:22px;font-size:13px;padding:0 14px;background:#fffdfb}.icon-button{width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.settings-button{color:var(--muted)}.notice-card{position:relative;margin:0 22px 7px;padding:18px;border:1px solid #eedce2;border-radius:18px;background:#f9eeee;flex-shrink:0}.notice-heading{display:flex;align-items:center;gap:8px;padding-right:10px}.notice-heading h2{font-size:14px;font-weight:600;line-height:1.5;letter-spacing:.2px}.notice-heading>svg,.welcome-petal{color:var(--accent);flex-shrink:0}.welcome-petal{display:flex}.notice-card p{font-size:12px;line-height:1.9;color:var(--muted);margin:8px 0 11px 25px}.notice-actions{display:flex;align-items:center;gap:14px;margin-left:25px}.notice-close{position:absolute;width:30px;height:30px;right:5px;top:5px;color:var(--muted)}.small-primary{min-height:34px;border-radius:18px;padding:0 13px;display:inline-flex;align-items:center;gap:12px;background:var(--accent);color:#fff;font-size:12px}.text-button{min-height:40px;padding:8px 0;font-size:13px;color:var(--muted);line-height:1.6}.notice-actions .text-button{min-height:34px;font-size:12px}.auto-notice .notice-actions{margin:12px 0 0}.comparison-line{display:flex;align-items:baseline;gap:12px;margin-top:10px;font-size:12px;line-height:1.6}.comparison-line>span{color:var(--muted);white-space:nowrap}.comparison-line strong{font-weight:500}.calendar-meta{padding:14px 25px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.calendar-legend{display:flex;gap:16px}.calendar-legend>span{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);white-space:nowrap}.legend-band{display:inline-block;width:19px;height:10px;border-radius:8px}.legend-band.actual,.status-dot.actual{background:var(--actual);border:1px solid #d6a5b5}.legend-band.forecast,.status-dot.forecast{background:var(--forecast);border:1px dashed var(--forecast-line)}.scroll-hint{font-size:10px;color:var(--muted);white-space:nowrap}.weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin:0 20px;padding:8px 0 13px;flex-shrink:0;border-bottom:1px solid var(--line)}.weekdays span{text-align:center;color:var(--muted);font-size:12px;font-weight:400}.calendar-viewport{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:#e6d7db transparent;padding:0 20px env(safe-area-inset-bottom)}.calendar-month{padding:0 0 20px}.month-heading{height:64px;display:flex;align-items:center;gap:9px;padding:0 9px}.month-heading h2{font-size:26px;font-weight:500;letter-spacing:-1px}.month-heading h2 span{font-size:13px;margin-left:3px;letter-spacing:0;font-weight:400}.month-year{font-size:11px;color:var(--muted);padding-top:9px;letter-spacing:1px}.month-rule{height:1px;background:var(--line);flex:1;margin-left:10px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:var(--row-height)}.day-cell{position:relative;height:var(--row-height);min-width:0;padding:0;display:grid;place-items:center;border-radius:3px}.day-number{position:relative;z-index:1;width:33px;height:33px;display:grid;place-items:center;font-size:17px;font-weight:400;border:1px solid transparent;border-radius:50%}.is-today .day-number{border-color:var(--ink);font-weight:600}.period-band{position:absolute;left:0;right:0;height:38px;top:calc(50% - 19px);pointer-events:none}.period-band.actual{background:var(--actual)}.period-band.forecast{background:var(--forecast);border-top:1px dashed var(--forecast-line);border-bottom:1px dashed var(--forecast-line)}.period-band.band-start{border-radius:22px 0 0 22px;left:2px}.period-band.band-end{border-radius:0 22px 22px 0;right:2px}.period-band.band-start.band-end{border-radius:22px}.period-band.forecast.band-start{border-left:1px dashed var(--forecast-line)}.period-band.forecast.band-end{border-right:1px dashed var(--forecast-line)}.sheet{width:min(100%,540px);max-height:min(90dvh,900px);border:0;padding:0 0 env(safe-area-inset-bottom);margin:auto auto 0;border-radius:25px 25px 0 0;background:var(--panel);color:var(--ink);box-shadow:0 -12px 60px #382c3012;overflow-y:auto;overscroll-behavior:contain}.sheet::backdrop{background:#30232950;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.sheet-drag{height:23px;display:grid;place-items:center}.sheet-drag span{width:34px;height:4px;border-radius:10px;background:#e3d8dc}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:0 23px 12px;gap:8px}.sheet-header h2{font-size:19px;font-weight:600;line-height:1.5}.close-button{color:var(--muted);background:#f7f2f2;width:32px;height:32px}.sheet-content{padding:0 25px 26px}.muted{font-size:13px;line-height:1.9;color:var(--muted)}.intro-copy{margin-bottom:19px}.footnote{margin-top:15px;color:var(--muted);font-size:11px;line-height:1.9}.field{display:flex;flex-direction:column;gap:8px;min-width:0;margin-bottom:17px}.field>span{font-size:13px;font-weight:500}.field small{font-size:11px;font-weight:400;line-height:1.7;color:var(--muted)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}input:not([type=radio]),select{display:block;min-width:0;width:100%;height:48px;padding:0 12px;background:#fcf8f7;border:1px solid #e9dfe2;border-radius:12px;color:var(--ink);font-size:16px}input::placeholder{color:var(--muted);font-size:13px}input[type=date]{min-width:0;appearance:none;-webkit-appearance:none}.input-with-unit{display:flex;align-items:center;position:relative}.input-with-unit input{padding-right:36px}.input-with-unit>span{position:absolute;right:14px;font-size:12px;color:var(--muted)}.primary-button,.secondary-button,.danger-button{min-height:48px;padding:12px 16px;border-radius:13px;display:inline-flex;justify-content:center;align-items:center;gap:12px;font-size:14px;line-height:1.5;font-weight:500}.primary-button{background:var(--accent);color:#fff}.secondary-button{background:#faf5f4;border:1px solid #ecdee2}.danger-button{background:var(--danger);color:#fff}.full-width{width:100%}.full-width+.full-width{margin-top:10px}.action-row{display:flex;gap:12px;margin:15px 0 0}.action-row>button{flex:1}.danger-text{color:var(--danger)}.date-status{display:flex;align-items:center;gap:8px;margin:2px 0 12px;font-size:12px;color:var(--muted)}.status-dot{width:13px;height:13px;border-radius:50%;display:inline-block}.period-summary{font-size:18px;font-weight:500;line-height:1.6;margin-bottom:7px}.period-summary+.muted{margin-bottom:20px}.confirmation-copy h3{font-size:18px;margin:7px 0 12px}.confirmation-copy p{margin-bottom:15px}.inline-error{background:#fff1f2;border:1px solid #f2d5dc;color:var(--danger);border-radius:12px;font-size:12px;line-height:1.8;padding:12px;margin-top:15px}.privacy-note{display:flex;gap:9px;background:#fbf5f5;padding:13px;border-radius:12px;margin:0 0 23px}.privacy-note>svg{flex-shrink:0;color:var(--muted);margin-top:3px}.privacy-note p{font-size:12px;line-height:1.9}.privacy-note span{color:var(--muted);font-size:11px}.settings-section{margin-bottom:21px}.settings-section h3{font-size:14px;margin-bottom:14px;font-weight:600}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-options label{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;min-height:45px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.mode-options label.active{border-color:#b57188;background:#fbf0f3}.mode-options label.disabled{opacity:.65;cursor:default}input[type=radio]{accent-color:var(--accent);margin:0}.field-help{margin:9px 0 17px;color:var(--muted);font-size:11px;line-height:1.9}.estimate-note{padding:13px;background:#faf7f5;border-radius:12px}.estimate-note>div{display:flex;flex-direction:column;gap:7px;font-size:12px}.estimate-note>div>span{color:var(--muted);font-size:11px}.estimate-note strong{font-weight:500}.estimate-note p{color:var(--muted);font-size:11px;line-height:1.8;margin-top:7px}.settings-details{border-top:1px solid var(--line)}.settings-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:54px;font-size:13px;cursor:pointer;gap:10px}.settings-details summary::-webkit-details-marker{display:none}.settings-details[open] summary>svg{transform:rotate(180deg)}.details-body{padding:0 0 15px}.save-settings{margin:5px 0 23px}.data-section{margin-bottom:6px}.settings-action{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:64px;padding:11px 0}.settings-action>svg:first-child{color:var(--muted)}.settings-action>span{flex:1;font-size:13px}.settings-action small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.record-row{display:flex;width:100%;text-align:left;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f1e8eb;font-size:12px;gap:10px}.record-row small{display:block;margin-top:6px;font-size:11px;color:var(--muted)}.forecast-row{padding:10px 0;line-height:1.7;font-size:12px}.forecast-row span{display:inline}.forecast-row small{display:block;color:var(--muted);font-size:11px}.prose p{color:var(--muted);font-size:12px;line-height:1.9;margin-bottom:10px}.clear-action{margin-top:15px}.settings-footer{text-align:center;font-size:10px;color:var(--muted);padding-top:9px}.storage-alert,.error-banner{margin:0 22px 10px;padding:12px;border-radius:12px;background:#fff0f1;border:1px solid #eed1d9;font-size:12px;line-height:1.8;flex-shrink:0}.storage-alert{display:flex;gap:9px}.storage-alert>svg{flex-shrink:0;margin-top:3px}.storage-alert strong{font-weight:600}.storage-alert p{margin-top:4px;color:var(--muted)}.storage-alert button{padding-bottom:0}.error-banner{display:flex;align-items:center}.error-banner>span{flex:1}.toast-message{position:fixed;bottom:calc(23px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:max-content;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:9px;border-radius:14px;padding:13px 16px;background:#382c30;color:#fff;font-size:12px;z-index:20;box-shadow:0 7px 25px #382c3020}.toast-message span{line-height:1.6}.toast-message>svg{flex-shrink:0}.toast-message button{color:#fff;text-decoration:underline;text-underline-offset:3px;min-height:28px;white-space:nowrap;padding:0 3px}.toast-enter-active,.toast-leave-active{transition:opacity .16s}.toast-enter-from,.toast-leave-to{opacity:0}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}.mobile-break{display:initial}@media(min-width:700px){body{padding:25px 0}.app-shell{height:calc(100dvh - 50px);border:1px solid #e8dcdf;border-radius:26px}.sheet{margin:auto;border-radius:22px;max-height:min(90dvh,850px)}.sheet-drag{height:18px}.sheet-drag span{display:none}}@media(max-width:359px){.app-header{padding:20px 17px 17px;gap:6px}.brand-block{gap:8px}.brand-mark{width:34px;height:41px}.month-switch{font-size:18px}.header-actions{gap:2px}.today-button{padding:0 11px;min-width:48px}.notice-card{margin-left:15px;margin-right:15px;padding:15px}.notice-heading h2{font-size:13px}.calendar-meta{padding-left:18px;padding-right:18px}.calendar-legend{gap:10px}.calendar-legend>span{font-size:10px}.scroll-hint{font-size:9px}.weekdays{margin-left:12px;margin-right:12px}.calendar-viewport{padding-left:12px;padding-right:12px}.day-number{font-size:16px}.sheet-content,.sheet-header{padding-left:19px;padding-right:19px}.sheet-header h2{font-size:17px}.field-row{gap:10px}.comparison-line{gap:8px;font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){.period-band.actual{border-top:2px solid CanvasText;border-bottom:2px solid CanvasText}.period-band.forecast{border-top:2px dashed CanvasText;border-bottom:2px dashed CanvasText}.is-today .day-number{border:2px solid Highlight}.legend-band.actual{border:2px solid CanvasText}.legend-band.forecast{border:2px dashed CanvasText}}
