:root {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --panel-hover: #f8f9fb;
  --surface: #f5f6f8;
  --border: #e2e5ea;
  --border-light: #eef0f2;
  --text-primary: #1e2229;
  --text-secondary: #5e6873;
  --text-muted: #8d96a3;
  --accent: #0d6e6e;
  --accent-strong: #095454;
  --accent-light: #e8f3f3;
  --blue: #0066b4;
  --blue-light: #eaf1f9;
  --gold: #b8860b;
  --gold-light: #fdf6e3;
  --red: #c7433a;
  --red-soft: #fef0ef;
  --green: #2e7d32;
  --green-soft: #eaf7ec;
  --amber: #b8860b;
  --amber-soft: #fef8e8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; outline: none; }
input, select, textarea { outline: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d4da; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b0b6be; }

.app-shell {
  width: min(1760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand-text .eyebrow {
  margin: 0 0 1px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.comment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  border: 1px solid #e8d5a0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 10px;
  white-space: nowrap;
}

.comment-badge.has-none {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.comment-badge:disabled {
  cursor: default;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 550;
  padding: 0 12px;
  transition: background 0.1s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover { background: var(--surface); }

.control-band {
  display: grid;
  grid-template-columns: auto minmax(80px, 0.45fr) minmax(140px, 0.8fr) minmax(120px, 0.6fr) minmax(110px, 0.5fr) minmax(110px, 0.5fr);
  gap: 8px;
  align-items: end;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 12px 14px;
}

.control-band label {
  display: grid;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.control-band select,
.control-band input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text-primary);
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  transition: border-color 0.12s;
}

.control-band select:hover,
.control-band input:hover { border-color: #c0c6ce; }
.control-band select:focus,
.control-band input:focus { border-color: var(--accent); }
.control-band option { background: var(--panel); color: var(--text-primary); }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  align-self: end;
}

.grain-button {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.55rem 0.5rem;
  transition: background 0.1s, color 0.1s;
}

.grain-button:last-child { border-right: 0; }
.grain-button:hover { color: var(--text-secondary); background: rgba(0,0,0,0.02); }
.grain-button.active {
  background: var(--accent);
  color: #fff;
  font-weight: 550;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.metric-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: inherit;
  text-align: left;
}

.metric-card-action {
  appearance: none;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}

.metric-card-action:hover {
  border-color: #c5cbd3;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.metric-card-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.metric-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-card strong {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}

.metric-sub {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  gap: 8px;
  margin-bottom: 8px;
}

.panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
}

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

.panel-heading h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-primary);
}

.panel-heading .eyebrow {
  margin: 0 0 1px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.trend-chart { width: 100%; min-height: 280px; }
.trend-chart svg { display: block; width: 100%; height: 280px; }

.axis-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.legend-label {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.grid-line { stroke: #e2e5ea; stroke-width: 1; }
.axis-line { stroke: #cfd5dc; }

.chart-line-prod {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-paid {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-marker {
  cursor: pointer;
}

.marker-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
}

.marker-dot {
  stroke: #fff;
  stroke-width: 1.75;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.marker-dot-prod { fill: var(--accent); }
.marker-dot-paid { fill: var(--gold); }

.marker-eff-label {
  fill: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
}

.chart-marker:hover .marker-hit,
.chart-marker:focus .marker-hit { stroke: var(--blue); }

.gap-list { display: grid; gap: 5px; }

.gap-row {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  background: var(--panel);
  text-align: left;
  color: inherit;
  transition: background 0.1s;
}

.gap-row:hover { background: var(--panel-hover); }

.gap-row header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 550;
  font-size: 0.8rem;
}

.gap-row header span:first-child { color: var(--text-secondary); }
.gap-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--surface); }
.gap-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); }

.matrix-panel { margin-bottom: 8px; }

.matrix-wrap {
  overflow: auto;
  max-height: min(52vh, 660px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
}

.matrix-table th,
.matrix-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 6px;
  text-align: right;
  vertical-align: top;
}

.matrix-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.matrix-table th:first-child,
.matrix-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 120px;
  background: var(--panel);
  text-align: left;
  border-right: 1px solid var(--border-light);
}

.matrix-table th:first-child { z-index: 4; background: var(--surface); }

.matrix-table td:first-child strong {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.matrix-table td:first-child span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.matrix-cell-button {
  position: relative;
  display: grid;
  gap: 1px;
  width: 100%;
  min-width: 100px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  text-align: right;
  padding: 6px 7px;
  cursor: pointer;
  transition: background 0.1s;
}

.matrix-cell-button:hover { background: rgba(0,0,0,0.03); }

.matrix-cell-button strong { font-size: 0.8rem; font-weight: 600; }
.matrix-cell-button span { color: var(--text-muted); font-size: 0.63rem; font-weight: 500; }

.matrix-cell-button.good { background: var(--green-soft); }
.matrix-cell-button.good:hover { background: #dff0e3; }
.matrix-cell-button.watch { background: var(--amber-soft); }
.matrix-cell-button.watch:hover { background: #fef2d6; }
.matrix-cell-button.gap { background: var(--red-soft); }
.matrix-cell-button.gap:hover { background: #fce4e2; }
.matrix-cell-button.empty { background: transparent; color: var(--text-muted); }

.marker {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  border: 1px solid #fff;
}

.marker-related {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid #fff;
}

.team-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }

.team-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.team-table th,
.team-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 9px 11px;
  text-align: right;
}

.team-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

.team-table td:nth-child(1),
.team-table td:nth-child(2),
.team-table th:nth-child(1),
.team-table th:nth-child(2) { text-align: left; }
.team-table tbody tr:hover { background: var(--panel-hover); }
.team-table tbody td { font-weight: 450; }
.team-table td:nth-child(2) strong { font-weight: 600; color: var(--text-primary); }

.reason-count-button {
  min-width: 28px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  border: 1px solid #c9dbee;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 8px;
}

.reason-count-button:hover {
  background: #dceaf7;
}

.reason-count-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.reason-count-empty {
  color: var(--text-muted);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.comment-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(440px, 100vw);
  height: 100vh;
  border-left: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.2s ease;
}

.comment-drawer.open { transform: translateX(0); }

.data-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(760px, 100vw);
  height: 100vh;
  border-left: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.2s ease;
}

.data-drawer.open { transform: translateX(0); }

.data-drawer .selected-summary {
  grid-template-columns: repeat(3, 1fr);
}

.drilldown-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.drilldown-table-wrap {
  overflow: auto;
  padding: 0 18px 18px;
}

.drilldown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.drilldown-table th,
.drilldown-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 9px 10px;
  text-align: right;
  white-space: nowrap;
}

.drilldown-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.drilldown-table tbody tr:hover { background: var(--panel-hover); }
.drilldown-table .text-left { text-align: left; }
.drilldown-table .numeric { text-align: right; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-header .eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-primary);
}

.drawer-header p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.drawer-close {
  align-self: start;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  flex-shrink: 0;
}

.drawer-close:hover { background: #e8ebef; color: var(--text-primary); }

.drawer-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.selected-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.selected-summary div {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--surface);
}

.selected-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.selected-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-list { overflow: auto; padding: 10px 18px; }

.empty-comments {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 18px;
  text-align: center;
  color: var(--text-muted);
}

.empty-comments svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.35;
}

