.commercial-workspace {
  --commercial-ink: #0f172a;
  --commercial-copy: #475569;
  --commercial-muted: #64748b;
  --commercial-line: #dbe5ef;
  --commercial-surface: rgba(255, 255, 255, 0.96);
  --commercial-primary: var(--theme-primary, #2563eb);
  --commercial-primary-deep: var(--theme-primary-active, #1d4ed8);
  --commercial-primary-soft: var(--theme-primary-soft, #eff6ff);
  --commercial-success: #047857;
  --commercial-success-soft: #ecfdf5;
  --commercial-warning: #b45309;
  --commercial-warning-soft: #fffbeb;
  --commercial-danger: #b91c1c;
  --commercial-danger-soft: #fef2f2;
  display: grid;
  gap: 20px;
  color: var(--commercial-ink);
}

.commercial-workspace *,
.commercial-workspace *::before,
.commercial-workspace *::after,
.commercial-dialog *,
.commercial-dialog *::before,
.commercial-dialog *::after {
  box-sizing: border-box;
}

.commercial-hero,
.commercial-section,
.commercial-empty-workspace,
.commercial-safety-banner {
  border: 1px solid var(--commercial-line);
  border-radius: 12px;
  background: var(--commercial-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.commercial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(var(--theme-primary-rgb, 37, 99, 235), 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.commercial-eyebrow,
.commercial-section-head > div > span,
.commercial-ledger > header span,
.commercial-dialog > header span {
  display: block;
  margin-bottom: 7px;
  color: var(--commercial-primary-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-hero h2,
.commercial-section h3,
.commercial-ledger h4,
.commercial-dialog h3 {
  margin: 0;
  color: var(--commercial-ink);
  line-height: 1.25;
}

.commercial-hero h2 { font-size: clamp(24px, 3vw, 34px); }
.commercial-section h3 { font-size: 21px; }
.commercial-hero p,
.commercial-section-head p,
.commercial-ledger > header p,
.commercial-dialog > header p {
  margin: 9px 0 0;
  color: var(--commercial-copy);
  font-size: 14px;
  line-height: 1.7;
}

.commercial-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.commercial-trust-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(var(--theme-primary-rgb, 37, 99, 235), 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--commercial-primary-deep);
  font-size: 12px;
  font-weight: 750;
}

.commercial-tenant-picker,
.commercial-readonly-badge {
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(var(--theme-primary-rgb, 37, 99, 235), 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.commercial-tenant-picker > label {
  display: block;
  margin-bottom: 8px;
  color: var(--commercial-ink);
  font-size: 13px;
  font-weight: 800;
}

.commercial-tenant-picker > div { display: flex; gap: 8px; }
.commercial-tenant-picker input { min-width: 0; flex: 1; }
.commercial-tenant-picker small,
.commercial-form-grid label small {
  display: block;
  margin-top: 6px;
  color: var(--commercial-muted);
  font-size: 12px;
  line-height: 1.45;
}

.commercial-readonly-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.commercial-readonly-badge > i { color: var(--commercial-primary); font-size: 30px; }
.commercial-readonly-badge strong,
.commercial-readonly-badge span { display: block; }
.commercial-readonly-badge span { margin-top: 3px; color: var(--commercial-muted); font-size: 12px; }

.commercial-section { padding: 24px; }
.commercial-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.commercial-section-head > div { max-width: 760px; }
.commercial-button,
.commercial-icon-button,
.commercial-action-button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.commercial-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.commercial-button.primary { background: var(--commercial-primary); color: #fff; }
.commercial-button.primary:hover:not(:disabled) { background: var(--commercial-primary-deep); }
.commercial-button.secondary { border-color: var(--commercial-line); background: #fff; color: var(--commercial-ink); }
.commercial-button.secondary:hover:not(:disabled),
.commercial-button.ghost:hover:not(:disabled) { border-color: var(--commercial-primary); color: var(--commercial-primary-deep); }
.commercial-button.ghost { border-color: transparent; background: transparent; color: var(--commercial-copy); }
.commercial-button:disabled,
.commercial-icon-button:disabled,
.commercial-action-button:disabled { cursor: not-allowed; opacity: 0.48; }

.commercial-workspace button:focus-visible,
.commercial-workspace input:focus-visible,
.commercial-workspace select:focus-visible,
.commercial-workspace textarea:focus-visible,
.commercial-dialog button:focus-visible,
.commercial-dialog input:focus-visible,
.commercial-dialog select:focus-visible,
.commercial-dialog textarea:focus-visible,
.commercial-metric-card summary:focus-visible,
.commercial-pricing-notes summary:focus-visible,
.commercial-pricing-confirmation:focus-visible,
.commercial-form-error:focus-visible,
.commercial-operation-feedback:focus-visible {
  outline: 3px solid rgba(var(--theme-primary-rgb, 37, 99, 235), 0.28);
  outline-offset: 2px;
}

.commercial-workspace input,
.commercial-workspace select,
.commercial-dialog input,
.commercial-dialog select,
.commercial-dialog textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--commercial-ink);
  font: inherit;
  font-size: 14px;
}

.commercial-dialog textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.commercial-empty-workspace {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 40px;
  text-align: center;
}

.commercial-empty-workspace i { color: var(--commercial-primary); font-size: 48px; }
.commercial-empty-workspace strong { font-size: 20px; }
.commercial-empty-workspace span { max-width: 560px; color: var(--commercial-copy); line-height: 1.6; }
.commercial-safety-banner,
.commercial-state-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
}

.commercial-safety-banner { border-color: rgba(180, 83, 9, 0.24); background: var(--commercial-warning-soft); box-shadow: none; }
.commercial-safety-banner > i,
.commercial-state-card > i { flex: 0 0 auto; color: var(--commercial-warning); font-size: 26px; }
.commercial-safety-banner strong,
.commercial-safety-banner span,
.commercial-state-card strong,
.commercial-state-card span { display: block; }
.commercial-safety-banner span,
.commercial-state-card span { margin-top: 3px; color: var(--commercial-copy); font-size: 13px; line-height: 1.55; }

.commercial-state-card {
  min-height: 96px;
  border: 1px dashed var(--commercial-line);
  border-radius: 9px;
  background: #f8fafc;
}

.commercial-state-card > div { flex: 1; }
.commercial-state-card.danger { border-color: rgba(185, 28, 28, 0.25); background: var(--commercial-danger-soft); }
.commercial-state-card.danger > i { color: var(--commercial-danger); }
.commercial-state-card.warning { border-color: rgba(180, 83, 9, 0.25); background: var(--commercial-warning-soft); }
.commercial-state-card.permission { border-color: rgba(var(--theme-primary-rgb, 37, 99, 235), 0.23); background: var(--commercial-primary-soft); }
.commercial-state-card.permission > i { color: var(--commercial-primary); }

.commercial-inline-warning,
.commercial-operation-feedback,
.commercial-quality-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-radius: 8px;
  background: var(--commercial-warning-soft);
  color: var(--commercial-warning);
  font-size: 13px;
  line-height: 1.55;
}

.commercial-inline-warning.danger,
.commercial-operation-feedback.danger { border-color: rgba(185, 28, 28, 0.22); background: var(--commercial-danger-soft); color: var(--commercial-danger); }
.commercial-operation-feedback.success { border-color: rgba(4, 120, 87, 0.2); background: var(--commercial-success-soft); color: var(--commercial-success); }

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

.commercial-account-card,
.commercial-quota-panel,
.commercial-ledger,
.commercial-admin-groups > article {
  border: 1px solid var(--commercial-line);
  border-radius: 10px;
  background: #fff;
}

.commercial-account-card { padding: 18px; }
.commercial-account-card > span { color: var(--commercial-muted); font-size: 12px; font-weight: 750; }
.commercial-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 14px; }
.commercial-card-title strong { font-size: 18px; }
.commercial-card-title em,
.commercial-admin-access {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--commercial-primary-soft);
  color: var(--commercial-primary-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.commercial-account-card dl { display: grid; gap: 8px; margin: 0; }
.commercial-account-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #eef2f7; }
.commercial-account-card dt { color: var(--commercial-muted); font-size: 13px; }
.commercial-account-card dd { margin: 0; text-align: right; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }

.commercial-quota-panel { margin-top: 14px; overflow: hidden; }
.commercial-quota-panel > header { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--commercial-line); }
.commercial-quota-panel h4 { margin: 0; font-size: 16px; }
.commercial-quota-panel p { margin: 4px 0 0; color: var(--commercial-muted); font-size: 12px; }
.commercial-quota-panel > header > span { align-self: center; color: var(--commercial-primary-deep); font-size: 12px; font-weight: 800; }
.commercial-table-wrap { overflow-x: auto; }
.commercial-table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; }
.commercial-table-wrap th,
.commercial-table-wrap td { padding: 12px 14px; border-bottom: 1px solid #eef2f7; text-align: left; font-size: 13px; vertical-align: middle; }
.commercial-table-wrap th { background: #f8fafc; color: var(--commercial-muted); font-size: 12px; font-weight: 800; }
.commercial-table-wrap td small { display: block; margin-top: 3px; color: var(--commercial-muted); }
.commercial-table-wrap td.numeric { font-variant-numeric: tabular-nums; }
.commercial-status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--commercial-primary-soft); color: var(--commercial-primary-deep); font-size: 12px; font-weight: 800; white-space: nowrap; }
.commercial-status-pill.approaching { background: var(--commercial-warning-soft); color: var(--commercial-warning); }
.commercial-status-pill.exhausted,
.commercial-status-pill.inactive { background: var(--commercial-danger-soft); color: var(--commercial-danger); }
.commercial-status-pill.unlimited { background: var(--commercial-success-soft); color: var(--commercial-success); }
.commercial-status-pill.complete,
.commercial-status-pill.feasible { background: var(--commercial-success-soft); color: var(--commercial-success); }
.commercial-status-pill.partial,
.commercial-status-pill.cost_only,
.commercial-status-pill.insufficient_value { background: var(--commercial-warning-soft); color: var(--commercial-warning); }
.commercial-status-pill.unavailable { background: var(--commercial-danger-soft); color: var(--commercial-danger); }
.commercial-table-empty { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 20px; color: var(--commercial-muted); font-size: 13px; text-align: center; }
.commercial-table-empty i { font-size: 24px; }

.commercial-range-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.commercial-range-form label { display: grid; gap: 5px; color: var(--commercial-muted); font-size: 12px; font-weight: 750; }
.commercial-range-form input { min-width: 146px; }
.commercial-quality-banner { align-items: center; border-color: var(--commercial-line); background: #f8fafc; color: var(--commercial-copy); }
.commercial-quality-banner.partial { border-color: rgba(180, 83, 9, 0.22); background: var(--commercial-warning-soft); }
.commercial-quality-banner.unavailable { border-color: rgba(185, 28, 28, 0.22); background: var(--commercial-danger-soft); }
.commercial-quality-banner strong,
.commercial-quality-banner span { display: block; }
.commercial-quality-banner span { margin-top: 3px; font-size: 12px; line-height: 1.5; }

.commercial-ledger { margin-top: 16px; padding: 18px; }
.commercial-ledger > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.commercial-ledger > header > i { color: var(--commercial-primary); font-size: 34px; }
.commercial-ledger.platform > header > i { color: var(--commercial-success); }
.commercial-ledger h4 { font-size: 18px; }
.commercial-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.commercial-metric-grid.platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.commercial-metric-card { min-width: 0; padding: 16px; border: 1px solid var(--commercial-line); border-radius: 9px; background: #fff; }
.commercial-metric-card.partial { border-color: rgba(180, 83, 9, 0.24); }
.commercial-metric-card.unavailable { background: #f8fafc; }
.commercial-metric-card > header { display: flex; justify-content: space-between; gap: 8px; }
.commercial-metric-card > header span { color: var(--commercial-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.commercial-metric-card h4 { margin: 4px 0 0; font-size: 14px; }
.commercial-metric-card > header em { height: fit-content; padding: 3px 7px; border-radius: 999px; background: var(--commercial-primary-soft); color: var(--commercial-primary-deep); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.commercial-metric-card.partial > header em { background: var(--commercial-warning-soft); color: var(--commercial-warning); }
.commercial-metric-card.unavailable > header em { background: #e2e8f0; color: #475569; }
.commercial-metric-values { display: grid; gap: 8px; margin-top: 15px; }
.commercial-metric-values > div { padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.commercial-metric-values strong,
.commercial-metric-values small { display: block; }
.commercial-metric-values strong,
.commercial-unavailable-value { color: var(--commercial-ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.commercial-metric-values small { margin-top: 3px; color: var(--commercial-muted); font-size: 10px; line-height: 1.4; }
.commercial-unavailable-value { display: block; margin-top: 15px; color: #64748b; }
.commercial-metric-card > p { margin: 10px 0 0; color: var(--commercial-copy); font-size: 12px; line-height: 1.55; }
.commercial-metric-card .commercial-currency-guard { color: var(--commercial-primary-deep); }
.commercial-metric-card details { margin-top: 10px; color: var(--commercial-copy); font-size: 12px; }
.commercial-metric-card summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; color: var(--commercial-primary-deep); font-weight: 750; }
.commercial-metric-card ul { margin: 7px 0 0; padding-left: 18px; line-height: 1.55; }

.commercial-pricing-access {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.commercial-pricing-access.allowed { background: var(--commercial-success-soft); color: var(--commercial-success); }
.commercial-pricing-access.denied { background: #f1f5f9; color: var(--commercial-muted); }
.commercial-operation-feedback.pricing-progress { border-color: var(--commercial-line); background: #f8fafc; color: var(--commercial-primary-deep); }
.commercial-operation-feedback > span strong { display: block; margin-bottom: 2px; }
.commercial-pricing-form {
  padding: 18px;
  border: 1px solid var(--commercial-line);
  border-radius: 10px;
  background: #fff;
}

.commercial-pricing-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.commercial-pricing-form legend { margin-bottom: 14px; color: var(--commercial-ink); font-size: 15px; font-weight: 800; }
.commercial-pricing-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.commercial-pricing-fields label { min-width: 0; color: #334155; font-size: 13px; font-weight: 750; }
.commercial-pricing-fields label > span { display: block; margin-bottom: 6px; }
.commercial-pricing-fields label small { display: block; margin-top: 6px; color: var(--commercial-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.commercial-percent-input { position: relative; }
.commercial-percent-input input { padding-right: 36px; font-variant-numeric: tabular-nums; }
.commercial-percent-input > span { position: absolute; top: 50%; right: 12px; color: var(--commercial-muted); font-size: 13px; transform: translateY(-50%); }
.commercial-pricing-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.commercial-pricing-form-actions > span { color: var(--commercial-muted); font-size: 12px; line-height: 1.5; }

.commercial-pricing-confirmation {
  padding: 18px;
  border: 1px solid rgba(var(--theme-primary-rgb, 37, 99, 235), 0.22);
  border-radius: 10px;
  background: var(--commercial-primary-soft);
}

.commercial-pricing-confirmation > header { display: flex; align-items: center; gap: 12px; }
.commercial-pricing-confirmation > header > i { color: var(--commercial-primary); font-size: 30px; }
.commercial-pricing-confirmation > header strong,
.commercial-pricing-confirmation > header span { display: block; }
.commercial-pricing-confirmation > header strong { font-size: 16px; }
.commercial-pricing-confirmation > header span { margin-top: 3px; color: var(--commercial-copy); font-size: 12px; }
.commercial-pricing-confirmation dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.commercial-pricing-confirmation dl div { padding: 11px; border: 1px solid rgba(var(--theme-primary-rgb, 37, 99, 235), 0.15); border-radius: 7px; background: #fff; }
.commercial-pricing-confirmation dt { color: var(--commercial-muted); font-size: 11px; }
.commercial-pricing-confirmation dd { margin: 5px 0 0; color: var(--commercial-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.45; }
.commercial-pricing-confirmation footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.commercial-pricing-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed var(--commercial-line);
  border-radius: 9px;
  background: #f8fafc;
  text-align: left;
}

.commercial-pricing-empty > i { color: var(--commercial-primary); font-size: 32px; }
.commercial-pricing-empty strong,
.commercial-pricing-empty span { display: block; }
.commercial-pricing-empty span { margin-top: 4px; color: var(--commercial-copy); font-size: 13px; line-height: 1.5; }
.commercial-pricing-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--commercial-line); }
.commercial-pricing-result > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.commercial-pricing-result > header > div > span { color: var(--commercial-primary-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.commercial-pricing-result h4 { margin: 4px 0 0; font-size: 18px; }
.commercial-pricing-result > header p { margin: 5px 0 0; color: var(--commercial-muted); font-size: 12px; }
.commercial-pricing-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.commercial-pricing-summary article { padding: 14px; border: 1px solid var(--commercial-line); border-radius: 8px; background: #f8fafc; }
.commercial-pricing-summary span,
.commercial-pricing-summary strong,
.commercial-pricing-summary small { display: block; }
.commercial-pricing-summary span { color: var(--commercial-muted); font-size: 11px; font-weight: 750; }
.commercial-pricing-summary strong { margin-top: 5px; font-size: 15px; line-height: 1.45; }
.commercial-pricing-summary small { margin-top: 4px; color: var(--commercial-copy); font-size: 11px; line-height: 1.45; }
.commercial-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.commercial-pricing-card { min-width: 0; padding: 16px; border: 1px solid var(--commercial-line); border-radius: 9px; background: #fff; }
.commercial-pricing-card.feasible { border-color: rgba(4, 120, 87, 0.25); }
.commercial-pricing-card.insufficient_value,
.commercial-pricing-card.cost_only { border-color: rgba(180, 83, 9, 0.27); }
.commercial-pricing-card.unavailable { border-color: rgba(185, 28, 28, 0.22); background: #f8fafc; }
.commercial-pricing-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.commercial-pricing-card > header span,
.commercial-pricing-card > header strong { display: block; }
.commercial-pricing-card > header span { color: var(--commercial-muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.commercial-pricing-card > header strong { margin-top: 2px; font-size: 20px; }
.commercial-pricing-card > header em { padding: 4px 8px; border-radius: 999px; background: var(--commercial-primary-soft); color: var(--commercial-primary-deep); font-size: 11px; font-style: normal; font-weight: 800; }
.commercial-pricing-card.insufficient_value > header em,
.commercial-pricing-card.cost_only > header em { background: var(--commercial-warning-soft); color: var(--commercial-warning); }
.commercial-pricing-card.unavailable > header em { background: var(--commercial-danger-soft); color: var(--commercial-danger); }
.commercial-pricing-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 14px 0 0; }
.commercial-pricing-card dl div { min-width: 0; padding: 9px 0; border-top: 1px solid #eef2f7; }
.commercial-pricing-card dt { color: var(--commercial-muted); font-size: 11px; }
.commercial-pricing-card dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--commercial-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.commercial-pricing-card .pricing-bound dd { color: var(--commercial-primary-deep); font-size: 15px; }
.commercial-pricing-card > p { margin: 12px 0 0; color: var(--commercial-copy); font-size: 12px; line-height: 1.55; }
.commercial-pricing-missing { margin-top: 12px; padding: 10px 12px; border-radius: 7px; background: var(--commercial-warning-soft); color: var(--commercial-warning); font-size: 12px; }
.commercial-pricing-missing ul { margin: 5px 0 0; padding-left: 18px; line-height: 1.5; }
.commercial-pricing-notes { margin-top: 12px; color: var(--commercial-copy); font-size: 12px; }
.commercial-pricing-notes summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--commercial-primary-deep); font-weight: 800; }
.commercial-pricing-notes ul { margin: 4px 0 0; padding: 12px 12px 12px 30px; border-radius: 8px; background: #f8fafc; line-height: 1.6; }

.commercial-admin-access.allowed { background: var(--commercial-success-soft); color: var(--commercial-success); }
.commercial-admin-access.denied { background: #f1f5f9; color: var(--commercial-muted); }
.commercial-admin-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.commercial-admin-groups > article { overflow: hidden; }
.commercial-admin-groups article > header { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--commercial-line); background: #f8fafc; }
.commercial-admin-groups article > header > i { color: var(--commercial-primary); font-size: 24px; }
.commercial-admin-groups article > header strong,
.commercial-admin-groups article > header span { display: block; }
.commercial-admin-groups article > header span { margin-top: 2px; color: var(--commercial-muted); font-size: 11px; }
.commercial-admin-groups article > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.commercial-admin-groups article:last-child > div { grid-template-columns: 1fr; }
.commercial-action-button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid var(--commercial-line); border-radius: 7px; background: #fff; color: var(--commercial-ink); font-size: 13px; font-weight: 750; text-align: left; }
.commercial-action-button:hover:not(:disabled) { border-color: var(--commercial-primary); color: var(--commercial-primary-deep); }

.commercial-history-empty {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed var(--commercial-line);
  border-radius: 9px;
  color: var(--commercial-copy);
  text-align: center;
}

.commercial-history-empty > i { color: var(--commercial-primary); font-size: 34px; }
.commercial-history-empty > strong { color: var(--commercial-ink); font-size: 16px; }
.commercial-history-empty > span { margin-bottom: 6px; font-size: 13px; line-height: 1.55; }
.commercial-history-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.commercial-history-tabs button {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--commercial-line);
  border-radius: 7px;
  background: #fff;
  color: var(--commercial-copy);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.commercial-history-tabs button span { min-width: 20px; padding: 2px 5px; border-radius: 999px; background: #f1f5f9; font-size: 10px; text-align: center; }
.commercial-history-tabs button.active { border-color: var(--commercial-primary); background: var(--commercial-primary-soft); color: var(--commercial-primary-deep); }
.commercial-history-tabs button.active span { background: #fff; }
.commercial-history-table { border: 1px solid var(--commercial-line); border-radius: 9px; }
.commercial-history-table table { min-width: 940px; }
.commercial-history-table-empty { min-height: 150px; border: 1px dashed var(--commercial-line); border-radius: 9px; }
.commercial-mono { max-width: 210px; overflow-wrap: anywhere; color: var(--commercial-copy); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px !important; }
.commercial-history-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.commercial-history-actions button {
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--commercial-line);
  border-radius: 6px;
  background: #fff;
  color: var(--commercial-primary-deep);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.commercial-history-actions button:hover { border-color: var(--commercial-primary); }
.commercial-history-actions > span { color: var(--commercial-muted); font-size: 11px; }

.commercial-dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.commercial-dialog {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--theme-primary-rgb, 37, 99, 235), 0.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  color: var(--commercial-ink, #0f172a);
}

.commercial-dialog > header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e2e8f0; }
.commercial-dialog > header > div { max-width: 630px; }
.commercial-dialog h3 { font-size: 21px; }
.commercial-icon-button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #475569; font-size: 20px; }
.commercial-icon-button:hover:not(:disabled) { border-color: var(--commercial-primary, #2563eb); color: var(--commercial-primary-deep, #1d4ed8); }
.commercial-dialog-form,
.commercial-confirmation { min-height: 0; overflow-y: auto; padding: 20px 22px; }
.commercial-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.commercial-form-grid label { min-width: 0; color: #334155; font-size: 13px; font-weight: 750; }
.commercial-form-grid label > span { display: block; margin-bottom: 6px; }
.commercial-form-grid .commercial-form-wide { grid-column: 1 / -1; }
.commercial-check-label { min-height: 44px; align-self: end; display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.commercial-check-label input { width: 20px; min-height: 20px; }
.commercial-check-label > span { margin: 0 !important; }
.commercial-form-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: 7px; background: var(--commercial-primary-soft, #eff6ff); color: var(--commercial-primary-deep, #1d4ed8); font-size: 13px; line-height: 1.55; }
.commercial-form-error { margin: 14px 0 0; padding: 11px 13px; border: 1px solid rgba(185, 28, 28, 0.22); border-radius: 7px; background: #fef2f2; color: #b91c1c; font-size: 13px; line-height: 1.5; }
.commercial-dialog footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.commercial-confirmation { text-align: center; }
.commercial-confirmation-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 2px auto 12px; border-radius: 50%; background: var(--commercial-primary-soft, #eff6ff); color: var(--commercial-primary, #2563eb); font-size: 30px; }
.commercial-confirmation > strong { font-size: 19px; }
.commercial-confirmation > p { margin: 8px auto 0; max-width: 580px; color: #475569; font-size: 13px; line-height: 1.6; }
.commercial-confirmation ul { margin: 18px 0 0; padding: 0; list-style: none; text-align: left; }
.commercial-confirmation li { padding: 10px 12px; border-bottom: 1px solid #eef2f7; color: #334155; font-size: 13px; line-height: 1.5; }

@media (max-width: 1080px) {
  .commercial-hero { grid-template-columns: 1fr; }
  .commercial-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-pricing-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .commercial-hero,
  .commercial-section { padding: 18px; }
  .commercial-section-head { flex-direction: column; }
  .commercial-section-head > .commercial-button { width: 100%; }
  .commercial-account-grid,
  .commercial-admin-groups,
  .commercial-metric-grid,
  .commercial-metric-grid.platform-grid,
  .commercial-pricing-fields,
  .commercial-pricing-summary,
  .commercial-pricing-grid,
  .commercial-pricing-confirmation dl { grid-template-columns: 1fr; }
  .commercial-range-form { width: 100%; display: grid; grid-template-columns: 1fr; }
  .commercial-range-form label,
  .commercial-range-form input,
  .commercial-range-form button { width: 100%; }
  .commercial-admin-groups article > div { grid-template-columns: 1fr; }
  .commercial-pricing-form { padding: 14px; }
  .commercial-pricing-form-actions,
  .commercial-pricing-confirmation footer { align-items: stretch; flex-direction: column; }
  .commercial-pricing-form-actions .commercial-button,
  .commercial-pricing-confirmation footer .commercial-button { width: 100%; }
  .commercial-pricing-result > header { flex-direction: column; }
  .commercial-pricing-card dl { grid-template-columns: 1fr; }
  .commercial-tenant-picker > div { flex-direction: column; }
  .commercial-dialog-mask { padding: 10px; }
  .commercial-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .commercial-dialog > header,
  .commercial-dialog-form,
  .commercial-confirmation { padding: 16px; }
  .commercial-form-grid { grid-template-columns: 1fr; }
  .commercial-form-grid .commercial-form-wide { grid-column: auto; }
  .commercial-dialog footer { flex-direction: column-reverse; }
  .commercial-dialog footer .commercial-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-button,
  .commercial-icon-button,
  .commercial-action-button { transition: none; }
}
