/* Soundscape Atlas workspace. Root rules are scoped to .uwapp-root.uwapp-soundscape (the body carries
   .uwapp-soundscape too). Own colour tokens for light and dark (html[data-theme] / prefers-color-scheme). */
.uwapp-root.uwapp-soundscape {
  --sa-bg: #f2f6f5; --sa-surface: #ffffff; --sa-surface-2: #e6efed; --sa-ink: #12302c; --sa-muted: #42605b;
  --sa-line: #cddcd9; --sa-control: #5f7d78; --sa-accent: #0f766e; --sa-accent-ink: #0b5e58; --sa-on-accent: #ffffff;
  --sa-indigo: #4338ca; --sa-warn: #9a3412; --sa-ok: #166534; --sa-focus: #b45309;
  --sa-ocean: #dbe9f1; --sa-land: #c9d8c5; --sa-land-line: #8aa38a; --sa-grat: #b9cfdb; --sa-pin: #c2410c; --sa-pin-line: #ffffff; --sa-pin-sel: #4338ca; --sa-pin-no: #6b7280; --sa-route: #4338ca;
  background: var(--sa-bg); color: var(--sa-ink); color-scheme: light;
}
:root[data-theme="dark"] .uwapp-root.uwapp-soundscape {
  --sa-bg: #0d1716; --sa-surface: #142321; --sa-surface-2: #1d302d; --sa-ink: #e5f2ef; --sa-muted: #a9c4bf;
  --sa-line: #2c4541; --sa-control: #7f9e99; --sa-accent: #5eead4; --sa-accent-ink: #99f6e4; --sa-on-accent: #062a26;
  --sa-indigo: #a5b4fc; --sa-warn: #fdba74; --sa-ok: #86efac; --sa-focus: #fbbf24;
  --sa-ocean: #10283a; --sa-land: #2b4436; --sa-land-line: #5d7f66; --sa-grat: #1e3a4f; --sa-pin: #fb923c; --sa-pin-line: #0d1716; --sa-pin-sel: #a5b4fc; --sa-pin-no: #9ca3af; --sa-route: #a5b4fc;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .uwapp-root.uwapp-soundscape {
    --sa-bg: #0d1716; --sa-surface: #142321; --sa-surface-2: #1d302d; --sa-ink: #e5f2ef; --sa-muted: #a9c4bf;
    --sa-line: #2c4541; --sa-control: #7f9e99; --sa-accent: #5eead4; --sa-accent-ink: #99f6e4; --sa-on-accent: #062a26;
    --sa-indigo: #a5b4fc; --sa-warn: #fdba74; --sa-ok: #86efac; --sa-focus: #fbbf24;
    --sa-ocean: #10283a; --sa-land: #2b4436; --sa-land-line: #5d7f66; --sa-grat: #1e3a4f; --sa-pin: #fb923c; --sa-pin-line: #0d1716; --sa-pin-sel: #a5b4fc; --sa-pin-no: #9ca3af; --sa-route: #a5b4fc;
    color-scheme: dark;
  }
}

/* Platform element defaults leak into app workspaces: reset them at zero specificity. */
:where(.sa-app) button { font: inherit; font-size: .9rem; font-weight: 600; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; width: auto; min-height: 0; }
:where(.sa-app) button:hover { background: none; }
:where(.sa-app) :is(input, select, textarea) { font: inherit; color: var(--sa-ink); background: var(--sa-surface); border: 1px solid var(--sa-control); border-radius: 8px; }
:where(.sa-app) table { border-collapse: collapse; width: 100%; margin: 0; font-size: .9rem; }
:where(.sa-app) :is(th, td) { text-align: start; padding: 5px 7px; border-bottom: 1px solid var(--sa-line); vertical-align: middle; }
:where(.sa-app) thead th { background: var(--sa-surface-2); color: var(--sa-ink); }
:where(.sa-app) kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; padding: 1px 6px; border: 1px solid var(--sa-control); border-bottom-width: 2px; border-radius: 5px; background: var(--sa-surface-2); color: var(--sa-ink); white-space: nowrap; }
:where(.sa-app) a { color: var(--sa-accent-ink); }
:where(.sa-app) :is(h2, h3, p) { margin-top: 0; }
:where(.sa-app) pre { background: var(--sa-surface-2); color: var(--sa-ink); }

