@charset "UTF-8";
:root{--paper:#fffef9;--canvas:#edf0e9;--ink:#34463b;--muted:#68766c;--green:#506b58;--line:#d5ded2;--soft:#e3e9df;--rose:#a76459;--sans:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;--serif:var(--sans);color-scheme:light;font-family:var(--sans);color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #b38745;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #6a856f;outline-offset:1px}button svg{pointer-events:none}a{color:var(--green)}p,h1,h2,h3{margin:0}button svg,.icon{width:22px;height:22px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button:disabled{pointer-events:none}.boot{padding:20vh 20px;text-align:center}button[hidden],[hidden]{display:none!important}.shell{max-width:1500px;min-height:100dvh;margin:auto;display:grid;grid-template-columns:236px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100dvh;padding:42px 25px 30px 32px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:32px}.brand{display:flex;gap:12px;align-items:center;text-align:left;padding:0}.brand-mark{width:42px;height:42px;border:1px solid #80927d;border-radius:50% 50% 45% 45%;display:grid;place-items:center;transform:rotate(-8deg);color:var(--green)}.brand-mark svg{width:25px;height:25px}.brand strong{display:block;font-family:var(--serif);font-size:22px;font-weight:600;letter-spacing:2px}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:5px;letter-spacing:2px}.nav{display:flex;flex-direction:column;gap:9px}.nav button{display:flex;align-items:center;gap:14px;text-align:left;padding:15px 19px;border-radius:9px;font-size:14px;position:relative}.nav button.active{background:var(--green);color:#fffef5}.nav button:not(.active):hover{background:#e0e6dc}.badge{background:var(--rose);color:white;min-width:18px;padding:2px 5px;border-radius:99px;font-size:10px;text-align:center;margin-left:auto}.sidebar-bottom{margin-top:auto}.identity{border-top:1px solid var(--line);padding-top:22px}.identity-title{font-size:11px;color:var(--muted);margin-bottom:12px}.role-buttons{display:flex;gap:7px}.role-buttons button{flex:1;min-height:40px;border:1px solid var(--line);border-radius:8px;font-size:12px}.role-buttons button.selected{background:#fffdf5;border-color:#8e9e87}.tiny{font-size:11px;color:var(--muted);line-height:1.8}.sidebar-bottom .tiny{margin-top:12px}.connection-dot{display:inline-block;width:6px;height:6px;background:#a28a5e;border-radius:50%;margin-right:6px}.connection-dot.online{background:#5b7c5e}.main{min-width:0;padding:28px 48px 40px}.topbar{height:38px;display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:16px}.breadcrumb{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:15px}.plain-link{font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:5px 0}.icon-button{width:40px;height:40px;border-radius:50%;display:inline-grid;place-items:center;flex-shrink:0}.icon-button:hover{background:var(--soft)}.mobile-brand{display:none}.page-intro{margin-bottom:26px;display:flex;justify-content:space-between;align-items:end;gap:12px}.page-intro h1{font-family:var(--serif);font-size:32px;font-weight:500;letter-spacing:2px;line-height:1.5}.page-intro p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px}.text-button{display:inline-flex;gap:7px;align-items:center;font-size:12px;padding:10px 0;white-space:nowrap}.text-button svg{width:16px;height:16px}.story-layout{display:grid;grid-template-columns:minmax(300px,416px) minmax(210px,1fr);gap:36px;align-items:start;max-width:880px}.story-stage{position:relative;width:100%;aspect-ratio:9/16;border-radius:5px 5px 20px 5px;overflow:hidden;background:#e7dfce;box-shadow:0 18px 35px -19px #48543e70;isolation:isolate}.scene-image{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;z-index:-2;display:block}.story-wash{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#faf4e880 0%,transparent 31%,transparent 68%,#fdf7eab8 92%);pointer-events:none}.story-heading{padding:7.2% 7.6%;position:relative}.story-eyebrow{display:flex;gap:8px;align-items:center;color:#56614c;font-size:11px;letter-spacing:1px;margin-bottom:12px}.story-eyebrow .num{font-family:Georgia,serif;font-size:15px}.story-heading h2{font-family:var(--serif);font-weight:500;font-size:clamp(28px,2.65vw,39px);letter-spacing:3px;line-height:1.55;max-width:90%;white-space:pre-line;color:#34463b}.story-heading p{font-size:11px;color:#69745d;margin-top:9px;letter-spacing:.5px}.story-heading .save-mark{position:absolute;right:7%;top:12%;width:20px;height:28px;fill:none;stroke:#829174;stroke-width:1.4}.signature-wrap{position:absolute;bottom:3.8%;left:6%;right:6%;text-align:center}.signature-note{font-size:10px;letter-spacing:1px;color:#5e654f;margin-bottom:11px;line-height:1.7}.signature-pair{display:flex;justify-content:center;gap:11%;align-items:center}.stamp{width:92px;height:92px;border:1.3px dashed #8c917b;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#687157;position:relative;background:#fffaf16e}.stamp:before{content:"";position:absolute;inset:5px;border:1px solid #9ca18970;border-radius:50%;pointer-events:none}.stamp strong{font-family:var(--serif);font-size:21px;font-weight:500;letter-spacing:2px}.stamp small{font-size:9px;letter-spacing:1px}.stamp.signed{border:2px solid #966657;color:#965d4e;background:#f9e6cc66;transform:rotate(-9deg)}.stamp.signed:before{border:1px solid #a77766}.stamp.signed:nth-child(2){transform:rotate(8deg)}.stamp.actionable{background:#fffaf3c9;box-shadow:0 3px 14px #69634818}.stamp.actionable:hover{background:#fffaf3}.stamp .stamp-heart{width:12px;height:12px;position:absolute;top:10px}.signature-action{margin-top:12px;display:flex;justify-content:center;gap:12px}.signature-action button{font-size:10px;text-decoration:underline;text-underline-offset:4px;min-height:26px}.story-paper{background:#f4eddd}.story-paper:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent,transparent 27px,#a3ad8f18 28px);z-index:-2}.paper-copy{position:absolute;top:43%;left:12%;right:12%;font-family:var(--serif);font-size:24px;line-height:1.9;text-align:center;color:#7c896d}.story-pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 2px 0;font-size:11px;color:var(--muted)}.story-pagination button{display:inline-flex;align-items:center;gap:6px;min-height:34px}.story-pagination svg{width:16px;height:16px}.story-notes{padding-top:7px}.section-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.section-label h2{font-size:13px;font-weight:500;letter-spacing:1px}.section-label span{font-size:11px;color:var(--muted)}.progress-title{font-family:var(--serif);font-size:28px;font-weight:500;margin-bottom:8px}.progress-title span{font-family:var(--sans);font-size:12px;color:var(--muted)}.progress-track{height:3px;background:#d2dbce;margin-top:18px}.progress-track>i{display:block;height:100%;background:var(--green);transition:width .3s}.progress-block>p{font-size:11px;color:var(--muted);line-height:1.8}.notes-line{height:1px;background:var(--line);margin:26px 0}.mini-list{display:flex;flex-direction:column;gap:2px}.mini-row{display:grid;grid-template-columns:26px 1fr 18px;gap:8px;align-items:center;text-align:left;min-height:58px;border-bottom:1px solid var(--line);font-size:12px;padding:6px 0}.mini-row .index{font-family:Georgia,serif;font-size:13px;color:#86927c}.mini-row .icon{width:16px;height:16px;color:#829177}.mini-row.active{color:var(--green);font-weight:600}.mini-row.active .index{color:var(--rose)}.quote{font-family:var(--serif);font-size:16px;color:#718069;line-height:2;letter-spacing:1px}.quote cite{font-family:var(--sans);font-size:10px;font-style:normal;display:block;margin-top:10px;color:#83907b}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 20px;border-radius:8px;background:var(--green);color:white;font-size:13px;border:1px solid var(--green);text-decoration:none}.btn:hover{background:#405b49}.btn.secondary{background:transparent;color:var(--green);border-color:#a3b29b}.btn.secondary:hover{background:#e6ecdf}.btn.danger{background:#a76459;border-color:#a76459}.btn.wide{width:100%}.btn svg{width:17px;height:17px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.muted{color:var(--muted)}.empty{padding:44px 18px;text-align:center;font-size:13px;line-height:2;color:var(--muted)}.empty h3{font-family:var(--serif);font-size:24px;font-weight:400;color:var(--ink);margin-bottom:10px}.empty .btn{margin-top:16px}.home-layout{max-width:900px;display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.home-letter{padding:34px;background:var(--paper);border-radius:4px 4px 40px 4px;min-height:330px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.home-letter:after{content:"♡";position:absolute;font:240px var(--serif);color:#e6e9de;right:-30px;bottom:-110px;pointer-events:none}.home-letter h2{font-family:var(--serif);font-size:22px;font-weight:500;line-height:1.9}.day-number{font:70px Georgia,serif;margin:20px 0}.day-number small{font:14px var(--sans);margin-left:8px}.home-letter p{font-size:12px;line-height:1.8;color:var(--muted);position:relative;z-index:1}.panel{background:#f9fbf6;border:1px solid var(--line);border-radius:12px;padding:25px}.panel h2{font-size:15px;font-weight:500}.panel-sub{font-size:12px;color:var(--muted);margin:8px 0 22px;line-height:1.8}.checkin-people{display:flex;gap:25px;margin:28px 0}.person-check{display:flex;flex-direction:column;gap:7px;font-size:12px;align-items:center;flex:1}.avatar{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#eee2ca;color:#8c734f;font:20px var(--serif)}.avatar.fang{background:#d5dfdc;color:#61766e}.person-check small{font-size:11px;color:var(--muted)}.person-check.checked small{color:#4d7054}.recent-days{display:flex;gap:7px;justify-content:space-between;margin:20px 0}.day-chip{flex:1;font-size:10px;text-align:center;color:var(--muted)}.day-chip span{width:28px;height:28px;display:grid;place-items:center;background:#e8ecdf;border-radius:50%;margin:6px auto;color:#718267;font-size:12px}.day-chip.done span{background:var(--green);color:white}.pending-panel{grid-column:1/-1}.pending-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:17px 0}.pending-row p{font-size:13px}.pending-row small{display:block;font-size:11px;color:var(--muted);margin-top:7px}.pending-row:last-child{border-bottom:0}.chat-page{max-width:750px;height:calc(100dvh - 130px);min-height:440px;display:flex;flex-direction:column;background:#f8faf4;border:1px solid var(--line);border-radius:16px;overflow:hidden}.chat-head{display:flex;align-items:center;gap:13px;padding:20px 24px;border-bottom:1px solid var(--line)}.chat-head .avatar{width:37px;height:37px;font-size:17px}.chat-head h1{font-size:14px;font-weight:500}.chat-head p{font-size:11px;color:var(--muted);margin-top:5px}.messages{overflow:auto;padding:20px;flex:1;overscroll-behavior:contain;scrollbar-width:thin}.message-date{text-align:center;font-size:10px;color:var(--muted);padding:12px}.message{display:flex;align-items:flex-start;gap:9px;margin-bottom:18px;max-width:86%}.message.mine{margin-left:auto;flex-direction:row-reverse}.message .avatar{width:30px;height:30px;font-size:12px;flex-shrink:0}.message-body{min-width:0}.bubble{background:white;border:1px solid #dfe5d8;border-radius:1px 12px 12px 12px;padding:11px 14px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:#e0e8d7;border-color:#d2dec7;border-radius:12px 1px 12px 12px}.message-meta{display:flex;gap:10px;color:var(--muted);font-size:9px;margin-top:6px;align-items:center}.mine .message-meta{justify-content:flex-end}.message-meta button{font-size:9px;padding:3px;text-decoration:underline}.composer{padding:12px 18px 16px;border-top:1px solid var(--line);background:#f3f6ee}.emoji-bar{display:flex;gap:5px;padding-bottom:8px;flex-wrap:wrap}.emoji-bar button{font-family:"Segoe UI Emoji",sans-serif;font-size:20px;width:32px;height:30px;border-radius:4px}.emoji-bar button:hover{background:#e1e8da}.compose-row{display:flex;gap:10px;align-items:end}.compose-row textarea{flex:1;min-width:0;resize:none;border:1px solid #cdd8c7;background:#fffef9;border-radius:8px;padding:11px;font-size:13px;line-height:1.5;height:64px}.compose-row .btn{min-height:43px;padding:10px 16px}.chat-hint{font-size:10px;color:var(--muted);margin-top:6px}.settings-page{max-width:690px}.settings-page .panel{margin-bottom:18px}.field{display:block;font-size:12px;margin:18px 0}.field input,.field textarea,.field select{display:block;margin-top:8px;width:100%;border:1px solid #c9d4c3;background:#fffefb;color:var(--ink);padding:12px;border-radius:7px;min-height:44px}.field textarea{min-height:110px;resize:vertical;line-height:1.7}.field small{display:block;color:var(--muted);font-size:11px;margin-top:7px;line-height:1.7}.notice{font-size:12px;line-height:1.9;background:#e9eddf;border-radius:8px;padding:14px 17px;margin:16px 0}.notice.error{background:#f8e6df;color:#934f44}.inline-code{font:14px Georgia,serif;letter-spacing:2px;background:#e7eddc;padding:11px 15px;border-radius:6px;overflow-wrap:anywhere}.account-details{font-size:12px;line-height:2;color:var(--muted);overflow-wrap:anywhere}.install-steps{font-size:12px;line-height:2;color:var(--muted);padding-left:18px}.mobile-nav{display:none}.mode-mobile{display:none}
dialog{padding:0;border:1px solid #d5ddcb;background:var(--paper);color:var(--ink);border-radius:18px;width:min(470px,calc(100vw - 28px));max-height:calc(100dvh - 36px);box-shadow:0 18px 80px #2536263d}dialog::backdrop{background:#243a2c70;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px 12px;position:sticky;top:0;background:var(--paper);z-index:2}.modal-head h2{font-family:var(--serif);font-size:24px;font-weight:500}.modal-body{padding:0 24px 26px}.modal-desc{font-size:12px;line-height:1.9;color:var(--muted)}.modal-body .stamp{margin:22px auto}.modal-body .button-row .btn{flex:1}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:20px 0}.auth-tabs button{padding:12px 22px;font-size:13px}.auth-tabs button.active{border-bottom:2px solid var(--green)}.form-error{font-size:12px;color:#9a5149;line-height:1.8;margin:10px 0;white-space:pre-wrap}.form-status{font-size:12px;line-height:1.8;color:var(--green);margin:10px 0}.list-search{display:flex;align-items:center;border:1px solid #ccd7c4;border-radius:8px;padding:0 12px;margin:14px 0}.list-search .icon{width:18px;height:18px}.list-search input{border:0;background:none;outline:0;padding:12px 10px;font-size:12px;min-width:0;flex:1}.list-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.list-filters button{font-size:11px;padding:8px 12px;border-radius:30px;border:1px solid var(--line);min-height:34px}.list-filters button.active{background:var(--green);color:white;border-color:var(--green)}.all-list{max-height:52dvh;overflow:auto;scrollbar-width:thin}.all-list button{width:100%;display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;text-align:left;padding:15px 0;border-bottom:1px solid var(--line)}.all-list .list-number{font:16px Georgia,serif;color:#8a977f}.all-list strong{font-size:12px;font-weight:400}.all-list small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.status-pill{font-size:9px;padding:4px 7px;border-radius:20px;white-space:nowrap;background:#e9eddf;color:#63734f}.status-pill.approved{background:#dfe7d6}.status-pill.pending{background:#efe4ce;color:#8a6c40}.toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,16px);z-index:1000;border-radius:8px;padding:13px 22px;background:#324b3eef;color:white;font-size:12px;box-shadow:0 8px 30px #20382b2a;opacity:0;pointer-events:none;transition:.18s;max-width:calc(100% - 32px);width:max-content;line-height:1.7}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-role-switch{display:none}
@media(min-width:1450px){.main{padding-left:64px}.story-layout{gap:50px;grid-template-columns:430px minmax(240px,1fr)}}
@media(max-width:1130px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:30px 20px}.main{padding:24px 28px}.story-layout{grid-template-columns:minmax(280px,400px) minmax(180px,1fr);gap:24px}.story-heading h2{font-size:31px}.story-notes .quote{font-size:14px}}
@media(max-width:900px) and (min-width:721px){.story-layout{display:block;max-width:420px;margin:auto}.story-notes{display:none}.page-intro h1{font-size:26px}.home-layout{grid-template-columns:1fr}.chat-page{height:calc(100dvh - 110px)}}
@media(max-width:720px){.shell{display:block;min-height:100dvh}.sidebar{display:none}.main{padding:16px 18px calc(90px + env(safe-area-inset-bottom));max-width:560px;margin:auto}.topbar{height:32px;margin:0 0 18px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:7px;font-family:var(--serif);font-size:18px;letter-spacing:1px}.mobile-brand .icon{width:18px;height:18px}.top-actions{gap:8px}.top-actions .plain-link{font-size:10px}.top-actions .icon-button{width:30px;height:30px}.top-actions .icon-button .icon{width:18px;height:18px}.page-intro{margin-bottom:17px}.page-intro h1{font-size:25px;letter-spacing:1px}.page-intro p{font-size:10px;margin-top:3px}.page-intro .text-button{font-size:11px}.story-layout{display:block}.story-notes{display:none}.story-stage{border-radius:3px 3px 16px 3px;box-shadow:0 11px 28px -19px #48543e80}.story-heading h2{font-size:clamp(28px,8.2vw,41px)}.story-heading p{font-size:10px}.story-heading{padding:7.8%}.story-eyebrow{font-size:10px;margin-bottom:10px}.stamp{width:84px;height:84px}.stamp strong{font-size:20px}.signature-note{font-size:9px;margin-bottom:8px}.signature-action{margin-top:8px}.signature-wrap{bottom:3.5%}.story-pagination{padding-top:10px}.story-pagination button{font-size:10px}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;height:calc(66px + env(safe-area-inset-bottom));padding:7px 15px calc(5px + env(safe-area-inset-bottom));justify-content:space-around;background:#f7f9f1f2;border-top:1px solid #d9e0d0;backdrop-filter:blur(18px);z-index:8}.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:10px;min-width:58px;border-radius:9px;position:relative;color:#75816b}.mobile-nav button.active{color:var(--green);background:#e6ecdc}.mobile-nav button svg{width:21px;height:21px}.mobile-nav .badge{position:absolute;right:3px;top:-2px;font-size:9px}.mode-mobile{display:block;font-size:9px;color:#7b866e}.mobile-role-switch{display:flex;justify-content:center;align-items:center;gap:8px;border-bottom:1px solid var(--line);font-size:10px;padding:0 0 11px;margin-bottom:12px;color:var(--muted)}.mobile-role-switch button{border:1px solid #c5d0bc;border-radius:20px;padding:5px 10px;min-height:28px;font-size:10px}.mobile-role-switch button.selected{background:#506b58;color:white;border-color:#506b58}.things-page .page-intro{display:none}.home-layout{display:block}.home-layout>*{margin-bottom:18px}.home-letter{padding:26px;min-height:270px}.home-letter h2{font-size:22px}.day-number{font-size:62px}.panel{padding:22px}.chat-page{height:calc(100dvh - 155px - env(safe-area-inset-bottom));min-height:350px;border-radius:12px}.chat-head{padding:15px 16px}.messages{padding:12px}.composer{padding:10px 12px 12px}.bubble{font-size:12px}.chat-hint{font-size:9px}.settings-page .panel{padding:20px}.settings-page .page-intro{display:block}.toast{bottom:calc(83px + env(safe-area-inset-bottom));font-size:11px}.modal-head{padding:18px 20px 10px}.modal-body{padding:0 20px 22px}.modal-head h2{font-size:22px}.paper-copy{font-size:21px}.pending-row{gap:10px}.pending-row .btn{padding:8px 12px;min-height:38px;font-size:11px}}
@media(max-width:360px){.main{padding-left:12px;padding-right:12px}.stamp{width:73px;height:73px}.stamp strong{font-size:18px}.stamp small{font-size:8px}.story-heading h2{font-size:26px}.signature-note{margin-bottom:6px}.signature-action{margin-top:4px}.story-heading p{font-size:9px}.top-actions{gap:4px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
