/* The app: globe view and site view. Desktop by default; [data-layout="phone"] rearranges the same pieces globe-first. */
.app { position: relative; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink-2); --pr: 380px;
  background-image: linear-gradient(rgba(30, 38, 36, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 38, 36, 0.045) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.app:not([data-layout="phone"]) .only-phone { display: none !important; }
.app[data-layout="phone"] .only-desktop { display: none !important; }
.only-wide { display: none; }
@media (min-width: 1180px) { .only-wide { display: block; } }

/* header */
.app-head { position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg-a); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.tag { padding: 3px 7px; border-radius: 5px; background: rgba(30, 38, 36, 0.06); }
.preview-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-3); font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.preview-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--boundary); }
.preview-pill:hover { color: var(--ink); border-color: var(--ink-3); }
.variant .seg { height: 28px; }
.readout { display: flex; gap: 10px; white-space: nowrap; }
.readout .mono { color: var(--ink); text-transform: none; white-space: pre; }

/* stage */
.stage { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; overflow: hidden; }
.globe-host { position: absolute; inset: 0; }
.hint { position: absolute; top: 18px; left: calc(var(--pr) + (100% - var(--pr)) / 2); transform: translateX(-50%); z-index: 4; margin: 0; display: flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--paper-a); box-shadow: var(--shadow); font-size: 12px; color: var(--ink); white-space: nowrap; pointer-events: none; max-width: calc(100% - var(--pr) - 140px); overflow: hidden; text-overflow: ellipsis; }
.lz-slot { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 5; }
.badge { position: absolute; left: calc(var(--pr) + 24px); bottom: 20px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--paper-a); box-shadow: 0 0 0 1px rgba(30, 38, 36, 0.06); pointer-events: none; }
.app[data-zoomed="0"] .badge { display: none; }
.badge .cap { color: var(--ink); }
.scale { display: flex; align-items: center; gap: 8px; }
.scale-bar { display: block; height: 5px; width: 100px; border: 1.5px solid var(--ink); border-top: 0; }
.scale .mono { font-size: 11px; color: var(--ink); }
.simtag { position: absolute; right: 88px; bottom: 20px; z-index: 4; }
.ml-slot { position: absolute; right: 20px; top: 18px; z-index: 6; }
.legend { position: absolute; left: calc(var(--pr) + 28px); right: 88px; bottom: 22px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; pointer-events: none; }
.legend-size { display: flex; align-items: center; gap: 14px; }
.ls { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.ls i { width: var(--s); height: var(--s); border-radius: 50%; background: #64775C; }
.map-note { position: absolute; left: calc(var(--pr) + 24px); right: 140px; bottom: 64px; z-index: 3; margin: 0; max-width: 520px; font-size: 12px; line-height: 1.45; color: var(--ink-3); pointer-events: none; text-shadow: 0 0 4px var(--paper), 0 0 2px var(--paper); }

/* panel */
.panel { position: absolute; left: 16px; top: 72px; bottom: 16px; width: 348px; z-index: 10; display: flex; flex-direction: column; border-radius: 16px; background: var(--paper-a); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise 0.55s var(--ease-out) both; }
.panel-search { padding: 16px 16px 12px; }
.panel-search .results { margin: 8px -10px 0; }
.panel-body { flex: 1; min-height: 0; padding: 0 6px 10px; }
.panel-foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.panel-foot span { display: flex; align-items: center; gap: 7px; }
.app[data-results="1"] .panel-body .place, .app[data-results="1"] .featured { display: none; }

.place { margin: 0 10px 16px; padding: 14px 14px 12px; border-radius: 12px; background: var(--bg); animation: fade 0.5s ease both; }
.place-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.place h2 { margin: 6px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-region { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.place-xy { margin-top: 2px; font-size: 11px; color: var(--faint); }
.place-hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }
.lvl-badge { flex: none; padding: 4px 7px; border-radius: 6px; background: var(--bg); font-size: 11px; color: var(--ink); }
.steps { margin: 12px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px solid var(--line); }
.stp { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; }
.stp i { width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--faint); }
.stp.is-now i { border: 4px solid var(--accent); }
.stp.is-done i { border: 0; background: var(--ink); position: relative; }
.stp.is-done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.stp b { font-weight: 500; font-size: 13.5px; color: var(--ink); }
.stp span { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.bound-box { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.bb-row { display: flex; justify-content: space-between; align-items: baseline; }
.bb-dim { font-size: 15px; color: var(--ink); }
.bb-area { font-size: 12px; color: var(--muted); }
.bound-box .meter { margin-top: 8px; }
.bb-lim { margin-top: 6px; font-size: 11px; color: var(--muted); }
.bound-box.is-limit .bb-lim { color: var(--boundary-ink); }
.bb-tip { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.bb-actions { display: flex; gap: 8px; margin-top: 12px; }
.bb-actions .btn { flex: 1; height: 42px; font-size: 14px; }
.bb-actions .btn-ghost { height: 42px; font-size: 14px; }

.featured { padding-top: 2px; }
.list-head { display: flex; justify-content: space-between; margin: 4px 10px 6px; }
.featured ul { margin: 0; padding: 0; list-style: none; }
.feat { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; transition: background 0.15s; }
.feat:hover { background: rgba(30, 38, 36, 0.045); }
.thumb { flex: none; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--line-soft); box-shadow: inset 0 0 0 1px rgba(30, 38, 36, 0.08); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.sm { width: 40px; height: 40px; border-radius: 8px; }
.feat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feat-name { font-weight: 500; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-xy { font-size: 11px; color: var(--faint); white-space: pre; }
.feat-res { flex: none; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }

/* the map variant: the panel floats over a full-screen map */
.app[data-map="1"] .panel { background: rgba(247, 247, 243, 0.9); }

/* the globe sleeps while the site view is open (hidden, so it stops drawing) */
.app[data-view="site"] .stage, .app[data-view="site"] .panel, .app[data-view="site"] .ph-intro,
.app[data-view="site"] .ph-chips, .app[data-view="site"] .ph-hintrow { display: none !important; }
.app[data-view="site"] .readout { visibility: hidden; }

/* ---------------------------------------------------------------- site view (desktop) */
.site { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; z-index: 15; overflow: hidden; background: var(--bg); animation: fade 0.5s ease both; }
.site-stage { position: absolute; inset: 0; overflow: hidden; }
.site-plan, .site-mesh, .site-prof { position: absolute; inset: 0; animation: fade 0.5s ease both; }
.site-mesh { background-color: var(--surface);
  background-image: linear-gradient(rgba(30, 38, 36, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 38, 36, 0.045) 1px, transparent 1px); background-size: 40px 40px; }
.mesh-host { position: absolute; left: var(--pr); right: 16px; top: 56px; bottom: 34px; }
@media (min-width: 1180px) { .mesh-host { right: 420px; } }
.mesh-host::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 12% at 50% 72%, rgba(30, 38, 36, 0.18), transparent 70%); pointer-events: none; }
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.mesh-cap { position: absolute; left: calc(var(--pr) + 20px); bottom: 22px; }
.site-prof { display: grid; place-items: center; padding: 70px 40px 50px calc(var(--pr) + 40px); }
@media (min-width: 1180px) { .site-prof { padding-right: 440px; } }
.site-prof img { width: 100%; max-width: 620px; height: auto; }
.site-prof .cap { position: absolute; left: calc(var(--pr) + 40px); bottom: 22px; }
.site-modes { position: absolute; top: 16px; left: calc(var(--pr) + (100% - var(--pr)) / 2); transform: translateX(-50%); z-index: 3; background: var(--paper-a); box-shadow: var(--shadow); }
.site-modes .seg { height: 32px; padding: 0 16px; }
.site-panel { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 348px; z-index: 3; display: flex; flex-direction: column; border-radius: 16px; background: var(--paper-a); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise 0.55s var(--ease-out) both; }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 8px; background: var(--bg); font-size: 13px; color: var(--ink); flex: none; }
.back:hover { background: var(--surface); }
.sp-body { flex: 1; min-height: 0; padding: 6px 18px 14px; }
.sp-title { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.demo-note { margin: 12px 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 12.5px; line-height: 1.45; color: var(--ink-3); border-left: 3px solid var(--boundary); }
.sp-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sp-sec:last-child { border-bottom: 0; }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-big { margin-top: 8px; font-size: 15px; color: var(--ink); }
.sp-sec .meter { margin-top: 10px; }
.sp-small { margin-top: 6px; font-size: 11px; color: var(--muted); }
.sp-sec .segs { margin-top: 10px; display: flex; }
.sp-sec .segs .seg { flex: 1; }
.tile-grid { display: grid; gap: 4px; margin-top: 10px; width: min(100%, 230px); max-height: 170px; }
.tile-cell { min-height: 34px; border: 1.5px solid var(--boundary); border-radius: 6px; background: var(--boundary-soft); color: var(--boundary-ink); font-size: 12px; }
.tile-cell:hover { background: rgba(208, 74, 55, 0.14); }
.geo { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; font-size: 11.5px; }
.geo dt { color: var(--muted); }
.geo dd { margin: 0; color: var(--ink); min-width: 0; }
.sp-note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.file-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); }
.file-list .mono { font-size: 12px; color: var(--muted); text-align: right; }
.sp-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.dl-meta { margin-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }
.dl-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.site-cardwrap { position: absolute; right: 16px; bottom: 16px; z-index: 3; }

/* plan map */
.plan-map { position: absolute; inset: 0; overflow: hidden; }
.plan-box { position: absolute; width: var(--mw); aspect-ratio: 3 / 2; }
.plan-veil { position: absolute; inset: 0; background: var(--veil, rgba(235, 236, 230, 0.5)); }
.plan-map[data-style="trail"] { --veil: rgba(239, 238, 228, 0.5); }
.plan-map[data-style="stone"] { --veil: rgba(255, 255, 255, 0.55); }
.plan-map[data-style="stone"] .plan-bound { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9); }
.plan-bound { position: absolute; border: 2px solid var(--boundary); background: var(--boundary-soft); box-shadow: 0 0 0 1px rgba(247, 247, 243, 0.8); }
.pb-grid { position: absolute; inset: 0; }
.pb-grid i { position: absolute; }
.pb-grid .v { top: 0; bottom: 0; margin-left: -0.75px; border-left: 1.5px dashed rgba(208, 74, 55, 0.8); }
.pb-grid .h { left: 0; right: 0; margin-top: -0.75px; border-top: 1.5px dashed rgba(208, 74, 55, 0.8); }
.pb-corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.pb-corner.nw { left: -8px; top: -8px; border-width: 1.5px 0 0 1.5px; }
.pb-corner.ne { right: -8px; top: -8px; border-width: 1.5px 1.5px 0 0; }
.pb-corner.sw { left: -8px; bottom: -8px; border-width: 0 0 1.5px 1.5px; }
.pb-corner.se { right: -8px; bottom: -8px; border-width: 0 1.5px 1.5px 0; }
.pb-w { position: absolute; left: 0; right: 0; top: -30px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink); }
.pb-w i { flex: 1; height: 1px; background: var(--ink); }
.pb-h { position: absolute; top: 0; bottom: 0; right: -34px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--ink); writing-mode: vertical-rl; }
.pb-h i { flex: 1; width: 1px; background: var(--ink); }
.pb-w b, .pb-h b { font-weight: 400; }
.pb-area { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--boundary-ink); background: var(--paper-a); padding: 2px 6px; border-radius: 4px; }
.plan-spot { position: absolute; transform: translate(-5px, -5px); display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink); text-shadow: 0 0 3px var(--paper-2), 0 0 3px var(--paper-2); }
.plan-pin { position: absolute; width: 0; height: 0; }
.plan-pin svg { position: absolute; left: -15px; top: -40px; filter: drop-shadow(0 4px 6px rgba(30, 38, 36, 0.35)); }
.plan-pin span { position: absolute; left: 20px; top: -36px; white-space: nowrap; font-size: 11px; letter-spacing: 0.04em; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); }

