:root { font-family: Arial, Helvetica, sans-serif; color: #202b38; background: #f4f7fa; font-size: 15px; }
* { box-sizing: border-box; } body { margin: 0; }
.topbar { background: white; border-bottom: 1px solid #dce3eb; padding: 18px 32px; display: flex; justify-content: space-between; gap: 16px; }
.topbar span { font-size: 13px; color: #56677b; }
main { max-width: 1200px; margin: auto; padding: 32px 28px 60px; }
h1 { font-size: 26px; margin: 0 0 8px; } h2 { font-size: 18px; margin: 0; }
.api-connection { margin: 18px 0 24px; padding: 14px 16px; border: 1px solid #c7d3e0; border-radius: 6px; background: white; }
.api-connection > div { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
#apiEndpoint { color: #005be0; overflow-wrap: anywhere; }
#apiStatus { margin-left: auto; font-size: 13px; font-weight: bold; color: #237543; }
#apiStatus[data-state="error"] { color: #c62828; }
#apiLastRequest { margin-bottom: 0; font-size: 12px; overflow-wrap: anywhere; }
p { color: #56677b; line-height: 1.5; margin: 8px 0; }
.toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin: 26px 0; }
label { display: block; color: #4e637c; font-size: 14px; margin-bottom: 18px; }
input, select { display: block; width: 100%; height: 54px; background: white; border: 1px solid #d5dee8; border-radius: 4px; color: #202b38; font: inherit; font-size: 16px; padding: 12px 15px; margin-top: 8px; min-width: 0; }
input:focus, select:focus { outline: 2px solid #0b6cf2; outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
.modes { display: grid; grid-template-columns: 1fr 1fr; height: 54px; margin-bottom: 18px; }
.modes button { background: transparent; border: 1px solid #c7d3e0; color: #4e637c; }
.modes button[aria-pressed="true"] { background: #e3edf8; color: #005be0; }
.address-control { position: relative; margin-bottom: 18px; }.address-control label { margin-bottom: 0; }
.standardization { min-height: 21px; margin: 0 0 8px; font-size: 14px; font-weight: 600; font-style: italic; text-align: right; }
.standardization.not-standardized { color: #c62828; }
.standardization.standardized { color: #0060cf; }
.locality { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.actions { display: flex; justify-content: center; gap: 14px; padding: 16px 0 26px; }
.primary, .secondary { min-height: 48px; padding: 12px 28px; border-radius: 6px; font-weight: 600; }
.primary { background: #0069f5; border: 1px solid #0069f5; color: white; }.secondary { border: 1px solid #202b38; color: #202b38; background: transparent; }
button:disabled { opacity: .55; cursor: wait; } #lookupStatus { min-height: 23px; font-size: 13px; }
#dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: white; border: 1px solid #c7d3e0; border-radius: 4px; box-shadow: 0 8px 22px #202b3820; }
#suggestionSource { padding: 10px 16px; background: #f0f5fa; color: #4e637c; font-size: 12px; font-weight: 700; }
#suggestions { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
#suggestions li { padding: 13px 16px; border-top: 1px solid #edf0f4; cursor: pointer; }
#suggestions li[data-source="master"] { background: #e9f2ff; }
#suggestions li[data-source="master"]:hover, #suggestions li[data-source="master"][aria-selected="true"] { background: #d6e7ff; }
#suggestions li[data-source="nad"] { background: #fff8d9; }
#suggestions li[data-source="nad"]:hover, #suggestions li[data-source="nad"][aria-selected="true"] { background: #ffefb0; }
#dropdown[data-source="master"] #suggestionSource { background: #d6e7ff; }
#dropdown[data-source="nad"] #suggestionSource { background: #ffefb0; }
#selectedAddress { padding: 16px; border-radius: 4px; }
#selectedAddress[data-source="master"] { background: #e9f2ff; }
#selectedAddress[data-source="nad"] { background: #fff8d9; }
#suggestions strong { display: block; font-size: 15px; } #suggestions small { display: block; margin-top: 5px; color: #56677b; }
section { border-top: 1px solid #d5dee8; padding: 24px 0; }.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.badge { font-size: 12px; padding: 6px 10px; background: #e5f3eb; color: #237543; border-radius: 4px; }
.match { padding: 16px 0; border-bottom: 1px solid #dce3eb; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.match p { font-size: 13px; }.match button { padding: 9px 14px; border-radius: 4px; background: white; color: #0060cf; border: 1px solid #b5c9df; flex-shrink: 0; }
pre { overflow: auto; max-height: 360px; padding: 16px; background: #202b38; color: #eef5fc; border-radius: 4px; font-size: 12px; } details { margin-top: 20px; } summary { cursor: pointer; color: #4e637c; }
[hidden] { display: none !important; }
.record-tabs { display: flex; border-bottom: 1px solid #c7d3e0; margin-bottom: 18px; }
.record-tabs button { background: transparent; border: 0; padding: 12px 16px; color: #56677b; border-bottom: 2px solid transparent; }
.record-tabs button[aria-selected="true"] { border-bottom-color: #0069f5; color: #0060cf; }
.record-search { max-width: 480px; }.record-search input { height: 42px; font-size: 14px; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #dce3eb; vertical-align: top; }
th { background: #eaf0f6; color: #4e637c; white-space: nowrap; } td { min-width: 65px; } td:nth-child(3) { min-width: 180px; }
.record-tool { height: 36px; min-width: 36px; font-size: 20px; border: 1px solid #c7d3e0; background: white; border-radius: 4px; color: #4e637c; }
.delete-record { color: #c62828; }.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; font-size: 13px; }
dialog { max-width: 480px; width: calc(100% - 32px); border: 1px solid #c7d3e0; border-radius: 6px; padding: 24px; } dialog::backdrop { background: #202b3866; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }.danger { border: 1px solid #c62828; background: #c62828; color: white; border-radius: 6px; padding: 12px 20px; }
@media (max-width: 650px) { main { padding: 24px 16px; }.topbar { padding: 16px; }.toolbar { grid-template-columns: 1fr; gap: 0; margin-bottom: 16px; }.locality { grid-template-columns: 1fr; gap: 0; }.actions { flex-wrap: wrap; }.match { align-items: start; }.section-heading { flex-wrap: wrap; } }
