/* ── ASCF Admin — Industrial Dark Theme ──
   Design tokens moved to design-tokens.css */
*{margin:0;padding:0;box-sizing:border-box}
html{height:100%}
body{
  background:var(--bg-deep);
  color:var(--text-primary);
  font-family:var(--font);
  font-size:14px;
  line-height:1.5;
  min-height:100%;
}
body.login-open{overflow-y:auto;overflow-x:hidden}
body.app-ready{display:flex;height:100vh;overflow:hidden}
.hidden{display:none!important}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border-medium);border-radius:4px}
input,select,textarea,button{font-family:inherit;font-size:inherit}
a{color:var(--accent);text-decoration:none}

/* ── LOGIN ── */
.login-overlay{
  position:relative;z-index:9999;min-height:100vh;width:100%;
  display:flex;align-items:flex-start;justify-content:center;
  background:var(--bg-deep);
  padding:clamp(1rem,3vw,2.5rem) clamp(.75rem,4vw,2rem) 3rem;
}
.login-shell{
  width:min(960px,100%);
  display:flex;flex-direction:column;gap:1.25rem;
}
.login-shell--narrow{width:min(420px,100%)}
.login-intro{
  font-size:.82rem;color:var(--text-secondary);line-height:1.55;margin:-.25rem 0 .25rem;
}
.login-intro strong{color:var(--text-primary);font-weight:600}
.login-env-hint{
  font-size:.75rem;color:var(--text-muted);line-height:1.5;
  padding:.65rem .75rem;background:var(--bg-surface);border:1px solid var(--border-subtle);
  border-radius:var(--radius);
}
.login-env-hint code{
  font-family:var(--mono);font-size:.7rem;color:var(--accent);
  background:rgba(0,188,212,.08);padding:.1rem .3rem;border-radius:4px;
}
.header-tenant-wrap{align-items:center;gap:.5rem;margin-right:.5rem}
.tenant-select-label{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);
  white-space:nowrap;
}
.tenant-select{
  min-width:min(220px,42vw);max-width:280px;font-size:.78rem;
  padding:.35rem .5rem;background:var(--bg-elevated);border:1px solid var(--border-subtle);
  border-radius:var(--radius);color:var(--text-primary);
}
/* NTT DATA wordmark (blanco sobre tema oscuro) */
.ntt-brand-logo{
  object-fit:contain;display:block;
  filter:drop-shadow(0 0 12px rgba(255,255,255,.08));
}
.ntt-brand-logo--login{
  width:min(300px,100%);height:auto;max-height:56px;margin-bottom:.35rem;
}
.ntt-brand-logo--rail{
  width:100%;max-width:200px;height:auto;max-height:34px;margin-bottom:.5rem;
}
.dt-composer-list-item{
  padding:.25rem .4rem;border-radius:4px;cursor:pointer;color:var(--text-secondary);
}
.dt-composer-list-item:hover{background:rgba(255,255,255,.06)}
.dt-composer-list-item.is-selected{
  background:rgba(0,188,212,.15);color:var(--text-primary);
}
.login-brand--ntt{
  flex-direction:column;align-items:flex-start;gap:.65rem;
}
.sidebar-header--ntt{
  flex-direction:column;align-items:flex-start;gap:.35rem;
}
.login-brand{
  display:flex;align-items:center;gap:.85rem;
  padding-bottom:.5rem;border-bottom:1px solid var(--border-subtle);
}
.login-brand-mark{
  width:44px;height:44px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1.25rem;color:var(--accent);
  background:var(--accent-glow);border:1px solid rgba(0,188,212,.25);
}
.login-brand h1{font-size:1.35rem;font-weight:600;line-height:1.2}
.login-brand p{font-size:.8rem;color:var(--text-secondary);margin-top:.15rem}
.login-step{display:none;flex-direction:column;gap:1rem}
.login-step.is-active{display:flex}
.login-step-head{display:flex;flex-direction:column;gap:.35rem}
.login-step-head h2{font-size:1.05rem;font-weight:600}
.login-step-desc{font-size:.8rem;color:var(--text-secondary)}
.login-search-wrap{position:sticky;top:0;z-index:2;padding:.25rem 0;background:var(--bg-deep)}
.login-search{
  background:var(--bg-surface);border:1px solid var(--border-medium);
  border-radius:var(--radius);padding:.7rem 1rem;color:var(--text-primary);
  width:100%;outline:none;font-size:.9rem;
}
.login-search:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}
.login-form{
  background:var(--bg-surface);border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);padding:1.25rem 1.5rem;
  display:flex;flex-direction:column;gap:.75rem;max-width:420px;
}
.login-form label{font-size:.75rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:0.5px}
.login-form input{
  background:var(--bg-elevated);border:1px solid var(--border-subtle);
  border-radius:var(--radius);padding:0.6rem 0.8rem;color:var(--text-primary);
  width:100%;outline:none;
}
.login-form input:focus{border-color:var(--accent)}
.login-step-actions{display:flex;justify-content:flex-end;gap:.75rem;padding-top:.25rem}
.login-error{font-size:0.8rem;color:var(--red);text-align:center;min-height:1.2em}
.client-search-empty{
  font-size:.8rem;color:var(--text-muted);text-align:center;padding:1.5rem 1rem;
  border:1px dashed var(--border-subtle);border-radius:var(--radius);
}
.client-search-empty.is-hidden{display:none}
.w-full{width:100%}

