*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --navy-950: #070b14;
    --navy-900: #0b1220;
    --navy-800: #111827;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --rose-600: #e11d48;
    --emerald-600: #059669;
    --amber-500: #f59e0b;
    --shadow: 0 1px 2px rgb(15 23 42 / 0.06);
    --sidebar-bg: #121214;
    --sidebar-surface: #18181b;
    --sidebar-elevated: #222226;
    --sidebar-border: #2a2a2f;
    --sidebar-border-soft: rgb(255 255 255 / 0.06);
    --sidebar-text: #a1a1aa;
    --sidebar-text-muted: #71717a;
    --sidebar-text-strong: #f4f4f5;
    --sidebar-hover: rgb(255 255 255 / 0.05);
    --sidebar-active: rgb(255 255 255 / 0.08);
    --sidebar-icon: #71717a;
    --sidebar-icon-active: #e4e4e7;
}

html, body { margin: 0; min-height: 100%; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #eef0f3;
    color: var(--slate-900);
    line-height: 1.5;
}

a { color: inherit; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #070b14, #111827);
    padding: 24px;
}
.guest-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.25);
}
.guest-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

.shell { display: flex; min-height: 100vh; }

/* ── Sidebar (dark gray) ───────────────────────────────────────── */
.sidebar {
    width: 248px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    color: var(--sidebar-text);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-head {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--sidebar-border-soft);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
}

.sidebar-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, #52525b, #3f3f46);
    border: 1px solid rgb(255 255 255 / 0.08);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.35);
}

.sidebar-logo-copy strong {
    display: block;
    color: var(--sidebar-text-strong);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sidebar-logo-copy span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--sidebar-text-muted);
}

.sidebar-nav {
    flex: 1;
    overflow: auto;
    padding: 12px 10px 8px;
    scrollbar-width: thin;
    scrollbar-color: #3f3f46 transparent;
}

.sidebar-group + .sidebar-group {
    margin-top: 18px;
}

.sidebar-group-label {
    margin: 0 0 6px;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sidebar-text-muted);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.sidebar-menu-item {
    margin: 0;
}

.sidebar-link,
.sidebar-link--toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.sidebar-link:hover,
.sidebar-link--toggle:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-strong);
}

.sidebar-link.is-active,
.sidebar-link--toggle.is-active {
    color: var(--sidebar-text-strong);
    background: var(--sidebar-active);
}

.sidebar-link.is-active::before,
.sidebar-link--toggle.is-active::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 7px;
    bottom: 7px;
    width: 2px;
    border-radius: 99px;
    background: #fafafa;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--sidebar-icon);
    transition: color .15s ease;
}

.sidebar-icon svg {
    width: 18px;
    height: 18px;
}

.sidebar-link.is-active .sidebar-icon,
.sidebar-link--toggle.is-active .sidebar-icon,
.sidebar-link:hover .sidebar-icon,
.sidebar-link--toggle:hover .sidebar-icon {
    color: var(--sidebar-icon-active);
}

.sidebar-link-label {
    flex: 1;
    min-width: 0;
}

.sidebar-dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-dropdown > summary::-webkit-details-marker { display: none; }

.sidebar-chevron {
    width: 14px;
    height: 14px;
    color: var(--sidebar-text-muted);
    transition: transform .18s ease, color .18s ease;
}

.sidebar-chevron svg {
    width: 14px;
    height: 14px;
}

.sidebar-dropdown[open] .sidebar-chevron {
    transform: rotate(90deg);
    color: var(--sidebar-text);
}

.sidebar-submenu {
    list-style: none;
    margin: 4px 0 2px;
    padding: 0 0 0 28px;
    display: grid;
    gap: 1px;
}

.sidebar-sublink {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sidebar-sublink:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-strong);
}

.sidebar-sublink.is-active {
    color: var(--sidebar-text-strong);
    background: rgb(255 255 255 / 0.04);
}

.sidebar-foot {
    padding: 10px;
    border-top: 1px solid var(--sidebar-border-soft);
    background: var(--sidebar-surface);
}

.sidebar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.sidebar-env {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sidebar-text-muted);
}

.sidebar-env-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #f59e0b;
    box-shadow: 0 0 8px rgb(245 158 11 / 0.45);
}

.sidebar-env.is-prod .sidebar-env-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgb(34 197 94 / 0.4);
}

.sidebar-alerts {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgb(239 68 68 / 0.15);
    border: 1px solid rgb(239 68 68 / 0.28);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sidebar-alerts:hover {
    background: rgb(239 68 68 / 0.24);
    color: #fff;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: var(--sidebar-elevated);
    border: 1px solid var(--sidebar-border-soft);
    transition: background .15s ease, border-color .15s ease;
}

.sidebar-profile:hover {
    background: #27272b;
    border-color: rgb(255 255 255 / 0.1);
}

.sidebar-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #52525b, #3f3f46);
    flex-shrink: 0;
}

