/* Scope sizing to this dialog; generic wide modals remain untouched. */
#modalHost.customer-screen-host .modal-backdrop{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;overflow:hidden!important;background:rgba(0,0,0,.35)!important;box-sizing:border-box!important}
#modalHost .modal.customer-screen-modal{width:min(680px,calc(100vw - 48px))!important;max-width:680px!important;min-width:0!important;height:auto!important;max-height:calc(100vh - 48px)!important;max-height:calc(100dvh - 48px)!important;padding:0!important;margin:0!important;overflow:hidden!important;border:1px solid #e8e8e8!important;border-radius:18px!important;background:#fff!important;box-sizing:border-box!important;box-shadow:0 24px 80px #00000018!important;display:flex!important;flex-direction:column!important}
.customer-screen-dialog{width:100%;min-width:0;min-height:0;max-height:inherit;display:flex;flex-direction:column;color:#111;box-sizing:border-box}
.customer-screen-dialog *{box-sizing:border-box}.customer-screen-dialog .cs-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex:none;padding:24px 28px 20px;border-bottom:1px solid #eee}
.customer-screen-dialog .cs-dialog-head h3{font-size:21px;font-weight:650;line-height:1.4;margin:0!important}.customer-screen-dialog .cs-dialog-head p{font-size:13px;line-height:1.7;margin:7px 0 0;color:#888}
.customer-screen-dialog .cs-dialog-close{flex:none;min-height:40px;height:40px;min-width:58px;padding:0 14px;border-radius:9px;border:1px solid #e8e8e8;color:#555;background:#fff;font-size:13px}
.customer-screen-dialog .cs-dialog-body{padding:24px 28px 28px;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;-webkit-overflow-scrolling:touch}
.customer-screen-dialog .cs-connect-state{display:flex;align-items:center;gap:8px;color:#777;font-size:12px;margin-bottom:22px}.customer-screen-dialog .cs-connect-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#bbb;flex:none}.customer-screen-dialog .cs-connect-state.is-paired{color:#111}.customer-screen-dialog .cs-connect-state.is-paired:before{background:#111}
.customer-screen-dialog label{display:flex!important;flex-direction:column;gap:8px!important;margin:0!important;font-size:13px;line-height:1.7;color:#333}.customer-screen-dialog .cs-step-label{font-size:14px;font-weight:550;color:#222}.customer-screen-dialog .cs-step-label span{font-size:11px;color:#999;letter-spacing:.06em;margin-right:9px}
.customer-screen-dialog input,.customer-screen-dialog textarea{width:100%!important;min-width:0;min-height:46px;box-sizing:border-box!important;border:1px solid #e4e4e4!important;background:#fafafa!important;border-radius:10px!important;padding:12px 14px!important;font:inherit!important;margin:0!important;outline:none;color:#111!important;box-shadow:none!important}
.customer-screen-dialog input:focus,.customer-screen-dialog textarea:focus{border-color:#111!important;background:#fff!important}.customer-screen-dialog input::placeholder{color:#aaa!important}.customer-screen-dialog input[readonly]{font-size:12px!important;color:#777!important;background:#f7f7f7!important}
.customer-screen-dialog .cs-address-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:10px;align-items:stretch;margin-top:11px}.customer-screen-dialog .cs-address-row .btn{margin:0;min-height:46px;border-radius:10px;font-size:13px;border:1px solid #e4e4e4;background:#fff;color:#333;padding:0 14px;white-space:nowrap}
.customer-screen-dialog .cs-address-note{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 28px;color:#999;font-size:12px;line-height:1.7}.customer-screen-dialog .cs-address-note a{color:#555;font-size:12px;text-decoration:none;white-space:nowrap}
.customer-screen-dialog #customerScreenCode{height:58px!important;padding:10px 16px!important;font-size:25px!important;font-weight:550!important;letter-spacing:.2em;text-align:center;font-variant-numeric:tabular-nums}.customer-screen-dialog #customerScreenCode::placeholder{font-size:20px!important;font-weight:400;letter-spacing:.2em;color:#bbb!important}
.customer-screen-dialog #customerScreenPairStatus{font-size:12px;color:#888;line-height:1.7;min-height:21px;margin:10px 0 18px}.customer-screen-dialog .customer-screen-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0}.customer-screen-dialog .customer-screen-actions .btn{min-height:46px;border-radius:10px;font-size:14px;font-weight:550;padding:11px 18px;margin:0;border:1px solid #e2e2e2;background:#fff;color:#333;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.customer-screen-dialog #pairCustomerScreen{flex:1;min-width:160px;background:#111!important;color:#fff!important;border-color:#111!important}.customer-screen-dialog #unpairCustomerScreen{min-width:110px}.customer-screen-dialog button:disabled,.customer-screen-dialog input:disabled{opacity:.45!important;cursor:default!important}.customer-screen-dialog button:focus-visible,.customer-screen-dialog a:focus-visible{outline:2px solid #111;outline-offset:3px}
.customer-screen-dialog .customer-screen-materials{margin-top:24px;padding-top:20px;border-top:1px solid #eee}.customer-screen-dialog .customer-screen-materials summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;font-size:14px;font-weight:550;min-height:30px;color:#333}.customer-screen-dialog .customer-screen-materials summary::-webkit-details-marker{display:none}.customer-screen-dialog .customer-screen-materials summary:after{content:'＋';font-size:20px;font-weight:300;color:#888}.customer-screen-dialog .customer-screen-materials[open] summary:after{content:'−'}
.customer-screen-dialog .cs-material-body{display:grid;gap:18px;padding-top:14px}.customer-screen-dialog .cs-material-body>p{font-size:12px;color:#999;line-height:1.8;margin:0}.customer-screen-dialog .cs-material-body .btn{min-height:42px;border-radius:9px;padding:10px 16px;background:#fff;border:1px solid #ddd;font-size:13px;color:#333}.customer-screen-dialog #saveCustomerScreenSettings{background:#111;color:#fff;border-color:#111;min-height:46px;font-size:14px}.customer-screen-dialog .cs-material-body input[type=file]{font-size:12px!important;padding:8px!important;min-height:46px!important;overflow:hidden}.customer-screen-dialog input[type=file]::file-selector-button{border:0;border-radius:6px;padding:8px 12px;margin-right:10px;background:#eee;color:#333;font:inherit}
.customer-screen-dialog [role=status]{font-size:12px;line-height:1.7;color:#888}.customer-screen-dialog .customer-screen-previews{display:flex;gap:12px;flex-wrap:wrap}.customer-screen-dialog .customer-screen-previews:empty{display:none}.customer-screen-dialog .customer-screen-previews img{width:84px;height:100px;object-fit:contain;background:#fafafa;border:1px solid #e8e8e8;border-radius:8px}
.customer-screen-dialog .cs-material-actions{display:flex;justify-content:flex-start}.customer-screen-dialog [hidden]{display:none!important}
@media(max-width:720px),(max-height:560px){#modalHost.customer-screen-host .modal-backdrop{padding:14px!important}#modalHost .modal.customer-screen-modal{width:min(640px,calc(100vw - 28px))!important;max-height:calc(100vh - 28px)!important;max-height:calc(100dvh - 28px)!important;border-radius:14px!important}.customer-screen-dialog .cs-dialog-head{padding:18px 22px 16px}.customer-screen-dialog .cs-dialog-head h3{font-size:19px}.customer-screen-dialog .cs-dialog-body{padding:18px 22px 22px}.customer-screen-dialog .cs-connect-state{margin-bottom:18px}.customer-screen-dialog .cs-address-note{margin-bottom:22px}}
@media(max-width:420px){.customer-screen-dialog .cs-dialog-head{padding:18px}.customer-screen-dialog .cs-dialog-body{padding:18px}.customer-screen-dialog .cs-address-row{grid-template-columns:minmax(0,1fr) 76px;gap:8px}.customer-screen-dialog .cs-address-row .btn{padding:0 10px}.customer-screen-dialog .cs-address-note{gap:10px;font-size:11px}.customer-screen-dialog .cs-address-note a{font-size:11px}.customer-screen-dialog #customerScreenCode{font-size:23px!important}.customer-screen-dialog .cs-dialog-head p{max-width:210px;font-size:12px}}

.customer-screen-dialog .cs-playback-options{display:grid;gap:16px;padding:16px;background:#fafafa;border:1px solid #eee;border-radius:10px}
.customer-screen-dialog .cs-playback-toggle{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important;cursor:pointer}
.customer-screen-dialog .cs-playback-toggle input[type=checkbox]{width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:2px 0 0!important;accent-color:#111;border-radius:4px!important;flex:none}
.customer-screen-dialog .cs-playback-toggle strong{display:block;font-size:13px;font-weight:550;line-height:1.7;color:#222}
.customer-screen-dialog .cs-playback-toggle small{display:block;font-size:11px;font-weight:400;color:#999;line-height:1.7;margin-top:3px}
.customer-screen-dialog .cs-duration-label{font-size:12px;color:#777;display:block;margin-bottom:9px}
.customer-screen-dialog .cs-duration-options{display:flex;gap:8px;flex-wrap:wrap}
.customer-screen-dialog .cs-duration-options button{border:1px solid #e2e2e2;background:#fff;color:#666;border-radius:7px;min-height:36px;min-width:54px;padding:7px 12px;font:inherit;font-size:12px}
.customer-screen-dialog .cs-duration-options button[aria-pressed=true]{background:#111;color:#fff;border-color:#111}

.customer-screen-dialog .cs-video-settings{display:grid;gap:12px;padding:18px;border:1px solid #e8e8e8;border-radius:10px}.customer-screen-dialog .cs-video-settings h4{font-size:14px;font-weight:550;margin:0}.customer-screen-dialog .cs-video-settings p{margin:0;color:#999;font-size:12px;line-height:1.8}.customer-screen-dialog #customerScreenVideoPreview{width:100%;max-height:240px;border-radius:8px;background:#f5f5f5;object-fit:contain}
