/* Nook 0.5 — a place to linger, with a real letter at its centre. */
:root{--bg:#f7f5ef;--surface:#f0f1e9;--raised:#fffdf8;--ink:#374035;--muted:#667060;--line:#dce0d4;--accent:#5b705c;--accent-hover:#485e4a;--accent-soft:#edf0e6;--green:#5b705c;--green-soft:#edf0e5;--danger:#955448;--glass:#f7f5ef;--shadow:0 12px 32px #454b3410;--serif:"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",serif;--font:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC",sans-serif}
:root[data-theme=dark]{--bg:#242721;--surface:#2b3027;--raised:#30362c;--ink:#e8eade;--muted:#b4bdab;--line:#49523f;--accent:#bccdae;--accent-hover:#d6e2ca;--accent-soft:#3a4534;--green:#bacdad;--green-soft:#36432f;--danger:#e0a393;--glass:#242721;--shadow:0 10px 35px #0002}
body{font-weight:400;line-height:1.8;letter-spacing:.01em}p{text-wrap:pretty}button,a{transition:background-color .22s ease,color .22s ease,transform .22s ease,border-color .22s ease}button:active:not(:disabled),.button:active{transform:scale(.99)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-width:2px;outline-offset:5px}.container{width:min(1040px,calc(100% - 64px))}.site-header{position:relative;top:0;height:84px;width:min(1120px,calc(100% - 64px));padding:0;margin:0 auto;border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}.brand{gap:6px;font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:-1.2px;min-height:44px}.brand img{width:27px;height:27px}.brand-cn{font-family:var(--serif);font-size:15px;font-weight:400;letter-spacing:.14em;margin-left:16px;padding-left:15px;border-left:1px solid var(--line)}.site-header nav{gap:21px}.nav-link{font-size:13px;letter-spacing:.03em;font-weight:400}.nav-link span{background:none;color:var(--muted);font-size:12px;font-weight:400}.icon-button{border-radius:50%;color:var(--muted)}.icon-button svg{width:18px;height:18px}.quiet-intro{text-align:center;margin:28px 0 32px}.quiet-opening{font-size:12px;letter-spacing:.12em;color:var(--muted);margin-bottom:14px}.quiet-intro h1{font:400 51px/1.5 var(--serif);letter-spacing:.055em;color:var(--ink)}.quiet-intro h1 em{font-style:normal;color:var(--accent)}.quiet-intro>p:last-child{font-size:14px;line-height:1.9;color:var(--muted);margin-top:14px;letter-spacing:.035em}.mobile-break{display:none}.writing-scene{position:relative;isolation:isolate;display:flex;align-items:center;padding:32px;min-height:402px;overflow:hidden;background:#eae9e0;border-radius:5px}.window-still{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:50% 55%}.scene-note{position:absolute;right:42px;bottom:29px;max-width:205px;color:#596651}.scene-note>span{font:400 13px var(--serif);letter-spacing:.2em;display:block;margin-bottom:10px}.scene-note p{font:400 17px/1.8 var(--serif);letter-spacing:.06em}.letter-sheet{width:61%;position:relative;padding:28px 32px 20px;border:1px solid #dfe1d4;background:var(--raised);border-radius:4px;box-shadow:0 3px 28px #444a3512}.letter-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.letter-top label{font:400 19px/1.6 var(--serif);letter-spacing:.055em;color:var(--ink)}.letter-date{font-size:12px;color:var(--muted);letter-spacing:.025em}.letter-sheet #worry{border:0;border-radius:2px;background:transparent;padding:20px 0 10px;font:400 21px/1.9 var(--serif);letter-spacing:.025em;min-height:139px;height:139px;max-height:360px}.letter-sheet #worry::placeholder{color:#6c7762;opacity:1;font-size:19px}.input-meta{font-size:12px;color:var(--muted);margin-top:5px;letter-spacing:0}.letter-extras{margin-top:12px;border-top:1px solid var(--line)}.letter-extras summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;color:var(--muted);font-weight:400}.letter-extras summary::-webkit-details-marker{display:none}.letter-extras summary>span{font-size:12px;color:var(--muted);opacity:.8}.letter-extras summary:after{content:"＋";margin-left:auto;font-size:16px;line-height:1}.letter-extras[open] summary:after{content:"－"}.letter-extras fieldset{margin-top:9px}.letter-extras legend{font-size:12px;font-weight:400}.letter-extras .gift-options{gap:7px}.letter-extras .gift-options label>span{font-size:12px;font-weight:400;border-radius:20px;background:transparent;padding-inline:6px}.letter-extras .gift-options input:checked+span{background:var(--accent-soft);border-color:var(--accent)}.letter-extras .score-field{margin:18px 0 20px}.letter-extras .score-field label{font-size:12px;font-weight:400}.letter-extras .score-field select{font-size:13px;border-radius:7px;min-height:44px}.letter-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:15px;border-top:1px solid var(--line)}.letter-actions>span{font:400 12px/1.8 var(--serif);color:var(--muted);letter-spacing:.025em}.button{min-height:46px;padding:12px 24px;border-radius:24px;font-size:14px;font-weight:400;gap:18px;letter-spacing:.035em}.button.primary{background:var(--accent);color:var(--raised)}.button.primary span{font-size:17px}.button.quiet{background:transparent;border:1px solid var(--line);color:var(--accent)}.text-button{font-weight:400;font-size:13px;letter-spacing:.025em}.writing-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;color:var(--muted);font-size:12px}.writing-foot .privacy-link{margin:0;font-size:12px;font-weight:400;min-height:44px;padding:0}.drawer-section{background:transparent;padding:42px 0 0;margin-top:20px}.drawer-section>.container{width:min(880px,calc(100% - 64px));border-top:1px solid var(--line);padding-top:35px}.drawer-heading{align-items:center}.section-caption{font-size:12px;font-weight:400;letter-spacing:.035em;margin-bottom:8px}.drawer-heading h2{font:400 29px/1.6 var(--serif);letter-spacing:.07em;gap:14px}.drawer-heading h2 span{font-size:14px;font-family:var(--font);color:var(--muted);font-weight:400;opacity:.8}.drawer-heading .button{font-size:12px;padding:9px 17px}.empty-state{margin-top:20px;padding:29px 0 15px;background:none;border:0;border-radius:0;min-height:235px}.empty-icon{color:#8a947d;margin-bottom:13px}.empty-icon svg{width:37px;height:37px}.empty-state h3{font:400 21px/1.7 var(--serif);letter-spacing:.065em}.empty-state p{font-size:13px;line-height:1.9;margin-top:7px;letter-spacing:.035em}.empty-state .text-button{font-size:12px;margin-top:7px}.drawer-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;font:400 12px/1.8 var(--serif);letter-spacing:.04em}.drawer-toolbar{margin-top:23px}.filter-control{gap:15px}.filter-control button{font-size:12px;font-weight:400;min-height:44px;padding:8px 6px;border-radius:0;position:relative}.filter-control button[aria-pressed=true]{background:none;box-shadow:none;color:var(--accent)}.filter-control button[aria-pressed=true]:after{position:absolute;content:"";height:1px;bottom:5px;left:6px;right:6px;background:var(--accent)}.record-list{grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}.record-card{border:1px solid var(--line);border-radius:4px;background:var(--raised);padding:22px 25px;min-height:191px;box-shadow:0 3px 13px #454b3506}.record-card .record-worry{font:400 20px/1.8 var(--serif);letter-spacing:.03em;margin-top:17px;-webkit-line-clamp:2}.record-card .record-bottom{font-size:12px;padding-top:20px}.record-top{font-size:12px}.record-bottom>span:last-child{font-size:15px}.status-badge{font-size:12px;font-weight:400;letter-spacing:.025em}.status-badge:before{width:4px;height:4px}.due-notice{border-radius:6px;background:var(--accent-soft);padding:17px 20px}.due-notice strong{font:400 17px/1.7 var(--serif)}.due-notice p{font-size:12px}.due-notice .button{background:transparent;border-bottom:1px solid var(--line);border-radius:0;padding-inline:0;min-height:44px;font-size:13px}.site-footer{width:min(1120px,calc(100% - 64px));padding:39px 0 27px;margin-top:24px;font-size:12px}.footer-brand{font:400 21px Georgia,serif;letter-spacing:-.6px;min-height:44px}.footer-brand span{font:400 12px var(--serif);letter-spacing:.1em}.site-footer>p{font-size:12px}.local-label{border-left:0;font-size:12px;padding-left:0;opacity:.8}.site-footer>div{gap:22px}.toast{background:var(--ink);border-radius:8px;font-size:13px;font-weight:400;box-shadow:var(--shadow)}.notice{border-radius:5px;font-size:13px}
/* Reading a saved worry should feel like opening the same sheet again. */
dialog{border-radius:14px;background:var(--raised);border:1px solid var(--line);box-shadow:0 24px 100px #26351e26;max-width:590px}dialog::backdrop{background:rgba(47,54,41,.28);backdrop-filter:blur(3px)}.dialog-shell{padding:26px 34px 30px}.dialog-brand{font:400 21px Georgia,serif;letter-spacing:-.6px}.dialog-brand span{font:400 13px var(--serif);letter-spacing:.1em}.dialog-top{margin-bottom:23px}.close-button{font:300 26px var(--font);color:var(--muted)}dialog h2{font:400 30px/1.65 var(--serif);letter-spacing:.03em}.dialog-description{font-size:14px;line-height:1.9;letter-spacing:.015em;margin-top:8px;margin-bottom:24px}.step-indicator{margin-bottom:18px}.step-indicator span{width:20px;height:2px}.schedule-options{gap:10px}.schedule-options label>span{border-radius:7px;background:transparent;padding:14px 17px}.schedule-options strong{font:400 18px/1.6 var(--serif);letter-spacing:.04em}.schedule-options small{font-size:12px;font-weight:400}.schedule-options input:checked+span{border-color:var(--accent);background:var(--accent-soft)}.schedule-options .custom-schedule>span{padding:10px 17px}.schedule-options .custom-schedule strong{font:400 14px var(--font)}.schedule-summary{font-size:12px;color:var(--accent)}.reminder-explanation{border-radius:7px;background:var(--surface);font-size:12px;padding:12px 14px}.check-option{font-size:13px}.check-option small{font-size:12px}.dialog-actions{margin-top:24px;padding-top:19px}.dialog-actions .text-button{font-size:12px}.detail-heading .status-badge{margin-bottom:8px}.saved-note{border-radius:5px;background:var(--surface);padding:21px 25px}.saved-note>p{font:400 21px/1.85 var(--serif);letter-spacing:.03em}.saved-note>div{border-top:1px solid var(--line);margin-top:20px;padding-top:13px;font-size:12px}.saved-note strong{font:400 15px var(--serif);letter-spacing:.04em}.detail-facts{font-size:12px;gap:12px}.detail-facts dt{color:var(--muted)}.detail-facts dd{font-weight:400}.detail-options .text-button{font-size:12px}.history-item{border-radius:6px;padding:17px 20px;background:var(--green-soft)}.history-item h3{font:400 18px/1.7 var(--serif)}.history-item time{font-size:12px}.history-item .comparison{font-size:12px}.history-item .reflection{font:400 17px/1.9 var(--serif);letter-spacing:.015em}#review-worry{border-radius:5px;font:400 18px/1.9 var(--serif);padding:16px 21px}.outcome-options label>span{border-radius:7px;font-size:14px;font-weight:400}.outcome-options legend{font-size:13px;font-weight:400}.score-field label{font-size:13px;font-weight:400}.score-field select{border-radius:7px;font-size:14px}.field-label{font-size:13px;font-weight:400}.field-label span{font-size:12px}.dialog-shell textarea{border-radius:6px;font-size:16px;line-height:1.8;background:var(--surface)}input[type=datetime-local]{border-radius:7px;background:var(--surface)}.compact-dialog h2{font-size:27px}.privacy-facts h3{font:400 20px/1.6 var(--serif);letter-spacing:.035em}.privacy-facts p{font-size:14px;line-height:1.9}.privacy-facts{gap:24px}
:root[data-theme=dark] .button.primary{color:#242721}:root[data-theme=dark] .writing-scene{background:#31372b}:root[data-theme=dark] .window-still{opacity:.31}:root[data-theme=dark] .letter-sheet{border-color:var(--line);background:var(--raised)}:root[data-theme=dark] .scene-note{color:#d5ddca}:root[data-theme=dark] .letter-sheet #worry::placeholder{color:#a3ad96}:root[data-theme=dark] .brand img{filter:brightness(1.8)}:root[data-theme=dark] .button.danger{color:#242721}
@media(hover:hover) and (pointer:fine){.icon-button:hover{background:var(--accent-soft)}.record-card:hover{transform:translateY(-2px);border-color:#adb6a0;box-shadow:0 8px 22px #454b3510}.filter-control button:hover{background:none;color:var(--ink)}.letter-extras summary:hover{color:var(--ink)}.button.primary:hover{background:var(--accent-hover)}.text-button:hover,.nav-link:hover,.privacy-link:hover{color:var(--accent-hover)}}
@media(min-width:1450px){.quiet-intro{margin-top:37px;margin-bottom:36px}.writing-scene{min-height:435px;padding:38px}.letter-sheet{padding:29px 35px 22px}.letter-sheet #worry{min-height:148px;height:148px}.scene-note{right:46px;bottom:35px}}
@media(max-width:1050px){.container{width:calc(100% - 48px)}.site-header{width:calc(100% - 48px)}.quiet-intro h1{font-size:46px}.writing-scene{padding:24px;min-height:390px}.letter-sheet{width:65%;padding:24px}.scene-note{right:26px;bottom:24px;max-width:155px}.scene-note p{font-size:15px}.letter-actions>span{max-width:190px;font-size:12px}.letter-actions{gap:12px}.letter-date{font-size:12px}}
@media(max-width:800px){.container,.site-header{width:calc(100% - 40px)}.site-header{height:77px;margin:0 auto;padding:0;top:0;border-radius:0}.brand{font-size:28px;gap:4px}.brand img{width:26px;height:26px}.brand-cn{font-size:14px;margin-left:13px;padding-left:12px}.site-header nav{gap:14px}.quiet-intro{margin-top:24px;margin-bottom:28px}.quiet-intro h1{font-size:41px;letter-spacing:.025em}.quiet-opening{font-size:12px;margin-bottom:13px}.quiet-intro>p:last-child{font-size:13px;margin-top:13px}.writing-scene{padding:30px 24px;min-height:390px}.letter-sheet{width:70%;padding:23px}.scene-note{display:none}.window-still{object-position:56% 50%}.letter-top label{font-size:18px}.letter-date{font-size:12px}.letter-sheet #worry{font-size:20px;min-height:140px}.letter-sheet #worry::placeholder{font-size:18px}.letter-actions>span{display:none}.letter-actions{justify-content:flex-end}.letter-actions .button{padding-inline:25px}.drawer-section{padding-top:24px;margin-top:12px}.drawer-section>.container{width:calc(100% - 56px);padding-top:30px}.drawer-heading h2{font-size:27px}.drawer-heading .section-caption{font-size:12px}.empty-state{margin-top:14px;min-height:232px;padding-top:23px}.drawer-footer{flex-direction:row;font-size:12px}.site-footer{width:calc(100% - 40px);flex-wrap:wrap;justify-content:center;gap:6px 15px;padding:25px 0 18px;margin-top:18px}.site-footer>p{margin:0;font-size:12px}.site-footer>div{width:100%;justify-content:center;gap:20px}.record-card{padding:20px}.record-card .record-worry{font-size:19px}}
@media(max-width:560px){.quiet-intro{margin-top:22px;margin-bottom:25px}.quiet-intro h1{font-size:37px;line-height:1.6;letter-spacing:.015em}.quiet-intro h1 em{display:block}.quiet-opening{font-size:12px;margin-bottom:11px;letter-spacing:.1em}.quiet-intro>p:last-child{font-size:13px;line-height:1.9;letter-spacing:.01em;margin-top:12px}.mobile-break{display:block}.writing-scene{padding:105px 14px 15px;display:block;min-height:0;border-radius:5px;background:#eaece3}.window-still{object-position:75% 66%;object-fit:cover;height:190px}.letter-sheet{width:100%;padding:23px 21px 20px;box-shadow:0 4px 20px #454b3510}.letter-top{gap:8px}.letter-top label{font-size:17px;letter-spacing:.045em}.letter-date{font-size:12px;letter-spacing:0}.letter-sheet #worry{font-size:20px;line-height:1.9;height:133px;min-height:133px;padding-top:17px}.letter-sheet #worry::placeholder{font-size:17px}.input-meta{font-size:12px;gap:8px}.input-meta>span:first-child{font-size:12px;letter-spacing:-.015em}.letter-extras{margin-top:10px}.letter-extras summary{font-size:12px;gap:7px}.letter-extras .gift-options{grid-template-columns:repeat(2,1fr)}.letter-extras .score-field label span{font-size:12px;max-width:140px}.letter-extras .score-field select{font-size:16px;width:125px}.letter-actions{padding-top:13px;justify-content:space-between}.letter-actions>span{display:block;max-width:132px;font-size:12px;line-height:1.7}.letter-actions .button{min-height:44px;padding:11px 20px;font-size:13px;gap:15px}.writing-foot{margin-top:8px;justify-content:center;gap:0}.writing-foot>span{display:none}.writing-foot .privacy-link{font-size:12px}.drawer-section{margin-top:10px;padding-top:19px}.drawer-section>.container{width:calc(100% - 48px);padding-top:26px}.drawer-heading h2{font-size:26px;gap:12px}.drawer-heading h2 span{font-size:13px}.drawer-heading .section-caption{font-size:12px;max-width:218px;letter-spacing:0;line-height:1.7}.drawer-heading .button{font-size:12px;padding:9px 12px;gap:4px}.empty-state h3{font-size:20px}.empty-state p{font-size:13px}.drawer-footer{flex-direction:column;align-items:center;font-size:12px;gap:3px}.record-list{grid-template-columns:1fr;gap:14px}.record-card{min-height:185px;padding:21px}.drawer-toolbar{margin-top:20px}.filter-control{gap:13px}.filter-control button{font-size:12px}.due-notice{padding:16px;gap:10px}.due-notice strong{font-size:17px}.due-notice .button{margin-left:0}.due-notice p{font-size:12px}.site-footer{font-size:12px}.site-footer .text-button,.local-label{font-size:12px}dialog{width:calc(100% - 28px);border-radius:12px;max-height:calc(100dvh - 28px)}.dialog-shell{padding:21px 24px 26px}.dialog-top{margin-bottom:19px}dialog h2{font-size:27px;line-height:1.6;letter-spacing:.015em}.dialog-description{font-size:13px;line-height:1.9;margin-top:8px;margin-bottom:21px}.schedule-options label>span{padding:13px 14px}.schedule-options strong{font-size:18px}.schedule-options small{font-size:12px}.schedule-options .custom-schedule>span{padding-inline:14px}.reminder-explanation p,.check-option small{font-size:12px}.check-option{font-size:13px}.dialog-actions .button{font-size:13px;padding-inline:20px}.saved-note{padding:18px 21px}.saved-note>p{font-size:20px;line-height:1.9}.detail-heading h2{font-size:26px}.detail-options .text-button{font-size:12px}.history-item h3{font-size:18px}.history-item .reflection{font-size:17px}.score-field select{font-size:16px}.score-field label span{font-size:12px}.privacy-facts p{font-size:13px}.privacy-facts h3{font-size:19px}}
@media(max-width:360px){.container,.site-header{width:calc(100% - 32px)}.brand-cn{display:inline;font-size:12px;margin-left:9px;padding-left:10px}.brand{font-size:25px}.site-header nav{gap:4px}.nav-link{font-size:12px}.quiet-intro h1{font-size:34px}.quiet-intro>p:last-child{font-size:12px}.letter-sheet{padding:20px 17px}.letter-top label{font-size:16px}.letter-actions>span{max-width:112px}.letter-actions .button{padding-inline:16px}.drawer-heading .section-caption{font-size:12px;max-width:185px}.drawer-heading .button{padding-inline:10px}.dialog-shell{padding-inline:20px}dialog h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.record-card:hover{transform:none}}
@media(prefers-contrast:more){:root{--muted:#515b4d;--line:#9ca891}:root[data-theme=dark]{--muted:#d0d8c8;--line:#8b9a7d}.letter-sheet #worry::placeholder{color:var(--muted)}}
