:root { --workspace-width: 980px; } /* Full-width overview and exposure tables are the only main-content exception. */
* { box-sizing: border-box; font-family: 'Quattrocento', serif; font-size: 12px; color: #151515; }
body { margin: 0; background: #fff; touch-action: pan-x pan-y; }
.masthead { display: flex; align-items: center; min-height: 58px; gap: 18px; padding: 6px 14px; background: linear-gradient(to right, white, darkgrey); border-bottom: 1px solid #aeb8c0; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand-lockup { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand-first { font: 25px 'Oswald', sans-serif; letter-spacing: .3px; color: #000; }
.brand-last { font: italic 14px 'Oswald', sans-serif; letter-spacing: .15px; color: #000; }
.masthead-menu { display: contents; }
.masthead-menu-toggle { display: none; }
.first { margin: 0; display: inline; font: 30px 'Oswald', sans-serif; color: #000; }
.last { margin: 0; display: inline; font: italic 16px 'Oswald', sans-serif; color: #000; }
.tabs { align-self: flex-end; display: flex; align-items: center; gap: 2px; min-width: 0; margin-bottom: 3px; }
.tabs a { padding: 5px 9px; border-radius: 3px; text-decoration: none; cursor: pointer; }
.tabs a { color: #40586c; border: 1px solid transparent; font-weight: bold; }
.ButtonTabActive { color: #102f49 !important; background: #dceafa; border-color: #b5cde3 !important; font-weight: bold; }
.ButtonTabInActive:hover, .ButtonTabInActive:focus-visible { color: #174c7c; background: #e5f0fa; border-color: #c3d6e8; }
.beta-badge { margin-left: 5px; padding: 1px 6px; border-radius: 3px; background: #f0c36d; color: #4a3308; font-size: 10px; font-weight: bold; vertical-align: 1px; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.link-button { border: 0; background: transparent; color: #174c7c; text-decoration: none; cursor: pointer; padding: 0; font-weight: bold; }
.link-button:hover, .link-button:focus-visible { text-decoration: underline; }
.account-login { color: #174c7c; text-decoration: none; font-weight: bold; }
.account-login:hover, .account-login:focus-visible { text-decoration: underline; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; max-width: 190px; cursor: pointer; list-style: none; color: #40586c; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu summary::after { content: "⌄"; margin-left: 5px; color: #40586c; font-size: 14px; }
.account-menu-panel { position: absolute; z-index: 10; top: calc(100% + 7px); right: 0; display: grid; min-width: 156px; padding: 5px; border: 1px solid #b5cde3; border-radius: 3px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .16); }
.account-menu-panel a, .account-menu-panel form { display: block; }
.account-menu-panel a, .account-menu-panel .link-button { width: 100%; padding: 6px 8px; color: #29495f; text-align: left; text-decoration: none; }
.account-menu-panel a:hover, .account-menu-panel .link-button:hover { background: #e7f0fa; text-decoration: none; }
#MainFrame { min-height: 420px; padding: 10px; background: #fff; }
.welcome { min-height: 50vh; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 16px; }
.welcome img { max-width: 100%; }
.welcome-login { display: grid; width: min(100%, 360px); gap: 14px; padding: 18px 20px; border: 1px solid #b5cde3; border-radius: 4px; background: #edf5fd; text-align: center; box-shadow: 0 1px 2px rgb(16 47 73 / 12%); }
.welcome-login h3 { margin: 0; font: 19px 'Oswald', sans-serif; color: #173a58; }
.welcome-login p { margin: 5px 0 0; color: #465766; line-height: 1.4; }
.welcome-login .button { width: 100%; min-height: 34px; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.not-found { display: flex; min-height: 50vh; max-width: 560px; margin: 0 auto; padding: 48px 24px; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.not-found-code { margin: 0; color: #326a99; font: 64px 'Oswald', sans-serif; line-height: 1; }
.not-found h1 { margin: 10px 0 8px; font: 30px 'Oswald', sans-serif; }
.not-found p:not(.not-found-code) { max-width: 390px; margin: 0 0 22px; color: #40586c; font-size: 14px; line-height: 1.5; }
.error-page { display: flex; min-height: 50vh; max-width: 560px; margin: 0 auto; padding: 48px 24px; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.error-page-code { margin: 0; color: #326a99; font: 64px 'Oswald', sans-serif; line-height: 1; }
.error-page h1 { margin: 10px 0 8px; font: 30px 'Oswald', sans-serif; }
.error-page > p:not(.error-page-code) { max-width: 420px; margin: 0 0 22px; color: #40586c; font-size: 14px; line-height: 1.5; }
.error-page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter form, .editor form, .login-panel form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filter { max-width: var(--workspace-width); }
.legacy-filter { display: block !important; }
.legacy-filter-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: var(--workspace-width); }
.legacy-filter details { margin: 0 0 10px; border: 1px solid #c3d2e0; background: #fff; }
.legacy-filter summary { cursor: pointer; font-weight: bold; padding: 8px 10px; list-style: none; background: #e7f0fa; }
.legacy-filter summary:hover { background: #dceafa; }
.legacy-filter summary::-webkit-details-marker { display: none; }
.legacy-filter summary::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; background: url("/static/expand.jpg") center/contain no-repeat; }
.legacy-filter details[open] > summary::before { background-image: url("/static/collapse.jpg"); }
.legacy-filter-panel { padding: 8px 10px; overflow-x: auto; }
.legacy-filter-row { display: flex; align-items: center; gap: 6px; min-height: 29px; margin: 3px 0; padding: 3px 0; }
.legacy-filter-row + .legacy-filter-row { border-top: 1px solid #edf0f3; }
.legacy-filter-row .labelSize { width: 145px; min-width: 145px; max-width: 145px; padding-top: 0; line-height: 1.25; color: #374957; font-weight: bold; overflow-wrap: normal; word-break: normal; }
.legacy-filter-row select[multiple] { width: 283px; max-width: 283px; min-height: 92px; }
.legacy-text { width: 279px; max-width: 279px; min-height: 27px; }
.legacy-operator { width: 45px; min-width: 45px; }
.legacy-comparison-value { width: 65px; min-width: 65px; min-height: 27px; }
.legacy-join { width: 60px; min-width: 60px; }
.legacy-next-clause.hidden { display: none; }
.legacy-next-clause { display: inline-flex; gap: 2px; }
.legacy-date-range { display: flex; gap: 6px; }
.legacy-date-range label { gap: 2px; color: #374957; font-size: 12px; font-weight: bold; }
.legacy-date-range input { width: 130px; min-width: 130px; }
.legacy-number-range { display: flex; align-items: end; gap: 6px; }
.legacy-number-range label { gap: 2px; color: #374957; font-size: 12px; font-weight: bold; }
.legacy-number-range input { width: 96px; min-width: 96px; }
.legacy-range-unit { padding-bottom: 5px; color: #596d7d; font-size: 12px; white-space: nowrap; }
.legacy-range-unit sup { color: inherit; }
@media (max-width: 900px) { .legacy-filter-columns { grid-template-columns: 1fr; row-gap: 0; } }
@media (max-width: 520px) {
  .legacy-filter-panel { overflow-x: hidden; }
  .legacy-filter-row { align-items: flex-start; flex-wrap: wrap; }
  .legacy-filter-row .labelSize { width: 100%; min-width: 0; max-width: none; }
  .legacy-filter-row .legacy-text { width: 100%; max-width: none; }
  .legacy-filter-row input[list] { min-height: 32px; }
  .legacy-date-range { width: 100%; }
  .legacy-date-range label { flex: 1; }
  .legacy-date-range input { width: 100%; min-width: 0; }
  .legacy-number-range { width: 100%; }
  .legacy-number-range label { flex: 1; }
  .legacy-number-range input { width: 100%; min-width: 0; }
  .legacy-range-unit { padding-bottom: 5px; }
}
@media print { .masthead, .tabs, .filter { display: none; } #MainFrame { border: 0; padding: 0; } }
label { display: flex; flex-direction: column; gap: 4px; }
input, select, textarea { max-width: 280px; min-height: 24px; border: 1px solid #999; background: #fff; padding: 3px; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
textarea { min-height: 72px; width: 280px; }
.button, button, .legacy-button, .grid-select { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px; color: #29495f; border: 1px solid #8c9dab; border-radius: 3px; background: #fff; text-decoration: none; cursor: pointer; font-weight: bold; line-height: 1.1; }
.button:hover, .button:focus-visible, button:hover, button:focus-visible, .legacy-button:hover, .legacy-button:focus-visible, .grid-select:hover, .grid-select:focus-visible { color: #174c7c; border-color: #719cc7; background: #e7f0fa; }
.button-primary, button.button-primary { color: #fff; border-color: #24557e; background: #326a99; }
.button-primary:hover, .button-primary:focus-visible, button.button-primary:hover, button.button-primary:focus-visible { color: #fff; border-color: #1c476a; background: #24557e; }
.button-danger, button.button-danger { color: #fff; border-color: #9f2323; background: #b53838; }
.button-danger:hover, .button-danger:focus-visible, button.button-danger:hover, button.button-danger:focus-visible { color: #fff; border-color: #7f1b1b; background: #942b2b; }
.button:disabled, button:disabled { color: #7f8b94; border-color: #c5cdd4; background: #e1e5e8; cursor: default; pointer-events: none; }
.button-compact { min-height: 26px; padding: 3px 7px; font-size: 11px; }
button.link-button { display: inline; min-height: 0; padding: 0; color: #174c7c; border: 0; background: transparent; }
.result-count { margin: 14px 0 5px; }
.database-version-switcher { position: relative; }
.database-version-switcher > summary { display: flex; align-items: center; gap: 4px; min-height: 26px; padding: 4px 6px; color: #40586c; border: 1px solid transparent; border-radius: 3px; background: transparent; cursor: pointer; list-style: none; }
.database-version-switcher > summary::-webkit-details-marker { display: none; }
.database-version-switcher > summary::after { content: "⌄"; margin-left: 3px; color: #40586c; font-size: 14px; line-height: 1; }
.database-version-switcher[open] > summary, .database-version-switcher > summary:hover, .database-version-switcher > summary:focus-visible { color: #174c7c; border-color: #b5cde3; background: rgba(255, 255, 255, .45); }
.database-version-switcher > summary span { color: #596d7d; font-size: 11px; font-weight: normal; }
.database-version-switcher > summary strong { color: inherit; font-weight: bold; }
.database-version-menu { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; min-width: 240px; overflow: hidden; border: 1px solid #b5cde3; border-radius: 3px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .16); }
.database-version-menu-title { padding: 8px 10px 6px; color: #596d7d; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; }
.database-version-options { display: grid; max-height: min(320px, 60vh); padding: 0 5px 5px; overflow-y: auto; }
.database-version-option, button.database-version-option { display: flex; justify-content: flex-start; width: 100%; min-height: 32px; padding: 7px 9px; color: #29495f; border: 0; border-radius: 2px; background: transparent; text-align: left; text-decoration: none; font-weight: normal; }
.database-version-option:hover, .database-version-option:focus-visible, button.database-version-option:hover, button.database-version-option:focus-visible { color: #174c7c; background: #e7f0fa; }
.database-version-option.selected { color: #173a58; background: #edf5fd; font-weight: bold; }
.database-version-option.selected::after { content: "✓"; margin-left: auto; color: #326a99; font-weight: bold; }
.database-version-option-draft { color: #76520b; }
.database-version-option-draft.selected { color: #654500; background: #fff5d9; }
.database-version-menu-footer { padding: 5px; border-top: 1px solid #dce5ec; }
.database-version-menu-footer a { display: block; padding: 7px 9px; color: #174c7c; border-radius: 2px; text-decoration: none; font-weight: bold; }
.database-version-menu-footer a:hover, .database-version-menu-footer a:focus-visible { background: #e7f0fa; }
.database-version-context { display: flex; align-items: center; gap: 4px; min-height: 26px; padding: 4px 6px; color: #40586c; }
.database-version-context span { color: #596d7d; font-size: 11px; }
.database-version-context strong { color: inherit; }
.database-version-context-draft strong { color: #76520b; }
.database-version-history th, .database-version-history td { padding: 7px 9px; vertical-align: middle; }
.database-version-history th:last-child { text-align: left; }
.database-version-history td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.database-version-history-actions { display: inline-grid; grid-template-columns: 58px 68px; align-items: center; gap: 6px; }
.database-version-history-actions .button { width: 100%; }
.database-version-change-body { padding: 14px; }
.database-version-change-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.database-version-change-counts span { min-width: 90px; padding: 8px 10px; border: 1px solid #b1cbec; background: #edf5fd; }
.database-version-change-counts strong { margin-right: 4px; color: #174c7c; font-size: 16px; }
.database-version-change-group { margin-top: 18px; }
.database-version-change-group:first-of-type { margin-top: 0; }
.database-version-change-group h4 { margin: 0 0 8px; }
.database-version-change-group details { margin-bottom: 6px; border: 1px solid #c3d2e0; }
.database-version-change-group summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; padding: 7px 9px; cursor: pointer; background: #f5f9fd; }
.database-version-change-group summary small { margin-left: auto; color: #596d7d; }
.database-version-field-changes { border-width: 1px 0 0; }
.database-version-field-changes th, .database-version-field-changes td { padding: 6px 8px; }
.database-version-field-changes th:first-child, .database-version-field-changes td:first-child { width: 24%; white-space: normal; }
.database-version-attachment-changes { border-top: 1px solid #d8e1e8; }
.database-version-attachment-changes > div { display: flex; align-items: baseline; gap: 8px; padding: 7px 9px; border-bottom: 1px solid #e4e9ed; }
.database-version-attachment-changes > div:last-child { border-bottom: 0; }
.database-version-attachment-changes strong { min-width: 52px; color: #374957; }
.database-version-attachment-changes small { margin-left: auto; color: #596d7d; }
.exposure-version-field-changes th:first-child, .exposure-version-field-changes td:first-child { width: 12%; }
.exposure-version-field-changes th:nth-child(2), .exposure-version-field-changes td:nth-child(2) { width: 22%; }
.database-version-deleted-event { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 7px 9px; border: 1px solid #c3d2e0; }
.database-version-deleted-event > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.database-version-deleted-event form { flex: 0 0 auto; }
.database-version-exposure-dataset { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 7px 9px; border: 1px solid #c3d2e0; }
.database-version-exposure-dataset span { color: #596d7d; }
.deleted-events-table-wrap { overflow-x: auto; }
.deleted-events-table th, .deleted-events-table td { padding: 7px 9px; vertical-align: middle; }
.deleted-events-table th:last-child, .deleted-events-table td:last-child { width: 1%; text-align: right; white-space: nowrap; }
.deleted-events-table form { display: inline; }
.overview { max-width: none; }
.overview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 8px; }
.overview-actions > span { margin-right: 2px; color: #555; font-weight: bold; }
.overview-create { margin-left: auto; }
.overview-table-wrap { overflow-x: auto; border: 1px solid #b1cbec; }
.overview-grid { min-width: 860px; border: 0; }
.overview-grid th { padding: 6px 7px; background: #e7f0fa; border-bottom: 1px solid #b1cbec; }
.overview-grid td { padding: 6px 7px; }
.overview-grid tbody tr { background: #fffdf0; }
.overview-grid tbody tr:hover { background: #f3f8ff; }
.overview .grid-pagination { margin-top: 0; padding: 8px; border: 1px solid #b1cbec; border-top: 0; background: #f5f9fd; }
.overview .grid-pager a, .overview .grid-pager span { min-width: 25px; padding: 3px 5px; text-align: center; }
.overview .grid-pager a { color: #174c7c; border: 1px solid #b1cbec; background: #fff; text-decoration: none; }
.overview .grid-pager [aria-current="page"] { color: #fff; background: #326a99; }
.result-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0 7px; padding: 9px 11px; border-left: 3px solid #6899c7; background: #edf5fd; color: #29495f; }
.filter .result-summary { max-width: var(--workspace-width); }
.result-summary-count { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.result-summary-count strong { color: #174c7c; font-size: 17px; }
.active-query { display: flex; align-items: flex-start; gap: 7px; min-width: 0; padding-left: 16px; border-left: 1px solid #b8cde0; }
.result-summary-clear { margin-left: auto; white-space: nowrap; }
.active-query-label { flex: 0 0 auto; font-weight: bold; }
.active-query code { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.query-field { color: #005a9c; font-weight: bold; }
.query-operator, .query-keyword { color: #7a3e00; font-weight: bold; }
.query-value { color: #246b35; }
.data-grid { width: 100%; border-collapse: collapse; border: 1px solid #b1cbec; background: lightyellow; }
.data-grid th, .data-grid td { padding: 3px; text-align: left; border-right: 1px solid #b1cbec; vertical-align: top; }
.data-grid th { font-weight: bold; background: lightyellow; }
.data-grid .sort-link { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.data-grid .sort-link:hover, .data-grid .sort-link:focus-visible { color: #0645ad; text-decoration: underline; }
.data-grid .sort-link.active { color: #0645ad; }
.data-grid tbody tr { background: lightyellow; }
.data-grid tbody tr:nth-child(even) { background: #fff; }
.data-grid td:first-child { width: 1%; white-space: nowrap; }
.grid-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 6px 3px; background: lightyellow; }
.grid-range { margin: 0; }
.page-size { display: flex; align-items: center; gap: 4px; }
.page-size label { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; }
.grid-pager { display: flex; gap: 5px; align-items: center; }
.grid-pager a, .grid-pager span { padding: 2px 4px; }
.grid-pager span { font-weight: bold; }
.grid-pager [aria-disabled="true"] { color: #777; font-weight: normal; }
.exposure-page { max-width: var(--workspace-width); }
.exposure-page-wide { max-width: none; }
.exposure-controls { margin: 0 0 12px; padding: 12px; border: 1px solid #b1cbec; background: #edf5fd; }
.exposure-selector { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0; }
.exposure-selector label { display: grid; gap: 5px; min-width: min(100%, 420px); color: #374957; font-weight: bold; }
.exposure-selector select { width: 100%; min-width: min(100%, 420px); max-width: 100%; min-height: 30px; }
.exposure-actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.exposure-export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.exposure-export-actions > span { margin-right: 2px; color: #555; font-weight: bold; }
.exposure-table-region { display: inline-block; max-width: 100%; vertical-align: top; }
.exposure-dataset-name { color: #173a58; }
.exposure-table-wrap { display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: top; border: 1px solid #9ebbd6; background: #b1cbec; }
.exposure-grid { width: max-content; min-width: max-content; border: 0; }
.exposure-grid th { width: 92px; min-width: 92px; padding: 6px 8px; background: #b1cbec; border-bottom: 1px solid #8eafd2; overflow-wrap: normal; word-break: normal; hyphens: none; white-space: normal; text-align: center; font-size: 11px; line-height: 1.2; }
.exposure-grid tbody tr { background: #bfdbff; }
.exposure-grid tbody tr:nth-child(even) { background: #fff; }
.exposure-grid tbody tr:hover { background: #e7f1ff; }
.exposure-grid td { width: 92px; min-width: 92px; padding: 6px 8px; text-align: center; white-space: nowrap; }
.exposure-grid th:first-child, .exposure-grid td:first-child { width: 66px; min-width: 66px; }
.message.success { padding: 8px; color: #164e27; border: 1px solid #81b994; background: #e8f7ed; font-weight: bold; }
.message.information { padding: 8px; color: #173a58; border: 1px solid #b5cde3; background: #edf5fd; font-weight: bold; }
.exposure-editor-form { display: block !important; }
.exposure-editor-form .exposure-table-wrap { display: inline-block; max-width: 100%; max-height: none; overflow-x: auto; vertical-align: top; background: #fff; }
.exposure-editor-workspace { display: inline-block; width: fit-content; max-width: 100%; vertical-align: top; }
.exposure-editor-grid { width: max-content; min-width: max-content; border-collapse: separate; border-spacing: 0; }
.exposure-editor-grid th { width: 92px; min-width: 92px; min-height: 34px; position: sticky; top: 0; z-index: 3; overflow-wrap: normal; word-break: normal; hyphens: none; white-space: normal; text-align: center; font-size: 11px; line-height: 1.2; }
.exposure-editor-grid td { width: 92px; min-width: 92px; padding: 0; border-right: 1px solid #9ebbd6; border-bottom: 1px solid #9ebbd6; vertical-align: middle; }
.exposure-editor-grid input { display: block; width: 100%; max-width: none; min-width: 0; min-height: 32px; padding: 5px 7px; border: 0; border-radius: 0; background: transparent; text-align: right; }
.exposure-editor-grid input:focus { outline: 2px solid #1f6fb2; outline-offset: -2px; background: #fffef0; }
.exposure-editor-grid td.is-focused { background: #e0f0ff; box-shadow: inset 0 0 0 2px #1f6fb2; }
.exposure-editor-grid td.is-modified:not(.is-focused) { background: #fff3cd; box-shadow: inset 0 0 0 1px #d6a23a; }
.exposure-editor-grid .exposure-year-header { width: 66px; min-width: 66px; max-width: 66px; position: sticky; left: 0; z-index: 4; }
.exposure-editor-grid .exposure-fixed-year { position: sticky; left: 0; z-index: 2; min-width: 66px; padding: 6px 8px; background: inherit; font-weight: bold; text-align: center; }
.exposure-editor-grid tbody tr, .exposure-editor-grid tbody tr:nth-child(even) { background: #fff; }
.exposure-editor-grid tbody tr:hover { background: #f5f9fd; }
.exposure-editor-grid .new-row td { background: #edf8ef; }
.exposure-editor-grid .new-row td.is-focused { background: #e0f0ff; }
.exposure-editor-grid .summary-row { background: #edf5fd; font-weight: bold; }
.exposure-editor-actions { justify-content: space-between; width: 100%; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #c6d5e2; }
.exposure-editor-commit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exposure-dataset-form { max-width: 640px; }
.exposure-dataset-form textarea { width: min(100%, 420px); min-height: 160px; }
.exposure-dataset-delete { max-width: 640px; }
.exposure-delete-confirm { flex-direction: row; align-items: flex-start; max-width: 460px; line-height: 1.4; }
.exposure-delete-confirm input { width: auto; min-height: auto; margin-top: 2px; }
.login-panel { max-width: 400px; margin: 40px auto; padding: 20px; background: #e1e1e1; border: 1px solid #676767; }
.login-panel form, .editor form { flex-direction: column; align-items: stretch; }
.auth-panel { max-width: 430px; padding: 0; overflow: hidden; background: #fff; border-color: #9eb5ca; }
.auth-panel-heading { padding: 20px 22px 16px; background: #e7f0fa; border-bottom: 1px solid #b1cbec; }
.auth-panel-heading h2 { margin: 0; font: 22px 'Oswald', sans-serif; }
.auth-panel-heading p { margin: 5px 0 0; color: #465766; line-height: 1.4; }
.auth-form { display: grid !important; gap: 14px; padding: 20px 22px; }
.auth-field { display: grid; gap: 5px; font-weight: bold; }
.auth-field input { width: 100%; max-width: none; min-height: 32px; padding: 6px 8px; }
.auth-field small { color: #555; font-weight: normal; }
.password-control { display: flex; gap: 6px; }
.password-control input { flex: 1 1 auto; min-width: 0; }
.password-toggle { flex: 0 0 auto; min-height: 32px; white-space: nowrap; }
.auth-submit { width: 100%; min-height: 34px; margin-top: 3px; color: #fff; background: #326a99; border-color: #24557e; border-radius: 3px; font-weight: bold; }
.auth-submit:hover, .auth-submit:focus-visible { background: #24557e; }
.auth-panel .message.error { margin: 16px 22px 0; border: 1px solid #9f2323; }
.auth-footer { display: flex; flex-wrap: wrap; gap: 5px; padding: 13px 22px; border-top: 1px solid #e1e1e1; background: #fafafa; color: #555; }
.auth-footer a { color: #174c7c; font-weight: bold; }
.auth-help { line-height: 1.4; }
.user-management { max-width: var(--workspace-width); }
.admin-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 20px; max-width: 1240px; }
.admin-sidebar { padding: 14px; border: 1px solid #b5cde3; border-radius: 4px; background: #edf5fd; }
.admin-sidebar h2 { margin: 0 0 14px; color: #173a58; font: 20px 'Oswald', sans-serif; }
.admin-nav-section + .admin-nav-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid #c6d5e2; }
.admin-nav-section h3 { margin: 0 0 5px; color: #40586c; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.admin-nav-section ul { display: grid; gap: 3px; padding: 0; margin: 0; list-style: none; }
.admin-nav-link { display: block; padding: 6px 8px; color: #29495f; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-weight: bold; }
.admin-nav-link:hover, .admin-nav-link:focus-visible { color: #174c7c; border-color: #b5cde3; background: #fff; }
.admin-nav-link.active { color: #102f49; border-color: #92b9e0; background: #dceafa; }
.admin-main { min-width: 0; }
.user-page-header { padding-bottom: 8px; }
.section-label { margin: 0 0 3px; color: #555; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }
.user-page-actions { display: flex; align-items: center; gap: 8px; }
.user-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0; color: #556675; }
.user-summary span + span { padding-left: 14px; border-left: 1px solid #d4dce3; }
.user-table-wrap { overflow-x: auto; border: 1px solid #c6d5e2; border-radius: 3px; background: #fff; }
.user-grid { min-width: 600px; border: 0; background: #fff; }
.user-grid th { padding: 8px 10px; color: #374957; border-right: 0; border-bottom: 1px solid #c6d5e2; background: #edf5fd; }
.user-grid td { padding: 10px; border-right: 0; border-bottom: 1px solid #e2e8ed; vertical-align: middle; }
.user-grid tbody tr, .user-grid tbody tr:nth-child(even) { background: #fff; }
.user-grid tbody tr:hover { background: #f5f9fd; }
.user-grid tbody tr:last-child td { border-bottom: 0; }
.exposure-dataset-grid { min-width: 420px; }
.exposure-dataset-grid th:last-child, .exposure-dataset-grid td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.user-identity { min-width: 220px; }
.user-name, .user-username { display: block; }
.user-name { font-size: 13px; }
.user-username { margin-top: 2px; color: #596d7d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.user-created { color: #555; white-space: nowrap; }
.user-action { width: 1%; white-space: nowrap; text-align: right; }
.user-badge { display: inline-block; min-width: 92px; padding: 3px 7px; border: 1px solid; border-radius: 10px; text-align: center; font-size: 11px; font-weight: bold; }
.user-badge-admin { color: #174c7c; background: #dcecff; border-color: #92b9e0; }
.user-badge-user { color: #555; background: #f3f3f3; border-color: #c5c5c5; }
.user-badge-active { color: #216738; background: #e2f4e7; border-color: #9fc8aa; }
.user-badge-disabled { color: #8a2525; background: #fbe6e6; border-color: #dfa7a7; }
.user-form { max-width: none; }
.user-form-card { margin: 12px 0; border: 1px solid #b5b5b5; background: #fff; }
.user-form-card h3 { margin: 0; padding: 6px 9px; font: bold 14px 'Oswald', sans-serif; background: #e7f0fa; border-bottom: 1px solid #b5b5b5; }
.user-fields { padding: 14px; }
.user-access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-option { display: flex; align-items: flex-start; gap: 9px; min-height: 74px; padding: 12px; border-right: 1px solid #e1e1e1; cursor: pointer; }
.user-option:last-child { border-right: 0; }
.user-option input { width: auto; min-height: auto; margin-top: 2px; }
.user-option span { display: grid; gap: 3px; }
.user-option small { color: #555; line-height: 1.35; }
.user-option-danger { background: #fffafa; }
.password-choice { gap: 10px; }
.password-choice legend { padding: 0; font-weight: bold; }
.password-choice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #d4dce3; border-radius: 3px; overflow: hidden; }
.password-choice-options-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.password-choice-option { display: flex; align-items: flex-start; gap: 9px; min-height: 78px; padding: 12px; cursor: pointer; }
.password-choice-option + .password-choice-option { border-left: 1px solid #d4dce3; }
.password-choice-selected { background: #edf5fd; }
.password-choice-option input { width: auto; min-height: auto; margin-top: 2px; }
.password-choice-option span { display: grid; gap: 3px; }
.password-choice-option small { color: #555; line-height: 1.35; }
.password-manual { margin-top: 2px; }
.password-manual.hidden { display: none; }
.generated-password { max-width: 520px; margin: 16px 0; padding: 18px 20px; border: 1px solid #b5cde3; border-radius: 4px; background: #edf5fd; }
.generated-password h3 { margin: 0; font: 19px 'Oswald', sans-serif; color: #173a58; }
.generated-password p { margin: 7px 0 12px; color: #465766; }
.generated-password-value { display: block; padding: 12px; border: 1px solid #9eb5ca; border-radius: 3px; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; font-weight: bold; letter-spacing: .08em; overflow-wrap: anywhere; }
.account-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; padding: 14px; }
.account-details dt { font-weight: bold; }
.account-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.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; }
.message.error { background: #c00; color: white; padding: 8px; font-weight: bold; }
.detail { max-width: var(--workspace-width); }
.editor { max-width: var(--workspace-width); }
.detail-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 9px; border-bottom: 1px solid #b5b5b5; }
.detail-title > :first-child { flex: 1 1 auto; min-width: 0; }
.detail-title h2 { margin: 0; font: 22px 'Oswald', sans-serif; }
.detail-subtitle { margin: 2px 0 0; color: #555; }
.detail-actions { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 5px; white-space: nowrap; }
.detail-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.detail-section { border: 1px solid #b5b5b5; background: #fff; }
.detail-section:nth-child(6) { grid-column: 1 / -1; }
.detail-section h3 { margin: 0; padding: 5px 7px; font: bold 14px 'Oswald', sans-serif; background: #e1e1e1; border-bottom: 1px solid #b5b5b5; }
.detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-field { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; min-width: 0; padding: 4px 7px; border-bottom: 1px solid #eee; }
.detail-field-wide { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 4px; }
.detail-field-wide dd { line-height: 1.5; }
.detail-field:nth-last-child(-n+2) { border-bottom: 0; }
.detail-field dt { font-weight: bold; }
.detail-field dd { min-width: 0; overflow-wrap: anywhere; }
.detail-unit { margin-left: 4px; color: #555; white-space: nowrap; }
.detail-unit sup { color: inherit; }
.blowout-editor-form { display: block !important; }
.editor-title { margin-bottom: 12px; }
.editor-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.editor-section:nth-child(6) { grid-column: 1 / -1; }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.editor-field { min-width: 0; }
.editor-field-wide { grid-column: 1 / -1; }
.editor-field-pair { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-field label { display: block; margin-bottom: 4px; font-weight: bold; }
.editor-field input, .editor-field textarea, .editor-field select { width: 100%; max-width: none; }
.editor-field input, .editor-field select { min-height: 32px; padding: 6px 8px; }
.editor-field .password-choice-option input[type="radio"] { width: auto; min-height: auto; padding: 0; }
.editor-field textarea { min-height: 88px; }
.editor-classification-select { width: 100%; max-width: none; min-height: 150px; }
.editor-field-pair-classification .editor-classification-select, .editor-field-pair-classification textarea { box-sizing: border-box; height: 150px; min-height: 150px; }
.editor-control { display: flex; align-items: center; gap: 6px; }
.editor-control input { flex: 1 1 auto; min-width: 0; }
.editor-static { margin: 0; min-height: 32px; padding: 6px 8px; border: 1px solid #999; background: #f5f5f5; }
.editor-help { margin: 4px 0 0; color: #555; }
.editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.database-version-actions { padding: 10px 14px 14px; border-top: 1px solid #e2e8ed; }
.database-version-recovery { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.database-version-warning { margin: 0; padding: 12px 14px; }
.attachments { margin-top: 12px; }
.attachments h3 { margin: 0 0 5px; font: bold 14px 'Oswald', sans-serif; }
.attachments-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.attachments-title h3 { margin: 0; }
.attachment-panel { padding: 12px; }
.attachment-empty { margin: 0; color: #555; }
.attachment-list { max-width: var(--workspace-width); border: 1px solid #c6d5e2; border-radius: 3px; background: #fff; }
.attachment-manager .attachment-list { max-width: none; }
.attachment-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; }
.attachment-item + .attachment-item { border-top: 1px solid #e2e8ed; }
.attachment-item:hover { background: #f5f9fd; }
.attachment-type { flex: 0 0 42px; padding: 3px 5px; color: #40586c; border: 1px solid #c6d5e2; border-radius: 2px; background: #edf5fd; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; font-weight: bold; text-align: center; }
.attachment-details { flex: 1 1 auto; min-width: 0; }
.attachment-name { display: block; color: #174c7c; font-weight: bold; overflow-wrap: anywhere; }
.attachment-meta { margin-top: 3px; color: #596d7d; font-size: 11px; overflow-wrap: anywhere; }
.attachment-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.attachment-actions form { display: inline; }
.attachment-download { color: #174c7c; font-weight: bold; text-decoration: none; }
.attachment-download:hover, .attachment-download:focus-visible { text-decoration: underline; }
button.link-button.attachment-delete { color: #8a2525; }
button.link-button.attachment-delete:hover, button.link-button.attachment-delete:focus-visible { color: #6d1d1d; }
.attachment-upload { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e1e1e1; }
.attachment-upload h4 { margin: 0 0 10px; font: bold 13px 'Oswald', sans-serif; }
.attachment-upload-form { display: flex !important; flex-direction: column; gap: 12px; }
.attachment-upload-form .editor-fields { padding: 0; }
.attachment-upload-form input[type="file"] { width: 100%; max-width: none; }
.attachment-upload-form .editor-actions { padding: 0; }
.editor-page-actions { margin-top: 16px; padding-top: 12px; border-top: 1px solid #b5b5b5; }
.inline { display: inline; }
dl { display: grid; grid-template-columns: 180px 1fr; gap: 7px 12px; }
dt { font-weight: bold; }
dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 760px) { .detail-title { align-items: flex-start; flex-direction: column; } .detail-sections, .editor-sections { grid-template-columns: 1fr; } .detail-section:nth-child(6), .editor-section:nth-child(6) { grid-column: auto; } .detail-fields, .editor-fields, .editor-field-pair { grid-template-columns: 1fr; } .detail-field:nth-last-child(-n+2) { border-bottom: 1px solid #eee; } .detail-field:last-child { border-bottom: 0; } .result-summary { align-items: flex-start; flex-direction: column; gap: 6px; } .active-query { width: 100%; padding-top: 6px; padding-left: 0; border-top: 1px solid #b8cde0; border-left: 0; } .result-summary-clear { margin-left: 0; } .admin-layout { display: block; } .admin-sidebar { margin-bottom: 16px; padding: 10px 12px; } .admin-sidebar h2 { margin-bottom: 10px; } .admin-sidebar nav { display: grid; grid-template-columns: max-content repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; } .admin-sidebar h2 { grid-row: 1 / span 2; } .admin-nav-section + .admin-nav-section { margin: 0; padding: 0; border: 0; } .admin-nav-section ul { display: flex; flex-wrap: wrap; gap: 3px; } .user-page-actions { width: 100%; justify-content: space-between; } .user-access-options { grid-template-columns: 1fr; } .user-option { border-right: 0; border-bottom: 1px solid #e1e1e1; } .user-option:last-child { border-bottom: 0; } }
@media (max-width: 500px) { .admin-sidebar nav { display: block; } .admin-sidebar h2 { margin-bottom: 10px; } .admin-nav-section + .admin-nav-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid #c6d5e2; } }
@media (max-width: 580px) { .user-grid { min-width: 440px; } .user-grid .user-created { display: none; } }
@media (max-width: 760px) {
  .masthead { position: relative; height: 58px; min-height: 58px; padding: 6px 12px; gap: 10px; flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand-lockup { min-width: 0; }
  .brand-last { overflow: hidden; text-overflow: ellipsis; }
  .masthead-menu-toggle { display: inline-flex; width: 40px; min-width: 40px; height: 40px; min-height: 40px; margin-left: auto; padding: 7px; border-color: #8496a5; background: rgba(255, 255, 255, .65); }
  .masthead-menu-icon { width: 24px; height: 24px; fill: none; stroke: #29495f; stroke-width: 2; stroke-linecap: round; }
  .masthead-menu-icon-close { display: none; }
  .masthead-menu-toggle[aria-expanded="true"] .masthead-menu-icon-open { display: none; }
  .masthead-menu-toggle[aria-expanded="true"] .masthead-menu-icon-close { display: block; }
  .masthead-menu { position: absolute; z-index: 40; top: 58px; right: 0; left: 0; display: none; max-height: calc(100vh - 58px); padding: 10px 12px 12px; overflow-y: auto; border-bottom: 1px solid #aeb8c0; background: #f5f7f8; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
  .masthead-menu.masthead-menu-open { display: grid; gap: 10px; }
  .masthead-menu .tabs { display: grid; width: 100%; margin: 0; align-self: auto; gap: 4px; }
  .masthead-menu .tabs a { min-height: 38px; padding: 10px 12px; }
  .masthead-menu .header-tools { display: grid; width: 100%; margin: 0; gap: 6px; padding-top: 10px; border-top: 1px solid #c5ced5; }
  .masthead-menu .database-version-switcher, .masthead-menu .account-menu { width: 100%; }
  .masthead-menu .database-version-switcher > summary, .masthead-menu .account-menu > summary { width: 100%; max-width: none; min-height: 38px; padding: 8px 10px; justify-content: space-between; border: 1px solid #c3d2e0; background: #fff; }
  .masthead-menu .database-version-menu, .masthead-menu .account-menu-panel { position: static; width: 100%; min-width: 0; margin-top: 4px; box-shadow: none; }
}
@media (max-width: 640px) { .brand-first { font-size: 21px; } .brand-last { font-size: 11px; } dl { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 430px) { .brand img { width: 38px; } }
@media (max-width: 520px) {
  .database-version-switcher > summary span { display: none; }
  .database-version-menu { width: min(280px, calc(100vw - 20px)); min-width: 0; }
  .database-version-option, button.database-version-option { min-height: 40px; padding: 10px 11px; }
}
