:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #667085;
    --line: #e4e7ec;
    --panel: #ffffff;
    --canvas: #f5f7fb;
    --navy: #15243d;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --green: #16794c;
    --amber: #a15c00;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; font-weight: 600; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
.shell-header { background: var(--navy); color: #fff; box-shadow: 0 2px 12px #10182826; }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 18px 24px 0; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand h1 { margin: 0; font-size: 1.15rem; letter-spacing: .01em; }
.brand small { color: #b8c5d9; font-weight: 500; }
.main-nav { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; }
.main-nav a { color: #dce6f5; padding: 10px 14px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: #7dd3fc; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions form { margin: 0; }
.header-actions button.logout-button { background: var(--blue); border: 1px solid #60a5fa; color: #fff; padding: 8px 12px; }
.header-actions button.logout-button:hover { background: var(--blue-dark); color: #fff; }
main { max-width: 1180px; margin: 0 auto; padding: 34px 24px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-heading h2, main > h2 { margin: 0; font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -.02em; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.subtitle { color: var(--muted); margin: 6px 0 0; }
.card, form, dl, .empty-state { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #1018280a; }
.card, dl, .empty-state { padding: 22px; }
form { padding: 20px; }
form + form { margin-top: 14px; }
label { display: block; color: #344054; font-size: .88rem; font-weight: 700; margin: 0 0 6px; }
input, select { width: 100%; max-width: 520px; border: 1px solid #cfd5df; border-radius: 7px; background: #fff; color: var(--ink); padding: 10px 12px; font: inherit; margin: 0 0 14px; }
input:focus, select:focus { outline: 3px solid #93c5fd66; border-color: var(--blue); }
button { border: 0; border-radius: 7px; background: var(--blue); color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 10px 15px; }
button:hover { background: var(--blue-dark); }
button[type="submit"] { margin-top: 3px; }
.button-secondary { background: #eef2f7; color: #344054; }
.button-secondary:hover { background: #e4eaf2; }
.validation-summary-errors, .field-validation-error { color: #b42318; font-size: .9rem; margin: 0 0 14px; }
.validation-summary-errors ul { margin: 0; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px #1018280a; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; color: #475467; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td { color: #344054; font-size: .94rem; }
td form { padding: 0; border: 0; box-shadow: none; background: transparent; }
td form button { font-size: .82rem; padding: 7px 10px; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.status-provisioned { color: var(--green); background: #dcfce7; }
.status-failed { color: #b42318; background: #fee4e2; }
.status-provisioning { color: var(--amber); background: #fff1d6; }
.status-neutral { color: #475467; background: #eef2f6; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 24px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stat strong { display: block; font-size: 1.45rem; }
.stat span { color: var(--muted); font-size: .82rem; }
dl { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 0; }
dt, dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
dt { color: #475467; font-weight: 600; }
dd { font-weight: 800; text-align: right; }
dt:last-of-type, dd:last-of-type { border-bottom: 0; }
.yes { color: var(--green); } .no { color: #b42318; }
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; margin: 0; }
.detail-list dt { border: 0; padding: 0; color: var(--muted); }
.detail-list dd { border: 0; padding: 0; text-align: left; font-weight: 600; }
.footer { max-width: 1180px; margin: 0 auto; padding: 0 24px 28px; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) {
    .header-inner, main { padding-left: 16px; padding-right: 16px; }
    .page-heading, .brand { align-items: flex-start; flex-direction: column; }
    .header-actions { width: 100%; justify-content: space-between; }
    .grid-two, .stat-grid { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    dl { grid-template-columns: 1fr; }
    dd { text-align: left; padding-top: 0; border-bottom: 0; }
}
