:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #243447;
    background: #f3f5f8;
    font-size: 14px;
    --ink: #243447;
    --muted: #5e6c7d;
    --accent: #215c86;
    --border: #dce3eb;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #a36507; outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; margin-bottom: 10px; font-weight: 650; }
h2 { font-size: 20px; font-weight: 650; line-height: 1.35; }
code { overflow-wrap: anywhere; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.topbar { min-height: 82px; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: white; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: #1c3850; font-size: 25px; font-weight: 700; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand-mark { background: #244d6d; color: white; width: 43px; height: 46px; display: grid; place-items: center; border-radius: 9px 9px 16px 16px; font-size: 24px; }
.brand-caption { display: block; font-size: 11px; font-weight: 400; letter-spacing: .1px; color: var(--muted); }
.topbar-right { display: flex; gap: 24px; align-items: center; }
.version-badge { color: var(--muted); background: #f3f5f8; font-size: 12px; border: 1px solid var(--border); border-radius: 5px; padding: 4px 9px; white-space: nowrap; }
.user-block { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--border); }
.user-avatar { color: #426982; background: #ecf2f7; border-radius: 50%; display: grid; place-items: center; width: 34px; height: 34px; font-size: 20px; flex-shrink: 0; }
.user-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; max-width: 250px; }
.user-method { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: calc(100vh - 82px); }
.sidebar { padding: 30px 16px 20px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.nav-caption { text-transform: uppercase; font-size: 10px; letter-spacing: 1px; font-weight: 650; color: var(--muted); padding: 0 12px; margin-bottom: 16px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-height: 44px; color: #4b5a6c; font-size: 13px; border-radius: 6px; }
.nav-item > span:first-child { font-size: 20px; width: 20px; text-align: center; }
.nav-item.is-active { background: #eaf1f8; color: #1b537e; font-weight: 650; box-shadow: inset 3px 0 #326f9f; }
.nav-item:not(.is-disabled):hover { background: #edf3f8; text-decoration: none; }
.is-disabled { color: #687789; }
.soon { margin-left: auto; font-size: 10px; background: #f3f5f8; padding: 2px 5px; border-radius: 3px; }
.nav-divider { height: 1px; background: #e8ecf1; margin: 17px 12px; }
.sidebar-note { margin: auto 12px 0; padding-top: 55px; font-size: 12px; color: #4e6374; }
.sidebar-note p { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #477b6f; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.workspace { padding: 26px 36px 0; max-width: 1700px; min-width: 0; width: 100%; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .4px; margin-bottom: 9px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.page-heading p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.read-only-badge { color: #496270; font-size: 11px; border: 1px solid #cbd8df; background: #edf3f5; padding: 5px 10px; border-radius: 5px; white-space: nowrap; }
.breadcrumbs ol { display: flex; list-style: none; gap: 0; margin: 0 0 19px; padding: 0; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: #8b98a7; margin: 0 9px; }
.breadcrumbs a { color: #526b7f; }
.selection-panel, .results-panel, .info-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.selection-panel { padding: 17px 22px; margin-bottom: 23px; }
.section-caption { color: var(--muted); font-size: 11px; font-weight: 500; margin-bottom: 17px; }
.address-path { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr 1.1fr; list-style: none; padding: 0; margin: 0; gap: 18px; }
.address-path li { display: flex; gap: 10px; min-width: 0; }
.step-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d9e1e8; background: #f6f8fa; color: #64758a; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.current .step-number { background: #245d85; border-color: #245d85; color: #fff; }
.step-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.step-placeholder { display: block; color: #657587; font-size: 11px; }
.address-path a { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.change-label { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; text-decoration: underline; }
.results-panel { overflow: hidden; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px 24px 18px; }
.results-heading h2 { margin: 0; font-size: 18px; }
.results-heading .eyebrow { text-transform: uppercase; font-size: 9px; letter-spacing: 1px; margin-bottom: 6px; }
.count-badge { font-size: 11px; background: #edf2f7; color: #4d6580; padding: 3px 7px; border-radius: 5px; margin-left: 6px; vertical-align: middle; }
.dataset-label { color: #536c72; font-size: 11px; white-space: nowrap; }
.filter-bar { padding: 0 24px 22px; display: flex; align-items: flex-end; gap: 10px; }
label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 6px; color: #4d6072; }
input, select { font: inherit; font-size: 12px; color: var(--ink); border: 1px solid #cbd6e1; border-radius: 5px; background: white; width: 100%; min-height: 38px; padding: 8px 11px; }
input::placeholder { color: #718195; }
.search-field { flex: 1; min-width: 150px; }
.sort-field { width: 205px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font: inherit; font-size: 12px; font-weight: 600; min-height: 38px; padding: 8px 17px; border-radius: 5px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.button:hover { text-decoration: none; }
.button-primary { background: #255f8b; color: white; border-color: #255f8b; }
.button-primary:hover { background: #194d74; }
.button-secondary { color: #3e566d; border-color: #cbd6e1; background: white; }
.button-secondary:hover { background: #edf3f8; }
.table-scroll { overflow-x: auto; }
.address-table { width: 100%; border-collapse: collapse; text-align: left; }
.address-table th, .address-table td { padding: 16px 24px; border-top: 1px solid #e7ecf1; }
.address-table thead th { background: #f7f9fb; color: #5f7084; font-size: 11px; font-weight: 500; padding-top: 11px; padding-bottom: 11px; }
.address-table tbody th { font-size: 13px; font-weight: 600; max-width: 600px; overflow-wrap: anywhere; }
.address-table tbody td { color: var(--muted); font-size: 12px; }
.address-table tbody tr:hover { background: #fafcfe; }
.record-link { display: inline-flex; align-items: center; gap: 12px; }
.record-icon { display: grid; place-items: center; color: #4f7798; background: #edf3f9; border: 1px solid #e0e8f0; border-radius: 5px; width: 31px; height: 31px; font-size: 17px; flex-shrink: 0; }
.row-action { text-align: right; width: 120px; white-space: nowrap; }
.row-action a { font-size: 11px; }
.row-action span { margin-left: 9px; }
.results-footer { display: flex; justify-content: space-between; gap: 12px; color: #607286; font-size: 10px; border-top: 1px solid var(--border); padding: 13px 24px; }
.catalog-note { color: var(--muted); font-size: 11px; margin: 14px 0 22px; }
.empty-state { text-align: center; padding: 45px 24px; background: white; }
.empty-icon { display: grid; place-items: center; font-size: 25px; border-radius: 50%; width: 45px; height: 45px; background: #eef3f8; color: #5f7e99; margin: 0 auto 15px; }
.empty-state h2, .empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 550px; margin: 0 auto 18px; font-size: 13px; }
.error-state { border: 1px solid var(--border); border-radius: 8px; }
.empty-state .muted { font-size: 10px; margin-top: 20px; }
.welcome-panel { background: #fff; border: 1px solid var(--border); border-left: 4px solid #2e638d; border-radius: 8px; padding: 36px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 50px; align-items: center; margin-bottom: 24px; }
.welcome-panel h2 { font-size: 28px; margin-bottom: 14px; }
.welcome-panel p:not(.eyebrow) { color: var(--muted); max-width: 570px; font-size: 13px; margin-bottom: 24px; }
.welcome-panel .eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
.address-illustration { text-align: center; padding: 10px 15px; color: #6f8ba0; }
.illustration-step { padding: 10px; border-radius: 5px; background: #f1f5f9; border: 1px solid #dfe8ef; color: #476982; font-size: 12px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 24px; }
.card-icon { display: grid; place-items: center; background: #edf3f8; color: #456b88; width: 34px; height: 34px; border-radius: 7px; font-size: 20px; margin-bottom: 17px; }
.info-card h2 { font-size: 15px; margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: 12px; margin: 0; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; margin-top: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) { .workspace { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
    .workspace { padding: 24px 24px 0; }
    .address-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .welcome-panel { gap: 20px; padding: 25px; }
    .home-grid { gap: 12px; }
    .version-badge { display: none; }
}
@media (max-width: 760px) {
    .topbar { padding: 14px 18px; gap: 12px; }
    .brand-caption { max-width: 170px; font-size: 9px; }
    .brand { gap: 9px; font-size: 22px; }
    .user-block { border: 0; padding: 0; }
    .user-avatar { display: none; }
    .user-name { max-width: 150px; font-size: 11px; }
    .app-shell { display: block; }
    .sidebar { padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
    .nav-caption, .sidebar-note, .nav-divider, .main-nav > .is-disabled { display: none; }
    .main-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .nav-item { padding: 8px 12px; }
    .workspace { padding: 18px 16px 0; }
    h1 { font-size: 24px; }
    .page-heading { gap: 10px; }
    .read-only-badge { font-size: 10px; padding: 4px 7px; }
    .welcome-panel { grid-template-columns: 1fr; }
    .address-illustration { display: none; }
    .home-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-wrap: wrap; padding: 0 16px 18px; }
    .search-field { flex-basis: 100%; }
    .sort-field { flex: 1; width: auto; }
    .results-heading { padding: 18px 16px; }
    .address-table th, .address-table td { padding: 13px 16px; }
    .row-action { display: none; }
    .results-footer, .workspace-footer { flex-wrap: wrap; }
    .dataset-label { font-size: 10px; }
    .selection-panel { padding: 16px; }
}

/* Current-level pagination: controls wrap on tablet and retain keyboard focus styles. */
.filter-bar { flex-wrap: wrap; }
.page-size-field { width: 130px; }
.list-instructions { margin: 0; padding: 0 24px 18px; color: var(--muted); font-size: 11px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid var(--border); padding: 14px 24px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 12px; }
a.page-link:hover { background: #edf3f8; text-decoration: none; }
.page-link.is-current { color: white; background: #255f8b; border-color: #255f8b; }
.page-link.is-disabled { background: #f7f9fb; }
.page-gap { padding: 6px; }
@media (max-width: 1100px) { .search-field { flex-basis: 100%; } }
@media (max-width: 760px) { .pagination { padding: 12px 16px; } .list-instructions { padding: 0 16px 16px; } .page-size-field { width: 120px; } }

/* Operator workspace v0.4a. Scoped additions preserve the /Addresses presentation. */
.workspace-entry { background:#eaf2f8; border:1px solid #cbdde9; border-radius:8px; padding:22px; margin-bottom:26px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.workspace-entry h2 { margin-bottom:6px; }
.workspace-entry p { margin-bottom:6px; }
.workspace-commands { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.workspace-commands small { opacity:.7; margin-left:12px; }
.operator-grid { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:20px; margin-top:22px; align-items:start; }
.operator-results { min-width:0; }
.workspace-start { min-height:390px; background:linear-gradient(135deg,#fff 45%,#edf4f9); border:1px solid var(--border); border-radius:8px; padding:48px 36px; }
.workspace-start p { max-width:450px; color:var(--muted); }
.search-orbit { display:grid; place-items:center; width:58px; height:58px; border-radius:16px; background:#e7f0f7; color:#2c648d; font-size:38px; margin-bottom:26px; }
.start-path { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:32px; font-size:12px; color:#547086; }
.start-path span:nth-child(odd) { border:1px solid #d2dfea; background:white; padding:8px 12px; border-radius:5px; }
.context-panel { padding:22px; background:#fff; border:1px solid var(--border); border-top:3px solid #3d759c; border-radius:8px; }
.context-panel h2 { font-size:18px; margin-bottom:16px; }.context-panel h3 { font-size:14px; }.context-panel p { font-size:12px; color:var(--muted); }
.context-kind,.context-tag { display:inline-block; padding:3px 8px; background:#edf4f7; border-radius:4px; font-size:11px; color:#365e73; }.context-label { margin-top:14px; overflow-wrap:anywhere; }
.context-facts dt { color:var(--muted); font-size:11px; margin-top:9px; }.context-facts dd { margin:0; font-size:12px; }.context-divider { height:1px; background:var(--border); margin:22px 0; }
.pending-actions { list-style:none; padding:0; font-size:12px; }.pending-actions li { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid #edf0f3; color:#647384; }.pending-actions span { font-size:10px; }
.search-tabs { display:flex; gap:6px; border-bottom:1px solid var(--border); margin-bottom:20px; }.search-tabs a { padding:10px 16px; color:var(--muted); }.search-tabs .is-current { color:var(--accent); box-shadow:inset 0 -3px var(--accent); font-weight:600; }
.search-card { background:white; border:1px solid var(--border); border-radius:8px; padding:22px; margin-bottom:16px; }
.search-card fieldset { border:0; padding:0; margin:0 0 18px; min-width:0; }.search-card legend { font-size:14px; font-weight:650; margin-bottom:14px; padding:0; }
.criteria-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 20px; }.partial-date>div { display:flex; gap:6px; }.field-label { display:block; font-size:11px; margin-bottom:6px; color:#4d6072; }
.field-help { display:block; font-size:11px; color:var(--muted); margin:5px 0 12px; }.search-card details { padding:14px 0; border-top:1px solid #e8edf2; }.search-card summary { cursor:pointer; font-size:13px; font-weight:600; color:#3e607b; }.search-card details[open] summary { margin-bottom:16px; }
.search-submit { display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px; border-top:1px solid var(--border); padding-top:18px; margin-top:8px; }.search-submit>div { min-width:100px; }.search-submit>span { color:var(--muted); font-size:11px; padding-bottom:10px; }.mode-field { max-width:340px; margin-bottom:22px; }
.projection-options { display:flex; align-items:center; flex-wrap:wrap; gap:14px; font-size:12px; }.projection-options label { display:flex; align-items:center; gap:6px; margin:0; }.projection-options input { width:auto; min-height:unset; }.projection-options>div label { margin-bottom:6px; }
.search-empty { text-align:center; border:1px dashed #cdd9e3; padding:36px 20px; border-radius:8px; }.search-empty>span { color:#6389a5; font-size:34px; }.search-empty h2 { font-size:17px; }.search-empty p { font-size:12px; color:var(--muted); }
.row-caption { display:block; color:var(--muted); font-size:10px; margin-top:4px; }.button-small { padding:6px 10px; font-size:11px; min-height:34px; white-space:nowrap; }.selection-actions { display:flex; gap:6px; flex-wrap:wrap; }
.search-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--border); padding:14px 20px; font-size:12px; }.search-pager button:disabled { opacity:.4; cursor:default; }
.validation-summary-errors { color:#9a3434; background:#fff4f3; border:1px solid #e9c9c5; padding:12px 16px; border-radius:5px; margin-bottom:18px; }.validation-summary-valid { display:none; }
[hidden] { display:none !important; }
@media(max-width:1150px) { .operator-grid { grid-template-columns:minmax(0,1fr); }.context-panel { display:block; }.criteria-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .criteria-grid { grid-template-columns:minmax(0,1fr); }.workspace-entry { flex-direction:column; align-items:flex-start; }.search-tabs a { padding:10px; }.search-card { padding:16px; }.workspace-start { padding:28px 22px; }.search-submit { align-items:stretch; }.search-submit .button { width:100%; }.search-pager { padding:12px; } }
@media(max-width:1150px) { .operator-grid .context-panel { grid-row:1; }.operator-grid .context-facts { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:baseline; }.operator-grid .context-facts dt { margin:0; }.operator-grid .context-divider,.operator-grid .pending-actions { display:none; } }

/* v0.5f: shared compact density. Keep business columns; scroll tables instead of splitting short values. */
:root {
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --panel-padding: 14px 16px; --control-height: 32px; --header-height: 54px; --sidebar-width: 204px;
    --row-padding: 6px 12px;
}
body { font-size: 14px; line-height: 1.4; }
h1 { font-size: 23px; margin-bottom: 4px; }
h2 { font-size: 17px; margin-bottom: var(--space-2); }
h3 { font-size: 15px; margin-bottom: var(--space-2); }
p { margin-bottom: var(--space-2); }
.topbar { min-height: var(--header-height); padding: 8px 20px; gap: var(--space-4); }
.brand { font-size: 22px; line-height: 1.05; gap: var(--space-2); }.brand-caption { line-height: 1.2; }
.brand-mark { width: 32px; height: 34px; font-size: 21px; border-radius: 6px 6px 10px 10px; }
.topbar-right { gap: var(--space-4); }.user-block { padding-left: var(--space-4); }.user-avatar { width: 28px; height: 28px; font-size: 18px; }
.app-shell { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: calc(100vh - var(--header-height)); }
.sidebar { padding: 16px 10px; }.nav-caption { margin-bottom: var(--space-2); padding: 0 var(--space-2); }
.main-nav { gap: 3px; }.nav-item { min-height: 36px; padding: 7px 10px; gap: var(--space-2); }.nav-item > span:first-child { font-size: 18px; }
.nav-divider { margin: var(--space-3) var(--space-2); }.sidebar-note { padding-top: 24px; margin-left: var(--space-2); }
.workspace { padding: 16px 22px 0; }
.page-heading { gap: var(--space-3); margin-bottom: var(--space-3); align-items: center; }.page-heading p { font-size: 13px; }
.breadcrumbs ol { margin-bottom: var(--space-2); }.eyebrow { margin-bottom: var(--space-1); }
.selection-panel, .info-card, .search-card, .context-panel { padding: var(--panel-padding); margin-bottom: var(--space-3); }
.section-caption { margin-bottom: var(--space-2); }.address-path { gap: var(--space-3); }.address-path li { gap: var(--space-2); }
.step-label { margin-bottom: var(--space-1); }.change-label { margin-top: 2px; }.step-number { width: 23px; height: 23px; }
.info-card dl, .selection-panel dl { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 4px 16px; margin: 0 0 var(--space-3); font-size: 13px; }
.info-card dt, .selection-panel dt { color: var(--muted); }.info-card dd, .selection-panel dd { margin: 0; overflow-wrap: break-word; }
.results-heading { padding: var(--panel-padding); }.results-heading h2 { font-size: 17px; }
.results-panel > h2 { padding: var(--panel-padding); margin: 0; }
.filter-bar { padding: 0 16px 12px; gap: var(--space-2); }
.workspace > .filter-bar { padding: 0 0 12px; }
label, .field-label { font-size: 12px; margin-bottom: var(--space-1); }
input, select { font-size: 13px; min-height: var(--control-height); padding: 5px 8px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 18px; }
.button { min-height: var(--control-height); padding: 5px 12px; font-size: 13px; gap: var(--space-2); }
.button:not(.button-primary) { border-color: var(--border); background: #f8fafc; color: var(--accent); }
.button-small { min-height: 28px; padding: 3px 8px; font-size: 13px; }
.criteria-grid { gap: 10px 16px; }.search-submit { gap: var(--space-2); padding-top: var(--space-3); margin-top: var(--space-3); }
.search-card legend { margin-bottom: var(--space-2); }.search-card fieldset { margin-bottom: var(--space-3); }
.search-card details { padding: var(--space-2) 0; }.search-card details[open] summary { margin-bottom: var(--space-2); }
#address-f2 { margin: 0 16px 10px; padding: 10px 12px; font-size: 13px; }
#address-f2 summary { cursor: pointer; min-height: 24px; }#address-f2 .filter-bar { padding: var(--space-2) 0; }
#address-f2 .search-field { flex: 1 1 170px; }#address-f2 > form > label { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.list-instructions { padding: 0 16px 10px; }.catalog-note { margin: var(--space-2) 0; }
.table-scroll { position: relative; overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 760px; text-align: left; font-size: 13px; }
.table-scroll th, .table-scroll td { padding: var(--row-padding); border-top: 1px solid var(--border); vertical-align: top; word-break: normal; overflow-wrap: normal; }
.table-scroll thead th { padding: 8px 12px; font-size: 12px; font-weight: 600; color: #4d6072; background: #f7f9fb; min-width: 90px; }
.table-scroll tbody tr:hover { background: #f4f8fb; }
.address-table { width: max-content !important; min-width: 100% !important; }
.address-table tbody th { font-size: 13px; min-width: 150px; max-width: none; overflow-wrap: normal; }
.address-table tbody td { font-size: 13px; min-width: 90px; }
.record-link { gap: var(--space-2); white-space: nowrap; }.record-icon { width: 24px; height: 24px; font-size: 15px; }
.address-table td[data-field=ID], .address-table td[data-field$=_COUNT], .address-table td[data-field=APPARTMENTS_COUNT], .address-table td[data-field=PERSONAL_ACCOUNT_COUNT] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.address-table td[data-field=ID] { min-width: 120px; }
.address-table td[data-field=HOUSE_NUMBER], .address-table td[data-field=APPARTMENT_NUMBER], .address-table td[data-field=CODE], .apartment-number { white-space: nowrap; min-width: 105px; }
.address-table td[data-field=HOUSING_OFFICE_NAME], .address-table td[data-field=DISPLAY_NAME], .address-table td[data-field=SEARCH_NAME], .address-table td[data-field=COMPANY] { min-width: 180px; max-width: 360px; }
[data-address-search-results] td:first-child, [data-address-search-results] td:nth-child(n+3), [data-place-residents] td:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-address-search-results] td:nth-child(2), [data-place-residents] td:first-child { min-width: 230px; }
.row-action { display: table-cell; min-width: 100px; }
.results-footer, .pagination, .search-pager { padding: 10px 16px; font-size: 12px; gap: var(--space-2); }
.page-link { min-width: 32px; min-height: var(--control-height); padding: 5px 10px; font-size: 13px; }
.empty-state, .search-empty { padding: 24px 16px; }.empty-state h2, .empty-state h3 { font-size: 17px; }.empty-state p { margin-bottom: var(--space-3); }
.welcome-panel { padding: 22px; gap: 28px; margin-bottom: var(--space-3); }.welcome-panel h2 { font-size: 24px; margin-bottom: var(--space-2); }.welcome-panel p:not(.eyebrow) { margin-bottom: var(--space-3); }
.home-grid { gap: var(--space-3); }.card-icon { margin-bottom: var(--space-2); }.illustration-step { padding: 6px; }
.workspace-footer { padding: var(--space-3) 0; margin-top: var(--space-4); }.workspace-entry { padding: var(--panel-padding); margin-bottom: var(--space-3); }
.operator-grid { gap: var(--space-3); margin-top: var(--space-3); }.workspace-start { min-height: 280px; padding: 28px 24px; }.search-tabs { margin-bottom: var(--space-3); }
.validation-summary-errors { padding: 8px 12px; margin-bottom: var(--space-3); }
[id$="results"], #address-records, #apartment-info, #person-info { scroll-margin-top: 12px; }
@media (max-width: 1100px) { .workspace { padding: 14px 16px 0; }.search-field { flex-basis: 100%; } }
@media (max-width: 760px) {
    .topbar { padding: 8px 12px; }.brand-caption { font-size: 10px; }.sidebar { padding: 6px 10px; }
    .main-nav { gap: 4px; }.nav-item { padding: 6px 8px; min-height: 34px; }.workspace { padding: 12px 10px 0; }
    .page-heading { flex-wrap: wrap; }.address-path { gap: var(--space-2); }.row-action { display: table-cell; }
    .info-card dl, .selection-panel dl { grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 4px 8px; }
    .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.home-grid { grid-template-columns: 1fr; }
    .filter-bar { padding-left: 12px; padding-right: 12px; }.welcome-panel { padding: var(--panel-padding); }
}
@media (max-width: 480px) { .criteria-grid { grid-template-columns: minmax(0, 1fr); }.user-method { display: none; } }
.person-text { white-space: pre-line; }.person-additional { margin: 12px 0; }.person-additional summary { cursor: pointer; min-height: 28px; }
.person-additional dl { margin-top: 8px; }[data-person-registrations] td { white-space: nowrap; }[data-person-registrations] td:nth-child(2) { white-space: normal; min-width: 240px; }
.selected-registration { background: #eaf2f8; box-shadow: inset 3px 0 var(--accent); }
[data-form10-residents] td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-form10-residents] td:first-child { min-width: 240px; }
