:root,
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-2: #eef0f3;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-3: #f3f4f7;
  --text: #161a20;
  --muted: #5a6270;
  --muted-2: #8b93a1;
  --border: #e4e6ea;
  --border-2: #d6d9de;
  --accent: #0fa968;
  --blue: #1f8fd0;
  --cyan: #1f8fd0;
  --green: #0fa968;
  --yellow: #c98213;
  --red: #dc4a3f;
  --ok-bg: rgba(15, 169, 104, 0.09);
  --warn-bg: rgba(201, 130, 19, 0.1);
  --crit-bg: rgba(220, 74, 63, 0.08);
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.04), 0 14px 30px -24px rgba(20, 30, 50, 0.25);
}

:root[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-2: #0e0f12;
  --surface: #121419;
  --surface-2: #171a20;
  --surface-3: #1b1e25;
  --text: #eef0f4;
  --muted: #a3a9b5;
  --muted-2: #646a76;
  --border: #23262e;
  --border-2: #2c3038;
  --accent: #34d39a;
  --blue: #54c3f0;
  --cyan: #54c3f0;
  --green: #34d39a;
  --yellow: #f3b14b;
  --red: #f26a5f;
  --ok-bg: rgba(52, 211, 154, 0.1);
  --warn-bg: rgba(243, 177, 75, 0.1);
  --crit-bg: rgba(242, 106, 95, 0.11);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, color-mix(in srgb, var(--red) 7%, transparent), transparent 55%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.08rem;
  line-height: 1.15;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 0.9rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
  padding: 0.82rem clamp(1rem, 2vw, 1.9rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--green);
  font-weight: 900;
  font-size: 1.16rem;
  background: linear-gradient(145deg, #1c2027, #0e1014);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-copy {
  min-width: 0;
}

.breadcrumbs {
  color: var(--muted-2);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-status,
.actions,
.toolbar,
.problem-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.topbar-status {
  justify-content: center;
}

.actions {
  justify-content: flex-end;
}

.status-pill,
.live-pill,
.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 34px;
  padding: 0.34rem 0.72rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.live-pill {
  color: var(--green);
  background: var(--ok-bg);
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  font-weight: 800;
}

.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.3s infinite;
}

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

.icon-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 38px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  white-space: nowrap;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.button {
  padding: 0.48rem 0.68rem;
}

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

.button.primary,
.icon-button.primary,
.button.ghost.active {
  color: #06120c;
  background: var(--green);
  border-color: var(--accent);
  font-weight: 800;
}

.button.ghost {
  color: var(--muted);
  background: var(--surface-3);
}

.button:hover,
.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.more-menu {
  position: relative;
}

.more-menu summary {
  list-style: none;
}

.more-menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  display: grid;
  min-width: 180px;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.menu-panel a:hover {
  background: var(--surface-2);
}

.logout-form {
  margin: 0;
}

.shell {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 1.55rem clamp(1rem, 2vw, 1.9rem) 3.75rem;
}

.hero-overview {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(520px, 2fr);
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.health-card {
  --health-score: 0;
  --health-color: var(--muted);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  min-width: 0;
  min-height: 190px;
  padding: 1.55rem 1.7rem;
  overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.health-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at 12% 0%, color-mix(in srgb, var(--health-color) 14%, transparent), transparent 70%);
}

.health-card[data-status="ok"] {
  --health-color: var(--green);
}

.health-card[data-status="warning"] {
  --health-color: var(--yellow);
}

.health-card[data-status="critical"] {
  --health-color: var(--red);
}

.health-gauge,
.health-copy {
  position: relative;
}

.health-gauge {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--health-color) calc(var(--health-score) * 1%), var(--surface-3) 0);
  box-shadow: inset 0 0 0 1px var(--border), 0 0 30px color-mix(in srgb, var(--health-color) 12%, transparent);
}

.health-gauge span {
  color: var(--health-color);
  font-size: 2.45rem;
  font-weight: 850;
  line-height: 1;
}