.sa-app { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--sa-bg); color: var(--sa-ink); }
.sa-app :focus-visible { outline: 3px solid var(--sa-focus); outline-offset: 2px; }
.sa-h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.sa-hint { color: var(--sa-muted); font-size: .85rem; margin: .2rem 0 .5rem; }
.sa-warn { color: var(--sa-warn); font-weight: 600; font-size: .88rem; margin: .2rem 0 .4rem; }
.sa-status { font-size: .88rem; color: var(--sa-ink); min-height: 1.2em; margin: .4rem 0; }
.sa-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.sa-code { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; padding: .6rem .75rem; border-radius: 8px; max-height: 40vh; overflow: auto; margin: .4rem 0; }

/* ---------- buttons */
.sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 34px; padding: .3rem .75rem; border: 1px solid var(--sa-control); border-radius: 8px; background: var(--sa-surface); color: var(--sa-ink); font-size: .88rem; text-decoration: none; }
.sa-btn:hover:not([disabled]) { background: var(--sa-surface-2); }
.sa-btn[disabled], .sa-icon-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sa-btn-small { min-height: 30px; padding: .2rem .55rem; font-size: .82rem; }
/* :where(.uwapp-html) button[type=submit] (0,1,1) from the site styles would win over a plain class */
.sa-btn-primary, .sa-app button[type=submit].sa-btn-primary { background: var(--sa-accent); border-color: var(--sa-accent); color: var(--sa-on-accent); }
.sa-btn-primary:hover:not([disabled]), .sa-app button[type=submit].sa-btn-primary:hover:not([disabled]) { background: var(--sa-accent-ink); border-color: var(--sa-accent-ink); color: var(--sa-on-accent); }
.sa-btn-link { color: var(--sa-accent-ink); }
.sa-btn[aria-pressed="true"]:not(.sa-btn-primary) { background: var(--sa-surface-2); border-color: var(--sa-accent-ink); color: var(--sa-accent-ink); }
.sa-toggle[aria-pressed="true"] { border-width: 2px; }
.sa-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 8px; color: var(--sa-ink); }
.sa-icon-btn:hover:not([disabled]) { background: var(--sa-surface-2); border-color: var(--sa-line); }
.sa-linklike { color: var(--sa-accent-ink); text-decoration: underline; text-align: start; font-size: inherit; font-weight: inherit; }