/* ── LAYOUT ── */
.app-layout{display:flex;height:100vh;width:100vw}
.sidebar{
  width:var(--sidebar-w);background:var(--bg-surface);
  border-right:1px solid var(--border-subtle);
  display:flex;flex-direction:column;flex-shrink:0;
}
.sidebar-header{
  display:flex;align-items:center;gap:.6rem;
  padding:.85rem 1rem;border-bottom:1px solid var(--border-subtle);
}
.sidebar-header h1{font-size:.95rem;font-weight:600}
.sidebar-header small{font-size:.65rem;color:var(--text-muted);display:block;margin-top:-2px}
.sidebar-nav{flex:1;overflow-y:auto;padding:.5rem 0}
.nav-group-title{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.8px;
  color:var(--text-muted);padding:.75rem 1rem .35rem;
}
.nav-item{
  display:flex;align-items:center;gap:.65rem;
  padding:.5rem 1rem;margin:1px .5rem;border-radius:var(--radius);
  color:var(--text-secondary);cursor:pointer;transition:all .15s;
  font-size:.82rem;border:none;background:none;width:calc(100% - 1rem);text-align:left;
}
.nav-item:hover{background:var(--bg-hover);color:var(--text-primary)}
.nav-item.active{background:var(--accent-glow);color:var(--accent)}
.nav-item .nav-icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0}
a.nav-item.nav-item-link{text-decoration:none;color:inherit}
.nav-item-primary{font-weight:600;border:1px solid rgba(0,188,212,.22)}
.nav-item-primary:hover{border-color:rgba(0,188,212,.45)}
.nav-item-primary.active{background:rgba(0,188,212,.18);border-color:var(--accent)}
.sidebar-nav .nav-collapse{border:none;margin:.25rem .5rem}
.sidebar-nav .nav-collapse summary{
  list-style:none;cursor:pointer;font-size:.72rem;text-transform:uppercase;
  letter-spacing:.6px;color:var(--text-muted);padding:.55rem .5rem .35rem;
  display:flex;align-items:center;justify-content:space-between;
}
.sidebar-nav .nav-collapse summary::-webkit-details-marker{display:none}
.sidebar-nav .nav-collapse summary::after{content:'+';font-size:.85rem;color:var(--text-muted)}
.sidebar-nav .nav-collapse[open] summary::after{content:'−'}
.sidebar-nav .nav-collapse .nav-item{margin-left:0;width:100%}

.wizard-shell{max-width:880px;margin:0 auto;padding-bottom:2rem}
.wizard-hero{
  text-align:center;padding:0 0 1.25rem;margin-bottom:1.25rem;
  border-bottom:1px solid var(--border-subtle);
}
.wizard-hero-kicker{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;
  color:var(--accent);margin-bottom:.35rem;
}
.wizard-hero h3{font-size:1.2rem;font-weight:600;margin-bottom:.4rem}
.wizard-hero-desc{font-size:.82rem;color:var(--text-secondary);max-width:36rem;margin:0 auto;line-height:1.55}
.wizard-hero-desc a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.main-content:has(#panel-templates.active){background:radial-gradient(ellipse 80% 40% at 50% 0,rgba(0,188,212,.06),transparent 70%)}

.main-area{flex:1;display:flex;flex-direction:column;min-width:0}
.main-header{
  height:var(--header-h);display:flex;align-items:center;
  justify-content:space-between;padding:0 1.5rem;
  border-bottom:1px solid var(--border-subtle);flex-shrink:0;
}
.main-header h2{font-size:1rem;font-weight:500}
.header-right{display:flex;align-items:center;gap:.75rem}
.ws-status{
  display:flex;align-items:center;gap:.4rem;font-size:.75rem;color:var(--text-muted);
}
.ws-dot{width:6px;height:6px;border-radius:50%;background:var(--text-muted)}
.ws-dot.online{background:var(--green);box-shadow:0 0 6px rgba(46,204,113,.4)}
.ws-dot.offline{background:var(--red)}
.main-content{
  flex:1;overflow-y:auto;padding:1.5rem;
}
.panel{display:none}
.panel.active{display:block}

/* ── COMMON COMPONENTS ── */
.card{
  background:var(--bg-surface);border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);padding:1.25rem;
}
.card-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border-subtle);
}
.card-title{font-size:.9rem;font-weight:600}
.badge{
  font-size:.65rem;padding:.15rem .5rem;border-radius:20px;
  background:var(--bg-elevated);color:var(--text-secondary);
}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.flex{display:flex;gap:1rem}
.flex-wrap{flex-wrap:wrap}
.gap-sm{gap:.5rem}
.gap-lg{gap:1.5rem}
.mt-1{margin-top:1rem}
.mb-1{margin-bottom:1rem}
.text-secondary{color:var(--text-secondary)}
.text-sm{font-size:.8rem}
.text-xs{font-size:.7rem}
.w-full{width:100%}

/* ── BUTTONS ── */
.btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.45rem .9rem;border-radius:var(--radius);
  font-weight:500;font-size:.8rem;
  border:1px solid transparent;cursor:pointer;transition:all .15s;
}
.btn-primary{background:var(--accent);color:#000;border-color:var(--accent)}
.btn-primary:hover{opacity:.9}
.btn-outline{background:transparent;border-color:var(--border-medium);color:var(--text-primary)}
.btn-outline:hover{background:var(--bg-hover)}
.btn-ghost{background:transparent;color:var(--text-secondary)}
.btn-ghost:hover{background:var(--bg-hover);color:var(--text-primary)}
.btn-sm{padding:.3rem .6rem;font-size:.75rem}
.btn-icon{width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:var(--radius)}
.btn-danger{background:var(--red);color:#fff}

/* ── FORMS ── */
input:not([type=checkbox]):not([type=radio]),select,textarea{
  background:var(--bg-elevated);border:1px solid var(--border-subtle);
  border-radius:var(--radius);padding:.5rem .7rem;color:var(--text-primary);
  outline:none;width:100%;
}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--accent)}
input:focus,select:focus,textarea:focus{border-color:var(--accent)}
select{appearance:none;cursor:pointer}
label{font-size:.75rem;color:var(--text-secondary);display:block;margin-bottom:.3rem}

