:root {
    --bg: #07100e;
    --surface: #0d1815;
    --surface-2: #13231e;
    --line: #213a32;
    --text: #f0f8f4;
    --muted: #96aaa2;
    --accent: #65f2b2;
    --accent-strong: #2bd990;
    --danger: #ff6b72;
    --warning: #ffd166;
    --radius: 18px;
    --shadow: 0 22px 70px rgb(0 0 0 / 25%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #123c2e 0, transparent 30rem), var(--bg); }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 72px; padding: 0 4vw; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgb(7 16 14 / 82%); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #062018; font-size: .75rem; }
nav { display: flex; align-items: center; gap: 1.4rem; color: var(--muted); font-size: .9rem; }
nav a:hover, .link-button:hover { color: var(--text); }
nav form { margin: 0; }
.link-button { padding: 0; border: 0; color: var(--muted); background: none; font: inherit; cursor: pointer; }
.shell { width: min(1180px, 92vw); margin: 0 auto; padding: 4.5rem 0 6rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.page-heading h1, .hero-copy h1 { margin: .45rem 0 .6rem; font-size: clamp(2.25rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.page-heading h1 { font-size: clamp(2.1rem, 4vw, 3.8rem); }
.page-heading p, .hero-copy p, .panel p { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgb(19 35 30 / 88%), rgb(10 23 19 / 94%)); box-shadow: var(--shadow); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .7rem 1rem; border: 1px solid #365449; border-radius: 11px; background: #142a23; color: var(--text); font-weight: 700; cursor: pointer; }
.button:hover { transform: translateY(-1px); border-color: var(--accent); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #062018; }
.button.subtle { min-height: 36px; padding: .5rem .8rem; font-size: .82rem; }
.button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.flash { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border: 1px solid #307e60; border-radius: 12px; background: #0d3025; color: #b9f8da; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; }
.tenant-card { padding: 1.4rem; min-height: 220px; display: flex; flex-direction: column; transition: .2s ease; }
.tenant-card:hover { transform: translateY(-3px); border-color: #3f7f68; }
.tenant-card h2 { margin: auto 0 .2rem; font-size: 1.55rem; }
.tenant-card p { margin: 0 0 1rem; }
.card-link { color: var(--accent); font-size: .86rem; font-weight: 700; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.status-pill.unhealthy .status-dot, .status-dot.danger { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.status-pill.pending .status-dot, .status-pill.unknown .status-dot { background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.auth-grid { min-height: calc(100vh - 200px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 7vw; }
.hero-copy p { max-width: 42rem; font-size: 1.15rem; line-height: 1.65; }
.auth-card, .form-card, .edit-form { padding: 2rem; }
.auth-card { display: grid; gap: .7rem; }
.auth-card h2, .form-card h2 { margin: 0; }
label { margin-top: .5rem; color: #c8d7d1; font-size: .82rem; font-weight: 700; }
input, textarea, select { width: 100%; margin-top: .45rem; padding: .82rem .9rem; border: 1px solid #2a443b; border-radius: 10px; background: #091612; color: var(--text); font: inherit; }
input:focus, textarea:focus { outline: 2px solid rgb(101 242 178 / 35%); border-color: var(--accent); }
.validation { color: #ff9ca1; font-size: .82rem; }
.validation:empty { display: none; }
.muted { display: block; color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.empty-state { padding: 3rem; text-align: center; }
.application-block { padding: 1.5rem; margin-bottom: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; }
.section-heading h2 { margin: 0; }
.check-list { margin-top: 1rem; border-top: 1px solid var(--line); }
.check-row { min-height: 76px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.stepper { margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; color: #5d726a; font-size: .75rem; }
.stepper li { display: flex; align-items: center; gap: .5rem; border-bottom: 2px solid var(--line); padding: 0 0 .8rem; }
.stepper li.active { color: var(--accent); border-color: var(--accent); }
.stepper span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.wizard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card { position: relative; display: grid; gap: .4rem; }
.form-card.wide { grid-column: 1 / -1; }
.step-number { position: absolute; top: 1.3rem; right: 1.4rem; color: #29453b; font-size: 2rem; font-weight: 900; }
.disabled-card { opacity: .45; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: .8rem; line-height: 1.5; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.danger-zone { margin-top: 1rem; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.danger-zone h2 { margin: 0; }
.form-panel { margin-top: 1rem; padding: 1.5rem; }
.stacked-form { display: grid; gap: .7rem; margin-top: 1rem; }
.inline-form { display: inline-flex; gap: .5rem; margin: 0; }

@media (max-width: 760px) {
    .topbar { padding: .8rem 4vw; align-items: flex-start; }
    nav { flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1rem; }
    .shell { padding-top: 2.5rem; }
    .auth-grid, .wizard-grid, .field-grid { grid-template-columns: 1fr; }
    .hero-copy { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .form-card.wide { grid-column: auto; }
    .stepper { overflow-x: auto; }
    .stepper li { min-width: 130px; }
    .check-row { grid-template-columns: 1fr auto; padding: .8rem 0; }
    .check-row .button { grid-column: 1 / -1; }
    .danger-zone { align-items: flex-start; flex-direction: column; }
}
