:root{--ink:#183347;--muted:#647584;--primary:#087e90;--bright:#0ca4b7;--wash:#eaf8fa;--line:#e2e9ed;--bg:#f5f8fa;--danger:#b7413b;--success:#257254;--radius:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 'Segoe UI','Microsoft YaHei',system-ui,sans-serif}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button,input,select{min-height:44px}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #5da9ce;outline-offset:3px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;padding:10px 16px;font-weight:600;transition:background .15s}button:hover:not(:disabled),.button:hover{filter:brightness(.97)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.4}h2{font-size:18px}h3{font-size:16px}small{font-size:12px}strong{font-weight:650}.muted,.subtitle,.field-hint{color:var(--muted)}.field-hint{font-size:12px;margin-top:10px}.skip{position:fixed;top:-80px;background:white;padding:12px;z-index:50}.skip:focus{top:5px;left:5px}.spacer{flex:1}.error{color:var(--danger)}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 16px 18px;z-index:10}.brand{display:flex;align-items:center;gap:11px;margin:0 10px 43px;font-size:18px;font-weight:750;letter-spacing:0}.brand small{display:block;font-size:10px;letter-spacing:0;color:var(--muted);font-weight:500}.brand-mark{display:grid;place-items:center;background:var(--bright);color:white;width:40px;height:42px;border-radius:11px;flex-shrink:0}.brand-mark svg{width:27px;height:27px}.nav-label{font-size:12px;color:var(--muted);margin:0 18px 12px}.nav-item{display:flex;align-items:center;gap:13px;min-height:49px;padding:12px 17px;margin-bottom:6px;border-radius:9px;color:#586d7d;font-weight:550}.nav-item.active{background:var(--wash);color:var(--primary)}.nav-item:hover{background:#f2f7f9}.sidebar-bottom{margin-top:auto}.tiny-tag{font:10px monospace;background:#eef2f5;padding:3px 5px;border-radius:4px;margin-left:auto}.workspace{border-top:1px solid var(--line);padding:20px 6px 0;margin-top:15px;display:grid;grid-template-columns:35px minmax(0,1fr);gap:8px 11px;align-items:center}.workspace-info{min-width:0}.workspace-info small{overflow-wrap:anywhere}#account-actions{grid-column:2}#account-actions button{padding:4px 0;min-height:32px;font-size:12px}.avatar{display:grid;place-items:center;border-radius:10px;background:#ebf1f5;width:35px;height:35px;font-weight:700}.workspace strong,.workspace small{display:block;font-size:12px}.workspace small{color:var(--muted)}.shell{margin-left:226px}.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px}.slash{margin:0 12px;color:#a0afb8}main{max-width:1560px;margin:auto;padding:32px 36px 0;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font:11px/1.5 ui-monospace,monospace;letter-spacing:2px;color:var(--primary);margin-bottom:8px}.subtitle{margin-top:7px}.primary{background:var(--primary);color:white}.secondary{background:white;border-color:var(--line)}.accent{color:var(--primary)}.danger{color:var(--danger)}.text-button{border:0;background:none;color:var(--primary);padding:8px}.text-button.danger{color:var(--danger)}.full{width:100%}.icon-button{background:none;border-color:var(--line);width:44px;padding:8px}.badge{display:inline-flex;align-items:center;border-radius:6px;padding:4px 9px;background:#edf1f4;color:#526b79;font-size:12px;white-space:nowrap}.badge.green{background:#e9f7ef;color:#226746}.badge.cyan{background:var(--wash);color:var(--primary)}.badge.red{background:#fff0ed;color:var(--danger)}.badge.amber{background:#fff5df;color:#885b08}
.panel,.stat,.room-card,.device-card{background:white;border:1px solid var(--line);border-radius:var(--radius)}.panel-heading{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-heading p{font-size:12px;margin-top:3px}.notice{display:flex;padding:14px 18px;gap:12px;border-radius:9px;background:var(--wash);color:var(--primary);border:1px solid #cfe8ec;margin-bottom:22px}.notice.error{color:var(--danger);background:#fff4f1;border-color:#efcbc4}.overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:30px}.stat{padding:22px;display:flex;gap:16px;align-items:center}.stat span,.stat small{color:var(--muted);font-size:12px}.stat strong{display:block;font-size:27px;line-height:1.5}.stat-icon{display:grid;place-items:center;background:var(--wash);border-radius:12px;width:48px;height:48px;color:var(--primary)!important;flex-shrink:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 16px}.section-heading .muted{font-size:12px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}.room-card,.device-card{padding:24px;min-width:0}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.room-card h3,.device-card h3{overflow-wrap:anywhere}.room-card dl,.device-card dl{margin:0 0 24px}.room-card dl>div,.device-card dl>div{display:flex;align-items:center;gap:12px;margin:9px 0;font-size:13px}.room-card dt,.device-card dt{color:var(--muted);min-width:65px}.room-card dd,.device-card dd{margin:0;overflow-wrap:anywhere}.card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px}.card-actions .primary{flex:1}.card-actions .text-button{font-size:12px;padding:8px}.empty-state{grid-column:1/-1;text-align:center;padding:70px 24px;border:1px dashed #cbdce2;border-radius:14px;color:var(--muted);background:white}.empty-state h3{color:var(--ink);font-size:20px;margin-bottom:8px}.empty-state .button{margin-top:22px}.icp-footer{text-align:center;margin-top:24px;padding:16px 0;font-size:12px;color:var(--muted)}.icp-footer a,.page-footer a{color:inherit;text-decoration:none}.icp-footer a:hover,.page-footer a:hover{text-decoration:underline}.page-footer{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;color:var(--muted);font-size:12px;padding:32px 0 22px;margin-top:24px;border-top:1px solid var(--line)}
.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.live-toolbar{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px;flex-wrap:wrap}.live-toolbar>div:first-child{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.live-toolbar .muted{font-size:12px}.switch{display:flex;align-items:center;gap:8px;cursor:pointer;margin:0 12px 0 0!important;min-height:44px}.switch input{width:20px!important;min-height:20px;accent-color:var(--primary)}.console-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.console-side{display:flex;flex-direction:column;gap:22px;min-width:0}.activity{height:440px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.activity-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:9px 12px;border-radius:7px;background:#f3f7f9;font-size:13px}.activity-line p{overflow-wrap:anywhere;min-width:0}.activity-line strong,.activity-line time{white-space:nowrap;font-size:12px;color:var(--muted)}.activity-line.error{background:#fff4f1;color:var(--danger)}.activity-line.director{background:#eaf7fb;border-left:3px solid var(--bright)}.activity-line.answer{background:#f0f8f3;border-left:3px solid #57aa87}.activity-line.chat,.activity-line.manual{background:#f5f2fb}.composer{border-top:1px solid var(--line);padding:20px 24px}.composer .label-row{margin-bottom:10px}.composer label{margin:0}.composer select{width:auto;font-size:12px}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.composer-footer span{font-size:12px}.queue{max-height:540px;overflow-y:auto;padding:0 20px 20px}.queue-item{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}.queue-item .badge{font-size:11px;margin-bottom:5px}.queue-hint{padding:14px 20px;font-size:12px}.tip{display:flex;gap:12px;color:var(--muted);font-size:12px;padding:4px}.tip svg{color:var(--primary)}
label{display:block;font-size:13px;font-weight:600;margin:18px 0 7px}input,textarea,select{width:100%;border:1px solid #ccd9e1;border-radius:7px;background:white;color:var(--ink);padding:10px 12px}textarea{resize:vertical;line-height:1.8}input::placeholder,textarea::placeholder{color:#8796a2}input:focus,textarea:focus,select:focus{border-color:var(--bright)}.config-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}.config-toolbar label{margin:0}.config-toolbar select{max-width:300px}.config-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.stack{display:flex;flex-direction:column;gap:22px;min-width:0}.sticky{position:sticky;top:24px}.form-panel{padding:26px}.form-panel>p.muted{margin-top:7px}.section-number{font:12px/1.6 ui-monospace,monospace;color:var(--primary);margin-bottom:12px}.section-title-row,.label-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.section-title-row .muted{font-size:12px;margin-top:5px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.voice-card{background:#f4f8fa;padding:16px;border-radius:9px;margin:24px 0}.voice-card label{margin-top:0}.voice-card button{margin-top:12px}.voice-card audio{width:100%;margin-top:12px}.save-success{align-items:center;justify-content:space-between;flex-wrap:wrap}.save-success p{font-size:13px;margin-top:3px}.save-success button{flex-shrink:0}#save-state{margin-bottom:12px}.fixed-row{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:16px}.fixed-top{display:flex;gap:10px;margin-bottom:10px}.add-button{width:100%;border:1px dashed #aac9cf;background:var(--wash);color:var(--primary);margin-top:16px}#add-product{min-height:88px}#enroll-state{margin:0 0 20px}.device-rename{display:flex;gap:8px;margin-bottom:18px}.dev-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.technical-details>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.technical-details dt{color:var(--muted);flex-shrink:0}.technical-details dd{margin:0;text-align:right;overflow-wrap:anywhere}pre{background:#f3f6f8;padding:18px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 ui-monospace,monospace;max-height:350px;overflow-y:auto}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(520px,calc(100vw - 32px));color:var(--ink);box-shadow:0 20px 70px #18334726}dialog::backdrop{background:#16334555}dialog .section-title-row{margin-bottom:10px}#room-form-error{margin:12px 0}
@media(min-width:1600px){main{padding-left:48px;padding-right:48px}.activity{height:500px}}
@media(max-width:1150px){.sidebar{width:200px}.shell{margin-left:200px}main{padding:28px 24px 0}.topbar{padding:0 24px}.console-grid,.config-grid{grid-template-columns:minmax(0,1fr) 260px}.stat{padding:18px;gap:12px}.stat-icon{width:38px;height:38px}.section-title-row{flex-wrap:wrap}.technical-details>div{flex-direction:column;gap:5px}.technical-details dd{text-align:left}}
@media(max-width:900px){.console-grid,.config-grid{grid-template-columns:1fr}.console-side{display:grid;grid-template-columns:1fr}.sticky{position:static}.card-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.overview{gap:10px}.stat{padding:16px}.stat-icon{display:none}.dev-grid{grid-template-columns:1fr}.live-toolbar .button-row{width:100%}}
@media(max-width:640px){body{font-size:14px}.sidebar{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 16px;font-size:23px}.brand small{font-size:10px}.nav-label,.sidebar-bottom .workspace{display:none}.sidebar nav{display:flex;gap:4px}.nav-item{padding:10px;justify-content:center;font-size:13px;gap:6px;margin:0}.sidebar nav .nav-item{flex:1}.sidebar-bottom{position:static;margin-top:12px}.sidebar-bottom .workspace{display:grid;margin-top:10px;padding-top:12px;grid-template-columns:35px minmax(0,1fr) auto}.sidebar-bottom #account-actions{grid-column:3;grid-row:1}.sidebar-bottom .nav-item{font-size:12px}.tiny-tag{display:none}.shell{margin-left:0}.topbar{height:54px;padding:0 16px;font-size:12px}main{padding:24px 16px 0}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:24px}.page-heading .primary{font-size:12px;padding:10px;white-space:nowrap}.subtitle{font-size:12px}.eyebrow{font-size:10px}.overview{gap:8px}.stat{padding:14px 10px}.stat strong{font-size:24px}.stat small{display:none}.stat span{font-size:11px}.card-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column;gap:4px}.room-card,.device-card{padding:20px}.panel-heading,.composer{padding:18px}.activity{height:390px;padding:16px}.composer-footer{align-items:flex-end}.composer-footer span{max-width:150px}.composer-footer button{font-size:12px;white-space:nowrap;padding:10px}.form-panel{padding:20px}.two-fields{grid-template-columns:1fr;gap:0}.config-toolbar select{flex:1;max-width:none;min-width:150px}.config-toolbar .spacer{display:none}.live-toolbar{padding:16px}.live-toolbar .button-row{gap:8px}.live-toolbar button{font-size:12px;padding:10px}.live-toolbar .switch{width:auto}input,textarea,select{font-size:16px}.page-footer{font-size:10px;gap:20px}.page-footer span:last-child{text-align:right}}
.card-actions button,.card-actions a{white-space:nowrap}.card-actions .primary{min-width:64px}

.stats-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.usage-panel .stats-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-overview strong{font-size:23px}.stats-live{margin-top:20px}.stats-records{margin-top:22px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th,td{padding:14px 18px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f4f8fa;color:var(--muted);white-space:nowrap}td small{display:block;color:var(--muted)}td pre{min-width:200px;max-width:320px}td{overflow-wrap:anywhere}.usage-panel{margin-bottom:24px}.usage-panel .config-toolbar{margin-top:18px}.usage-panel select{max-width:480px}.credit-notice{background:var(--wash);border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.credit-notice.error{background:#fff4f1}#credit-error{margin:14px 0}.mode-field{display:flex;align-items:center;gap:8px;margin:0;min-width:0;white-space:nowrap}.mode-field select{width:auto;min-width:230px;margin:0}.device-card [data-tone]{margin-top:10px}
@media(max-width:900px){.stats-overview,.usage-panel .stats-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.usage-panel .config-toolbar select{max-width:100%}}
@media(max-width:640px){.sidebar nav .nav-item{font-size:12px;padding:8px 5px;gap:4px}.sidebar nav svg{width:16px}.stats-overview strong{font-size:20px}.mode-field{width:100%}}

.sales-modes{border:0;padding:0;margin:22px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sales-modes legend{font-weight:600;margin-bottom:12px}.mode-card{position:relative;margin:0;padding:16px;border:1px solid var(--line,#dae6eb);border-radius:12px;cursor:pointer}.mode-card input{width:auto;margin:0 7px 10px 0}.mode-card strong{display:inline}.mode-card span{display:block;font-size:12px;line-height:1.6;color:#526b78}.mode-card:has(input:checked){border-color:#087e90;background:#eaf8fa}.mode-card:focus-within{outline:2px solid #087e90;outline-offset:3px}.mode-card:hover{border-color:#087e90}.product-row{border:1px solid #dce7ec;border-radius:12px;padding:16px;margin:12px 0;background:#fbfdfe}.product-heading{display:flex;align-items:center;justify-content:space-between}.product-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.product-fields label{margin-top:12px;font-size:13px}.product-fields input,.product-fields textarea{margin-top:7px}.inspiration-box{border:1px solid #75c5d0;border-left:4px solid #087e90;background:#f0fafb;border-radius:12px;padding:16px;margin-top:16px}.inspiration-box label{margin:0}.inspiration-box .badge{white-space:nowrap}@media(max-width:650px){.sales-modes,.product-fields{grid-template-columns:1fr}.mode-card{padding:12px}.mode-card input{margin-bottom:0}}

.overview:not(.stats-overview) .stat{padding:16px 20px;gap:14px}.overview:not(.stats-overview) .stat-icon{width:42px;height:42px}.overview:not(.stats-overview) .stat strong{font-size:25px;line-height:1.3}
.field-title{font-size:16px}.sales-details{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:18px;align-items:stretch;margin:22px 0 26px}.sales-details .sales-modes,.sales-details .host-field{margin:0;min-width:0}.sales-details .host-field{display:flex;flex-direction:column}.sales-details .host-field input{flex:1;min-height:64px}.sales-details .sales-modes{gap:8px}.sales-details .sales-modes legend{font-size:13px;line-height:1.65;margin-bottom:8px}.sales-details .host-field label{margin:0 0 8px;line-height:1.65}.sales-details .mode-card{display:grid;grid-template-columns:16px minmax(0,1fr);align-content:center;align-items:center;gap:4px 6px;padding:10px;border-radius:9px;line-height:1.3;min-height:64px}.sales-details .mode-card input{width:16px;height:16px;min-height:0;margin:0;padding:0}.sales-details .mode-card span{grid-column:1/-1;font-size:11px;line-height:1.4;margin:0}
.support-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.support-fields:has(#promotion-field[hidden]){grid-template-columns:1fr}.support-fields>div{min-width:0}.support-fields textarea{min-height:110px}
.inspiration-trigger{position:relative;flex-shrink:0}.guide-tooltip{position:absolute;right:0;bottom:calc(100% + 9px);width:min(260px,80vw);padding:10px 12px;border-radius:8px;background:var(--ink);color:white;box-shadow:0 8px 24px #18334733;font-size:12px;line-height:1.5;z-index:31;pointer-events:none}.guide-tooltip::after{content:"";position:absolute;right:24px;top:100%;border:6px solid transparent;border-top-color:var(--ink)}
#page-profiles::before{content:"";position:fixed;inset:0;background:#1833474d;z-index:20;opacity:0;pointer-events:none;transition:opacity .3s ease}#page-profiles.guide-dim::before{opacity:1}#page-profiles .inspiration-trigger:has(.guide-tooltip:not([hidden])){z-index:21}#page-profiles .guide-target{position:relative;z-index:21;background:white;border-radius:8px;outline:2px dashed transparent;outline-offset:7px;box-shadow:0 0 0 7px transparent;transition:outline-color .3s ease,box-shadow .3s ease}#page-profiles.guide-dim .guide-target{outline-color:var(--bright);box-shadow:0 0 0 7px white}
@media(max-width:1150px){.sales-details{grid-template-columns:1fr}.sales-details .host-field{margin-top:2px}}
@media(max-width:650px){.support-fields{grid-template-columns:1fr}.sales-details .sales-modes{grid-template-columns:1fr}.sales-details .mode-card span{display:block;margin:0}.overview:not(.stats-overview) .stat{padding:12px 10px}}
/* Keep motion consistent across customer, dealer and owner pages. */
.login-card{animation:page-enter .2s ease-out}
.page,main>section[data-page],.notice,.save-success,.room-stage{opacity:1;transform:none;transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete}
.page[hidden],main>section[data-page][hidden],.notice[hidden],.save-success[hidden],.room-stage[hidden]{opacity:0;transform:translateY(-6px)}
@starting-style{.page:not([hidden]),main>section[data-page]:not([hidden]),.notice:not([hidden]),.save-success:not([hidden]),.room-stage:not([hidden]){opacity:0;transform:translateY(6px)}}

@keyframes page-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes notice-enter{from{opacity:0}to{opacity:1}}
.nav-item{transition:background-color .18s ease,color .18s ease,transform .18s ease}.nav-item:hover{transform:translateX(2px)}.room-step{transition:background-color .18s ease,border-color .18s ease,color .18s ease}
dialog{opacity:0;transform:translateY(6px) scale(.99);transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
dialog[open]{opacity:1;transform:none}
@starting-style{dialog[open]{opacity:0;transform:translateY(6px) scale(.99)}}
dialog::backdrop{opacity:0;transition:opacity .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
dialog[open]::backdrop{opacity:1}
@starting-style{dialog[open]::backdrop{opacity:0}}
.voice-steps{display:flex;gap:18px;flex-wrap:wrap;color:var(--primary);font-size:13px;margin-bottom:22px}.sample-method{padding:0;border:0;margin:24px 0}.sample-method legend{font-weight:600}.sample-method label{display:inline-flex;align-items:center;gap:8px;margin:10px 22px 0 0}.sample-method input{width:18px;min-height:18px;accent-color:var(--primary)}.sample-preview{margin:18px 0}.sample-preview audio,#clone-preview{width:100%;margin-top:14px}.voice-consent{margin-top:22px!important;font-size:12px;align-items:flex-start}.voice-guide{align-self:start}.voice-guide h3{margin-top:24px}.voice-guide blockquote{margin:14px 0;padding:16px;border-left:3px solid var(--bright);background:var(--wash);border-radius:6px;line-height:1.9}.voice-disabled{opacity:.45;filter:grayscale(1);cursor:not-allowed}#clone-submit{margin-top:20px}#clone-list .button-row{margin-top:18px}@media(max-width:640px){.sidebar nav{flex-wrap:wrap}.sidebar nav .nav-item{flex:1 0 20%}.voice-steps{gap:8px;flex-direction:column}}
.device-rename{flex:1;min-width:0;margin:0;align-items:center}.device-rename h3{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-rename input{min-width:0;flex:1}.device-rename button{flex-shrink:0;min-height:36px;padding:6px 9px;white-space:nowrap}.device-card .card-top .badge{flex-shrink:0}
#room-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}#room-dialog.advanced{width:min(760px,calc(100vw - 32px))}.room-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:25px 28px 18px}.room-dialog-top .eyebrow{margin-bottom:3px}.room-dialog-top h2{font-size:21px}.room-dialog-tools{display:flex;align-items:center;gap:12px}.room-dialog-tools label{margin:0;color:var(--muted);font-size:11px;white-space:nowrap}.room-dialog-tools select{width:155px;min-height:36px;margin-top:3px;padding:5px 8px;font-size:12px}.room-dialog-tools .icon-button{min-height:36px;width:36px}.room-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 28px 22px}.advanced .room-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.room-step{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:#f7fafb}.room-step span{font:12px ui-monospace,monospace;color:var(--primary)}.room-step strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-step.active{border-color:#89cbd5;background:var(--wash);color:var(--ink)}.room-step[data-room-stage="2"]{color:#98a5ac;background:#f0f2f3}.room-stage{min-height:290px;padding:25px 28px;border-top:1px solid var(--line);}.room-stage h3{font-size:19px}.room-stage .muted{font-size:13px;margin-top:5px}.room-stage label{margin-top:19px}.room-stage-kicker{font-size:11px;font-weight:700;color:var(--primary);margin-bottom:7px}.room-stage-unavailable select{background:#f0f2f3;color:#92a0a8}.room-dialog-footer{display:flex;align-items:center;gap:10px;padding:18px 28px 24px;border-top:1px solid var(--line)}.room-dialog-footer .button-row{display:flex;gap:10px}#room-form-error:not(:empty){margin:0 28px 10px}
@media(max-width:640px){.room-dialog-top{align-items:flex-start;padding:20px 18px 15px}.room-dialog-tools{gap:5px}.room-dialog-tools select{width:125px}.room-steps{gap:4px;padding:0 18px 17px}.room-step{padding:7px 4px;display:block;text-align:center}.room-step strong{display:block;font-size:10px}.room-stage{padding:21px 18px;min-height:320px}.room-dialog-footer{padding:15px 18px 20px;flex-wrap:wrap}.room-dialog-footer .button-row{flex-wrap:wrap;justify-content:flex-end}.room-dialog-footer button{font-size:12px;padding:8px}}
@media(max-width:640px){.room-dialog-top{flex-wrap:wrap}.room-dialog-top>div:first-child{width:100%}.room-dialog-tools{margin-left:auto}.room-dialog-tools label{display:flex;align-items:center;gap:8px}.room-dialog-tools select{margin-top:0}}

#enroll-dialog{width:min(420px,calc(100vw - 32px))}#enroll-code{display:block;text-align:center;font:700 clamp(24px,7vw,42px) ui-monospace,monospace;color:var(--primary);padding:18px 0;overflow-wrap:anywhere}#cancel-enroll{margin-top:18px}
.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 15% 20%,#e0f3f3,transparent 55%),#f5f8fa}.login-card{width:min(440px,100%);padding:42px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 18px 70px #1844590b}.login-brand{font-size:28px;font-weight:800;color:var(--primary);text-decoration:none;display:block;margin-bottom:44px}.login-brand span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}.login-card h1{font-size:26px;margin:0 0 8px}.login-card form{margin-top:28px}.login-card label{display:block;margin:18px 0 8px}.login-card button{margin-top:26px}.login-help{font-size:12px;color:var(--muted);line-height:1.8;margin:24px 0 0}.content-only .sidebar,.content-only .topbar,.content-only .page-footer{display:none}.content-only .shell{margin-left:0}.content-only main{max-width:none}body[data-cloud][data-development="false"] #page-dev{display:none!important}@media(max-width:700px){.login-card{padding:30px}}

#credit-dialog{width:min(740px,calc(100vw - 32px))}.credit-purchase-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.credit-purchase-options>section{border:1px solid var(--line);border-radius:10px;padding:20px;text-align:center}.credit-self-service{display:flex;flex-direction:column;align-items:center;justify-content:center}.credit-self-service .button{margin-top:24px}.credit-contact{margin:0}.device-credit-actions svg{width:16px;height:16px}@media(max-width:560px){.credit-purchase-options{grid-template-columns:1fr}.credit-purchase-options>section{padding:16px}}.credit-contact p{font-weight:600;margin-bottom:12px}.credit-contact img{display:block;margin:auto;max-width:100%;height:auto;object-fit:contain;border-radius:10px}
.credit-balances{display:flex;flex-wrap:wrap;gap:6px}.time-credit{display:inline-block;padding:4px 10px;border:1px solid #cbd3dc;border-radius:8px;background:linear-gradient(120deg,#e3e8ed,#fafbfd 48%,#dce3e9);color:#435162;font-size:12px;white-space:nowrap;box-shadow:inset 0 1px 0 #fff}.time-credit.premium{border-color:#e0c47d;background:linear-gradient(120deg,#f3dea1,#fff7df 48%,#eacf87);color:#79551b}

.device-credit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.device-credit-actions .button,.device-credit-actions button{padding:10px 8px;white-space:nowrap}
.stats-records>.config-toolbar{padding:16px 24px;margin:0;border-bottom:1px solid var(--line)}
#voice-dialog{width:min(1280px,calc(100vw - 48px));height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);padding:28px;overflow:auto}
.voice-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.voice-dialog-heading p{font-size:13px;margin-top:4px}.voice-dialog-heading .icon-button{flex-shrink:0}.voice-dialog-heading h2{font-size:24px}
@media(max-width:640px){.mode-field{width:auto;flex-wrap:wrap}.mode-field select{min-width:0;max-width:100%;font-size:13px}.activity-line{gap:7px;padding:8px}.activity-line strong,.activity-line time{font-size:11px}#voice-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:18px}.stats-records>.config-toolbar{padding:16px}}

.voice-clone-card{border:1px solid var(--line);background:white}

/* Customer and dealer workspaces share the same navigation language. */
body:not(.owner-panel) .sidebar{background:linear-gradient(180deg,#fff 0%,#f5fafb 100%)}
body:not(.owner-panel) .nav-label{font-size:11px;letter-spacing:1px;margin-bottom:16px}
body:not(.owner-panel) .nav-item{position:relative;border:1px solid transparent;border-radius:11px;min-height:50px}
body:not(.owner-panel) .nav-item.active{background:#e8f6f8;border-color:#cee9ed;box-shadow:0 3px 10px #0c798908}
body:not(.owner-panel) .nav-item.active::before{content:"";position:absolute;left:-1px;top:14px;bottom:14px;width:3px;border-radius:3px;background:var(--primary)}
body:not(.owner-panel) .nav-item svg{width:19px;height:19px;opacity:.85}
body:not(.owner-panel) .nav-item:hover{background:#edf7f9}
body:not(.owner-panel) .workspace{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 10px}
@media(max-width:760px){body:not(.owner-panel) .nav-item{min-height:44px}}
