:root {
  color-scheme: light;
  --navy: #14263d;
  --navy-soft: #223a58;
  --blue: #2468c9;
  --canvas: #f2f4f7;
  --surface: #ffffff;
  --ink: #17212d;
  --muted: #667085;
  --line: #d9dee7;
  --green: #18794e;
  --amber: #9a6700;
  --red: #b42318;
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-height: 100vh; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #fff; padding: 28px 22px; }
.brand { font-size: 18px; font-weight: 750; letter-spacing: 0; }
.brand small { display: block; margin-top: 5px; color: #b9c6d8; font-size: 12px; font-weight: 500; }
.brand.dark { color: var(--navy); margin-bottom: 38px; }
.brand.dark small { color: var(--muted); }
.nav { display: grid; gap: 4px; margin-top: 32px; }
.nav a { color: #cbd6e5; text-decoration: none; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.nav a:hover, .nav a.active { color: #fff; background: var(--navy-soft); }
.content { padding: 36px; }
.topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
h2 { margin: 0 0 18px; font-size: 19px; letter-spacing: 0; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.panel { max-width: 980px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.panel.wide { max-width: 1180px; }
.panel.narrow { max-width: 680px; }
.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-panel { width: min(100%, 430px); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px; }
.auth-panel .field { margin-top: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin-bottom: 18px; }
.metrics div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.metrics span { color: var(--muted); font-size: 12px; font-weight: 700; display: block; }
.metrics strong { display: block; font-size: 28px; margin-top: 8px; }
.metrics strong.not-enabled { font-size: 14px; color: var(--muted); margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.section-heading p { margin: -10px 0 14px; }
.button-secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.button-secondary:hover { background: #f7f8fa; }
.table-wrap { overflow-x: auto; }
.empty { padding: 22px 0 4px; color: var(--muted); }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.recovery-codes code, .secret code { display: block; background: #f4f6f8; border: 1px solid var(--line); padding: 10px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 700; }
input { width: 100%; min-height: 44px; border: 1px solid #aeb7c5; border-radius: 4px; padding: 10px 12px; font: inherit; }
select, textarea { width: 100%; border: 1px solid #aeb7c5; border-radius: 4px; padding: 10px 12px; background: #fff; font: inherit; }
select { min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #b8d4fb; border-color: var(--blue); }
input[type="file"] { padding: 7px; background: #fff; }
.actions { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
button { min-height: 44px; border: 0; border-radius: 4px; padding: 10px 18px; background: var(--blue); color: white; font: inherit; font-weight: 750; cursor: pointer; }
button:hover { background: #1857ad; }
.alert { max-width: 980px; border-left: 4px solid var(--red); background: #fff2f0; padding: 13px 16px; margin-bottom: 18px; color: #7a271a; }
.notice { max-width: 1180px; border-left: 4px solid var(--green); background: #eefaf4; padding: 13px 16px; margin-bottom: 18px; color: #12613e; }
.status { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.dot-grey { background: #7b8492; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.checks { width: 100%; border-collapse: collapse; }
.checks th, .checks td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.checks th { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.pass { color: var(--green); font-weight: 750; }
.fail { color: var(--red); font-weight: 750; }
.breadcrumb { margin: -10px 0 18px; color: var(--muted); font-size: 14px; }
.breadcrumb a, .text-link { color: #1857ad; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.tenancy-summary { max-width: 1180px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--line); }
.tenancy-summary div { padding: 17px 20px; background: #fff; }
.tenancy-summary span, .eyebrow { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tenancy-summary strong { display: block; margin-top: 5px; font-size: 15px; }
.requirement-list, .review-list { border-top: 1px solid var(--line); }
.requirement-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.requirement-row:last-child, .review-row:last-child { border-bottom: 0; padding-bottom: 0; }
.requirement-main h3, .review-row h3 { margin: 10px 0 6px; font-size: 17px; letter-spacing: 0; }
.requirement-main p { margin: 4px 0; }
.requirement-action { display: grid; align-content: start; gap: 13px; }
.requirement-action form { display: grid; gap: 9px; }
.requirement-action button { justify-self: start; }
.feedback { margin-top: 12px !important; padding: 10px 12px; border-left: 3px solid var(--amber); background: #fff9e8; }
.review-row { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr); gap: 34px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.review-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.review-form .field:nth-child(4) { grid-column: 1 / -1; }
.review-form button { align-self: end; justify-self: start; }
.scan-warning { color: var(--amber); font-size: 13px; font-weight: 700; }
.section-gap { margin-top: 18px; }
details summary { cursor: pointer; color: var(--navy); font-size: 17px; font-weight: 750; }
details[open] summary { margin-bottom: 10px; }
.requirement-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; margin-top: 20px; }
.field-span-2 { grid-column: 1 / -1; }
.field small { color: var(--muted); line-height: 1.4; }
.compact-form { margin: 0; }
.management-control { border-top: 1px solid var(--line); padding-top: 12px; }
.management-control summary { font-size: 14px; }
.management-form { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; margin-top: 14px; }
.decision-form { display: grid !important; gap: 10px !important; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding: 18px 20px; }
  .content { padding: 24px 16px; }
  .grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.full { grid-column: auto; }
  .tenancy-summary, .requirement-row, .review-row, .review-form, .requirement-form, .management-form { grid-template-columns: 1fr; }
  .review-form .field:nth-child(4) { grid-column: auto; }
  .field-span-2 { grid-column: auto; }
}
@media (max-width: 420px) {
  .metrics, .recovery-codes { grid-template-columns: 1fr; }
  .auth-panel { padding: 24px 20px; }
}
