
#assistant-disc-choice{display:grid;grid-template-columns:1fr;gap:12px;margin:20px auto}
#assistant-disc-choice button{min-height:60px;text-align:left;padding:16px;font-size:16px}
#assistant-disc-status{color:var(--muted)}
.assistant-disc-frame{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:70%;height:auto;aspect-ratio:1;border-radius:50%;border-color:#f16b73;box-shadow:0 0 0 999px #001b2340}
.assistant-disc-camera.is-ready .assistant-disc-frame{border-color:#37e9a3}
#assistant-disc-camera-hint{position:absolute;bottom:8px;left:8px;right:8px;text-align:center;padding:8px;border-radius:8px;background:#051d29e8;color:#ffd1d4;font-size:12px;line-height:1.35}
.assistant-disc-camera.is-ready #assistant-disc-camera-hint{color:#7fffc4}
#assistant-disc-scanner textarea{box-sizing:border-box;width:100%;min-height:88px;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:var(--text);font:inherit;resize:vertical}
#assistant-disc-fields label:has(textarea){grid-column:1/-1}
.bizscan-camera-hint{position:absolute;bottom:8px;left:8px;right:8px;text-align:center;padding:8px;background:#051d29e8;border-radius:8px;color:#ffd1d4;font-size:12px;line-height:1.35;pointer-events:none}
.bizscan-camera:has(.is-ready) .bizscan-camera-hint{color:#7fffc4}
.bizscan-guidance.is-ready{color:var(--tenant-text,#173e53);border-left:4px solid #16b875}

/* Camera mode takes priority over the decorative chat heading. */
#assistant-dialog[open].is-disc-scanning{grid-template-rows:auto minmax(0,1fr)!important;height:min(850px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important}
#assistant-dialog[open].is-disc-scanning .assistant-heading{min-height:0!important;padding:12px 62px 12px 18px!important;grid-template-columns:36px 1fr;gap:12px}
#assistant-dialog[open].is-disc-scanning .assistant-heading h2{font-size:20px!important;line-height:1.15!important}
#assistant-dialog[open].is-disc-scanning .assistant-heading .eyebrow{margin:0 0 3px;font-size:9px}
#assistant-dialog[open].is-disc-scanning .assistant-avatar{width:36px!important;height:36px!important;box-shadow:none!important}
#assistant-dialog[open].is-disc-scanning .assistant-avatar:before,#assistant-dialog[open].is-disc-scanning .assistant-avatar:after{display:none}
#assistant-disc-scanner{padding:12px 16px 20px!important}
#assistant-disc-scanner header{margin-bottom:8px}#assistant-disc-scanner h3{font-size:20px}
#assistant-disc-scanner #assistant-disc-instructions{margin:8px auto 12px;font-size:12px;line-height:1.45}
.assistant-disc-camera{aspect-ratio:auto;height:clamp(300px,56dvh,560px);max-height:none;width:min(640px,100%);border-radius:18px}
.assistant-disc-camera video{object-fit:cover}
.assistant-disc-frame,.bizscan-frame{border-width:4px;border-color:#ff707d}
.assistant-disc-camera.is-ready .assistant-disc-frame,.bizscan-frame.is-ready{border:6px solid #39ff9b;box-shadow:0 0 0 100vmax #001b2333,0 0 24px #39ff9b99}
#assistant-disc-camera-hint,.bizscan-camera-hint{bottom:12px;padding:12px 10px;border:1px solid #ff8996;background:#081e2ff2;color:#ffe4e8;font-size:14px;font-weight:600;line-height:1.35;z-index:2}
.assistant-disc-camera.is-ready #assistant-disc-camera-hint,.bizscan-camera:has(.is-ready) .bizscan-camera-hint{background:#39ff9b;color:#002918;border:2px solid #b8ffd6;box-shadow:0 4px 20px #0004}
.assistant-disc-camera.has-photo .assistant-disc-frame,.assistant-disc-camera.has-photo #assistant-disc-camera-hint{display:none}
.assistant-disc-camera.has-photo img{object-fit:contain}
.assistant-disc-camera.has-photo{height:clamp(260px,48dvh,460px)}
#assistant-disc-auto[aria-pressed="true"],.mymex-bizscan [data-auto][aria-pressed="true"]{border-color:#078963;background:#087b5d;color:#fff!important}
.bizscan-dialog .bizscan-camera{height:clamp(320px,56dvh,560px)}
.bizscan-dialog .bizscan-frame:before{display:none}
.bizscan-guidance.is-ready{color:var(--tenant-ink,#173e53);border-left:5px solid #39ff9b}
@media(max-width:600px){
 #assistant-dialog[open].is-disc-scanning{height:100dvh!important;max-height:100dvh!important}
 #assistant-dialog[open].is-disc-scanning .assistant-heading{padding-top:calc(10px + env(safe-area-inset-top))!important}
 #assistant-disc-scanner{padding:10px 12px calc(16px + env(safe-area-inset-bottom))!important}
 .assistant-disc-camera{height:clamp(320px,58dvh,580px)}
 .assistant-disc-camera.has-photo{height:clamp(280px,50dvh,500px)}
 .bizscan-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:12px}
 .bizscan-dialog .bizscan-camera{height:clamp(300px,58dvh,580px)}
 .bizscan-dialog header{top:-12px}.bizscan-dialog .bizscan-destination{font-size:11px;margin:4px 0 8px}
 .assistant-disc-actions{gap:8px;margin:10px auto}.assistant-disc-actions button{flex:1 1 40%}
}
@media(max-height:550px) and (orientation:landscape){.assistant-disc-camera,.bizscan-dialog .bizscan-camera{height:65dvh;min-height:220px}}

/* Compact destination and phone handoff inside the existing tool. */
.bizscan-select-title,.bizscan-select-copy{display:none}
.bizscan-embedded .mymex-bizscan{padding:0!important;max-width:none!important;margin:0!important}
.bizscan-embedded .bizscan-intro{margin:0;padding:24px;border:0;border-radius:0;box-shadow:none}
.bizscan-embedded .bizscan-intro>.bizscan-eyebrow,.bizscan-embedded .bizscan-intro>h1,.bizscan-embedded .bizscan-intro>.bizscan-steps,.bizscan-embedded .bizscan-intro>p:not(.bizscan-select-copy):not([role=alert]){display:none}
.bizscan-embedded .bizscan-select-title{display:block;font-size:22px;margin:0 0 8px}
.bizscan-embedded .bizscan-select-copy{display:block;margin:0 0 20px;font-size:14px}
.bizscan-embedded .bizscan-intro form{display:grid;gap:14px}
.bizscan-embedded .bizscan-intro form label{display:grid;gap:8px}
.bizscan-embedded .bizscan-intro form select{width:100%;min-height:46px}
.bizscan-embedded .bizscan-intro form button{justify-self:start}
.bizscan-embedded .bizscan-dialog>header{position:static;margin:0;padding:0 52px 8px 0;background:transparent}
.bizscan-embedded .bizscan-dialog>header h2{font-size:20px}
.bizscan-embedded .bizscan-dialog>header [data-close]{display:none}
.bizscan-embedded .bizscan-dialog{padding:20px!important;width:100%!important;margin:0!important;border-radius:0!important;max-height:none!important;height:auto!important;border:0!important}
.bizscan-embedded[data-admin-embed] .bizscan-dialog>header{display:none}
.bizscan-phone{display:grid;grid-template-columns:minmax(0,1fr) 256px;gap:24px;align-items:center;margin:12px 0 20px}
.bizscan-phone[hidden]{display:none!important}
.bizscan-phone h3{font-size:25px;line-height:1.15;margin:8px 0 12px}
.bizscan-phone p{font-size:14px;line-height:1.55;margin:8px 0}
.bizscan-phone .bizscan-phone-help{margin:16px 0;color:var(--tenant-muted)}
.bizscan-qr-wrap{background:#fff;border:1px solid #d8e7ed;border-radius:18px;padding:12px;color:#12314b}
.bizscan-qr-wrap img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.bizscan-qr-wrap [role=status]{font-size:13px;text-align:center}
.bizscan-dialog [data-choice]>.bizscan-entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bizscan-dialog [data-choice] .bizscan-choice{min-width:0;padding:14px;gap:8px;align-items:start;flex-direction:column;border-radius:14px}
.bizscan-dialog [data-choice] .bizscan-choice strong,.bizscan-dialog [data-choice] .card-scan-title{font-size:14px}
.bizscan-dialog [data-choice] .bizscan-choice small,.bizscan-dialog [data-choice] .card-scan-description{font-size:12px;line-height:1.4}
.bizscan-dialog [data-choice] .bizscan-choice svg{width:26px;height:26px}
.mymex-bizscan .bizscan-dialog [data-choice] .card-scan-button>svg.card-scan-icon{width:32px!important;height:36px!important}
.mymex-bizscan .bizscan-dialog [data-choice] .card-scan-icon .scan-beam{animation:none}
.bizscan-dialog [data-choice] .bizscan-choice-icon{width:26px;height:26px}
.mymex-bizscan.is-choice .bizscan-dialog [data-cancel]{display:none}
.mymex-bizscan .bizscan-guidance{display:none} /* One visible instruction at the camera. */
#tenantLeadToolDialog.is-business-scan:not(.is-expanded){width:min(780px,calc(100vw - 24px));height:min(870px,calc(100dvh - 24px))}
#tenantLeadToolDialog.is-business-scan.is-scan-choice:not(.is-expanded){height:min(700px,calc(100dvh - 24px))}
#tenantLeadToolDialog.is-business-scan.is-scan-destination:not(.is-expanded){width:min(580px,calc(100vw - 24px));height:min(430px,calc(100dvh - 24px))}
#tenantLeadToolDialog.is-business-scan .tenant-lead-tool-shell{height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) auto}
#tenantLeadToolDialog.is-business-scan .tenant-lead-tool-shell>header{padding:16px 20px}
#tenantLeadToolDialog.is-business-scan [data-tenant-lead-tool-kicker]{display:none}
#tenantLeadToolDialog.is-business-scan [data-tenant-lead-tool-title]{font-size:23px}
#tenantLeadToolDialog.is-business-scan [data-tenant-lead-tool-frame-panel]{min-height:0;height:100%;padding:0;overflow:hidden}
#tenantLeadToolDialog.is-business-scan [data-tenant-lead-tool-frame]{height:100%;min-height:0}
@media(max-width:600px){
 .bizscan-phone{grid-template-columns:1fr}.bizscan-qr-wrap{width:250px;margin:auto}
 .bizscan-dialog [data-choice]>.bizscan-entry{grid-template-columns:1fr}
 .bizscan-dialog [data-choice] .bizscan-choice{flex-direction:row;align-items:center}
 .mymex-bizscan.is-choice .bizscan-dialog{height:auto;max-height:none}
 .bizscan-embedded .bizscan-dialog{padding:16px!important}
 #tenantLeadToolDialog.is-business-scan:not(.is-expanded){width:calc(100vw - 16px);height:calc(100dvh - 16px)}
}