/* ---------- top bar + tabs */
.sa-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: .45rem .8rem; background: var(--sa-surface); border-bottom: 1px solid var(--sa-line); }
.sa-bar-start, .sa-bar-end { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-width: 0; }
.sa-name { min-height: 34px; padding: .2rem .55rem; font-weight: 700; width: 15rem; max-width: 60vw; }
.sa-save-state { font-size: .8rem; color: var(--sa-muted); }
.sa-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sa-accent-ink); font-size: .88rem; }
.sa-play { border-radius: 999px; padding: .35rem 1.1rem; min-height: 38px; font-size: .95rem; }
.sa-menu-wrap { position: relative; }
.sa-menu-btn { display: inline-flex; align-items: center; gap: .2rem; min-height: 34px; padding: .3rem .6rem; border-radius: 8px; color: var(--sa-ink); border: 1px solid var(--sa-control); background: var(--sa-surface); }
.sa-menu-btn:hover, .sa-menu-btn[aria-expanded="true"] { background: var(--sa-surface-2); }
.sa-menu { position: absolute; z-index: 30; inset-inline-start: 0; top: calc(100% + 4px); min-width: 15rem; max-width: min(22rem, 92vw); max-height: 70vh; overflow: auto; padding: .3rem; background: var(--sa-surface); border: 1px solid var(--sa-control); border-radius: 10px; box-shadow: 0 12px 30px rgb(0 0 0 / .22); }
.sa-menu[hidden] { display: none; }
.sa-menu-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; min-height: 32px; padding: .35rem .6rem; border-radius: 6px; text-align: start; font-weight: 500; color: var(--sa-ink); }
.sa-menu-item:hover, .sa-menu-item:focus { background: var(--sa-surface-2); }
.sa-menu-item[aria-disabled="true"] { color: var(--sa-muted); cursor: not-allowed; }
.sa-menu-key { color: var(--sa-muted); font-size: .78rem; font-weight: 600; }
.sa-menu-sep { height: 1px; margin: .3rem .2rem; background: var(--sa-line); }
.sa-tabs { flex: none; display: flex; gap: .2rem; padding: .35rem .8rem 0; background: var(--sa-surface); border-bottom: 1px solid var(--sa-line); overflow-x: auto; }
.sa-tab { padding: .45rem .9rem; min-height: 36px; border-radius: 8px 8px 0 0; color: var(--sa-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.sa-tab[aria-selected="true"] { color: var(--sa-ink); border-bottom-color: var(--sa-accent); background: var(--sa-surface-2); }
.sa-panels { flex: 1; min-height: 0; overflow: auto; }
.sa-panel { padding: .9rem; }
.sa-panel[hidden] { display: none; }

/* ---------- fields */
.sa-field { display: grid; gap: .2rem; margin: 0 0 .55rem; min-width: 0; }
.sa-field > label, .sa-slider-head label { font-weight: 600; font-size: .84rem; }
.sa-field :is(select, input[type=number], input[type=text], input[type=search], textarea) { min-height: 34px; padding: .2rem .5rem; min-width: 0; width: 100%; box-sizing: border-box; }
.sa-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.sa-out { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sa-accent-ink); font-size: .85rem; white-space: nowrap; }
.sa-slider input[type=range] { width: 100%; min-height: 24px; accent-color: var(--sa-accent); border: 0; background: none; }
.sa-check { display: flex; align-items: flex-start; gap: .5rem; margin: .2rem 0 .6rem; font-size: .88rem; }
.sa-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sa-accent); }
.sa-row .sa-field { margin: 0; }
.sa-details { margin: .4rem 0 0; border-top: 1px solid var(--sa-line); padding-top: .4rem; }
.sa-details > summary { cursor: pointer; font-weight: 600; font-size: .88rem; min-height: 28px; display: list-item; }
.sa-tablewrap { max-height: 40vh; overflow: auto; border: 1px solid var(--sa-line); border-radius: 8px; margin: .4rem 0; }
.sa-table input, .sa-table select { min-height: 30px; width: 6.5rem; padding: .1rem .35rem; }

/* ---------- badges */
.sa-badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--sa-surface-2); color: var(--sa-ink); border: 1px solid var(--sa-line); white-space: nowrap; vertical-align: middle; }
.sa-badge-ok { color: var(--sa-ok); border-color: currentColor; }
.sa-badge-no { color: var(--sa-warn); border-color: currentColor; }
.sa-origin-authentic { color: var(--sa-ok); border-color: currentColor; }
.sa-origin-composite { color: var(--sa-indigo); border-color: currentColor; }
.sa-origin-generated { color: var(--sa-accent-ink); border-color: currentColor; }
.sa-kind-recording, .sa-kind-user { color: var(--sa-indigo); }