.empty-comments p { margin: 0; font-size: 0.85rem; }

.comment-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  padding: 10px 12px;
}

.comment-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 550;
}

.comment-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.related-note { border-left: 3px solid var(--accent); }

.comment-form {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.comment-form label {
  display: grid;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comment-form select,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text-primary);
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  transition: border-color 0.12s;
}

.comment-form select:focus,
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { resize: vertical; min-height: 56px; }
.comment-form option { background: var(--panel); color: var(--text-primary); }

.btn-save {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 550;
  transition: background 0.1s;
}

.btn-save:hover { background: var(--accent-strong); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(380px, calc(100vw - 40px));
  border-radius: var(--radius-sm);
  background: #1e2229;
  color: #fff;
  font-weight: 500;
  font-size: 0.84rem;
  padding: 0.65rem 0.9rem;
  box-shadow: var(--shadow-md);
}

.toast[hidden] { display: none; }

.toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.positive { color: var(--green); }
.negative { color: var(--red); }

@media (max-width: 1200px) {
  .control-band { grid-template-columns: 1fr 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .control-band { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-left { flex-wrap: wrap; }
  .top-actions { justify-content: flex-end; }
  .data-drawer .selected-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .app-shell { width: calc(100vw - 16px); }
  .control-band { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .segmented { min-width: 0; }
  .panel-heading { flex-direction: column; }
  .data-drawer .selected-summary { grid-template-columns: 1fr; }
  .drilldown-actions { justify-content: stretch; }
  .drilldown-actions .btn { flex: 1; justify-content: center; }
}
