:root {
  --canvas-navy: #16477f;
  --canvas-navy-strong: #0c3566;
  --canvas-cyan: #0ea5e9;
  --canvas-cyan-soft: #e0f2fe;
  --canvas-bg: #eef3f8;
  --canvas-surface: #ffffff;
  --canvas-soft: #f7fafc;
  --canvas-line: #d6e0eb;
  --canvas-line-strong: #b8c9dc;
  --canvas-text: #0b1f36;
  --canvas-muted: #53657a;
  --canvas-danger: #e11d48;
  --canvas-warning: #b45309;
  /* Elevation scale — layered depth so the canvas reads as a recessed work
     surface, side panels float above it, and widgets lift on interaction. */
  --elev-1: 0 1px 2px rgba(15, 45, 78, 0.06), 0 1px 3px rgba(15, 45, 78, 0.05);
  --elev-2: 0 2px 4px rgba(15, 45, 78, 0.06), 0 6px 16px rgba(15, 45, 78, 0.09);
  --elev-3: 0 10px 22px rgba(15, 45, 78, 0.14), 0 20px 44px rgba(15, 45, 78, 0.10);
  --elev-inset: inset 0 1px 0 rgba(15, 45, 78, 0.05), inset 0 8px 14px -12px rgba(15, 45, 78, 0.22);
  --elev-panel-left: 6px 0 22px -12px rgba(15, 45, 78, 0.22);
  --elev-panel-right: -6px 0 22px -12px rgba(15, 45, 78, 0.22);
  --canvas-shadow: var(--elev-2);
  --canvas-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --control-height: 34px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--canvas-bg);
  color: var(--canvas-text);
  font-family: var(--canvas-font);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.32);
  outline-offset: 2px;
}

.canvas-app {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  grid-template-areas: "library workspace";
  height: 100vh;
  min-height: 100vh;
  background: var(--canvas-bg);
}

.library-panel,
.inspector-panel,
.workspace-shell {
  min-width: 0;
  min-height: 0;
}

.library-panel,
.inspector-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: var(--canvas-surface);
  border-color: var(--canvas-line);
}

.library-panel {
  grid-area: library;
  border-right: 1px solid var(--canvas-line);
  box-shadow: var(--elev-panel-left);
}

.inspector-panel {
  border-left: 1px solid var(--canvas-line);
  box-shadow: var(--elev-panel-right);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--canvas-line);
}

.library-panel-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.96));
}

.panel-heading {
  min-width: 0;
}

.panel-title {
  margin: 3px 0 0;
  color: var(--canvas-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.panel-subtitle {
  max-width: 245px;
  margin: 6px 0 0;
  color: var(--canvas-muted);
  font-size: 12px;
  line-height: 1.35;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-controls {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--canvas-line);
  background: #ffffff;
}

.library-search {
  position: relative;
  padding: 14px 16px 10px;
}

.canvas-search-icon {
  position: absolute;
  left: 29px;
  top: 50%;
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: #7188a1;
  pointer-events: none;
  transform: translateY(-50%);
}

.canvas-search-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  min-width: 17px;
  max-width: 17px;
  min-height: 17px;
  max-height: 17px;
}

.search-input,
.select-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: var(--canvas-soft);
  color: var(--canvas-text);
  padding: 9px 11px;
  font-size: 13px;
}

.library-search .search-input {
  padding-left: 38px;
  padding-right: 12px;
}

.search-input::placeholder {
  color: #75879b;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--canvas-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
  outline: none;
}

.library-section {
  padding: 8px 16px 14px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.section-hint {
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 600;
}

.sector-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
  max-height: 172px;
  overflow: auto;
  padding-right: 2px;
}

.sector-pill {
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.sector-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sector-pill span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #44566c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.sector-pill:hover span {
  border-color: var(--canvas-line-strong);
  color: var(--canvas-navy);
}

.sector-pill input:checked+span {
  border-color: var(--canvas-cyan);
  background: var(--canvas-cyan-soft);
  color: var(--canvas-navy-strong);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.14);
}

.sector-pill input:focus-visible+span {
  outline: 3px solid rgba(14, 165, 233, 0.32);
  outline-offset: 2px;
}

