:root{color:#302d29;font-synthesis:none;text-rendering:optimizelegibility;--ink:#302d29;--muted:#736d64;--paper:#fffdf8;--paper-deep:#f8f2e6;--line:#ddd4c4;--accent:#526858;--accent-dark:#3d5043;--error:#8e4b49;--error-soft:#f7e9e5;--success:#466454;--success-soft:#e9f1eb;--warning:#80602e;--warning-soft:#f7efdc;background:#f3efe5;font-family:Hiragino Sans,Yu Gothic,YuGothic,Noto Sans JP,sans-serif;font-weight:400;line-height:1.7}*{box-sizing:border-box}html{background:radial-gradient(circle at 10% 5%,#ffffffa6,#0000 36%),#f3efe5;min-width:320px;min-height:100%}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}.page-shell{width:min(100% - 32px,760px);min-height:100vh;margin:0 auto;padding:52px 0 40px}.page-shell--centered{place-items:center;display:grid}.auth-card,.configuration-card,.loading-card,.editor-card{background:var(--paper);border:1px solid #5b4e3924;border-radius:22px;width:100%;box-shadow:0 18px 60px #4f44311a}.auth-card,.configuration-card{text-align:center;max-width:500px;padding:48px}.loading-card{text-align:center;max-width:420px;padding:48px}.brand-mark{width:48px;height:48px;color:var(--accent-dark);border:1px solid #9b8f7c;border-radius:50%;place-items:center;margin:0 auto 20px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:22px;display:grid}.eyebrow{color:var(--muted);letter-spacing:.16em;margin:0 0 6px;font-size:.75rem;font-weight:700}h1{color:var(--ink);letter-spacing:.08em;margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(1.75rem,5vw,2.4rem);font-weight:600;line-height:1.3}.intro-copy{max-width:34rem;color:var(--muted);margin:16px auto 30px}.auth-form{text-align:left;gap:20px;display:grid}.auth-form label{color:#554f47;gap:8px;font-size:.92rem;font-weight:700;display:grid}input,textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #cfc5b5;border-radius:11px;outline:none;transition:border-color .15s,box-shadow .15s}input{min-height:48px;padding:10px 13px}input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #52685826}input:disabled,textarea:disabled{cursor:not-allowed;opacity:.68}.auth-actions{grid-template-columns:1fr 1fr;gap:12px;margin-top:6px;display:grid}.auth-actions--stacked{grid-template-columns:1fr}.auth-help-link{justify-self:center;margin:-4px 0 0}.button{cursor:pointer;letter-spacing:.03em;border:1px solid #0000;border-radius:12px;min-height:50px;padding:11px 22px;font-weight:700;transition:background .15s,border-color .15s,transform .15s}.button:not(:disabled):active{transform:translateY(1px)}.button:focus-visible,.text-button:focus-visible,button:focus-visible{outline-offset:3px;outline:3px solid #52685840}.button:disabled,.text-button:disabled{cursor:not-allowed;opacity:.62}.button--primary{color:#fff;background:var(--accent)}.button--primary:not(:disabled):hover{background:var(--accent-dark)}.button--secondary{color:var(--accent-dark);background:0 0;border-color:#aab5aa}.button--secondary:not(:disabled):hover{background:#f1f5f1}.button--danger{color:#fff;background:var(--error)}.button--danger:not(:disabled):hover{background:#713b39}.button--compact{min-height:44px;padding:8px 16px;font-size:.9rem}.privacy-note{color:var(--muted);margin:26px 0 0;font-size:.82rem}.status-message{color:var(--muted);background:#f4f1ea;border-radius:9px;margin:0;padding:10px 12px;font-size:.9rem}.status-message--success{color:var(--success);background:var(--success-soft)}.status-message--warning{color:var(--warning);background:var(--warning-soft)}.status-message--error{color:var(--error);background:var(--error-soft)}.setup-guide{color:var(--muted);background:var(--paper-deep);text-align:left;border-radius:12px;margin-top:24px;padding:18px 20px}.setup-guide p{color:var(--ink);margin:0 0 8px;font-weight:700}.setup-guide ol{margin:0;padding-left:1.4rem}code{background:#564b3914;border-radius:4px;padding:.12em .35em;font-family:Consolas,monospace;font-size:.88em}.app-header{justify-content:space-between;align-items:center;gap:24px;margin:0 4px 26px;display:flex}.text-button{color:var(--accent-dark);cursor:pointer;background:0 0;border:0;border-bottom:1px solid #abb6ac;padding:10px 2px;font-weight:700}.editor-card{padding:clamp(24px,6vw,52px)}.editor-meta{justify-content:space-between;align-items:flex-start;gap:28px;display:flex}.date-label,.date-value,.account-copy{margin:0}.date-label{color:var(--muted);letter-spacing:.08em;font-size:.78rem;font-weight:700}.date-value{margin-top:3px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.1rem;font-weight:600}.account-copy{overflow-wrap:anywhere;max-width:50%;color:var(--muted);text-align:right;font-size:.82rem}.account-copy span{color:var(--ink);margin-bottom:2px;font-weight:700;display:block}.paper-rule{background:var(--line);height:1px;margin:28px 0}.memo-label{gap:12px;display:grid}.memo-label>span{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.4rem;font-weight:600}textarea{resize:vertical;min-height:270px;padding:20px;line-height:1.9}textarea::placeholder{color:#aaa195}.editor-card .status-message{margin-top:14px}.save-button{width:min(100%,240px);margin:24px 0 0 auto;display:block}.footer-copy{color:var(--muted);letter-spacing:.08em;text-align:center;margin:22px 0 0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:.86rem}.workspace-shell{width:min(100% - 32px,1040px);min-height:100vh;margin:0 auto;padding:28px 0 24px}.workspace-header{border-bottom:1px solid #5b4e3924;justify-content:space-between;align-items:center;gap:28px;padding:0 4px 22px;display:flex}.workspace-brand{align-items:center;gap:13px;display:flex}.workspace-brand__mark{width:42px;height:42px;color:var(--accent-dark);border:1px solid #9b8f7c;border-radius:50%;flex:none;place-items:center;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:19px;display:grid}.workspace-brand__name{letter-spacing:.08em;margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.18rem;font-weight:600}.workspace-account{min-width:0;color:var(--muted);align-items:center;gap:18px;font-size:.82rem;display:flex}.workspace-account>span{text-overflow:ellipsis;white-space:nowrap;max-width:260px;overflow:hidden}.workspace-alert{margin:18px auto 0}.workspace-main{min-height:calc(100vh - 180px);padding:34px 0 24px}.screen{width:100%}.screen-heading{max-width:780px;margin:0 auto 26px}.screen-heading>h1,.today-hero h1{font-size:clamp(1.65rem,4vw,2.55rem)}.screen-heading>p:not(.eyebrow,.past-date-notice){color:var(--muted);margin:12px 0 0}.back-button{min-height:42px;color:var(--accent-dark);cursor:pointer;background:0 0;border:0;border-bottom:1px solid #0000;margin:0 0 22px;padding:7px 2px;font-weight:700}.back-button:hover{border-bottom-color:#abb6ac}.bottom-navigation{z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffdf8f0;border:1px solid #5b4e3929;border-radius:18px;grid-template-columns:repeat(4,1fr);width:min(100%,560px);margin:12px auto 0;padding:8px;display:grid;position:sticky;bottom:14px;box-shadow:0 12px 38px #3e352824}.bottom-navigation__item{min-height:54px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:12px;place-items:center;gap:2px;padding:5px 10px;font-size:.78rem;font-weight:700;display:grid}.bottom-navigation__item>span{width:25px;height:25px;color:var(--accent-dark);border:1px solid #0000;border-radius:50%;place-items:center;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:.72rem;display:grid}.bottom-navigation__item[aria-current=page]{color:var(--accent-dark);background:#edf1ec}.bottom-navigation__item[aria-current=page]>span{background:var(--accent);color:#fff}.today-hero{padding:clamp(16px,4vw,34px) 4px 38px}.today-hero .date-kicker{color:var(--accent-dark);letter-spacing:.04em;margin:0 0 7px;font-weight:700}.today-hero>p:last-child{color:var(--muted);margin:13px 0 0}.daily-overview{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.overview-card{background:var(--paper);border:1px solid #5b4e3924;border-radius:17px;align-content:space-between;min-height:186px;padding:25px;display:grid;box-shadow:0 14px 36px #4f443112}.overview-card__label{margin:0 0 9px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.16rem;font-weight:600}.overview-card .button{width:100%;margin-top:25px}.soft-badge{color:var(--muted);background:#f1eee7;border-radius:999px;padding:4px 9px;font-size:.78rem;display:inline-block}.soft-badge--saved{color:var(--success);background:var(--success-soft)}.recent-section,.day-freewriting{background:#fffdf8b8;border:1px solid #5b4e391f;border-radius:17px;margin-top:28px;padding:clamp(22px,4vw,32px)}.section-heading-row{justify-content:space-between;align-items:center;gap:18px;margin-bottom:17px;display:flex}.section-heading-row h2{margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.35rem}.entry-link-list{gap:9px;display:grid}.entry-link{width:100%;min-height:52px;color:var(--ink);border:1px solid var(--line);cursor:pointer;text-align:left;background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:18px;padding:12px 15px;display:flex}.entry-link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.entry-link small{color:var(--accent-dark);flex:none;font-weight:700}.history-link{width:100%;min-height:58px;color:var(--accent-dark);cursor:pointer;text-align:left;background:0 0;border:0;border-bottom:1px solid #bab1a4;justify-content:space-between;align-items:center;margin-top:22px;padding:12px 4px;font-weight:700;display:flex}.journal-paper,.freewriting-paper{background:var(--paper);border:1px solid #5b4e3924;border-radius:20px;max-width:820px;margin:0 auto;padding:clamp(24px,5vw,48px);box-shadow:0 18px 55px #4f443114}.question-block+.question-block{border-top:1px solid var(--line);margin-top:46px;padding-top:42px}.question-block--focus{background:var(--paper-deep);border-radius:14px;border:0!important;padding:25px!important}.question-heading{align-items:flex-start;gap:15px;margin-bottom:22px;display:flex}.question-heading>span{width:33px;height:33px;color:var(--accent-dark);background:#edf1ec;border-radius:50%;flex:none;place-items:center;font-size:.72rem;font-weight:800;display:grid}.question-heading h2{margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.32rem}.question-heading p{color:var(--muted);margin:6px 0 0;font-size:.9rem}.stacked-fields{gap:14px;display:grid}.stacked-fields label,.single-field,.freewriting-title,.freewriting-body{gap:7px;display:grid}.stacked-fields label>span,.freewriting-title>span{color:var(--muted);font-size:.78rem;font-weight:700}.single-field>span,.freewriting-body>span{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.27rem;font-weight:600}.single-field>small{color:var(--muted);font-size:.88rem}.single-field textarea{min-height:120px}.rating-block{gap:38px;display:grid}.rating-selector{border:0;min-width:0;margin:0;padding:0}.rating-selector legend{margin-bottom:14px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.27rem;font-weight:600}.rating-selector__options{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.rating-option{min-width:0;min-height:76px;color:var(--muted);border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:11px;justify-items:center;gap:5px;padding:10px 5px;display:grid}.rating-option strong{width:27px;height:27px;color:var(--accent-dark);background:#f1eee7;border-radius:50%;place-items:center;display:grid}.rating-option span{text-align:center;font-size:.7rem;line-height:1.35}.rating-option[aria-pressed=true]{color:var(--accent-dark);background:#edf1ec;border-color:#849688}.rating-option[aria-pressed=true] strong{color:#fff;background:var(--accent)}.field-hint{color:var(--muted);margin:8px 0 0;font-size:.76rem}.autosave-row,.freewriting-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;margin-top:32px;padding-top:22px;display:flex}.save-status{color:var(--muted);align-items:center;gap:7px;margin:0;font-size:.82rem;display:inline-flex}.save-status__dot{background:#aaa297;border-radius:50%;width:7px;height:7px}.save-status--editing .save-status__dot,.save-status--dirty .save-status__dot{background:#b2833d}.save-status--saving .save-status__dot{background:#55708a}.save-status--saved .save-status__dot{background:var(--success)}.save-status--error{color:var(--error)}.save-status--error .save-status__dot{background:var(--error)}.past-date-notice{color:#745a34;background:var(--warning-soft);border-radius:7px;margin:13px 0 0;padding:6px 10px;font-size:.84rem;display:inline-block}.loading-panel,.retry-panel{max-width:820px;color:var(--muted);background:var(--paper);text-align:center;border:1px solid #5b4e3924;border-radius:16px;margin:26px auto;padding:32px}.retry-panel .button{margin-top:15px}.freewriting-paper{max-width:900px}.freewriting-guide{color:var(--muted);margin:0 0 30px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.04rem}.freewriting-title{margin-bottom:19px}.freewriting-title input{font-size:1.1rem;font-weight:600}.freewriting-body textarea{background:linear-gradient(#fff 35px,#ebe5da 36px) 0 0/100% 36px;min-height:52vh;line-height:36px}.timestamp-list{color:var(--muted);flex-wrap:wrap;gap:10px 22px;margin:17px 0 0;font-size:.76rem;display:flex}.timestamp-list div{gap:6px;display:flex}.timestamp-list dt{font-weight:700}.timestamp-list dd{margin:0}.freewriting-actions>div{align-items:center;gap:17px;display:flex}.text-button--danger{color:var(--error);border-bottom-color:#d6aaa5}.history-list{gap:10px;max-width:860px;margin:0 auto;display:grid}.history-list__month{color:var(--muted);margin:0 0 7px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-weight:600}.history-day-card{width:100%;min-height:84px;color:var(--ink);background:var(--paper);cursor:pointer;text-align:left;border:1px solid #5b4e3924;border-radius:13px;grid-template-columns:160px minmax(260px,1fr) auto 25px;align-items:center;gap:20px;padding:17px 20px;display:grid}.history-day-card:hover{border-color:#aab5aa}.history-day-card__date{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.03rem;font-weight:600}.history-day-card__marks,.history-day-card__ratings{color:var(--muted);flex-wrap:wrap;gap:5px 12px;font-size:.78rem;display:flex}.history-day-card__marks .has-record{color:var(--success);font-weight:700}.history-day-card__ratings strong{color:var(--ink)}.history-day-card__arrow{color:var(--accent-dark);font-weight:800}.day-actions{grid-template-columns:1fr 1fr;gap:15px;display:grid}.day-action-card{min-height:145px;color:var(--ink);background:var(--paper);cursor:pointer;text-align:left;border:1px solid #5b4e3924;border-radius:15px;gap:7px;padding:24px;display:grid}.day-action-card>span{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.25rem;font-weight:600}.day-action-card small{color:var(--muted)}.day-action-card strong{color:var(--accent-dark);align-self:end}.empty-copy{color:var(--muted);margin:0}.dialog-backdrop{z-index:100;background:#26221d7a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-dialog{background:var(--paper);border-radius:17px;width:min(100%,430px);padding:30px;box-shadow:0 24px 80px #00000038}.confirm-dialog h2{margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:1.35rem}.confirm-dialog p{color:var(--muted);margin:12px 0 24px}.confirm-dialog__actions{grid-template-columns:1fr 1fr;gap:11px;display:grid}@media (width<=600px){.page-shell{width:min(100% - 24px,760px);padding:24px 0}.auth-card,.configuration-card{border-radius:17px;padding:34px 22px}.auth-actions{grid-template-columns:1fr;gap:14px}.app-header{align-items:flex-end;margin-bottom:18px}.app-header .eyebrow{display:none}.editor-card{border-radius:17px}.editor-meta{gap:12px;display:grid}.account-copy{text-align:left;max-width:100%}textarea{min-height:310px;padding:16px}.save-button{width:100%}.workspace-shell{width:min(100% - 20px,1040px);padding:15px 0 12px}.workspace-header{gap:12px;padding:0 2px 14px}.workspace-brand{gap:9px}.workspace-brand__mark{width:36px;height:36px;font-size:16px}.workspace-brand .eyebrow,.workspace-account>span{display:none}.workspace-brand__name{font-size:1rem}.workspace-account{flex:none}.workspace-main{min-height:calc(100vh - 150px);padding:23px 0 92px}.bottom-navigation{right:10px;bottom:max(8px, env(safe-area-inset-bottom));border-radius:16px;width:auto;margin:0;position:fixed;left:10px}.bottom-navigation__item{min-height:55px;padding:4px}.today-hero{padding:8px 2px 26px}.daily-overview{grid-template-columns:1fr;gap:11px}.overview-card{grid-template-columns:1fr auto;align-items:center;min-height:116px;padding:20px}.overview-card .button{width:auto;min-height:44px;margin:0;padding-inline:14px}.recent-section,.day-freewriting{padding:20px}.screen-heading{margin-bottom:20px}.journal-paper,.freewriting-paper{border-radius:16px;padding:24px 18px}.question-block+.question-block{margin-top:34px;padding-top:31px}.question-block--focus{margin-inline:-3px;padding:20px!important}.question-heading{gap:11px}.rating-selector__options{grid-template-columns:1fr}.rating-option{grid-template-columns:32px 1fr;place-items:center start;min-height:50px;padding:8px 12px}.rating-option span{text-align:left;font-size:.8rem}.autosave-row,.freewriting-actions{flex-direction:column;align-items:stretch}.autosave-row .button{width:100%}.freewriting-actions>div{justify-content:space-between}.freewriting-body textarea{min-height:58vh;padding:14px}.history-day-card{grid-template-columns:1fr 22px;gap:8px 12px;padding:17px}.history-day-card__marks,.history-day-card__ratings{grid-column:1}.history-day-card__arrow{grid-area:1/2/span 3}.day-actions{grid-template-columns:1fr}.section-heading-row{align-items:flex-end}.confirm-dialog{padding:25px 20px}.confirm-dialog__actions{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
