:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --soft: #fafafa;
  --surface: #f5f5f5;
  --border: #e5e5e5;
  --muted: #666666;
  --dark: #262626;
  --danger: #b42318;
  --danger-soft: #fff4f2;
  --success: #16764a;
  --warning: #8a5a00;
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius-card: 12px;
  --radius-large: 16px;
  --shell: 1180px;
  --motion: 180ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--white); color: var(--black); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
button, a, summary, input, select, textarea { touch-action: manipulation; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 20px; font-size: clamp(2.4rem, 6vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.1rem; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow-shell { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: var(--black); color: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.97); }
.nav-shell { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--black); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 36px; height: 32px; display: grid; place-items: center; }
.brand-word { font-size: 1.02rem; }
.brand-word strong { font-weight: 750; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--radius-sm); color: var(--dark); text-decoration: none; font-size: .94rem; font-weight: 550; transition: background var(--motion), color var(--motion); }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { background: var(--surface); color: var(--black); }
.nav-logout { margin: 0; }
.nav-cta { margin-left: 8px; }
.main-nav > a.nav-cta { background: var(--black); color: var(--white); }
.main-nav > a.nav-cta:hover { background: var(--dark); color: var(--white); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--black); border-radius: var(--radius-control); background: var(--white); color: var(--black); text-decoration: none; font-weight: 650; line-height: 1; transition: background var(--motion), color var(--motion), border-color var(--motion); }
.button:hover { background: var(--surface); }
.button-dark { background: var(--black); color: var(--white); }
.button-dark:hover { background: var(--dark); }
.button-light { border-color: var(--border); }
.button-quiet { min-height: 44px; border-color: transparent; background: transparent; font-size: .94rem; }
.button-full { width: 100%; }
.button-small { min-height: 38px; padding-inline: 12px; font-size: .86rem; }
.button-danger { border-color: #d92d20; color: var(--danger); }
.button-danger:hover { background: var(--danger-soft); }

.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.hero { padding-block: clamp(80px, 12vw, 150px) 90px; }
.hero h1 { max-width: 820px; font-size: clamp(3rem, 9vw, 7.25rem); line-height: .93; letter-spacing: -.065em; }
.hero-copy { max-width: 670px; margin-bottom: 32px; color: var(--dark); font-size: clamp(1.1rem, 2.1vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-demo { width: fit-content; max-width: 100%; margin-top: 72px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--soft); color: var(--dark); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; overflow-wrap: anywhere; }
.link-demo-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--black); }
.link-demo-arrow { color: var(--muted); }
.link-demo-destination { color: var(--muted); }
.feature-strip { padding-block: 90px; border-block: 1px solid var(--border); background: var(--soft); }
.section-title { max-width: 720px; margin-bottom: 54px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.feature-list article { min-height: 250px; padding: 28px 32px 16px 0; border-right: 1px solid var(--border); }
.feature-list article + article { padding-left: 32px; }
.feature-list article:last-child { border-right: 0; }
.feature-number { display: block; margin-bottom: 72px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature-list h3 { margin-bottom: 12px; font-size: 1.3rem; }
.feature-list p { max-width: 310px; color: var(--muted); }
.closing-cta { min-height: 340px; padding-block: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing-cta h2 { max-width: 620px; margin: 0; }
.report-promo { min-height: 280px; padding-block: 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; border-bottom: 1px solid var(--border); }
.report-promo > div { max-width: 720px; }
.report-promo h2 { margin-bottom: 14px; }
.report-promo p:last-child { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-shell { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .88rem; }
.footer-shell p { margin: 0; }
.footer-links { display: flex; gap: 10px; }

.app-shell { padding-block: 64px 96px; }
.page-header { margin-bottom: 40px; }
.page-header > p:last-child { max-width: 650px; color: var(--muted); }
.page-header h1 { margin-bottom: 14px; font-size: clamp(2.4rem, 5vw, 4rem); }
.split-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.back-link { display: inline-block; min-height: 44px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.back-link:hover { color: var(--black); }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--soft); color: var(--dark); }
.notice-error { border-color: #f2b8b5; background: var(--danger-soft); color: #8a1c13; }

.filter-bar { margin-bottom: 24px; display: grid; grid-template-columns: minmax(240px, 1fr) 180px 180px auto; gap: 10px; }
.field { display: grid; gap: 8px; }
.field label, fieldset legend { color: var(--dark); font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d4d4d4; border-radius: var(--radius-control); background: var(--white); color: var(--black); transition: border-color var(--motion), box-shadow var(--motion); }
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #a3a3a3; }
input:focus, select:focus, textarea:focus { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); outline: none; }
input::placeholder { color: #8a8a8a; }
.field-help { margin: 0; color: var(--muted); font-size: .82rem; }
.field-large input { min-height: 58px; padding-inline: 16px; font-size: 1.05rem; }
.optional { color: var(--muted); font-weight: 450; }
.stack-form { display: grid; gap: 20px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; inset: 1px 1px 1px auto; min-width: 58px; border: 0; border-left: 1px solid var(--border); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--soft); color: var(--dark); font-size: .82rem; font-weight: 650; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); }
.data-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .9rem; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--soft); color: var(--muted); text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { padding: 17px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfc; }
.table-primary { display: block; color: var(--black); font-weight: 650; text-decoration: none; }
.table-primary:hover { text-decoration: underline; }
.table-secondary { max-width: 360px; display: block; overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.number-cell { text-align: right !important; font-variant-numeric: tabular-nums; }
.type-label { white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--dark); font-size: .8rem; font-weight: 650; text-transform: capitalize; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-clean .status-dot { background: var(--success); }
.status-review .status-dot, .status-pending .status-dot { background: var(--warning); }
.status-blocked .status-dot { background: var(--danger); }
.empty-state { padding: 72px 24px; border: 1px dashed #c7c7c7; border-radius: var(--radius-large); background: var(--soft); text-align: center; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); }
.empty-mark { width: 48px; height: 48px; margin: 0 auto 24px; display: grid; place-items: center; border: 1px solid var(--black); border-radius: 50%; font-size: 1.4rem; }

.create-form { display: grid; gap: 28px; }
.mode-picker { margin: 0; padding: 0; border: 0; }
.mode-picker legend { margin-bottom: 12px; }
.mode-option { min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--border); border-bottom: 0; cursor: pointer; }
.mode-option:first-of-type { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.mode-option:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.mode-option:has(input:checked) { border-color: var(--black); background: var(--soft); box-shadow: inset 3px 0 0 var(--black); }
.mode-option input { width: 18px; min-height: 18px; accent-color: var(--black); }
.mode-option span { display: grid; }
.mode-option small { color: var(--muted); }
.advanced-panel, .settings-panel { border: 1px solid var(--border); border-radius: var(--radius-card); }
.advanced-panel summary, .settings-panel summary { min-height: 60px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font-weight: 650; }
.advanced-panel summary::-webkit-details-marker, .settings-panel summary::-webkit-details-marker { display: none; }
.advanced-panel summary::after, .settings-panel summary::after { content: "+"; font-size: 1.2rem; }
.advanced-panel[open] summary::after, .settings-panel[open] summary::after { content: "−"; }
.advanced-panel summary span, .settings-panel summary span { margin-left: auto; color: var(--muted); font-size: .8rem; font-weight: 450; }
.advanced-content, .settings-form { padding: 8px 18px 20px; }
.advanced-content { display: grid; gap: 20px; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input span { display: flex; align-items: center; padding-inline: 12px; border: 1px solid #d4d4d4; border-right: 0; border-radius: var(--radius-control) 0 0 var(--radius-control); background: var(--surface); color: var(--muted); font-size: .86rem; white-space: nowrap; }
.prefix-input input { border-radius: 0 var(--radius-control) var(--radius-control) 0; }

.auth-shell { min-height: calc(100vh - 173px); display: grid; grid-template-columns: 1fr minmax(360px, 460px); align-items: center; gap: clamp(48px, 10vw, 140px); padding-block: 72px; }
.auth-intro h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.auth-intro > p:last-child { max-width: 470px; color: var(--muted); font-size: 1.1rem; }
.auth-brand { margin-bottom: 72px; }
.auth-panel { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-large); }
.auth-switch { margin: 24px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }

.link-header .split-header > div:first-child { min-width: 0; flex: 1 1 auto; }
.link-header h1 { max-width: none; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(2rem, 4.5vw, 3.7rem); }
.link-header .header-actions { flex: 0 0 auto; }
.destination-link { max-width: 720px; display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.link-meta { margin-block: 28px 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); }
.link-meta span { padding: 18px 12px 18px 0; color: var(--dark); font-size: .88rem; }
.link-meta strong { display: block; margin-bottom: 4px; color: var(--muted); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.analytics-section { margin-bottom: 60px; }
.section-heading-row { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading-row h2 { margin: 0; }
.range-nav { display: flex; border: 1px solid var(--border); border-radius: var(--radius-control); overflow: hidden; }
.range-nav a { min-height: 42px; display: flex; align-items: center; padding-inline: 13px; border-right: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 600; }
.range-nav a:last-child { border-right: 0; }
.range-nav a[aria-current="page"] { background: var(--black); color: var(--white); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); }
.metric-grid article { min-height: 142px; padding: 22px; border-right: 1px solid var(--border); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid span, .system-grid span { display: block; color: var(--muted); font-size: .8rem; }
.metric-grid strong { display: block; margin-top: 22px; font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.metric-grid small { display: block; color: var(--muted); font-size: .72rem; }
.analytics-filters { margin-top: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.timeline-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; }
.panel-heading h3 { margin: 0 0 24px; }
.panel-heading span { color: var(--muted); font-size: .8rem; }
.timeline-list { display: grid; gap: 10px; }
.timeline-row { display: grid; grid-template-columns: 70px 1fr 52px; align-items: center; gap: 14px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.timeline-row time { color: var(--muted); }
.timeline-row strong { text-align: right; }
meter { width: 100%; height: 10px; border: 0; background: var(--surface); }
meter::-webkit-meter-bar { border: 0; border-radius: 0; background: var(--surface); }
meter::-webkit-meter-optimum-value { background: var(--black); }
meter::-moz-meter-bar { background: var(--black); }
.panel-empty { padding: 30px; border: 1px dashed #c7c7c7; border-radius: var(--radius-control); color: var(--muted); text-align: center; }
.dimension-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dimension-panel { min-height: 210px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.dimension-panel h3 { margin-bottom: 18px; }
.dimension-panel p { color: var(--muted); font-size: .86rem; }
.dimension-panel ol { margin: 0; padding: 0; list-style: none; }
.dimension-panel li { padding-block: 7px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); font-size: .84rem; }
.dimension-panel li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dimension-panel li strong { font-variant-numeric: tabular-nums; }
.settings-panel { margin-bottom: 24px; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch-row input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--black); }
.switch-row span { display: grid; }
.switch-row small { color: var(--muted); }
.danger-zone { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #f0c3bf; border-radius: var(--radius-card); background: #fffafa; }
.danger-zone h2 { margin-bottom: 5px; font-size: 1.1rem; }
.danger-zone p { margin: 0; color: var(--muted); font-size: .86rem; }

.settings-section { padding-block: 32px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; border-top: 1px solid var(--border); }
.settings-heading h2 { margin-bottom: 8px; font-size: 1.2rem; }
.settings-heading p { color: var(--muted); font-size: .86rem; }
.read-only-field { padding: 15px; display: grid; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--soft); }
.read-only-field span { color: var(--muted); font-size: .76rem; }

.system-banner { margin-bottom: 16px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius-card); }
.system-banner p { margin: 0; color: var(--muted); font-size: .88rem; }
.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-card); }
.system-grid article { min-height: 132px; padding: 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.system-grid article:nth-child(4n) { border-right: 0; }
.system-grid article:nth-last-child(-n+4) { border-bottom: 0; }
.system-grid strong { margin-top: 18px; display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.system-grid small { color: var(--muted); font-size: .72rem; }
.admin-section { margin-top: 64px; }
.inline-form { display: flex; gap: 8px; }
.inline-form select { min-width: 120px; min-height: 38px; padding-block: 5px; }
.two-column-admin { display: grid; grid-template-columns: 1fr 420px; gap: 48px; }
.admin-form { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.admin-link-filters { margin-bottom: 24px; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--soft); }
.admin-filter-actions { display: flex; align-items: end; gap: 8px; }
.inventory-summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
.inventory-summary p { margin: 0; }
.admin-links-table { min-width: 1450px; }
.admin-links-table td { vertical-align: top; }
.admin-destination { max-width: 300px; }
.owner-identifier { display: block; max-width: 220px; overflow-wrap: anywhere; font-size: .82rem; }
.date-pair { display: grid; min-width: 145px; font-size: .82rem; }
.date-pair small, .risk-score { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.moderation-form { align-items: center; }
.moderation-form select { min-width: 178px; }
.pagination { min-height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; color: var(--muted); font-size: .88rem; }
.pagination > :last-child { justify-self: end; }
.incident-list { display: grid; gap: 12px; }
.incident-list article { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.incident-list article > span, .incident-meta span { display: block; color: var(--muted); font-size: .78rem; text-transform: capitalize; }
.incident-list article p { margin: 10px 0 0; color: var(--dark); }

.status-shell { max-width: 860px; padding-block: 72px 100px; }
.status-header .brand { margin-bottom: 72px; }
.status-header h1 { max-width: 760px; }
.overall-status { margin-bottom: 48px; padding: 24px; display: flex; align-items: center; gap: 16px; border: 1px solid #a9d7bf; border-radius: var(--radius-large); background: #f4fbf7; }
.status-large-dot { width: 14px; height: 14px; flex: 0 0 auto; border-radius: 50%; background: var(--success); }
.overall-status div { display: grid; }
.overall-status span { color: #2f6248; font-size: .84rem; }
.component-list, .incident-section { margin-bottom: 54px; }
.component-list h2, .incident-section h2 { margin-bottom: 16px; font-size: 1.2rem; }
.component-list article { min-height: 76px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); }
.component-list article:last-child { border-bottom: 1px solid var(--border); }
.component-list article > div { display: grid; }
.component-list article > div span { color: var(--muted); font-size: .82rem; }
.component-state { font-size: .82rem; font-weight: 650; }
.state-operational { color: var(--success); }
.state-degraded, .state-partial { color: var(--warning); }
.state-major, .state-outage { color: var(--danger); }
.bridge-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--soft); }
.bridge-card { width: min(100%, 430px); padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--white); text-align: center; }
.bridge-brand { margin-bottom: 64px; justify-content: center; }
.bridge-card h1 { margin-bottom: 14px; font-size: 2rem; }
.bridge-card > p { color: var(--muted); }
.bridge-card .eyebrow { color: var(--muted); }
.bridge-fallback { min-height: 44px; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; }
.bridge-motion { height: 22px; margin-bottom: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bridge-motion span { width: 6px; height: 6px; border-radius: 50%; background: var(--black); animation: bridge-pulse .9s ease-in-out infinite alternate; }
.bridge-motion span:nth-child(2) { animation-delay: .15s; }
.bridge-motion span:nth-child(3) { animation-delay: .3s; }
@keyframes bridge-pulse { from { opacity: .25; transform: translateY(0); } to { opacity: 1; transform: translateY(-5px); } }
.noscript-note { margin-top: 18px; font-size: .78rem; }

.error-shell { min-height: 65vh; padding-block: 100px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { margin-bottom: 18px; color: var(--muted); font-family: ui-monospace, monospace; text-transform: uppercase; }
.error-shell h1 { max-width: 820px; }
.error-shell p { color: var(--muted); }
.report-form fieldset { margin: 0; padding: 0; border: 0; }
.report-form legend { margin-bottom: 10px; }
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.reason-grid label { min-height: 52px; padding: 12px; display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; }
.reason-grid label:nth-child(2n) { border-right: 0; }
.reason-grid label:nth-last-child(-n+2) { border-bottom: 0; }
.reason-grid input { width: 18px; min-height: 18px; accent-color: var(--black); }
.report-success { margin-top: 40px; }
.report-lookup-form { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--soft); }
.report-lookup-form .button { justify-self: start; }
.report-guidance { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.report-guidance h2 { margin-bottom: 12px; font-size: 1.45rem; }
.report-guidance p:last-child { max-width: 680px; margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .feature-list, .metric-grid, .system-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list article:nth-child(2) { border-right: 0; }
  .feature-list article:nth-child(3) { padding-left: 0; border-top: 1px solid var(--border); }
  .metric-grid article:nth-child(2n), .system-grid article:nth-child(2n) { border-right: 0; }
  .metric-grid article:nth-child(-n+2), .system-grid article:nth-child(-n+6) { border-bottom: 1px solid var(--border); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-search { grid-column: 1 / -1; }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
  .link-meta { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; gap: 40px; }
  .auth-intro { display: none; }
  .auth-panel { max-width: 520px; width: 100%; margin-inline: auto; }
  .two-column-admin { grid-template-columns: 1fr; }
  .admin-link-filters { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: static; }
  .nav-shell { min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .brand-word { font-size: .94rem; }
  .main-nav { width: 100%; order: 3; margin: 0; overflow-x: auto; padding-bottom: 2px; }
  .main-nav > a { flex: 0 0 auto; padding-inline: 12px; }
  .public-nav { width: auto; order: initial; margin-left: auto; }
  .public-nav > a:first-child { display: none; }
  .public-nav .nav-cta { display: none; }
  .nav-logout { margin-left: auto; }
  .hero { padding-block: 72px 64px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .link-demo { margin-top: 48px; }
  .link-demo-arrow, .link-demo-destination { display: none; }
  .feature-strip { padding-block: 64px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list article, .feature-list article + article { min-height: auto; padding: 28px 0; border-right: 0; border-top: 1px solid var(--border); }
  .feature-list article:first-child { border-top: 0; }
  .feature-number { margin-bottom: 28px; }
  .closing-cta, .report-promo, .footer-shell, .split-header, .section-heading-row, .danger-zone { align-items: flex-start; flex-direction: column; }
  .closing-cta { min-height: 300px; justify-content: center; }
  .footer-shell { padding-block: 28px; }
  .app-shell { padding-block: 48px 80px; }
  .page-header h1 { font-size: 2.6rem; }
  .filter-bar, .filter-grid, .two-fields, .settings-section { grid-template-columns: 1fr; }
  .settings-section { gap: 20px; }
  .filter-search { grid-column: auto; }
  .filter-bar .button { width: 100%; }
  .auth-shell { padding-block: 44px; }
  .auth-panel, .bridge-card { padding: 24px; }
  .metric-grid, .system-grid, .dimension-grid { grid-template-columns: 1fr; }
  .metric-grid article, .system-grid article { min-height: 115px; border-right: 0; border-bottom: 1px solid var(--border) !important; }
  .metric-grid article:last-child, .system-grid article:last-child { border-bottom: 0 !important; }
  .link-meta { grid-template-columns: 1fr 1fr; }
  .range-nav { width: 100%; }
  .range-nav a { flex: 1; justify-content: center; }
  .advanced-panel summary span, .settings-panel summary span { display: none; }
  .prefix-input { display: grid; }
  .prefix-input span { min-height: 42px; border-right: 1px solid #d4d4d4; border-bottom: 0; border-radius: var(--radius-control) var(--radius-control) 0 0; }
  .prefix-input input { border-radius: 0 0 var(--radius-control) var(--radius-control); }
  .system-banner { align-items: flex-start; flex-direction: column; }
  .admin-link-filters { grid-template-columns: 1fr; }
  .admin-filter-actions { align-items: stretch; flex-direction: column; }
  .admin-filter-actions .button { width: 100%; }
  .inventory-summary { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 10px; }
  .status-shell { padding-block: 48px 80px; }
  .status-header .brand { margin-bottom: 48px; }
  .component-list article { align-items: flex-start; flex-direction: column; gap: 8px; }
  .reason-grid { grid-template-columns: 1fr; }
  .reason-grid label { border-right: 0; border-bottom: 1px solid var(--border) !important; }
  .reason-grid label:last-child { border-bottom: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
