/* admin.css */
:root {
  color-scheme: light;
  --page-bg: #edf0f6;
  --surface: rgba(248, 250, 255, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.62);
  --surface-strong: #ffffff;
  --line: rgba(126, 139, 168, 0.22);
  --line-strong: rgba(135, 156, 217, 0.48);
  --text: #303743;
  --muted: #8790a3;
  --accent: #7d95cf;
  --accent-strong: #a897f1;
  --danger: #d94b5c;
  --success: #3b9f78;
  --shadow: 18px 24px 56px rgba(142, 153, 181, 0.2), -18px -18px 42px rgba(255, 255, 255, 0.86);
  --radius: 8px;
  --sidebar-panel: rgba(247, 249, 255, 0.68);
  --sidebar-panel-strong: rgba(255, 255, 255, 0.86);
  --sidebar-glow: rgba(133, 154, 214, 0.18);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

body {
  min-height: 100vh;
  max-width: 100vw;
  font-family: "Arial Narrow", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(222, 24, 44, 0.16) 0, transparent 220px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #0b0b0b 0%, var(--page-bg) 100%);
  background-size: auto, 84px 84px, auto;
  overflow: hidden;
}

p,
span,
strong,
small,
label,
div,
td,
th,
a,
button,
pre,
code {
  overflow-wrap: anywhere;
}

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.admin-shell {
  height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(480px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 13, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.login-brand h1,
.sidebar-brand h2,
.admin-topbar h1,
.panel-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.login-brand p,
.sidebar-brand p,
.admin-topbar p,
.action-hint,
.login-tip,
.message-line,
.topbar-status,
.summary-item-label,
.summary-item-value {
  margin: 0;
}

.login-badge,
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
}

.login-badge img,
.sidebar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-badge.is-enterprise-logo {
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.sidebar-badge.is-enterprise-logo img {
  object-fit: cover;
}

.sidebar-enterprise-logo-frame,
.sidebar-enterprise-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sidebar-enterprise-logo-frame {
  overflow: hidden;
}

.sidebar-enterprise-logo-placeholder {
  color: #fff;
  font-size: 20px;
  font-weight: 760;
  background: linear-gradient(135deg, #1d4ed8, #059669);
}

.code-brand-orb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 66% 32%, rgba(244, 223, 255, 0.84) 0 15%, transparent 38%),
    radial-gradient(circle at 38% 68%, rgba(174, 211, 255, 0.9) 0 24%, transparent 45%),
    linear-gradient(145deg, #ffffff, #dde6f7) !important;
  box-shadow:
    inset 6px 8px 16px rgba(255, 255, 255, 0.82),
    inset -6px -8px 18px rgba(142, 153, 181, 0.16),
    0 9px 20px rgba(143, 162, 204, 0.18) !important;
}

.code-brand-orb-surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.code-brand-orb-surface::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 22%;
  height: 21%;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(145, 177, 226, 0.54), rgba(255, 255, 255, 0.16));
  transform: rotate(-10deg);
}

.code-brand-orb-glow {
  position: absolute;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  opacity: 0.72;
  filter: blur(2px);
  mix-blend-mode: screen;
  transition: left 4.8s ease-in-out, top 4.8s ease-in-out, transform 4.8s ease-in-out;
  transform: translate3d(-50%, -50%, 0);
}

.code-brand-orb-glow.is-blue {
  left: var(--brand-glow-a-x, 34%);
  top: var(--brand-glow-a-y, 64%);
  background: radial-gradient(circle, rgba(171, 211, 255, 0.92) 0 20%, rgba(171, 211, 255, 0.34) 48%, transparent 72%);
  transform: translate3d(-50%, -50%, 0) translate3d(var(--brand-glow-a-dx, 0), var(--brand-glow-a-dy, 0), 0);
}

.code-brand-orb-glow.is-violet {
  left: var(--brand-glow-b-x, 66%);
  top: var(--brand-glow-b-y, 32%);
  background: radial-gradient(circle, rgba(236, 214, 255, 0.92) 0 18%, rgba(236, 214, 255, 0.36) 48%, transparent 72%);
  transform: translate3d(-50%, -50%, 0) translate3d(var(--brand-glow-b-dx, 0), var(--brand-glow-b-dy, 0), 0);
}

.code-brand-orb-glow.is-mint {
  left: var(--brand-glow-c-x, 52%);
  top: var(--brand-glow-c-y, 52%);
  background: radial-gradient(circle, rgba(176, 245, 224, 0.82) 0 18%, rgba(176, 245, 224, 0.3) 48%, transparent 74%);
  transform: translate3d(-50%, -50%, 0) translate3d(var(--brand-glow-c-dx, 0), var(--brand-glow-c-dy, 0), 0);
}

@media (prefers-reduced-motion: reduce) {
  .code-brand-orb-glow {
    transition: none;
  }
}

.login-brand {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.login-form,
.login-oauth,
.stack-form,
.action-stack {
  display: grid;
  gap: 14px;
}

.login-oauth {
  margin-bottom: 14px;
}

.login-verification {
  display: grid;
  gap: 8px;
}

.login-verify-btn {
  width: 100%;
}

.modal-card > .stack-form {
  padding: 24px;
  overflow: auto;
}

.field {
  display: grid;
  gap: 8px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  gap: 14px;
  align-items: start;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field select option,
.field select optgroup,
select option,
select optgroup {
  color: #111111;
  background: #ffffff;
}

.field input:focus,
.field select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(222, 24, 44, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.suggest-shell {
  position: relative;
}

.suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.98);
  box-shadow: var(--shadow);
}

.suggest-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.suggest-item:last-child {
  border-bottom: 0;
}

.suggest-item:hover {
  background: rgba(222, 24, 44, 0.12);
}

.segmented-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
}

.segmented-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.segmented-btn + .segmented-btn {
  margin-left: -1px;
}

.segmented-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.segmented-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.segmented-btn.is-active {
  position: relative;
  z-index: 1;
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(143, 12, 24, 0.85) 0%, rgba(222, 24, 44, 0.85) 55%, rgba(255, 48, 72, 0.85) 100%);
}

.storage-type-segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.storage-type-segmented .segmented-btn {
  min-width: 0;
  padding: 0 10px;
}

.code-editor {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(9, 9, 10, 0.96);
  overflow: hidden;
}

.code-editor-highlight,
.code-editor-input {
  margin: 0;
  width: 100%;
  min-height: 220px;
  padding: 16px;
  font: 13px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.code-editor-input {
  position: relative;
  z-index: 1;
  border: 0;
  resize: vertical;
  overflow: auto;
  background: transparent;
  color: transparent;
  caret-color: #ffffff;
}

.code-editor-highlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: #d7dde7;
  overflow: hidden;
  background: rgba(11, 11, 12, 0.96);
}

.plain-editor {
  width: 100%;
  min-height: 520px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  resize: vertical;
  background: var(--code-input-bg, #ffffff);
  color: var(--code-text, #152033);
  outline: none;
  font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  tab-size: 2;
}

.plain-editor:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(222, 24, 44, 0.14);
}

.plain-editor::selection {
  background: rgba(222, 24, 44, 0.2);
}

.rules-page-toolbar {
  min-height: 54px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.rules-page-toolbar .page-toolbar-copy h2 {
  font-size: 20px;
}

.rules-admin-grid {
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: stretch;
  height: calc(100vh - 168px);
  min-height: 0;
  overflow: hidden;
}

.rules-side-column {
  grid-column: span 8;
  display: grid;
  gap: 18px;
  min-width: 0;
  min-height: 0;
}

.rules-editor-card {
  grid-column: span 16;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.rules-editor-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 255, 0.72);
}

.rules-editor-tab-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.rules-editor-actions {
  flex: 0 1 300px;
  width: min(300px, 42vw);
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
}

.rules-search-control {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 220px;
}

.rules-search-control input {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(126, 139, 168, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.rules-search-input-group input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.rules-search-refresh-btn {
  width: 34px;
  min-width: 34px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(126, 139, 168, 0.24);
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.rules-search-input-group:focus-within input,
.rules-search-control input:focus {
  border-color: rgba(77, 105, 177, 0.55);
}

.rules-search-input-group:focus-within .rules-search-refresh-btn {
  border-color: rgba(77, 105, 177, 0.55);
}

.rules-search-control input:focus {
  box-shadow: 0 0 0 3px rgba(77, 105, 177, 0.12);
}

.rules-editor-tab {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.rules-editor-tab:hover {
  color: var(--text);
}

.rules-editor-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--text);
  background: rgba(125, 149, 207, 0.08);
}

.rules-preview-pane,
.rules-source-pane {
  min-height: 0;
}

.rules-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.rules-editor-body.is-tracing {
  grid-template-columns: minmax(0, 1fr) 200px;
}

.rules-editor-main-pane {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.rules-preview-pane {
  padding: 22px 24px 34px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
}

.rules-preview-pane.is-diff {
  padding: 0;
  background: rgba(248, 250, 255, 0.84);
}

.rules-diff-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 255, 0.96);
  color: var(--muted);
  font-size: 12px;
}

.rules-diff-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.rules-summary-head,
.rules-side-summary-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 255, 0.96);
}

.rules-side-summary {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
  background: rgba(248, 250, 255, 0.72);
}

.rules-side-summary-head {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
}

