/* Shared neutral portal palette. Role navigation and control behavior are unchanged. */
.workspace-customer, .workspace-admin, .workspace-portal {
  color-scheme:dark;
  --ws-canvas:#101113;
  --ws-sidebar:#181a1c;
  --ws-surface:#141618;
  --ws-raised:#24272b;
  --ws-hover:#2b2f33;
  --ws-border:#2d3035;
  --ws-border-strong:#44494f;
  --ws-text:#f4f5f6;
  --ws-secondary:#c8cdd2;
  --ws-muted:#a4a9b0;
  --ws-subtle:#8e959e;
  --ws-accent:#006fee;
  --ws-link:#71b3ff;
  --ws-success:#72cea1;
  --ws-success-bg:#182b23;
  --ws-success-border:#2c5743;
  --ws-warning:#ebc078;
  --ws-warning-bg:#302719;
  --ws-danger:#f0a09f;
  --ws-danger-bg:#321e21;
  --ws-danger-border:#613137;
  --ink:var(--ws-text);
  --ink-2:var(--ws-secondary);
  --surface:var(--ws-surface);
  --paper:var(--ws-canvas);
  --muted:var(--ws-muted);
  --line:var(--ws-border);
  --green:var(--ws-accent);
  --green-dark:var(--ws-link);
  --lime:var(--ws-accent);
  --danger:var(--ws-danger);
  --warning:var(--ws-warning);
  --ui-control-bg:var(--ws-raised);
  --ui-control-hover:var(--ws-hover);
  --ui-primary:var(--ws-accent);
  --ui-disabled:var(--ws-raised);
  --ui-popup:var(--ws-raised);
  --ui-popup-field:var(--ws-canvas);
  color:var(--ws-text);
  background:var(--ws-sidebar);
}
.workspace-shell { --ink:var(--ws-text); --ink-2:var(--ws-secondary); --surface:var(--ws-surface); --paper:var(--ws-canvas); --muted:var(--ws-muted); --line:var(--ws-border); display:grid; grid-template-columns:256px minmax(0,1fr); background:var(--ws-sidebar); }
.ws-icon { display:inline-block; width:18px; height:18px; flex:0 0 auto; vertical-align:middle; }
:is(.workspace-customer, .workspace-admin) span[data-ws-icon] { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; line-height:1; vertical-align:middle; }
:is(.workspace-customer, .workspace-admin) .secret-icon .ws-icon,
:is(.workspace-customer, .workspace-admin) .dialog-icon .ws-icon { width:26px; height:26px; }
:is(.workspace-customer, .workspace-admin) .modal-close { display:grid; place-items:center; }
:is(.workspace-customer, .workspace-admin) .modal-close .ws-icon { width:18px; height:18px; }
:is(.workspace-customer, .workspace-admin) .approval-icon .ws-icon { width:20px; height:20px; }
.workspace-shell .sidebar { position:sticky; width:auto; flex-direction:column; align-items:stretch; height:100dvh; overflow-y:auto; padding:25px 16px 18px; border-right:0; gap:0; scrollbar-width:thin; z-index:25; background:var(--ws-sidebar); }
.workspace-shell .sidebar .brand { padding:0 10px; margin-bottom:27px; font-size:17px; }
.workspace-shell .brand-mark { width:30px; height:30px; border-radius:9px; box-shadow:none; }
.workspace-shell .brand-mark svg { width:21px; }
.ws-identity { display:flex; align-items:center; gap:10px; min-width:0; border:1px solid var(--ws-border); border-radius:12px; padding:11px; background:rgba(255,255,255,.035); }
.ws-avatar { display:grid; place-items:center; width:29px; height:29px; flex:0 0 auto; border-radius:9px; background:var(--ws-accent); color:white; font-size:12px; font-weight:700; }
.ws-identity > div { min-width:0; }
.ws-identity strong,.ws-identity small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ws-identity strong { font-size:13px; font-weight:600; }.ws-identity small { margin-top:3px; color:var(--ws-muted); font-size:11px; }
.ws-search { display:flex; align-items:center; gap:8px; width:100%; margin-top:12px; padding:10px 9px; border:0; border-radius:8px; background:transparent; color:var(--ws-muted); text-align:left; font-size:12px; }
.ws-search:hover { background:rgba(255,255,255,.045); color:white; }.ws-search kbd { margin-left:auto; padding:2px 4px; border:1px solid var(--ws-border-strong); border-radius:4px; font:9px inherit; color:var(--ws-subtle); }
.workspace-shell .nav { margin-top:20px; display:grid; gap:18px; }.ws-nav-group { display:grid; gap:3px; }
.ws-nav-label { padding:0 11px 6px; color:var(--ws-subtle); font-size:11px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; }
.workspace-shell .nav a { min-height:40px; padding:8px 10px; border:1px solid transparent; border-radius:8px; color:var(--ws-secondary); font-size:14px; line-height:20px; font-weight:500; }
.workspace-shell .nav a:hover { color:var(--ws-text); background:rgba(255,255,255,.045); }
.workspace-shell .nav a.active { color:var(--ws-text); border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.075); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); backdrop-filter:blur(14px); }
.workspace-shell .nav a.active .ws-icon { color:var(--ws-link); }.workspace-shell .nav a.is-locked { color:var(--ws-subtle); }
.ws-tier { margin-left:auto; padding:3px 6px; border:1px solid var(--ws-border); border-radius:5px; color:var(--ws-muted); font-size:9px; font-weight:500; white-space:nowrap; }
.workspace-shell .sidebar-bottom { margin:auto 0 0; padding-top:22px; }
.ws-help { display:flex; align-items:center; gap:9px; padding:10px; color:var(--ws-muted); font-size:13px; }.ws-help .ws-icon:last-child { margin-left:auto; width:14px; height:14px; }.ws-help:hover { color:white; }
.workspace-shell .sidebar-user { margin:8px 10px 6px; padding-top:14px; }.workspace-shell .sidebar-user strong { font-size:13px; font-weight:500; }.workspace-shell .sidebar-user span { color:var(--ws-subtle); line-height:1.6; font-size:11px; }
.workspace-shell .logout-button { width:100%; min-height:34px; padding:6px 10px; color:var(--ws-muted); font-size:13px; font-weight:500; }
.workspace-shell .app-main { min-width:0; margin:16px; padding:0 clamp(24px,3.2vw,54px) 48px; border:1px solid var(--ws-border); border-radius:10px; background:var(--ws-canvas); }
.workspace-shell .app-main > * { max-width:1280px; margin-left:auto; margin-right:auto; }
.ws-topbar { display:flex; align-items:center; gap:12px; min-height:64px; margin-bottom:26px; border-bottom:1px solid var(--ws-border); }
.ws-breadcrumb { display:flex; align-items:center; gap:11px; min-width:0; font-size:11px; color:var(--ws-muted); }.ws-breadcrumb span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.ws-breadcrumb strong { white-space:nowrap; color:var(--ws-secondary); font-weight:500; }.ws-breadcrumb-separator { color:var(--ws-subtle); }
.ws-topbar-link { display:flex; align-items:center; gap:7px; margin-left:auto; color:var(--ws-muted); font-size:11px; white-space:nowrap; }.ws-topbar-link:hover { color:white; }
.workspace-shell .page-head { align-items:center; gap:20px; margin-bottom:26px; }.workspace-shell .page-head h1 { font-size:28px; font-weight:650; letter-spacing:-.035em; }.workspace-shell .page-head p { font-size:12px; margin-top:7px; line-height:1.7; color:var(--ws-muted); }
.workspace-shell .page-head > div > .eyebrow { display:none; }
.workspace-shell .button { height:36px; min-height:36px; min-width:0; border-radius:9px; padding:0 13px; box-shadow:none; font-size:12px; font-weight:600; }
.workspace-shell .button-secondary { border:1px solid var(--ws-border); background:rgba(255,255,255,.035); }.workspace-shell .button-secondary:hover { background:rgba(255,255,255,.07); }
.workspace-shell .panel,.workspace-shell .summary-card,.workspace-shell .usage-card,.workspace-shell .usage-chart-card,.workspace-shell .plan-card,.workspace-shell .logs-panel { border-radius:13px; box-shadow:none; }
.workspace-shell .summary-card small,.workspace-shell .key-dates small { color:var(--ws-subtle); }.workspace-shell .summary-card { padding:18px; }.workspace-shell .plan-card { padding:22px; }.workspace-shell .section { margin-top:28px; }.workspace-shell .section-head h2 { font-size:18px; }.workspace-shell .section-head p { font-size:12px; color:var(--ws-muted); }
.workspace-shell .list-item { padding:16px 20px; }.workspace-shell .list-item small { line-height:1.7; }.workspace-shell .approval-banner { border-radius:12px; margin-bottom:24px; padding:16px 18px; box-shadow:none; }.workspace-shell .approval-icon { width:34px; height:34px; font-size:16px; }.workspace-shell .approval-banner h2 { font-size:15px; }.workspace-shell .approval-banner .eyebrow { font-size:9px; }
.workspace-shell .status-chip { padding:5px 8px; font-size:10px; font-weight:600; }.workspace-shell .usage-notice { font-size:11px; }.workspace-shell .code-block { border-radius:9px; }.workspace-shell .docs-toc a:hover { background:rgba(255,255,255,.05); color:var(--ws-link); }
.workspace-shell .component-catalog-main { background:var(--ws-canvas); }.workspace-shell .catalog-shell { max-width:none; }
.ws-overview-heading { display:flex; align-items:center; gap:17px; min-width:0; }.ws-workspace-avatar { display:grid; place-items:center; width:64px; height:64px; flex:0 0 auto; border-radius:17px; background:var(--ws-accent); box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); color:white; font-size:25px; font-weight:650; }
.ws-overview-heading h1 { overflow-wrap:anywhere; }.ws-workspace-plan { display:inline-flex; align-items:center; gap:6px; color:var(--ws-muted); font-size:11px; }.ws-workspace-plan a { color:var(--ws-link); }.ws-overview-heading p { max-width:550px; }
.ws-overview-tabs { display:flex; gap:8px; align-items:center; padding-bottom:20px; margin-bottom:25px; border-bottom:1px solid var(--ws-border); }.ws-overview-tabs a { display:flex; align-items:center; gap:7px; border:1px solid transparent; border-radius:999px; padding:7px 11px; color:var(--ws-muted); font-size:12px; }.ws-overview-tabs a.active { border-color:var(--ws-border-strong); color:var(--ws-text); background:rgba(255,255,255,.03); }.ws-overview-tabs a.active .ws-icon { color:var(--ws-link); }
.ws-overview-updated { margin-left:auto; color:var(--ws-subtle); font-size:10px; }
.ws-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:26px; }.ws-metric { display:flex; justify-content:space-between; align-items:center; padding:16px 19px; border:1px solid var(--ws-border); border-radius:12px; background:var(--ws-surface); }.ws-metric span { color:var(--ws-muted); font-size:10px; }.ws-metric strong { display:block; margin-top:7px; font-size:23px; font-weight:650; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }.ws-metric small { display:block; margin-top:5px; color:var(--ws-subtle); font-size:10px; }.ws-metric > [data-ws-icon] { color:var(--ws-subtle); flex:0 0 auto; }.ws-metric > [data-ws-icon] .ws-icon { width:23px; height:23px; }
.ws-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.ws-card { min-width:0; border:1px solid var(--ws-border); border-radius:15px; background:var(--ws-surface); overflow:hidden; }.ws-card-head { display:flex; align-items:center; gap:8px; padding:15px 17px; border-bottom:1px solid var(--ws-border); }.ws-card-head .ws-icon { color:var(--ws-muted); width:16px; height:16px; }.ws-card-head h3 { margin:0; font-size:12px; font-weight:550; color:var(--ws-secondary); }.ws-card-head a { margin-left:auto; color:var(--ws-muted); font-size:10px; }.ws-card-head a:hover { color:white; }
.ws-tool { display:flex; flex-direction:column; min-height:184px; padding:20px; }.ws-tool-heading { display:flex; align-items:center; gap:10px; }.ws-tool-icon { display:grid; place-items:center; width:33px; height:33px; border:1px solid var(--ws-border); border-radius:9px; background:rgba(0,111,238,.08); color:var(--ws-link); }.ws-tool h3 { margin:0; font-size:14px; font-weight:550; }.ws-tool p { max-width:360px; margin:14px 0 20px; color:var(--ws-muted); font-size:11px; line-height:1.8; }.ws-tool-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; color:var(--ws-link); font-size:11px; }.ws-tool-action .ws-icon { width:15px; height:15px; }.ws-tool-action:hover { color:white; }.ws-tool.is-locked .ws-tool-icon { background:rgba(255,255,255,.025); border-color:var(--ws-border); color:var(--ws-subtle); }.ws-tool.is-locked .ws-tool-action { color:var(--ws-muted); }
.ws-key-row { display:flex; align-items:center; gap:10px; padding:16px 17px; border-bottom:1px solid var(--ws-border); }.ws-key-row:last-child { border-bottom:0; }.ws-key-row > .ws-icon { color:var(--ws-subtle); width:16px; height:16px; }.ws-key-row > .ws-icon:last-child { margin-left:auto; width:14px; height:14px; color:var(--ws-subtle); }.ws-key-row > div { min-width:0; }.ws-key-row strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:550; }.ws-key-row code { display:block; margin-top:6px; color:var(--ws-subtle); font-size:10px; overflow:hidden; text-overflow:ellipsis; }.ws-key-row:hover { background:rgba(255,255,255,.025); }
.ws-card-empty { min-height:158px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:20px; }.ws-card-empty strong { font-size:12px; font-weight:550; }.ws-card-empty p { margin:9px 0 15px; font-size:11px; line-height:1.7; color:var(--ws-subtle); }.ws-text-link { display:flex; align-items:center; gap:7px; color:var(--ws-link); font-size:11px; }.ws-text-link .ws-icon { width:14px; height:14px; }
.ws-quota-body { padding:22px 18px 17px; }.ws-quota-metric { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }.ws-quota-metric strong { font-size:26px; font-weight:650; font-variant-numeric:tabular-nums; }.ws-quota-metric > span { color:var(--ws-muted); font-size:11px; }.ws-meter { margin:16px 0 11px; height:5px; overflow:hidden; border-radius:8px; background:var(--ws-raised); }.ws-meter > span { display:block; height:100%; border-radius:inherit; background:var(--ws-accent); }.ws-quota-detail { display:flex; justify-content:space-between; gap:8px; color:var(--ws-subtle); font-size:10px; }.ws-quota-detail strong { color:var(--ws-secondary); font-weight:500; }.ws-quota-reset { margin:17px 0 0; color:var(--ws-subtle); font-size:9px; line-height:1.6; }
.ws-activity-row { display:flex; align-items:center; gap:9px; padding:11px 17px; border-bottom:1px solid var(--ws-border); }.ws-activity-row:last-child { border-bottom:0; }.ws-activity-row > div { min-width:0; flex:1; }.ws-activity-row code { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ws-secondary); font-size:9px; }.ws-activity-row small { display:block; margin-top:5px; color:var(--ws-subtle); font-size:9px; }.ws-http-status { padding:4px 6px; border:1px solid var(--ws-success-border); border-radius:5px; color:var(--ws-success); background:var(--ws-success-bg); font-size:9px; }.ws-http-status.is-error { color:var(--ws-danger); border-color:var(--ws-danger-border); background:var(--ws-danger-bg); }
.ws-onboarding { margin-bottom:25px; padding:20px; border:1px solid var(--ws-border); border-radius:14px; background:var(--ws-surface); }.ws-onboarding h2 { margin:0; font-size:15px; font-weight:550; }.ws-onboarding > p { color:var(--ws-muted); font-size:11px; margin:6px 0 17px; }.ws-onboarding-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.ws-onboarding-step { display:flex; align-items:center; gap:10px; min-width:0; padding:10px 0; }.ws-step-marker { display:grid; place-items:center; width:28px; height:28px; flex:0 0 auto; border:1px solid var(--ws-border-strong); border-radius:50%; color:var(--ws-secondary); font-size:11px; }.is-complete .ws-step-marker { color:var(--ws-link); border-color:var(--ws-border-strong); }.ws-onboarding-step > div { min-width:0; }.ws-onboarding-step strong { display:block; font-size:11px; font-weight:550; }.ws-onboarding-step small { display:block; margin-top:5px; color:var(--ws-subtle); font-size:9px; line-height:1.6; }.ws-onboarding-step > .ws-icon { width:13px; height:13px; color:var(--ws-subtle); margin-left:auto; }
.ws-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.workspace-shell .ws-request-section { margin-top:25px; }.workspace-shell .ws-request-section .list-item { font-size:12px; }.workspace-shell .ws-request-section .list-item small { font-size:10px; }
.ws-icon-button { display:inline-grid; place-items:center; width:32px; height:32px; border:1px solid var(--ws-border); border-radius:8px; background:transparent; color:var(--ws-secondary); cursor:pointer; }.ws-icon-button svg { width:18px; height:18px; }
:is(.workspace-customer, .workspace-admin) .secret-dialog .button { height:36px; min-height:36px; border-radius:9px; font-size:12px; box-shadow:none; }:is(.workspace-customer, .workspace-admin) .secret-dialog h2 { font-size:25px; }:is(.workspace-customer, .workspace-admin) .secret-dialog .field input { border-radius:9px; }:is(.workspace-customer, .workspace-admin) .secret-value button { border-radius:8px; font-size:12px; }
.ws-menu-toggle,.ws-drawer-close,.ws-drawer-backdrop { display:none; }
.workspace-shell a:focus-visible,.workspace-shell button:focus-visible,.ws-command a:focus-visible,.ws-command button:focus-visible { outline:2px solid var(--ws-link); outline-offset:3px; }
.ws-command-open,.ws-drawer-open { overflow:hidden; }
.ws-command { position:fixed; z-index:1200; inset:0; display:grid; align-items:start; justify-items:center; padding:16vh 16px 24px; color:var(--ws-text); font-family:"Space Grotesk",ui-sans-serif,sans-serif; }
.ws-command-backdrop { position:absolute; inset:0; border:0; background:rgba(0,0,0,.65); backdrop-filter:blur(8px); }.ws-command-dialog { position:relative; width:min(540px,100%); border:1px solid var(--ws-border-strong); border-radius:16px; padding:20px; background:var(--ws-surface); box-shadow:0 24px 90px rgba(0,0,0,.5); }.ws-command-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }.ws-command h2 { margin:0; font-size:15px; font-weight:550; }.ws-command input { width:100%; height:42px; border:1px solid var(--ws-border-strong); border-radius:8px; padding:0 12px; color:white; background:var(--ws-canvas); font:12px "Space Grotesk",sans-serif; outline:none; }.ws-command input:focus { border-color:var(--ws-accent); box-shadow:0 0 0 2px rgba(0,111,238,.2); }
.ws-command-results { display:grid; gap:4px; margin-top:13px; max-height:40vh; overflow-y:auto; }.ws-command-result { display:flex; align-items:center; gap:10px; padding:10px; border-radius:8px; color:var(--ws-secondary); font-size:12px; }.ws-command-result:hover { background:var(--ws-raised); color:white; }.ws-command .ws-icon { width:17px; height:17px; flex:0 0 auto; }.ws-command-status { margin:15px 0 0; color:var(--ws-subtle); font-size:10px; }

