/* Studio: presentation and local display preferences only. */
html[data-studio-upgrade] {
  --studio-bg: #0b1019;
  --studio-surface: #111925;
  --studio-raised: #182231;
  --studio-hover: #1d293a;
  --studio-line: #263347;
  --studio-text: #eef3fa;
  --studio-muted: #a0aec2;
  --studio-dim: #788ba5;
  --studio-accent: #818cf8;
  --studio-accent-deep: #4f46e5;
  --studio-accent-rgb: 129, 140, 248;
  --studio-green: #4adeb0;
  --studio-amber: #f6bd61;
  --studio-red: #fb8395;
  --studio-blue: #67d7ee;
  --studio-font: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color-scheme: dark;
}
html[data-studio-upgrade][data-studio-palette="violet"] { --studio-accent:#b59bff; --studio-accent-deep:#7c3aed; --studio-accent-rgb:181,155,255; }
html[data-studio-upgrade][data-studio-palette="cyan"] { --studio-accent:#67d7ee; --studio-accent-deep:#087e99; --studio-accent-rgb:103,215,238; }
html[data-studio-upgrade][data-studio-palette="emerald"] { --studio-accent:#4adeb0; --studio-accent-deep:#08795f; --studio-accent-rgb:74,222,176; }
html[data-studio-upgrade][data-studio-palette="amber"] { --studio-accent:#f6bd61; --studio-accent-deep:#94600e; --studio-accent-rgb:246,189,97; }
html[data-studio-upgrade][data-studio-palette="rose"] { --studio-accent:#fb8395; --studio-accent-deep:#be335b; --studio-accent-rgb:251,131,149; }
html[data-studio-upgrade][data-client-color-mode="light"] {
  --studio-bg:#f1f4f9; --studio-surface:#ffffff; --studio-raised:#f5f7fc; --studio-hover:#edf1f8;
  --studio-line:#dce3ee; --studio-text:#17243a; --studio-muted:#536580; --studio-dim:#617590;
  --studio-green:#13835f; --studio-amber:#99600c; --studio-red:#c03658; --studio-blue:#087c96;
  color-scheme:light;
}
html[data-studio-upgrade][data-client-color-mode="light"][data-studio-palette="indigo"] { --studio-accent:#5754c9; --studio-accent-rgb:87,84,201; }
html[data-studio-upgrade][data-client-color-mode="light"][data-studio-palette="violet"] { --studio-accent:#7c43cf; --studio-accent-rgb:124,67,207; }
html[data-studio-upgrade][data-client-color-mode="light"][data-studio-palette="cyan"] { --studio-accent:#087c96; --studio-accent-rgb:8,124,150; }
html[data-studio-upgrade][data-client-color-mode="light"][data-studio-palette="emerald"] { --studio-accent:#13835f; --studio-accent-rgb:19,131,95; }
html[data-studio-upgrade][data-client-color-mode="light"][data-studio-palette="amber"] { --studio-accent:#99600c; --studio-accent-rgb:153,96,12; }
html[data-studio-upgrade][data-client-color-mode="light"][data-studio-palette="rose"] { --studio-accent:#c03658; --studio-accent-rgb:192,54,88; }

/* Map existing modules to a single palette without changing their behavior. */
html[data-studio-upgrade], html[data-studio-upgrade] body.legacy-clean.cs16-v111-theme {
  --cs16-theme-bg:var(--studio-bg) !important; --cs16-theme-bg-soft:var(--studio-surface) !important;
  --cs16-theme-panel:var(--studio-surface) !important; --cs16-theme-panel-2:var(--studio-raised) !important;
  --cs16-theme-panel-3:var(--studio-hover) !important; --cs16-theme-panel-glass:var(--studio-surface) !important;
  --cs16-theme-line:var(--studio-line) !important; --cs16-theme-line-soft:var(--studio-line) !important;
  --cs16-theme-text:var(--studio-text) !important; --cs16-theme-muted:var(--studio-muted) !important;
  --cs16-theme-dim:var(--studio-dim) !important; --cs16-theme-radius:14px !important;
  --cs16-theme-radius-sm:9px !important; --cs16-theme-shadow:0 10px 30px #00000012 !important;
  --cs16-accent:var(--studio-accent) !important; --cs16-accent-deep:var(--studio-accent-deep) !important;
  --cs16-accent-alt:var(--studio-accent) !important; --cs16-accent-rgb:var(--studio-accent-rgb) !important;
  --cs16-accent-contrast:#101624 !important; --cs16-positive:var(--studio-green) !important;
  --cs16-warning:var(--studio-amber) !important; --cs16-danger:var(--studio-red) !important;
  --cs16-info:var(--studio-blue) !important; --cs16-secondary:#b59bff !important;
  --tpl-accent:var(--studio-accent) !important; --tpl-panel:var(--studio-surface) !important;
  --tpl-panel-2:var(--studio-raised) !important; --tpl-panel-3:var(--studio-hover) !important;
  --tpl-line:var(--studio-line) !important; --tpl-text:var(--studio-text) !important;
  --tpl-muted:var(--studio-muted) !important; --tpl-green:var(--studio-green) !important;
  --tpl-yellow:var(--studio-amber) !important; --tpl-red:var(--studio-red) !important;
  --zpc-sidebar:254px !important;
}
html[data-studio-upgrade][data-client-color-mode="light"],
html[data-studio-upgrade][data-client-color-mode="light"] body.legacy-clean.cs16-v111-theme {
  --cs16-accent-contrast:#fff !important;
}
html[data-studio-upgrade] body.legacy-clean.cs16-v111-theme {
  background:var(--studio-bg) !important; color:var(--studio-text) !important;
  font-family:var(--studio-font) !important; font-size:14px !important; line-height:1.5;
}
html[data-studio-upgrade] body :is(h1,h2,h3,h4,h5,h6,button,input,select,label,.subtitle,.cs16-nav-label) {
  font-family:var(--studio-font) !important;
}
html[data-studio-upgrade] body :is(h1,h2,h3,h4,h5,h6) { text-transform:none !important; letter-spacing:-.035em !important; font-weight:650 !important; }
html[data-studio-upgrade] body :is(button,input,select,textarea):focus-visible {
  outline:2px solid var(--studio-accent) !important; outline-offset:3px !important;
}
html[data-studio-upgrade] body :is(.main,.panel,.page) { background:var(--studio-bg) !important; }
html[data-studio-upgrade] body .sidebar {
  width:254px !important; padding:0 16px 16px !important;
  background:var(--studio-surface) !important; border-right:1px solid var(--studio-line) !important;
  box-shadow:none !important; scrollbar-width:thin; scrollbar-color:var(--studio-line) transparent;
}
html[data-studio-upgrade] body .sidebar::before { display:none !important; }
html[data-studio-upgrade] body .brand {
  min-height:94px !important; margin:0 0 16px !important; padding:19px 10px !important;
  border-bottom:1px solid var(--studio-line) !important; justify-content:center !important;
}
html[data-studio-upgrade] body .cs16-sidebar-logo { width:180px !important; max-height:60px !important; object-fit:contain !important; }
html[data-studio-upgrade] body .brand::after { display:none !important; }
html[data-studio-upgrade] body .sidebar nav { display:flex; flex-direction:column; gap:3px !important; padding:0 !important; }
html[data-studio-upgrade] body .nav-section-label {
  display:block !important; margin:16px 11px 7px !important;
  color:var(--studio-dim) !important; font:600 10px/1.5 var(--studio-font) !important;
  text-transform:uppercase !important; letter-spacing:1.3px !important;
}
html[data-studio-upgrade] body .nav-item {
  min-height:40px !important; height:40px !important; padding:7px 11px !important;
  gap:11px !important; justify-content:flex-start !important; border:1px solid transparent !important;
  border-radius:8px !important; background:transparent !important; color:var(--studio-muted) !important;
  font:500 13px/1.4 var(--studio-font) !important; text-transform:none !important; letter-spacing:0 !important;
  box-shadow:none !important;
}
html[data-studio-upgrade] body .cs16-nav-label { display:block !important; font:inherit !important; }
html[data-studio-upgrade] body .hidden,
html[data-studio-upgrade] body [hidden],
html[data-studio-upgrade] body.role-client .admin-only,
html[data-studio-upgrade] body.role-management .client-only { display:none !important; }
html[data-studio-upgrade] body .nav-item:hover { background:var(--studio-raised) !important; color:var(--studio-text) !important; }
html[data-studio-upgrade] body .nav-item.active {
  background:rgba(var(--studio-accent-rgb),.12) !important;
  border-color:rgba(var(--studio-accent-rgb),.22) !important; color:var(--studio-text) !important;
}
html[data-studio-upgrade] body .nav-item.active::before { display:none !important; }
html[data-studio-upgrade] body .cs16-nav-icon {
  width:24px !important; min-width:24px !important; height:24px !important; border:0 !important;
  border-radius:0 !important; background:transparent !important; color:inherit !important; box-shadow:none !important;
}
html[data-studio-upgrade] body .cs16-nav-icon svg { width:19px !important; height:19px !important; }
html[data-studio-upgrade] body .nav-item.active .cs16-nav-icon { color:var(--studio-accent) !important; }
html[data-studio-upgrade] body.legacy-clean[data-client-color-mode="light"] .nav-item:not(.active) { border-color:transparent !important; }
html[data-studio-upgrade] body .logout {
  min-height:39px !important; padding:9px 12px !important; margin-top:14px !important;
  border:1px solid var(--studio-line) !important; border-radius:8px !important;
  background:transparent !important; color:var(--studio-muted) !important;
  font:500 12px/1.4 var(--studio-font) !important; text-transform:none !important; letter-spacing:0 !important;
}
html[data-studio-upgrade] body .main { width:calc(100% - 254px) !important; margin-left:254px !important; }
html[data-studio-upgrade] body .topbar {
  min-height:78px !important; padding:16px 32px !important; gap:14px !important;
  background:var(--studio-surface) !important; border-bottom:1px solid var(--studio-line) !important; box-shadow:none !important;
}
html[data-studio-upgrade] body .topbar::before { display:none !important; }
html[data-studio-upgrade] body .topbar h2 { font-size:17px !important; line-height:1.4 !important; }
html[data-studio-upgrade] body .topbar .subtitle { font-size:11px !important; color:var(--studio-muted) !important; letter-spacing:.1px !important; }
html[data-studio-upgrade] body .account strong { font:600 12px/1.5 var(--studio-font) !important; }
html[data-studio-upgrade] body .account span { color:var(--studio-dim) !important; font:500 10px/1.5 var(--studio-font) !important; }
html[data-studio-upgrade] body :is(.billing-wallet-pill,.avatar,.client-color-mode) { border-radius:9px !important; border-color:var(--studio-line) !important; background:var(--studio-raised) !important; }
html[data-studio-upgrade] body :is(.billing-wallet-open,.billing-wallet-add) { color:var(--studio-text) !important; }
html[data-studio-upgrade] body .billing-wallet-symbol { color:var(--studio-green) !important; }
html[data-studio-upgrade] body .billing-wallet-balance { font:600 12px/1.4 var(--studio-font) !important; }
html[data-studio-upgrade] body .billing-wallet-add { border-left:1px solid var(--studio-line) !important; }
html[data-studio-upgrade] body .main > .page { padding:30px 32px 42px !important; }
html[data-studio-upgrade] body .page :is(.v5-card,.v8-card,.v9-card,.v10-card,.api10-card,.v5-module-panel,.command-server-shell,.cs16-fleet-shell) {
  border-color:var(--studio-line) !important; border-radius:14px !important; background:var(--studio-surface) !important; box-shadow:none !important;
}
html[data-studio-upgrade] body :is(.command-tab,.v5-detail-tab,.server-tab-button,.cs16-server-nav-button,.v5-button,.v8-button,.v9-button,.v10-button,.cs16-fleet-button) {
  font-size:12px !important; text-transform:none !important; letter-spacing:0 !important;
}
html[data-studio-upgrade] body :is(.command-info-card,.command-chart-card,.command-live-card) { border-radius:12px !important; }
html[data-studio-upgrade] body :is(.command-info-list dt,.command-live-grid small) { color:var(--studio-muted) !important; font-size:11px !important; }
html[data-studio-upgrade] body .command-server-heading h2 { font-size:25px !important; }
html[data-studio-upgrade] body .command-chart-title { font-family:var(--studio-font) !important; }

/* Fleet overview. Counts are read from the existing live roster. */
html[data-studio-upgrade] .studio-overview { margin-bottom:24px; }
html[data-studio-upgrade] .studio-overview-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; }
html[data-studio-upgrade] .studio-eyebrow { display:block; color:var(--studio-accent); font:650 10px/1.5 var(--studio-font); text-transform:uppercase; letter-spacing:1.7px; margin-bottom:7px; }
html[data-studio-upgrade] body .studio-overview-head h1 { margin:0; font-size:30px !important; line-height:1.25 !important; color:var(--studio-text); }
html[data-studio-upgrade] .studio-overview-head p { margin:7px 0 0; color:var(--studio-muted); font-size:13px; }
html[data-studio-upgrade] .studio-view-note { color:var(--studio-dim); font-size:12px; padding-bottom:3px; }
html[data-studio-upgrade] .studio-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
html[data-studio-upgrade] body .studio-metric {
  position:relative; display:grid; grid-template-columns:1fr 42px; gap:5px; width:100%; min-width:0;
  padding:21px 22px !important; margin:0; text-align:left; border:1px solid var(--studio-line) !important;
  border-radius:12px !important; background:var(--studio-surface) !important; color:var(--studio-text) !important;
  box-shadow:none !important; overflow:hidden; --metric-color:var(--studio-accent);
}
html[data-studio-upgrade] .studio-metric::after { content:""; position:absolute; left:0; top:20px; bottom:20px; width:3px; background:var(--metric-color); border-radius:0 3px 3px 0; }
html[data-studio-upgrade] .studio-metric[data-metric="running"] { --metric-color:var(--studio-green); }
html[data-studio-upgrade] .studio-metric[data-metric="inactive"] { --metric-color:var(--studio-amber); }
html[data-studio-upgrade] .studio-metric[data-metric="slots"] { --metric-color:var(--studio-blue); }
html[data-studio-upgrade] .studio-metric-label { color:var(--studio-muted); font-size:12px; font-weight:500; grid-column:1; }
html[data-studio-upgrade] .studio-metric-value { font:650 31px/1.2 var(--studio-font); letter-spacing:-1px; grid-column:1; font-variant-numeric:tabular-nums; }
html[data-studio-upgrade] .studio-metric-hint { color:var(--studio-dim); font-size:11px; grid-column:1; }
html[data-studio-upgrade] .studio-metric-icon { display:grid; place-items:center; grid-column:2; grid-row:1/4; align-self:center; height:42px; border-radius:11px; color:var(--metric-color); background:color-mix(in srgb,var(--metric-color) 10%,transparent); }
html[data-studio-upgrade] .studio-metric-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
html[data-studio-upgrade] body button.studio-metric:hover { border-color:var(--metric-color) !important; }
html[data-studio-upgrade] #dashboardPage[data-dashboard-view="workspace"] .studio-overview { display:none !important; }

html[data-studio-upgrade] body .dashboard-server-roster { border:1px solid var(--studio-line) !important; border-radius:15px !important; background:var(--studio-surface) !important; box-shadow:none !important; }
html[data-studio-upgrade] body .dashboard-server-roster-head { padding:23px 24px !important; border-color:var(--studio-line) !important; }
html[data-studio-upgrade] body .dashboard-server-roster-kicker { color:var(--studio-accent) !important; font:600 10px/1.5 var(--studio-font) !important; letter-spacing:1.2px !important; }
html[data-studio-upgrade] body .dashboard-server-roster-head h2 { font-size:21px !important; line-height:1.35 !important; }
html[data-studio-upgrade] body .dashboard-server-roster-head p { font-size:12px !important; color:var(--studio-muted) !important; }
html[data-studio-upgrade] body :is(.dashboard-roster-refresh-indicator,.dashboard-server-count) { font:500 11px/1.4 var(--studio-font) !important; border-radius:7px !important; min-height:32px !important; letter-spacing:0 !important; }
html[data-studio-upgrade] body .dashboard-roster-refresh-indicator strong { font-size:11px !important; }
html[data-studio-upgrade] body .dashboard-server-count strong { font:600 13px/1.4 var(--studio-font) !important; }
html[data-studio-upgrade] .studio-toolbar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:18px 24px; border-bottom:1px solid var(--studio-line); }
html[data-studio-upgrade] .studio-search { display:flex; align-items:center; gap:9px; min-width:210px; flex:1; max-width:390px; background:var(--studio-bg); border:1px solid var(--studio-line); border-radius:8px; padding:0 12px; margin:0 !important; }
html[data-studio-upgrade] .studio-search svg { width:17px; height:17px; fill:none; stroke:var(--studio-dim); stroke-width:1.7; flex-shrink:0; }
html[data-studio-upgrade] body #studioServerSearch { width:100%; min-height:38px !important; border:0 !important; background:transparent !important; padding:8px 0 !important; font-size:12px !important; box-shadow:none !important; }
html[data-studio-upgrade] .studio-filters,.studio-layout-switch { display:flex; gap:3px; padding:3px; border:1px solid var(--studio-line); border-radius:8px; background:var(--studio-bg); }
html[data-studio-upgrade] body :is(.studio-filters,.studio-layout-switch) button { min-height:30px; border:0; border-radius:5px; padding:5px 12px; font-size:11px; font-weight:500; color:var(--studio-muted); background:transparent; white-space:nowrap; }
html[data-studio-upgrade] body :is(.studio-filters,.studio-layout-switch) button[aria-pressed="true"] { background:var(--studio-raised); color:var(--studio-text); }
html[data-studio-upgrade] body .studio-filters button[aria-pressed="true"] { color:var(--studio-accent); }
html[data-studio-upgrade] .studio-results { margin-left:auto; color:var(--studio-dim); font-size:11px; white-space:nowrap; }
html[data-studio-upgrade] body .studio-layout-switch button { display:grid; place-items:center; width:32px; padding:5px; }
html[data-studio-upgrade] .studio-layout-switch svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
html[data-studio-upgrade] body .dashboard-server-list { gap:14px !important; padding:22px !important; }
html[data-studio-upgrade] body .dashboard-server-row {
  --server-color:#8e9bff; border:1px solid var(--studio-line) !important; border-radius:11px !important;
  background:var(--studio-raised) !important; color:var(--studio-text) !important;
  box-shadow:none !important; font-family:var(--studio-font) !important;
}
html[data-studio-upgrade] body .dashboard-server-row:nth-child(6n+2) { --server-color:#67d7ee; }
html[data-studio-upgrade] body .dashboard-server-row:nth-child(6n+3) { --server-color:#b59bff; }
html[data-studio-upgrade] body .dashboard-server-row:nth-child(6n+4) { --server-color:#4adeb0; }
html[data-studio-upgrade] body .dashboard-server-row:nth-child(6n+5) { --server-color:#f6bd61; }
html[data-studio-upgrade] body .dashboard-server-row:nth-child(6n+6) { --server-color:#fb8395; }
html[data-studio-upgrade][data-client-color-mode="light"] body .dashboard-server-row { --server-color:#5754c9; }
html[data-studio-upgrade][data-client-color-mode="light"] body .dashboard-server-row:nth-child(6n+2) { --server-color:#087c96; }
html[data-studio-upgrade][data-client-color-mode="light"] body .dashboard-server-row:nth-child(6n+3) { --server-color:#7c43cf; }
html[data-studio-upgrade][data-client-color-mode="light"] body .dashboard-server-row:nth-child(6n+4) { --server-color:#13835f; }
html[data-studio-upgrade][data-client-color-mode="light"] body .dashboard-server-row:nth-child(6n+5) { --server-color:#99600c; }
html[data-studio-upgrade][data-client-color-mode="light"] body .dashboard-server-row:nth-child(6n+6) { --server-color:#c03658; }
html[data-studio-upgrade] body .dashboard-server-row:hover { border-color:color-mix(in srgb,var(--server-color) 55%,var(--studio-line)) !important; background:var(--studio-hover) !important; }
html[data-studio-upgrade] body .dashboard-server-row:focus-visible { outline:2px solid var(--studio-accent) !important; outline-offset:3px !important; }
html[data-studio-upgrade] body .dashboard-server-icon { width:42px !important; height:42px !important; border:1px solid color-mix(in srgb,var(--server-color) 22%,transparent) !important; border-radius:10px !important; background:color-mix(in srgb,var(--server-color) 8%,transparent) !important; color:var(--server-color) !important; }
html[data-studio-upgrade] body .dashboard-server-identity strong { font:600 15px/1.45 var(--studio-font) !important; letter-spacing:-.2px !important; color:var(--studio-text) !important; }
html[data-studio-upgrade] body :is(.dashboard-server-identity,.dashboard-roster-fact,.dashboard-server-state) small { font:500 10px/1.5 var(--studio-font) !important; text-transform:none !important; letter-spacing:.2px !important; color:var(--studio-dim) !important; }
html[data-studio-upgrade] body .dashboard-roster-fact strong { font:600 13px/1.5 var(--studio-font) !important; color:var(--studio-text) !important; }
html[data-studio-upgrade] body .dashboard-roster-fact > span { font:400 10px/1.6 var(--studio-font) !important; color:var(--studio-muted) !important; }
html[data-studio-upgrade] body .dashboard-roster-address strong { font:500 12px/1.5 Consolas,"SFMono-Regular",monospace !important; }
html[data-studio-upgrade] body .dashboard-roster-expiration[data-expiration-state="permanent"] > span { color:var(--studio-green) !important; }
html[data-studio-upgrade] body .dashboard-roster-expiration:is([data-expiration-state="expiring"],[data-expiration-state="active"]) > span { color:var(--studio-amber) !important; }
html[data-studio-upgrade] body .dashboard-server-status { font:600 10px/1.4 var(--studio-font) !important; padding:5px 9px !important; text-transform:none !important; letter-spacing:.1px !important; border-radius:6px !important; }
html[data-studio-upgrade] body .dashboard-server-status.is-running { color:var(--studio-green) !important; border-color:color-mix(in srgb,var(--studio-green) 25%,transparent) !important; background:color-mix(in srgb,var(--studio-green) 9%,transparent) !important; }
html[data-studio-upgrade] body .dashboard-server-status.is-error { color:var(--studio-red) !important; border-color:color-mix(in srgb,var(--studio-red) 25%,transparent) !important; background:color-mix(in srgb,var(--studio-red) 9%,transparent) !important; }
html[data-studio-upgrade] body .dashboard-server-status.is-offline { color:var(--studio-muted) !important; background:var(--studio-bg) !important; }
html[data-studio-upgrade] body .dashboard-server-status.is-starting { color:var(--studio-amber) !important; background:color-mix(in srgb,var(--studio-amber) 9%,transparent) !important; }
html[data-studio-upgrade] body .dashboard-server-row::before { display:none !important; }
html[data-studio-upgrade] body .dashboard-server-open { color:var(--studio-muted) !important; font:400 24px/1 var(--studio-font) !important; }
html[data-studio-upgrade] body .dashboard-server-open.is-pending { font-size:10px !important; color:var(--studio-amber) !important; }

/* Cards and list share the existing accessible, live-updated server elements. */
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-list:not(.empty) { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-row {
  display:grid !important; grid-template-columns:42px minmax(0,1fr) 32px !important;
  grid-template-rows:auto 1fr auto !important; gap:17px 13px !important; min-height:252px !important;
  padding:22px !important; border-top:2px solid color-mix(in srgb,var(--server-color) 70%,var(--studio-line)) !important;
  align-items:start !important;
}
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-icon { grid-column:1; grid-row:1; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-identity { grid-column:2/4; grid-row:1; align-self:center; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-identity small { display:none !important; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-identity strong { white-space:normal !important; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-roster-facts { grid-column:1/-1 !important; grid-row:2 !important; display:grid !important; grid-template-columns:1fr 1fr !important; gap:13px 18px !important; padding-top:16px !important; border-top:1px solid var(--studio-line); }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-roster-fact { min-width:0 !important; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-state { grid-column:1/3 !important; grid-row:3 !important; justify-self:start !important; align-self:center !important; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-state small { display:none !important; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-open { grid-column:3; grid-row:3; width:32px; height:29px; border:1px solid var(--studio-line); border-radius:7px; text-align:center; align-self:center; line-height:24px !important; }
html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-row { grid-template-columns:42px minmax(150px,.8fr) minmax(480px,2.25fr) minmax(115px,.45fr) 16px !important; gap:15px !important; padding:17px !important; min-height:90px !important; }
html[data-studio-upgrade] body .dashboard-server-roster .dashboard-server-list .dashboard-server-row[data-studio-filtered="true"] { display:none !important; }
html[data-studio-upgrade] .studio-no-results { padding:55px 24px; text-align:center; color:var(--studio-muted); font-size:13px; }
html[data-studio-upgrade] .studio-no-results[hidden] { display:none !important; }
html[data-studio-upgrade] .studio-appearance { margin-top:23px; padding:16px 11px 3px; border-top:1px solid var(--studio-line); }
html[data-studio-upgrade] .studio-appearance-head { display:flex; justify-content:space-between; gap:8px; font-size:10px; color:var(--studio-dim); margin-bottom:9px; }
html[data-studio-upgrade] .studio-appearance-head strong { font-weight:500; color:var(--studio-muted); }
html[data-studio-upgrade] .studio-swatches { display:flex; gap:3px; justify-content:space-between; }
html[data-studio-upgrade] body .studio-swatches button { display:grid; place-items:center; width:29px; min-height:32px; padding:4px; background:transparent; border:1px solid transparent; border-radius:7px; }
html[data-studio-upgrade] .studio-swatches button::before { content:""; width:16px; height:16px; border-radius:50%; background:var(--swatch); }
html[data-studio-upgrade] body .studio-swatches button[aria-pressed="true"] { border-color:var(--studio-accent); background:rgba(var(--studio-accent-rgb),.10); }
html[data-studio-upgrade] body .live-assist-launcher { border-color:var(--studio-accent) !important; background:var(--studio-accent-deep) !important; }

/* Login shares the shell's type and palette; owner branding stays in place. */
html[data-studio-upgrade] body .login-page:not(.hidden) { background-image:radial-gradient(ellipse at 20% 15%,rgba(var(--studio-accent-rgb),.13),transparent 50%),radial-gradient(ellipse at 85% 90%,#67d7ee0c,transparent 45%) !important; background-color:var(--studio-bg) !important; }
html[data-studio-upgrade] body .login-card { border-radius:17px !important; border-top:2px solid var(--studio-accent) !important; padding:34px !important; }
html[data-studio-upgrade] body .login-card::before { content:"CS 1.6 · CONTROL CENTER" !important; font-weight:600 !important; }
html[data-studio-upgrade] body .login-card button[type="submit"] { background:var(--studio-accent) !important; color:var(--cs16-accent-contrast) !important; border-color:var(--studio-accent) !important; border-radius:8px !important; text-transform:none !important; }

@media (max-width:1500px) {
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-list:not(.empty) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-row { grid-template-columns:42px minmax(150px,1fr) minmax(110px,.5fr) 16px !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-roster-facts { grid-column:2/-1 !important; grid-row:2 !important; grid-template-columns:1fr 1fr 1.3fr .4fr !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-state { grid-column:3 !important; grid-row:1 !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-open { grid-column:4 !important; grid-row:1 !important; }
}
@media (max-width:1100px) {
  html[data-studio-upgrade] body .studio-metric { padding:17px 16px !important; grid-template-columns:1fr 30px; }
  html[data-studio-upgrade] .studio-metric-icon { width:30px; height:34px; }
  html[data-studio-upgrade] .studio-metric-hint { font-size:10px; }
  html[data-studio-upgrade] body .topbar { padding:15px 22px !important; }
  html[data-studio-upgrade] body .main > .page { padding:25px 22px !important; }
}
@media (min-width:721px) {
  html[data-studio-upgrade] body .sidebar { visibility:visible !important; pointer-events:auto !important; transform:none !important; }
  html[data-studio-upgrade] body :is(.cs16-mobile-menu-button,.cs16-top-brand,.cs16-sidebar-backdrop) { display:none !important; }
}
@media (max-width:900px) {
  html[data-studio-upgrade] .studio-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-list:not(.empty) { grid-template-columns:1fr !important; }
  html[data-studio-upgrade] .studio-view-note { display:none; }
  html[data-studio-upgrade] .studio-results { order:4; margin-left:0; flex:1; }
}
@media (max-width:720px) {
  html[data-studio-upgrade] body .sidebar { width:min(86vw,280px) !important; z-index:9000 !important; }
  html[data-studio-upgrade] body .main { width:100% !important; margin-left:0 !important; }
  html[data-studio-upgrade] body .main > .page { padding:22px 16px !important; }
  html[data-studio-upgrade] body .topbar { padding:12px 16px !important; min-height:68px !important; gap:9px !important; }
  html[data-studio-upgrade] body .topbar .subtitle { display:none !important; }
  html[data-studio-upgrade] body .topbar .account > div:first-child { display:none !important; }
  html[data-studio-upgrade] body .topbar .cs16-top-brand { display:none !important; }
  html[data-studio-upgrade] body .topbar h2 { font-size:15px !important; }
  html[data-studio-upgrade] body .studio-overview-head h1 { font-size:25px !important; }
  html[data-studio-upgrade] .studio-overview-head { margin-bottom:18px; }
  html[data-studio-upgrade] .studio-overview-head p { font-size:12px; }
  html[data-studio-upgrade] .studio-metrics { gap:10px; }
  html[data-studio-upgrade] body .studio-metric { padding:15px !important; }
  html[data-studio-upgrade] .studio-metric-value { font-size:27px; }
  html[data-studio-upgrade] .studio-metric-icon { height:32px; }
  html[data-studio-upgrade] body .dashboard-server-roster-head { padding:20px 18px !important; align-items:flex-start; flex-wrap:wrap; gap:13px; }
  html[data-studio-upgrade] .studio-toolbar { padding:16px 18px; gap:10px; }
  html[data-studio-upgrade] .studio-search { max-width:none; flex:1 1 100%; }
  html[data-studio-upgrade] body .studio-filters button { padding:5px 9px; }
  html[data-studio-upgrade] .studio-layout-switch { margin-left:auto; }
  html[data-studio-upgrade] body .dashboard-server-list { padding:16px !important; gap:12px !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-row { padding:18px !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-row { grid-template-columns:34px minmax(0,1fr) 16px !important; gap:12px !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-identity { grid-column:2 !important; grid-row:1 !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-identity strong { white-space:normal !important; overflow-wrap:anywhere; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-roster-facts { grid-column:1/-1 !important; grid-row:2 !important; grid-template-columns:1fr 1fr !important; gap:12px !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-state { grid-column:1/3 !important; grid-row:3 !important; justify-self:start !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-open { grid-column:3 !important; grid-row:1 !important; }
  html[data-studio-upgrade] body .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-icon { width:34px !important; height:34px !important; }
}
@media (prefers-reduced-motion:reduce) { html[data-studio-upgrade] * { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }
