:root {
  color-scheme: light dark;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --text: #17211f;
  --muted: #62706c;
  --line: #d7dfdb;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --warning: #b45309;
  --shadow: 0 12px 30px rgba(20, 38, 33, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111816;
    --panel: #182320;
    --text: #edf6f3;
    --muted: #a8b8b2;
    --line: #2b3a36;
    --accent: #34d399;
    --accent-strong: #5eead4;
    --warning: #fbbf24;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 40px;
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px 12px;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.1;
}

.refresh-button {
  min-width: 76px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.refresh-button:active {
  transform: translateY(1px);
}

.search-box {
  display: block;
}

.search-box input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  outline: none;
  box-shadow: var(--shadow);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow);
}

.status-line {
  min-height: 24px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.results {
  display: grid;
  gap: 10px;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(20, 38, 33, 0.08);
}

.property-name {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.details {
  display: grid;
  gap: 9px;
  margin: 0;
}

.details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty,
.error,
.setup {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.error,
.setup {
  color: var(--warning);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 32px;
  }

  .search-panel {
    margin: 0 0 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .details div {
    grid-template-columns: 96px 1fr;
    gap: 8px;
  }

  .property-name {
    font-size: 18px;
  }
}
