/* Construction V2: dark lacquer, worn brass, bound paper. Scene-first app chrome. */
body.m27{--im-gold:#d9b879;--im-ink:#30291f;--im-paper:#ead9b7;background:#07151b;padding:0;overflow:hidden}
body.m27 .page{width:100%;max-width:none!important;height:var(--app-height,100dvh)!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0;background:#07151b}
body.m27 .tabbar{display:none!important}
body.m27 #page-town>.navbar,body.m27 #page-town>#town-body>h2,body.m27 #page-town #town-intro{display:none!important}
body.m27 #page-town .town-body,body.m27 #town-actions{padding:0;margin:0;flex:1;min-height:0;height:100%;overflow:hidden;background:#07151b}
body.m27 #page-login:before{background-image:linear-gradient(0deg,#07151bf7,transparent 85%),url('/assets/m27/town-world.webp')}
body.m27 .logo{font-family:'Songti SC','STSong','SimSun',serif;letter-spacing:6px;font-weight:700}
.im-dialog{--im-paper:#ead9b7;--im-ink:#30291f;box-sizing:border-box;position:fixed;inset:4dvh 0;margin:auto;width:min(900px,94%);height:92dvh;max-height:calc(var(--app-height,100dvh) - 16px);max-width:100%;padding:0;border:1px solid #a58b54;border-radius:8px;background:radial-gradient(ellipse at 10% 0,#fff6d855,transparent 55%),repeating-linear-gradient(9deg,#79582707 0 1px,transparent 1px 5px),#ead9b7;color:#30291f;box-shadow:0 0 0 4px #201d15,0 0 0 5px #ad8b4c77,0 25px 80px #000b;font:15px/1.8 'Songti SC','STSong','SimSun',serif;overflow:hidden;color-scheme:light}
.im-dialog[open]{display:flex;flex-direction:column}.im-dialog::backdrop{background:#020a1277;backdrop-filter:blur(3px)}
.im-dialog.im-dossier,.im-dialog.im-cases{inset:0;width:100%;height:var(--app-height,100dvh);max-height:none;border:0;border-radius:0;background:transparent;box-shadow:none}
.im-dialog:is(.im-dossier,.im-cases)>.im-head{display:none}
.im-dialog:is(.im-dossier,.im-cases)>.im-body{padding:0;height:100%;overflow:hidden}
body.m27 [data-im-news][data-unread]:not([data-unread="0"]):after{content:'';position:absolute;width:9px;height:9px;right:4px;top:3px;border-radius:50%;background:#bd4938;box-shadow:0 0 0 2px #192220}
.im-dialog *{box-sizing:border-box}.im-dialog :is(h1,h2,h3,p){margin:0}.im-dialog button,.im-dialog input,.im-dialog textarea{font-family:inherit}
.im-dialog :is(button,summary,input,textarea):focus-visible{outline:3px solid #be8840;outline-offset:3px}
.im-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:14px 22px;border-bottom:1px solid #92794b66;background:linear-gradient(100deg,#cbad7780,transparent)}
.im-head h1{font-size:23px;letter-spacing:3px;font-weight:600}.im-close{min-width:44px;min-height:44px;font-size:27px!important;border:0;background:transparent;color:#50432d;cursor:pointer}
.im-body{position:relative;flex:1;min-height:0;overflow:auto;padding:20px 22px 28px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#997e50 transparent}
.im-button{position:relative;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:10px 20px;border:1px solid #a78143;color:#27251d;background:linear-gradient(125deg,#f4e6c8,#dac18a);font:inherit;font-size:16px;line-height:1.5;cursor:pointer;clip-path:polygon(4px 0,calc(100% - 5px) 0,100% 6px,100% calc(100% - 5px),calc(100% - 6px) 100%,5px 100%,0 calc(100% - 5px),0 5px);box-shadow:inset 0 0 0 3px #886c2d1a}
.im-button:disabled{filter:grayscale(.8);opacity:.55;cursor:default}.im-button:hover:not(:disabled){background:#f7e7bc}
.im-quiet,.im-tab{min-height:44px;padding:8px 13px;border:1px solid #9b805044;background:transparent;color:#6d512a;font-size:14px;line-height:1.7;cursor:pointer}
.im-error{background:#dfb0a655;border:1px solid #9b443866;padding:10px 12px;white-space:pre-wrap;font-size:14px;color:#7d392e;margin:12px 0!important}
.im-loading,.im-empty{padding:30px 12px;color:#6c5e47;line-height:1.9}.im-muted{font-size:13px;color:#75674e}
.im-handbook{width:min(740px,94%);border-radius:3px 12px 12px 3px;border-left:12px solid #594126;background-color:#e7d3ab}
.im-handbook:before{content:'';position:absolute;z-index:4;left:3px;top:85px;bottom:25px;width:9px;background:repeating-linear-gradient(0deg,transparent 0 68px,#392b18 69px 74px,#c2a461 75px 78px,transparent 79px 98px);pointer-events:none}
.im-handbook .im-body{padding:0 18px 18px}.im-handbook-tabs{display:flex;gap:0;border-bottom:1px solid #8f744b66;position:sticky;top:0;z-index:3;background:#e5cda3}
.im-handbook-tabs .im-tab{flex:1;min-width:0;padding:10px 5px;border:0;font-size:15px}.im-handbook-tabs .im-tab[aria-pressed=true]{background:#1c231ee6;color:#e3c18b;box-shadow:inset 0 -2px #d1a45e}
.im-handbook-content{padding-top:16px;min-height:0}.im-handbook-title{font-family:'STKaiti','KaiTi','SimSun',serif;font-size:66px!important;letter-spacing:16px;text-align:center;padding:12dvh 0 8dvh}
.im-book-entry{display:flex;width:100%;margin:0 0 13px;background:#d5b47b66;border-color:#94744766;justify-content:space-between;text-align:left;padding-left:23px}.im-book-entry:after{content:'›';font-size:25px}
.im-letter{position:relative;display:flex;align-items:center;gap:13px;width:100%;min-height:90px;padding:13px 8px;background:#fff1d023;border:0;border-bottom:1px solid #a68b5866;color:#382d1d;text-align:left;font:inherit;cursor:pointer}
.im-letter>img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid #8e7041}.im-letter>span{display:flex;flex:1;min-width:0;flex-direction:column}.im-letter strong{font-size:16px;font-weight:600}.im-letter small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#715e3f;max-width:100%}.im-letter time{font-size:11px;color:#7f6b4a;align-self:flex-start;white-space:nowrap}.im-unread{position:absolute;right:8px;bottom:14px;min-width:20px;height:20px;background:#ac4332;border-radius:50%;color:#fff3d7;text-align:center;font:12px/20px sans-serif}
.im-thread-back{border:0;background:transparent;min-height:44px;color:#795c2c;font-size:15px;padding:4px 0}.im-letter-log{height:calc(65dvh - 110px);min-height:140px;overflow:auto;padding:12px 0;scrollbar-width:thin;overscroll-behavior:contain}.im-letter-bubble{max-width:90%;padding:11px 13px;margin:0 0 13px;white-space:pre-wrap;font:14px/1.8 -apple-system,'Microsoft Yahei',sans-serif;background:#172326;color:#f4e5c4;border:1px solid #ac8b4a55;border-radius:2px 9px 9px 9px;overflow-wrap:anywhere}.im-letter-bubble.mine{margin-left:auto;background:#f7e9c9;color:#3b3123;border-color:#a68b5866;border-radius:9px 2px 9px 9px}
.im-reply{display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid #8f744b66}.im-input{box-sizing:border-box;width:100%;min-height:46px;min-width:0;flex:1;background:#fff1d2cc;border:1px solid #97764888;border-radius:4px;padding:11px;color:#30291f;font-size:16px!important;line-height:1.6}.im-send{flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:linear-gradient(120deg,#f1d391,#aa7b32);border:1px solid #b89450;font-size:23px;color:#292a20;cursor:pointer}
.im-person-hero{position:relative;height:41dvh;min-height:240px;overflow:hidden;background:#142424;margin:-20px -22px 14px}.im-person-hero>img{width:100%;height:100%;object-fit:cover;object-position:center 24%}.im-person-hero:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#0b1a1ee8,transparent 50%)}.im-person-name{position:absolute;z-index:1;left:24px;bottom:22px;writing-mode:vertical-rl;font-size:38px;letter-spacing:9px;color:#efdfb8}.im-person-tabs{display:flex;gap:4px}.im-person-tabs button{flex:1;min-height:46px;border:1px solid #a68b5877;background:#e7d1a8;color:#513d21;font-size:14px}.im-person-tabs [aria-pressed=true]{background:#172321;color:#efd9a7}.im-person-content{padding:17px 0;border-bottom:1px solid #a68b5866}.im-person-content h3{font-size:19px;margin-bottom:9px}.im-person-content p{line-height:1.9;margin-bottom:9px}.im-known-people{display:flex;gap:7px;overflow:auto;padding-top:16px}.im-person-choice{flex-shrink:0;background:#2a2b22;color:#ead2a2;border:1px solid #ad8d50;min-height:44px;padding:8px 13px;font-size:14px}
.im-moment{padding:13px 2px 20px;margin-bottom:12px;border-bottom:1px solid #94744766}.im-moment>header{display:flex;align-items:center;gap:9px;margin-bottom:9px}.im-moment header>img{width:37px;height:37px;object-fit:cover;border-radius:50%}.im-moment time{font-size:11px;color:#7f6b4a;margin-left:auto}.im-moment-text{font-size:15px;line-height:1.85;white-space:pre-wrap}.im-moment-text img{max-width:100%;border:5px solid #f5e5c4;box-shadow:0 2px 5px #48352155}.im-moment-actions{display:flex;gap:10px;margin-top:9px}.im-moment-actions button{border:0}.im-moment-comments{background:#b9995b22;padding:7px 9px;font-size:13px;line-height:1.8}.im-moment-comments:empty{display:none}.im-comment-reply{display:flex;gap:5px;margin-top:10px}.im-comment-reply input{min-height:44px;font-size:16px}.im-comment-reply button{flex-shrink:0}.im-compose{display:flex;flex-direction:column;gap:9px;padding-bottom:18px;border-bottom:1px solid #9c825466}.im-compose button{align-self:flex-end}.im-settings .im-button{display:flex;width:100%;margin-top:18px}
.im-letter-notice{position:fixed;z-index:2000;left:50%;top:22%;transform:translateX(-50%);width:min(370px,90%);background:#ead9b7;color:#30291f;border:1px solid #9c7740;box-shadow:0 9px 50px #0008;padding:23px;font:15px/1.8 'SimSun',serif}.im-letter-notice p{margin:12px 0 18px}.im-letter-notice button{min-height:44px;margin-right:8px;border-radius:0;padding:8px 15px;background:#17292d;color:#ead5a8;border:1px solid #917749}.im-letter-notice .im-quiet{background:transparent;color:#71552c}
body.m27 .bj-journal{background:radial-gradient(ellipse at 5% 0,#fff2d259,transparent),repeating-linear-gradient(5deg,#68472005 0 1px,transparent 1px 4px),#ead9b7;border-radius:4px;color:#392e20;border-color:#9d7b43;font-family:'Songti SC','SimSun',serif}
body.m27 .bj-journal :is(.bj-head,.bj-tabs,.bj-record,.bj-note,.bj-reference,.bj-textarea){background-color:#f4e7ca}.m27 .bj-journal .bj-button{border-radius:3px}
@media(min-width:760px){.im-dialog{inset:5dvh 0;width:min(1000px,92%);height:90dvh}.im-handbook{width:min(740px,92%)}.im-person-hero{height:48dvh}.im-letter-log{height:56dvh}.im-handbook-title{padding-top:8dvh}}
@media(max-width:359px){.im-dialog{width:96%}.im-head{padding:10px 13px}.im-head h1{font-size:21px}.im-body{padding-left:14px;padding-right:14px}.im-handbook .im-body{padding-left:11px;padding-right:11px}.im-letter{gap:8px}.im-letter>img{width:38px;height:38px}}
@media(max-height:500px){.im-dialog{inset:2px 0;height:calc(var(--app-height,100dvh) - 4px);max-height:none}.im-head{padding:3px 13px}.im-head h1{font-size:18px}.im-body{padding-top:10px}.im-letter-log{height:calc(var(--app-height,100dvh) - 220px);min-height:70px}.im-person-hero{min-height:150px;height:45dvh}}
@media(prefers-reduced-motion:reduce){body.m27 *,body.m27 *:before,body.m27 *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Book cover controls retain the readable V2 size, including custom button classes. */
.im-book-entry{font:16px/1.6 'Songti SC','SimSun',serif;min-height:48px;align-items:center;cursor:pointer;color:#473721}
.im-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.im-upload-previews{display:flex;gap:10px;flex-wrap:wrap}.im-upload-preview{width:92px}.im-upload-preview img{display:block;width:92px;height:92px;object-fit:cover;border:3px solid #f8edcf}.im-upload-preview button{padding:4px;min-height:44px;font-size:12px;width:100%}

/* m28: a journal in the player's hands, with the town still beyond the paper. */
.im-dialog.im-handbook{inset:0;width:100%;height:var(--app-height,100dvh);max-height:none;max-width:none;border:0;border-radius:0;background:linear-gradient(#06121970,#050a0bd9),url('/assets/m28/desk-background.webp') center/cover,#07161b;box-shadow:none;color:#332a21}
.im-handbook:before{display:none}.im-handbook>.im-head{border:0;color:#eadbb9;padding:12px max(20px,calc((100% - 660px)/2));background:linear-gradient(#071116d9,transparent)}.im-handbook .im-head h1{font-size:20px;font-weight:400;letter-spacing:5px}.im-handbook .im-close{color:#eddbb3;background:#152020a1;border:1px solid #b6975c66;border-radius:50%;height:42px}
.im-handbook>.im-body{flex:1;width:min(650px,calc(100% - 32px));margin:8px auto 28px;padding:0 22px 20px 28px;background:linear-gradient(90deg,#60442188,#d9c49a22 4%,#ffffff1c 8%,transparent 20%,#64472417),url('/assets/m28/paper-texture.webp') center/cover,#e1cba6;border:1px solid #ae8b57;border-radius:2px 7px 8px 2px;box-shadow:-6px 2px 0 #5b422c,3px 3px 0 #947f58,6px 5px 0 #382e22,0 15px 45px #000c;overflow:auto}
.im-handbook>.im-body:before{content:'';position:absolute;top:0;bottom:0;left:10px;width:1px;background:#5b3c2755;pointer-events:none}.im-handbook-tabs{background:#d9bf94e8;backdrop-filter:blur(12px);margin:0 -22px 0 -28px;padding-left:20px;border-bottom:1px solid #8d663f88}.im-handbook-tabs .im-tab{font-size:15px;padding:12px 4px;color:#564127}.im-handbook-tabs .im-tab[aria-pressed=true]{background:transparent;color:#231d14;box-shadow:inset 0 -3px #314748}.im-handbook-tabs .im-tab-cover{flex:0 0 54px;font-size:12px}.im-handbook-content{padding-top:18px;min-width:0;overflow-wrap:anywhere}.im-page-kicker{font-size:13px;letter-spacing:3px;color:#745332;margin:0 0 20px!important}
.im-handbook[data-view=cover]>.im-body{width:min(500px,calc(100% - 38px));padding:0;margin-top:0;background:linear-gradient(90deg,#241c1655,transparent 14%),url('/assets/m28/journal-cover.webp') center/100% 100%,#6c5231;overflow:auto;border-color:#755430;border-radius:2px 12px 12px 2px;box-shadow:-9px 1px 0 #2e281e,3px 2px 0 #ba9a67,6px 3px 0 #4e3829,0 15px 48px #000e}
.im-handbook[data-view=cover]>.im-body:before{display:none}.im-handbook[data-view=cover] .im-handbook-content{padding:0;min-height:100%}.im-cover{min-height:calc(var(--app-height,100dvh) - 115px);padding:32px 36px 25px 48px;display:flex;flex-direction:column;position:relative;background:linear-gradient(180deg,#3e2d1912,#50361c14)}
.im-cover-label{align-self:flex-end;margin:0 2% 28px;padding:15px 13px;min-height:190px;color:#2e241b;background:url('/assets/m28/paper-texture.webp') center/cover,#d8bd89;border:1px solid #59401f99;box-shadow:1px 3px 8px #34221466;display:flex;align-items:center;gap:8px;writing-mode:vertical-rl}.im-cover-label>span:first-child{font-size:12px;letter-spacing:5px;border-left:1px solid #72543477;padding-left:6px}.im-handbook-title{padding:0!important;font-family:'STKaiti','KaiTi','SimSun',serif;font-size:56px!important;letter-spacing:15px;line-height:1.25;font-weight:500}.im-cover-caption{font-size:11px;letter-spacing:5px;color:#664a2d}
.im-cover-entries{margin-top:auto;display:grid;gap:8px}.im-book-entry{position:relative;display:flex;align-items:center;gap:15px;margin:0;border:1px solid #765c3877;border-left:3px solid #6d5031;border-radius:1px 7px 3px 1px;min-height:54px;padding:10px 16px;background:linear-gradient(90deg,#d5bc89e6,#d5bc8970),url('/assets/m28/paper-texture.webp') center/cover;color:#302819;box-shadow:0 2px 4px #2d1c1840;font:18px/1.5 'Songti SC','SimSun',serif;text-align:left}.im-book-entry:after{display:none}.im-book-entry small{font:11px Georgia,serif;color:#83633a;letter-spacing:1px}.im-book-entry>span:nth-child(2){flex:1}.im-book-entry>span:nth-child(3){font-size:24px}.im-cover-badge{position:absolute;right:40px;top:18px;font:11px/19px sans-serif;min-width:19px;text-align:center;border-radius:50%;background:#9b382c;color:#fff1d5}.im-cover-foot{text-align:center;font-size:11px;letter-spacing:2px;color:#cfb78b;margin:24px 0 0!important;text-shadow:0 1px 3px #1b120d}
.im-letter-filters{display:flex;gap:5px;margin-bottom:10px}.im-letter-filters .im-quiet{font-size:12px;padding:5px 10px;min-height:36px;border:0}.im-letter-filters [aria-pressed=true]{background:#53432b14;border-bottom:1px solid #745333}.im-letter{background:linear-gradient(95deg,#fff4d440,transparent);min-height:95px;border-bottom:1px solid #98734455;gap:12px;padding:12px 6px}.im-letter>img{width:51px;height:60px;border-radius:2px;border:3px solid #ead9b6;box-shadow:1px 2px 3px #49351c33;object-position:center 24%}.im-letter strong{font-weight:500;font-size:18px}.im-letter small{margin-top:6px}.im-letter time{font-size:10px;max-width:64px}.im-letter-state{position:absolute;right:5px;bottom:13px;font-size:11px;font-style:normal;color:#97653c}.im-unread{width:18px;min-width:18px;height:18px;font-size:10px;line-height:18px;background:#a5412e}
.im-handbook[data-view=thread]>.im-body{padding:0 18px 10px;margin-top:0;background:linear-gradient(#07171cd9,#09171ce8),var(--im-correspondent) center 22%/cover,#0b1c22;border-color:#9e814e88;box-shadow:0 8px 35px #000b;color:#e6d8bb;display:flex;flex-direction:column}.im-handbook[data-view=thread] .im-handbook-tabs{display:none}.im-handbook[data-view=thread] .im-handbook-content{display:flex;flex-direction:column;overflow:hidden;flex:1;padding:0}.im-thread-heading{display:flex;align-items:center;gap:10px;flex:0 0 auto;border-bottom:1px solid #b3965a55;padding:7px 0}.im-thread-heading h2{font-size:20px;font-weight:400;flex:1;text-align:center}.im-thread-heading .im-quiet{font-size:12px;padding:4px;color:#b8a682;border:0}.im-thread-back{color:#dfc99a;font-size:14px;flex-shrink:0}.im-letter-log{height:auto!important;flex:1;min-height:80px;padding:18px 0;overflow:auto}.im-letter-bubble{background:#152a30d1;border:1px solid #ac8b4a38;color:#e9dfca;max-width:95%;border-radius:1px 6px 6px 1px;padding:12px 14px;font-size:15px;line-height:1.9;white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:0}.im-letter-bubble.mine{background:#d6dfd9e3;color:#293a3a;border-color:#b5c2b5;border-radius:6px 1px 1px 6px}.im-letter-copy{white-space:pre-wrap;max-width:100%;overflow-wrap:anywhere}.im-letter-author{display:block;color:#c9ad78;letter-spacing:2px;font-family:'Songti SC','SimSun',serif;margin-bottom:6px}.im-letter-bubble.mine .im-letter-author{color:#52696a}.im-letter-bubble time{display:block;font-size:10px;opacity:.55;margin-top:7px;text-align:right}.im-letter-bubble .im-quiet{color:inherit}.im-letter-material{padding:8px;margin-top:8px;border:1px solid #b1975d70;background:#ead5aa;color:#362d20}.im-letter-material summary{cursor:pointer;font-size:13px}.im-letter-material p{white-space:pre-wrap;font-size:13px;margin-top:10px}.im-reply{padding-top:10px;align-items:flex-end;border-color:#ab8d5544;flex-shrink:0}.im-reply .im-input{resize:none;max-height:125px;background:#102b32d9;color:#f0e2c4;border-color:#8e865c99;border-radius:7px}.im-reply .im-input::placeholder{color:#b5b7a9}.im-send{height:50px;width:50px;flex-basis:50px;border-radius:6px;font:15px/1.4 'SimSun',serif;background:#c7d4cf;color:#283f41;border-color:#93b1b5}.im-draft-status{display:block;flex-shrink:0;font-size:10px;text-align:right;opacity:.6;padding-top:5px}
.im-moment{background:linear-gradient(130deg,#fff6df44,transparent);padding:18px 4px 23px;margin:0 0 22px;border-bottom:1px solid #89684266}.im-moment>header{align-items:center;margin-bottom:14px}.im-moment-avatar{width:44px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#324345;color:#e2c997;border:2px solid #ead9b7;box-shadow:0 2px 4px #624c3233;font-size:21px}.im-moment-avatar img{width:100%;height:100%;object-fit:cover;object-position:center 24%}.im-moment-identity{display:flex;flex-direction:column;gap:2px}.im-moment-identity strong{font-size:18px;font-weight:500}.im-moment time{margin:0;font-size:11px;color:#806847}.im-moment-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.9}.im-moment-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:9px;margin-top:15px}.im-photo{border:0;display:block;background:#eee0bd;padding:4px;cursor:zoom-in;box-shadow:1px 3px 6px #4b352c44;min-width:0;max-width:100%;width:100%}.im-photo img{display:block;width:100%;max-height:330px;object-fit:cover}.im-moment-photos .im-photo:only-child img{max-height:320px}.im-letter-bubble>.im-photo{max-width:260px;margin:10px 0}.im-moment-actions{gap:15px;margin-top:12px}.im-moment-actions .im-quiet{padding:6px 0;min-height:36px;color:#5c412b}.im-likers{font-size:12px;line-height:1.7;color:#876b40;margin-bottom:9px!important}.im-likers:empty{display:none}.im-moment-comments{padding:8px 11px;background:#8a6f3d10;border-left:1px solid #91704555}.im-comment{display:block;width:100%;padding:5px 0;border:0;color:#3d3529;background:transparent;cursor:pointer;text-align:left;font:13px/1.8 'Songti SC','SimSun',serif;white-space:pre-wrap;overflow-wrap:anywhere}.im-comment strong{font-weight:600;color:#75552f}.im-comment-reply{align-items:flex-end}.im-comment-reply textarea{background:#e0c89b66;resize:none;font-size:16px!important;border:1px solid #8d6e4144;border-radius:2px;min-height:44px}.im-comment-reply .im-quiet{border:0;min-height:44px}.im-comment-context{font-size:12px;color:#85633c}.im-comment-context span{display:block;overflow:hidden;max-height:4em}.im-comment-context .im-quiet{padding:0;min-height:30px;font-size:11px;border:0}.im-moment-remove{font:11px/1.7 inherit;border:0;background:transparent;color:#8f7757;padding:12px 0 0;cursor:pointer}.im-delete-confirm{padding:10px;margin-top:10px;border:1px solid #97734f77;font-size:12px}.im-delete-confirm span{display:block}.im-moment-highlight{animation:im-page-glow 2s ease;border:1px solid #ae773c;padding:14px}.im-load-more{display:block;margin:20px auto;min-height:44px;border:0;background:transparent;color:#765633;font:14px 'SimSun',serif;border-top:1px solid #9a754633;padding:15px 30px;cursor:pointer}.im-load-more[hidden]{display:none}.im-notifications{background:#cfb17d33;margin-bottom:12px}.im-notifications:empty{display:none}.im-notifications h3{font-size:15px;padding:10px 12px 0;font-weight:500}.im-notification{display:block;text-align:left;width:100%;background:transparent;border:0;border-bottom:1px solid #98764b44;padding:12px;cursor:pointer;color:#513b26;font-family:inherit}.im-notification strong{display:block;font-size:13px;font-weight:600}.im-notification span{display:block;font-size:12px;line-height:1.7;margin-top:3px}.im-compose{padding:5px 0 20px;margin-bottom:15px;gap:12px}.im-compose h3{font-weight:400;font-size:23px;letter-spacing:3px}.im-compose .im-input{background:#fff3d644;border:0;border-bottom:1px solid #92734588;border-radius:0;line-height:1.9;font-size:16px!important;resize:vertical;min-height:100px;max-height:260px}.im-compose-hint{font-size:10px;color:#8a714e}.im-compose .im-button{background:#293e3d;color:#e9d4a8;border:1px solid #836b42;font-size:14px;padding:9px 18px;min-height:42px}.im-compose-actions .im-quiet{font-size:13px;border:0;padding-left:0}.im-photo-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:60px 18px 30px;border:0;background:#051017f5;color:#e6d5b4;overflow:auto;text-align:center}.im-photo-viewer::backdrop{background:#000e}.im-photo-viewer[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.im-photo-viewer img{max-width:100%;max-height:calc(100dvh - 140px);object-fit:contain}.im-photo-close{position:absolute;top:14px;right:20px;min-height:44px;padding:8px 18px;background:#253233;color:#ecd7ad;border:1px solid #ad8d51;cursor:pointer;font:14px 'SimSun',serif}.im-photo-viewer p{font-size:13px}
.im-dialog.im-people{inset:0;width:100%;height:var(--app-height,100dvh);max-height:none;border:0;border-radius:0;background:#08191f;color:#e4d6b9;box-shadow:none}.im-people>.im-head{position:absolute;inset:0 0 auto;z-index:3;border:0;background:linear-gradient(#061217bb,transparent);color:#f0dfb7}.im-people .im-close{color:#ead5ac}.im-people>.im-body{padding:0;display:flex;flex-direction:column;position:relative}.im-person-hero{position:absolute;inset:0;margin:0;height:100%!important;min-height:0}.im-person-hero>img{object-position:center 24%;filter:brightness(.82)}.im-person-hero:after{background:linear-gradient(0deg,#06151b 1%,#07191cc9 32%,transparent 64%,#07161d55)}.im-person-name{left:28px;top:110px;bottom:auto;letter-spacing:12px;font-size:44px;text-shadow:0 2px 8px #000}.im-person-kicker{position:absolute;left:12px;top:110px;writing-mode:vertical-rl;font-size:10px;letter-spacing:4px;color:#c4a877;z-index:1}.im-person-panel{position:relative;z-index:1;margin-top:48dvh;padding:0 24px}.im-person-tabs{gap:8px}.im-person-tabs button{background:#101e20bd;color:#d9c499;border:1px solid #a3895266;font-family:inherit;min-height:45px;font-size:13px}.im-person-tabs [aria-pressed=true]{background:url('/assets/m28/paper-texture.webp') center/cover,#e5d1ac;color:#362c1f;border-color:#a9946b}.im-person-content{margin-top:12px;max-height:25dvh;overflow:auto;padding:15px 18px;background:#111c1edf;border:1px solid #a0824655;font-size:14px;line-height:1.9}.im-person-content h3{font-size:20px;font-weight:400;color:#ead2a2}.im-person-content .im-muted{color:#b9aa89}.im-person-content p{white-space:pre-wrap;overflow-wrap:anywhere}.im-eyebrow{display:block;font-size:11px;letter-spacing:3px;color:#b8975b;margin-bottom:8px}.im-person-note{margin:14px 0 0;padding:9px 0 9px 12px;border-left:1px solid #b39966;color:#d4c4a5;white-space:pre-wrap}.im-person-talk{display:block;width:100%;min-height:44px;margin-top:12px;background:#d7c196;color:#332e23;border:1px solid #a28a59;font-family:inherit;font-size:15px;cursor:pointer}.im-known-people{position:relative;z-index:1;padding:18px 24px 22px;min-height:94px;flex-shrink:0;gap:12px;margin-top:auto;scrollbar-width:thin}.im-person-choice{padding:0;background:transparent;border:0;color:#bca77f;font-family:inherit;font-size:12px;display:flex;align-items:center;gap:6px}.im-person-choice img{width:36px;height:44px;border:1px solid #a4875488;object-fit:cover;object-position:center 24%}.im-person-choice[aria-pressed=true]{color:#f6dd9f}.im-person-choice[aria-pressed=true] img{border-color:#edc272;box-shadow:0 0 0 2px #c49b3e44}
.im-settings{background:linear-gradient(#e2cea0dd,#d9c092ee),url('/assets/m28/paper-texture.webp') center/cover,#d4be97;width:min(470px,90%);height:auto;max-height:85dvh;border-left:8px solid #594330}.im-settings .im-body{padding:24px 30px 30px}.im-settings .im-body h2{font-size:35px;font-weight:400;letter-spacing:6px;margin:12px 0 20px}.im-settings .im-body>p{font-size:14px;line-height:2}.im-settings-kicker{font-size:11px;letter-spacing:3px;color:#88683d}.im-settings .im-button{background:transparent;clip-path:none;border:0;border-bottom:1px solid #96774d66;justify-content:flex-start;box-shadow:none;color:#493b27;font-size:16px;letter-spacing:2px;margin-top:13px;padding-left:0}.im-settings-logout{border:0;background:transparent;padding:20px 0 0;color:#927149;font-family:inherit;font-size:12px;cursor:pointer}
.im-letter-notice{background:url('/assets/m28/paper-texture.webp') center/cover,#e3cfa6;box-shadow:1px 4px 0 #ae956b,0 16px 55px #000a;border-color:#927149;border-radius:1px 5px 4px 0}.im-letter-notice p{max-height:8em;overflow:auto;overflow-wrap:anywhere}.im-letter-notice strong{font-size:20px;font-weight:400}
@keyframes im-page-glow{from{box-shadow:0 0 0 7px #bb813c77}to{box-shadow:none}}
@media(min-width:760px){.im-handbook>.im-head{padding-top:18px}.im-handbook>.im-body{margin-bottom:36px}.im-cover{min-height:calc(var(--app-height,100dvh) - 130px);padding:36px 42px 28px 55px}.im-cover-label{margin-bottom:32px}.im-person-hero>img{object-fit:cover;object-position:center 30%}.im-person-panel{margin-top:20dvh;margin-left:52%;width:min(480px,43%);padding:0}.im-person-content{max-height:45dvh}.im-person-name{left:8%;font-size:60px}.im-person-kicker{left:6%}.im-known-people{justify-content:center}.im-person-hero:after{background:linear-gradient(90deg,transparent 25%,#07161bbd 62%),linear-gradient(0deg,#06151b,transparent 30%)}.im-person-choice{font-size:14px}.im-person-choice img{width:46px;height:56px}}
@media(max-width:360px){.im-handbook>.im-body{width:calc(100% - 20px);padding-left:19px;padding-right:13px}.im-handbook-tabs{margin-left:-19px;margin-right:-13px;padding-left:8px}.im-handbook-tabs .im-tab{font-size:13px}.im-cover{padding:25px 23px 20px 35px}.im-letter{gap:8px}.im-letter>img{width:40px;height:49px}.im-person-panel{padding:0 16px}.im-known-people{padding-left:16px}.im-person-content{max-height:26dvh}}
@media(max-height:650px){.im-cover{min-height:520px}.im-cover-label{min-height:150px;margin-bottom:20px}.im-handbook-title{font-size:45px!important}.im-book-entry{min-height:46px}.im-person-panel{margin-top:38dvh}.im-person-content{max-height:25dvh}.im-known-people{padding-top:10px;padding-bottom:10px;min-height:70px}}
.im-letter-bubble .im-photo img{aspect-ratio:4/3;object-fit:contain;background:#192c2d}.im-letter-material .im-photo{margin-top:10px}.im-letter-material .im-photo img{max-height:190px}.im-letter-copy:empty{display:none}

/* V3: the book opens directly in place; correspondence is a remote reading surface. */
.im-dialog.im-handbook{background-image:linear-gradient(#06121970,#050a0bd9),var(--im-scene,url('/assets/m28/desk-background.webp'));background-position:center,var(--im-scene-position,center);background-size:cover}
.im-journal-settings{margin-left:auto;margin-right:10px;background:#142326b8;border:1px solid #a58b5e66;color:#e4d2af;min-height:44px;padding:8px 12px;font:13px/1.4 inherit;cursor:pointer}
.im-handbook-tabs .im-tab{min-height:48px}.im-letter-filters .im-quiet{min-height:44px;flex:1;font-size:14px}
.im-letter-entry{position:relative;border:1px solid #98734444;background:linear-gradient(110deg,#fff2d63b,transparent);margin:0 0 12px;box-shadow:1px 2px 3px #644c2f13}
.im-letter-entry .im-letter{border:0;padding:14px 10px 5px;align-items:flex-start;min-height:93px}.im-letter-summary{min-width:0;flex:1}.im-letter-summary small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.65;font-size:14px}
.im-letter-tags{display:flex;gap:8px;margin-top:8px;align-items:center}.im-letter-tags .im-unread{display:inline-block;position:static;border-radius:2px;width:auto;height:auto;min-width:0;padding:0 5px;line-height:20px;font:11px/20px sans-serif;background:#994333}.im-letter-tags .im-letter-state{position:static;font:11px/20px sans-serif;color:#785b31;border:1px solid #98734455;padding:0 6px}
.im-letter-later{display:block;margin-left:auto;min-height:44px;font-size:12px;border:0;padding:8px 12px;color:#785b31}.im-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.im-feed-heading .im-page-kicker{margin:0!important}.im-feed-heading .im-quiet{min-height:44px;white-space:nowrap;font-size:13px}
.im-handbook[data-view=thread]>.im-body{background:linear-gradient(90deg,#b2956b30,transparent 12%),url('/assets/m28/paper-texture.webp') center/cover,#dfcba8;color:#352c20}
.im-correspondent{flex:1;text-align:center;min-width:0}.im-correspondent h2{margin:2px 0}.im-correspondent small{font:11px/1.5 sans-serif;color:#796548}.im-thread-heading{border-color:#95774766}.im-thread-heading .im-quiet,.im-thread-back{color:#705332}
.im-letter-bubble{background:#f5e8cdab;color:#352d22;border-color:#a88a5b55;box-shadow:0 2px 5px #6248290a;font-family:system-ui,'Microsoft YaHei',sans-serif;font-size:16px;line-height:1.65}.im-letter-bubble.mine{background:#c9d0bf82;color:#2b3933}.im-letter-author{color:#806038}.im-reply{border-color:#977a5244}.im-reply .im-input{background:#fff1d68c;color:#352c20;border-color:#9e865f77;font:16px/1.6 system-ui,'Microsoft YaHei',sans-serif}.im-reply .im-input::placeholder{color:#8e7b5e}.im-send{background:#263f40;color:#ecd6ad;border-color:#998353}
.im-comment-reply[hidden]{display:none!important}.im-comment-reply{margin-top:8px}.im-moment-comments:empty{display:none}.im-visibility{font:12px/1.7 system-ui,'Microsoft YaHei',sans-serif;color:#776246;margin:0}
.im-photo-viewer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:20;box-sizing:border-box;height:var(--app-height,100dvh)}
[data-im-news][data-unread='0']:not([data-social-unread='0']):after{content:'';position:absolute;right:3px;top:4px;width:5px;height:5px;border:1px solid #c7b18a;border-radius:50%;background:transparent}