.library-results {
  flex: 1;
  overflow: auto;
  padding: 0 14px 16px;
  background: #fbfdff;
}

.library-results-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -14px 10px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(214, 224, 235, 0.78);
  background: rgba(251, 253, 255, 0.96);
  backdrop-filter: blur(8px);
}

.library-result-count {
  margin: 0;
  color: #44566c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.library-result-count[hidden] {
  display: none;
}

.indicator-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.indicator-item {
  display: grid;
  grid-template-columns: 14px 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--elev-1);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.indicator-item.is-draggable {
  cursor: grab;
}

.indicator-item.is-draggable:active,
.indicator-item.is-dragging {
  cursor: grabbing;
}

.indicator-item.is-dragging {
  opacity: 0.58;
}

.indicator-item.is-added {
  border-color: #9fd4cb;
  background: #f8fffd;
}

.indicator-item:hover,
.indicator-item:focus-visible {
  border-color: var(--canvas-cyan);
  box-shadow: var(--elev-2);
  transform: translateY(-1px);
}

.indicator-item.is-added:hover {
  transform: none;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 24px;
  margin-top: 1px;
  color: #8aa4bf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.12em;
  writing-mode: vertical-rl;
}

.indicator-item.is-added .drag-handle {
  opacity: 0.35;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  margin-top: 0;
  border-radius: 999px;
  background: var(--canvas-cyan);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.11);
}

.library-item-body {
  min-width: 0;
}

.indicator-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--canvas-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.library-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: var(--canvas-muted);
  font-size: 11px;
  line-height: 1.45;
}

.library-item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4fa;
  color: #4f6176;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.indicator-item .small-button {
  min-width: 62px;
  min-height: 32px;
  border-color: #0f5e9c;
  background: var(--canvas-navy);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 45, 78, 0.1);
}

.indicator-item .small-button:hover:not(:disabled),
.indicator-item .small-button:focus-visible {
  border-color: var(--canvas-navy-strong);
  background: var(--canvas-navy-strong);
  color: #ffffff;
}

.indicator-item .small-button:disabled {
  border-color: #9fd4cb;
  background: #e8f7f3;
  color: #0f766e;
  opacity: 1;
}

.library-empty-state {
  margin: 10px 0 0;
  padding: 14px;
  border: 1px dashed var(--canvas-line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--canvas-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--canvas-line);
  background: var(--canvas-soft);
}

.workspace-shell {
  grid-area: workspace;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(22, 71, 127, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 71, 127, 0.026) 1px, transparent 1px),
    var(--canvas-bg);
  background-size: 32px 32px;
  box-shadow: var(--elev-inset);
}

.workspace-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--canvas-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px -12px rgba(15, 45, 78, 0.35);
}

.workspace-kicker {
  color: var(--canvas-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-heading {
  display: flex;
  min-height: 34px;
  align-items: center;
}

.workspace-header h1 {
  margin: 3px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}

.toolbar,
.inspector-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: var(--canvas-soft);
}

.inspector-tabs {
  margin: 14px 16px 0;
}

.toolbar-button,
.small-button,
.text-button,
.icon-button {
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--canvas-muted);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover:not(:disabled),
.icon-button:focus-visible {
  border-color: var(--canvas-cyan);
  background: var(--canvas-cyan-soft);
  color: var(--canvas-navy-strong);
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--canvas-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.export-button {
  background: rgba(255, 255, 255, 0.54);
}

.toolbar-button-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.toolbar-button:hover:not(:disabled),
.toolbar-button:focus-visible,
.toolbar-button.is-active {
  background: #ffffff;
  color: var(--canvas-navy);
  box-shadow: 0 1px 2px rgba(15, 45, 78, 0.08);
}

.toolbar-button-danger {
  color: var(--canvas-danger);
}

.toolbar-icon-button {
  width: 30px;
  min-width: 30px;
  padding: 6px;
}

.toolbar-icon-button .toolbar-button-icon {
  width: 16px;
  height: 16px;
}

.toolbar-separator {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--canvas-line);
}

.small-button,
.text-button {
  border-radius: 6px;
  color: var(--canvas-navy);
  font-size: 11px;
  font-weight: 700;
}

.small-button {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--canvas-line);
  background: #ffffff;
}

