:root {
    --navy: #17233b;
    --blue: #3269d8;
    --blue-soft: #edf3ff;
    --purple: #6d4bd1;
    --green: #16845b;
    --green-soft: #eaf8f2;
    --amber: #b56b05;
    --amber-soft: #fff5df;
    --red: #b42318;
    --red-soft: #fff0ee;
    --surface: #ffffff;
    --background: #f3f6fb;
    --border: #dde4ef;
    --muted: #637089;
    --shadow: 0 20px 60px rgb(23 35 59 / 10%);
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--navy);
    background:
        radial-gradient(circle at top left, #e2ebff, transparent 30rem),
        var(--background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .65rem; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.055em; }
h2 { margin-bottom: .35rem; font-size: 1.25rem; }
p { color: var(--muted); line-height: 1.6; }

label {
    display: grid;
    gap: .45rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 46px;
    padding: .7rem .85rem;
    color: var(--navy);
    background: #fff;
    border: 1px solid #cbd5e4;
    border-radius: 10px;
    font: inherit;
}

input:focus {
    border-color: var(--blue);
    outline: 3px solid rgb(50 105 216 / 13%);
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 18px;
    font-size: 1.55rem;
    font-weight: 800;
}

.brand-mark-small { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
.brand-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.brand-inline { display: flex; align-items: center; gap: .75rem; }
.eyebrow { margin-bottom: .35rem; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.installer-shell, .dashboard-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 24px;
}

.installer-form { display: grid; gap: 1.25rem; }

.panel, .auth-shell, .focus-card, .dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.panel { padding: clamp(22px, 4vw, 34px); }
.section-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading p { margin-bottom: 0; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--blue); border-radius: 10px; font-weight: 800; }

.requirement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.requirement { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-radius: 10px; font-size: .85rem; }
.requirement.pass { color: var(--green); background: var(--green-soft); }
.requirement.fail { color: var(--red); background: var(--red-soft); }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.25rem; }
.choice { display: flex; align-items: center; gap: .7rem; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.choice input { width: auto; min-height: auto; }
.choice span { display: grid; gap: .2rem; }
.choice small { color: var(--muted); font-weight: 500; }

.field-group, .auth-form { display: grid; gap: 1rem; }
.field-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.field-note { margin: -.3rem 0 0; font-size: .82rem; }
.is-hidden { display: none; }

.primary-button {
    min-height: 50px;
    padding: .8rem 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #285bbd);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgb(50 105 216 / 22%);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.message { margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 10px; font-weight: 650; }
.message-error { color: var(--red); background: var(--red-soft); border: 1px solid #f5c4bf; }
.message-success { color: var(--green); background: var(--green-soft); border: 1px solid #bce7d5; }

.auth-page { display: grid; place-items: center; padding: 24px; }
.auth-shell { width: min(460px, 100%); padding: clamp(28px, 6vw, 48px); }
.auth-shell .brand-mark { margin-bottom: 1.5rem; }
.auth-form { margin-top: 1.5rem; }

.topbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(20px, calc((100% - 920px) / 2));
    background: rgb(255 255 255 / 88%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.text-button { color: var(--blue); background: transparent; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.status-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .85rem; color: var(--green); background: var(--green-soft); border-radius: 999px; font-size: .85rem; font-weight: 800; }
.status-pill span { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgb(22 132 91 / 13%); }

.focus-card { display: flex; justify-content: space-between; gap: 1.5rem; padding: clamp(24px, 4vw, 36px); margin-bottom: 1.25rem; border-left: 6px solid var(--amber); }
.focus-card p:last-child { margin-bottom: 0; }
.focus-badge { align-self: flex-start; padding: .45rem .7rem; color: var(--amber); background: var(--amber-soft); border-radius: 999px; font-size: .75rem; font-weight: 850; text-transform: uppercase; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dashboard-card { position: relative; overflow: hidden; padding: 1.4rem; }
.dashboard-card p { margin-bottom: .4rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-card h3 { margin-bottom: .25rem; font-size: 1.35rem; }
.dashboard-card small { color: var(--muted); }
.card-accent { position: absolute; inset: 0 auto 0 0; width: 5px; }
.accent-green { background: var(--green); }
.accent-blue { background: var(--blue); }
.accent-purple { background: var(--purple); }

.site-footer { padding: 24px; color: var(--muted); text-align: center; font-size: .8rem; }

@media (max-width: 700px) {
    .requirement-grid, .choice-row, .field-grid, .card-grid { grid-template-columns: 1fr; }
    .brand-header, .dashboard-heading { align-items: flex-start; flex-direction: column; }
    .focus-card { flex-direction: column; }
}

