:root {
  color-scheme: dark;
  --bg: #081013;
  --panel: #111b20;
  --panel-soft: #16262d;
  --panel-bright: #1d3038;
  --line: #2c434b;
  --line-strong: #47616b;
  --text: #eef4ef;
  --muted: #a9b9b8;
  --faint: #718685;
  --accent: #7ec6a4;
  --accent-2: #e9c46a;
  --danger: #ef6f6c;
  --water: #70c1d4;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(126, 198, 164, 0.14), transparent 30%),
    linear-gradient(140deg, #071014 0%, #0c181b 55%, #0a1317 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(8, 16, 19, 0.65);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.18) 46%, transparent 54%),
    linear-gradient(135deg, #7ec6a4, #2f6f61 46%, #143448);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(180px, 360px);
  align-items: center;
  gap: 10px;
  min-width: min(100%, 460px);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 38, 45, 0.82);
}

.search-box span {
  color: var(--faint);
  font-size: 0.78rem;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c171b;
  padding: 8px 10px;
}

input::placeholder {
  color: #697b7c;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.icon-button,
.tool {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.icon-button:hover,
.tool:hover,
.text-button:hover,
.tab:hover {
  border-color: var(--line-strong);
  background: var(--panel-bright);
}

.mobile-only {
  display: none;
}

.layout {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sidebar {
  position: absolute;
  top: 96px;
  left: 14px;
  bottom: 14px;
  width: 300px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(11, 20, 24, 0.75);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sidebar.is-open {
  transform: translateX(0);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab {
  min-height: 34px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0e191d;
  font-size: 0.82rem;
}

.tab.is-active {
  color: #071014;
  background: var(--accent);
  border-color: var(--accent);
}

.panel {
  display: none;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.panel.is-active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 0.88rem;
}

.text-button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.control-group,
.control-grid,
.switch-list,
.coord-form,
.filter-row,
.dino-form,
.subpanel,
.share-status,
.member-list,
.dino-list,
.data-list {
  margin-top: 14px;
}

.control-group,
.stacked,
.control-grid label,
.coord-form label {
  display: grid;
  gap: 7px;
}

.control-group > label,
.stacked span,
.control-grid span,
.coord-form span {
  color: var(--muted);
  font-size: 0.8rem;
}

.control-grid {
  display: grid;
  gap: 13px;
}

.control-grid.two {
  grid-template-columns: 1fr 1fr;
}

.switch-list {
  display: grid;
  gap: 10px;
}

.switch-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 38, 45, 0.55);
}

.switch-list label span {
  flex: 1;
  color: var(--text);
  font-size: 0.88rem;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  margin-top: 14px;
}

.segmented button {
  min-width: 0;
  min-height: 35px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c171b;
}

.segmented button.is-selected {
  color: #061014;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.subpanel {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 38, 45, 0.45);
}

.layer-list,
.history-list,
.member-list,
.dino-list,
.data-list {
  display: grid;
  gap: 9px;
}

.layer-row,
.history-item,
.member-card,
.dino-card,
.item-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 38, 45, 0.62);
}

.layer-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.layer-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.layer-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.layer-meta strong,
.history-item strong,
.member-card strong,
.dino-card strong,
.item-card strong {
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-meta span,
.history-item span,
.member-card span,
.dino-card span,
.item-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.coord-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.coord-form button {
  min-height: 36px;
  padding: 0 14px;
  color: #071014;
  border-radius: 7px;
  background: var(--accent);
}

.history-list {
  padding-left: 0;
  list-style: none;
}

.filter-row,
.dino-form {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 8px;
}

.dino-form {
  grid-template-columns: 1fr 1fr;
}

.dino-form input:last-child {
  grid-column: 1 / -1;
}

.map-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #071014;
  z-index: 1;
}

.map-toolbar {
  position: absolute;
  top: 100px;
  right: 14px;
  display: grid;
  gap: 12px;
  z-index: 15;
}

.map-status {
  position: absolute;
  top: 100px;
  right: 68px; /* Offset for map-toolbar */
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(420px, calc(100% - 92px));
  z-index: 15;
  transition: opacity 0.3s;
}

.map-status span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 16, 19, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.compass {
  position: absolute;
  right: 14px;
  bottom: 96px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 16, 19, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 5;
}

.compass span {
  position: absolute;
  top: 8px;
  font-size: 0.78rem;
}

.compass i {
  width: 2px;
  height: 42px;
  background: linear-gradient(var(--accent-2) 0 48%, rgba(255, 255, 255, 0.3) 50% 100%);
  transform-origin: center;
}

.map-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

.map-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1420px, 94vw);
  aspect-ratio: 1.4;
  transform-origin: center;
  will-change: transform;
}

