/* Customer chat uses one viewport; only history and open sheets scroll. */
body.customer-experience{position:fixed;inset:var(--customer-top,0px) 0 auto;height:var(--customer-height,100dvh);min-height:0;overflow:hidden;background:#edf2ef;color:#18392d;display:flex;flex-direction:column;}
.customer-experience .topbar{flex:none;background:#fff;color:#173f30;border-bottom:1px solid #e0e9e3;padding-top:env(safe-area-inset-top);}
.customer-experience .topbar-inner{min-height:48px;padding:8px 16px;width:100%;max-width:640px;}
.customer-experience .brand{font-size:15px;}.customer-experience .brand-mark{width:27px;height:27px;}
body.customer-experience .workspace{width:100%;max-width:640px;margin:0 auto;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;}
.customer-experience .page-heading{display:none;}
.customer-experience .customer-profile{flex:none;margin:0;border:0;border-radius:0;padding:12px 16px;background:#fff;box-shadow:none;}
.customer-experience .profile{margin:0;gap:10px;}.customer-experience .profile-mark{width:40px;height:40px;flex-basis:40px;}
.customer-experience .profile h2{font-size:17px;}.customer-experience .profile p{font-size:12px;margin-top:3px;}
.customer-experience #chat-mount{min-height:0;flex:1;display:flex;flex-direction:column;}
.customer-experience .chat-panel{min-height:0;flex:1;display:flex;flex-direction:column;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#f1f5f2;}
.customer-experience .chat-layout,.customer-experience .chat-main{min-height:0;flex:1;display:flex;flex-direction:column;gap:0;position:relative;}
.customer-experience .customer-toolbar{display:flex;align-items:center;justify-content:space-around;gap:8px;background:#fff;padding:2px 12px 8px;border-bottom:1px solid #e0e9e3;flex:none;}
.customer-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;background:transparent;color:#315e49;padding:8px 10px;border-radius:9px;font-size:13px;font-weight:600;}
.customer-action:hover{background:#e9f3ed;color:#174e36;}.customer-action svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.customer-action.is-linked{color:#067244;}
.customer-experience .customer-chat-heading,.customer-experience .customer-conversation-title{display:none;}
.customer-experience .customer-stream{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;}
.customer-experience .chat-timeline{height:auto;min-height:0;flex:1;margin:0;border-radius:0;padding:16px 14px;scroll-padding:10px;background:transparent;overflow:auto;-webkit-overflow-scrolling:touch;}
.customer-experience .customer-history{flex:none;align-self:center;min-height:36px;padding:5px 14px;margin:4px 0 0;border:0;background:transparent;color:#628170;font-size:12px;}
.customer-experience .customer-history:disabled{display:none;}
.customer-experience .customer-empty{position:absolute;left:22px;right:22px;top:26%;text-align:center;pointer-events:none;color:#70877a;}
.customer-empty .empty-title{font-size:19px;font-weight:650;color:#4b6b5a;}.customer-empty p{font-size:13px;max-width:250px;margin:10px auto;line-height:1.8;color:#7b9084;}
.customer-experience .chat-message{max-width:89%;border:1px solid #e1e9e3;border-radius:3px 14px 14px 14px;box-shadow:0 2px 5px #12342204;padding:10px 12px;margin-bottom:14px;}
.customer-experience .chat-message.mine{background:#d8efe1;border-color:#cce5d5;border-radius:14px 3px 14px 14px;}
.customer-experience .chat-message p{font-size:16px;line-height:1.65;}.customer-experience .chat-message small{font-size:11px;color:#718778;}
.customer-experience .message-actions button{min-height:34px;font-size:12px;padding:4px 7px;}
.customer-experience .chat-message img{border-radius:8px;cursor:zoom-in;}
.chat-image-open{border:0;background:transparent;padding:0;display:block;min-height:44px;max-width:100%;white-space:normal;}.chat-image-open:hover{background:transparent;}.customer-image-preview{max-width:100%;height:auto;display:block;margin:auto;}
.customer-experience .chat-status{flex:none;font-size:12px;color:#8a5d21;padding:0 14px;margin:0;background:#fff;min-height:0;}
.customer-experience .chat-status:not(:empty){padding-block:7px;}
.customer-experience .chat-compose{flex:none;background:#fff;border-top:1px solid #e0e9e3;padding:10px 12px max(10px,env(safe-area-inset-bottom));}
.customer-experience .customer-input-row{display:flex;align-items:flex-end;gap:8px;}
.customer-experience .customer-input-row>.customer-action{flex:none;width:44px;height:44px;background:#f2f6f3;padding:9px;}.customer-input-row>.customer-action span{display:none;}
.customer-experience .customer-input-row textarea{flex:1;min-width:0;font-size:16px;line-height:24px;min-height:44px;max-height:112px;padding:9px 11px;resize:none;border:1px solid #dce6df;background:#f8faf8;}
.customer-experience .customer-input-row>button[type=submit]{flex:none;height:44px;min-width:60px;padding:8px 13px;}
.customer-experience .customer-original-actions{display:none;}
.customer-experience .chat-emojis{margin:0 0 10px;gap:6px;}.customer-experience .chat-emojis button{min-width:44px;min-height:44px;font-size:20px;}.customer-experience .chat-emojis button:last-child{font-size:12px;}
.customer-experience .chat-quote{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:12px;}
.customer-experience .customer-jump{position:absolute;right:14px;bottom:98px;z-index:2;min-height:36px;padding:6px 12px;background:#fff;border:1px solid #d8e6dc;box-shadow:0 3px 12px #17352614;color:#246144;font-size:12px;}
.customer-experience .customer-recording{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;background:#fff;border-top:1px solid #dbe7df;padding-bottom:max(12px,env(safe-area-inset-bottom));}.customer-recording span{flex:1;min-width:130px;font-size:13px;color:#9b4b30;}
.customer-sheet{border:0;padding:0;margin:auto auto 0;width:100%;max-width:640px;max-height:min(88dvh,calc(var(--customer-height,100dvh) - 16px));background:transparent;color:#18392d;overflow:visible;}
.customer-sheet::backdrop{background:#102e265c;backdrop-filter:blur(2px);}
.sheet-card{background:#fff;border-radius:22px 22px 0 0;padding:8px 18px max(20px,env(safe-area-inset-bottom));max-height:min(88dvh,calc(var(--customer-height,100dvh) - 16px));overflow:auto;overscroll-behavior:contain;box-shadow:0 -8px 40px #102e2612;}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-8px;background:#fff;z-index:1;padding:8px 0;border-bottom:1px solid #edf2ee;}.sheet-heading h2{font-size:18px;}.sheet-heading>.customer-action span{display:none;}.sheet-heading>.customer-action{width:44px;height:44px;background:#f3f6f4;}
.sheet-content{padding-top:16px;}.sheet-description{font-size:14px;line-height:1.8;margin-bottom:15px;}
.customer-sheet input:not([type=radio]):not([type=checkbox]),.customer-sheet textarea{font-size:16px;}
.customer-sheet .chat-actions{margin:0;}.customer-sheet .chat-actions input{flex:1;min-width:140px;}
.customer-sheet .weixin-connect{margin:0;padding:0;border:0;justify-items:stretch;gap:15px;}.customer-sheet .weixin-connect>img{justify-self:center;width:min(240px,100%);height:auto;border:1px solid #e2eae5;border-radius:12px;padding:10px;}
.customer-sheet .weixin-consent{font-size:13px;line-height:1.7;gap:12px;color:#5e7669;}.weixin-consent input{min-width:22px;min-height:22px;accent-color:#086447;}
.customer-sheet .customer-weixin-status{font-size:13px;color:#416a55;background:#f0f6f2;padding:10px 12px;border-radius:10px;margin-bottom:14px;}
.customer-sheet .customer-panel{padding:0;box-shadow:none;border:0;margin:0;}.customer-sheet .service-picker{gap:8px;}.customer-sheet .service-picker label{min-height:44px;font-size:14px;flex:1;justify-content:center;}
.customer-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}.customer-tools-grid>.tool-tile,.customer-tools-grid>.customer-action{min-height:70px;white-space:normal;font-size:15px;border:1px solid #e0e9e3;background:#f5f8f6;border-radius:14px;color:#2c6247;}
.customer-experience #request-panel{flex:none;max-height:190px;overflow:auto;margin:0;padding:12px 16px;border:0;border-top:1px solid #dde9e1;border-radius:0;background:#e9f5ed;box-shadow:none;order:-1;}
.customer-experience #request-panel .call-face{padding:0;display:block;text-align:left;}.customer-experience #request-panel .call-orb{display:none;}.customer-experience #request-panel h2{font-size:15px;margin:0;}.customer-experience #request-panel p{font-size:12px;margin-top:4px;}.customer-experience #request-panel .controls{margin-top:8px;display:flex;justify-content:flex-start;}.customer-experience #request-panel .controls>*{font-size:12px;min-height:36px;padding:6px 12px;}
.customer-experience>.workspace>#notice{position:fixed;bottom:max(86px,env(safe-area-inset-bottom));left:12px;right:12px;z-index:4;max-width:600px;margin:auto;box-shadow:0 5px 15px #102e2615;}
.customer-experience.customer-call .topbar-divider,.customer-call .area{display:none;}
.customer-experience.customer-call .workspace-grid,.customer-experience.customer-call .main-column{min-height:0;flex:1;display:flex;flex-direction:column;gap:0;}
.customer-experience.customer-call .workspace-grid{align-items:stretch;width:100%;}.customer-experience.customer-call .main-column{width:100%;}
.customer-experience.customer-call .room{order:-1;flex:none;border:0;border-radius:0;box-shadow:none;padding:12px 16px;background:#fff;border-bottom:1px solid #dfe9e2;max-height:58%;overflow:auto;}
.customer-call .room-status{display:none;}.customer-experience.customer-call .call-face{padding:0;display:grid;grid-template-columns:auto 1fr auto;gap:2px 12px;text-align:left;justify-items:start;}.customer-call .call-face .call-orb{width:40px;height:40px;grid-row:1/3;box-shadow:none;}.customer-call .call-orb .voice-mark{transform:scale(.75);}
.customer-experience.customer-call .call-face h2{font-size:18px;letter-spacing:0;margin:0;}.customer-call .call-face p{grid-column:2/4;margin:0;font-size:12px;}.customer-call .call-face .duration{grid-column:3;grid-row:1;font-size:19px;margin:0;}
.customer-experience.customer-call .controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}.customer-call .controls>*{flex:1;min-width:100px;min-height:44px;}.customer-call #accept{min-height:52px;}
.customer-call .summary{gap:6px;margin-top:8px;}.customer-call .summary div{padding:7px;}.customer-call .summary strong{font-size:12px;}.customer-call .customer-toolbar{display:none;}
.customer-call .main-column>#notice:not([hidden]){flex:none;margin:0;border-radius:0;font-size:12px;padding:6px 12px;}
@media(min-width:700px){.customer-experience .workspace{border-inline:1px solid #dce6df;}.customer-sheet{margin:auto;}.sheet-card{border-radius:22px;padding-bottom:24px;}}
@media(max-height:560px){.customer-experience .topbar{display:none;}.customer-experience .customer-profile{padding:6px 14px;}.customer-experience .profile-mark{width:30px;height:30px;flex-basis:30px;}.customer-experience .customer-toolbar{padding-bottom:2px;}.customer-experience .customer-toolbar .customer-action{min-height:36px;}.customer-sheet,.sheet-card{max-height:95dvh;}.customer-experience.customer-call .room{padding:8px 12px;}.customer-call .call-face .call-orb{display:none;}.customer-experience.customer-call .call-face{grid-template-columns:1fr auto;}.customer-call .call-face p{grid-column:1/3;}.customer-call .call-face .duration{grid-column:2;}.customer-experience.customer-call .controls{margin-top:6px;}}