.sidebar-profile-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 1px;
}

.sidebar-profile-copy strong {
    color: var(--sidebar-text-strong);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-copy span {
    color: var(--sidebar-text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-arrow {
    width: 14px;
    height: 14px;
    color: var(--sidebar-text-muted);
    flex-shrink: 0;
}

.sidebar-profile-arrow svg {
    width: 14px;
    height: 14px;
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 64px; display: flex; align-items: center; gap: 12px;
    padding: 0 24px; background: rgb(255 255 255 / 0.92); border-bottom: 1px solid var(--slate-200);
    position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
}
.topbar h1 { margin: 0; font-size: 16px; }
.topbar p { margin: 0; font-size: 12px; color: var(--slate-500); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--slate-600); cursor: pointer;
    display: grid; place-items: center; position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--slate-100); color: var(--slate-900); }
.badge-count {
    position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 99px; background: var(--rose-600); color: #fff; font-size: 10px; font-weight: 700;
    display: grid; place-items: center;
}
.user-chip {
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--slate-200); background: #fff;
    border-radius: 12px; padding: 4px 10px 4px 4px; text-decoration: none;
}
.avatar {
    width: 32px; height: 32px; border-radius: 8px; background: var(--slate-800); color: #fff;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

main.page { padding: 24px 32px 48px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--slate-500); margin-bottom: 16px; }
.crumbs a { color: var(--slate-600); }
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.flash-ok { background: #ecfdf5; color: #047857; }
.flash-err { background: #fff1f2; color: #be123c; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid rgb(226 232 240 / 0.9); border-radius: 16px; box-shadow: var(--shadow); }
.card-h { padding: 16px 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-h h2 { margin: 0; font-size: 15px; }
.card-b { padding: 16px 18px 18px; }
.stat { padding: 16px 18px; }
.stat .label { font-size: 12px; color: var(--slate-500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 22px; font-weight: 700; margin-top: 6px; }

.badge {
    display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px;
    font-size: 12px; font-weight: 700; text-transform: capitalize;
}
.badge-ok, .badge-active, .badge-online, .badge-healthy, .badge-success, .badge-connected { background: #ecfdf5; color: #047857; }
.badge-warn, .badge-warning, .badge-pending, .badge-expiring, .badge-suspended { background: #fffbeb; color: #b45309; }
.badge-danger, .badge-critical, .badge-revoked, .badge-expired, .badge-failure, .badge-error { background: #fff1f2; color: #be123c; }
.badge-off, .badge-offline, .badge-unknown, .badge-disabled { background: #f1f5f9; color: #475569; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
    text-decoration: none; border: 0;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #fff; color: var(--slate-700); border: 1px solid var(--slate-200); }
.btn-danger { background: var(--rose-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--slate-600); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.input, select.input, textarea.input {
    width: 100%; border: 1px solid var(--slate-200); border-radius: 10px; padding: 8px 12px; font: inherit;
    background: #fff;
}
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--slate-700); }
.field { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
    text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500);
    background: var(--slate-50); padding: 10px 14px; border-bottom: 1px solid var(--slate-200);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--slate-100); }
table.data tr:hover td { background: #f8fafc; }
.empty { text-align: center; padding: 36px 16px; color: var(--slate-500); }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 14px; }
.dl dt { color: var(--slate-500); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 16px; border-left: 2px solid var(--slate-200); position: relative; }
.timeline li::before {
    content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--blue-600);
    position: absolute; left: -5px; top: 16px;
}
.muted { color: var(--slate-500); font-size: 13px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: var(--slate-500); font-size: 13px; }
.check-grid { display: grid; gap: 8px; }
.check-item { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.menu { display: none; }
.backdrop { display: none; }
.chart { height: 180px; display: flex; align-items: flex-end; gap: 6px; }
.chart span {
    flex: 1; background: #dbeafe; border-radius: 6px 6px 0 0; min-height: 4px;
}
.notice { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--slate-100); text-decoration: none; }
.notice:last-child { border-bottom: 0; }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .sidebar { position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; }
    .backdrop.open { display: block; position: fixed; inset: 0; background: rgb(17 24 39 / 0.35); z-index: 30; }
    .menu { display: grid; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .dl { grid-template-columns: 1fr; }
    main.page { padding: 16px; }
    .user-chip span { display: none; }
}

.guest-shell-wide { align-items: start; padding-top: 32px; padding-bottom: 32px; }
.guest-card-wide { width: min(760px, 100%); }
.installer-title { margin: 0 0 8px; font-size: 1.5rem; }
.installer-lead { margin: 0 0 20px; color: var(--slate-600); font-size: 14px; }
.installer-section { margin-bottom: 22px; }
.installer-section h2 { margin: 0 0 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); }
.requirement-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.requirement-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--slate-50); font-size: 14px; }
.requirement-item.ok .requirement-status { color: var(--emerald-600); }
.requirement-item.fail .requirement-status { color: var(--rose-600); }
.requirement-item strong { display: block; }
.requirement-item .muted { display: block; font-size: 12px; color: var(--slate-500); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-span { grid-column: 1 / -1; }
.btn-block { width: 100%; margin-top: 8px; }
@media (max-width: 640px) {
    .field-grid { grid-template-columns: 1fr; }
}

.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--slate-200);
}
.public-brand { display: flex; align-items: center; gap: 12px; }
.public-nav a {
    color: var(--slate-700); text-decoration: none; font-size: 14px; font-weight: 500;
}
.public-nav a:hover { color: var(--blue-600); }
.public-main {
    flex: 1; display: grid; place-items: center; padding: 48px 24px;
}
.public-hero {
    width: min(560px, 100%); text-align: center;
}
.public-hero h1 { margin: 0 0 12px; font-size: 2rem; }
.public-hero .muted { margin: 0 0 24px; color: var(--slate-600); }
.public-actions { display: flex; justify-content: center; gap: 12px; }

