:root {
  color-scheme: dark;
  --bg-photo: none;
  --panel: rgba(15, 23, 42, 0.56);
  --panel-strong: rgba(15, 23, 42, 0.72);
  --text: #f4f7f0;
  --muted: #cbd5e1;
  --surface: rgba(15, 23, 42, 0.58);
  --surface-hover: rgba(15, 23, 42, 0.74);
  --surface-text: #f8fafc;
  --border: rgba(148, 163, 184, 0.34);
  --online: #34d399;
  --offline: #fb7185;
  --warning: #fbbf24;
  --disabled: #94a3b8;
  --shadow: 0 18px 48px rgba(2, 6, 23, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.68)),
    var(--bg-photo),
    #0f172a;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.hero-card,
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  padding: 24px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: #dbeafe;
}

h2 {
  margin: 28px 0 14px;
  font-size: 1rem;
}

.subtitle {
  margin-top: 8px;
  color: #e2e8f0;
  font-size: 1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
}

.app-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--surface-text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: #c3d0bf;
  background: var(--surface-hover);
}

.status-dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--disabled);
  box-shadow: 0 0 18px currentColor;
}

.is-online .status-dot {
  background: var(--online);
}

.is-offline .status-dot {
  background: var(--offline);
}

.is-warning .status-dot {
  background: var(--warning);
}

.is-disabled {
  color: var(--disabled);
  cursor: default;
}

.is-disabled:hover {
  transform: none;
}

.app-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.22rem;
  color: #dbeafe;
}

.app-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.meta {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
}

.empty {
  margin-top: 24px;
  color: var(--muted);
}

@media (max-width: 660px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 22px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

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