/* ---------- explorer */
.sa-explorer { display: grid; grid-template-columns: 17rem minmax(0, 1fr); grid-template-areas: "side map" "side list"; gap: .9rem; align-items: start; }
.sa-explorer-side { grid-area: side; background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 12px; padding: .8rem; position: sticky; top: 0; }
.sa-explorer-map { grid-area: map; min-width: 0; }
.sa-explorer-list { grid-area: list; min-width: 0; }
.sa-point-box { padding: .5rem .6rem; border-radius: 8px; background: var(--sa-surface-2); margin: 0 0 .55rem; font-size: .86rem; }
.sa-map-wrap { position: relative; }
.sa-map { border: 1px solid var(--sa-line); border-radius: 12px; overflow: hidden; background: var(--sa-ocean); aspect-ratio: 2 / 1; max-height: 58vh; width: 100%; touch-action: none; cursor: crosshair; }
.sa-map-svg { display: block; width: 100%; height: 100%; }
.sa-map-ocean { fill: var(--sa-ocean); }
.sa-map-land { fill: var(--sa-land); stroke: var(--sa-land-line); stroke-linejoin: round; }
.sa-map-grat line { stroke: var(--sa-grat); }
.sa-map-route { fill: none; stroke: var(--sa-route); stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2 1; }
.sa-pin { fill: var(--sa-pin); stroke: var(--sa-pin-line); stroke-width: .35; cursor: pointer; vector-effect: non-scaling-stroke; }
.sa-pin.is-restricted { fill: var(--sa-pin-no); }
.sa-pin.is-selected { fill: var(--sa-pin-sel); stroke-width: 2; }
.sa-map-point-ring { fill: none; stroke: var(--sa-indigo); stroke-width: .7; }
.sa-map-point-dot { fill: var(--sa-indigo); }
.sa-map-zoom { position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; display: grid; gap: .25rem; }
.sa-map-zoom .sa-btn { width: 34px; min-height: 34px; padding: 0; font-size: 1.1rem; }
.sa-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; margin: .4rem 0 .5rem; }
.sa-list-head .sa-h2 { margin: 0; }
.sa-seg { display: inline-flex; gap: .25rem; }
.sa-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sa-item { padding: .6rem .75rem; border: 1px solid var(--sa-line); border-radius: 10px; background: var(--sa-surface); }
.sa-item.is-selected { border-color: var(--sa-indigo); box-shadow: 0 0 0 1px var(--sa-indigo); }
.sa-item-title { font-size: .98rem; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.sa-item-meta { font-size: .84rem; color: var(--sa-muted); margin: 0 0 .25rem; overflow-wrap: anywhere; }
.sa-item-desc { font-size: .84rem; margin: 0 0 .3rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sa-tags { font-size: .8rem; color: var(--sa-muted); margin: 0 0 .25rem; }
.sa-item-actions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.sa-empty { color: var(--sa-muted); padding: .8rem; border: 1px dashed var(--sa-line); border-radius: 10px; }
.sa-more { margin: .6rem 0; }

/* ---------- studio */
.sa-studio { display: grid; gap: .9rem; }
.sa-scene-settings, .sa-layers-section { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 12px; padding: .8rem; }
.sa-settings-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.sa-settings-head .sa-h2 { margin: 0; }
.sa-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0 1rem; align-items: start; }
.sa-layers-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin-bottom: .5rem; }
.sa-layers-head .sa-h2, .sa-layers-head .sa-hint { margin: 0; }
.sa-layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sa-layer { border: 1px solid var(--sa-line); border-radius: 10px; padding: .6rem .7rem; background: var(--sa-bg); }
.sa-layer.is-selected { border-color: var(--sa-accent-ink); }
.sa-layer.is-muted { opacity: .8; }
.sa-layer-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.sa-layer-name { flex: 1 1 12rem; min-height: 34px; padding: .2rem .5rem; font-weight: 700; min-width: 0; }
.sa-layer-tools { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; }
.sa-layer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0 .9rem; align-items: end; }
.sa-layer-grid > .sa-check { align-self: center; }
.sa-layer-source p { font-size: .86rem; margin: .2rem 0 .4rem; overflow-wrap: anywhere; }
.sa-auto { display: grid; gap: .3rem; }
.sa-curve { width: 100%; max-width: 30rem; height: 48px; background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 6px; }
.sa-curve polyline { fill: none; stroke: var(--sa-accent-ink); stroke-width: 2; }
.sa-curve-base { stroke: var(--sa-line); stroke-dasharray: 3 3; }
.sa-empty-box { padding: 1rem; border: 1px dashed var(--sa-line); border-radius: 10px; }

/* ---------- lab */
.sa-lab { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.sa-lab-left, .sa-lab-right { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 12px; padding: .8rem; min-width: 0; }
.sa-spectrum { width: 100%; max-width: 44rem; height: auto; display: block; background: var(--sa-surface); }
.sa-spectrum .sa-grid { stroke: var(--sa-line); stroke-width: 1; }
.sa-spectrum .sa-axis { fill: var(--sa-muted); font-size: 12px; font-family: system-ui, sans-serif; }
.sa-spec-line { fill: none; stroke: var(--sa-accent-ink); stroke-width: 2; stroke-linejoin: round; }
.sa-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .4rem; margin: .6rem 0; }
.sa-metric { padding: .4rem .55rem; border-radius: 8px; background: var(--sa-surface-2); }
.sa-metric dt { font-size: .78rem; color: var(--sa-muted); font-weight: 600; }
.sa-metric dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- worlds */
.sa-world-grid { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .7rem; }
.sa-world article { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: .3rem; padding: .75rem .85rem; border: 1px solid var(--sa-line); border-radius: 12px; background: var(--sa-surface); }
.sa-world-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem; }
.sa-world h3 { margin: 0; font-size: 1rem; }
.sa-world p { margin: 0; font-size: .87rem; }
.sa-world-layers { margin: .1rem 0 .4rem; padding-inline-start: 1.1rem; font-size: .82rem; color: var(--sa-muted); flex: 1; overflow-wrap: anywhere; }
.sa-world .sa-btn { align-self: flex-start; }