/* ── CARDS / TILES (selection) ── */
.tile{
  background:var(--bg-elevated);border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);padding:1rem;cursor:pointer;
  transition:all .15s;text-align:center;
}
.tile:hover{border-color:var(--border-medium);background:var(--bg-hover)}
.tile.selected{border-color:var(--accent);background:var(--accent-glow)}
.tile-icon{font-size:1.6rem;margin-bottom:.4rem}
.tile-label{font-size:.8rem;font-weight:500}
.tile-desc{font-size:.7rem;color:var(--text-muted);margin-top:.2rem}

/* ── CHIPS (multi-select) ── */
.chip-group{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.3rem .65rem;border-radius:20px;
  font-size:.75rem;cursor:pointer;transition:all .15s;
  background:var(--bg-elevated);border:1px solid var(--border-subtle);color:var(--text-secondary);
}
.chip:hover{background:var(--bg-hover);color:var(--text-primary)}
.chip.selected{background:var(--accent-glow);border-color:var(--accent);color:var(--accent)}
.chip .chip-icon{font-size:.85rem}

/* ── PROGRESS BAR ── */
.progress-bar{
  height:4px;background:var(--bg-elevated);border-radius:4px;overflow:hidden;margin:.5rem 0;
}
.progress-fill{
  height:100%;background:var(--accent);border-radius:4px;
  transition:width .3s ease;
}

/* ── STEP WIZARD ── */
.steps{display:flex;gap:0;margin-bottom:1.5rem}
.step{
  flex:1;display:flex;align-items:center;gap:.4rem;
  padding:.5rem .75rem;font-size:.72rem;color:var(--text-muted);
  border-bottom:2px solid var(--border-subtle);
}
.step.done{border-color:var(--green);color:var(--green)}
.step.active{border-color:var(--accent);color:var(--accent);font-weight:500}
.step-num{
  width:20px;height:20px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.65rem;font-weight:600;
  background:var(--bg-elevated);
}
.step.done .step-num{background:var(--green);color:#000}
.step.active .step-num{background:var(--accent);color:#000}

/* ── TOAST ── */
.toast-container{position:fixed;top:1rem;right:1rem;z-index:99999;display:flex;flex-direction:column;gap:.4rem}
.toast{
  background:var(--bg-surface);border:1px solid var(--border-medium);
  border-radius:var(--radius);padding:.75rem 1rem;min-width:260px;max-width:360px;
  display:flex;gap:.6rem;align-items:flex-start;animation:slideIn .2s ease-out;
}
@keyframes slideIn{from{opacity:0;transform:translateX(40px)}}
.toast-icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0}
.toast-body{flex:1}
.toast-title{font-weight:600;font-size:.8rem}
.toast-desc{font-size:.75rem;color:var(--text-secondary)}
.toast-close{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.8rem}
.toast.success{border-left:3px solid var(--green)}
.toast.error{border-left:3px solid var(--red)}
.toast.info{border-left:3px solid var(--accent)}
.toast.warning{border-left:3px solid var(--amber)}

/* ── METRICS ── */
.metric{text-align:center}
.metric-value{font-size:1.4rem;font-weight:700;font-variant-numeric:tabular-nums}
.metric-label{font-size:.65rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}

/* ── TABLE ── */
table.w-full{border-collapse:collapse}
table.w-full th{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.5px;
  color:var(--text-muted);padding:.5rem .4rem;text-align:left;
  border-bottom:1px solid var(--border-subtle);
}
table.w-full td{padding:.45rem .4rem;border-bottom:1px solid var(--border-subtle);font-size:.8rem}

/* ── LOG CONSOLE ── */
.console{
  background:rgba(0,0,0,.35);border-radius:var(--radius);
  padding:.75rem;font-family:var(--mono);font-size:.75rem;
  height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:.25rem;
}
.console-line{color:var(--text-muted)}
.console-line.system{color:var(--text-secondary)}
.console-line.mcp_allowed{color:var(--green)}
.console-line.mcp_blocked{color:var(--red)}
.console-line.mcp_call{color:var(--accent)}
.console-line.client{color:var(--amber)}

/* ── EMPTY STATE ── */
.empty-state{text-align:center;padding:2rem;color:var(--text-muted)}
.empty-state .empty-icon{font-size:2rem;margin-bottom:.5rem;display:block}

/* ── DETAIL PANEL ── */
.detail-row{display:flex;justify-content:space-between;padding:.35rem 0;font-size:.8rem;border-bottom:1px solid var(--border-subtle)}
.detail-label{color:var(--text-secondary)}
.detail-value{font-weight:500}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .sidebar{width:52px}
  .sidebar-header h1,.sidebar-header small,.nav-item span,.nav-group-title{display:none}
  .nav-item{padding:.5rem;justify-content:center;margin:1px .25rem}
  .main-header{padding:0 .75rem}
  .main-content{padding:.75rem}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .steps{flex-direction:column}
  .step{border-bottom:none;border-left:2px solid var(--border-subtle)}
  .step.done{border-left-color:var(--green)}
  .step.active{border-left-color:var(--accent)}
}