.map-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.real-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  user-select: none;
  pointer-events: none;
}

.map-stage.has-real-map .layer-oceanic,
.map-stage.has-real-map .layer-grounds,
.map-stage.has-real-map .layer-water,
.map-stage.has-real-map .layer-road,
.map-stage.has-real-map .layer-danger,
.map-stage.has-real-map .layer-impassable {
  opacity: 0;
}

.map-stage.has-real-map .labels text {
  fill: rgba(255, 255, 255, 0.92);
}

.pin-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.highlands {
  fill: rgba(138, 151, 95, 0.44);
}

.ridge {
  fill: rgba(78, 98, 70, 0.58);
}

.water {
  stroke: #72d0e7;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.78;
}

.pond {
  fill: #70c1d4;
  opacity: 0.78;
}

.road {
  stroke: #d9b76e;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 18 16;
  opacity: 0.78;
}

.trail {
  stroke-width: 5;
  stroke-dasharray: 8 14;
}

.danger-zone {
  fill: rgba(239, 111, 108, 0.34);
  stroke: #ef6f6c;
  stroke-width: 4;
}

.impassable path {
  stroke: rgba(255, 100, 95, 0.75);
  stroke-width: 7;
  stroke-linecap: round;
}

.grid line {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.grid line.bold {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.6;
}

.grid text,
.labels text {
  fill: rgba(245, 249, 245, 0.78);
  font-size: 22px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(5, 13, 16, 0.72);
  stroke-width: 5px;
  pointer-events: none;
}

.labels .minor {
  font-size: 17px;
  fill: rgba(230, 238, 232, 0.64);
}

.map-pin {
  position: absolute;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  height: 30px;
  max-width: 150px;
  padding: 0 8px 0 6px;
  color: #081013;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 15px;
  background: #f4efe2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  white-space: nowrap;
  z-index: 3;
}

.map-pin .pin-label {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

.map-pin.water .pin-dot { background: var(--water); }
.map-pin.landmark .pin-dot { background: var(--accent-2); }
.map-pin.cave .pin-dot { background: #b18ce0; }
.map-pin.danger .pin-dot { background: var(--danger); }
.map-pin.item .pin-dot { background: #ff9f6e; }
.map-pin.photo .pin-dot { background: #f4e1a1; }
.map-pin.shared .pin-dot { background: #8ee3ef; }
.map-pin.latest { animation: pulse 1.2s ease-in-out infinite; }

.footstep {
  fill: none;
  stroke: #f2f6ef;
  stroke-width: 4;
  stroke-dasharray: 7 9;
  opacity: 0.72;
}

.footstep-point {
  fill: #f2f6ef;
  stroke: #081013;
  stroke-width: 3;
}

.measure-line {
  stroke: #e9c46a;
  stroke-width: 5;
  stroke-dasharray: 10 8;
  fill: none;
}

.footer-drawer {
  position: absolute;
  left: 328px;
  right: 14px;
  bottom: 14px;
  min-height: 76px;
  max-height: 210px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(8, 16, 19, 0.75);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.footer-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tabs button {
  min-width: 104px;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.footer-tabs button.is-selected {
  color: #071014;
  background: var(--accent);
  border-color: var(--accent);
}

.footer-content {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 16px;
  color: var(--muted);
}

.footer-content strong {
  color: var(--text);
}

/* ── Steam Login Button ──────────────────────────────── */
.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.steam-login-btn:hover {
  opacity: 0.85;
}

.steam-signin-img {
  height: 30px;
  display: block;
}

.steam-login-btn.logged-in {
  padding: 0 12px;
  gap: 8px;
  background: rgba(22, 38, 45, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.steam-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* ── Online Badge ────────────────────────────────────── */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(126, 198, 164, 0.25);
  border-radius: 20px;
  background: rgba(126, 198, 164, 0.08);
}

.online-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Chat Messages ───────────────────────────────────── */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 200px;
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  padding: 8px 4px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 16, 19, 0.5);
}

.chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--faint);
  font-size: 0.85rem;
}

.chat-msg {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}

.chat-msg:hover {
  background: rgba(22, 38, 45, 0.4);
}

.chat-msg.is-own {
  background: rgba(126, 198, 164, 0.06);
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--panel-soft);
}

.chat-msg-body {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.chat-msg-header strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.chat-msg-header time {
  color: var(--faint);
  font-size: 0.72rem;
}

.chat-msg-body p {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
}

/* ── Chat Input ──────────────────────────────────────── */
.chat-input-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.chat-send-btn {
  height: 36px;
  padding: 0 16px;
  color: #071014;
  border-radius: 7px;
  background: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.chat-send-btn:hover:not(:disabled) {
  background: #9ad8bc;
}

.chat-send-btn:disabled,
.chat-input-form input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Room List ───────────────────────────────────────── */
.room-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-height: calc(100vh - 450px);
  overflow-y: auto;
}

.room-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(22, 38, 45, 0.5);
  transition: all 0.2s;
}

.room-card:hover {
  border-color: var(--line-strong);
  background: rgba(22, 38, 45, 0.75);
}

.room-card.is-active {
  border-color: var(--accent);
  background: rgba(126, 198, 164, 0.08);
}

.room-icon {
  font-size: 1.4rem;
}

.room-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.room-info strong {
  font-size: 0.88rem;
}

.room-info span {
  color: var(--faint);
  font-size: 0.76rem;
  text-transform: capitalize;
}

.join-private {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ── Display Panel Overlays ───────────────────────────── */
.display-section-title {
  margin: 16px 0 8px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.display-section-title:first-of-type {
  margin-top: 4px;
}

.overlay-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overlay-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* ── Map Overlay Icons ────────────────────────────────── */
.resource-icon {
  cursor: default;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  transition: font-size 0.15s;
}

.resource-icon:hover {
  font-size: 30px !important;
}

.overlay-zones circle,
.overlay-zones rect {
  transition: opacity 0.3s;
}

.is-hidden {
  display: none !important;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(126, 198, 164, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 12px rgba(126, 198, 164, 0);
  }
}

@media (max-width: 980px) {
  body {
    overflow: hidden;
  }

  .mobile-only {
    display: inline-grid;
  }

  .topbar {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(8, 16, 19, 0.92);
  }

  .sidebar {
    top: 72px; /* Topbar height */
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    border-radius: 0;
    border-left: none;
    border-bottom: none;
    transform: translateX(-100%);
    background: rgba(11, 20, 24, 0.95);
  }

  .footer-drawer {
    left: 14px;
  }
}

  .brand {
    min-width: 0;
  }

  .top-actions {
    width: 100%;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 0;
  }

  .mobile-only {
    display: inline-grid;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: absolute;
    left: 12px;
    top: 142px;
    bottom: 88px;
    width: min(380px, calc(100vw - 24px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateX(calc(-100% - 20px));
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .map-stage {
    width: 1100px;
  }

  .footer-drawer {
    grid-template-columns: 1fr;
  }

  .footer-tabs {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .compass {
    bottom: 150px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand h1 {
    font-size: 0.98rem;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

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

  .panel {
    padding: 12px;
  }

  .map-toolbar {
    top: 10px;
    left: 10px;
  }

  .map-status {
    top: 10px;
    right: 10px;
  }

  .map-status span {
    font-size: 0.76rem;
  }
}
