/* m34: compact material, stable reading/actions, explicit exits and continuity. */
.im-dialog.im-loading-shell>.im-head{display:flex!important;flex:none;color:#eedcbb;background:#10232be8;min-height:58px}
.im-dialog.im-loading-shell>.im-body{height:auto;flex:1;padding:22px!important;color:#eedcbb;background:#10232bd9}
.im-close,.id-back,.im-thread-back,.im-check-delivery{min-width:44px;min-height:44px}
[data-im-news]{position:relative}
[data-im-news]:is([data-unread]:not([data-unread="0"]),[data-social-unread]:not([data-social-unread="0"])):after{content:'';position:absolute;right:5px;top:3px;width:9px;height:9px;border-radius:50%;background:#be684a;border:1px solid #efc990;pointer-events:none}
.iw-back{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:10px!important;line-height:1.1!important}
.iw-back svg{width:21px;height:21px}
.im-resume{position:absolute;z-index:5;left:18px;bottom:86px;max-width:calc(100% - 36px);display:flex;align-items:center;gap:12px;background:#10262bd9;color:#e4d0a6;border:1px solid #b99b6977;padding:5px 10px;font-size:12px}
.im-resume button{min-height:44px;margin:0;padding:5px 12px}
.im-town-rest{position:absolute;z-index:5;left:50%;top:38%;transform:translateX(-50%);width:min(490px,90%);max-height:55%;overflow:auto;padding:20px;background:#13272ee8;color:#f0ddbb;border:1px solid #bc9c69}
.im-town-rest h2{font:23px/1.6 'KaiTi',serif}.im-town-rest p{font-size:14px}
.id-root{gap:14px!important;padding-top:12px!important;padding-bottom:18px!important}
.id-root .id-book{max-height:calc(100% - 60px);padding-top:9px}
.id-root .id-book-head{min-height:40px;margin-bottom:5px;padding-bottom:5px}
.id-root .id-book-heading{font-size:25px}.id-root .id-seal{font-size:11px}.id-root .id-book-head:after{display:none}
.id-root .id-body{padding-top:12px;padding-bottom:18px;min-height:0}
.id-writing{font-size:16px!important;line-height:28px!important;min-height:140px;max-height:45dvh}
.id-solve-writing{min-height:170px!important}
.id-writing-actions{position:relative;z-index:3;display:flex;flex:none;justify-content:flex-end;padding:8px 0 3px;border-top:1px solid #9e815a70;background:#dacaab}
.id-writing-actions button{min-height:44px;max-width:100%;margin:0}
.id-photo-filters{display:flex;gap:5px;flex-wrap:wrap}.id-photo-filters [aria-pressed=true]{text-decoration:underline}
.id-photo-filters button,.id-paper-tools button{min-height:44px}
.id-review{padding:12px 10px;border:1px solid #9d7e55;background:#eadcc1;margin:12px 0;color:#3d3225}
.id-review-item{padding:10px 0;border-top:1px solid #ab906452}.id-review-item p{white-space:pre-wrap;font-size:14px;line-height:1.7}
.im-letter-crop{max-width:230px}.im-letter-crop .fi-crop{height:130px}.im-letter-crop .fi-crop-svg{width:100%;height:100%}
.im-material-zoom{width:100%;height:calc(100% - 64px);overflow:auto}
.im-material-zoom :is(.fi-attached-materials,.fi-attached-grid,.fi-attached-photo,.fi-crop){display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:transparent}
.im-material-zoom .fi-crop-svg{width:100%;height:100%}.im-material-zoom :is(figcaption,small){display:none}
.im-delivery-state{flex:none;font-size:13px;line-height:1.6;max-height:160px;overflow:auto;background:#e8d5b1;color:#493623}
.im-delivery-state:empty{display:none}.im-delivery-state button,.im-letter-bubble>.im-quiet{min-height:44px}
.im-draft-status{opacity:1;font-size:12px;text-align:left;line-height:1.5;padding:4px 0}
body.m27 #page-chat.cc-immersive>.cc-current-turns,
body.m27 #page-chat.cc-immersive.cc-compact>.cc-current-turns,
body.m27 #page-chat.cc-immersive>.cc-current-turns:has(.chat-materials){max-height:min(57dvh,calc(var(--cc-usable,100dvh) - 170px));overflow:hidden;display:flex;flex-direction:column;padding:5px 12px;gap:5px;flex:0 1 auto}
body.m27 #page-chat.cc-immersive .cc-current-row{margin:0!important;min-height:0;flex-wrap:nowrap;width:100%}
body.m27 #page-chat.cc-immersive .cc-current-row.right{flex:none}
body.m27 #page-chat.cc-immersive .cc-current-row:not(.right):not(.chat-status){flex:1 1 auto;min-height:0;padding:7px 11px 0}
body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.assistant,
body.m27 #page-chat.cc-immersive .cc-current-turns:has(.chat-materials) .cc-current-row>.bubble.assistant,
body.m27 #page-chat.cc-immersive.cc-compact .cc-current-row>.bubble.assistant{flex:1 1 auto;min-height:28px;max-height:none!important;overflow-y:auto;padding:6px 0;font-size:15px!important;line-height:1.7}
body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.user{display:flex;align-items:center;gap:8px;max-width:100%;padding:4px 8px;min-width:0;width:100%}
body.m27 #page-chat.cc-immersive .cc-question-preview{flex:1;min-width:0;min-height:44px;max-height:52px;overflow:hidden;color:#f1e4c8;background:transparent;border:0;text-align:left;font:14px/1.7 inherit;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;padding:0}
body.m27 #page-chat.cc-immersive .chat-materials{flex:0 0 88px;max-width:88px;margin:0}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-grid{display:flex;flex-wrap:nowrap;width:88px;overflow:auto;gap:6px}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo{flex:0 0 88px;width:88px;max-width:88px;transform:none;border-width:3px;margin:0;box-shadow:none;position:relative}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo .fi-crop{height:44px!important;max-height:44px!important;aspect-ratio:auto}
body.m27 #page-chat.cc-immersive .chat-materials :is(figcaption,small){display:none!important}
.cc-photo-zoom{display:block;min-height:44px;width:100%;background:#d9c49e;color:#352d21;border:0;font-size:11px;cursor:pointer}
body.m27 #page-chat.cc-immersive .cc-current-row .message-actions{flex:none;flex-wrap:nowrap;min-height:44px;align-items:center;justify-content:flex-end}
body.m27 #page-chat.cc-immersive .cc-current-row .message-actions button{min-height:44px;min-width:44px;flex-shrink:0;padding:6px 9px;font-size:12px}
body.m27 #page-chat.cc-immersive .cc-turn-speaker{flex:none;font-size:16px;padding-bottom:3px}
body.m27 #page-chat.cc-immersive .chat-status{flex:none;color:#f0dab2;background:#382c24ec;border:1px solid #be9d63;padding:7px;font-size:12px;max-height:100px;overflow:auto;line-height:1.6}
body.m27 #page-chat.cc-immersive .chat-status button{min-height:44px;background:#d9c299;color:#292b26;border:0;margin-left:5px}
.cc-photo-viewer{position:absolute;z-index:30;inset:0;padding:68px 12px 16px;background:#091b23f7;display:flex;align-items:center;justify-content:center}
.cc-photo-close{position:absolute;top:12px;right:12px;min-height:44px;background:#ddc497;border:0;padding:8px 15px;color:#282c25}
.cc-photo-viewer>.fi-attached-photo{width:100%;height:100%;margin:0;display:flex;flex-direction:column;background:transparent;border:0}
.cc-photo-viewer .fi-crop{height:100%;min-height:0;flex:1}.cc-photo-viewer .fi-crop-svg{height:100%;width:100%}
.cc-photo-viewer figcaption{color:#efdab6;padding:8px}.cc-photo-viewer small{display:none}
.fl-note-fold,.so-note-fold{grid-column:1/-1;font-size:12px;color:#d9c6a1}
.fl-note-fold summary,.so-note-fold summary,.sx-note-fold summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
body.m27 #visual-scene-host .fl-note-fold .fi-input{display:block!important;width:100%;font-size:16px!important;box-sizing:border-box}
body.m27 #visual-scene-host.if-enhanced .fi-root.fi-scene .fi-scene-residents .fi-present-avatar{display:none!important}
body.m27 #visual-scene-host .fi-resident-talk{min-height:44px!important}
.sx-status,.sx-overview .sx-status{top:118px;bottom:auto;max-height:90px;overflow:auto}
.sx-zoom{min-width:44px!important;min-height:44px!important}
@media(max-height:480px){body.m27 #page-chat.cc-immersive>.cc-current-turns{max-height:calc(var(--cc-usable,100dvh) - 140px)}body.m27 #page-chat.cc-immersive .chat-materials{display:none}body.m27 #page-chat.cc-immersive .cc-question-preview{font-size:12px;min-height:30px;max-height:32px;-webkit-line-clamp:1}body.m27 #page-chat.cc-immersive .cc-turn-speaker{font-size:13px}body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.assistant{font-size:14px!important}.id-root .id-book-head{display:none}.sx-status,.sx-overview .sx-status{top:70px;max-height:55px}}