/* ── DEMO SIM PANEL ── */
.demo-sim-layout{display:grid;grid-template-columns:280px 1fr;gap:1rem;height:100%}
.demo-sim-catalog{min-height:0;height:100%}
.demo-sim-detail-col{display:flex;flex-direction:column;gap:.75rem;min-height:0;overflow-y:auto}
.demo-sim-status-bar{padding:.5rem .75rem}
.dsim-scenario-item{
  display:flex;align-items:center;gap:.5rem;padding:.4rem .75rem;
  cursor:pointer;border-bottom:1px solid rgba(255,255,255,.03);
  transition:background .12s;font-size:.8rem;
}
.dsim-scenario-item:hover{background:var(--bg-hover)}
.dsim-scenario-item.active{background:var(--accent-glow);color:var(--accent)}
.dsim-scenario-item .dsim-mode-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.dsim-mode-dot.end_to_end{background:var(--green)}
.dsim-mode-dot.visual_only{background:var(--amber)}
.dsim-mode-dot.degraded{background:var(--red)}
.dsim-badge-mode{font-size:.65rem;padding:.15rem .45rem;border-radius:2px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.dsim-badge-mode.end_to_end{background:rgba(46,204,113,.15);color:var(--green)}
.dsim-badge-mode.visual_only{background:rgba(243,156,18,.15);color:var(--amber)}
.dsim-badge-mode.degraded{background:rgba(231,76,60,.15);color:var(--red)}
.dsim-tag{font-size:.65rem;padding:.1rem .35rem;border-radius:2px;background:rgba(255,255,255,.07);color:var(--text-secondary)}
.dsim-output-line{color:var(--text-muted);line-height:1.6}
.dsim-output-line.ok{color:var(--green)}
.dsim-output-line.err{color:var(--red)}
.dsim-output-line.info{color:var(--accent)}

/* ── DSIM METRICS STRIP ── */
.dsim-metrics-grid{
  display:grid;grid-template-columns:repeat(7,1fr);gap:.35rem;
  padding:.5rem 0;
}
.dsim-metric-cell{
  display:flex;flex-direction:column;align-items:center;gap:.15rem;
  text-align:center;padding:.4rem .25rem;
  background:rgba(0,0,0,.25);border-radius:var(--radius);
}
.dsim-metric-val{
  font-family:var(--mono);font-size:.9rem;font-weight:600;
  color:var(--accent);min-width:2ch;
}
.dsim-metric-val.has-errors{color:var(--red)}
.dsim-metric-lbl{font-size:.6rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px}

/* ── DSIM OBSERVABILIDAD ── */
.dsim-obs-offline{
  font-size:.75rem;color:var(--text-muted);font-style:italic;
  padding:.65rem .75rem;
}
.dsim-obs-log-line{line-height:1.55}
.dsim-obs-log-line.ds-event{color:var(--accent)}
.dsim-obs-log-line.ds-error{color:var(--red)}
.dsim-obs-log-line.ds-warn{color:var(--amber)}
.dsim-obs-log-line.ds-info{color:var(--text-secondary)}

/* ── Adapter cards (5.3 Media / 5.4 Gestos) ── */
.dsim-adapter-card{padding:0}
.dsim-adapter-card details>summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;gap:.6rem;
  padding:.55rem .75rem;
  user-select:none;
}
.dsim-adapter-card details>summary::-webkit-details-marker{display:none}
.dsim-adapter-summary{display:flex;align-items:center;gap:.6rem;width:100%}
.dsim-adapter-body{padding:.25rem .75rem .65rem}
.dsim-adapter-status{
  margin-left:auto;font-size:.7rem;font-family:var(--mono);
  padding:.15rem .4rem;border-radius:3px;
  background:rgba(139,146,160,.1);color:var(--text-secondary);
  white-space:nowrap;
}

@media(max-width:900px){
  .demo-sim-layout{grid-template-columns:1fr;grid-template-rows:240px 1fr}
  .demo-sim-catalog{height:240px}
  .dsim-metrics-grid{grid-template-columns:repeat(4,1fr)}
}

