.admin-chat{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dce8e5;border-radius:20px;overflow:hidden;box-shadow:0 8px 30px #173a4208}.chat-home{margin:0 0 18px}.chat-home .admin-chat{background:linear-gradient(140deg,#f0faf5 0%,#fff 48%)}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 10px}.chat-eyebrow{display:block;font-size:10px;letter-spacing:.17em;font-weight:700;color:#6d9786}.chat-header h2{font-size:24px;letter-spacing:-.04em;margin:5px 0 0;color:#173e37}.chat-header-actions{display:flex;gap:6px;align-items:center}.chat-header-actions button{white-space:nowrap;min-height:40px}.chat-close{font-size:24px;min-width:40px;padding:0}.chat-home .chat-close{display:none}.chat-context{font-size:12px;color:#48776a;padding:0 24px}.chat-selection{font-size:11px;color:#879a94;padding:4px 24px 12px;overflow-wrap:anywhere}.chat-messages{min-height:0;flex:1;overflow:hidden}.chat-feed{height:280px;overflow:auto;overscroll-behavior:contain;padding:12px 24px;scrollbar-width:thin;display:flex;flex-direction:column;gap:18px}.chat-message{max-width:94%;min-width:0;width:fit-content;font-size:13px;flex-shrink:0}.chat-message-meta{font-size:10px;color:#8b9c96;margin-bottom:5px}.chat-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.chat-user{align-self:flex-end;max-width:88%;background:#e5f3ed;border-radius:14px 14px 3px 14px;padding:10px 14px}.chat-user .chat-message-meta{color:#619a87}.chat-assistant{align-self:flex-start}.chat-error .chat-message-text{color:#aa4b37}.chat-pending{color:#879b92}.chat-pending .chat-message-text::after{content:' ';display:inline-block;width:6px;height:6px;border-radius:50%;background:#65a48c;margin-left:8px;animation:chat-pulse 1s infinite alternate}.chat-suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:10px 24px}.chat-prompt{background:#f1f6f3;color:#648577;border:1px solid #dfebe5;border-radius:18px;padding:7px 12px;font-size:11px;font-weight:500;min-height:34px}.chat-composer{margin:0 20px;padding:10px 12px;background:#fff;border:1px solid #ccded5;border-radius:14px;box-shadow:0 3px 12px #1e553e05}.chat-composer:focus-within{border-color:#69aa91;box-shadow:0 0 0 3px #3c9e7510}.chat-composer textarea{display:block;resize:vertical;min-height:52px!important;max-height:150px;border:0!important;box-shadow:none!important;padding:4px;background:transparent!important;font-size:14px}.chat-compose-tools{display:flex;gap:8px;align-items:center;min-width:0;margin-top:6px}.chat-attach{position:relative;overflow:hidden;display:grid;place-items:center;margin:0!important;flex-shrink:0;min-height:36px;color:#688475;font-size:12px;cursor:pointer}.chat-file-input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.chat-attach:focus-within{outline:2px solid #087f77;border-radius:6px}.chat-upload-mode{width:auto!important;min-width:0!important;min-height:34px!important;border:0!important;background:#f0f5f2!important;font-size:12px!important;padding:6px 22px 6px 8px!important;flex-shrink:1;border-radius:7px}.chat-send{margin-left:auto;background:#137e60;white-space:nowrap;padding:8px 14px;min-height:36px}.chat-file-count{font-size:10px;color:#658a79;min-width:0}.chat-footnote{margin:8px 0 12px;text-align:center;color:#9badA3;font-size:10px}.chat-sources{font-size:10px;color:#8ca696;margin-top:10px}.chat-sheet{position:fixed;inset:auto 22px 22px auto;width:min(490px,calc(100vw - 32px));height:min(760px,calc(100dvh - 44px));max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:20px;box-shadow:0 16px 70px #102d3650;background:#fff;overflow:hidden;z-index:1050}.chat-sheet[open]{display:flex}.chat-sheet .admin-chat{flex:1;border-radius:20px;width:100%;min-height:0}.chat-sheet .chat-header{padding:18px 18px 10px}.chat-sheet .chat-header h2{font-size:18px}.chat-sheet .chat-context,.chat-sheet .chat-selection{padding-left:18px;padding-right:18px}.chat-sheet .chat-messages{flex:1;min-height:0;overflow:hidden}.chat-sheet .chat-feed{height:100%;padding:10px 18px}.chat-sheet .chat-suggestions{padding:8px 16px;gap:5px}.chat-sheet .chat-prompt{font-size:10px;padding:5px 9px;min-height:30px}.chat-sheet .chat-composer{margin:0 12px}.chat-sheet .chat-footnote{margin:6px 0 10px}.chat-sheet::backdrop{background:#132c3666;backdrop-filter:blur(3px)}.chat-fab{position:fixed;right:24px;bottom:24px;z-index:80;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:30px;box-shadow:0 6px 24px #134d3b38;background:#166e55;color:#fff;font-size:13px;min-height:48px}.chat-fab[hidden]{display:none!important}body:not(.admin-open) .chat-fab,body:has(#modalMask:not(.hidden)) .chat-fab,body:has(#mobileMoreMask:not(.hidden)) .chat-fab{display:none}.chat-plan{margin-top:12px;border:1px solid #c7dfd0;border-radius:12px;padding:14px;background:#f6fbf8;min-width:0}.chat-plan>strong{color:#26654c;font-size:13px}.chat-plan-targets{overflow-wrap:anywhere;font-size:12px;margin:10px 0}.chat-plan-changes{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;font-size:12px;margin:12px 0}.chat-plan-changes dt{color:#82998b}.chat-plan-changes dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-plan-before{font-size:11px;color:#71897d}.chat-plan-before summary{padding:6px 0;cursor:pointer}.chat-plan-before pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;margin:6px 0;background:#fff;padding:10px;border-radius:8px;font-size:11px}.chat-plan-actions{display:flex;flex-wrap:wrap;gap:8px}.chat-plan-actions button{min-height:36px;font-size:12px}.chat-confirm{background:#137e60;color:white}.chat-plan-status{font-size:11px;color:#678775;line-height:1.7;overflow-wrap:anywhere}.chat-plan-done{background:#f7f9f7;border-color:#dfe8e1}.chat-review-root{width:100%;min-width:0}.chat-review-root .ai-row{grid-template-columns:minmax(0,1fr)!important;padding:14px 10px!important}.chat-review-root .ai-row>*{grid-column:1!important;min-width:0}.chat-review-root .ai-review-tools{gap:6px}.chat-review-root .ai-review-tools button{font-size:11px}.chat-review-root .ai-block>summary{flex-wrap:wrap}.chat-review-root .ai-media{display:flex;flex-wrap:wrap}.chat-review-root .ai-media input{width:100%}.chat-assistant:has(.chat-review-root){max-width:100%;width:100%}.chat-home-settings>.home-layout{padding:16px}.chat-home-settings{margin-bottom:18px}.chat-home-settings>summary{font-size:13px;font-weight:650}.chat-home-settings:not([open]){margin-bottom:12px}.chat-home .chat-user .ai-source-gallery{grid-template-columns:minmax(0,1fr)}.chat-message .ai-source-card{background:#f7fbf8}.chat-message .ai-source-thumb{width:58px;height:72px}
@keyframes chat-pulse{to{opacity:.25}}
@media(max-width:900px){
  /* Moderate density across all fifteen pages, retaining finger-sized controls. */
  .workspace{padding:8px 12px calc(88px + env(safe-area-inset-bottom))!important;gap:12px!important}.ux-appbar{margin-bottom:10px!important;min-height:52px!important;padding:6px 0!important}.page-head{margin:0 0 10px!important;gap:6px!important}.page-head>div:first-child:has(.ux-mobile-help){display:flex;align-items:center;gap:8px}.ux-mobile-help summary{font-size:11px;padding:4px 0}.ux-mobile-help p{margin:4px 0;padding:10px}.page-head-actions{gap:8px!important}.page-head-actions button{padding:8px 12px!important;font-size:12px}.panel,body.ui-dense .panel{padding:12px!important;margin-bottom:12px!important;border-radius:13px!important}.stack-panel{gap:12px!important}.collapse{margin-top:0!important;margin-bottom:10px!important}.collapse:last-child{margin-bottom:0!important}.collapse>summary{padding:10px 12px!important;min-height:44px;box-sizing:border-box}.collapse-body{padding:12px!important;gap:10px!important}.panel>.collapse{border-radius:10px!important}.panel>.collapse>.collapse-body{padding:10px 2px 2px!important}.toolbar,.action-row{gap:8px!important;margin-top:0!important;margin-bottom:10px!important}.toolbar:last-child,.action-row:last-child{margin-bottom:0!important}.mobile-primary-search{display:flex!important;flex-wrap:nowrap!important}.mobile-primary-search input{flex:1!important;width:0!important;min-width:0!important}.mobile-primary-search button{flex:0 0 auto!important;width:auto!important}.toolbar input,.toolbar select{padding:8px 10px!important}.toolbar input[type=file]{padding:10px!important}.mobile-fold>summary{padding:9px 0!important;font-size:12px}.mobile-fold-body{padding:8px 0 0!important}.grid-2,.grid-3{gap:10px!important}label{gap:5px!important;margin-bottom:8px}label>span{font-size:12px}.hint{font-size:11px;line-height:1.65}.product-pager,.order-pager,.member-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding-top:10px;margin-top:8px}.product-pager button,.order-pager button,.member-pager button{flex:0 0 auto!important;min-width:76px!important;width:auto!important}.product-pager .hint{margin:0}.product-list,.ops-list{gap:9px!important}.product-list .product-row,.product-row{padding:11px 10px!important;gap:8px!important}.product-row .product-thumb{height:64px!important}.product-row .product-actions{padding-top:6px!important;gap:6px!important}.product-row .product-actions button{padding:7px 11px!important;font-size:12px!important;min-height:40px!important}.product-row .product-meta{margin-top:4px!important;font-size:11px!important}.product-batch-bar,.member-batch-bar{padding:10px!important;gap:6px!important;flex-wrap:wrap}.product-batch-bar .batch-action{font-size:12px!important;padding:7px 10px!important}.order-card{padding:12px!important;border-radius:13px!important;margin-bottom:10px!important}.order-card-head{gap:8px!important}.order-card-meta{margin-top:6px!important;gap:6px!important}.order-card-actions{gap:6px!important;margin-top:8px!important}.order-card-actions button{padding:8px 10px!important;font-size:12px!important}.order-card-preview{margin-top:6px!important}.order-who{font-size:14px!important}.ops-row{padding:11px!important;gap:8px!important;border-radius:11px!important}.ops-actions{gap:6px!important}.ops-actions button{padding:7px 10px!important;font-size:12px!important}.category-display-item{padding:10px!important}.ai-subnav{margin-bottom:12px!important;top:52px!important}.ai-service-status{margin:0 0 12px!important;padding:8px 10px!important}.ai-block{margin-top:10px!important}.ai-row{padding:12px!important;gap:10px!important}.ai-review-tools{padding:9px 0!important}.ai-source-gallery{gap:8px;margin:10px 0}.ai-source-card{padding:10px;gap:10px}.ai-source-status{margin-top:5px}.ai-source-actions{margin-top:4px}.analytics-grid,.stats-grid,.stat-grid{gap:10px!important}.stat-card,.analytics-card{padding:12px!important}.chart,.chart-box{max-width:100%;overflow:auto}.table-wrap{margin-top:10px}.page-head-actions:empty{display:none}.ux-home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important}.ux-shortcut{padding:12px!important;min-height:70px!important;gap:9px!important}.ux-shortcut strong{font-size:12px!important}.ux-shortcut small{font-size:10px!important;margin-top:3px!important}.ux-shortcut-icon{width:32px!important;height:32px!important;border-radius:9px!important}.chat-home{margin-bottom:12px}.chat-header{padding:16px 16px 8px}.chat-eyebrow{font-size:9px;letter-spacing:.13em}.chat-header h2{font-size:21px}.chat-context{padding:0 16px;font-size:11px}.chat-selection{padding:4px 16px 8px;font-size:10px}.chat-feed{height:230px;padding:10px 16px;gap:14px}.chat-message{font-size:13px}.chat-user{padding:8px 12px}.chat-suggestions{padding:8px 12px;gap:6px}.chat-prompt{font-size:11px;padding:7px 10px;min-height:36px}.chat-composer{margin:0 12px;padding:8px 10px}.chat-composer textarea{font-size:16px!important;min-height:48px!important}.chat-compose-tools{gap:6px}.chat-upload-mode{min-height:40px!important;font-size:12px!important;max-width:110px!important}.chat-attach{min-height:44px;font-size:12px}.chat-send{min-height:44px;padding:8px 12px}.chat-file-count{font-size:9px}.chat-home-settings>.home-layout{padding:10px}.chat-home-settings .panel{margin-bottom:0!important}.chat-fab{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));min-height:46px;padding:10px 15px;font-size:12px}.chat-sheet{inset:auto 0 0;width:100vw;height:min(88dvh,var(--chat-viewport,88dvh));border-radius:20px 20px 0 0;box-shadow:0 -12px 50px #16342c25}.chat-sheet .admin-chat{border-radius:20px 20px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.chat-sheet .chat-header{padding:14px 16px 8px}.chat-sheet .chat-feed{padding:10px 14px}.chat-sheet .chat-suggestions{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}.chat-sheet .chat-prompt{white-space:nowrap;min-height:36px;flex-shrink:0;font-size:10px}.chat-sheet .chat-compose-tools{margin-top:3px}.chat-sheet .chat-context,.chat-sheet .chat-selection{padding-left:16px;padding-right:16px}.chat-sheet .chat-message{max-width:100%}.chat-plan{padding:12px 10px}.chat-plan-actions button{min-height:44px}.chat-footnote{font-size:9px;margin:7px 0 10px}.chat-home .admin-chat{border-radius:16px}.chat-sheet .chat-composer{flex-shrink:0}.chat-header,.chat-context,.chat-selection,.chat-composer,.chat-footnote{flex-shrink:0}.chat-plan-changes{grid-template-columns:72px minmax(0,1fr);gap:6px 10px}.chat-review-root input,.chat-review-root select{max-width:100%}
}
@media(max-width:370px){.chat-file-count{display:none}.chat-header h2{font-size:19px}.chat-send{padding:8px 10px}.chat-upload-mode{max-width:96px!important}.chat-plan-changes{grid-template-columns:60px minmax(0,1fr)}}
.chat-overview{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}.chat-stat{background:#edf4f0;color:#648173;border:1px solid #dde8e1;border-radius:9px;padding:7px 12px;font-size:11px;min-height:36px;flex:1;white-space:nowrap}@media(max-width:900px){.chat-overview{gap:6px;margin-bottom:10px}.chat-stat{font-size:10px;padding:6px 8px;min-height:36px}}
.chat-home .chat-feed{height:auto;min-height:105px;max-height:360px}@media(max-width:900px){.chat-home .chat-feed{height:auto;min-height:100px;max-height:300px}.empty-state,.empty-box,.ux-empty{padding:24px 14px!important;min-height:120px!important}body:has(.chat-fab:not([hidden])) .ux-toasts{bottom:calc(136px + env(safe-area-inset-bottom))!important}}
@media(max-width:900px){.chat-sheet{bottom:var(--chat-bottom,0px)}.chat-sheet.chat-keyboard .chat-eyebrow,.chat-sheet.chat-keyboard .chat-selection,.chat-sheet.chat-keyboard .chat-suggestions,.chat-sheet.chat-keyboard .chat-footnote{display:none}.chat-sheet.chat-keyboard .chat-header{padding:8px 12px 4px}.chat-sheet.chat-keyboard .chat-header h2{font-size:16px}.chat-sheet.chat-keyboard .chat-context{padding-bottom:6px;font-size:10px}.chat-sheet.chat-keyboard .chat-composer{margin-bottom:8px}.chat-sheet.chat-keyboard .chat-composer textarea{height:44px;min-height:44px!important}}
/* Quiet conversation layout; the home surface contains only the conversation. */
.admin-chat{background:#fff;color:#252525;border-color:#e8e8e8;box-shadow:0 8px 32px #00000008}.chat-eyebrow,.chat-message-meta{display:none}.chat-header h2{color:#252525;font-weight:600;letter-spacing:-.035em}.chat-context,.chat-selection,.chat-sources{color:#888}.chat-user{background:#f1f1f1;border-radius:20px;padding:10px 16px}.chat-message-text{line-height:1.85}.chat-composer{background:#f4f4f4;border:1px solid #ececec;box-shadow:none;border-radius:24px;padding:12px 14px}.chat-composer:focus-within{border-color:#d7d7d7;box-shadow:none}.chat-composer textarea{color:#252525}.chat-composer textarea::placeholder{color:#8d8d8d}.chat-send{display:grid;place-items:center;flex-shrink:0;width:36px;min-width:36px;min-height:36px;height:36px;padding:0;background:#252525!important;color:#fff;border-radius:50%;font-size:23px;line-height:1}.chat-attach{width:36px;height:36px;min-height:36px;font-size:26px;color:#555;border-radius:50%}.chat-attach:hover{background:#e9e9e9}.chat-upload-mode{display:none}.chat-has-files .chat-upload-mode{display:block}.chat-footnote{color:#999;letter-spacing:0}.chat-prompt{border-color:#e9e9e9;background:#fafafa;color:#777}.chat-fab{background:#292929}.chat-home{margin:0 auto;width:100%;max-width:820px;height:calc(100dvh - 145px);min-height:400px}.chat-home .admin-chat{height:100%;background:transparent!important;border:0;border-radius:0;box-shadow:none}.chat-home .chat-context,.chat-home .chat-selection,.chat-home .chat-suggestions{display:none}.chat-home .chat-feed>.chat-message:first-child{display:none}.chat-home .chat-feed{height:100%;max-height:none;min-height:0;padding:16px 24px;gap:24px}.chat-home .chat-messages{flex:1;min-height:0}.chat-home .chat-header{padding:0 20px 8px;justify-content:flex-end}.chat-home .chat-header>div:first-child{display:none}.chat-home .chat-header-actions{margin-left:auto}.chat-home .chat-clear{background:transparent;color:#999;font-size:12px}.chat-home .chat-composer{margin:0 16px}.chat-home .chat-footnote{margin:10px 0 0;font-size:10px}.chat-home .chat-empty .chat-header{justify-content:center;padding:0;margin-top:clamp(42px,13vh,145px);margin-bottom:28px}.chat-home .chat-empty .chat-header>div:first-child{display:block;text-align:center}.chat-home .chat-empty .chat-header h2{font-size:30px;margin:0}.chat-home .chat-empty .chat-header-actions,.chat-home .chat-empty .chat-messages{display:none}.chat-home .chat-empty .chat-composer{width:calc(100% - 32px);box-sizing:border-box}.chat-home .chat-empty .chat-footnote{margin-top:12px}body.chat-home-active .ux-appbar-actions{display:none}body.chat-home-active .workspace{background:#fff}body.chat-home-active .ux-appbar{border-bottom-color:transparent}.chat-sheet .chat-header h2{font-size:17px}.chat-sheet .chat-header{padding-top:16px}.chat-sheet .chat-composer{margin-bottom:0}.chat-sheet .chat-send{min-height:36px}.chat-sheet .chat-attach{min-height:36px}
@media(max-width:900px){body.chat-home-active .workspace{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}.chat-home{height:calc(100dvh - 142px - env(safe-area-inset-bottom));min-height:320px;margin-bottom:0}.chat-home .chat-header{padding:0 0 8px}.chat-home .chat-empty .chat-header{margin-top:clamp(40px,11vh,100px);margin-bottom:24px}.chat-home .chat-empty .chat-header h2{font-size:25px}.chat-home .chat-composer{margin:0 2px;padding:12px;border-radius:23px}.chat-home .chat-empty .chat-composer{width:calc(100% - 4px)}.chat-home .chat-feed{padding:12px 2px;gap:20px}.chat-home .chat-footnote{font-size:9px}.chat-home .chat-composer textarea{min-height:54px!important}.chat-send,.chat-sheet .chat-send{width:40px;height:40px;min-width:40px;min-height:40px}.chat-attach,.chat-sheet .chat-attach{width:40px;height:40px;min-height:40px}.chat-home .chat-user{max-width:90%}.chat-home .chat-message{max-width:100%}.chat-home .chat-compose-tools{margin-top:4px}.chat-home .chat-empty .chat-footnote{margin-top:10px}}
body.chat-home-active .ux-appbar{background:#fff!important}
