/* Adapted from the authoritative UI/assets/styles.css and account.css. */
@font-face { font-family: Rajdhani; src: url('assets/fonts/Rajdhani-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Rajdhani; src: url('assets/fonts/Rajdhani-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Rajdhani; src: url('assets/fonts/Rajdhani-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Rajdhani; src: url('assets/fonts/Rajdhani-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
    color-scheme: light;
    --ink: #163b3f;
    --muted: #667875;
    --green: #759487;
    --pale: #eaf0ec;
    --paper: #f6f7f5;
    --surface: #fff;
    --soft: #f3f5ef;
    --line: #dfe5e0;
    --amber: #946324;
    --amber-bg: #f8f2e7;
    --red: #a34f46;
    --sidebar: 260px;
    --text-small: 14px;
    --text-ui: 15px;
    --action: #163b3f;
    --action-text: #fff;
    --matrix-bg: #eef5ef;
    --matrix-ink: #173d36;
    --matrix-muted: #466457;
    --matrix-line: #abc4b2;
    --matrix-code: #427958;
    --matrix-highlight: #285f40;
    --matrix-label: #527260;
    --matrix-dot: #377652;
    --matrix-glow: #37765240;
    --matrix-scanline: #3f735808;
    --matrix-backdrop: #2b433f59;
    --matrix-shadow: 0 24px 80px #163b3f24;
}
html[data-theme=dark] {
    color-scheme: dark;
    --ink: #e1eae4;
    --muted: #a5b5ae;
    --green: #95b29d;
    --pale: #2a423b;
    --paper: #122126;
    --surface: #1a2c30;
    --soft: #22363a;
    --line: #34474a;
    --amber: #dfbd7b;
    --amber-bg: #3d3527;
    --red: #e79b90;
    --action: #a6c0a8;
    --action-text: #152c25;
    --matrix-bg: #163b3f;
    --matrix-ink: #e0eee7;
    --matrix-muted: #adc7bc;
    --matrix-line: #365953;
    --matrix-code: #9fcab3;
    --matrix-highlight: #ddf6cf;
    --matrix-label: #9fc0ae;
    --matrix-dot: #b5d9a8;
    --matrix-glow: #b5d9a888;
    --matrix-scanline: #ffffff03;
    --matrix-backdrop: #07181bcc;
    --matrix-shadow: 0 24px 80px #00000066;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 Rajdhani, Bahnschrift, 'Helvetica Neue', Arial, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled, select:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: 36px; letter-spacing: -.8px; line-height: 1.2; }
h2 { font-size: 23px; letter-spacing: -.3px; }
h3 { font-size: 18px; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
h1:focus, main:focus { outline: none; }
::selection { background: var(--pale); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-limit-page { max-width: 480px; margin: clamp(24px, 8vh, 88px) auto; padding: 24px; }
.login-limit-page > .logo { display: flex; margin: 0 auto 32px; }
.login-limit-page h1 { font-size: 22px; letter-spacing: 0; }
.login-limit-page .button { margin-top: 24px; }
.skip-link { position: fixed; top: -100px; left: 16px; background: var(--surface); padding: 12px; z-index: 100; border-radius: 4px; }
.skip-link:focus { top: 10px; }

.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 30; background: var(--surface); border-right: 1px solid var(--line); padding: 34px 20px 20px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
.logo { display: inline-flex; align-items: flex-start; width: fit-content; font-weight: 700; font-size: 49px; letter-spacing: -3.2px; line-height: 1; gap: 5px; margin: 0 12px; }
.logo img { width: 16px; height: 16px; margin-top: 5px; }
.portal-label { font-size: var(--text-small); font-weight: 600; letter-spacing: .8px; color: var(--muted); margin: 12px 12px 0; }
.property-switch { border: 1px solid var(--line); margin-top: 24px; padding: 14px 12px; display: flex; gap: 11px; align-items: center; border-radius: 5px; background: var(--soft); }
.property-icon { display: flex; color: var(--green); }
.property-switch strong { display: block; font-size: 16px; line-height: 1.2; }
.property-switch div > span { display: block; font-size: var(--text-small); color: var(--muted); margin-top: 3px; }
.nav-label { font-size: var(--text-small); letter-spacing: 1px; color: var(--muted); font-weight: 600; margin: 33px 12px 12px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 4px; font-size: var(--text-ui); line-height: 1.4; color: var(--muted); position: relative; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a.active { background: var(--pale); color: var(--ink); font-weight: 600; }
.main-nav a.active::before { content: ''; position: absolute; width: 3px; height: 22px; border-radius: 2px; background: var(--green); left: -20px; }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; }
.sidebar-foot { display: block; font-size: var(--text-small); color: var(--muted); line-height: 1.5; }
.workspace { margin-left: var(--sidebar); }
.topbar { min-height: 76px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 12px 40px; gap: 16px; }
.breadcrumb { font-size: var(--text-small); color: var(--muted); }
.breadcrumb span { margin: 0 14px; color: var(--green); }
.breadcrumb strong { font-weight: 600; color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-user { min-width: 0; max-width: 240px; }
.topbar-user .status-dot { flex-shrink: 0; }
.topbar-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-controls { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
.theme-picker { display: flex; align-items: center; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.theme-toggle:hover { background: var(--pale); border-color: var(--green); }
.theme-toggle:disabled { opacity: .5; }
.theme-toggle .icon { width: 16px; height: 16px; }
.profile-dropdown { position: relative; }
.profile-trigger { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); list-style: none; cursor: pointer; }
.profile-trigger::-webkit-details-marker { display: none; }
.profile-trigger .icon { width: 18px; height: 18px; }
.profile-trigger:hover, .profile-dropdown[open] > .profile-trigger { background: var(--pale); border-color: var(--green); }
.profile-trigger:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.profile-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: min(220px, calc(100vw - 28px)); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 32px #00000026; }
.profile-identity { display: flex; align-items: center; gap: 12px; padding: 12px 10px 16px; border-bottom: 1px solid var(--line); }
.profile-avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--pale); color: var(--green); }
.profile-avatar .icon { width: 20px; height: 20px; }
.profile-identity-text { display: grid; gap: 2px; min-width: 0; }
.profile-name { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.profile-role { font-size: 13px; color: var(--muted); }
.profile-actions { display: grid; gap: 3px; }
.profile-action { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border-radius: 4px; background: transparent; color: var(--ink); text-align: left; font-size: var(--text-ui); }
.profile-action .icon { width: 17px; height: 17px; color: var(--muted); }
.profile-action:disabled { color: var(--muted); cursor: default; }
.profile-action:enabled:hover, a.profile-action:hover { background: var(--pale); }
.profile-coming-soon { margin-left: auto; font-size: 11px; white-space: nowrap; color: var(--muted); }
.profile-design-note { padding: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 15px; background: var(--action); color: var(--action-text); border-radius: 4px; font-size: var(--text-ui); font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.button:hover { filter: brightness(1.12); }
.button:disabled { opacity: .65; filter: none; }
.button .icon { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-small); font-weight: 600; color: var(--ink); }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 15px; height: 15px; }
main { padding: 30px 40px 20px; max-width: 1600px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { font-size: var(--text-small); font-weight: 600; letter-spacing: 1px; color: #567161; margin-bottom: 7px; }
html[data-theme=dark] .eyebrow { color: #aac4ad; }
.page-heading p:not(.eyebrow) { font-size: var(--text-ui); color: var(--muted); margin-top: 7px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: var(--text-small); font-weight: 600; line-height: 1.4; border-radius: 3px; white-space: nowrap; }
.badge-neutral { border: 1px solid var(--line); color: var(--muted); background: var(--soft); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.property-hero { position: relative; overflow: hidden; background: #163b3f; color: #fff; border-radius: 6px; min-height: 214px; padding: 29px 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
html[data-theme=dark] .property-hero { border: 1px solid #3a5657; }
.hero-content { position: relative; z-index: 1; max-width: 690px; }
.hero-content .eyebrow, html[data-theme=dark] .hero-content .eyebrow { color: #b5cabd; font-size: var(--text-small); display: flex; align-items: center; gap: 10px; }
.hero-content .eyebrow::before { content: ''; width: 15px; height: 1px; background: #b5cabd; }
.hero-content h2 { font-size: 40px; letter-spacing: -1.2px; font-weight: 400; line-height: 1.08; margin: 12px 0 12px; }
.hero-content > p { font-size: var(--text-ui); line-height: 1.55; color: #c5d5ce; max-width: 550px; }
.hero-facts { display: flex; gap: 26px; margin: 23px 0 0; align-items: center; flex-wrap: wrap; }
.hero-facts > div { border-right: 1px solid #476165; padding-right: 25px; }
.hero-facts > div:last-child { border: 0; padding: 0; }
.hero-facts dt { font-size: var(--text-small); color: #b2c6bc; line-height: 1.35; }
.hero-facts dd { margin: 7px 0 0; font-size: 18px; line-height: 1.2; font-weight: 600; }
.hero-art { flex-shrink: 0; width: 250px; position: relative; align-self: stretch; margin: -15px -10px -20px 0; opacity: .75; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art span { position: absolute; right: 13px; bottom: 8px; font-size: var(--text-small); letter-spacing: 1.5px; color: #9cb5a7; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 26px; }
.metric { padding: 20px 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; min-width: 0; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: var(--text-small); color: var(--muted); font-weight: 600; line-height: 1.4; }
.metric-top > .icon { width: 17px; color: var(--green); }
.metric-value { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; margin: 10px 0 11px; }
.metric-missing { font-size: 26px; color: var(--muted); font-weight: 400; }
.metric-note { border-top: 1px solid var(--line); padding-top: 9px; font-size: var(--text-small); color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-bottom: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; min-width: 0; }
.panel-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.panel-header p { font-size: var(--text-small); color: var(--muted); margin-top: 3px; line-height: 1.55; }
.panel-body { padding: 20px 24px; }
.panel-header h2 { font-size: 21px; }
.panel-header .text-link { flex-shrink: 0; margin-top: 3px; }
.body-copy { color: var(--muted); font-size: var(--text-ui); }
.section-space { margin-top: 24px; }
.empty-state { text-align: center; padding: 29px 12px 33px; color: var(--muted); font-size: var(--text-ui); }
.empty-state-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); margin: 0 auto 14px; color: var(--green); }
.empty-state-icon .icon { width: 22px; height: 22px; }
.empty-state h3 { color: var(--ink); margin-bottom: 7px; font-size: 20px; }
.empty-state p { max-width: 570px; margin: 0 auto; }
.empty-state .text-link { margin-top: 18px; }
.source-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: var(--pale); border-radius: 4px; font-size: var(--text-small); line-height: 1.55; color: var(--muted); margin-top: 23px; }
.source-note > .icon { width: 17px; height: 17px; margin-top: 2px; }
.source-note strong { color: var(--ink); }
.page-footer { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; font-size: var(--text-small); color: var(--muted); }
.page-footer > span:first-child { letter-spacing: 1.3px; }
.scroll-table { max-width: 100%; overflow-x: auto; }
.scroll-table:focus-visible { outline-offset: -3px; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-ui); text-align: left; }
.data-table th, .data-table td { padding: 13px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th { color: var(--muted); font-size: var(--text-small); background: var(--soft); font-weight: 600; }
.data-table tbody th { font-weight: 600; }
.data-table td { color: var(--muted); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .badge { white-space: normal; }
.definition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.definition-list > div { padding-bottom: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.definition-list dt { font-size: var(--text-small); color: var(--muted); }
.definition-list dd { font-size: var(--text-ui); line-height: 1.45; margin: 5px 0 0; overflow-wrap: anywhere; }
.quick-list { display: grid; }
.quick-list .item { padding: 12px 0; display: flex; gap: 11px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.quick-list .item:last-child { border: 0; }
.quick-list .item > .icon { color: var(--green); width: 17px; margin-top: 3px; }
.quick-list strong { display: block; font-size: 16px; font-weight: 600; }
.quick-list p { font-size: var(--text-small); color: var(--muted); line-height: 1.5; margin-top: 2px; }
.filter-tabs { display: inline-flex; gap: 4px; border: 1px solid var(--line); padding: 3px; background: var(--surface); border-radius: 4px; }
.filter-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border-radius: 3px; font-size: var(--text-ui); padding: 7px 12px; color: var(--muted); min-height: 40px; }
.filter-tabs button.active { background: var(--pale); color: var(--ink); font-weight: 600; }
.filter-tabs .icon { width: 16px; height: 16px; }
.lookup-tabs { margin-bottom: 18px; }
.lookup-form-row { display: flex; align-items: flex-end; gap: 12px; }
.lookup-field { flex: 1; min-width: 0; }
.field label { display: block; color: var(--ink); font-size: var(--text-ui); margin-bottom: 7px; }
.field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: var(--text-ui); min-height: 44px; line-height: 1.4; }
.field input::placeholder { color: var(--muted); }
.field-help { font-size: var(--text-small); color: var(--muted); margin-top: 10px; }
.api-client-form { display: grid; gap: 20px; max-width: 600px; margin-top: 24px; }
.api-client-name label { font-weight: 600; }
.api-client-name input { min-height: 48px; background: var(--paper); border-color: var(--green); }
.api-client-name .field-help { margin-top: 8px; }
.lookup-feedback { font-size: var(--text-ui); }
.validation-message { color: var(--red); margin-top: 10px; }
.invalid { border-color: var(--red) !important; }
.validation-success { margin-top: 14px; padding: 12px 14px; border-left: 2px solid var(--green); background: var(--pale); color: var(--muted); border-radius: 3px; }
.validation-success strong { color: var(--ink); }
.lookup-notice { margin-top: 14px; padding: 12px 14px; background: var(--amber-bg); color: var(--amber); border-radius: 3px; }
.lookup-progress { margin-top: 14px; display: flex; align-items: center; gap: 9px; color: var(--muted); }
.lookup-results { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.lookup-results h3 { margin-bottom: 5px; }
.lookup-property-summary { padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 4px; background: var(--pale); overflow-wrap: anywhere; }
.lookup-property-heading { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; }
.lookup-property-heading .icon { flex-shrink: 0; }
.lookup-property-summary > p { margin-top: 8px; color: var(--muted); }
.lookup-property-summary ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 12px 0 0; padding: 0; }
.lookup-property-summary li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.lookup-property-summary li .icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--green); }
.lookup-property-summary .field-help { margin-top: 12px; }
.address-results { margin: 14px 0; padding: 0; list-style: none; }
.address-results li { padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; overflow-wrap: anywhere; }
.address-results strong { font-size: 17px; font-weight: 600; }
.address-results small { display: block; font-size: var(--text-small); color: var(--muted); margin-top: 3px; }
.lookup-source { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--text-small); color: var(--muted); margin-top: 12px; }
.lookup-warnings { margin: 10px 0 0; padding-left: 20px; color: var(--amber); font-size: var(--text-small); }
.status-action { margin-top: 18px; }
.status-feedback { margin-top: 12px; font-size: var(--text-ui); color: var(--muted); overflow-wrap: anywhere; }
.badge-green { background: var(--pale); color: var(--ink); }
.noscript { margin: 16px; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
#blazor-error-ui { color: var(--ink); background: var(--amber-bg); border-top: 1px solid var(--amber); bottom: 0; display: none; left: 0; padding: 16px 24px; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui a { text-decoration: underline; margin-left: 8px; }

@media (min-width: 1500px) {
    main { padding-top: 40px; }
    .metrics { gap: 22px; }
    .property-hero { min-height: 230px; }
}
@media (max-width: 1200px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-art { width: 200px; }
}
@media (max-width: 1180px) {
    :root { --sidebar: 250px; }
    .sidebar { padding-inline: 16px; }
    .main-nav a { padding-inline: 10px; gap: 9px; }
    .main-nav a.active::before { left: -16px; }
    .topbar, main { padding-inline: 28px; }
    .panel-header, .panel-body { padding-inline: 20px; }
}
@media (max-width: 1100px) {
    .content-grid { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .topbar { padding-inline: 22px; }
    .breadcrumb span { margin-inline: 7px; }
    .topbar-actions { gap: 12px; }
    .topbar-controls { padding-left: 12px; }
}
@media (max-width: 800px) and (min-width: 701px) {
    .topbar > .breadcrumb { display: none; }
    .topbar-actions { margin-left: auto; }
    .lookup-form-row { align-items: stretch; flex-direction: column; }
}
@media (max-width: 700px) {
    .sidebar { position: relative; inset: auto; width: 100%; padding: 18px 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .logo { font-size: 39px; margin: 0; gap: 4px; }
    .logo img { width: 13px; height: 13px; margin-top: 3px; }
    .portal-label { font-size: var(--text-small); margin: 12px 0 10px; grid-column: 1 / -1; grid-row: 2; letter-spacing: .6px; }
    .property-switch { grid-column: 1 / -1; grid-row: auto; min-width: 0; padding: 10px; margin: 16px 0 18px; }
    .property-switch strong { font-size: 16px; }
    .nav-label, .sidebar-bottom { display: none; }
    .main-nav { grid-column: 1 / -1; flex-direction: row; gap: 18px; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: thin; }
    .main-nav a { padding: 12px 0; font-size: var(--text-small); white-space: nowrap; gap: 6px; border-radius: 0; flex-shrink: 0; }
    .main-nav a .icon { width: 15px; height: 15px; }
    .main-nav a.active { background: none; }
    .main-nav a.active::before { width: 100%; height: 2px; left: 0; bottom: 0; }
    .workspace { margin-left: 0; }
    .topbar { min-height: 61px; padding: 10px 20px; gap: 10px; }
    .topbar > .breadcrumb { font-size: var(--text-small); }
    .breadcrumb strong, .breadcrumb span { display: none; }
    .topbar-actions { gap: 10px; }
    .topbar-controls { padding-left: 10px; }
    main { padding: 24px 20px 18px; }
    .page-heading { margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
    h1 { font-size: 30px; }
    .property-hero { padding: 25px 23px; min-height: 202px; }
    .hero-content h2 { font-size: 35px; }
    .hero-content > p { font-size: 16px; line-height: 1.45; }
    .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
    .hero-facts > div { padding: 0; border: 0; }
    .hero-facts dd { font-size: 18px; }
    .metrics { gap: 12px; margin: 16px 0 22px; }
    .metric { padding: 17px; }
    .metric-value { font-size: 27px; }
    .panel-header { padding: 17px 19px 14px; }
    .panel-header h2 { font-size: 19px; }
    .panel-body { padding: 17px 19px; }
    .content-grid { gap: 18px; }
    .page-footer { flex-direction: column; gap: 6px; margin-top: 25px; }
    .source-note { padding: 14px 16px; }
    .lookup-form-row { align-items: stretch; flex-direction: column; }
    .lookup-form-row .button { align-self: flex-start; }
    .data-table th, .data-table td { padding: 12px 9px; }
}
@media (max-width: 480px) {
    .sidebar { grid-template-columns: minmax(0, 1fr); }
    .property-switch { grid-column: 1 / -1; grid-row: auto; min-width: 0; margin: 16px 0 18px; }
    .metrics { grid-template-columns: 1fr; }
    .metric { padding: 19px 21px; }
    .metric-value { font-size: 30px; }
    .definition-list { grid-template-columns: 1fr; }
    .topbar > .breadcrumb { display: none; }
    .topbar-actions { justify-content: space-between; width: 100%; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 32px; }
    .empty-state { padding-inline: 0; }
}
@media (max-width: 360px) {
    .sidebar { padding-inline: 14px; }
    .main-nav { margin-inline: -14px; padding-inline: 14px; }
    .property-switch { min-width: 0; margin-left: 0; padding: 8px; gap: 7px; }
    .property-switch strong { font-size: 15px; }
    .property-switch div > span { font-size: var(--text-small); }
    main, .topbar { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* Register records retain all relations, fields and source metadata. */
.address-select { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.address-select > span { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--text-small); color: var(--green); }
.address-select:disabled { opacity: .65; cursor: wait; }
.address-select:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.property-candidates { list-style: none; margin: 14px 0; padding: 0; }
.property-candidates > li { border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-top: 12px; overflow-wrap: anywhere; }
.property-candidates h3 { margin: 0 0 10px; }
.property-candidates .button { margin-top: 14px; }
.record-detail { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.record-detail > summary { cursor: pointer; font-size: var(--text-ui); font-weight: 600; line-height: 1.5; }
.record-detail > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.record-detail[open] > summary { margin-bottom: 18px; }
.record-detail .definition-list + .definition-list, .source-intervals { margin-top: 16px; }
.historical-notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 24px; }
.historical-notice .icon { flex-shrink: 0; margin-top: 3px; }
.historical-notice p { margin: 0; }
.history-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.history-pagination p { flex: 1; min-width: 160px; color: var(--muted); font-size: var(--text-small); }
.history-table th, .history-table td { vertical-align: top; }
.history-table small { display: block; font-size: var(--text-small); margin-top: 4px; }
.query-instant { display: block; }
.property-warning-list { margin: 20px 0; }
.property-warning-list .lookup-warnings { margin-bottom: 0; }
.property-warning-list small { overflow-wrap: anywhere; }
.property-json { max-width: 100%; overflow: auto; max-height: 70vh; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 16px; color: var(--ink); font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.65; }
.property-json:focus-visible { outline-offset: 3px; }
.property-switch > div { min-width: 0; }
.property-switch strong, .property-switch span { overflow-wrap: anywhere; }
@media (max-width: 640px) { .property-candidates > li { padding: 12px; } .property-json { padding: 12px; } }

/* Interactive address suggestions and deliberate direct register refresh. */
.lookup-cache-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 18px; }
.cache-bypass-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--text-ui); color: var(--ink); position: relative; }
.cache-bypass-toggle > input { position: absolute; width: 36px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.toggle-track { position: relative; width: 36px; height: 22px; flex-shrink: 0; background: var(--line); border: 1px solid var(--muted); border-radius: 20px; transition: background .15s; }
.toggle-track::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 3px; left: 3px; background: var(--surface); box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.cache-bypass-toggle > input:checked + .toggle-track { background: var(--action); border-color: var(--action); }
.cache-bypass-toggle > input:checked + .toggle-track::after { transform: translateX(14px); background: var(--action-text); }
.cache-bypass-toggle > input:focus-visible + .toggle-track { outline: 3px solid var(--green); outline-offset: 4px; }
.cache-bypass-toggle:has(input:disabled) { opacity: .65; cursor: wait; }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); white-space: normal; text-align: left; }
.address-autocomplete { margin-top: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); overflow: hidden; }
.autocomplete-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 13px; color: var(--muted); font-size: var(--text-small); border-bottom: 1px solid var(--line); }
.autocomplete-heading strong { color: var(--ink); }
.autocomplete-list { list-style: none; margin: 0; padding: 0; max-height: 310px; overflow-y: auto; }
.autocomplete-list button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px 13px; text-align: left; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); font-size: var(--text-ui); }
.autocomplete-list li:last-child button { border-bottom: 0; }
.autocomplete-list button > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.autocomplete-list button .icon { width: 16px; height: 16px; color: var(--green); }
.autocomplete-list button:hover, .autocomplete-list button:focus-visible { background: var(--pale); outline-offset: -3px; }
.address-autocomplete > .field-help { padding: 0 13px 10px; }

/* Decorative code stream accompanies explicit lookups, never address autocomplete. */
.data-loading { display: flex; align-items: center; gap: 18px; position: relative; isolation: isolate; overflow: hidden; margin-top: 15px; padding: 17px 20px; border: 1px solid var(--matrix-line); border-radius: 5px; background: var(--matrix-bg); color: var(--matrix-ink); }
.data-loading::after { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, transparent 0 5px, var(--matrix-scanline) 5px 6px); pointer-events: none; }
.matrix-stream { position: relative; flex-shrink: 0; width: 106px; height: 62px; overflow: hidden; display: flex; justify-content: space-between; font: 10px/1.4 ui-monospace, Consolas, monospace; color: var(--matrix-code); mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); }
.matrix-stream span { display: block; opacity: .55; animation: data-stream 2.7s linear infinite; animation-delay: calc(var(--stream) * -.31s); }
.matrix-stream span:nth-child(3n) { color: var(--matrix-highlight); animation-duration: 3.8s; }
.data-loading-copy { min-width: 0; display: grid; gap: 4px; }
.data-loading-label { font: 10px/1.4 ui-monospace, Consolas, monospace; letter-spacing: 1.5px; color: var(--matrix-label); }
.data-loading-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--matrix-dot); margin-right: 5px; box-shadow: 0 0 8px var(--matrix-glow); animation: data-pulse 1.7s ease-in-out infinite; }
.data-loading-copy strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.data-loading-copy small { font-size: var(--text-small); line-height: 1.4; color: var(--matrix-muted); }
@keyframes data-stream { from { transform: translateY(-46px); } to { transform: translateY(14px); } }
@keyframes data-pulse { 50% { opacity: .5; } }
/* Static browser UI: Blazor owns the reconnect attempts and state events. */
.reconnect-modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; color: var(--matrix-ink); border: 1px solid var(--matrix-line); border-radius: 8px; background: var(--matrix-bg); box-shadow: var(--matrix-shadow); }
.reconnect-modal:not([open]) { display: none; }
.reconnect-modal::backdrop { background: var(--matrix-backdrop); backdrop-filter: blur(3px); }
.reconnect-card { position: relative; isolation: isolate; overflow: hidden; padding: 28px; }
.reconnect-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, transparent 0 5px, var(--matrix-scanline) 5px 6px); pointer-events: none; }
.reconnect-matrix { width: 100%; height: 90px; margin: 24px 0; font-size: 13px; }
.reconnect-card h2 { margin: 0 0 8px; color: var(--matrix-ink); font-size: 26px; line-height: 1.2; }
.reconnect-card h2:focus { outline: none; }
.reconnect-card p { margin: 0; color: var(--matrix-muted); font-size: 16px; line-height: 1.5; }
.reconnect-progress { display: none; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; color: var(--matrix-label); font: 11px/1.5 ui-monospace, Consolas, monospace; }
.reconnect-modal:is([data-state="show"], [data-state="retrying"]) .reconnect-progress { display: flex; }
.reconnect-countdown { visibility: hidden; }
.reconnect-modal[data-waiting="true"] .reconnect-countdown { visibility: visible; }
.reconnect-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.reconnect-actions [hidden] { display: none; }
.reconnect-actions .button { background: var(--action); color: var(--action-text); }
.reconnect-actions .button-secondary { color: var(--matrix-ink); background: transparent; border-color: var(--matrix-muted); }
.reconnect-actions .button:focus-visible { outline: 2px solid var(--matrix-dot); outline-offset: 3px; }
.reconnect-modal:is([data-state="failed"], [data-state="rejected"], [data-state="paused"], [data-state="resume-failed"]):not([data-busy="true"]) :is(.matrix-stream span, .data-loading-dot) { animation-play-state: paused; }
@media (max-width: 480px) {
    .lookup-cache-controls { align-items: flex-start; }
    .lookup-cache-controls .button { width: 100%; }
    .data-loading { padding: 14px; gap: 12px; }
    .matrix-stream { width: 60px; }
    .matrix-stream span:nth-child(n+6) { display: none; }
    .data-loading-copy strong { font-size: 16px; }
    .autocomplete-heading span { display: none; }
    .reconnect-card { padding: 22px; }
    .reconnect-matrix { width: 100%; }
    .reconnect-matrix span:nth-child(n+6) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .matrix-stream span, .data-loading-dot { animation: none; }
    .matrix-stream span { transform: translateY(-20px); }
}
