@charset "UTF-8";
:root{--ink:#20372d;--muted:#879087;--line:#e4e9e0;--paper:#f5f6f3;--green:#2d5b47;--white:#fff;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;font-size:14px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overscroll-behavior-y:none}button,input,textarea{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}button{border:0;cursor:pointer;border-radius:14px;transition:background .15s,transform .15s;touch-action:manipulation}button:disabled{opacity:.4;cursor:not-allowed}button:active:not(:disabled){transform:scale(.98)}button:focus-visible,a:focus-visible{outline:3px solid #a2b897;outline-offset:3px}a{color:inherit;text-decoration:none}.masthead{height:84px;max-width:1024px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:650;letter-spacing:2px}.mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--green);color:#e0f1bc;font-size:29px;font-weight:400;line-height:1}.icon-button{display:grid;place-items:center;width:44px;height:44px;background:transparent;color:#7e8a7b;font-size:20px}.icon-button:hover{background:#e9ede5}#help{font-size:15px;border:1px solid #dce3d5;width:34px;height:34px;border-radius:50%}main{max-width:900px;margin:auto}.welcome{min-height:calc(100dvh - 84px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 90px;gap:26px}.entry-card{width:100%;max-width:408px;border:1px solid var(--line);border-radius:26px;background:var(--white);padding:36px;box-shadow:0 14px 48px #29422b06}.eyebrow{font-size:9px;letter-spacing:1.9px;color:#94a18b;font-weight:600}.entry-card h1{font-size:28px;letter-spacing:-1px;line-height:1.4;font-weight:600;margin:16px 0 32px}.primary,.secondary{padding:13px 18px;min-height:48px;font-size:14px;font-weight:600}.primary{background:var(--green);color:#f5faee}.primary:hover:not(:disabled){background:#234b38}.secondary{background:#f0f3ed;color:#3c5945}.secondary:hover:not(:disabled){background:#e7eddf}.wide{width:100%;display:flex;align-items:center;justify-content:space-between}.wide>span{font-size:20px;font-weight:400}.divider{display:flex;align-items:center;gap:14px;margin:25px 0;font-size:11px;color:#a0a79a}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.code-input{width:100%;border:1px solid var(--line);border-radius:13px;min-height:52px;padding:12px 14px;background:#fbfcf9;margin-bottom:12px;font-size:14px;letter-spacing:.5px;text-transform:uppercase}.code-input::placeholder{color:#a4ad9c;letter-spacing:0}input:focus{outline:2px solid #9daf88;outline-offset:1px}.welcome-note{font-size:11px;color:#9aa391;letter-spacing:1px}.saved-rooms{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.saved-rooms h2{font-size:11px;font-weight:500;color:var(--muted);margin:0 0 12px}.saved-rooms #saved-list{max-height:168px;overflow:auto}.saved-rooms .secondary{font-size:12px;background:transparent;border-radius:8px;padding:11px 0;min-height:42px}.chat{height:calc(100dvh - 118px);min-height:380px;max-height:950px;margin:0 24px 34px;background:var(--white);border:1px solid var(--line);border-radius:22px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 12px 45px #23492904}.room-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;padding:20px 25px;border-bottom:1px solid #eef1e9}.room-heading h1{font-size:16px;font-weight:600;margin:0 0 6px}.presence{font-size:11px;color:#65805d;display:flex;align-items:center;gap:6px}.presence i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#77a164}.presence.off{color:#99a18f}.presence.off i{background:#b4bba9}.room-actions{display:flex;align-items:center;gap:10px}.compact{font-size:12px;min-height:36px;padding:8px 16px;border-radius:10px}.messages{flex:1;min-height:0;overflow:auto;padding:28px;display:flex;flex-direction:column;gap:19px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dbe2d3 transparent}.empty{margin:auto;text-align:center;color:#a3ad9b;padding:20px}.empty-mark{font-size:53px;font-weight:300;line-height:1.2;color:#d3dec8}.empty h3{font-size:13px;font-weight:400;margin:15px 0 6px;color:#929e88}.empty p{font-size:11px;margin:0;color:#b1b9a9}.message{max-width:80%;align-self:flex-start;display:flex;flex-direction:column;gap:7px;min-width:110px}.message.own{align-self:flex-end;align-items:flex-end}.bubble{margin:0;padding:12px 16px;border-radius:16px 16px 16px 4px;background:#f0f3ec;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.own .bubble{border-radius:16px 16px 4px 16px;background:var(--green);color:#f5faef}.message-meta{font-size:10px;color:#a2ad98;font-variant-numeric:tabular-nums}.composer{flex-shrink:0;padding:15px 23px 17px;background:#fcfdf9;border-top:1px solid #edf1e7}.composer textarea{display:block;width:100%;border:0;background:transparent;resize:none;font-size:16px;line-height:1.6;min-height:29px;max-height:130px;padding:3px 0;outline:none;overflow-y:auto}.composer textarea::placeholder{color:#a6af9e}.composer-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.composer-bottom>span{font-size:10px;color:#a9b19f}.composer .primary{padding:8px 18px;min-height:38px;border-radius:11px;font-size:12px}.notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#243e30;color:#f5faef;border-radius:12px;padding:13px 18px;max-width:calc(100vw - 32px);width:max-content;font-size:12px;line-height:1.8;box-shadow:0 6px 30px #294d2920;z-index:10}dialog{border:1px solid #e1e8d9;border-radius:25px;padding:30px;width:370px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 40px);color:var(--ink);box-shadow:0 22px 90px #19362120;background:#fff;overflow:auto}dialog::backdrop{background:#223a2b55;backdrop-filter:blur(3px)}dialog h2{font-size:22px;font-weight:600;letter-spacing:-.4px;margin:0 0 15px}.dialog-top{display:flex;align-items:center;gap:12px;margin:0 0 22px}.dialog-mark{width:34px;height:34px;display:grid;place-items:center;background:#edf4e3;border-radius:11px;font-size:29px;line-height:1;color:#70915a}.dialog-top .eyebrow{font-size:10px;letter-spacing:1px}.guide-list{padding:0;margin:26px 0;list-style:none;counter-reset:guide;display:flex;flex-direction:column;gap:22px}.guide-list li{counter-increment:guide;display:grid;grid-template-columns:24px 1fr;gap:5px 12px}.guide-list li:before{content:counter(guide,decimal-leading-zero);font-size:10px;color:#91a37f;grid-row:1/3;padding-top:3px}.guide-list b{font-size:13px;font-weight:600}.guide-list span{font-size:11px;color:#8d9885;line-height:1.8}.dialog-note{font-size:10px;color:#9da591;line-height:1.8;margin:0 0 23px}.muted{color:#8b9783;font-size:12px;line-height:1.8}.invite-code{font-family:ui-monospace,monospace;overflow-wrap:anywhere;letter-spacing:1px;font-size:20px;line-height:1.8;padding:19px;background:#f4f7ee;border-radius:12px;margin:23px 0}.quiet{padding:16px 0 0;background:none;justify-content:center;color:#9aa38f;font-size:12px;min-height:42px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-actions button{font-size:13px;min-height:44px;padding:11px 18px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;padding:0;border:0}[hidden]{display:none!important}
@media(max-width:600px){.masthead{height:64px;padding:0 20px}.brand{font-size:19px;gap:8px}.mark{width:29px;height:29px;font-size:26px;border-radius:9px}#help{width:30px;height:30px;font-size:13px}.welcome{min-height:calc(100dvh - 64px);padding:20px 24px 70px;gap:25px}.entry-card{padding:30px 25px;border-radius:23px;max-width:390px}.entry-card h1{font-size:26px;margin-bottom:28px}.code-input{font-size:16px;min-height:54px}.primary,.secondary{min-height:49px}.chat-open{height:var(--app-height,100dvh);overflow:hidden;display:flex;flex-direction:column}.chat-open .masthead{width:100%;flex-shrink:0;height:56px;padding:0 17px}.chat-open main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column}.chat{flex:1;height:auto;min-height:0;max-height:none;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}.room-toolbar{padding:13px 17px;background:#fff}.room-heading h1{font-size:14px;margin-bottom:5px}.presence{font-size:10px}.room-actions{gap:4px}.compact{min-height:34px;padding:8px 14px;font-size:11px}.room-actions .icon-button{width:40px;height:40px;font-size:20px}.messages{padding:22px 17px;gap:18px;background:#fafbf8}.message{max-width:87%}.bubble{font-size:15px;padding:11px 15px}.message-meta{font-size:10px}.composer{padding:13px 17px calc(12px + env(safe-area-inset-bottom));background:#fff}.composer textarea{font-size:16px;max-height:110px;line-height:1.5;min-height:30px}.composer-bottom{margin-top:7px}.composer .primary{min-height:40px;padding:9px 19px;font-size:13px}.notice{bottom:calc(20px + env(safe-area-inset-bottom));font-size:12px;max-width:calc(100vw - 28px)}dialog{border-radius:23px;padding:27px;width:360px}.invite-code{font-size:18px;padding:17px}.dialog-actions .secondary,.dialog-actions .primary{min-height:44px}.welcome-note{font-size:10px}}@media(max-width:360px){.welcome{padding-left:18px;padding-right:18px}.entry-card{padding:28px 22px}.entry-card h1{font-size:24px}.invite-code{font-size:16px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.chat-help{display:none}@media(max-width:600px){.chat-open .masthead{display:none}.room-actions .compact{min-height:44px}.room-toolbar{padding-top:calc(13px + env(safe-area-inset-top))}}

/* A quiet correspondence desk: the rooms, rather than a feature list, lead home. */
.welcome{display:grid;grid-template-columns:1fr 1.1fr;gap:60px;align-items:center;max-width:820px;margin:auto;padding:40px 30px 90px;min-height:calc(100dvh - 84px)}
.home-intro{position:relative;padding-bottom:36px}.home-intro h1{font-family:"Songti SC","SimSun",serif;font-size:46px;font-weight:400;line-height:1.6;letter-spacing:2px;margin:20px 0 0}.home-intro .eyebrow{letter-spacing:2px;color:#6f836d}.paper-seal{display:inline-grid;place-items:center;width:31px;height:36px;margin-top:25px;color:#9a6753;border:1px solid #b28b77;border-radius:3px;font-family:serif;font-size:19px;transform:rotate(-5deg)}
.home-content{width:100%;min-width:0}.entry-card{padding:25px;border-radius:20px;max-width:none}.divider{margin:19px 0}.restore-link{display:block;margin:7px auto 0;padding:12px;min-height:44px;font-size:12px;color:#687c65}.restore-link.pending{color:var(--green);font-weight:600}
.saved-rooms{border:0;padding:0;margin:0 0 26px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.section-title h2{font-size:12px;color:#61775e;margin:0;letter-spacing:1px}.text-button{background:transparent;color:#61775e;font-size:12px;padding:12px 3px;min-height:44px}.saved-rooms #saved-list{max-height:300px;overflow:auto;display:flex;flex-direction:column;gap:9px;scrollbar-width:thin}
.room-card{width:100%;display:flex;align-items:center;gap:13px;padding:16px 17px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left;min-height:78px}.room-card:hover{border-color:#bdcbb2;background:#fdfff9}.room-card-mark{display:grid;place-items:center;flex-shrink:0;width:34px;height:38px;background:#f2f5ed;color:#739162;font-size:26px;border-radius:8px}.room-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.room-card-copy b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-card-copy small{font-size:11px;color:#87927f}.unread-badge{display:grid;place-items:center;background:var(--green);color:#fff;min-width:24px;height:24px;padding:0 7px;border-radius:20px;font-size:11px;font-variant-numeric:tabular-nums}.room-arrow{color:#a0ac96;font-size:18px}
.room-heading{min-width:0;flex:1}.room-heading h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.room-actions{flex-shrink:0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-heading h2{margin:0}.field-label{display:block;font-size:12px;margin-bottom:10px;color:#657b5e}.field-label small{float:right;font-size:10px;color:#9aa38f}.field-input{width:100%;padding:13px;border:1px solid var(--line);border-radius:11px;min-height:48px;background:#fafcf7;font-size:16px}.check-label{display:flex;align-items:center;gap:9px;font-size:12px;color:#68795f;margin:19px 0 23px;min-height:30px}.check-label input{width:18px;height:18px;accent-color:var(--green)}.settings-links{margin-top:20px;padding-top:10px;border-top:1px solid var(--line);display:flex;justify-content:space-between}.recovery-input{width:100%;min-height:120px;resize:vertical;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f7f9f3;font-family:ui-monospace,monospace;font-size:14px;line-height:1.7;word-break:break-all;margin:10px 0 20px}.recovery-input:focus{outline:2px solid #a0b38f;outline-offset:1px}.recovery-input:disabled{opacity:.7}#export-dialog,#restore-dialog{width:410px}.notice{z-index:20}dialog .muted{color:#708065}
@media(max-width:600px){.welcome{display:flex;justify-content:flex-start;align-items:stretch;padding:28px 22px 36px;gap:29px;max-width:440px;min-height:calc(100dvh - 64px)}.home-intro{padding:0 4px}.home-intro h1{font-size:32px;line-height:1.55;margin:12px 0 0;letter-spacing:1px}.home-intro .eyebrow{font-size:8px;letter-spacing:1.8px}.paper-seal{position:absolute;right:11px;bottom:7px;margin:0;width:28px;height:33px;font-size:17px}.entry-card{padding:23px;border-radius:19px}.saved-rooms{margin-bottom:22px}.saved-rooms #saved-list{max-height:260px}.room-card{min-height:76px;padding:15px}.room-heading h1{font-size:15px}.room-actions{gap:0}.room-actions .icon-button{width:40px;height:44px}.room-actions .compact{padding:9px 12px;margin-right:3px}.room-toolbar{gap:8px}.field-input,.recovery-input{font-size:16px}dialog{padding:25px}.dialog-heading{margin-bottom:18px}#help{width:44px;height:44px}dialog .icon-button{margin:-8px -8px -8px 0}}
@media(max-width:360px){.welcome{padding:20px 16px 28px;gap:23px}.home-intro h1{font-size:29px}.entry-card{padding:20px}.room-toolbar{padding-left:13px;padding-right:10px}.room-actions .compact{padding:9px 10px}.room-actions .icon-button{width:36px}.room-card{padding:13px;gap:10px}}

.danger-link{background:transparent;color:#a4493e;font-size:12px;min-height:48px;padding:14px 3px;margin-top:8px;justify-content:center}.danger-link:hover{background:#fcf2ef}.danger{background:#a4493e;color:#fff;font-weight:600;min-height:44px;padding:11px 18px}.danger:hover:not(:disabled){background:#893b32}

.composer-tools{display:flex;align-items:center;gap:10px;min-width:0}.composer-tools>span{font-size:10px;color:#a9b19f}.image-attach{display:grid;place-items:center;width:44px;height:44px;background:transparent;color:#68825d;border-radius:11px}.image-attach:hover:not(:disabled){background:#edf2e7}.composer-tools .text-button{padding:8px 0;font-size:11px}.bubble.image-bubble{padding:4px;overflow:hidden;line-height:0;max-width:100%;background:#edf2e8}.image-open{display:block;padding:0;background:none;max-width:100%;border-radius:12px;overflow:hidden}.image-open img{display:block;width:auto;height:auto;max-width:260px;max-height:280px;object-fit:contain}.image-preview{display:block;width:100%;height:auto;max-height:42dvh;object-fit:contain;border-radius:12px;background:#f5f6f3}.image-info{margin:14px 0 0;font-size:11px}.image-viewer{position:fixed;inset:0;width:90vw;max-width:1100px;padding:44px 10px 10px;border:0;border-radius:16px;background:#15231ded;overflow:hidden}.image-viewer::backdrop{background:#102016d9}.image-viewer>img{display:block;width:100%;height:auto;max-height:calc(var(--app-height,100dvh) - 130px);object-fit:contain}.viewer-close{position:absolute;right:5px;top:0;width:44px;height:44px;color:#fff;background:transparent;font-size:30px}.image-viewer:focus{outline:none}@media(max-width:600px){.image-open img{max-width:min(260px,65vw);max-height:280px}.image-viewer{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:44px 5px 5px}.image-preview{max-height:38dvh}.composer-tools{gap:7px}}@media(prefers-reduced-motion:no-preference){.image-open img{transition:opacity .15s}}