.health-gauge small {
  position: absolute;
  margin-top: 3.5rem;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.health-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.health-copy h2 {
  margin-top: 0.42rem;
  color: var(--health-color);
  font-size: 1.5rem;
  letter-spacing: 0;
}

.health-copy p {
  margin-top: 0.58rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.ribbon-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 190px;
  padding: 1.35rem;
  overflow: hidden;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
}

.ribbon-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--border-2);
}

.ribbon-item b {
  color: var(--text);
  font-size: clamp(2.15rem, 3vw, 2.9rem);
  font-weight: 850;
  line-height: 1;
}

.ribbon-ok::before {
  background: var(--green);
}

.ribbon-warning::before {
  background: var(--yellow);
}

.ribbon-critical {
  border-color: color-mix(in srgb, var(--red) 34%, var(--border));
}

.ribbon-critical::before {
  background: var(--red);
}

.ribbon-live::before {
  background: var(--cyan);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 0.88rem;
}

.metric-card,
.panel,
.chart-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.72rem;
  min-height: 166px;
  padding: 1rem;
  overflow: hidden;
  border-top: 3px solid var(--border);
}

.metric-card[data-status="ok"] {
  border-top-color: var(--green);
}

.metric-card[data-status="warning"] {
  border-top-color: var(--yellow);
}

.metric-card[data-status="critical"] {
  border-top-color: var(--red);
}

.metric-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-title span {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-width: 0;
}

.metric-title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.metric-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: end;
  gap: 0.6rem;
}

.metric-value {
  font-size: clamp(1.65rem, 2vw, 2.28rem);
  font-weight: 850;
  line-height: 1;
  overflow-wrap: normal;
}

.metric-sub,
.metric-note,
.panel-subtitle,
.muted {
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-spark svg {
  width: 76px;
  height: 36px;
}

.metric-spark polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.metric-details {
  display: grid;
  gap: 0.32rem;
  align-content: start;
  font-size: 0.78rem;
}

.metric-details div {
  display: grid;
  grid-template-columns: minmax(56px, auto) minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
}

.metric-details span {
  color: var(--muted);
}

.metric-details b {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card-compact .metric-value {
  font-size: 2rem;
}

.panel,
.chart-card {
  padding: 1.2rem 1.28rem;
}

.panel {
  margin-top: 1.1rem;
}

.panel-head,
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.chart-head h3 {
  margin-bottom: 0.18rem;
}

.chart-head b {
  font-size: 1.35rem;
  color: var(--accent);
}

.chart-stat {
  color: var(--muted);
  font-size: 0.78rem;
}

.toolbar {
  margin-bottom: 0.75rem;
}

.toolbar.compact {
  margin: 0;
}

.toolbar-spacer {
  flex: 1 1 auto;
}

.counter {
  min-width: 48px;
  padding: 0.24rem 0.58rem;
  color: var(--red);
  text-align: center;
  background: var(--crit-bg);
  border: 1px solid color-mix(in srgb, var(--red) 32%, transparent);
  border-radius: 999px;
  font-weight: 800;
}

.chart-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

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

.chart-box {
  position: relative;
  height: 248px;
}

.problems-list,
.services-list,
.log-list {
  display: grid;
  gap: 0.58rem;
}

.issue-ok,
.empty,
.problem-card,
.service-row,
.log-item,
.top-box {
  border-radius: 12px;
}

.issue-ok,
.empty {
  padding: 0.72rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--border);
}

.empty.compact {
  padding: 0.48rem;
  font-size: 0.8rem;
}

.issue-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  border-style: solid;
}

.problem-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 1.1rem 1rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 0;
  overflow: hidden;
}

.problem-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 3px;
  background: var(--muted);
}

.problem-card[data-severity="critical"] {
  background: color-mix(in srgb, var(--crit-bg) 62%, var(--surface-2));
  border-color: color-mix(in srgb, var(--red) 28%, var(--border));
}

.problem-card[data-severity="warning"] {
  background: color-mix(in srgb, var(--warn-bg) 58%, var(--surface-2));
  border-color: color-mix(in srgb, var(--yellow) 24%, var(--border));
}

