:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f6f7f9;
  font-size: 15px;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f6f7f9; }
a { color: inherit; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid #dce0e7; background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: #172033; color: #fff; border-radius: 6px; font-weight: 800; }
.brand-mark-small { width: 30px; height: 30px; }
.account { display: flex; align-items: center; gap: 16px; color: #667085; font-size: 13px; }
.account form { margin: 0; }
.page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 72px; }
.page-narrow { width: min(980px, calc(100% - 48px)); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.page-heading.compact { align-items: center; margin-top: 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: 32px; line-height: 1.15; }
h2 { margin-bottom: 6px; font-size: 18px; }
h3 { font-size: 16px; }
.eyebrow { margin-bottom: 8px; color: #e4542f; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.subtle { margin-bottom: 0; color: #667085; line-height: 1.55; }
.edge-address { min-width: 210px; padding: 14px 16px; border-left: 3px solid #e4542f; background: #fff; }
.edge-address span, .metric span, .detail-band span { display: block; margin-bottom: 5px; color: #7b8494; font-size: 11px; text-transform: uppercase; font-weight: 700; }
.edge-address strong, .metric strong, .detail-band strong { overflow-wrap: anywhere; }
.onboard-band { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(360px, 1.3fr); align-items: center; gap: 34px; padding: 24px; border: 1px solid #dce0e7; background: #fff; }
.onboard-band p, .section-heading p, .danger-zone p { margin-bottom: 0; color: #667085; }
.inspect-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd1dc; border-radius: 5px; background: #fff; color: #172033; }
input:focus, select:focus { outline: 3px solid rgba(228,84,47,.14); border-color: #e4542f; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; white-space: nowrap; }
.button-primary { background: #172033; color: #fff; }
.button-primary:hover { background: #29344b; }
.button-quiet { border-color: #cbd1dc; background: #fff; color: #344054; }
.button-danger { border-color: #c43d34; background: #fff; color: #b42318; }
.domain-section, .records-section { margin-top: 34px; }
.section-heading { min-height: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-heading > span { color: #7b8494; }
.table-wrap { overflow-x: auto; border: 1px solid #dce0e7; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e8eaf0; text-align: left; vertical-align: middle; }
th { background: #f9fafb; color: #667085; font-size: 11px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: 4px; color: #8490a2; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.value-cell { max-width: 520px; }
.domain-link { font-weight: 700; text-decoration: none; }
.domain-link:hover { text-decoration: underline; }
.status { display: inline-flex; min-width: 72px; justify-content: center; padding: 5px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.status-good { background: #e7f7ed; color: #08783e; }
.status-warn { background: #fff4da; color: #9b5a00; }
.status-bad { background: #feeceb; color: #b42318; }
.status-muted { background: #edf0f4; color: #667085; }
.empty-state, .pending-box { padding: 42px 24px; border: 1px solid #dce0e7; background: #fff; color: #667085; text-align: center; }
.alert { display: flex; gap: 8px; padding: 13px 15px; margin: 16px 0; border: 1px solid; }
.alert-error { border-color: #f3b7b2; background: #fff1f0; color: #9d221a; }
.alert-success { border-color: #9dd9b4; background: #effaf3; color: #08783e; }
.back-link { color: #526070; font-size: 13px; }
.inspection-grid, .detail-band { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dce0e7; background: #fff; }
.metric, .detail-band > div { min-width: 0; padding: 18px; border-right: 1px solid #e3e6eb; }
.metric:last-child, .detail-band > div:last-child { border-right: 0; }
.config-form { margin-top: 24px; }
fieldset { margin: 0 0 18px; padding: 22px; border: 1px solid #dce0e7; background: #fff; }
legend { padding: 0 7px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: grid; gap: 7px; color: #475467; font-size: 13px; font-weight: 600; }
.field-wide { grid-column: span 2; }
.checkbox { grid-column: span 2; display: flex; align-items: center; gap: 9px; }
.checkbox input { width: 18px; min-height: 18px; }
.form-actions, .actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.actions form { margin: 0; }
.inline-status { display: flex; align-items: center; gap: 12px; color: #7b8494; }
.detail-band { grid-template-columns: repeat(4, 1fr); }
.detail-band small { display: block; margin-top: 6px; color: #7b8494; overflow-wrap: anywhere; }
.danger-zone { margin-top: 44px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #efc5c1; background: #fff; }
.remove-form { width: min(430px, 100%); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eff1f4; }
.login-panel { width: min(420px, 100%); padding: 36px; border: 1px solid #d5dae3; background: #fff; box-shadow: 0 12px 38px rgba(23,32,51,.08); }
.login-panel .brand-mark { margin-bottom: 28px; }
.login-panel h1 { font-size: 28px; }
.form-stack { display: grid; gap: 16px; margin-top: 24px; }
.form-stack .button { margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 820px) {
  .topbar { height: auto; min-height: 60px; padding: 12px 18px; }
  .account > span { display: none; }
  .page, .page-narrow { width: min(100% - 28px, 1240px); padding-top: 26px; }
  .page-heading, .onboard-band { grid-template-columns: 1fr; display: grid; align-items: start; }
  .edge-address { width: 100%; }
  .inspection-grid, .detail-band { grid-template-columns: 1fr 1fr; }
  .metric, .detail-band > div { border-bottom: 1px solid #e3e6eb; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide, .checkbox { grid-column: span 1; }
}
@media (max-width: 540px) {
  h1 { font-size: 26px; }
  .brand > span:last-child { display: none; }
  .inspect-form { grid-template-columns: 1fr; }
  .inspection-grid, .detail-band { grid-template-columns: 1fr; }
  .metric, .detail-band > div { border-right: 0; }
  .actions, .form-actions { align-items: stretch; flex-direction: column; }
  .actions form, .actions button, .form-actions .button { width: 100%; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .remove-form { grid-template-columns: 1fr; }
  .login-panel { padding: 28px 22px; }
}