/* ── Visor sector — panel demo sintético ── */
.sector-visor-demo-panel{
  position:fixed;bottom:1.25rem;right:1.25rem;z-index:1200;
  min-width:220px;max-width:280px;padding:.75rem 1rem;
  background:rgba(12,18,28,.92);border:1px solid var(--border-subtle);
  border-radius:var(--radius);box-shadow:0 8px 24px rgba(0,0,0,.45);
  font-size:.8rem;color:var(--text-secondary);
}
.sector-visor-demo-panel .svdp-title{font-weight:600;color:var(--accent);margin-bottom:.35rem}
.sector-visor-demo-panel .svdp-status{margin-bottom:.5rem;font-size:.75rem}
.sector-visor-demo-panel .svdp-status.svdp-active{color:#4caf50}
.sector-visor-demo-panel .svdp-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.sector-visor-demo-panel .svdp-btn{
  flex:1;min-width:5rem;padding:.4rem .6rem;border:none;border-radius:4px;
  cursor:pointer;font-size:.75rem;background:var(--bg-elevated);color:var(--text-primary);
}
.sector-visor-demo-panel .svdp-start{background:rgba(0,188,212,.2);color:var(--accent)}
.sector-visor-demo-panel .svdp-stop{background:rgba(244,67,54,.15);color:#f48fb1}

/* ── DSIM SUB-TABS BAR (5.2 / 5.5 / 5.7 / 5.8) ── */
.dsim-tabs-bar{
  display:flex;gap:2px;padding:.35rem;
  background:var(--bg-elevated);border-radius:var(--radius);
  border:1px solid var(--border-subtle);
  flex-shrink:0;
}
.dsim-tab{
  flex:1;padding:.35rem .6rem;border:none;cursor:pointer;
  background:transparent;color:var(--text-muted);
  border-radius:calc(var(--radius) - 3px);
  font-size:.75rem;font-weight:500;transition:background .12s,color .12s;
  white-space:nowrap;
}
.dsim-tab:hover{background:var(--bg-hover);color:var(--text-secondary)}
.dsim-tab.active{background:var(--bg-deep);color:var(--accent);font-weight:600}

/* ── XR VIEWER TAB (5.2) ── */
.dsim-tab-panel{flex-shrink:0}

/* ── DT/MR COCKPIT CARDS (5.5) ── */
.dtmr-card{
  border:1px solid var(--border-subtle);border-radius:var(--radius);
  padding:.65rem .75rem;margin:.35rem 0;
  background:rgba(0,0,0,.2);
}
.dtmr-card-header{
  display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  padding-bottom:.5rem;margin-bottom:.45rem;
  border-bottom:1px solid var(--border-subtle);
}
.dtmr-control-id{
  font-family:var(--mono);font-size:.75rem;font-weight:600;color:var(--text-primary);
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.dtmr-badge-demo{
  font-size:.6rem;padding:.12rem .35rem;border-radius:2px;
  background:rgba(231,76,60,.12);color:var(--red);
  text-transform:uppercase;letter-spacing:.3px;flex-shrink:0;
}
/* Confidence badge */
.dtmr-conf{
  font-family:var(--mono);font-size:.72rem;font-weight:700;
  padding:.15rem .45rem;border-radius:3px;flex-shrink:0;
}
.dtmr-conf-high{background:rgba(46,204,113,.15);color:var(--green)}
.dtmr-conf-mid {background:rgba(243,156,18,.15);color:var(--amber)}
.dtmr-conf-low {background:rgba(231,76,60,.15);color:var(--red)}
.dtmr-conf-na  {background:rgba(139,146,160,.1);color:var(--text-muted)}
/* Rows */
.dtmr-rows{display:flex;flex-direction:column;gap:.3rem}
.dtmr-row{
  display:flex;justify-content:space-between;align-items:center;
  font-size:.78rem;padding:.2rem 0;
}
.dtmr-row-wrap{align-items:flex-start;flex-wrap:wrap;gap:.3rem}
.dtmr-lbl{color:var(--text-secondary);flex-shrink:0;min-width:70px}
.dtmr-val{font-weight:500;text-align:right}
.dtmr-val-mismatch{color:var(--amber)}
.dtmr-labels-wrap{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:flex-end}
/* Safety labels */
.dtmr-safety-label{
  font-size:.62rem;padding:.1rem .35rem;border-radius:2px;
  background:rgba(139,146,160,.1);color:var(--text-secondary);
}
.dtmr-safety-label.dtmr-sl-critical{background:rgba(231,76,60,.15);color:var(--red)}
.dtmr-safety-label.dtmr-sl-empty{color:var(--text-muted);font-style:italic}
/* Guidance layer — constrained inside card, NOT position:fixed */
.dtmr-guidance-section{
  margin-top:.5rem;padding:.45rem .55rem;
  background:rgba(0,188,212,.06);border:1px solid rgba(0,188,212,.15);
  border-radius:6px;max-width:100%;pointer-events:none;
}
.dtmr-guidance-layer{
  display:flex;align-items:flex-start;gap:.4rem;
}
.dtmr-guidance-icon{color:var(--accent);font-size:.85rem;flex-shrink:0;line-height:1.4}
.dtmr-guidance-text{font-size:.75rem;color:var(--text-secondary);line-height:1.4}
/* Empty state */
.dtmr-empty{
  display:flex;align-items:center;gap:.5rem;padding:.75rem;
  color:var(--text-muted);font-size:.78rem;font-style:italic;
}
.dtmr-empty-icon{font-size:1rem;flex-shrink:0}

/* ── MIXED ASSETS (5.7) ── */
.dsim-assets-body{
  display:flex;flex-direction:column;gap:.5rem;padding:.5rem 0;
}
.dsim-asset-row{
  display:flex;align-items:center;gap:.75rem;
  padding:.35rem 0;border-bottom:1px solid rgba(255,255,255,.04);
  flex-wrap:wrap;
}
.dsim-asset-label{
  font-size:.7rem;color:var(--text-secondary);
  text-transform:uppercase;letter-spacing:.4px;
  min-width:48px;flex-shrink:0;
}
.dsim-asset-value{font-size:.8rem;color:var(--text-primary)}
/* Safe placeholder */
.dsim-asset-placeholder{
  display:flex;align-items:center;gap:.6rem;
  background:rgba(243,156,18,.07);
  border:1px dashed rgba(243,156,18,.3);
  border-radius:6px;padding:.75rem;margin:.25rem 0;
}
.dsim-placeholder-icon{font-size:1.4rem;flex-shrink:0}
.dsim-placeholder-title{font-size:.8rem;font-weight:600;color:var(--amber)}
.dsim-placeholder-desc{font-size:.7rem;color:var(--text-muted);margin-top:.15rem}

/* ── MOBILE / RGB-D (5.8) ── */
.dsim-mobile-wrap{
  display:flex;justify-content:center;padding:.75rem 0;
}
.dsim-phone-frame{
  width:260px;border-radius:24px;
  background:var(--bg-elevated);
  border:2px solid var(--border-medium);
  box-shadow:0 4px 20px rgba(0,0,0,.5);
  overflow:hidden;position:relative;flex-shrink:0;
}
.dsim-phone-notch{
  height:10px;background:var(--bg-deep);
  border-bottom:1px solid var(--border-subtle);
  position:relative;
}
.dsim-phone-notch::after{
  content:'';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:40px;height:5px;border-radius:3px;
  background:var(--border-medium);
}
.dsim-phone-screen{
  padding:.5rem;display:flex;flex-direction:column;gap:.4rem;
}
.dsim-rgbd-panels{
  display:grid;grid-template-columns:1fr 1fr;gap:.4rem;
}
.dsim-rgbd-panel{
  border-radius:8px;overflow:hidden;
  border:1px solid var(--border-subtle);
  background:rgba(0,0,0,.35);
}
.dsim-rgbd-label{
  font-size:.6rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;
  padding:.25rem .4rem;color:var(--text-muted);background:rgba(0,0,0,.3);
}
.dsim-rgbd-content{
  height:70px;position:relative;overflow:hidden;
}
/* Scanline animation for RGB */
.dsim-rgbd-rgb .dsim-rgbd-content{
  background:linear-gradient(180deg,#0a1520 0%,#0d1e30 100%);
}
.dsim-frame-scanline{
  position:absolute;top:0;left:0;right:0;height:2px;
  background:rgba(0,188,212,.4);
  animation:dsim-scan 2s linear infinite;
}
@keyframes dsim-scan{
  0%{top:0;opacity:.7}
  100%{top:100%;opacity:0}
}
/* Depth heatmap preview */
.dsim-rgbd-depth .dsim-rgbd-content{
  background:linear-gradient(135deg,#001520 0%,#003040 40%,#00507a 60%,#0080a0 80%,#00b8d4 100%);
  opacity:.75;
}
.dsim-depth-heatmap-demo{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 40% 50% at 60% 40%,rgba(255,200,0,.3),transparent),
    radial-gradient(ellipse 30% 35% at 30% 60%,rgba(0,200,150,.2),transparent);
}
/* Frame metadata */
.dsim-frame-meta{
  display:flex;flex-wrap:wrap;gap:.2rem .4rem;
  padding:.25rem .4rem;font-size:.58rem;color:var(--text-muted);
  font-family:var(--mono);border-top:1px solid rgba(255,255,255,.05);
}
.dsim-frame-meta b{color:var(--text-secondary)}
/* Mobile source bar */
.dsim-mobile-source-bar{
  display:flex;align-items:center;gap:.4rem;
  padding:.35rem .25rem 0;font-size:.7rem;color:var(--text-secondary);
}
.dsim-mobile-source-lbl{color:var(--text-muted)}

@media(max-width:600px){
  .dsim-tabs-bar{flex-wrap:wrap}
  .dsim-tab{font-size:.68rem;padding:.3rem .4rem}
  .dsim-phone-frame{width:100%;max-width:300px}
}

/* ── DT SCENE VIEWER (Task 4.1) ── */
.dt-viewer-layout{
  display:flex;flex-direction:column;gap:.75rem;
  height:100%;max-width:1100px;margin:0 auto;
}
.dt-viewer-card{display:flex;flex-direction:column;gap:.5rem}
.dt-viewer-viewport{
  height:420px;border-radius:var(--radius);overflow:hidden;
  background:#060b14;position:relative;flex-shrink:0;
  border:1px solid rgba(0,188,212,.12);
}
.dt-viewer-footer{
  padding:.35rem 0 0;font-size:.72rem;color:var(--text-muted);
  border-top:1px solid var(--border-subtle);
}
@media(max-width:768px){
  .dt-viewer-viewport{height:260px}
}

/* ── DT TIMELINE STRIP (Task 4.4) ── */
.dt-timeline-strip{
  display:flex;flex-direction:column;gap:.35rem;
  padding:.45rem .65rem;
  background:var(--bg-elevated);
  border:1px solid rgba(0,188,212,.14);
  border-radius:var(--radius);
  flex-shrink:0;
}
.dt-tl-row{
  display:flex;align-items:center;gap:.45rem;
  flex-wrap:nowrap;
}
.dt-tl-scrub-row{gap:.35rem}
.dt-tl-sep{
  width:1px;height:16px;background:var(--border-subtle);flex-shrink:0;
}
.dt-tl-label{
  font-size:.65rem;font-family:var(--mono);
  color:var(--text-muted);white-space:nowrap;flex-shrink:0;
}
.dt-tl-time-label{
  min-width:2.4rem;text-align:center;
}
.dt-tl-time-val{
  min-width:3.4rem;text-align:right;color:var(--accent);opacity:.8;
}
.dt-tl-clip-group{
  display:flex;align-items:center;gap:.35rem;flex-shrink:0;
}
.dt-tl-select{
  background:var(--bg-surface);
  border:1px solid var(--border-subtle);
  border-radius:4px;
  color:var(--text-primary);
  font-size:.72rem;font-family:var(--mono);
  padding:.18rem .4rem;
  cursor:pointer;
}
.dt-tl-select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.dt-tl-btn{font-size:.75rem;padding:.2rem .55rem;min-width:2rem;flex-shrink:0}
.dt-tl-btn.dt-tl-active{
  color:var(--accent);
  background:rgba(0,188,212,.12);
  border-color:rgba(0,188,212,.3);
}
.dt-tl-scrub{
  flex:1;min-width:60px;
  -webkit-appearance:none;appearance:none;
  height:4px;border-radius:2px;
  background:var(--border-medium);cursor:pointer;
  outline:none;
}
.dt-tl-scrub::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:12px;height:12px;border-radius:50%;
  background:var(--accent);cursor:pointer;
  border:2px solid var(--bg-elevated);
  box-shadow:0 0 0 2px rgba(0,188,212,.25);
}
.dt-tl-scrub::-moz-range-thumb{
  width:12px;height:12px;border-radius:50%;
  background:var(--accent);cursor:pointer;
  border:2px solid var(--bg-elevated);
}
.dt-tl-scrub:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
@media(max-width:768px){
  .dt-tl-row{flex-wrap:wrap}
  .dt-tl-sep{display:none}
}

/* ── DT VIEWER OVERLAYS (Task 4.5) ── */
/* HUD panel — top-left inside viewport */
.dt-overlay-hud{
  position:absolute;top:10px;left:10px;
  background:rgba(4,11,22,.82);
  border:1px solid rgba(0,188,212,.22);
  border-radius:4px;
  padding:.35rem .5rem;
  display:flex;flex-direction:column;gap:.25rem;
  font-family:var(--mono,monospace);font-size:.62rem;
  pointer-events:none;z-index:10;user-select:none;
  backdrop-filter:blur(4px);
}
/* Allow slider interaction */
.dt-overlay-hud input{pointer-events:auto}
.dt-overlay-hud-row{
  display:flex;align-items:center;gap:.35rem;
}
.dt-overlay-label{
  color:rgba(0,188,212,.6);font-size:.58rem;
  letter-spacing:.06em;text-transform:uppercase;
  flex-shrink:0;min-width:3.2rem;
}
.dt-overlay-value{
  color:#e0f7fa;font-weight:700;
  min-width:4rem;
}
.dt-overlay-stale{
  background:#c0392b;color:#fff;
  font-size:.5rem;font-weight:800;letter-spacing:.08em;
  padding:.05rem .25rem;border-radius:2px;
  animation:dt-ov-blink .9s step-end infinite;
}
@keyframes dt-ov-blink{0%,100%{opacity:1}50%{opacity:.3}}
.dt-overlay-swatch{
  display:inline-block;width:10px;height:10px;
  border-radius:2px;flex-shrink:0;
  border:1px solid rgba(255,255,255,.18);
  transition:background .4s ease;
}
.dt-overlay-heat-val{
  color:#e0f7fa;min-width:1.6rem;text-align:right;
}
.dt-overlay-slider{
  width:64px;height:4px;
  -webkit-appearance:none;appearance:none;
  border-radius:2px;outline:none;cursor:pointer;
  background:rgba(0,188,212,.25);
  accent-color:#00bcd4;
}
.dt-overlay-slider::-webkit-slider-thumb{
  -webkit-appearance:none;width:10px;height:10px;
  border-radius:50%;background:#00bcd4;cursor:pointer;
}

/* Expert cursor overlay — absolute inside viewport */
.dt-overlay-expert{
  position:absolute;
  transform:translate(-50%,-50%);
  pointer-events:none;z-index:11;
  display:flex;flex-direction:column;align-items:center;gap:.2rem;
}
.dt-overlay-expert-cursor{
  width:20px;height:20px;border-radius:50%;
  border:2px solid var(--expert-color,#00e5ff);
  box-shadow:0 0 8px var(--expert-color,#00e5ff);
  position:relative;
  animation:dt-ov-pulse 1.6s ease-in-out infinite;
}
/* Crosshair lines */
.dt-overlay-expert-cursor::before,
.dt-overlay-expert-cursor::after{
  content:'';position:absolute;background:var(--expert-color,#00e5ff);opacity:.7;
}
.dt-overlay-expert-cursor::before{
  width:1px;height:28px;left:50%;top:50%;
  transform:translate(-50%,-50%);
}
.dt-overlay-expert-cursor::after{
  height:1px;width:28px;left:50%;top:50%;
  transform:translate(-50%,-50%);
}
@keyframes dt-ov-pulse{
  0%,100%{box-shadow:0 0 6px var(--expert-color,#00e5ff);transform:scale(1)}
  50%{box-shadow:0 0 14px var(--expert-color,#00e5ff);transform:scale(1.12)}
}
.dt-overlay-expert-label{
  background:rgba(4,11,22,.85);color:var(--expert-color,#00e5ff);
  font-family:var(--mono,monospace);font-size:.58rem;font-weight:700;
  padding:.08rem .35rem;border-radius:2px;
  border:1px solid var(--expert-color,#00e5ff);
  white-space:nowrap;letter-spacing:.04em;
}

/* Controls strip below viewport */
.dt-overlay-controls{
  display:flex;align-items:center;gap:.6rem;
  padding:.3rem 0;
  font-family:var(--mono,monospace);font-size:.68rem;
  border-top:1px solid var(--border-subtle,rgba(255,255,255,.07));
}
.dt-overlay-sim-btn{font-size:.68rem;padding:.2rem .55rem}
.dt-overlay-expert-indicator{
  color:var(--text-muted);font-size:.65rem;
  display:flex;align-items:center;gap:.3rem;
}
.dt-overlay-expert-dot{
  display:inline-block;width:7px;height:7px;
  border-radius:50%;flex-shrink:0;
}

/* ── DT USD PREVIEW (Task 4.2) ── */
.dt-usd-section{
  border:1px solid rgba(0,188,212,.18);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg-elevated);
  margin-top:.25rem;
}
.dt-usd-mount{
  min-height:260px;
  position:relative;
  display:flex;
  align-items:stretch;
  width:100%;
}
.dt-usd-fallback{
  display:flex;
  align-items:flex-start;
  gap:.8rem;
  padding:1.25rem 1.1rem;
  width:100%;
}
.dt-usd-fallback-icon{
  font-size:1.5rem;flex-shrink:0;
  color:var(--amber);margin-top:.1rem;
}
.dt-usd-fallback-body{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.dt-usd-fallback-title{
  font-size:.8rem;font-weight:600;
  color:var(--amber);margin-bottom:.2rem;
}
.dt-usd-fallback-desc{
  font-size:.72rem;color:var(--text-secondary);
  line-height:1.6;
}
.dt-usd-fallback-desc code{
  font-family:var(--mono);font-size:.66rem;
  background:rgba(255,255,255,.07);
  padding:.05rem .28rem;border-radius:3px;
  color:var(--accent);
}
/* Prim hierarchy stub (task 4.2) */
.dt-usd-prim-hierarchy{
  margin-top:.75rem;
  border:1px solid rgba(0,188,212,.18);
  border-radius:4px;
  background:rgba(0,11,25,.5);
  padding:.5rem .6rem;
  max-height:180px;
  overflow-y:auto;
}
.dt-usd-prim-header{
  font-size:.62rem;font-weight:600;
  color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.06em;
  margin-bottom:.4rem;
}
.dt-usd-prim-row{
  display:flex;align-items:baseline;gap:.35rem;
  font-family:var(--mono);font-size:.65rem;
  line-height:1.6;color:var(--text-secondary);
}
.dt-usd-prim-branch{color:rgba(0,188,212,.4)}
.dt-usd-prim-path{color:#9ad8e8;flex-shrink:0}
.dt-usd-prim-type{
  color:rgba(0,188,212,.55);font-size:.58rem;
  background:rgba(0,188,212,.07);
  padding:0 .28rem;border-radius:2px;
}
/* CDN loading dots */
.dt-usd-loader{
  display:flex;align-items:center;
  padding:1.5rem 1.25rem;gap:.35rem;
  color:var(--text-muted);font-size:.72rem;
}
.dt-usd-loader-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);opacity:.4;
  animation:dt-usd-pulse 1.2s ease-in-out infinite;
}
.dt-usd-loader-dot:nth-child(2){animation-delay:.2s}
.dt-usd-loader-dot:nth-child(3){animation-delay:.4s}
@keyframes dt-usd-pulse{
  0%,100%{opacity:.2;transform:scale(.8)}
  50%{opacity:.9;transform:scale(1)}
}

/* ── DT SCENE INSPECTOR (Task 4.3) ── */
.dt-inspector-section{
  display:none;
  flex-direction:column;
  margin-top:.25rem;
  border:1px solid var(--border-medium);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg-elevated);
}
.dt-inspector-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:.45rem .75rem;
  border-bottom:1px solid var(--border-subtle);
  background:var(--bg-surface);
  flex-shrink:0;
}
.dt-inspector-header-title{
  font-size:.72rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.05em;
  color:var(--text-secondary);
}
.dt-inspector-header-badge{
  font-size:.65rem;font-family:var(--mono);
  color:var(--text-muted);
}
.dt-inspector-body{
  display:flex;min-height:0;
  height:240px;
}
.dt-inspector-wrap{
  display:flex;flex-direction:column;
  width:100%;
}
.dt-inspector-tree{
  width:38%;min-width:130px;
  border-right:1px solid var(--border-subtle);
  overflow-y:auto;
  padding:.3rem 0;
  background:var(--bg-surface);
  flex-shrink:0;
}
.dt-inspector-editor{
  flex:1;min-width:0;
  padding:.6rem .8rem;
  overflow-y:auto;
  background:var(--bg-elevated);
}
/* Tree item */
.dt-inspector-item{
  display:flex;align-items:center;gap:.4rem;
  padding:.3rem .6rem;
  font-size:.75rem;cursor:pointer;
  color:var(--text-secondary);
  transition:background .1s;
  outline:none;
  white-space:nowrap;
  border-left:2px solid transparent;
}
.dt-inspector-item:hover{
  background:var(--bg-hover);
  color:var(--text-primary);
}
.dt-inspector-item.selected{
  background:var(--accent-glow);
  color:var(--accent);
  border-left-color:var(--accent);
}
.dt-inspector-item:focus-visible{
  outline:2px solid var(--accent);outline-offset:-2px;
}
.dt-inspector-item-icon{
  font-size:.52rem;flex-shrink:0;opacity:.6;
}
.dt-inspector-item-name{
  font-family:var(--mono);font-size:.72rem;
  overflow:hidden;text-overflow:ellipsis;
}
.dt-inspector-empty{
  padding:.65rem .6rem;
  font-size:.7rem;color:var(--text-muted);
  line-height:1.5;
}
/* Editor */
.dt-inspector-editor-empty{
  height:100%;display:flex;
  align-items:center;justify-content:center;
  font-size:.72rem;color:var(--text-muted);
  text-align:center;
}
.dt-inspector-editor-header{
  font-size:.78rem;font-weight:600;
  color:var(--text-primary);
  margin-bottom:.65rem;
  font-family:var(--mono);
  border-bottom:1px solid var(--border-subtle);
  padding-bottom:.35rem;
}
.dt-inspector-prop-row{
  display:flex;align-items:center;
  gap:.55rem;margin-bottom:.45rem;
}
.dt-inspector-prop-label{
  font-size:.7rem;color:var(--text-secondary);
  width:58px;flex-shrink:0;
}
.dt-inspector-prop-val{
  font-size:.65rem;font-family:var(--mono);
  color:var(--text-muted);
}
.dt-inspector-color-input{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid var(--border-medium);
  border-radius:4px;
  width:34px;height:22px;
  padding:1px;
  cursor:pointer;
  background:none;
  flex-shrink:0;
}
.dt-inspector-color-input::-webkit-color-swatch-wrapper{padding:1px}
.dt-inspector-color-input::-webkit-color-swatch{border:none;border-radius:2px}
.dt-inspector-color-input:focus-visible{outline:2px solid var(--accent)}

@media(max-width:768px){
  .dt-inspector-body{height:200px}
  .dt-inspector-tree{width:46%;min-width:110px}
}

/* Modality-based admin (reusable) */
.modality-badge{
  display:inline-flex;align-items:center;gap:.25rem;
  font-size:.68rem;padding:.15rem .45rem;border-radius:999px;
  border:1px solid var(--border-subtle);background:rgba(255,255,255,.04);
}
.modality-badge--on{border-color:var(--accent);color:var(--accent)}
.modality-badge--off{opacity:.45}
.modality-checklist{display:grid;gap:.35rem;max-height:280px;overflow:auto}
.modality-check{display:flex;align-items:flex-start;gap:.4rem;font-size:.78rem}
.client-selector-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));
  gap:.75rem;
  max-height:min(52vh,520px);
  overflow-y:auto;
  overflow-x:hidden;
  padding:.15rem .1rem .5rem;
  -webkit-overflow-scrolling:touch;
}
.client-selector-card{
  padding:.85rem .75rem;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);
  text-align:center;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;
  background:var(--bg-surface);min-height:120px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
}
.client-selector-card:hover{border-color:var(--border-medium);background:var(--bg-hover)}
.client-selector-card.is-selected{
  border-color:var(--accent);background:var(--accent-glow);
  box-shadow:0 0 0 1px rgba(0,188,212,.35);
}
.client-selector-card .client-logo{width:44px;height:44px;object-fit:contain}
.client-selector-card .client-name{font-size:.8rem;font-weight:600;line-height:1.25;word-break:break-word}
.industry-badge{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.04em;
  color:var(--text-muted);padding:.12rem .45rem;border-radius:999px;
  background:var(--bg-elevated);border:1px solid var(--border-subtle);
}
@media(max-width:600px){
  .login-overlay{padding:1rem .75rem 2rem}
  .client-selector-grid{max-height:50vh;grid-template-columns:1fr}
  .login-step-actions .btn{width:100%}
}
.client-logo-sm{width:24px;height:24px;object-fit:contain}
.client-name-sm{font-size:.75rem;font-weight:600}
.change-client-btn{font-size:.65rem;padding:.15rem .4rem}
