:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #18202a;
  --muted: #657181;
  --line: #d9e0e8;
  --accent: #116a7b;
  --accent-2: #3d7b49;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

small {
  color: var(--muted);
  font-size: 12px;
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
}

button.active,
button:hover {
  background: #0b5360;
}

input,
select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login .panel {
  width: min(420px, 100%);
}

.topbar {
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1,
.panel h2,
.login h1 {
  margin: 0;
}

.topbar nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-actions,
.connection-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.connection-status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgb(101 113 129 / 0.14);
}

.connection-status.connected {
  color: #246b36;
  background: #e8f5e9;
  border-color: #b9dfc0;
}

.connection-status.connecting {
  color: #9a5b00;
  background: #fff7e6;
  border-color: #f3d28c;
}

.connection-status.offline {
  color: var(--danger);
  background: #fff1f0;
  border-color: #f3b5ad;
}

.content {
  padding: 24px;
}

.filters,
.metrics,
.grid,
.chips {
  display: grid;
  gap: 16px;
}

.filters {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin-bottom: 16px;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.dashboard-toolbar .filters {
  margin-bottom: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.dashboard-tabs button {
  border-radius: 0;
  border: 1px solid var(--line);
  border-bottom: none;
  background: white;
  color: var(--accent);
}

.dashboard-tabs button.active {
  background: var(--accent);
  color: white;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.analytics-metrics article {
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
}

.analytics-metrics strong {
  font-size: 28px;
}

.quality-card {
  transition: border-color 120ms ease, background 120ms ease;
}

.quality-card.quality-good {
  border-left-color: #2f7d32;
  background: #f0f8f1;
}

.quality-card.quality-ok {
  border-left-color: #1f6fb2;
  background: #eef6fd;
}

.quality-card.quality-info {
  border-left-color: #6b5aa6;
  background: #f4f1fb;
}

.quality-card.quality-warn {
  border-left-color: #b26b00;
  background: #fff7e6;
}

.quality-card.quality-bad {
  border-left-color: var(--danger);
  background: #fff1f0;
}

.chips {
  grid-template-columns: repeat(5, max-content);
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.chips button {
  background: white;
  color: var(--accent);
}

.chips button.active {
  background: var(--accent);
  color: white;
}

.metrics article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metrics span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.panel {
  overflow: auto;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

label,
.stack-form {
  display: grid;
  gap: 8px;
}

.inline-form,
.stack-form {
  margin-bottom: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.stack-form > button {
  justify-self: start;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-select {
  min-width: 140px;
}

.table-input {
  min-width: 160px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 0;
}

.table-pagination button {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}

.table-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.table-pagination button:not(:disabled):hover {
  border-color: var(--accent);
}

.table-pagination span {
  font-size: 13px;
  color: var(--muted);
}

.scope-cell {
  min-width: 260px;
}

.scope-controls {
  display: grid;
  grid-template-columns: 110px minmax(140px, 1fr);
  gap: 6px;
}

.scope-controls select:disabled {
  display: none;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.secret-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #b9dfc0;
  border-radius: 8px;
  background: #e8f5e9;
}

.secret-box strong {
  grid-column: 1 / -1;
}

.secret-box code {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 1px solid #9bc9a4;
  border-radius: 6px;
  background: white;
  overflow-wrap: anywhere;
}

#managers-table .table-input,
#managers-table .table-select {
  min-width: 0;
}

.customer-link {
  padding-inline: 0;
  border: none;
  min-height: 0;
}

#reports-table tr[data-report-day],
#report-calls-table tr[data-call-id] {
  cursor: pointer;
}

#reports-table tr[data-report-day]:hover,
#report-calls-table tr[data-call-id]:hover {
  background: #f8fafc;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.diagnostics-grid article {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
}

.diagnostics-grid span,
.diagnostics-grid small {
  display: block;
  color: var(--muted);
}

.diagnostics-grid strong {
  display: block;
  margin: 6px 0;
}

.ok-text {
  color: #246b36;
}

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

.command-list {
  display: grid;
  gap: 10px;
}

.command-list pre {
  margin: 4px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

details summary {
  cursor: pointer;
  color: var(--accent);
}

details pre {
  max-width: 100%;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.live-log-table td {
  font-size: 13px;
}

.incoming-numbers-table td:first-child {
  min-width: 180px;
}

.incoming-numbers-table strong,
.incoming-numbers-table small {
  display: block;
}

.incoming-numbers-table small {
  margin-top: 3px;
  color: var(--muted);
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.followup-toolbar {
  grid-template-columns: repeat(2, minmax(180px, 260px));
  justify-content: start;
}

.reports-toolbar {
  grid-template-columns: auto auto auto 1fr;
  justify-content: start;
  align-items: center;
}

.reports-toolbar button {
  width: auto;
  min-width: 150px;
}

.checkbox-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.reports-toolbar .muted {
  justify-self: end;
}

.action-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 6px;
  background: #f8fafc;
}

.action-item.critical {
  border-left-color: var(--danger);
}

.action-item.warning {
  border-left-color: #d66a00;
}

.action-item.info {
  border-left-color: var(--accent);
}

.action-item strong,
.action-item span,
.action-item small {
  display: block;
}

.action-item small {
  margin-top: 3px;
}

.action-item button {
  width: auto;
  white-space: nowrap;
}

.sort-button {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.sort-button:hover,
.sort-button.active {
  background: transparent;
  color: var(--accent);
}

td,
th {
  border-top: 1px solid var(--line);
  padding: 9px 6px;
  text-align: left;
  vertical-align: top;
}

.error {
  min-height: 20px;
  color: var(--danger);
}

.app-error {
  margin: 16px 24px 0;
  border: 1px solid #f3b5ad;
  border-radius: 6px;
  background: #fff1f0;
  color: var(--danger);
  padding: 10px 12px;
}

.alert-panel {
  margin-bottom: 16px;
  border: 1px solid #f3b5ad;
  border-radius: 8px;
  background: #fff1f0;
  color: var(--danger);
  padding: 12px;
}

.alert-panel p {
  margin: 4px 0;
}

dialog {
  width: min(980px, calc(100vw - 32px));
  border: none;
  border-radius: 8px;
  padding: 0;
}

dialog::backdrop {
  background: rgb(0 0 0 / 0.35);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.business-hours-editor {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.business-hours-editor label {
  grid-template-columns: 120px 120px 120px max-content;
  align-items: center;
}

.login-debug {
  display: none;
  margin: 8px 0 0;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: #344054;
  padding: 8px;
  font-size: 12px;
}

body.debug-login .login-debug {
  display: block;
}

.bars {
  display: grid;
  align-items: end;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18px, 1fr);
  gap: 5px;
  min-height: 180px;
}

.bar {
  min-height: 2px;
  background: var(--accent-2);
  border-radius: 4px 4px 0 0;
}

.donut-card {
  min-height: 210px;
  display: grid;
  place-items: center;
}

.donut {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent-2) var(--answered-deg), #f2c200 0);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: white;
}

.donut-label {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut-label strong {
  display: block;
  font-size: 32px;
  color: var(--accent);
}

.stacked-chart,
.combo-chart,
.weekday-chart {
  min-height: 260px;
  overflow-x: auto;
}

.stacked-bars,
.hourly-bars {
  display: grid;
  align-items: end;
  gap: 8px;
  min-height: 230px;
}

.stacked-bars {
  grid-auto-flow: column;
  grid-auto-columns: minmax(44px, 1fr);
}

.hourly-bars {
  grid-template-columns: repeat(24, minmax(28px, 1fr));
}

.stack-column,
.hour-column {
  display: grid;
  align-content: end;
  gap: 4px;
  height: 220px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.stack {
  display: grid;
  align-content: end;
  height: 170px;
  border-bottom: 1px solid var(--line);
}

.answered-bar {
  background: var(--accent);
}

.unanswered-bar {
  background: #f2c200;
}

.quality-bucket-10 {
  background: #2f7d32;
}

.quality-bucket-20 {
  background: #6fba44;
}

.quality-bucket-30 {
  background: #1f8fb2;
}

.quality-bucket-60 {
  background: #f2a900;
}

.quality-bucket-over-60 {
  background: #d66a00;
}

.quality-bucket-missed {
  background: var(--danger);
}

.stack .quality-bucket-10,
.stack .quality-bucket-20,
.stack .quality-bucket-30,
.stack .quality-bucket-60,
.stack .quality-bucket-over-60,
.stack .quality-bucket-missed {
  min-height: 0;
}

.quality-hour {
  min-height: 220px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.quality-hour:not(button) {
  cursor: default;
}

.quality-hour:is(button):hover,
.quality-hour:focus-visible,
.quality-hour.selected {
  outline: none;
  border-color: var(--accent);
  background: #eef8fa;
}

.quality-hour .stack {
  width: 100%;
}

.quality-hour.quality-hour-good {
  border-bottom-color: #7bbf76;
}

.quality-hour.quality-hour-ok {
  border-bottom-color: #1f8fb2;
}

.quality-hour.quality-hour-warn {
  border-bottom-color: #f2a900;
}

.quality-hour.quality-hour-bad {
  border-bottom-color: var(--danger);
}

.concurrent-chart {
  overflow-x: auto;
  min-height: 260px;
}

.concurrent-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(44px, 1fr);
  gap: 8px;
  min-height: 230px;
  align-items: end;
}

.concurrent-column {
  display: grid;
  align-content: end;
  gap: 4px;
  height: 220px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 0;
}

.concurrent-column .stack {
  display: grid;
  align-content: end;
  height: 170px;
  border-bottom: 1px solid var(--line);
}

.concurrent-bar {
  min-height: 0;
  border-radius: 3px 3px 0 0;
}

.concurrent-column.load-low .concurrent-bar {
  background: #2f7d32;
}

.concurrent-column.load-medium .concurrent-bar {
  background: #f2c200;
}

.concurrent-column.load-high .concurrent-bar {
  background: #d66a00;
}

.concurrent-column.load-critical .concurrent-bar {
  background: var(--danger);
}

.coaching-hourly {
  overflow-x: auto;
}

.coaching-hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(34px, 1fr));
  gap: 8px;
  min-height: 170px;
  align-items: end;
}

.coaching-hour {
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 155px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.coaching-bar {
  min-height: 4px;
  border-radius: 5px 5px 0 0;
}

.coaching-weekday-grid {
  display: grid;
  grid-template-columns: 72px repeat(24, minmax(28px, 1fr));
  gap: 5px;
  overflow-x: auto;
  align-items: center;
  font-size: 11px;
}

.coaching-cell,
.coaching-label {
  min-height: 28px;
  border-radius: 5px;
}

.coaching-label {
  display: grid;
  align-items: center;
  color: var(--muted);
}

.coaching-cell {
  border: 1px solid transparent;
}

.risk-good {
  background: #2f7d32;
}

.risk-watch {
  background: #f2a900;
}

.risk-risk {
  background: #d66a00;
}

.risk-critical {
  background: var(--danger);
}

.coaching-hour.risk-good,
.coaching-cell.risk-good {
  border-color: #7bbf76;
  background: #f0f8f1;
}

.coaching-hour.risk-watch,
.coaching-cell.risk-watch {
  border-color: #f2a900;
  background: #fff7e6;
}

.coaching-hour.risk-risk,
.coaching-cell.risk-risk {
  border-color: #d66a00;
  background: #fff0df;
}

.coaching-hour.risk-critical,
.coaching-cell.risk-critical {
  border-color: var(--danger);
  background: #fff1f0;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  text-transform: capitalize;
}

.quality-detail {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quality-detail-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quality-detail-header h2 {
  margin-bottom: 0;
}

.quality-detail tr[data-call-id] {
  cursor: pointer;
}

.quality-detail tr[data-call-id]:hover {
  background: #f8fafc;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.weekday-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.weekday-detail strong {
  color: var(--ink);
}

.weekday-compare {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.weekday-compare-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.weekday-compare-summary article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.weekday-compare-summary span,
.weekday-compare-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.weekday-compare-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
}

.weekday-compare-grid {
  display: grid;
  grid-template-columns: 90px repeat(24, minmax(22px, 1fr));
  gap: 3px;
  overflow-x: auto;
}

.weekday-compare-label {
  min-width: 90px;
  color: var(--muted);
  font-size: 12px;
}

.weekday-compare-cell {
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f8fafc;
}

.weekday-compare-cell.up {
  background: #dff4e5;
  border-color: #9bd3aa;
}

.weekday-compare-cell.down {
  background: #ffe6d8;
  border-color: #f0ad85;
}

.weekday-compare-cell.flat {
  background: #eef3f7;
}

.weekday-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.weekday-spark {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  align-items: end;
  min-height: 46px;
}

.weekday-stack {
  display: grid;
  align-content: end;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 3px 3px 0 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.weekday-stack:hover,
.weekday-stack:focus-visible,
.weekday-stack.selected {
  outline: none;
  border-color: var(--accent);
  background: #eef8fa;
}

.weekday-stack .answered-bar,
.weekday-stack .unanswered-bar {
  min-height: 0;
  border-radius: 3px 3px 0 0;
}

.current-calls-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.call-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
  display: grid;
  gap: 8px;
  min-height: 150px;
}

.call-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.call-card h3 {
  margin: 0;
  font-size: 16px;
}

.call-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 5px 10px;
  margin: 0;
  font-size: 13px;
}

.call-card dt {
  color: var(--muted);
}

.call-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.status {
  display: inline-block;
  min-width: 84px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
}

.status.connected {
  background: #e8f5e9;
  color: #246b36;
}

.status.disconnected {
  background: #fff7e6;
  color: #9a5b00;
}

.status.disabled {
  background: #eef2f6;
  color: #667085;
}

.status.stale {
  background: #fff1f0;
  color: var(--danger);
}

.status.auth_failed,
.status.backing_off {
  background: #fff1f0;
  color: var(--danger);
}

.link-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--accent);
  min-height: 30px;
  padding: 0 10px;
}

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

.muted {
  color: var(--muted);
}

.empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .topbar-actions,
  .connection-tools {
    justify-content: flex-start;
  }

  .filters,
  .metrics,
  .grid,
  .analytics-grid,
  .dashboard-toolbar {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 16px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .table-toolbar {
    grid-template-columns: 1fr;
  }

  .reports-toolbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .reports-toolbar button {
    width: 100%;
  }

  .reports-toolbar .muted {
    justify-self: start;
  }

  .action-center-grid,
  .action-item {
    grid-template-columns: 1fr;
  }

  .scope-cell {
    min-width: 220px;
  }

  .scope-controls {
    grid-template-columns: 1fr;
  }
}
