:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #585858;
  --line: #dedede;
  --paper: #fff;
  --soft: #f3f3f3;
  --green: #00a23c;
  --green-dark: #087634;
  --page-width: 1140px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--green-dark); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }

.site-header { background: #121212; color: white; border-bottom: 4px solid #f6164c; }
.masthead, main, .header-strip span {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; font-size: clamp(1rem, 2.6vw, 1.58rem); font-weight: 800; line-height: 1.15; }
.brand img { display: block; flex: none; object-fit: contain; background: white; }
.header-strip { border-top: 1px solid #363636; background: #222; }
.header-strip span { display: block; padding: 10px 0; color: #e8e8e8; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#logout { background: transparent; color: white; border: 1px solid #666; }
#logout:hover { background: #333; }
#logout:focus-visible { outline-color: #b9e399; }

main { margin-block: 34px 64px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-weight: 800; letter-spacing: .1em; font-size: .75rem; }
h1 { margin: 0; font-size: clamp(1.85rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 0 0 14px; font-size: 1.4rem; line-height: 1.15; }
.score { display: grid; text-align: center; min-width: 108px; padding: 7px 14px; border: 1px solid var(--line); border-top: 3px solid var(--green); }
.score strong { color: var(--green-dark); font-size: 1.75rem; line-height: 1.2; }
.score span { color: var(--muted); font-size: .8rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; }
.layout.site { grid-template-columns: minmax(0, 1fr); }
.panel { border: 1px solid var(--line); background: var(--paper); min-width: 0; }
#map { height: clamp(340px, 49vh, 540px); display: grid; place-items: center; background: var(--soft); isolation: isolate; }
#map.ready { display: block; }
#map-status { padding: 24px; text-align: center; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .82rem; }
#tiles-error { color: #8b2323; }
.report { padding: 22px; border-top: 3px solid var(--green); }
.report h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); margin-bottom: 18px; }
.login-page { max-width: 430px; }
fieldset { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
label { display: grid; gap: 4px; font-size: .88rem; font-weight: 700; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), textarea, select { width: 100%; min-width: 0; padding: 9px; border: 1px solid #bfbfbf; border-radius: 0; color: var(--ink); background: white; }
textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 7px; font-weight: 400; }
.consent input { margin-top: 4px; accent-color: var(--green-dark); }
button { cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); }
button:hover { background: var(--soft); }
button:disabled { cursor: default; opacity: .55; }
.primary { border-color: var(--green-dark); background: var(--green-dark); color: white; font-weight: 700; }
.primary:hover { background: #295514; }
#session, #result, #moderation-result { color: var(--muted); font-size: .88rem; }
#session { margin: 0 0 12px; }
#result:empty, #moderation-result:empty { display: none; }

.feed { margin-top: 32px; }
.feed > h2 { border-bottom: 2px solid var(--ink); padding-bottom: 10px; text-transform: uppercase; }
.toolbar, .filters, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar, .filters { margin-bottom: 12px; }
.toolbar button { font-weight: 700; }
.toolbar button[aria-pressed=true] { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.danger { color: #9a2424; border-color: #d9a4a4; }
.danger:hover { background: #fff1f1; }
.delete-all { margin-left: auto; }
.card .actions { margin-top: 8px; }
.filters label { min-width: 145px; }
.report-group { margin: 20px 0; }
.report-group h3 { margin: 0 0 10px; padding-left: 9px; border-left: 3px solid var(--green); font-size: 1rem; text-transform: uppercase; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.card { overflow: hidden; border: 1px solid var(--line); background: white; }
.card img { display: block; width: 100%; height: 162px; object-fit: cover; }
.card > div { padding: 12px; overflow-wrap: anywhere; }
.card strong { font-size: 1.05rem; }
.card p { margin: 5px 0; }
.card small { display: block; margin: 6px 0; color: var(--muted); }
.pin-detail { max-width: 240px; overflow-wrap: anywhere; }
.pin-detail img { width: 100%; max-height: 160px; object-fit: cover; }
.pin-detail small { display: block; }

.city-mode { overflow: hidden; }
.city-mode .site-header { display: none; }
.city-home { position: fixed; inset: 0; isolation: isolate; background: #72858d; color: #f6fff1; }
.city-scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.city-scene picture { display: block; width: 100%; height: 100%; }
.city-scene img { display: block; width: 100%; min-width: 0; height: auto; object-position: center top; }
.city-controls {
  position: absolute;
  inset-inline: 0;
  bottom: calc(16px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  width: min(460px, calc(100% - 28px));
  margin-inline: auto;
  display: grid;
  gap: 9px;
}
.city-fullscreen {
  position: absolute;
  top: calc(12px + max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  right: 14px;
  padding: 7px 11px;
  border: 1px solid #afd4a780;
  border-radius: 8px;
  background: #11251fee;
  color: #dcffae;
  font-size: .76rem;
  font-weight: 700;
}
.city-fullscreen:hover { background: #203c2c; }
.city-progress {
  padding: 10px 13px 9px;
  border: 1px solid #afd4a780;
  border-radius: 10px;
  background: #11251fee;
  box-shadow: 0 4px 0 #10201980;
}
.city-progress-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 6px; }
.city-progress-heading strong { color: #dcffae; font-size: .77rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
#city-progress-text { color: #f4fff1; font-size: .76rem; font-weight: 700; }
.city-progress p { margin: 6px 0 0; color: #d9e8da; font-size: .72rem; line-height: 1.3; }
#city-meter { display: block; appearance: none; width: 100%; height: 9px; border: 0; border-radius: 6px; overflow: hidden; background: #071811; accent-color: #a3e75d; }
#city-meter::-webkit-progress-bar { background: #071811; }
#city-meter::-webkit-progress-value { background: linear-gradient(90deg, #57b743, #c5f779); border-radius: 6px; }
#city-meter::-moz-progress-bar { background: linear-gradient(90deg, #57b743, #c5f779); border-radius: 6px; }
.improve-button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 15px;
  border: 2px solid #d1f587; border-radius: 10px;
  background: linear-gradient(#447d2b, #23521a); color: #fffde3;
  box-shadow: 0 4px 0 #132c0e, inset 0 1px 0 #ffffff59;
  font-size: .96rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
}
.improve-button:hover { background: linear-gradient(#508c35, #2b5f20); }
.improve-button:active { transform: translateY(2px); box-shadow: 0 2px 0 #132c0e; }
.improve-button:focus-visible { outline-color: #fffde3; }
.city-back { margin-bottom: 12px; }

@media (max-width: 720px) {
  .masthead, main, .header-strip span { width: calc(100% - 28px); }
  .masthead { min-height: 64px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  main { margin-top: 23px; }
  .intro { align-items: flex-start; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  #map { height: 330px; }
  .score { min-width: 78px; padding: 5px; }
  .score span { font-size: .72rem; }
  .report { padding: 16px; }
}

/* The report mission uses the same controls and palette as the city screen. */
.mini-app {
  --mission-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  color-scheme: dark;
  --mission-bg: #0a1b17;
  --mission-panel: #132a23;
  --mission-field: #0b2019;
  --mission-line: #4c6954;
  --mission-text: #f4fff1;
  --mission-muted: #bcd0c0;
  --mission-accent: #d4f791;
  background: radial-gradient(ellipse at 65% 0, #214934, var(--mission-bg) 62%);
  color: var(--mission-text);
  min-height: 100dvh;
  overflow: hidden;
}
.mini-app .site-header { display: none; }
.mini-app .city-home { --garden-table-y: min(69dvh, calc(100dvh - 245px)); width: min(100%, 460px); margin-inline: auto; }
.mini-app main {
  position: fixed;
  inset: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(432px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: calc(12px + var(--mission-safe-top));
}
.mini-app :focus-visible { outline-color: var(--mission-accent); }
.mini-app .intro {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin: 0 0 14px;
  background: #11251f;
  border: 1px solid var(--mission-line);
  border-radius: 12px;
  box-shadow: 0 4px 0 #07140e;
}
.mini-app .intro .eyebrow {
  margin: 0 0 3px;
  color: var(--mission-accent);
  font-size: .65rem;
  letter-spacing: .14em;
}
.mini-app h1 {
  margin: 0;
  font-size: clamp(1rem, 4.1vw, 1.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.mini-app .city-back, .mini-app #locate {
  color: var(--mission-text);
  background: #203c2c;
  border: 1px solid #749468;
  border-radius: 8px;
  box-shadow: 0 2px 0 #07140e;
  font-weight: 800;
}
.mini-app .city-back { display: grid; place-items: center; margin: 0; padding: 0; width: 42px; height: 42px; font-size: 1.25rem; }
.mini-app .city-back:hover, .mini-app #locate:hover { background: #33543c; }
.mini-app .score {
  min-width: 57px;
  padding: 4px 7px;
  border: 1px solid #6d895e;
  border-radius: 8px;
  background: #0b2019;
}
.mini-app .score strong { color: var(--mission-accent); font-size: 1.1rem; }
.mini-app .score span { font-size: .62rem; color: var(--mission-muted); }
.mini-app .layout {
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  clip-path: inset(0);
  scroll-padding-block: 12px;
  padding-bottom: calc(22px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  gap: 13px;
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
}
.mini-app .panel {
  background: var(--mission-panel);
  border: 1px solid var(--mission-line);
  border-radius: 12px;
  box-shadow: 0 4px 0 #07140e;
  overflow: hidden;
}
.mini-app .mission-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--mission-text);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.mission-stage b {
  padding: 2px 6px;
  border: 1px solid #90b477;
  border-radius: 5px;
  background: #23442d;
  color: var(--mission-accent);
  font-variant-numeric: tabular-nums;
  font-size: .73rem;
}
.mini-app .mission-map > h2 { padding: 10px 12px; }
.mini-app #map { height: clamp(252px, 42dvh, 450px); background: #253d34; color: var(--mission-text); }
.mini-app .map-bar { background: #10241d; border-color: var(--mission-line); color: var(--mission-muted); font-size: .76rem; }
.mini-app .map-bar > a { color: #cde6bc; }
.mini-app #tiles-error { color: #ffd1bd; }
.mini-app .mission-report { padding: 13px; }
.mini-app #session, .mini-app #result { color: var(--mission-muted); font-size: .78rem; }
.mini-app #session { margin: 6px 0 11px; }
.district-auto { display: grid; gap: 4px; font-size: .8rem; }
.mini-app .district-auto { padding: 9px 11px; border: 1px solid var(--mission-line); border-radius: 8px; background: var(--mission-field); color: var(--mission-muted); }
.mini-app .district-auto strong { color: var(--mission-accent); font-weight: 600; }
.mini-app #result { margin-bottom: 0; color: var(--mission-text); }
.mini-app fieldset { gap: 11px; }
.mini-app input:not([type=checkbox],[type=file]), .mini-app textarea, .mini-app select {
  min-height: 43px;
  border-color: var(--mission-line);
  border-radius: 8px;
  background: var(--mission-field);
  color: var(--mission-text);
  font-size: 16px;
}
.mini-app input::placeholder, .mini-app textarea::placeholder { color: #a3b9aa; }
.mini-app .mission-photo > h3 { margin: 2px 0 7px; }
.mini-app .photo-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px dashed #89ad73;
  border-radius: 8px;
  color: var(--mission-accent);
  background: var(--mission-field);
  cursor: pointer;
}
.mini-app .photo-slot:focus-within { outline: 2px solid var(--mission-accent); outline-offset: 2px; }
.mini-app .photo-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mini-app .photo-slot-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #294832; font-size: 1.15rem; }
.mini-app .photo-slot img { width: 52px; height: 42px; border-radius: 5px; object-fit: cover; }
.mini-app .photo-slot img:not([hidden]) + .photo-slot-icon { display: none; }
.mini-app .consent { color: var(--mission-muted); font-size: .76rem; line-height: 1.35; }
.mini-app .consent input { accent-color: #92ce60; }
.mini-app .mission-submit { width: 100%; font-size: .84rem; }
.mini-app .leaflet-bar a {
  background: #203c2c;
  color: #f4fff1;
  border-color: #749468;
}
.mini-app .leaflet-bar a:hover { background: #33543c; }
.mini-app .leaflet-control-attribution { background: #11251fee; color: #f4fff1; }
.mini-app .leaflet-control-attribution a { color: #d4f791; }

/* The plant is a transparent sprite, leaving the city visible around it. */
.garden-wallet { position: absolute; top: calc(12px + var(--mission-safe-top, 0px)); left: 14px; display: grid; padding: 6px 12px; border: 1px solid #afd4a780; border-radius: 10px; background: #11251fee; color: #f2ffc9; }
.garden-wallet > span { font-weight: 900; font-size: 1.12rem; line-height: 1.2; }
.balcony-view { position: absolute; top: calc(var(--garden-table-y) - 88px); bottom: 0; left: 0; width: 100%; height: calc(100% - var(--garden-table-y) + 88px); pointer-events: none; }
.garden-table { position: absolute; top: calc(var(--garden-table-y) - 20px); left: 5%; width: 90%; height: 150px; pointer-events: none; }
.garden-center { position: absolute; top: calc(var(--garden-table-y) + 18px); left: 50%; transform: translate(-50%, -100%); display: grid; justify-items: center; width: min(50vw, 240px); }
.garden-plant { position: relative; aspect-ratio: 360 / 440; transform-origin: 50% 94.3%; width: min(42vw, 26dvh, 180px); padding: 0; border: 0; background: none; box-shadow: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.garden-plant:hover, .garden-plant:active { background: none; }
.garden-plant:disabled { opacity: .75; }
.garden-plant img { display: block; width: 100%; height: auto; pointer-events: none; }
.garden-name { position: absolute; top: calc(100% + 6px); padding: 2px 10px; border-radius: 12px; background: #11251fd9; font-size: .76rem; color: #edffd7; }
.garden-hint { position: absolute; top: calc(100% + 28px); margin-top: 4px; font-size: .62rem; color: #f4ffe8; text-shadow: 0 1px 3px #071c14; white-space: nowrap; }
.city-shops { display:flex; justify-content:flex-end; gap:9px; }
.game-shop-button { position:relative; display:grid; place-items:center; width:44px; height:44px; padding:10px; border:1px solid #93b57b; border-radius:9px; background:#11251ff2; color:#d5f5b5; box-shadow:0 3px 0 #081b13; }
.game-shop-button:hover { background:#284a34; }
.game-shop-button svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.shop-dot { position:absolute; right:-3px; top:-3px; width:12px; height:12px; border:2px solid #10251c; border-radius:50%; background:#a2ee66; box-shadow:0 0 7px #a5f16680; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.city-upgrades { position:absolute; inset:0 auto auto 0; width:100%; height:auto; pointer-events:none; }
.upgrade-item p { margin:0; font-size:.67rem; color:#b8cebb; line-height:1.4; text-align:center; }
.upgrade-item { align-content:start; }
.upgrade-item button { align-self:end; }
.upgrade-total { margin:9px 0 0; color:#c4deb0; font-size:.75rem; flex-shrink:0; }
#upgrade-shop-message { margin:8px 0; color:#f4ddb0; font-size:.75rem; flex-shrink:0; }
.garden-notice { position: absolute; top: max(120px, calc(var(--garden-table-y) - 245px)); inset-inline: 18px; margin: 0; text-align: center; font-size: .72rem; color: #f4ffe8; text-shadow: 0 1px 4px #071c14; pointer-events: none; }
.oxygen-pop { position: absolute; top: 20%; font-size: 1.3rem; font-weight: 900; color: #efffc2; text-shadow: 0 2px 0 #163927; pointer-events: none; animation: oxygen-pop .8s ease-out forwards; }
@keyframes oxygen-pop { to { transform: translateY(-65px) rotate(-8deg); opacity: 0; } }
.garden-shop { width: min(440px, calc(100% - 24px)); max-width: none; height: min(760px, 86dvh); max-height: 86dvh; padding: 16px; border: 1px solid #8eaf77; border-radius: 18px; background: #10271f; color: #f3ffe9; box-shadow: 0 18px 70px #0009; }
.garden-shop[open] { display: flex; flex-direction: column; }
.garden-shop::backdrop { background: #061811ba; backdrop-filter: blur(5px); }
.garden-shop > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-shrink: 0; }
.garden-shop header p { margin: 0 0 3px; font-size: .62rem; letter-spacing: .13em; color: #badf91; }
.garden-shop h2 { margin: 0; font-size: 1.25rem; }
.garden-shop header button { border: 1px solid #749468; border-radius: 8px; color: #efffd4; background: #203c2c; font-size: 1.25rem; width: 36px; height: 36px; padding: 0; }
.garden-shop-summary { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-shrink: 0; }
.garden-shop-summary > span { white-space: nowrap; font-weight: 800; }
.garden-shop-summary p { margin: 0; font-size: .7rem; line-height: 1.4; color: #b8cebb; }
#garden-shop-message { margin: 8px 0; font-size: .75rem; color: #f4ddb0; flex-shrink: 0; }
#garden-shop-message:empty { margin: 6px 0; }
.garden-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.garden-item { display: grid; justify-items: center; gap: 6px; padding: 9px; border: 1px solid #3e604c; border-radius: 12px; background: #19352a; }
.garden-item.is-current { border-color: #bcdf89; }
.garden-item img { width: 100%; height: 132px; object-fit: contain; }
.garden-item strong { font-size: .76rem; text-align: center; }
.garden-item button { width: 100%; border: 1px solid #8daf70; border-radius: 7px; padding: 7px 2px; background: #396232; color: #edffd6; font-size: .7rem; font-weight: 700; }
.garden-item button:disabled { background: #20392c; border-color: #46604a; color: #a7b6a7; cursor: default; }
.plant-ghost { position: absolute; pointer-events: none; transform-origin: top left; z-index: 3; }
.plant-ghost.in-ground { clip-path: inset(0 0 29% 0); }
.plant-soil { position: absolute; width: 48px; height: 10px; margin: -3px 0 0 -24px; background: #725745; border: 2px solid #a7bd74; border-radius: 50%; z-index: 2; box-shadow: 0 0 0 8px #c2f48925; }
@media (max-height: 600px) {
 .garden-plant { position: relative; aspect-ratio: 360 / 440; transform-origin: 50% 94.3%; width: min(32vw, 20dvh, 140px); }
 .garden-hint { display: none; }
 .city-progress { padding-block: 7px; }
}
@media (prefers-reduced-motion: reduce) { .oxygen-pop { display: none; } }

@media (max-height: 700px) { .garden-hint { display: none; } }

.garden-yield { font-size: .7rem; color: #d2ecaa; }

.oxygen-icon { display: inline-block; color: #b8f1e3; font-weight: 900; letter-spacing: -.03em; }
.garden-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.plant-spinner { width: 32px; height: 32px; border: 3px solid #d3f4ce45; border-top-color: #d2f8ad; border-radius: 50%; animation: plant-loading .8s linear infinite; }
@keyframes plant-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .plant-spinner { animation-duration: 2.5s; } }

.oxygen-pop-symbol { color: #a8e4ff; text-shadow: 0 2px 0 #1b4657, 0 0 8px #77d3ff66; }

/* Native Telegram controls stay above both shop dialogs in fullscreen. */
.mini-app .garden-shop {
  --shop-safe-top: calc(14px + var(--mission-safe-top, 0px));
  --shop-safe-bottom: calc(14px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  position: fixed;
  inset-block: var(--shop-safe-top) var(--shop-safe-bottom);
  margin-block: auto;
  height: min(760px, calc(100dvh - var(--shop-safe-top) - var(--shop-safe-bottom)));
  max-height: calc(100dvh - var(--shop-safe-top) - var(--shop-safe-bottom));
}
