:root {
  --ui-page: #f5f7fa;
  --ui-surface: #ffffff;
  --ui-surface-subtle: #f8fafc;
  --ui-ink: #182230;
  --ui-muted: #667085;
  --ui-line: #e1e6ed;
  --ui-line-strong: #cdd5df;
  --ui-primary: #245ee8;
  --ui-primary-hover: #184bc6;
  --ui-success: #0b8f65;
  --ui-warning: #b85f00;
  --ui-danger: #d92d20;
  --ui-radius: 8px;
  --ui-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

body.ui-clean {
  color: var(--ui-ink);
  background: var(--ui-page);
}

.ui-clean :is(.eyebrow, .section-kicker, .panel-kicker, .board-kicker) {
  display: none !important;
}

.ui-clean :is(.page-heading, .section-heading, .board-head) p,
.ui-clean :is(.page-header, .admin-header) .header-title > p,
.ui-clean :is(.summary-heading, .section-head) h2 + p,
.ui-clean .permission-modal header p {
  display: none !important;
}

.ui-clean :is(h1, h2, h3, h4, b, strong) {
  letter-spacing: 0;
}

.ui-clean :is(button, .button, .btn, .icon-button, input, select, textarea) {
  border-radius: var(--ui-radius);
}

.ui-clean :is(button, .button, .btn, .icon-button) {
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    transform 80ms ease;
}

.ui-clean :is(button, .button, .btn, .icon-button):active:not(:disabled) {
  transform: translateY(1px);
}

.ui-clean :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
  color: var(--ui-ink);
  border-color: var(--ui-line-strong);
  background: var(--ui-surface);
}

.ui-clean :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus {
  border-color: #7da2f2;
  box-shadow: 0 0 0 3px rgba(36, 94, 232, 0.12);
  outline: 0;
}

.ui-clean :is(table, .data-table, .sku-table) {
  font-variant-numeric: tabular-nums;
}

.ui-clean :is(th, .table-head, .sku-table-head) {
  color: #536175;
  background: var(--ui-surface-subtle);
}

.ui-clean :is(.modal-backdrop, .backdrop) {
  background: rgba(16, 24, 40, 0.46);
  backdrop-filter: blur(2px);
}

.ui-clean :is(.modal-panel, .modal, .confirm-dialog) {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.ui-clean :is(.modal-head, .modal-header, .modal > header) {
  min-height: 62px;
  padding: 14px 18px;
  border-bottom-color: var(--ui-line);
}

.ui-clean :is(.modal-head, .modal-header, .modal > header) h2 {
  margin: 0;
  color: var(--ui-ink);
  font-size: 18px;
  line-height: 1.35;
}

.ui-clean :is(.modal-actions, .modal-footer, .modal > footer) {
  padding: 12px 18px;
  border-top-color: var(--ui-line);
  background: var(--ui-surface-subtle);
}

.ui-clean :is(.toast, .notice-toast) {
  border-radius: var(--ui-radius);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

/* Main workbench: reduce duplicate labels and keep the editing surface dominant. */
.workbench-page {
  --command-height: 60px;
  --sidebar-width: 236px;
  --inspector-width: 280px;
}

.workbench-page .command-brand > div > span,
.workbench-page .sidebar-head > div > span,
.workbench-page .inspector-head > div > span {
  display: none;
}

.workbench-page .command-brand h1 {
  font-size: 16px;
}

.workbench-page .command-context-copy {
  gap: 2px;
}

.workbench-page .command-context-copy b {
  font-size: 13px;
}

.workbench-page .command-context-copy small {
  color: var(--ui-muted);
  font-size: 11px;
}

.workbench-page .sidebar-head,
.workbench-page .inspector-head {
  min-height: 52px;
  padding: 0 12px 0 14px;
}

.workbench-page .sidebar-user {
  display: none;
}

.workbench-page .sidebar-section {
  padding-bottom: 12px;
}

.workbench-page .hero-panel.workspace-summary {
  padding: 16px 20px;
}

.workbench-page .hero-main h2 {
  font-size: 20px;
  line-height: 1.35;
}

.workbench-page .hero-metrics {
  gap: 6px;
}

.workbench-page .metric {
  min-width: 64px;
  padding: 8px 9px;
  border-color: transparent;
  background: #f3f5f8;
  box-shadow: none;
}

.workbench-page .metric b {
  font-size: 15px;
}

.workbench-page .metric span {
  font-size: 10px;
}

.workbench-page .board.workspace-board {
  padding: 18px 20px;
}

.workbench-page .board-head {
  margin-bottom: 12px;
}

.workbench-page .board-head h3 {
  font-size: 18px;
}

.workbench-page .ai-product-statusbar {
  min-height: 44px;
}

.workbench-page .work-tabs {
  min-height: 44px;
}

.workbench-page .work-tab {
  min-height: 44px;
}

.workbench-page .ai-control-meta {
  margin-bottom: 14px;
}

.workbench-page .ai-control-label {
  margin-top: 14px;
}

.workbench-page .ai-control-label > small,
.workbench-page .ai-template-field > p,
.workbench-page .ai-control-notice {
  display: none;
}

.workbench-page .ai-naming-panel {
  padding: 14px;
}

.workbench-page .modal-panel {
  max-height: calc(100vh - 32px);
}

.workbench-page .product-ai-control-modal {
  width: min(820px, calc(100vw - 32px));
}

.workbench-page .product-ai-modal {
  width: min(1180px, calc(100vw - 32px));
}

@media (max-width: 900px) {
  .ui-clean :is(.page-heading, .section-heading) {
    gap: 12px;
  }

  .workbench-page {
    --command-height: 56px;
  }

  .workbench-page .hero-panel.workspace-summary,
  .workbench-page .board.workspace-board {
    padding: 14px;
  }

  .workbench-page .hero-main h2 {
    font-size: 18px;
  }

  .workbench-page .modal-backdrop {
    padding: 0;
  }

  .workbench-page .modal-panel,
  .workbench-page .product-ai-control-modal,
  .workbench-page .product-ai-modal {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
}