/* Existing tool pages and body-level dialogs share the same customer tokens. */
.ws-notification-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px; margin-bottom:24px; border:1px solid var(--ws-border); border-radius:13px; background:var(--ws-surface); scroll-margin-top:24px; }
.ws-notification-panel[hidden] { display:none; }
.ws-notification-copy { flex:1; min-width:0; }
.ws-notification-copy h2 { display:flex; align-items:center; gap:9px; margin:0 0 10px; font-size:14px; font-weight:550; }
.ws-notification-copy h2 svg { width:18px; height:18px; flex:none; color:var(--ws-link); }
.ws-notification-copy p { max-width:600px; margin:0; color:var(--ws-muted); font-size:11px; line-height:1.8; }
.ws-notification-copy .ws-notification-recipient { margin-top:8px; overflow-wrap:anywhere; font-size:10px; color:var(--ws-subtle); }
.ws-notification-control { flex:0 1 260px; min-width:0; }
.ws-notification-toggle { display:flex; align-items:center; gap:10px; min-height:44px; font-size:12px; color:var(--ws-secondary); cursor:pointer; }
.ws-notification-toggle input { width:18px; height:18px; margin:0; flex:none; accent-color:var(--ws-accent); cursor:pointer; }
.ws-notification-toggle input:focus-visible { outline:2px solid var(--ws-link); outline-offset:4px; }
.ws-notification-control .form-message { margin:4px 0 0; font-size:10px; line-height:1.7; }
.ws-notification-control .form-message.success { color:var(--ws-success); }
.ws-notification-control button { margin-top:10px; }
@media (max-width:700px) { .ws-notification-panel { align-items:stretch; flex-direction:column; gap:16px; padding:16px; } .ws-notification-control { flex:auto; } }
@media (max-width:380px) { .workspace-shell .logs-toolbar { grid-template-columns:minmax(0,1fr); } }
.workspace-shell .app-main { color:var(--ws-text); }
.workspace-shell .page-head h1,.workspace-shell .section-head h2,.workspace-shell .docs-content h2 { color:var(--ws-text); }
.workspace-shell .ws-tool-icon { border-color:var(--ws-border); background:var(--ws-raised); color:var(--ws-secondary); }
.workspace-shell .ws-tool-action,.workspace-shell .ws-text-link { color:var(--ws-secondary); }
.workspace-shell .ws-tool-action:hover,.workspace-shell .ws-text-link:hover { color:var(--ws-link); }
.workspace-shell .button-secondary { color:var(--ws-text); background:var(--ws-raised); }
.workspace-shell .button-secondary:hover:not(:disabled) { background:var(--ws-hover); }
:is(.workspace-customer, .workspace-admin) .button:disabled { color:var(--ws-subtle); background:var(--ws-raised); }
.workspace-shell .approval-banner,.workspace-shell .usage-notice { border-color:var(--ws-border); background:var(--ws-surface); }
.workspace-shell .approval-banner .approval-icon { color:var(--ws-success); background:var(--ws-success-bg); }
.workspace-shell .approval-banner .eyebrow { color:var(--ws-success); }
.workspace-shell .approval-banner > a { color:var(--ws-link); }
.workspace-shell .approval-banner-warning { border-color:var(--ws-warning); }
.workspace-shell .approval-banner-warning .approval-icon { color:var(--ws-warning); background:var(--ws-warning-bg); }
.workspace-shell .approval-banner-warning .eyebrow { color:var(--ws-warning); }
.workspace-shell .status-chip,.workspace-shell .chart-status { color:var(--ws-secondary); background:var(--ws-raised); }
.workspace-shell .status-chip.approved,.workspace-shell .status-chip.active,.workspace-shell .http-status.success { color:var(--ws-success); background:var(--ws-success-bg); }
.workspace-shell .status-chip.rejected,.workspace-shell .status-chip.suspended,.workspace-shell .http-status.server-error { color:var(--ws-danger); background:var(--ws-danger-bg); }
.workspace-shell .status-chip.submitted,.workspace-shell .status-chip.under_review,.workspace-shell .status-chip.more_info_required,.workspace-shell .http-status.client-error { color:var(--ws-warning); background:var(--ws-warning-bg); }
.workspace-shell .status-chip.cancelled,.workspace-shell .status-chip.expired { color:var(--ws-muted); background:var(--ws-raised); }
.workspace-shell .method-badge,.workspace-shell .http-status.redirect { color:var(--ws-link); background:rgba(0,111,238,.1); }
.workspace-shell .plan-card.active-plan { background:var(--ws-surface); box-shadow:none; }
.workspace-shell .plan-card.active-plan::before,.workspace-shell .plan-card.active-plan .button { color:var(--ws-link); background:var(--ws-raised); }
.workspace-shell .summary-icon { color:var(--ws-secondary); background:var(--ws-raised); }
.workspace-shell .key-capacity > span,.workspace-shell .key-rotation-note,.workspace-shell .docs-content p,.workspace-shell .docs-content li { color:var(--ws-muted); }
.workspace-shell .key-rotation-note strong { color:var(--ws-secondary); }
.workspace-shell .field input,.workspace-shell .field textarea,.workspace-shell .ui-input,.workspace-shell .ui-textarea,:is(.workspace-customer, .workspace-admin) .secret-dialog .field input,:is(.workspace-customer, .workspace-admin) .secret-dialog .field textarea { color:var(--ws-text); border-color:var(--ws-border-strong); background:var(--ws-canvas); }
:is(.workspace-customer, .workspace-admin) input::placeholder,:is(.workspace-customer, .workspace-admin) textarea::placeholder { color:var(--ws-subtle); opacity:1; }
.workspace-shell .field input:hover,.workspace-shell .field textarea:hover { border-color:var(--ws-muted); }
:is(.workspace-customer, .workspace-admin) .field input:focus,:is(.workspace-customer, .workspace-admin) .field textarea:focus { border-color:var(--ws-link); }
.workspace-shell .code-block { color:var(--ws-secondary); background:var(--ws-canvas); border:1px solid var(--ws-border); }
.workspace-shell .logs-table th { background:var(--ws-sidebar); }
.workspace-shell .logs-table th:nth-child(3) { width:160px; }
.workspace-shell .logs-table .log-detail,.workspace-shell .logs-table .log-error-code { display:block; margin-top:6px; color:var(--ws-muted); font-size:10px; line-height:1.6; white-space:normal; overflow-wrap:anywhere; }
.workspace-shell .logs-table .log-error-code { color:var(--ws-secondary); }
.workspace-shell .logs-table .log-result,.workspace-shell .logs-table .log-request { min-width:0; white-space:normal; }
.workspace-shell .logs-table .route-code { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.workspace-shell .quota-ring { background:conic-gradient(var(--ws-accent) 0 var(--usage-angle),var(--ws-border-strong) var(--usage-angle) 360deg); }
.workspace-shell .legend-dot.remaining { background:var(--ws-border-strong); }
.workspace-shell .chart-grid line { stroke:var(--ws-border); }
.workspace-shell .chart-grid text,.workspace-shell .chart-labels text { fill:var(--ws-subtle); }
:is(.workspace-customer, .workspace-admin) .modal-backdrop { background:rgba(0,0,0,.65); }
:is(.workspace-customer, .workspace-admin) .secret-dialog { color:var(--ws-text); border-color:var(--ws-border-strong); background:var(--ws-surface); }
:is(.workspace-customer, .workspace-admin) .secret-value { background:var(--ws-canvas); }
:is(.workspace-customer, .workspace-admin) .secret-value code { color:var(--ws-text); }
:is(.workspace-customer, .workspace-admin) .secret-dialog .copy-status.success { color:var(--ws-success); }
:is(.workspace-customer, .workspace-admin) .dialog-icon.danger { color:var(--ws-danger); background:var(--ws-danger-bg); }
:is(.workspace-customer, .workspace-admin) .ws-command-dialog { background:var(--ws-surface); }
:is(.workspace-customer, .workspace-admin) .ws-command input { background:var(--ws-canvas); }
.workspace-shell .component-card { background:var(--ws-surface); }
.workspace-shell .component-card:hover { border-color:var(--ws-border-strong); }
.workspace-shell .component-card .preview { background:var(--ws-sidebar); }
.workspace-shell .component-catalog-main .empty-state,.workspace-shell .component-catalog-main .search { background:var(--ws-surface); }
.workspace-shell .component-card .copy { color:var(--ws-secondary); background:var(--ws-raised); }
.workspace-shell .component-card .meta span { border-color:var(--ws-border); color:var(--ws-subtle); }

@media(min-width:1500px) { .workspace-shell .app-main { padding-inline:clamp(54px,5vw,110px); } }
@media(max-width:1150px) { .workspace-shell { grid-template-columns:230px minmax(0,1fr); }.workspace-shell .app-main { padding-inline:24px; }.ws-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.ws-card-grid > :last-child { grid-column:1/-1; }.ws-onboarding-steps { grid-template-columns:1fr; gap:0; } }
@media(max-width:900px) { .workspace-shell { display:block; }.workspace-shell .sidebar { position:fixed; inset:0 auto 0 0; width:266px; height:100dvh; flex-direction:column; align-items:stretch; gap:0; overflow-y:auto; transform:translateX(-100%); transition:transform .2s ease; z-index:1100; }.workspace-shell .sidebar .brand span:last-child { display:block; }.workspace-shell .sidebar .brand { padding:0 10px; }.workspace-shell .nav { display:grid; width:auto; overflow:visible; }.workspace-shell .sidebar-bottom { display:block; margin: auto 0 0; }.workspace-shell .sidebar-user { display:block; }.workspace-shell .logout-button { display:flex; }.workspace-shell.ws-nav-open .sidebar { transform:none; }.ws-nav-open .ws-drawer-backdrop { display:block; position:fixed; inset:0; border:0; background:rgba(0,0,0,.6); z-index:1050; backdrop-filter:blur(3px); }.ws-menu-toggle { display:inline-grid; }.ws-drawer-close { display:inline-grid; position:absolute; right:14px; top:24px; }.workspace-shell .app-main { margin:0; border:0; border-radius:0; min-height:100vh; padding:0 24px 40px; }.ws-topbar { min-height:64px; }.workspace-shell .page-head { align-items:center; }.workspace-shell .page-head h1 { font-size:25px; } }
@media(max-width:640px) { .workspace-shell .app-main { padding-inline:16px; }.workspace-shell .page-head { flex-direction:column; align-items:stretch; gap:15px; }.ws-workspace-avatar { width:48px; height:48px; border-radius:12px; font-size:20px; }.ws-overview-heading { gap:12px; }.workspace-shell .page-head h1 { font-size:23px; }.ws-metrics { gap:8px; }.ws-metric { padding:12px 10px; }.workspace-shell .ws-metric > span[data-ws-icon] { display:none; }.ws-metric strong { font-size:20px; }.ws-metric small { font-size:9px; }.ws-card-grid,.ws-data-grid { grid-template-columns:1fr; }.ws-card-grid > :last-child { grid-column:auto; }.ws-overview-updated { display:none; }.ws-breadcrumb { font-size:10px; gap:6px; }.ws-topbar-link { font-size:0; }.ws-topbar-link .ws-icon { width:19px; height:19px; }.ws-onboarding { padding:16px; }.ws-command { padding-top:9vh; }.workspace-shell .approval-banner { grid-template-columns:auto 1fr; }.workspace-shell .approval-banner > a { grid-column:2; } }
@media(prefers-reduced-motion:reduce) { .workspace-shell .sidebar { transition:none; } }

/* Management lists use the same compact cards as the customer workspace. */
.workspace-shell .docs-content { min-width:0; overflow-wrap:anywhere; }
.workspace-shell .docs-content .endpoint { max-width:100%; overflow-wrap:anywhere; }
.workspace-shell .docs-content .method { flex-shrink:0; }
.workspace-admin .list-item { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) auto; gap:18px; padding:18px 20px; }
.workspace-admin .list-item > div { min-width:0; }
.workspace-admin .list-item strong { font-size:12px; font-weight:550; overflow-wrap:anywhere; }
.workspace-admin .list-item small { font-size:11px; color:var(--ws-muted); overflow-wrap:anywhere; }
.workspace-admin .item-actions .button { height:32px; min-height:32px; padding-inline:11px; font-size:11px; }
.workspace-admin .item-actions { gap:7px; }
.workspace-admin .key-usage { grid-template-columns:minmax(0,1fr); }
.workspace-admin .key-usage > div { min-height:0; border:0; padding:0; }
.workspace-admin .section-head p { line-height:1.7; }
@media(max-width:1200px) { .workspace-admin .list-item { grid-template-columns:minmax(0,1fr) auto; }.workspace-admin .list-item > div:nth-child(2) { grid-column:1; grid-row:2; }.workspace-admin .item-actions { grid-column:2; grid-row:1 / span 2; max-width:220px; } }
@media(max-width:640px) { .workspace-admin .list-item { grid-template-columns:minmax(0,1fr); gap:10px; padding:16px; }.workspace-admin .list-item > div:nth-child(2),.workspace-admin .item-actions { grid-column:auto; grid-row:auto; }.workspace-admin .item-actions { justify-content:flex-start; max-width:none; } }

