:root{font-family:'Yu Gothic UI','Meiryo',sans-serif;color:#20334c;background:#f1f5fa;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid #dce4ef;padding:15px max(24px,calc((100vw - 1100px)/2));display:flex;align-items:center;gap:16px}header img{width:58px;height:58px;object-fit:contain}header strong,header small{display:block}header strong{font-size:20px}header small{font-size:10px;letter-spacing:2px;color:#1e62ac}header>.badge{margin-left:auto}main{max-width:1150px;margin:32px auto;padding:0 24px}h1{font-size:28px;margin:10px 0 16px}h2{font-size:20px;margin:0 0 15px}p{line-height:1.8}a{color:#1e62ac;text-decoration:none}.intro{margin:30px 0}.eyebrow{font-size:12px;letter-spacing:1px;color:#2265ac;font-weight:700}.card{background:white;border:1px solid #dce4ef;border-radius:15px;padding:26px;margin-bottom:24px;box-shadow:0 4px 18px #243d6510}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.choice{color:inherit;transition:transform .15s,border-color .15s}.choice:hover{transform:translateY(-3px);border-color:#1e62ac}.choice small{color:#65748a;line-height:1.8}.icon{display:block;background:#eaf2fd;border-radius:12px;width:52px;padding:8px;text-align:center;font-size:27px;margin-bottom:22px;color:#1e62ac}.disabled{opacity:.65}.note,footer{color:#66768a;font-size:13px}.narrow{max-width:670px;margin:24px auto}label{display:block;font-size:14px;font-weight:600;margin:17px 0}input,textarea,select{display:block;width:100%;font:inherit;color:inherit;padding:12px;border:1px solid #c8d4e2;border-radius:8px;margin-top:8px;background:white}input:focus,textarea:focus{outline:2px solid #a5c9f5}button,.button{display:inline-block;border:0;border-radius:8px;background:#1e62ac;color:white;padding:11px 18px;cursor:pointer;font:inherit;font-weight:600}.secondary{background:#eaf2fd;color:#1e62ac}.badge{display:inline-block;background:#eaf2fd;color:#235d9d;padding:5px 10px;border-radius:30px;font-size:12px;white-space:nowrap}.section-title{display:flex;justify-content:space-between}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;color:#687990;background:#f7f9fc}td,th{padding:15px 12px;border-bottom:1px solid #e5ebf3}td small{display:block;color:#76859a;font-size:11px;margin-top:5px}.excerpt{max-width:300px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.empty{text-align:center;padding:35px;color:#76859a}.inline-form{display:flex;align-items:end;gap:15px;margin-top:15px}.inline-form label{flex:1;margin:0}.required{font-size:10px;color:#b32635}.alert{padding:15px;background:#e0f1e7;border-radius:10px}.messages{margin:25px 0;max-height:480px;overflow:auto}.message{padding:15px;background:#f0f4f9;border-radius:10px;margin:12px 25px 12px 0}.message.staff{background:#e5f1ff;margin:12px 0 12px 25px}.message small{color:#62768e}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}footer{text-align:center;padding:25px}.print-tools{margin:20px 0}.print-tools button{margin-left:20px}.print-label{width:125mm;min-height:175mm;padding:12mm;background:white;border:2px solid #1e62ac;text-align:center;margin:25px auto}.print-logo{width:34mm;height:34mm;object-fit:contain}.qr{width:72mm;height:72mm;display:block;margin:0 auto}.print-label h2{overflow-wrap:anywhere}.print-label p{margin:12px 0}@media(max-width:700px){main{padding:0 16px;margin:20px auto}.choices{grid-template-columns:1fr;gap:0}.choice{padding:22px}.inline-form{display:block}.inline-form label{margin:16px 0}.print-label{width:100%;padding:20px}.card{padding:20px}h1{font-size:24px}}@media print{@page{size:A4;margin:15mm}body{background:white}header,footer,.print-tools{display:none!important}main{padding:0;margin:0;max-width:none}.print-label{width:125mm;min-height:175mm;margin:0 auto;break-inside:avoid;box-shadow:none;print-color-adjust:exact}.print-logo{width:34mm;height:34mm}.qr{width:72mm;height:72mm}}

.membership-form{display:inline-block;margin:4px 0 4px 6px}
.selected-property{padding:18px;background:#f4f8fd;border-radius:10px;margin:20px 0}.selected-property h2{margin:5px 0 15px}.feature-options{border:1px solid #dce4ef;border-radius:10px;padding:15px}.feature-options legend{font-weight:700}.check-option{display:flex;align-items:flex-start;gap:12px;padding:8px;margin:5px 0}.check-option input{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:#1e62ac}.check-option small{display:block;font-weight:400;color:#66768a;margin-top:5px}.section-title{gap:15px;flex-wrap:wrap;align-items:center}@media(max-width:700px){.section-title>.button{width:100%;text-align:center}}
.chat-page{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.chat-page>header{padding:8px 20px;flex-shrink:0}.chat-page>header img{width:38px;height:38px}.chat-page>header strong{font-size:16px}.chat-page>footer{display:none}.chat-page>main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:900px;margin:0 auto;padding:12px 20px}.chat-back{padding:0 0 10px;flex-shrink:0}.chat-panel{display:flex;flex-direction:column;flex:1;min-height:0;border:1px solid #ccd8e6;border-radius:16px;overflow:hidden;background:#8eacc7}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;padding:12px 18px;flex-shrink:0}.chat-heading h1{font-size:19px;margin:5px 0 0}.chat-heading .eyebrow{letter-spacing:0;overflow-wrap:anywhere}.chat-details{background:#f7faff;padding:9px 18px;font-size:13px;flex-shrink:0;max-height:25vh;overflow:auto}.chat-details summary{cursor:pointer;color:#46617d}.chat-details p{margin:8px 0}.chat-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px}.chat-message{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:18px;max-width:84%;width:fit-content}.chat-message.own{margin-left:auto;align-items:flex-end}.chat-sender{font-size:11px;color:#263e53;margin:0 7px 4px}.chat-bubble{background:white;border-radius:4px 17px 17px 17px;padding:10px 14px;box-shadow:0 1px 2px #0001;max-width:100%;min-width:40px}.own .chat-bubble{background:#bcf29c;border-radius:17px 4px 17px 17px}.chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.65}.chat-bubble img{max-width:100%;width:240px;max-height:260px;object-fit:contain;display:block;border-radius:8px}.chat-message time{color:#30485e;font-size:10px;margin:4px 7px 0}.chat-composer{background:#fff;padding:8px 14px max(10px,env(safe-area-inset-bottom));flex-shrink:0;border-top:1px solid #d5e0ec}.chat-composer #connection{margin:0 0 6px;font-size:11px;line-height:1.4}.chat-input-row{display:flex;gap:10px;align-items:flex-end}.chat-input-label{flex:1;min-width:0;margin:0}.chat-input-label textarea{margin:0;resize:none;border-radius:18px;padding:10px 14px;max-height:120px;min-height:54px}.chat-input-row button{flex-shrink:0;background:#23813d;border-radius:20px;padding:12px 16px}.chat-status-row{display:flex;gap:12px;align-items:center;margin-top:8px}.chat-status-row label{display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0;font-size:12px}.chat-status-row select{width:105px;margin:0;padding:6px;font-size:13px}.chat-status-row small{font-size:11px;color:#68788a}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button:disabled{opacity:.55;cursor:wait}@media(max-width:600px){.chat-page>main{padding:0}.chat-back{padding:8px 12px}.chat-panel{border:0;border-radius:0}.chat-heading{padding:10px 14px}.chat-heading h1{font-size:17px}.chat-history{padding:14px 12px}.chat-message{max-width:88%}.chat-status-row{flex-wrap:wrap;gap:5px}.chat-status-row small{font-size:10px}.chat-input-row button{font-size:13px;padding:12px}.chat-page>header .badge{display:none}}
.chat-photo-label{display:flex;align-items:center;gap:10px;margin:3px 0 8px;font-size:12px;font-weight:400}.chat-photo-label input{width:auto;min-width:0;flex:1;font-size:12px;padding:4px;margin:0}.chat-status-row{justify-content:space-between}.chat-status-row button{font-size:12px;padding:7px 14px}.chat-page>header strong{overflow-wrap:anywhere}@media(max-width:600px){.chat-page>header{padding:7px 12px;gap:10px}.chat-page>header strong{font-size:15px}}
.header-action{white-space:nowrap;font-size:13px}@media(max-width:600px){header:has(.header-action){flex-wrap:wrap;gap:10px}header:has(.header-action)>.badge{display:none}.header-action{margin-left:auto}}
.ai-notice{background:#fff7e8;color:#765a26;padding:7px 16px;font-size:11px;flex-shrink:0;line-height:1.5}.ai-source{display:block;margin-top:8px;font-size:12px;text-decoration:underline;overflow-wrap:anywhere}.ai-handoff{border:1px solid #c4d8ef;background:#eef6ff;padding:10px;border-radius:9px;margin-bottom:8px}.ai-handoff[hidden],.ai-request[hidden]{display:none}.ai-handoff p{margin:0 0 8px}.ai-handoff button,.ai-request{padding:7px 12px;font-size:12px}.ai-request{margin:0 0 8px}
.chat-call-link{display:block;margin-top:10px;padding:10px 14px;border-radius:8px;background:#1e62ac;color:#fff;font-weight:600;text-align:center}.chat-voice{display:flex;align-items:center;gap:10px;margin:4px 0 8px}.chat-voice button{font-size:12px;padding:8px 12px;white-space:nowrap}.chat-voice button[aria-pressed=true]{background:#af2430;color:white}.chat-voice small{font-size:11px;line-height:1.4;color:#53667e;overflow-wrap:anywhere}
/* Compact composer: primary input above a quiet attachment/voice toolbar. */
.chat-composer{padding:12px 14px max(6px,env(safe-area-inset-bottom))}
.chat-composer #connection:empty,.chat-input-hint:empty{display:none}
.chat-input-row{align-items:center;gap:10px}
.chat-input-label textarea{font-size:16px;background:#f7f9fc;border-color:#dce4ed;border-radius:14px;min-height:54px;padding:12px;line-height:1.5}
.chat-input-row button{min-height:48px;min-width:54px;border-radius:14px}
.chat-tools{display:flex;align-items:center;gap:8px;margin-top:3px}
.chat-tools input[hidden]{display:none}
.chat-tool{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:7px 10px;background:transparent;color:#526982;font-size:13px;font-weight:500;border-radius:9px}
.chat-tool svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.chat-tool:hover,.chat-tool:focus-visible{background:#edf3f9}
.chat-tool[aria-pressed=true]{color:#a62737;background:#fff0f2}
.chat-tool:disabled{cursor:default}
.chat-input-hint{margin:4px 0 8px;font-size:12px;line-height:1.6;color:#53667e}
.chat-attachment{display:flex;align-items:center;gap:8px;max-width:100%;margin-bottom:9px;padding:3px 5px 3px 12px;background:#edf4fb;border-radius:10px;font-size:12px;color:#355778}
.chat-attachment[hidden]{display:none}
.chat-attachment span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attachment button{padding:5px;min-width:36px;min-height:36px;background:transparent;color:#526982;font-size:21px}
@media(max-width:600px){.chat-composer{padding-left:12px;padding-right:12px}.chat-input-row button{padding:10px 13px}.chat-tools{gap:6px}}
.emergency-choice .icon{background:#fff0ed;color:#b24735}.call-page main{max-width:850px}.call-shell{background:#fff;padding:24px;border:1px solid #dce4ef;border-radius:16px}.call-title{display:flex;align-items:center;justify-content:space-between;gap:14px}.call-title h1{font-size:25px;margin:8px 0}.call-status{background:#edf4fb;padding:12px 15px;border-radius:10px;line-height:1.6}.call-visual{position:relative;background:#172b3b;border-radius:12px;overflow:hidden;aspect-ratio:4/3;max-height:55vh;margin:16px 0}.call-visual[hidden],.call-controls[hidden]{display:none}.call-visual video,.call-visual img{display:block;width:100%;height:100%;object-fit:contain}.call-building{position:absolute;bottom:0;left:0;right:0;padding:8px 12px;background:#0008;color:white;font-size:13px}.call-video-note{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:14px}.call-video-note[hidden]{display:none}.call-primary{display:flex;gap:12px;margin-top:18px}.call-primary button{flex:1;min-height:48px}.call-primary button[hidden]{display:none}.call-primary #call-start{background:#23813d}.call-primary .call-end{background:#b33140}.call-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.call-controls button{font-size:13px;min-height:44px}.call-controls button[aria-pressed=true]{background:#fdecee;color:#9b2838}.call-consent{color:#65748a;font-size:12px;line-height:1.7;margin:18px 0 12px}.call-phone{display:block;text-align:center;overflow-wrap:anywhere;line-height:1.7}.call-return{display:block;margin-top:22px;font-size:13px}.call-list{margin:12px 0;color:#63748b;font-size:13px}.call-incoming{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 12px;border:1px solid #dce4ef;border-radius:10px;margin-bottom:9px}.call-incoming.is-ringing{border-color:#e6ad65;background:#fff8ed}.call-incoming strong,.call-incoming small{display:block;overflow-wrap:anywhere}.call-incoming small{font-size:11px;margin-top:5px}.call-incoming button{min-height:44px;background:#23813d;flex-shrink:0}.call-reception-summary p{margin-bottom:0}.call-page #call-hint:empty{display:none}@media(max-width:600px){.call-page main{padding:0 12px;margin:15px auto}.call-shell{padding:16px}.call-title h1{font-size:22px}.call-visual{max-height:45vh}.call-page header{padding:8px 12px}.call-page header .badge{display:none}}

.call-history{border-top:1px solid #dce4ef;margin-top:18px;padding-top:14px}.call-history summary{cursor:pointer;font-weight:600;color:#526982}.call-history-list{max-height:280px;overflow:auto;margin-top:10px}

.emergency-call-alert{position:sticky;top:12px;z-index:20;display:flex;align-items:center;gap:20px;margin-bottom:24px;padding:24px;background:#a71927;color:#fff;border:3px solid #ff8791;border-radius:16px;box-shadow:0 8px 24px #a7192740;animation:emergency-call-pulse 2s ease-in-out infinite}
.emergency-call-alert[hidden]{display:none}.emergency-call-icon{font-size:48px;line-height:1;flex-shrink:0}.emergency-call-info{flex:1;min-width:0}.emergency-call-alert h2{margin:0 0 10px;font-size:26px;color:#fff}.emergency-call-alert strong{display:block;font-size:18px;line-height:1.6;overflow-wrap:anywhere}.emergency-call-alert p{margin:8px 0 0;color:#fff}.emergency-call-alert .button{background:#fff;color:#a71927;font-size:18px;min-height:52px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.call-reception-summary.is-ringing{border:3px solid #a71927;background:#fff3f3}
@keyframes emergency-call-pulse{0%,100%{box-shadow:0 8px 24px #a7192740}50%{box-shadow:0 8px 30px #a7192780}}
@media(prefers-reduced-motion:reduce){.emergency-call-alert{animation:none}}
@media(max-width:700px){.emergency-call-alert{gap:12px;padding:18px;flex-wrap:wrap}.emergency-call-icon{font-size:36px}.emergency-call-alert h2{font-size:22px}.emergency-call-alert .button{width:100%}}
.call-ring-activation{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff7e8;border:1px solid #e8cb92;border-radius:10px;padding:14px 16px;margin-top:18px}.call-ring-activation p{margin:0;font-size:14px;line-height:1.6}.call-ring-activation button{flex-shrink:0;background:#23813d}.call-ring-activation button[hidden]{display:none}.call-output-settings{margin-top:16px;border-top:1px solid #dce4ef;padding-top:14px}.call-output-settings summary{cursor:pointer;font-weight:600;color:#526982}.call-output-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:14px 0}.call-output-grid label{display:block;font-size:14px;margin-bottom:7px}.call-output-grid select{margin-bottom:8px}.call-output-grid button{font-size:13px}.call-output-settings .note{margin:10px 0;line-height:1.7}@media(max-width:600px){.call-ring-activation{align-items:stretch;flex-direction:column}.call-output-grid{grid-template-columns:1fr}}
.call-pip{position:absolute;right:12px;bottom:12px;width:27%;min-width:90px;max-width:160px;aspect-ratio:4/3;background:#172b3b;border:2px solid #fff;border-radius:9px;overflow:hidden;box-shadow:0 3px 12px #0006;z-index:2}.call-pip[hidden],.call-controls button[hidden]{display:none}.call-pip video,.call-pip img{width:100%;height:100%;object-fit:cover}.call-pip span{position:absolute;left:0;right:0;bottom:0;color:#fff;background:#0008;font-size:11px;padding:3px 7px}.call-building{padding-right:30%}@media(max-width:600px){.call-pip{right:8px;bottom:8px}}
.callback-result[hidden]{display:none}.callback-url-row{display:flex;align-items:center;gap:12px;margin-top:8px}.callback-url-row input{flex:1;min-width:0}.callback-url-row button{flex-shrink:0}@media(max-width:600px){.callback-url-row{flex-direction:column;align-items:stretch}}
.call-camera-switch{margin-top:8px;font-size:13px;min-height:44px}.call-camera-switch[hidden]{display:none}
.call-startup-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.call-startup-bar button[hidden]{display:none}

.customer-connection{padding:9px 13px;margin:0;border-bottom:1px solid #e2e8f0;font-size:13px;color:#526477;background:#f4f6f8}.customer-connection[data-state=connected]{background:#edf8ef;color:#23683a}.customer-connection[data-state=background]{background:#fff8e8;color:#845d1d}.customer-connection[data-state=disconnected]{background:#fff0ee;color:#a32f36;font-weight:600}

.call-ring-activation[hidden],.call-startup-bar[hidden]{display:none}

.chat-photo-choice{width:min(340px,calc(100% - 32px));border:1px solid #d2deeb;border-radius:16px;padding:22px;box-shadow:0 15px 55px #0003}.chat-photo-choice::backdrop{background:#14263880}.chat-photo-choice h2{font-size:19px;margin:0 0 18px}.chat-photo-choice button{display:block;width:100%;margin-top:10px;min-height:46px}

.chat-presence-event{align-self:center;align-items:center;margin:8px auto 18px;max-width:100%;color:#294d67}.chat-presence-event p{background:#ffffffc9;border-radius:12px;padding:7px 15px;margin:0;font-size:12px;text-align:center}.chat-presence-event[data-state=disconnected] p{background:#fff0ee;color:#a32f36}.chat-presence-event time{font-size:10px;margin-top:5px}

.message-arrival-alert{position:relative;background:#a6510e;border-color:#ffca91;animation:none}.message-arrival-row{display:block;color:#fff;text-decoration:none;margin:8px 0}.message-arrival-row small{display:block;color:#fff5df;font-size:12px;max-width:550px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.callback-dialog{width:min(660px,calc(100% - 32px));max-height:85vh;overflow:auto;margin:auto;padding:24px;box-shadow:0 20px 65px #0004}.callback-dialog::backdrop{background:#14263880}.callback-dialog p{line-height:1.8}.chat-callback-link{display:block;margin:10px 0}.chat-bubble>small{display:block;line-height:1.6;margin-top:7px}

.call-incoming .call-block-button{background:#fff;color:#a42935;border:1px solid #d6a2a9}.call-incoming .call-block-button:disabled{color:#65748a;border-color:#dce4ef}.call-incoming>div:first-child{flex:1;min-width:0}@media(max-width:600px){.call-incoming{flex-wrap:wrap}.call-incoming>div:first-child{flex-basis:100%}}

.call-blocked-notice{margin:16px 0}.call-blocked-notice[hidden],.call-primary[hidden],.call-phone[hidden],.call-consent[hidden]{display:none}

.call-block-name-edit{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.call-block-name-edit label{margin:0;font-size:12px}.call-block-name-edit input{flex:1;min-width:140px;width:auto;margin:0}.call-block-name-edit button{font-size:12px;min-height:38px}
.call-incoming button.secondary{background:#edf4fb;color:#174b80;border:1px solid #c6d9ed}
/* Reception account controls stay compact alongside the existing header actions. */
.staff-account{font-size:13px;color:#405873}.staff-logout{margin:0}.staff-logout button{padding:8px 12px;font-size:13px}header{flex-wrap:wrap}

.staff-login-card{max-width:460px;margin:32px auto}.staff-user-row{border-top:1px solid #dce4ee;padding:20px 0}.staff-password-edit{margin-top:12px}

.staff-lan-option{display:flex;align-items:center;gap:10px}.staff-lan-option input{width:20px;height:20px;margin:0}

.building-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:260px}.building-actions form{margin:0}.building-actions .button,.building-actions button{white-space:nowrap}

.call-incoming .call-end{background:#b33140;color:white;border:0}.call-callback-notice{background:#fff3dd;border:2px solid #e5a432;border-radius:12px;padding:18px;margin:18px 0}.call-callback-notice[hidden]{display:none}.reception-call-dialog{border:0;border-radius:14px;padding:0;width:min(1000px,calc(100vw - 24px));height:calc(100dvh - 32px);max-height:960px;box-shadow:0 20px 60px #0006}.reception-call-dialog::backdrop{background:#142638a0}.call-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 18px;background:white;border-bottom:1px solid #dce4ef}.reception-call-dialog[open]{display:flex;flex-direction:column}.reception-call-dialog iframe{border:0;width:100%;flex:1;min-height:0}.call-embedded>header,.call-embedded>footer{display:none}.call-embedded>main{margin:12px auto}

.call-callback-declined{color:#b33140;font-weight:600;white-space:nowrap;font-size:12px}

.call-disconnect-dialog{width:min(480px,calc(100% - 32px));border:1px solid #dce4ef;border-radius:14px;padding:24px;margin:auto;box-shadow:0 20px 60px #0005}.call-disconnect-dialog::backdrop{background:#14263890}.call-disconnect-dialog h2{font-size:21px;margin-top:0}.call-disconnect-dialog p{line-height:1.8;overflow-wrap:anywhere}.call-disconnect-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.call-disconnect-actions button{min-height:44px}.call-disconnect-dialog #call-disconnect-error{color:#b33140}

/* Reception: one masthead and one aligned action bar. */
.reception-header{display:block;padding:0;background:#fff;border-top:3px solid #1e62ac;border-bottom:1px solid #dce4ef;box-shadow:0 3px 16px #20334c05}
.reception-masthead,.reception-nav{max-width:1150px;margin:0 auto;padding-left:24px;padding-right:24px}
.reception-masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px;padding-top:16px;padding-bottom:16px}
.reception-brand{display:flex;align-items:center;gap:14px;min-width:0}
.reception-brand img{width:50px;height:50px;flex-shrink:0}
.reception-brand strong{font-size:20px;line-height:1.5;letter-spacing:.02em;overflow-wrap:anywhere}
.reception-brand small{font-size:9px;letter-spacing:2px;margin-bottom:3px;line-height:1.5}
.reception-session{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}
.reception-company{display:flex;align-items:center;gap:8px;font-size:12px;color:#61748b;min-width:0}
.reception-company-code{border:1px solid #d8e5f3;border-radius:6px;padding:4px 7px;color:#285f9b;background:#f5f9fe;white-space:nowrap;font-weight:600;font-size:11px}
.reception-company-name{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reception-user{display:flex;align-items:center;gap:7px;padding-left:16px;border-left:1px solid #e0e7f0;min-width:0}
.reception-user svg{width:18px;height:18px;fill:none;stroke:#6b829e;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.reception-user .staff-account{font-size:13px;color:#334d6c;font-weight:600;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.reception-session .staff-logout{flex-shrink:0}
.reception-session .reception-session-button{font-size:12px;font-weight:500;min-height:36px;padding:7px 10px;background:transparent;color:#6a7e96;border:1px solid #dfe7f0;border-radius:7px;white-space:nowrap}
.reception-session-button:hover{background:#f4f7fb;color:#1e62ac}
.reception-nav{display:flex;align-items:center;gap:10px;padding-top:12px;padding-bottom:14px;position:relative}
.reception-nav::before{content:'';position:absolute;top:0;left:24px;right:24px;height:1px;background:#edf1f6}
.reception-nav .reception-nav-item{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;font-size:13px;font-weight:600;line-height:1.5;border:1px solid #dfe7f1;border-radius:9px;background:#fff;color:#3f5775;white-space:nowrap;transition:background .15s,border-color .15s}
.reception-nav-item svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.reception-nav .reception-nav-item:hover{background:#f3f7fc;border-color:#b8cde5;color:#1e62ac}
.reception-nav .reception-nav-call{background:#1e62ac;border-color:#1e62ac;color:#fff;box-shadow:0 3px 8px #1e62ac18}
.reception-nav .reception-nav-call:hover{background:#184e8b;color:#fff;border-color:#184e8b}
.reception-nav .reception-nav-accounts{margin-left:auto;border-color:transparent;color:#526982;background:transparent}
.reception-nav .reception-nav-accounts:hover{border-color:#dfe7f1}
.reception-header a:focus-visible,.reception-header button:focus-visible{outline:3px solid #9cc7f1;outline-offset:3px}
.reception-page>main{margin-top:24px}.reception-page .intro{margin-top:24px;margin-bottom:22px}
@media(max-width:1000px){.reception-masthead{flex-wrap:wrap;gap:14px}.reception-session{flex-wrap:wrap;gap:12px}.reception-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.reception-nav .reception-nav-accounts{margin-left:0;border-color:#dfe7f1;background:#fff}}
@media(max-width:600px){.reception-masthead,.reception-nav{padding-left:16px;padding-right:16px}.reception-masthead{gap:16px;padding-top:14px;padding-bottom:14px}.reception-brand img{width:42px;height:42px}.reception-brand strong{font-size:17px}.reception-brand small{font-size:8px}.reception-session{width:100%;justify-content:flex-start;gap:10px}.reception-company{width:100%}.reception-company-name{max-width:none;white-space:normal;overflow-wrap:anywhere}.reception-user{border:0;padding:0}.reception-session .staff-logout{margin-left:auto}.reception-nav::before{left:16px;right:16px}.reception-nav{gap:8px}.reception-nav .reception-nav-item{padding:10px 9px;font-size:12px;gap:6px;white-space:normal;text-align:left;justify-content:flex-start}.reception-nav-item svg{width:17px;height:17px}.reception-page>main{margin-top:20px}}
@media print{.reception-header{display:none}}

.reception-page .call-reception-summary .call-output-settings{margin-bottom:18px}
@media(max-width:600px){
 .reception-page .card{padding:18px;border-radius:13px;margin-bottom:18px}
 .reception-page .intro p{font-size:13px;line-height:1.8}
 .reception-page .call-startup-bar{align-items:stretch;gap:8px}
 .reception-page .call-startup-bar button{min-height:44px}
 .reception-page .call-reception-summary .section-title{gap:12px}
 .reception-page .call-reception-summary .section-title h2{margin:0}
 .reception-page #reception-ticket-list>.section-title{align-items:center;margin-bottom:16px}
 .reception-page #reception-ticket-list>.section-title h2{font-size:18px;margin:0}
 .reception-page #reception-ticket-list>.section-title .button{min-height:44px;padding:11px 16px}
 .reception-page #reception-ticket-list .table-wrap{overflow:visible}
 .reception-page #reception-ticket-list table{display:block;width:100%;border:0}
 .reception-page #reception-ticket-list thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .reception-page #reception-ticket-list tbody{display:grid;gap:14px}
 .reception-page #reception-ticket-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;padding:16px;border:1px solid #dce5ef;border-radius:12px;background:#fff}
 .reception-page #reception-ticket-list td{display:block;min-width:0;padding:0;border:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
 .reception-page #reception-ticket-list td[data-label]::before{content:attr(data-label);display:block;color:#64748b;font-size:11px;font-weight:500;margin-bottom:3px}
 .reception-page #reception-ticket-list td:first-child{grid-column:1/-1;display:flex;align-items:center;gap:9px;color:#74859b;font-size:11px;padding-bottom:10px;border-bottom:1px solid #edf1f6}
 .reception-page #reception-ticket-list td:first-child::before{display:none}
 .reception-page #reception-ticket-list td:first-child small{margin:0;font-size:10px}
 .reception-page #reception-ticket-list td:nth-child(2){grid-column:1/-1;color:#496682;font-size:12px}
 .reception-page #reception-ticket-list td:nth-child(2)::before{display:none}
 .reception-page #reception-ticket-list td:nth-child(2) small{font-size:16px;color:#20334c;font-weight:700;line-height:1.6;margin-top:2px}
 .reception-page #reception-ticket-list td.excerpt{grid-column:1/-1;max-width:none;white-space:normal;overflow:visible;background:#f5f8fc;padding:11px 12px;border-radius:9px}
 .reception-message-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap}
 .reception-page #reception-ticket-list td:nth-child(6){align-self:center}
 .reception-page #reception-ticket-list td:last-child:not([colspan]){align-self:center;justify-self:stretch}
 .reception-page #reception-ticket-list td:last-child .button{display:block;text-align:center;min-height:44px;padding:11px 10px;font-size:13px}
 .reception-page #reception-ticket-list td[colspan]{grid-column:1/-1;display:block;color:#74859b;font-size:13px;padding:8px 0;border:0}
 .reception-page #reception-ticket-list>.note{line-height:1.8;margin-top:16px;font-size:12px}
}

@media(max-width:600px){.reception-page input,.reception-page select{font-size:16px}.reception-page .callback-dialog button{min-height:44px}.reception-page .call-output-settings summary{min-height:44px;padding-top:10px;padding-bottom:10px}}

.reception-page .call-reception-summary:has(.call-startup-bar[hidden]) .call-output-settings{margin-top:0;padding-top:0;border-top:0}
@media(max-width:600px){
 .reception-page .emergency-call-alert{padding:18px;gap:10px;align-items:flex-start}
 .reception-page .emergency-call-alert .emergency-call-icon{font-size:28px;margin-top:3px}
 .reception-page .emergency-call-alert h2{font-size:18px;line-height:1.5;text-wrap:balance;margin-bottom:8px}
 .reception-page .emergency-call-alert strong{font-size:14px;line-height:1.7}
 .reception-page .emergency-call-alert p{font-size:12px;line-height:1.7}
 .reception-page .emergency-call-alert .button{min-height:48px;font-size:14px}
}

.chat-photo-viewer{width:min(920px,calc(100vw - 24px));max-height:90dvh;margin:auto;border:0;border-radius:14px;padding:16px;box-shadow:0 20px 60px #0006}.chat-photo-viewer::backdrop{background:#142638b0}.chat-photo-viewer[open]{display:flex;flex-direction:column;gap:12px}.chat-photo-viewer button{align-self:flex-end;min-height:44px}.chat-photo-viewer img{display:block;max-width:100%;max-height:calc(90dvh - 100px);object-fit:contain}

.chat-call-reception{padding:16px 20px;margin:14px 0}.chat-call-reception .section-title h2{font-size:18px;margin:0}.chat-call-reception .call-output-settings{margin-top:10px}.chat-page #emergency-call-alert{position:sticky;top:8px;z-index:10}.chat-page #emergency-call-alert h2{font-size:22px}.chat-page #emergency-call-alert .emergency-call-icon{font-size:38px}.chat-page .call-reception-summary:has(.call-startup-bar[hidden]) .call-output-settings{padding-top:0;border-top:0}
@media(max-width:600px){.chat-call-reception{padding:14px}.chat-call-reception .section-title{gap:10px;flex-wrap:wrap}.chat-call-reception .section-title .button{min-height:44px}.chat-page #emergency-call-alert{padding:16px;gap:10px}.chat-page #emergency-call-alert h2{font-size:18px}.chat-page #emergency-call-alert strong{font-size:14px}.chat-page .call-output-settings select{font-size:16px}}

.chat-link-disabled{color:#65758b;background:#edf1f6;text-decoration:none;cursor:default;opacity:.8;pointer-events:none}

.call-caption{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;background:#fff;color:#000;padding:8px 12px;border-radius:7px;box-shadow:0 2px 10px #0003;font-size:18px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.call-caption[hidden]{display:none}.call-visual.has-caption .call-building{top:0;bottom:auto;padding-right:12px}.call-visual.has-caption .call-pip{bottom:85px}.call-caption-editor{display:block;margin:18px 0;font-size:14px;font-weight:600}.call-caption-editor textarea{display:block;width:100%;margin-top:8px;font-size:16px;line-height:1.5;resize:none}.call-caption-editor textarea:disabled{background:#f3f6fa}

.customer-header>div{flex:1;min-width:0}.customer-close{flex:0 0 auto;min-height:44px;margin-left:4px;white-space:nowrap}.customer-close-help{width:min(440px,calc(100vw - 24px));border:1px solid #dce4ef;border-radius:14px;padding:24px;margin:auto;box-shadow:0 20px 60px #0005}.customer-close-help::backdrop{background:#14263890}.customer-close-help p{overflow-wrap:anywhere}.customer-close-help button{min-height:44px}
@media(max-width:600px){header.customer-header{padding:8px 12px;gap:10px}header.customer-header>img{width:44px;height:44px;flex:0 0 auto}header.customer-header>.badge{display:none}header.customer-header strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}header.customer-header small{font-size:9px;letter-spacing:1px}.customer-close{padding:10px 12px;margin-left:0;font-size:14px}}



/* Keep the operator's media and essential controls together in the call window. */
.call-operator{--call-video-space:460px}
.call-operator main{margin:12px auto;padding:0 16px}
.call-operator .call-shell{padding:16px;position:relative}
.call-operator .call-title h1{font-size:21px;margin:4px 0 8px}
.call-operator .call-status{margin:0 0 8px;padding:8px 12px;line-height:1.4;font-size:14px}
.call-operator .call-list{margin:6px 0}
.call-operator .call-incoming{padding:8px 10px;margin-bottom:6px;gap:8px}
.call-operator .call-incoming button{padding:8px 12px;min-height:36px;font-size:13px}
.call-operator .call-visual{aspect-ratio:auto;height:clamp(90px,calc(100dvh - var(--call-video-space)),360px);max-height:none;margin:8px 0}
.call-operator .call-caption-editor{margin:8px 0;font-size:13px}
.call-operator .call-caption-editor label{margin:0 0 6px;font-size:13px}
.call-caption-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px;align-items:stretch}
.call-operator .call-caption-editor textarea{margin:0;padding:8px 10px;height:80px;min-height:80px;font-size:16px;line-height:1.5}
.call-caption-actions{display:flex;flex-direction:column;gap:6px}
.call-caption-actions button{flex:1;min-height:36px;padding:7px 8px;font-size:14px}
#call-caption-status{display:block;margin:3px 0 0;font-size:12px;font-weight:400;line-height:1.4}
#call-caption-status:empty{display:none}
.call-operator .call-controls{margin-top:8px;gap:8px}
.call-operator #call-hint{margin:6px 0;line-height:1.4;font-size:12px}
.call-operator #call-primary:has(#call-start[hidden]):has(#call-end[hidden]){display:none}
.call-operator.call-live .call-ring-activation,.call-operator.call-live #call-ring-resume-note{display:none}
.call-operator.call-embedded{--call-video-space:415px}
.call-operator.call-embedded main{margin:8px auto}
.call-operator.call-embedded .call-shell{border:0;padding:12px}
.call-operator.call-embedded .call-title>div{display:none}
.call-operator.call-embedded .call-title{position:absolute;right:24px;top:17px;margin:0}
.call-operator.call-embedded .call-status{padding-right:85px}
@media(max-width:600px){.call-operator main{padding:0 8px}.call-operator .call-shell{padding:12px}.call-caption-row{grid-template-columns:minmax(0,1fr) 74px}.call-caption-actions button{min-height:44px}.call-operator .call-caption-editor textarea{height:94px;min-height:94px}.call-operator .call-incoming button{min-height:40px}.call-operator.call-embedded{--call-video-space:490px}}

/* Message receipt and sender details are separate from the chat workspace. */
.message-wait{text-align:center;margin:24px auto}.message-sent-icon{margin:18px auto;width:60px;height:60px;border-radius:50%;background:#e7f4ef;color:#16705a;font-size:36px;line-height:60px}.message-wait h1{font-size:clamp(23px,5.7vw,32px)}.message-invitation{padding:18px;border:1px solid #8bb9ac;border-radius:12px;background:#edf7f3;margin:18px 0}.message-invitation h2{font-size:20px}.message-replies{text-align:left;margin-top:24px}.message-replies article,.detail-reply article{padding:12px 0;border-bottom:1px solid #dce5e7}.message-replies p,.submitted-message,.detail-reply article p{white-space:pre-wrap;overflow-wrap:anywhere}.message-replies img{max-width:100%;max-height:240px}.reception-detail{max-width:1040px;margin:18px auto}.reception-detail h1{font-size:clamp(22px,4vw,30px)}.sender-info{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.sender-info>div{padding:16px;background:#f3f7f8;border:1px solid #dce5e7;border-radius:10px;min-width:0}.sender-info dt{font-size:13px;color:#536775;margin-bottom:6px}.sender-info dd{margin:0;font-size:20px;font-weight:600;overflow-wrap:anywhere}.sender-info small{display:block;font-size:12px;font-weight:400;margin-top:6px}.submitted-message{padding:18px;background:#f3f7f8;border-radius:10px;font-size:18px;line-height:1.8}.submitted-photo{display:block;max-width:100%;max-height:300px;margin:16px 0}.detail-callback,.detail-reply{border-top:1px solid #dce5e7;margin-top:24px;padding-top:18px}.detail-complete{margin-top:24px}.reception-detail h2{font-size:20px}.message-wait [hidden]{display:none}
@media(max-width:600px){.sender-info{grid-template-columns:1fr;gap:8px}.sender-info>div{padding:12px}.sender-info dd{font-size:18px}.message-wait{margin:12px auto}}
 .reception-actions .detail-callback{border-top:0;margin-top:0;padding-top:0}

.sender-card-open{margin:12px 0;flex-shrink:0}.chat-page .sender-card-open{align-self:flex-start;margin:0 0 10px}
.reception-detail.reception-sender-card{color:inherit;position:fixed;inset:12px auto auto 50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:900px;max-height:calc(100dvh - 24px);margin:0;padding:18px;overflow:hidden;box-shadow:0 16px 60px #18334c40}
.reception-sender-card[open]{display:flex;flex-direction:column}.reception-sender-card::backdrop{background:#18334c50}.sender-card-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:4px;flex-shrink:0}.sender-card-controls button{padding:7px 14px}.reception-sender-card h1{font-size:22px;margin:4px 0 6px;flex-shrink:0}.reception-sender-card>.note{margin:0 0 10px;font-size:12px;flex-shrink:0}.reception-sender-card .sender-info{grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px;flex-shrink:0}.reception-sender-card .sender-info>div{padding:8px 12px}.reception-sender-card .sender-info dt{font-size:11px;margin-bottom:3px}.reception-sender-card .sender-info dd{font-size:17px;line-height:1.4;max-height:48px;overflow:auto}.reception-sender-card .sender-info small{font-size:10px;margin-top:2px}.reception-sender-card h2{font-size:16px;margin:0 0 6px;flex-shrink:0}.reception-sender-card .submitted-message{padding:10px 12px;font-size:15px;line-height:1.6;min-height:42px;max-height:20dvh;overflow:auto;flex:1 1 auto}.reception-sender-card .submitted-photo{max-height:64px;margin:6px 0}.sender-card-actions{border-top:1px solid #dce5e7;padding-top:8px;margin-top:10px;flex-shrink:0}.sender-card-actions .note{font-size:12px;margin:0 0 6px}.sender-card-actions form{display:flex;gap:10px;flex-wrap:wrap}.sender-card-actions button{padding:10px 14px;min-height:42px}.sender-card-actions #sender-card-result:empty{display:none}
@media(max-width:600px){.reception-detail.reception-sender-card{inset:8px auto auto 50%;width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:12px}.reception-sender-card h1{font-size:19px}.reception-sender-card .sender-info>div{padding:8px}.reception-sender-card .sender-info dd{font-size:15px}.sender-card-actions form{display:grid;grid-template-columns:1fr auto;gap:8px}.sender-card-actions button{font-size:13px;padding:9px 10px}.chat-page .sender-card-open{margin:0 12px 10px}}

.reception-building-dialog{width:calc(100% - 24px);max-width:1180px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:0;margin:0;position:fixed;inset:12px auto auto 50%;transform:translateX(-50%);border:1px solid #cbd8e4;border-radius:14px;color:inherit;background:#f1f5fa;overflow:hidden;box-shadow:0 16px 60px #18334c40}.reception-building-dialog[open]{display:flex;flex-direction:column}.reception-building-dialog::backdrop{background:#18334c50}.building-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#fff;border-bottom:1px solid #dce4ef;flex-shrink:0}.building-dialog-toolbar strong{font-size:18px}.building-dialog-toolbar button{min-height:42px;white-space:nowrap}.reception-building-dialog iframe{border:0;width:100%;flex:1;min-height:0;background:#f1f5fa}.reception-building-frame>header,.reception-building-frame>footer{display:none}.reception-building-frame>main{max-width:none;margin:12px 0;padding:0 16px}.reception-building-frame .card{padding:18px}
@media(max-width:600px){.reception-building-dialog{width:calc(100% - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);inset:6px auto auto 50%}.building-dialog-toolbar{padding:8px 12px}.building-dialog-toolbar strong{font-size:15px}.reception-building-frame>main{padding:0 8px}.reception-building-frame .card{padding:12px}.reception-building-frame h1{font-size:21px}}

.sender-card-actions #sender-card-sms{width:100%;min-height:36px;padding:6px 10px;margin:0 0 4px}.sender-card-actions #sender-card-sms-state{font-size:11px;margin-bottom:4px}.sender-card-actions #sender-card-sms-state:empty{display:none}
.sms-confirm-dialog .sms-confirm-number{padding:12px;background:#f2f6f8;border-radius:8px}.sms-confirm-number span{display:block;font-size:13px}.sms-confirm-number strong{display:block;font-size:24px;color:#155db0}.sms-confirm-dialog .call-disconnect-actions{justify-content:flex-end}
.security-banner {background:#b91c1c;color:#fff;padding:14px 18px;margin-bottom:16px;border-radius:8px;font-weight:700;}
.security-banner[hidden] {display:none;}
.security-banner a {color:#fff;text-decoration:underline;margin-left:14px;}
.security-popup {width:min(760px,90vw);max-height:85vh;border:2px solid #b91c1c;border-top:12px solid #b91c1c;border-radius:12px;padding:24px;}
.security-popup::backdrop {background:rgba(0,0,0,.4);}
.security-popup h2 {color:#b91c1c;}
.security-popup li {margin-bottom:12px;overflow-wrap:anywhere;}
.security-popup-actions {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.security-table-wrap {overflow:auto;}
.security-table {width:100%;border-collapse:collapse;font-size:14px;}
.security-table td,.security-table th {padding:12px;text-align:left;vertical-align:top;white-space:pre-line;min-width:110px;}
.security-event-row {background:#fff1f1;border-left:8px solid #b91c1c;border-bottom:2px solid white;}
.security-table td:nth-child(3) {min-width:260px;overflow-wrap:anywhere;}
