:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --line: #d9dee7;
  --ink: #172033;
  --muted: #697386;
  --active: #16794c;
  --paused: #8a5a00;
  --attention: #b42318;
  --unknown: #596579;
  --brand: #2457c5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow,
.timestamp,
.app-card p,
dt,
dd {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

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

.overview article,
.morning,
.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overview article {
  padding: 16px;
}

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

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

.morning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 22px;
}

.morning p {
  margin-bottom: 0;
  color: var(--muted);
}

.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-actions a,
.button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.section {
  margin-top: 26px;
}

.section-title {
  margin-bottom: 10px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.app-card {
  border-left: 5px solid var(--unknown);
  padding: 16px;
}

.status-active {
  border-left-color: var(--active);
}

.status-paused,
.status-local-only {
  border-left-color: var(--paused);
}

.status-needs-attention {
  border-left-color: var(--attention);
}

.card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.card-head h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.card-head p {
  line-height: 1.45;
}

.status {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

dt,
dd {
  margin: 0;
  font-size: 13px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.metric-panel div,
.mini-list {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

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

.metric-panel span,
.mini-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.metric-panel strong {
  display: block;
  font-size: 15px;
}

.mini-list {
  margin-bottom: 12px;
}

.mini-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-list strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .topbar,
  .morning {
    align-items: stretch;
    flex-direction: column;
  }

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

  .app-grid {
    grid-template-columns: 1fr;
  }
}
