:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --line: #d9e4df;
  --text: #153331;
  --muted: #60716d;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --gold: #c98a28;
  --shadow: 0 10px 26px rgba(24, 49, 45, 0.08);
}

* {
  box-sizing: border-box;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: 1.35rem;
}

h2 {
  font-size: 1.1rem;
}

.shell {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.status-tile,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
}

.status-tile strong,
.status-tile span {
  display: block;
}

.status-tile strong {
  font-size: 0.92rem;
}

.status-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.panel {
  padding: 14px;
  margin-top: 12px;
}

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

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

.app-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 76px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.app-button.primary-app {
  border-color: rgba(15, 118, 110, 0.45);
  background: #eef9f5;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

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

.app-copy strong,
.app-copy small {
  display: block;
}

.app-copy strong {
  font-size: 1rem;
}

.app-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.badge {
  justify-self: end;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.muted {
  background: #e9efec;
  color: var(--muted);
}

.compact {
  padding: 0;
  overflow: hidden;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span {
  color: var(--muted);
}

@media (max-width: 680px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .app-button {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .app-icon {
    width: 44px;
    height: 44px;
  }

  .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }
}