/* First-paint shell and loading placeholders do not depend on an API response. */
.workspace-portal .ws-skeleton,.workspace-portal .ws-loading-value {
  position:relative;
  display:inline-block;
  overflow:hidden;
  flex:0 0 auto;
  border-radius:5px;
  background:var(--ws-raised);
  vertical-align:middle;
}
.workspace-portal .ws-skeleton::after,.workspace-portal .ws-loading-value::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.06) 50%,transparent 80%);
  transform:translateX(-100%);
  animation:ws-skeleton-shimmer 1.8s ease-in-out infinite;
}
.workspace-portal .ws-loading-value { min-width:5ch; color:transparent!important; user-select:none; pointer-events:none; }
.workspace-portal :is(.ws-metric,.usage-card,.sidebar-user,.quota-ring,.logs-meta) .ws-loading-value { display:block; width:fit-content; }
.workspace-portal .quota-ring .ws-loading-value { margin-inline:auto; }
.workspace-portal .logs-meta .ws-loading-value { margin-left:auto; }
.workspace-portal .ws-workspace-avatar.ws-loading-value { min-width:0; border-radius:17px; }
.workspace-portal h1.ws-loading-value { min-width:12ch; }
.workspace-portal .ws-skeleton-line { display:block; height:10px; width:70%; }
.workspace-portal .ws-skeleton-short { width:44px; }
.workspace-portal .ws-skeleton-medium { width:100px; }
.workspace-portal .ws-skeleton-long { width:150px; max-width:100%; }
.workspace-portal .ws-skeleton-square { width:29px; height:29px; border-radius:9px; }
.workspace-portal .ws-skeleton-heading { height:16px; }
.workspace-portal .ws-skeleton-copy { display:grid; gap:9px; min-width:0; flex:1; }
.workspace-portal .ws-identity-placeholder { min-height:55px; }
.workspace-portal .ws-search-placeholder { min-height:36px; }
.workspace-portal .ws-nav-placeholder { display:flex; align-items:center; gap:10px; min-height:40px; padding:8px 11px; }
.workspace-portal .ws-nav-placeholder .ws-skeleton-square { width:18px; height:18px; border-radius:4px; }
.workspace-portal .ws-nav-placeholder .ws-skeleton-line { width:60%; }
.workspace-portal .ws-nav-label-placeholder { padding:0 11px 6px; }
.workspace-portal .ws-nav-label-placeholder .ws-skeleton-line { width:90px; height:8px; }
.workspace-portal .ws-skeleton-list-row { display:flex; align-items:center; gap:16px; min-height:80px; padding:18px 20px; border-bottom:1px solid var(--ws-border); }
.workspace-portal .ws-skeleton-list-row:last-child { border-bottom:0; }
.workspace-portal .ws-skeleton-key-row { min-height:112px; }
.workspace-portal .ws-skeleton-card-body { display:grid; align-content:center; gap:16px; min-height:158px; padding:20px; }
.workspace-portal .ws-skeleton-tool { display:grid; align-content:start; gap:14px; min-height:320px; padding:26px; }
.workspace-portal .ws-skeleton-field { height:42px; width:100%; border:1px solid var(--ws-border); }
.workspace-portal .ws-plan-placeholder { min-height:350px; display:flex; flex-direction:column; gap:22px; }
.workspace-portal .ws-plan-placeholder > .ws-skeleton-field { margin-top:auto; }
.workspace-portal .ws-tool > [data-workspace-skeleton] { display:flex; flex-direction:column; flex:1; gap:18px; }
.workspace-portal .ws-tool [data-workspace-skeleton] > .ws-skeleton-line:last-child { margin-top:auto; }
.workspace-portal .ws-chart-placeholder { height:230px; display:flex; align-items:flex-end; gap:18px; padding:25px 20px; border-bottom:1px solid var(--ws-border); }
.workspace-portal .ws-chart-placeholder .ws-skeleton { flex:1; height:40%; }
.workspace-portal .ws-chart-placeholder .ws-skeleton:nth-child(2n) { height:65%; }
.workspace-portal .ws-chart-placeholder .ws-skeleton:nth-child(3n) { height:85%; }
.workspace-portal .ws-loading-ring { background:var(--ws-border-strong); }
.workspace-portal .logs-table .ws-log-placeholder td { padding-block:20px; }
.workspace-portal .ws-load-error { white-space:normal; color:var(--ws-muted); text-align:center; padding:28px; }
.workspace-portal .ws-sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.workspace-portal .ws-script-notice { margin:16px; padding:14px; border:1px solid var(--ws-border); border-radius:9px; color:var(--ws-muted); }
.workspace-portal .ws-script-notice a { color:var(--ws-link); }
@keyframes ws-skeleton-shimmer { to { transform:translateX(100%); } }
@media(prefers-reduced-motion:reduce) { .workspace-portal .ws-skeleton::after,.workspace-portal .ws-loading-value::after { animation:none; display:none; } }

