:root {
    --bs-body-font-family: 'Inter', sans-serif;
    --page-background: #f6f7f8;
    --page-ink: #24282c;
    --accent: #087f70;
    --muted: #616970;
    --rule: #dfe3e6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-background);
    color: var(--page-ink);
}

h1, .navbar-brand {
    font-weight: 700;
}

h1 { font-size: 2rem; }
main { flex: 1; display: flex; flex-direction: column; }
#overview { flex: 1; display: grid; place-items: center; }
#overview.is-signed-in { display: block; }
[hidden] { display: none !important; }
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.navbar { min-height: 76px; }
.navbar-brand { font-size: 1.25rem; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); }
.nav-link { font-weight: 500; }
.navbar .nav-link.active { color: var(--accent); }
.account-name { max-width: 240px; overflow-wrap: anywhere; }
.section-label { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.icon-button { width: 40px; height: 40px; padding: 8px; display: inline-grid; place-items: center; flex-shrink: 0; }
.lucide { width: 20px; height: 20px; flex-shrink: 0; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-color: var(--rule) !important; }
.status-item { padding: 28px 24px; min-width: 0; }
.status-item:first-child { padding-left: 0; }
.status-item + .status-item { border-left: 1px solid var(--rule); }
.metric-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.metric-value { font-size: 1.5rem; font-weight: 600; margin: 16px 0 8px; overflow-wrap: anywhere; }
.ip-value { font-size: 1.125rem; min-height: 36px; display: flex; align-items: center; }
.metric-detail { font-size: 0.8125rem; color: var(--muted); }
.home-login { width: 100%; max-width: 420px; padding: 24px 0; margin-inline: auto; }
.home-login .form-control { min-height: 44px; }
.home-login .btn { min-height: 44px; }
.signed-in-workspace { width: 100%; padding-top: 16px; }
.workspace-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.workspace-welcome h2 { overflow-wrap: anywhere; }
.workspace-session { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.875rem; flex-shrink: 0; }
.workspace-account { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin: 0; padding: 24px 0; border-top: 1px solid var(--rule); }
.workspace-account dt { color: var(--muted); font-size: 0.8125rem; font-weight: 400; margin-bottom: 8px; }
.workspace-account dd { margin: 0; font-size: 0.9375rem; font-weight: 500; overflow-wrap: anywhere; }
.workspace-destination { display: flex; align-items: center; gap: 20px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--page-ink); text-decoration: none; }
.workspace-destination:hover { color: var(--accent); }
.workspace-destination:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.workspace-destination-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.workspace-destination-icon .lucide { width: 28px; height: 28px; }
.workspace-destination-title { display: grid; gap: 8px; min-width: 0; }
.workspace-destination-title .h5 { font-size: 1.125rem; overflow-wrap: anywhere; }
.workspace-open { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font-size: 0.875rem; font-weight: 500; flex-shrink: 0; }
.footer-ip { overflow-wrap: anywhere; }
.footer-connection { min-width: 0; }
.is-healthy { color: var(--accent); }
.is-unavailable { color: #b42332; }
.status-table { --bs-table-bg: transparent; }
.status-table th { font-weight: 500; }
.status-table td { overflow-wrap: anywhere; }
.resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resource-grid .metric-value { font-size: 1.25rem; min-height: 30px; }
.resource-grid .status-item { min-height: 180px; }
.resource-meter { width: 100%; height: 12px; margin-top: 12px; }
.resource-table { --bs-table-bg: transparent; font-size: 0.875rem; }
.resource-table th { font-weight: 500; }
.resource-table td { overflow-wrap: anywhere; max-width: 260px; }
.status-table th:first-child { width: 40%; }
.site-footer { border-top: 1px solid var(--rule); }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 8px 16px; background: #fff; }

@media (max-width: 767.98px) {
    .navbar-collapse { padding: 12px 0 8px; }
    .navbar-collapse .btn { width: 100%; margin-top: 12px; }
    .account-controls { flex-direction: column; align-items: stretch !important; }
    .account-name { max-width: none; }
    .workspace-account { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .workspace-destination { flex-wrap: wrap; gap: 12px; padding: 24px 0; }
    .workspace-open { width: calc(100% - 60px); margin-left: 60px; }
    .status-grid { grid-template-columns: minmax(0, 1fr); }
    .resource-grid .status-item { min-height: 150px; }
    .status-item, .status-item:first-child { padding: 24px 0; }
    .status-item + .status-item { border-left: 0; border-top: 1px solid var(--rule); }
    .metric-value { margin-top: 12px; }
}