:root {
  color-scheme: light;
  --navy-950: #061630;
  --navy-900: #081f42;
  --navy-800: #0d2d5a;
  --blue-700: #064fd6;
  --blue-600: #0b63f6;
  --blue-100: #e8f0ff;
  --ink-900: #0b1735;
  --ink-700: #2c3c60;
  --ink-500: #63708c;
  --line: #dbe3ef;
  --surface: #ffffff;
  --surface-soft: #f5f8fd;
  --success: #137a49;
  --warning: #8a5700;
  --danger: #a42828;
  --shadow: 0 22px 60px rgba(8, 31, 66, 0.12);
  --radius-lg: 26px;
  --radius-md: 17px;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  color: var(--ink-900);
  background: #f7f9fc;
  line-height: 1.55;
}

img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-700);
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.public-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: linear-gradient(115deg, var(--navy-950), var(--navy-800));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img { width: 166px; display: block; }

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.public-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #dce7fb;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.public-nav a:hover, .public-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.public-nav .nav-cta { margin-left: 8px; padding-inline: 18px; color: #fff; background: var(--blue-600); box-shadow: 0 8px 24px rgba(11, 99, 246, 0.3); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(247, 250, 255, 0.99) 35%, rgba(247, 250, 255, 0.8)),
    radial-gradient(circle at 80% 15%, #d3e4ff, transparent 38%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(6, 79, 214, 0.07) 49%, rgba(6, 79, 214, 0.07) 51%, transparent 52%),
    linear-gradient(120deg, transparent 48%, rgba(6, 79, 214, 0.06) 49%, rgba(6, 79, 214, 0.06) 51%, transparent 52%);
  background-size: 82px 82px;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1, .page-hero h1, .auth-panel h1, .explorer-shell h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-700);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.search-panel {
  margin-top: 34px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(156, 176, 207, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.search-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.search-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--ink-500);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.search-tab[aria-selected="true"] { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.search-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 18px; }
.field-label { display: block; margin: 0 0 7px; font-size: 0.83rem; font-weight: 850; }
.search-field-wrap input, .auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid #bdc9da;
  border-radius: 12px;
}
.search-field-wrap input:focus, .auth-form input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.11); outline: 0; }
.search-field-wrap { position: relative; min-width: 0; }
.address-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% - 30px);
  left: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #b9c9df;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(8, 31, 66, 0.2);
}
.address-suggestion { width: 100%; display: grid; gap: 2px; padding: 11px 13px; color: var(--ink-900); background: #fff; border: 0; border-bottom: 1px solid #edf1f6; text-align: left; cursor: pointer; }
.address-suggestion:hover, .address-suggestion[aria-selected="true"] { background: var(--blue-100); }
.address-suggestion strong { font-size: 0.88rem; }
.address-suggestion small { color: var(--ink-500); font-size: 0.72rem; }
.suggestions-source { margin: 0; padding: 8px 13px; color: var(--ink-500); background: #f7f9fc; font-size: 0.68rem; }
.search-actions { display: flex; align-items: end; gap: 8px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: #fff; background: var(--blue-600); box-shadow: 0 9px 24px rgba(11, 99, 246, 0.24); }
.button-primary:hover { background: var(--blue-700); }
.button-secondary { color: var(--navy-900); background: #fff; border-color: #b9c7db; }
.button-secondary:hover { background: var(--surface-soft); }
.button:disabled { cursor: not-allowed; opacity: 0.6; box-shadow: none; }
.search-example, .search-note, .form-note { margin: 8px 0 0; color: var(--ink-500); font-size: 0.8rem; }
.search-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.search-note::before { content: "i"; flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: var(--blue-600); border-radius: 50%; font-size: 0.72rem; font-weight: 900; }
.search-status { min-height: 1.4em; margin: 9px 0 0; color: var(--success); font-size: 0.82rem; font-weight: 750; }
.search-status[data-kind="error"] { color: var(--danger); }
.search-status[data-kind="warning"] { color: var(--warning); }

.hero-visual { position: relative; min-height: 510px; }
.map-card {
  position: absolute;
  inset: 18px 0 0 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #dfe9dc, #f0e7d8);
  border: 8px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.map-card::before, .map-card::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.72); transform: rotate(-23deg); }
.map-card::before { width: 150%; height: 38px; left: -20%; top: 44%; }
.map-card::after { width: 38px; height: 150%; left: 48%; top: -24%; }
.building-shape { position: absolute; z-index: 2; width: 130px; height: 190px; top: 130px; left: 42%; background: rgba(30, 91, 207, 0.12); border: 3px solid var(--blue-600); transform: rotate(-12deg); }
.map-pin { position: absolute; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--blue-600); border: 4px solid #fff; border-radius: 50% 50% 50% 8px; box-shadow: 0 7px 15px rgba(6, 79, 214, 0.32); transform: rotate(-45deg); }
.map-pin span { transform: rotate(45deg); font-weight: 900; }
.pin-one { top: 86px; left: 22%; }
.pin-two { right: 14%; bottom: 84px; background: #1e9b58; }
.result-preview {
  position: absolute;
  z-index: 4;
  right: -12px;
  bottom: 6px;
  width: min(310px, 86%);
  padding: 18px;
  background: #fff;
  border: 1px solid #cbd7e7;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.preview-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.energy-badge { width: 56px; height: 68px; display: grid; place-items: center; color: #fff; background: #209b55; border-radius: 10px; font-size: 1.8rem; font-weight: 900; }
.preview-row strong, .preview-row span { display: block; }
.preview-row span { color: var(--ink-500); font-size: 0.82rem; }

.benefits { width: min(1180px, calc(100% - 40px)); margin: -2px auto 0; padding: 36px 0 52px; }
.section-heading { max-width: 700px; margin-bottom: 22px; }
.section-heading h2, .pro-section h2, .content-card h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; }
.section-heading p { margin: 10px 0 0; color: var(--ink-500); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 8px 28px rgba(8, 31, 66, 0.05); }
.benefit-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue-700); background: var(--blue-100); border-radius: 14px; font-size: 1.3rem; font-weight: 900; }
.benefit-card h3 { margin: 16px 0 7px; font-size: 1.05rem; }
.benefit-card p { margin: 0; color: var(--ink-500); font-size: 0.91rem; }

.trust-strip { color: #fff; background: var(--navy-950); }
.trust-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.18); }
.trust-item { padding: 6px 28px; background: var(--navy-950); }
.trust-item strong { display: block; }
.trust-item span { color: #b9c9e7; font-size: 0.82rem; }

.pro-section { padding: 58px 20px 68px; background: #fff; }
.pro-shell { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 42px; align-items: center; }
.pro-copy p { color: var(--ink-500); }
.pro-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pro-list span { padding: 15px; color: var(--navy-900); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; font-size: 0.88rem; font-weight: 750; }

.page-hero { color: #fff; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.page-hero-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 62px; }
.page-hero h1 { max-width: 780px; font-size: clamp(2.35rem, 5vw, 4.3rem); }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: #c8d7ef; font-size: 1.05rem; }
.content-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 72px; }
.content-card { margin-bottom: 18px; padding: clamp(22px, 4vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.content-card h2 { font-size: 1.55rem; }
.content-card h3 { margin: 24px 0 8px; }
.content-card p, .content-card li { color: var(--ink-700); }
.content-card a { color: var(--blue-700); font-weight: 750; }
.content-card ul { padding-left: 22px; }
.draft-banner { margin-bottom: 20px; padding: 16px 18px; color: #654200; background: #fff4d6; border: 1px solid #efd18a; border-radius: 14px; font-weight: 750; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--navy-900); background: var(--surface-soft); }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr); background: #fff; }
.auth-aside { position: relative; overflow: hidden; padding: 44px; color: #fff; background: linear-gradient(145deg, var(--navy-950), #0a3570); }
.auth-aside::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -160px; border: 72px solid rgba(255, 255, 255, 0.08); border-radius: 50%; }
.auth-aside .brand { position: relative; z-index: 1; }
.auth-aside-copy { position: relative; z-index: 1; max-width: 520px; margin: 18vh auto 0; }
.auth-aside h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 4.1rem); line-height: 1; letter-spacing: -0.05em; }
.auth-aside p { color: #c8d7ef; }
.auth-main { min-width: 0; display: grid; place-items: center; padding: 34px; background: var(--surface-soft); }
.auth-panel { min-width: 0; width: min(480px, 100%); padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-panel-wide { width: min(560px, 100%); }
.auth-panel h1 { font-size: 2.45rem; }
.auth-panel > p { color: var(--ink-500); }
.auth-form { display: grid; gap: 14px; margin-top: 22px; }
.auth-form label { display: grid; gap: 6px; color: var(--ink-700); font-size: 0.85rem; font-weight: 800; }
.auth-form label span { color: var(--ink-500); font-size: 0.72rem; font-weight: 650; }
.auth-form .service-check { grid-template-columns: 20px 1fr; align-items: start; line-height: 1.45; }
.auth-form .service-check input { width: 18px; height: 18px; margin: 1px 0 0; }
.auth-form .button { width: 100%; margin-top: 4px; }
.compact-auth-form { margin-top: 12px; }
.compact-auth-form .text-button { min-height: 44px; padding: 8px 0; border: 0; color: var(--blue-700); background: transparent; text-align: left; font: inherit; font-weight: 750; cursor: pointer; }
.form-alert { margin: 16px 0; padding: 12px 14px; border-radius: 11px; font-size: 0.9rem; }
.form-alert-error { color: var(--danger); background: #fff0f0; border: 1px solid #f0c4c4; }
.form-alert-success { color: #1e633b; background: #edf9f1; border: 1px solid #c7e7d2; }
.provider-separator { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; color: var(--ink-500); font-size: 0.78rem; }
.provider-separator::before, .provider-separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-grid { min-width: 0; display: grid; gap: 10px; min-height: 44px; }
.provider-button { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-500); background: #f7f9fc; font-weight: 750; }
.google-provider, #googleButton { min-width: 0; width: 100%; max-width: 100%; }
.google-provider { display: grid; justify-items: center; min-height: 44px; }
#googleButton { overflow: hidden; }
.provider-unavailable { padding: 11px 13px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-500); background: #f7f9fb; font-size: 0.78rem; line-height: 1.45; text-align: center; }
.auth-action-page .auth-panel { min-height: 280px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 0.84rem; }
.auth-links a { color: var(--blue-700); font-weight: 750; }

.explorer-page { min-height: 100vh; background: linear-gradient(180deg, #eef4ff, #f8fafc 42%); }
.explorer-shell { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.explorer-shell h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.explorer-intro { color: var(--ink-500); }
.context-ready, .context-empty { margin-top: 28px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.context-ready { border-left: 6px solid var(--success); }
.context-label { display: block; color: var(--success); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.context-ready strong, .context-empty strong { display: block; margin-top: 7px; font-size: clamp(1.25rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.context-ready p, .context-empty p { margin-bottom: 0; color: var(--ink-500); }
.explorer-actions { display: flex; gap: 10px; margin-top: 20px; }

.results-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 54px; }
.results-search { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(500px, 1.2fr); gap: 30px; align-items: end; padding: 26px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.results-search h1 { margin: 3px 0 8px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.02; }
.results-lead { max-width: 650px; margin: 0; color: var(--ink-500); font-size: 0.9rem; }
.results-search-form { min-width: 0; padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; }
.results-query-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.results-query-row .button { white-space: nowrap; }
.results-state { min-height: 250px; margin-top: 24px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.results-state strong { font-size: 1.25rem; }
.results-state p { margin: 0; color: var(--ink-500); }
.results-state[data-kind="error"] { color: var(--danger); border-color: #ecc2c2; background: #fff9f9; }
.loading-spinner { width: 34px; height: 34px; border: 4px solid #dbe7fb; border-top-color: var(--blue-600); border-radius: 50%; animation: public-spin 0.8s linear infinite; }
@keyframes public-spin { to { transform: rotate(360deg); } }
.results-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 32px 0 18px; }
.results-heading h2 { margin: 3px 0 4px; font-size: clamp(1.45rem, 3vw, 2.25rem); overflow-wrap: anywhere; }
.results-heading p { margin: 0; color: var(--ink-500); }
.results-limits { max-width: 430px; padding: 10px 13px; color: #335271; background: #eaf2ff; border-radius: 11px; font-size: 0.78rem; font-weight: 750; }
.results-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.results-filters label { display: grid; gap: 5px; color: var(--ink-500); font-size: 0.72rem; font-weight: 800; }
.results-filters select { width: 100%; min-height: 42px; padding: 8px 10px; color: var(--ink-900); background: #fff; border: 1px solid #c9d5e5; border-radius: 9px; }
.results-layout { display: grid; grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr); gap: 16px; align-items: start; }
.results-list-column { min-width: 0; }
.results-list { display: grid; gap: 11px; }
.public-dpe-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden; min-height: 142px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 22px rgba(8, 31, 66, 0.06); cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.public-dpe-card:hover, .public-dpe-card.active { border-color: var(--blue-600); box-shadow: 0 12px 30px rgba(11, 99, 246, 0.14); transform: translateY(-1px); }
.public-dpe-grade { display: grid; place-items: center; align-content: center; gap: 4px; padding: 14px 8px; color: #102335; background: #eef2f6; text-align: center; }
.public-dpe-grade strong { display: grid; place-items: center; width: 58px; height: 58px; color: #092034; background: rgba(255, 255, 255, 0.88); border: 2px solid currentColor; border-radius: 14px; font-size: 2rem; line-height: 1; }
.public-dpe-grade span { font-size: 0.65rem; font-weight: 800; line-height: 1.25; }
.dpe-A { background-color: #4caf50; }.dpe-B { background-color: #82c341; }.dpe-C { background-color: #c8d63b; }.dpe-D { background-color: #f1d232; }.dpe-E { background-color: #f5a623; }.dpe-F { background-color: #ef741b; }.dpe-G { background-color: #d93835; color: #fff; }.dpe-unknown { background-color: #aab5c1; }
.public-dpe-content { min-width: 0; padding: 15px 17px; }
.public-dpe-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.public-dpe-top div { display: grid; }
.public-dpe-top div span { color: var(--ink-500); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.public-dpe-top div strong { font-size: 1rem; overflow-wrap: anywhere; }
.recent-pill { flex: 0 0 auto; padding: 4px 8px; color: var(--blue-700); background: var(--blue-100); border-radius: 99px; font-size: 0.66rem; font-weight: 850; }
.public-dpe-date, .public-dpe-meta, .public-dpe-location, .public-dpe-source { margin: 5px 0 0; }
.public-dpe-date { color: var(--ink-700); font-size: 0.82rem; font-weight: 750; }
.public-dpe-meta, .public-dpe-location { color: var(--ink-500); font-size: 0.78rem; }
.public-dpe-source { color: #6c7f98; font-size: 0.66rem; }
.results-map-panel { position: sticky; top: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.results-map-panel summary { display: none; padding: 12px 15px; color: var(--blue-700); font-weight: 800; cursor: pointer; }
.public-results-map { width: 100%; height: min(620px, calc(100vh - 180px)); min-height: 430px; background: #dfe9f2; }
.map-source { margin: 0; padding: 8px 12px; color: var(--ink-500); background: #f7f9fb; font-size: 0.67rem; }
.public-map-marker { width: 39px; height: 39px; padding: 0; display: grid; place-items: center; color: #0b1735; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 5px 14px rgba(8, 31, 66, 0.34); font-size: 0.78rem; font-weight: 950; cursor: pointer; }
.public-map-marker.active { outline: 4px solid var(--blue-600); outline-offset: 2px; }
.results-empty { padding: 32px; background: #fff; border: 1px dashed #b9c7d8; border-radius: 16px; text-align: center; }
.results-empty strong { display: block; font-size: 1.15rem; }
.results-empty p { margin: 7px auto 0; max-width: 520px; color: var(--ink-500); }
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.pagination button { min-width: 39px; min-height: 39px; padding: 7px 10px; color: var(--blue-700); background: #fff; border: 1px solid #c7d4e6; border-radius: 9px; font-weight: 800; cursor: pointer; }
.pagination button[aria-current="page"] { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.pagination button:disabled:not([aria-current="page"]) { opacity: 0.45; cursor: default; }
.professional-gate { margin-top: 20px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-radius: 17px; }
.professional-gate > div { display: flex; align-items: center; gap: 13px; }
.professional-gate > div > span { display: grid; place-items: center; width: 42px; height: 42px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; }
.professional-gate strong { display: block; }
.professional-gate p { margin: 2px 0 0; color: #c6d4e8; font-size: 0.78rem; }
.professional-gate .button { flex: 0 0 auto; }
.professional-gate.professional-ready { background: linear-gradient(120deg, #093d32, #12624d); }

.public-footer { color: #d6e0f0; background: #07172f; }
.footer-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-shell p { margin: 0; color: #9fb0cb; font-size: 0.8rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; font-weight: 750; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1024px) {
  .nav-shell { width: min(100% - 28px, 980px); gap: 14px; }
  .public-nav a { padding: 8px 9px; font-size: 0.82rem; }
  .hero-shell { width: min(100% - 36px, 940px); grid-template-columns: 1fr 0.68fr; gap: 28px; padding-top: 58px; }
  .hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
  .hero-visual { min-height: 440px; }
  .search-field-row { grid-template-columns: 1fr; }
  .search-actions { align-items: stretch; }
  .benefits, .trust-shell { width: min(100% - 36px, 940px); }
  .benefit-grid { gap: 12px; }
  .benefit-card { padding: 20px; }
  .results-shell { width: min(100% - 28px, 980px); }
  .results-search { grid-template-columns: 1fr; gap: 18px; }
  .results-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr); }
  .public-results-map { min-height: 390px; }
}

@media (max-width: 760px) {
  .nav-shell { padding: 14px 0; align-items: flex-start; flex-direction: column; }
  .public-nav { width: 100%; justify-content: flex-start; }
  .public-nav .nav-cta { margin-left: 0; }
  .hero-shell { grid-template-columns: 1fr; padding: 46px 0; }
  .hero-visual { display: none; }
  .benefit-grid, .trust-shell, .pro-shell, .pro-list { grid-template-columns: 1fr; }
  .trust-shell { gap: 1px; }
  .trust-item { padding: 15px 20px; }
  .pro-section { padding-inline: 20px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { min-height: 270px; padding: 28px 24px; }
  .auth-aside-copy { margin-top: 54px; }
  .auth-main { padding: 24px 16px 40px; }
  .data-table { display: block; overflow-x: auto; }
  .results-shell { width: min(100% - 24px, 720px); padding-top: 22px; }
  .results-search { padding: 19px; }
  .results-query-row, .results-layout { grid-template-columns: 1fr; }
  .results-filters { grid-template-columns: 1fr 1fr; }
  .results-heading { align-items: start; flex-direction: column; }
  .results-limits { max-width: none; }
  .results-list-column { order: 1; }
  .results-map-panel { position: static; order: 2; }
  .results-map-panel summary { display: block; }
  .results-map-panel:not([open]) .public-results-map, .results-map-panel:not([open]) .map-source { display: none; }
  .public-results-map { height: 390px; min-height: 0; }
  .professional-gate { align-items: stretch; flex-direction: column; }
  .professional-gate .button { width: 100%; }
}

@media (max-width: 440px) {
  .brand img { width: 148px; }
  .public-nav { gap: 3px; }
  .public-nav a { padding: 8px 7px; font-size: 0.76rem; }
  .public-nav .nav-cta { width: 100%; margin-top: 5px; }
  .hero-shell, .benefits, .page-hero-shell, .content-shell, .explorer-shell { width: min(100% - 24px, 100%); }
  .hero h1 { font-size: 2.72rem; }
  .search-panel { padding: 15px; border-radius: 19px; }
  .search-tabs { width: 100%; }
  .search-tab { flex: 1; padding-inline: 8px; font-size: 0.84rem; }
  .search-actions { flex-direction: column; }
  .button { width: 100%; }
  .benefits { padding-top: 28px; }
  .pro-list { grid-template-columns: 1fr; }
  .page-hero-shell { padding: 46px 0; }
  .page-hero h1 { font-size: 2.55rem; }
  .content-shell { padding-top: 24px; }
  .content-card { padding: 20px 17px; }
  .auth-panel { padding: 25px 20px; }
  .auth-aside h2 { font-size: 2.55rem; }
  .auth-links, .footer-shell, .explorer-actions { align-items: stretch; flex-direction: column; }
  .results-shell { width: min(100% - 16px, 100%); }
  .results-search { padding: 15px; border-radius: 17px; }
  .results-search-form { padding: 12px; }
  .results-search h1 { font-size: 2.15rem; }
  .results-filters { grid-template-columns: 1fr; }
  .public-dpe-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 150px; }
  .public-dpe-grade { padding-inline: 5px; }
  .public-dpe-grade strong { width: 48px; height: 48px; font-size: 1.7rem; }
  .public-dpe-grade span { font-size: 0.58rem; }
  .public-dpe-content { padding: 13px 12px; }
  .public-dpe-top { align-items: start; flex-direction: column; }
  .recent-pill { order: -1; }
  .pagination button { min-width: 36px; }
  .public-results-map { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