.small-button:hover:not(:disabled) {
  border-color: var(--canvas-cyan);
  color: var(--canvas-navy-strong);
}

.text-button {
  padding: 3px 0;
  background: transparent;
}

.danger-text {
  color: var(--canvas-danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.workspace-scroll {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 28px;
}

.view-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notice-card {
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(15, 45, 78, 0.04);
}

.board-wrap {
  position: relative;
  min-height: 360px;
  padding: 4px 0 0;
}

.indicator-board {
  min-height: 250px;
  border-radius: var(--radius);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.indicator-board.is-drop-ready,
.indicator-board.is-drop-over {
  background: rgba(14, 165, 233, 0.05);
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.18);
}

.indicator-board.is-drop-over {
  background: rgba(14, 165, 233, 0.09);
}

.drop-hint {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px dashed var(--canvas-line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.drop-hint[hidden],
.empty-state[hidden],
.board-wrap > .empty-state[hidden],
[hidden] {
  display: none !important;
}

.board-wrap > .empty-state {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  pointer-events: none;
}

/* Fallback auto-grid layout before GridStack initializes .gs-12 */
.grid-stack:not(.gs-12) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  min-height: 400px;
  width: 100%;
}

.grid-stack:not(.gs-12) > .grid-stack-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  min-height: 320px !important;
  height: auto !important;
}

.grid-stack:not(.gs-12) > .grid-stack-item > .grid-stack-item-content {
  position: relative !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 320px !important;
}

.grid-stack > .grid-stack-item > .grid-stack-item-content {
  inset: 6px;
  overflow: hidden;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--elev-2);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.grid-stack>.grid-stack-item:hover>.grid-stack-item-content {
  border-color: var(--canvas-line-strong);
  box-shadow: var(--elev-3);
}

.grid-stack>.grid-stack-item.is-active>.grid-stack-item-content {
  border-color: var(--canvas-cyan);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18), var(--elev-3);
}

.grid-stack>.grid-stack-item.ui-draggable-dragging>.grid-stack-item-content {
  box-shadow: var(--elev-3);
  transform: scale(1.01);
}

.indicator-board .ui-resizable-handle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0;
}

.indicator-board .ui-resizable-handle::before,
.indicator-board .ui-resizable-handle::after {
  display: none !important;
}