/* Customer management keeps the same usage and log views as the customer portal. */
.workspace-admin [data-admin-detail][hidden],.workspace-admin [data-admin-list-view][hidden],.workspace-admin [data-admin-detail-content][hidden],.workspace-admin [data-admin-panel][hidden],.workspace-admin [data-admin-panel] > [hidden] { display:none !important; }
.admin-customer-search { max-width:440px; margin:0 0 20px; }
.admin-back { margin-bottom:22px; }
.admin-customer-tabs { flex-wrap:wrap; }
.admin-customer-tabs [aria-selected="true"] { color:var(--ws-text); background:var(--ws-hover); border-color:var(--ws-border-strong); }
.admin-customer-summary,.admin-plan-form { padding:22px; margin-top:22px; }
.admin-customer-summary h2,.admin-plan-form h2 { margin:0 0 16px; font-size:17px; font-weight:550; }
.admin-customer-summary dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin:0; }
.admin-customer-summary dt { font-size:11px; color:var(--ws-muted); }
.admin-customer-summary dd { margin:8px 0 0; font-size:13px; }
.admin-plan-form p,.admin-detail-loading { color:var(--ws-muted); font-size:12px; line-height:1.8; }
.admin-plan-form .field { max-width:620px; }
.admin-plan-form select { width:100%; padding:10px 12px; border:1px solid var(--ws-border-strong); border-radius:9px; color:var(--ws-text); background:var(--ws-raised); font:12px inherit; }
.admin-key-readonly { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:20px; gap:24px; border-bottom:1px solid var(--ws-border); }
.admin-key-readonly:last-child { border-bottom:0; }
.admin-key-readonly strong { font-size:13px; font-weight:550; }
.admin-key-readonly code,.admin-key-readonly small { display:block; margin-top:9px; overflow-wrap:anywhere; font-size:11px; color:var(--ws-muted); line-height:1.7; }
.admin-key-readonly code { color:var(--ws-secondary); }
.workspace-admin .item-actions { max-width:380px; }
@media(max-width:640px) { .admin-customer-summary dl { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-key-readonly { grid-template-columns:minmax(0,1fr); gap:12px; }.admin-customer-tabs { gap:6px; }.admin-customer-tabs .button { font-size:11px; padding-inline:10px; } }
.workspace-admin .page-head [data-admin-client-name] { margin:0; color:var(--ws-text); font-size:28px; font-weight:650; letter-spacing:-.035em; }
.onprem-notice { padding:24px; margin:24px 0; }
.onprem-notice h2 { margin:0 0 12px; font-size:20px; }
.onprem-notice p,.onprem-requirement p { color:var(--ws-muted); font-size:13px; line-height:1.7; }
.onprem-requirement { padding:20px 24px; border-bottom:1px solid var(--ws-border); }
.onprem-requirement:last-child { border-bottom:0; }
.onprem-requirement strong { font-size:14px; }
.enterprise-row > div { min-width:0; overflow-wrap:anywhere; }
.onprem-notice form { max-width:580px; }
@media(max-width:640px) { .workspace-shell .enterprise-row { grid-template-columns:minmax(0,1fr); }.onprem-notice,.onprem-requirement { padding:18px; } html[data-page="onprem"] .ws-metrics { grid-template-columns:minmax(0,1fr); } }
