:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  --ink: #1b2730;
  --muted: #60707d;
  --line: #d6dde2;
  --panel: #f7f9fa;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --parcel: #f0b84d;
  --neighbor: #9cc6d8;
  --building: #db6f57;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #edf2f4;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
}

button:hover {
  border-color: #a9b8c2;
}

button.primary {
  width: 100%;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

button.primary:hover {
  background: var(--accent-strong);
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

select[size] {
  height: 132px;
  padding: 6px;
}

select[size] option {
  padding: 6px 8px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #43525e;
  text-transform: uppercase;
  letter-spacing: 0;
}

.shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  min-height: 100vh;
}

.panel {
  min-width: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #243742;
  color: #fff;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 21px;
}

h2 {
  font-size: 14px;
  margin-bottom: 10px;
}

.brand p,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.search {
  display: grid;
  gap: 8px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-dot {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #9fb0bb;
  border-radius: 50%;
  color: #43525e;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  cursor: help;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 7px 10px;
  margin: 0;
  font-size: 13px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 650;
}

.viewer {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  background: #cad6dc;
}

#scene {
  position: absolute;
  inset: 0;
}

.toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}

.toolbar button {
  background: rgba(255, 255, 255, 0.92);
}

.toolbar button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .panel {
    max-height: 48vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .viewer {
    min-height: 52vh;
  }
}
