:root {
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-line: rgba(37, 99, 235, 0.24);
  --bg: #f5f7fb;
  --bg-2: #eef4fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --line-strong: #cbd5e1;
  --shadow: 0 18px 42px rgba(15,23,42,.08);
  --radius: 16px;
  --radius-sm: 12px;
  --ok: #059669;
  --warn: #b7791f;
  --bad: #dc2626;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:linear-gradient(180deg,#ffffff,#f5f7fb 42%,#eef4fb);color:var(--text);font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
html{color-scheme:light}
body{padding:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
input,select,textarea{color-scheme:light}
.page{max-width:none;width:100%;margin:0 auto;padding:20px 18px 28px}
.brand-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.brand-wrap{display:flex;align-items:center;gap:14px;min-width:0}
.brand-logo{width:48px;height:48px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.03);padding:8px;object-fit:contain;box-shadow:var(--shadow)}
.brand-title{margin:0;font-size:24px;font-weight:800;letter-spacing:.01em}
.brand-sub{margin:4px 0 0;color:var(--muted);font-size:13px}
.brand-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.page-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;align-items:start}
.left-col,.right-col{display:flex;flex-direction:column;gap:14px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:16px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.stack{display:flex;flex-direction:column;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 14px;border-radius:14px;border:1px solid transparent;background:var(--accent);color:#07110a;font-weight:800}
.btn.secondary{background:rgba(255,255,255,.04);color:var(--text);border-color:var(--line)}
.btn.bad{background:rgba(255,137,137,.92);color:#260808}
.btn.warn{background:rgba(255,214,103,.94);color:#2a2100}
.btn.small{min-height:36px;padding:0 12px;border-radius:12px;font-size:13px}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--muted)}
.icon-btn{width:42px;min-width:42px;padding:0}
.notice{padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted)}
.notice.error{border-color:rgba(255,137,137,.35);color:#ffd0d0}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:100%;max-width:440px;padding:28px 24px}
.login-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.login-head .brand-logo{width:56px;height:56px}
.login-title{margin:0;font-size:24px}
.login-sub{margin:6px 0 0;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.field input,.field select,.field textarea{width:100%;min-height:44px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.03);padding:11px 13px;color:var(--text);outline:none}
.field textarea{min-height:88px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent-line);box-shadow:0 0 0 4px rgba(39,226,138,.08)}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid transparent;background:rgba(255,255,255,.05)}
.pill.ok{background:rgba(125,255,188,.14);color:#d8ffe9;border-color:rgba(125,255,188,.16)}
.pill.warning{background:rgba(255,214,103,.16);color:#fff1bf;border-color:rgba(255,214,103,.18)}
.pill.critical{background:rgba(255,137,137,.16);color:#ffdada;border-color:rgba(255,137,137,.18)}
.pill.muted{background:rgba(255,255,255,.05);color:#dde1eb;border-color:var(--line)}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.stat-card{padding:12px;border-radius:18px;border:1px solid var(--line);background:var(--panel-soft)}
.stat-card .k{font-size:12px;color:var(--muted);margin-bottom:6px}
.stat-card .v{font-size:24px;font-weight:900}
.stat-card .s{font-size:12px;color:var(--muted);margin-top:4px}
.filter-card .field{margin-top:10px}
.filter-grid{display:grid;grid-template-columns:1fr 146px;gap:10px}
.filter-actions{display:flex;gap:8px;margin-top:10px}
.filter-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:2px;scrollbar-width:none}
.filter-tabs::-webkit-scrollbar{display:none}
.tab-btn{white-space:nowrap;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted);padding:10px 12px;border-radius:999px;font-weight:700}
.tab-btn.active{background:var(--accent-soft);border-color:var(--accent-line);color:#d8ffe9}
.admin-main-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.admin-section[hidden]{display:none!important}
.admin-table-space{margin-top:14px}
.admin-context-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 16px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.014));
}
.admin-context-bar strong{
  display:block;
  color:var(--text);
  font-size:18px;
  line-height:1.15;
  font-weight:950;
}
.admin-context-bar span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  font-weight:800;
}
.admin-context-switch{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.admin-context-switch:has([data-customer-mode]),
[data-customer-mode]{
  display:none!important;
}
.admin-workspace-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.workspace-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
}
.workspace-head h3{
  margin:0 0 6px;
  color:var(--text);
  font-size:24px;
  line-height:1.12;
  font-weight:950;
}
.workspace-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.workspace-subtabs{
  display:flex;
  align-items:center;
  gap:8px;
  overflow:auto;
  scrollbar-width:none;
  padding-bottom:2px;
}
.workspace-subtabs::-webkit-scrollbar{display:none}
.workspace-panel{display:none}
.workspace-panel.active{display:block}
.workspace-panel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:12px 2px 0;
}
.workspace-panel-head strong{
  color:var(--text);
  font-size:16px;
  line-height:1.2;
  font-weight:950;
}
.workspace-panel-head span{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  font-weight:800;
  text-align:right;
}
.operations-workspace{display:flex;flex-direction:column;gap:12px}
.operations-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(39,226,138,.08),rgba(255,255,255,.025) 52%,rgba(92,179,255,.045));
  box-shadow:var(--shadow);
}
.operations-hero h3{margin:0 0 4px;color:var(--text);font-size:24px;line-height:1.12;font-weight:950}
.operations-actions{align-items:flex-start}
.operations-summary-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-height:0;
}
.operations-summary-line:empty{display:none}
.operations-summary-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:var(--muted);
  font-size:12px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
}
.operations-summary-pill b{color:var(--text);font-size:13px;font-weight:950}
.operations-summary-pill:is(button){cursor:pointer}
.operations-summary-pill.active{border-color:rgba(39,226,138,.52);box-shadow:0 0 0 3px rgba(39,226,138,.08);color:#d8ffe9}
.operations-summary-pill.critical{border-color:rgba(255,137,137,.34);background:rgba(255,137,137,.075)}
.operations-summary-pill.warning{border-color:rgba(255,214,103,.30);background:rgba(255,214,103,.065)}
.operations-summary-pill.ok{border-color:rgba(39,226,138,.24);background:rgba(39,226,138,.055)}
.operations-focus{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}
.operations-nav-panel{position:static}
.operations-check-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(188px,1fr));gap:10px;min-width:0}
.operations-check-btn{
  width:100%;
  min-width:0;
  min-height:118px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:13px;
  align-items:stretch;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  text-align:left;
  box-shadow:0 16px 42px rgba(0,0,0,.18);
  transition:border-color .15s ease,background .15s ease,transform .15s ease,box-shadow .15s ease;
}
.operations-check-btn:hover,.operations-check-btn.active{border-color:rgba(39,226,138,.36);background:rgba(39,226,138,.07);transform:translateY(-1px)}
.operations-check-btn.critical{background:rgba(255,137,137,.06);border-color:rgba(255,137,137,.18)}
.operations-check-btn.warning{background:rgba(255,214,103,.045);border-color:rgba(255,214,103,.16)}
.operations-check-btn.ok{background:rgba(39,226,138,.04)}
.operations-check-btn.active{box-shadow:0 0 0 3px rgba(39,226,138,.08),0 18px 46px rgba(0,0,0,.24)}
.operations-check-btn.active.critical{border-color:rgba(255,137,137,.42);box-shadow:0 0 0 3px rgba(255,137,137,.08),0 18px 46px rgba(0,0,0,.24)}
.operations-check-btn.active.warning{border-color:rgba(255,214,103,.38);box-shadow:0 0 0 3px rgba(255,214,103,.08),0 18px 46px rgba(0,0,0,.24)}
.operations-check-main{min-width:0}
.operations-check-main strong{display:block;color:var(--text);font-size:15px;line-height:1.2;font-weight:950}
.operations-check-main small{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:780}
.operations-check-side{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;min-width:0}
.operations-check-side b{color:var(--text);font-size:18px;line-height:1;font-weight:950}
.operations-detail-panel{min-height:360px}
.operations-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.operations-detail-head strong{display:block;color:var(--text);font-size:18px;line-height:1.2;font-weight:950}
.operations-detail-head span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:800}
.operations-detail{min-width:0}
.operations-subtitle{margin:12px 0 8px;color:var(--text);font-size:13px;line-height:1.25;font-weight:950}
.operations-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(380px,.75fr);gap:12px;align-items:start}
.operations-layout-bottom{grid-template-columns:minmax(0,1.35fr) minmax(400px,.65fr)}
.operations-panel{
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}
.operations-table-panel{overflow:hidden}
.operations-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.operations-panel-head strong{display:block;color:var(--text);font-size:17px;line-height:1.2;font-weight:950}
.operations-panel-head span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:800}
.operations-table-mount,.operations-list,.operations-problem-list{min-width:0}
.operations-table-wrap{
  overflow:auto;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.015);
}
.operations-table{
  width:100%;
  min-width:920px;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
  color:var(--text);
  font-size:13px;
}
.operations-table.compact{min-width:720px}
.operations-users-table{min-width:1180px}
.operations-table th{
  position:sticky;
  top:0;
  z-index:1;
  padding:10px 11px;
  background:rgba(17,18,27,.98);
  border-bottom:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:0;
  white-space:nowrap;
}
.operations-table td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.065);
  vertical-align:top;
  word-break:break-word;
}
.operations-users-table td{padding:8px 10px}
.operations-table tbody tr{background:rgba(255,255,255,.012)}
.operations-table tbody tr:nth-child(2n){background:rgba(255,255,255,.024)}
.operations-table tbody tr.critical td{background:rgba(255,137,137,.055)}
.operations-table tbody tr.warning td{background:rgba(255,214,103,.040)}
.operations-table tbody tr.ok td{background:rgba(39,226,138,.032)}
.operations-table tbody tr:hover td{background:rgba(39,226,138,.055)}
.operations-table strong{display:block;color:var(--text);font-size:13px;line-height:1.3;font-weight:950}
.operations-table span,.operations-table small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:760}
.operations-tone{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
}
.operations-tone.critical{border-color:rgba(255,137,137,.42);background:rgba(255,137,137,.12);color:#ffd6d6}
.operations-tone.warning{border-color:rgba(255,214,103,.38);background:rgba(255,214,103,.11);color:#ffe5a1}
.operations-tone.ok{border-color:rgba(39,226,138,.32);background:rgba(39,226,138,.10);color:#d8ffe9}
.operations-issue-list{display:grid;grid-template-columns:1fr;gap:4px}
.operations-issue{display:block;max-width:100%;padding:4px 7px;border-radius:8px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--text);font-size:11px;line-height:1.25;font-weight:850;white-space:normal}
.operations-section-control{display:grid;grid-template-columns:1fr;align-items:start;gap:5px;min-width:0}
.operations-section-control .operations-tone{width:max-content;max-width:100%;min-height:22px;padding:3px 7px;border-radius:8px;font-size:11px;font-weight:950}
.operations-section-control small{display:block;margin-top:0;color:var(--muted);font-size:11px;line-height:1.25;font-weight:820}
.operations-section-strip{display:flex;align-items:center;gap:3px;flex-wrap:wrap;max-width:168px}
.operations-section-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  min-width:25px;
  height:18px;
  margin-top:0;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  color:var(--text);
  font-size:8px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
}
.operations-section-dot.status-ok{border-color:rgba(39,226,138,.35);background:rgba(39,226,138,.14);color:#dfffea}
.operations-section-dot.status-observe{border-color:rgba(92,179,255,.35);background:rgba(92,179,255,.12);color:#dcefff}
.operations-section-dot.status-warning{border-color:rgba(255,209,102,.42);background:rgba(255,209,102,.12);color:#fff4c8}
.operations-section-dot.status-error,.operations-section-dot.status-blocked{border-color:rgba(255,95,95,.42);background:rgba(255,95,95,.14);color:#ffdede}
.operations-section-empty{display:inline-flex;align-items:center;height:18px;margin-top:0;color:var(--muted);font-size:11px;line-height:1;font-weight:850}
.operations-dev-note{display:grid;gap:4px;min-width:0;color:var(--muted);font-size:11px;line-height:1.3;font-weight:760}
.operations-dev-note code{display:block;max-width:100%;padding:3px 5px;border-radius:6px;background:rgba(255,255,255,.045);color:#d8ffe9;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;line-height:1.25;white-space:normal;word-break:break-word}
.operations-dev-note span{display:block;margin-top:0;color:#d8deec;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;line-height:1.35;font-weight:780;white-space:normal}
.operations-action-cell span{margin-top:0;font-size:12px;line-height:1.3;color:var(--text)}
.operations-empty{padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:12px;color:var(--muted);font-size:13px;font-weight:800}
.operations-system-list:empty{display:none}
@media (max-width: 1180px){
  .operations-hero,.operations-layout,.operations-layout-bottom,.operations-focus{grid-template-columns:1fr}
  .operations-nav-panel{position:static}
}
@media (max-width: 760px){
  .operations-hero{padding:14px}
  .operations-actions{justify-content:flex-start}
  .operations-table{min-width:760px}
  .operations-table.compact{min-width:640px}
}
.partner-code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
  color:#d8ffe9;
  margin-top:5px;
}
.partner-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.list-shell{padding:8px}
.list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 12px 8px}
.list-head h2,.detail-head h2{margin:0;font-size:18px}
.list-head p,.detail-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.customer-list{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 300px);overflow:auto;padding:2px}
.customer-item{padding:12px;border-radius:18px;border:1px solid transparent;background:rgba(255,255,255,.025);cursor:pointer;transition:.16s ease}
.customer-item:hover{border-color:var(--line-strong);background:rgba(255,255,255,.04)}
.customer-item.active{border-color:var(--accent-line);background:rgba(39,226,138,.09);box-shadow:0 0 0 1px rgba(39,226,138,.08)}
.customer-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:7px}
.customer-name{font-size:15px;font-weight:800;line-height:1.25}
.customer-meta{font-size:12px;color:var(--muted)}
.customer-secondary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-size:12px;color:var(--muted)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.empty{padding:16px;border-radius:16px;border:1px dashed var(--line);color:var(--muted);text-align:center}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:8px}
.detail-shell{display:flex;flex-direction:column;gap:14px}
.detail-head{padding:18px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:12px;align-items:start}
.hero-main{display:flex;flex-direction:column;gap:12px}
.hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.hero-title{margin:0;font-size:26px;line-height:1.1}
.hero-sub{margin:6px 0 0;color:var(--muted)}
.quick-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.quick-card{padding:12px;border-radius:18px;background:var(--panel-soft);border:1px solid var(--line)}
.quick-card .k{font-size:12px;color:var(--muted);margin-bottom:6px}
.quick-card .v{font-size:18px;font-weight:900}
.quick-card .s{font-size:12px;color:var(--muted);margin-top:4px}
.registrations-card{display:flex;flex-direction:column;gap:12px}
.registrations-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.registrations-head h2{margin:0;font-size:20px;line-height:1.15}
.registrations-head p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.registrations-head span{display:inline-flex;align-items:center;min-height:34px;border:1px solid rgba(39,226,138,.24);border-radius:999px;background:rgba(39,226,138,.07);padding:5px 12px;color:#d9ffe9;font-size:12px;font-weight:850;white-space:nowrap}
.registrations-summary .quick-card:first-child{border-color:rgba(39,226,138,.26);background:linear-gradient(135deg,rgba(39,226,138,.12),rgba(255,255,255,.025))}
.kv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kv-item{padding:12px;border-radius:16px;border:1px solid var(--line);background:var(--panel-soft)}
.kv-item .k{font-size:12px;color:var(--muted);margin-bottom:6px}
.kv-item .v{word-break:break-word}
.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.panel-title h3{margin:0;font-size:16px}
.section-list{display:flex;flex-direction:column;gap:12px}
details.section{background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden}
details.section[open]{border-color:var(--line-strong)}
details.section summary{list-style:none;cursor:pointer;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
details.section summary::-webkit-details-marker{display:none}
.summary-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.summary-main strong{font-size:15px}
.summary-main span{font-size:12px;color:var(--muted)}
.summary-right{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}
.section-body{padding:0 16px 16px;display:flex;flex-direction:column;gap:12px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.02)}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{font-size:12px;color:var(--muted);background:#10141e;position:sticky;top:0}
pre.console{margin:0;padding:12px;border-radius:16px;background:#0d1018;border:1px solid var(--line);max-height:240px;overflow:auto;white-space:pre-wrap;word-break:break-word}
.legend{display:flex;gap:8px;flex-wrap:wrap}
.helper{font-size:12px;color:var(--muted)}
.partner-link-cell{display:flex;align-items:center;gap:8px;min-width:260px;max-width:420px}
.link-copy-text{appearance:none;border:0;background:transparent;color:#35e58f;padding:0;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;cursor:pointer;font:inherit;font-size:12px}
.link-copy-text:hover{text-decoration:underline}
.partner-copy-btn{white-space:nowrap}
.payout-ledger-card{display:flex;flex-direction:column;gap:14px}
.payout-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.payout-note{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025)}
.ledger-block{display:flex;flex-direction:column;gap:8px}
.ledger-block h4{margin:0;font-size:14px}
.ledger-table{min-width:820px}
@media (max-width: 1320px){
  .page-grid{grid-template-columns:1fr}
  .customer-list{max-height:none}
}
@media (max-width: 1024px){
  .stat-grid,.quick-info,.kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-grid{grid-template-columns:1fr}
}
@media (max-width: 680px){
  .page{padding:14px}
  .brand-bar{align-items:flex-start;flex-direction:column}
  .filter-grid,.stat-grid,.quick-info,.kv-grid{grid-template-columns:1fr}
  .customer-secondary,.hero-top,.pagination,.registrations-head{align-items:flex-start;flex-direction:column}
  .workspace-head{grid-template-columns:1fr}
  .workspace-actions{justify-content:flex-start}
  .workspace-panel-head{align-items:flex-start;flex-direction:column}
  .workspace-panel-head span{text-align:left}
}


.notice[hidden]{display:none!important}
.split-main{grid-template-columns:minmax(0,2fr) minmax(340px,1fr);align-items:start}
.filter-card.compact{padding:12px 14px}
.filter-topline{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:10px;align-items:end}
.compact-field select,.compact-field input{min-height:40px}
.filter-actions-inline{justify-content:flex-end;align-self:end}
.compact-tabs .tab-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;font-size:12px}
.compact-tabs .tab-btn b{min-width:22px;height:22px;border-radius:999px;background:rgba(255,255,255,.07);display:inline-flex;align-items:center;justify-content:center;color:var(--text);font-size:11px;line-height:1;font-weight:950}
.compact-tabs .tab-btn.active b{background:rgba(39,226,138,.18);color:#eafff3}
.compact-head{padding:6px 8px 10px}.compact-head h2{font-size:16px}.compact-head p{font-size:12px}.compact-legend{gap:6px}
.customer-list{max-height:calc(100vh - 220px)}
.list-shell{padding:8px 10px}
.right-col{min-width:0}
.compact-detail-head{padding:14px 16px}
.compact-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.tab-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.tab-link{border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted);padding:9px 12px;border-radius:999px;font-weight:700;font-size:13px}
.tab-link.active{background:var(--accent-soft);border-color:var(--accent-line);color:#d8ffe9}
.tab-panel{display:none;padding:14px 16px}.tab-panel.active{display:block}
.compact-title{margin-bottom:4px}.pad-top{padding-top:8px}
.empty-state{min-height:280px;display:grid;place-items:center;text-align:center}
.aggregate-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.aggregate-link{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border-radius:16px;border:1px solid var(--line);background:var(--panel-soft);color:var(--text)}
.aggregate-link .label{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.aggregate-link:hover{border-color:var(--accent-line);background:rgba(39,226,138,.08)}
.compact-kv{grid-template-columns:repeat(2,minmax(0,1fr))}
.search-field input{min-height:40px}
@media (max-width: 1320px){.split-main{grid-template-columns:1fr}.customer-list{max-height:none}}
@media (max-width: 980px){.filter-topline{grid-template-columns:1fr}.filter-actions-inline{justify-content:flex-start}.compact-stats,.aggregate-links,.compact-kv{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 680px){.compact-stats,.aggregate-links,.compact-kv{grid-template-columns:1fr}}


.fixed-header{position:fixed;top:0;left:0;right:0;z-index:50;max-width:none;width:auto;border-radius:0;border-left:none;border-right:none;background:rgba(12,16,24,.92);backdrop-filter:blur(12px);padding:14px 24px;min-height:74px}
.fixed-header .brand-wrap{max-width:1480px;width:100%;margin:0 auto;display:flex;align-items:center;gap:14px}
.fixed-header .brand-logo{width:42px;height:42px;border-radius:14px}
.fixed-header .brand-title{font-size:22px;letter-spacing:.01em}
.top-offset{margin-top:96px}
.content-offset{margin-top:16px}
.filter-card.compact{padding:12px 14px 14px}
.filter-topline{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:10px;align-items:end}
.search-field input,.compact-field select,.filter-actions-inline .btn{min-height:42px;height:42px}
.filter-actions-inline{gap:8px}
.compact-tabs{margin-top:14px}
.page{padding-top:0}
.customer-list{max-height:calc(100vh - 250px)}
@media (max-width: 980px){.fixed-header{padding:12px 16px}.top-offset{margin-top:88px}.content-offset{margin-top:14px}}
@media (max-width: 680px){.fixed-header{padding:10px 12px;min-height:68px}.fixed-header .brand-title{font-size:18px}.top-offset{margin-top:80px}}


/* v6 compact responsive master-detail */
.compact-head-clean{padding:8px 8px 12px}
.compact-head-clean h2{font-size:16px;margin:0}
.split-main{grid-template-columns:minmax(420px,2fr) minmax(320px,1fr);transition:grid-template-columns .22s ease}
.split-main.has-selection{grid-template-columns:minmax(280px,1fr) minmax(560px,2fr)}
.left-col,.right-col{min-width:0}
.right-col{position:relative}
.detail-placeholder{min-height:420px;border-style:solid;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.015));color:var(--muted)}
.list-shell{padding:8px 10px 10px}
.customer-list{max-height:calc(100vh - 230px)}
.customer-item{padding:14px 14px 12px;border-radius:20px}
.customer-title{margin-bottom:4px}
.customer-meta{display:none}
.customer-secondary{margin-top:6px;font-size:12px}
.detail-shell{display:flex;flex-direction:column;gap:12px}
.detail-head{padding:16px 18px}
.hero-top{align-items:flex-start}
.hero-title{font-size:24px;line-height:1.1;max-width:18ch}
.hero-sub{font-size:13px}
.compact-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-card{padding:10px 12px;border-radius:16px}
.quick-card .v{font-size:16px}
.tab-nav{gap:6px}
.tab-link{padding:8px 11px;font-size:12px}
.tab-panel{padding:14px 16px 16px}
.aggregate-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.aggregate-link{padding:11px 12px;border-radius:14px}
.aggregate-link span:last-child{font-weight:800}
.kv-grid,.compact-kv{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kv-item{padding:10px 12px;border-radius:14px}
.panel-title{margin-bottom:10px}
.summary-main strong{font-size:14px}
.summary-main span{font-size:11px}
.fixed-header{position:fixed;top:0;left:0;right:0;z-index:60;max-width:none;width:auto;border-radius:0;border-left:none;border-right:none;background:rgba(10,13,18,.88);backdrop-filter:blur(16px);padding:14px 24px;min-height:74px;border-bottom:1px solid rgba(255,255,255,.06)}
.fixed-header .brand-wrap{max-width:1480px;width:100%;margin:0 auto;display:flex;align-items:center;gap:12px}
.fixed-header .brand-logo{width:36px;height:36px;padding:0;border:none;border-radius:0;background:none;box-shadow:none;object-fit:contain}
.fixed-header .brand-title{font-size:22px;letter-spacing:.01em;font-weight:800}
.mobile-detail-top{display:none}
.top-offset{margin-top:96px}
.content-offset{margin-top:16px}
@media (max-width: 1120px){
  .split-main{grid-template-columns:minmax(320px,1.4fr) minmax(300px,1fr)}
  .split-main.has-selection{grid-template-columns:minmax(260px,.9fr) minmax(0,1.6fr)}
}
@media (max-width: 860px){
  .page{padding:0 12px 18px}
  .top-offset{margin-top:82px}
  .content-offset{margin-top:12px}
  .filter-topline{grid-template-columns:1fr 100px auto;gap:8px}
  .compact-tabs{margin-top:10px}
  .customer-list{max-height:none}
  .split-main,.split-main.has-selection{grid-template-columns:1fr}
  .right-col{order:2}
  .left-col{order:1}
  .compact-stats,.aggregate-links,.compact-kv,.kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-placeholder{min-height:180px}
}
@media (max-width: 680px){
  .fixed-header{padding:10px 12px;min-height:64px}
  .fixed-header .brand-wrap{gap:10px}
  .fixed-header .brand-logo{width:30px;height:30px}
  .fixed-header .brand-title{font-size:18px}
  .top-offset{margin-top:74px}
  .filter-card.compact{padding:10px 10px 12px;border-radius:18px}
  .filter-topline{grid-template-columns:1fr;gap:8px}
  .filter-actions-inline{justify-content:stretch;width:100%}
  .filter-actions-inline .btn{flex:1}
  .compact-tabs{display:flex;flex-wrap:nowrap;overflow:auto;padding-bottom:2px;margin-top:8px}
  .split-main{gap:10px}
  .split-main.has-selection .left-col{display:none}
  .split-main.has-selection .right-col{display:flex}
  .mobile-detail-top{display:flex;justify-content:flex-start}
  .detail-shell{gap:10px}
  .detail-head{padding:14px}
  .hero-top{gap:10px}
  .hero-title{font-size:20px;max-width:none}
  .hero-sub{font-size:12px}
  .compact-stats,.aggregate-links,.compact-kv,.kv-grid{grid-template-columns:1fr}
  .tab-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tab-link{width:100%;justify-content:center;text-align:center}
  .tab-panel{padding:12px}
  .customer-item{padding:12px;border-radius:18px}
  .customer-name{font-size:14px}
  .customer-secondary{gap:6px}
  .pagination{padding:6px 4px 2px;gap:8px}
  .pagination .row{width:100%}
  .pagination .row .btn{flex:1}
  table{min-width:560px}
}

/* v7 focused UX refinements */
.admin-topbar{
  position:fixed;
  top:0;left:0;right:0;
  z-index:80;
  height:var(--nav-h,72px);
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(11,11,16,.88);
  backdrop-filter:blur(10px);
}
.admin-topbar-inner{
  width:100%;
  max-width:1480px;
  margin:0 auto;
  padding:0 22px;
  display:flex;
  align-items:center;
  gap:14px;
}
.admin-topbar .brand-mini{display:flex;align-items:center;min-width:0}
.admin-topbar .brand-mini img{
  height:34px;
  width:auto;
  object-fit:contain;
  border-radius:10px;
  background:transparent;
  display:block;
}
.admin-topbar-title{font-size:22px;font-weight:800;letter-spacing:.01em;color:var(--text)}
.top-offset{margin-top:calc(var(--nav-h,72px) + 22px)}

.v7-filter-topline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
}
.search-field-wide input,.filter-actions-inline .btn{min-height:44px;height:44px}
.filter-actions-inline{display:flex;gap:8px;align-items:flex-end}
.compact-tabs{margin-top:14px}
.desktop-status-tabs{display:flex}
.mobile-filter-menu{display:none;margin-top:12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.03);overflow:hidden}
.mobile-filter-menu summary{list-style:none;cursor:pointer;padding:12px 14px;display:flex;align-items:center;gap:10px;font-weight:700}
.mobile-filter-menu summary::-webkit-details-marker{display:none}
.filter-trigger-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.filter-trigger-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.mobile-filter-options{display:flex;flex-direction:column;gap:8px;padding:0 12px 12px}
.mobile-filter-options .tab-btn{text-align:left;justify-content:flex-start;border-radius:12px}

.split-main{grid-template-columns:minmax(420px,2fr) minmax(320px,1fr);align-items:stretch;transition:grid-template-columns .22s ease}
.split-main.has-selection{grid-template-columns:minmax(280px,1fr) minmax(620px,2fr)}
.left-col,.right-col{min-height:0}
.list-card-tall,.detail-placeholder{min-height:calc(100vh - 220px)}
.detail-placeholder{display:grid;place-items:center;text-align:center}
.pager-row{display:flex;flex-wrap:nowrap;width:100%;gap:8px}
.pager-row .btn{flex:1;min-width:0}
.pagination{padding:10px 6px 2px}

.detail-head{position:relative;overflow:hidden}
.detail-close{position:absolute;top:14px;right:14px;width:36px;min-width:36px;padding:0;border-radius:12px;z-index:2}
.hero-top{padding-right:44px}
.hero-sub{margin:6px 0 0;color:var(--muted);font-size:13px}
#detailStatus{align-self:flex-start}
.stats-inline-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.aggregate-links.aggregate-static{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.aggregate-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  padding:11px 12px;border-radius:14px;border:1px solid var(--line);
  background:var(--panel-soft);min-width:0
}
.aggregate-card .label{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.aggregate-card span:last-child{font-weight:800}
.aggregate-card .helper{font-size:12px;color:var(--muted);font-weight:500}
.quick-card .v{font-size:15px}
.quick-card .s{font-size:11px}
.compact-stats .quick-card{min-width:0}
.compact-stats .quick-card .v,.aggregate-card span:not(.label):not(.helper){word-break:break-word}

/* no duplicate stats row in data tab */
#cabinetStats{display:none !important}

@media (max-width: 1120px){
  .split-main.has-selection{grid-template-columns:minmax(250px,.95fr) minmax(0,1.7fr)}
  .aggregate-links.aggregate-static{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 860px){
  .admin-topbar-inner{padding:0 14px}
  .admin-topbar-title{font-size:19px}
  .top-offset{margin-top:calc(var(--nav-h,72px) + 12px)}
  .split-main,.split-main.has-selection{grid-template-columns:1fr}
  .detail-close{display:none}
  .list-card-tall,.detail-placeholder{min-height:auto}
  .desktop-status-tabs{display:none}
  .mobile-filter-menu{display:block}
}
@media (max-width: 680px){
  .page{padding:0 12px 18px}
  .admin-topbar{height:64px}
  .admin-topbar-inner{padding:0 12px;gap:10px}
  .admin-topbar .brand-mini img{height:30px}
  .admin-topbar-title{font-size:18px}
  .top-offset{margin-top:76px}
  .v7-filter-topline{grid-template-columns:1fr;gap:10px}
  .filter-actions-inline{width:100%}
  .filter-actions-inline .btn{flex:1}
  .split-main:not(.has-selection) .right-col{display:none}
  .split-main.has-selection .left-col{display:none}
  .split-main.has-selection .right-col{display:flex}
  .detail-placeholder{display:none !important}
  .mobile-detail-top{display:flex;justify-content:flex-start}
  .stats-inline-4,.aggregate-links.aggregate-static,.compact-kv,.kv-grid{grid-template-columns:1fr}
  .tab-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tab-link{width:100%;text-align:center;justify-content:center}
  .pagination{padding:8px 0 2px}
}


/* v8 manage tab refinement */
.admin-topbar .brand-mini img{border-radius:0;height:32px}
.manage-body{display:flex;flex-direction:column;gap:14px}
.manage-actions-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btn.btn-green{background:#22c55e;border-color:#22c55e;color:#08110b;box-shadow:0 10px 24px rgba(34,197,94,.18)}
.btn.btn-green:hover{background:#27d965;border-color:#27d965;color:#08110b}
.btn.btn-green.is-armed{background:#16a34a;border-color:#16a34a;color:#fff}
.btn.btn-dashed{background:transparent;border:1px dashed rgba(255,255,255,.28);color:var(--text);box-shadow:none}
.btn.btn-dashed:hover{border-color:rgba(39,226,138,.45);background:rgba(255,255,255,.03)}
.action-editor{border:1px solid rgba(39,226,138,.18);background:rgba(39,226,138,.06);padding:12px;border-radius:18px;display:flex;flex-direction:column;gap:12px}
.action-editor[hidden]{display:none!important}
.action-editor-grid{grid-template-columns:minmax(180px,240px)}
.inner-title{margin-top:4px;padding-top:4px;border-top:1px solid rgba(255,255,255,.06)}
.select-shell{position:relative}
.select-shell::after{content:"";position:absolute;right:14px;top:50%;width:10px;height:10px;margin-top:-6px;border-right:2px solid rgba(255,255,255,.55);border-bottom:2px solid rgba(255,255,255,.55);transform:rotate(45deg);pointer-events:none}
.select-shell select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:36px;background:linear-gradient(180deg,#121722,#0d121b);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.manage-save-row{margin-top:-2px}
.pager-row{flex-wrap:nowrap;justify-content:space-between}.pager-row .btn{flex:1 1 0}.pager-row .btn + .btn{margin-left:8px}
.stats-inline-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.stats-inline-4 .aggregate-card{min-width:0}
.stats-inline-4 .aggregate-card span:nth-child(2){font-size:17px;word-break:break-word}
@media (max-width: 1120px){
  .manage-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-inline-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width: 860px){
  .pager-row{flex-wrap:nowrap}
}
@media (max-width: 680px){
  .admin-topbar .brand-mini img{height:28px}
  .manage-actions-grid{grid-template-columns:1fr 1fr}
  .action-editor-grid{grid-template-columns:1fr}
  .stats-inline-4{grid-template-columns:1fr!important}
}

/* v8 final manage-tab and auth polish */
#detailsEmpty.desktop-hint{position:relative;color:transparent}
#detailsEmpty.desktop-hint::before{content:attr(data-hint);color:var(--muted);display:block;max-width:36ch;line-height:1.5;font-size:14px;font-weight:600;text-align:center}
.manage-actions-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.manage-actions-grid .btn{min-height:44px}
.action-pane[hidden]{display:none!important}
.action-inline-row{display:grid;grid-template-columns:minmax(120px,150px) minmax(0,1fr);gap:12px;align-items:end}
.compact-field input{text-align:center}
.comment-field input{width:100%}
.action-apply-row{justify-content:flex-start}
.action-confirm-line{font-weight:700;color:var(--text);padding:2px 2px 4px}
.manage-save-row .btn{min-height:44px}
.select-shell select,.field select{min-height:44px}
.btn.btn-green{background:#27d965;border-color:#27d965;color:#07110a;box-shadow:0 10px 24px rgba(39,217,101,.2)}
.btn.btn-green:hover{background:#33e570;border-color:#33e570;color:#07110a}
.btn.btn-dashed{border:1px dashed rgba(39,226,138,.45);color:var(--text);background:rgba(255,255,255,.02)}
.btn.btn-dashed:hover{background:rgba(39,226,138,.06);border-color:rgba(39,226,138,.7)}
#saveProfileBtn{min-width:220px}
.login-head{align-items:center;gap:12px}
.login-head .brand-logo,.bare-logo{width:42px;height:auto;padding:0;border:none;background:none;box-shadow:none;border-radius:0;object-fit:contain}
.login-card .btn{min-height:46px}
.login-sub{margin-top:4px}
#username::placeholder{color:transparent}
#password::placeholder{color:rgba(255,255,255,.42);letter-spacing:.18em}
.stats-inline-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.stats-inline-4 .aggregate-card{min-width:0}
.stats-inline-4 .aggregate-card span:nth-child(2){font-size:16px;line-height:1.25;white-space:normal}
.pager-row{flex-wrap:nowrap!important}
.pager-row .btn{flex:1 1 0;min-width:0}
@media (max-width: 1180px){
  .manage-actions-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stats-inline-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width: 860px){
  .manage-actions-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .action-inline-row{grid-template-columns:1fr;gap:10px}
}
@media (max-width: 680px){
  #detailsEmpty.desktop-hint::before{display:none}
  .manage-actions-grid-5{grid-template-columns:1fr 1fr}
  .action-inline-row{grid-template-columns:1fr}
  .stats-inline-4{grid-template-columns:1fr!important}
  #saveProfileBtn{width:100%}
}


/* v10 login refinements */
.login-head-wide{display:grid;grid-template-columns:minmax(132px,1fr) minmax(0,2fr);align-items:center;gap:16px;margin-bottom:20px}
.login-head-wide .brand-logo{border:none;background:transparent;box-shadow:none;padding:0;border-radius:0;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;max-width:168px;justify-self:start}
.login-logo-large{width:100%;max-width:168px;height:auto}
.login-title-wrap{min-width:0;display:flex;align-items:center}
.login-title{margin:0;font-size:28px;line-height:1.05;letter-spacing:.01em}
.login-sub{display:none!important}
@media (max-width:680px){.login-head-wide{grid-template-columns:minmax(108px,1fr) minmax(0,2fr);gap:12px}.login-head-wide .brand-logo,.login-logo-large{max-width:136px}.login-title{font-size:24px}}

.customer-group{display:flex;flex-direction:column;gap:6px}
.customer-group-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:stretch}
.customer-toggle{width:40px;min-width:40px;height:40px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.03);display:grid;place-items:center;color:var(--muted);cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease;margin-top:2px}
.customer-toggle:hover{border-color:var(--accent-line);background:rgba(39,226,138,.08);color:#d8ffe9}
.customer-toggle svg{width:18px;height:18px;transition:transform .22s ease}
.customer-toggle svg path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.customer-toggle.opened svg{transform:rotate(90deg)}
.customer-children{display:flex;flex-direction:column;gap:8px;max-height:0;overflow:hidden;opacity:0;transform:translateY(-4px);margin:0 0 0 48px;transition:max-height .24s ease,opacity .18s ease,transform .24s ease,margin-top .24s ease}
.customer-children.expanded{max-height:640px;opacity:1;transform:translateY(0);margin-top:2px}
.customer-child{background:rgba(255,255,255,.018)}
.customer-role-meta{margin-top:4px;font-size:12px;line-height:1.35;color:var(--muted);word-break:break-word}
.detail-status-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pill.crm{background:rgba(39,226,138,.08);color:#d8ffe9;border-color:rgba(39,226,138,.18)}
.pill.crm-auto{background:rgba(92,179,255,.10);color:#dcefff;border-color:rgba(92,179,255,.24)}
.customer-title-actions .pill.crm{max-width:100%}
.customer-title-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.customer-delete-btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03);color:#ffd4d4;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;transition:border-color .2s ease,background .2s ease}
.customer-delete-btn:hover{border-color:rgba(255,107,107,.45);background:rgba(255,107,107,.12)}
@media (max-width: 680px){
  .customer-group-row{grid-template-columns:34px minmax(0,1fr);gap:6px}
  .customer-toggle{width:34px;min-width:34px;height:34px;border-radius:12px}
  .customer-children{margin-left:18px}
  .customer-title-actions{justify-content:flex-start}
}

/* support tab */
.support-admin-card{display:flex;flex-direction:column;gap:16px}
.support-admin-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}
.support-admin-head h3{margin:0 0 6px;font-size:24px;line-height:1.15}
.support-toolbar{display:flex;align-items:center;gap:8px;min-width:520px}
.support-toolbar input,.support-toolbar select,.support-chat-header select{
  height:42px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.03);
  color:var(--text);font:inherit;font-weight:700;outline:none
}
.support-toolbar input{min-width:270px;padding:0 14px}
.support-toolbar select,.support-chat-header select{padding:0 12px}
.support-toolbar input:focus,.support-toolbar select:focus,.support-chat-header select:focus,.support-reply-form textarea:focus{
  border-color:rgba(39,226,138,.55);box-shadow:0 0 0 3px rgba(39,226,138,.10)
}
.support-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.support-stats div{border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:16px;padding:12px 14px}
.support-stats span{display:block;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.support-stats strong{display:block;margin-top:5px;font-size:22px;line-height:1;color:var(--text)}
.analytics-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}
.analytics-block-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:0 2px;
}
.analytics-block-title strong{
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:950;
}
.analytics-block-title span{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  font-weight:800;
  text-align:right;
}
.site-analytics-overview-block{margin-top:4px}
.site-analytics-overview-grid{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}
.site-analytics-subpanel{border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.018);min-width:0;overflow:hidden}
.support-panel-title-compact{height:46px;padding:0 12px}
.support-panel-title-compact strong{font-size:13px}
.support-panel-title-compact span{font-size:12px;line-height:1.25;text-align:right}
.site-analytics-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px}
.site-analytics-grid-stack{grid-template-columns:1fr}
.site-analytics-list{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:320px}
.site-analytics-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);padding:12px 14px}
.site-analytics-row strong{display:block;color:var(--text);font-size:14px;word-break:break-word}
.site-analytics-row span{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.site-analytics-row b{font-size:20px;line-height:1;color:var(--text)}
.site-analytics-table-wrap{padding:10px;overflow:auto}
.site-analytics-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;color:var(--text);font-size:13px}
.site-analytics-table.compact{min-width:860px}
.site-analytics-table th{position:sticky;top:0;z-index:1;background:rgba(16,16,24,.98);border-bottom:1px solid rgba(255,255,255,.09);padding:11px 12px;color:var(--muted);font-size:11px;font-weight:950;text-align:left;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.site-analytics-table td{border-bottom:1px solid rgba(255,255,255,.065);padding:13px 12px;vertical-align:top}
.site-analytics-table tbody tr{background:rgba(255,255,255,.018)}
.site-analytics-table tbody tr:nth-child(2n){background:rgba(255,255,255,.032)}
.site-analytics-table tbody tr:hover{background:rgba(39,226,138,.055)}
.site-analytics-table strong,.site-analytics-table b{display:block;color:var(--text);font-weight:950}
.site-analytics-table b{font-size:18px;line-height:1.1}
.site-analytics-table span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:750}
.site-analytics-table td.good b{color:var(--green)}
.site-analytics-table td.risk b{color:#ffd166}
.site-analytics-funnel{padding:10px;overflow-x:auto}
.site-funnel-steps{display:grid;grid-template-columns:repeat(5,minmax(178px,1fr));gap:10px;min-width:940px;align-items:stretch}
.site-funnel-step{
  position:relative;
  width:100%;
  min-height:158px;
  display:grid;
  grid-template-columns:1fr;
  align-content:start;
  gap:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.022);
  color:var(--text);
  text-align:left;
  font:inherit;
  cursor:pointer;
  padding:10px 12px;
  transition:border-color .15s ease,background .15s ease;
}
.site-funnel-step:hover{border-color:rgba(39,226,138,.34);background:rgba(39,226,138,.045)}
.site-funnel-step.active{border-color:rgba(39,226,138,.72);background:linear-gradient(135deg,rgba(39,226,138,.18),rgba(255,255,255,.026));box-shadow:0 12px 34px rgba(39,226,138,.08)}
.site-funnel-step:not(:last-child)::after{content:'›';position:absolute;right:-11px;top:50%;transform:translateY(-50%);width:20px;height:20px;display:grid;place-items:center;border:1px solid var(--line);border-radius:999px;background:#ffffff;color:var(--muted);font-size:18px;font-weight:950;z-index:2}
.site-funnel-index{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(39,226,138,.28);
  border-radius:999px;
  background:rgba(39,226,138,.08);
  color:#d9ffe9;
  font-size:13px;
  font-weight:950;
}
.site-funnel-main{min-width:0}
.site-funnel-main strong{display:block;color:var(--text);font-size:14px;font-weight:950;line-height:1.2}
.site-funnel-main small{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:750;line-height:1.3}
.site-funnel-main i{display:block;margin-top:8px;height:6px;border-radius:999px;background:rgba(255,255,255,.055);overflow:hidden}
.site-funnel-main em{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(39,226,138,.92),rgba(92,179,255,.82))}
.site-funnel-values{margin-top:auto;text-align:left}
.site-funnel-values b{display:block;color:var(--text);font-size:22px;line-height:1;font-weight:950}
.site-funnel-values small{display:block;margin-top:6px;color:var(--muted);font-size:11px;font-weight:750;line-height:1.3}
.site-funnel-table-label{color:#d9ffe9}
.site-analytics-table-panel{margin-top:14px}
.site-analytics-table-panel .site-analytics-table-wrap{max-height:690px}
.site-analytics-lead-summary{display:flex;flex-wrap:wrap;gap:8px;padding:10px 10px 0}
.site-analytics-lead-summary span{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(39,226,138,.18);border-radius:999px;background:rgba(39,226,138,.055);padding:7px 10px;color:var(--muted);font-size:12px;font-weight:850}
.site-analytics-lead-summary b{color:var(--text);font-size:14px}
.site-analytics-leads-table{min-width:1060px}
.site-visitor-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.018)}
.site-visitor-table{width:100%;min-width:1380px;border-collapse:separate;border-spacing:0;color:var(--text);font-size:13px}
.site-visitor-table th{position:sticky;top:0;z-index:1;background:rgba(15,15,22,.98);border-bottom:1px solid rgba(255,255,255,.10);padding:12px;color:var(--muted);font-size:11px;font-weight:950;text-align:left;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.site-visitor-table td{border-bottom:1px solid rgba(255,255,255,.065);padding:12px;vertical-align:top;background:rgba(255,255,255,.012)}
.site-visitor-table tbody tr:hover td{background:rgba(39,226,138,.045)}
.site-visitor-table tr.hot td{background:rgba(39,226,138,.024)}
.site-visitor-table tr.warm td{background:rgba(92,179,255,.020)}
.site-visitor-table tr.lost td{background:rgba(255,95,95,.026)}
.site-visitor-table strong,.site-visitor-table b{display:block;color:var(--text);font-weight:950}
.site-visitor-table b{font-size:18px;line-height:1.1}
.site-visitor-table span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:750}
.analytics-status{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.035);color:var(--text);font-size:12px;font-weight:950;white-space:nowrap}
.analytics-status.hot{border-color:rgba(39,226,138,.45);background:rgba(39,226,138,.13);color:#d9ffe9}
.analytics-status.warm{border-color:rgba(92,179,255,.35);background:rgba(92,179,255,.10);color:#dcefff}
.analytics-status.lost{border-color:rgba(255,95,95,.35);background:rgba(255,95,95,.10);color:#ffdede}
.site-visitor-journey.compact{margin-top:7px;padding:0;border:0;background:transparent;gap:4px}
.site-visitor-journey.compact .site-analytics-path-step,.site-visitor-journey.compact .site-analytics-path-more{min-height:22px;padding:2px 7px;font-size:11px}
.site-visitor-card{border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.024);padding:14px;min-width:0}
.site-visitor-card.hot{border-color:rgba(39,226,138,.34);background:rgba(39,226,138,.055)}
.site-visitor-card.warm{border-color:rgba(92,179,255,.24);background:rgba(92,179,255,.04)}
.site-visitor-card.lost{border-color:rgba(255,95,95,.24);background:rgba(255,95,95,.035)}
.site-visitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.site-visitor-head strong{display:block;font-size:15px;color:var(--text)}
.site-visitor-head span{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:750}
.site-visitor-head b{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid rgba(255,255,255,.10);border-radius:999px;background:rgba(255,255,255,.035);font-size:12px;white-space:nowrap}
.site-visitor-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}
.site-visitor-metrics span{border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(0,0,0,.12);padding:8px;color:var(--muted);font-size:11px;font-weight:750;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-visitor-metrics b{display:block;color:var(--text);font-size:13px;overflow:hidden;text-overflow:ellipsis}
.site-visitor-journey{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(0,0,0,.10)}
.site-analytics-path-step,.site-analytics-path-more{display:inline-flex;align-items:center;min-height:25px;border:1px solid rgba(39,226,138,.20);border-radius:999px;background:rgba(39,226,138,.07);padding:3px 9px;color:#d9ffe9;font-size:12px;font-weight:850}
.site-analytics-path-arrow{color:var(--muted);font-size:12px}
.site-analytics-path-empty{color:var(--muted);font-size:12px;font-weight:800}
.site-analytics-path-more{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--muted)}
.site-visitor-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.site-visitor-bottom>div{border-left:2px solid rgba(39,226,138,.35);padding-left:10px;min-width:0}
.site-visitor-bottom span{display:block;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.site-visitor-bottom strong{display:block;margin-top:4px;color:var(--text);font-size:13px;line-height:1.25;word-break:break-word}
.site-visitor-reason{grid-column:1/-1}
.site-visitor-reason small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45;font-weight:700}
.analytics-replay-open{overflow:hidden}
.site-analytics-replay[hidden]{display:none}
.site-analytics-replay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:28px}
.site-analytics-replay-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(6px)}
.site-analytics-replay-panel{position:relative;z-index:1;width:min(1320px,calc(100vw - 42px));max-height:calc(100vh - 42px);overflow:auto;border:1px solid rgba(39,226,138,.24);border-radius:24px;background:linear-gradient(135deg,rgba(18,24,31,.98),rgba(10,10,16,.98));box-shadow:0 30px 90px rgba(0,0,0,.55);padding:22px}
.site-analytics-replay-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:16px}
.site-analytics-replay-panel h3{margin:10px 0 4px;color:var(--text);font-size:28px;line-height:1.08}
.site-analytics-replay-panel p{margin:0;color:var(--muted);font-size:14px;font-weight:750}
.analytics-replay-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}
.analytics-replay-summary span{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.028);padding:12px;color:var(--muted);font-size:12px;font-weight:800}
.analytics-replay-summary b{display:block;color:var(--text);font-size:24px;line-height:1.05}
.analytics-replay-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:16px}
.analytics-replay-screen{position:relative;min-height:620px;border:1px solid var(--line);border-radius:20px;background:#f8fafc;overflow:hidden}
.analytics-replay-url{min-height:42px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.34);padding:8px 12px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden}
.analytics-replay-url span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:950;letter-spacing:.04em}
.analytics-replay-url strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--text);font-size:13px}
.analytics-replay-url a{margin-left:auto;color:#d9ffe9;text-decoration:none;border:1px solid rgba(39,226,138,.24);border-radius:999px;padding:4px 9px;background:rgba(39,226,138,.08)}
.analytics-replay-page{position:absolute;left:12px;right:12px;top:54px;bottom:12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:#fff;overflow:hidden}
.analytics-replay-page iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.analytics-replay-overlay{position:absolute;inset:0;z-index:2;pointer-events:none}
.analytics-replay-line{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.analytics-replay-line polyline{fill:none;stroke:rgba(33,132,226,.72);stroke-width:.28;stroke-linecap:round;stroke-linejoin:round}
.analytics-replay-dot{position:absolute;z-index:2;width:13px;height:13px;margin:-6px 0 0 -6px;border:2px solid rgba(255,255,255,.75);border-radius:999px;background:#5cb3ff;box-shadow:0 0 0 5px rgba(92,179,255,.13)}
.analytics-replay-dot.site_click,.analytics-replay-dot.signup_click{width:18px;height:18px;margin:-9px 0 0 -9px;background:var(--green);box-shadow:0 0 0 7px rgba(39,226,138,.16)}
.analytics-replay-dot.page_exit{background:#ff6b6b;box-shadow:0 0 0 6px rgba(255,95,95,.14)}
.analytics-replay-dot i{display:none}
.analytics-replay-no-points{position:absolute;left:50%;bottom:18px;width:min(620px,86%);max-height:36%;overflow:auto;transform:translateX(-50%);border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(8,11,16,.86);padding:14px;color:var(--muted);font-size:14px;font-weight:800;text-align:left;line-height:1.45;box-shadow:0 16px 42px rgba(0,0,0,.36)}
.analytics-replay-no-points strong{display:block;color:var(--text);font-size:16px;margin-bottom:6px}
.analytics-replay-no-points span{display:block;color:var(--muted);font-size:13px}
.analytics-replay-hint{margin-top:10px;color:var(--muted);font-size:12px;font-weight:750;line-height:1.45}
.analytics-replay-drop{border:1px solid rgba(255,95,95,.24);border-radius:16px;background:linear-gradient(135deg,rgba(255,95,95,.10),rgba(255,255,255,.022));padding:14px;margin-bottom:12px}
.analytics-replay-drop span{display:block;color:#ffdede;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.03em}
.analytics-replay-drop strong{display:block;margin-top:6px;color:var(--text);font-size:22px;word-break:break-word}
.analytics-replay-drop p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.45;font-weight:800}
.analytics-replay-drop dl{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0 0}
.analytics-replay-drop dl div{border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.026);padding:9px 10px}
.analytics-replay-drop dt{color:var(--muted);font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.03em}
.analytics-replay-drop dd{margin:4px 0 0;color:var(--text);font-size:13px;font-weight:850;word-break:break-word}
.analytics-replay-reason{border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025);padding:14px;margin-bottom:12px}
.analytics-replay-reason span{display:block;color:var(--muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.03em}
.analytics-replay-reason strong{display:block;margin-top:6px;color:var(--text);font-size:18px}
.analytics-replay-reason p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.analytics-replay-timeline{display:flex;flex-direction:column;gap:8px;max-height:470px;overflow:auto;margin:0;padding:0;list-style:none}
.analytics-replay-timeline li{border-left:3px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.025);padding:10px 12px}
.analytics-replay-timeline li.site_click,.analytics-replay-timeline li.signup_click{border-left-color:rgba(39,226,138,.70)}
.analytics-replay-timeline li.mouse_move{border-left-color:rgba(92,179,255,.62)}
.analytics-replay-timeline li.page_exit{border-left-color:rgba(255,95,95,.66)}
.analytics-replay-timeline time{display:block;color:var(--muted);font-size:11px;font-weight:850}
.analytics-replay-timeline b{display:block;margin-top:4px;color:var(--text);font-size:13px}
.analytics-replay-timeline span,.analytics-replay-timeline small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:750;word-break:break-word}
.support-admin-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:14px;min-height:620px}
.support-channel-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  margin:14px 0 12px;
  overflow:auto;
  scrollbar-width:none;
}
.support-channel-tabs::-webkit-scrollbar{display:none}
.support-box-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  margin:-4px 0 14px;
  overflow:auto;
  scrollbar-width:none;
}
.support-box-tabs::-webkit-scrollbar{display:none}
.support-panel{border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.018);min-width:0;overflow:hidden}
.support-panel-title{height:52px;padding:0 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.support-panel-title strong{font-size:14px}
.support-panel-title span{color:var(--muted);font-size:13px;font-weight:800}
.support-ticket-list{display:flex;flex-direction:column;gap:8px;padding:10px;max-height:568px;overflow:auto}
.support-ticket-item{border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.025);padding:12px;cursor:pointer;text-align:left;color:var(--text)}
.support-ticket-item:hover,.support-ticket-item.active{border-color:rgba(39,226,138,.42);background:rgba(39,226,138,.07)}
.support-ticket-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.support-ticket-badges{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.support-source-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:850;border:1px solid rgba(255,255,255,.10);white-space:nowrap}
.support-source-badge.site{background:rgba(39,226,138,.09);border-color:rgba(39,226,138,.22);color:#d8ffe9}
.support-source-badge.lead{background:rgba(255,209,102,.12);border-color:rgba(255,209,102,.28);color:#ffe4a3}
.support-source-badge.telegram{background:rgba(92,179,255,.10);border-color:rgba(92,179,255,.24);color:#d6ecff}
.support-ticket-title{font-weight:850;line-height:1.25;word-break:break-word}
.support-ticket-meta{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.4}
.support-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:850;border:1px solid rgba(255,255,255,.1);white-space:nowrap}
.support-badge.open{background:rgba(39,226,138,.10);border-color:rgba(39,226,138,.24);color:#c9ffdf}
.support-badge.answered{background:rgba(92,179,255,.10);border-color:rgba(92,179,255,.24);color:#d6ecff}
.support-badge.closed{background:rgba(255,255,255,.05);color:var(--muted)}
.support-badge.archived{background:rgba(255,209,102,.10);border-color:rgba(255,209,102,.24);color:#ffe4a3}
.support-chat-panel{display:flex;min-height:620px}
.support-chat-empty{width:100%;display:grid;place-items:center;color:var(--muted);font-weight:700}
.support-chat-view{display:flex;flex-direction:column;width:100%;min-height:0}
.support-chat-view[hidden]{display:none!important}
.support-chat-header{padding:14px 16px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.support-chat-header h4{margin:0 0 5px;font-size:20px;line-height:1.2;word-break:break-word}
.support-chat-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.support-chat-actions select{min-width:150px}
.support-lead-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.04)}
.support-lead-card div{display:flex;flex-direction:column;gap:4px;min-width:0}
.support-lead-card span{font-size:11px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.support-lead-card strong{font-size:13px;line-height:1.35;color:var(--text);word-break:break-word}
.support-messages{flex:1;display:flex;flex-direction:column;gap:10px;padding:14px;overflow:auto;background:rgba(0,0,0,.08)}
.support-message{max-width:min(720px,86%);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:10px 12px;background:rgba(255,255,255,.04)}
.support-message.admin{align-self:flex-end;background:rgba(39,226,138,.08);border-color:rgba(39,226,138,.18)}
.support-message.user{align-self:flex-start}
.support-message-meta{font-size:12px;color:var(--muted);font-weight:800;margin-bottom:5px}
.support-message-body{white-space:pre-wrap;line-height:1.45;word-break:break-word}
.support-attachment{display:inline-flex;margin-top:8px;color:#c9ffdf;font-weight:800}
.support-reply-form{border-top:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:10px;background:rgba(255,255,255,.02)}
.support-reply-form textarea{width:100%;min-height:96px;resize:vertical;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.03);color:var(--text);font:inherit;padding:12px;outline:none}
.support-reply-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}
.support-empty-list{padding:18px;color:var(--muted);text-align:center;font-weight:700}
@media (max-width: 1080px){
  .support-admin-head{grid-template-columns:1fr}
  .support-toolbar{min-width:0;width:100%;flex-wrap:wrap}
  .support-toolbar input{min-width:220px;flex:1}
  .support-admin-layout{grid-template-columns:1fr;min-height:auto}
  .support-ticket-list{max-height:360px}
  .site-analytics-overview-grid{grid-template-columns:1fr}
  .site-funnel-steps{min-width:880px}
  .site-visitor-table{min-width:1180px}
  .analytics-replay-grid{grid-template-columns:1fr}
  .analytics-replay-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analytics-replay-screen{min-height:420px}
}
@media (max-width: 680px){
  .admin-context-bar{align-items:flex-start;flex-direction:column}
  .admin-context-switch{width:100%}
  .admin-context-switch .tab-btn{flex:1;text-align:center}
  .analytics-block-title{align-items:flex-start;flex-direction:column}
  .analytics-block-title span{text-align:left}
  .support-stats{grid-template-columns:1fr 1fr}
  .site-funnel-steps{grid-template-columns:repeat(5,minmax(152px,1fr));min-width:780px}
  .site-funnel-step{gap:10px;min-height:150px}
  .site-funnel-index{width:30px;height:30px}
  .site-analytics-grid{grid-template-columns:1fr}
  .site-visitor-metrics,.site-visitor-bottom{grid-template-columns:1fr}
  .support-toolbar{display:grid;grid-template-columns:1fr}
  .support-toolbar input,.support-toolbar select,.support-toolbar .btn{width:100%;min-width:0}
  .support-chat-header{grid-template-columns:1fr}
  .support-chat-actions{justify-content:flex-start}
  .support-chat-actions select,.support-chat-actions .btn{width:100%;min-width:0}
  .support-message{max-width:100%}
  .support-reply-actions{flex-direction:column;align-items:stretch}
}

/* command center */
.admin-topbar-inner{display:flex;align-items:center;gap:12px;min-height:56px}
.admin-topbar-title{font-size:20px;line-height:1;font-weight:950;color:var(--text);white-space:nowrap}
.admin-main-tabs{position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:8px;padding:8px 0;background:linear-gradient(180deg,rgba(8,8,13,.98),rgba(8,8,13,.90));backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.07)}
.command-dashboard{display:flex;flex-direction:column;gap:10px}
.command-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid rgba(39,226,138,.16);border-radius:14px;background:linear-gradient(135deg,rgba(39,226,138,.075),rgba(255,255,255,.022) 54%,rgba(92,179,255,.035));padding:10px 12px;box-shadow:0 12px 32px rgba(0,0,0,.18)}
.command-kicker{margin:0 0 4px;color:var(--green);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:0}
.command-hero h1{margin:0;font-size:24px;line-height:1.08;color:var(--text);letter-spacing:0}
.command-hero p:not(.command-kicker){margin:4px 0 0;max-width:780px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:750}
.command-hero-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.dashboard-period-controls{display:flex;align-items:center;gap:8px;min-height:36px;min-width:0}
.dashboard-period-caption{color:var(--muted);font-size:12px;line-height:1;font-weight:900;white-space:nowrap}
.dashboard-period-tabs{display:flex;align-items:center;gap:3px;min-width:0;padding:3px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(0,0,0,.18)}
.dashboard-period-tab{min-height:28px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:900;line-height:1;white-space:nowrap;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.dashboard-period-tab:hover:not(:disabled){background:rgba(255,255,255,.07);color:var(--text)}
.dashboard-period-tab.active{background:rgba(39,226,138,.16);color:var(--text);box-shadow:inset 0 0 0 1px rgba(39,226,138,.32)}
.dashboard-period-tab:focus-visible{outline:2px solid rgba(39,226,138,.55);outline-offset:2px}
.dashboard-period-tab:disabled{cursor:default;opacity:.72}
.dashboard-period-select{min-height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#0d1118;color:var(--text);padding:0 30px 0 10px;font-size:12px;font-weight:900;outline:none}
.dashboard-period-select:focus{border-color:rgba(39,226,138,.42);box-shadow:0 0 0 3px rgba(39,226,138,.08)}
.dashboard-refresh-btn{min-height:34px;white-space:nowrap}
.dashboard-refresh-btn.is-loading{opacity:.72}
.dashboard-freshness{color:var(--muted);font-size:12px;font-weight:850}
.dashboard-freshness.is-error{color:#ffd1d1}
.dashboard-grid{display:grid;gap:10px}
.dashboard-grid-main{grid-template-columns:minmax(320px,.62fr) minmax(0,1.38fr)}
.dashboard-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-card{border:1px solid rgba(255,255,255,.10);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.016));box-shadow:0 10px 28px rgba(0,0,0,.16);min-width:0;overflow:hidden}
.dashboard-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.dashboard-card-head span{font-size:14px;font-weight:950;color:var(--text)}
.dashboard-card-head strong{color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:9px}
.dashboard-metric,.dashboard-task,.dashboard-watch-row,.dashboard-queue-row{font:inherit;color:var(--text);text-align:left;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.025);cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.dashboard-metric:hover,.dashboard-task:hover,.dashboard-watch-row:hover,.dashboard-queue-row:hover{border-color:rgba(39,226,138,.34);background:rgba(39,226,138,.055);transform:translateY(-1px)}
.dashboard-metric{border-radius:11px;padding:9px;min-height:74px;display:flex;flex-direction:column;justify-content:space-between}
.dashboard-metric span,.dashboard-task small,.dashboard-watch-row small,.dashboard-queue-row small{display:block;color:var(--muted);font-size:12px;line-height:1.35;font-weight:800}
.dashboard-metric strong{display:block;margin:6px 0 3px;font-size:20px;line-height:1.05;color:var(--text)}
.dashboard-metric small{display:block;color:var(--muted);font-size:11px;line-height:1.3;font-weight:750}
.dashboard-metric.ok strong,.dashboard-watch-row.ok b{color:var(--green)}
.dashboard-metric.warning strong,.dashboard-task.warning .dashboard-task-value,.dashboard-watch-row.warning b{color:#ffd166}
.dashboard-metric.critical strong,.dashboard-task.critical .dashboard-task-value,.dashboard-watch-row.critical b{color:#ffb4b4}
.dashboard-task-list,.dashboard-watch-list,.dashboard-support-list,.dashboard-alert-list{display:flex;flex-direction:column;gap:7px;padding:9px}
.dashboard-task{border-radius:12px;padding:9px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:9px;align-items:center}
.dashboard-task-value{display:grid;place-items:center;min-height:36px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(0,0,0,.15);font-size:18px;font-weight:950}
.dashboard-task strong,.dashboard-watch-row strong,.dashboard-queue-row strong{display:block;color:var(--text);font-size:14px;line-height:1.25;font-weight:950;word-break:break-word}
.dashboard-watch-row,.dashboard-queue-row{border-radius:12px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.42fr);gap:10px;align-items:center}
.dashboard-watch-row b,.dashboard-queue-row b{display:block;color:var(--text);font-size:13px;line-height:1.25;text-align:right}
.dashboard-alert-row,.dashboard-alert-ticket{border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.025);padding:10px}
.dashboard-alert-row.critical{border-color:rgba(255,137,137,.34);background:rgba(255,137,137,.075)}
.dashboard-alert-row.ok{border-color:rgba(39,226,138,.24);background:rgba(39,226,138,.055)}
.dashboard-alert-row strong,.dashboard-alert-ticket strong{display:block;color:var(--text);font-size:15px;line-height:1.2;font-weight:950}
.dashboard-alert-row span,.dashboard-alert-ticket span{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:760}
.dashboard-alert-ticket{padding:9px;background:rgba(255,255,255,.018)}
.dashboard-hero{min-height:88px}
.dashboard-board{display:grid;grid-template-columns:repeat(5,minmax(150px,220px));gap:10px;align-items:stretch;justify-content:start}
.dashboard-left-stack{display:contents}
.dashboard-lane-card{min-height:156px}
.dashboard-lane-card.dashboard-kpi-empty,
.dashboard-lane-card.dashboard-kpi-compact{min-height:112px;border-color:rgba(39,226,138,.36);background:linear-gradient(135deg,rgba(39,226,138,.10),rgba(255,255,255,.018))}
.dashboard-lane-card.dashboard-kpi-empty .dashboard-card-head,
.dashboard-lane-card.dashboard-kpi-compact .dashboard-card-head{display:none}
.dashboard-lane-card.dashboard-kpi-empty .dashboard-lane-list,
.dashboard-lane-card.dashboard-kpi-compact .dashboard-attention-list{padding:0}
.dashboard-status-kpi{width:100%;min-height:112px;padding:14px 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;text-align:left}
.dashboard-status-kpi-button{border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.dashboard-status-kpi-button:hover{background:rgba(39,226,138,.055)}
.dashboard-status-kpi span{display:block;color:rgba(242,243,247,.68);font-size:14px;line-height:1.25;font-weight:900}
.dashboard-status-kpi strong{display:block;color:var(--text);font-size:28px;line-height:1;font-weight:950;letter-spacing:0}
.dashboard-status-kpi small{display:block;color:rgba(242,243,247,.62);font-size:12px;line-height:1.35;font-weight:780}
.dashboard-status-kpi-number-only{min-height:84px;align-items:center;justify-content:center;text-align:center;padding:14px}
.dashboard-status-kpi-number-only strong{font-size:32px;line-height:1}
.dashboard-stats-card{display:contents}
.dashboard-stats-card .dashboard-card-head{display:none}
.dashboard-lane-list,.dashboard-attention-list{display:flex;flex-direction:column;gap:7px;padding:10px}
.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile{font:inherit;color:var(--text);text-align:left;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.024);cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.dashboard-static-row{cursor:default}
.dashboard-lane-row:hover,.dashboard-attention-row:hover,.dashboard-stat-tile:hover{border-color:rgba(39,226,138,.34);background:rgba(39,226,138,.055);transform:translateY(-1px)}
.dashboard-static-row:hover{transform:none;border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.024)}
.dashboard-lane-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;min-height:54px;border-radius:12px;padding:9px}
.dashboard-lane-value{display:grid;place-items:center;min-height:36px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(0,0,0,.16);font-size:18px;font-weight:950;color:var(--text);line-height:1}
.dashboard-lane-main strong,.dashboard-attention-row strong{display:block;color:var(--text);font-size:14px;line-height:1.25;font-weight:950;word-break:break-word}
.dashboard-lane-main small,.dashboard-attention-row small,.dashboard-stat-tile small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:780}
.dashboard-errors-card .dashboard-empty-status-row,
.dashboard-messages-card .dashboard-empty-status-row{grid-template-columns:1fr;gap:8px;align-items:flex-start;min-height:84px;padding:14px 16px}
.dashboard-errors-card .dashboard-empty-status-row .dashboard-lane-value,
.dashboard-messages-card .dashboard-empty-status-row .dashboard-lane-value{display:block;min-height:0;border:0;border-radius:0;background:transparent;font-size:28px;line-height:1;font-weight:950;color:var(--text)}
.dashboard-errors-card .dashboard-empty-status-row .dashboard-lane-main strong,
.dashboard-messages-card .dashboard-empty-status-row .dashboard-lane-main strong{font-size:13px;line-height:1.25;color:rgba(242,243,247,.72)}
.dashboard-errors-card .dashboard-empty-status-row:hover,
.dashboard-messages-card .dashboard-empty-status-row:hover{border-color:rgba(39,226,138,.20);background:rgba(39,226,138,.045)}
.dashboard-lane-row.ok,.dashboard-attention-row.ok,.dashboard-stat-tile.ok{border-color:rgba(39,226,138,.20);background:rgba(39,226,138,.045)}
.dashboard-lane-row.warning,.dashboard-attention-row.warning,.dashboard-stat-tile.warning{border-color:rgba(255,209,102,.24);background:rgba(255,209,102,.055)}
.dashboard-lane-row.critical,.dashboard-attention-row.critical,.dashboard-stat-tile.critical{border-color:rgba(255,137,137,.28);background:rgba(255,137,137,.060)}
.dashboard-lane-row.ok .dashboard-lane-value,.dashboard-stat-tile.ok strong{color:var(--green)}
.dashboard-errors-card .dashboard-empty-status-row.ok .dashboard-lane-value,
.dashboard-messages-card .dashboard-empty-status-row.ok .dashboard-lane-value{color:var(--text)}
.dashboard-lane-row.warning .dashboard-lane-value,.dashboard-attention-row.warning b,.dashboard-stat-tile.warning strong{color:#ffd166}
.dashboard-lane-row.critical .dashboard-lane-value,.dashboard-attention-row.critical b,.dashboard-stat-tile.critical strong{color:#ffb4b4}
.dashboard-status-kpi-number-only.ok strong{color:var(--text)}
.dashboard-status-kpi-number-only.warning strong{color:#ffd166}
.dashboard-status-kpi-number-only.critical strong{color:#ffb4b4}
.dashboard-attention-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.45fr);gap:12px;align-items:center;min-height:64px;border-radius:12px;padding:11px}
.dashboard-attention-meta{text-align:right}
.dashboard-attention-meta b{display:block;color:var(--text);font-size:13px;line-height:1.25;font-weight:950}
.dashboard-stats-grid{display:contents}
.dashboard-stat-tile{width:100%;display:flex;flex-direction:column;justify-content:center;gap:9px;min-height:112px;border-radius:14px;padding:14px 16px}
.dashboard-stat-tile span{display:block;color:rgba(242,243,247,.68);font-size:13px;line-height:1.25;font-weight:900;text-transform:uppercase;letter-spacing:0}
.dashboard-stat-tile strong{display:block;margin:0;color:var(--text);font-size:28px;line-height:1;font-weight:950;letter-spacing:0}
.dashboard-table-wrap{padding:14px;overflow:auto}
.dashboard-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;font-size:13px;color:var(--text)}
.dashboard-table th{padding:11px 12px;background:rgba(0,0,0,.18);border-bottom:1px solid rgba(255,255,255,.10);color:var(--muted);font-size:11px;font-weight:950;text-align:left;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.dashboard-table td{padding:13px 12px;border-bottom:1px solid rgba(255,255,255,.07);vertical-align:top}
.dashboard-table tbody tr:nth-child(2n){background:rgba(255,255,255,.025)}
.dashboard-table strong{font-weight:950;color:var(--text)}
.dashboard-empty{padding:18px;color:var(--muted);font-weight:800;line-height:1.45}
.dashboard-empty.compact{padding:12px}
.dashboard-funnel-steps{display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));gap:8px;padding:12px;overflow:auto}
.dashboard-funnel-step{min-width:112px;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(255,255,255,.024);padding:11px;text-align:left;color:var(--text);font:inherit;cursor:pointer}
.dashboard-funnel-step:hover{border-color:rgba(39,226,138,.34);background:rgba(39,226,138,.05)}
.dashboard-funnel-step small{display:block;color:var(--green);font-size:11px;font-weight:950}
.dashboard-funnel-step strong{display:block;margin-top:7px;color:var(--text);font-size:23px;line-height:1}
.dashboard-funnel-step span{display:block;margin-top:7px;color:var(--muted);font-size:12px;font-weight:850;line-height:1.25}
.dashboard-funnel-step b{display:inline-flex;margin-top:9px;border:1px solid rgba(39,226,138,.22);border-radius:999px;background:rgba(39,226,138,.08);padding:3px 8px;color:#dfffea;font-size:12px}
.dashboard-source-mini{border-top:1px solid rgba(255,255,255,.08);padding:12px;display:flex;flex-direction:column;gap:8px}
.dashboard-source-mini-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 2px 4px}
.dashboard-source-mini-head strong{color:var(--text);font-size:13px}
.dashboard-source-mini-head span{color:var(--muted);font-size:11px;font-weight:850}
.dashboard-source-row{display:grid;grid-template-columns:minmax(0,1fr) 84px 72px 92px;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.022);padding:10px 12px;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.dashboard-source-row:hover{border-color:rgba(39,226,138,.30);background:rgba(39,226,138,.045)}
.dashboard-source-row strong{display:block;color:var(--text);font-size:13px;line-height:1.25}
.dashboard-source-row small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.35;font-weight:750}
.dashboard-source-row b{color:var(--text);font-size:13px;text-align:right}
.dashboard-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 12px 0}
.dashboard-health{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.024);padding:10px;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.dashboard-health.ok{border-color:rgba(39,226,138,.22);background:rgba(39,226,138,.055)}
.dashboard-health.warning{border-color:rgba(255,209,102,.22);background:rgba(255,209,102,.055)}
.dashboard-health span,.dashboard-health small{display:block;color:var(--muted);font-size:11px;font-weight:800;line-height:1.3}
.dashboard-health strong{display:block;margin:5px 0;color:var(--text);font-size:13px;text-transform:uppercase}
.action-preview{border:1px solid rgba(39,226,138,.30);border-radius:16px;background:linear-gradient(135deg,rgba(39,226,138,.12),rgba(255,255,255,.025));padding:12px 14px;color:#dfffea;font-size:14px;line-height:1.4;font-weight:900}
.action-reason-field{margin:10px 0 12px}
.action-pane .comment-field{display:none}
.btn.btn-dashed{border-style:solid;background:rgba(255,255,255,.025)}
.empty{border-style:solid}
@media (max-width: 1180px){
  .dashboard-grid-main,.dashboard-grid-secondary{grid-template-columns:1fr}
  .dashboard-board{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-health-grid{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .dashboard-board{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 720px){
  .admin-topbar-inner{min-height:64px;gap:10px}
  .admin-topbar-title{font-size:18px}
  .admin-main-tabs{overflow:auto;padding:10px 0}
  .command-hero{grid-template-columns:1fr;padding:12px}
  .command-hero-actions{justify-content:flex-start}
  .dashboard-board{grid-template-columns:1fr}
  .dashboard-period-controls,.dashboard-period-select{width:100%}
  .dashboard-period-controls{align-items:flex-start;flex-direction:column}
  .dashboard-period-tabs{width:100%;overflow:auto}
  .dashboard-period-tab{flex:1;min-width:max-content}
  .dashboard-metrics{grid-template-columns:1fr}
  .dashboard-lane-row,.dashboard-attention-row{grid-template-columns:1fr}
  .dashboard-lane-value{width:44px}
  .dashboard-attention-meta{text-align:left}
  .dashboard-watch-row,.dashboard-queue-row{grid-template-columns:1fr}
  .dashboard-watch-row b,.dashboard-queue-row b{text-align:left}
  .dashboard-source-mini-head{align-items:flex-start;flex-direction:column}
  .dashboard-source-row{grid-template-columns:1fr 64px 64px;gap:8px}
  .dashboard-source-row b:last-child{display:none}
}

/* CRM command table */
#masterDetail.split-main,
#masterDetail.split-main.has-selection{
  display:block!important;
  grid-template-columns:1fr!important;
}
#masterDetail .left-col{
  display:flex!important;
  width:100%;
}
#masterDetail .right-col{
  display:none!important;
}
#masterDetail .list-card-tall{
  min-height:auto;
}
#masterDetail .customer-list{
  max-height:none;
  overflow:visible;
}
body .split-main,
body .split-main.has-selection{
  display:block!important;
  grid-template-columns:1fr!important;
}
body .split-main .left-col{
  display:flex!important;
  width:100%!important;
}
body .split-main .right-col{
  display:none!important;
}
body[data-admin-customer-mode="crm"] .registrations-card{display:none}
body[data-admin-customer-mode="crm"] .admin-context-bar{display:none}
body[data-admin-customer-mode="crm"] .split-main,
body[data-admin-customer-mode="crm"] .split-main.has-selection{display:block}
body[data-admin-customer-mode="crm"] .left-col{display:flex;width:100%}
body[data-admin-customer-mode="crm"] .right-col{display:none!important}
body[data-admin-customer-mode="crm"] .customer-list{max-height:none;overflow:visible}
body[data-admin-customer-mode="crm"] .content-offset{margin-top:9px}
.crm-workspace-card{display:flex;flex-direction:column;gap:10px;padding:10px 12px 12px}
.crm-master-detail{margin-top:0!important}
.crm-list-shell{padding:0;min-height:auto}
.crm-status-panel{display:flex;flex-direction:column;gap:9px;margin-top:0;padding-top:0;border-top:0}
.crm-status-panel[hidden]{display:none!important}
.crm-status-head{display:grid;grid-template-columns:minmax(180px,270px) minmax(360px,1fr);align-items:end;gap:10px}
.crm-status-head strong{display:block;color:var(--text);font-size:14px;font-weight:950}
.crm-status-head span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;font-weight:800}
.crm-workspace-title strong{font-size:18px}
.crm-workspace-title span{font-size:12px}
.crm-status-search{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:8px;align-items:center;min-width:0}
.crm-status-search label{display:none}
.crm-status-search input{width:100%;height:36px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--text);padding:0 12px;font-size:13px;font-weight:800;outline:none}
.crm-status-search input:focus{border-color:rgba(39,226,138,.45);box-shadow:0 0 0 3px rgba(39,226,138,.08)}
.crm-status-tabs{display:flex;flex-direction:column;align-items:stretch;gap:8px;overflow:visible;padding-bottom:2px}
.crm-status-line{display:flex;align-items:center;gap:8px;overflow:auto;scrollbar-width:none}
.crm-status-line::-webkit-scrollbar{display:none}
.crm-status-line-manual{padding-top:2px}
.crm-status-tab{min-height:38px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(255,255,255,.03);color:var(--muted);display:inline-flex;align-items:center;gap:8px;padding:8px 11px;font-size:12px;font-weight:900;white-space:nowrap;cursor:pointer}
.crm-status-tab b{min-width:22px;height:22px;border-radius:999px;background:rgba(255,255,255,.07);display:inline-flex;align-items:center;justify-content:center;color:var(--text);font-size:11px}
.crm-status-tab:hover{border-color:rgba(39,226,138,.28);color:var(--text)}
.crm-status-tab.active{border-color:rgba(39,226,138,.45);background:rgba(39,226,138,.12);color:#eafff3}
.crm-status-line-auto .crm-status-tab.active{border-color:rgba(92,179,255,.45);background:rgba(92,179,255,.12);color:#e6f3ff}
.split-main.has-selection{grid-template-columns:minmax(720px,1.25fr) minmax(520px,.75fr)}
.right-col{position:sticky;top:96px;align-self:start;max-height:calc(100vh - 112px);overflow:auto;padding-right:2px}
.crm-detail-drawer{border:1px solid rgba(255,255,255,.08);border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.006));box-shadow:0 24px 70px rgba(0,0,0,.34);padding:0}
.crm-detail-drawer .card{box-shadow:none}
.customer-list{display:block;max-height:calc(100vh - 252px);overflow:auto;padding:0}
.crm-table-shell{display:flex;flex-direction:column;gap:0;min-width:0}
.crm-table-toolbar{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:6px;padding:8px 8px 4px;min-width:0}
.crm-table-toolbar strong{display:block;color:var(--text);font-size:17px;font-weight:950}
.crm-table-toolbar span{display:block;color:var(--muted);font-size:12px;font-weight:850;line-height:1.35;max-width:100%;white-space:normal}
.crm-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.015)}
.crm-table{width:100%;min-width:1680px;table-layout:fixed;border-collapse:separate;border-spacing:0;color:var(--text);font-size:13px}
.crm-table[data-table-kind="crm"]{min-width:1660px;font-size:12px}
.crm-table[data-table-kind="customers"]{min-width:1360px}
.crm-table[data-table-kind="customers"] .pill.crm{margin-top:4px}
.crm-col-client-width{width:15%}
.crm-col-cabinet-compact-width{width:10%}
.crm-col-user-width{width:10%}
.crm-col-email-width{width:12%}
.crm-col-phone-width{width:9%}
.crm-col-stage-width{width:11%}
.crm-col-access-width{width:9%}
.crm-col-money-width{width:7%}
.crm-col-activity-width{width:9%}
.crm-col-problem-width{width:11%}
.crm-col-action-width{width:12%}
.crm-col-source-width{width:16%}
.crm-col-status-width{width:15%}
.crm-col-cabinet-width{width:18%}
.crm-col-control-width{width:14%}
.crm-table th{position:sticky;top:0;z-index:2;padding:12px 12px;background:#f8fafc;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:950;text-align:left;text-transform:uppercase;letter-spacing:0;white-space:nowrap}
.crm-table td{padding:13px 12px;border-bottom:1px solid rgba(255,255,255,.065);vertical-align:top;min-width:0}
.crm-table[data-table-kind="crm"] th{padding:8px 8px;font-size:10px}
.crm-table[data-table-kind="crm"] td{padding:7px 8px}
.crm-table tbody tr{cursor:pointer;transition:background .14s ease,box-shadow .14s ease}
.crm-table tbody tr:hover{background:rgba(39,226,138,.045)}
.crm-table-row.active{background:rgba(39,226,138,.075)!important;box-shadow:inset 3px 0 0 rgba(39,226,138,.90)}
.crm-table-row.detail-open{background:rgba(39,226,138,.095)!important;box-shadow:inset 3px 0 0 rgba(39,226,138,.95)}
.crm-inline-detail-row td{padding:0!important;background:rgba(255,255,255,.018);border-bottom:1px solid rgba(39,226,138,.18)}
.inline-detail-mount{padding:14px;border-top:1px solid rgba(39,226,138,.18);background:linear-gradient(180deg,rgba(39,226,138,.045),rgba(255,255,255,.012))}
.inline-detail-loading{min-height:96px;display:grid;place-items:center;border:1px dashed rgba(255,255,255,.14);border-radius:16px;color:var(--muted);font-size:13px;font-weight:900}
.inline-detail-mount .crm-detail-drawer{width:100%;max-width:none;box-shadow:none;border-radius:18px;background:#ffffff}
.inline-detail-mount .detail-head{border-radius:18px 18px 0 0}
.inline-detail-mount .detail-close{display:inline-flex}
.inline-detail-mount .detail-shell{overflow:hidden}
.inline-detail-mount .hero-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}
.inline-detail-mount .detail-status-row{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.inline-detail-mount .compact-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.inline-detail-mount .compact-kv{grid-template-columns:repeat(2,minmax(0,1fr))}
.inline-detail-mount .aggregate-links.aggregate-static{grid-template-columns:repeat(3,minmax(0,1fr))}
.crm-child-row{background:rgba(255,255,255,.018)}
.crm-col-client{width:250px}
.crm-client-cell{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start}
.crm-client-cell-compact{grid-template-columns:26px minmax(0,1fr);gap:7px}
.crm-client-name{font-size:14px;font-weight:950;line-height:1.22;color:var(--text);word-break:break-word}
.crm-client-meta,.crm-muted{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.32;font-weight:800;word-break:break-word}
.crm-main-value{font-weight:950;line-height:1.25;color:var(--text)}
.crm-one-line{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-table[data-table-kind="crm"] .crm-client-name,.crm-table[data-table-kind="crm"] .crm-main-value{font-size:12px;line-height:1.18}
.crm-table[data-table-kind="crm"] .crm-client-meta,.crm-table[data-table-kind="crm"] .crm-muted{margin-top:2px;font-size:10px;line-height:1.22}
.crm-status-stack{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.crm-stage-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"select save" "select clear";gap:6px;align-items:stretch;min-width:0;max-width:100%}
.crm-stage-select-inline{width:100%;min-width:0;height:36px;border-radius:12px;border:1px solid var(--line);background:#ffffff;color:var(--text);font-size:12px;font-weight:900;padding:0 9px;outline:none}
.crm-stage-inline .crm-stage-select-inline{grid-area:select;height:100%;min-height:42px}
.crm-stage-inline [data-row-crm-save]{grid-area:save}
.crm-stage-inline [data-row-crm-clear]{grid-area:clear}
.crm-stage-inline .btn{height:30px;min-height:30px;min-width:82px;padding:0 9px;font-size:11px;white-space:nowrap}
.crm-table[data-table-kind="crm"] .crm-stage-inline{grid-template-columns:minmax(0,1fr) 58px;gap:4px}
.crm-table[data-table-kind="crm"] .crm-stage-select-inline{height:30px;border-radius:9px;font-size:11px;padding:0 7px}
.crm-table[data-table-kind="crm"] .crm-stage-inline .crm-stage-select-inline{height:30px;min-height:30px}
.crm-table[data-table-kind="crm"] .crm-stage-inline .btn{height:23px;min-height:23px;min-width:58px;padding:0 5px;border-radius:9px;font-size:10px}
.crm-stage-select-inline:focus{border-color:rgba(39,226,138,.44);box-shadow:0 0 0 3px rgba(39,226,138,.08)}
.crm-action{display:inline-flex;max-width:100%;padding:7px 10px;border:1px solid rgba(39,226,138,.20);border-radius:12px;background:rgba(39,226,138,.055);color:#dfffea;font-size:12px;line-height:1.25;font-weight:950;white-space:normal}
.crm-table[data-table-kind="crm"] .crm-action{padding:5px 7px;border-radius:9px;font-size:11px;line-height:1.15}
.crm-owner{font-weight:900;color:var(--text);max-width:150px;word-break:break-word}
.crm-money{font-weight:950;color:var(--green);white-space:nowrap}
.crm-problem-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.035);font-size:12px;font-weight:950;white-space:nowrap}
.crm-table[data-table-kind="crm"] .crm-problem-badge{padding:5px 7px;font-size:11px}
.crm-problem-badge.ok{border-color:rgba(39,226,138,.24);background:rgba(39,226,138,.08);color:#d8ffe9}
.crm-problem-badge.watch{border-color:rgba(92,179,255,.26);background:rgba(92,179,255,.08);color:#d8ecff}
.crm-problem-badge.warning{border-color:rgba(255,209,102,.34);background:rgba(255,209,102,.09);color:#ffe8a8}
.crm-problem-badge.critical{border-color:rgba(255,107,107,.38);background:rgba(255,107,107,.10);color:#ffd1d1}
.crm-toggle{width:30px;min-width:30px;height:30px;border-radius:10px;margin:0}
.crm-toggle-spacer{width:30px;height:30px;display:block;border-radius:10px;background:rgba(255,255,255,.025)}
.crm-table[data-table-kind="crm"] .crm-toggle{width:24px;min-width:24px;height:24px;border-radius:8px}
.crm-table[data-table-kind="crm"] .crm-toggle-spacer{width:24px;height:24px;border-radius:8px}
.crm-delete-btn{display:block;margin-top:8px;width:max-content}
.section-health-dots{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:none;margin-top:8px}
.section-dot{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);color:var(--text);font-size:8px;font-weight:950;line-height:1;white-space:nowrap}
.crm-table[data-table-kind="crm"] .section-health-dots{gap:2px;margin-top:5px}
.crm-table[data-table-kind="crm"] .section-dot{width:18px;height:18px;font-size:7px}
.section-dot.status-ok{border-color:rgba(39,226,138,.35);background:rgba(39,226,138,.14);color:#dfffea;box-shadow:0 0 0 3px rgba(39,226,138,.035)}
.section-dot.status-observe{border-color:rgba(92,179,255,.35);background:rgba(92,179,255,.12);color:#dcefff}
.section-dot.status-warning{border-color:rgba(255,209,102,.42);background:rgba(255,209,102,.12);color:#fff4c8}
.section-dot.status-error,.section-dot.status-blocked{border-color:rgba(255,95,95,.42);background:rgba(255,95,95,.14);color:#ffdede}
.section-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.section-health-card{border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.028);padding:13px;min-width:0}
.section-health-card.ok{border-color:rgba(39,226,138,.20);background:linear-gradient(135deg,rgba(39,226,138,.08),rgba(255,255,255,.018))}
.section-health-card.observe{border-color:rgba(92,179,255,.22);background:rgba(92,179,255,.055)}
.section-health-card.warning{border-color:rgba(255,209,102,.30);background:rgba(255,209,102,.065)}
.section-health-card.error,.section-health-card.blocked{border-color:rgba(255,95,95,.38);background:rgba(255,95,95,.075)}
.section-health-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.section-health-head strong{display:block;color:var(--text);font-size:14px;font-weight:950;line-height:1.2}
.section-health-head span:not(.section-status-badge){display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:850}
.section-health-card p{margin:10px 0 0;color:var(--text);font-size:13px;line-height:1.45;font-weight:750}
.section-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--text);font-size:11px;font-weight:950;white-space:nowrap}
.section-status-badge.ok{border-color:rgba(39,226,138,.32);background:rgba(39,226,138,.12);color:#dfffea}
.section-status-badge.observe{border-color:rgba(92,179,255,.32);background:rgba(92,179,255,.10);color:#dcefff}
.section-status-badge.warning{border-color:rgba(255,209,102,.38);background:rgba(255,209,102,.12);color:#fff1bd}
.section-status-badge.error,.section-status-badge.blocked{border-color:rgba(255,95,95,.40);background:rgba(255,95,95,.12);color:#ffdede}
.section-health-evidence{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.section-health-evidence span{display:inline-flex;padding:5px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.035);color:var(--muted);font-size:11px;font-weight:850}
.section-health-action{margin-top:10px;padding:9px 10px;border-radius:12px;border:1px solid rgba(39,226,138,.18);background:rgba(39,226,138,.055);color:#dfffea;font-size:12px;font-weight:900;line-height:1.35}
.section-health-card.warning .section-health-action{border-color:rgba(255,209,102,.28);background:rgba(255,209,102,.075);color:#fff4c8}
.section-health-card.error .section-health-action,.section-health-card.blocked .section-health-action{border-color:rgba(255,95,95,.34);background:rgba(255,95,95,.09);color:#ffdede}
.section-health-problem{margin-top:10px;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.section-health-problem.warning{border-color:rgba(255,209,102,.32);background:rgba(255,209,102,.08)}
.section-health-problem.error,.section-health-problem.blocked{border-color:rgba(255,95,95,.38);background:rgba(255,95,95,.09)}
.section-health-problem strong{display:block;color:var(--text);font-size:12px;font-weight:950;line-height:1.25}
.section-health-problem p{margin:6px 0 0;color:var(--text);font-size:12px;line-height:1.4;font-weight:800}
.section-health-problem-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.section-health-problem-chips span{display:inline-flex;min-height:24px;align-items:center;padding:4px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.16);color:var(--muted);font-size:10px;font-weight:850;line-height:1.2}
.section-repair-btn{margin-top:10px;width:100%;min-height:42px;border-radius:12px;border:1px solid rgba(39,226,138,.28);background:linear-gradient(135deg,rgba(39,226,138,.22),rgba(39,226,138,.08));color:#ecfff6;font-size:12px;font-weight:950;cursor:pointer;text-align:left;padding:10px 12px}
.section-health-card.warning .section-repair-btn{border-color:rgba(255,209,102,.34);background:linear-gradient(135deg,rgba(255,209,102,.18),rgba(255,209,102,.07));color:#fff4c8}
.section-health-card.error .section-repair-btn,.section-health-card.blocked .section-repair-btn{border-color:rgba(255,95,95,.38);background:linear-gradient(135deg,rgba(255,95,95,.18),rgba(255,95,95,.07));color:#ffe3e3}
.section-repair-btn:hover{border-color:rgba(39,226,138,.52);background:linear-gradient(135deg,rgba(39,226,138,.30),rgba(39,226,138,.12))}
.section-repair-btn:disabled{opacity:.55;cursor:wait}
.section-health-event{margin-top:8px;color:var(--muted);font-size:11px;font-weight:850}
tr.customer-item{padding:0;border-radius:0;border:none;background:transparent}
tr.customer-item.active{border:none}
tr.customer-item[hidden]{display:none!important}
@media (max-width: 1320px){
  .split-main.has-selection,.split-main{grid-template-columns:1fr}
  .right-col{position:relative;top:auto;max-height:none;overflow:visible}
  .customer-list{max-height:none}
  body[data-admin-customer-mode="crm"] .right-col{display:none!important}
}
@media (max-width: 860px){
  .crm-table-toolbar{align-items:flex-start;flex-direction:column}
  .crm-status-head{grid-template-columns:1fr;align-items:flex-start}
  .crm-status-search{grid-template-columns:1fr;width:100%}
  .crm-table{min-width:960px}
  .crm-stage-inline{grid-template-columns:1fr}
  .section-health-grid{grid-template-columns:1fr}
}

/* Final CRM layout lock: the customer card lives only inside an inline table row. */
#masterDetail,
#masterDetail.split-main,
#masterDetail.split-main.has-selection{
  display:block!important;
  grid-template-columns:1fr!important;
  width:100%!important;
}
#masterDetail>.left-col,
#masterDetail .left-col{
  display:flex!important;
  width:100%!important;
  max-width:none!important;
}
#masterDetail>.right-col,
#masterDetail .right-col,
.right-col,
.detail-template-host{
  display:none!important;
}
#masterDetail .list-shell,
#masterDetail .list-card-tall,
#masterDetail .customer-list{
  width:100%!important;
  max-width:none!important;
}
#masterDetail .customer-list{
  max-height:none!important;
  overflow:visible!important;
}

/* Admin white style override 20260524: visual-only layer, no API/formula changes. */
:root{
  --accent:#2563eb;
  --accent-2:#16a34a;
  --accent-soft:rgba(37,99,235,.10);
  --accent-line:rgba(37,99,235,.24);
  --bg:#f5f7fb;
  --bg-2:#eef4fb;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --panel-strong:#f1f5f9;
  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#475569;
  --line:#dbe4ef;
  --line-strong:#cbd5e1;
  --shadow:0 18px 42px rgba(15,23,42,.08);
  --green:#059669;
  --yellow:#b7791f;
  --red:#dc2626;
  --blue:#2563eb;
  --orange:#f59e0b;
  --radius:16px;
  --radius-sm:12px;
}
html,
body{
  background:#f5f7fb!important;
  color:var(--text)!important;
  color-scheme:light;
}
body{
  background:
    radial-gradient(circle at 12% 0%,rgba(37,99,235,.08),transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f5f7fb 42%,#eef4fb 100%)!important;
}
*{scrollbar-color:#cbd5e1 #f8fafc}
input,
select,
textarea,
button{color-scheme:light}
.topbar,
.admin-topbar{
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:0 10px 30px rgba(15,23,42,.07)!important;
  backdrop-filter:blur(14px);
}
.admin-topbar-title,
.brand-title,
.brand-mini,
.topbar strong{color:var(--text)!important}
.page{
  color:var(--text)!important;
}
.login-shell{
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 10%,rgba(37,99,235,.11),transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f5f7fb 100%)!important;
}
.card,
.login-card,
.dashboard-card,
.operations-panel,
.operations-control-card,
.dashboard-lane-row,
.dashboard-status-kpi,
.dashboard-stat-tile,
.summary-card,
.customer-detail-card,
.crm-workspace-card,
.crm-detail-drawer,
.section-health-card,
.inline-detail-mount .crm-detail-drawer,
.billing-card,
.support-card,
.command-hero,
.dashboard-hero,
.list-shell,
.registrations-card,
.admin-context-bar,
.notice,
.modal-card{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow)!important;
}
.card,
.login-card,
.dashboard-card,
.operations-panel,
.operations-control-card,
.command-hero,
.dashboard-hero,
.crm-workspace-card,
.crm-detail-drawer,
.section-health-card,
.modal-card{
  border-radius:16px!important;
}
.login-card{
  max-width:430px;
}
.login-title,
.command-hero h1,
.dashboard-hero h1,
h1,
h2,
h3,
.crm-workspace-title strong,
.crm-table-toolbar strong,
.dashboard-card-head strong,
.dashboard-card-head span,
.section-health-head strong{
  color:var(--text)!important;
  letter-spacing:0!important;
}
.command-hero h1,
.dashboard-hero h1,
h1{
  font-size:clamp(26px,2.2vw,36px)!important;
  line-height:1.08!important;
  font-weight:850!important;
}
.command-hero p,
.dashboard-hero p,
.command-kicker,
.crm-workspace-title span,
.crm-table-toolbar span,
.dashboard-freshness,
.field label,
.crm-client-meta,
.crm-muted,
.section-health-head span:not(.section-status-badge),
.section-health-event,
.section-health-evidence span,
.section-health-problem-chips span{
  color:var(--muted)!important;
}
.admin-main-tabs,
.crm-status-tabs,
.operations-tabs,
.dashboard-filter-row{
  background:transparent!important;
  border:0!important;
}
.tab-btn,
.crm-status-tab,
.dashboard-filter-btn,
.operations-check-btn,
.dashboard-period-select,
.field input,
.field select,
.field textarea,
.crm-status-search input,
.crm-stage-select-inline,
.search-input,
.select-control{
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.field input,
.field select,
.field textarea,
.crm-status-search input,
.crm-stage-select-inline,
.dashboard-period-select,
.search-input,
.select-control{
  height:40px;
  border-radius:12px!important;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.crm-status-search input:focus,
.crm-stage-select-inline:focus,
.dashboard-period-select:focus,
.search-input:focus,
.select-control:focus{
  border-color:rgba(37,99,235,.48)!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;
  outline:none!important;
}
.tab-btn:hover,
.crm-status-tab:hover,
.dashboard-filter-btn:hover,
.operations-check-btn:hover{
  border-color:var(--line-strong)!important;
  background:#f8fafc!important;
  color:var(--text)!important;
}
.tab-btn.active,
.crm-status-tab.active,
.crm-status-line-auto .crm-status-tab.active,
.dashboard-filter-btn.active,
.operations-check-btn.active{
  background:var(--accent-soft)!important;
  border-color:var(--accent-line)!important;
  color:#1d4ed8!important;
  box-shadow:inset 3px 0 0 var(--accent)!important;
}
.crm-status-tab b,
.tab-btn b{
  background:#eef4ff!important;
  color:#1d4ed8!important;
}
.btn,
button.btn,
.section-repair-btn{
  background:#2563eb!important;
  border:1px solid #1d4ed8!important;
  color:#ffffff!important;
  box-shadow:0 10px 22px rgba(37,99,235,.18)!important;
}
.btn:hover,
button.btn:hover,
.section-repair-btn:hover{
  background:#1d4ed8!important;
  border-color:#1e40af!important;
}
.btn.secondary,
.btn.ghost,
.btn.small.secondary,
.btn-dashed,
.detail-close,
.crm-toggle{
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.btn.secondary:hover,
.btn.ghost:hover,
.btn-dashed:hover,
.detail-close:hover,
.crm-toggle:hover{
  background:#f8fafc!important;
  border-color:var(--line-strong)!important;
}
.btn.bad,
.btn.danger{
  background:#dc2626!important;
  border-color:#b91c1c!important;
  color:#ffffff!important;
}
.btn.warn,
.btn.warning{
  background:#f59e0b!important;
  border-color:#d97706!important;
  color:#111827!important;
}
.btn-dashed,
.inline-detail-loading{
  border-style:solid!important;
}
.notice{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1e3a8a!important;
}
.notice.error,
.error-box{
  background:#fef2f2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
.pill,
.badge,
.tag,
.crm-problem-badge,
.section-status-badge,
.section-dot{
  background:#f8fafc!important;
  border:1px solid var(--line)!important;
  color:var(--muted-2)!important;
  box-shadow:none!important;
}
.pill.ok,
.badge.ok,
.tag.ok,
.crm-problem-badge.ok,
.section-status-badge.ok,
.section-dot.status-ok{
  background:#ecfdf5!important;
  border-color:#a7f3d0!important;
  color:#047857!important;
}
.pill.warning,
.badge.warning,
.tag.warning,
.crm-problem-badge.warning,
.section-status-badge.warning,
.section-dot.status-warning,
.section-health-card.warning,
.section-health-problem.warning{
  background:#fffbeb!important;
  border-color:#fde68a!important;
  color:#92400e!important;
}
.pill.critical,
.pill.error,
.badge.critical,
.badge.error,
.tag.critical,
.tag.error,
.crm-problem-badge.critical,
.section-status-badge.error,
.section-status-badge.blocked,
.section-dot.status-error,
.section-dot.status-blocked,
.section-health-card.error,
.section-health-card.blocked,
.section-health-problem.error,
.section-health-problem.blocked{
  background:#fef2f2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
.pill.observe,
.badge.observe,
.tag.observe,
.crm-problem-badge.watch,
.section-status-badge.observe,
.section-dot.status-observe{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.crm-table-wrap,
.table-wrap,
.dashboard-table-wrap{
  background:#ffffff!important;
  border:1px solid var(--line)!important;
  box-shadow:none!important;
}
.crm-table,
table{
  color:var(--text)!important;
}
.crm-table th,
table th{
  background:#f8fafc!important;
  border-bottom:1px solid var(--line)!important;
  color:#64748b!important;
}
.crm-table td,
table td{
  background:#ffffff!important;
  border-bottom:1px solid var(--line)!important;
  color:var(--text)!important;
}
.crm-table tbody tr:hover td,
table tbody tr:hover td{
  background:#f8fbff!important;
}
.crm-table-row.active td,
.crm-table-row.detail-open td{
  background:#eff6ff!important;
  box-shadow:inset 3px 0 0 var(--accent)!important;
}
.crm-inline-detail-row td,
.crm-child-row td{
  background:#f8fafc!important;
}
.inline-detail-mount{
  background:#f8fbff!important;
  border-top:1px solid #bfdbfe!important;
}
.inline-detail-loading{
  background:#ffffff!important;
  border-color:var(--line)!important;
  color:var(--muted)!important;
}
.detail-head,
.hero-top,
.compact-stats,
.compact-kv,
.aggregate-links.aggregate-static{
  background:transparent!important;
}
.crm-client-name,
.crm-main-value,
.crm-owner,
.section-health-problem strong,
.section-health-card p,
.section-health-problem p{
  color:var(--text)!important;
}
.crm-money{color:#047857!important}
.crm-action,
.section-health-action{
  background:#ecfdf5!important;
  border-color:#a7f3d0!important;
  color:#047857!important;
}
.section-health-card.warning .section-health-action,
.section-health-card.warning .section-repair-btn{
  background:#fffbeb!important;
  border-color:#fde68a!important;
  color:#92400e!important;
}
.section-health-card.error .section-health-action,
.section-health-card.blocked .section-health-action,
.section-health-card.error .section-repair-btn,
.section-health-card.blocked .section-repair-btn{
  background:#fef2f2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
.section-health-card.ok{
  background:#ffffff!important;
  border-color:#bbf7d0!important;
}
.section-health-card.observe{
  background:#ffffff!important;
  border-color:#bfdbfe!important;
}
.section-health-evidence span,
.section-health-problem-chips span{
  background:#f8fafc!important;
  border-color:var(--line)!important;
}
.dashboard-lane-row,
.operations-control-card,
.dashboard-status-kpi,
.dashboard-stat-tile{
  background:#ffffff!important;
}
.dashboard-card *,
.dashboard-lane-row *,
.dashboard-status-kpi *,
.dashboard-stat-tile *{
  color:var(--text)!important;
}
.dashboard-status-kpi span,
.dashboard-status-kpi small,
.dashboard-stat-tile span,
.dashboard-stat-tile small,
.dashboard-lane-main small,
.dashboard-attention-row small,
.dashboard-empty{
  color:var(--text)!important;
}
.dashboard-lane-value{
  background:#ffffff!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
.dashboard-lane-row.ok .dashboard-lane-value,
.dashboard-stat-tile.ok strong,
.dashboard-status-kpi-number-only.ok strong{
  color:var(--text)!important;
}
.dashboard-lane-row.warning .dashboard-lane-value,
.dashboard-attention-row.warning b,
.dashboard-stat-tile.warning strong,
.dashboard-status-kpi-number-only.warning strong{
  color:#92400e!important;
}
.dashboard-lane-row.critical .dashboard-lane-value,
.dashboard-attention-row.critical b,
.dashboard-stat-tile.critical strong,
.dashboard-status-kpi-number-only.critical strong{
  color:#991b1b!important;
}
.dashboard-lane-row:hover,
.operations-control-card:hover{
  border-color:var(--line-strong)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.08)!important;
}
.skeleton,
.loading-line{
  background:linear-gradient(90deg,#edf2f7,#f8fafc,#edf2f7)!important;
}

/* Admin sidebar shell 20260524: founder-approved visual change, no API/formula changes. */
:root{
  --admin-sidebar-w:292px;
  --admin-sidebar:#0d252d;
  --admin-sidebar-2:#12303a;
  --admin-sidebar-text:#f8fafc;
  --admin-sidebar-muted:#cbd5e1;
}
body{
  min-height:100vh!important;
  background:#f3f7fb!important;
}
body.admin-shell::before{
  content:"";
  position:fixed;
  inset:0 auto 0 0;
  width:var(--admin-sidebar-w);
  background:var(--admin-sidebar);
  z-index:70;
  pointer-events:none;
}
.admin-topbar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:var(--admin-sidebar-w)!important;
  height:100vh!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  padding:28px!important;
  background:var(--admin-sidebar)!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.admin-topbar-inner{
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:12px!important;
  flex:0 0 auto!important;
}
.admin-topbar .brand-mini{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  max-width:100%!important;
  padding:7px 9px!important;
  border-radius:12px!important;
  background:#ffffff!important;
  box-shadow:0 10px 22px rgba(0,0,0,.18)!important;
}
.admin-topbar .brand-mini img{
  width:178px!important;
  height:auto!important;
  max-height:44px!important;
  display:block!important;
  object-fit:contain!important;
}
.admin-site-link{
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#ffffff;
  color:#0f172a!important;
  font-weight:900;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
}
.admin-site-link:hover{
  background:#f8fafc;
}
.admin-topbar-title{
  display:none!important;
}
.page{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:42px 28px 48px calc(var(--admin-sidebar-w) + 28px)!important;
  color:var(--text)!important;
}
.admin-main-tabs{
  position:fixed!important;
  top:138px!important;
  left:28px!important;
  z-index:95!important;
  width:236px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  bottom:104px!important;
  max-height:calc(100vh - 252px)!important;
  overflow:auto!important;
  scrollbar-width:none;
}
.admin-main-tabs::-webkit-scrollbar{
  display:none;
}
.admin-main-tabs .tab-btn{
  width:100%!important;
  min-height:48px!important;
  justify-content:flex-start!important;
  padding:0 14px!important;
  border-radius:8px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:var(--admin-sidebar-muted)!important;
  font-size:16px!important;
  font-weight:900!important;
  text-align:left!important;
  box-shadow:none!important;
}
.admin-main-tabs .tab-btn:hover{
  background:rgba(255,255,255,.08)!important;
  color:var(--admin-sidebar-text)!important;
}
.admin-main-tabs .tab-btn.active{
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.06)!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
.top-offset,
.content-offset{
  margin-top:0!important;
}
.command-dashboard{
  gap:22px!important;
}
.command-hero,
.dashboard-hero{
  min-height:0!important;
  padding:30px 0 2px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:20px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.command-kicker{
  display:none!important;
}
.command-hero h1,
.dashboard-hero h1{
  margin:0!important;
  color:var(--text)!important;
  font-size:56px!important;
  line-height:.98!important;
  font-weight:950!important;
}
.command-hero p,
.dashboard-hero p{
  margin:8px 0 0!important;
  max-width:980px!important;
  color:var(--muted-2)!important;
  font-size:16px!important;
  line-height:1.45!important;
  font-weight:700!important;
}
.command-hero-actions{
  align-self:start!important;
  padding-top:6px!important;
}
.dashboard-period-select{
  min-width:210px!important;
  min-height:44px!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:var(--text)!important;
}
.command-hero-actions .btn{
  min-height:44px!important;
  border-radius:8px!important;
}
.dashboard-freshness{
  color:var(--muted-2)!important;
}
.admin-overview-card{
  display:block;
  padding:26px 24px 24px;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 18px 42px rgba(15,23,42,.08);
}
.admin-overview-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.admin-overview-card-head h2{
  margin:0;
  color:var(--text);
  font-size:30px;
  line-height:1.1;
  font-weight:950;
}
.admin-overview-card-head p{
  margin:56px 0 0;
  color:var(--muted-2);
  font-size:15px;
  line-height:1.45;
  font-weight:760;
}
.dashboard-board{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(180px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
.dashboard-left-stack{
  display:contents!important;
}
.dashboard-card,
.dashboard-lane-card,
.dashboard-lane-card.dashboard-kpi-empty,
.dashboard-lane-card.dashboard-kpi-compact,
.dashboard-stat-tile,
.dashboard-status-kpi{
  min-height:132px!important;
  border-radius:8px!important;
  box-shadow:none!important;
  background:#f8fafc!important;
  border:1px solid var(--line)!important;
}
.dashboard-status-kpi,
.dashboard-stat-tile{
  padding:18px!important;
  gap:11px!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
.dashboard-status-kpi span,
.dashboard-stat-tile span{
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-transform:none!important;
}
.dashboard-status-kpi strong,
.dashboard-stat-tile strong,
.dashboard-lane-value{
  font-size:36px!important;
  line-height:1!important;
  font-weight:950!important;
}
.dashboard-status-kpi small,
.dashboard-stat-tile small,
.dashboard-lane-main small{
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:780!important;
}
.dashboard-lane-card:not(.dashboard-kpi-empty):not(.dashboard-kpi-compact){
  padding:0!important;
}
.dashboard-card-head{
  min-height:42px!important;
  padding:13px 18px 0!important;
  border:0!important;
}
.dashboard-lane-list,
.dashboard-attention-list{
  padding:8px 18px 18px!important;
}
.dashboard-lane-row,
.dashboard-attention-row{
  border-radius:8px!important;
  background:#ffffff!important;
}
.dashboard-tasks-card{
  margin-top:14px!important;
  min-height:0!important;
}
.dashboard-tasks-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:10px;
  padding:8px 18px 18px!important;
}
.dashboard-task-row{
  min-width:0;
  min-height:76px;
  display:grid;
  grid-template-columns:minmax(92px,.32fr) minmax(0,1fr) minmax(84px,.22fr);
  gap:12px;
  align-items:center;
  width:100%;
  padding:12px;
  border-radius:8px!important;
  border:1px solid var(--line)!important;
  background:#ffffff!important;
  color:var(--text)!important;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.dashboard-task-row:hover{
  border-color:#94a3b8!important;
  background:#f8fafc!important;
}
.dashboard-task-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 10px;
  border-radius:8px;
  background:#e5e7eb;
  color:#020617!important;
  font-size:13px;
  line-height:1.2;
  font-weight:950;
  white-space:normal;
  text-align:center;
}
.dashboard-task-main{
  min-width:0;
}
.dashboard-task-main strong{
  display:block;
  color:#020617!important;
  font-size:15px;
  line-height:1.25;
  font-weight:950;
  word-break:break-word;
}
.dashboard-task-main small{
  display:block;
  margin-top:4px;
  color:#111827!important;
  font-size:13px;
  line-height:1.35;
  font-weight:760;
  word-break:break-word;
}
.dashboard-task-row b{
  color:#111827!important;
  font-size:12px;
  line-height:1.25;
  font-weight:900;
  text-align:right;
  word-break:break-word;
}
.dashboard-task-row.warning .dashboard-task-action{background:#fef3c7;color:#92400e!important}
.dashboard-task-row.critical .dashboard-task-action{background:#fee2e2;color:#991b1b!important}
.dashboard-task-row.ok .dashboard-task-action{background:#d1fae5;color:#065f46!important}
.dashboard-stats-card{
  display:contents!important;
}
.admin-protect-note{
  margin-top:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  border-radius:8px;
  background:#ecfdf8;
  border:1px solid #a7f3d0;
  color:#102a1f;
}
.admin-protect-note strong{
  color:#071b13;
  font-size:18px;
  font-weight:950;
}
.admin-protect-note span{
  color:#334155;
  font-size:15px;
  line-height:1.45;
  font-weight:720;
}
@media (max-width: 860px){
  .page{padding-left:14px!important;padding-right:14px!important}
  .command-hero h1,
  .dashboard-hero h1,
  h1{font-size:26px!important}
  .card,
  .login-card,
  .dashboard-card,
  .operations-panel,
  .operations-control-card,
  .command-hero,
  .dashboard-hero,
  .crm-workspace-card,
  .crm-detail-drawer,
  .section-health-card{border-radius:14px!important}
}
@media (max-width: 920px){
  :root{--admin-sidebar-w:0px}
  body.admin-shell::before{display:none}
  .admin-topbar{
    position:sticky!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:64px!important;
    padding:12px 14px!important;
    background:var(--admin-sidebar)!important;
  }
  .admin-topbar .brand-mini img{width:160px!important}
  .admin-site-link{display:none!important}
  .page{padding:14px!important}
  .admin-main-tabs{
    position:sticky!important;
    top:0!important;
    left:auto!important;
    width:100%!important;
    flex-direction:row!important;
    overflow:auto!important;
    padding:10px 0!important;
    margin:0 0 14px!important;
    background:#f3f7fb!important;
  }
  .admin-main-tabs .tab-btn{
    width:auto!important;
    min-width:max-content!important;
    color:var(--muted-2)!important;
    background:#ffffff!important;
    border-color:var(--line)!important;
  }
  .admin-main-tabs .tab-btn.active{
    color:#1d4ed8!important;
    background:#eff6ff!important;
    border-color:#bfdbfe!important;
  }
  .command-hero,
  .dashboard-hero{
    grid-template-columns:1fr!important;
    padding-top:6px!important;
  }
  .command-hero h1,
  .dashboard-hero h1{font-size:38px!important}
  .dashboard-board{grid-template-columns:1fr!important}
  .dashboard-tasks-list{grid-template-columns:1fr!important;padding:8px 12px 14px!important}
  .dashboard-task-row{grid-template-columns:1fr!important;align-items:flex-start}
  .dashboard-task-action{justify-content:flex-start;text-align:left}
  .dashboard-task-row b{text-align:left}
  .admin-overview-card{padding:18px 14px}
  .admin-overview-card-head{display:block}
  .admin-overview-card-head p{margin:10px 0 0}
}

/* Admin full-contrast lock 20260524: keep all admin text readable on white panels. */
:root{
  --text:#020617;
  --muted:#111827;
  --muted-2:#111827;
}
body.admin-shell,
body.admin-shell .page,
body.admin-shell .card,
body.admin-shell .support-panel,
body.admin-shell .analytics-block,
body.admin-shell .site-analytics-subpanel,
body.admin-shell .site-analytics-table-panel,
body.admin-shell .admin-overview-card,
body.admin-shell .dashboard-card,
body.admin-shell .operations-panel,
body.admin-shell .crm-workspace-card,
body.admin-shell .crm-detail-drawer,
.login-shell,
.login-card{
  color:#020617!important;
}
body.admin-shell h1,
body.admin-shell h2,
body.admin-shell h3,
body.admin-shell h4,
body.admin-shell strong,
body.admin-shell b,
body.admin-shell label,
.login-card h1,
.login-card h2,
.login-card h3,
.login-card strong,
.login-card label{
  color:#020617!important;
}
body.admin-shell p,
body.admin-shell span,
body.admin-shell small,
body.admin-shell em,
body.admin-shell i,
body.admin-shell td,
body.admin-shell th,
body.admin-shell li,
body.admin-shell dt,
body.admin-shell dd,
body.admin-shell .helper,
body.admin-shell .crm-muted,
body.admin-shell .customer-meta,
body.admin-shell .customer-secondary,
body.admin-shell .support-ticket-meta,
body.admin-shell .support-message-meta,
body.admin-shell .section-health-event,
body.admin-shell .dashboard-freshness,
.login-card p,
.login-card span,
.login-card small{
  color:#111827!important;
}
body.admin-shell .admin-topbar,
body.admin-shell .admin-topbar *,
body.admin-shell .admin-main-tabs,
body.admin-shell .admin-main-tabs *{
  color:#f8fafc!important;
}
body.admin-shell .brand-mini,
body.admin-shell .brand-mini *,
body.admin-shell .brand-mini img{
  color:#020617!important;
}
body.admin-shell .tab-btn{
  color:#e5e7eb!important;
}
body.admin-shell .tab-btn.active{
  color:#ffffff!important;
}
body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea,
.login-card input,
.login-card select,
.login-card textarea{
  color:#020617!important;
  background:#ffffff!important;
}
body.admin-shell input::placeholder,
body.admin-shell textarea::placeholder,
.login-card input::placeholder,
.login-card textarea::placeholder{
  color:#111827!important;
  opacity:1!important;
}
body.admin-shell .btn,
body.admin-shell button,
.login-card .btn,
.login-card button{
  font-weight:950!important;
}
body.admin-shell .btn.secondary,
body.admin-shell .btn.ghost,
body.admin-shell .btn-dashed{
  color:#020617!important;
  background:#ffffff!important;
  border-color:#94a3b8!important;
}
body.admin-shell .site-analytics-table,
body.admin-shell .site-visitor-table,
body.admin-shell .crm-table,
body.admin-shell .operations-table,
body.admin-shell .dashboard-table,
body.admin-shell table{
  color:#020617!important;
}
body.admin-shell .site-analytics-table th,
body.admin-shell .site-visitor-table th,
body.admin-shell .crm-table th,
body.admin-shell .operations-table th,
body.admin-shell .dashboard-table th,
body.admin-shell table th{
  color:#111827!important;
  background:#f1f5f9!important;
  border-bottom:1px solid #cbd5e1!important;
  font-weight:950!important;
}
body.admin-shell .site-analytics-table td,
body.admin-shell .site-visitor-table td,
body.admin-shell .crm-table td,
body.admin-shell .operations-table td,
body.admin-shell .dashboard-table td,
body.admin-shell table td{
  color:#020617!important;
  background:#ffffff!important;
  border-bottom:1px solid #dbe4ef!important;
}
body.admin-shell .site-analytics-table td *,
body.admin-shell .site-visitor-table td *,
body.admin-shell .crm-table td *,
body.admin-shell .operations-table td *,
body.admin-shell .dashboard-table td *,
body.admin-shell table td *{
  color:#020617!important;
}
body.admin-shell .site-analytics-table span,
body.admin-shell .site-visitor-table span,
body.admin-shell .crm-table span,
body.admin-shell .operations-table span,
body.admin-shell .dashboard-table span,
body.admin-shell table span,
body.admin-shell .site-analytics-table small,
body.admin-shell .site-visitor-table small,
body.admin-shell .crm-table small,
body.admin-shell .operations-table small,
body.admin-shell .dashboard-table small,
body.admin-shell table small{
  color:#111827!important;
  font-weight:850!important;
}
body.admin-shell .site-funnel-step,
body.admin-shell .site-analytics-row,
body.admin-shell .site-visitor-card,
body.admin-shell .dashboard-lane-row,
body.admin-shell .dashboard-task-row,
body.admin-shell .operations-check-btn,
body.admin-shell .customer-item,
body.admin-shell .summary-card,
body.admin-shell .quick-card,
body.admin-shell .aggregate-card,
body.admin-shell .kv-item{
  color:#020617!important;
  background:#ffffff!important;
  border-color:#cbd5e1!important;
}
body.admin-shell .site-funnel-step *,
body.admin-shell .site-analytics-row *,
body.admin-shell .site-visitor-card *,
body.admin-shell .dashboard-lane-row *,
body.admin-shell .dashboard-task-row *,
body.admin-shell .operations-check-btn *,
body.admin-shell .customer-item *,
body.admin-shell .summary-card *,
body.admin-shell .quick-card *,
body.admin-shell .aggregate-card *,
body.admin-shell .kv-item *{
  color:#020617!important;
}
body.admin-shell .site-funnel-step small,
body.admin-shell .site-funnel-step em,
body.admin-shell .site-funnel-values small,
body.admin-shell .analytics-block-title span,
body.admin-shell .support-panel-title span,
body.admin-shell .crm-table-toolbar span,
body.admin-shell .operations-panel-head span,
body.admin-shell .operations-detail-head span,
body.admin-shell .section-health-head span:not(.section-status-badge),
body.admin-shell .dashboard-card-head strong{
  color:#111827!important;
  font-weight:900!important;
}
body.admin-shell .site-funnel-index{
  color:#065f46!important;
  background:#d1fae5!important;
  border-color:#86efac!important;
}
body.admin-shell .site-funnel-step.active{
  background:#ecfdf5!important;
  border-color:#10b981!important;
  box-shadow:0 0 0 3px rgba(16,185,129,.16)!important;
}
body.admin-shell .site-funnel-step:not(:last-child)::after{
  color:#020617!important;
  background:#ffffff!important;
  border-color:#cbd5e1!important;
}
body.admin-shell .site-funnel-main i{
  background:#e5e7eb!important;
}
body.admin-shell .site-funnel-main em{
  background:linear-gradient(90deg,#10b981,#2563eb)!important;
}
body.admin-shell .site-analytics-table td.good b,
body.admin-shell .site-visitor-table td.good b,
body.admin-shell .crm-money,
body.admin-shell .dashboard-money{
  color:#047857!important;
}
body.admin-shell .site-analytics-table td.risk b,
body.admin-shell .warning b,
body.admin-shell .warning strong{
  color:#92400e!important;
}
body.admin-shell .critical b,
body.admin-shell .critical strong,
body.admin-shell .error,
body.admin-shell .notice.error{
  color:#991b1b!important;
}
body.admin-shell .analytics-status,
body.admin-shell .pill,
body.admin-shell .support-source-badge,
body.admin-shell .section-status-badge,
body.admin-shell .operations-tone{
  color:#020617!important;
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
}
body.admin-shell .analytics-status.hot,
body.admin-shell .pill.ok,
body.admin-shell .support-source-badge.site,
body.admin-shell .section-status-badge.ok{
  color:#065f46!important;
  background:#d1fae5!important;
  border-color:#86efac!important;
}
body.admin-shell .analytics-status.warm,
body.admin-shell .pill.warning,
body.admin-shell .section-status-badge.observe{
  color:#1d4ed8!important;
  background:#dbeafe!important;
  border-color:#93c5fd!important;
}
body.admin-shell .analytics-status.lost,
body.admin-shell .pill.bad,
body.admin-shell .section-status-badge.error,
body.admin-shell .section-status-badge.blocked{
  color:#991b1b!important;
  background:#fee2e2!important;
  border-color:#fecaca!important;
}

/* Admin referral accounts model 20260524. */
body.admin-shell .referral-system-card{
  color:#020617!important;
}
body.admin-shell .referral-system-card .workspace-subtabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 14px;
}
body.admin-shell #salesSection .tab-btn{
  color:#020617!important;
  background:#ffffff!important;
  border-color:#cbd5e1!important;
  box-shadow:none!important;
}
body.admin-shell #salesSection .tab-btn:hover{
  background:#f8fafc!important;
  border-color:#94a3b8!important;
  color:#020617!important;
}
body.admin-shell #salesSection .tab-btn.active{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#ffffff!important;
}
body.admin-shell .referral-model-grid,
body.admin-shell .referral-summary-grid{
  display:grid;
  gap:10px;
  margin:12px 0;
}
body.admin-shell .referral-model-grid{
  grid-template-columns:repeat(4,minmax(160px,1fr));
}
body.admin-shell .referral-summary-grid{
  grid-template-columns:repeat(5,minmax(140px,1fr));
}
body.admin-shell .referral-model-grid article,
body.admin-shell .referral-summary-grid article,
body.admin-shell .sales-empty-state{
  background:#ffffff!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
body.admin-shell .referral-model-grid article{
  min-height:112px;
  padding:14px!important;
}
body.admin-shell .referral-model-grid article span{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  font-weight:950!important;
}
body.admin-shell .referral-model-grid article strong,
body.admin-shell .referral-summary-grid article strong,
body.admin-shell .sales-empty-state strong{
  display:block;
  color:#020617!important;
  font-weight:950!important;
}
body.admin-shell .referral-model-grid article strong{
  margin-top:10px;
  font-size:15px;
}
body.admin-shell .referral-model-grid article p,
body.admin-shell .referral-summary-grid article span,
body.admin-shell .sales-empty-state span{
  margin:6px 0 0;
  color:#111827!important;
  font-weight:800!important;
  line-height:1.35;
}
body.admin-shell .referral-summary-grid article{
  min-height:92px;
  padding:14px 16px!important;
}
body.admin-shell .referral-summary-grid article strong{
  margin-top:10px;
  font-size:30px;
  line-height:1;
}
body.admin-shell .referral-sync-meta{
  margin:10px 0 16px;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:#eff6ff;
  color:#020617!important;
  font-weight:850;
}
body.admin-shell .referral-link-cell{
  min-width:320px;
  max-width:620px;
}
body.admin-shell .sales-empty-state{
  min-height:118px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:18px!important;
  text-align:center;
}
body.admin-shell .admin-site-link{
  color:#020617!important;
  background:#ffffff!important;
  border-color:#dbe5f2!important;
  font-weight:950!important;
}
body.admin-shell .admin-site-link:hover{
  color:#020617!important;
  background:#f8fafc!important;
}

@media (max-width:1200px){
  body.admin-shell .referral-model-grid{
    grid-template-columns:repeat(2,minmax(180px,1fr));
  }
  body.admin-shell .referral-summary-grid{
    grid-template-columns:repeat(3,minmax(150px,1fr));
  }
}
@media (max-width:720px){
  body.admin-shell .referral-model-grid,
  body.admin-shell .referral-summary-grid{
    grid-template-columns:1fr;
  }
}

/* Admin site-palette/theme/table/problems CRM polish 20260526: visual-only. */
body.admin-shell{
  --accent:#2563eb;
  --accent-2:#16a34a;
  --accent-soft:rgba(37,99,235,.10);
  --accent-line:rgba(37,99,235,.24);
  --bg:#f6f8fb;
  --bg-2:#eef4fb;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --panel-strong:#f1f5f9;
  --text:#102033;
  --muted:#637184;
  --muted-2:#475569;
  --line:rgba(18,26,36,.14);
  --line-strong:rgba(18,26,36,.22);
  --green:#16a34a;
  --yellow:#a86b00;
  --red:#d83b48;
  --blue:#2563eb;
}
html[data-admin-theme="dark"] body.admin-shell{
  --accent:#3393ff;
  --accent-2:#4ade80;
  --accent-soft:rgba(51,147,255,.16);
  --accent-line:rgba(51,147,255,.28);
  --bg:#141e2d;
  --bg-2:#18263a;
  --panel:#1e2b3e;
  --panel-soft:#18263a;
  --panel-strong:#22364c;
  --text:#f5f8fb;
  --muted:#a8b4c7;
  --muted-2:#d6deea;
  --line:rgba(137,151,172,.38);
  --line-strong:rgba(137,151,172,.56);
  --green:#4ade80;
  --yellow:#f1b24c;
  --red:#ff7d7d;
  --blue:#3393ff;
}
body.admin-shell,
body.admin-shell .page{
  background:var(--bg)!important;
  color:var(--text)!important;
}
html[data-admin-theme="dark"] body.admin-shell,
html[data-admin-theme="dark"] body.admin-shell .page{
  background:#141e2d!important;
  color:var(--text)!important;
}
body.admin-shell .admin-theme-switch{
  width:76px!important;
  min-width:76px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-top:14px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
}
body.admin-shell .admin-theme-option{
  display:none!important;
}
body.admin-shell .admin-theme-toggle{
  width:76px!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--muted)!important;
  box-shadow:none!important;
}
body.admin-shell .admin-theme-switch-track{
  width:46px!important;
  height:24px!important;
  display:block!important;
  position:relative!important;
  border-radius:999px!important;
  background:#d6e1ec!important;
  box-shadow:inset 0 0 0 1px rgba(18,26,36,.12)!important;
  transition:background-color .2s ease!important;
}
body.admin-shell .admin-theme-switch-thumb{
  position:absolute!important;
  left:3px!important;
  top:3px!important;
  width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(18,26,36,.18)!important;
  transition:transform .22s ease, background-color .22s ease!important;
}
body.admin-shell .admin-theme-label{
  display:none!important;
}
body.admin-shell .admin-theme-toggle[aria-pressed="true"] .admin-theme-switch-track{
  background:#24364c!important;
}
body.admin-shell .admin-theme-toggle[aria-pressed="true"] .admin-theme-switch-thumb{
  transform:translateX(22px)!important;
  background:#3393ff!important;
}
body.admin-shell :is(.table-wrap,.crm-table-wrap,.dashboard-table-wrap,.operations-table-wrap,.site-analytics-table-wrap,.site-visitor-table-wrap){
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:var(--panel)!important;
  overflow:auto!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table){
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) th,
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) td{
  border-bottom:1px solid var(--line)!important;
  border-right:1px solid var(--line)!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) th:last-child,
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) td:last-child{
  border-right:0!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) tbody tr:last-child td{
  border-bottom:0!important;
}
body.admin-shell .operations-crm-board{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
}
body.admin-shell .operations-crm-lane{
  min-width:0!important;
  min-height:360px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid var(--line)!important;
  border-top:4px solid #22c55e!important;
  border-radius:8px!important;
  background:var(--panel-soft)!important;
}
body.admin-shell .operations-crm-lane.critical{border-top-color:#ef4444!important}
body.admin-shell .operations-crm-lane.warning{border-top-color:#f59e0b!important}
body.admin-shell .operations-crm-lane.ok{border-top-color:#22c55e!important}
body.admin-shell .operations-crm-lane-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.admin-shell .operations-crm-lane-head strong{
  color:var(--text)!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
body.admin-shell .operations-crm-lane-head span,
body.admin-shell .operations-count-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  border:1px solid var(--line)!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.admin-shell .operations-crm-list{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
body.admin-shell .operations-crm-card{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  padding:12px!important;
  border:1px solid var(--line)!important;
  border-left:4px solid #22c55e!important;
  border-radius:8px!important;
  background:var(--panel)!important;
  box-shadow:0 10px 20px rgba(15,23,42,.05)!important;
}
body.admin-shell .operations-crm-card.critical{border-left-color:#ef4444!important}
body.admin-shell .operations-crm-card.warning{border-left-color:#f59e0b!important}
body.admin-shell .operations-crm-card.ok{border-left-color:#22c55e!important}
body.admin-shell .operations-crm-card-top,
body.admin-shell .operations-crm-card-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
body.admin-shell .operations-crm-card-top strong{
  color:var(--text)!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
body.admin-shell .operations-crm-card-status,
body.admin-shell .operations-crm-card-body span,
body.admin-shell .operations-crm-card-body small,
body.admin-shell .operations-crm-card-foot span{
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:720!important;
}
body.admin-shell .operations-crm-card-body{
  display:grid!important;
  gap:7px!important;
}
body.admin-shell .operations-crm-card-body code{
  display:block!important;
  max-width:100%!important;
  padding:7px 8px!important;
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:var(--panel-soft)!important;
  color:var(--text)!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
  font-size:11px!important;
  line-height:1.35!important;
  white-space:normal!important;
  word-break:break-word!important;
}
body.admin-shell .operations-product-board .operations-board-card{
  min-height:112px!important;
}
body.admin-shell .operations-product-board .operations-board-card strong{
  display:block!important;
}

/* Admin Problems status switcher 20260526: three pill toggles only. */
body.admin-shell .operations-status-switcher{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:10px!important;
}
body.admin-shell .operations-status-tab{
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 14px!important;
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  box-shadow:none!important;
  cursor:pointer!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.admin-shell .operations-status-tab:hover{
  border-color:#93c5fd!important;
  background:var(--panel-soft)!important;
}
body.admin-shell .operations-status-tab.active{
  background:#eff6ff!important;
  border-color:#93c5fd!important;
  color:#2563eb!important;
  box-shadow:0 0 0 1px #93c5fd!important;
}
body.admin-shell .operations-status-tab.critical.active{
  background:#fff1f2!important;
  border-color:#fda4af!important;
  color:#991b1b!important;
}
body.admin-shell .operations-status-tab.warning.active{
  background:#fffbeb!important;
  border-color:#fcd34d!important;
  color:#92400e!important;
}
body.admin-shell .operations-status-tab.ok.active{
  background:#ecfdf5!important;
  border-color:#86efac!important;
  color:#065f46!important;
}
body.admin-shell .operations-status-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:24px!important;
  height:24px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:rgba(37,99,235,.12)!important;
  color:inherit!important;
  font-size:12px!important;
  font-weight:950!important;
  font-variant-numeric:tabular-nums!important;
}
body.admin-shell .operations-status-board{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
}
body.admin-shell .operations-status-board .operations-crm-lane{
  min-height:320px!important;
}
body.admin-shell .operations-status-table{
  width:100%!important;
  min-width:1120px!important;
  table-layout:fixed!important;
  background:var(--panel)!important;
}
body.admin-shell .operations-status-table .operations-col-number{width:54px!important}
body.admin-shell .operations-status-table .operations-col-user{width:240px!important}
body.admin-shell .operations-status-table .operations-col-status{width:150px!important}
body.admin-shell .operations-status-table .operations-col-problem{width:27%!important}
body.admin-shell .operations-status-table .operations-col-source{width:24%!important}
body.admin-shell .operations-status-table .operations-col-action{width:27%!important}
body.admin-shell .operations-status-table th,
body.admin-shell .operations-status-table td{
  vertical-align:top!important;
}
body.admin-shell .operations-status-table th{
  padding:12px 12px!important;
  background:var(--panel-strong)!important;
  color:var(--muted-2)!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
  white-space:nowrap!important;
}
body.admin-shell .operations-status-table td{
  padding:13px 12px!important;
  color:var(--text)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:720!important;
}
body.admin-shell .operations-status-table tbody tr{
  background:var(--panel)!important;
  transition:background .16s ease!important;
}
body.admin-shell .operations-status-table tbody tr:hover{
  background:var(--panel-soft)!important;
}
body.admin-shell .operations-status-table .operations-row-number{
  width:52px!important;
  text-align:center!important;
  color:var(--muted)!important;
  font-weight:900!important;
  font-variant-numeric:tabular-nums!important;
}
body.admin-shell .operations-status-table tbody .operations-row-number{
  color:var(--text)!important;
  font-size:13px!important;
}
body.admin-shell .operations-table-user strong{
  display:block!important;
  color:var(--text)!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
body.admin-shell .operations-table-user span,
body.admin-shell .operations-table-status-stack span{
  display:block!important;
  margin-top:5px!important;
  color:var(--muted)!important;
  font-size:11px!important;
  line-height:1.3!important;
  font-weight:760!important;
}
body.admin-shell .operations-table-status .operations-tone{
  min-width:86px!important;
  justify-content:center!important;
}
body.admin-shell .operations-table-status-stack{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
}
body.admin-shell .operations-table-problem{
  color:var(--text)!important;
  font-weight:820!important;
}
body.admin-shell .operations-status-table code{
  display:block!important;
  width:100%!important;
  padding:6px 8px!important;
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:var(--panel-soft)!important;
  color:var(--text)!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
  font-size:11px!important;
  line-height:1.35!important;
  white-space:normal!important;
  word-break:break-word!important;
}
body.admin-shell .operations-table-action{
  min-width:0!important;
}
body.admin-shell .operations-table-action > span{
  display:block!important;
  color:var(--text)!important;
  font-weight:820!important;
}
body.admin-shell .operations-table-link{
  width:max-content!important;
  margin-top:8px!important;
}
body.admin-shell .operations-status-table tr.critical td:first-child{
  border-left:4px solid var(--red)!important;
}
body.admin-shell .operations-status-table tr.warning td:first-child{
  border-left:4px solid var(--yellow)!important;
}
body.admin-shell .operations-status-table tr.ok td:first-child{
  border-left:4px solid var(--green)!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-tab{
  background:var(--panel-strong)!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-tab.active{
  box-shadow:0 0 0 1px currentColor!important;
}
@media (max-width:720px){
  body.admin-shell .operations-status-switcher{
    gap:7px!important;
  }
  body.admin-shell .operations-status-tab{
    flex:1 1 calc(33.333% - 8px)!important;
    justify-content:center!important;
    padding:0 10px!important;
  }
}
body.admin-shell .operations-board-counts{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  padding-right:12px!important;
}
body.admin-shell .operations-count-badge.critical{
  color:#991b1b!important;
  background:#fee2e2!important;
  border-color:#fecaca!important;
}
body.admin-shell .operations-count-badge.warning{
  color:#92400e!important;
  background:#fef3c7!important;
  border-color:#fde68a!important;
}
body.admin-shell .operations-count-badge.ok{
  color:#065f46!important;
  background:#d1fae5!important;
  border-color:#86efac!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-crm-lane,
html[data-admin-theme="dark"] body.admin-shell .operations-crm-card,
html[data-admin-theme="dark"] body.admin-shell .operations-crm-card-body code{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-count-badge.critical,
html[data-admin-theme="dark"] body.admin-shell .operations-tone.critical{
  color:#ffd1d1!important;
  background:#531f25!important;
  border-color:#8f333b!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-count-badge.warning,
html[data-admin-theme="dark"] body.admin-shell .operations-tone.warning{
  color:#ffe7ad!important;
  background:#503b13!important;
  border-color:#8a641b!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-count-badge.ok,
html[data-admin-theme="dark"] body.admin-shell .operations-tone.ok{
  color:#bfffe7!important;
  background:#0f4636!important;
  border-color:#1a7f62!important;
}
@media (max-width:1100px){
  body.admin-shell .operations-crm-board{
    grid-template-columns:1fr!important;
  }
}

/* Admin CRM workboard polish 20260524: visual-only layer, no CRM/API changes. */
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-card{
  padding:22px 18px 16px!important;
  border-radius:8px!important;
  box-shadow:0 18px 42px rgba(15,23,42,.07)!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-panel{
  gap:14px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-head{
  display:grid!important;
  grid-template-columns:minmax(220px,.32fr) minmax(520px,1fr)!important;
  align-items:start!important;
  gap:18px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-title strong{
  display:block!important;
  font-size:22px!important;
  line-height:1.12!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-title span{
  margin-top:6px!important;
  color:#334155!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
  display:grid!important;
  grid-template-columns:minmax(360px,1fr) 112px 126px!important;
  align-items:stretch!important;
  gap:8px!important;
  min-width:0!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search input,
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search .btn{
  min-height:42px!important;
  height:42px!important;
  border-radius:8px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search input{
  padding:0 14px!important;
  font-size:14px!important;
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search .btn{
  min-width:0!important;
  padding:0 14px!important;
  justify-content:center!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tabs{
  gap:8px!important;
  padding:10px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-line{
  gap:8px!important;
  padding:1px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab{
  min-height:40px!important;
  border-radius:8px!important;
  padding:0 12px!important;
  background:#ffffff!important;
  border-color:#cbd5e1!important;
  color:#020617!important;
  font-size:13px!important;
  line-height:1!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab:hover{
  background:#f1f5f9!important;
  border-color:#94a3b8!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab.active{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab b{
  min-width:24px!important;
  height:24px!important;
  background:#e0ecff!important;
  color:#1d4ed8!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab.active b{
  background:#ffffff!important;
  color:#1d4ed8!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-list-shell{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .customer-list{
  padding:0!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-shell{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-wrap{
  max-width:100%!important;
  overflow:auto!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#ffffff!important;
  box-shadow:none!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"]{
  min-width:1520px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  color:#020617!important;
  font-size:13px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-cabinet-compact-width{width:11%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-user-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-email-width{width:13%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-phone-width{width:9%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-stage-width{width:13%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-access-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-money-width{width:7%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-activity-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-problem-width{width:8%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-action-width{width:9%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] th{
  padding:12px!important;
  background:#f1f5f9!important;
  border-bottom:1px solid #cbd5e1!important;
  color:#111827!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] td{
  padding:13px 12px!important;
  border-bottom:1px solid #e2e8f0!important;
  color:#020617!important;
  font-size:13px!important;
  line-height:1.35!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] tbody tr:last-child td{
  border-bottom:0!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] tbody tr:hover td{
  background:#f8fbff!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-row.active td,
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-row.detail-open td{
  background:#eff6ff!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-cell,
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-cell-compact{
  align-items:flex-start!important;
  gap:8px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-name,
body.admin-shell[data-admin-customer-mode="crm"] .crm-main-value{
  color:#020617!important;
  font-size:13px!important;
  line-height:1.28!important;
  font-weight:950!important;
  word-break:break-word!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-muted,
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-meta{
  margin-top:4px!important;
  color:#334155!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:780!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline{
  grid-template-columns:minmax(0,1fr) 76px!important;
  grid-template-areas:"select save" "select clear"!important;
  gap:6px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-select-inline{
  min-height:34px!important;
  height:34px!important;
  border-radius:8px!important;
  font-size:12px!important;
  padding:0 9px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline .crm-stage-select-inline{
  min-height:34px!important;
  height:auto!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline .btn{
  min-width:76px!important;
  min-height:28px!important;
  height:28px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-stack{
  gap:6px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-problem-badge,
body.admin-shell[data-admin-customer-mode="crm"] .crm-action{
  border-radius:8px!important;
  padding:6px 8px!important;
  font-size:12px!important;
  line-height:1.25!important;
  white-space:normal!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .section-health-dots{
  gap:4px!important;
  margin-top:8px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .section-dot{
  width:22px!important;
  height:22px!important;
  font-size:8px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .pagination{
  padding:12px 0 0!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .pager-row .btn{
  min-height:38px!important;
  border-radius:8px!important;
}
body.admin-shell .admin-topbar .admin-site-link{
  color:#020617!important;
  background:#ffffff!important;
  border:1px solid #dbe5f2!important;
  text-shadow:none!important;
}
body.admin-shell .admin-topbar .admin-site-link:hover{
  color:#020617!important;
  background:#f8fafc!important;
}
@media (max-width:1200px){
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-head{
    grid-template-columns:1fr!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
    grid-template-columns:minmax(280px,1fr) auto auto!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"]{
    min-width:1320px!important;
  }
}
@media (max-width:720px){
  body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-card{
    padding:16px 12px!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
    grid-template-columns:1fr!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search .btn{
    width:100%!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"]{
    min-width:1120px!important;
  }
}

/* Admin operations command center 20260524: clearer first-screen workflow, no API/data changes. */
body.admin-shell .operations-workspace{
  gap:14px!important;
}
body.admin-shell .operations-command-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:18px!important;
  padding:16px 0 0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.admin-shell .operations-command-hero h3{
  margin:0!important;
  color:#020617!important;
  font-size:34px!important;
  line-height:1.05!important;
  font-weight:850!important;
}
body.admin-shell .operations-command-hero .helper{
  max-width:840px;
  margin-top:8px!important;
  color:#334155!important;
  font-size:15px!important;
  line-height:1.45!important;
  font-weight:720!important;
}
body.admin-shell .operations-actions{
  display:grid!important;
  grid-template-columns:auto auto!important;
  align-items:center!important;
  justify-content:end!important;
  gap:8px!important;
}
body.admin-shell .operations-actions .btn{
  min-height:42px!important;
  border-radius:8px!important;
  padding:0 14px!important;
}
body.admin-shell .operations-actions .dashboard-freshness{
  grid-column:1 / -1;
  justify-self:end;
  color:#334155!important;
  font-size:13px!important;
  font-weight:820!important;
}
body.admin-shell .operations-command-summary{
  display:block!important;
}
body.admin-shell .operations-decision-board{
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(190px,.35fr) minmax(0,1.7fr);
  gap:12px;
  align-items:stretch;
  padding:12px;
  border:1px solid #dbe5f2;
  border-radius:8px;
  background:#ffffff;
  box-shadow:0 18px 42px rgba(15,23,42,.07);
}
body.admin-shell .operations-verdict{
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:8px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
body.admin-shell .operations-verdict strong{
  display:block;
  color:#020617!important;
  font-size:18px;
  line-height:1.2;
  font-weight:850;
}
body.admin-shell .operations-verdict span:not(.operations-tone){
  display:block;
  margin-top:4px;
  color:#334155!important;
  font-size:13px;
  line-height:1.35;
  font-weight:720;
}
body.admin-shell .operations-next-step{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
}
body.admin-shell .operations-next-step span{
  color:#1e3a8a!important;
  font-size:12px;
  line-height:1.2;
  font-weight:850;
}
body.admin-shell .operations-next-step button{
  min-height:34px;
  border:1px solid #2563eb;
  border-radius:8px;
  background:#2563eb;
  color:#ffffff!important;
  font-size:13px;
  line-height:1.1;
  font-weight:850;
  cursor:pointer;
}
body.admin-shell .operations-board-grid{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
body.admin-shell .operations-board-card{
  min-width:0;
  min-height:86px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  padding:10px;
  border:1px solid #dbe5f2;
  border-radius:8px;
  background:#ffffff;
  color:#020617!important;
  text-align:left;
  box-shadow:none;
}
body.admin-shell button.operations-board-card{
  cursor:pointer;
}
body.admin-shell .operations-board-card:hover,
body.admin-shell .operations-board-card.active{
  border-color:#93c5fd!important;
  background:#f8fbff!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
}
body.admin-shell .operations-board-card.critical{
  border-color:#fecaca!important;
  background:#fff7f7!important;
}
body.admin-shell .operations-board-card.warning{
  border-color:#fde68a!important;
  background:#fffdf3!important;
}
body.admin-shell .operations-board-card.ok{
  border-color:#bbf7d0!important;
  background:#f8fffb!important;
}
body.admin-shell .operations-board-card span{
  color:#334155!important;
  font-size:12px;
  line-height:1.2;
  font-weight:820;
}
body.admin-shell .operations-board-card strong{
  color:#020617!important;
  font-size:26px;
  line-height:1;
  font-weight:850;
}
body.admin-shell .operations-board-card small{
  color:#334155!important;
  font-size:12px;
  line-height:1.25;
  font-weight:720;
}
body.admin-shell .operations-command-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
}
body.admin-shell .operations-panel{
  border-radius:8px!important;
  border:1px solid #dbe5f2!important;
  background:#ffffff!important;
  box-shadow:0 18px 42px rgba(15,23,42,.07)!important;
}
body.admin-shell .operations-detail-panel{
  min-height:468px!important;
  padding:16px!important;
}
body.admin-shell .operations-nav-panel{
  position:sticky!important;
  top:24px!important;
  padding:14px!important;
}
body.admin-shell .operations-panel-head,
body.admin-shell .operations-detail-head{
  margin-bottom:12px!important;
}
body.admin-shell .operations-panel-head strong,
body.admin-shell .operations-detail-head strong{
  color:#020617!important;
  font-size:19px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
body.admin-shell .operations-panel-head span,
body.admin-shell .operations-detail-head span{
  color:#334155!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:720!important;
}
body.admin-shell .operations-check-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
body.admin-shell .operations-check-btn{
  min-height:78px!important;
  padding:11px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  border-radius:8px!important;
  border-color:#dbe5f2!important;
  background:#ffffff!important;
  box-shadow:none!important;
  transform:none!important;
}
body.admin-shell .operations-check-btn:hover,
body.admin-shell .operations-check-btn.active{
  background:#f8fbff!important;
  border-color:#93c5fd!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
  transform:none!important;
}
body.admin-shell .operations-check-btn.critical{
  border-color:#fecaca!important;
  background:#fff7f7!important;
}
body.admin-shell .operations-check-btn.warning{
  border-color:#fde68a!important;
  background:#fffdf3!important;
}
body.admin-shell .operations-check-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
body.admin-shell .operations-check-title strong{
  color:#020617!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
body.admin-shell .operations-check-main small{
  margin-top:5px!important;
  color:#334155!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:720!important;
  -webkit-line-clamp:2!important;
}
body.admin-shell .operations-check-side{
  align-items:center!important;
}
body.admin-shell .operations-check-side b{
  color:#020617!important;
  font-size:18px!important;
  font-weight:850!important;
}
body.admin-shell .operations-check-action{
  display:block!important;
  color:#334155!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
body.admin-shell .operations-table-wrap{
  border-radius:8px!important;
  border:1px solid #dbe5f2!important;
  background:#ffffff!important;
  overflow:auto!important;
}
body.admin-shell .operations-table{
  min-width:920px!important;
  font-size:13px!important;
}
body.admin-shell .operations-table.compact{
  min-width:760px!important;
}
body.admin-shell .operations-users-table,
body.admin-shell .operations-work-list{
  min-width:1080px!important;
}
body.admin-shell .operations-table th{
  padding:11px 12px!important;
  background:#f1f5f9!important;
  border-bottom:1px solid #cbd5e1!important;
  color:#111827!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
body.admin-shell .operations-table td{
  padding:12px!important;
  border-bottom:1px solid #e2e8f0!important;
  color:#020617!important;
  font-size:13px!important;
  line-height:1.35!important;
}
body.admin-shell .operations-table tbody tr:last-child td{
  border-bottom:0!important;
}
body.admin-shell .operations-table strong{
  color:#020617!important;
  font-size:13px!important;
  font-weight:850!important;
}
body.admin-shell .operations-table span,
body.admin-shell .operations-table small{
  color:#334155!important;
  font-size:12px!important;
  font-weight:720!important;
}
body.admin-shell .operations-table.operations-status-table{
  min-width:1120px!important;
  table-layout:fixed!important;
}
body.admin-shell .operations-table.operations-status-table th{
  padding:12px 12px!important;
  background:var(--panel-strong)!important;
  color:var(--muted-2)!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
}
body.admin-shell .operations-table.operations-status-table td{
  padding:13px 12px!important;
  color:var(--text)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:720!important;
}
body.admin-shell .operations-signal-cell{
  display:flex;
  flex-direction:column;
  gap:8px;
}
body.admin-shell .operations-issue-list{
  gap:5px!important;
}
body.admin-shell .operations-issue{
  display:block!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  border:1px solid #dbe5f2!important;
  background:#f8fafc!important;
  color:#020617!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:760!important;
}
body.admin-shell .operations-section-strip{
  max-width:none!important;
  gap:4px!important;
}
body.admin-shell .operations-section-dot{
  width:auto!important;
  min-width:28px!important;
  height:22px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  font-size:9px!important;
  color:#020617!important;
}
body.admin-shell .operations-dev-note{
  gap:6px!important;
}
body.admin-shell .operations-dev-note code,
body.admin-shell .operations-dev-note span{
  color:#020617!important;
  background:#f8fafc!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  padding:6px 8px!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:720!important;
}
body.admin-shell .operations-action-cell span{
  display:inline-flex!important;
  align-items:center;
  min-height:30px;
  padding:6px 8px;
  border-radius:8px;
  background:#ecfdf5!important;
  border:1px solid #a7f3d0!important;
  color:#065f46!important;
  font-weight:850!important;
}
body.admin-shell .operations-tone{
  min-height:24px!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  font-size:12px!important;
  font-weight:850!important;
}
body.admin-shell .operations-tone.critical{
  color:#991b1b!important;
  background:#fee2e2!important;
  border-color:#fecaca!important;
}
body.admin-shell .operations-tone.warning{
  color:#92400e!important;
  background:#fef3c7!important;
  border-color:#fde68a!important;
}
body.admin-shell .operations-tone.ok{
  color:#065f46!important;
  background:#d1fae5!important;
  border-color:#86efac!important;
}
body.admin-shell .operations-empty{
  border-radius:8px!important;
  border:1px solid #dbe5f2!important;
  background:#f8fafc!important;
  color:#334155!important;
}
@media (max-width:1320px){
  body.admin-shell .operations-decision-board{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .operations-board-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.admin-shell .operations-command-grid{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .operations-nav-panel{
    position:static!important;
  }
  body.admin-shell .operations-check-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:760px){
  body.admin-shell .operations-command-hero{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .operations-actions{
    grid-template-columns:1fr!important;
    justify-content:stretch!important;
  }
  body.admin-shell .operations-actions .dashboard-freshness{
    justify-self:start!important;
  }
  body.admin-shell .operations-board-grid,
  body.admin-shell .operations-check-list{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .operations-command-hero h3{
    font-size:28px!important;
  }
}

/* Admin support queues 20260524: clear two-state chat workflow, no archive wording in UI. */
body.admin-shell #supportSection .support-command-card{
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
}
body.admin-shell #supportSection .support-admin-head{
  align-items:center!important;
  padding-bottom:4px!important;
}
body.admin-shell #supportSection .support-admin-head h3{
  color:#020617!important;
  font-size:28px!important;
  letter-spacing:0!important;
}
body.admin-shell #supportSection .support-admin-head .helper{
  color:#111827!important;
  max-width:760px!important;
  font-weight:850!important;
}
body.admin-shell #supportSection .support-toolbar input,
body.admin-shell #supportSection .support-toolbar select,
body.admin-shell #supportSection .support-chat-actions select{
  min-height:44px!important;
  border-radius:14px!important;
  border:1px solid #cbd5e1!important;
  background:#ffffff!important;
  color:#020617!important;
  font-weight:900!important;
  box-shadow:none!important;
}
body.admin-shell #supportSection .support-toolbar input:focus,
body.admin-shell #supportSection .support-toolbar select:focus,
body.admin-shell #supportSection .support-chat-actions select:focus,
body.admin-shell #supportSection .support-reply-form textarea:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.14)!important;
}
body.admin-shell #supportSection .support-stats{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.admin-shell #supportSection .support-stats div{
  min-height:82px!important;
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.05)!important;
}
body.admin-shell #supportSection .support-stats span{
  color:#111827!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:0!important;
}
body.admin-shell #supportSection .support-stats strong{
  color:#020617!important;
  font-size:28px!important;
  font-weight:950!important;
}
body.admin-shell #supportSection .support-channel-tabs,
body.admin-shell #supportSection .support-status-tabs{
  gap:10px!important;
}
body.admin-shell #supportSection .support-channel-tabs .tab-btn,
body.admin-shell #supportSection .support-status-tabs .tab-btn{
  min-height:42px!important;
  border-radius:14px!important;
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  color:#020617!important;
  box-shadow:none!important;
  font-weight:950!important;
}
body.admin-shell #supportSection .support-channel-tabs .tab-btn.active,
body.admin-shell #supportSection .support-status-tabs .tab-btn.active{
  border-color:#2563eb!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;
}
body.admin-shell #supportSection .support-admin-layout{
  grid-template-columns:minmax(360px,470px) minmax(0,1fr)!important;
  gap:16px!important;
  min-height:650px!important;
}
body.admin-shell #supportSection .support-panel{
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  box-shadow:0 12px 30px rgba(15,23,42,.06)!important;
}
body.admin-shell #supportSection .support-panel-title{
  height:58px!important;
  border-bottom-color:#dbe4ef!important;
  background:#f8fafc!important;
}
body.admin-shell #supportSection .support-panel-title strong,
body.admin-shell #supportSection .support-panel-title span{
  color:#020617!important;
  font-weight:950!important;
}
body.admin-shell #supportSection .support-ticket-list{
  gap:10px!important;
  padding:12px!important;
}
body.admin-shell #supportSection .support-ticket-item{
  border-color:#dbe4ef!important;
  background:#ffffff!important;
  color:#020617!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
body.admin-shell #supportSection .support-ticket-item:hover,
body.admin-shell #supportSection .support-ticket-item.active{
  border-color:#2563eb!important;
  background:#eff6ff!important;
  transform:none!important;
}
body.admin-shell #supportSection .support-ticket-title,
body.admin-shell #supportSection .support-ticket-meta,
body.admin-shell #supportSection .support-ticket-item *{
  color:#020617!important;
}
body.admin-shell #supportSection .support-ticket-meta{
  color:#334155!important;
  font-weight:850!important;
}
body.admin-shell #supportSection .support-badge{
  color:#020617!important;
  border-color:#cbd5e1!important;
  background:#f8fafc!important;
}
body.admin-shell #supportSection .support-badge.needs-reply,
body.admin-shell #supportSection .support-badge.open{
  color:#991b1b!important;
  border-color:#fecaca!important;
  background:#fee2e2!important;
}
body.admin-shell #supportSection .support-badge.answered,
body.admin-shell #supportSection .support-badge.closed,
body.admin-shell #supportSection .support-badge.archived{
  color:#065f46!important;
  border-color:#86efac!important;
  background:#d1fae5!important;
}
body.admin-shell #supportSection .support-source-badge.site{
  color:#065f46!important;
  border-color:#86efac!important;
  background:#d1fae5!important;
}
body.admin-shell #supportSection .support-source-badge.lead{
  color:#92400e!important;
  border-color:#fcd34d!important;
  background:#fef3c7!important;
}
body.admin-shell #supportSection .support-source-badge.telegram{
  color:#1d4ed8!important;
  border-color:#93c5fd!important;
  background:#dbeafe!important;
}
body.admin-shell #supportSection .support-lead-card{
  color:#020617!important;
  border-color:#dbe4ef!important;
  background:#f8fafc!important;
}
body.admin-shell #supportSection .support-lead-card *{
  color:#020617!important;
}
body.admin-shell #supportSection .support-chat-empty{
  color:#020617!important;
  background:#ffffff!important;
  font-weight:950!important;
}
body.admin-shell #supportSection .support-chat-header{
  background:#f8fafc!important;
  border-bottom-color:#dbe4ef!important;
}
body.admin-shell #supportSection .support-chat-header h4,
body.admin-shell #supportSection .support-chat-header .helper{
  color:#020617!important;
}
body.admin-shell #supportSection .support-messages{
  background:#f8fafc!important;
}
body.admin-shell #supportSection .support-message{
  color:#020617!important;
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.05)!important;
}
body.admin-shell #supportSection .support-message.admin{
  border-color:#93c5fd!important;
  background:#eff6ff!important;
}
body.admin-shell #supportSection .support-message.user{
  border-color:#cbd5e1!important;
  background:#ffffff!important;
}
body.admin-shell #supportSection .support-message-meta,
body.admin-shell #supportSection .support-message-body{
  color:#020617!important;
}
body.admin-shell #supportSection .support-reply-form{
  border-top-color:#dbe4ef!important;
  background:#ffffff!important;
}
body.admin-shell #supportSection .support-reply-form textarea{
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  color:#020617!important;
  font-weight:850!important;
}
body.admin-shell #supportSection .support-empty-list{
  color:#020617!important;
  font-weight:950!important;
}
@media (max-width:1080px){
  body.admin-shell #supportSection .support-admin-layout{
    grid-template-columns:1fr!important;
    min-height:auto!important;
  }
}
@media (max-width:680px){
  body.admin-shell #supportSection .support-stats{
    grid-template-columns:1fr!important;
  }
}

/* Admin theme switch and CRM visual audit fixes 20260525: visual-only, no API/data changes. */
html[data-admin-theme="light"]{
  --admin-theme-name:light;
}
html[data-admin-theme="dark"]{
  --admin-theme-name:dark;
  --accent:#5fb3ff;
  --accent-2:#35d399;
  --accent-soft:rgba(95,179,255,.16);
  --accent-line:rgba(95,179,255,.34);
  --bg:#0f1b24;
  --bg-2:#132834;
  --panel:#14242d;
  --panel-soft:#192d37;
  --panel-strong:#203844;
  --text:#ecf7f5;
  --muted:#b9c9d1;
  --muted-2:#d7e4e8;
  --line:#2f4b57;
  --line-strong:#436674;
  --shadow:0 18px 42px rgba(1,13,17,.34);
  --green:#35d399;
  --yellow:#f5c451;
  --red:#ff7d7d;
  --blue:#5fb3ff;
  --orange:#ffb35f;
}
body.admin-shell{
  --admin-sidebar-w:272px;
  --admin-sidebar:#0b252d;
  --admin-sidebar-2:#12343d;
  --admin-sidebar-text:#f8fafc;
  --admin-sidebar-muted:#d6e0e4;
}
body.admin-shell .page{
  padding:32px 24px 40px calc(var(--admin-sidebar-w) + 28px)!important;
}
body.admin-shell .card,
body.admin-shell .dashboard-card,
body.admin-shell .operations-panel,
body.admin-shell .support-panel,
body.admin-shell .crm-workspace-card,
body.admin-shell .crm-table-wrap,
body.admin-shell .admin-overview-card,
body.admin-shell .registrations-card,
body.admin-shell .section-health-card,
body.admin-shell .quick-card,
body.admin-shell .aggregate-card,
body.admin-shell .kv-item{
  border-radius:8px!important;
}
body.admin-shell .admin-topbar{
  padding:24px!important;
}
body.admin-shell .admin-topbar .brand-mini{
  width:100%!important;
  min-height:58px!important;
  justify-content:flex-start!important;
  padding:8px 10px!important;
  border-radius:8px!important;
}
body.admin-shell .admin-topbar .brand-mini img{
  width:166px!important;
  max-height:40px!important;
}
body.admin-shell .admin-theme-switch{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:14px;
  padding:5px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.06);
}
body.admin-shell .admin-theme-option{
  min-width:0;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 8px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--admin-sidebar-muted)!important;
  font-size:12px;
  line-height:1;
  font-weight:850!important;
  box-shadow:none!important;
}
body.admin-shell .admin-theme-option:hover{
  color:#ffffff!important;
  background:rgba(255,255,255,.08)!important;
}
body.admin-shell .admin-theme-option.active{
  color:#0f172a!important;
  background:#ffffff!important;
  border-color:rgba(255,255,255,.18)!important;
}
body.admin-shell .admin-theme-icon{
  color:inherit!important;
  font-size:13px;
  line-height:1;
}
body.admin-shell .admin-main-tabs{
  top:174px!important;
  left:24px!important;
  width:224px!important;
  gap:8px!important;
  bottom:96px!important;
  max-height:calc(100vh - 270px)!important;
}
body.admin-shell .admin-main-tabs .tab-btn{
  min-height:44px!important;
  padding:0 13px!important;
  font-size:15px!important;
  font-weight:850!important;
}
body.admin-shell .admin-site-link{
  left:24px!important;
  right:24px!important;
  bottom:24px!important;
  min-height:44px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-card{
  padding:18px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-head{
  grid-template-columns:minmax(230px,.28fr) minmax(520px,1fr)!important;
  align-items:center!important;
  gap:16px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-title strong{
  font-size:21px!important;
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-title span{
  margin-top:4px!important;
  font-size:13px!important;
  font-weight:780!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
  grid-template-columns:minmax(300px,1fr) 112px 116px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search input,
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search .btn{
  min-height:40px!important;
  height:40px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tabs{
  padding:9px!important;
  gap:7px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab{
  min-height:38px!important;
  padding:0 10px!important;
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-wrap{
  max-height:calc(100vh - 360px)!important;
  min-height:188px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"]{
  min-width:1400px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-cabinet-compact-width{width:12%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-user-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-email-width{width:13%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-phone-width{width:9%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-stage-width{width:13%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-access-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-money-width{width:7%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-activity-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-problem-width{width:8%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-action-width{width:8%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] th{
  padding:10px 11px!important;
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] td{
  padding:11px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-name,
body.admin-shell[data-admin-customer-mode="crm"] .crm-main-value{
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-muted,
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-meta{
  font-weight:720!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline{
  grid-template-columns:minmax(0,1fr) 72px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline .btn{
  min-width:72px!important;
  font-weight:850!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .pager-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .pager-row .btn{
  width:100%!important;
}
html[data-admin-theme="dark"] body.admin-shell,
html[data-admin-theme="dark"] body.admin-shell .page,
html[data-admin-theme="dark"] body,
html[data-admin-theme="dark"] .login-shell{
  background:#0f1b24!important;
  color:var(--text)!important;
}
html[data-admin-theme="dark"] body.admin-shell::before{
  background:linear-gradient(180deg,#071f26 0%,#0d3035 58%,#0b242b 100%)!important;
  border-right:1px solid rgba(180,221,222,.12)!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-topbar{
  background:transparent!important;
  border-right:1px solid rgba(180,221,222,.12)!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-theme-switch{
  border-color:rgba(180,221,222,.14)!important;
  background:rgba(255,255,255,.05)!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-theme-option.active{
  color:#071f26!important;
  background:#dff9ef!important;
  border-color:rgba(223,249,239,.34)!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-main-tabs .tab-btn:hover{
  background:rgba(223,249,239,.08)!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-main-tabs .tab-btn.active{
  background:rgba(223,249,239,.14)!important;
  border-color:rgba(223,249,239,.12)!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-site-link{
  background:#dff9ef!important;
  color:#071f26!important;
  border-color:rgba(223,249,239,.34)!important;
}
html[data-admin-theme="dark"] body.admin-shell .card,
html[data-admin-theme="dark"] body.admin-shell .dashboard-card,
html[data-admin-theme="dark"] body.admin-shell .operations-panel,
html[data-admin-theme="dark"] body.admin-shell .support-panel,
html[data-admin-theme="dark"] body.admin-shell .analytics-block,
html[data-admin-theme="dark"] body.admin-shell .site-analytics-subpanel,
html[data-admin-theme="dark"] body.admin-shell .site-analytics-table-panel,
html[data-admin-theme="dark"] body.admin-shell .admin-overview-card,
html[data-admin-theme="dark"] body.admin-shell .crm-workspace-card,
html[data-admin-theme="dark"] body.admin-shell .crm-detail-drawer,
html[data-admin-theme="dark"] body.admin-shell .login-card,
html[data-admin-theme="dark"] .login-card{
  background:#14242d!important;
  border-color:#2f4b57!important;
  color:var(--text)!important;
  box-shadow:0 18px 42px rgba(1,13,17,.34)!important;
}
html[data-admin-theme="dark"] body.admin-shell h1,
html[data-admin-theme="dark"] body.admin-shell h2,
html[data-admin-theme="dark"] body.admin-shell h3,
html[data-admin-theme="dark"] body.admin-shell h4,
html[data-admin-theme="dark"] body.admin-shell strong,
html[data-admin-theme="dark"] body.admin-shell b,
html[data-admin-theme="dark"] body.admin-shell label,
html[data-admin-theme="dark"] .login-card h1,
html[data-admin-theme="dark"] .login-card h2,
html[data-admin-theme="dark"] .login-card h3,
html[data-admin-theme="dark"] .login-card strong,
html[data-admin-theme="dark"] .login-card label{
  color:#ecf7f5!important;
}
html[data-admin-theme="dark"] body.admin-shell p,
html[data-admin-theme="dark"] body.admin-shell span,
html[data-admin-theme="dark"] body.admin-shell small,
html[data-admin-theme="dark"] body.admin-shell em,
html[data-admin-theme="dark"] body.admin-shell i,
html[data-admin-theme="dark"] body.admin-shell td,
html[data-admin-theme="dark"] body.admin-shell th,
html[data-admin-theme="dark"] body.admin-shell li,
html[data-admin-theme="dark"] body.admin-shell .helper,
html[data-admin-theme="dark"] body.admin-shell .crm-muted,
html[data-admin-theme="dark"] body.admin-shell .customer-meta,
html[data-admin-theme="dark"] body.admin-shell .customer-secondary,
html[data-admin-theme="dark"] body.admin-shell .dashboard-freshness,
html[data-admin-theme="dark"] .login-card p,
html[data-admin-theme="dark"] .login-card span,
html[data-admin-theme="dark"] .login-card small{
  color:#c9d9de!important;
}
html[data-admin-theme="dark"] body.admin-shell input,
html[data-admin-theme="dark"] body.admin-shell select,
html[data-admin-theme="dark"] body.admin-shell textarea,
html[data-admin-theme="dark"] .login-card input,
html[data-admin-theme="dark"] .login-card select,
html[data-admin-theme="dark"] .login-card textarea{
  background:#0f1b24!important;
  border-color:#3a5965!important;
  color:#ecf7f5!important;
}
html[data-admin-theme="dark"] body.admin-shell input::placeholder,
html[data-admin-theme="dark"] body.admin-shell textarea::placeholder,
html[data-admin-theme="dark"] .login-card input::placeholder,
html[data-admin-theme="dark"] .login-card textarea::placeholder{
  color:#9fb4bd!important;
}
html[data-admin-theme="dark"] body.admin-shell .btn.secondary,
html[data-admin-theme="dark"] body.admin-shell .btn.ghost,
html[data-admin-theme="dark"] body.admin-shell .btn-dashed{
  background:#14242d!important;
  border-color:#436674!important;
  color:#ecf7f5!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-status-tabs,
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tabs{
  background:#10202a!important;
  border-color:#2f4b57!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-status-tab,
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab,
html[data-admin-theme="dark"] body.admin-shell .site-funnel-step,
html[data-admin-theme="dark"] body.admin-shell .site-analytics-row,
html[data-admin-theme="dark"] body.admin-shell .site-visitor-card,
html[data-admin-theme="dark"] body.admin-shell .dashboard-lane-row,
html[data-admin-theme="dark"] body.admin-shell .dashboard-task-row,
html[data-admin-theme="dark"] body.admin-shell .operations-check-btn,
html[data-admin-theme="dark"] body.admin-shell .customer-item,
html[data-admin-theme="dark"] body.admin-shell .summary-card,
html[data-admin-theme="dark"] body.admin-shell .quick-card,
html[data-admin-theme="dark"] body.admin-shell .aggregate-card,
html[data-admin-theme="dark"] body.admin-shell .kv-item{
  background:#192d37!important;
  border-color:#2f4b57!important;
  color:#ecf7f5!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-status-tab.active,
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab.active,
html[data-admin-theme="dark"] body.admin-shell .tab-btn.active{
  background:#256c8f!important;
  border-color:#4fb7df!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-status-tab b{
  background:#dff9ef!important;
  color:#0f3e36!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table-wrap,
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-table-wrap{
  background:#10202a!important;
  border-color:#2f4b57!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table th,
html[data-admin-theme="dark"] body.admin-shell .operations-table th,
html[data-admin-theme="dark"] body.admin-shell .dashboard-table th,
html[data-admin-theme="dark"] body.admin-shell table th{
  background:#19313b!important;
  color:#dcebef!important;
  border-bottom-color:#3a5965!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table td,
html[data-admin-theme="dark"] body.admin-shell .operations-table td,
html[data-admin-theme="dark"] body.admin-shell .dashboard-table td,
html[data-admin-theme="dark"] body.admin-shell table td{
  background:#14242d!important;
  color:#ecf7f5!important;
  border-bottom-color:#2b4753!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table td *,
html[data-admin-theme="dark"] body.admin-shell .operations-table td *,
html[data-admin-theme="dark"] body.admin-shell .dashboard-table td *,
html[data-admin-theme="dark"] body.admin-shell table td *{
  color:#ecf7f5!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table span,
html[data-admin-theme="dark"] body.admin-shell .crm-table small,
html[data-admin-theme="dark"] body.admin-shell table span,
html[data-admin-theme="dark"] body.admin-shell table small{
  color:#c9d9de!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] tbody tr:hover td{
  background:#183440!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-table-row.active td,
html[data-admin-theme="dark"] body.admin-shell[data-admin-customer-mode="crm"] .crm-table-row.detail-open td{
  background:#173a4d!important;
  box-shadow:inset 3px 0 0 #5fb3ff!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-money,
html[data-admin-theme="dark"] body.admin-shell .dashboard-money{
  color:#6ee7b7!important;
}
html[data-admin-theme="dark"] body.admin-shell .analytics-status,
html[data-admin-theme="dark"] body.admin-shell .pill,
html[data-admin-theme="dark"] body.admin-shell .support-source-badge,
html[data-admin-theme="dark"] body.admin-shell .section-status-badge,
html[data-admin-theme="dark"] body.admin-shell .operations-tone{
  color:#ecf7f5!important;
  background:#203844!important;
  border-color:#436674!important;
}
html[data-admin-theme="dark"] body.admin-shell .pill.ok,
html[data-admin-theme="dark"] body.admin-shell .analytics-status.hot,
html[data-admin-theme="dark"] body.admin-shell .section-status-badge.ok{
  color:#bfffe7!important;
  background:#0f4636!important;
  border-color:#1a7f62!important;
}
html[data-admin-theme="dark"] body.admin-shell .pill.warning,
html[data-admin-theme="dark"] body.admin-shell .analytics-status.warm,
html[data-admin-theme="dark"] body.admin-shell .section-status-badge.observe{
  color:#ffe7ad!important;
  background:#503b13!important;
  border-color:#8a641b!important;
}
html[data-admin-theme="dark"] body.admin-shell .pill.bad,
html[data-admin-theme="dark"] body.admin-shell .analytics-status.lost,
html[data-admin-theme="dark"] body.admin-shell .section-status-badge.error,
html[data-admin-theme="dark"] body.admin-shell .section-status-badge.blocked{
  color:#ffd1d1!important;
  background:#531f25!important;
  border-color:#8f333b!important;
}
html[data-admin-theme="dark"] body.admin-shell .empty,
html[data-admin-theme="dark"] body.admin-shell .notice{
  background:#14242d!important;
  border-color:#2f4b57!important;
  color:#c9d9de!important;
}
/* Admin billing shell integration 20260525: read-only money queue inside the main admin workspace. */
body.admin-shell .billing-shell-card{
  width:100%!important;
  max-width:none!important;
}
body.admin-shell .billing-shell-status{
  margin:8px 0 14px!important;
}
body.admin-shell .billing-shell-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:14px!important;
}
body.admin-shell .billing-shell-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
}
body.admin-shell .billing-shell-panel{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  padding:14px!important;
  box-shadow:0 12px 28px rgba(15,23,42,.05)!important;
}
body.admin-shell .billing-shell-panel-wide{
  grid-column:1 / -1!important;
}
body.admin-shell .billing-shell-list{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  margin-top:12px!important;
}
body.admin-shell .billing-ledger-panel{
  margin-top:4px!important;
}
body.admin-shell .billing-ledger-rows{
  margin-top:12px!important;
}
body.admin-shell .billing-ledger-wrap{
  width:100%!important;
  overflow-x:auto!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:var(--panel)!important;
}
body.admin-shell .billing-ledger-table{
  width:100%!important;
  min-width:1160px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  font-size:13px!important;
}
body.admin-shell .billing-ledger-table th,
body.admin-shell .billing-ledger-table td{
  padding:11px 12px!important;
  border-bottom:1px solid var(--line)!important;
  text-align:left!important;
  vertical-align:top!important;
}
body.admin-shell .billing-ledger-table th{
  position:sticky!important;
  top:0!important;
  z-index:1!important;
  background:#eef4fb!important;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:850!important;
}
body.admin-shell .billing-ledger-table tbody tr:last-child td{
  border-bottom:0!important;
}
body.admin-shell .billing-ledger-table tbody tr.ok{
  background:#f2fff7!important;
}
body.admin-shell .billing-ledger-table tbody tr.warning{
  background:#fff8e8!important;
}
body.admin-shell .billing-ledger-table tbody tr.critical{
  background:#fff1f2!important;
}
body.admin-shell .billing-ledger-state{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:76px!important;
  min-height:28px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  border:1px solid #bbf7d0!important;
  background:#dcfce7!important;
  color:#166534!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.admin-shell .billing-ledger-state.warning,
body.admin-shell .billing-ledger-state.critical{
  border-color:#fecaca!important;
  background:#fee2e2!important;
  color:#991b1b!important;
}
body.admin-shell .billing-ledger-table code{
  display:inline-block!important;
  max-width:220px!important;
  padding:5px 8px!important;
  border:1px solid var(--line)!important;
  border-radius:7px!important;
  background:var(--panel-soft)!important;
  color:var(--text)!important;
  white-space:normal!important;
  word-break:break-word!important;
}
body.admin-shell .billing-ledger-error,
body.admin-shell .operations-error-cell,
body.admin-shell .admin-created-cell{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
}
body.admin-shell .billing-ledger-error strong,
body.admin-shell .operations-error-cell strong,
body.admin-shell .admin-created-cell strong{
  color:var(--text)!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:850!important;
  overflow-wrap:anywhere!important;
}
body.admin-shell .billing-ledger-error span,
body.admin-shell .operations-error-cell span,
body.admin-shell .admin-created-cell span{
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
  overflow-wrap:anywhere!important;
}
body.admin-shell .billing-shell-item{
  background:var(--panel-soft)!important;
  border:1px solid var(--line)!important;
  border-left:4px solid #94a3b8!important;
  border-radius:10px!important;
  padding:12px!important;
  color:var(--text)!important;
}
body.admin-shell .billing-shell-item.warning{
  border-left-color:#d97706!important;
}
body.admin-shell .billing-shell-item.critical{
  border-left-color:#dc2626!important;
}
body.admin-shell .billing-shell-item.ok{
  border-left-color:#059669!important;
}
body.admin-shell .billing-shell-item-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.admin-shell .billing-shell-item-top strong{
  color:var(--text)!important;
  font-size:14px!important;
}
body.admin-shell .billing-shell-item-meta,
body.admin-shell .billing-shell-item-body{
  margin-top:7px!important;
  color:var(--muted)!important;
  font-size:13px!important;
  line-height:1.45!important;
}
body.admin-shell .billing-shell-open{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  margin-top:10px!important;
  padding:0 12px!important;
  border-radius:8px!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
body.admin-shell .billing-shell-open:hover{
  border-color:#93c5fd!important;
  background:#eff6ff!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-shell-panel,
html[data-admin-theme="dark"] body.admin-shell .billing-shell-item{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-shell-item-meta,
html[data-admin-theme="dark"] body.admin-shell .billing-shell-item-body{
  color:var(--muted)!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-shell-open{
  background:rgba(59,130,246,.12)!important;
  border-color:rgba(96,165,250,.34)!important;
  color:#bfdbfe!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-ledger-wrap,
html[data-admin-theme="dark"] body.admin-shell .billing-ledger-table code{
  background:var(--panel)!important;
  border-color:var(--line)!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-ledger-table th{
  background:#182433!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-ledger-table tbody tr.ok{
  background:rgba(22,101,52,.16)!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-ledger-table tbody tr.warning{
  background:rgba(217,119,6,.14)!important;
}
html[data-admin-theme="dark"] body.admin-shell .billing-ledger-table tbody tr.critical{
  background:rgba(185,28,28,.16)!important;
}

/* Admin operations product blocks 20260526 */
body.admin-shell .operations-switcher{
  display:grid!important;
  gap:12px!important;
  padding:14px!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#ffffff!important;
  box-shadow:0 16px 34px rgba(15,23,42,.08)!important;
}
body.admin-shell .operations-switcher-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
body.admin-shell .operations-switcher-head strong{
  display:block!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
body.admin-shell .operations-switcher-head span{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
body.admin-shell .operations-switcher-total{
  min-width:126px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:8px 10px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-switcher-total span{
  margin:0!important;
  color:#64748b!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
}
body.admin-shell .operations-switcher-total b{
  color:#0f172a!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:900!important;
}
body.admin-shell .operations-product-board{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:10px!important;
}
body.admin-shell .operations-product-board .operations-board-card{
  position:relative!important;
  min-height:76px!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:12px 12px 11px!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  border-color:#dbe5f2!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
body.admin-shell .operations-product-board .operations-board-card:hover{
  transform:translateY(-1px)!important;
  background:#f1f5f9!important;
  border-color:#93c5fd!important;
}
body.admin-shell .operations-product-board .operations-board-card.active{
  background:#eff6ff!important;
  border-color:#2563eb!important;
  box-shadow:inset 0 0 0 1px #2563eb,0 12px 24px rgba(37,99,235,.14)!important;
}
body.admin-shell .operations-product-board .operations-board-card.critical{
  background:#fff5f5!important;
  border-color:#fecaca!important;
}
body.admin-shell .operations-product-board .operations-board-card.warning{
  background:#fffbeb!important;
  border-color:#fde68a!important;
}
body.admin-shell .operations-product-board .operations-board-card.ok{
  background:#f0fdf4!important;
  border-color:#bbf7d0!important;
}
body.admin-shell .operations-product-board .operations-board-card.active.critical{
  border-color:#dc2626!important;
  box-shadow:inset 0 0 0 1px #dc2626,0 12px 24px rgba(220,38,38,.12)!important;
}
body.admin-shell .operations-product-board .operations-board-card.active.warning{
  border-color:#d97706!important;
  box-shadow:inset 0 0 0 1px #d97706,0 12px 24px rgba(217,119,6,.12)!important;
}
body.admin-shell .operations-product-board .operations-board-title{
  max-width:100%!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.admin-shell .operations-product-board .operations-board-card strong{
  color:#0f172a!important;
  font-size:23px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.admin-shell .operations-product-board .operations-board-card small{
  display:none!important;
}
body.admin-shell .operations-board-dot{
  position:absolute!important;
  top:11px!important;
  right:11px!important;
  width:9px!important;
  height:9px!important;
  border-radius:999px!important;
  background:#22c55e!important;
  box-shadow:0 0 0 3px rgba(34,197,94,.14)!important;
}
body.admin-shell .operations-board-card.warning .operations-board-dot{
  background:#f59e0b!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.16)!important;
}
body.admin-shell .operations-board-card.critical .operations-board-dot{
  background:#ef4444!important;
  box-shadow:0 0 0 3px rgba(239,68,68,.16)!important;
}
body.admin-shell .operations-block-table-panel{
  min-height:620px!important;
}
body.admin-shell .operations-block-table{
  min-width:1180px!important;
}
body.admin-shell .operations-block-table code{
  display:block!important;
  width:100%!important;
  max-width:360px!important;
  white-space:normal!important;
  word-break:break-word!important;
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  padding:7px 8px!important;
  font-size:11px!important;
  line-height:1.35!important;
}
body.admin-shell .operations-open-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  margin-top:7px!important;
  padding:0 10px!important;
  border:1px solid #bfdbfe!important;
  border-radius:8px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
body.admin-shell .operations-open-link:hover{
  background:#dbeafe!important;
  border-color:#93c5fd!important;
}
body.admin-shell .operations-variant-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
body.admin-shell .operations-variant-tabs a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  text-decoration:none!important;
}
body.admin-shell .operations-variant-tabs a.active{
  border-color:#2563eb!important;
  background:#2563eb!important;
  color:#fff!important;
}
body.admin-shell .operations-control-kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
}
body.admin-shell .operations-control-kpis span{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
  padding:12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-control-kpis span.critical{background:#fff5f5!important;border-color:#fecaca!important}
body.admin-shell .operations-control-kpis span.warning{background:#fffbeb!important;border-color:#fde68a!important}
body.admin-shell .operations-control-kpis span.ok{background:#f0fdf4!important;border-color:#bbf7d0!important}
body.admin-shell .operations-control-kpis b{
  color:#0f172a!important;
  font-size:26px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.admin-shell .operations-control-kpis small{
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
body.admin-shell .operations-control-source-note{
  padding:10px 12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:760!important;
}
body.admin-shell .operations-control-register-wrap{
  overflow:auto!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 14px 30px rgba(15,23,42,.06)!important;
}
body.admin-shell .operations-control-register-table{
  min-width:1480px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.admin-shell .operations-table-filter{
  display:inline-flex!important;
  gap:8px!important;
  margin:0 0 10px!important;
  padding:4px!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-table-filter button{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
}
body.admin-shell .operations-table-filter button.active{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(37,99,235,.16)!important;
}
body.admin-shell .operations-table-filter b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.08)!important;
  color:inherit!important;
  font-size:12px!important;
  font-weight:950!important;
}
body.admin-shell .operations-table-filter button.active b{
  background:rgba(255,255,255,.22)!important;
}
body.admin-shell .operations-section-register-list{
  display:grid!important;
  gap:14px!important;
}
body.admin-shell .operations-section-register{
  display:grid!important;
  gap:10px!important;
  min-width:0!important;
}
body.admin-shell .operations-section-register > header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:10px 12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-section-register > header strong{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:950!important;
}
body.admin-shell .operations-section-register > header span{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:760!important;
}
body.admin-shell .operations-section-register-counts{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  justify-content:flex-end!important;
}
body.admin-shell .operations-section-register-counts b{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.admin-shell .operations-section-register-counts b.error{
  background:#fee2e2!important;
  color:#991b1b!important;
}
body.admin-shell .operations-section-register-counts b.ok{
  background:#dcfce7!important;
  color:#166534!important;
}
body.admin-shell .operations-control-register-table th{
  position:sticky!important;
  top:0!important;
  z-index:1!important;
  background:#eef4fb!important;
  color:#334155!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
  border-bottom:1px solid #dbe5f2!important;
}
body.admin-shell .operations-control-register-table td{
  vertical-align:top!important;
  padding:13px 14px!important;
  border-bottom:1px solid #e6edf6!important;
  background:#fff!important;
}
body.admin-shell .operations-control-register-table tbody tr:nth-child(2n) td{
  background:#fbfdff!important;
}
body.admin-shell .operations-control-register-table tbody tr.critical td{
  background:#fff7f7!important;
}
body.admin-shell .operations-control-register-table tbody tr.warning td{
  background:#fffaf0!important;
}
body.admin-shell .operations-control-register-table tbody tr.ok td{
  background:#f8fff9!important;
}
body.admin-shell .operations-control-register-table tbody tr td:first-child{
  border-left:4px solid #22c55e!important;
}
body.admin-shell .operations-control-register-table tbody tr.critical td:first-child,
body.admin-shell .operations-control-register-table tbody tr.warning td:first-child{
  border-left-color:#ef4444!important;
}
body.admin-shell .operations-control-register-table strong{
  display:block!important;
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.28!important;
  font-weight:950!important;
}
body.admin-shell .operations-control-register-table span{
  display:block!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell .operations-control-register-table code{
  display:block!important;
  max-width:100%!important;
  white-space:normal!important;
  word-break:break-word!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#334155!important;
  padding:7px 8px!important;
  font-size:11px!important;
  line-height:1.35!important;
}
body.admin-shell .operations-control-register-table .operations-tone{
  min-width:74px!important;
  justify-content:center!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:950!important;
}
body.admin-shell .operations-control-register-table .operations-tone.critical,
body.admin-shell .operations-control-register-table .operations-tone.warning{
  background:#fee2e2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
body.admin-shell .operations-control-register-table .operations-tone.ok{
  background:#dcfce7!important;
  border-color:#bbf7d0!important;
  color:#166534!important;
}
body.admin-shell .operations-prompt-cell{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}
body.admin-shell .operations-prompt-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  width:max-content!important;
  max-width:100%!important;
  padding:0 10px!important;
  border:1px solid #1d4ed8!important;
  border-radius:8px!important;
  background:#2563eb!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
  box-shadow:0 6px 14px rgba(37,99,235,.16)!important;
}
body.admin-shell .operations-prompt-button:hover{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
}
body.admin-shell .operations-prompt-cell small,
body.admin-shell .operations-prompt-ok{
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell .operations-prompt-ok{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  color:#15803d!important;
}
body.admin-shell .operations-mode-switcher:empty{
  display:none!important;
}
body.admin-shell .operations-status-switcher{
  display:none!important;
}
body.admin-shell .billing-finance-control{
  margin:14px 0!important;
}
body.admin-shell .billing-finance-board{
  margin-top:12px!important;
  margin-bottom:12px!important;
}
body.admin-shell .billing-finance-table{
  min-width:0!important;
}
body.admin-shell .operations-preview-lanes{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
body.admin-shell .operations-preview-lanes.detail{
  align-items:start!important;
}
body.admin-shell .operations-preview-lane{
  display:grid!important;
  gap:10px!important;
  min-width:0!important;
  padding:12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-preview-lane.critical{background:#fff5f5!important;border-color:#fecaca!important}
body.admin-shell .operations-preview-lane.warning{background:#fffbeb!important;border-color:#fde68a!important}
body.admin-shell .operations-preview-lane.ok{background:#f0fdf4!important;border-color:#bbf7d0!important}
body.admin-shell .operations-preview-lane header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.admin-shell .operations-preview-lane header span{
  margin:0!important;
  color:#0f172a!important;
  font-size:14px!important;
  font-weight:950!important;
}
body.admin-shell .operations-preview-lane header b{
  display:inline-flex!important;
  min-width:28px!important;
  height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:950!important;
  box-shadow:inset 0 0 0 1px rgba(148,163,184,.34)!important;
}
body.admin-shell .operations-preview-lane-list{
  display:grid!important;
  gap:8px!important;
}
body.admin-shell .operations-preview-lane-list button{
  display:grid!important;
  gap:4px!important;
  width:100%!important;
  min-height:64px!important;
  padding:10px!important;
  text-align:left!important;
  border:1px solid rgba(148,163,184,.34)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.82)!important;
  cursor:pointer!important;
}
body.admin-shell .operations-preview-lane-list button strong{
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:950!important;
}
body.admin-shell .operations-preview-lane-list button span{
  color:#475569!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell .operations-preview-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;
  gap:12px!important;
}
body.admin-shell .operations-preview-card{
  display:grid!important;
  gap:10px!important;
  min-width:0!important;
  padding:14px!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#fff!important;
}
body.admin-shell .operations-preview-card.critical{border-color:#fecaca!important;background:#fff5f5!important}
body.admin-shell .operations-preview-card.warning{border-color:#fde68a!important;background:#fffbeb!important}
body.admin-shell .operations-preview-card.ok{border-color:#bbf7d0!important;background:#f0fdf4!important}
body.admin-shell .operations-preview-card > div{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.admin-shell .operations-preview-card span{
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
  text-transform:uppercase!important;
}
body.admin-shell .operations-preview-card strong{
  display:block!important;
  margin-top:4px!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:950!important;
}
body.admin-shell .operations-preview-card b{
  color:#0f172a!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.admin-shell .operations-preview-card p{
  min-height:48px!important;
  margin:0!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell .operations-readiness-split,
body.admin-shell .operations-readiness-detail{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
body.admin-shell .operations-readiness-detail{
  align-items:start!important;
}
body.admin-shell .operations-readiness-split section,
body.admin-shell .operations-readiness-bucket{
  display:grid!important;
  gap:10px!important;
  min-width:0!important;
  padding:12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:10px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-readiness-split strong,
body.admin-shell .operations-readiness-bucket header strong{
  color:#0f172a!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:950!important;
}
body.admin-shell .operations-readiness-split b,
body.admin-shell .operations-readiness-bucket header b{
  color:#0f172a!important;
  font-size:26px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.admin-shell .operations-readiness-split span{
  color:#475569!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell .operations-readiness-bucket header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
body.admin-shell .operations-readiness-bucket > div{
  display:grid!important;
  gap:8px!important;
}
body.admin-shell .operations-readiness-bucket article{
  display:grid!important;
  gap:5px!important;
  padding:10px!important;
  border:1px solid rgba(148,163,184,.34)!important;
  border-radius:8px!important;
  background:#f8fafc!important;
}
body.admin-shell .operations-readiness-bucket article.critical{background:#fff5f5!important;border-color:#fecaca!important}
body.admin-shell .operations-readiness-bucket article.warning{background:#fffbeb!important;border-color:#fde68a!important}
body.admin-shell .operations-readiness-bucket article.ok{background:#f0fdf4!important;border-color:#bbf7d0!important}
body.admin-shell .operations-readiness-bucket article strong{
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
body.admin-shell .operations-readiness-bucket article span{
  color:#334155!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell .operations-readiness-bucket article code{
  max-width:100%!important;
  white-space:normal!important;
  word-break:break-word!important;
  color:#475569!important;
  font-size:11px!important;
  line-height:1.35!important;
}
@media (max-width:760px){
  body.admin-shell .operations-control-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.admin-shell .operations-preview-lanes,
  body.admin-shell .operations-preview-lanes.detail,
  body.admin-shell .operations-readiness-split,
  body.admin-shell .operations-readiness-detail{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .operations-preview-grid{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .operations-switcher-head{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  body.admin-shell .operations-switcher-total{
    width:100%!important;
  }
}
html[data-admin-theme="dark"] body.admin-shell .operations-block-table code{
  background:rgba(15,23,42,.72)!important;
  border-color:rgba(148,163,184,.28)!important;
  color:#dbeafe!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-open-link{
  background:rgba(59,130,246,.12)!important;
  border-color:rgba(96,165,250,.34)!important;
  color:#bfdbfe!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-switcher,
html[data-admin-theme="dark"] body.admin-shell .operations-panel{
  background:#10242d!important;
  border-color:#294553!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-switcher-head strong,
html[data-admin-theme="dark"] body.admin-shell .operations-panel-head strong,
html[data-admin-theme="dark"] body.admin-shell .operations-detail-head strong{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-switcher-head span,
html[data-admin-theme="dark"] body.admin-shell .operations-panel-head span,
html[data-admin-theme="dark"] body.admin-shell .operations-detail-head span{
  color:#b7c9d2!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-switcher-total{
  background:#142f3a!important;
  border-color:#315262!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-switcher-total span{
  color:#a8bdc7!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-switcher-total b{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card{
  background:#17313b!important;
  border-color:#355766!important;
  color:#f8fafc!important;
  opacity:1!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card:hover{
  background:#1c3b47!important;
  border-color:#5da2c3!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card.active{
  background:#12395c!important;
  border-color:#60a5fa!important;
  box-shadow:inset 0 0 0 1px #60a5fa,0 14px 30px rgba(96,165,250,.16)!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card.critical{
  background:#3a1d24!important;
  border-color:#b94b56!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card.warning{
  background:#352915!important;
  border-color:#a97818!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card.ok{
  background:#173126!important;
  border-color:#2f8f67!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-title{
  color:#dbeafe!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-product-board .operations-board-card strong{
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-block-table,
html[data-admin-theme="dark"] body.admin-shell .operations-block-table tbody,
html[data-admin-theme="dark"] body.admin-shell .operations-block-table tr,
html[data-admin-theme="dark"] body.admin-shell .operations-block-table td{
  background:#10242d!important;
}
@media (max-width:1200px){
  body.admin-shell .page{
    padding-left:calc(var(--admin-sidebar-w) + 20px)!important;
    padding-right:20px!important;
  }
}
@media (max-width:720px){
  body.admin-shell{
    --admin-sidebar-w:0px;
  }
  body.admin-shell .page{
    padding:118px 14px 30px!important;
  }
  body.admin-shell .admin-topbar{
    padding:12px 14px!important;
    gap:10px!important;
  }
  body.admin-shell .admin-theme-switch{
    width:auto;
    min-width:220px;
    margin-top:0;
  }
  body.admin-shell .admin-main-tabs{
    top:72px!important;
    left:14px!important;
    right:14px!important;
    width:auto!important;
    max-height:none!important;
    flex-direction:row!important;
    overflow:auto!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-head,
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
    grid-template-columns:1fr!important;
  }
  body.admin-shell .billing-shell-stats,
  body.admin-shell .billing-shell-grid{
    grid-template-columns:1fr!important;
  }
}

/* Admin final site palette/status lock 20260526: keep late legacy layers from muting the new Problems CRM UI. */
body.admin-shell{
  --accent:#2563eb!important;
  --accent-2:#16a34a!important;
  --accent-soft:rgba(37,99,235,.10)!important;
  --accent-line:rgba(37,99,235,.28)!important;
  --bg:#f6f8fb!important;
  --bg-2:#eef3f8!important;
  --panel:#ffffff!important;
  --panel-soft:#f8fafc!important;
  --panel-strong:#eef4fb!important;
  --text:#102033!important;
  --muted:#637184!important;
  --muted-2:#334155!important;
  --line:#d8e2ee!important;
  --line-strong:#b9c8d9!important;
  --blue:#2563eb!important;
  --green:#16a34a!important;
  --yellow:#f59e0b!important;
  --red:#d83b48!important;
  background:var(--bg)!important;
  color:var(--text)!important;
}
html[data-admin-theme="dark"] body.admin-shell{
  --accent:#3393ff!important;
  --accent-2:#4ade80!important;
  --accent-soft:rgba(51,147,255,.14)!important;
  --accent-line:rgba(51,147,255,.32)!important;
  --bg:#141e2d!important;
  --bg-2:#18263a!important;
  --panel:#1e2b3e!important;
  --panel-soft:#18263a!important;
  --panel-strong:#24364c!important;
  --text:#f5f8fb!important;
  --muted:#a8b4c7!important;
  --muted-2:#d8e1ef!important;
  --line:rgba(137,151,172,.38)!important;
  --line-strong:rgba(160,174,196,.55)!important;
  --blue:#3393ff!important;
  --green:#4ade80!important;
  --yellow:#f1b24c!important;
  --red:#ff7d7d!important;
  background:var(--bg)!important;
  color:var(--text)!important;
}
body.admin-shell .operations-crm-lane.critical{border-top-color:#d83b48!important}
body.admin-shell .operations-crm-lane.warning{border-top-color:#f59e0b!important}
body.admin-shell .operations-crm-lane.ok{border-top-color:#16a34a!important}
html[data-admin-theme="dark"] body.admin-shell .operations-crm-lane.critical{border-top-color:#ff7d7d!important}
html[data-admin-theme="dark"] body.admin-shell .operations-crm-lane.warning{border-top-color:#f1b24c!important}
html[data-admin-theme="dark"] body.admin-shell .operations-crm-lane.ok{border-top-color:#4ade80!important}
body.admin-shell .operations-product-board .operations-board-card{
  min-height:112px!important;
}
body.admin-shell .operations-product-board .operations-board-card strong{
  display:block!important;
  margin-top:8px!important;
  color:var(--text)!important;
  font-size:28px!important;
  line-height:1!important;
  font-weight:950!important;
  font-variant-numeric:tabular-nums!important;
}

/* Admin problems table cleanup 20260526: six readable CRM columns and explicit status colors. */
body.admin-shell .operations-status-table{
  min-width:1120px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.admin-shell .operations-status-table th{
  background:#eaf2fb!important;
  color:#19324d!important;
  border-bottom:1px solid #c8d8eb!important;
}
body.admin-shell .operations-status-table td{
  background:#ffffff!important;
  border-bottom:1px solid #dce6f2!important;
  color:#102033!important;
}
body.admin-shell .operations-status-table tr.critical td{background:#fff5f6!important}
body.admin-shell .operations-status-table tr.warning td{background:#fff9eb!important}
body.admin-shell .operations-status-table tr.ok td{background:#f0fbf5!important}
body.admin-shell .operations-status-table tr:hover td{background:#eef6ff!important}
body.admin-shell .operations-table-user strong,
body.admin-shell .operations-table-action > span,
body.admin-shell .operations-table-problem{
  color:#102033!important;
}
body.admin-shell .operations-table-user span,
body.admin-shell .operations-table-status-stack span{
  color:#475569!important;
}
body.admin-shell .operations-status-table code{
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
  color:#0f172a!important;
}
body.admin-shell .operations-empty{
  border-color:#cbd5e1!important;
  background:#f8fafc!important;
  color:#334155!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table th{
  background:#203349!important;
  color:#e6eef8!important;
  border-bottom-color:#49637b!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table td{
  background:#172637!important;
  color:#f5f8fb!important;
  border-bottom-color:#31485e!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr.critical td{background:#321f2a!important}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr.warning td{background:#302918!important}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr.ok td{background:#183028!important}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr:hover td{background:#22384f!important}
html[data-admin-theme="dark"] body.admin-shell .operations-table-user strong,
html[data-admin-theme="dark"] body.admin-shell .operations-table-action > span,
html[data-admin-theme="dark"] body.admin-shell .operations-table-problem{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-table-user span,
html[data-admin-theme="dark"] body.admin-shell .operations-table-status-stack span{
  color:#c4d1e0!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table code{
  background:#0f1c2b!important;
  border-color:#425a72!important;
  color:#dbeafe!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-empty{
  background:#162537!important;
  border-color:#425a72!important;
  color:#dbe7f3!important;
}

/* Admin owner console modes 20260526: customer, money, and system slices with evidence. */
body.admin-shell .operations-mode-switcher{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:10px!important;
}
body.admin-shell .operations-mode-tab{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 13px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#334155!important;
  cursor:pointer!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
}
body.admin-shell .operations-mode-tab:hover{
  border-color:#93c5fd!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
body.admin-shell .operations-mode-tab.active{
  border-color:#2563eb!important;
  background:#2563eb!important;
  color:#ffffff!important;
}
body.admin-shell .operations-status-table{
  min-width:1360px!important;
}
body.admin-shell .operations-status-table .operations-col-control{
  width:220px!important;
}
body.admin-shell .operations-control-meta{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:5px!important;
  min-width:0!important;
}
body.admin-shell .operations-control-meta strong{
  display:block!important;
  color:#102033!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
body.admin-shell .operations-control-meta span{
  display:block!important;
  margin:0!important;
  color:#475569!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:820!important;
}
body.admin-shell .operations-control-meta code{
  margin-top:0!important;
  font-size:10px!important;
  line-height:1.25!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-mode-tab{
  border-color:#425a72!important;
  background:#172637!important;
  color:#dbeafe!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-mode-tab:hover{
  border-color:#93c5fd!important;
  background:#22384f!important;
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-mode-tab.active{
  border-color:#60a5fa!important;
  background:#1d4ed8!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-control-meta strong{
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-control-meta span{
  color:#c4d1e0!important;
}

/* Owner console polish 20260526: founder-only controls and clearer first screen. */
body.admin-shell .admin-session-actions{
  position:absolute!important;
  left:24px!important;
  right:24px!important;
  bottom:24px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
body.admin-shell .admin-session-actions .admin-site-link,
body.admin-shell .admin-logout-btn{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:100%!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  border-radius:8px!important;
  border:1px solid #dbe5f2!important;
  background:#ffffff!important;
  color:#020617!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  box-shadow:0 10px 24px rgba(0,0,0,.12)!important;
}
body.admin-shell .admin-logout-btn{
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#f8fafc!important;
  box-shadow:none!important;
}
body.admin-shell .admin-logout-btn:hover{
  background:rgba(255,255,255,.14)!important;
}
body.admin-shell .admin-logout-btn:disabled{
  opacity:.55!important;
  cursor:wait!important;
}
body.admin-shell .admin-overview-card-head p{
  margin-top:0!important;
  max-width:620px!important;
}
body.admin-shell .admin-protect-note{
  background:#f8fafc!important;
  border-color:#d8e2ee!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-protect-note{
  background:#172637!important;
  border-color:#425a72!important;
}
@media (max-width:920px){
  body.admin-shell .admin-session-actions{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    margin-top:10px!important;
  }
  body.admin-shell .admin-session-actions .admin-site-link,
  body.admin-shell .admin-logout-btn{
    min-height:36px!important;
    font-size:12px!important;
    box-shadow:none!important;
  }
}

/* Admin unified visual system 20260526: one font, one palette, one table and control language. */
:root{
  --admin-font:Inter,"Segoe UI",Roboto,Arial,sans-serif;
  --admin-radius:8px;
  --admin-radius-lg:10px;
  --admin-bg:#f6f8fb;
  --admin-panel:#ffffff;
  --admin-panel-soft:#f8fafc;
  --admin-panel-strong:#eef4fb;
  --admin-text:#102033;
  --admin-muted:#637184;
  --admin-line:#d8e2ee;
  --admin-line-strong:#b9c8d9;
  --admin-blue:#2563eb;
  --admin-blue-soft:#eff6ff;
  --admin-green:#16a34a;
  --admin-green-soft:#f0fbf5;
  --admin-yellow:#f59e0b;
  --admin-yellow-soft:#fff9eb;
  --admin-red:#d83b48;
  --admin-red-soft:#fff5f6;
  --admin-shadow:0 12px 28px rgba(15,23,42,.05);
  --admin-shadow-soft:0 8px 18px rgba(15,23,42,.04);
}
body,
button,
input,
select,
textarea{
  font-family:var(--admin-font)!important;
  letter-spacing:0!important;
}
body{
  background:var(--admin-bg)!important;
  color:var(--admin-text)!important;
}
body.admin-shell,
.login-shell{
  --bg:var(--admin-bg)!important;
  --panel:var(--admin-panel)!important;
  --panel-2:var(--admin-panel-soft)!important;
  --panel-soft:var(--admin-panel-soft)!important;
  --panel-strong:var(--admin-panel-strong)!important;
  --text:var(--admin-text)!important;
  --muted:var(--admin-muted)!important;
  --line:var(--admin-line)!important;
  --line-strong:var(--admin-line-strong)!important;
  --accent:var(--admin-blue)!important;
  --accent-2:var(--admin-green)!important;
  --blue:var(--admin-blue)!important;
  --green:var(--admin-green)!important;
  --yellow:var(--admin-yellow)!important;
  --red:var(--admin-red)!important;
  background:var(--admin-bg)!important;
  color:var(--admin-text)!important;
  font-family:var(--admin-font)!important;
}
body.admin-shell *,
.login-shell *{
  letter-spacing:0!important;
  box-sizing:border-box!important;
}
body.admin-shell code,
body.admin-shell pre,
body.admin-shell .mono,
.login-shell code,
.login-shell pre{
  font-family:"JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace!important;
}
html[data-admin-theme="dark"] body,
html[data-admin-theme="dark"] body.admin-shell,
html[data-admin-theme="dark"] .login-shell{
  --admin-bg:#141e2d;
  --admin-panel:#172637;
  --admin-panel-soft:#1b2b3e;
  --admin-panel-strong:#203349;
  --admin-text:#f5f8fb;
  --admin-muted:#c4d1e0;
  --admin-line:#31485e;
  --admin-line-strong:#49637b;
  --admin-blue:#60a5fa;
  --admin-blue-soft:#22384f;
  --admin-green:#4ade80;
  --admin-green-soft:#183028;
  --admin-yellow:#f1b24c;
  --admin-yellow-soft:#302918;
  --admin-red:#ff7d7d;
  --admin-red-soft:#321f2a;
  background:var(--admin-bg)!important;
  color:var(--admin-text)!important;
}
body.admin-shell :is(.card,.dashboard-card,.admin-overview-card,.operations-panel,.operations-board-card,.operations-crm-lane,.operations-check-btn,.site-analytics-subpanel,.billing-shell-item,.customer-item,.quick-card,.kv-item,.aggregate-link,details.section,.registrations-card,.action-editor,.admin-protect-note,.support-stats div,.crm-workspace-card,.crm-list-shell,.support-lead-card,.section-health-card),
.login-card{
  background:var(--admin-panel)!important;
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  box-shadow:var(--admin-shadow)!important;
  color:var(--admin-text)!important;
}
body.admin-shell :is(.dashboard-card,.operations-board-card,.operations-crm-lane,.operations-check-btn,.site-analytics-subpanel,.billing-shell-item,.customer-item,.quick-card,.kv-item,.aggregate-link,.registrations-card,.action-editor,.admin-protect-note,.support-stats div,.crm-workspace-card,.crm-list-shell,.support-lead-card,.section-health-card) *{
  color:inherit;
}
body.admin-shell :is(.card,.dashboard-card,.admin-overview-card,.operations-panel,.operations-board-card,.operations-crm-lane,.operations-check-btn,.site-analytics-subpanel,.billing-shell-item,.customer-item,.quick-card,.kv-item,.aggregate-link,details.section,.registrations-card,.action-editor,.admin-protect-note,.support-stats div,.crm-workspace-card,.crm-list-shell,.support-lead-card,.section-health-card):hover{
  box-shadow:var(--admin-shadow)!important;
}
body.admin-shell :is(h1,h2,h3,.admin-topbar-title,.dashboard-card-head span,.dashboard-card-head strong,.operations-board-card strong,.operations-crm-lane h3,.operations-check-main strong){
  color:var(--admin-text)!important;
  font-weight:780!important;
}
body.admin-shell :is(p,small,.helper,.muted,.dashboard-freshness,.dashboard-card-head span,.operations-table-user span,.operations-table-status-stack span,.operations-control-meta span,.site-funnel-main small,.site-funnel-values small,.site-visitor-reason small,.analytics-replay-timeline small,.crm-status-line-auto,.crm-status-line-manual),
.login-card :is(p,small,label){
  color:var(--admin-muted)!important;
  font-weight:680!important;
}
body.admin-shell .admin-main-tabs{
  gap:8px!important;
}
body.admin-shell .admin-theme-switch{
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:14px!important;
  padding:5px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:var(--admin-radius)!important;
  background:rgba(255,255,255,.06)!important;
}
body.admin-shell .admin-theme-toggle{
  display:none!important;
}
body.admin-shell .admin-theme-option{
  width:auto!important;
  min-width:0!important;
  padding:0 8px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
body.admin-shell .admin-theme-option span{
  color:inherit!important;
}
body.admin-shell .admin-theme-option span:not(.admin-theme-icon){
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.admin-shell :is(.btn,.tab-btn,.tab-link,.operations-mode-tab,.operations-status-tab,.admin-theme-option,.admin-theme-toggle,.customer-delete-btn,.admin-site-link,.admin-logout-btn),
.login-card .btn{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:760!important;
  text-decoration:none!important;
}
body.admin-shell :is(.btn,.tab-btn,.tab-link,.operations-mode-tab,.operations-status-tab,.admin-theme-option,.admin-theme-toggle,.customer-delete-btn,.admin-site-link,.admin-logout-btn):hover,
.login-card .btn:hover{
  border-color:#93c5fd!important;
  background:var(--admin-blue-soft)!important;
  color:var(--admin-blue)!important;
}
body.admin-shell :is(.btn,.tab-btn,.tab-link,.operations-mode-tab,.operations-status-tab,.admin-theme-option,.admin-theme-toggle,.customer-delete-btn,.admin-site-link,.admin-logout-btn):focus-visible,
.login-card .btn:focus-visible{
  outline:2px solid rgba(37,99,235,.32)!important;
  outline-offset:2px!important;
}
body.admin-shell :is(.btn:not(.secondary):not(.btn-green):not(.btn-dashed):not(.customer-delete-btn),.tab-btn.active,.tab-link.active,.operations-mode-tab.active,.operations-status-tab.active,.admin-theme-option[aria-pressed="true"]),
.login-card .btn{
  border-color:var(--admin-blue)!important;
  background:var(--admin-blue)!important;
  color:#ffffff!important;
}
body.admin-shell :is(.btn.secondary,.tab-btn:not(.active),.tab-link:not(.active),.operations-mode-tab:not(.active),.operations-status-tab:not(.active),.admin-theme-option:not([aria-pressed="true"])){
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
}
body.admin-shell .btn.small{
  min-height:34px!important;
  padding:0 12px!important;
  font-size:12px!important;
  border-radius:var(--admin-radius)!important;
}
body.admin-shell :is(.btn.btn-green,.btn.btn-green.is-armed){
  border-color:var(--admin-green)!important;
  background:var(--admin-green)!important;
  color:#ffffff!important;
}
body.admin-shell .btn.btn-green:hover{
  border-color:#15803d!important;
  background:#15803d!important;
  color:#ffffff!important;
}
body.admin-shell :is(.btn.btn-dashed,.customer-delete-btn){
  border-style:solid!important;
  border-color:var(--admin-line-strong)!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
}
body.admin-shell :is(.customer-delete-btn,.btn.btn-dashed.is-danger,[data-reject-application]){
  border-color:#fecdd3!important;
  background:var(--admin-red-soft)!important;
  color:#b4232f!important;
}
body.admin-shell :is(input,select,textarea,.search-input,.dashboard-period-select,.crm-stage-select-inline,.crm-status-search select,.crm-status-search input){
  min-height:38px!important;
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:680!important;
}
body.admin-shell :is(input,select,textarea,.search-input,.dashboard-period-select,.crm-stage-select-inline,.crm-status-search select,.crm-status-search input):focus{
  border-color:#93c5fd!important;
  outline:2px solid rgba(37,99,235,.18)!important;
  outline-offset:1px!important;
}
body.admin-shell :is(.pill,.status-pill,.crm-problem-badge,.support-source-badge,.section-health-dot,.operations-board-dot,.operations-status-count,.operations-switcher-total,.dashboard-lane-value,.badge){
  border:1px solid var(--admin-line)!important;
  border-radius:999px!important;
  background:var(--admin-panel-soft)!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
  font-weight:760!important;
}
body.admin-shell :is(.pill.ok,.status-pill.ok,.operations-board-dot.ok,.operations-status-tab.ok.active,.operations-crm-lane.ok){
  border-color:#bbf7d0!important;
  background:var(--admin-green-soft)!important;
}
body.admin-shell :is(.pill.warning,.status-pill.warning,.operations-board-dot.warning,.operations-status-tab.warning.active,.operations-crm-lane.warning){
  border-color:#fde68a!important;
  background:var(--admin-yellow-soft)!important;
}
body.admin-shell :is(.pill.bad,.pill.critical,.status-pill.bad,.status-pill.critical,.operations-board-dot.critical,.operations-status-tab.critical.active,.operations-crm-lane.critical){
  border-color:#fecdd3!important;
  background:var(--admin-red-soft)!important;
}
body.admin-shell .operations-crm-lane.ok{border-top-color:var(--admin-green)!important}
body.admin-shell .operations-crm-lane.warning{border-top-color:var(--admin-yellow)!important}
body.admin-shell .operations-crm-lane.critical{border-top-color:var(--admin-red)!important}
body.admin-shell :is(.table-wrap,.crm-table-wrap,.operations-table-wrap,.site-analytics-table-wrap,.dashboard-table-wrap,.table-frame){
  background:var(--admin-panel)!important;
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  box-shadow:var(--admin-shadow-soft)!important;
  overflow:auto!important;
}
body.admin-shell .crm-table,
body.admin-shell .operations-table,
body.admin-shell .operations-status-table,
body.admin-shell .site-analytics-table,
body.admin-shell .site-visitor-table,
body.admin-shell .dashboard-table,
body.admin-shell table{
  border-collapse:separate!important;
  border-spacing:0!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  font-family:var(--admin-font)!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-variant-numeric:tabular-nums!important;
}
body.admin-shell .crm-table th,
body.admin-shell .operations-table th,
body.admin-shell .operations-status-table th,
body.admin-shell .site-analytics-table th,
body.admin-shell .site-visitor-table th,
body.admin-shell .dashboard-table th,
body.admin-shell table th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:10px 12px!important;
  border:0!important;
  border-bottom:1px solid var(--admin-line-strong)!important;
  background:var(--admin-panel-strong)!important;
  color:#334155!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:760!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
body.admin-shell .crm-table td,
body.admin-shell .operations-table td,
body.admin-shell .operations-status-table td,
body.admin-shell .site-analytics-table td,
body.admin-shell .site-visitor-table td,
body.admin-shell .dashboard-table td,
body.admin-shell table td{
  padding:10px 12px!important;
  border:0!important;
  border-bottom:1px solid var(--admin-line)!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  font-size:13px!important;
  line-height:1.35!important;
  vertical-align:top!important;
}
body.admin-shell .crm-table tr:hover td,
body.admin-shell .operations-table tr:hover td,
body.admin-shell .operations-status-table tr:hover td,
body.admin-shell .site-analytics-table tr:hover td,
body.admin-shell .site-visitor-table tr:hover td,
body.admin-shell .dashboard-table tr:hover td,
body.admin-shell table tr:hover td{
  background:var(--admin-blue-soft)!important;
}
body.admin-shell .operations-status-table tr.critical td{background:var(--admin-red-soft)!important}
body.admin-shell .operations-status-table tr.warning td{background:var(--admin-yellow-soft)!important}
body.admin-shell .operations-status-table tr.ok td{background:var(--admin-green-soft)!important}
body.admin-shell :is(.crm-table,.operations-table,.operations-status-table,.site-analytics-table,.site-visitor-table,.dashboard-table) :is(td,th):last-child{
  border-right:0!important;
}
body.admin-shell :is(.crm-table,.operations-table,.operations-status-table,.site-analytics-table,.site-visitor-table,.dashboard-table) tr:last-child td{
  border-bottom:0!important;
}
body.admin-shell :is(.crm-table,.operations-table,.operations-status-table,.site-analytics-table,.site-visitor-table,.dashboard-table) :is(code,.mono){
  display:inline-flex!important;
  align-items:center!important;
  max-width:100%!important;
  border:1px solid var(--admin-line)!important;
  border-radius:6px!important;
  background:var(--admin-panel-soft)!important;
  color:var(--admin-text)!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:680!important;
  white-space:normal!important;
  word-break:break-word!important;
}
body.admin-shell :is(.empty,.empty-state,.operations-empty,.dashboard-kpi-empty,.inline-detail-loading){
  border:1px solid var(--admin-line)!important;
  border-style:solid!important;
  border-radius:var(--admin-radius)!important;
  background:var(--admin-panel-soft)!important;
  color:var(--admin-muted)!important;
  box-shadow:none!important;
}
body.admin-shell .notice{
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  background:var(--admin-panel-soft)!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
}
body.admin-shell .admin-session-actions .admin-site-link{
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  border-color:var(--admin-line)!important;
}
body.admin-shell .admin-logout-btn{
  background:#223044!important;
  color:#ffffff!important;
  border-color:#3b4a61!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.btn,.tab-btn,.tab-link,.operations-mode-tab,.operations-status-tab,.admin-theme-option,.admin-theme-toggle,.customer-delete-btn,.admin-site-link),
html[data-admin-theme="dark"] .login-card .btn{
  border-color:var(--admin-line)!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.btn:not(.secondary):not(.btn-green):not(.btn-dashed):not(.customer-delete-btn),.tab-btn.active,.tab-link.active,.operations-mode-tab.active,.operations-status-tab.active,.admin-theme-option[aria-pressed="true"]),
html[data-admin-theme="dark"] .login-card .btn{
  border-color:#60a5fa!important;
  background:#1d4ed8!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.btn,.tab-btn,.tab-link,.operations-mode-tab,.operations-status-tab,.admin-theme-option,.admin-theme-toggle,.customer-delete-btn,.admin-site-link):hover{
  border-color:#93c5fd!important;
  background:var(--admin-blue-soft)!important;
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.btn.btn-green,.btn.btn-green.is-armed){
  border-color:#22c55e!important;
  background:#15803d!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.customer-delete-btn,.btn.btn-dashed.is-danger,[data-reject-application]){
  border-color:#7f1d1d!important;
  background:var(--admin-red-soft)!important;
  color:#fecdd3!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(input,select,textarea,.search-input,.dashboard-period-select,.crm-stage-select-inline,.crm-status-search select,.crm-status-search input){
  border-color:var(--admin-line)!important;
  background:#0f1c2b!important;
  color:var(--admin-text)!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table th,
html[data-admin-theme="dark"] body.admin-shell .operations-table th,
html[data-admin-theme="dark"] body.admin-shell .operations-status-table th,
html[data-admin-theme="dark"] body.admin-shell .site-analytics-table th,
html[data-admin-theme="dark"] body.admin-shell .site-visitor-table th,
html[data-admin-theme="dark"] body.admin-shell .dashboard-table th,
html[data-admin-theme="dark"] body.admin-shell table th{
  background:var(--admin-panel-strong)!important;
  color:#e6eef8!important;
  border-bottom-color:var(--admin-line-strong)!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table td,
html[data-admin-theme="dark"] body.admin-shell .operations-table td,
html[data-admin-theme="dark"] body.admin-shell .operations-status-table td,
html[data-admin-theme="dark"] body.admin-shell .site-analytics-table td,
html[data-admin-theme="dark"] body.admin-shell .site-visitor-table td,
html[data-admin-theme="dark"] body.admin-shell .dashboard-table td,
html[data-admin-theme="dark"] body.admin-shell table td{
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  border-bottom-color:var(--admin-line)!important;
}
html[data-admin-theme="dark"] body.admin-shell .crm-table tr:hover td,
html[data-admin-theme="dark"] body.admin-shell .operations-table tr:hover td,
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr:hover td,
html[data-admin-theme="dark"] body.admin-shell .site-analytics-table tr:hover td,
html[data-admin-theme="dark"] body.admin-shell .site-visitor-table tr:hover td,
html[data-admin-theme="dark"] body.admin-shell .dashboard-table tr:hover td,
html[data-admin-theme="dark"] body.admin-shell table tr:hover td{
  background:var(--admin-blue-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr.critical td{background:var(--admin-red-soft)!important}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr.warning td{background:var(--admin-yellow-soft)!important}
html[data-admin-theme="dark"] body.admin-shell .operations-status-table tr.ok td{background:var(--admin-green-soft)!important}
body.admin-shell .admin-theme-switch > .admin-theme-toggle{
  display:none!important;
  width:0!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
/* Admin dashboard theme contrast lock 20260526: dashboard buttons must be readable in light and dark. */
body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row){
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  background:var(--admin-panel-soft)!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
}
body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row):hover{
  border-color:#93c5fd!important;
  background:var(--admin-blue-soft)!important;
  color:var(--admin-text)!important;
  transform:none!important;
}
body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row) :is(strong,b){
  color:var(--admin-text)!important;
}
body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row) :is(span,small){
  color:var(--admin-muted)!important;
}
body.admin-shell :is(.dashboard-lane-row.critical,.dashboard-attention-row.critical,.dashboard-stat-tile.critical,.dashboard-status-kpi.critical,.dashboard-task-row.critical){
  border-color:#fecdd3!important;
  background:var(--admin-red-soft)!important;
}
body.admin-shell :is(.dashboard-lane-row.warning,.dashboard-attention-row.warning,.dashboard-stat-tile.warning,.dashboard-status-kpi.warning,.dashboard-task-row.warning){
  border-color:#fde68a!important;
  background:var(--admin-yellow-soft)!important;
}
body.admin-shell :is(.dashboard-lane-row.ok,.dashboard-attention-row.ok,.dashboard-stat-tile.ok,.dashboard-status-kpi.ok,.dashboard-task-row.ok){
  border-color:#bbf7d0!important;
  background:var(--admin-green-soft)!important;
}
body.admin-shell :is(.dashboard-lane-row.critical .dashboard-lane-value,.dashboard-attention-row.critical b,.dashboard-stat-tile.critical strong,.dashboard-status-kpi.critical strong,.dashboard-task-row.critical b){
  color:#b4232f!important;
}
body.admin-shell :is(.dashboard-lane-row.warning .dashboard-lane-value,.dashboard-attention-row.warning b,.dashboard-stat-tile.warning strong,.dashboard-status-kpi.warning strong,.dashboard-task-row.warning b){
  color:#92400e!important;
}
body.admin-shell :is(.dashboard-lane-row.ok .dashboard-lane-value,.dashboard-attention-row.ok b,.dashboard-stat-tile.ok strong,.dashboard-status-kpi.ok strong,.dashboard-task-row.ok b){
  color:#166534!important;
}
body.admin-shell .dashboard-task-action{
  border:1px solid var(--admin-line)!important;
  border-radius:var(--admin-radius)!important;
  background:var(--admin-panel)!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
}
body.admin-shell .dashboard-task-row.critical .dashboard-task-action{
  border-color:#fecdd3!important;
  background:#fee2e2!important;
  color:#991b1b!important;
}
body.admin-shell .dashboard-task-row.warning .dashboard-task-action{
  border-color:#fde68a!important;
  background:#fef3c7!important;
  color:#92400e!important;
}
body.admin-shell .dashboard-task-row.ok .dashboard-task-action{
  border-color:#bbf7d0!important;
  background:#dcfce7!important;
  color:#166534!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row){
  border-color:var(--admin-line)!important;
  background:var(--admin-panel-soft)!important;
  color:var(--admin-text)!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row) :is(strong,b){
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row,.dashboard-attention-row,.dashboard-stat-tile,.dashboard-status-kpi,.dashboard-task-row) :is(span,small){
  color:#cbd8e5!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row.critical,.dashboard-attention-row.critical,.dashboard-stat-tile.critical,.dashboard-status-kpi.critical,.dashboard-task-row.critical){
  border-color:#7f1d1d!important;
  background:var(--admin-red-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row.warning,.dashboard-attention-row.warning,.dashboard-stat-tile.warning,.dashboard-status-kpi.warning,.dashboard-task-row.warning){
  border-color:#854d0e!important;
  background:var(--admin-yellow-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row.ok,.dashboard-attention-row.ok,.dashboard-stat-tile.ok,.dashboard-status-kpi.ok,.dashboard-task-row.ok){
  border-color:#166534!important;
  background:var(--admin-green-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row.critical .dashboard-lane-value,.dashboard-attention-row.critical b,.dashboard-stat-tile.critical strong,.dashboard-status-kpi.critical strong,.dashboard-task-row.critical b){
  color:#ffb4b4!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row.warning .dashboard-lane-value,.dashboard-attention-row.warning b,.dashboard-stat-tile.warning strong,.dashboard-status-kpi.warning strong,.dashboard-task-row.warning b){
  color:#facc15!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.dashboard-lane-row.ok .dashboard-lane-value,.dashboard-attention-row.ok b,.dashboard-stat-tile.ok strong,.dashboard-status-kpi.ok strong,.dashboard-task-row.ok b){
  color:#86efac!important;
}
html[data-admin-theme="dark"] body.admin-shell .dashboard-task-action{
  border-color:#475569!important;
  background:#1e293b!important;
  color:#f8fafc!important;
}
html[data-admin-theme="dark"] body.admin-shell .dashboard-task-row.critical .dashboard-task-action{
  border-color:#f87171!important;
  background:#7f1d1d!important;
  color:#fee2e2!important;
}
html[data-admin-theme="dark"] body.admin-shell .dashboard-task-row.warning .dashboard-task-action{
  border-color:#facc15!important;
  background:#854d0e!important;
  color:#fff7d6!important;
}
html[data-admin-theme="dark"] body.admin-shell .dashboard-task-row.ok .dashboard-task-action{
  border-color:#86efac!important;
  background:#166534!important;
  color:#dcfce7!important;
}
@media (max-width:720px){
  body.admin-shell .page{
    padding:24px 14px 30px!important;
  }
  body.admin-shell .admin-main-tabs{
    top:0!important;
    margin-top:0!important;
    background:transparent!important;
    border-bottom:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
  html[data-admin-theme="dark"] body.admin-shell .admin-main-tabs{
    background:transparent!important;
  }
  body.admin-shell .crm-table,
  body.admin-shell .operations-table,
  body.admin-shell .operations-status-table,
  body.admin-shell .site-analytics-table,
  body.admin-shell .site-visitor-table,
  body.admin-shell .dashboard-table{
    font-size:12px!important;
  }
  body.admin-shell .crm-table th,
  body.admin-shell .operations-table th,
  body.admin-shell .operations-status-table th,
  body.admin-shell .site-analytics-table th,
  body.admin-shell .site-visitor-table th,
  body.admin-shell .dashboard-table th,
  body.admin-shell .crm-table td,
  body.admin-shell .operations-table td,
  body.admin-shell .operations-status-table td,
  body.admin-shell .site-analytics-table td,
  body.admin-shell .site-visitor-table td,
  body.admin-shell .dashboard-table td{
    padding:9px 10px!important;
  }
}

/* Admin owner console usability pass 20260526: make the dashboard a compact decision surface. */
body.admin-shell[data-admin-active-tab="dashboard"]{
  --dashboard-work-red:#d83b48;
  --dashboard-work-red-soft:#fff5f6;
  --dashboard-work-amber:#c96f05;
  --dashboard-work-amber-soft:#fff8e8;
  --dashboard-work-green:#148a43;
  --dashboard-work-green-soft:#eefbf3;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"]{
  --dashboard-work-red:#ff8f8f;
  --dashboard-work-red-soft:#321f2a;
  --dashboard-work-amber:#f5b84d;
  --dashboard-work-amber-soft:#302918;
  --dashboard-work-green:#64e08f;
  --dashboard-work-green-soft:#183028;
}
body.admin-shell[data-admin-active-tab="dashboard"] .command-dashboard{
  max-width:1280px!important;
  gap:14px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero{
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:18px!important;
  padding:4px 0 2px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero .command-kicker{
  display:none!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero h1{
  margin:0 0 8px!important;
  max-width:760px!important;
  color:var(--admin-text)!important;
  font-size:44px!important;
  line-height:1.02!important;
  font-weight:780!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero p{
  max-width:760px!important;
  margin:0!important;
  color:var(--admin-muted)!important;
  font-size:15px!important;
  line-height:1.4!important;
  font-weight:680!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .command-hero-actions{
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  min-width:420px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-select{
  min-width:210px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-controls{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:360px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-caption{
  color:var(--admin-muted)!important;
  font-size:12px!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-tabs{
  display:flex!important;
  gap:3px!important;
  padding:3px!important;
  border-radius:9px!important;
  border:1px solid var(--admin-line)!important;
  background:rgba(255,255,255,.62)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-tab{
  min-height:30px!important;
  padding:0 11px!important;
  border-radius:7px!important;
  color:var(--admin-muted)!important;
  background:transparent!important;
  font-size:12px!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-tab:hover:not(:disabled){
  color:var(--admin-text)!important;
  background:rgba(16,185,129,.08)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-tab.active{
  color:var(--admin-text)!important;
  background:#ffffff!important;
  box-shadow:0 1px 2px rgba(15,23,42,.08), inset 0 0 0 1px rgba(16,185,129,.30)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-refresh-btn{
  min-height:36px!important;
  padding:0 14px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card{
  padding:22px 24px 24px!important;
  border-radius:12px!important;
  background:var(--admin-panel)!important;
  border:1px solid var(--admin-line)!important;
  box-shadow:var(--admin-shadow-soft)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card-head{
  display:grid!important;
  grid-template-columns:minmax(0,.48fr) minmax(0,.52fr)!important;
  align-items:start!important;
  gap:20px!important;
  min-height:0!important;
  padding:0!important;
  margin:0 0 16px!important;
  border:0!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card-head h2{
  margin:0!important;
  color:var(--admin-text)!important;
  font-size:28px!important;
  line-height:1.12!important;
  font-weight:780!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card-head p{
  max-width:560px!important;
  margin:4px 0 0 auto!important;
  color:var(--admin-muted)!important;
  font-size:14px!important;
  line-height:1.45!important;
  font-weight:680!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-board{
  display:grid!important;
  grid-template-columns:minmax(320px,1.2fr) repeat(3,minmax(170px,.7fr))!important;
  grid-auto-rows:minmax(132px,auto)!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-card{
  min-height:0!important;
  border-radius:10px!important;
  background:var(--admin-panel-soft)!important;
  border:1px solid var(--admin-line)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-errors-card{
  grid-column:1!important;
  grid-row:1 / span 2!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-messages-card{
  grid-column:2!important;
  grid-row:1!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-attention-card{
  grid-column:3!important;
  grid-row:1!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] #dashboardStats .dashboard-stat-tile:nth-child(1){
  grid-column:4!important;
  grid-row:1!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] #dashboardStats .dashboard-stat-tile:nth-child(2){
  grid-column:2!important;
  grid-row:2!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-card-head{
  min-height:42px!important;
  padding:11px 14px!important;
  border-bottom:1px solid var(--admin-line)!important;
  background:transparent!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-card-head span{
  color:var(--admin-text)!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-card-head strong{
  color:var(--admin-muted)!important;
  font-size:13px!important;
  font-weight:760!important;
  text-transform:none!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-messages-card .dashboard-card-head,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-attention-card .dashboard-card-head{
  display:none!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] :is(.dashboard-lane-list,.dashboard-attention-list,.dashboard-tasks-list){
  gap:8px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-list{
  padding:12px 14px 14px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-attention-list{
  height:100%!important;
  padding:0!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] :is(.dashboard-status-kpi,.dashboard-stat-tile,.dashboard-lane-row,.dashboard-task-row){
  border-radius:9px!important;
  box-shadow:none!important;
  transform:none!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile{
  min-height:132px!important;
  height:100%!important;
  padding:18px!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:9px!important;
  background:var(--admin-panel)!important;
  border:1px solid var(--admin-line)!important;
  color:var(--admin-text)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi span,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile span{
  color:var(--admin-muted)!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:760!important;
  text-transform:none!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi strong,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile strong{
  color:var(--admin-text)!important;
  font-size:36px!important;
  line-height:1!important;
  font-weight:780!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi small,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile small{
  max-width:100%!important;
  color:var(--admin-muted)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:680!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.ok,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.ok{
  border-color:#bbf7d0!important;
  background:var(--dashboard-work-green-soft)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.warning,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.warning{
  border-color:#fde68a!important;
  background:var(--dashboard-work-amber-soft)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.critical,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.critical{
  border-color:#fecdd3!important;
  background:var(--dashboard-work-red-soft)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.ok strong{
  color:var(--dashboard-work-green)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.warning strong,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.warning strong{
  color:var(--dashboard-work-amber)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.critical strong,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.critical strong{
  color:var(--dashboard-work-red)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row{
  position:relative!important;
  min-height:58px!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:10px!important;
  padding:9px 12px 9px 10px!important;
  background:var(--admin-panel)!important;
  border-color:var(--admin-line)!important;
  border-left-width:3px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row.critical{border-left-color:var(--dashboard-work-red)!important;background:var(--admin-panel)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row.warning{border-left-color:var(--dashboard-work-amber)!important;background:var(--admin-panel)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row.ok{border-left-color:var(--dashboard-work-green)!important;background:var(--admin-panel)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-value{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  border-radius:999px!important;
  background:var(--admin-panel-soft)!important;
  border-color:var(--admin-line)!important;
  color:var(--admin-text)!important;
  font-size:20px!important;
  line-height:1!important;
  font-weight:780!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row.critical .dashboard-lane-value{color:var(--dashboard-work-red)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row.warning .dashboard-lane-value{color:var(--dashboard-work-amber)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-row.ok .dashboard-lane-value{color:var(--dashboard-work-green)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-main strong{
  color:var(--admin-text)!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-main small{
  margin-top:3px!important;
  color:var(--admin-muted)!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:680!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] :is(.dashboard-status-kpi,.dashboard-stat-tile,.dashboard-lane-row,.dashboard-task-row):hover{
  border-color:#93c5fd!important;
  background:var(--admin-blue-soft)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-tasks-card{
  margin-top:14px!important;
  background:var(--admin-panel-soft)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-tasks-card .dashboard-card-head{
  border-bottom:0!important;
  padding-bottom:0!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-tasks-list{
  padding:10px 14px 14px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row{
  min-height:68px!important;
  grid-template-columns:150px minmax(0,1fr) 130px!important;
  gap:12px!important;
  align-items:center!important;
  padding:12px!important;
  background:var(--admin-panel)!important;
  border-color:var(--admin-line)!important;
  border-left-width:3px!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row.critical{border-left-color:var(--dashboard-work-red)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row.warning{border-left-color:var(--dashboard-work-amber)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row.ok{border-left-color:var(--dashboard-work-green)!important}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-action{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-main strong{
  color:var(--admin-text)!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-main small,
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row b{
  color:var(--admin-muted)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:680!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row b{
  text-align:right!important;
  color:var(--dashboard-work-amber)!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-protect-note{
  margin-top:12px!important;
  padding:12px 14px!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  border-radius:10px!important;
  background:var(--admin-panel-soft)!important;
  border:1px solid var(--admin-line)!important;
  box-shadow:none!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-protect-note strong{
  min-width:128px!important;
  color:var(--admin-text)!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-active-tab="dashboard"] .admin-protect-note span{
  color:var(--admin-muted)!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:680!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-card,
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card{
  background:var(--admin-panel)!important;
  border-color:var(--admin-line)!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] :is(.dashboard-status-kpi,.dashboard-stat-tile,.dashboard-lane-row,.dashboard-task-row){
  background:var(--admin-panel-soft)!important;
  border-color:var(--admin-line)!important;
  color:var(--admin-text)!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-lane-value{
  background:var(--admin-panel-strong)!important;
  border-color:var(--admin-line)!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.ok,
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.ok{
  border-color:#166534!important;
  background:var(--dashboard-work-green-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.warning,
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.warning{
  border-color:#854d0e!important;
  background:var(--dashboard-work-amber-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi.critical,
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile.critical{
  border-color:#7f1d1d!important;
  background:var(--dashboard-work-red-soft)!important;
}
html[data-admin-theme="dark"] body.admin-shell[data-admin-active-tab="dashboard"] .admin-protect-note{
  background:var(--admin-panel-strong)!important;
  border-color:var(--admin-line)!important;
}
@media (max-width:1100px){
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-board{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] :is(.dashboard-errors-card,.dashboard-messages-card,.dashboard-attention-card,#dashboardStats .dashboard-stat-tile:nth-child(1),#dashboardStats .dashboard-stat-tile:nth-child(2)){
    grid-column:auto!important;
    grid-row:auto!important;
  }
}
@media (max-width:720px){
  body.admin-shell[data-admin-active-tab="dashboard"] .command-dashboard{
    gap:12px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero{
    grid-template-columns:1fr!important;
    align-items:start!important;
    gap:12px!important;
    padding-top:2px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero h1{
    font-size:32px!important;
    line-height:1.08!important;
    margin-bottom:8px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-hero p{
    font-size:14px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .command-hero-actions{
    min-width:0!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-controls{
    grid-column:1 / -1!important;
    min-width:0!important;
    width:100%!important;
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-tabs{
    width:100%!important;
    overflow:auto!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-tab{
    flex:1 0 max-content!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-period-select,
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-freshness{
    grid-column:1 / -1!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card{
    padding:16px 12px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card-head{
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-bottom:12px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card-head h2{
    font-size:24px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .admin-overview-card-head p{
    margin:0!important;
    max-width:none!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-board{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] :is(.dashboard-errors-card,.dashboard-messages-card,.dashboard-attention-card,#dashboardStats .dashboard-stat-tile:nth-child(1),#dashboardStats .dashboard-stat-tile:nth-child(2)){
    grid-column:auto!important;
    grid-row:auto!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi,
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile{
    min-height:104px!important;
    padding:14px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-status-kpi strong,
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-stat-tile strong{
    font-size:30px!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-action{
    width:100%!important;
    justify-content:center!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .dashboard-task-row b{
    text-align:left!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .admin-protect-note{
    display:block!important;
  }
  body.admin-shell[data-admin-active-tab="dashboard"] .admin-protect-note span{
    display:block!important;
    margin-top:6px!important;
  }
}

/* SellerStrat admin production visual parity 20260526-admin-unified-v2. */
body.admin-shell{
  --admin-sidebar-w:252px;
  --admin-sidebar:#ffffff;
  --admin-sidebar-2:#f8fafc;
  --admin-sidebar-text:#0f172a;
  --admin-sidebar-muted:#64748b;
  --admin-control-h:36px;
  background:#f6f8fb!important;
  color:var(--admin-text)!important;
}
body.admin-shell::before{
  width:var(--admin-sidebar-w)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  border-right:1px solid #d8e2ee!important;
  box-shadow:8px 0 28px rgba(15,23,42,.045)!important;
}
body.admin-shell .page{
  padding:28px 24px 40px calc(var(--admin-sidebar-w) + 24px)!important;
  background:#f6f8fb!important;
}
body.admin-shell .admin-topbar{
  width:var(--admin-sidebar-w)!important;
  padding:18px!important;
  background:transparent!important;
  border-right:0!important;
  color:var(--admin-sidebar-text)!important;
}
body.admin-shell .admin-topbar-inner{
  gap:8px!important;
}
body.admin-shell .admin-topbar .brand-mini{
  width:100%!important;
  min-height:48px!important;
  padding:7px 9px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#ffffff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.055)!important;
}
body.admin-shell .admin-topbar .brand-mini img{
  width:150px!important;
  max-height:34px!important;
}
body.admin-shell .admin-topbar-title{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:780!important;
}
body.admin-shell .admin-theme-switch{
  margin-top:12px!important;
  padding:4px!important;
  gap:4px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
}
body.admin-shell .admin-theme-option{
  min-height:30px!important;
  padding:0 8px!important;
  border-radius:6px!important;
  border-color:transparent!important;
  background:transparent!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:720!important;
}
body.admin-shell .admin-theme-option:hover{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
  color:#0f172a!important;
}
body.admin-shell .admin-theme-option.active,
body.admin-shell .admin-theme-option[aria-pressed="true"]{
  border-color:#bfdbfe!important;
  background:#ffffff!important;
  color:#0f172a!important;
  box-shadow:0 1px 3px rgba(15,23,42,.06)!important;
}
body.admin-shell .admin-main-tabs{
  top:150px!important;
  left:18px!important;
  width:216px!important;
  bottom:104px!important;
  max-height:calc(100vh - 254px)!important;
  gap:6px!important;
}
body.admin-shell .admin-main-tabs .tab-btn{
  min-height:38px!important;
  padding:0 10px!important;
  justify-content:flex-start!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:740!important;
  text-align:left!important;
}
body.admin-shell .admin-main-tabs .tab-btn:hover{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
  color:#0f172a!important;
}
body.admin-shell .admin-main-tabs .tab-btn.active{
  border-color:#2563eb!important;
  background:#2563eb!important;
  color:#ffffff!important;
}
body.admin-shell .admin-session-actions{
  left:18px!important;
  right:18px!important;
  bottom:18px!important;
  gap:7px!important;
}
body.admin-shell .admin-session-actions .admin-site-link,
body.admin-shell .admin-logout-btn{
  min-height:34px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  font-size:12px!important;
  font-weight:740!important;
  box-shadow:none!important;
}
body.admin-shell .admin-session-actions .admin-site-link{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
}
body.admin-shell .admin-logout-btn{
  border-color:#d8e2ee!important;
  background:#ffffff!important;
  color:#475569!important;
}
body.admin-shell .admin-logout-btn:hover{
  border-color:#fecaca!important;
  background:#fff5f6!important;
  color:#b91c1c!important;
}
body.admin-shell :is(.card,.dashboard-card,.admin-overview-card,.operations-panel,.operations-board-card,.operations-crm-lane,.operations-check-btn,.site-analytics-subpanel,.billing-shell-item,.customer-item,.quick-card,.kv-item,.aggregate-link,details.section,.registrations-card,.action-editor,.admin-protect-note,.support-stats div,.crm-workspace-card,.crm-list-shell,.support-lead-card,.section-health-card){
  border-radius:8px!important;
  border-color:#d8e2ee!important;
  background:#ffffff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
}
body.admin-shell :is(h1,h2,h3,.crm-workspace-title strong,.registrations-head h2,.dashboard-card-head strong,.operations-board-card strong,.operations-crm-lane h3){
  color:#0f172a!important;
  font-weight:780!important;
  line-height:1.18!important;
}
body.admin-shell :is(p,small,.helper,.muted,.dashboard-freshness,.crm-workspace-title span,.registrations-head p,.registrations-head span,.crm-client-meta,.crm-muted,.operations-control-meta span){
  color:#64748b!important;
  font-weight:620!important;
  line-height:1.32!important;
}
body.admin-shell .command-hero,
body.admin-shell .dashboard-hero{
  gap:18px!important;
  margin-bottom:12px!important;
}
body.admin-shell .dashboard-hero h1{
  margin:0 0 8px!important;
  font-size:34px!important;
  line-height:1.08!important;
  font-weight:760!important;
}
body.admin-shell .dashboard-hero p{
  max-width:780px!important;
  font-size:14px!important;
  line-height:1.42!important;
}
body.admin-shell :is(.btn,.tab-btn,.tab-link,.operations-mode-tab,.operations-status-tab,.customer-delete-btn,.admin-site-link,.admin-logout-btn),
body.admin-shell :is(input,select,textarea){
  min-height:var(--admin-control-h)!important;
  border-radius:8px!important;
  font-size:13px!important;
  line-height:1!important;
}
body.admin-shell :is(input,select,textarea){
  border:1px solid #d8e2ee!important;
  background:#ffffff!important;
  color:#0f172a!important;
  font-weight:620!important;
  box-shadow:none!important;
}
body.admin-shell :is(input,select,textarea):focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;
  outline:0!important;
}
body.admin-shell :is(.table-wrap,.crm-table-wrap,.dashboard-table-wrap,.operations-table-wrap,.site-analytics-table-wrap,.site-visitor-table-wrap){
  border:1px solid #d8e2ee!important;
  border-radius:8px!important;
  background:#ffffff!important;
  box-shadow:none!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table){
  color:#0f172a!important;
  font-size:12px!important;
  line-height:1.24!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) th{
  height:34px!important;
  padding:7px 9px!important;
  background:#f3f7fb!important;
  border-color:#d8e2ee!important;
  color:#475569!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:760!important;
  text-transform:none!important;
  white-space:nowrap!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) td{
  padding:8px 9px!important;
  border-color:#e4ebf3!important;
  color:#0f172a!important;
  font-size:12px!important;
  line-height:1.24!important;
  vertical-align:middle!important;
}
body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) tbody tr:hover td{
  background:#f8fbff!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-card{
  padding:14px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-head{
  grid-template-columns:minmax(210px,.25fr) minmax(440px,1fr)!important;
  gap:12px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-title strong{
  font-size:18px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-workspace-title span{
  margin-top:3px!important;
  font-size:12px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
  grid-template-columns:minmax(260px,1fr) 96px 104px!important;
  gap:8px!important;
  align-items:end!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search label{
  font-size:11px!important;
  font-weight:720!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search input,
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search .btn{
  height:34px!important;
  min-height:34px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tabs{
  margin-top:10px!important;
  padding:6px!important;
  gap:5px!important;
  border-radius:8px!important;
  background:#f8fafc!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-tab{
  min-height:30px!important;
  padding:0 8px!important;
  border-radius:7px!important;
  font-size:12px!important;
  font-weight:720!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-shell{
  gap:8px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-toolbar{
  padding:6px 4px 0!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-toolbar strong{
  font-size:15px!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-toolbar span{
  font-size:11px!important;
  line-height:1.3!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-wrap{
  max-height:calc(100vh - 302px)!important;
  min-height:220px!important;
  border-radius:8px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"]{
  min-width:1320px!important;
  font-size:12px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-cabinet-compact-width{width:11%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-user-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-email-width{width:13%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-phone-width{width:8%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-stage-width{width:12%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-access-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-money-width{width:7%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-activity-width{width:9%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-problem-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-col-action-width{width:10%!important}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] th{
  height:32px!important;
  padding:6px 8px!important;
  font-size:10.5px!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] td{
  padding:6px 8px!important;
  font-size:12px!important;
  line-height:1.2!important;
  vertical-align:middle!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-row.active td,
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-row.detail-open td{
  background:#eff6ff!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-cell,
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-cell-compact{
  align-items:center!important;
  gap:6px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-name,
body.admin-shell[data-admin-customer-mode="crm"] .crm-main-value{
  color:#0f172a!important;
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-muted,
body.admin-shell[data-admin-customer-mode="crm"] .crm-client-meta{
  margin-top:2px!important;
  color:#64748b!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  font-weight:620!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-status-stack{
  gap:3px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline{
  grid-template-columns:minmax(0,1fr) 54px!important;
  gap:3px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-select-inline,
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline .crm-stage-select-inline{
  height:28px!important;
  min-height:28px!important;
  padding:0 6px!important;
  border-radius:7px!important;
  font-size:10.5px!important;
  line-height:1!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-stage-inline .btn{
  width:54px!important;
  min-width:54px!important;
  height:22px!important;
  min-height:22px!important;
  padding:0 4px!important;
  border-radius:7px!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:720!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-action,
body.admin-shell[data-admin-customer-mode="crm"] .crm-problem-badge{
  padding:4px 6px!important;
  border-radius:7px!important;
  font-size:10.5px!important;
  line-height:1.16!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .section-health-dots{
  gap:2px!important;
  margin-top:3px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .section-dot{
  width:16px!important;
  height:16px!important;
  font-size:7px!important;
  border-radius:5px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-toggle,
body.admin-shell[data-admin-customer-mode="crm"] .crm-toggle-spacer{
  width:22px!important;
  min-width:22px!important;
  height:22px!important;
  border-radius:7px!important;
}
html[data-admin-theme="dark"] body.admin-shell{
  --admin-sidebar:#111c2a;
  --admin-sidebar-2:#172637;
  --admin-sidebar-text:#f5f8fb;
  --admin-sidebar-muted:#c4d1e0;
  background:#141e2d!important;
}
html[data-admin-theme="dark"] body.admin-shell::before{
  background:linear-gradient(180deg,#111c2a 0%,#172637 100%)!important;
  border-right-color:#31485e!important;
  box-shadow:8px 0 28px rgba(2,8,23,.24)!important;
}
html[data-admin-theme="dark"] body.admin-shell .page{
  background:#141e2d!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-topbar .brand-mini,
html[data-admin-theme="dark"] body.admin-shell .admin-theme-switch,
html[data-admin-theme="dark"] body.admin-shell .admin-main-tabs .tab-btn,
html[data-admin-theme="dark"] body.admin-shell .admin-logout-btn{
  border-color:#31485e!important;
  background:#172637!important;
  color:#f5f8fb!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-topbar-title,
html[data-admin-theme="dark"] body.admin-shell .admin-theme-option,
html[data-admin-theme="dark"] body.admin-shell .admin-main-tabs .tab-btn:not(.active){
  color:#c4d1e0!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-theme-option.active,
html[data-admin-theme="dark"] body.admin-shell .admin-theme-option[aria-pressed="true"]{
  border-color:#60a5fa!important;
  background:#203349!important;
  color:#f5f8fb!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-main-tabs .tab-btn.active{
  border-color:#60a5fa!important;
  background:#2563eb!important;
  color:#ffffff!important;
}
html[data-admin-theme="dark"] body.admin-shell .admin-session-actions .admin-site-link{
  border-color:#60a5fa!important;
  background:#203349!important;
  color:#dbeafe!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(input,select,textarea){
  border-color:#31485e!important;
  background:#172637!important;
  color:#f5f8fb!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(.card,.dashboard-card,.admin-overview-card,.operations-panel,.operations-board-card,.operations-crm-lane,.operations-check-btn,.site-analytics-subpanel,.billing-shell-item,.customer-item,.quick-card,.kv-item,.aggregate-link,details.section,.registrations-card,.action-editor,.admin-protect-note,.support-stats div,.crm-workspace-card,.crm-list-shell,.support-lead-card,.section-health-card),
html[data-admin-theme="dark"] body.admin-shell :is(.table-wrap,.crm-table-wrap,.dashboard-table-wrap,.operations-table-wrap,.site-analytics-table-wrap,.site-visitor-table-wrap){
  border-color:#31485e!important;
  background:#172637!important;
  box-shadow:none!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) th{
  background:#203349!important;
  border-color:#31485e!important;
  color:#c4d1e0!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(table,.crm-table,.dashboard-table,.operations-table,.site-analytics-table,.site-visitor-table) td{
  border-color:#31485e!important;
  color:#f5f8fb!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(h1,h2,h3,.crm-workspace-title strong,.registrations-head h2,.dashboard-card-head strong,.operations-board-card strong,.operations-crm-lane h3),
html[data-admin-theme="dark"] body.admin-shell .crm-client-name,
html[data-admin-theme="dark"] body.admin-shell .crm-main-value{
  color:#f5f8fb!important;
}
html[data-admin-theme="dark"] body.admin-shell :is(p,small,.helper,.muted,.dashboard-freshness,.crm-workspace-title span,.registrations-head p,.registrations-head span,.crm-client-meta,.crm-muted,.operations-control-meta span){
  color:#c4d1e0!important;
}
@media (max-width:900px){
  body.admin-shell .page{
    padding:82px 14px 28px!important;
  }
  body.admin-shell::before{
    display:none!important;
  }
  body.admin-shell .admin-topbar{
    width:100%!important;
    height:auto!important;
    min-height:64px!important;
    padding:10px 12px!important;
    background:#ffffff!important;
    border-bottom:1px solid #d8e2ee!important;
  }
  body.admin-shell .admin-main-tabs{
    position:sticky!important;
    top:70px!important;
    left:auto!important;
    width:100%!important;
    max-height:none!important;
    flex-direction:row!important;
    overflow:auto!important;
    padding:0 0 8px!important;
    margin-bottom:10px!important;
  }
  body.admin-shell .admin-main-tabs .tab-btn{
    width:auto!important;
    min-width:max-content!important;
  }
  body.admin-shell .admin-session-actions{
    position:static!important;
    grid-template-columns:1fr 1fr!important;
    margin-top:8px!important;
  }
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-head,
  body.admin-shell[data-admin-customer-mode="crm"] .crm-status-search{
    grid-template-columns:1fr!important;
  }
  html[data-admin-theme="dark"] body.admin-shell .admin-topbar{
    background:#111c2a!important;
    border-bottom-color:#31485e!important;
  }
}

body.admin-login-body{
  margin:0;
  background:#171717!important;
  color:#f4f4f5!important;
}
body.admin-login-body .login-agent-shell{
  min-height:100vh;
  display:grid!important;
  grid-template-columns:276px minmax(0,1fr);
  padding:0!important;
  place-items:stretch!important;
  background:#171717!important;
}
body.admin-login-body .login-agent-rail{
  min-height:100vh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:18px;
  padding:18px;
  border-right:1px solid #2f3437;
  background:#172333;
}
body.admin-login-body .login-agent-brand{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:12px 14px;
  border:1px solid #2f4253;
  border-radius:8px;
  background:#152233;
}
body.admin-login-body .login-agent-brand img{
  width:132px;
  max-width:100%;
  height:auto;
  display:block;
}
body.admin-login-body .login-agent-nav{
  display:grid;
  align-content:start;
  gap:8px;
}
body.admin-login-body .login-agent-nav span,
body.admin-login-body .login-agent-nav strong{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:9px 11px;
  border:1px solid #2f4253;
  border-radius:8px;
  color:#d4d4d8!important;
  background:#18283a;
  font-size:13px;
  font-weight:850;
  line-height:1.2;
}
body.admin-login-body .login-agent-nav strong{
  border-color:#2563eb;
  background:#2557d6;
  color:#ffffff!important;
}
body.admin-login-body .login-agent-site{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border:1px solid #3f5d7c;
  border-radius:8px;
  background:#1b3148;
  color:#f4f4f5!important;
  text-decoration:none;
  font-size:12px;
  font-weight:850;
}
body.admin-login-body .login-agent-main{
  min-width:0;
  display:grid;
  align-items:center;
  padding:28px;
  background:#171717;
}
body.admin-login-body .login-agent-workspace{
  width:min(960px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:18px;
  align-items:stretch;
}
body.admin-login-body .login-agent-copy,
body.admin-login-body .login-agent-card{
  border:1px solid #2f3437!important;
  border-radius:12px!important;
  background:#202020!important;
  box-shadow:none!important;
}
body.admin-login-body .login-agent-copy{
  min-height:420px;
  display:grid;
  align-content:center;
  gap:12px;
  padding:28px;
}
body.admin-login-body .login-agent-copy p{
  margin:0;
  color:#a1a1aa!important;
  font-size:12px;
  font-weight:850;
}
body.admin-login-body .login-agent-copy h1{
  margin:0;
  color:#f4f4f5!important;
  font-size:34px;
  line-height:1.05;
  font-weight:950;
}
body.admin-login-body .login-agent-copy span{
  max-width:440px;
  color:#d4d4d8!important;
  font-size:14px;
  line-height:1.45;
  font-weight:650;
}
body.admin-login-body .login-agent-card{
  width:100%!important;
  max-width:none!important;
  padding:24px!important;
  align-self:stretch;
  color:#f4f4f5!important;
}
body.admin-login-body .login-agent-card .login-head-wide{
  grid-template-columns:minmax(112px,150px) minmax(0,1fr);
}
body.admin-login-body .login-agent-card .login-title{
  color:#f4f4f5!important;
  font-size:24px!important;
}
body.admin-login-body .login-agent-card label{
  color:#a1a1aa!important;
}
body.admin-login-body .login-agent-card input{
  min-height:42px!important;
  border:1px solid #3f3f46!important;
  border-radius:9px!important;
  background:#171717!important;
  color:#f4f4f5!important;
}
body.admin-login-body .login-agent-card input::placeholder{
  color:#a1a1aa!important;
}
body.admin-login-body .login-agent-card .btn{
  min-height:42px!important;
  border-radius:9px!important;
  border-color:#2563eb!important;
  background:#2557d6!important;
  color:#ffffff!important;
  font-weight:900!important;
}
body.admin-login-body .login-agent-card .notice{
  margin-top:12px;
}
@media (max-width:900px){
  body.admin-login-body .login-agent-shell{
    grid-template-columns:1fr;
  }
  body.admin-login-body .login-agent-rail{
    min-height:auto;
    grid-template-rows:auto auto;
    border-right:0;
    border-bottom:1px solid #2f3437;
  }
  body.admin-login-body .login-agent-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.admin-login-body .login-agent-site{
    display:none;
  }
  body.admin-login-body .login-agent-workspace{
    grid-template-columns:1fr;
  }
  body.admin-login-body .login-agent-copy{
    min-height:auto;
  }
}

/* SellerStrat agents UX tightening 20260531. */
body.admin-shell #agentsSection .agents-chat-shell{
  grid-template-columns:minmax(250px,292px) minmax(460px,1fr) minmax(248px,286px);
  height:clamp(460px,calc(100vh - 255px),680px);
  min-height:460px;
  max-height:680px;
}
body.admin-shell #agentsSection .agents-queue-item{
  gap:6px;
  padding:9px 10px;
}
body.admin-shell #agentsSection .agents-queue-top{
  grid-template-columns:minmax(0,1fr);
}
body.admin-shell #agentsSection .agents-queue-top .pill{
  width:max-content;
  max-width:100%;
}
body.admin-shell #agentsSection .agents-queue-top b{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.admin-shell #agentsSection .agents-task-meta{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.admin-shell #agentsSection .agents-chat-panel{
  grid-template-rows:auto auto minmax(0,1fr) auto;
}
body.admin-shell #agentsSection .agents-chat-header{
  padding:12px 16px;
}
body.admin-shell #agentsSection .agents-chat-header h4{
  display:-webkit-box;
  max-width:720px;
  margin-top:4px;
  overflow:hidden;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  font-size:15px;
  line-height:1.3;
}
body.admin-shell #agentsSection .agents-chat-header .agents-task-meta{
  white-space:normal;
}
body.admin-shell #agentsSection .agents-task-badges{
  max-width:220px;
}
body.admin-shell #agentsSection #agentChatContext{
  margin:10px 16px 0;
  padding:8px 10px;
}
body.admin-shell #agentsSection .agents-chat-messages{
  min-height:0;
  padding:16px;
}
body.admin-shell #agentsSection .agents-reply-form{
  padding:12px 16px 14px;
}
body.admin-shell #agentsSection .agents-reply-form textarea{
  min-height:86px;
}
body.admin-shell #agentsSection .agents-reply-row{
  justify-content:flex-end;
}
body.admin-shell #agentsSection .agents-context-rail{
  align-content:start;
  gap:10px;
  padding:12px;
}
body.admin-shell #agentsSection .agents-rail-box{
  gap:9px;
  padding:11px;
}
body.admin-shell #agentsSection .agents-rail-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}
body.admin-shell #agentsSection .agents-rail-actions .btn{
  width:100%;
  min-height:34px;
  border-radius:8px!important;
}
body.admin-shell #agentsSection .agents-rail-actions .btn.secondary{
  background:#202020!important;
  border-color:#3f3f46!important;
  color:#f4f4f5!important;
}
body.admin-shell #agentsSection .agents-rail-actions [data-agent-archive-selected]{
  color:#fde68a!important;
  border-color:#854d0e!important;
  background:#2b2112!important;
}
body.admin-shell #agentsSection .agents-team-list{
  display:grid;
  gap:6px;
}
body.admin-shell #agentsSection .agents-team-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 22px;
  gap:8px;
  align-items:center;
  min-height:28px;
  padding:6px 7px;
  border:1px solid #333333;
  border-radius:8px;
  background:#202020;
}
body.admin-shell #agentsSection .agents-team-row span{
  min-width:0;
  overflow:hidden;
  color:#d4d4d8!important;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:780;
}
body.admin-shell #agentsSection .agents-team-row strong{
  color:#a1a1aa!important;
  font-size:10px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
body.admin-shell #agentsSection .agents-team-row b{
  display:grid;
  place-items:center;
  width:22px;
  height:20px;
  border-radius:999px;
  background:#27272a;
  color:#e5e7eb!important;
  font-size:10px;
}
body.admin-shell #agentsSection .agents-team-row.active{
  border-color:#2563eb;
}
body.admin-shell #agentsSection .agents-team-row.active strong{
  color:#bfdbfe!important;
}
body.admin-shell #agentsSection .agents-team-row.waiting{
  border-color:#a16207;
}
body.admin-shell #agentsSection .agents-team-row.waiting strong{
  color:#fde68a!important;
}
body.admin-shell #agentsSection .agents-team-row.free strong{
  color:#86efac!important;
}
body.admin-shell #agentsSection .agents-chat-sidebar,
body.admin-shell #agentsSection .agents-chat-main,
body.admin-shell #agentsSection .agents-context-rail{
  height:100%;
  min-height:0!important;
  overflow:hidden;
}
body.admin-shell #agentsSection .agents-chat-sidebar .agents-task-list{
  min-height:0;
  max-height:none!important;
}
body.admin-shell #agentsSection .agents-chat-panel{
  height:100%;
  min-height:0!important;
  overflow:hidden;
}
body.admin-shell #agentsSection .agents-chat-empty{
  min-height:0!important;
  height:100%;
}
body.admin-shell #agentsSection .agents-context-rail{
  overflow:auto;
}
@media (max-width:1320px){
  body.admin-shell #agentsSection .agents-chat-shell{
    grid-template-columns:minmax(250px,300px) minmax(460px,1fr);
  }
  body.admin-shell #agentsSection .agents-context-rail{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* SellerStrat admin CRM density correction 20260526-admin-unified-v3. */
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] .crm-status-stack{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:3px!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] :is(.pill,.pill.crm-auto,.pill.muted){
  min-height:20px!important;
  height:20px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:720!important;
  white-space:nowrap!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] .crm-status-stack .crm-muted{
  flex:1 0 100%!important;
  height:13px!important;
  min-height:13px!important;
  max-height:13px!important;
  margin-top:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] .crm-money{
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:760!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] .crm-problem-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table[data-table-kind="crm"] .crm-action{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* SellerStrat admin table frame correction 20260526-admin-unified-v4. */
body.admin-shell :is(.table-wrap,.crm-table-wrap,.dashboard-table-wrap,.operations-table-wrap,.site-analytics-table-wrap,.site-visitor-table-wrap){
  min-height:0!important;
}
body.admin-shell[data-admin-customer-mode="crm"] .crm-table-wrap{
  min-height:0!important;
}

/* SellerStrat admin agents tab 20260531. */
body.admin-shell .agents-workspace-card{
  display:grid;
  gap:16px;
}
body.admin-shell .agents-head{
  align-items:start;
}
body.admin-shell .agents-actions select,
body.admin-shell .agents-compose select,
body.admin-shell .agents-compose input,
body.admin-shell .agents-compose textarea,
body.admin-shell .agents-task-actions textarea{
  width:100%;
  border:1px solid var(--line);
  background:var(--panel-soft);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
}
body.admin-shell .agents-compose{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel-soft);
}
body.admin-shell .agents-compose label{
  display:block;
  margin:0 0 6px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
body.admin-shell .agents-compose-main textarea{
  min-height:154px;
  resize:vertical;
}
body.admin-shell .agents-compose-side{
  display:grid;
  align-content:start;
  gap:10px;
}
body.admin-shell .agents-role-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body.admin-shell .agents-role-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel-soft);
  color:var(--text);
  padding:7px 11px;
  font-weight:850;
  cursor:pointer;
}
body.admin-shell .agents-role-tab b{
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(39,226,138,.14);
  color:var(--text);
  font-size:12px;
}
body.admin-shell .agents-role-tab.active{
  border-color:rgba(39,226,138,.58);
  box-shadow:0 0 0 3px rgba(39,226,138,.10);
}
body.admin-shell .agents-task-list{
  display:grid;
  gap:12px;
}
body.admin-shell .agents-task-card{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
}
body.admin-shell .agents-task-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
}
body.admin-shell .agents-task-top h4{
  margin:4px 0 0;
  font-size:16px;
  line-height:1.25;
}
body.admin-shell .agents-task-meta,
body.admin-shell .agents-task-context,
body.admin-shell .agents-message span{
  color:var(--muted);
  font-size:12px;
}
body.admin-shell .agents-task-badges,
body.admin-shell .agents-task-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
body.admin-shell .agents-task-gates{
  padding:10px 12px;
  border:1px solid rgba(255,214,103,.32);
  border-radius:14px;
  background:rgba(255,214,103,.08);
  color:var(--text);
}
body.admin-shell .agents-task-messages{
  display:grid;
  gap:8px;
}
body.admin-shell .agents-message{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel-soft);
}
body.admin-shell .agents-message p{
  margin:4px 0 0;
  white-space:pre-wrap;
}
body.admin-shell .agents-task-actions{
  display:grid;
  gap:8px;
}
body.admin-shell .agents-task-actions textarea{
  min-height:70px;
  resize:vertical;
}
@media (max-width:900px){
  body.admin-shell .agents-compose,
  body.admin-shell .agents-task-top{
    grid-template-columns:1fr;
  }
  body.admin-shell .agents-task-badges,
  body.admin-shell .agents-task-action-row{
    justify-content:flex-start;
  }
}

/* SellerStrat admin agents chat shell 20260531. */
body.admin-shell .agents-chat-shell{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:14px;
  min-height:620px;
}
body.admin-shell .agents-chat-sidebar,
body.admin-shell .agents-chat-main{
  min-width:0;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel-soft);
}
body.admin-shell .agents-chat-sidebar{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  gap:10px;
  padding:12px;
}
body.admin-shell .agents-sidebar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body.admin-shell .agents-sidebar-head strong{
  font-size:16px;
}
body.admin-shell .agents-sidebar-head span{
  color:var(--muted);
  font-size:12px;
}
body.admin-shell .agents-chat-sidebar .agents-role-tabs{
  max-height:118px;
  overflow:auto;
  padding-bottom:2px;
}
body.admin-shell .agents-chat-sidebar .agents-task-list{
  align-content:start;
  overflow:auto;
  padding-right:2px;
}
body.admin-shell .agents-queue-item{
  display:grid;
  gap:7px;
  width:100%;
  padding:11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
body.admin-shell .agents-queue-item:hover{
  border-color:rgba(39,226,138,.32);
}
body.admin-shell .agents-queue-item.active{
  border-color:rgba(39,226,138,.62);
  box-shadow:0 0 0 3px rgba(39,226,138,.10);
}
body.admin-shell .agents-queue-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
body.admin-shell .agents-queue-top b{
  min-width:0;
  font-size:13px;
  line-height:1.25;
}
body.admin-shell .agents-queue-foot{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}
body.admin-shell .agents-chat-main{
  display:grid;
  min-height:620px;
}
body.admin-shell .agents-chat-empty{
  display:grid;
  place-content:center;
  gap:8px;
  min-height:420px;
  padding:28px;
  text-align:center;
  color:var(--muted);
}
body.admin-shell .agents-chat-empty strong{
  color:var(--text);
  font-size:18px;
}
body.admin-shell .agents-chat-panel{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  min-height:620px;
}
body.admin-shell .agents-chat-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:16px 16px 12px;
  border-bottom:1px solid var(--line);
}
body.admin-shell .agents-chat-header h4{
  margin:4px 0 0;
  font-size:18px;
  line-height:1.25;
}
body.admin-shell #agentChatContext{
  margin:12px 16px 0;
  padding:10px 12px;
  border:1px solid rgba(92,179,255,.22);
  border-radius:14px;
  background:rgba(92,179,255,.08);
  white-space:pre-wrap;
}
body.admin-shell .agents-chat-messages{
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:auto;
  padding:16px;
}
body.admin-shell .agents-chat-messages .agents-message{
  max-width:82%;
}
body.admin-shell .agents-chat-messages .agents-message.owner{
  align-self:flex-end;
  background:rgba(39,226,138,.10);
  border-color:rgba(39,226,138,.22);
}
body.admin-shell .agents-chat-messages .agents-message.codex,
body.admin-shell .agents-chat-messages .agents-message.system{
  align-self:flex-start;
}
body.admin-shell .agents-reply-form{
  display:grid;
  gap:10px;
  padding:14px 16px 16px;
  border-top:1px solid var(--line);
}
body.admin-shell .agents-reply-form textarea{
  width:100%;
  min-height:78px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
  color:var(--text);
  padding:11px 12px;
  font:inherit;
}
body.admin-shell .agents-compose{
  grid-template-columns:minmax(0,1fr) 240px;
}
body.admin-shell .agents-compose-main textarea{
  min-height:96px;
}
@media (max-width:1100px){
  body.admin-shell .agents-chat-shell{
    grid-template-columns:1fr;
  }
  body.admin-shell .agents-chat-sidebar,
  body.admin-shell .agents-chat-main,
  body.admin-shell .agents-chat-panel{
    min-height:auto;
  }
  body.admin-shell .agents-chat-sidebar .agents-task-list{
    max-height:360px;
  }
}

/* SellerStrat classic admin agents premium pass 20260531. */
body.admin-shell .agents-workspace-card{
  gap:14px;
  overflow:hidden;
  border-radius:16px!important;
  background:
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  border:1px solid #dbe4ef!important;
  box-shadow:0 22px 60px rgba(15,23,42,.10)!important;
}
body.admin-shell .agents-head{
  padding:2px 2px 0;
}
body.admin-shell .agents-head h3{
  font-size:26px;
  letter-spacing:0!important;
}
body.admin-shell .agents-head .helper{
  max-width:760px;
  color:#475569!important;
  font-size:13px;
  line-height:1.45;
}
body.admin-shell .agents-actions select{
  min-width:154px;
  height:38px;
  border-radius:10px!important;
  background:#ffffff!important;
  border:1px solid #cbd5e1!important;
  color:#020617!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
body.admin-shell .agents-command-band{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:stretch;
  padding:12px;
  border:1px solid #dbe4ef;
  border-radius:14px;
  background:
    linear-gradient(135deg,rgba(22,163,74,.09),rgba(37,99,235,.06) 54%,rgba(245,158,11,.07));
}
body.admin-shell .agents-command-lead,
body.admin-shell .agents-command-chip{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(148,163,184,.36);
  border-radius:12px;
  background:rgba(255,255,255,.72);
  padding:10px 12px;
}
body.admin-shell .agents-command-mark{
  width:38px;
  min-width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#0f172a;
  color:#f8fafc!important;
  font-size:12px;
  font-weight:950;
  letter-spacing:0!important;
}
body.admin-shell .agents-command-lead strong,
body.admin-shell .agents-command-chip strong{
  display:block;
  color:#020617!important;
  font-size:14px;
  line-height:1.2;
  font-weight:950;
  white-space:nowrap;
}
body.admin-shell .agents-command-lead span:not(.agents-command-mark),
body.admin-shell .agents-command-chip span{
  display:block;
  color:#475569!important;
  font-size:12px;
  line-height:1.25;
  font-weight:800;
  white-space:nowrap;
}
body.admin-shell .agents-command-chip{
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width:138px;
  gap:3px;
}
body.admin-shell .agents-stats.quick-info{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
body.admin-shell .agents-stats.quick-info .quick-card{
  min-height:86px;
  border-radius:12px!important;
  border:1px solid #dbe4ef!important;
  background:#ffffff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.06)!important;
}
body.admin-shell .agents-stats.quick-info .quick-card .k{
  color:#475569!important;
  font-size:12px;
  font-weight:900;
}
body.admin-shell .agents-stats.quick-info .quick-card .v{
  color:#020617!important;
  font-size:26px;
  line-height:1;
  font-weight:950;
}
body.admin-shell .agents-stats.quick-info .quick-card .s{
  color:#059669!important;
  font-size:12px;
  font-weight:850;
}
body.admin-shell .agents-chat-shell{
  grid-template-columns:minmax(320px,390px) minmax(0,1fr);
  gap:12px;
  min-height:690px;
}
body.admin-shell .agents-chat-sidebar,
body.admin-shell .agents-chat-main{
  border-radius:14px!important;
  border:1px solid #dbe4ef!important;
  background:#ffffff!important;
  box-shadow:0 14px 36px rgba(15,23,42,.07)!important;
}
body.admin-shell .agents-chat-sidebar{
  grid-template-rows:auto auto minmax(0,1fr);
  padding:12px;
  background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
}
body.admin-shell .agents-sidebar-head{
  padding:2px 2px 6px;
  border-bottom:1px solid #e2e8f0;
}
body.admin-shell .agents-sidebar-head strong{
  color:#020617!important;
  font-size:17px;
  font-weight:950;
}
body.admin-shell .agents-sidebar-head span{
  color:#64748b!important;
  font-size:11px;
  font-weight:850;
}
body.admin-shell .agents-role-tabs{
  gap:6px;
}
body.admin-shell .agents-role-tab{
  min-height:32px;
  padding:6px 9px;
  border-radius:10px;
  border:1px solid #dbe4ef;
  background:#ffffff;
  color:#0f172a!important;
  font-size:12px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
body.admin-shell .agents-role-tab span{
  color:#0f172a!important;
}
body.admin-shell .agents-role-tab b{
  min-width:20px;
  height:20px;
  background:#ecfdf5;
  color:#047857!important;
}
body.admin-shell .agents-role-tab.active{
  border-color:#16a34a;
  background:#f0fdf4;
  box-shadow:0 0 0 3px rgba(22,163,74,.12);
}
body.admin-shell .agents-chat-sidebar .agents-task-list{
  gap:8px;
  padding-right:4px;
}
body.admin-shell .agents-queue-item{
  position:relative;
  gap:8px;
  padding:12px;
  border-radius:12px;
  border:1px solid #dbe4ef;
  background:#ffffff;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
  transition:border-color .14s ease,background .14s ease,box-shadow .14s ease,transform .14s ease;
}
body.admin-shell .agents-queue-item::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:#cbd5e1;
}
body.admin-shell .agents-queue-item:hover{
  border-color:#94a3b8;
  background:#f8fafc;
  transform:translateY(-1px);
}
body.admin-shell .agents-queue-item.active{
  border-color:#16a34a;
  background:#f0fdf4;
  box-shadow:0 0 0 3px rgba(22,163,74,.10),0 12px 28px rgba(15,23,42,.07);
}
body.admin-shell .agents-queue-item.active::before{
  background:#16a34a;
}
body.admin-shell .agents-queue-top b{
  color:#020617!important;
  font-size:13px;
  line-height:1.28;
  font-weight:950;
}
body.admin-shell .agents-task-meta{
  color:#475569!important;
  font-size:11px;
  font-weight:800;
}
body.admin-shell .agents-queue-foot span{
  color:#475569!important;
  font-size:11px;
  font-weight:900;
}
body.admin-shell .agents-progress{
  display:block;
  width:100%;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}
body.admin-shell .agents-progress span{
  display:block;
  height:100%;
  min-width:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#16a34a,#2563eb);
}
body.admin-shell .agents-workspace-card .pill{
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  color:#0f172a!important;
  background:#f8fafc!important;
  border:1px solid #dbe4ef!important;
  font-size:11px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
}
body.admin-shell .agents-workspace-card .pill.ok{
  color:#065f46!important;
  background:#ecfdf5!important;
  border-color:#a7f3d0!important;
}
body.admin-shell .agents-workspace-card .pill.warning{
  color:#92400e!important;
  background:#fffbeb!important;
  border-color:#fde68a!important;
}
body.admin-shell .agents-workspace-card .pill.critical{
  color:#991b1b!important;
  background:#fef2f2!important;
  border-color:#fecaca!important;
}
body.admin-shell .agents-workspace-card .pill.observe{
  color:#1d4ed8!important;
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}
body.admin-shell .agents-workspace-card .pill.muted{
  color:#475569!important;
  background:#f8fafc!important;
  border-color:#cbd5e1!important;
}
body.admin-shell .agents-chat-main{
  min-height:690px;
  overflow:hidden;
}
body.admin-shell .agents-chat-empty[hidden],
body.admin-shell .agents-chat-panel[hidden]{
  display:none!important;
}
body.admin-shell .agents-chat-empty{
  min-height:690px;
  padding:34px;
  background:
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}
body.admin-shell .agents-chat-empty strong{
  color:#020617!important;
  font-size:20px;
  font-weight:950;
}
body.admin-shell .agents-chat-empty span{
  color:#475569!important;
  font-size:13px;
  font-weight:800;
}
body.admin-shell .agents-chat-panel{
  min-height:690px;
}
body.admin-shell .agents-chat-header{
  padding:16px 18px 14px;
  border-bottom:1px solid #e2e8f0;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}
body.admin-shell .agents-chat-header h4{
  color:#020617!important;
  font-size:19px;
  line-height:1.25;
  font-weight:950;
}
body.admin-shell .agents-task-badges{
  align-items:flex-start;
  justify-content:flex-end;
}
body.admin-shell #agentChatContext{
  margin:12px 18px 0;
  border-radius:12px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1e3a8a!important;
  font-size:12px;
  line-height:1.42;
  font-weight:820;
}
body.admin-shell .agents-chat-messages{
  gap:12px;
  padding:18px;
  background:
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}
body.admin-shell .agents-chat-messages .agents-message{
  max-width:min(760px,86%);
  border-radius:14px;
  border:1px solid #dbe4ef;
  background:#ffffff;
  box-shadow:0 10px 26px rgba(15,23,42,.055);
}
body.admin-shell .agents-chat-messages .agents-message span{
  color:#64748b!important;
  font-size:11px;
  font-weight:900;
}
body.admin-shell .agents-chat-messages .agents-message p{
  color:#020617!important;
  font-size:13px;
  line-height:1.45;
}
body.admin-shell .agents-chat-messages .agents-message.owner{
  background:#ecfdf5;
  border-color:#bbf7d0;
}
body.admin-shell .agents-chat-messages .agents-message.codex,
body.admin-shell .agents-chat-messages .agents-message.system{
  background:#ffffff;
}
body.admin-shell .agents-reply-form{
  gap:10px;
  padding:14px 18px 18px;
  border-top:1px solid #e2e8f0;
  background:#ffffff;
}
body.admin-shell .agents-reply-form textarea,
body.admin-shell .agents-compose textarea,
body.admin-shell .agents-compose select,
body.admin-shell .agents-compose input{
  border-radius:12px!important;
  border:1px solid #cbd5e1!important;
  background:#ffffff!important;
  color:#020617!important;
  box-shadow:none!important;
}
body.admin-shell .agents-reply-form textarea:focus,
body.admin-shell .agents-compose textarea:focus,
body.admin-shell .agents-compose select:focus,
body.admin-shell .agents-compose input:focus{
  border-color:#16a34a!important;
  box-shadow:0 0 0 3px rgba(22,163,74,.12)!important;
  outline:none;
}
body.admin-shell .agents-task-action-row{
  align-items:center;
  gap:8px;
}
body.admin-shell .agents-delete-btn{
  background:#fee2e2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
body.admin-shell .agents-delete-btn:hover{
  background:#fecaca!important;
}
body.admin-shell .agents-compose{
  grid-template-columns:minmax(0,1fr) 260px;
  gap:12px;
  padding:14px;
  border-radius:14px;
  border:1px solid #dbe4ef;
  background:#ffffff;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}
body.admin-shell .agents-compose label{
  color:#334155!important;
  font-size:11px;
  letter-spacing:0!important;
  text-transform:none;
}
body.admin-shell .agents-compose-main textarea{
  min-height:108px;
}
body.admin-shell .agents-compose-side{
  gap:9px;
}
body.admin-shell .agents-compose .btn-green{
  min-height:42px;
  border-radius:12px;
  background:#16a34a!important;
  color:#ffffff!important;
  box-shadow:0 10px 24px rgba(22,163,74,.22)!important;
}
@media (max-width:1180px){
  body.admin-shell .agents-command-band,
  body.admin-shell .agents-stats.quick-info{
    grid-template-columns:1fr 1fr;
  }
  body.admin-shell .agents-command-lead{
    grid-column:1 / -1;
  }
  body.admin-shell .agents-chat-shell{
    grid-template-columns:1fr;
  }
  body.admin-shell .agents-chat-sidebar,
  body.admin-shell .agents-chat-main,
  body.admin-shell .agents-chat-panel,
  body.admin-shell .agents-chat-empty{
    min-height:auto;
  }
  body.admin-shell .agents-chat-sidebar .agents-task-list{
    max-height:380px;
  }
}
@media (max-width:760px){
  body.admin-shell .agents-command-band,
  body.admin-shell .agents-stats.quick-info,
  body.admin-shell .agents-compose{
    grid-template-columns:1fr;
  }
  body.admin-shell .agents-command-chip,
  body.admin-shell .agents-command-lead{
    min-width:0;
  }
  body.admin-shell .agents-task-badges,
  body.admin-shell .agents-task-action-row{
    justify-content:flex-start;
  }
  body.admin-shell .agents-chat-header{
    grid-template-columns:1fr;
  }
}

/* SellerStrat agents Codex-style workspace 20260531. */
body.admin-shell #agentsSection .agents-workspace-card{
  display:grid;
  gap:12px;
  border-radius:12px!important;
  border:1px solid #2f3437!important;
  background:#171717!important;
  box-shadow:none!important;
  color:#e8e8e8!important;
}
body.admin-shell #agentsSection .agents-head{
  align-items:start;
  padding:0;
}
body.admin-shell #agentsSection .agents-head h3{
  color:#f4f4f5!important;
  font-size:22px;
  line-height:1.16;
  font-weight:850;
  letter-spacing:0!important;
}
body.admin-shell #agentsSection .agents-head .helper{
  max-width:780px;
  color:#a1a1aa!important;
  font-size:13px;
  line-height:1.45;
  font-weight:650;
}
body.admin-shell #agentsSection .agents-actions select{
  min-width:150px;
  height:38px;
  border-radius:8px!important;
  border:1px solid #3f3f46!important;
  background:#232323!important;
  color:#f4f4f5!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-actions .btn{
  min-height:38px;
  border-radius:8px!important;
}
body.admin-shell #agentsSection .agents-actions .btn.secondary{
  background:#232323!important;
  border-color:#3f3f46!important;
  color:#f4f4f5!important;
}
body.admin-shell #agentsSection .agents-stats.quick-info{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
body.admin-shell #agentsSection .agents-stats .quick-card{
  min-height:70px;
  padding:10px 12px;
  border-radius:8px!important;
  border:1px solid #2f3437!important;
  background:#202020!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-stats .quick-card .k{
  color:#a1a1aa!important;
  font-size:11px;
  line-height:1.2;
  font-weight:750;
}
body.admin-shell #agentsSection .agents-stats .quick-card .v{
  margin-top:4px;
  color:#f8fafc!important;
  font-size:22px;
  line-height:1;
  font-weight:900;
}
body.admin-shell #agentsSection .agents-stats .quick-card .s{
  margin-top:5px;
  color:#34d399!important;
  font-size:11px;
  line-height:1.2;
  font-weight:760;
}
body.admin-shell #agentsSection .agents-chat-shell{
  display:grid;
  grid-template-columns:minmax(250px,300px) minmax(360px,1fr) minmax(230px,280px);
  gap:0;
  min-height:650px;
  overflow:hidden;
  border:1px solid #2f3437;
  border-radius:12px;
  background:#141414;
}
body.admin-shell #agentsSection .agents-chat-sidebar,
body.admin-shell #agentsSection .agents-chat-main,
body.admin-shell #agentsSection .agents-context-rail{
  min-width:0;
  min-height:650px;
  border:0!important;
  border-radius:0!important;
  background:#171717!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-chat-sidebar{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  gap:10px;
  padding:12px;
  border-right:1px solid #2f3437!important;
}
body.admin-shell #agentsSection .agents-sidebar-head{
  padding:0 0 10px;
  border-bottom:1px solid #2f3437;
}
body.admin-shell #agentsSection .agents-sidebar-head strong{
  color:#f4f4f5!important;
  font-size:15px;
  line-height:1.2;
  font-weight:850;
}
body.admin-shell #agentsSection .agents-sidebar-head span{
  color:#71717a!important;
  font-size:11px;
  font-weight:700;
}
body.admin-shell #agentsSection .agents-role-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  max-height:132px;
  overflow:auto;
}
body.admin-shell #agentsSection .agents-role-tab{
  min-height:32px;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #2f3437;
  background:#202020;
  color:#d4d4d8!important;
  box-shadow:none!important;
  font-size:12px;
  font-weight:780;
}
body.admin-shell #agentsSection .agents-role-tab span{
  min-width:0;
  color:#d4d4d8!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.admin-shell #agentsSection .agents-role-tab b{
  min-width:20px;
  height:20px;
  background:#27272a;
  color:#a7f3d0!important;
  font-size:11px;
}
body.admin-shell #agentsSection .agents-role-tab.active{
  border-color:#60a5fa;
  background:#1e293b;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-chat-sidebar .agents-task-list{
  align-content:start;
  gap:8px;
  overflow:auto;
  padding:0 3px 0 0;
}
body.admin-shell #agentsSection .agents-queue-item{
  position:relative;
  display:grid;
  gap:7px;
  width:100%;
  padding:10px;
  border:1px solid transparent;
  border-radius:8px;
  background:#1f1f1f;
  color:#e5e7eb!important;
  text-align:left;
  box-shadow:none!important;
  transform:none!important;
}
body.admin-shell #agentsSection .agents-queue-item::before{
  display:none;
}
body.admin-shell #agentsSection .agents-queue-item:hover{
  border-color:#3f3f46;
  background:#262626;
}
body.admin-shell #agentsSection .agents-queue-item.active{
  border-color:#52525b;
  background:#2b2b2b;
  box-shadow:inset 3px 0 0 #60a5fa!important;
}
body.admin-shell #agentsSection .agents-queue-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:start;
}
body.admin-shell #agentsSection .agents-queue-top b{
  color:#f4f4f5!important;
  font-size:12px;
  line-height:1.32;
  font-weight:820;
}
body.admin-shell #agentsSection .agents-task-meta{
  color:#a1a1aa!important;
  font-size:11px;
  line-height:1.35;
  font-weight:650;
}
body.admin-shell #agentsSection .agents-queue-foot{
  display:flex;
  justify-content:space-between;
  gap:8px;
}
body.admin-shell #agentsSection .agents-queue-foot span{
  color:#a1a1aa!important;
  font-size:11px;
  font-weight:700;
}
body.admin-shell #agentsSection .agents-progress{
  display:block;
  width:100%;
  height:3px;
  overflow:hidden;
  border-radius:999px;
  background:#3f3f46;
}
body.admin-shell #agentsSection .agents-progress span{
  display:block;
  height:100%;
  min-width:3px;
  border-radius:999px;
  background:#60a5fa;
}
body.admin-shell #agentsSection .pill{
  min-height:22px;
  padding:4px 7px;
  border-radius:7px;
  border:1px solid #3f3f46!important;
  background:#27272a!important;
  color:#d4d4d8!important;
  font-size:10px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
body.admin-shell #agentsSection .pill.ok{
  border-color:#047857!important;
  background:#052e22!important;
  color:#bbf7d0!important;
}
body.admin-shell #agentsSection .pill.warning{
  border-color:#a16207!important;
  background:#422006!important;
  color:#fde68a!important;
}
body.admin-shell #agentsSection .pill.critical{
  border-color:#b91c1c!important;
  background:#450a0a!important;
  color:#fecaca!important;
}
body.admin-shell #agentsSection .pill.observe{
  border-color:#2563eb!important;
  background:#172554!important;
  color:#bfdbfe!important;
}
body.admin-shell #agentsSection .agents-chat-main{
  display:grid;
  border-right:1px solid #2f3437!important;
}
body.admin-shell #agentsSection .agents-chat-empty[hidden],
body.admin-shell #agentsSection .agents-chat-panel[hidden]{
  display:none!important;
}
body.admin-shell #agentsSection .agents-chat-empty{
  display:grid;
  place-content:center;
  gap:8px;
  min-height:650px;
  padding:24px;
  text-align:center;
  background:#171717!important;
}
body.admin-shell #agentsSection .agents-chat-empty strong{
  color:#f4f4f5!important;
  font-size:18px;
  font-weight:850;
}
body.admin-shell #agentsSection .agents-chat-empty span{
  color:#a1a1aa!important;
  font-size:13px;
  font-weight:650;
}
body.admin-shell #agentsSection .agents-chat-panel{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  min-height:650px;
  background:#171717!important;
}
body.admin-shell #agentsSection .agents-chat-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:16px 18px;
  border-bottom:1px solid #2f3437;
  background:#171717!important;
}
body.admin-shell #agentsSection .agents-chat-header h4{
  margin:5px 0 0;
  color:#f4f4f5!important;
  font-size:17px;
  line-height:1.28;
  font-weight:850;
}
body.admin-shell #agentsSection .agents-task-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
body.admin-shell #agentsSection #agentChatContext{
  margin:12px 18px 0;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #3f3f46;
  background:#202020;
  color:#d4d4d8!important;
  font-size:12px;
  line-height:1.45;
  font-weight:650;
  white-space:pre-wrap;
}
body.admin-shell #agentsSection .agents-chat-messages{
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
  padding:18px;
  background:#171717!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message{
  max-width:min(760px,88%);
  padding:11px 12px;
  border-radius:10px;
  border:1px solid #2f3437;
  background:#202020!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message.owner{
  align-self:flex-end;
  border-color:#2563eb;
  background:#172554!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message.codex,
body.admin-shell #agentsSection .agents-chat-messages .agents-message.system{
  align-self:flex-start;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message span{
  color:#a1a1aa!important;
  font-size:11px;
  font-weight:750;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message p{
  margin:5px 0 0;
  color:#f4f4f5!important;
  font-size:13px;
  line-height:1.45;
  font-weight:620;
  white-space:pre-wrap;
}
body.admin-shell #agentsSection .agents-reply-form{
  display:grid;
  gap:10px;
  padding:14px 18px 16px;
  border-top:1px solid #2f3437;
  background:#171717!important;
}
body.admin-shell #agentsSection .agents-reply-form textarea{
  width:100%;
  min-height:76px;
  resize:vertical;
  border:1px solid #3f3f46!important;
  border-radius:10px!important;
  background:#202020!important;
  color:#f4f4f5!important;
  padding:11px 12px;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-task-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
body.admin-shell #agentsSection .agents-task-action-row .btn.secondary{
  background:#232323!important;
  border-color:#3f3f46!important;
  color:#f4f4f5!important;
}
body.admin-shell #agentsSection .agents-delete-btn{
  background:#3f1d1d!important;
  border-color:#7f1d1d!important;
  color:#fecaca!important;
}
body.admin-shell #agentsSection .agents-context-rail{
  display:grid;
  align-content:start;
  gap:12px;
  padding:14px;
  background:#202020!important;
}
body.admin-shell #agentsSection .agents-rail-box{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid #2f3437;
  border-radius:10px;
  background:#262626;
}
body.admin-shell #agentsSection .agents-rail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
body.admin-shell #agentsSection .agents-rail-head strong{
  color:#f4f4f5!important;
  font-size:14px;
  line-height:1.2;
  font-weight:850;
}
body.admin-shell #agentsSection .agents-rail-head span{
  color:#a1a1aa!important;
  font-size:11px;
  line-height:1.25;
  font-weight:700;
  text-align:right;
}
body.admin-shell #agentsSection .agents-progress-list{
  display:grid;
  gap:9px;
}
body.admin-shell #agentsSection .agents-progress-step{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  gap:9px;
  align-items:start;
}
body.admin-shell #agentsSection .agents-progress-step span{
  width:13px;
  height:13px;
  margin-top:2px;
  border-radius:999px;
  border:1px solid #71717a;
  background:#262626;
}
body.admin-shell #agentsSection .agents-progress-step.done span{
  border-color:#34d399;
  background:#34d399;
}
body.admin-shell #agentsSection .agents-progress-step.active span{
  border-color:#60a5fa;
  background:#172554;
  box-shadow:0 0 0 3px rgba(96,165,250,.18);
}
body.admin-shell #agentsSection .agents-progress-step p{
  margin:0;
  color:#d4d4d8!important;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}
body.admin-shell #agentsSection .agents-env-list{
  display:grid;
  gap:8px;
}
body.admin-shell #agentsSection .agents-env-row{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding-bottom:8px;
  border-bottom:1px solid #333333;
}
body.admin-shell #agentsSection .agents-env-row:last-child{
  padding-bottom:0;
  border-bottom:0;
}
body.admin-shell #agentsSection .agents-env-row span{
  color:#a1a1aa!important;
  font-size:11px;
  line-height:1.25;
  font-weight:700;
}
body.admin-shell #agentsSection .agents-env-row strong{
  min-width:0;
  color:#f4f4f5!important;
  font-size:12px;
  line-height:1.28;
  font-weight:800;
  word-break:break-word;
}
body.admin-shell #agentsSection .agents-compose{
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:12px;
  padding:12px;
  border:1px solid #2f3437;
  border-radius:12px;
  background:#202020;
  box-shadow:none;
}
body.admin-shell #agentsSection .agents-compose label{
  color:#a1a1aa!important;
  font-size:11px;
  font-weight:760;
  letter-spacing:0!important;
  text-transform:none;
}
body.admin-shell #agentsSection .agents-compose textarea,
body.admin-shell #agentsSection .agents-compose select,
body.admin-shell #agentsSection .agents-compose input{
  width:100%;
  border:1px solid #3f3f46!important;
  border-radius:9px!important;
  background:#171717!important;
  color:#f4f4f5!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-compose textarea::placeholder,
body.admin-shell #agentsSection .agents-compose input::placeholder,
body.admin-shell #agentsSection .agents-reply-form textarea::placeholder{
  color:#a1a1aa!important;
  opacity:1!important;
}
body.admin-shell #agentsSection .agents-compose-main textarea{
  min-height:96px;
}
body.admin-shell #agentsSection .agents-compose .btn-green{
  min-height:40px;
  border-radius:9px!important;
  background:#2563eb!important;
  color:#ffffff!important;
  box-shadow:none!important;
}
@media (max-width:1320px){
  body.admin-shell #agentsSection .agents-chat-shell{
    grid-template-columns:minmax(240px,300px) minmax(360px,1fr);
  }
  body.admin-shell #agentsSection .agents-context-rail{
    grid-column:1 / -1;
    grid-template-columns:1fr 1fr;
    min-height:auto;
    border-top:1px solid #2f3437!important;
  }
}
@media (max-width:900px){
  body.admin-shell #agentsSection .agents-stats.quick-info,
  body.admin-shell #agentsSection .agents-chat-shell,
  body.admin-shell #agentsSection .agents-context-rail,
  body.admin-shell #agentsSection .agents-compose{
    grid-template-columns:1fr;
  }
  body.admin-shell #agentsSection .agents-chat-sidebar,
  body.admin-shell #agentsSection .agents-chat-main,
  body.admin-shell #agentsSection .agents-context-rail,
  body.admin-shell #agentsSection .agents-chat-panel,
  body.admin-shell #agentsSection .agents-chat-empty{
    min-height:auto;
  }
  body.admin-shell #agentsSection .agents-chat-sidebar{
    border-right:0!important;
    border-bottom:1px solid #2f3437!important;
  }
  body.admin-shell #agentsSection .agents-chat-main{
    border-right:0!important;
    border-bottom:1px solid #2f3437!important;
  }
  body.admin-shell #agentsSection .agents-task-action-row,
  body.admin-shell #agentsSection .agents-task-badges{
    justify-content:flex-start;
  }
}

/* SellerStrat admin agents local polish 20260605: visual-only, no API/prod actions. */
body.admin-shell #agentsSection .agents-workspace-card{
  display:grid!important;
  gap:14px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#020617!important;
  box-shadow:0 18px 42px rgba(15,23,42,.07)!important;
}
body.admin-shell #agentsSection .agents-head h3{
  color:#020617!important;
  font-size:28px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
body.admin-shell #agentsSection .agents-head .helper{
  max-width:820px!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.42!important;
  font-weight:760!important;
}
body.admin-shell #agentsSection .agents-actions select,
body.admin-shell #agentsSection .agents-actions .btn.secondary{
  border-color:#cbd5e1!important;
  background:#ffffff!important;
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-command-band{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(130px,.22fr) minmax(130px,.22fr)!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:linear-gradient(135deg,#f0fdf4 0%,#eff6ff 54%,#ffffff 100%)!important;
}
body.admin-shell #agentsSection .agents-command-lead,
body.admin-shell #agentsSection .agents-command-chip{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid rgba(148,163,184,.38)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.84)!important;
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-command-chip{
  display:grid!important;
  align-content:center!important;
  gap:5px!important;
}
body.admin-shell #agentsSection .agents-command-mark{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  background:#2563eb!important;
  color:#ffffff!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-command-lead strong,
body.admin-shell #agentsSection .agents-command-chip strong{
  color:#020617!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-command-lead span:not(.agents-command-mark),
body.admin-shell #agentsSection .agents-command-chip span{
  color:#475569!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell #agentsSection .agents-stats.quick-info{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
body.admin-shell #agentsSection .agents-stats .quick-card{
  min-height:78px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-stats .quick-card .k,
body.admin-shell #agentsSection .agents-stats .quick-card .s{
  color:#475569!important;
}
body.admin-shell #agentsSection .agents-stats .quick-card .v{
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-chat-shell{
  grid-template-columns:minmax(280px,360px) minmax(420px,1fr) minmax(230px,300px)!important;
  gap:12px!important;
  min-height:620px!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
body.admin-shell #agentsSection .agents-chat-sidebar,
body.admin-shell #agentsSection .agents-chat-main,
body.admin-shell #agentsSection .agents-context-rail{
  min-width:0!important;
  min-height:620px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#020617!important;
  box-shadow:0 12px 28px rgba(15,23,42,.055)!important;
}
body.admin-shell #agentsSection .agents-chat-sidebar{
  border-right:1px solid #dbe5f2!important;
}
body.admin-shell #agentsSection .agents-chat-sidebar .agents-task-list{
  min-height:156px!important;
}
body.admin-shell #agentsSection .agents-sidebar-head,
body.admin-shell #agentsSection .agents-chat-header,
body.admin-shell #agentsSection .agents-reply-form{
  border-color:#e2e8f0!important;
  background:#f8fafc!important;
}
body.admin-shell #agentsSection .agents-sidebar-head strong,
body.admin-shell #agentsSection .agents-chat-header h4,
body.admin-shell #agentsSection .agents-rail-head strong{
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-sidebar-head span,
body.admin-shell #agentsSection .agents-task-meta,
body.admin-shell #agentsSection .agents-queue-foot span,
body.admin-shell #agentsSection .agents-rail-head span{
  color:#64748b!important;
}
body.admin-shell #agentsSection .agents-role-tab,
body.admin-shell #agentsSection .agents-queue-item,
body.admin-shell #agentsSection .agents-rail-box{
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#020617!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-role-tab.active,
body.admin-shell #agentsSection .agents-queue-item.active{
  border-color:#2563eb!important;
  background:#eff6ff!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;
}
body.admin-shell #agentsSection .agents-queue-item.active{
  box-shadow:inset 4px 0 0 #2563eb,0 0 0 3px rgba(37,99,235,.10)!important;
}
body.admin-shell #agentsSection .agents-queue-top b,
body.admin-shell #agentsSection .agents-env-row strong,
body.admin-shell #agentsSection .agents-progress-step p{
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-chat-empty,
body.admin-shell #agentsSection .agents-chat-panel,
body.admin-shell #agentsSection .agents-chat-messages{
  min-height:620px!important;
  background:#ffffff!important;
}
body.admin-shell #agentsSection .agents-chat-empty{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  text-align:center!important;
}
body.admin-shell #agentsSection .agents-chat-empty > strong{
  order:1;
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-chat-empty > span{
  order:2;
  max-width:560px!important;
  color:#64748b!important;
}
body.admin-shell #agentsSection .agents-empty-flow{
  order:3;
  width:min(100%,760px)!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
}
body.admin-shell #agentsSection .agents-empty-flow div,
body.admin-shell #agentsSection .agents-empty-queue{
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#020617!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-empty-flow div{
  min-height:132px!important;
  padding:14px!important;
  display:grid!important;
  align-content:start!important;
  gap:8px!important;
  text-align:left!important;
}
body.admin-shell #agentsSection .agents-empty-flow b{
  width:28px!important;
  height:28px!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#2563eb!important;
  color:#ffffff!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-empty-flow strong{
  color:#020617!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-empty-flow span{
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell #agentsSection .agents-empty-queue{
  display:grid!important;
  gap:8px!important;
  padding:16px!important;
  min-height:156px!important;
  align-content:start!important;
}
body.admin-shell #agentsSection .agents-empty-queue strong{
  color:#020617!important;
  font-size:14px!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-empty-queue span{
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell #agentsSection .agents-empty-queue b{
  width:fit-content!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  background:#fff7ed!important;
  color:#9a3412!important;
  font-size:11px!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message{
  border:1px solid #dbe5f2!important;
  background:#ffffff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message.owner{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message span{
  color:#64748b!important;
}
body.admin-shell #agentsSection .agents-chat-messages .agents-message p{
  color:#020617!important;
}
body.admin-shell #agentsSection #agentChatContext{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
  color:#1e3a8a!important;
}
body.admin-shell #agentsSection .agents-reply-form textarea,
body.admin-shell #agentsSection .agents-compose textarea,
body.admin-shell #agentsSection .agents-compose select,
body.admin-shell #agentsSection .agents-compose input{
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#020617!important;
}
body.admin-shell #agentsSection .agents-compose{
  grid-template-columns:minmax(0,1fr) 270px!important;
  gap:12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
body.admin-shell #agentsSection .agents-compose label{
  color:#334155!important;
}
body.admin-shell #agentsSection .agents-compose-hints{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin-top:8px!important;
}
body.admin-shell #agentsSection .agents-compose-hints span{
  padding:5px 8px!important;
  border:1px solid #bfdbfe!important;
  border-radius:8px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-compose-guard{
  display:grid!important;
  gap:4px!important;
  padding:10px!important;
  border:1px solid #fed7aa!important;
  border-radius:8px!important;
  background:#fff7ed!important;
  color:#9a3412!important;
}
body.admin-shell #agentsSection .agents-compose-guard strong,
body.admin-shell #agentsSection .agents-compose-guard span{
  color:#9a3412!important;
}
body.admin-shell #agentsSection .agents-compose-guard strong{
  font-size:12px!important;
  font-weight:900!important;
}
body.admin-shell #agentsSection .agents-compose-guard span{
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
body.admin-shell #agentsSection .agents-compose .btn-green{
  background:#2563eb!important;
  color:#ffffff!important;
  border-radius:8px!important;
}
body.admin-shell #agentsSection .agents-env-row{
  grid-template-columns:96px minmax(0,1fr)!important;
  border-bottom-color:#e2e8f0!important;
}
@media (max-width:1320px){
  body.admin-shell #agentsSection .agents-chat-shell{
    grid-template-columns:1fr!important;
  }
  body.admin-shell #agentsSection .agents-context-rail{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    min-height:auto!important;
  }
}
@media (max-width:760px){
  body.admin-shell #agentsSection .agents-command-band,
  body.admin-shell #agentsSection .agents-stats.quick-info,
  body.admin-shell #agentsSection .agents-empty-flow,
  body.admin-shell #agentsSection .agents-compose,
  body.admin-shell #agentsSection .agents-context-rail{
    grid-template-columns:1fr!important;
  }
  body.admin-shell #agentsSection .agents-chat-shell{
    min-height:auto!important;
  }
  body.admin-shell #agentsSection .agents-chat-sidebar,
  body.admin-shell #agentsSection .agents-chat-main,
  body.admin-shell #agentsSection .agents-context-rail,
  body.admin-shell #agentsSection .agents-chat-panel,
  body.admin-shell #agentsSection .agents-chat-empty{
    min-height:auto!important;
  }
  body.admin-shell #agentsSection .agents-chat-sidebar .agents-task-list{
    min-height:156px!important;
  }
}