.rules-side-summary-back {
  grid-row: span 2;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

.rules-summary-path {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.rules-summary-path span,
.rules-summary-path strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-summary-path span::after {
  content: "/";
  margin-left: 8px;
  color: rgba(126, 139, 168, 0.8);
}

.rules-summary-path strong {
  color: var(--text);
  font-weight: 800;
}

.rules-summary-meta {
  color: var(--muted);
  font-size: 12px;
}

.rules-ai-summary {
  padding: 22px 24px 34px;
}

.rules-side-summary-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.rules-side-summary-body .rules-ai-summary-state {
  max-width: none;
}

.rules-side-summary-body .rules-ai-summary-body h2 {
  font-size: 16px;
}

.rules-side-summary-body .rules-ai-summary-body h3,
.rules-side-summary-body .rules-ai-summary-body h4,
.rules-side-summary-body .rules-ai-summary-body h5 {
  font-size: 14px;
}

.rules-side-summary-body .rules-ai-summary-body p,
.rules-side-summary-body .rules-ai-summary-body li {
  font-size: 13px;
  line-height: 1.58;
}

.rules-side-summary-body .rules-ai-summary-body ul,
.rules-side-summary-body .rules-ai-summary-body ol {
  padding-left: 20px;
}

.rules-side-summary-body .rules-diff {
  font-size: 11px;
}

.rules-side-summary-body .rules-diff-row {
  grid-template-columns: 22px 34px minmax(0, 1fr);
}

.rules-summary-inner-tabs {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(126, 139, 168, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

.rules-summary-inner-tab {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(126, 139, 168, 0.18);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rules-summary-inner-tab:last-child {
  border-right: 0;
}

.rules-summary-inner-tab.is-active {
  background: rgba(125, 149, 207, 0.12);
  color: var(--text);
}

.rules-project-suggestions {
  display: grid;
  gap: 10px;
}

.rules-suggestions-state,
.rules-suggestions-empty,
.rules-suggestions-note {
  color: var(--muted);
  font-size: 12px;
}

.rules-suggestions-state.is-error {
  color: #b42318;
}

.rules-suggestions-list {
  display: grid;
  gap: 8px;
}

.rules-suggestion-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.rules-suggestion-item input {
  margin-top: 3px;
}

.rules-suggestion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
}

.rules-suggestion-copy span {
  color: var(--muted);
}

.rules-suggestion-copy code {
  display: block;
  padding: 6px;
  border-radius: 4px;
  background: rgba(246, 249, 255, 0.9);
  color: #243553;
  white-space: pre-wrap;
}

.rules-suggestions-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rules-ai-summary-body {
  max-width: 920px;
}

.rules-ai-summary-state {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 18px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.rules-ai-summary-state.is-warning {
  color: #8a4d0f;
  background: rgba(255, 248, 226, 0.88);
}

.rules-diff-fallback {
  margin-top: 16px;
  border: 1px solid rgba(126, 139, 168, 0.14);
}

.rules-diff {
  display: grid;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.48;
}

.rules-diff-row {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr);
  min-height: 24px;
  border-bottom: 1px solid rgba(126, 139, 168, 0.08);
}

.rules-diff-mark,
.rules-diff-line {
  padding: 3px 8px;
  color: var(--muted);
  user-select: none;
}

.rules-diff-row code {
  display: block;
  padding: 3px 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: transparent;
  color: var(--text);
}

.rules-diff-row.is-add {
  background: rgba(59, 159, 120, 0.08);
}

.rules-diff-row.is-add .rules-diff-mark {
  color: #0f684c;
}

.rules-diff-row.is-remove {
  background: rgba(217, 75, 92, 0.08);
}

.rules-diff-row.is-remove .rules-diff-mark {
  color: #a83e51;
}

.rules-preview-pane h2,
.rules-preview-pane h3,
.rules-preview-pane h4,
.rules-preview-pane h5 {
  margin: 16px 0 8px;
  color: var(--text);
  line-height: 1.35;
}

.rules-preview-pane h2 {
  font-size: 18px;
}

.rules-preview-pane h3 {
  font-size: 16px;
}

.rules-preview-pane h4,
.rules-preview-pane h5 {
  font-size: 14px;
}

.rules-preview-pane h2:first-child,
.rules-preview-pane h3:first-child,
.rules-preview-pane h4:first-child,
.rules-preview-pane h5:first-child,
.rules-preview-pane p:first-child,
.rules-preview-pane ul:first-child,
.rules-preview-pane ol:first-child,
.rules-preview-pane pre:first-child {
  margin-top: 0;
}

.rules-preview-pane p,
.rules-preview-pane ul,
.rules-preview-pane ol,
.rules-preview-pane pre {
  margin: 0 0 12px;
}

.rules-preview-pane ul,
.rules-preview-pane ol {
  padding-left: 22px;
}

.rules-preview-pane li {
  margin: 4px 0;
}

.rules-preview-pane code {
  padding: 2px 5px;
  background: rgba(125, 149, 207, 0.12);
  color: #243553;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.rules-preview-pane pre {
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  background: rgba(246, 249, 255, 0.82);
}

.rules-preview-pane pre code {
  padding: 0;
  background: transparent;
}

.rules-search-hit {
  padding: 1px 2px;
  border-radius: 4px;
  background: #ffe58a;
  color: #2f2a12;
}

.rules-source-pane {
  display: grid;
  margin: 0;
}

.rules-plain-editor {
  min-height: 0;
  height: 100%;
  resize: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rules-codex-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(246, 249, 255, 0.88);
}

.rules-codex-input {
  min-height: 44px;
  max-height: 112px;
  resize: vertical;
}

.rules-codex-form .primary {
  min-height: 36px;
  white-space: nowrap;
}

.rules-codex-trace-pane {
  min-width: 200px;
  width: 200px;
  min-height: 0;
  overflow: auto;
  padding: 8px 6px;
  border-left: 1px solid var(--line);
  background: rgba(248, 250, 255, 0.92);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.rules-codex-trace-line {
  padding: 5px 0;
  border-bottom: 1px solid rgba(126, 139, 168, 0.12);
  overflow-wrap: anywhere;
}

.rules-codex-trace-line.is-error {
  color: #b3263a;
}

.rules-codex-trace-line.is-success {
  color: #0f684c;
}

.rules-enterprise-card .table-shell {
  max-height: none;
  height: 100%;
  overflow: auto;
  border: 0;
  background: transparent;
}

.rules-enterprise-accordion {
  display: grid;
  gap: 0;
  border: 1px solid rgba(126, 139, 168, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

.rules-enterprise-panel {
  border: 0;
  border-bottom: 1px solid rgba(126, 139, 168, 0.16);
  background: transparent;
  box-shadow: none;
  transition: background 0.16s ease;
}

.rules-enterprise-panel:last-child {
  border-bottom: 0;
}

.rules-enterprise-panel.is-open {
  background: rgba(239, 246, 255, 0.74);
  box-shadow: inset 3px 0 0 rgba(125, 149, 207, 0.78);
}

.rules-enterprise-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 0;
  box-shadow: none;
  user-select: none;
}

.rules-enterprise-option:focus-visible {
  outline: 2px solid rgba(125, 149, 207, 0.42);
  outline-offset: -2px;
  box-shadow: none;
}

.rules-enterprise-panel:not(.is-open) .rules-enterprise-option:hover {
  background: rgba(125, 149, 207, 0.06);
}

.rules-enterprise-option:hover strong {
  color: var(--accent);
}

.rules-enterprise-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rules-enterprise-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 42px;
  color: var(--muted);
  font-size: 12px;
}

.rules-enterprise-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-accent-bg, rgba(222, 24, 44, 0.1));
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  object-fit: cover;
}

.rules-enterprise-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rules-enterprise-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.rules-enterprise-copy span {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-enterprise-project-panel {
  border-top: 1px solid rgba(125, 149, 207, 0.2);
  background: rgba(246, 249, 255, 0.52);
}

.rules-project-inline-shell {
  padding: 10px 14px 14px;
  overflow-x: auto;
}

.rules-project-list {
  display: grid;
  gap: 0;
  border: 1px solid rgba(126, 139, 168, 0.14);
}

.rules-project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(126, 139, 168, 0.12);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.rules-project-item:last-child {
  border-bottom: 0;
}

.rules-project-item:hover,
.rules-project-item.is-selected {
  background: rgba(239, 246, 255, 0.88);
}

.rules-project-item:focus-visible {
  outline: 2px solid rgba(125, 149, 207, 0.42);
  outline-offset: -2px;
}

.rules-project-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rules-project-name strong,
.rules-project-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules-project-name strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.rules-project-name span {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
}

.rules-project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.rules-project-item.is-empty {
  color: var(--muted);
}

.rules-project-skeleton-item .admin-skeleton-line {
  height: 10px;
}

.code-editor-input::selection {
  background: rgba(222, 24, 44, 0.28);
}

.code-editor-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.code-editor-input::-webkit-scrollbar,
.code-editor-highlight::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.code-editor-input::-webkit-scrollbar-thumb,
.code-editor-highlight::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}

.code-token-key {
  color: #7dd3fc;
}

.code-token-string {
  color: #86efac;
}

.code-token-number {
  color: #fbbf24;
}

.code-token-boolean {
  color: #f472b6;
}

.code-token-comment {
  color: #94a3b8;
}

.code-token-punct {
  color: #e2e8f0;
}

button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease, background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

button.is-pending {
  opacity: 0.78;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(222, 24, 44, 0.18);
}

.primary,
.danger {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(222, 24, 44, 0.18);
}

.primary {
  background: linear-gradient(135deg, #8f0c18 0%, var(--accent) 50%, var(--accent-strong) 100%);
}

.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.danger {
  background: linear-gradient(135deg, #76111b 0%, #b71428 48%, #ff4d5f 100%);
}

.small {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 0;
  font-size: 13px;
}

.message-line {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.message-line.is-error {
  color: var(--danger);
}

.message-line.is-success {
  color: var(--success);
}

.modal-message {
  margin-top: 0;
}

.login-tip {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 77, 95, 0.14);
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}

.field-hint {
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.field-hint.is-error {
  color: var(--danger);
}

.field-hint.is-success {
  color: var(--success);
}

.field-hint.is-info {
  color: var(--muted);
}

.admin-toast-region {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 40px));
  pointer-events: none;
}

.admin-current-version-badge {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 9000;
  max-width: min(220px, calc(100vw - 28px));
  color: #9aa4b5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 560px) {
  .admin-current-version-badge {
    display: none;
  }
}

.admin-toast {
  pointer-events: auto;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 40, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  line-height: 1.45;
  font-size: 13px;
  cursor: pointer;
  animation: admin-toast-in 160ms ease-out;
}

.admin-toast.is-success {
  border-color: rgba(75, 211, 154, 0.45);
}

.admin-toast.is-info {
  border-color: rgba(99, 179, 237, 0.45);
}

.admin-toast.is-warning {
  border-color: rgba(245, 158, 11, 0.55);
}

.admin-toast.is-error {
  border-color: rgba(255, 77, 95, 0.68);
}

.admin-toast.is-leaving {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-static-update-notice {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 28, 43, 0.28);
  backdrop-filter: blur(5px);
}

.admin-static-update-card {
  width: min(460px, calc(100vw - 40px));
  border: 1px solid rgba(224, 231, 245, 0.94);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 72px rgba(30, 42, 68, 0.26), 0 8px 24px rgba(30, 42, 68, 0.14);
}

.admin-static-update-card .modal-head {
  padding: 22px 24px 18px;
  align-items: center;
}

.admin-static-update-card .modal-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-static-update-version {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-static-update-close.modal-close-icon-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-color: rgba(126, 139, 168, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 20px;
  box-shadow: none;
}

.admin-static-update-close.modal-close-icon-btn:hover {
  border-color: rgba(126, 139, 168, 0.38);
  background: rgba(241, 245, 249, 0.92);
  color: var(--text);
}

.admin-static-update-body p,
.admin-static-update-list {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-static-update-body {
  padding: 18px 24px 10px;
}

.admin-static-update-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.admin-static-update-list li {
  padding-left: 2px;
}

.admin-static-update-card .modal-actions {
  padding: 12px 18px 18px 24px;
  justify-content: flex-end;
}

.admin-static-update-notice button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
}

@keyframes admin-toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.admin-app {
  height: 100vh;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  max-width: 100vw;
  overflow: hidden;
}

.admin-content-shell {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.admin-global-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.admin-global-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-global-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sidebar-brand h2 {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

.admin-dev-badge {
  position: absolute;
  left: calc(100% + 6px);
  top: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ffcf33;
  color: #1c1a12;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(120, 89, 0, 0.16);
}

.admin-global-copy strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.admin-global-copy span {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.admin-global-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-global-account {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-global-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.admin-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  flex: 0 0 auto;
}

.admin-icon-action svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.data-table-primary-link {
  justify-content: flex-start;
  color: var(--text);
  font-weight: 700;
}

.data-table-primary-link:hover {
  color: var(--accent-strong);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px 20px;
  background:
    radial-gradient(circle at top left, rgba(222, 24, 44, 0.18) 0, transparent 170px),
    linear-gradient(180deg, rgba(9, 9, 10, 0.985), rgba(20, 10, 12, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.26);
}

.sidebar-brand > div:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sidebar-brand h2 {
  font-size: 22px;
  line-height: 1.05;
}

.sidebar-brand p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.menu-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 4px;
}

.menu-nav::before {
  content: attr(aria-label);
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  padding: 0 16px 0 36px;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition:
    transform 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.menu-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.menu-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.menu-item:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.menu-item:hover::before,
.menu-item:focus-visible::before {
  background: rgba(255, 255, 255, 0.9);
}

.menu-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(222, 24, 44, 0.22), rgba(222, 24, 44, 0.08) 62%, rgba(255, 255, 255, 0.05) 100%);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px var(--sidebar-glow);
}

.menu-item.is-active::before {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.menu-item.is-active::after {
  background: linear-gradient(180deg, #ff8b97 0, var(--accent) 100%);
  box-shadow: 0 0 18px rgba(255, 48, 72, 0.35);
}

.sidebar-logout {
  width: 100%;
  min-height: 48px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-badge {
  min-width: 56px;
  width: 56px;
  height: 56px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(17, 17, 18, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-badge img {
  object-fit: contain;
}

.admin-main {
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 24px 24px 24px;
  display: grid;
  gap: 26px;
  justify-items: stretch;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.content-view {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.content-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.permission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(12, 12, 13, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.page-toolbar-copy {
  display: grid;
  gap: 8px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-breadcrumb a,
.admin-breadcrumb span {
  color: inherit;
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  color: var(--text);
}

.page-toolbar-copy h2,
.modal-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.enterprise-detail-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.enterprise-detail-back-link {
  min-width: 34px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.enterprise-detail-back-link:hover {
  color: var(--text);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.enterprise-detail-title-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.enterprise-edit-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  flex: 0 0 auto;
}

.enterprise-edit-trigger svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.enterprise-icon-cell {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.enterprise-icon-thumb,
.enterprise-icon-preview {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.enterprise-icon-preview {
  width: 64px;
  height: 64px;
}

.enterprise-icon-placeholder {
  color: var(--muted);
  font-size: 13px;
}

.admin-enterprise-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  vertical-align: middle;
}

.admin-enterprise-name-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 22px;
}

.admin-enterprise-name-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.enterprise-icon-editor {
  display: grid;
  gap: 10px;
}

.enterprise-icon-preview-shell {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.enterprise-icon-upload-zone {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.enterprise-icon-upload-zone:hover,
.enterprise-icon-upload-zone:focus-visible,
.enterprise-icon-upload-zone.is-drag-over {
  border-color: var(--accent, #de182c);
  background: rgba(222, 24, 44, 0.06);
  box-shadow: 0 0 0 3px rgba(222, 24, 44, 0.12);
  outline: none;
}

.enterprise-icon-upload-copy {
  display: grid;
  gap: 6px;
}

.enterprise-icon-upload-copy strong {
  font-size: 14px;
  line-height: 1.5;
}

.enterprise-icon-upload-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.enterprise-domain-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.enterprise-domain-text {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-https-action {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.enterprise-https-action.is-installed {
  border-color: rgba(59, 159, 120, 0.42);
  color: var(--success);
}

.enterprise-certificate-modal-card {
  width: min(560px, calc(100vw - 48px));
}

.certificate-domain-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.certificate-domain-row span {
  color: var(--muted);
  font-size: 13px;
}

.certificate-domain-row strong {
  font-size: 14px;
}

.enterprise-certificate-upload-zone {
  min-height: 132px;
}

.page-toolbar-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.page-toolbar-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  background: rgba(222, 24, 44, 0.16);
  border: 1px solid rgba(222, 24, 44, 0.45);
  color: #ffd9de;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-toolbar-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.page-toolbar-search-group {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.page-toolbar-button-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.enterprise-extension-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  align-self: flex-end;
}

.enterprise-extension-meta-global {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.enterprise-extension-info {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 0;
}

.enterprise-extension-version {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.enterprise-extension-workbench {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  max-width: min(360px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-search {
  min-width: 260px;
  display: grid;
  gap: 6px;
}

.toolbar-search span {
  color: var(--muted);
  font-size: 12px;
}

.toolbar-filter-group {
  min-width: min(420px, 100%);
  display: grid;
  gap: 6px;
}

.toolbar-filter-group > span {
  color: var(--muted);
  font-size: 12px;
}

.toolbar-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.toolbar-filter-button {
  min-height: 34px;
  max-width: 180px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-filter-button:hover,
.toolbar-filter-button:focus-visible,
.toolbar-filter-button.is-active {
  border-color: var(--line-strong);
  background: rgba(222, 24, 44, 0.14);
  color: var(--text);
}

.toolbar-search input,
.toolbar-search select {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.toolbar-search input:focus,
.toolbar-search select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(222, 24, 44, 0.14);
}

.token-list-toolbar {
  align-items: flex-end;
}

.token-list-toolbar .page-toolbar-actions {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.token-list-toolbar .page-toolbar-search-group {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.token-list-toolbar .toolbar-search {
  flex: 0 0 min(320px, 28vw);
}

.token-list-toolbar .toolbar-filter-group {
  flex: 1 1 auto;
  min-width: 220px;
}

.token-list-toolbar .toolbar-filter-buttons {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.token-list-toolbar .toolbar-filter-button {
  flex: 0 0 auto;
}

.token-list-toolbar .page-toolbar-button-group {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.checkbox-field {
  gap: 10px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.permission-editor-grid {
  margin-top: 16px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-user-modal-card {
  width: min(880px, calc(100vw - 40px));
}

.admin-permission-modal-card {
  width: min(980px, calc(100vw - 40px));
}

.admin-permission-modal-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 20px 24px 0;
  overflow: auto;
}

.admin-permission-tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-bottom: 0;
  padding: 0 0 12px;
  background: var(--card-bg);
}

.admin-permission-panel {
  display: grid;
  gap: 16px;
  min-height: 260px;
  align-content: start;
}

.admin-permission-panel .permission-editor-grid,
.admin-permission-panel .permission-detail-list {
  margin-top: 0;
}

.admin-permission-modal-actions {
  padding: 16px 24px 24px;
}

.admin-enterprise-grid {
  max-height: 240px;
  overflow: auto;
}

.empty-state.compact {
  min-height: auto;
  padding: 10px 0;
  font-size: 13px;
}

.two-columns {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.system-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
}

.admin-system-tabs {
  margin-bottom: 16px;
}

.system-tab-panel.hidden {
  display: none;
}

.system-tab-panel {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.system-model-grid {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: start;
}

.overview-content-view {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-height: 0;
  width: 100%;
  justify-self: stretch;
}

.overview-content-view > .page-toolbar {
  grid-row: 1;
}

.overview-content-view > .admin-insight-strip {
  grid-row: 2;
}

.overview-content-view > #overviewActionHint {
  grid-row: 3;
}

.overview-content-view > .overview-grid {
  grid-row: 4;
}

.overview-content-view > .global-message {
  grid-row: 5;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  min-height: 0;
  width: 100%;
  overflow: visible;
  padding-bottom: 4px;
}

.overview-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.panel-card.overview-card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 230px;
  padding: 16px;
}

.overview-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.overview-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.92fr);
  align-items: start;
  gap: 14px;
  min-height: 0;
}

.overview-trend-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}

.overview-trend-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.overview-chart {
  display: grid;
  gap: 6px;
  min-height: 0;
  color: var(--accent);
}

.overview-chart svg {
  width: 100%;
  height: 146px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(248, 250, 252, 0.12));
}

.overview-chart-stage {
  position: relative;
  width: 100%;
  height: 146px;
  min-width: 0;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(248, 250, 252, 0.12));
}

.overview-chart-stage > svg {
  position: absolute;
  inset: 0;
  height: 100%;
  background: transparent;
}

.overview-chart-grid-line {
  stroke: rgba(108, 119, 138, 0.24);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.overview-chart-axis-label {
  fill: rgba(92, 102, 122, 0.76);
  font-size: 10px;
  font-weight: 700;
}

.overview-chart-x-label {
  fill: rgba(92, 102, 122, 0.66);
}

.overview-chart-axis-layer,
.overview-chart-tooltip-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.overview-chart-tooltip-layer {
  z-index: 3;
}

.overview-chart-axis-layer {
  z-index: 2;
}

.overview-chart-axis-layer .overview-chart-axis-label {
  position: absolute;
  color: rgba(92, 102, 122, 0.72);
  fill: currentColor;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.overview-chart-axis-layer .overview-chart-y-label {
  transform: translate(-100%, -50%);
  text-align: right;
}

.overview-chart-axis-layer .overview-chart-x-label {
  color: rgba(92, 102, 122, 0.66);
  transform: translate(-50%, -50%);
}

.overview-chart-axis-layer .overview-chart-x-label.is-start {
  transform: translate(0, -50%);
}

.overview-chart-axis-layer .overview-chart-x-label.is-end {
  transform: translate(-100%, -50%);
}

.overview-chart-area {
  color: var(--accent);
}

.overview-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  filter: drop-shadow(0 3px 6px rgba(92, 111, 160, 0.16));
}

.overview-chart-series-line {
  transition: opacity 120ms ease, stroke-width 120ms ease;
}

.overview-chart-series-line:hover {
  opacity: 1;
  stroke-width: 3.2;
}

.overview-chart-marker-line {
  stroke: rgba(108, 119, 138, 0.34);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.overview-chart-points circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2;
}

.overview-chart-points circle.is-zero {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.6;
  opacity: 0.46;
}

.overview-chart-highlight {
  fill: currentColor;
  stroke: #ffffff;
  stroke-width: 2.6;
  filter: drop-shadow(0 2px 4px rgba(222, 24, 44, 0.22));
}

.overview-chart-tooltip-layer {
  pointer-events: all;
}

.overview-chart-html-tip-target {
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: crosshair;
  overflow: visible;
  pointer-events: auto;
}

.overview-chart-hover-line-html {
  position: absolute;
  top: var(--overview-guide-top);
  left: var(--overview-guide-left);
  width: 0;
  height: var(--overview-guide-height);
  border-left: 1px dashed rgba(108, 119, 138, 0.48);
  opacity: 0;
  transform: translateX(-0.5px);
  transition: opacity 120ms ease;
}

.overview-chart-tooltip-card {
  position: absolute;
  top: var(--overview-tooltip-top);
  left: var(--overview-tooltip-left);
  display: grid;
  gap: 6px;
  width: var(--overview-tooltip-width);
  padding: 10px 12px;
  border: 1px solid rgba(126, 139, 168, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
  color: #111827;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.overview-chart-html-tip-target.is-left-edge .overview-chart-tooltip-card {
  transform: translateX(0);
}

.overview-chart-html-tip-target.is-right-edge .overview-chart-tooltip-card {
  transform: translateX(-100%);
}

.overview-chart-tooltip-card .overview-chart-tooltip-title {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.overview-chart-tooltip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.overview-chart-tooltip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: rgba(92, 102, 122, 0.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-chart-tooltip-row i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--overview-series-color);
}

.overview-chart-tooltip-row strong {
  color: var(--overview-series-color);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.overview-chart-html-tip-target:hover .overview-chart-hover-line-html,
.overview-chart-html-tip-target:hover .overview-chart-tooltip-card {
  opacity: 1;
}

.overview-chart-hit-zone {
  fill: transparent;
  cursor: crosshair;
}

.overview-chart-hover-line,
.overview-chart-hover-point,
.overview-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.overview-chart-hover-line {
  stroke: rgba(108, 119, 138, 0.48);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.overview-chart-hover-point {
  fill: currentColor;
  stroke: #ffffff;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 4px rgba(222, 24, 44, 0.24));
}

.overview-chart-tooltip rect {
  fill: #ffffff;
  stroke: rgba(126, 139, 168, 0.28);
  stroke-width: 1;
  filter: drop-shadow(0 10px 22px rgba(15, 23, 42, 0.2));
}

.overview-chart-tooltip text {
  letter-spacing: 0;
}

.overview-chart-tooltip-title {
  fill: #111827;
  font-size: 12px;
  font-weight: 800;
}

.overview-chart-tooltip-label {
  fill: rgba(92, 102, 122, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.overview-chart-tooltip-value {
  fill: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.overview-chart-tip-target:hover .overview-chart-hover-line,
.overview-chart-tip-target:hover .overview-chart-hover-point,
.overview-chart-tip-target:hover .overview-chart-tooltip {
  opacity: 1;
}

.overview-chart-summary,
.overview-chart-empty {
  color: var(--muted);
  font-size: 12px;
}

.overview-chart-empty {
  display: grid;
  place-items: center;
  min-height: 146px;
  background:
    repeating-linear-gradient(0deg, rgba(108, 119, 138, 0.16) 0 1px, transparent 1px 34px),
    rgba(255, 255, 255, 0.28);
}

.overview-range-control {
  min-width: 150px;
}

.overview-range-menu {
  position: relative;
  overflow: visible;
}

.overview-range-menu .toolbar-select-dropdown {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 150px;
}

.runtime-monitor-range-control {
  min-width: 150px;
}

.runtime-monitor-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.runtime-monitor-summary-item {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 16px 18px;
}

.runtime-monitor-summary-item > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.runtime-monitor-summary-item .summary-item-value {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.runtime-monitor-summary-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.runtime-monitor-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 5fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  height: 600px;
  margin-bottom: 18px;
}

.runtime-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.runtime-monitor-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  width: 100%;
}

.runtime-monitor-panel-wide {
  grid-column: 1 / -1;
}

.runtime-monitor-chart {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.runtime-monitor-chart-plot {
  position: relative;
  min-height: 260px;
  overflow: visible;
}

.runtime-monitor-chart svg {
  width: 100%;
  height: 260px;
  display: block;
  pointer-events: none;
  overflow: visible;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(248, 250, 252, 0.12));
}

#gatewayHealthTable {
  border: 0;
  background: transparent;
}

#gatewayHealthTable .runtime-monitor-chart svg {
  background: transparent;
}

.runtime-monitor-chart-grid-line {
  stroke: rgba(108, 119, 138, 0.24);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.runtime-monitor-chart-axis-label {
  fill: rgba(92, 102, 122, 0.76);
  font-size: 10px;
  font-weight: 700;
}

.runtime-monitor-chart-x-label {
  fill: rgba(92, 102, 122, 0.66);
}

.runtime-monitor-chart-area {
  fill: rgba(222, 24, 44, 0.12);
}

.runtime-monitor-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runtime-monitor-chart-line.is-requests {
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 3px 6px rgba(222, 24, 44, 0.14));
}

.runtime-monitor-chart-line.is-errors {
  stroke: rgba(71, 85, 105, 0.82);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.runtime-monitor-chart-points circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 2;
}

.runtime-monitor-chart-hit-zone {
  fill: transparent;
  cursor: crosshair;
}

.runtime-monitor-chart-hover-line,
.runtime-monitor-chart-hover-point,
.runtime-monitor-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.runtime-monitor-chart-hover-line {
  stroke: rgba(108, 119, 138, 0.48);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.runtime-monitor-chart-hover-point {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2.4;
}

.runtime-monitor-chart-tooltip rect {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(126, 139, 168, 0.24);
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.18));
}

.runtime-monitor-chart-tooltip text {
  letter-spacing: 0;
}

.runtime-monitor-chart-tooltip-title {
  fill: #111827;
  font-size: 12px;
  font-weight: 800;
}

.runtime-monitor-chart-tooltip-label {
  fill: rgba(92, 102, 122, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.runtime-monitor-chart-tooltip-value {
  fill: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.runtime-monitor-chart-tooltip-value.is-secondary {
  fill: #475569;
}

.runtime-monitor-chart-tip-target:hover .runtime-monitor-chart-hover-line,
.runtime-monitor-chart-tip-target:hover .runtime-monitor-chart-hover-point,
.runtime-monitor-chart-tip-target:hover .runtime-monitor-chart-tooltip {
  opacity: 1;
}

.runtime-monitor-chart-axis-labels {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 2;
  height: 16px;
  pointer-events: none;
}

.runtime-monitor-chart-axis-labels span {
  position: absolute;
  top: 0;
  color: rgba(92, 102, 122, 0.66);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.runtime-monitor-chart-axis-labels span.is-start {
  transform: none;
}

.runtime-monitor-chart-axis-labels span.is-end {
  transform: translateX(-100%);
}

.runtime-monitor-chart-html-target {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 28px;
  cursor: crosshair;
  transform: translateX(-50%);
}

.runtime-monitor-chart-html-target::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 54px;
  left: 50%;
  width: 0;
  border-left: 1px dashed rgba(108, 119, 138, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.runtime-monitor-chart-html-tooltip {
  position: absolute;
  top: var(--tip-top);
  left: 50%;
  z-index: 5;
  width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 139, 168, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.runtime-monitor-chart-html-target.is-left-edge .runtime-monitor-chart-html-tooltip {
  left: 0;
  transform: translateY(-4px);
}

.runtime-monitor-chart-html-target.is-right-edge .runtime-monitor-chart-html-tooltip {
  right: 0;
  left: auto;
  transform: translateY(-4px);
}

.runtime-monitor-chart-tooltip-head {
  margin-bottom: 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.runtime-monitor-chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  color: rgba(92, 102, 122, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.runtime-monitor-chart-tooltip-row strong {
  min-width: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.runtime-monitor-chart-tooltip-row strong.is-secondary {
  color: #475569;
}

.runtime-monitor-chart-tooltip-row strong.is-token {
  color: #2563eb;
}

.runtime-monitor-chart-html-target:hover::before,
.runtime-monitor-chart-html-target:hover .runtime-monitor-chart-html-tooltip {
  opacity: 1;
}

.runtime-monitor-chart-html-target:hover .runtime-monitor-chart-html-tooltip {
  transform: translate(-50%, 0);
}

.runtime-monitor-chart-html-target.is-left-edge:hover .runtime-monitor-chart-html-tooltip,
.runtime-monitor-chart-html-target.is-right-edge:hover .runtime-monitor-chart-html-tooltip {
  transform: translateY(0);
}

.runtime-monitor-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-shell {
  --radius: 8px;
  --radius-sm: 4px;
}

.admin-shell button,
.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-shell .page-toolbar,
.admin-shell .panel-card,
.admin-shell .table-shell,
.admin-shell .summary-item,
.admin-shell .admin-insight-item,
.admin-shell .admin-audit-note,
.admin-shell .empty-state,
.admin-shell .checkbox-grid,
.admin-shell .toolbar-filter-button,
.admin-shell .token-provider-marker,
.admin-shell .plain-editor,
.admin-shell .code-editor,
.admin-shell .admin-code-block,
.admin-shell .enterprise-icon-upload-zone,
.admin-shell .certificate-domain-row,
.admin-shell .admin-action-summary {
  border-radius: var(--radius);
}

.modal-card,
.admin-risk-confirm-card,
.token-modal-card,
.gitlab-modal-card,
.workbench-origin-modal-card,
.enterprise-certificate-modal-card,
.admin-user-modal-card,
.admin-permission-modal-card {
  border-radius: var(--radius);
}

.admin-shell .segmented-btn {
  border-radius: 0;
}

.admin-shell .segmented-btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.admin-shell .segmented-btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.admin-shell .chip,
.admin-shell .token-provider-marker-count,
.admin-shell .runtime-monitor-chart-legend i,
.admin-shell .overview-top-bar,
.admin-shell .overview-top-bar i,
.admin-shell .workbench-update-channel-switch,
.admin-shell .workbench-update-channel-thumb {
  border-radius: 999px;
}

.admin-shell .sidebar-badge,
.admin-shell .login-badge,
.admin-shell .rules-enterprise-avatar,
.admin-shell .workbench-user-avatar {
  border-radius: 50%;
}

.admin-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  align-items: stretch;
}

.admin-insight-item {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(142, 153, 181, 0.12);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.admin-insight-item.is-success {
  border-color: rgba(59, 159, 120, 0.32);
  background: rgba(237, 252, 246, 0.86);
}

.admin-insight-item.is-warning {
  border-color: rgba(217, 151, 42, 0.34);
  background: rgba(255, 248, 232, 0.88);
}

.admin-insight-item.is-danger {
  border-color: rgba(217, 75, 92, 0.38);
  background: rgba(255, 239, 241, 0.9);
}

.admin-insight-item.is-disabled {
  background: rgba(239, 242, 247, 0.86);
}

.admin-insight-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-insight-value {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  align-self: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-insight-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chip.danger {
  color: #fff;
  border-color: rgba(217, 75, 92, 0.44);
  background: var(--danger);
}

.admin-risk-confirm-card {
  width: min(560px, calc(100vw - 40px));
}

.admin-risk-confirm-form {
  padding-top: 0;
}

.admin-risk-kicker {
  margin: 0 0 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.admin-action-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.9);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.admin-action-summary.is-danger {
  border-color: rgba(217, 75, 92, 0.42);
  background: rgba(255, 239, 241, 0.94);
}

.admin-action-summary ul {
  margin: 0;
  padding-left: 18px;
}

.admin-action-summary li + li {
  margin-top: 4px;
}

.admin-audit-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-audit-note strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .admin-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .admin-insight-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-card-body {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* admin-02.css */
.runtime-monitor-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.runtime-monitor-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.runtime-monitor-chart-legend i {
  width: 16px;
  height: 3px;
  display: inline-block;
  background: var(--accent);
}

.runtime-monitor-chart-legend i.is-errors {
  background: #475569;
}

.runtime-monitor-table th,
.runtime-monitor-table td {
  white-space: normal;
}

.overview-top-list {
  display: grid;
  align-content: start;
  align-self: start;
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.overview-top-item {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid rgba(126, 139, 168, 0.14);
  background: transparent;
  color: var(--text);
  text-align: left;
  box-shadow: none;
  cursor: default;
  outline: 0;
}

.overview-top-item:last-child {
  border-bottom: 0;
}

.overview-top-item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  background: var(--overview-series-color, transparent);
}

.overview-top-item:hover,
.overview-top-item:focus-visible,
.overview-top-item.is-selected {
  background: rgba(239, 246, 255, 0.72);
}

.overview-top-item:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(222, 24, 44, 0.32);
}

.overview-top-item.is-selected::before {
  background: var(--accent);
}

.overview-top-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.overview-top-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-top-marker {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--overview-series-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--overview-series-color, var(--accent)) 16%, transparent);
}

.overview-top-value {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.overview-top-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  background: rgba(126, 139, 168, 0.16);
}

.overview-top-bar i {
  display: block;
  height: 100%;
  background: var(--overview-series-color, var(--accent));
}

.panel-card {
  padding: 22px;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(14, 14, 16, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.list-page-card {
  min-height: 420px;
}

.detail-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.detail-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-tab {
  min-height: 40px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.detail-tab.is-active {
  color: #fff;
  background: rgba(222, 24, 44, 0.16);
  border-color: var(--line-strong);
}

.detail-panel {
  display: block;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.table-shell {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.list-table-shell {
  min-height: 420px;
}

.detail-panel .panel-card > .table-shell {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

#enterpriseStorageResourceList {
  width: calc(100% + 44px);
  max-width: none;
}

.storage-type-link {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 158px;
}

.storage-type-link strong,
.storage-page-title span:last-child,
.storage-resource-title strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.storage-type-link small,
.storage-resource-title > div > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.storage-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.storage-type-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.storage-page-title,
.storage-resource-title {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.storage-resource-title {
  display: grid;
  margin-bottom: 16px;
}

.storage-page-title .storage-type-icon,
.storage-resource-title .storage-type-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.storage-page-title .storage-type-icon svg,
.storage-resource-title .storage-type-icon svg {
  width: 29px;
  height: 29px;
}

.storage-detail-table-shell {
  width: calc(100% + 44px);
  max-width: none;
  margin: 0 -22px -22px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
}

.storage-table-counts {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.storage-table-counts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.storage-table-counts-head strong {
  color: var(--text);
  font-size: 14px;
}

.storage-table-counts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.storage-table-count-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.storage-table-count-item span {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.storage-table-count-item strong {
  color: #ffd9de;
  font-size: 16px;
  line-height: 1;
}

.enterprise-workbench-skeleton-shell {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.enterprise-workbench-skeleton-row {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr) 0.7fr 0.9fr;
  gap: 12px;
}

.enterprise-workbench-skeleton-block {
  display: block;
  min-height: 44px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: enterprise-skeleton-shimmer 1.4s ease-in-out infinite;
}

.enterprise-workbench-skeleton-block.is-wide {
  min-height: 52px;
}

.enterprise-workbench-skeleton-block.is-narrow {
  min-height: 36px;
}

@keyframes enterprise-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

#enterpriseGitlabResourceList {
  margin-top: 16px;
}

#enterpriseWorkbenchList .enterprise-workbenches-context {
  margin-bottom: 8px;
}

#enterpriseWorkbenchList .data-table th,
#enterpriseWorkbenchList .data-table td {
  padding: 12px 14px;
}

#enterpriseWorkbenchList .workbench-project-subtable-shell {
  padding: 10px 12px 12px;
}

.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.data-table tbody tr:hover {
  background: rgba(222, 24, 44, 0.06);
}

.data-table tbody tr.is-disabled-token {
  background: rgba(126, 139, 168, 0.08);
  color: #8a93a6;
}

.data-table tbody tr.is-disabled-token:hover {
  background: rgba(126, 139, 168, 0.12);
}

.data-table tbody tr.is-disabled-token td,
.data-table tbody tr.is-disabled-token .muted,
.data-table tbody tr.is-disabled-token .token-relation-secondary,
.data-table tbody tr.is-disabled-token code,
.data-table tbody tr.is-disabled-token a {
  color: #8a93a6;
}

.data-table tbody tr.is-disabled-token .token-usage-hourly-chart,
.data-table tbody tr.is-disabled-token .token-today-usage {
  opacity: 0.58;
}

.data-table tbody tr.is-disabled-token .chip,
.data-table tbody tr.is-disabled-token .table-actions {
  opacity: 0.82;
}

.data-table tbody tr.is-disabled-token .token-status-cell,
.data-table tbody tr.is-disabled-token .status-segmented-control {
  color: var(--text);
  opacity: 1;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.token-actions-cell {
  width: 188px;
  min-width: 188px;
}

.token-actions-cell .table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  grid-auto-rows: 32px;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  max-height: 72px;
  overflow: hidden;
}

.token-actions-cell .table-actions button {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding-inline: 8px;
  white-space: nowrap;
}

.token-relation-stack {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 220px;
}

.token-relation-primary {
  font-weight: 700;
}

.token-relation-secondary {
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.token-config-status-cell {
  min-width: 96px;
  white-space: nowrap;
}

.token-config-status-cell .chip {
  white-space: nowrap;
}

.token-today-usage-cell {
  min-width: 160px;
}

.token-today-usage {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.token-today-usage strong,
.token-today-usage .muted {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.token-last-used-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.token-last-used-cell > span {
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.token-last-used-time.is-stale {
  color: rgba(138, 147, 166, 0.54);
}

.token-session-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface-muted);
  font-size: 12px;
  line-height: 1.35;
}

.token-session-status span,
.token-session-status small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-session-status small {
  max-width: 96px;
  color: var(--text-muted);
}

.token-session-status.is-success {
  color: #0f684c;
  background: var(--soft-success-bg);
  border-color: rgba(59, 159, 120, 0.28);
}

.token-session-status.is-error {
  color: #a83e51;
  background: var(--soft-danger-bg);
  border-color: rgba(217, 75, 92, 0.24);
}

.token-session-status.is-warning,
.token-session-status.is-running {
  color: #8a5800;
  background: var(--soft-warning-bg);
  border-color: rgba(245, 158, 11, 0.28);
}

.enterprise-token-usage-cell {
  min-width: 150px;
}

.enterprise-token-usage {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.enterprise-token-usage strong,
.enterprise-token-usage .muted {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.enterprise-token-usage-empty {
  color: var(--muted);
}

.workbench-status-stack {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.workbench-agent-status {
  font-size: 12px;
  color: var(--muted);
}

.workbench-status-version-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}

.workbench-status-version-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-agent-status.is-online {
  color: var(--success);
}

.workbench-agent-status.is-offline {
  color: #ffb3bc;
}

.workbench-status-evidence {
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workbench-enterprise-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-table-group-row td,
.workbench-enterprise-group-row td {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.admin-table-group-head,
.workbench-enterprise-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table-group-head::before,
.workbench-enterprise-group-head::before {
  content: "";
  width: 10px;
  height: 18px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.admin-table-group-head strong,
.workbench-enterprise-group-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.admin-table-group-row.is-nested td {
  padding-left: 34px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-table-group-head.is-nested {
  color: var(--muted);
  font-size: 12px;
}

.admin-table-group-head.is-nested::before {
  width: 8px;
  height: 14px;
  background: var(--accent-strong);
}

.data-table tbody tr.is-nested-child-row > td:first-child {
  padding-left: 34px;
}

.data-table tbody tr.workbench-group-child-row > td:not(:first-child) {
  padding-left: 24px;
}

.workbench-online-cell {
  width: 190px;
}

.workbench-online-users {
  display: grid;
  gap: 6px;
  max-width: 190px;
  min-width: 0;
}

.workbench-online-user {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.workbench-online-avatar,
.workbench-online-more {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(222, 24, 44, 0.24);
  border-radius: 50%;
  background: rgba(222, 24, 44, 0.1);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
}

.workbench-online-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workbench-online-name {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-online-more {
  width: auto;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(126, 139, 168, 0.12);
  color: var(--muted);
}

.workbench-online-empty {
  color: var(--muted);
}

.project-authorized-users {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.project-authorized-users-cell {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
}

.workbench-project-actions-cell {
  width: 88px;
  min-width: 88px;
  text-align: right;
}

.workbench-project-actions {
  display: flex;
  justify-content: flex-end;
}

.project-authorized-user {
  display: inline-grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  box-sizing: border-box;
  max-width: 82px;
  height: 24px;
  min-width: 0;
  min-height: 24px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.project-authorized-user-avatar {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(77, 105, 177, 0.12);
  color: #4d69b1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.project-authorized-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-authorized-user-more {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-authorized-user-empty {
  color: var(--muted);
  font-size: 12px;
}

.project-authorized-user-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin-left: auto;
  border: 1px solid rgba(57, 103, 214, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.project-authorized-user-add svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.project-authorized-user-checklist {
  display: grid;
  gap: 2px;
  box-sizing: border-box;
  min-height: 44px;
  max-height: 320px;
  overflow: auto;
  padding: 0;
}

.project-authorized-user-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-authorized-user-field-head input {
  width: min(220px, 62%);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.project-authorized-user-field-head input:focus {
  border-color: rgba(57, 103, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(57, 103, 214, 0.10);
}

.project-authorized-user-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
}

.project-authorized-user-option.is-filter-hidden {
  display: none;
}

.project-authorized-user-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--primary);
}

.project-authorized-user-option-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-authorized-user-option-name,
.project-authorized-user-option-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-authorized-user-field .project-authorized-user-option-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.project-authorized-user-field .project-authorized-user-option-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.project-authorized-user-add:hover {
  background: rgba(57, 103, 214, 0.08);
}

.workbench-actions-cell .table-actions {
  padding-left: 8px;
}

.workbench-resource-cell {
  width: 260px;
}

.workbench-resource-stack {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.workbench-resource-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workbench-resource-meta {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
}

.workbench-resource-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.workbench-resource-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.workbench-resource-total {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workbench-resource-row .workbench-usage {
  width: 100%;
  min-width: 0;
}

.workbench-sparkline {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.workbench-token-usage-cell {
  min-width: 160px;
}

.workbench-sparkline-chart {
  width: 100%;
  height: 44px;
  padding: 6px 0 0;
  background: transparent;
}

.workbench-sparkbar-bars {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
}

.workbench-sparkbar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.workbench-sparkbar-fill {
  width: 56%;
  min-height: 8px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 160, 171, 0.86), rgba(222, 24, 44, 0.96));
  box-shadow: none;
}

.workbench-sparkbar.is-current .workbench-sparkbar-fill {
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.92), rgba(255, 159, 28, 0.98));
}

.workbench-sparkline-text {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.workbench-sparkline-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.workbench-project-subtable-row > td {
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.02);
}

.workbench-project-subtable-shell {
  padding: 14px 16px 18px;
  overflow-x: auto;
}

.workbench-project-subtable {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.enterprise-workbenches-context {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  min-height: 28px;
}

.enterprise-workbenches-context-name .admin-enterprise-name-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.project-domain-link {
  overflow-wrap: anywhere;
}

.project-id-stack {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.project-id-main {
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-id-domain {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workbench-project-skeleton-table tbody td {
  height: 48px;
}

.workbench-project-skeleton-table .admin-skeleton-line {
  height: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.permission-detail-list {
  margin-top: 16px;
  min-height: 112px;
}

.permission-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.permission-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.permission-pill.active {
  border-color: rgba(222, 24, 44, 0.4);
  background: rgba(222, 24, 44, 0.14);
  color: #ffd9de;
}

.chip.active {
  color: #ffffff;
  background: rgba(75, 211, 154, 0.12);
  border-color: rgba(75, 211, 154, 0.3);
}

.chip.disabled {
  color: #ffd1d6;
  background: rgba(255, 77, 95, 0.12);
  border-color: rgba(255, 77, 95, 0.28);
}

.chip.warning {
  color: #ffd98a;
  background: rgba(255, 177, 66, 0.12);
  border-color: rgba(255, 177, 66, 0.3);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.summary-section {
  display: grid;
  gap: 12px;
}

.summary-section + .summary-section {
  margin-top: 18px;
}

.summary-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.workbench-overview-sections {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.workbench-overview-sections .summary-section {
  min-width: 0;
}

.workbench-overview-sections .summary-section + .summary-section {
  margin-top: 0;
}

.workbench-overview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.workbench-overview-field {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.workbench-overview-field.is-wide {
  grid-column: 1 / -1;
}

.workbench-overview-sections .summary-item-value {
  min-width: 0;
  margin-top: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.workbench-detail-toolbar {
  display: none;
}

.workbench-detail-toolbar .page-toolbar-actions {
  width: auto;
}

.workbench-detail-navigation {
  align-items: center;
}

.workbench-detail-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workbench-detail-tabs-back {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.workbench-detail-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.workbench-detail-status-card {
  height: 104px;
  min-height: 104px;
  max-height: 104px;
}

.workbench-detail-status-card .admin-insight-value {
  font-size: 22px;
}

.workbench-detail-status-card .admin-insight-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.workbench-resource-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 26px rgba(142, 153, 181, 0.1);
}

.workbench-resource-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.workbench-resource-card-head span {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.workbench-resource-card-head small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-overview-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.enterprise-overview-basic-grid {
  margin-top: 14px;
}

.enterprise-overview-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.enterprise-recent-usage-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.enterprise-recent-usage-card .token-usage-bar-bars {
  height: 180px;
}

.enterprise-recent-usage-body {
  min-width: 0;
}

.enterprise-overview-usage-card {
  min-height: 334px;
}

.enterprise-usage-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.enterprise-usage-chart-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.enterprise-usage-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.enterprise-usage-chart-head h3 {
  margin: 0;
  font-size: 15px;
}

.enterprise-usage-chart-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.enterprise-usage-line-chart {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.enterprise-usage-line-chart svg {
  width: 100%;
  height: 220px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.025);
}

.enterprise-usage-line-night {
  fill: rgba(0, 0, 0, 0.22);
}

.enterprise-usage-line-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.enterprise-usage-line-path {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.enterprise-usage-line-path.total,
.enterprise-usage-line-legend-item.total span {
  stroke: #ff6b76;
  background: #ff6b76;
}

.enterprise-usage-line-path.project-1,
.enterprise-usage-line-legend-item.project-1 span { stroke: #ff6b76; background: #ff6b76; }
.enterprise-usage-line-path.project-2,
.enterprise-usage-line-legend-item.project-2 span { stroke: #6bd6ff; background: #6bd6ff; }
.enterprise-usage-line-path.project-3,
.enterprise-usage-line-legend-item.project-3 span { stroke: #ffd166; background: #ffd166; }
.enterprise-usage-line-path.project-4,
.enterprise-usage-line-legend-item.project-4 span { stroke: #8ee28e; background: #8ee28e; }
.enterprise-usage-line-path.project-5,
.enterprise-usage-line-legend-item.project-5 span { stroke: #c99cff; background: #c99cff; }
.enterprise-usage-line-path.project-6,
.enterprise-usage-line-legend-item.project-6 span { stroke: #ff9f6b; background: #ff9f6b; }
.enterprise-usage-line-path.project-7,
.enterprise-usage-line-legend-item.project-7 span { stroke: #9be7d8; background: #9be7d8; }
.enterprise-usage-line-path.project-8,
.enterprise-usage-line-legend-item.project-8 span { stroke: #f78acb; background: #f78acb; }

.enterprise-usage-line-axis,
.enterprise-usage-line-summary,
.enterprise-usage-line-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.enterprise-usage-line-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enterprise-usage-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.enterprise-usage-line-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.enterprise-usage-line-legend-item span {
  width: 10px;
  height: 2px;
}

.enterprise-usage-line-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
}

.plugin-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.summary-item-accent {
  background: rgba(222, 24, 44, 0.08);
  border-color: rgba(255, 77, 95, 0.24);
}

.plugin-detail-card {
  position: relative;
  min-height: 120px;
  padding: 16px 56px 16px 16px;
}

@media (max-width: 1180px) {
  .enterprise-usage-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plugin-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workbench-overview-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-overview-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .plugin-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.summary-item-label {
  color: var(--muted);
  font-size: 13px;
}

.summary-item-value {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.admin-skeleton {
  display: grid;
  gap: 12px;
  width: 100%;
}

.admin-skeleton-table,
.admin-skeleton-list {
  min-width: 0;
}

.admin-skeleton-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-skeleton-row,
.admin-skeleton-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-skeleton-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  padding: 14px;
}

.admin-skeleton-card {
  display: grid;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
}

.admin-skeleton-line {
  display: block;
  width: 72%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.34), rgba(148, 163, 184, 0.16));
  background-size: 220% 100%;
  animation: admin-skeleton-shimmer 1.25s ease-in-out infinite;
}

.admin-skeleton-line.is-wide {
  width: 96%;
}

.admin-skeleton-line.is-short {
  width: 42%;
}

@keyframes admin-skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.summary-item-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.workbench-usage {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.workbench-gateway-stack {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.workbench-gateway-link-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.workbench-gateway-link-row .data-table-primary-link {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.workbench-gateway-origin {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.workbench-gateway-origin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
  flex-wrap: wrap;
}

.workbench-gateway-origin-row .workbench-gateway-origin {
  flex: 1 1 180px;
  min-width: 0;
}

.workbench-gateway-channel-row {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.workbench-origin-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  line-height: 1;
}

.workbench-origin-select-btn:hover,
.workbench-origin-select-btn:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
}

.workbench-origin-select-btn svg {
  width: 14px;
  height: 14px;
}

.workbench-origin-locked-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
}

.workbench-update-channel-control {
  display: inline-flex;
  align-items: center;
  width: 116px;
  min-width: 116px;
}

.workbench-update-channel-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 116px;
  min-width: 116px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(126, 139, 168, 0.28);
  border-radius: 8px;
  background: rgba(247, 249, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.workbench-update-channel-switch.is-readonly {
  cursor: default;
}

.workbench-update-channel-switch:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.workbench-update-channel-switch.is-pending {
  cursor: wait;
  opacity: 0.72;
}

.workbench-update-channel-switch.is-cos {
  border-color: rgba(93, 114, 170, 0.36);
  background: rgba(229, 237, 255, 0.86);
}

.workbench-update-channel-switch.is-agent {
  border-color: rgba(59, 159, 120, 0.36);
  background: rgba(226, 246, 238, 0.86);
}

.workbench-update-channel-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 54px;
  height: 24px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease;
}

.workbench-update-channel-switch.is-agent .workbench-update-channel-thumb {
  transform: translateX(56px);
}

.workbench-update-channel-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: rgba(93, 102, 124, 0.78);
  pointer-events: none;
}

.workbench-update-channel-switch.is-cos .workbench-update-channel-label.is-cos {
  color: #405b9c;
}

.workbench-update-channel-switch.is-agent .workbench-update-channel-label.is-agent {
  color: #0f684c;
}

.workbench-gateway-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.workbench-primary-star {
  flex: 0 0 auto;
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
}

.workbench-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.workbench-token-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(222, 24, 44, 0.24);
  background: rgba(222, 24, 44, 0.08);
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.workbench-token-pill.is-disabled {
  border-color: rgba(126, 139, 168, 0.28);
  background: rgba(126, 139, 168, 0.1);
  color: var(--muted);
}

.workbench-token-pill code {
  max-width: 220px;
  overflow: hidden;
  color: inherit;
  font-family: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-token-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workbench-usage-bar {
  position: relative;
  width: 100%;
  height: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.workbench-usage-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, #23836c 0%, #4bd39a 100%);
  border-radius: inherit;
}

.workbench-usage-text {
  min-width: 0;
  color: #2f64d6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-usage-percent {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.46);
  white-space: nowrap;
}

.workbench-usage:not(.is-warn):not(.is-danger) .workbench-usage-fill {
  background: linear-gradient(90deg, #23836c 0%, #4bd39a 100%);
}

.workbench-usage.is-warn .workbench-usage-fill {
  background: linear-gradient(90deg, #a36b00 0%, #ffd166 100%);
}

.workbench-usage.is-danger .workbench-usage-fill {
  background: linear-gradient(90deg, #8f0c18 0%, #de182c 62%, #ff5a67 100%);
}

.workbench-runtime-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.workbench-runtime-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 22px;
  min-width: 0;
}

.workbench-runtime-line.is-docker {
  flex: 1 0 100%;
}

.workbench-runtime-line.has-upgrade {
  gap: 6px;
}

.workbench-runtime-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.workbench-runtime-label svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.workbench-runtime-label.is-docker,
.workbench-runtime-label.is-compose {
  color: #1d63ed;
}

.workbench-runtime-label.is-git {
  color: #f05033;
}

.workbench-runtime-label.is-codex {
  color: #111827;
}

.workbench-runtime-label.is-playwright {
  color: #2f855a;
}

.workbench-runtime-label.is-browsers {
  color: #0f766e;
}

.workbench-runtime-current {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 86px;
  color: #334155;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-runtime-line.is-docker .workbench-runtime-current {
  flex: 1 1 auto;
  max-width: none;
}

.workbench-runtime-upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 3px;
  width: auto;
  min-width: 40px;
  height: 22px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  white-space: nowrap;
  align-self: center;
}

.workbench-runtime-upgrade-btn svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.workbench-runtime-upgrade-btn::after {
  content: "升级";
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.admin-shell .workbench-runtime-upgrade-btn {
  border-radius: 999px;
}

.workbench-version-upgrade-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.workbench-version-upgrade-btn:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.52;
}

.workbench-runtime-upgrade-btn.is-upgrading {
  min-width: 58px;
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(219, 234, 254, 0.98);
  color: #1d4ed8;
  opacity: 1;
}

.workbench-runtime-upgrade-btn.is-upgrading svg {
  display: none;
}

.workbench-runtime-upgrade-btn.is-upgrading::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid rgba(37, 99, 235, 0.22);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: workbench-runtime-spin 0.8s linear infinite;
}

.workbench-runtime-upgrade-btn.is-upgrading::after {
  content: "升级中";
}

@keyframes workbench-runtime-spin {
  to {
    transform: rotate(360deg);
  }
}

.workbench-runtime-upgrade-btn:hover,
.workbench-runtime-upgrade-btn:focus-visible,
.workbench-runtime-upgrade-btn:active {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(219, 234, 254, 0.98);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  transform: none;
}

.workbench-version-upgrade-btn:hover,
.workbench-version-upgrade-btn:focus-visible,
.workbench-version-upgrade-btn:active {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.project-runtime-framework {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-runtime-icons {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
}

.project-runtime-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.project-runtime-framework-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workbench-usage-empty {
  color: var(--muted);
  font-size: 12px;
}

.summary-item-value .workbench-usage,
.workbench-overview-field .workbench-usage {
  width: min(100%, 320px);
  min-width: 0;
}

.token-usage-hourly-cell {
  min-width: 0;
}

.token-usage-hourly-chart {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: min(100%, 220px);
}

.token-usage-hourly-bars {
  display: grid;
  grid-template-columns: repeat(24, 4px);
  align-items: end;
  justify-content: start;
  gap: 1px;
  height: 38px;
  padding: 0;
}

.token-usage-hourly-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.token-usage-hourly-bar-fill {
  display: block;
  width: 100%;
  min-height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.token-usage-hourly-bar.has-value .token-usage-hourly-bar-fill {
  background: linear-gradient(180deg, #ff7b86 0%, #de182c 62%, #8f0c18 100%);
}

.token-usage-hourly-axis,
.token-usage-hourly-summary,
.token-usage-hourly-empty {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.token-usage-hourly-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.token-usage-hourly-axis span {
  min-width: max-content;
  white-space: nowrap;
}

.token-usage-hourly-summary {
  white-space: normal;
}

.token-usage-hourly-empty {
  min-width: 0;
  max-width: 100%;
}

.modal-card.plugin-prepare-modal-card {
  width: min(1960px, calc(100vw - 48px));
}

.icon-plain {
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.plugin-detail-copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.plugin-detail-copy-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.token-plain-result {
  padding: 14px 16px;
  border-radius: 0;
  background: rgba(222, 24, 44, 0.08);
  border: 1px solid rgba(222, 24, 44, 0.18);
  color: var(--text);
  line-height: 1.6;
}

.global-message {
  display: none;
}

.empty-state {
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 0;
  color: var(--muted);
  text-align: center;
}

.gitlab-resource-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.gitlab-resource-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gitlab-resource-head h3,
.gitlab-resource-panel-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.gitlab-resource-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.gitlab-user-resource-notice {
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.gitlab-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gitlab-resource-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.gitlab-resource-panel-title {
  font-size: 15px;
}

.gitlab-resource-chip-list,
.gitlab-resource-project-list {
  display: grid;
  gap: 10px;
}

.gitlab-resource-chip,
.gitlab-resource-project {
  display: block;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.gitlab-resource-chip {
  padding: 10px 12px;
}

.gitlab-resource-project {
  padding: 12px 14px;
}

.gitlab-resource-chip:hover,
.gitlab-resource-project:hover {
  border-color: var(--line-strong);
  background: rgba(222, 24, 44, 0.08);
}

.gitlab-resource-project strong,
.gitlab-resource-project span {
  display: block;
}

.gitlab-resource-project strong {
  font-size: 13px;
}

.gitlab-resource-project span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.gitlab-resource-group-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.gitlab-resource-group-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gitlab-resource-group-row td {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.gitlab-resource-group-row.is-pending-delete td,
.gitlab-resource-project-row.is-pending-delete td {
  background: var(--pending-delete-row-bg);
  color: var(--pending-delete-text);
}

.gitlab-resource-project-row td:first-child {
  padding-left: 32px;
}

.gitlab-resource-project-row td:first-child .gitlab-resource-project-link {
  margin-right: 10px;
}

.gitlab-resource-project-row td:not(:first-child) {
  padding-left: 24px;
}

.gitlab-resource-inline-placeholder {
  color: #8d98ad;
  font-size: 12px;
  font-weight: 650;
}

.gitlab-resource-action-cell {
  width: 96px;
  text-align: right;
  white-space: nowrap;
}

.gitlab-resource-delete-btn {
  vertical-align: middle;
}

.gitlab-resource-delete-btn.is-pending {
  position: relative;
  padding-left: 30px;
  opacity: 0.88;
  cursor: wait;
  box-shadow: 0 0 0 1px rgba(255, 122, 134, 0.18), 0 0 18px rgba(222, 24, 44, 0.16);
  animation: gitlab-delete-pulse 1.1s ease-in-out infinite;
}

.gitlab-resource-delete-btn.is-pending::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 18px;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 3px 50%, #fff 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 9px 50%, #fff 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 15px 50%, #fff 0 1.5px, transparent 1.9px);
  animation: gitlab-delete-pulse 1.1s ease-in-out infinite;
}

.gitlab-binding-resource-row > td {
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.02);
}

.gitlab-binding-resource-shell {
  padding: 14px 16px 18px;
}

.gitlab-resource-group-link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.gitlab-resource-group-row.is-pending-delete .gitlab-resource-group-link,
.gitlab-resource-group-row.is-pending-delete .gitlab-resource-group-link.is-static,
.gitlab-resource-project-row.is-pending-delete .gitlab-resource-project-link {
  color: var(--pending-delete-link);
}

.gitlab-resource-group-link.is-static {
  cursor: default;
}

.gitlab-resource-group-link:hover {
  color: var(--brand);
}

.gitlab-resource-group-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(222, 24, 44, 0.24);
  background: rgba(222, 24, 44, 0.12);
  color: #ffd7dc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gitlab-resource-delete-scheduled-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 184, 77, 0.28);
  background: rgba(255, 184, 77, 0.12);
  color: #ffe3a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gitlab-resource-table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.gitlab-resource-project-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.gitlab-resource-project-link.is-static {
  cursor: default;
}

.gitlab-user-table.data-table {
  table-layout: fixed;
}

.gitlab-user-table.data-table th,
.gitlab-user-table.data-table td {
  padding: 10px 12px;
  overflow-wrap: normal;
  word-break: normal;
}

.gitlab-user-table th:nth-child(1),
.gitlab-user-table td:nth-child(1) {
  width: 168px;
}

.gitlab-user-table th:nth-child(2),
.gitlab-user-table td:nth-child(2) {
  width: 132px;
}

.gitlab-user-table th:nth-child(3),
.gitlab-user-table td:nth-child(3) {
  width: 86px;
}

.gitlab-user-table th:nth-child(4),
.gitlab-user-table td:nth-child(4) {
  width: 138px;
}

.gitlab-user-actions-cell {
  width: 218px;
}

.gitlab-user-actions-cell .table-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.gitlab-user-actions-cell .table-actions button {
  white-space: nowrap;
  padding-inline: 10px;
}

.gitlab-user-name-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gitlab-user-email,
.gitlab-user-last-login.is-empty,
.gitlab-user-project-empty {
  color: var(--muted);
}

.gitlab-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.gitlab-user-project-cell {
  min-width: 0;
  max-width: none;
}

.gitlab-user-project-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  max-height: 56px;
  overflow: hidden;
}

.gitlab-user-project-list.is-expanded {
  max-height: none;
}

.gitlab-user-project-chip,
.gitlab-user-project-more {
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(222, 24, 44, 0.22);
  background: rgba(222, 24, 44, 0.1);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gitlab-user-project-chip {
  overflow: hidden;
  text-overflow: ellipsis;
}

.gitlab-user-project-more {
  border-color: rgba(126, 139, 168, 0.28);
  background: rgba(126, 139, 168, 0.12);
  color: var(--muted);
  cursor: pointer;
}

.gitlab-user-project-chip:hover,
.gitlab-user-project-more:hover {
  border-color: var(--line-strong);
  color: var(--brand);
}

.gitlab-resource-group-row.is-pending-delete .gitlab-resource-group-count-badge {
  border-color: var(--pending-delete-badge-border);
  background: var(--pending-delete-badge-bg);
  color: var(--pending-delete-badge-text);
}

.gitlab-resource-group-row.is-pending-delete .gitlab-resource-delete-scheduled-badge,
.gitlab-resource-project-row.is-pending-delete .gitlab-resource-delete-scheduled-badge {
  border-color: var(--pending-delete-badge-border);
  background: var(--pending-delete-badge-bg);
  color: var(--pending-delete-badge-text);
}

.gitlab-resource-group-row.is-pending-delete .chip.disabled,
.gitlab-resource-project-row.is-pending-delete .chip.disabled {
  opacity: 0.78;
}

.gitlab-resource-project-link:hover {
  color: var(--brand);
}

.gitlab-resource-project-link.is-static:hover {
  color: var(--text);
}

@keyframes gitlab-delete-pulse {
  0%,
  100% {
    transform: translateY(0);
    filter: saturate(1);
  }
  50% {
    transform: translateY(-1px);
    filter: saturate(1.15);
  }
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(520px, 100%);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(12, 12, 13, 0.94);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.token-modal-card {
  width: min(980px, calc(100vw - 48px));
}

.token-sync-secret-card {
  width: min(860px, calc(100vw - 48px));
}

.token-sync-secret-card .stack-form {
  gap: 16px;
}

.token-sync-docs {
  display: grid;
  gap: 14px;
}

.token-sync-doc {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.token-sync-doc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.token-sync-doc-head strong {
  font-size: 14px;
}

.token-sync-doc-body {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.token-sync-doc-body pre {
  max-width: 100%;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.62);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.token-provider-marker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token-provider-marker {
  min-height: 32px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.token-provider-marker:hover,
.token-provider-marker:focus-visible {
  border-color: var(--line-strong);
  background: rgba(222, 24, 44, 0.12);
}

.gitlab-modal-card {
  width: min(1120px, calc(100vw - 48px));
}

.workbench-origin-modal-card {
  width: min(640px, calc(100vw - 40px));
}

.workbench-runtime-upgrade-modal-card {
  width: min(760px, calc(100vw - 40px));
}

.workbench-runtime-upgrade-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  max-height: min(68vh, 680px);
  padding: 20px 24px 0;
  overflow: auto;
}

.workbench-runtime-upgrade-body .bootstrap-status-list {
  display: grid;
  gap: 10px;
  padding: 2px 0 6px;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 76px;
  align-items: start;
  gap: 12px;
  min-height: 0;
  padding: 13px 14px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 22px rgba(142, 153, 181, 0.1);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step.is-running {
  border-color: rgba(178, 122, 17, 0.28);
  background: rgba(255, 249, 232, 0.84);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step.is-completed {
  border-color: rgba(59, 159, 120, 0.24);
  background: rgba(239, 252, 247, 0.82);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step.is-failed {
  border-color: rgba(217, 75, 92, 0.24);
  background: rgba(255, 241, 243, 0.84);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(126, 139, 168, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step.is-running .cos-runtime-publish-step-index {
  border-color: #b27a11;
  color: #8a5a00;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step.is-completed .cos-runtime-publish-step-index {
  border-color: var(--success);
  color: var(--success);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step.is-failed .cos-runtime-publish-step-index {
  border-color: var(--danger);
  color: var(--danger);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step-copy p,
.workbench-runtime-upgrade-body .cos-runtime-publish-step-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step-copy p.is-error {
  color: var(--danger);
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.workbench-runtime-upgrade-body .cos-runtime-publish-step .chip {
  justify-self: end;
  width: 66px;
  min-width: 66px;
  min-height: 28px;
  margin-top: 0;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
}

.workbench-runtime-upgrade-status-card {
  display: grid;
  gap: 7px;
}

.workbench-runtime-upgrade-status-card .bootstrap-status-head {
  margin-bottom: 2px;
}

.workbench-runtime-upgrade-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.workbench-runtime-upgrade-resource-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.74);
}

.workbench-runtime-upgrade-resource-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.workbench-runtime-upgrade-resource-title strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.workbench-runtime-upgrade-resource-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.workbench-runtime-upgrade-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workbench-runtime-upgrade-resource-meter {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workbench-runtime-upgrade-resource-head {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.workbench-runtime-upgrade-resource-head strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.workbench-runtime-upgrade-resource-head em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-runtime-upgrade-resource-meter.is-empty .workbench-usage {
  opacity: 0.62;
}

.workbench-runtime-upgrade-steps {
  display: grid;
  gap: 6px;
  max-height: 300px;
  margin-top: 8px;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: #f8fafc;
}

.workbench-runtime-upgrade-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 7px;
  background: #fff;
}

.workbench-runtime-upgrade-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.88);
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.workbench-runtime-upgrade-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workbench-runtime-upgrade-step-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.workbench-runtime-upgrade-step-copy span,
.workbench-runtime-upgrade-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.workbench-runtime-upgrade-step em {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.workbench-runtime-upgrade-step.is-running .workbench-runtime-upgrade-step-index {
  background: rgba(254, 243, 199, 0.92);
  color: #a16207;
}

.workbench-runtime-upgrade-step.is-completed .workbench-runtime-upgrade-step-index {
  background: rgba(220, 252, 231, 0.92);
  color: #15803d;
}

.workbench-runtime-upgrade-step.is-failed .workbench-runtime-upgrade-step-index {
  background: rgba(255, 228, 230, 0.92);
  color: #be123c;
}

@media (max-width: 560px) {
  .workbench-runtime-upgrade-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-runtime-upgrade-resource-head {
    grid-template-columns: 16px auto;
  }

  .workbench-runtime-upgrade-resource-head em {
    grid-column: 1 / -1;
    text-align: left;
  }

  .workbench-runtime-upgrade-body .cos-runtime-publish-step {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .workbench-runtime-upgrade-body .cos-runtime-publish-step .chip {
    grid-column: 2;
    justify-self: start;
  }

  .workbench-runtime-upgrade-step {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .workbench-runtime-upgrade-step em {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .workbench-runtime-upgrade-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.workbench-origin-modal-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 20px 24px 0;
  overflow: auto;
}

.workbench-origin-option-list {
  display: grid;
  gap: 10px;
}

.workbench-origin-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.workbench-origin-option:hover,
.workbench-origin-option:focus-within,
.workbench-origin-option.is-selected {
  border-color: var(--line-strong);
  background: rgba(222, 24, 44, 0.08);
}

.workbench-origin-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.workbench-origin-option-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workbench-origin-option-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.workbench-origin-option-meta {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.token-usage-modal-layout {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
  overflow: auto;
}

.token-usage-modal-summary,
.token-usage-modal-tables {
  grid-column: 1 / -1;
}

.token-usage-modal-tables {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 20px;
}

.token-usage-modal-summary .summary-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 16px;
}

.token-usage-modal-summary .summary-item {
  grid-column: span 8;
}

.token-usage-modal-summary .summary-item-value {
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.token-usage-panel {
  min-width: 0;
}

.token-usage-panel-full {
  grid-column: 1 / -1;
}

.token-usage-bar-chart {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.token-usage-bar-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 220px;
  padding: 12px 8px 0;
  position: relative;
}

.token-usage-bar-bands {
  position: absolute;
  inset: 12px 8px 0;
  display: grid;
  gap: 0;
  pointer-events: none;
}

.token-usage-bar-band.is-banded {
  background: rgba(255, 255, 255, 0.01);
}

.token-usage-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0 1px;
  z-index: 1;
}

.token-usage-bar[data-tooltip],
.token-usage-hourly-bar[data-tooltip] {
  cursor: help;
}

.token-usage-bar-fill {
  display: block;
  width: 100%;
  min-height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.token-usage-bar.has-value .token-usage-bar-fill {
  background: linear-gradient(180deg, #ff7b86 0%, #de182c 62%, #8f0c18 100%);
}

.token-usage-bar-axis,
.token-usage-bar-summary,
.token-usage-bar-empty {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.token-usage-bar-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
  overflow: visible;
}

.token-usage-bar-axis span {
  min-width: max-content;
  white-space: nowrap;
}

.token-usage-tooltip {
  position: fixed;
  z-index: 1200;
  max-width: min(320px, 80vw);
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.96);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: var(--shadow);
  white-space: normal;
  overflow-wrap: anywhere;
}

.token-usage-bar-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
}

.gitlab-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  overflow: auto;
}

.gitlab-modal-form,
.gitlab-modal-result {
  min-width: 0;
}

.gitlab-modal-result {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.bootstrap-command-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.bootstrap-copy-btn {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}

.admin-code-block {
  margin: 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #1f2328;
  font: 12px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.bootstrap-overview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.bootstrap-status-list {
  display: grid;
  gap: 12px;
}

.bootstrap-status-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.bootstrap-status-item-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.bootstrap-status-item-button.is-active {
  border-color: rgba(222, 24, 44, 0.5);
  background: rgba(222, 24, 44, 0.12);
}

.bootstrap-status-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bootstrap-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bootstrap-status-head strong {
  font-size: 14px;
}

.bootstrap-steps-shell {
  min-height: 220px;
}

.bootstrap-step-detail {
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.bootstrap-step-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bootstrap-step-detail p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.reset-password-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reset-password-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.reset-password-secret-box {
  padding: 14px 16px;
  border: 1px solid rgba(75, 211, 154, 0.28);
  background: rgba(75, 211, 154, 0.08);
  color: #d9fff0;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-all;
}

.gitlab-modal-result-head {
  display: grid;
  gap: 8px;
}

.gitlab-modal-result-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.gitlab-modal-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 24px 24px 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(12, 12, 13, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-close-icon-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-icon-btn:hover {
  border-color: var(--line-strong);
  background: rgba(222, 24, 44, 0.08);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  padding: 12px 0 0;
  background: none;
  z-index: 2;
}

.step-flow {
  display: grid;
  gap: 10px;
}

.step-flow-list {
  display: grid;
  gap: 10px;
}

.step-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.step-item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 8px;
  flex-wrap: wrap;
}

.step-item-timer {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.88;
  color: var(--muted);
}

.step-item-status.is-pending {
  border-color: var(--line);
  color: var(--muted);
}

.step-item-status.is-running {
  border-color: rgba(255, 195, 89, 0.42);
  color: #ffd892;
  background: rgba(255, 195, 89, 0.08);
}

.step-item-status.is-success {
  border-color: rgba(75, 211, 154, 0.35);
  color: #9ef0ca;
  background: rgba(75, 211, 154, 0.08);
}

.step-item-status.is-failed {
  border-color: rgba(255, 77, 95, 0.36);
  color: #ffb1ba;
  background: rgba(255, 77, 95, 0.08);
}

.step-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.step-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.step-item-detail {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.step-item-meta {
  display: flex;
  justify-content: flex-end;
  min-height: 16px;
}


/* admin-03.css */
@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .admin-shell,
  .admin-app {
    height: auto;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-global-header {
    position: static;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: none;
  }

  .admin-global-brand {
    flex: 1 1 auto;
  }

  .admin-global-actions {
    flex: 0 1 auto;
  }

  .admin-global-account {
    max-width: min(340px, 44vw);
  }

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }

  .admin-content-shell,
  .admin-main {
    height: auto;
    overflow: visible;
  }

  .menu-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow-x: visible;
    padding-bottom: 4px;
    max-width: 100%;
  }

  .menu-nav::before {
    grid-column: 1 / -1;
  }

  .menu-item:hover {
    transform: none;
  }

  .menu-item {
    min-width: 0;
    padding-right: 12px;
    padding-left: 30px;
  }

  .two-columns,
  .system-grid,
  .overview-grid,
  .enterprise-overview-usage-grid,
  .runtime-monitor-summary,
  .runtime-monitor-grid,
  .rules-admin-grid {
    grid-template-columns: 1fr;
  }

  .overview-column {
    gap: 12px;
  }

  .overview-card-body {
    grid-template-columns: 1fr;
  }

  .rules-side-column,
  .rules-editor-card {
    grid-column: 1 / -1;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-toolbar-actions {
    align-items: stretch;
  }

  .page-toolbar-search-group,
  .page-toolbar-button-group {
    width: 100%;
  }

  .enterprise-extension-meta {
    align-self: flex-end;
    max-width: 100%;
  }

  .enterprise-extension-info {
    justify-items: start;
  }

  .enterprise-extension-workbench {
    max-width: 100%;
  }

  .toolbar-search {
    min-width: 0;
  }

  .token-list-toolbar .page-toolbar-actions,
  .token-list-toolbar .page-toolbar-search-group,
  .token-list-toolbar .page-toolbar-button-group {
    flex-wrap: wrap;
  }

  .token-list-toolbar .toolbar-search,
  .token-list-toolbar .toolbar-filter-group {
    flex: 1 1 100%;
  }

  .gitlab-modal-card {
    width: min(1120px, 100%);
  }

  .gitlab-modal-layout {
    grid-template-columns: 1fr;
  }

  .reset-password-summary-grid {
    grid-template-columns: 1fr;
  }

  .gitlab-resource-grid {
    grid-template-columns: 1fr;
  }

  .token-actions-cell {
    width: auto;
    min-width: 0;
  }

  .token-actions-cell .table-actions {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    max-height: none;
  }

  .token-actions-cell .table-actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

/* Environment events are scan-first operational records, so keep one event per table row. */
.workbench-environment-log-modal-card .gitlab-modal-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.workbench-environment-log-modal-card .gitlab-modal-form {
  display: flex;
  justify-content: flex-end;
}

.workbench-environment-log-modal-card .gitlab-modal-form .modal-actions {
  padding: 0;
}

.workbench-environment-log-modal-card .gitlab-modal-result {
  padding: 0;
  border: 0;
  background: transparent;
}

.workbench-environment-log-table-shell {
  max-height: min(48vh, 520px);
}

.workbench-environment-log-table {
  min-width: 1040px;
}

.workbench-environment-log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.workbench-environment-log-table th,
.workbench-environment-log-table td {
  padding: 11px 12px;
  vertical-align: top;
  line-height: 1.5;
}

.workbench-environment-log-time {
  width: 150px;
}

.workbench-environment-log-phase {
  width: 118px;
}

.workbench-environment-log-mode {
  width: 150px;
}

.workbench-environment-log-target {
  width: 150px;
}

.workbench-environment-log-runtime {
  width: 230px;
}

.workbench-environment-log-detail-column {
  width: auto;
}

.workbench-environment-log-detail {
  display: grid;
  gap: 5px;
  max-height: 120px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.workbench-environment-log-table .chip {
  white-space: nowrap;
}

.workbench-environment-log-detail .is-error {
  color: var(--danger);
}

@media (max-width: 640px) {
  .login-card,
  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }

  .admin-topbar,
  .panel-card {
    padding: 18px;
  }

  .detail-panel .panel-card > .table-shell {
    width: 100%;
    margin: 0;
  }

  #enterpriseStorageResourceList {
    width: calc(100% + 36px);
  }

  .storage-detail-table-shell {
    width: calc(100% + 36px);
    margin: 0 -18px -18px;
  }

  .storage-table-counts {
    margin-bottom: 16px;
    padding: 12px;
  }

  .storage-table-counts-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .storage-type-link {
    grid-template-columns: 32px minmax(0, 1fr);
    min-width: 132px;
  }

  .storage-type-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .step-item {
    grid-template-columns: 1fr;
  }

  .sidebar-brand {
    padding: 14px 12px;
  }

  .sidebar-brand h2 {
    font-size: 20px;
  }

  .menu-nav {
    grid-auto-columns: minmax(136px, 1fr);
  }

  .menu-item {
    min-height: 50px;
    padding-left: 34px;
  }
}

/* Admin light neumorphic theme aligned with the public download page. */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --brand: #7d95cf;
  --page-bg: #edf0f6;
  --surface: rgba(248, 250, 255, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.62);
  --surface-strong: #ffffff;
  --line: rgba(126, 139, 168, 0.22);
  --line-strong: rgba(135, 156, 217, 0.48);
  --text: #303743;
  --muted: #8790a3;
  --accent: #7d95cf;
  --accent-strong: #a897f1;
  --danger: #d94b5c;
  --success: #3b9f78;
  --shadow: 18px 24px 56px rgba(142, 153, 181, 0.2), -18px -18px 42px rgba(255, 255, 255, 0.86);
  --shadow-soft: 5px 7px 14px rgba(142, 153, 181, 0.12), -5px -5px 12px rgba(255, 255, 255, 0.72);
  --shadow-inset: inset 8px 8px 18px rgba(142, 153, 181, 0.13), inset -8px -8px 18px rgba(255, 255, 255, 0.86);
  --button-glow: inset 0 0 0 1px rgba(255, 255, 255, 0.84), 0 0 0 1px rgba(133, 154, 214, 0.14), 0 0 7px rgba(133, 154, 214, 0.14);
  --button-glow-strong: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(133, 154, 214, 0.2), 0 0 10px rgba(133, 154, 214, 0.18);
  --radius: 8px;
  --page-grid-line: rgba(255, 255, 255, 0.34);
  --page-glow: rgba(219, 231, 255, 0.72);
  --page-glow-alt: rgba(239, 224, 255, 0.58);
  --page-bg-top: #f8f9fd;
  --header-bg: rgba(238, 241, 248, 0.78);
  --sidebar-bg: linear-gradient(145deg, rgba(248, 250, 255, 0.9), rgba(231, 235, 245, 0.72));
  --sidebar-border: rgba(255, 255, 255, 0.74);
  --sidebar-panel: rgba(247, 249, 255, 0.68);
  --sidebar-panel-strong: rgba(255, 255, 255, 0.86);
  --sidebar-inset: rgba(255, 255, 255, 0.72);
  --sidebar-glow: rgba(133, 154, 214, 0.18);
  --card-bg: rgba(247, 249, 255, 0.78);
  --card-elevated: rgba(255, 255, 255, 0.52);
  --field-bg: rgba(247, 249, 255, 0.72);
  --field-focus-bg: rgba(255, 255, 255, 0.9);
  --menu-label: #98a1b3;
  --menu-text: #6d778c;
  --menu-hover-bg: rgba(255, 255, 255, 0.76);
  --menu-hover-text: #303743;
  --menu-marker: rgba(126, 149, 207, 0.28);
  --menu-marker-glow: rgba(126, 149, 207, 0.08);
  --menu-active-bg: linear-gradient(135deg, #dce8ff 0%, #eef1ff 54%, #efe5ff 100%);
  --menu-active-text: #5d72aa;
  --soft-accent-bg: rgba(218, 230, 255, 0.62);
  --soft-accent-strong: rgba(133, 154, 214, 0.28);
  --soft-success-bg: rgba(59, 159, 120, 0.1);
  --soft-danger-bg: rgba(217, 75, 92, 0.1);
  --soft-warning-bg: rgba(245, 158, 11, 0.12);
  --pending-delete-row-bg: rgba(142, 153, 181, 0.08);
  --pending-delete-text: rgba(48, 55, 67, 0.58);
  --pending-delete-link: rgba(48, 55, 67, 0.66);
  --pending-delete-badge-bg: rgba(142, 153, 181, 0.1);
  --pending-delete-badge-border: rgba(126, 139, 168, 0.2);
  --pending-delete-badge-text: rgba(48, 55, 67, 0.64);
  --table-head-bg: rgba(248, 250, 255, 0.74);
  --table-row-hover: rgba(218, 230, 255, 0.38);
  --table-sub-bg: rgba(255, 255, 255, 0.42);
  --code-bg: rgba(248, 250, 255, 0.82);
  --code-input-bg: rgba(255, 255, 255, 0.74);
  --code-highlight-bg: rgba(248, 250, 255, 0.82);
  --code-text: #303743;
  --overlay: rgba(236, 241, 246, 0.72);
  --tooltip-bg: rgba(255, 255, 255, 0.96);
  --modal-fade: linear-gradient(180deg, rgba(248, 250, 255, 0) 0%, rgba(248, 250, 255, 0.98) 18%);
}

body {
  background-color: var(--page-bg);
  background:
    radial-gradient(circle at 22% 18%, var(--page-glow) 0, transparent 30%),
    radial-gradient(circle at 74% 24%, var(--page-glow-alt) 0, transparent 28%),
    linear-gradient(145deg, var(--page-bg-top) 0%, var(--page-bg) 58%, #e6eaf3 100%);
  background-size: auto;
}

.login-card,
.page-toolbar,
.panel-card,
.summary-item,
.table-shell,
.gitlab-resource-card,
.gitlab-resource-panel,
.gitlab-resource-chip,
.gitlab-resource-project,
.gitlab-resource-table-shell,
.gitlab-modal-result,
.step-item,
.checkbox-grid,
.enterprise-extension-meta,
.modal-card,
.admin-global-header,
.suggest-list,
.code-editor,
.bootstrap-overview-card,
.bootstrap-status-item,
.bootstrap-step-detail,
.gitlab-binding-resource-shell,
.workbench-project-subtable-shell {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card,
.page-toolbar,
.panel-card,
.modal-card,
.admin-global-header,
.admin-sidebar {
  backdrop-filter: blur(16px);
}

button,
.small,
.field input,
.field select,
.toolbar-search input,
.toolbar-search select,
.toolbar-filter-button,
.segmented-btn,
.permission-pill,
.icon-plain,
.modal-close-icon-btn,
.detail-tab,
.chip,
.page-toolbar-kicker,
.gitlab-resource-group-count-badge,
.gitlab-resource-delete-scheduled-badge {
  border-radius: 999px;
}

.field input,
.field select,
.toolbar-search input,
.toolbar-search select,
.toolbar-filter-button,
.segmented-btn,
.permission-pill,
.icon-plain,
.modal-close-icon-btn,
.detail-tab,
.secondary,
.bootstrap-status-item-button {
  background: var(--field-bg);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--button-glow);
}

.field input:focus,
.field select:focus,
.toolbar-search input:focus,
.toolbar-search select:focus,
.plain-editor:focus,
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  background: var(--field-focus-bg);
  border-color: var(--line-strong);
  box-shadow: var(--button-glow-strong);
}

.primary,
.danger {
  color: #5d72aa;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: var(--button-glow-strong);
}

.primary {
  background: linear-gradient(135deg, #dce8ff 0%, #eef1ff 52%, #efe5ff 100%);
}

.danger {
  color: #a83e51;
  background: linear-gradient(135deg, #ffe2e7 0%, #fff2f4 55%, #f1e8ff 100%);
}

button:hover,
.secondary:hover,
.detail-tab:hover,
.modal-close-icon-btn:hover,
.icon-plain:hover {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--button-glow-strong);
}

.login-brand h1,
.sidebar-brand h2,
.admin-topbar h1,
.panel-head h2,
.page-toolbar-copy h2,
.modal-head h2,
.gitlab-resource-head h3,
.gitlab-resource-panel-title,
.gitlab-modal-result-head h3 {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
  color: var(--text);
}

.admin-global-header {
  background: var(--header-bg);
  border-bottom-color: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.admin-sidebar {
  background:
    radial-gradient(circle at 24% 12%, rgba(219, 231, 255, 0.78) 0, transparent 34%),
    var(--sidebar-bg);
  border-right-color: var(--sidebar-border);
  box-shadow: inset -1px 0 0 var(--sidebar-inset), var(--shadow-soft);
}

.sidebar-brand,
.sidebar-badge,
.login-badge,
.brand-badge {
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--sidebar-panel-strong), var(--sidebar-panel));
  box-shadow: var(--shadow-soft);
}

.menu-nav::before {
  color: var(--menu-label);
}

.menu-item {
  min-height: 50px;
  padding-left: 38px;
  border-radius: 8px;
  background: rgba(247, 249, 255, 0.44);
  color: var(--menu-text);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.menu-item::before {
  border-radius: 50%;
  background: var(--menu-marker);
  box-shadow: 0 0 0 6px var(--menu-marker-glow);
}

.menu-item:hover {
  color: var(--menu-hover-text);
  border-color: rgba(255, 255, 255, 0.82);
  background: var(--menu-hover-bg);
  box-shadow: var(--shadow-soft);
}

.menu-item.is-active {
  color: var(--menu-active-text);
  background: var(--menu-active-bg);
  border-color: var(--line-strong);
  box-shadow: var(--button-glow-strong);
}

.menu-item.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(126, 149, 207, 0.12);
}

.menu-item.is-active::after {
  background: linear-gradient(180deg, #a9bdf0 0, var(--accent) 100%);
  box-shadow: 0 0 12px rgba(126, 149, 207, 0.22);
}

.sidebar-logout {
  color: var(--menu-hover-text);
  background: var(--field-bg);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--button-glow);
}

.page-toolbar {
  border-radius: 8px;
}

.page-toolbar-kicker,
.gitlab-resource-group-count-badge {
  background: var(--soft-accent-bg);
  border-color: var(--soft-accent-strong);
  color: #5d72aa;
}

.field select option,
.field select optgroup,
select option,
select optgroup {
  color: #303743;
  background: #ffffff;
}

.suggest-item {
  color: var(--text);
  border-bottom-color: var(--line);
}

.suggest-item:hover,
.gitlab-resource-chip:hover,
.gitlab-resource-project:hover,
.modal-close-icon-btn:hover {
  background: var(--soft-accent-bg);
}

.code-editor,
.plain-editor,
.admin-code-block {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.76);
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: var(--shadow-inset);
}

.code-editor-input {
  background: var(--code-input-bg);
  color: var(--code-text);
  caret-color: var(--accent);
}

.code-editor-highlight {
  color: var(--code-text);
  background: var(--code-highlight-bg);
}

.code-editor-input::placeholder {
  color: #a1aabc;
}

.code-editor-input::-webkit-scrollbar-thumb,
.code-editor-highlight::-webkit-scrollbar-thumb {
  background: rgba(126, 139, 168, 0.24);
}

.code-token-key { color: #4f6fb3; }
.code-token-string { color: #3b9f78; }
.code-token-number { color: #9a6b16; }
.code-token-boolean { color: #8b5bbd; }
.code-token-comment { color: #94a0b4; }
.code-token-punct { color: #566174; }

.admin-toast {
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(247, 249, 255, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
}

.enterprise-detail-title-icon,
.enterprise-icon-thumb,
.enterprise-icon-preview,
.enterprise-icon-upload-zone,
.checkbox-grid,
.summary-item,
.data-table th,
.gitlab-modal-result,
.gitlab-resource-panel,
.gitlab-resource-chip,
.gitlab-resource-project,
.gitlab-resource-group-row td,
.workbench-project-subtable-row > td,
.gitlab-binding-resource-row > td,
.token-usage-bar-band.is-banded,
.bootstrap-overview-card,
.bootstrap-status-item,
.bootstrap-step-detail,
.token-plain-result,
.gitlab-resource-card {
  background: var(--card-elevated);
  border-color: rgba(255, 255, 255, 0.72);
}

.table-shell,
.gitlab-resource-table-shell {
  overflow: auto;
  max-width: 100%;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior-x: contain;
}

.table-shell::-webkit-scrollbar,
.gitlab-resource-table-shell::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-shell::-webkit-scrollbar-track,
.gitlab-resource-table-shell::-webkit-scrollbar-track {
  background: transparent;
}

.table-shell::-webkit-scrollbar-thumb,
.gitlab-resource-table-shell::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(126, 139, 168, 0.36);
  background-clip: content-box;
}

.table-shell::-webkit-scrollbar-corner,
.gitlab-resource-table-shell::-webkit-scrollbar-corner {
  background: transparent;
}

.token-list-table-shell {
  max-height: calc(100vh - 250px);
  min-height: 220px;
  overscroll-behavior: contain;
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(126, 139, 168, 0.16);
}

.data-table th {
  color: var(--muted);
  background: var(--table-head-bg);
}

.token-list-table-shell .data-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.18);
}

.data-table tbody tr:hover {
  background: var(--table-row-hover);
}

.workbench-project-subtable {
  border-color: var(--line);
}

.detail-tab.is-active,
.permission-pill.active,
.bootstrap-status-item-button.is-active {
  color: #5d72aa;
  background: var(--soft-accent-bg);
  border-color: var(--line-strong);
  box-shadow: var(--button-glow);
}

.chip.active {
  color: #0f684c;
  background: var(--soft-success-bg);
  border-color: rgba(59, 159, 120, 0.28);
}

.chip.disabled {
  color: #a83e51;
  background: var(--soft-danger-bg);
  border-color: rgba(217, 75, 92, 0.24);
}

.chip.warning,
.gitlab-resource-delete-scheduled-badge,
.step-item-status.is-running {
  color: #8a5800;
  background: var(--soft-warning-bg);
  border-color: rgba(245, 158, 11, 0.28);
}

.summary-item {
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.workbench-usage-bar,
.workbench-sparkline-chart {
  border-radius: 999px;
  border-color: rgba(126, 139, 168, 0.14);
}

.workbench-usage-fill,
.token-usage-hourly-bar.has-value .token-usage-hourly-bar-fill,
.token-usage-bar.has-value .token-usage-bar-fill,
.workbench-sparkbar-fill {
  border-radius: 999px;
  background: linear-gradient(180deg, #a9bdf0 0%, var(--accent) 70%, #6c86c5 100%);
}

.token-usage-hourly-bar-fill,
.token-usage-bar-fill {
  border-radius: 999px;
  background: rgba(126, 139, 168, 0.18);
}

.empty-state {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.modal-layer {
  background: var(--overlay);
  backdrop-filter: blur(12px);
}

.modal-layer:not(.hidden) {
  background: rgba(21, 28, 43, 0.18);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(28, 38, 58, 0.28), 0 8px 24px rgba(28, 38, 58, 0.16);
}

.modal-head {
  background: rgba(247, 249, 255, 0.94);
  border-bottom-color: var(--line);
}

.modal-actions {
  background: none;
}

.token-usage-tooltip {
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--tooltip-bg);
  box-shadow: var(--shadow-soft);
}

.reset-password-secret-box,
.step-item-status.is-success {
  border-color: rgba(59, 159, 120, 0.28);
  background: var(--soft-success-bg);
  color: #0f684c;
}

.step-item-status.is-failed {
  border-color: rgba(217, 75, 92, 0.28);
  color: #a83e51;
  background: var(--soft-danger-bg);
}

.gitlab-resource-delete-btn.is-pending {
  box-shadow: var(--button-glow-strong);
}

.gitlab-resource-delete-btn.is-pending::before {
  background:
    radial-gradient(circle at 3px 50%, var(--accent) 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 9px 50%, var(--accent) 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 15px 50%, var(--accent) 0 1.5px, transparent 1.9px);
}

.gitlab-resource-group-link:hover,
.gitlab-resource-project-link:hover,
.data-table-primary-link:hover {
  color: var(--accent);
}

.login-theme-actions,
.admin-theme-toggle {
  display: none !important;
}

@media (max-width: 640px) {
  .login-card,
  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }
}

.rules-page-toolbar {
  min-height: 54px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.rules-content-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.admin-main:has(.rules-content-view) {
  overflow: hidden;
}

.rules-content-view .global-message {
  min-height: 0;
}

.rules-admin-grid {
  height: auto;
  min-height: 0;
}

.rules-page-toolbar .page-toolbar-copy {
  gap: 0;
}

.rules-page-toolbar .page-toolbar-copy h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 20px;
  line-height: 1.35;
}

.rules-file-title-item {
  display: inline-flex;
  align-items: center;
  max-width: min(360px, 100%);
  min-height: 28px;
  padding: 3px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.rules-file-title-item:hover,
.rules-file-title-item:focus-visible {
  background: rgba(239, 246, 255, 0.9);
}

.rules-file-title-item.is-active {
  border-color: var(--line-strong);
  background: rgba(126, 149, 207, 0.18);
  color: var(--accent);
}

.rules-file-title-item.is-aggregate {
  border-color: rgba(78, 112, 190, 0.32);
  background: rgba(239, 246, 255, 0.86);
  font-family: inherit;
  font-weight: 900;
}

.rules-editor-card {
  padding: 0;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
}

.rules-enterprise-card {
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.rules-editor-tab {
  border-radius: 0;
  box-shadow: none;
}

.rules-plain-editor,
.rules-plain-editor:focus {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.storage-type-segmented {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.storage-type-segmented .segmented-btn,
.storage-type-segmented .segmented-btn:first-child,
.storage-type-segmented .segmented-btn:last-child {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.storage-type-segmented .segmented-btn + .segmented-btn {
  margin-left: 0;
  border-left: 1px solid var(--line);
}

.storage-type-segmented .segmented-btn.is-active {
  border-left-color: transparent;
  background: linear-gradient(135deg, rgba(143, 12, 24, 0.92) 0%, rgba(222, 24, 44, 0.92) 55%, rgba(255, 48, 72, 0.9) 100%);
}

.storage-type-segmented .segmented-btn.is-active + .segmented-btn {
  border-left-color: transparent;
}

.admin-shell {
  --radius: 8px;
  --radius-sm: 4px;
}

.admin-shell button,
.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-shell .page-toolbar,
.admin-shell .panel-card,
.admin-shell .table-shell,
.admin-shell .summary-item,
.admin-shell .admin-insight-item,
.admin-shell .admin-audit-note,
.admin-shell .empty-state,
.admin-shell .checkbox-grid,
.admin-shell .toolbar-filter-button,
.admin-shell .token-provider-marker,
.admin-shell .plain-editor,
.admin-shell .code-editor,
.admin-shell .admin-code-block,
.admin-shell .enterprise-icon-upload-zone,
.admin-shell .certificate-domain-row,
.admin-shell .admin-action-summary,
.admin-shell .modal-card {
  border-radius: var(--radius);
}

.admin-shell .segmented-btn,
.admin-shell .storage-type-segmented .segmented-btn,
.admin-shell .rules-editor-tab,
.admin-shell .rules-plain-editor,
.admin-shell .rules-plain-editor:focus {
  border-radius: 0;
}

.admin-shell .segmented-btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.admin-shell .segmented-btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.admin-shell .chip,
.admin-shell .token-provider-marker-count,
.admin-shell .runtime-monitor-chart-legend i,
.admin-shell .overview-top-bar,
.admin-shell .overview-top-bar i,
.admin-shell .workbench-update-channel-switch,
.admin-shell .workbench-update-channel-thumb {
  border-radius: 999px;
}

.admin-shell .sidebar-badge,
.admin-shell .login-badge,
.admin-shell .rules-enterprise-avatar,
.admin-shell .workbench-user-avatar {
  border-radius: 50%;
}

.admin-insight-strip > .admin-skeleton-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
  height: 116px;
  min-height: 116px;
  max-height: 116px;
}

.admin-insight-strip > .admin-skeleton-summary .admin-skeleton-card {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.admin-skeleton-table {
  display: grid;
  min-height: 260px;
  align-content: start;
}

.admin-skeleton-table .admin-skeleton-row {
  min-height: 42px;
}

.admin-skeleton-line {
  min-width: 64px;
}

.overview-content-view .admin-audit-note.hidden {
  display: none !important;
}

.overview-content-view #overviewActionHint {
  margin-top: -6px;
}

.admin-shell .page-toolbar-actions,
.admin-shell .page-toolbar-search-group,
.admin-shell .page-toolbar-button-group {
  align-items: center;
}

.admin-shell .page-toolbar .toolbar-search {
  display: inline-flex;
  align-items: center;
}

.admin-shell .page-toolbar .toolbar-search input,
.admin-shell .page-toolbar .toolbar-search select {
  width: 100%;
  min-height: 42px;
}

.admin-shell .page-toolbar .admin-icon-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .admin-insight-strip > .admin-skeleton-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-insight-strip > .admin-skeleton-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

.runtime-monitor-view .runtime-monitor-insight-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  grid-column: 1 / -1;
  height: auto;
  min-height: 0;
  max-height: none;
}

.runtime-monitor-view .runtime-monitor-insight-skeleton-card {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  align-content: space-between;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.runtime-monitor-view .runtime-monitor-skeleton-value {
  width: 34%;
  height: 22px;
}

.runtime-monitor-view .runtime-monitor-alert-skeleton {
  display: grid;
  grid-template-columns: minmax(72px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 18px;
  width: 100%;
}

.runtime-monitor-view .runtime-monitor-alert-skeleton-title {
  width: 72px;
}

.runtime-monitor-summary-skeleton {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.52);
}

.runtime-monitor-summary-skeleton .admin-skeleton-line {
  margin: 0;
}

.runtime-monitor-summary-skeleton-label {
  width: 42%;
}

.runtime-monitor-summary-skeleton-value {
  width: 56%;
  height: 18px;
}

.runtime-monitor-summary-skeleton-meta {
  width: 34%;
  height: 10px;
}

.runtime-monitor-chart-skeleton {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-height: 313px;
  width: 100%;
  background: rgba(255, 255, 255, 0.28);
}

.runtime-monitor-chart-skeleton-plot {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(126, 139, 168, 0.18) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(248, 250, 252, 0.12));
}

.runtime-monitor-chart-skeleton-curve {
  position: absolute;
  left: 8%;
  right: 7%;
  height: 42%;
  border-bottom: 2px solid rgba(126, 154, 215, 0.56);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: skewX(-18deg);
}

.runtime-monitor-chart-skeleton-curve.is-primary {
  bottom: 24%;
  background: linear-gradient(180deg, transparent, rgba(217, 75, 92, 0.12));
}

.runtime-monitor-chart-skeleton-curve.is-secondary {
  bottom: 38%;
  border-bottom-style: dashed;
  border-bottom-color: rgba(91, 105, 132, 0.5);
}

.runtime-monitor-chart-skeleton-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.runtime-monitor-chart-skeleton-footer .admin-skeleton-line {
  max-width: 150px;
}

.runtime-monitor-table-skeleton {
  display: grid;
  gap: 10px;
  min-height: 313px;
  padding: 18px;
  align-content: start;
  width: 100%;
}

.runtime-monitor-table-skeleton-row {
  display: grid;
  grid-template-columns: repeat(var(--runtime-skeleton-columns, 6), minmax(54px, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.runtime-monitor-table-skeleton-row:first-child {
  background: rgba(255, 255, 255, 0.44);
}

@media (max-width: 1100px) {
  .runtime-monitor-view .runtime-monitor-insight-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .runtime-monitor-view .runtime-monitor-insight-skeleton {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-monitor-view .runtime-monitor-alert-skeleton {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-monitor-table-skeleton {
    min-height: 284px;
  }

  .runtime-monitor-table-skeleton-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-monitor-table-skeleton-row .admin-skeleton-line:nth-child(n+3) {
    display: none;
  }
}

/* Admin UI alignment pass. */
.sidebar-brand h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: min(100%, 168px);
  white-space: nowrap;
  overflow: visible;
}

.admin-dev-badge {
  position: static;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  min-width: 32px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 18px;
}

.page-toolbar {
  align-items: center;
  min-height: 68px;
}

.page-toolbar-copy {
  display: none;
}

.page-toolbar-copy > h2,
.page-toolbar-copy .admin-breadcrumb,
.enterprise-detail-title-row > h2,
.enterprise-detail-title-icon {
  display: none;
}

.page-toolbar:has(.enterprise-detail-title-row) .page-toolbar-copy {
  display: block;
}

.page-toolbar:has(.admin-breadcrumb),
.page-toolbar:has(.enterprise-detail-title-row),
.page-toolbar:has(#storageResourceDetailTitle) {
  display: none;
}

.page-toolbar-actions {
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.page-toolbar-search-group {
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: center;
}

.page-toolbar-button-group,
.page-toolbar > .page-toolbar-actions > button,
.page-toolbar > .page-toolbar-actions > a {
  margin-left: auto;
}

.toolbar-search,
.overview-range-control,
.runtime-monitor-range-control,
.token-list-toolbar .toolbar-search {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.toolbar-search input,
.toolbar-search select,
.rules-search-control input {
  width: 100%;
  min-height: 42px;
}

.token-list-toolbar .page-toolbar-actions,
.token-list-toolbar .page-toolbar-search-group {
  flex-wrap: nowrap;
}

.token-list-toolbar .toolbar-filter-group {
  flex: 1 1 auto;
  min-width: 240px;
}

.data-table th:last-child,
.data-table td:last-child,
.token-actions-cell,
.workbench-actions-cell,
.gitlab-resource-action-cell,
.workbench-project-actions-cell {
  text-align: left;
}

.table-actions,
.token-actions-cell .table-actions,
.workbench-actions-cell .table-actions,
.gitlab-resource-action-cell .table-actions,
.workbench-project-actions {
  justify-content: flex-start;
  justify-items: start;
}

.admin-insight-item,
.admin-insight-item.is-success,
.admin-insight-item.is-warning,
.admin-insight-item.is-danger,
.admin-insight-item.is-disabled,
.summary-item,
.summary-item-accent {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(247, 249, 255, 0.78);
}

.admin-insight-item::before,
.summary-item::before {
  display: none;
}

.overview-card-body {
  grid-template-columns: minmax(0, 1.24fr) minmax(220px, 0.76fr);
  align-items: stretch;
}

.panel-card.overview-card {
  min-height: 310px;
}

.overview-trend-pane {
  min-height: 234px;
}

.overview-chart {
  gap: 8px;
}

.overview-chart svg {
  height: 210px;
}

.overview-chart-empty {
  min-height: 210px;
}

.overview-top-item.is-selected,
.rules-project-item.is-selected,
.workbench-origin-option.is-selected,
.bootstrap-status-item-button.is-active,
.detail-tab.is-active,
.rules-editor-tab.is-active,
.rules-summary-inner-tab.is-active,
.toolbar-filter-button.is-active,
.permission-pill.active,
.segmented-btn.is-active {
  color: #4f659f;
  border-color: rgba(126, 149, 207, 0.54);
  background: linear-gradient(135deg, rgba(220, 232, 255, 0.92), rgba(245, 241, 255, 0.78));
  box-shadow: inset 3px 0 0 var(--accent), var(--button-glow-strong);
}

.overview-top-item.is-selected::before {
  background: transparent;
}

.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

@media (max-width: 980px) {
  .page-toolbar-actions,
  .token-list-toolbar .page-toolbar-actions,
  .token-list-toolbar .page-toolbar-search-group {
    flex-wrap: wrap;
  }

  .toolbar-search,
  .overview-range-control,
  .runtime-monitor-range-control,
  .token-list-toolbar .toolbar-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-toolbar-button-group {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Final terminal overrides. Keep this block last. */
.overview-card-body {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.55fr);
}

.overview-trend-pane,
.overview-top-list,
.overview-top-item,
.overview-top-copy,
.overview-top-copy strong {
  min-width: 0;
}

.overview-top-copy strong {
  overflow-wrap: anywhere;
}

.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid rgba(164, 176, 204, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 2px rgba(111, 129, 168, 0.12);
}

.checkbox-line input[type="checkbox"]::after,
.rules-suggestion-item input[type="checkbox"]::after,
.rules-project-suggestion-item input[type="checkbox"]::after,
.permission-editor-grid input[type="checkbox"]::after,
.checkbox-grid input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: transparent;
  transform: scale(0);
  transition: transform 120ms ease, background 120ms ease;
}

.checkbox-line input[type="checkbox"]:checked,
.rules-suggestion-item input[type="checkbox"]:checked,
.rules-project-suggestion-item input[type="checkbox"]:checked,
.permission-editor-grid input[type="checkbox"]:checked,
.checkbox-grid input[type="checkbox"]:checked {
  border-color: rgba(111, 143, 220, 0.95);
  background: rgba(233, 239, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.16);
}

.checkbox-line input[type="checkbox"]:checked::after,
.rules-suggestion-item input[type="checkbox"]:checked::after,
.rules-project-suggestion-item input[type="checkbox"]:checked::after,
.permission-editor-grid input[type="checkbox"]:checked::after,
.checkbox-grid input[type="checkbox"]:checked::after {
  background: #6f8fdc;
  transform: scale(1);
}

@media (max-width: 1100px) {
  .overview-card-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Terminal order fixes: keep overview charts wide and checkbox states custom. */
.overview-card-body {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.55fr);
}

.overview-top-list {
  min-width: 0;
}

.overview-top-item {
  min-width: 0;
}

.overview-top-copy {
  min-width: 0;
}

.overview-top-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid rgba(164, 176, 204, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 2px rgba(111, 129, 168, 0.12);
}

.checkbox-line input[type="checkbox"]::after,
.rules-suggestion-item input[type="checkbox"]::after,
.rules-project-suggestion-item input[type="checkbox"]::after,
.permission-editor-grid input[type="checkbox"]::after,
.checkbox-grid input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: transparent;
  transform: scale(0);
  transition: transform 120ms ease, background 120ms ease;
}

.checkbox-line input[type="checkbox"]:checked,
.rules-suggestion-item input[type="checkbox"]:checked,
.rules-project-suggestion-item input[type="checkbox"]:checked,
.permission-editor-grid input[type="checkbox"]:checked,
.checkbox-grid input[type="checkbox"]:checked {
  border-color: rgba(111, 143, 220, 0.95);
  background: rgba(233, 239, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.16);
}

.checkbox-line input[type="checkbox"]:checked::after,
.rules-suggestion-item input[type="checkbox"]:checked::after,
.rules-project-suggestion-item input[type="checkbox"]:checked::after,
.permission-editor-grid input[type="checkbox"]:checked::after,
.checkbox-grid input[type="checkbox"]:checked::after {
  background: #6f8fdc;
  transform: scale(1);
}

@media (max-width: 1100px) {
  .overview-card-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final review refinements. */
.overview-card-body {
  grid-template-columns: minmax(0, 1.34fr) minmax(200px, 0.66fr);
}

.overview-top-list {
  min-width: 0;
}

.data-table th:last-child {
  width: 220px;
  min-width: 220px;
}

.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid rgba(164, 176, 204, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 2px rgba(111, 129, 168, 0.12);
}

.checkbox-line input[type="checkbox"]::after,
.rules-suggestion-item input[type="checkbox"]::after,
.rules-project-suggestion-item input[type="checkbox"]::after,
.permission-editor-grid input[type="checkbox"]::after,
.checkbox-grid input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: transparent;
  transform: scale(0);
  transition: transform 120ms ease, background 120ms ease;
}

.checkbox-line input[type="checkbox"]:checked,
.rules-suggestion-item input[type="checkbox"]:checked,
.rules-project-suggestion-item input[type="checkbox"]:checked,
.permission-editor-grid input[type="checkbox"]:checked,
.checkbox-grid input[type="checkbox"]:checked {
  border-color: rgba(111, 143, 220, 0.95);
  background: rgba(233, 239, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.16);
}

.checkbox-line input[type="checkbox"]:checked::after,
.rules-suggestion-item input[type="checkbox"]:checked::after,
.rules-project-suggestion-item input[type="checkbox"]:checked::after,
.permission-editor-grid input[type="checkbox"]:checked::after,
.checkbox-grid input[type="checkbox"]:checked::after {
  background: #6f8fdc;
  transform: scale(1);
}

.page-toolbar:has(.admin-breadcrumb),
.page-toolbar:has(.enterprise-detail-title-row),
.page-toolbar:has(#storageResourceDetailTitle) {
  display: flex;
}

.rules-page-toolbar {
  display: none;
}

.menu-item.is-active {
  color: #4f659f;
  border-color: rgba(126, 149, 207, 0.54);
  background: linear-gradient(135deg, rgba(220, 232, 255, 0.94), rgba(245, 241, 255, 0.82));
  box-shadow: inset 4px 0 0 var(--accent), var(--button-glow-strong);
}

.menu-item.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(126, 149, 207, 0.14);
}

.menu-item.is-active::after {
  display: none;
}

/* Admin UI consistency pass for July 9 review. */
.sidebar-brand {
  grid-template-columns: auto minmax(0, 1fr);
}

.sidebar-brand > div:last-child {
  min-width: 0;
  overflow: visible;
}

.sidebar-brand h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
  line-height: 1;
}

.admin-dev-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 36px;
  height: 20px;
  padding: 0 8px;
  line-height: 20px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.page-toolbar {
  min-height: 68px;
  align-items: center;
}

.page-toolbar-copy {
  display: none;
}

.page-toolbar-copy > h2,
.page-toolbar-copy .admin-breadcrumb,
.enterprise-detail-title-row > h2,
.enterprise-detail-title-icon,
.rules-page-toolbar {
  display: none;
}

.page-toolbar:has(.admin-breadcrumb),
.page-toolbar:has(.enterprise-detail-title-row),
.page-toolbar:has(#storageResourceDetailTitle) {
  display: flex;
}

.page-toolbar:has(.enterprise-detail-title-row) .page-toolbar-copy {
  display: block;
}

.page-toolbar-actions {
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
}

.page-toolbar-search-group {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}

.page-toolbar-button-group,
.page-toolbar > .page-toolbar-actions > button,
.page-toolbar > .page-toolbar-actions > a {
  margin-left: auto;
}

.page-toolbar-button-group {
  justify-content: flex-end;
}

.toolbar-search,
.overview-range-control,
.runtime-monitor-range-control,
.token-list-toolbar .toolbar-search,
.rules-search-control {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.toolbar-search input,
.toolbar-search select,
.rules-search-control input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
}

.token-list-toolbar .page-toolbar-actions,
.token-list-toolbar .page-toolbar-search-group {
  flex-wrap: nowrap;
}

.token-list-toolbar .toolbar-filter-group {
  flex: 1 1 auto;
  min-width: 240px;
}

.admin-insight-item,
.admin-insight-item.is-success,
.admin-insight-item.is-warning,
.admin-insight-item.is-danger,
.admin-insight-item.is-disabled,
.summary-item,
.summary-item-accent {
  border-color: rgba(210, 218, 236, 0.78);
  background: rgba(247, 249, 255, 0.86);
  box-shadow: 0 10px 26px rgba(142, 153, 181, 0.12);
}

.admin-insight-item::before,
.summary-item::before {
  display: none;
}

.overview-grid {
  align-items: stretch;
  gap: 16px;
}

.overview-column {
  align-content: stretch;
  gap: 16px;
}

.panel-card.overview-card {
  min-height: 334px;
  height: 100%;
  align-content: stretch;
}

.overview-card-body {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  align-items: stretch;
  height: 100%;
  gap: 16px;
}

.overview-trend-pane {
  min-height: 258px;
}

.overview-chart {
  gap: 8px;
}

.overview-chart svg {
  height: 234px;
}

.overview-chart-empty {
  min-height: 234px;
}

.data-table th:last-child,
.data-table td:last-child {
  text-align: left;
}

.data-table td:last-child:has(.table-actions),
.token-actions-cell,
.workbench-actions-cell,
.gitlab-resource-action-cell,
.workbench-project-actions-cell {
  width: 220px;
  min-width: 220px;
  text-align: left;
}

.data-table td:last-child:has(.table-actions) {
  padding-left: 16px;
}

.table-actions,
.token-actions-cell .table-actions,
.workbench-actions-cell .table-actions,
.gitlab-resource-action-cell .table-actions,
.workbench-project-actions {
  width: 100%;
  justify-content: flex-start;
  justify-items: start;
  justify-self: start;
}

.token-actions-cell .table-actions {
  grid-template-columns: repeat(2, minmax(78px, max-content));
}

.overview-top-item.is-selected,
.rules-project-item.is-selected,
.workbench-origin-option.is-selected,
.bootstrap-status-item-button.is-active,
.detail-tab.is-active,
.rules-editor-tab.is-active,
.rules-summary-inner-tab.is-active,
.toolbar-filter-button.is-active,
.permission-pill.active,
.segmented-btn.is-active,
.menu-item.is-active {
  color: #4f659f;
  border-color: rgba(126, 149, 207, 0.56);
  background: linear-gradient(135deg, rgba(222, 233, 255, 0.95), rgba(246, 242, 255, 0.84));
  box-shadow: inset 3px 0 0 var(--accent), 0 12px 28px rgba(126, 149, 207, 0.18);
}

.menu-item.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(126, 149, 207, 0.14);
}

.menu-item.is-active::after,
.overview-top-item.is-selected::before {
  display: none;
}

.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6f8fdc;
}

@media (max-width: 1100px) {
  .overview-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-card.overview-card {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .page-toolbar-actions,
  .token-list-toolbar .page-toolbar-actions,
  .token-list-toolbar .page-toolbar-search-group {
    flex-wrap: wrap;
  }

  .toolbar-search,
  .overview-range-control,
  .runtime-monitor-range-control,
  .token-list-toolbar .toolbar-search,
  .rules-search-control {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-toolbar-button-group {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Absolute final overrides. Keep this block at EOF. */
.overview-card-body {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.55fr);
}

.overview-trend-pane,
.overview-top-list,
.overview-top-item,
.overview-top-copy,
.overview-top-copy strong {
  min-width: 0;
}

.overview-top-copy strong {
  overflow-wrap: anywhere;
}

.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border: 1px solid rgba(164, 176, 204, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 2px rgba(111, 129, 168, 0.12);
}

.checkbox-line input[type="checkbox"]::after,
.rules-suggestion-item input[type="checkbox"]::after,
.rules-project-suggestion-item input[type="checkbox"]::after,
.permission-editor-grid input[type="checkbox"]::after,
.checkbox-grid input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: transparent;
  transform: scale(0);
  transition: transform 120ms ease, background 120ms ease;
}

.checkbox-line input[type="checkbox"]:checked,
.rules-suggestion-item input[type="checkbox"]:checked,
.rules-project-suggestion-item input[type="checkbox"]:checked,
.permission-editor-grid input[type="checkbox"]:checked,
.checkbox-grid input[type="checkbox"]:checked {
  border-color: rgba(111, 143, 220, 0.95);
  background: rgba(233, 239, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.16);
}

.checkbox-line input[type="checkbox"]:checked::after,
.rules-suggestion-item input[type="checkbox"]:checked::after,
.rules-project-suggestion-item input[type="checkbox"]:checked::after,
.permission-editor-grid input[type="checkbox"]:checked::after,
.checkbox-grid input[type="checkbox"]:checked::after {
  background: #6f8fdc;
  transform: scale(1);
}

@media (max-width: 1100px) {
  .overview-card-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Overview usage summary cards. */
.overview-content-view > .admin-insight-strip {
  grid-template-columns: minmax(190px, 1.05fr) repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.overview-content-view .admin-insight-item {
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  padding: 14px 16px;
  grid-template-rows: auto minmax(0, auto) auto;
  align-content: space-between;
  overflow: visible;
}

.overview-content-view .admin-insight-label {
  font-size: 12px;
  font-weight: 800;
}

.overview-content-view .admin-insight-value {
  align-self: center;
  font-size: 24px;
  line-height: 1.12;
}

.overview-content-view .admin-insight-meta {
  color: #7d8aa5;
  font-size: 12px;
  line-height: 1.35;
  display: block;
  white-space: nowrap;
  overflow: visible;
}

.overview-content-view .admin-insight-meta-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .overview-content-view > .admin-insight-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .overview-content-view > .admin-insight-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Overview insight full-text tooltip. */
.overview-content-view .admin-insight-meta {
  position: relative;
  outline: none;
  cursor: help;
  z-index: 2;
}

.overview-content-view .admin-insight-meta::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: max-content;
  max-width: min(420px, 72vw);
  padding: 8px 10px;
  border: 1px solid rgba(180, 191, 218, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #2f3748;
  box-shadow: 0 14px 32px rgba(91, 103, 132, 0.18);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.overview-content-view .admin-insight-meta:hover::after,
.overview-content-view .admin-insight-meta:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.overview-content-view .admin-insight-meta::after {
  display: none;
}

/* Enterprise detail usage charts mirror overview chart sizing and selection. */
.enterprise-overview-usage-grid {
  gap: 16px;
}

.enterprise-overview-usage-card {
  min-height: 334px;
  height: 100%;
  align-content: stretch;
}

.enterprise-overview-usage-card .overview-card-body {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.55fr);
  align-items: stretch;
  height: 100%;
  gap: 16px;
}

.enterprise-overview-usage-card .overview-trend-pane {
  min-height: 258px;
}

.enterprise-overview-usage-card .overview-chart svg {
  height: 234px;
}

.enterprise-overview-usage-card .overview-chart-empty {
  min-height: 234px;
}

.enterprise-overview-usage-card.is-loading .overview-card-body,
.enterprise-overview-usage-card.is-error .overview-card-body {
  display: block;
}

.enterprise-overview-card-skeleton .overview-chart-skeleton {
  min-height: 246px;
}

.enterprise-overview-usage-card.is-error .empty-state {
  min-height: 246px;
  display: grid;
  place-items: center;
}

.enterprise-overview-top-item {
  cursor: pointer;
}

@media (max-width: 1100px) {
  .enterprise-overview-usage-card {
    min-height: 0;
  }

  .enterprise-overview-usage-card .overview-card-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep only GitLab resource names on one line. */
.gitlab-resource-group-link,
.gitlab-resource-project-link {
  display: inline-block;
  min-width: 0;
  max-width: min(360px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: middle;
}

.gitlab-resource-group-head {
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
}

.gitlab-resource-group-title-wrap {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 360px);
  max-width: min(100%, 360px);
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.gitlab-resource-group-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.gitlab-resource-group-title-wrap .gitlab-resource-group-link {
  width: 100%;
  max-width: 100%;
}

.gitlab-resource-group-title-wrap .gitlab-resource-group-count-badge {
  min-width: 54px;
  max-width: none;
  justify-self: start;
  white-space: nowrap;
}

.gitlab-resource-project-row td:first-child {
  white-space: nowrap;
}

/* July 9 review batch: account menu, enterprise/detail/token refinements. */
.sidebar-logout {
  display: none;
}

.admin-sidebar {
  grid-template-rows: auto 1fr;
}

.admin-user-menu,
.admin-user-menu-inline {
  position: relative;
  flex: 0 0 auto;
}

.admin-user-menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  max-width: 220px;
  line-height: 1;
}

.admin-user-menu-button::before {
  content: "用户名称：";
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}

.admin-user-menu-button::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.admin-user-menu.is-open .admin-user-menu-button::after,
.admin-user-menu-inline.is-open .admin-user-menu-button::after {
  transform: translateY(-35%) rotate(225deg);
}

.admin-global-actions .admin-user-menu-button {
  height: 32px;
  min-height: 32px;
  padding: 0 26px 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  line-height: 1;
}

.admin-global-actions .admin-user-menu-button::before {
  margin-right: 4px;
}

.admin-global-actions .admin-user-menu-button::after {
  right: 8px;
  width: 6px;
  height: 6px;
}

.admin-global-actions .admin-user-menu-button:hover,
.admin-global-actions .admin-user-menu-button:focus-visible {
  background: rgba(125, 149, 207, 0.1);
  outline: none;
}

.admin-user-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(180, 191, 218, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(91, 103, 132, 0.2);
  display: none;
  gap: 10px;
}

.admin-user-menu.is-open .admin-user-menu-popover,
.admin-user-menu-inline.is-open .admin-user-menu-popover {
  display: grid;
}

.admin-user-menu-role {
  padding: 6px 8px;
  color: #47526a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-user-logout {
  width: 100%;
  justify-content: center;
}

.admin-modal-duplicate-close {
  display: none !important;
}

.admin-insight-value,
.summary-item-value,
.enterprise-token-usage strong,
.token-today-usage strong {
  color: #2f64d6;
}

.admin-insight-item.is-success,
.admin-insight-item.is-warning,
.admin-insight-item.is-danger,
.admin-insight-item.is-disabled {
  border-color: rgba(210, 218, 236, 0.78);
  background: rgba(247, 249, 255, 0.88);
}

.enterprise-info-link,
.enterprise-info-link .admin-enterprise-name-text {
  color: #2f64d6;
  font-weight: 900;
}

.enterprise-info-link:hover {
  color: #244fb0;
}

.enterprise-info-name .admin-enterprise-name-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 8px;
}

.enterprise-info-name .admin-enterprise-name-text {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-icon-inline-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.enterprise-icon-inline-preview .enterprise-icon-preview {
  width: 56px;
  height: 56px;
  border: 0;
}

.enterprise-icon-upload-zone {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.enterprise-icon-upload-copy p.is-error {
  color: var(--danger);
}

.enterprise-domain-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.enterprise-domain-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
  font-weight: 800;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.enterprise-https-action {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  color: #576176;
  border-color: rgba(180, 191, 218, 0.74);
  background: rgba(247, 249, 255, 0.9);
}

.enterprise-https-action.is-installed {
  color: #14784f;
  border-color: rgba(44, 151, 105, 0.42);
  background: rgba(232, 249, 241, 0.95);
}

.status-segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  min-width: 104px;
  padding: 3px;
  border: 1px solid rgba(184, 197, 222, 0.78);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(248, 250, 255, 0.94);
  vertical-align: middle;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.status-segment {
  min-width: 0;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: calc(var(--radius) - 3px) !important;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.status-segment + .status-segment {
  border-left: 0;
}

.status-segment.is-active-state.is-selected {
  color: #14784f;
  background: rgba(224, 248, 239, 0.96);
  box-shadow: inset 0 0 0 1px rgba(44, 151, 105, 0.28);
}

.status-segment.is-disabled-state.is-selected {
  color: #a23a48;
  background: rgba(255, 235, 238, 0.96);
  box-shadow: inset 0 0 0 1px rgba(217, 75, 92, 0.26);
}

.status-segment:disabled {
  opacity: 1;
  cursor: default;
}

.toolbar-select {
  display: inline-grid;
  grid-template-columns: auto minmax(120px, 180px);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.token-provider-filter-menu {
  position: relative;
  overflow: visible;
  grid-template-columns: minmax(150px, 190px);
}

.toolbar-select select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 34px 0 12px;
}

.toolbar-select-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 32px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--text);
  box-shadow: var(--button-glow);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-select-button:hover {
  background: var(--field-bg);
  border-color: rgba(255, 255, 255, 0.78);
}

.toolbar-select-button::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.72;
}

.toolbar-select-button[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.toolbar-select-button[aria-expanded="true"] {
  background: var(--field-focus-bg);
  border-color: var(--line-strong);
  box-shadow: var(--button-glow-strong);
}

.toolbar-select-button.is-selected-value,
.toolbar-select-button[data-selected-value] {
  background: var(--field-focus-bg);
  border-color: var(--line-strong);
  box-shadow: var(--button-glow-strong);
}

.toolbar-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 260;
  display: grid;
  gap: 4px;
  width: 180px;
  max-height: min(260px, 50vh);
  padding: 6px;
  overflow: auto;
  border: 1px solid rgba(180, 191, 218, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(91, 103, 132, 0.2);
}

.toolbar-select-option {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  justify-content: flex-start;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.toolbar-select-option:hover,
.toolbar-select-option:focus-visible,
.toolbar-select-option.is-selected {
  background: rgba(218, 230, 255, 0.72);
  color: #2f64d6;
  box-shadow: none;
}

.page-toolbar,
.detail-tabs {
  position: relative;
  z-index: 70;
}

.admin-global-header {
  z-index: 90;
}

.token-provider-filter-control {
  flex: 0 0 auto;
}

.token-provider-filter-control .toolbar-select-button {
  min-width: 168px;
}

.token-list-toolbar .toolbar-filter-group {
  min-width: 0;
}

.token-actions-cell,
.data-table td.token-actions-cell {
  width: 300px;
  min-width: 300px;
}

.token-actions-cell .table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  max-height: none;
  overflow: visible;
}

.token-actions-cell .table-actions button {
  width: auto;
  min-width: 54px;
  height: 30px;
  padding-inline: 7px;
  font-size: 12px;
  justify-content: center;
  text-align: center;
}

.token-list-table-shell .data-table th,
.token-list-table-shell .data-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.page-toolbar:has(.enterprise-detail-title-row) {
  position: sticky;
  top: 0;
  z-index: 48;
  margin-bottom: 0;
}

.page-toolbar:has(.enterprise-detail-title-row) .page-toolbar-copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.page-toolbar:has(.enterprise-detail-title-row) .admin-breadcrumb {
  display: flex;
}

.page-toolbar:has(.enterprise-detail-title-row) .page-toolbar-actions {
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

.enterprise-detail-title-row > h2,
.enterprise-detail-title-icon:not(.hidden) {
  display: inline-flex;
}

.enterprise-detail-title-icon:not(.hidden) {
  display: block;
}

.enterprise-detail-title-row h2 {
  max-width: min(520px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
}

.detail-shell {
  gap: 0;
}

.detail-tabs {
  position: sticky;
  top: 86px;
  z-index: 45;
  display: flex;
  margin-bottom: 18px;
  padding: 12px 0 12px 4px;
  background: var(--bg, #f6f7fb);
  border-bottom: 1px solid rgba(210, 218, 236, 0.72);
}

.detail-panel {
  padding-left: 0;
}

.enterprise-gitlab-panel-card > .panel-head h2 {
  display: none;
}

.enterprise-gitlab-panel-card > .panel-head {
  justify-content: flex-end;
}

.enterprise-gitlab-panel-card > .panel-head .table-actions {
  width: auto;
  justify-content: flex-end;
}

.detail-panel > .panel-card > .panel-head h2 {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.enterprise-detail-panel-actions {
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.detail-panel > .panel-card > .panel-head .enterprise-detail-panel-actions {
  flex: 1 1 auto;
  width: auto;
  justify-content: flex-end;
  justify-items: end;
  justify-self: stretch;
}

.enterprise-detail-panel-actions .admin-icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.admin-system-tabs {
  margin-bottom: 12px;
}

.system-grid {
  margin-top: 0;
}

.rules-page-toolbar {
  margin-bottom: 12px;
}

.rules-editor-actions,
.rules-search-control {
  align-items: center;
}

.rules-editor-tabs {
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
  box-sizing: border-box;
}

.rules-search-control input {
  height: 42px;
}

.rules-search-refresh-btn {
  height: 42px;
  min-height: 42px;
}

.gitlab-user-name-cell {
  align-items: flex-start;
  text-align: left;
}

.gitlab-user-name-cell .admin-global-link,
.gitlab-user-name-cell > span:first-child {
  font-weight: 900;
}

.gitlab-user-email {
  color: var(--muted);
  font-size: 12px;
}

.enterprise-overview-usage-card .overview-card-body {
  grid-template-columns: minmax(0, 1.34fr) minmax(190px, 0.66fr);
}

.enterprise-overview-usage-card .overview-chart svg {
  height: 246px;
}

.enterprise-overview-usage-card .overview-chart-empty {
  min-height: 246px;
}

.enterprise-overview-usage-card .overview-trend-pane {
  min-height: 270px;
}

.enterprise-overview-usage-card .overview-chart-axis-label {
  font-size: 10px;
  fill: #7d8aa5;
}

@media (max-width: 1100px) {
  .detail-tabs {
    top: 72px;
  }

  .workbench-detail-status-grid,
  .workbench-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-icon-upload-zone {
    grid-template-columns: minmax(0, 1fr);
  }

  .token-list-toolbar .page-toolbar-actions,
  .token-list-toolbar .page-toolbar-search-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .workbench-detail-status-grid,
  .workbench-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-overview-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-overview-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.admin-user-form {
  gap: 18px;
}

.admin-user-form > .field > span {
  color: #66728a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-role-field {
  gap: 8px;
}

.admin-role-toggle {
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(203, 214, 235, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #34425a;
  box-shadow: 0 1px 2px rgba(52, 64, 94, 0.06);
}

.admin-role-toggle:hover {
  border-color: rgba(126, 149, 207, 0.74);
  background: rgba(248, 251, 255, 0.96);
}

.admin-permission-field {
  gap: 8px;
}

.admin-permission-grid.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(216, 224, 240, 0.92);
  border-radius: 10px;
  background: rgba(248, 250, 253, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-permission-option.checkbox-line {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(218, 226, 241, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #28364f;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(57, 72, 105, 0.05);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.admin-permission-option.checkbox-line:hover {
  border-color: rgba(135, 158, 213, 0.76);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(71, 90, 130, 0.08);
  transform: translateY(-1px);
}

.admin-permission-option.checkbox-line:has(input:checked) {
  border-color: rgba(104, 135, 211, 0.82);
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(238, 244, 255, 0.92));
  box-shadow: 0 0 0 1px rgba(104, 135, 211, 0.12), 0 8px 22px rgba(94, 121, 189, 0.12);
}

.admin-permission-option.checkbox-line:has(input:checked)::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #6f8fdc;
}

.admin-permission-option.checkbox-line:has(input:focus-visible),
.admin-role-toggle:has(input:focus-visible) {
  outline: 3px solid rgba(111, 143, 220, 0.18);
  outline-offset: 2px;
}

.admin-permission-option.checkbox-line:has(input:disabled) {
  cursor: default;
  transform: none;
  opacity: 0.68;
}

.admin-permission-option.checkbox-line:has(input:disabled):hover {
  border-color: rgba(218, 226, 241, 0.88);
  box-shadow: 0 1px 2px rgba(57, 72, 105, 0.05);
}

.admin-permission-option-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-permission-option-copy strong {
  min-width: 0;
  color: #28364f;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-permission-option-copy small {
  min-width: 0;
  color: #7a879d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-permission-option input[type="checkbox"],
.admin-role-toggle input[type="checkbox"] {
  border-color: rgba(139, 159, 207, 0.72);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(76, 93, 133, 0.08);
}

.admin-permission-option input[type="checkbox"]:checked,
.admin-role-toggle input[type="checkbox"]:checked {
  border-color: #6f8fdc;
  background: #6f8fdc;
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.14);
}

.admin-permission-option input[type="checkbox"]::after,
.admin-role-toggle input[type="checkbox"]::after {
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg) scale(0);
}

.admin-permission-option input[type="checkbox"]:checked::after,
.admin-role-toggle input[type="checkbox"]:checked::after {
  background: transparent;
  transform: rotate(45deg) scale(1);
}

@media (max-width: 760px) {
  .admin-permission-grid.checkbox-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-role-toggle {
    width: 100%;
  }
}

.modal-card .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal-card .field select,
.modal-card .field textarea,
.modal-card .suggest-input,
.modal-card .plain-editor,
.modal-card .code-editor,
.modal-card .enterprise-icon-upload-zone,
.modal-card .certificate-upload-zone {
  border-radius: 6px;
}

.modal-card button,
.modal-card .primary,
.modal-card .secondary,
.modal-card .danger {
  border-radius: 12px;
}

.modal-card .small {
  border-radius: 10px;
}

.modal-card .modal-close-icon-btn,
.modal-card .icon-plain {
  border-radius: 999px;
}

.modal-card .modal-actions {
  padding-right: 18px;
  padding-bottom: 18px;
}

.admin-user-modal-card .modal-actions,
.admin-permission-modal-card .admin-permission-modal-actions,
.admin-static-update-card .modal-actions {
  padding-right: 18px;
  padding-bottom: 18px;
}

.admin-permission-grid.checkbox-grid {
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
}

.admin-permission-option.checkbox-line {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 6px;
}

.admin-role-toggle {
  border-radius: 6px;
}

/* Admin detail and modal polish for enterprise management review. */
.admin-main:has(.enterprise-detail-title-row) {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.content-view:has(.enterprise-detail-title-row) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.content-view:has(.enterprise-detail-title-row) > .page-toolbar {
  position: relative;
  top: auto;
  z-index: 60;
  margin-bottom: 0;
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: rgba(248, 250, 255, 0.96);
}

.content-view:has(.enterprise-detail-title-row) > .detail-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.content-view:has(.enterprise-detail-title-row) > .detail-shell > .detail-tabs {
  position: relative;
  top: auto;
  z-index: 59;
  margin: 0;
  padding: 12px 0 12px 4px;
  background: rgba(246, 248, 252, 0.98);
  border-bottom: 1px solid rgba(210, 218, 236, 0.82);
  box-shadow: 0 12px 22px rgba(143, 154, 181, 0.12);
}

.content-view:has(.enterprise-detail-title-row) > .detail-shell > .detail-panel {
  min-height: 0;
  padding: 18px 0 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

.content-view:has(.enterprise-detail-title-row) > .detail-shell > .detail-panel.hidden {
  display: none !important;
}

.admin-permission-modal-card {
  max-height: calc(100vh - 56px);
}

.admin-permission-modal-body {
  padding: 30px 24px 6px;
}

.admin-permission-tabs {
  position: static;
  top: auto;
  z-index: auto;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.admin-permission-tabs .detail-tab,
.admin-permission-modal-actions button,
.permission-pill {
  border-radius: 12px;
}

.admin-permission-modal-card .admin-permission-modal-actions {
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(210, 218, 236, 0.72);
}

.modal-head {
  z-index: 30;
}

.modal-card > .stack-form,
.modal-card .gitlab-modal-layout {
  padding-top: 32px;
}

.modal-card > .stack-form > .field:first-child,
.modal-card .gitlab-modal-form > .field:first-child {
  margin-top: 4px;
}

.modal-card .field:has(select) {
  position: relative;
  z-index: 3;
}

.modal-card .field:has(select:focus) {
  z-index: 12;
}

.modal-card .field select {
  min-height: 44px;
  line-height: 1.35;
}

.gitlab-user-identity-head,
.gitlab-user-identity-cell {
  min-width: 220px;
  text-align: left;
}

.gitlab-user-identity-head {
  vertical-align: middle;
}

.gitlab-user-identity-head span,
.gitlab-user-identity-head small {
  display: block;
  line-height: 1.35;
}

.gitlab-user-identity-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.gitlab-user-name-cell {
  width: 100%;
  justify-items: start;
  align-items: start;
  text-align: left;
}

.gitlab-user-name-cell .admin-global-link,
.gitlab-user-name-cell > span:first-child {
  display: inline-block;
  max-width: 100%;
  font-weight: 900;
  text-align: left;
}

.gitlab-user-email {
  max-width: 100%;
  text-align: left;
}

@media (max-width: 760px) {
  .content-view:has(.enterprise-detail-title-row) > .detail-shell {
    padding-left: 0;
  }

  .content-view:has(.enterprise-detail-title-row) > .detail-shell > .detail-tabs {
    padding-left: 0;
  }

  .modal-card > .stack-form,
  .modal-card .gitlab-modal-layout {
    padding-top: 28px;
  }
}

/* Admin follow-up polish for workbench, token and system pages. */
.workbench-bootstrap-modal-card {
  width: min(1120px, calc(100vw - 36px));
}

.workbench-bootstrap-modal-card .gitlab-modal-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: stretch;
}

.workbench-bootstrap-modal-card .gitlab-modal-form,
.workbench-bootstrap-modal-card .gitlab-modal-result {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

.workbench-bootstrap-modal-card .gitlab-modal-result {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
}

.workbench-bootstrap-modal-card .bootstrap-command-head {
  justify-content: flex-end;
}

.workbench-bootstrap-modal-card .page-toolbar-button-group {
  gap: 8px;
  justify-content: flex-end;
}

.workbench-bootstrap-modal-card .bootstrap-tool-btn,
.workbench-bootstrap-modal-card .bootstrap-copy-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.workbench-bootstrap-modal-card .admin-code-block {
  min-height: 74px;
}

.workbench-bootstrap-modal-card .bootstrap-overview-card,
.workbench-bootstrap-modal-card .gitlab-modal-result {
  height: 100%;
}

.workbench-bootstrap-modal-card .modal-actions {
  align-self: end;
  margin-top: 0;
}

.content-view:has(.token-list-toolbar) {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.admin-main:has(.token-list-toolbar) {
  height: 100%;
  overflow: hidden;
}

.content-view:has(.token-list-toolbar) > .token-list-toolbar,
.content-view:has(.token-list-toolbar) > .admin-insight-strip,
.content-view:has(.token-list-toolbar) > .admin-audit-note {
  flex: 0 0 auto;
}

.content-view:has(.token-list-toolbar) > .token-list-table-shell {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.content-view:has(.token-list-toolbar) > .token-plain-result,
.content-view:has(.token-list-toolbar) > .global-message {
  min-height: 0;
}

.admin-main:has(.admin-system-tabs) {
  height: 100%;
  overflow: auto;
}

.content-view:has(.admin-system-tabs) {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, auto) auto;
  align-content: start;
  min-height: 0;
  padding-top: 0;
}

.content-view:has(.admin-system-tabs) > .admin-system-tabs {
  position: relative;
  top: auto;
  z-index: 2;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.content-view:has(.admin-system-tabs) > .admin-insight-strip {
  margin-top: 0;
}

.content-view:has(.admin-system-tabs) .system-grid,
.content-view:has(.admin-system-tabs) .system-model-grid {
  margin-top: 0;
}

@media (max-width: 760px) {
  .workbench-bootstrap-modal-card .gitlab-modal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-view:has(.token-list-toolbar) {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  }
}

/* Global checkbox round control pass. */
.checkbox-line input[type="checkbox"],
.rules-suggestion-item input[type="checkbox"],
.rules-project-suggestion-item input[type="checkbox"],
.permission-editor-grid input[type="checkbox"],
.checkbox-grid input[type="checkbox"],
.modal-layer input[type="checkbox"],
.admin-shell input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  inline-size: 16px;
  block-size: 16px;
  max-width: 16px;
  max-height: 16px;
  min-inline-size: 16px;
  min-block-size: 16px;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0;
  padding: 0 !important;
  border: 1.5px solid rgba(139, 159, 207, 0.74);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(76, 93, 133, 0.08);
  vertical-align: middle;
}

.checkbox-line input[type="checkbox"]::after,
.rules-suggestion-item input[type="checkbox"]::after,
.rules-project-suggestion-item input[type="checkbox"]::after,
.permission-editor-grid input[type="checkbox"]::after,
.checkbox-grid input[type="checkbox"]::after,
.modal-layer input[type="checkbox"]::after,
.admin-shell input[type="checkbox"]::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 1.8px 1.8px 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 120ms ease;
}

.checkbox-line input[type="checkbox"]:checked,
.rules-suggestion-item input[type="checkbox"]:checked,
.rules-project-suggestion-item input[type="checkbox"]:checked,
.permission-editor-grid input[type="checkbox"]:checked,
.checkbox-grid input[type="checkbox"]:checked,
.modal-layer input[type="checkbox"]:checked,
.admin-shell input[type="checkbox"]:checked {
  border-color: #6f8fdc;
  background: #6f8fdc;
  box-shadow: 0 0 0 2px rgba(111, 143, 220, 0.14);
}

.checkbox-line input[type="checkbox"]:checked::after,
.rules-suggestion-item input[type="checkbox"]:checked::after,
.rules-project-suggestion-item input[type="checkbox"]:checked::after,
.permission-editor-grid input[type="checkbox"]:checked::after,
.checkbox-grid input[type="checkbox"]:checked::after,
.modal-layer input[type="checkbox"]:checked::after,
.admin-shell input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-line input[type="checkbox"]:focus-visible,
.rules-suggestion-item input[type="checkbox"]:focus-visible,
.rules-project-suggestion-item input[type="checkbox"]:focus-visible,
.permission-editor-grid input[type="checkbox"]:focus-visible,
.checkbox-grid input[type="checkbox"]:focus-visible,
.modal-layer input[type="checkbox"]:focus-visible,
.admin-shell input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(111, 143, 220, 0.22);
  outline-offset: 2px;
}

.checkbox-line,
.admin-shell .checkbox-line {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

.admin-role-toggle,
.system-dev-toggle,
.admin-shell .admin-role-toggle,
.admin-shell .system-dev-toggle {
  width: fit-content;
  max-width: 100%;
}

.admin-permission-option.checkbox-line,
.admin-shell .admin-permission-option.checkbox-line {
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  min-height: 50px;
  padding: 10px 14px;
}

.admin-permission-option.checkbox-line:has(input:checked)::before,
.admin-shell .admin-permission-option.checkbox-line:has(input:checked)::before {
  display: none;
}

.admin-permission-option-copy,
.admin-shell .admin-permission-option-copy {
  align-self: center;
}

.permission-editor-grid .checkbox-line,
.admin-enterprise-grid .checkbox-line,
.admin-shell .permission-editor-grid .checkbox-line,
.admin-shell .admin-enterprise-grid .checkbox-line {
  min-height: 32px;
}

/* Enterprise detail workbench link modal dropdown pass. */
.enterprise-workbench-modal-card {
  overflow: visible;
}

.enterprise-workbench-modal-card > .enterprise-workbench-form {
  min-height: 264px;
  overflow: visible;
}

.enterprise-workbench-modal-card .enterprise-workbench-select-field {
  position: relative;
  z-index: 4;
}

.enterprise-workbench-modal-card #enterpriseWorkbenchSelect {
  position: relative;
  z-index: 4;
}

.enterprise-workbench-modal-card .modal-actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

@media (max-height: 520px) {
  .enterprise-workbench-modal-card > .enterprise-workbench-form {
    min-height: 220px;
  }
}

/* Global custom select pass. */
.admin-select-control {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.toolbar-search .admin-select-control,
.toolbar-select .admin-select-control,
.field .admin-select-control {
  width: 100%;
}

.admin-select-native {
  position: absolute !important;
  inset: 0;
  z-index: -1;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  opacity: 0;
  pointer-events: none;
}

.field select,
.toolbar-search select,
.admin-shell select {
  background: var(--field-bg);
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--button-glow);
}

.field select:focus,
.toolbar-search select:focus,
.admin-shell select:focus {
  background: var(--field-focus-bg);
  border-color: var(--line-strong);
  box-shadow: var(--button-glow-strong);
}

button.admin-select-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
  box-shadow: var(--button-glow);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.admin-select-button:hover {
  background: var(--field-bg);
  border-color: rgba(255, 255, 255, 0.78);
}

.toolbar-search button.admin-select-button,
.toolbar-select button.admin-select-button {
  min-height: 42px;
  font-size: 13px;
  font-weight: 400;
}

button.admin-select-button::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(50% 72%, 16% 34%, 84% 34%);
  opacity: 0.72;
  transform: translateY(-50%);
  transition: transform 120ms ease, opacity 120ms ease;
}

button.admin-select-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--field-focus-bg);
  box-shadow: var(--button-glow-strong);
}

button.admin-select-button[aria-expanded="true"]::after {
  opacity: 0.9;
  transform: translateY(-50%) rotate(180deg);
}

button.admin-select-button:focus-visible {
  outline: 2px solid rgba(111, 143, 220, 0.24);
  outline-offset: 2px;
}

.admin-select-control.is-disabled button.admin-select-button,
button.admin-select-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.field.has-error button.admin-select-button {
  border-color: #d94b5c;
  box-shadow: 0 0 0 3px rgba(217, 75, 92, 0.14);
}

.admin-select-menu {
  position: fixed;
  z-index: 10060;
  display: grid;
  gap: 4px;
  min-width: 180px;
  max-height: min(280px, 52vh);
  padding: 6px;
  overflow: auto;
  border: 1px solid rgba(180, 191, 218, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(58, 70, 103, 0.22), 0 4px 14px rgba(58, 70, 103, 0.14);
}

.admin-select-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
  text-align: left;
}

.admin-select-option::before {
  content: "";
  width: 5px;
  height: 9px;
  justify-self: center;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg);
}

.admin-select-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-select-option:hover,
.admin-select-option:focus-visible,
.admin-select-option.is-selected {
  background: rgba(218, 230, 255, 0.76);
  color: #2f64d6;
  box-shadow: none;
}

.admin-select-option.is-selected::before {
  border-color: currentColor;
}

.admin-select-option:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.admin-select-group-label,
.admin-select-empty {
  min-height: 28px;
  padding: 7px 10px 3px;
  color: #7b879d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

/* Enterprise detail tabs gap fix. */
.content-view:has(.enterprise-detail-title-row) > .detail-shell > .detail-tabs {
  padding-top: 0;
  padding-bottom: 10px;
  box-shadow: none;
}

/* Batch 32-36 admin layout refinements. */
.admin-shell .page-toolbar .admin-icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.admin-icon-action.is-pending svg {
  animation: admin-icon-spin 780ms linear infinite;
  transform-origin: center;
}

@keyframes admin-icon-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-main:has(#workbenchList) {
  height: 100%;
  overflow: hidden;
}

.content-view:has(#workbenchList) {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.content-view:has(#workbenchList) > .page-toolbar,
.content-view:has(#workbenchList) > .admin-insight-strip,
.content-view:has(#workbenchList) > .admin-audit-note {
  min-height: 0;
}

.content-view:has(#workbenchList) > #workbenchList {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

#workbenchList .data-table th {
  position: sticky;
  top: 0;
  z-index: 16;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.18);
}

.token-usage-modal-summary .summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}

.token-usage-modal-summary .summary-item-label {
  min-width: 0;
}

.token-usage-modal-summary .summary-item-value {
  grid-column: 2;
  justify-self: end;
  margin-top: 0;
  text-align: right;
}

.token-usage-modal-summary .token-session-status,
.token-usage-modal-summary .summary-item > .muted {
  justify-self: end;
  text-align: right;
}

.token-usage-bar-axis {
  display: grid;
  align-items: center;
  justify-content: stretch;
  gap: 0;
}

.token-usage-bar-axis span {
  min-width: 0;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-usage-tooltip {
  white-space: pre-line;
}

.content-view:has(.admin-system-tabs) .system-grid,
.content-view:has(.admin-system-tabs) .system-model-grid {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.system-side-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.system-summary-card {
  min-width: 0;
}

.system-summary-card #systemSummary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .content-view:has(.admin-system-tabs) .system-grid,
  .content-view:has(.admin-system-tabs) .system-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-summary-card #systemSummary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Enterprise detail tabs live inside the header card. */
.content-view:has(.enterprise-detail-title-row) > .page-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding-bottom: 14px;
  overflow: hidden;
}

.content-view:has(.enterprise-detail-title-row) > .page-toolbar > .page-toolbar-copy {
  grid-column: 1;
  min-width: 0;
}

.content-view:has(.enterprise-detail-title-row) > .page-toolbar > .page-toolbar-actions {
  grid-column: 2;
  min-width: 0;
}

.content-view:has(.enterprise-detail-title-row) > .page-toolbar > .detail-tabs {
  grid-column: 1 / -1;
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.content-view:has(.enterprise-detail-title-row) > .detail-shell {
  grid-template-rows: minmax(0, 1fr);
  padding-left: 0;
}

@media (max-width: 760px) {
  .content-view:has(.enterprise-detail-title-row) > .page-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-view:has(.enterprise-detail-title-row) > .page-toolbar > .page-toolbar-actions,
  .content-view:has(.enterprise-detail-title-row) > .page-toolbar > .detail-tabs {
    grid-column: 1;
  }
}

/* System page aligns lower cards to the 4-column insight grid. */
.content-view:has(.admin-system-tabs) .system-grid,
.content-view:has(.admin-system-tabs) .system-model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-side-column,
.content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:first-child {
  grid-column: span 1;
}

.system-summary-card,
.content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:last-child {
  grid-column: span 3;
}

.system-summary-card #systemSummary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .content-view:has(.admin-system-tabs) .system-grid,
  .content-view:has(.admin-system-tabs) .system-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-side-column,
  .system-summary-card,
  .content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:first-child,
  .content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:last-child {
    grid-column: auto;
  }
}

/* Batch 37: tighten GitLab user table, token overview cards, and system 1:3 grid. */
.gitlab-user-table.data-table {
  width: 100%;
  table-layout: fixed;
}

.gitlab-user-table.data-table th,
.gitlab-user-table.data-table td {
  padding: 8px 10px;
}

.gitlab-user-table th:nth-child(1),
.gitlab-user-table td:nth-child(1),
.gitlab-user-table th:nth-child(2),
.gitlab-user-table td:nth-child(2),
.gitlab-user-table th:nth-child(3),
.gitlab-user-table td:nth-child(3),
.gitlab-user-table th:nth-child(4),
.gitlab-user-table td:nth-child(4),
.gitlab-user-actions-cell {
  width: auto;
}

.gitlab-user-col-identity {
  width: 152px;
}

.gitlab-user-col-name {
  width: 116px;
}

.gitlab-user-col-status {
  width: 84px;
}

.gitlab-user-col-login {
  width: 128px;
}

.gitlab-user-col-projects {
  width: auto;
}

.gitlab-user-col-actions {
  width: 220px;
}

.gitlab-user-project-cell {
  min-width: 0;
}

.gitlab-user-actions-cell .table-actions {
  justify-content: flex-start;
}

.token-usage-modal-summary .summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.token-usage-modal-summary .summary-item {
  grid-column: auto;
  min-height: 64px;
}

.token-usage-tooltip {
  display: grid;
  gap: 2px;
  min-width: 132px;
  max-width: min(240px, calc(100vw - 24px));
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(113, 145, 223, 0.24);
  border-left: 4px solid #7191df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #26364f;
  box-shadow: 0 16px 36px rgba(34, 46, 86, 0.18);
  white-space: normal;
  overflow-wrap: anywhere;
}

.token-usage-tooltip strong {
  color: #26364f;
  font-size: 13px;
  line-height: 1.35;
}

.token-usage-tooltip span {
  display: block;
  color: #596985;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.content-view:has(.admin-system-tabs) .system-grid,
.content-view:has(.admin-system-tabs) .system-model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.content-view:has(.admin-system-tabs) .system-grid > .system-side-column,
.content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:first-child {
  grid-column: 1 / span 1;
  min-width: 0;
}

.content-view:has(.admin-system-tabs) .system-grid > .system-summary-card,
.content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:last-child {
  grid-column: 2 / span 3;
  min-width: 0;
}

.content-view:has(.admin-system-tabs) .system-side-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card {
  width: 100%;
  min-width: 0;
}

.content-view:has(.admin-system-tabs) .system-summary-card #systemSummary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .content-view:has(.admin-system-tabs) .system-grid,
  .content-view:has(.admin-system-tabs) .system-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-view:has(.admin-system-tabs) .system-grid > .system-side-column,
  .content-view:has(.admin-system-tabs) .system-grid > .system-summary-card,
  .content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:first-child,
  .content-view:has(.admin-system-tabs) .system-model-grid > .panel-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .token-usage-modal-summary .summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Batch 38: make storage type tabs blue and keep latest session summary on one line. */
.storage-type-segmented .segmented-btn.is-active {
  color: #ffffff;
  border-left-color: transparent;
  background: linear-gradient(135deg, #4f7bd9 0%, #6f96e8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(79, 123, 217, 0.18);
}

.storage-type-segmented .segmented-btn.is-active + .segmented-btn {
  border-left-color: transparent;
}

.storage-type-segmented .segmented-btn:not(.is-active) {
  color: #34415d;
}

.token-usage-modal-summary .summary-item:has(.token-session-status) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.token-usage-modal-summary .summary-item:has(.token-session-status) .summary-item-label {
  grid-column: 1;
  white-space: nowrap;
}

.token-usage-modal-summary .summary-item:has(.token-session-status) .token-session-status {
  grid-column: 2;
  justify-self: start;
  white-space: nowrap;
}

.token-usage-modal-summary .summary-item:has(.token-session-status) .summary-item-value {
  grid-column: 3;
  white-space: nowrap;
}

/* Batch 39: balance GitLab user table column spacing across the full width. */
.gitlab-user-col-identity {
  width: 16%;
}

.gitlab-user-col-name {
  width: 15%;
}

.gitlab-user-col-status {
  width: 11%;
}

.gitlab-user-col-login {
  width: 15%;
}

.gitlab-user-col-projects {
  width: 24%;
}

.gitlab-user-col-actions {
  width: 19%;
}

/* Batch 40: show repository counts and give GitLab resource names more room. */
.gitlab-resource-table {
  table-layout: fixed;
  min-width: 1280px;
}

.gitlab-resource-col-name {
  width: 300px;
}

.gitlab-resource-col-namespace {
  width: 220px;
}

.gitlab-resource-col-visibility {
  width: 120px;
}

.gitlab-resource-col-language {
  width: 180px;
}

.gitlab-resource-col-size {
  width: 130px;
}

.gitlab-resource-col-activity {
  width: 170px;
}

.gitlab-resource-col-actions {
  width: 160px;
}

.gitlab-resource-table .gitlab-resource-group-title-wrap {
  width: 100%;
  max-width: 100%;
}

.gitlab-resource-table .gitlab-resource-group-link,
.gitlab-resource-table .gitlab-resource-project-link {
  max-width: 100%;
}

.gitlab-resource-table .gitlab-resource-group-count-badge {
  min-width: 64px;
}

/* Batch 46: overview usage charts show every ranked series as color-coded legend rows. */
.overview-top-item {
  cursor: default;
}

.overview-top-item::before {
  background: var(--overview-series-color, transparent);
}

.overview-top-copy {
  align-items: center;
}

.overview-top-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-top-marker {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--overview-series-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--overview-series-color, var(--accent)) 16%, transparent);
}

.overview-top-value {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.overview-top-bar i {
  background: var(--overview-series-color, var(--accent));
}

/* Batch 47: move overview chart legends below the chart so the plot keeps full width. */
.overview-content-view .overview-card .overview-card-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.overview-content-view .overview-card .overview-trend-pane {
  min-width: 0;
}

.overview-content-view .overview-card .overview-chart svg {
  height: 220px;
}

.overview-content-view .overview-card .overview-top-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: stretch;
  gap: 8px 12px;
  padding: 8px 0 0 4px;
  border-top: 1px solid rgba(126, 139, 168, 0.14);
}

.overview-content-view .overview-card .overview-top-item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 3px 6px 3px 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: opacity 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.overview-content-view .overview-card .overview-top-item::before,
.overview-content-view .overview-card .overview-top-bar {
  display: none;
}

.overview-content-view .overview-card .overview-top-item:hover {
  background: rgba(239, 246, 255, 0.72);
}

.overview-content-view .overview-card .overview-top-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.18);
}

.overview-content-view .overview-card .overview-top-item.is-hidden {
  opacity: 0.42;
}

.overview-content-view .overview-card .overview-top-item.is-hidden .overview-top-copy strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.overview-content-view .overview-card .overview-top-item.is-hidden .overview-top-marker {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--overview-series-color, var(--accent));
}

.overview-content-view .overview-card .overview-top-copy {
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.overview-content-view .overview-card .overview-top-copy strong {
  max-width: 180px;
  font-size: 12px;
  font-weight: 800;
}

.overview-content-view .overview-card .overview-top-value {
  font-size: 11px;
  font-weight: 800;
}

.overview-content-view .overview-card .overview-top-marker {
  width: 9px;
  height: 9px;
}

/* Batch 49: keep overview loading cards as plain neutral skeletons. */
.overview-content-view .overview-card.is-loading {
  overflow: hidden;
}

.overview-content-view .overview-card.is-loading .overview-card-head h2 {
  min-width: 0;
  width: 100%;
}

.overview-title-skeleton {
  width: 58px;
  height: 24px;
  border-radius: 8px;
}

.overview-content-view .overview-card.is-loading .overview-card-body {
  display: block;
}

.overview-card-skeleton {
  display: grid;
  gap: 10px;
  width: 100%;
}

.overview-chart-skeleton {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.08)),
    rgba(241, 245, 249, 0.62);
  background-size: 220% 100%, 100% 100%;
  animation: admin-skeleton-shimmer 1.25s ease-in-out infinite;
}

.overview-chart-skeleton-grid {
  position: absolute;
  inset: 24px 18px 26px 48px;
  background:
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.2) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, transparent 0 112px, rgba(148, 163, 184, 0.1) 112px 113px, transparent 113px 224px);
}

.overview-chart-skeleton-curve {
  position: absolute;
  left: 48px;
  right: 18px;
  height: 12px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.72);
}

.overview-chart-skeleton-curve.is-primary {
  top: 82px;
}

.overview-chart-skeleton-curve.is-secondary {
  top: 126px;
  width: 64%;
  background: rgba(203, 213, 225, 0.58);
}

.overview-total-skeleton {
  width: 96px;
  height: 12px;
}

.overview-legend-skeleton {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0 0 4px;
  border-top: 1px solid rgba(126, 139, 168, 0.14);
}

.overview-legend-skeleton .admin-skeleton-line {
  width: 120px;
  height: 18px;
  border-radius: 999px;
}

.overview-legend-skeleton .admin-skeleton-line.is-short {
  width: 72px;
}

/* Batch 50: keep overview usage cards height-stable across empty and hidden states. */
.overview-content-view .panel-card.overview-card {
  min-height: 394px;
}

.overview-content-view .overview-card .overview-card-body {
  grid-template-rows: minmax(244px, auto) minmax(50px, auto);
}

.overview-content-view .overview-card .overview-chart {
  grid-template-rows: 220px 16px;
  min-height: 244px;
}

.overview-content-view .overview-card .overview-chart-stage {
  height: 220px;
  min-height: 220px;
}

.overview-content-view .overview-card .overview-chart svg,
.overview-content-view .overview-card .overview-chart-empty {
  height: 220px;
  min-height: 220px;
}

.overview-content-view .overview-card .overview-chart-summary {
  min-height: 16px;
}

.overview-content-view .overview-card .overview-top-list {
  min-height: 50px;
  align-content: flex-start;
}

.overview-content-view .overview-card .overview-top-list > .empty-state.compact {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.overview-content-view .overview-card.is-loading .overview-card-body {
  grid-template-rows: minmax(244px, auto) minmax(50px, auto);
}

/* Batch 51: give overview page breathing room above the fixed version label. */
.overview-content-view {
  padding-bottom: 56px;
}

.overview-content-view > .overview-grid {
  padding-bottom: 24px;
}

/* Batch 57: prevent permission-restricted users from seeing the fallback full menu before session hydration. */
html:not(.admin-menu-cache-ready):not(.admin-menu-session-ready) .menu-nav:not([data-menu-ready="true"]) {
  visibility: hidden;
  pointer-events: none;
}

/* Batch 56: make enterprise detail usage charts use overview-style bottom legends. */
.enterprise-overview-usage-card {
  min-height: 394px;
}

.enterprise-overview-usage-card .overview-card-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(244px, auto) minmax(50px, auto);
  align-items: stretch;
  gap: 10px;
  height: auto;
}

.enterprise-overview-usage-card .overview-trend-pane {
  min-width: 0;
  min-height: 0;
}

.enterprise-overview-usage-card .overview-chart {
  grid-template-rows: 220px 16px;
  min-height: 244px;
}

.enterprise-overview-usage-card .overview-chart svg,
.enterprise-overview-usage-card .overview-chart-empty {
  height: 220px;
  min-height: 220px;
}

.enterprise-overview-usage-card .overview-chart-summary {
  min-height: 16px;
}

.enterprise-overview-usage-card .overview-chart-stage,
.enterprise-overview-usage-card .overview-chart-empty {
  height: 220px;
  min-height: 220px;
}

.enterprise-overview-usage-card .overview-chart-stage > svg {
  height: 100%;
  min-height: 0;
}

.enterprise-overview-usage-card .overview-top-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  align-self: stretch;
  gap: 8px 12px;
  min-height: 50px;
  padding: 8px 0 0 4px;
  border-top: 1px solid rgba(126, 139, 168, 0.14);
}

.enterprise-overview-usage-card .overview-top-item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 3px 6px 3px 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: opacity 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.enterprise-overview-usage-card .overview-top-item::before,
.enterprise-overview-usage-card .overview-top-bar {
  display: none;
}

.enterprise-overview-usage-card .overview-top-item:hover {
  background: rgba(239, 246, 255, 0.72);
}

.enterprise-overview-usage-card .overview-top-item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(111, 143, 220, 0.18);
}

.enterprise-overview-usage-card .overview-top-item.is-hidden {
  opacity: 0.42;
}

.enterprise-overview-usage-card .overview-top-item.is-hidden .overview-top-copy strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.enterprise-overview-usage-card .overview-top-item.is-hidden .overview-top-marker {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--overview-series-color, var(--accent));
}

.enterprise-overview-usage-card .overview-top-copy {
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.enterprise-overview-usage-card .overview-top-copy strong {
  max-width: 180px;
  font-size: 12px;
  font-weight: 800;
}

.enterprise-overview-usage-card .overview-top-value {
  font-size: 11px;
  font-weight: 800;
}

.enterprise-overview-usage-card .overview-top-marker {
  width: 9px;
  height: 9px;
}

.enterprise-overview-usage-card .overview-top-list > .empty-state.compact {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

/* Batch 52: align permissions toolbar content with the summary card content. */
.content-view:has(#adminFilterInput) > .page-toolbar {
  padding-left: 16px;
  padding-right: 16px;
}

/* Batch 53: keep the workbench table readable on narrow screens with horizontal scroll. */
.content-view:has(#workbenchList) > #workbenchList {
  overflow-x: auto;
  overflow-y: auto;
}

#workbenchList .data-table {
  width: max(100%, 1480px);
  min-width: 1480px;
}

#workbenchList .data-table th,
#workbenchList .data-table td {
  overflow-wrap: normal;
  word-break: keep-all;
}

#workbenchList .data-table th {
  white-space: nowrap;
}

#workbenchList .data-table th:nth-child(1),
#workbenchList .data-table td:nth-child(1) {
  width: 250px;
}

#workbenchList .data-table th:nth-child(2),
#workbenchList .data-table td:nth-child(2) {
  width: 150px;
}

#workbenchList .data-table th:nth-child(3),
#workbenchList .data-table td:nth-child(3) {
  width: 250px;
}

#workbenchList .data-table th:nth-child(4),
#workbenchList .data-table td:nth-child(4) {
  width: 170px;
}

#workbenchList .data-table th:nth-child(5),
#workbenchList .data-table td:nth-child(5),
#workbenchList .data-table th:nth-child(6),
#workbenchList .data-table td:nth-child(6) {
  width: 180px;
}

#workbenchList .data-table th:nth-child(7),
#workbenchList .data-table td:nth-child(7) {
  width: 200px;
}

#workbenchList .data-table th:nth-child(8),
#workbenchList .data-table td:nth-child(8) {
  width: 140px;
}

#workbenchList .workbench-gateway-stack,
#workbenchList .workbench-status-stack,
#workbenchList .workbench-runtime-version,
#workbenchList .workbench-sparkline,
#workbenchList .table-actions {
  min-width: 0;
}

#workbenchList .workbench-gateway-link-row,
#workbenchList .workbench-gateway-channel-row,
#workbenchList .workbench-status-evidence,
#workbenchList .workbench-sparkline-text,
#workbenchList .workbench-runtime-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#workbenchList .workbench-status-evidence {
  max-width: 190px;
}

#workbenchList .workbench-actions-cell .table-actions {
  flex-wrap: nowrap;
}

/* Hide enterprise detail breadcrumbs; the title row already has back navigation. */
.content-view:has(.enterprise-detail-title-row) .admin-breadcrumb,
.page-toolbar:has(.enterprise-detail-title-row) .admin-breadcrumb,
#enterpriseDetailBreadcrumb {
  display: none !important;
}

/* Runtime monitor enterprise-filtered operations view. */
.runtime-monitor-enterprise-control,
.runtime-monitor-range-control {
  min-width: 156px;
}

.runtime-monitor-scope-toggle {
  align-self: flex-end;
  min-height: 42px;
  white-space: nowrap;
}

.runtime-monitor-scope-toggle .segmented-btn {
  min-height: 42px;
  padding: 0 14px;
  border-color: rgba(132, 153, 190, 0.34);
  background: rgba(248, 251, 255, 0.78);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.runtime-monitor-scope-toggle .segmented-btn.is-active {
  border-color: rgba(72, 115, 216, 0.52);
  background: rgba(232, 240, 255, 0.94);
  color: #2f57b9;
  box-shadow: inset 0 0 0 1px rgba(72, 115, 216, 0.12);
}

.runtime-monitor-enterprise-control.is-disabled {
  opacity: 0.58;
}

.runtime-monitor-alert-queue {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 151, 42, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 239, 0.82);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(174, 122, 36, 0.07);
  overflow: hidden;
}

.runtime-monitor-status-grid > .runtime-monitor-panel {
  height: 100%;
  min-height: 0;
}

.runtime-monitor-alert-panel {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.runtime-monitor-alert-panel .panel-head {
  justify-content: flex-start;
  gap: 10px;
}

.runtime-monitor-alert-total-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.runtime-monitor-alert-panel .runtime-monitor-alert-queue {
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.runtime-monitor-alert-overview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 2px;
}

.runtime-monitor-alert-overview article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px;
  min-width: 132px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.runtime-monitor-alert-overview article.is-attention {
  background: rgba(255, 248, 249, 0.82);
  box-shadow: inset 0 0 0 1px rgba(217, 75, 92, 0.22);
}

.runtime-monitor-alert-overview span,
.runtime-monitor-alert-overview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.runtime-monitor-alert-overview strong {
  min-width: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-monitor-alert-empty {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 180px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.runtime-monitor-alert-empty strong {
  color: var(--text);
  font-size: 15px;
}

.runtime-monitor-alert-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  color: var(--muted);
}

.runtime-monitor-alert-head strong {
  color: var(--text);
  font-size: 13px;
}

.runtime-monitor-alert-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 2px 6px 2px 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.runtime-monitor-alert-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 4px solid #d9972a;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.runtime-monitor-status-grid .runtime-monitor-alert-item {
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  gap: 16px;
  align-items: center;
  min-height: 82px;
}

.runtime-monitor-alert-item.is-danger {
  border-color: rgba(217, 75, 92, 0.22);
  border-left-color: #d94b5c;
  background: rgba(255, 248, 249, 0.78);
}

.runtime-monitor-alert-item.is-warning {
  border-left-color: #d9972a;
}

.runtime-monitor-alert-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.runtime-monitor-alert-title-row,
.runtime-monitor-alert-main strong,
.runtime-monitor-alert-main span,
.runtime-monitor-alert-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.runtime-monitor-alert-title-row {
  gap: 8px;
}

.runtime-monitor-alert-main strong {
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.runtime-monitor-alert-merged {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(154, 91, 0, 0.1);
  color: rgba(154, 91, 0, 0.78);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.runtime-monitor-alert-main span,
.runtime-monitor-alert-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.runtime-monitor-alert-target {
  color: #64748b;
  font-weight: 800;
}

.runtime-monitor-alert-detail {
  color: rgba(71, 85, 105, 0.88);
}

.runtime-monitor-alert-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 96px;
}

.runtime-monitor-alert-count {
  min-width: 0;
  text-align: right;
}

.runtime-monitor-status-grid .runtime-monitor-alert-count {
  min-width: 0;
  text-align: right;
}

.runtime-monitor-alert-count span {
  display: block;
  margin-bottom: 3px;
  color: rgba(154, 91, 0, 0.64);
  font-size: 11px;
  font-weight: 700;
}

.runtime-monitor-alert-count strong {
  display: block;
  color: #9a5b00;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.runtime-monitor-status-grid .runtime-monitor-alert-count span {
  display: block;
  margin: 0 0 2px;
}

.runtime-monitor-alert-actions,
.runtime-monitor-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
}

.runtime-monitor-status-grid .runtime-monitor-alert-actions {
  justify-content: flex-end;
}

.runtime-monitor-alert-actions .small {
  min-height: 24px;
  padding: 0 10px;
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.1);
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  white-space: nowrap;
}

.runtime-monitor-alert-actions .small:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(219, 234, 254, 0.98);
  color: #1e40af;
}

.runtime-monitor-table-actions .small {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.runtime-monitor-state-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.runtime-monitor-chart-line.is-tokens {
  stroke: #0f766e;
  stroke-width: 2.4;
  stroke-dasharray: 8 4;
}

.runtime-monitor-chart-tooltip-value.is-token {
  fill: #0f766e;
}

.runtime-monitor-chart-legend i.is-tokens {
  background: #0f766e;
}

.runtime-monitor-metric-list,
.runtime-monitor-anomaly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.runtime-monitor-metric-list article,
.runtime-monitor-anomaly-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.runtime-monitor-metric-list article span,
.runtime-monitor-anomaly-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.runtime-monitor-metric-list article strong,
.runtime-monitor-anomaly-item strong {
  min-width: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-monitor-metric-list article small,
.runtime-monitor-anomaly-item small {
  color: var(--muted);
  font-size: 12px;
}

.runtime-monitor-metric-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: baseline;
  gap: 8px 10px;
  min-height: 60px;
  padding: 8px 12px;
}

.runtime-monitor-metric-list article span {
  grid-column: 1;
  grid-row: 1;
}

.runtime-monitor-metric-list article strong {
  grid-column: 1 / -1;
  grid-row: 2;
}

.runtime-monitor-metric-list article small {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  color: rgba(100, 116, 139, 0.86);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-monitor-anomaly-item.is-danger {
  border-color: rgba(217, 75, 92, 0.3);
  background: rgba(255, 239, 241, 0.78);
}

.runtime-monitor-anomaly-item.is-warning {
  border-color: rgba(217, 151, 42, 0.28);
  background: rgba(255, 248, 232, 0.78);
}

.runtime-monitor-anomaly-item.is-success {
  border-color: rgba(59, 159, 120, 0.24);
  background: rgba(237, 252, 246, 0.72);
}

.runtime-monitor-usage-table {
  width: max(100%, 1220px);
}

.runtime-monitor-usage-log-shell {
  overflow: hidden;
}

.runtime-monitor-usage-table-scroll {
  max-width: 100%;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.runtime-monitor-usage-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.runtime-monitor-usage-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.runtime-monitor-usage-table-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(126, 139, 168, 0.36);
  background-clip: content-box;
}

.runtime-monitor-usage-table-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.runtime-monitor-usage-table th,
.runtime-monitor-usage-table td {
  vertical-align: middle;
}

.runtime-monitor-usage-table th:nth-child(1),
.runtime-monitor-usage-table td:nth-child(1) {
  width: 138px;
  white-space: nowrap;
}

.runtime-monitor-usage-table th:nth-child(6),
.runtime-monitor-usage-table td:nth-child(6) {
  width: 118px;
  white-space: nowrap;
}

.runtime-monitor-usage-table th:nth-child(7),
.runtime-monitor-usage-table td:nth-child(7) {
  min-width: 190px;
}

.runtime-monitor-usage-table th:nth-child(9),
.runtime-monitor-usage-table td:nth-child(9) {
  width: 170px;
}

.runtime-monitor-usage-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(210, 218, 236, 0.78);
  background: rgba(247, 249, 255, 0.58);
  color: rgba(100, 116, 139, 0.92);
  font-size: 12px;
}

.runtime-monitor-usage-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.runtime-monitor-usage-page-btn {
  min-width: 32px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 26px;
  white-space: nowrap;
}

.runtime-monitor-usage-page-btn.is-active {
  color: #4f659f;
  border-color: rgba(126, 149, 207, 0.54);
  background: linear-gradient(135deg, rgba(220, 232, 255, 0.94), rgba(245, 241, 255, 0.82));
  box-shadow: var(--button-glow-strong);
}

.runtime-monitor-usage-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: rgba(100, 116, 139, 0.76);
  font-style: normal;
}

.runtime-monitor-detail-modal-card {
  width: min(780px, calc(100vw - 48px));
}

.runtime-monitor-detail-modal-card.has-merged-notices {
  width: min(1120px, calc(100vw - 48px));
}

.runtime-monitor-detail-body {
  display: grid;
  gap: 16px;
  min-height: 0;
  max-height: min(68vh, 680px);
  padding: 20px 24px 24px;
  overflow: auto;
}

.runtime-monitor-detail-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.runtime-monitor-detail-modal-card.has-merged-notices .runtime-monitor-detail-main {
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  max-height: calc(min(68vh, 680px) - 84px);
}

.runtime-monitor-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.runtime-monitor-detail-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.runtime-monitor-detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.runtime-monitor-detail-row strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.runtime-monitor-merged-notices {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.runtime-monitor-merged-notices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.runtime-monitor-merged-notices-head span {
  font-weight: 800;
}

.runtime-monitor-merged-notices-head strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.runtime-monitor-merged-notices-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.runtime-monitor-merged-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.runtime-monitor-merged-notice > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.runtime-monitor-merged-notice > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.runtime-monitor-merged-notice-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.runtime-monitor-merged-notice strong,
.runtime-monitor-merged-notice small,
.runtime-monitor-merged-notice time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-monitor-merged-notice strong {
  color: var(--text);
  font-size: 13px;
}

.runtime-monitor-merged-notice-title small {
  flex: 0 1 auto;
  color: var(--muted);
  font-weight: 700;
}

.runtime-monitor-merged-notice-title .runtime-monitor-merged-notice-actor {
  font-weight: 600;
}

.runtime-monitor-merged-notice-title time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.runtime-monitor-merged-notice small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.runtime-monitor-merged-notice b {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.runtime-monitor-detail-enterprise-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(125, 149, 207, 0.28);
  border-radius: 8px;
  background: rgba(125, 149, 207, 0.08);
  color: var(--text);
  text-decoration: none;
}

.runtime-monitor-detail-enterprise-link:hover {
  border-color: rgba(125, 149, 207, 0.5);
  background: rgba(125, 149, 207, 0.12);
}

.runtime-monitor-detail-enterprise-link span,
.runtime-monitor-detail-enterprise-link em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.runtime-monitor-detail-enterprise-link strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Batch 60: enterprise detail GitLab user controls and workbench list grouping. */
#enterpriseWorkbenchList.table-shell {
  --enterprise-workbench-table-head-height: 44px;
  --enterprise-workbench-main-row-height: 132px;
}

#enterpriseGitlabBindingList.table-shell {
  --enterprise-gitlab-binding-table-head-height: 54px;
  --enterprise-gitlab-binding-main-row-height: 72px;
}

#enterpriseWorkbenchList .enterprise-workbench-table,
#enterpriseWorkbenchList .workbench-project-subtable {
  background: #f9fbff;
}

.gitlab-user-status-control {
  min-width: 96px;
  grid-template-columns: repeat(2, minmax(40px, 1fr));
}

.admin-shell .gitlab-user-system-status,
.admin-shell .chip.disabled.gitlab-user-system-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 96px;
  min-height: 36px;
  padding: 0 12px;
  color: #5f6f8d;
  border-color: rgba(184, 197, 222, 0.74);
  border-radius: var(--radius);
  background: rgba(246, 249, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Batch 76: keep enterprise list domain and certificate status readable. */
#enterpriseList .data-table {
  min-width: 1180px;
  table-layout: fixed;
}

#enterpriseList .data-table th:nth-child(1),
#enterpriseList .data-table td:nth-child(1) {
  width: 220px;
}

#enterpriseList .data-table th:nth-child(2),
#enterpriseList .data-table td:nth-child(2) {
  width: 150px;
}

#enterpriseList .data-table th:nth-child(3),
#enterpriseList .data-table td:nth-child(3) {
  width: 270px;
}

#enterpriseList .data-table th:nth-child(4),
#enterpriseList .data-table td:nth-child(4) {
  width: 110px;
}

#enterpriseList .data-table th:nth-child(5),
#enterpriseList .data-table td:nth-child(5) {
  width: 150px;
}

#enterpriseList .data-table th:nth-child(6),
#enterpriseList .data-table td:nth-child(6) {
  width: 150px;
}

#enterpriseList .enterprise-domain-cell {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

#enterpriseList .enterprise-domain-text {
  min-width: 0;
  max-width: 100%;
}

#enterpriseList .enterprise-https-action {
  justify-self: end;
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}

.gitlab-user-col-status {
  width: 112px;
}

.gitlab-user-project-quick-add .field {
  gap: 8px;
}

.gitlab-user-project-multi-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 8px;
  background: rgba(246, 249, 255, 0.72);
}

.gitlab-user-project-option-group {
  display: grid;
  gap: 4px;
}

.gitlab-user-project-option-group + .gitlab-user-project-option-group {
  padding-top: 8px;
  border-top: 1px solid rgba(126, 139, 168, 0.12);
}

.gitlab-user-project-option-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
  color: #34415d;
  font-size: 12px;
  font-weight: 800;
}

.gitlab-user-project-option-group-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.gitlab-user-project-option {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.56);
}

.gitlab-user-project-option:hover,
.gitlab-user-project-option:has(input:checked) {
  border-color: rgba(57, 103, 214, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1320px) {
  .runtime-monitor-status-grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .runtime-monitor-status-grid > .runtime-monitor-panel {
    height: auto;
  }

  .runtime-monitor-alert-panel .runtime-monitor-alert-queue {
    height: 420px;
  }
}

@media (max-width: 1100px) {
  .runtime-monitor-detail-modal-card.has-merged-notices .runtime-monitor-detail-main {
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
  }

  .runtime-monitor-merged-notices-list {
    max-height: 260px;
  }

  .runtime-monitor-alert-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-monitor-alert-meta {
    justify-items: start;
  }

  .runtime-monitor-alert-count {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .runtime-monitor-scope-toggle {
    width: 100%;
  }

  .runtime-monitor-scope-toggle .segmented-btn {
    flex: 1 1 0;
  }

  .runtime-monitor-enterprise-control,
  .runtime-monitor-range-control {
    width: 100%;
  }

  .runtime-monitor-metric-list,
  .runtime-monitor-anomaly-grid,
  .runtime-monitor-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Batch 58: permissions, enterprise certificates, filters, and system layout. */
.admin-permission-panel .permission-detail-list.hidden {
  display: none;
}

.enterprise-https-action {
  width: 104px;
  min-width: 104px;
  max-width: 104px;
}

.workbench-filter-group {
  flex: 1 1 auto;
  min-width: min(560px, 100%);
}

.workbench-enterprise-filter-control {
  min-width: 220px;
}

.workbench-gateway-filter-control {
  min-width: 280px;
}

.token-list-toolbar .page-toolbar-search-group {
  overflow: visible;
}

.token-enterprise-filter-control {
  flex: 0 0 min(220px, 20vw);
  min-width: 190px;
}

.token-provider-filter-control {
  flex: 0 0 min(190px, 18vw);
  min-width: 170px;
}

.token-provider-filter-menu {
  grid-template-columns: minmax(0, 1fr);
}

.token-list-toolbar .toolbar-select-button {
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
}

.content-view:has(.admin-system-tabs) .system-side-column {
  grid-template-rows: repeat(3, minmax(190px, 1fr));
  align-self: stretch;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 190px;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card > .stack-form,
.content-view:has(.admin-system-tabs) .system-side-column > .panel-card > .action-stack {
  align-content: start;
}

.content-view:has(.admin-system-tabs) .system-summary-card #systemSummary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-view:has(.admin-system-tabs) .system-summary-card #systemSummary .summary-item {
  min-height: 78px;
}

@media (max-width: 1480px) {
  .content-view:has(.admin-system-tabs) .system-summary-card #systemSummary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .workbench-filter-group,
  .token-list-toolbar .page-toolbar-search-group {
    flex-wrap: wrap;
  }

  .content-view:has(.admin-system-tabs) .system-side-column {
    grid-template-rows: none;
  }

  .content-view:has(.admin-system-tabs) .system-summary-card #systemSummary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content-view:has(.admin-system-tabs) .system-summary-card #systemSummary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Batch 59: align token filters and runtime monitor cards. */
.token-list-toolbar .toolbar-search,
.token-enterprise-filter-control,
.token-provider-filter-control {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.token-provider-filter-control .toolbar-select-button {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  justify-content: space-between;
}

.runtime-monitor-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.runtime-monitor-table-actions {
  justify-content: flex-start;
}

.runtime-monitor-usage-table th:nth-child(9),
.runtime-monitor-usage-table td:nth-child(9) {
  width: 120px;
  min-width: 120px;
  text-align: left;
}

@media (max-width: 1320px) {
  .runtime-monitor-status-grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .runtime-monitor-status-grid > .runtime-monitor-panel {
    height: auto;
  }

  .runtime-monitor-alert-panel .runtime-monitor-alert-queue {
    height: 420px;
  }
}

@media (max-width: 980px) {
  .token-list-toolbar .toolbar-search,
  .token-enterprise-filter-control,
  .token-provider-filter-control {
    flex: 1 1 280px;
  }
}

@media (max-width: 640px) {
  .token-list-toolbar .toolbar-search,
  .token-enterprise-filter-control,
  .token-provider-filter-control {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* Batch 60: compact system side operation cards. */
.content-view:has(.admin-system-tabs) .system-side-column {
  grid-template-rows: none;
  align-self: start;
  gap: 10px;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  padding: 16px 18px;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card > .panel-head {
  margin-bottom: 10px;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card > .panel-head h2 {
  font-size: 19px;
  line-height: 1.25;
}

.content-view:has(.admin-system-tabs) .system-side-column > .panel-card > .stack-form,
.content-view:has(.admin-system-tabs) .system-side-column > .panel-card > .action-stack {
  gap: 10px;
  align-content: start;
}

.content-view:has(.admin-system-tabs) .system-side-column .field {
  gap: 6px;
}

.content-view:has(.admin-system-tabs) .system-side-column .field span {
  font-size: 12px;
}

.content-view:has(.admin-system-tabs) .system-side-column .field input,
.content-view:has(.admin-system-tabs) .system-side-column button {
  min-height: 38px;
  font-size: 13px;
}

.content-view:has(.admin-system-tabs) .system-side-column .field input {
  padding: 0 12px;
  border-radius: 8px;
}

.content-view:has(.admin-system-tabs) .system-side-column button {
  padding: 0 14px;
}

.content-view:has(.admin-system-tabs) .system-side-column .form-hint {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.content-view:has(.admin-system-tabs) .system-dev-toggle {
  min-height: 20px;
  column-gap: 10px;
}

/* Batch 61: keep workbench actions visible on narrow screens. */
.content-view:has(#workbenchList) > .admin-insight-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-view:has(#workbenchList) > .admin-insight-strip > .admin-insight-item {
  width: auto;
  min-width: 0;
}

#workbenchInsightStrip .workbench-cos-version-value {
  display: grid;
  align-self: center;
  gap: 5px;
  overflow: visible;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

#workbenchInsightStrip .workbench-cos-version-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#workbenchInsightStrip .workbench-cos-version-role,
#workbenchInsightStrip .workbench-cos-version-separator {
  white-space: nowrap;
}

#workbenchInsightStrip .workbench-cos-version-role {
  color: var(--accent);
  font-weight: 850;
}

#workbenchInsightStrip .workbench-cos-version-channel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#workbenchInsightStrip .workbench-cos-version-channel.is-cos {
  color: #4f5f7c;
}

#workbenchInsightStrip .workbench-cos-version-separator {
  color: var(--muted);
  font-weight: 760;
}

#workbenchInsightStrip .workbench-cos-publish-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-color: rgba(61, 103, 211, 0.28);
  background: rgba(235, 242, 255, 0.9);
  color: var(--accent);
}

#workbenchList .data-table {
  width: max(100%, 1360px);
  min-width: 1360px;
  table-layout: fixed;
}

#workbenchList .data-table th:nth-child(1),
#workbenchList .data-table td:nth-child(1) {
  width: 220px;
}

#workbenchList .data-table th:nth-child(2),
#workbenchList .data-table td:nth-child(2) {
  width: 116px;
}

#workbenchList .data-table th:nth-child(3),
#workbenchList .data-table td:nth-child(3) {
  width: 220px;
}

#workbenchList .data-table th:nth-child(4),
#workbenchList .data-table td:nth-child(4) {
  width: 154px;
}

#workbenchList .data-table th:nth-child(5),
#workbenchList .data-table td:nth-child(5),
#workbenchList .data-table th:nth-child(6),
#workbenchList .data-table td:nth-child(6) {
  width: 168px;
}

#workbenchList .data-table th:nth-child(7),
#workbenchList .data-table td:nth-child(7) {
  width: 188px;
}

#workbenchList .data-table th:nth-child(8),
#workbenchList .data-table td:nth-child(8) {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  background: rgba(247, 250, 255, 0.96);
  box-shadow: -10px 0 18px rgba(95, 108, 140, 0.1);
}

#workbenchList .data-table th:nth-child(8) {
  z-index: 7;
  background: rgba(244, 248, 255, 0.98);
}

#workbenchList .data-table tbody tr:hover > td:nth-child(8) {
  background: rgba(241, 246, 255, 0.98);
}

#workbenchList .workbench-actions-cell {
  padding-right: 10px;
  padding-left: 10px;
}

#workbenchList .workbench-actions-cell .table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  gap: 8px;
  width: 100%;
}

#workbenchList .workbench-actions-cell .table-actions button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  white-space: nowrap;
}

/* Batch 72: place enterprise runtime upgrades in the sticky group header. */
#workbenchList {
  --workbench-table-head-height: 42px;
}

#workbenchList .admin-table-group-row {
  position: sticky;
  top: var(--workbench-table-head-height);
  z-index: 12;
}

#workbenchList .admin-table-group-row > td {
  position: sticky;
  top: var(--workbench-table-head-height);
  z-index: 12;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.14);
}

#workbenchList .workbench-group-title-cell {
  padding-left: 16px;
}

#workbenchList .workbench-group-upgrade-cell {
  text-align: left;
  white-space: nowrap;
}

#workbenchList .workbench-group-action-cell {
  min-width: 118px;
}

#workbenchList .workbench-group-upgrade-btn {
  min-width: 82px;
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(126, 139, 168, 0.18);
  background: rgba(242, 245, 250, 0.82);
  color: rgba(126, 139, 168, 0.72);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

#workbenchList .workbench-group-upgrade-btn.is-ready {
  border-color: rgba(61, 103, 211, 0.42);
  background: #3d67d3;
  color: #fff;
  box-shadow: 0 6px 14px rgba(61, 103, 211, 0.18);
}

#workbenchList .workbench-group-upgrade-btn.is-ready:hover:not(:disabled) {
  border-color: rgba(61, 103, 211, 0.42);
  background: #315cc8;
}

#workbenchList .workbench-group-upgrade-btn.is-upgrading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(239, 246, 255, 0.96);
  color: #2563eb;
  box-shadow: none;
}

#workbenchList .workbench-group-upgrade-btn.is-upgrading::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid rgba(37, 99, 235, 0.22);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: workbench-runtime-spin 0.8s linear infinite;
}

#workbenchList .workbench-group-upgrade-btn.is-disabled,
#workbenchList .workbench-group-upgrade-btn:disabled {
  border-color: rgba(126, 139, 168, 0.18);
  background: rgba(242, 245, 250, 0.82);
  color: rgba(126, 139, 168, 0.62);
  box-shadow: none;
}

#workbenchList .data-table.has-sticky-actions thead th:last-child {
  z-index: 18;
}

@media (max-width: 1380px) {
  .content-view:has(#workbenchList) > .admin-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .content-view:has(#workbenchList) > .admin-insight-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Batch 62: prevent workbench update-channel versions from overlapping. */
#workbenchList .workbench-gateway-channel-row {
  align-items: flex-start;
  margin-top: 8px;
  overflow: visible;
  white-space: normal;
}

#workbenchList .workbench-update-channel-control,
#workbenchList .workbench-update-channel-switch {
  width: 164px;
  min-width: 164px;
  max-width: 164px;
}

#workbenchList .workbench-update-channel-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
}

#workbenchList .workbench-update-channel-thumb {
  top: 3px;
  width: 78px;
  height: 34px;
  border-radius: 10px;
}

#workbenchList .workbench-update-channel-switch.is-agent .workbench-update-channel-thumb {
  transform: translateX(80px);
}

#workbenchList .workbench-update-channel-label {
  min-width: 0;
  padding: 0 6px;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

#workbenchList .workbench-update-channel-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#workbenchList .workbench-update-channel-version {
  display: block;
  max-width: 72px;
  overflow: hidden;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Batch 63: remove empty workbench section backplates. */
.content-view:has(#workbenchList) > .page-toolbar {
  min-height: 0;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.content-view:has(#workbenchList) > .admin-insight-strip {
  margin-bottom: 12px;
}

.content-view:has(#workbenchList) > .admin-insight-strip > .admin-insight-item {
  box-shadow: none;
}

.workbench-channel-version-insight {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
}

.workbench-channel-version-list {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.workbench-channel-version-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.workbench-channel-version-row + .workbench-channel-version-row {
  padding-top: 3px;
  border-top: 1px solid rgba(210, 218, 236, 0.72);
}

.workbench-channel-version-name,
.workbench-channel-version-cell {
  min-width: 0;
  display: grid;
}

.workbench-channel-version-name {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.workbench-channel-version-name small,
.workbench-channel-version-cell span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
}

.workbench-channel-version-cell strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Batch 64: shared full-text tooltip for truncated admin text. */
.admin-overflow-tooltip {
  position: fixed;
  z-index: 11000;
  max-width: min(420px, calc(100vw - 24px));
  padding: 8px 11px;
  border: 1px solid rgba(176, 188, 216, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #223047;
  box-shadow: 0 16px 38px rgba(58, 70, 103, 0.18), 0 3px 10px rgba(58, 70, 103, 0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  pointer-events: none;
  white-space: normal;
}

/* Batch 66: keep Token toolbar refresh action separated from filters. */
.token-list-toolbar .page-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.token-list-toolbar .page-toolbar-search-group {
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.token-list-toolbar .toolbar-search,
.token-list-toolbar .token-enterprise-filter-control,
.token-list-toolbar .token-provider-filter-control {
  flex: 0 1 270px;
  width: 270px;
  min-width: 240px;
  max-width: 270px;
}

.token-list-toolbar .page-toolbar-button-group {
  margin-left: 0;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.token-list-toolbar #refreshTokenBtn.admin-icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: rgba(125, 149, 207, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: #4f6fb8;
  box-shadow: 0 6px 16px rgba(93, 114, 170, 0.12);
}

.token-list-toolbar #refreshTokenBtn.admin-icon-action:hover,
.token-list-toolbar #refreshTokenBtn.admin-icon-action:focus-visible {
  border-color: rgba(79, 111, 184, 0.42);
  background: rgba(255, 255, 255, 0.96);
  color: #2f64d6;
}

.token-list-toolbar #refreshTokenBtn.admin-icon-action svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1180px) {
  .token-list-toolbar .page-toolbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .token-list-toolbar .page-toolbar-search-group {
    flex-wrap: wrap;
  }

  .token-list-toolbar .page-toolbar-button-group {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .token-list-toolbar .toolbar-search,
  .token-list-toolbar .token-enterprise-filter-control,
  .token-list-toolbar .token-provider-filter-control {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* Batch 67: fixed operation columns and cleaner enterprise detail tables. */
.data-table.has-sticky-actions {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.62);
}

.data-table.has-sticky-actions th,
.data-table.has-sticky-actions td {
  padding: 11px 14px;
  background-clip: padding-box;
}

.data-table.has-sticky-actions th:last-child,
.data-table.has-sticky-actions td:last-child {
  position: sticky;
  right: 0;
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  text-align: left;
  background: rgba(249, 251, 255, 0.98);
  box-shadow: -12px 0 20px rgba(84, 99, 136, 0.1);
}

.data-table.has-sticky-actions th:last-child {
  z-index: 8;
  background: rgba(244, 248, 255, 0.98);
}

.data-table.has-sticky-actions td:last-child {
  z-index: 5;
}

.data-table.has-sticky-actions tbody tr:hover > td:last-child {
  background: rgba(242, 247, 255, 0.98);
}

.data-table.has-sticky-actions td:last-child:has(.table-actions) {
  padding-left: 12px;
  padding-right: 12px;
}

.data-table.has-sticky-actions td:last-child .table-actions,
.data-table.has-sticky-actions .table-actions {
  justify-content: flex-start;
  gap: 6px;
}

.data-table.has-sticky-actions td:last-child .table-actions {
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
}

.data-table.has-sticky-actions td:last-child .table-actions button,
.data-table.has-sticky-actions .gitlab-resource-delete-btn,
.data-table.has-sticky-actions .workbench-project-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.enterprise-gitlab-binding-table {
  min-width: 1160px;
  table-layout: fixed;
}

.enterprise-gitlab-binding-table th,
.enterprise-gitlab-binding-table td {
  height: 54px;
  padding: 9px 12px;
  vertical-align: middle;
}

.enterprise-gitlab-binding-table th:nth-child(1),
.enterprise-gitlab-binding-table td:nth-child(1) {
  width: 88px;
}

.enterprise-gitlab-binding-table th:nth-child(2),
.enterprise-gitlab-binding-table td:nth-child(2) {
  width: 172px;
}

.enterprise-gitlab-binding-table th:nth-child(3),
.enterprise-gitlab-binding-table td:nth-child(3) {
  width: 150px;
}

.enterprise-gitlab-binding-table th:nth-child(4),
.enterprise-gitlab-binding-table td:nth-child(4) {
  width: 86px;
}

.enterprise-gitlab-binding-table th:nth-child(5),
.enterprise-gitlab-binding-table td:nth-child(5) {
  width: 136px;
}

.enterprise-gitlab-binding-table th:nth-child(6),
.enterprise-gitlab-binding-table td:nth-child(6) {
  width: 154px;
}

.enterprise-gitlab-binding-table th:nth-child(7),
.enterprise-gitlab-binding-table td:nth-child(7) {
  width: 110px;
}

.enterprise-gitlab-binding-table th:nth-child(8),
.enterprise-gitlab-binding-table td:nth-child(8) {
  width: 122px;
}

.enterprise-gitlab-binding-table.has-sticky-actions th:last-child,
.enterprise-gitlab-binding-table.has-sticky-actions td:last-child {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.enterprise-gitlab-binding-table td:nth-child(3) .secondary.small {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 8px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.enterprise-gitlab-binding-table .gitlab-binding-status-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.enterprise-gitlab-binding-table .gitlab-binding-status-stack .chip {
  min-height: 20px;
  max-width: 132px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.gitlab-binding-resource-row > td {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  box-shadow: none !important;
}

.gitlab-user-table {
  min-width: 960px;
  table-layout: fixed;
}

.gitlab-user-table.data-table th,
.gitlab-user-table.data-table td {
  height: 52px;
  padding: 8px 10px;
  vertical-align: middle;
}

.gitlab-user-col-identity {
  width: 18%;
}

.gitlab-user-col-name {
  width: 13%;
}

.gitlab-user-col-status {
  width: 112px;
}

.gitlab-user-col-login {
  width: 132px;
}

.gitlab-user-col-projects {
  width: auto;
}

.gitlab-user-col-actions {
  width: 182px;
}

.control-plane-push-view {
  display: grid;
  grid-template-rows: minmax(120px, 1fr) auto;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.control-plane-push-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid rgba(126, 139, 168, 0.16);
  background: rgba(248, 251, 255, 0.88);
}

.control-plane-push-list-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.control-plane-push-count {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.control-plane-push-create-btn {
  flex: 0 0 auto !important;
  width: auto;
  min-width: 96px;
  padding: 0 12px;
  font-size: 12px;
  box-shadow: none;
}

.admin-icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-icon-text-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.admin-icon-text-button-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.control-plane-push-list-head .control-plane-push-create-btn {
  min-height: 32px;
  height: 32px;
}

.control-plane-push-modal-card {
  width: min(520px, calc(100vw - 32px));
}

.control-plane-push-modal-card .stack-form {
  gap: 12px;
}

.control-plane-push-modal-card .field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.control-plane-push-modal-card .admin-icon-text-button {
  flex: 0 0 auto;
  min-width: 112px;
  height: 38px;
}

.control-plane-target-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.control-plane-target-picker > button {
  min-width: 94px;
  height: 44px;
  white-space: nowrap;
}

.control-plane-target-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-top: 2px;
}

.control-plane-target-check-row > button {
  min-width: 154px;
  height: 40px;
}

.control-plane-target-check-message {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.control-plane-target-check-message.is-running {
  color: #245fc0;
}

.control-plane-target-check-message.is-success {
  color: #267d50;
}

.control-plane-target-check-message.is-error {
  color: #a83e51;
}

@media (max-width: 560px) {
  .control-plane-target-picker,
  .control-plane-target-check-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .control-plane-target-picker > button,
  .control-plane-target-check-row > button {
    width: 100%;
  }
}

.control-plane-push-status-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.control-plane-push-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 112px;
  border-color: rgba(139, 159, 207, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

.control-plane-push-empty strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.control-plane-push-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.control-plane-push-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.control-plane-push-meta > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(126, 139, 168, 0.16);
  border-radius: var(--radius);
  background: rgba(248, 250, 255, 0.58);
}

.control-plane-push-meta dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.control-plane-push-meta dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.control-plane-step-list {
  display: grid;
  gap: 8px;
}

.control-plane-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 139, 168, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.control-plane-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(126, 139, 168, 0.36);
}

.control-plane-step.is-running .control-plane-step-dot {
  background: #2f6fdd;
  box-shadow: 0 0 0 4px rgba(47, 111, 221, 0.12);
}

.control-plane-step.is-completed .control-plane-step-dot {
  background: var(--success);
}

.control-plane-step.is-failed .control-plane-step-dot {
  background: var(--danger);
}

.control-plane-step-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.control-plane-step-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.control-plane-step-copy span,
.control-plane-step-state small,
.control-plane-table-secondary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.control-plane-step-state {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.control-plane-push-history {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  background: rgba(248, 251, 255, 0.82);
}

.control-plane-push-table-scroll {
  min-height: 0;
  overflow: auto;
}

.control-plane-push-table {
  min-width: 1580px;
  table-layout: fixed;
}

.control-plane-push-table th:nth-child(1) { width: 120px; }
.control-plane-push-table th:nth-child(2) { width: 180px; }
.control-plane-push-table th:nth-child(3) { width: 80px; }
.control-plane-push-table th:nth-child(4) { width: 135px; }
.control-plane-push-table th:nth-child(5) { width: 150px; }
.control-plane-push-table th:nth-child(6) { width: 135px; }
.control-plane-push-table th:nth-child(7) { width: 145px; }
.control-plane-push-table th:nth-child(8) { width: 150px; }
.control-plane-push-table th:nth-child(9) { width: 155px; }
.control-plane-push-table th:nth-child(10) { width: 145px; }
.control-plane-push-table th:nth-child(11) { width: 70px; }

.control-plane-push-table thead th {
  position: sticky;
  top: 0;
  z-index: 7;
  background: rgba(244, 248, 255, 0.98);
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

.control-plane-status-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.release-status-boards {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(126, 139, 168, 0.16);
  border-radius: 6px;
  background: rgba(250, 252, 255, 0.72);
  overflow: hidden;
}

.release-status-board {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid rgba(126, 139, 168, 0.13);
}

.release-status-board:last-of-type {
  border-bottom: 0;
}

.release-status-board-label {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.release-status-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-left: 1px solid rgba(126, 139, 168, 0.13);
}

.release-destination {
  position: relative;
  display: grid;
  grid-template-columns: minmax(42px, auto) minmax(0, 1fr);
  align-content: center;
  gap: 2px 7px;
  min-width: 0;
  padding: 7px 8px 7px 17px;
  border-right: 1px solid rgba(126, 139, 168, 0.13);
}

.release-destination:last-child {
  border-right: 0;
}

.release-destination::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(126, 139, 168, 0.42);
}

.release-destination > span,
.release-destination > strong,
.release-destination > small {
  min-width: 0;
  font-size: 11px;
  line-height: 1.25;
}

.release-destination > span {
  color: var(--muted);
}

.release-destination > strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.release-destination > small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 500;
}

.release-destination.is-completed::before { background: #39a96b; }
.release-destination.is-completed > strong { color: #267d50; }
.release-destination.is-running::before { background: #2f6fdd; }
.release-destination.is-running > strong { color: #245fc0; }
.release-destination.is-failed::before { background: #d94b5c; }
.release-destination.is-failed > strong { color: #a83e51; }
.release-destination.is-muted > strong { color: var(--muted); }

.release-status-error {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid rgba(217, 75, 92, 0.16);
  background: var(--soft-danger-bg);
  color: #a83e51;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.release-channel-row.is-admin > td {
  border-top: 2px solid rgba(126, 139, 168, 0.18);
}

.release-channel-row.is-cos > td {
  background: rgba(248, 251, 255, 0.54);
}

.release-channel-row.is-admin > .release-channel-target-cell,
.release-channel-row.is-cos > .release-channel-target-cell {
  background: rgba(248, 251, 255, 0.99);
}

.release-channel-row > td[rowspan] {
  vertical-align: middle;
}

.release-channel-label {
  color: var(--text);
  font-size: 12px;
}

.control-plane-push-table th:nth-child(3),
.release-channel-target-cell {
  position: sticky;
  left: 0;
  z-index: 6;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 1px 0 0 rgba(126, 139, 168, 0.14);
}

.control-plane-push-table th:nth-child(3) {
  z-index: 8;
  background: rgba(244, 248, 255, 0.99);
}

.release-target-version {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.release-target-version strong,
.release-target-version span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-target-version strong {
  color: var(--text);
  font-size: 12px;
}

.release-target-version span {
  color: var(--muted);
  font-size: 11px;
}

.release-component-cell {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 10px;
}

.release-component-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(126, 139, 168, 0.42);
}

.release-component-cell strong,
.release-component-cell span,
.release-component-cell small {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-component-cell strong { color: var(--text); }
.release-component-cell span,
.release-component-cell small { color: var(--muted); }
.release-component-cell.is-completed::before { background: #39a96b; }
.release-component-cell.is-completed strong { color: #267d50; }
.release-component-cell.is-running::before { background: #2f6fdd; }
.release-component-cell.is-running strong { color: #245fc0; }
.release-component-cell.is-failed::before { background: #d94b5c; }
.release-component-cell.is-failed strong { color: #a83e51; }
.release-component-cell.is-muted strong { color: var(--muted); }

.control-plane-stage-pipeline {
  display: flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}

.control-plane-stage-pipeline::-webkit-scrollbar {
  display: none;
}

.control-plane-stage-node-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}

.control-plane-stage-node-wrap:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  z-index: 0;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(126, 139, 168, 0.24);
  transform: translateY(-50%);
}

.control-plane-stage-node-wrap.is-completed:not(:first-child)::before,
.control-plane-stage-node-wrap.is-running:not(:first-child)::before {
  background: rgba(57, 169, 107, 0.36);
}

.control-plane-stage-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}

.control-plane-stage-node-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(126, 139, 168, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #7a8498;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.control-plane-stage-node.is-completed .control-plane-stage-node-dot {
  border-color: rgba(57, 169, 107, 0.26);
  background: #39a96b;
  color: #ffffff;
}

.control-plane-stage-node.is-running .control-plane-stage-node-dot {
  border-color: rgba(47, 111, 221, 0.28);
  background: #2f6fdd;
  color: #ffffff;
}

.control-plane-stage-node.is-failed .control-plane-stage-node-dot {
  border-color: rgba(217, 75, 92, 0.28);
  background: #d94b5c;
  color: #ffffff;
}

.control-plane-stage-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 35;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 64px));
  max-height: min(420px, 62vh);
  padding: 12px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(46, 59, 92, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
}

.control-plane-stage-floating-popover {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 32px));
  padding: 12px;
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(46, 59, 92, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
}

.control-plane-stage-floating-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.control-plane-stage-popover::before {
  content: "";
  position: absolute;
  right: 28px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(126, 139, 168, 0.18);
  border-left: 1px solid rgba(126, 139, 168, 0.18);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.control-plane-stage-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(126, 139, 168, 0.14);
}

.control-plane-stage-popover-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.control-plane-stage-popover-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-plane-stage-popover-title small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.control-plane-stage-popover-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.control-plane-stage-popover-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.control-plane-stage-popover-row {
  display: grid;
  grid-template-columns: 22px 12px minmax(0, 1fr) minmax(72px, auto);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.control-plane-stage-popover-index,
.control-plane-stage-popover-state {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.control-plane-stage-popover-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(126, 139, 168, 0.32);
}

.control-plane-stage-popover-row.is-completed .control-plane-stage-popover-dot {
  background: #39a96b;
}

.control-plane-stage-popover-row.is-running .control-plane-stage-popover-dot {
  background: #2f6fdd;
  box-shadow: 0 0 0 4px rgba(47, 111, 221, 0.12);
}

.control-plane-stage-popover-row.is-failed .control-plane-stage-popover-dot {
  background: #d94b5c;
}

.control-plane-stage-popover-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.control-plane-stage-popover-main strong,
.control-plane-stage-popover-state strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.control-plane-stage-popover-main small,
.control-plane-stage-popover-state small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.control-plane-stage-popover-body,
.control-plane-stage-popover-meta {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.control-plane-stage-popover-meta {
  color: var(--muted);
  font-size: 11px;
}

.control-plane-stage-popover-state {
  display: grid;
  justify-items: end;
  text-align: right;
}

.control-plane-stage-popover-error {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft-danger-bg);
  color: #a83e51;
  font-size: 12px;
  line-height: 1.45;
}

.control-plane-rerun-btn {
  min-width: 56px;
  height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  color: #2f6fdd;
  white-space: nowrap;
}

.control-plane-action-placeholder {
  color: var(--muted);
  font-size: 12px;
}

.control-plane-table-primary,
.control-plane-table-secondary {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-plane-push-error {
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(217, 75, 92, 0.2);
  border-radius: var(--radius);
  color: #a83e51;
  background: var(--soft-danger-bg);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .control-plane-push-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .control-plane-push-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-plane-push-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Batch 77: Token list keeps its frozen header separated from grouped rows. */
#tokenList.token-list-table-shell {
  overflow: auto;
}

#tokenList .data-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  isolation: isolate;
}

#tokenList .data-table.has-sticky-actions {
  min-width: 1560px;
}

#tokenList .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 16;
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  color: #66728a;
  line-height: 46px;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  background: #f4f8ff;
  box-shadow:
    0 1px 0 rgba(126, 139, 168, 0.2),
    0 8px 14px rgba(236, 241, 252, 0.86);
}

#tokenList .data-table.has-sticky-actions thead th:last-child {
  z-index: 20;
}

#tokenList .data-table th:nth-child(1),
#tokenList .data-table td:nth-child(1) {
  width: 210px;
}

#tokenList .data-table th:nth-child(2),
#tokenList .data-table td:nth-child(2) {
  width: 170px;
}

#tokenList .data-table th:nth-child(3),
#tokenList .data-table td:nth-child(3) {
  width: 118px;
}

#tokenList .data-table th:nth-child(4),
#tokenList .data-table td:nth-child(4) {
  width: 190px;
}

#tokenList .data-table th:nth-child(5),
#tokenList .data-table td:nth-child(5) {
  width: 250px;
}

#tokenList .data-table th:nth-child(6),
#tokenList .data-table td:nth-child(6) {
  width: 168px;
}

#tokenList .data-table th:nth-child(7),
#tokenList .data-table td:nth-child(7) {
  width: 114px;
}

#tokenList .data-table.has-sticky-actions th:nth-child(8),
#tokenList .data-table.has-sticky-actions td:nth-child(8) {
  width: 300px;
}

#tokenList .admin-table-group-row td {
  position: relative;
  z-index: 1;
  background: #fbfdff;
}

#tokenList .admin-table-group-row.is-nested td {
  background: #f7faff;
}

/* Batch 69: compact equal-width enterprise detail tabs. */
.content-view:has(.enterprise-detail-title-row) > .page-toolbar > .detail-tabs {
  align-items: center;
}

.content-view:has(.enterprise-detail-title-row) > .page-toolbar > .detail-tabs .detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  width: 96px;
  min-width: 96px;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.gitlab-user-table.has-sticky-actions th:last-child,
.gitlab-user-table.has-sticky-actions td:last-child,
.gitlab-user-actions-cell {
  width: 182px;
  min-width: 182px;
  max-width: 182px;
}

.gitlab-user-name-cell {
  gap: 3px;
}

.gitlab-user-name-cell strong,
.gitlab-user-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gitlab-user-email,
.gitlab-user-last-login,
.gitlab-user-project-empty {
  font-size: 12px;
  line-height: 1.35;
}

.gitlab-user-project-cell {
  min-width: 0;
}

.gitlab-user-project-cell .chip {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.gitlab-user-actions-cell .table-actions {
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  align-items: center;
  height: 100%;
}

.gitlab-user-actions-cell .table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 9px;
  line-height: 1;
  white-space: nowrap;
}

.gitlab-resource-table.has-sticky-actions th:last-child,
.gitlab-resource-table.has-sticky-actions td:last-child,
.gitlab-resource-action-cell {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.enterprise-workbench-table.has-sticky-actions th:last-child,
.enterprise-workbench-table.has-sticky-actions td:last-child,
.workbench-project-subtable.has-sticky-actions th:last-child,
.workbench-project-subtable.has-sticky-actions td:last-child,
.enterprise-storage-resource-table.has-sticky-actions th:last-child,
.enterprise-storage-resource-table.has-sticky-actions td:last-child,
.enterprise-related-token-table.has-sticky-actions th:last-child,
.enterprise-related-token-table.has-sticky-actions td:last-child {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
}

.token-list-table-shell .data-table.has-sticky-actions th:last-child,
.token-list-table-shell .data-table.has-sticky-actions td:last-child,
.token-actions-cell,
.data-table td.token-actions-cell {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
}

.runtime-monitor-usage-table.has-sticky-actions th:last-child,
.runtime-monitor-usage-table.has-sticky-actions td:last-child {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}

#enterpriseWorkbenchList.table-shell,
#enterpriseGitlabBindingList.table-shell,
#enterpriseUserList.table-shell,
#enterpriseRelatedTokenList.table-shell,
#enterpriseStorageResourceList.table-shell {
  overflow: auto;
}

#enterpriseGitlabBindingList.table-shell,
#enterpriseUserList.table-shell {
  border-color: rgba(126, 139, 168, 0.16);
  background: rgba(248, 250, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#enterpriseUserList .gitlab-resource-card {
  padding: 14px 16px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Batch 68: enterprise detail tables scroll inside the list with frozen headers. */
.content-view:has(.enterprise-detail-title-row) .data-table.has-sticky-actions th:last-child,
.content-view:has(.enterprise-detail-title-row) .data-table.has-sticky-actions td:last-child {
  box-shadow: none;
  border-left: 1px solid rgba(126, 139, 168, 0.14);
}

#enterpriseWorkbenchesPanel,
#enterpriseGitlabPanel,
#enterpriseUsersPanel,
#enterpriseStoragePanel,
#enterpriseTokensPanel {
  overflow: hidden;
}

#enterpriseWorkbenchesPanel > .panel-card,
#enterpriseGitlabPanel > .panel-card,
#enterpriseUsersPanel > .panel-card,
#enterpriseStoragePanel > .panel-card,
#enterpriseTokensPanel > .panel-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

#enterpriseWorkbenchList.table-shell,
#enterpriseGitlabBindingList.table-shell,
#enterpriseUserList.table-shell,
#enterpriseStorageResourceList.table-shell,
#enterpriseRelatedTokenList.table-shell {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

#enterpriseWorkbenchList .enterprise-workbench-table > thead th,
#enterpriseUserList .data-table thead th,
#enterpriseStorageResourceList .data-table thead th,
#enterpriseRelatedTokenList .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 9;
  background: #f4f8ff;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

#enterpriseGitlabBindingList .enterprise-gitlab-binding-table > thead th {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f4f8ff;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

#enterpriseWorkbenchList .data-table.has-sticky-actions thead th:last-child,
#enterpriseGitlabBindingList .data-table.has-sticky-actions thead th:last-child,
#enterpriseUserList .data-table.has-sticky-actions thead th:last-child,
#enterpriseStorageResourceList .data-table.has-sticky-actions thead th:last-child,
#enterpriseRelatedTokenList .data-table.has-sticky-actions thead th:last-child {
  z-index: 12;
}

#enterpriseGitlabBindingList .enterprise-gitlab-binding-table.has-sticky-actions > thead th:last-child {
  z-index: 34;
  background: #f4f8ff;
}

#enterpriseWorkbenchList .enterprise-workbench-table > tbody > .workbench-main-row > td {
  position: sticky;
  top: var(--enterprise-workbench-table-head-height);
  z-index: 18;
  background: #f9fbff;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

#enterpriseWorkbenchList .enterprise-workbench-table > tbody > .workbench-main-row > td:last-child {
  z-index: 23;
  background: #f9fbff;
}

#enterpriseWorkbenchList .enterprise-workbench-table > tbody > .workbench-main-row:hover > td {
  background: #f3f7ff;
}

#enterpriseGitlabBindingList .enterprise-gitlab-binding-table > tbody > .gitlab-binding-main-row > td {
  position: sticky;
  top: var(--enterprise-gitlab-binding-table-head-height);
  z-index: 26;
  background: #f9fbff;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

#enterpriseGitlabBindingList .enterprise-gitlab-binding-table > tbody > .gitlab-binding-main-row > td:last-child {
  z-index: 32;
  background: #f9fbff;
}

#enterpriseGitlabBindingList .enterprise-gitlab-binding-table > tbody > .gitlab-binding-main-row:hover > td {
  background: #f3f7ff;
}

#enterpriseGitlabBindingList .gitlab-resource-table-shell {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#enterpriseGitlabBindingList .gitlab-resource-table thead th {
  position: sticky;
  top: calc(var(--enterprise-gitlab-binding-table-head-height) + var(--enterprise-gitlab-binding-main-row-height));
  z-index: 18;
  background: #f4f8ff;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

#enterpriseGitlabBindingList .gitlab-resource-table.has-sticky-actions thead th:last-child {
  z-index: 24;
  background: #f4f8ff;
}

#enterpriseWorkbenchList .workbench-project-subtable-row > td {
  background: #f9fbff;
}

#enterpriseWorkbenchList .workbench-project-subtable-shell {
  overflow: visible;
}

#enterpriseWorkbenchList .workbench-project-subtable thead th {
  position: sticky;
  top: calc(var(--enterprise-workbench-table-head-height) + var(--enterprise-workbench-main-row-height));
  z-index: 14;
  background: #f4f8ff;
  box-shadow: 0 1px 0 rgba(126, 139, 168, 0.16);
}

#enterpriseWorkbenchList .workbench-project-subtable.has-sticky-actions thead th:last-child {
  z-index: 20;
  background: #f4f8ff;
}

#enterpriseWorkbenchList .workbench-project-subtable td,
#enterpriseWorkbenchList .workbench-project-subtable.has-sticky-actions td:last-child {
  background: #fbfdff;
}

#enterpriseGitlabBindingList .gitlab-binding-resource-row > td {
  border-left: 0;
}

.gitlab-user-col-identity {
  width: 19%;
}

.gitlab-user-col-name {
  width: 13%;
}

.gitlab-user-col-projects {
  width: auto;
}

.gitlab-user-col-login {
  width: 132px;
}

.gitlab-user-col-status {
  width: 112px;
}

.gitlab-user-col-actions {
  width: 182px;
}

/* Keep enterprise workbench actions readable without widening project actions. */
#enterpriseWorkbenchList .enterprise-workbench-table.has-sticky-actions > thead > tr > th:last-child,
#enterpriseWorkbenchList .enterprise-workbench-table.has-sticky-actions > tbody > .workbench-main-row > td:last-child {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

#enterpriseWorkbenchList .enterprise-workbench-table > tbody > .workbench-main-row > td:last-child {
  padding-left: 14px;
  padding-right: 14px;
}

#enterpriseWorkbenchList .enterprise-workbench-table > tbody > .workbench-main-row > td:last-child .workbench-project-actions {
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}

#enterpriseWorkbenchList .enterprise-workbench-table > tbody > .workbench-main-row > td:last-child .workbench-project-actions > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Two-step Admin and Runtime release workspace. */
.control-plane-push-view {
  display: grid;
  grid-template-rows: auto minmax(260px, auto) auto auto;
  align-content: start;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-bottom: 18px;
}

.release-step-band {
  border: 1px solid rgba(126, 139, 168, 0.18);
  border-radius: 8px;
  background: rgba(250, 252, 255, 0.9);
  box-shadow: 0 1px 2px rgba(55, 68, 101, 0.04);
}

.release-step-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(126, 139, 168, 0.14);
}

.release-step-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.release-step-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.release-step-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #245fc0;
  font-size: 14px;
  font-weight: 800;
}

.release-step-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-step-actions > button {
  min-width: 112px;
  white-space: nowrap;
}

.release-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 0;
  padding: 0 16px;
  overflow-x: auto;
}

.release-summary-item {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 70px;
  padding: 12px 14px;
  border-right: 1px solid rgba(126, 139, 168, 0.14);
}

.release-summary-item:last-of-type {
  border-right: 0;
}

.release-summary-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.release-summary-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.release-summary-error {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid var(--danger);
  background: rgba(203, 61, 61, 0.07);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.runtime-release-table-shell {
  width: 100%;
  overflow-x: auto;
}

.runtime-release-table {
  min-width: 820px;
  table-layout: fixed;
}

.runtime-release-table th:nth-child(1) { width: 100px; }
.runtime-release-table th:nth-child(2),
.runtime-release-table th:nth-child(3) { width: 190px; }
.runtime-release-table th:nth-child(4) { width: auto; }
.runtime-release-table th:nth-child(5) { width: 190px; }

.runtime-release-table td:last-child button {
  width: 164px;
  min-width: 164px;
  white-space: nowrap;
}

.runtime-publish-status {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.runtime-publish-status strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.runtime-publish-status span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.runtime-publish-status.is-running strong { color: #245fc0; }
.runtime-publish-status.is-completed strong { color: var(--success); }
.runtime-publish-status.is-failed strong,
.runtime-publish-status .is-error { color: var(--danger); }

.runtime-release-notice {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(126, 139, 168, 0.14);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.runtime-publish-modal-card {
  width: min(520px, calc(100vw - 32px));
}

.runtime-publish-confirm-body {
  display: grid;
  gap: 14px;
}

.runtime-publish-confirm-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .release-step-head {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .release-step-actions,
  .release-step-head > .admin-icon-action {
    grid-column: 2;
    justify-self: start;
  }

  .release-summary-grid {
    grid-template-columns: repeat(3, minmax(138px, 1fr));
  }
}

@media (max-width: 560px) {
  .release-step-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .release-step-actions > button {
    flex: 1 1 150px;
  }

  .release-summary-grid {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
  }
}

/* Runtime publish confirmation is a compact review surface, not a dashboard. */
.runtime-publish-modal-card {
  width: min(560px, calc(100vw - 32px));
  overflow: hidden;
}

.runtime-publish-modal-card .modal-head {
  min-height: 64px;
  padding: 14px 18px;
}

.runtime-publish-modal-card .modal-head h2 {
  font-size: 18px;
  line-height: 1.3;
}

.runtime-publish-modal-card .runtime-publish-confirm-body {
  gap: 12px;
  padding: 18px;
}

#runtimePublishConfirmSummary.summary-grid,
#runtimePublishConfirmSummary > .summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 139, 168, 0.2);
  border-radius: 6px;
  background: rgba(250, 252, 255, 0.72);
}

#runtimePublishConfirmSummary .summary-item {
  min-width: 0;
  min-height: 70px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid rgba(126, 139, 168, 0.16);
  border-bottom: 1px solid rgba(126, 139, 168, 0.16);
  border-radius: 0;
  background: transparent;
}

#runtimePublishConfirmSummary .summary-item:nth-child(2n) {
  border-right: 0;
}

#runtimePublishConfirmSummary .summary-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

#runtimePublishConfirmSummary .summary-item-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

#runtimePublishConfirmSummary .summary-item-value {
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
}

#runtimePublishConfirmSummary .summary-item:last-child .summary-item-value {
  color: #245fc0;
}

.runtime-publish-confirm-body > p {
  position: relative;
  padding: 10px 12px 10px 32px;
  border: 1px solid rgba(47, 111, 221, 0.14);
  border-radius: 6px;
  background: rgba(47, 111, 221, 0.055);
  color: #52617a;
}

.runtime-publish-confirm-body > p::before {
  content: "i";
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(47, 111, 221, 0.45);
  border-radius: 50%;
  color: #245fc0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.runtime-publish-modal-card .modal-actions {
  gap: 8px;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(126, 139, 168, 0.14);
  background: rgba(248, 250, 255, 0.72);
}

.runtime-publish-modal-card .modal-actions button {
  min-width: 96px;
  min-height: 36px;
  border-radius: 6px;
}

@media (max-width: 560px) {
  #runtimePublishConfirmSummary.summary-grid,
  #runtimePublishConfirmSummary > .summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #runtimePublishConfirmSummary .summary-item,
  #runtimePublishConfirmSummary .summary-item:nth-child(2n),
  #runtimePublishConfirmSummary .summary-item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(126, 139, 168, 0.16);
  }

  #runtimePublishConfirmSummary .summary-item:last-child {
    border-bottom: 0;
  }
}

#runtimePublishConfirmSummary.summary-grid {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#runtimePublishConfirmSummary > .summary-grid {
  width: 100%;
}

/* Keep workbench detail navigation fixed while only the active panel scrolls. */
@media (min-width: 981px) {
  .admin-main:has(.workbench-detail-toolbar) {
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
  }

  .content-view:has(.workbench-detail-toolbar) {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .content-view:has(.workbench-detail-toolbar) > .detail-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    overflow: hidden;
  }

  .content-view:has(.workbench-detail-toolbar) > .detail-shell > .detail-tabs {
    position: relative;
    top: auto;
    z-index: 2;
    margin: 0;
    padding: 6px 0 6px 4px;
    background: var(--bg, #f6f7fb);
    border-bottom: 1px solid rgba(210, 218, 236, 0.72);
  }

  .content-view:has(.workbench-detail-toolbar) > .detail-shell > .detail-panel {
    min-height: 0;
    padding: 18px 0 24px;
    overflow: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 980px) {
  .admin-app:has(.workbench-detail-toolbar) {
    overflow: visible;
  }

  .content-view:has(.workbench-detail-toolbar) > .detail-shell > .detail-tabs {
    top: 0;
    z-index: 2;
    background: rgba(246, 248, 252, 0.98);
  }
}
