/* Registry: a focused workspace with the same navy, cobalt and cyan as Home. */
body[data-design-page="registry"] { --canvas: #091426; }
body[data-design-page="registry"] .portal-sidebar { background: #0b1729; border-right-color: #213650; padding-top: 27px; }
body[data-design-page="registry"] .portal-brand { font-size: 16px; }
body[data-design-page="registry"] .brand-symbol { background: #1465ef; border-color: #428cff; color: white; box-shadow: 0 6px 26px #145fe533; }
body[data-design-page="registry"] .sidebar-label { color: #7d99bb; font-size: 9px; padding-top: 38px; }
body[data-design-page="registry"] .portal-nav { gap: 8px; }
body[data-design-page="registry"] .portal-nav a { color: #b9cce6; font-size: 13px; padding: 14px 13px; }
body[data-design-page="registry"] .portal-nav a.is-current { background: linear-gradient(110deg,#1569f5,#175bce); border-color: #478dff; box-shadow: 0 5px 22px #005dff30; }
body[data-design-page="registry"] .portal-nav a.is-current .material-symbols-outlined { color: white; }
body[data-design-page="registry"] .sidebar-account { background: #13233a; border-color: #2a4160; }
body[data-design-page="registry"] .sidebar-region { color: #9ab6d9; border-color: #273d58; }

#page-registry main { background: radial-gradient(ellipse at 90% 0%,#19427550,transparent 45%),#091426!important; padding: 0 30px; }
#page-registry .registry-titlebar { padding: 30px 0 20px; gap: 20px; position: relative; z-index: 60; align-items: center; }
#page-registry .registry-eyebrow { display: flex; align-items: center; gap: 12px; color: #7995bb; font-size: 11px; margin-bottom: 19px; }
#page-registry .registry-eyebrow a { color: #b3c8e6; }
#page-registry .registry-eyebrow a:hover { color: #77ddff; }
#page-registry .registry-eyebrow > span { color: #476181; }
#page-registry .registry-titlebar h1 { display: flex; align-items: center; gap: 13px; font-size: 36px; letter-spacing: -1px; line-height: 1.12; color: #f2f7ff; }
#page-registry #design-registry-count { font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0; color: #87d8ff; background: #153354; border: 1px solid #295680; padding: 7px 9px; border-radius: 7px; }
#page-registry .registry-titlebar p { font-size: 12px; color: #94aac7; margin-top: 11px; }
#page-registry .registry-actions { display: flex; align-items: center; gap: 10px; padding-top: 28px; flex-shrink: 0; }
#page-registry .registry-map-link, #registry-export-menu > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 9px; border: 1px solid #355071; font-size: 12px; font-weight: 500; color: #d1e3fa; background: #142840; cursor: pointer; transition: background .2s,box-shadow .2s,transform .2s; }
#page-registry .registry-map-link:hover { background: #203c5d; transform: translateY(-1px); }
#registry-export-menu { position: relative; }
#registry-export-menu > summary { list-style: none; background: #2279fa; border-color: #5e9eff; color: white; box-shadow: 0 5px 22px #0661ed40; }
#registry-export-menu > summary::-webkit-details-marker { display: none; }
#registry-export-menu > summary:hover, #registry-export-menu[open] > summary { background: #3b8aff; }
#page-registry .registry-actions .material-symbols-outlined { font-size: 19px; }
.registry-export-popover { position: absolute; right: 0; top: calc(100% + 10px); width: 275px; padding: 8px; background: #13243b; border: 1px solid #3a5475; border-radius: 12px; box-shadow: 0 20px 55px #020813aa; transform-origin: top right; animation: registry-menu-in .16s ease-out both; }
.registry-export-heading { padding: 9px 10px 13px; color: #f1f6ff; font-size: 13px; font-weight: 600; }
.registry-export-heading > span { display: block; color: #89a3c5; font-size: 11px; margin-top: 5px; font-weight: 400; }
#registry-export-list { display: flex; flex-direction: column; gap: 3px; }
#registry-export-list .registry-export-item { display: flex; justify-content: flex-start; padding: 10px; gap: 11px; background: none; border: 0; color: #d5e5f9; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; border-radius: 6px; box-shadow: none; }
#registry-export-list .registry-export-item:hover { background: #224265; color: white; }
#registry-export-list .registry-export-item:disabled { opacity: .4; cursor: not-allowed; }
#registry-export-list .registry-export-item .material-symbols-outlined { color: #77c9ff; }
#registry-export-list .registry-export-item:nth-child(3) { margin-top: 5px; border-top: 1px solid #2e4360; border-radius: 0 0 6px 6px; padding-top: 13px; }

#page-registry .registry-overview { display: flex; align-items: center; gap: 0; padding: 0 0 23px; flex: none; }
.registry-overview > div { display: flex; align-items: center; gap: 8px; padding: 0 23px; border-right: 1px solid #29405a; font-size: 11px; color: #91a9c8; }
.registry-overview > div:first-child { padding-left: 0; }
.registry-overview > div:last-child { border: 0; }
.registry-overview .material-symbols-outlined { color: #68baff; font-size: 18px; }
.registry-overview > div:nth-child(2) .material-symbols-outlined { color: #66e4bc; }
.registry-overview > div:nth-child(3) .material-symbols-outlined { color: #68baff; }
.registry-overview strong { color: #e4efff; font-size: 15px; font-weight: 600; }
#page-registry main > header.registry-command { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0 0 20px; padding: 17px; background: #13243b!important; border: 1px solid #2a4262; border-radius: 13px; backdrop-filter: none; z-index: 40; }
#page-registry main > header.registry-command { flex-wrap: nowrap; }
#page-registry main > header.registry-command > .registry-search { position: relative; width: 100%; min-width: 0!important; max-width: none!important; flex: 0 0 auto; }
#page-registry #search-input { min-height: 46px; padding: 12px 44px 12px 43px; border-radius: 8px; background: #0d1c30; color: #e2edf9; border: 1px solid #3b526f; font-size: 13px; box-shadow: inset 0 1px 3px #0002; }
#page-registry #search-input::placeholder { color: #98adc6; }
#page-registry #search-input:focus { border-color: #62c7ff; outline: 3px solid #388af44d; }
#page-registry .registry-search > span { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; padding-left: 13px; }
#page-registry .registry-search .material-symbols-outlined { color: #87b5e7!important; font-size: 21px!important; }
#page-registry main > header #search-clear { position: absolute; inset: 0 0 0 auto; padding: 0 13px; background: transparent; border: 0; }
#page-registry .registry-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 0; }
#page-registry .registry-filters > div, #page-registry .registry-filters > div:first-child { display: block; min-width: 0; padding: 0; margin: 0; }
#page-registry .registry-filters label { font-size: 10px; color: #9bb2d0; margin-bottom: 5px; }
#page-registry .registry-filters select { width: 100%; min-height: 37px; padding: 8px 30px 8px 11px; color: #d5e5f9; border: 1px solid #354e70; background-color: #102038; border-radius: 7px; font-size: 12px; }
#page-registry .registry-filters select.is-filtered { border-color: #429dff; background-color: #19385d; color: #99d5ff; }
#page-registry .registry-filters > div:last-child { align-self: end; }
#page-registry main > header #reg-reset-filters { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; padding: 7px 13px; background: #233955; border: 1px solid #3b5578; color: #cce2ff; font-size: 11px; border-radius: 7px; }
#page-registry main > header #reg-reset-filters:disabled { opacity: .45; cursor: default; }
#reg-reset-filters .material-symbols-outlined { font-size: 18px!important; }

#page-registry .registry-table-area { border: 1px solid #29415f; border-radius: 12px; background: #0f1e33; }
#page-registry main > .registry-table-area > .registry-table-toolbar { display: flex; gap: 12px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid #29415f; background: #14253d; }
#page-registry .registry-table-toolbar > div:nth-child(2) { margin-left: auto; }
#page-registry .registry-table-toolbar h2 { font-size: 14px; font-weight: 600; color: #e8f1ff; display: flex; gap: 9px; align-items: center; }
#registry-found { font-weight: 500; background: #263e5d; color: #a6c9f1; font-size: 10px; padding: 3px 6px; border-radius: 5px; }
.registry-table-hint { color: #849dbc; font-size: 10px; }
.registry-table-toolbar.has-selection .registry-table-hint { display: none; }
#page-registry #selected-count { font-size: 11px; font-weight: 500; color: #70e4c0; }
#page-registry #clear-selection { font-size: 10px; text-transform: none; font-weight: 500; padding: 5px 9px; background: #24415d; border-radius: 5px; }
#page-registry .registry-table-scroll { background: #0f1e33; scrollbar-color: #3b5778 #102039; }
#page-registry #registry-table { width: 100%; min-width: 1030px; font-size: 12px; }
#registry-table th { padding: 13px 10px; min-width: 0!important; white-space: nowrap; background: #182c46; border-top: 0; color: #b1c8e5; font-size: 10px; box-shadow: 0 1px #344b68; }
#registry-table th[onclick]:hover { background: #224062; color: white; }
#registry-table th[aria-sort="ascending"], #registry-table th[aria-sort="descending"] { color: #75cbff; }
#registry-table th:first-child { width: 36px; }
#registry-table th:nth-child(2) { width: 76px; }
#registry-table th:nth-child(3) { width: 32%; }
#registry-table th:nth-child(4) { width: 128px; }
#registry-table th:nth-child(5), #registry-table th:nth-child(6) { width: 62px; }
#registry-table th:nth-child(7) { width: 94px; }
#registry-table th:nth-child(8) { width: 96px; }
#registry-table th:nth-child(9) { width: 156px; white-space: normal; }
#registry-table th:nth-child(10) { width: 40px; }
#registry-table td { padding: 13px 10px; border-bottom: 1px solid #253954; line-height: 1.45; font-weight: 400; }
#registry-table tbody tr { background: #0f1e33; transition: background .18s; }
#registry-table tbody tr:nth-child(even) { background: #13233a; }
#registry-table tbody tr:hover { background: #1a3455!important; }
#registry-table tbody tr:has(input:checked) { background: #183f68!important; }
#registry-table td:nth-child(2) { color: #81a5d1; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#registry-table .registry-address { display: flex; align-items: center; gap: 11px; min-width: 240px; text-decoration: none; }
#registry-table .registry-house-icon { display: grid; place-items: center; width: 48px; height: 45px; overflow: hidden; border: 1px solid #375779; background: linear-gradient(150deg,#25476c,#16304d); border-radius: 7px; color: #80c6ff; flex: none; }
#registry-table .registry-house-icon .material-symbols-outlined { font-size: 19px; }
#registry-table .registry-house-icon img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; animation: registry-photo-in .2s ease-out; }
#registry-table .registry-address:hover .registry-house-icon img { transform: scale(1.06); }
#registry-table .registry-house-icon[data-photo-state="loading"] .material-symbols-outlined { opacity: .4; }
@keyframes registry-photo-in { from { opacity: 0; } to { opacity: 1; } }
#registry-table .registry-address strong { color: #e6efff; display: block; font-size: 13px; font-weight: 600; line-height: 1.45; }
#registry-table .registry-address small { color: #90a8c8; display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; }
#registry-table .registry-address:hover strong { color: #8ddbff; }
#registry-table td:nth-child(4) > span { font-size: 10px; padding: 5px 8px; border-radius: 5px; white-space: nowrap; background: #263751; border-color: #405672; color: #bdcee5; }
#registry-table td:nth-child(5), #registry-table td:nth-child(6), #registry-table td:nth-child(7), #registry-table td:nth-child(8), #registry-table td:nth-child(9) { color: #92a8c6; font-size: 11px; }
#registry-table td:nth-child(8) { text-align: center; }
#registry-table td:nth-child(8) > .text-slate-500 { color: #7c96b8; }
#registry-table tr:not(.registry-empty-row) td:last-child button { border: 1px solid #355477; background: #1a3554; border-radius: 6px; color: #9dcaff; width: 27px; height: 27px; display: grid; place-items: center; }
#registry-table tr:not(.registry-empty-row) td:last-child button:hover { background: #2875cf; color: white; }
#registry-table tr:not(.registry-empty-row) td:last-child button .material-symbols-outlined { font-size: 14px!important; }
#registry-table input { width: 15px; height: 15px; accent-color: #3b94ff; }
#registry-table .registry-wear { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 82px; }
#registry-table .registry-wear strong { color: var(--wear-color); font-size: 14px; font-weight: 650; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
#registry-table .registry-wear-track { display: block; height: 7px; overflow: hidden; border-radius: 8px; background: #26384e; box-shadow: inset 0 0 0 1px #b2c5de10; }
#registry-table .registry-wear-track i { display: block; height: 100%; border-radius: inherit; background: var(--wear-color); }
/* Each house reads as one calm, clearly structured row. */
#page-registry #registry-table { border-collapse: separate; border-spacing: 0 6px; min-width: 1160px; }
#registry-table th { padding-top: 12px; padding-bottom: 12px; font-size: 11px; }
#registry-table th:nth-child(3) { width: 34%; }
#registry-table th:nth-child(4) { width: 144px; }
#registry-table th:last-child { width: 54px; }
#registry-table tbody tr:not(.registry-empty-row) { background: linear-gradient(100deg,#162a43,#12233a 65%,#14273e); }
#registry-table tbody tr:not(.registry-empty-row) > td { height: 88px; padding: 14px 10px; vertical-align: middle; border-top: 1px solid #2c4560; border-bottom: 1px solid #2c4560; }
#registry-table tbody tr:not(.registry-empty-row) > td:first-child { border-left: 1px solid #2c4560; border-radius: 10px 0 0 10px; transition: box-shadow .18s; }
#registry-table tbody tr:not(.registry-empty-row) > td:last-child { border-right: 1px solid #2c4560; border-radius: 0 10px 10px 0; text-align: center; }
#registry-table tbody tr:not(.registry-empty-row):is(:hover,:focus-within) { background: linear-gradient(100deg,#1c3859,#18304e 65%,#1b3553)!important; }
#registry-table tbody tr:not(.registry-empty-row):is(:hover,:focus-within) > td { border-color: #406588; }
#registry-table tbody tr:not(.registry-empty-row):is(:hover,:focus-within) > td:first-child { box-shadow: inset 3px 0 #58b7ff; }
#registry-table tbody tr:not(.registry-empty-row):has(input:checked) { background: #193c60!important; }
#registry-table tbody tr:not(.registry-empty-row):has(input:checked) > td:first-child { box-shadow: inset 3px 0 #58b7ff; }
#registry-table .registry-id { display: inline-block; padding: 5px 6px; border: 1px solid #38516c; border-radius: 6px; color: #afc9e6; background: #0c1b2c66; font-size: 10px; line-height: 1; }
#registry-table .registry-address { gap: 14px; min-width: 280px; }
#registry-table .registry-house-icon { width: 76px; height: 58px; border-radius: 9px; border-color: #496683; box-shadow: 0 3px 10px #0003; }
#registry-table .registry-house-icon .material-symbols-outlined { font-size: 25px; }
#registry-table .registry-address > span:last-child { min-width: 0; }
#registry-table .registry-address strong { font-size: 14px; line-height: 1.35; }
#registry-table .registry-address small { margin-top: 5px; font-size: 11px; line-height: 1.45; color: #a2b8d0; }
#registry-table td:nth-child(4) > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: #0d1e3266; border-color: #3a536e; font-size: 10px; }
#registry-table td:nth-child(4) > span::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; opacity: .8; }
#registry-table td:is(:nth-child(5),:nth-child(6),:nth-child(7)) { color: #d6e4f6; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; font-family: inherit; }
#registry-table td:nth-child(9) { font-size: 12px; line-height: 1.5; color: #b3c8df; }
#registry-table .registry-wear { width: 80px; gap: 7px; padding: 9px 8px; border-radius: 8px; background: #09182966; }
#registry-table .registry-wear strong { font-size: 14px; }
#registry-table .registry-wear-track { height: 5px; background: #31455d; }
#page-registry #registry-table tr:not(.registry-empty-row) td:last-child button { display: inline-grid; place-items: center; width: 36px; height: 36px; min-width: 36px; padding: 0; line-height: 0; border-radius: 10px; border-color: #426589; background: #1c3b5c; transition: background .18s,border-color .18s; }
#registry-table .registry-card-arrow { display: block; width: 18px; height: 18px; transform: none; }
#page-registry #registry-table tr:not(.registry-empty-row):is(:hover,:focus-within) td:last-child button { background: #235185; border-color: #629ed1; color: #d9eeff; }
#page-registry #pagination-footer { background: #14253d!important; border-color: #314968; padding: 12px 18px; gap: 12px; }
#page-registry #pagination-info { color: #acc2df; font-size: 11px; }
#page-registry #rows-per-page { font-size: 11px; border-radius: 5px; background-color: #203855; border-color: #3a5374; padding: 5px 23px 5px 8px; }
#page-registry #pagination-controls button { height: 30px; width: 30px; font-size: 11px; border: 1px solid #35516f; background: #203651; border-radius: 6px; color: #c5d9f3; }
#page-registry #pagination-controls button.bg-primary { background: #247bfa; color: white; border-color: #5d9cff; }
#page-registry #pagination-controls button:disabled { opacity: .35; }
#page-registry main > .registry-service-footer { padding: 12px 0; border: 0; background: transparent!important; font-size: 8px; color: #6d88ac; }
#registry-table .registry-empty-row > td { padding: 0; }
#registry-table .registry-empty-row:hover { background: #0f1e33!important; }
.registry-empty { padding: 45px 20px; text-align: center; }
.registry-empty > .material-symbols-outlined { padding: 14px; background: #1c3555; border-radius: 16px; color: #7ebafa; font-size: 32px; }
.registry-empty h3 { font-size: 18px; font-weight: 600; color: #e3efff; margin-top: 18px; }
.registry-empty p { font-size: 12px; color: #95aeca; margin: 8px 0 18px; }
#registry-table .registry-empty button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 40px; height: auto; max-width: 100%; padding: 10px 18px; border-radius: 8px; white-space: nowrap; font-size: 12px; font-weight: 500; border: 1px solid #468df0; color: white; background: #216fe0; transition: background .18s,border-color .18s; }
#registry-table .registry-empty button:hover { background: #3282f2; border-color: #7ab3ff; }
#page-registry :is(button,a,summary,select,th):focus-visible { outline: 2px solid #70d0ff; outline-offset: 3px; }
@keyframes registry-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes registry-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
#page-registry.is-active .registry-command, #page-registry.is-active .registry-table-area { animation: registry-enter .28s ease-out both; }

@media (max-width: 1150px) {
  #page-registry main { padding: 0 20px; }
  .registry-overview > div { padding: 0 12px; gap: 6px; }
  .registry-overview > div > span:last-child { font-size: 10px; }
  #page-registry .registry-titlebar h1 { font-size: 31px; }
  #page-registry .registry-titlebar p { font-size: 11px; }
  #page-registry .registry-actions { gap: 7px; }
  #page-registry .registry-map-link, #registry-export-menu > summary { padding: 10px 12px; }
}
@media (max-width: 700px) {
  #page-registry main { padding: 0 14px; overflow-y: auto!important; }
  #page-registry .registry-titlebar { padding: 20px 0 18px; flex-wrap: wrap; gap: 16px; }
  #page-registry .registry-eyebrow { font-size: 10px; margin-bottom: 14px; }
  #page-registry .registry-titlebar h1 { font-size: 30px; }
  #page-registry .registry-titlebar p { font-size: 11px; }
  #page-registry .registry-actions { padding: 0; width: 100%; }
  #page-registry .registry-map-link { flex: 1; justify-content: center; }
  #registry-export-menu { flex: 1; }
  #registry-export-menu > summary { justify-content: center; }
  #page-registry .registry-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 6px; padding-bottom: 20px; }
  .registry-overview > div { padding: 0; border: 0; font-size: 10px; }
  .registry-overview > div > span:last-child { font-size: 10px; }
  .registry-overview strong { font-size: 13px; }
  #page-registry main > header.registry-command { padding: 12px; gap: 13px; margin-bottom: 15px; }
  #page-registry #search-input { font-size: 11px; min-height: 44px; text-overflow: ellipsis; }
  #page-registry .registry-filters { grid-template-columns: 1fr 1fr; gap: 11px; }
  #page-registry .registry-filters > div { min-width: 0; }
  #page-registry .registry-filters select { font-size: 11px; }
  #page-registry .registry-filters > div:last-child { min-width: 0; }
  #page-registry main > .registry-table-area { flex: none; min-height: 350px; height: 62dvh; overflow: hidden; }
  #page-registry main > .registry-table-area > .registry-table-toolbar { padding: 12px; gap: 8px; }
  #page-registry .registry-table-toolbar h2 { font-size: 13px; }
  .registry-table-hint { display: none; }
  #page-registry #registry-table { min-width: 1160px; }
  #registry-table th:first-child, #registry-table td:first-child { position: sticky; left: 0; background: #172c46; z-index: 3; }
  #registry-table th:first-child { z-index: 25; }
  #page-registry #pagination-footer { padding: 10px 12px; flex-wrap: wrap; gap: 10px; }
  #pagination-footer > div:first-child { justify-content: space-between; width: 100%; }
  #page-registry #pagination-info { font-size: 10px; }
  #pagination-controls { width: 100%; justify-content: center; }
  #page-registry main > .registry-service-footer { padding: 14px 0; font-size: 7px; }
  .registry-export-popover { width: 265px; }
  #registry-table .registry-empty { width: calc(100vw - 60px); position: sticky; left: 0; padding: 30px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #page-registry, #page-registry *, #page-registry *::before, #page-registry *::after { animation-duration: .001ms!important; transition-duration: .001ms!important; scroll-behavior: auto!important; }
}