.installer-page [hidden] {
    display: none !important;
}
.installer-page {
    min-height: 100vh;
    color: var(--slate-900);
    background:
        radial-gradient(1200px 480px at 50% -120px, rgb(59 130 246 / 0.16), transparent 55%),
        linear-gradient(180deg, #eef2ff 0%, #f8fafc 38%, #f1f5f9 100%);
}
.installer-shell {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}
.installer-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.installer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.installer-brand strong { display: block; font-size: 1.02rem; }
.installer-brand span { display: block; font-size: 13px; color: var(--slate-500); }
.installer-hero { margin-bottom: 22px; }
.installer-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-500);
    font-weight: 700;
}
.installer-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    line-height: 1.15;
}
.installer-subtitle {
    margin: 0;
    color: var(--slate-600);
    max-width: 54ch;
    line-height: 1.55;
}
.installer-status-pill {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}
.installer-status-pill.is-ready {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.installer-status-pill.is-blocked {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
.installer-progress {
    margin-bottom: 22px;
    padding: 18px 20px 16px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.installer-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
}
.installer-progress-pct { color: var(--blue-600); }
.installer-progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--slate-100);
    overflow: hidden;
}
.installer-progress-fill {
    height: 100%;
    width: 25%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width .25s ease;
}
.installer-progress-steps {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.installer-progress-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-400);
}
.installer-progress-steps li span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 11px;
    background: var(--slate-100);
    color: var(--slate-500);
}
.installer-progress-steps li.is-current { color: var(--slate-800); }
.installer-progress-steps li.is-current span,
.installer-progress-steps li.is-done span {
    background: #2563eb;
    color: #fff;
}
.installer-progress-steps li.is-done { color: var(--slate-600); cursor: pointer; }
.installer-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.installer-alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.installer-alert-err { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.installer-alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.installer-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.installer-card-head {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}
.installer-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.installer-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}
.installer-card-head p {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
}
.installer-requirements-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.installer-requirements-grid li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    font-size: 13px;
}
.installer-requirements-grid strong { display: block; font-weight: 600; }
.installer-requirements-grid em {
    display: block;
    font-style: normal;
    color: var(--slate-500);
    font-size: 12px;
    margin-top: 2px;
}
.installer-requirements-grid.ok .installer-req-icon,
.installer-requirements-grid li.ok .installer-req-icon { color: var(--emerald-600); }
.installer-requirements-grid li.fail {
    background: #fff1f2;
    border-color: #fecdd3;
}
.installer-requirements-grid li.fail .installer-req-icon { color: var(--rose-600); }
.field-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--slate-500);
}
.field-hint code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--slate-100);
    font-size: 12px;
}
.installer-spaced-field { margin-top: 18px; }
.installer-input-mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.installer-probe-row { margin-top: 14px; }
.installer-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--slate-600);
    line-height: 1.45;
}
.installer-check input { margin-top: 3px; }
.installer-choice {
    margin-top: 18px;
    padding: 0;
    border: 0;
}
.installer-choice legend {
    padding: 0;
    margin-bottom: 8px;
}
.installer-choice .installer-check { margin-top: 8px; }
.installer-footnote {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--slate-600);
    line-height: 1.5;
}
.installer-footnote code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--slate-100);
    font-size: 12px;
}
.installer-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.installer-nav [data-installer-back]:not([hidden]) {
    margin-right: auto;
}
.btn-install {
    min-width: 200px;
    padding: 12px 20px;
    font-size: 15px;
}
@media (max-width: 720px) {
    .installer-shell { width: min(100% - 24px, 760px); padding-top: 20px; }
    .installer-brand-bar,
    .installer-nav { flex-direction: column; align-items: stretch; }
    .installer-progress-steps { grid-template-columns: 1fr 1fr; }
    .installer-requirements-grid { grid-template-columns: 1fr; }
    .btn-install { width: 100%; }
}
