:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #141a21;
  --panel2: #10161d;
  --text: #eef3f8;
  --muted: #9aa8b5;
  --line: #27313c;
  --accent: #62d2ff;
  --ok: #35d07f;
}

* { box-sizing: border-box; }

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

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

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel2);
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--ok);
}

.hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.primary,
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.primary {
  min-height: 150px;
  padding: 22px;
}

.primary:hover,
.card:hover {
  border-color: rgba(98, 210, 255, .7);
  background: #18212a;
  transform: translateY(-1px);
}

.primary span,
.group-title,
.card small,
footer {
  color: var(--muted);
}

.primary strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.primary small,
.card small {
  font-size: 14px;
}

.group {
  margin-top: 24px;
}

.group-title {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.card {
  min-height: 104px;
  padding: 16px;
}

.card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .top,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .cards {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(98, 210, 255, .28);
  border-radius: 6px;
  color: #9be3ff;
  background: rgba(98, 210, 255, .08);
  font-size: 12px;
}

.card strong {
  margin-bottom: 6px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin: 32px 0 14px;
}

.section-head h2,
.app-group h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

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

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

.metric-card,
.disk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric-card span,
.disk-card small,
.disk-card em {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

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

.disk-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.bar i {
  display: block;
  height: 100%;
  background: #38d996;
}

.disk-card.warn .bar i { background: #f5b84b; }
.disk-card.bad .bar i { background: #ff5d5d; }

.disk-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
}

@media (max-width: 850px) {
  .metrics-grid,
  .disk-grid {
    grid-template-columns: 1fr;
  }
}

/* UI polish - 2026-08-07 */
:root {
  --accent: #65d8ff;
  --accent-2: #38d996;
  --card-hover: rgba(101, 216, 255, .08);
}

.top {
  align-items: flex-start;
}

.status {
  box-shadow: 0 0 0 1px rgba(101,216,255,.14), 0 12px 34px rgba(0,0,0,.18);
}

.hero .primary,
.card,
.metric-card,
.disk-card {
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.hero .primary::after,
.card::after,
.metric-card::after,
.disk-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(101,216,255,.10), transparent 42%);
  opacity: 0;
  transition: opacity .16s ease;
}

.hero .primary:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(101,216,255,.38);
  background: var(--card-hover);
}

.hero .primary:hover::after,
.card:hover::after,
.metric-card:hover::after,
.disk-card:hover::after {
  opacity: 1;
}

.metrics {
  margin-top: 34px;
}

.metric-card strong {
  letter-spacing: 0;
}

.disk-card strong,
.card strong,
.primary strong {
  letter-spacing: 0;
}

.app-group {
  margin-top: 28px;
}

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

.app-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #dff7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  background:
    linear-gradient(145deg, rgba(101,216,255,.22), rgba(56,217,150,.10)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(101,216,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

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

.app-copy .badge {
  margin-bottom: 10px;
}

.app-copy strong {
  display: block;
  margin-bottom: 6px;
}

.app-copy small {
  display: block;
}

.disk-card.warn {
  border-color: rgba(245,184,75,.34);
}

.disk-card.bad {
  border-color: rgba(255,93,93,.4);
}

.disk-card.ok {
  border-color: rgba(56,217,150,.22);
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

/* Real app icons - 2026-08-07 */
.app-icon {
  position: relative;
  overflow: hidden;
}

.app-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  z-index: 1;
}

.app-icon span {
  display: none;
  z-index: 1;
}

.app-icon.fallback span,
.app-icon:not(:has(img)) span {
  display: block;
}

.app-card:hover .app-icon {
  border-color: rgba(101,216,255,.45);
  background:
    linear-gradient(145deg, rgba(101,216,255,.28), rgba(56,217,150,.14)),
    rgba(255,255,255,.05);
}

/* Hero app icons - 2026-08-07 */
.hero-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(101,216,255,.18), rgba(56,217,150,.08)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(101,216,255,.22);
}

.hero-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.hero-fallback {
  color: #dff7ff;
  font-size: 28px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .hero-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .hero-icon {
    width: 52px;
    height: 52px;
  }

  .hero-icon img {
    width: 34px;
    height: 34px;
  }
}

.hero-icon img.beszel-wordmark {
  width: 112px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.hero-icon img.beszel-wordmark {
  width: 112px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.hero-icon.hero-icon-wide {
  width: 148px;
  min-width: 148px;
  padding: 0 12px;
}

.hero-icon img.beszel-wordmark {
  width: 124px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-icon.hero-icon-wide {
  width: 164px;
  min-width: 164px;
  height: 74px;
}

.hero-icon img.beszel-wordmark {
  width: 136px;
  height: auto;
  max-height: 48px;
}

.hero-card.beszel-card {
  display: flex;
  align-items: center;
}

.hero-card.beszel-card .beszel-title-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 12px 0 10px;
}