/* the demo site card */
.site-card { width: 392px; max-width: 100%; padding: 16px 18px 18px; border-radius: 16px; background: var(--paper-a); border: 1px solid var(--line); box-shadow: 0 22px 44px -26px rgba(30, 38, 36, 0.55); color: var(--ink); }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.site-card .tag { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--bg); font-size: 11px; letter-spacing: 0.06em; color: var(--ink); }
.site-card h2 { margin: 10px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.sc-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.sc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-v { display: flex; align-items: baseline; gap: 3px; }
.stat-v b { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.stat-v span { font-size: 12px; }
.stat-l { font-size: 12px; color: var(--muted); }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 10px; font-size: 14px; font-weight: 600; }
.sc-head .mono { font-size: 11px; font-weight: 400; color: var(--muted); }
.profile { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------------------------------------------------------------- phone: globe-first */
.app[data-layout="phone"] { --pr: 0px; }
.app[data-layout="phone"] .app-head { top: 12px; left: 20px; right: 16px; height: 44px; padding: 0; gap: 10px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app[data-layout="phone"] .brand { font-size: 16px; }
.app[data-layout="phone"] .brand span { display: none; }
.app[data-layout="phone"] .variant { background: var(--paper-a); }
.app[data-layout="phone"] .variant .seg { padding: 0 10px; font-size: 11.5px; }
.app[data-layout="phone"] .stage { top: 0; }
.ph-intro { position: absolute; left: 20px; right: 20px; top: 70px; z-index: 5; pointer-events: none; transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.ph-intro h1 { margin: 8px 0 0; font-size: 36px; font-weight: 300; line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.app[data-layout="phone"] .panel { display: contents; }
.app[data-layout="phone"] .panel-search { position: absolute; left: 16px; right: 16px; top: 176px; z-index: 12; padding: 0; transition: transform 0.5s var(--ease-out); }
.app[data-layout="phone"] .panel-search .field { height: 52px; padding: 0 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgba(30, 38, 36, 0.12), 0 18px 36px -24px rgba(30, 38, 36, 0.55); }
.app[data-layout="phone"] .panel-search .search-input { font-size: 16px; }
.app[data-layout="phone"] .panel-search .results { margin: 8px 0 0; padding: 6px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(30, 38, 36, 0.6); max-height: 52vh; overflow: auto; }
.app[data-layout="phone"] .panel-search .res { min-height: 52px; }
.app[data-layout="phone"] .panel-search .res-xy { display: none; }
.app[data-layout="phone"] .panel-body { display: contents; }
.app[data-layout="phone"] .place { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 11; margin: 0; padding: 14px 16px 16px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px rgba(30, 38, 36, 0.08), 0 24px 48px -28px rgba(30, 38, 36, 0.6); animation: rise 0.5s var(--ease-out) both; }
.app[data-layout="phone"] .place h2 { margin: 0; }
.app[data-layout="phone"] .bb-actions .btn, .app[data-layout="phone"] .bb-actions .btn-ghost { height: 48px; font-size: 15px; }
.ph-chips { position: absolute; left: 0; right: 0; top: 242px; z-index: 5; display: flex; gap: 8px; padding: 0 16px; transition: opacity 0.35s ease; }
.ph-chips .chip { height: 34px; background: rgba(247, 247, 243, 0.7); }
.ph-hintrow { position: absolute; left: 16px; right: 16px; top: 292px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; transition: opacity 0.35s ease; }
.ph-hintrow .cap { color: var(--ink-3); }
.ground-dots { display: flex; gap: 5px; }
.ground-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.app[data-layout="phone"][data-zoomed="1"] .panel-search { transform: translateY(-110px); }
.app[data-layout="phone"][data-zoomed="1"] .ph-intro, .app[data-layout="phone"][data-results="1"] .ph-intro { opacity: 0; transform: translateY(-8px); }
.app[data-layout="phone"][data-zoomed="1"] .ph-chips, .app[data-layout="phone"][data-results="1"] .ph-chips,
.app[data-layout="phone"][data-zoomed="1"] .ph-hintrow, .app[data-layout="phone"][data-results="1"] .ph-hintrow { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.35s ease, visibility 0s 0.35s; }
.app[data-layout="phone"] .hint { display: none; }
.app[data-layout="phone"] .globe-ring text { display: none; }
.app[data-layout="phone"] .lz-slot { right: 12px; top: 128px; transform: none; transition: opacity 0.35s ease; }
.app[data-layout="phone"][data-zoomed="0"] .lz-slot { opacity: 0; pointer-events: none; }
.app[data-layout="phone"] .badge { left: 16px; top: 128px; bottom: auto; gap: 10px; padding: 7px 10px; }
.app[data-layout="phone"] .simtag { left: 16px; top: 172px; right: auto; bottom: auto; }
.app[data-layout="phone"] .ml-slot { left: 16px; top: 172px; right: auto; }
.app[data-layout="phone"] .ml-pop { left: 0; right: auto; }
.app[data-layout="phone"] .map-note { left: 16px; right: 70px; top: 210px; bottom: auto; font-size: 11.5px; }
.app[data-layout="phone"][data-results="1"] .place { display: none; }

/* phone: the site opens full screen, model on top and a sheet below */
.app[data-layout="phone"] .site { top: 0; z-index: 30; }
.app[data-layout="phone"] .site-stage { bottom: 47%; }
.app[data-layout="phone"] .mesh-host { left: 0; right: 0; top: 64px; bottom: 16px; }
.app[data-layout="phone"] .mesh-cap, .app[data-layout="phone"] .site-prof .cap { display: none; }
.app[data-layout="phone"] .site-prof { padding: 72px 16px 16px; }
.app[data-layout="phone"] .site-modes { top: 14px; left: auto; right: 12px; transform: none; }
.app[data-layout="phone"] .site-modes .seg { padding: 0 10px; height: 34px; }
.app[data-layout="phone"] .site-panel { left: 0; right: 0; bottom: 0; top: auto; height: 50%; width: auto; border-radius: 22px 22px 0 0; border: 0; box-shadow: 0 -1px 0 rgba(30, 38, 36, 0.06), 0 -18px 40px -30px rgba(30, 38, 36, 0.5); background: var(--paper); }
.app[data-layout="phone"] .sp-head { display: none; }
.site-back { position: absolute; left: 12px; top: 14px; z-index: 4; height: 40px; padding: 0 14px 0 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.app[data-layout="phone"] .sp-body { padding: 16px 20px 10px; }
.app[data-layout="phone"] .sp-body::before { content: ""; display: block; width: 40px; height: 5px; margin: -6px auto 12px; border-radius: 3px; background: rgba(30, 38, 36, 0.16); }
.app[data-layout="phone"] .sp-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
.app[data-layout="phone"] .sp-foot .btn { height: 52px; font-size: 15px; }