/* ---------- walks */
.sa-walks { display: grid; grid-template-columns: 16rem minmax(0, 1fr); grid-template-areas: "side map" "side main"; gap: .9rem; align-items: start; }
.sa-walk-side { grid-area: side; background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 12px; padding: .8rem; }
.sa-walk-map { grid-area: map; min-width: 0; }
.sa-walk-map .sa-map { max-height: 40vh; }
.sa-walk-main { grid-area: main; min-width: 0; background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 12px; padding: .8rem; }
.sa-walk-stats { font-size: .88rem; color: var(--sa-muted); }
.sa-stops { margin: .6rem 0; padding: 0; list-style: none; display: grid; gap: .5rem; counter-reset: none; }
.sa-stop { padding: .55rem .7rem; border: 1px solid var(--sa-line); border-radius: 10px; background: var(--sa-bg); }
.sa-stop.is-playing { border-color: var(--sa-accent-ink); box-shadow: 0 0 0 1px var(--sa-accent-ink); }
.sa-stop h3 { font-size: .95rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.sa-stop textarea { width: 100%; box-sizing: border-box; padding: .3rem .45rem; margin: .2rem 0 .35rem; }
.sa-add-stop { align-items: end; }

/* ---------- dialogs */
.sa-dialog { width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--sa-control); border-radius: 14px; background: var(--sa-surface); color: var(--sa-ink); box-shadow: 0 24px 60px rgb(0 0 0 / .35); }
.sa-dialog-wide { width: min(46rem, calc(100vw - 2rem)); }
.sa-dialog::backdrop { background: rgb(5 20 18 / .55); }
.sa-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem .4rem; }
.sa-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.sa-dialog-lede { margin: 0; padding: 0 1rem; color: var(--sa-muted); font-size: .9rem; }
.sa-dialog-body { padding: .6rem 1rem 1rem; }
.sa-dialog-body textarea { width: 100%; box-sizing: border-box; padding: .4rem .55rem; }
.sa-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.sa-pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.sa-pick-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--sa-line); border-radius: 10px; overflow-wrap: anywhere; }
.sa-export-result { margin-top: .4rem; }
.sa-toast { position: fixed; z-index: 40; inset-block-end: 1rem; inset-inline-start: 50%; transform: translateX(-50%); max-width: min(36rem, calc(100vw - 2rem)); padding: .55rem .9rem; border-radius: 10px; background: var(--sa-ink); color: var(--sa-surface); font-size: .88rem; box-shadow: 0 10px 30px rgb(0 0 0 / .3); pointer-events: none; }
[dir="rtl"] .sa-toast { transform: translateX(50%); }
.sa-toast[hidden] { display: none; }

/* ---------- responsive */
@media (min-width: 1280px) {
  .sa-explorer { grid-template-columns: 17rem minmax(0, 1fr) 26rem; grid-template-areas: "side map list"; }
  .sa-explorer-list { max-height: calc(100dvh - 180px); overflow: auto; padding-inline-end: .2rem; }
  .sa-explorer-list .sa-list-head { margin-top: 0; }
}
@media (max-width: 1000px) {
  .sa-explorer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "side" "list"; }
  .sa-explorer-side { position: static; }
  .sa-lab { grid-template-columns: minmax(0, 1fr); }
  .sa-walks { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "map" "main"; }
}
@media (max-width: 640px) {
  .sa-bar { padding: .4rem .5rem; }
  .sa-name { width: 100%; max-width: none; flex: 1 1 100%; }
  .sa-bar-start { flex: 1 1 100%; }
  .sa-panel { padding: .55rem; }
  .sa-tabs { padding: .3rem .4rem 0; }
  .sa-tab { padding: .4rem .6rem; }
  .sa-layer-grid, .sa-settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .sa-pin { fill: Highlight; }
  .sa-pin.is-selected { fill: LinkText; }
  .sa-map-land { fill: Canvas; stroke: CanvasText; }
}
