/* YAYÁ field atlas. All interface assets are served with the app. */
:root {
  --xp-forest: #102d23;
  --xp-night: #071e17;
  --xp-cream: #f7f5ed;
  --xp-gold: #e6cb90;
  --xp-hairline: #d8dacf;
  --xp-ink: #20352a;
  --xp-margin: clamp(16px, 5vw, 80px);
  --xp-bar: 72px;
  --xp-serif: Georgia, 'Times New Roman', serif;
  --xp-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.xp-app {
  background: var(--xp-cream);
  color: var(--xp-ink);
  font-family: var(--xp-ui);
  overflow: hidden;
  overscroll-behavior: none;
}
.xp-app :where(button, a, input, select, summary):focus-visible {
  outline: 3px solid #ba8438;
  outline-offset: 3px;
}
.xp-app .brandbar, .xp-app .bottom-nav { display: none; }
.xp-app #app {
  height: calc(100vh - var(--xp-bar) - env(safe-area-inset-top));
  height: calc(100dvh - var(--xp-bar) - env(safe-area-inset-top));
  min-height: 0;
}
.xp-app[data-xp-screen="entry"] #app {
  visibility: hidden;
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.xp-app[data-xp-screen="terrain"] #app {
  height: 100vh;
  height: 100dvh;
}
.xp-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.xp-round, .xp-ficha, .xp-tab, .xp-install, .xp-enter, .xp-menu-item, .xp-mode, .xp-card {
  -webkit-tap-highlight-color: transparent;
  font-family: var(--xp-ui);
}
.xp-round {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid #afc6b252;
  border-radius: 50%;
  background: transparent;
  color: #f4f2e6;
}
.xp-round:hover { background: #ffffff12; }
.xp-app button:active:not(:disabled) { filter: brightness(.91); }

/* The plate pairs the actual rectified flight image with parcel boundaries. */
#xp-entry {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--xp-cream);
  background: radial-gradient(ellipse at 78% 42%, #264435 0, #102e23 36%, #0b241c 66%, #081e17 100%);
}
.xp-cover {
  position: relative;
  isolation: isolate;
  width: min(100%, 1680px);
  min-height: 100vh;
  min-height: 100svh;
  margin: auto;
  padding: max(26px, env(safe-area-inset-top)) max(var(--xp-margin), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--xp-margin), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr 1.13fr;
  grid-template-rows: auto minmax(400px, 1fr) auto;
  grid-template-areas: "head head" "content plate" "credits credits";
  align-items: center;
}
.xp-cover-head {
  grid-area: head;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.xp-cover-logo { width: clamp(100px, 9.4vw, 148px); height: auto; display: block; }
.xp-place { display: inline-flex; gap: 7px; align-items: center; font-size: .77rem; letter-spacing: .035em; color: #d6dcd0; }
.xp-place .xp-icon { width: 15px; height: 15px; color: var(--xp-gold); }
.xp-cover-content {
  grid-area: content;
  align-self: center;
  padding: 34px 0 46px;
  position: relative;
  z-index: 1;
}
.xp-cover-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(.63rem, .8vw, .74rem);
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--xp-gold);
}
.xp-cover-caption i { height: 1px; width: 34px; background: currentColor; opacity: .75; }
.xp-cover-content h1 {
  margin: clamp(19px, 3vh, 32px) 0 17px;
  color: #f8f4e8;
  font: normal clamp(4.6rem, 7.5vw, 8.3rem)/.91 var(--xp-serif);
  letter-spacing: -.065em;
  max-width: 8.1ch;
  text-wrap: balance;
}
.xp-cover-content h1 span, .xp-catalog-title h1 span { color: var(--xp-gold); }
.xp-cover-content > p { color: #d0d9ce; font-size: clamp(.92rem, 1.24vw, 1.14rem); margin: 0; }
.xp-cover-actions { display: flex; gap: 12px; margin-top: clamp(24px, 4.1vh, 40px); }
.xp-enter, .xp-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
}
.xp-enter { min-width: 145px; background: var(--xp-gold); border: 1px solid var(--xp-gold); color: #192c21; }
.xp-enter:hover { background: #f2dbab; }
.xp-install { gap: 10px; background: #17392d66; border: 1px solid #aabfa663; color: #f5f4e9; }
.xp-install:hover { background: #ffffff10; }
.xp-install .xp-icon { width: 17px; }
.xp-cover-content > .xp-entry-status { max-width: 42ch; font-size: .8rem; margin-top: 14px; }
.xp-plate {
  grid-area: plate;
  justify-self: stretch;
  position: relative;
  align-self: stretch;
  min-width: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.xp-plate::before {
  content: '';
  position: absolute;
  inset: 0 -6% 0 -9%;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#bdcda21a 1px, transparent 1px), linear-gradient(90deg, #bdcda21a 1px, transparent 1px);
  background-size: clamp(36px, 4.5vw, 75px) clamp(36px, 4.5vw, 75px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 26%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, #000 26%, transparent 73%);
}
.xp-survey {
  position: relative;
  width: min(88%, 56vh, 660px);
  aspect-ratio: 1820 / 2180;
  filter: drop-shadow(7px 20px 16px #00100878);
}
.xp-survey img, #xp-boundaries { position: absolute; inset: 0; height: 100%; width: 100%; display: block; }
.xp-survey img { filter: saturate(.9) contrast(1.05) brightness(1.08); }
#xp-boundaries { fill: none; stroke: #f1d598; stroke-width: 1.75; stroke-linejoin: round; opacity: .86; }
.xp-north { position: absolute; top: 10%; right: 4%; display: grid; gap: 6px; justify-items: center; color: #d5ccac; }
.xp-north span { font-size: .58rem; font-weight: 600; letter-spacing: .04em; }
.xp-north svg { width: 12px; height: 22px; }
.xp-credits {
  grid-area: credits;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-top: 16px;
  border-top: 1px solid #cad4b833;
}
.xp-credits > div { display: flex; gap: 14px; align-items: center; }
.xp-credits span { font-size: .67rem; line-height: 1.2; color: #adbcb0; }
.xp-credits img { width: 66px; height: 33px; object-fit: contain; display: block; }
.xp-credits b { font-size: .83rem; font-weight: 600; color: #e4e6d9; letter-spacing: -.025em; }

/* Persistent navigation lives outside the 3D viewport. */
#xp-header {
  padding: env(safe-area-inset-top) max(var(--xp-margin), env(safe-area-inset-right)) 0 max(var(--xp-margin), env(safe-area-inset-left));
  background: #102d23;
  border-bottom: 1px solid #455747;
}
.xp-shellbar { height: calc(var(--xp-bar) - 1px); max-width: 1480px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.xp-shell-logo { width: 92px; height: 46px; object-fit: contain; }
.xp-shellbar > .xp-round { justify-self: end; }
.xp-tabs {
  display: inline-flex;
  align-items: center;
  border: 1px solid #91a38b45;
  background: #071d1680;
  border-radius: 30px;
  padding: 2px;
}
.xp-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 24px; padding: 0 17px; min-height: 44px; font-size: .83rem; font-weight: 550; background: transparent; color: #dfe5d9; }
.xp-tab .xp-icon { width: 16px; height: 16px; }
.xp-tab[aria-current="page"] { background: #e8e8d6; color: #1c3326; }
.xp-app :is(#glebas-view, #offline-view) { background: var(--xp-cream); padding: clamp(26px, 5vw, 62px) max(var(--xp-margin), env(safe-area-inset-right)) calc(44px + env(safe-area-inset-bottom)) max(var(--xp-margin), env(safe-area-inset-left)); }
.xp-app :is(.page-heading, .parcel-grid, .pack-grid, .wide-block) { max-width: 1320px; margin-left: auto; margin-right: auto; }
#glebas-view .page-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding: 0; }
.xp-catalog-title { display: flex; gap: 13px; align-items: baseline; flex-wrap: wrap; }
.xp-catalog-title h1, #offline-view h1 { font: 400 clamp(2.65rem, 5vw, 5.1rem)/1 var(--xp-serif); color: #183d2d; letter-spacing: -.055em; margin: 0; }
.xp-catalog-title h1 span { color: #a37837; }
#xp-total { color: #586758; font-size: .82rem; white-space: nowrap; }
.xp-search { display: flex; align-items: center; gap: 11px; background: #fffdf6; border: 1px solid #cbd1c2; border-radius: 8px; padding: 0 13px; width: min(100%, 240px); color: #637561; }
.xp-search .xp-icon { width: 16px; }
.xp-search input { width: 100%; min-width: 0; min-height: 44px; padding: 0; color: var(--xp-ink); border: 0; background: transparent; font: 400 16px var(--xp-ui); }
.xp-search:focus-within { outline: 2px solid #92723c; outline-offset: 2px; }
.xp-search input:focus { outline: none; }
.xp-app .parcel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.xp-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.09;
  background: #203b2e;
  border: 0;
  border-radius: 11px;
  color: white;
  padding: 0;
  text-align: left;
  isolation: isolate;
}
.xp-card img { position: absolute; inset: 0; z-index: -2; height: 100%; width: 100%; object-fit: cover; transition: transform .36s ease; }
.xp-card::before { content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #071b1273 70%, #081d15f0 100%); }
.xp-card-meta { position: absolute; bottom: 17px; left: 17px; display: grid; gap: 5px; }
.xp-card strong { font: 400 clamp(1.8rem, 3.1vw, 3rem)/.95 var(--xp-serif); letter-spacing: -.045em; color: #fff9eb; }
.xp-card small { font: 500 .79rem/1.2 var(--xp-ui); color: #eeeedd; }
.xp-card-arrow { position: absolute; right: 15px; bottom: 17px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e3ead77d; }
.xp-card-arrow .xp-icon { width: 15px; height: 15px; }
@media (hover: hover) { .xp-card:hover img { transform: scale(1.035); } }
.xp-empty { padding: 26px 0; grid-column: 1 / -1; }
.xp-app .wide-block, .xp-app .pack-card { background: #fffdf7; border-color: #d4d8ca; box-shadow: none; border-radius: 10px; }
#offline-view .page-heading { padding: 0; }
#offline-view .page-heading > p { margin-top: 12px; }
.xp-app .notice { background: #e5eadb; border-color: #cbd5c0; color: #344e3b; }
.xp-app .primary { background: #1c4833; }
.xp-app .outline { background: #fffdf7; }
.xp-app summary { min-height: 44px; }

/* The map and the trophy use the same compact control language. */
.xp-app .map-toolbar, .xp-app .has-gps .map-toolbar { left: max(14px, env(safe-area-inset-left)); top: 15px; }
#layers-toggle { display: inline-flex; gap: 8px; align-items: center; border-radius: 24px; padding: 0 16px; min-height: 44px; background: #fffdf4f2; color: #254532; font-size: .82rem; }
#layers-toggle .xp-icon { width: 17px; }
.xp-app .map-tools { right: max(14px, env(safe-area-inset-right)); bottom: calc(36px + env(safe-area-inset-bottom)); gap: 6px; }
.xp-app .map-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fffdf4f5; }
.xp-app .gps-icon.on { background: #144a35; color: white; }
.xp-app .leaflet-control-zoom, .xp-app .has-gps .leaflet-control-zoom { margin-top: 15px !important; margin-right: max(14px, env(safe-area-inset-right)) !important; border: 1px solid #bccabe !important; border-radius: 22px; overflow: hidden; }
.xp-app .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: #234c35; background: #fffdf4f5; }
.xp-app .map-caption { display: none; }
.xp-app .map-caption .eyebrow, .xp-app #map-caption-secondary { display: none; }
.xp-app .map-caption strong { font-size: .8rem; font-weight: 550; }
.xp-app .parcel-label { border-radius: 16px; padding: 0; color: #253b29; background: #faf7e4f5; pointer-events: auto; }
.parcel-map-button { min-width: 44px; min-height: 36px; padding: 5px 8px; background: none; border: 0; color: inherit; font: 700 .85rem var(--xp-ui); border-radius: inherit; cursor: pointer; }
.parcel-map-button:hover { background: #e6cb90; }
.xp-access-key { position: absolute; z-index: 500; left: 14px; bottom: calc(45px + env(safe-area-inset-bottom)); background: #fffdf4ed; color: #254532; border-radius: 12px; padding: 9px 12px; font-size: .78rem; display: grid; gap: 6px; pointer-events: none; }
.xp-access-key span { display: flex; align-items: center; gap: 8px; }
.xp-access-key span::before { content: ''; width: 24px; border-top: 4px solid #e8a142; }
.xp-access-key span + span::before { border-top: 3px dashed #9c741f; }
.access-callout { border-left: 3px solid #b97a24; background: #f5edd6; padding: 12px; margin-bottom: 14px; }
.access-callout strong, .access-callout span { display: block; }
.access-callout span { font-size: .85rem; margin-top: 5px; }
.xp-map-prompt { position: absolute; z-index: 500; top: 68px; left: 14px; margin: 0; max-width: calc(100% - 90px); padding: 8px 12px; border-radius: 18px; background: #fffdf4ed; color: #254532; font-size: .8rem; pointer-events: none; box-shadow: 0 2px 8px #102d231a; }
.xp-app .leaflet-bottom { bottom: env(safe-area-inset-bottom); }
.xp-app #terrain-view { background: #061610; }
.xp-app :is(.terrain-heading, .terrain-tools, #cloud-legend, .terrain-hint) { display: none !important; }
#terrain-view.xp-loading #terrain-canvas { visibility: hidden; }
.xp-hud {
  position: absolute;
  inset: max(15px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) auto max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  color: #f5f3e5;
}
.xp-hud button, .xp-position button { pointer-events: auto; background: #102a20d9; color: #f6f3e6; border: 1px solid #91a28a5c; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xp-hud button:hover, .xp-position button:hover { background: #254333; }
.xp-identity h1 { font: 400 clamp(1.3rem, 2.8vw, 1.85rem)/1.04 var(--xp-serif); letter-spacing: -.025em; margin: 0 0 3px; }
.xp-identity > span { display: block; color: #d0d4c0; font-size: .73rem; letter-spacing: .015em; }
.xp-hud-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.xp-ficha { min-height: 44px; border-radius: 25px; padding: 0 14px; display: flex; align-items: center; gap: 7px; font-size: .84rem; }
.xp-ficha .xp-icon { width: 17px; }
.xp-position { position: absolute; bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); right: max(18px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.xp-position .xp-on { background: #264e3f; border-color: #64b5b8b0; color: #91eaff; }
#xp-gps-hud { max-width: min(65vw, 290px); padding: 5px 8px; color: #e3e9d9; background: #102a20df; border-radius: 5px; font-size: .7rem; font-variant-numeric: tabular-nums; }
.xp-app .stage-message { max-width: min(76%, 360px); padding: 12px 18px; color: #eeeece; background: #173126ee; border: 1px solid #7e957147; font: 400 .87rem/1.45 var(--xp-ui); }
.xp-retry { position: absolute; top: calc(50% + 52px); left: 50%; transform: translateX(-50%); min-height: 44px; padding: 0 15px; background: var(--xp-gold); color: #193725; border-radius: 7px; border: 0; }
.xp-app #toast { bottom: max(15px, calc(env(safe-area-inset-bottom) + 12px)); max-width: min(420px, calc(100% - 32px)); width: max-content; pointer-events: none; }
.xp-app[data-xp-screen="terrain"] #toast { bottom: max(78px, calc(env(safe-area-inset-bottom) + 69px)); }

/* Native dialogs provide focus containment, backdrop and platform Escape. */
#xp-sheet {
  position: fixed;
  inset: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  margin: auto 0;
  width: min(388px, calc(100vw - 32px));
  height: max-content;
  max-height: min(830px, calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  padding: 0;
  overflow: hidden;
  border: 1px solid #d4d8ca;
  border-radius: 16px;
  background: #fbfaf3;
  color: var(--xp-ink);
  box-shadow: 0 18px 76px #071b1347;
  line-height: 1.45;
}
#xp-sheet[open] { display: flex; flex-direction: column; animation: xp-sheet-in .18s ease-out; }
#xp-sheet::backdrop { background: #0a1e1466; }
#xp-sheet[data-panel="visual"]::backdrop { background: #00110832; }
.xp-sheet-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 14px; padding: 15px 16px 13px 22px; border-bottom: 1px solid var(--xp-hairline); }
.xp-sheet-head h2 { font: 400 1.8rem/1.05 var(--xp-serif); letter-spacing: -.043em; margin: 0; color: #1d3b2a; }
.xp-sheet-head .xp-round { background: #f1f1e7; border-color: #d6dacb; color: #344c39; }
.xp-sheet-head .xp-round .xp-icon { width: 17px; height: 17px; }
.xp-sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px 22px 21px; }
.xp-menu, .xp-class-key { display: grid; }
.xp-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  width: 100%;
  min-height: 49px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid #dce0d3;
  color: #253f2d;
  font-size: .91rem;
  font-weight: 500;
  text-align: left;
  background: transparent;
}
.xp-menu-item:hover { color: #75552d; }
.xp-menu-item .xp-icon { width: 18px; color: #536746; }
.xp-menu-item:last-child { border-bottom: 0; }
.xp-menu-item[data-xp="exit"] { color: #834536; }
.xp-menu-item[data-xp="exit"] .xp-icon { color: inherit; }
.xp-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 12px; }
.xp-mode { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: relative; min-height: 74px; padding: 10px 12px; border: 1px solid #cfd6c7; background: #f8f8ef; color: #344b37; border-radius: 9px; text-align: left; }
.xp-mode .xp-icon { grid-column: 1; width: 21px; height: 21px; }
.xp-mode > span { grid-column: 1 / -1; font-size: .8rem; font-weight: 550; }
.xp-mode i { position: absolute; right: 11px; top: 11px; width: 11px; height: 11px; border: 1px solid #a3b09d; border-radius: 50%; }
.xp-mode[aria-pressed="true"] { background: #e6ecdc; color: #1f4d30; border-color: #648664; }
.xp-mode[aria-pressed="true"] i { background: #3c714d; border-color: #3c714d; box-shadow: inset 0 0 0 2px #e6ecdc; }
.xp-disclosure { margin: 0; padding: 0; border-top: 1px solid var(--xp-hairline); }
.xp-disclosure > summary { display: list-item; align-content: center; min-height: 46px; padding: 12px 0; font-size: .84rem; font-weight: 600; }
.xp-field { display: grid; gap: 5px; font-size: .8rem; margin: 3px 0; color: #435440; }
.xp-field select { width: 100%; min-height: 44px; padding: 0 8px; font-size: 16px; color: #294232; background: #fffdf8; border: 1px solid #bdc9b8; border-radius: 5px; }
.xp-switch { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .87rem; font-weight: 500; }
.xp-switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; display: inline-block; position: relative; width: 33px; height: 20px; margin: 0; border: 1px solid #a8b1a0; background: #cbd1c2; border-radius: 12px; cursor: pointer; }
.xp-switch input::before { content: ''; display: block; position: absolute; height: 14px; width: 14px; left: 2px; top: 2px; border-radius: 50%; background: #fffef3; box-shadow: 0 1px 2px #15251a38; }
.xp-switch input:checked { background: #356645; border-color: #356645; }
.xp-switch input:checked::before { transform: translateX(13px); }
.xp-switch input:disabled { opacity: .45; cursor: default; }
.xp-rotation { border-top: 1px solid var(--xp-hairline); border-bottom: 1px solid var(--xp-hairline); }
.xp-class-key { gap: 8px; padding: 7px 0; font-size: .77rem; color: #4e604e; }
.xp-class-key i, .xp-slope-key span::before { display: inline-block; width: 12px; height: 8px; margin-right: 8px; border-radius: 2px; }
.xp-slope-key { display: flex; gap: 4px; padding: 0 0 13px; }
.xp-slope-key span { display: grid; flex: 1; gap: 5px; font-size: .72rem; }
.xp-slope-key span::before { content: ''; width: 100%; background: var(--key-color); }
.xp-note { font-size: .77rem; line-height: 1.45; color: #566453; margin: 8px 0 12px; }
.xp-terrain-note { margin: 10px 0 0; }
#xp-sheet #parcel-panel, #xp-sheet #layer-panel, #xp-sheet #gps-status {
  position: static;
  inset: auto;
  transform: none;
  z-index: auto;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--xp-ink);
  box-shadow: none;
  overflow: visible;
}
#xp-sheet #parcel-panel .panel-head, #xp-sheet #layer-panel > h2 { display: none; }
#xp-sheet #parcel-panel .button { width: 100%; }
#xp-sheet #parcel-panel .metrics { margin: 12px 0; }
#xp-sheet #parcel-panel .metric { background: #f0f3e8; padding: 12px; }
#xp-sheet #parcel-panel .panel-section { margin-top: 14px; padding-top: 14px; }
#xp-sheet #parcel-panel .water-callout { border-radius: 4px; }
#xp-sheet .segmented { box-shadow: none; display: flex; width: 100%; background: #f2f4e9; }
#xp-sheet .segmented button { flex: 1; min-height: 44px; }
#xp-sheet #layer-panel label { min-height: 44px; margin: 0; border-bottom: 1px solid #dfe2d4; }
#xp-sheet #gps-status { display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 10px; padding: 8px 0; }
#xp-sheet #gps-status #gps-detail { color: #596957; font-size: .78rem; }
#xp-sheet #gps-status strong { color: #24462f; font-size: .94rem; }
#xp-sheet #gps-status .gps-dot { background: #239dde; border: 1px solid #e5eff5; }
#xp-sheet #gps-status.stale .gps-dot { background: #c99146; }
#xp-sheet #gps-status :is(.text-button, .close) { min-height: 44px; width: auto; height: auto; padding: 0 11px; border: 1px solid #c7d1bf; color: #294e36; background: #f3f6ea; font-size: .8rem; border-radius: 6px; text-decoration: none; }
#xp-sheet #gps-status .text-button { grid-column: 1 / -1; }
#xp-sheet #gps-status .close { grid-column: 1 / -1; text-align: center; margin: 0; color: #714b37; background: none; }
.xp-gps-metric { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0; padding: 12px 0; border-top: 1px solid var(--xp-hairline); border-bottom: 1px solid var(--xp-hairline); }
.xp-gps-metric span { font-size: .82rem; color: #5f6a58; }
.xp-gps-metric strong { font: normal 1.45rem var(--xp-serif); }
.xp-app #info-dialog { color: var(--xp-ink); background: #fbfaf3; border: 1px solid #d4d8ca; border-radius: 13px; }
.xp-app #info-dialog .close { min-width: 44px; min-height: 44px; }
@keyframes xp-sheet-in { from { opacity: .3; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 1700px) {
  .xp-cover { padding-left: 80px; padding-right: 80px; }
}
@media (max-width: 1000px) {
  .xp-app .parcel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --xp-bar: 66px; --xp-margin: clamp(16px, 5vw, 26px); }
  #xp-entry { background: radial-gradient(ellipse at 67% 32%, #284535 0, #143326 38%, #0c281d 73%, #0a231a 100%); }
  .xp-cover {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(140px, 1fr) auto auto;
    grid-template-areas: "head" "plate" "content" "credits";
    min-height: 100vh;
    min-height: 100svh;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  .xp-cover-logo { width: 100px; }
  .xp-place { font-size: .69rem; gap: 5px; }
  .xp-place .xp-icon { width: 13px; }
  .xp-plate { margin: 2px 0; }
  .xp-survey { width: min(82%, 39vh, 360px); width: min(82%, 39svh, 360px); }
  .xp-plate::before { inset: 0 -4%; background-size: 44px 44px; }
  .xp-north { right: 5%; top: 12%; }
  .xp-cover-content { padding: 9px 0 clamp(25px, 4.1vh, 40px); }
  .xp-cover-caption { font-size: .59rem; letter-spacing: .145em; gap: 8px; }
  .xp-cover-caption i { width: 21px; }
  .xp-cover-content h1 { max-width: none; margin: 13px 0 10px; font-size: clamp(2.9rem, 10.8vw, 4.5rem); line-height: .97; letter-spacing: -.06em; }
  .xp-cover-content > p { font-size: .87rem; }
  .xp-cover-actions { margin-top: 19px; gap: 9px; }
  .xp-enter, .xp-install { min-height: 48px; font-size: .86rem; }
  .xp-enter { min-width: 141px; padding: 0 18px; }
  .xp-install { padding: 0 17px; }
  .xp-credits { padding-top: 11px; gap: 10px; }
  .xp-credits > div { gap: 8px; }
  .xp-credits > div:last-child { display: grid; gap: 3px; text-align: right; }
  .xp-credits span { font-size: .59rem; }
  .xp-credits img { width: 52px; height: 26px; }
  .xp-credits b { font-size: .73rem; }
  .xp-shellbar { gap: 8px; }
  .xp-shell-logo { width: 76px; height: 40px; }
  .xp-tab { gap: 6px; padding: 0 10px; font-size: .78rem; }
  .xp-tab .xp-icon { width: 14px; height: 14px; }
  .xp-shellbar > .xp-round { border-color: transparent; }
  #glebas-view .page-heading { display: grid; margin-bottom: 14px; gap: 13px; }
  .xp-search { width: 100%; }
  .xp-catalog-title { gap: 10px; }
  .xp-catalog-title h1, #offline-view h1 { font-size: clamp(2.55rem, 10.2vw, 3.75rem); }
  #xp-total { font-size: .76rem; }
  .xp-app .parcel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .xp-card { border-radius: 8px; aspect-ratio: 1 / 1.13; }
  .xp-card-meta { left: 12px; bottom: 12px; gap: 4px; }
  .xp-card small { font-size: .72rem; }
  .xp-card-arrow { right: 10px; bottom: 12px; width: 26px; height: 26px; }
  .xp-card-arrow .xp-icon { width: 13px; }
  .xp-hud { inset: max(13px, env(safe-area-inset-top)) max(13px, env(safe-area-inset-right)) auto max(13px, env(safe-area-inset-left)); gap: 8px; }
  .xp-hud-actions { gap: 5px; }
  .xp-ficha { padding: 0 11px; gap: 5px; }
  #xp-sheet {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: calc(89dvh - env(safe-area-inset-top));
    padding: 0 max(0px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px, env(safe-area-inset-left));
    border-radius: 19px 19px 0 0;
    border-bottom: 0;
  }
  #xp-sheet[open] { animation-name: xp-sheet-up; }
  .xp-sheet-head { padding: 12px 14px 10px 20px; }
  .xp-sheet-body { padding: 8px 20px 18px; }
}
@keyframes xp-sheet-up { from { opacity: .55; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) {
  .xp-shellbar { grid-template-columns: 1fr auto 44px; gap: 4px; }
  .xp-shell-logo { width: 59px; }
  .xp-tab { padding: 0 8px; }
  .xp-cover-caption { font-size: .54rem; }
  .xp-card-meta { left: 9px; }
  .xp-card-arrow { width: 23px; height: 23px; right: 8px; }
  .xp-hud-actions { gap: 3px; }
  .xp-hud { gap: 6px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .xp-cover { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "head head" "content plate" "credits credits"; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .xp-cover-logo { width: 84px; }
  .xp-cover-content { padding: 12px 0; }
  .xp-cover-content h1 { max-width: none; margin: 12px 0; font-size: clamp(2.75rem, 6vw, 4.2rem); }
  .xp-cover-actions { margin-top: 14px; }
  .xp-cover .xp-survey { width: min(80%, 52vh); }
  .xp-credits { padding-top: 6px; }
  #xp-sheet { max-height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .xp-app *, .xp-app *::before, .xp-app *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