.problem-card[data-severity="critical"]::before {
  background: var(--red);
}

.problem-card[data-severity="warning"]::before {
  background: var(--yellow);
}

.problem-main {
  min-width: 0;
}

.problem-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.problem-main p,
.service-row p {
  margin-top: 0.2rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.problem-main small,
.log-item small {
  display: block;
  margin-top: 0.32rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.problem-actions {
  align-items: flex-start;
  justify-content: flex-end;
}

.problem-details {
  grid-column: 1 / -1;
  max-height: 310px;
  margin: 0;
  padding: 0.72rem;
  overflow: auto;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: 0.78rem/1.45 "Cascadia Mono", Consolas, monospace;
}

.top-containers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.top-box {
  padding: 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.top-box h3 {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(70px, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 24px;
  font-size: 0.78rem;
}

.bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar {
  height: 8px;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 999px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 0.62rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

tbody tr:hover {
  background: var(--surface-2);
}

.service-row,
.log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0.62rem;
  padding: 0.68rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.service-row {
  border-left: 3px solid var(--border);
}

.service-row[data-status="ok"] {
  border-left-color: var(--green);
}

.service-row[data-status="warning"] {
  border-left-color: var(--yellow);
}

.service-row[data-status="critical"] {
  border-left-color: var(--red);
}

.service-row details {
  grid-column: 1 / -1;
}

.service-row summary {
  cursor: pointer;
  color: var(--muted);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.33rem 0;
  border-bottom: 1px solid var(--border);
}

.log-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.search-input {
  width: min(260px, 100%);
  min-height: 34px;
  padding: 0.45rem 0.62rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.notification-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.62rem;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.dot,
.chip::before {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  display: inline-block;
}

.dot {
  background: currentColor;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 23px;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.chip::before {
  content: "";
}

.status-ok,
.chip.status-ok {
  background: var(--ok-bg);
  color: var(--green);
}

.status-warning,
.chip.status-warning {
  background: var(--warn-bg);
  color: var(--yellow);
}

.status-critical,
.chip.status-critical {
  background: var(--crit-bg);
  color: var(--red);
}

.status-unknown,
.chip.status-unknown {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
}

.chip.status-ok::before {
  background: var(--green);
}

.chip.status-warning::before {
  background: var(--yellow);
}

.chip.status-critical::before {
  background: var(--red);
}

.chip.status-unknown::before {
  background: var(--muted);
}

code {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08rem 0.24rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 176px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(141, 160, 166, 0.16), transparent);
  animation: shimmer 1.35s infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.login-panel {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 1.3rem;
}

.login-form {
  display: grid;
  gap: 0.9rem;
}

.login-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.login-form input {
  width: 100%;
  min-height: 42px;
  padding: 0.62rem 0.7rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.login-form input:focus,
.search-input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: var(--accent);
}

.login-error {
  padding: 0.7rem;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 24%, transparent);
  border-radius: 8px;
  font-size: 0.9rem;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 1480px) {
  .hero-overview {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

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

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-status {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

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

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

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: start;
    grid-template-columns: 1fr;
  }

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

  .hero-overview {
    gap: 0.8rem;
  }

  .health-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 1.1rem;
  }

  .health-gauge {
    width: 118px;
    height: 118px;
    flex-basis: 118px;
  }

  .health-gauge span {
    font-size: 2rem;
  }

  .health-gauge small {
    margin-top: 3rem;
  }

  .status-ribbon {
    grid-template-columns: 1fr;
  }

  .ribbon-item {
    min-height: 112px;
    gap: 0.8rem;
  }

  .metric-grid,
  .charts-panel .chart-grid,
  .top-containers {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 168px;
  }

  .metric-value-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .panel-head,
  .problem-card,
  .service-row,
  .log-item {
    grid-template-columns: 1fr;
  }

  .problem-actions,
  .toolbar {
    justify-content: stretch;
  }

  .button,
  .problem-actions .button,
  .toolbar .button {
    flex: 1 1 auto;
  }

  .chart-box {
    height: 220px;
  }
}
