/* m28 — full-scene conversation. The body of every reply remains complete. */
body.m27 #page-chat.cc-immersive{position:relative;isolation:isolate;overflow:hidden;background:#07151c;color:#f4e7cd;--cc-gold:#c7a66e;--cc-panel:#0b1218e8}
body.m27 #page-chat.cc-immersive>.cc-stage{position:absolute;inset:0;height:100%!important;border:0;visibility:visible!important;z-index:0;background:#102631}
body.m27 #page-chat.cc-immersive .cc-stage:after{background:linear-gradient(180deg,#06151b40,transparent 22%,transparent 52%,#07101545 76%,#050d13bb)}
body.m27 #page-chat.cc-immersive .cc-stage-backdrop{opacity:1;object-fit:cover;object-position:50% 36%;height:100%;width:100%}
body.m27 #page-chat.cc-immersive .cc-stage-person{right:0;bottom:0;width:85%;height:90%;aspect-ratio:auto;mask-image:linear-gradient(0deg,transparent,#000 20%);-webkit-mask-image:linear-gradient(0deg,transparent,#000 20%)}
body.m27 #page-chat.cc-immersive .cc-stage-identity{left:auto;right:21px;bottom:auto;top:31%;max-width:45%;display:block;background:#11150cb0;border-block:1px solid #c9aa6255;padding:4px 12px}
body.m27 #page-chat.cc-immersive .cc-stage-name{font:500 20px/1.5 'STKaiti','KaiTi',serif;letter-spacing:3px;color:#f4e4bd}
body.m27 #page-chat.cc-immersive .cc-stage-place{font-size:11px;letter-spacing:1px;margin:0;color:#ead5ad}
body.m27 #page-chat.cc-immersive .cc-stage-presence{display:none}
body.m27 #page-chat.cc-immersive>.navbar{position:absolute;top:0;left:0;right:0;z-index:5;background:linear-gradient(#06111899,transparent)!important;border:0;box-shadow:none;min-height:76px;padding:14px 16px;align-items:flex-start;color:#edd9b4}
body.m27 #page-chat.cc-immersive .m24-chat-identity{display:none!important}
body.m27 #page-chat.cc-immersive>.navbar .back{display:grid;place-items:center;width:46px;height:46px;min-width:46px;font-size:0;border:1px solid #c9aa6faa;border-radius:50%;background:#0a151d99;color:#eed4a2}
body.m27 #page-chat.cc-immersive>.navbar .back:after{content:'←';font:30px/1 sans-serif}
body.m27 #page-chat.cc-immersive .nav-btns{margin-left:auto;display:flex;gap:6px}
body.m27 #page-chat.cc-immersive :is(#profile-btn,#voice-toggle,#char-voice-btn){width:44px;height:44px;min-width:44px;border:1px solid #b99b6177;background:#0d181da8;color:#eddbb9;border-radius:8px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:3px;font-size:9px}
body.m27 #page-chat.cc-immersive :is(#profile-btn,#voice-toggle,#char-voice-btn) svg{width:19px;height:19px}
body.m27 #page-chat.cc-immersive :is(#char-voice-btn,#voice-toggle).hidden{display:none!important}
body.m27 #page-chat.cc-immersive>.cc-reading-tools{position:absolute;top:14px;right:118px;z-index:6;padding:0;border:0;background:transparent;min-height:44px}
body.m27 #page-chat.cc-immersive .cc-reading-heading{display:none}
body.m27 #page-chat.cc-immersive .cc-record-toggle{min-width:76px;min-height:44px;border:1px solid #c7a56a88;border-radius:8px;padding:8px;color:#e8d2aa;background:#0d181da8;font:12px/1.5 inherit;text-decoration:none}
body.m27 #page-chat.cc-immersive>.cc-current-turns{position:relative;z-index:2;margin-top:auto;margin-bottom:0;padding:10px 18px 5px;max-height:min(48dvh,calc(var(--cc-usable,100dvh) * .49));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7a56a77 transparent;flex:0 1 auto;min-height:0;width:100%;box-sizing:border-box}
body.m27 #page-chat.cc-immersive .cc-current-row{position:relative;display:flex;flex-direction:column;gap:0;align-items:flex-start;margin:0 0 8px!important;min-width:0;max-width:100%;box-sizing:border-box}
body.m27 #page-chat.cc-immersive .cc-current-row:not(.right){background:linear-gradient(105deg,#080f12ed,#11191beb);border:1px solid #c3a36dba;border-radius:13px;padding:8px 14px 5px;box-shadow:0 4px 18px #0006}
body.m27 #page-chat.cc-immersive .cc-current-row.right{align-items:flex-end}
body.m27 #page-chat.cc-immersive .cc-turn-speaker{display:block;padding:0 0 5px;color:#e9c98e;font:500 18px/1.4 'STKaiti','KaiTi',serif;letter-spacing:2px;border-bottom:1px solid #bc985c45;width:100%}
body.m27 #page-chat.cc-immersive .cc-current-row.right .cc-turn-speaker{display:none}
body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.assistant{font-size:15px!important;line-height:1.8;white-space:pre-wrap;background:none;border:0;border-radius:0;box-shadow:none;color:#f4ebd9;padding:9px 1px 5px;max-width:100%;width:100%;box-sizing:border-box;max-height:min(28dvh,calc(var(--cc-usable,100dvh) * .29));overflow:auto;overflow-wrap:anywhere;word-break:normal;display:block;-webkit-line-clamp:unset;scrollbar-width:thin;scrollbar-color:#ba9c675e transparent;overscroll-behavior:contain}
body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.assistant:after{display:none!important}
body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.user{font-size:14px;line-height:1.65;max-width:88%;background:#203548d9;color:#ecdfc9;padding:8px 13px;border:1px solid #bcb39499;border-radius:10px 10px 2px 10px;box-shadow:0 2px 12px #0003;overflow-wrap:anywhere}
body.m27 #page-chat.cc-immersive .cc-current-row .message-actions{align-self:stretch;justify-content:flex-end;gap:4px;padding:2px 0 0;margin:0;display:flex;flex-wrap:wrap}
body.m27 #page-chat.cc-immersive .cc-current-row .message-actions button{font-size:11px;min-height:32px;padding:4px 6px;line-height:1.4;border:0;background:transparent;color:#ddc395;border-radius:3px}
body.m27 #page-chat.cc-immersive .cc-current-row .message-actions button:disabled{color:#afa794;opacity:.8}
body.m27 #page-chat.cc-immersive .cc-current-row .bubble .action{font-size:13px;color:#c9bba1}
body.m27 .cc-first-question{background:#0b141bc7;border:1px solid #b69b6588;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.8;color:#e9d8b9}
body.m27 #page-chat.cc-immersive>.input-bar{position:relative;z-index:4;display:grid;grid-template-columns:44px minmax(0,1fr) 48px;grid-template-rows:auto auto;gap:3px 8px;padding:5px 16px calc(8px + env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,#061117b8);border:0;flex:0 0 auto;box-shadow:none;box-sizing:border-box}
body.m27 #page-chat.cc-immersive .composer-main{grid-column:2/-1;grid-row:1;display:flex;align-items:center;gap:8px;padding:0;position:relative;min-width:0}
body.m27 #page-chat.cc-immersive .composer-main>.input{width:100%;min-width:0;min-height:46px;height:46px;border:1px solid #c0a267aa;border-radius:22px;background:#071014cf!important;color:#f3e3c4;font-size:16px!important;line-height:1.5;padding:10px 15px;box-sizing:border-box}
body.m27 #page-chat.cc-immersive .composer-main>.input::placeholder{font-size:13px;color:#c8c1b0}
body.m27 #page-chat.cc-immersive .composer-main>.input:focus{border-color:#e4bd77;box-shadow:0 0 0 2px #e4bd7722;outline:none}
body.m27 #page-chat.cc-immersive .composer-main .send-btn{min-width:46px;width:46px;height:46px;min-height:46px;font-size:0;border:1px solid #f4d79b;background:radial-gradient(circle at 35% 20%,#f7d992,#c99a4d);color:#302a1c;border-radius:50%;padding:0;box-shadow:0 0 10px #f0bd5733}
body.m27 #page-chat.cc-immersive .composer-main .send-btn:after{content:'➤';font:22px/1 sans-serif}
body.m27 #page-chat.cc-immersive .composer-tools{display:contents}
body.m27 #page-chat.cc-immersive #chat-evidence{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:46px;min-height:44px;background:#0d171cc7;border:1px solid #c7a56aaa;border-radius:50%;color:#ead4a9;padding:5px;gap:1px;margin:0}
body.m27 #page-chat.cc-immersive #chat-evidence svg{width:22px;height:22px}
body.m27 #page-chat.cc-immersive #chat-evidence>span{font-size:9px;line-height:1;margin:0}
body.m27 #page-chat.cc-immersive :is(#input-mode-toggle,#chat-plus){display:flex;align-items:center;justify-content:center;gap:4px;min-height:30px;height:30px;width:max-content;padding:3px 7px;border:0;background:transparent;color:#d3be98;font-size:11px;margin:0}
body.m27 #page-chat.cc-immersive #input-mode-toggle{grid-column:2;grid-row:2;justify-self:start}
body.m27 #page-chat.cc-immersive #chat-plus{grid-column:2;grid-row:2;justify-self:end}
body.m27 #page-chat.cc-immersive :is(#input-mode-toggle,#chat-plus) svg{width:16px;height:16px}
body.m27 #page-chat.cc-immersive #hold-talk{width:100%;min-width:0;height:46px;border:1px solid #bea06b;background:#0c1a22dc;color:#ead9b8;border-radius:22px}
body.m27 #page-chat.cc-immersive #plus-panel{position:absolute;bottom:96px;left:16px;right:16px;z-index:8;background:#10232aee;border:1px solid #c5a26977;color:#eddcc0;border-radius:10px}
body.m27 #page-chat.cc-immersive>#evidence-bar{position:relative;z-index:3;flex:0 0 auto;background:#0e1c22d9;padding:5px 16px;border-top:1px solid #b69a6244;color:#d9c6a3;max-height:88px;overflow:auto}
body.m27 #page-chat.cc-immersive .evidence-chip{background:#e8d8b6;color:#3e3424;border:1px solid #b89a64;border-radius:3px;font-size:12px}
body.m27 #page-chat.cc-immersive .evidence-chip>button{color:#574329;background:transparent}
/* Attached evidence keeps its real SVG crop. A fixed card width prevents a cloned
   SVG's percentage-only intrinsic width collapsing to a narrow sliver. */
body.m27 #page-chat.cc-immersive .cc-current-row.right:has(.chat-materials){align-items:flex-start}
body.m27 #page-chat.cc-immersive .cc-current-row.right>.bubble.user:has(.chat-materials){background:transparent;border:0;box-shadow:none;width:100%;max-width:100%;padding:5px 2px;color:#f2e7d2;text-shadow:0 1px 5px #000}
body.m27 #page-chat.cc-immersive .chat-materials{min-width:0;max-width:100%;margin:4px 0 0;text-shadow:none}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-materials{background:transparent;margin:0;padding:0}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,180px));gap:9px;width:100%;max-width:100%}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo{width:180px;max-width:100%;min-width:0;display:block;background:#e8dcc2;color:#362d20;border:5px solid #e8dcc2;border-bottom-width:2px;border-radius:1px;box-sizing:border-box;box-shadow:0 4px 15px #0008;transform:rotate(-2deg)}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo .fi-crop{height:104px;max-height:none;min-height:0;aspect-ratio:auto;width:100%}
body.m27 #page-chat.cc-immersive .chat-materials .fi-crop-svg{width:100%;height:100%;min-height:0;display:block}
body.m27 #page-chat.cc-immersive .chat-materials :is(figcaption,summary,blockquote){color:#302a21!important}
body.m27 #page-chat.cc-immersive .chat-materials figcaption{font-family:'STKaiti','KaiTi',serif;font-size:12px;text-align:center;padding:4px 3px;line-height:1.5}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo>small{font-size:9px;text-align:center;padding-bottom:3px}
body.m27 #page-chat.cc-immersive .chat-materials .fi-root :is(.fi-attached-statement,.fi-attached-archive){background:#e7d5b1;color:#362d20;border-color:#ad8e56;border-radius:3px;max-height:170px;overflow:auto}
body.m27 #page-chat.cc-immersive .chat-materials .fi-root :is(small,summary span){color:#64523a!important}
body.m27 #page-chat.cc-immersive>#msg-list{position:absolute!important;z-index:10;top:132px;bottom:12px;left:12px;right:12px;width:auto!important;min-height:0!important;height:auto!important;max-height:none!important;visibility:hidden;pointer-events:none;opacity:0;background:#091a22f5;border:1px solid #bba06999;border-top:0;padding:16px;overflow-y:auto;overflow-x:hidden;color:#f0e3c8;box-sizing:border-box}
body.m27 .cc-history-heading{display:none}
body.m27 .cc-records-open>.cc-history-heading{position:absolute;z-index:11;top:78px;left:12px;right:12px;min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;background:#12262e;border:1px solid #bba06999;color:#f0debb;box-sizing:border-box}
body.m27 .cc-history-heading strong{font:17px/1.5 'KaiTi',serif}
body.m27 .cc-history-close{min-height:40px;background:transparent;border:1px solid #b59b6266;border-radius:3px;padding:6px 10px;color:#e8d1a5;font-size:12px}
body.m27 .cc-records-open>#msg-list{visibility:visible!important;pointer-events:auto!important;opacity:1!important}
body.m27 .cc-records-open>:is(.cc-current-turns,.input-bar,#evidence-bar){visibility:hidden;pointer-events:none}
body.m27 #page-chat.cc-immersive>#chat-follow-row{display:none!important}
body.m27 #page-chat.cc-immersive>#game-state-bar{position:absolute;top:76px;left:16px;right:16px;z-index:3;font-size:11px;background:#112a33b0;border:0;max-height:60px;overflow:auto}
body.m27 #page-chat.cc-immersive :is(button,a,summary,[tabindex]):focus-visible{outline:2px solid #e4bd77;outline-offset:3px}
@media(min-width:760px){body.m27 #page-chat.cc-immersive .cc-stage-backdrop{object-position:center 31%;object-fit:contain;background:#07151c}body.m27 #page-chat.cc-immersive>.cc-current-turns{width:min(700px,78%);margin-inline:auto;max-height:46dvh;padding:14px 8px 5px}body.m27 #page-chat.cc-immersive>.input-bar{width:min(720px,80%);align-self:center}body.m27 #page-chat.cc-immersive>#evidence-bar{width:min(690px,78%);align-self:center}body.m27 #page-chat.cc-immersive .cc-stage-identity{right:calc(50% - 235px);top:30%}}
body.m27 #page-chat.cc-immersive.cc-compact>.cc-current-turns{max-height:calc(var(--cc-usable,100dvh) * .46)}
body.m27 #page-chat.cc-immersive.cc-compact .cc-current-row>.bubble.assistant{max-height:calc(var(--cc-usable,100dvh) * .24)}
@media(max-height:520px){body.m27 #page-chat.cc-immersive>.navbar{min-height:58px;padding-block:8px}body.m27 #page-chat.cc-immersive>.cc-reading-tools{top:8px}body.m27 #page-chat.cc-immersive .cc-stage-identity{top:23%;right:14px}body.m27 #page-chat.cc-immersive .cc-stage-name{font-size:16px}body.m27 #page-chat.cc-immersive .cc-stage-place{display:none}body.m27 #page-chat.cc-immersive .cc-current-row>.bubble.assistant{font-size:14px!important;line-height:1.65;padding-block:6px}body.m27 #page-chat.cc-immersive .cc-current-row .message-actions button{min-height:28px}body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo .fi-crop{height:64px}body.m27 .cc-records-open>.cc-history-heading{top:62px}body.m27 #page-chat.cc-immersive>#msg-list{top:116px}}
@media(prefers-reduced-motion:reduce){body.m27 #page-chat.cc-immersive *{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:760px){body.m27 #page-chat.cc-immersive>.cc-stage{background-size:cover;background-position:center 40%}body.m27 #page-chat.cc-immersive>.cc-stage:before{content:'';position:absolute;inset:0;background:#06141c66;backdrop-filter:blur(35px)}body.m27 #page-chat.cc-immersive .cc-stage-backdrop{background:transparent}body.m27 .if-establishing{background:url('/assets/m28/ferry-stage.webp') center 40%/cover}body.m27 .if-establishing:before{content:'';position:absolute;inset:0;background:#06141c66;backdrop-filter:blur(35px)}body.m27 .if-establishing-art{background:transparent}}
body.m27 #page-visit.is-investigating #visit-title{margin-left:58px!important}
body.m27 #page-chat.cc-immersive .cc-current-row:has(.message-expand)>.cc-turn-speaker:after{content:'上下滑动阅读';float:right;padding-top:4px;font:10px/1.5 sans-serif;color:#bbaa89;letter-spacing:0}
body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo .fi-crop{height:auto;aspect-ratio:var(--cc-photo-aspect,1.5);max-height:150px}
@media(max-height:520px){body.m27 #page-chat.cc-immersive .chat-materials .fi-attached-photo .fi-crop{max-height:70px}}
/* When a photograph is held up, reserve room for the whole physical card.
   The reply stays complete and scrollable in a shallower reading panel. */
body.m27 #page-chat.cc-immersive>.cc-current-turns:has(.chat-materials){max-height:min(54dvh,calc(var(--cc-usable,100dvh) * .54))}
body.m27 #page-chat.cc-immersive .cc-current-turns:has(.chat-materials) .cc-current-row>.bubble.assistant{max-height:min(18dvh,calc(var(--cc-usable,100dvh) * .18))}
body.m27 #page-chat.cc-immersive.cc-compact>.cc-current-turns:has(.chat-materials){max-height:calc(var(--cc-usable,100dvh) * .49)}
body.m27 #page-chat.cc-immersive.cc-compact .cc-current-turns:has(.chat-materials) .fi-attached-photo .fi-crop{max-height:calc(var(--cc-usable,100dvh) * .14)}
