
/* Shared control rules are scoped into each owning Block at build time.
   Colors inherit BluUITheme; no screen or theme stylesheet additions are needed. */
.blu-matrix-editor { box-sizing:border-box; width:100%; min-width:0; color:var(--bluui-text,#182230); font:14px/1.5 var(--blu-font-family,sans-serif); }
.blu-matrix-editor *, .blu-matrix-editor *::before, .blu-matrix-editor *::after { box-sizing:border-box; }
.blu-matrix-editor [hidden] { display:none !important; }
.blu-matrix-editor .blu-platform__body { min-width:0; }
.blu-matrix-editor .blu-platform__heading { margin:0 0 12px; font-size:18px; font-weight:650; line-height:1.4; }
.blu-matrix-editor .blu-platform__toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 16px; }
.blu-matrix-editor .blu-platform__toolbar > .blu-platform__heading { flex:1; margin:0; }
.blu-matrix-editor .blu-platform__button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:7px 12px; border:1px solid var(--bluui-control-border,#7b8799); border-radius:8px; background:var(--bluui-surface,#fff); color:var(--bluui-text,#182230); font:600 13px/1.4 var(--blu-font-family,sans-serif); cursor:pointer; text-decoration:none; }
.blu-matrix-editor .blu-platform__button:hover:not(:disabled) { background:var(--bluui-hover,#f0f2f7); }
.blu-matrix-editor .blu-platform__button[aria-pressed="true"] { color:var(--bluui-color-primary-text,#4338ca); border-color:var(--bluui-primary,#4f46e5); background:var(--bluui-color-primary-soft,#eef2ff); box-shadow:inset 0 0 0 1px var(--bluui-primary,#4f46e5); }
.blu-matrix-editor .blu-platform__button--primary { background:var(--bluui-color-primary-solid,#4f46e5); border-color:var(--bluui-color-primary-solid,#4f46e5); color:var(--bluui-color-primary-contrast,#fff); }
.blu-matrix-editor .blu-platform__button--primary:hover:not(:disabled) { background:var(--bluui-primary-hover,#4338ca); }
.blu-matrix-editor .blu-platform__button:disabled, .blu-matrix-editor .blu-platform__input:disabled { cursor:default; background:var(--bluui-surface-muted,#f7f8fb); color:var(--bluui-text-muted,#5c6b80); border-color:var(--bluui-border,#e2e8f0); }
.blu-matrix-editor :is(button,input,select,textarea,summary,[tabindex]):focus-visible { outline:2px solid var(--bluui-primary,#4f46e5); outline-offset:3px; }
.blu-matrix-editor .blu-platform__input { display:block; width:100%; min-width:0; min-height:38px; border:1px solid var(--bluui-control-border,#7b8799); border-radius:7px; padding:8px 10px; background:var(--bluui-surface,#fff); color:var(--bluui-text,#182230); font:inherit; }
.blu-matrix-editor .blu-platform__input[aria-invalid="true"] { border-color:var(--bluui-color-error-text,#a33133); }
.blu-matrix-editor .blu-platform__field { display:flex; flex-direction:column; gap:6px; margin:0; min-width:0; }
.blu-matrix-editor .blu-platform__label { font-size:12px; font-weight:600; }
.blu-matrix-editor .blu-platform__muted { color:var(--bluui-text-muted,#5c6b80); font-size:12px; }
.blu-matrix-editor .blu-platform__error { display:block; color:var(--bluui-color-error-text,#a33133); font-size:13px; overflow-wrap:anywhere; }
.blu-matrix-editor .blu-platform__success { color:var(--bluui-color-success-text,#2d6c0e); }
.blu-matrix-editor .blu-platform__status { color:var(--bluui-text-muted,#5c6b80); margin:10px 0 0; font-size:13px; }
.blu-matrix-editor .blu-platform__status:empty { margin:0; }
.blu-matrix-editor .blu-platform__empty { border:1px dashed var(--bluui-border-strong,#b8c4d4); border-radius:10px; padding:28px 20px; text-align:center; margin:12px 0; }
.blu-matrix-editor .blu-platform__empty p { color:var(--bluui-text-muted,#5c6b80); margin:6px 0 0; }
.blu-matrix-editor .blu-platform__savebar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px; margin:0 0 16px; border:1px solid var(--bluui-color-primary-border,#c7d2fe); border-radius:10px; background:var(--bluui-color-primary-soft,#eef2ff); }
.blu-matrix-editor .blu-platform__savebar > span { flex:1; min-width:100px; color:var(--bluui-color-primary-text,#4338ca); font-weight:600; }
.blu-matrix-editor .blu-platform__count { border-radius:20px; padding:3px 8px; background:var(--bluui-color-primary-soft,#eef2ff); color:var(--bluui-color-primary-text,#4338ca); font-size:12px; }
.blu-matrix-editor .blu-platform__sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (forced-colors:active) { .blu-matrix-editor .blu-platform__button[aria-pressed="true"] { outline:2px solid Highlight; } }

/* Native table semantics, sticky headings, and visible draft markers. */
.blu-matrix-editor__scroll { width:100%; overflow:auto; max-height:640px; border:1px solid var(--bluui-border-strong,#b8c4d4); border-radius:10px; }
.blu-matrix-editor__table { border-collapse:separate; border-spacing:0; width:100%; }
.blu-matrix-editor__table th,.blu-matrix-editor__table td { padding:12px; text-align:left; border-bottom:1px solid var(--bluui-border,#e2e8f0); border-right:1px solid var(--bluui-border,#e2e8f0); vertical-align:middle; min-width:160px; background:var(--bluui-surface,#fff); }
.blu-matrix-editor__table thead th { position:sticky; top:0; z-index:2; background:var(--bluui-surface-muted,#f7f8fb); font-size:12px; }
.blu-matrix-editor__table tbody th { position:sticky; left:0; z-index:1; min-width:200px; background:var(--bluui-surface-muted,#f7f8fb); font-size:13px; }
.blu-matrix-editor__table small { display:block; margin-top:5px; font-weight:400; }
.blu-matrix-editor__bulk { display:flex; gap:4px; margin-top:7px; }
.blu-matrix-editor__bulk .blu-platform__button { min-height:28px; padding:3px 8px; font-size:11px; }
.blu-matrix-editor__table td.blu-matrix-editor__changed { box-shadow:inset 3px 0 var(--bluui-primary,#4f46e5); background:var(--bluui-changed,#f5f3ff); }

/* A visible design-time caption is hidden after the runtime mounts. */
.blu-matrix-editor-block > .blu-component-preview { padding:20px; border:1px dashed var(--bluui-border-strong); color:var(--bluui-text-muted); border-radius:10px; }

/* BEGIN GENERATED SHARED CHECKBOX — scripts/build-checkbox-styles.mjs */
/* One checkbox design, emitted into each owning Block. Keep native input/tree/grid semantics. */
.blu-matrix-editor input.blu-matrix-editor__check {
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  position:relative;
  display:inline-block;
  flex:0 0 22px;
  width:22px;
  height:22px;
  min-width:22px;
  min-height:22px;
  margin:0;
  padding:0;
  border:1.5px solid var(--bluui-control-border,#7b8799);
  border-radius:6px;
  background-color:var(--bluui-surface,#fff);
  background-image:none;
  box-shadow:0 1px 2px rgb(15 23 42 / 6%);
  vertical-align:middle;
  cursor:pointer;
  opacity:1;
  filter:none;
  transition:background-color 120ms ease,border-color 120ms ease,box-shadow 120ms ease;
}
.blu-matrix-editor input.blu-matrix-editor__check::after { content:none; }
.blu-matrix-editor input.blu-matrix-editor__check:checked,
.blu-matrix-editor input.blu-matrix-editor__check:indeterminate {
  border-color:var(--bluui-color-primary-solid,#4f46e5);
  background-color:var(--bluui-color-primary-solid,#4f46e5);
}
.blu-matrix-editor input.blu-matrix-editor__check:checked::after,
.blu-matrix-editor input.blu-matrix-editor__check:indeterminate::after {
  content:"";
  box-sizing:content-box;
  position:absolute;
  inset:auto;
  width:10px;
  height:6px;
  left:4px;
  top:5px;
  border:solid var(--bluui-color-primary-contrast,#fff);
  border-width:0 0 2px 2px;
  border-radius:0;
  background:none;
  -webkit-mask:none;
  mask:none;
  transform:rotate(-45deg);
  pointer-events:none;
}
.blu-matrix-editor input.blu-matrix-editor__check:indeterminate::after {
  height:0;
  top:8px;
  border-width:0 0 2px;
  transform:none;
}
.blu-matrix-editor input.blu-matrix-editor__check:hover:not(:disabled) {
  border-color:var(--bluui-color-primary-solid,#4f46e5);
  box-shadow:0 0 0 3px var(--bluui-color-primary-soft,#eef2ff);
}
.blu-matrix-editor input.blu-matrix-editor__check:focus-visible {
  outline:2px solid var(--bluui-color-primary-solid,#4f46e5);
  outline-offset:3px;
}
.blu-matrix-editor input.blu-matrix-editor__check:disabled {
  border-color:var(--bluui-border-strong,#b8c4d4);
  background-color:var(--bluui-surface-muted,#f7f8fb);
  box-shadow:none;
  cursor:not-allowed;
}
.blu-matrix-editor input.blu-matrix-editor__check:disabled:checked,
.blu-matrix-editor input.blu-matrix-editor__check:disabled:indeterminate {
  border-color:var(--bluui-text-muted,#5c6b80);
  background-color:var(--bluui-text-muted,#5c6b80);
}
@media (prefers-reduced-motion:reduce) {
  .blu-matrix-editor input.blu-matrix-editor__check { transition:none; }
}
.blu-matrix-editor input.blu-matrix-editor__check::before { content:none; }
@media (forced-colors:active) {
  .blu-matrix-editor input.blu-matrix-editor__check,
  .blu-matrix-editor input.blu-matrix-editor__check:checked,
  .blu-matrix-editor input.blu-matrix-editor__check:indeterminate,
  .blu-matrix-editor input.blu-matrix-editor__check:disabled,
  .blu-matrix-editor input.blu-matrix-editor__check:disabled:checked,
  .blu-matrix-editor input.blu-matrix-editor__check:disabled:indeterminate { -webkit-appearance:checkbox; appearance:auto; background:revert; border:revert; box-shadow:none; forced-color-adjust:auto; }
  .blu-matrix-editor input.blu-matrix-editor__check:checked::after, .blu-matrix-editor input.blu-matrix-editor__check:indeterminate::after { content:none; }
}
/* END GENERATED SHARED CHECKBOX */