.indicator-widget {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--canvas-line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.widget-title {
  min-width: 0;
}

.widget-title p {
  margin: 0 0 4px;
  color: var(--canvas-cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.widget-title h3 {
  margin: 0;
  color: var(--canvas-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.widget-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: flex-start;
}

.widget-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 12px 14px 14px;
}

.widget-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-chip,
.column-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  background: var(--canvas-soft);
  color: var(--canvas-muted);
  font-size: 10px;
  font-weight: 700;
}

.widget-table-wrap {
  overflow: auto;
}

.widget-table-wrap {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
}

.indicator-publication-table {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.publication-table-header {
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--canvas-line);
  background: #ffffff;
}

.publication-table-header:empty {
  display: none;
}

.publication-table-title {
  margin: 0 0 5px;
  color: var(--canvas-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.publication-table-subtitle {
  margin: 0 0 6px;
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.publication-table-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  color: var(--canvas-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.publication-table-meta-list li::before {
  content: "\2022";
  margin-right: 5px;
  color: var(--canvas-cyan);
}

.publication-table-meta-list strong {
  color: var(--canvas-text);
  font-weight: 700;
}

.publication-table-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  background: #ffffff;
}

.publication-table-scroll.is-expanded {
  max-height: 420px;
  overflow-y: auto;
}

.publication-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-size: 11px;
}

.publication-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  border-bottom: 1px solid var(--canvas-line);
  background: #f8fbff;
  color: var(--canvas-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.publication-table th.is-numeric {
  text-align: right;
}

.publication-table td {
  max-width: 260px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--canvas-line);
  color: var(--canvas-text);
  line-height: 1.45;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-table td.is-numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Sectioned publication tables: banner rows separate disaggregations and
   must not inherit the sticky column-header treatment; indented cells mark
   nested subgroups. */
.publication-table tbody tr.publication-table-section th {
  position: static;
  padding: 7px 10px;
  border-top: 2px solid var(--canvas-line);
  background: #eef2f8;
  color: var(--canvas-text);
  font-size: 10.5px;
  letter-spacing: normal;
  text-transform: none;
}

.publication-table td.is-indented {
  padding-left: 26px;
}

.indicator-publication-table.is-density-compact .publication-table th,
.indicator-publication-table.is-density-compact .publication-table td {
  padding: 5px 8px;
}

.indicator-publication-table.is-numeric-left .publication-table th.is-numeric,
.indicator-publication-table.is-numeric-left .publication-table td.is-numeric {
  text-align: left;
}

.indicator-publication-table.is-header-strong .publication-table th {
  background: var(--canvas-navy);
  color: #ffffff;
}

.indicator-publication-table:not(.is-label-single) .publication-table td,
.indicator-publication-table:not(.is-label-single) .publication-table th {
  white-space: normal;
}

.indicator-publication-table.is-label-single .publication-table td,
.indicator-publication-table.is-label-single .publication-table th {
  white-space: nowrap;
}

.indicator-publication-table--aggregated .publication-table-scroll {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 10px;
}

.aggregated-preview-table {
  width: max-content;
  max-width: none;
  min-width: max-content;
}

.aggregated-preview-label {
  margin: 0 0 6px;
  color: var(--canvas-navy);
  font-size: 11px;
  font-weight: 700;
}

.publication-table-fallback {
  border-bottom: 1px solid var(--canvas-line);
  background: #fff7ed;
  color: var(--canvas-warning);
}

.publication-table tbody tr:last-child td {
  border-bottom: 0;
}

.publication-table tbody tr:hover td {
  background: #fbfdff;
}

/* Establishment Census publication tables (grouped Count | Percent headers). */
.publication-table th[colspan] {
  text-align: center;
}

.publication-table tbody tr.education-total-row td {
  font-weight: 700;
  border-top: 2px solid var(--canvas-line, #d9e2ec);
  background: #f6f9fc;
}

.publication-table-source {
  margin: 8px 0 0;
  padding: 0 10px;
  color: var(--canvas-muted, #6b7a90);
  font-size: 11px;
  font-style: italic;
}

.canvas-table-group-cell {
  background: var(--canvas-soft);
  color: var(--canvas-navy);
  font-weight: 700;
}

.publication-table-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--canvas-line);
  background: #ffffff;
}

.publication-table-toggle {
  color: var(--canvas-navy);
}

.publication-table-empty {
  margin: 0;
  padding: 14px 12px;
  color: var(--canvas-muted);
  font-size: 12px;
  line-height: 1.55;
}

.select-label,
.pagination-text {
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
}

.select-input {
  width: auto;
  min-height: 30px;
  padding: 4px 28px 4px 8px;
  font-size: 12px;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 280px;
  padding: 32px 20px;
  color: var(--canvas-muted);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--canvas-navy);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h2 {
  margin: 0 0 6px;
  color: var(--canvas-text);
  font-size: 18px;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.compact-empty {
  min-height: 180px;
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-color: #f5c47a;
  color: var(--canvas-warning);
  font-size: 12px;
  font-weight: 700;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(238, 243, 248, 0.7);
  color: var(--canvas-navy);
  font-size: 13px;
  font-weight: 700;
}

.loading-overlay[hidden],
.notice-card[hidden],
.drop-hint[hidden],
.view-panel[hidden],
.config-section[hidden],
.inspector-panel[hidden] {
  display: none !important;
}

.loading-dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

.inspector-content {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.inspector-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.inspector-card {
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.inspector-card h3 {
  margin: 0 0 10px;
  color: var(--canvas-text);
  font-size: 12px;
  font-weight: 700;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  color: var(--canvas-text);
  font-size: 12px;
}

.detail-row dt {
  color: var(--canvas-muted);
  font-weight: 700;
}

.detail-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.column-list,
.field-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.column-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--canvas-text);
  font-size: 12px;
  font-weight: 700;
}

.column-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--canvas-cyan);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.segment-option {
  min-width: 0;
}

.segment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--canvas-line);
  border-radius: var(--radius);
  background: var(--canvas-soft);
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.segment-option input:checked+span {
  border-color: var(--canvas-cyan);
  background: var(--canvas-cyan-soft);
  color: var(--canvas-navy);
}

.segment-option input:focus-visible+span {
  outline: 3px solid rgba(14, 165, 233, 0.32);
  outline-offset: 2px;
}

.segment-option input:disabled+span {
  opacity: 0.45;
}

.layout-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bg-blue {
  background: var(--canvas-cyan);
}

@media (max-width: 1180px) {
  body {
    height: auto;
    overflow: auto;
  }

  .canvas-app {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    grid-template-areas: "library workspace";
    min-height: 100vh;
    height: auto;
  }

  .library-panel {
    border-right: 1px solid var(--canvas-line);
  }

  .library-results {
    max-height: 420px;
  }

  .workspace-shell {
    min-height: 700px;
  }

  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .canvas-app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "library"
      "workspace";
  }

  .library-panel,
  .inspector-panel {
    border-right: 0;
    border-left: 0;
  }

  .library-panel {
    border-bottom: 1px solid var(--canvas-line);
  }

  .workspace-shell {
    min-height: 620px;
  }

  .grid-stack>.grid-stack-item>.grid-stack-item-content {
    inset: 5px;
  }
}

@media (max-width: 640px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .panel-header,
  .workspace-header {
    padding: 14px;
  }

  .workspace-header h1 {
    font-size: 17px;
  }

  .workspace-scroll {
    padding: 14px;
  }

  .toolbar,
  .inspector-tabs {
    width: 100%;
  }

  .toolbar-button {
    min-width: max-content;
  }

  .indicator-item {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    min-height: 78px;
  }

  .drag-handle {
    display: none;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .layout-action-grid,
  .segmented-control {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Canvas flagship — Inspector panel (third column on wide screens,
   overlay drawer on narrower ones; both driven by .has-inspector).
   ========================================================================== */

.canvas-app.has-inspector {
  grid-template-columns: 360px minmax(0, 1fr) 350px;
  grid-template-areas: "library workspace inspector";
}

.inspector-panel {
  grid-area: inspector;
  min-height: 0;
}

.inspector-header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.inspector-tab {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--canvas-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.inspector-tab:hover {
  background: rgba(22, 71, 127, 0.06);
  color: var(--canvas-navy);
}

.inspector-tab.is-active {
  background: #ffffff;
  color: var(--canvas-navy-strong);
  box-shadow: var(--elev-1);
}

.inspector-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

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

.inspector-stack > section {
  display: grid;
  gap: 12px;
}

.inspector-empty {
  padding: 16px;
  border: 1px dashed var(--canvas-line-strong);
  border-radius: var(--radius);
  background: var(--canvas-soft);
  color: var(--canvas-muted);
  font-size: 12px;
  line-height: 1.5;
}

.column-chooser {
  display: grid;
  gap: 6px;
}

/* Narrower screens: overlay drawer instead of squeezing the board. */
@media (max-width: 1360px) {
  .canvas-app.has-inspector {
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-areas: "library workspace";
  }

  .canvas-app.has-inspector .inspector-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(380px, 94vw);
    border-left: 1px solid var(--canvas-line);
    box-shadow: -18px 0 40px rgba(15, 45, 78, 0.18);
    animation: inspector-slide-in 180ms ease;
  }
}

@keyframes inspector-slide-in {
  from {
    transform: translateX(26px);
    opacity: 0;
  }

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

@media (max-width: 900px) {
  .canvas-app.has-inspector {
    grid-template-columns: 1fr;
    grid-template-areas: "library" "workspace";
  }
}

/* ==========================================================================
   Canvas flagship — Widget 2.0: drag grip, metadata eyebrow with source
   chip, headline stats strip, icon actions.
   ========================================================================== */

.widget-grip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 22px;
  margin: -12px 0 -10px -14px;
  padding: 12px 0 10px;
  border-radius: 6px 0 0 6px;
  color: var(--canvas-line-strong);
  cursor: grab;
  transition: color 150ms ease, background 150ms ease;
}

.widget-grip:hover {
  background: rgba(22, 71, 127, 0.05);
  color: var(--canvas-navy);
}

.widget-grip:active {
  cursor: grabbing;
}

.widget-grip svg {
  width: 15px;
  height: 15px;
}

.widget-title {
  flex: 1;
}

.widget-title h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.widget-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.widget-code-chip {
  padding: 2px 7px;
  border: 1px solid var(--canvas-line);
  border-radius: 6px;
  background: var(--canvas-soft);
  color: var(--canvas-muted);
  font-family: "IBM Plex Mono", "Spline Sans Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.widget-sector-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
}

.widget-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--canvas-muted);
  font-size: 10px;
  font-weight: 600;
}

.widget-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16477f, #0c3566);
  color: #ffffff;
}

.widget-source-icon svg {
  width: 8px;
  height: 8px;
}

.widget-source-label {
  color: var(--canvas-navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.widget-source-text {
  color: var(--canvas-muted);
}

.widget-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.widget-stat {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--canvas-line);
  border-radius: 8px;
  background: var(--canvas-soft);
}

.widget-stat-value {
  overflow: hidden;
  color: var(--canvas-navy-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-stat-label {
  color: var(--canvas-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.widget-actions .widget-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--canvas-muted);
}

.widget-actions .widget-icon-btn svg {
  width: 16px;
  height: 16px;
}

.widget-actions .widget-icon-btn:hover {
  background: rgba(22, 71, 127, 0.07);
  border-color: var(--canvas-line);
  color: var(--canvas-navy);
}

.widget-actions .widget-icon-btn.is-active {
  background: var(--canvas-cyan-soft);
  border-color: rgba(14, 165, 233, 0.35);
  color: #0369a1;
}

.widget-actions .widget-icon-btn--danger:hover {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.25);
  color: var(--canvas-danger);
}

.grid-stack-item.is-active .widget-header {
  background: linear-gradient(180deg, #ffffff, #e9f6fe);
}

/* ==========================================================================
   Canvas flagship — board texture, status chip, empty-state hints,
   visible resize grip, and a calm loading pill.
   ========================================================================== */

.board-wrap {
  border-radius: var(--radius);
  background-image: radial-gradient(circle, rgba(22, 71, 127, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.canvas-status-chip {
  align-self: center;
  margin-right: auto;
  padding: 4px 12px;
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  background: var(--canvas-soft);
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.canvas-status-chip.is-busy {
  background: var(--canvas-cyan-soft);
  border-color: rgba(14, 165, 233, 0.30);
  color: var(--canvas-navy);
}

.canvas-status-chip.is-flash {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.30);
  color: #047857;
}

.empty-hints {
  display: grid;
  gap: 6px;
  max-width: 430px;
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--canvas-muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-hints li {
  position: relative;
  padding-left: 18px;
}

.empty-hints li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.55);
}

.empty-hints strong {
  color: var(--canvas-navy);
}

/* The bottom-right resize grip appears on hover/focus — an explicit
   affordance instead of an invisible edge. */
.grid-stack-item .ui-resizable-handle {
  transition: opacity 150ms ease;
}

.grid-stack-item:hover .ui-resizable-se,
.grid-stack-item:focus-within .ui-resizable-se {
  opacity: 1;
}

.indicator-board .ui-resizable-se {
  width: 20px;
  height: 20px;
  right: 3px;
  bottom: 3px;
  cursor: nwse-resize;
}

.indicator-board .ui-resizable-se::after {
  display: block !important;
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--canvas-line-strong);
  border-bottom: 2px solid var(--canvas-line-strong);
  border-bottom-right-radius: 3px;
}

/* Loading reads as a floating pill, not a wall over the board. */
.loading-overlay {
  inset: auto;
  top: 12px;
  left: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--elev-2);
  color: var(--canvas-navy);
  font-size: 12px;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {

  .canvas-app.has-inspector .inspector-panel {
    animation: none;
  }

  .widget-grip,
  .inspector-tab,
  .canvas-status-chip,
  .widget-actions .widget-icon-btn,
  .grid-stack-item .ui-resizable-handle {
    transition: none;
  }
}

@media print {
  body {
    height: auto;
    overflow: visible;
    background: #ffffff;
  }

  .library-panel,
  .inspector-panel,
  .toolbar {
    display: none;
  }

  .canvas-app {
    display: block;
    height: auto;
  }
}

/* ==========================================================================
   Canvas excellence — search, mini-viz, toolbar actions, motion.
   ========================================================================== */

/* Library search: clear button + term highlighting. */
.library-search {
  position: relative;
}

.library-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(83, 101, 122, 0.14);
  color: var(--canvas-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 140ms ease, color 140ms ease;
}

.library-search-clear:hover {
  background: rgba(22, 71, 127, 0.16);
  color: var(--canvas-navy);
}

.library-search-clear svg {
  width: 11px;
  height: 11px;
}

.library-search:has(.library-search-clear:not([hidden])) .search-input {
  padding-right: 36px;
}

mark.library-search-hit {
  padding: 0 1px;
  border-radius: 3px;
  background: rgba(14, 165, 233, 0.30);
  color: inherit;
}

/* Widget mini-viz: Table | Viz toggle in the header. */
.widget-actions .widget-viz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 2px;
  padding: 2px;
  border: 1px solid var(--canvas-line);
  border-radius: 8px;
  background: var(--canvas-soft);
}

.widget-actions .widget-viz-toggle-btn {
  min-width: 34px;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--canvas-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.widget-actions .widget-viz-toggle-btn.is-active {
  background: #ffffff;
  color: var(--canvas-navy-strong);
  box-shadow: var(--elev-1);
}

/* The bar strip itself. */
.widget-viz {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

.widget-viz-title {
  margin: 0;
  color: var(--canvas-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.widget-viz-rows {
  display: grid;
  gap: 7px;
  flex: 1;
  align-content: center;
  min-height: 0;
}

.widget-viz-row {
  display: grid;
  grid-template-columns: minmax(54px, 34%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.widget-viz-label {
  overflow: hidden;
  color: var(--canvas-text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-viz-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--canvas-soft);
  box-shadow: inset 0 0 0 1px var(--canvas-line);
  overflow: hidden;
}

.widget-viz-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #16477f, #33a7df);
  transform-origin: left center;
  animation: viz-grow 380ms ease-out;
}

.widget-viz-fill.is-female {
  background: linear-gradient(90deg, #d9711f, #f6a45c);
}

.widget-viz-fill.is-male {
  background: linear-gradient(90deg, #16477f, #3f6fb5);
}

.widget-viz-fill.is-neutral {
  background: linear-gradient(90deg, #0e7490, #33a7df);
}

.widget-viz-value {
  color: var(--canvas-navy-strong);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.widget-viz-note {
  margin: 0;
  color: var(--canvas-muted);
  font-size: 10px;
  line-height: 1.4;
}

@keyframes viz-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Widget entry + stronger drop feedback. */
.grid-stack-item-content .indicator-widget,
.grid-stack-item-content .widget-viz,
.grid-stack-item-content .widget-stats {
  animation: widget-rise 200ms ease;
}

@keyframes widget-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.indicator-board.is-drop-ready {
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.30);
}

.indicator-board.is-drop-over {
  background: rgba(14, 165, 233, 0.12);
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.55);
}

/* Clear-all confirm state. */
.toolbar-button.toolbar-icon-button.is-confirm {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.45);
  color: var(--canvas-danger);
}

/* Quiet scrollbars in the scroll regions. */
.library-results,
.inspector-content,
.workspace-scroll,
.publication-table-scroll,
.widget-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 71, 127, 0.28) transparent;
}

.library-results::-webkit-scrollbar,
.inspector-content::-webkit-scrollbar,
.workspace-scroll::-webkit-scrollbar,
.publication-table-scroll::-webkit-scrollbar,
.widget-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.library-results::-webkit-scrollbar-thumb,
.inspector-content::-webkit-scrollbar-thumb,
.workspace-scroll::-webkit-scrollbar-thumb,
.publication-table-scroll::-webkit-scrollbar-thumb,
.widget-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(22, 71, 127, 0.26);
}

.library-results::-webkit-scrollbar-thumb:hover,
.inspector-content::-webkit-scrollbar-thumb:hover,
.workspace-scroll::-webkit-scrollbar-thumb:hover,
.publication-table-scroll::-webkit-scrollbar-thumb:hover,
.widget-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 71, 127, 0.42);
}

@media (prefers-reduced-motion: reduce) {

  .grid-stack-item-content .indicator-widget,
  .grid-stack-item-content .widget-viz,
  .grid-stack-item-content .widget-stats,
  .widget-viz-fill {
    animation: none;
  }
}
