:root {
    color-scheme: dark;
    --bg: #0f172a;
    --panel: #111827;
    --panel-soft: #1f2937;
    --active: #38bdf8;
    --inactive: #6b7280;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.25);
    --primary: #38bdf8;
    --online: #22c55e;
    --offline: #ef4444;
    --unknown: #f59e0b;
}

* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
            radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 32rem),
            var(--bg);
    color: var(--text);

    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

a:visited,
a:hover,
a:active,
a:focus {
    color: inherit;
    text-decoration: none;
}

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

.hero {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    color: var(--primary);
}

.subtitle {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.card,
.empty {
    padding: 22px;
}

.card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.app-id {
    margin: 6px 0 0;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}

.status {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-online, .status-healthy {
    background: rgba(34, 197, 94, 0.16);
    color: var(--online);
}

.status-offline {
    background: rgba(239, 68, 68, 0.16);
    color: var(--offline);
}

.status-unknown {
    background: rgba(245, 158, 11, 0.16);
    color: var(--unknown);
}

.description {
    color: var(--muted);
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.tag {
    background: var(--panel-soft);
    color: #cbd5e1;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.8rem;
}

.logo-slot {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slot img.logo {
    min-height: 100px;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #00111f;
    background: var(--primary);
    font-weight: 800;
    text-decoration: none;
    border-radius: 14px;
    padding: 11px 14px;
}

.button:hover {
    filter: brightness(1.08);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
}

button.filter {
    background-color: var(--inactive);
    border: 2px solid var(--inactive);
    border-radius: 2px;
}

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