/* Compact graphite workspace, based on the supplied Studio reference. */
html[data-compact-panel] {
  --studio-bg:#101216 !important; --studio-surface:#171a20 !important; --studio-raised:#1e222a !important;
  --studio-hover:#242933 !important; --studio-line:#2b3039 !important; --studio-text:#eceef2 !important;
  --studio-muted:#949dab !important; --studio-dim:#7d899a !important; --studio-accent:#e55659 !important;
  --studio-accent-deep:#bc3f45 !important; --studio-accent-rgb:229,86,89 !important;
  --studio-green:#64c49a !important; --studio-amber:#d5b475 !important; --studio-red:#ef8791 !important;
  --studio-blue:#93adcf !important;
}
html[data-compact-panel][data-client-color-mode="light"] {
  --studio-bg:#f3f4f6 !important; --studio-surface:#fff !important; --studio-raised:#f6f7f9 !important;
  --studio-hover:#eceef2 !important; --studio-line:#dde1e7 !important; --studio-text:#202631 !important;
  --studio-muted:#616b7b !important; --studio-dim:#6f7d90 !important; --studio-accent:#c94148 !important;
  --studio-green:#218357 !important; --studio-amber:#977017 !important; --studio-red:#c43750 !important;
}
html[data-compact-panel] body.legacy-clean.cs16-v111-theme {
  --zpc-sidebar:224px !important; --cs16-theme-radius:10px !important; --cs16-theme-radius-sm:7px !important;
  font-size:13px !important; --cs16-accent-contrast:#fff !important;
}
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .sidebar { width:224px !important; padding:0 12px 14px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .main { margin-left:224px !important; width:calc(100% - 224px) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .brand { min-height:72px !important; padding:17px 12px !important; margin:0 0 11px !important; justify-content:flex-start !important; }
html[data-compact-panel] .compact-brand strong { display:block; font:650 15px/1.3 var(--studio-font) !important; letter-spacing:-.3px !important; color:var(--studio-text) !important; }
html[data-compact-panel] .compact-brand span { display:block; margin-top:4px; font:500 9px/1.5 var(--studio-font) !important; letter-spacing:1.7px !important; color:var(--studio-muted) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .sidebar nav { gap:2px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .nav-item { min-height:36px !important; height:36px !important; font-size:12px !important; border-radius:6px !important; padding:6px 11px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .nav-item.active { background:var(--studio-hover) !important; border-color:transparent !important; box-shadow:inset 2px 0 var(--studio-accent) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .nav-section-label { margin:15px 12px 6px !important; font-size:9px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .cs16-nav-icon { width:20px !important; min-width:20px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .cs16-nav-icon svg { width:17px !important; height:17px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .topbar { min-height:64px !important; padding:12px 30px !important; gap:12px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .topbar h2 { font-size:14px !important; font-weight:600 !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .topbar .subtitle { font-size:10px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .main > .page { padding:26px 34px 34px !important; max-width:1560px; margin-inline:auto; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.page h1,.studio-overview-head h1) { font-size:26px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .page h2 { font-size:19px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .page h3 { font-size:14px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.v5-card,.v8-card,.v9-card,.v10-card,.api10-card,.v5-module-panel,.command-server-shell,.cs16-fleet-shell,.modal-card,.v5-delete-dialog) { border-radius:10px !important; background-image:none !important; box-shadow:none !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.v5-card-head,.v8-card-head,.v9-card-head,.cs16-fleet-head,.v5-module-head,.v8-page-head,.v9-page-head) { background-image:none !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.v5-card,.v8-card,.v9-card,.v10-card,.api10-card) { padding:20px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.v5-input,.v8-input,.v9-input,.v10-input,.api10-input,input:not([type="checkbox"]):not([type="radio"]),select) { min-height:38px !important; border-radius:6px !important; font-size:12px !important; padding:8px 11px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.v5-button,.v8-button,.v9-button,.v10-button,.api10-button,.cs16-fleet-button,.cs16-server-action,.cs16-server-nav-button,.primary-button,.modal-submit,.billing-button) { min-height:34px !important; border-radius:6px !important; padding:7px 12px !important; font-size:11px !important; letter-spacing:0 !important; text-transform:none !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.v5-info-item,.cs16-overview-chart-card) { border-radius:8px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .cs16-overview-chart-card { min-height:160px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .cs16-overview-chart-card header strong { font-size:20px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .command-server-heading h2 { font-size:22px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .studio-overview { margin-bottom:20px; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .studio-overview-head { margin-bottom:17px; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .studio-overview-head p { font-size:12px; margin-top:5px; }
html[data-compact-panel] .studio-eyebrow { font-size:9px; color:var(--studio-muted); }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .studio-metric { --metric-color:var(--studio-muted) !important; min-height:94px; padding:16px 18px !important; border-radius:8px !important; gap:3px; }
html[data-compact-panel] .studio-metric::after { display:none !important; }
html[data-compact-panel] .studio-metric-label { font-size:11px; }
html[data-compact-panel] .studio-metric-value { font-size:25px; }
html[data-compact-panel] .studio-metric-hint { font-size:10px; }
html[data-compact-panel] .studio-metric-icon { background:var(--studio-raised); height:33px; width:33px; border-radius:7px; }
html[data-compact-panel] .studio-metric-icon svg { width:17px; height:17px; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-roster { border-radius:10px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-roster-head { padding:18px 20px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-roster-head h2 { font-size:18px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-roster-kicker { font-size:9px !important; color:var(--studio-muted) !important; }
html[data-compact-panel] .studio-toolbar { padding:13px 20px; gap:10px; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme #studioServerSearch { min-height:32px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-list { padding:16px !important; gap:8px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-row { --server-color:var(--studio-muted) !important; background:var(--studio-surface) !important; border-radius:7px !important; border-top:1px solid var(--studio-line) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-row:hover { background:var(--studio-raised) !important; border-color:var(--studio-dim) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-row { min-height:76px !important; padding:13px 15px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-icon { width:34px !important; height:34px !important; border-radius:6px !important; color:var(--studio-muted) !important; background:var(--studio-raised) !important; border-color:var(--studio-line) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-identity strong { font-size:13px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-roster-fact strong { font-size:12px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .dashboard-server-roster[data-studio-layout="cards"] .dashboard-server-row { min-height:228px !important; padding:18px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme :is(.studio-appearance,.cs-template-trigger,.cs16-global-logo,.cs16-top-brand,.small-logo img,.logo img,.cs16-brand-loading) { display:none !important; }
html[data-compact-panel] #v10AppearanceSection { display:none !important; }
html[data-compact-panel] .compact-settings-preview p { color:var(--studio-muted); font-size:12px; margin:8px 0 16px; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .login-page.cs-login-designer:not(.hidden),
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .login-page:not(.hidden) { background-image:none !important; background-color:var(--studio-bg) !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .login-card { max-width:380px !important; width:min(380px,100%) !important; padding:28px !important; border:1px solid var(--studio-line) !important; border-radius:10px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .login-card::before { display:none !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .logo-box { margin-bottom:21px !important; padding-bottom:18px !important; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .logo-box h1 { font-size:23px !important; }
html[data-compact-panel] .compact-login-copy p { margin:7px 0 0; color:var(--studio-muted); font-size:12px; }
html[data-compact-panel] .compact-preview-trigger,.compact-sidebar-preview { border:1px solid var(--studio-line); border-radius:6px; background:var(--studio-raised); color:var(--studio-text); min-height:32px; padding:6px 11px; font-size:11px; }
html[data-compact-panel] .compact-preview-trigger { margin-left:auto; }
html[data-compact-panel] body.legacy-clean.cs16-v111-theme .client-color-mode { margin-left:0; min-height:33px; width:35px; min-width:35px; }
html[data-compact-panel] .compact-sidebar-preview { width:100%; margin-top:18px; text-align:left; }
html[data-compact-panel] .compact-dialog { width:min(1240px,94vw); max-height:90svh; padding:0; border:1px solid var(--studio-line); border-radius:11px; color:var(--studio-text); background:var(--studio-surface); }
html[data-compact-panel] .compact-dialog::backdrop { background:#0009; }
html[data-compact-panel] .compact-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 22px; border-bottom:1px solid var(--studio-line); }
html[data-compact-panel] .compact-dialog-head h2 { font-size:18px !important; margin:0; }
html[data-compact-panel] .compact-dialog-head p { margin:5px 0 0; color:var(--studio-muted); font-size:11px; }
html[data-compact-panel] .compact-dialog button { min-height:33px; border:1px solid var(--studio-line); border-radius:6px; background:var(--studio-raised); padding:7px 12px; color:var(--studio-text); font-size:11px; }
html[data-compact-panel] .compact-dialog button[data-primary] { background:var(--studio-accent); color:white; border-color:var(--studio-accent); }
html[data-compact-panel] .compact-preview-grid { display:grid; grid-template-columns:240px minmax(0,1fr); }
html[data-compact-panel] .compact-preview-options { padding:22px; border-right:1px solid var(--studio-line); }
html[data-compact-panel] .compact-preview-options label { display:block; margin:0 0 8px; font-size:11px; }
html[data-compact-panel] .compact-preview-options select { width:100%; margin-bottom:21px; background:var(--studio-bg); color:var(--studio-text); border:1px solid var(--studio-line); }
html[data-compact-panel] .compact-preview-options p { color:var(--studio-muted); font-size:11px; line-height:1.7; }
html[data-compact-panel] .compact-preview-canvas { min-width:0; padding:16px; background:var(--studio-bg); }
html[data-compact-panel] .compact-preview-devices { display:flex; gap:5px; padding-bottom:13px; }
html[data-compact-panel] .compact-preview-devices button[aria-pressed="true"] { background:var(--studio-hover); border-color:var(--studio-dim); }
html[data-compact-panel] .compact-preview-stage { width:100%; overflow:hidden; min-height:280px; border:1px solid var(--studio-line); border-radius:7px; background:var(--studio-surface); }
html[data-compact-panel] .compact-preview-stage iframe { display:block; border:0; transform-origin:top left; }
html[data-compact-panel] .compact-preview-footer { display:flex; gap:8px; justify-content:flex-end; padding:15px 22px; border-top:1px solid var(--studio-line); }
html[data-compact-panel] .compact-review { width:min(540px,94vw); }
html[data-compact-panel] .compact-review dl { padding:4px 22px 18px; display:grid; grid-template-columns:120px 1fr; gap:12px; font-size:12px; }
html[data-compact-panel] .compact-review dt { color:var(--studio-muted); }
html[data-compact-panel] .compact-review dd { margin:0; overflow-wrap:anywhere; }
html[data-compact-panel][data-studio-density="comfortable"] body.legacy-clean.cs16-v111-theme .nav-item { min-height:40px !important; height:40px !important; }
html[data-compact-panel][data-studio-density="comfortable"] body.legacy-clean.cs16-v111-theme .dashboard-server-roster[data-studio-layout="list"] .dashboard-server-row { min-height:90px !important; padding:17px !important; }
@media(max-width:1100px) { html[data-compact-panel] .compact-preview-grid { grid-template-columns:200px 1fr; } }
@media(max-width:720px) {
  html[data-compact-panel] body.legacy-clean.cs16-v111-theme .main { margin-left:0 !important; width:100% !important; }
  html[data-compact-panel] body.legacy-clean.cs16-v111-theme .sidebar { width:min(86vw,260px) !important; }
  html[data-compact-panel] body.legacy-clean.cs16-v111-theme .main > .page { padding:22px 15px !important; }
  html[data-compact-panel] body.legacy-clean.cs16-v111-theme .topbar { padding:11px 12px !important; gap:8px !important; }
  html[data-compact-panel] .compact-preview-trigger { display:none !important; }
  html[data-compact-panel] body.legacy-clean.cs16-v111-theme .client-color-mode { margin-left:auto; }
  html[data-compact-panel] .compact-preview-grid { grid-template-columns:1fr; }
  html[data-compact-panel] .compact-preview-options { border-right:0; border-bottom:1px solid var(--studio-line); display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:15px; }
  html[data-compact-panel] .compact-preview-options p { display:none; }
  html[data-compact-panel] .compact-preview-options select { margin-bottom:0; }
  html[data-compact-panel] .compact-preview-stage { min-height:240px; }
}
