/* V4: warm porcelain surfaces, a distinct welcome, and a bottom anchored composer. */
.qd-theme{--qd-paper:#f2f5f2;--qd-surface:#fff;--qd-muted:#63736a;--qd-line:#dfe7e0;--qd-glass:#fbfcf9ed;--qd-glass-shadow:0 4px 20px #183e2e09;--qd-radius-card:20px;--qd-radius-panel:22px;--qd-radius-dialog:22px;--qd-shadow-soft:0 6px 24px #183e2e09,0 1px 3px #183e2e03;--qd-danger:#a45b48}
.qd-theme :is(.qd-heading,.qd-card-title){font-family:var(--qd-font-sans)!important;letter-spacing:0!important}
.qd-theme :is(button,a,input,textarea,select,summary){-webkit-tap-highlight-color:transparent}
.qd-theme :is(button,a,summary):focus-visible{outline:2px solid var(--qd-brand);outline-offset:3px}
.qd-theme :is(.qd-button,.qd-button-secondary,.trade-button){transition:background-color 120ms,border-color 120ms,color 120ms;box-shadow:none}
.qd-theme :is(.qd-panel,.trade-card,.exh-panel){box-shadow:0 2px 10px #183e2e04}
.qd-theme :is(.qd-admin-layout,.qd-responsive-layout) :is(h1,h2,h3){font-family:var(--qd-font-sans);letter-spacing:0}
.qd-theme body.exh-product{height:min(100dvh,var(--app-visible-height,100dvh))}
.exh-product{--exh-header-height:calc(64px + env(safe-area-inset-top,0px))}
.exh-product .exh-header{background:var(--qd-glass)!important;border:0;border-bottom:1px solid #dfe7e0b3;box-shadow:0 2px 14px #183e2e04!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
.exh-product .exh-header-inner{max-width:none;margin:auto;padding:env(safe-area-inset-top,0px) 24px 0;gap:12px}
.exh-product .exh-brand-icon{display:grid;width:32px;height:32px;border-radius:10px;box-shadow:inset 0 1px 1px #ffffff24;flex:none}
.exh-product .exh-brand-icon svg{width:26px;height:26px}
.exh-product .exh-header-leading{gap:14px;min-width:0}
.exh-product .exh-brand{gap:10px;min-width:0;text-align:left;justify-content:flex-start}
.exh-product .exh-brand-copy{min-width:0}
.exh-product #historyToggle:focus-visible{outline-offset:-2px}
.qd-theme.qd-chat-layout .exh-product :is(h2,h3,h4){font-family:var(--qd-font-sans)!important}
.exh-product .exh-brand-name{font-size:11px;letter-spacing:0;line-height:1.5}
.exh-product #chatEventName{font:600 16px/1.45 var(--qd-font-sans);letter-spacing:0;max-width:64vw}
.exh-product .exh-header-actions{gap:0}
.exh-product .exh-personal-trigger{position:relative;isolation:isolate;min-width:70px;min-height:44px;padding:8px 12px;gap:6px;font-size:13px;background:transparent;border:0;border-radius:18px}
.exh-product .exh-personal-trigger::before{content:'';position:absolute;z-index:-1;inset:4px 0;border:1px solid #dfe7e099;border-radius:16px;background:#edf3ee80;transition:background 120ms}
.exh-product .exh-personal-trigger:hover::before{background:var(--qd-soft)}
.exh-product .exh-chat-layout{position:relative;max-width:none;margin:0;padding:0 32px max(16px,env(safe-area-inset-bottom,0px));height:calc(100% - var(--exh-header-height));min-height:0;grid-template-columns:minmax(0,1fr);grid-template-areas:'main' 'composer';grid-template-rows:minmax(0,1fr) auto;column-gap:0}
.exh-product .exh-chat-main{padding:0 0 24px;scrollbar-gutter:stable both-edges;overflow-anchor:none;scroll-behavior:auto}
.exh-product #productBody{max-width:760px;margin:auto}
.exh-product .exh-welcome{padding:clamp(72px,calc(var(--app-visible-height,100dvh) * .15),144px) 0 28px;text-align:center}
.exh-product .exh-welcome-copy{margin:0 auto 28px;max-width:560px}
.qd-theme .exh-product .exh-welcome h1.qd-heading{font:600 32px/1.4 var(--qd-font-serif)!important;margin:0 0 12px;letter-spacing:.01em!important;color:var(--qd-ink)}
.exh-product .exh-welcome p{font-size:14px;line-height:1.65;margin:0 auto;max-width:480px}
.exh-product .exh-recommendations{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:12px;max-width:440px;margin:auto;border:0;border-radius:0;background:transparent;overflow:visible}
.exh-product .exh-recommendations:empty{display:none}
.exh-product .exh-recommendations button{display:flex;width:100%;min-height:50px;justify-content:space-between;gap:12px;padding:12px 18px;border:1px solid #e3eae4;border-radius:16px;background:var(--qd-surface);box-shadow:var(--qd-shadow-soft);color:var(--qd-ink);font:400 15px/1.55 var(--qd-font-sans);text-align:left;transition:background 120ms,border-color 120ms}
.exh-product .exh-recommendations button:first-child{background:#eaf2ed;border-color:#d9e7de;font-weight:600}
.exh-product .exh-recommendations button:hover{background:var(--qd-soft);border-color:#c9dbd0}
.exh-product .exh-recommendations svg{width:16px;height:16px}
.exh-product .exh-composer-dock{max-width:760px;width:100%;margin:auto;padding:0;background:transparent}
.exh-product .exh-composer{padding:12px 14px;border-radius:22px;border:1px solid #e0e8e1;box-shadow:0 6px 24px #183e2e0a,0 1px 3px #183e2e03;background:var(--qd-surface)}
.exh-product .exh-composer:focus-within{border-color:#8eafa0;box-shadow:0 0 0 2px #2163510a,0 6px 24px #183e2e0a}
.exh-product .exh-composer textarea{display:block;width:100%;height:36px;min-height:36px;max-height:min(200px,calc(var(--app-visible-height,100dvh) * .3));resize:none;padding:2px 0;border:0;outline:none;box-shadow:none;font:400 16px/1.6 var(--qd-font-sans);color:var(--qd-ink);background:transparent;overflow-y:auto}
.exh-product .exh-composer-actions{min-height:44px;margin-top:0;gap:8px}
.exh-product .exh-composer-hint{flex:1;min-width:0;max-width:none;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.exh-product .exh-send-actions{gap:6px}
.exh-product .exh-send-actions :is(.exh-tool-line,.exh-send-fab){width:44px;height:44px;min-width:44px;min-height:44px;border-width:1px;box-shadow:none;transition:background-color 120ms,color 120ms,border-color 120ms}
.exh-product .exh-send-actions .exh-send-fab:active{transform:none}
.exh-product .exh-composer.exh-composer--voice{padding:0;border-radius:22px}
.exh-product .exh-composer--voice .exh-voice-hold{min-height:48px;letter-spacing:0;background:var(--qd-paper);font:600 15px/1.5 var(--qd-font-sans)}
.exh-product .exh-composer--voice .exh-voice-hold:is(:active,.is-recording){background:var(--qd-deep);color:#fff}
.exh-product .exh-composer--voice .exh-composer-actions{padding:4px 10px}
.exh-product .exh-quick-actions{height:auto;max-width:none;gap:8px;margin:10px 0 0}
.exh-product .exh-quick-actions>button{height:auto;min-height:54px;padding:7px 4px;flex-direction:column;gap:3px;border:1px solid #e0e8e180;border-radius:14px;background:#fbfcf9bf;box-shadow:0 2px 8px #183e2e03;font:500 12px/1.3 var(--qd-font-sans);transition:background-color 120ms,border-color 120ms}
.exh-product .exh-quick-actions>button svg{width:20px;height:20px}
.exh-product .exh-quick-actions>button>span{display:block;white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.3}
.exh-product .exh-status{font-size:13px;margin:0 0 8px;padding:8px 12px;border-radius:12px;max-height:88px;overflow:auto}
.exh-product .exh-message{margin:20px 0 28px;animation:qd-message-appear 140ms ease-out}
.exh-product .exh-message-text{font:400 16px/1.65 var(--qd-font-sans);color:var(--qd-ink)}
.exh-product .exh-message.user{padding:10px 14px;max-width:88%;background:var(--qd-soft);border-color:transparent;border-radius:18px 18px 5px 18px}
.exh-product .exh-message-label{min-height:24px;margin-bottom:10px;gap:8px;color:var(--qd-muted);font:400 13px/1.5 var(--qd-font-sans)}
.exh-product .exh-assistant-mark{width:24px;height:24px;border:1px solid #dce7df;border-radius:50%;background:#fbfcf9;color:var(--qd-brand)}
.exh-product .exh-assistant-mark svg{width:18px;height:18px;animation:none!important}
.exh-product .exh-message.generating .exh-message-text{color:var(--qd-muted)}
.exh-product .exh-message-tools{display:flex;align-items:center;gap:4px;margin-top:8px;min-height:44px}
.exh-product .exh-message-tools .exh-tool-button{color:var(--qd-muted);min-width:44px;min-height:44px;padding:10px}
.exh-product .exh-read-aloud.is-playing{animation:none;background:var(--qd-soft);color:var(--qd-brand)}
.exh-product .exh-cards{grid-template-columns:minmax(0,1fr)!important;gap:12px;margin-top:16px}
.exh-product :is(.exh-card,.exhibition-schedule){padding:18px!important;border:1px solid var(--qd-line);border-radius:20px!important;box-shadow:var(--qd-shadow-soft);min-width:0;background:#fff}
.exh-product .exh-card-top{gap:10px;margin-bottom:12px}
.exh-product :is(.exh-card-icon,.exh-compact-mark){width:32px;height:32px;border-radius:9px;background:var(--qd-soft)}
.exh-product .exh-card h3{font:600 17px/1.5 var(--qd-font-sans)}
.exh-product .exh-card p{font-size:14px;line-height:1.7}
.exh-product .exh-card :is(.exh-card-source,.exh-card-filename){font-size:12px;line-height:1.55}
.exh-product .exh-card-facts{border-radius:10px;font-size:13px}
.exh-product .exh-card-actions{gap:8px;margin-top:12px}
.exh-product .exh-card-actions :is(a,button){min-height:44px;box-shadow:none;font-size:13px;border-radius:12px!important}
.exh-product .exh-compact-card{gap:10px;box-shadow:none;transition:border-color 120ms}
.exh-product .exh-compact-card:hover{box-shadow:none}
.exh-product .exh-follow-up{font-size:13px;font-weight:400;color:var(--qd-muted);margin-top:12px;line-height:1.65}
.exh-product .exhibition-schedule h3{font:600 17px/1.5 var(--qd-font-sans);margin:0 0 6px}
.exh-product .schedule-list{margin:12px 0;padding:0;gap:0;max-height:none;overflow:visible;list-style:none}
.exh-product .schedule-list>li{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-areas:'time head' 'time place' 'desc desc';column-gap:16px;align-items:start;padding:16px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.exh-product .schedule-item-head{grid-area:head;min-width:0}
.exh-product .schedule-item-time{grid-area:time;padding-right:12px;border-right:1px solid var(--qd-line);align-self:stretch;overflow-wrap:anywhere}
.exh-product .schedule-item-time strong{display:block;color:var(--qd-deep);font-size:20px;line-height:1.25;font-weight:600}
.exh-product .schedule-item-time small{display:block;font-size:11px;line-height:1.5;margin-top:4px}
.exh-product .schedule-item-place{grid-area:place}
.exh-product .schedule-item-place::before{content:none}
.exh-product .schedule-item-desc{grid-area:desc;padding-top:8px}
.exh-product .schedule-list>li+li{border-top:1px solid var(--qd-line)}
.exh-product .schedule-list h4{font:500 15px/1.5 var(--qd-font-sans);margin:0 0 5px;overflow-wrap:anywhere}
.exh-product .schedule-list p{font-size:13px;line-height:1.6;margin:4px 0;color:var(--qd-muted)}
.exh-product .schedule-status{font-size:12px;color:var(--qd-muted)}
.exh-product .schedule-expand{display:block;min-height:44px;width:100%;padding:8px 12px;margin:4px 0;border:0;border-radius:10px;background:transparent;color:var(--qd-brand);font:500 14px/1.5 var(--qd-font-sans);cursor:pointer}
.exh-product .schedule-list.is-preview>li:nth-child(n+3){display:none}
.exh-product .schedule-list.is-preview .schedule-item-desc{display:none}
.exh-product .exh-photo-preview{display:block;width:auto;max-width:100%;max-height:180px;object-fit:contain;border-radius:12px;margin:0 0 10px;background:var(--qd-paper)}
.exh-product .exh-new-reply{position:absolute;z-index:4;left:50%;bottom:calc(var(--exh-dock-height,176px) + 12px);transform:translateX(-50%);min-height:44px;padding:8px 16px;border:1px solid var(--qd-line);border-radius:22px;background:var(--qd-surface);color:var(--qd-brand);box-shadow:0 2px 12px #183e2e0d;font:500 13px/1.5 var(--qd-font-sans);cursor:pointer}
.exh-product .exh-doc-dialog{padding:0;width:min(720px,calc(100vw - 48px));max-height:calc(var(--app-visible-height,100dvh) - 48px);border:1px solid var(--qd-line);border-radius:18px;background:var(--qd-surface);color:var(--qd-ink);overflow:hidden}
.exh-product .exh-doc-dialog[open]{display:flex;flex-direction:column}
.exh-product .exh-doc-dialog-head{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--qd-line)}
.exh-product .exh-doc-dialog-head h3{flex:1;min-width:0;font:600 16px/1.5 var(--qd-font-sans);margin:0;overflow-wrap:anywhere}
.exh-product .exh-doc-dialog-close{order:-1;min-height:44px;min-width:64px;padding:8px;border:0;border-radius:12px;background:transparent;color:var(--qd-brand);font:500 14px/1.5 var(--qd-font-sans);cursor:pointer}
.exh-product .exh-doc-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;font:400 16px/1.8 var(--qd-font-sans)}
.exh-product .exh-doc-text{white-space:pre-wrap;overflow-wrap:anywhere}
.exh-product .exh-doc-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.exh-product .exh-doc-toolbar a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid var(--qd-line);border-radius:12px;color:var(--qd-brand);text-decoration:none;font-size:14px}
.exh-product .exh-photo-dialog{background:var(--qd-paper)}
.exh-product .exh-photo-heading{height:56px;padding-inline:12px}
.exh-product .exh-photo-heading h2{font:600 16px/1.5 var(--qd-font-sans)}
.exh-product.has-background .exh-welcome-copy{padding:16px;background:#ffffffef;border-radius:16px;box-shadow:none;margin-bottom:24px}
.exh-product.has-background .exh-message.assistant{box-shadow:none;border-radius:16px}
@keyframes qd-message-appear{from{opacity:.5}to{opacity:1}}
@media(max-width:767px){
 .exh-product{--exh-header-height:calc(64px + env(safe-area-inset-top,0px))}
 .exh-product .exh-header-inner{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));gap:8px}
 .exh-product .exh-header-leading{gap:8px;overflow:hidden}
 .exh-product .exh-brand-icon{display:grid;width:30px;height:30px}
 .exh-product .exh-brand{flex:1;justify-content:flex-start;text-align:left;padding-right:0;gap:9px}
 .exh-product .exh-brand-name{font-size:10px;line-height:1.4}
 .exh-product #chatEventName{font-size:15px;max-width:100%}
 .exh-product .exh-header-actions .exh-tool-button{padding:6px 10px;min-width:64px}
 .exh-product .exh-header-actions .exh-tool-button svg{width:20px;height:20px}
 .exh-product .exh-header-actions .exh-tool-button span{font-size:12px}
 .exh-product .trade-simulation-badge{font-size:8px;padding:0 3px;letter-spacing:0}
 .exh-product .exh-chat-layout{padding-inline:max(14px,env(safe-area-inset-left,0px));padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
 .exh-product .exh-chat-main{padding:0 4px 20px;scrollbar-gutter:auto}
 .exh-product .exh-welcome{padding-top:clamp(60px,calc(var(--app-visible-height,100dvh) * .105),100px)}
 .qd-theme .exh-product .exh-welcome h1.qd-heading{font-size:28px!important;line-height:38px;margin-top:0}
 .exh-product .exh-welcome-copy{margin-bottom:28px}
 .exh-product .exh-welcome p{font-size:14px;max-width:330px}
 .exh-product .exh-recommendations{max-width:100%;margin-inline:4px;gap:12px}
 .exh-product .exh-recommendations button{padding:12px 16px;font-size:15px;min-height:50px}
 .exh-product .exh-composer textarea{min-height:36px;height:36px}
 .exh-product .exh-composer-hint{font-size:11px}
 .exh-product .exh-message{margin:18px 0 24px}
 .exh-product .exh-quick-actions>button{min-height:54px;font-size:12px;border-radius:14px}
 .exh-product :is(.exh-doc-dialog,.exh-entity-dialog,.exh-map-embedded){width:var(--app-region-width,100vw)!important;max-width:none!important;height:var(--app-visible-height,100dvh)!important;max-height:none!important;margin:0!important;inset:var(--app-visible-top,0px) auto auto var(--app-region-left,0px);border:0;border-radius:0!important}
 .exh-product .exh-entity-dialog[open]{display:flex;flex-direction:column}
 .exh-product .exh-entity-dialog .trade-dialog-body{flex:1;max-height:none;min-height:0;font-size:16px;line-height:1.7}
 .exh-product .exh-doc-dialog-head{padding-top:calc(8px + env(safe-area-inset-top,0px))}
 .exh-product .exh-doc-dialog-body{padding:16px 16px max(24px,env(safe-area-inset-bottom,0px))}
 .exh-product .exh-photo-dialog{max-width:none;width:var(--app-region-width,100vw);height:var(--app-visible-height,100dvh);max-height:none;margin:0;border:0;border-radius:0}
}
@media(max-height:600px){.exh-product .exh-welcome{padding-top:20px}.exh-product .exh-welcome-copy{margin-bottom:16px}.exh-product .exh-quick-actions>button{min-height:48px}}
@media(max-width:359px){.exh-product .exh-chat-layout{padding-inline:12px}.exh-product .exh-header-inner{padding-inline:8px;gap:4px}.exh-product .exh-header-leading{gap:4px}.exh-product .exh-brand{gap:6px}.exh-product .exh-brand-icon{display:grid;width:28px;height:28px}.exh-product .exh-quick-actions{gap:6px}.exh-product .exh-composer-hint{max-width:120px}.exh-product .exh-recommendations button{padding-inline:12px}.exh-product .schedule-list>li{grid-template-columns:minmax(0,1fr);grid-template-areas:'time' 'head' 'place' 'desc';gap:6px}.exh-product .schedule-item-time{border:0;padding:0}.exh-product .schedule-item-time strong,.exh-product .schedule-item-time small{display:inline;margin-right:6px}}
/* A pinned history column belongs to the workspace, never a modal drawer. */
.exh-product.has-desktop-history .exh-chat-layout{grid-template-columns:224px minmax(0,1fr);grid-template-areas:'history main' 'history composer';column-gap:32px;padding-left:0}
.exh-product.has-desktop-history .exh-history{grid-area:history;position:static;transform:none;visibility:visible;pointer-events:auto;width:224px!important;max-width:none;height:calc(100% + max(16px,env(safe-area-inset-bottom,0px)));max-height:none;inset:auto;border:0;border-right:1px solid var(--qd-line);border-radius:0!important;padding:22px 14px!important;background:#edf2ed;box-shadow:none;z-index:auto}
.exh-product.has-desktop-history .exh-history-heading{gap:4px}
.exh-product.has-desktop-history .exh-history-heading h2{font-size:17px}
.exh-product.has-desktop-history .exh-eyebrow{display:none}
.exh-product.has-desktop-history .exh-history-description{font-size:12px;margin-bottom:20px}
.exh-product.has-desktop-history .exh-conversation{border-radius:12px}
.exh-product.has-desktop-history .exh-conversation.active{background:#dfeae2;border-color:transparent}
.exh-product.has-desktop-history .exh-new-reply{left:calc(50% + 112px)}
.exh-product.has-desktop-history .exh-composer-dock{margin-top:0}
.exh-product .exh-history{transition:transform 200ms var(--qd-ease),visibility 200ms}
.exh-product .exh-history-backdrop{background:#20382f2e;backdrop-filter:blur(2px)}
.app-keyboard-open .exh-product .exh-welcome{padding-top:16px}
.app-keyboard-open .exh-product .exh-composer-hint{visibility:hidden}
.app-keyboard-open .exh-product .exh-composer{padding:6px 10px}
.app-keyboard-open .exh-product .exh-quick-actions{margin-top:6px}
.app-keyboard-open .exh-product .exh-quick-actions>button{min-height:44px;padding:3px;gap:2px}
.app-keyboard-open .exh-product .exh-quick-actions>button svg{width:18px;height:18px}
/* The independent camera keeps its existing pipeline, with one readable result. */
.qd-camera-layout .camera-helper-band,.qd-camera-layout .camera-thinking-particles,.qd-camera-layout .camera-caption-cursor{display:none!important}
.qd-camera-layout .camera-result{box-shadow:none!important;border-radius:18px}
.qd-camera-layout .camera-result-head{padding:12px 16px;gap:8px}
.qd-camera-layout .camera-result-status{font:600 16px/1.5 var(--qd-font-sans)!important;letter-spacing:0}
.qd-camera-layout .camera-caption{font-size:13px!important;line-height:1.6}
.qd-camera-layout .camera-result-scroll{padding:0 16px 20px}
.qd-camera-layout .camera-result :is(.photo-explanation,.photo-card-body,.photo-thinking-text){font:400 16px/1.75 var(--qd-font-sans)!important;color:var(--qd-ink)!important}
.qd-camera-layout .camera-result .photo-card-title{color:var(--qd-ink)!important;font:600 18px/1.5 var(--qd-font-sans)!important}
.qd-camera-layout .camera-result .photo-visual-hint{font-size:13px;line-height:1.6}
.qd-camera-layout .photo-visual-tabs{border:0;min-height:0;justify-content:flex-end}
.qd-camera-layout .photo-visual-tab{min-height:44px;font-size:13px;border-radius:10px;padding:8px 12px}
.qd-camera-layout .photo-visual-tabs:has(.photo-visual-tab[data-empty-relations="true"]){display:none}
.qd-camera-layout .camera-ai-note{font-size:12px;line-height:1.6}
.qd-camera-layout .camera-capture-info{font-size:12px;line-height:1.5}
.qd-camera-layout .camera-result :is(.camera-stream-fragment,.photo-visual-card,.photo-visual-content){animation:none!important;transition:none!important}
.qd-camera-layout :is(.camera-small-button,.camera-icon-button,.camera-primary-button){min-height:44px}
@media(prefers-reduced-motion:reduce){.qd-theme *,.qd-theme *::before,.qd-theme *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.exh-product :is(.exh-composer,.exh-quick-actions>button,.exh-recommendations,.exh-new-reply){background:Canvas;color:CanvasText;border:1px solid CanvasText}}
