/* Scoped to the experimental builder. Existing editors and canvases retain their styles. */
/* --wb-accent, the app's accent under its old name, is a token (theme-overrides.css). */
body.wb-shell { --wb-bar-height: 60px; }
.wb-icon { width: 20px; height: 20px; display: block; }
.wb-button-icon { display: inline-flex; flex: 0 0 auto; }
.wb-project-bar { height: var(--wb-bar-height); min-height: var(--wb-bar-height); flex: 0 0 var(--wb-bar-height); display: flex; align-items: center; gap: 16px; padding: 0 154px 0 8px; position: relative; z-index: 20; border-bottom: 1px solid var(--background-modifier-border); background: var(--background-primary); -webkit-app-region: no-drag; }
body.wl-web .wb-project-bar { padding-right: 18px; }
.wb-project-bar button, .wb-project-bar input { -webkit-app-region: no-drag; }
.wb-projects-button, .wb-return-button { box-shadow: none !important; background: transparent !important; color: var(--text-normal); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; font-weight: 600; }
.wb-projects-button:hover, .wb-return-button:hover { background: var(--background-modifier-hover) !important; }
.wb-project-heading { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; overflow: hidden; align-self: stretch; -webkit-app-region: drag; }
/* Responsive navigation toggle: hidden whenever the left icon rail is visible (> 768px), shown on phones (≤ 768px) to open the slide-over drawer. */
body.wb-shell .wb-project-bar .wb-nav-toggle { all: unset; box-sizing: border-box; flex: 0 0 auto; display: none; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--wl-bar-quiet); box-shadow: inset 0 0 0 1px var(--wl-bar-hairline); color: var(--wl-text-2); cursor: pointer; -webkit-app-region: no-drag; transition: background-color var(--wl-quick) var(--wl-ease), color var(--wl-quick) var(--wl-ease); }
body.wb-shell .wb-project-bar .wb-nav-toggle:hover { background: var(--wl-bar-quiet-hover); color: var(--wl-text); }
body.wb-shell .wb-project-bar .wb-nav-toggle:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
body.wb-shell .wb-project-bar .wb-nav-toggle .wb-icon { width: 17px; height: 17px; }
body.wb-shell .wb-project-bar .wb-nav-toggle > span:empty { display: none; }
@media (max-width: 1024px) {
  body.wb-shell .wb-project-bar { gap: 12px; padding-left: 8px; }
  body.wl-web .wb-project-bar { padding-right: 12px; }
}
@media (max-width: 768px) {
  /* Clean mobile top bar: ☰ + World name on left; compact Commands, Music & Version icons on right; Hub lives in the drawer. */
  body.wb-shell .wb-project-bar .wb-nav-toggle { display: inline-grid; }
  body.wb-shell.wb-game-open:not(.wb-game-away) .wb-project-bar .wb-nav-toggle { display: none; }
  body.wb-shell .wb-project-bar { height: 54px; min-height: 54px; flex-basis: 54px; gap: 8px; padding: 0 10px; }
  body.wb-shell .wb-project-bar .wb-projects-button { display: none; }
  body.wb-shell .wb-project-bar .wb-project-name { font-size: 14px; }
  body.wb-shell .wb-project-bar .wb-project-actions { gap: 5px; }
  body.wb-shell .wb-project-bar .wb-version-more { margin-inline-start: -5px; }
}
/* Commands: a quiet square beside the music. */
body.wb-shell .wb-project-bar .wb-command-button { all: unset; box-sizing: border-box; flex: 0 0 auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--wl-bar-quiet); box-shadow: inset 0 0 0 1px var(--wl-bar-hairline); color: var(--wl-text-2); cursor: pointer; -webkit-app-region: no-drag; transition: background-color var(--wl-quick) var(--wl-ease), color var(--wl-quick) var(--wl-ease); }
body.wb-shell .wb-project-bar .wb-command-button:hover { background: var(--wl-bar-quiet-hover); color: var(--wl-text); }
body.wb-shell .wb-project-bar .wb-command-button:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
body.wb-shell .wb-project-bar .wb-command-button .wb-icon { width: 16px; height: 16px; }
body.wb-shell .wb-project-bar .wb-command-button > span:empty { display: none; }
.wb-project-name { flex: 0 1 auto; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Versions: a quiet status that opens the history, then the bar's one main button, filled steel, that saves one
   (DESIGN-SYSTEM.md, section 7). */
.wb-project-actions { display: flex; align-items: center; gap: 4px; position: relative; flex-shrink: 0; -webkit-app-region: no-drag; }
.wb-project-actions > button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 11px; border-radius: var(--r-md); box-shadow: none; font-size: var(--t-ui); font-weight: 500; white-space: nowrap; }
.wb-project-actions > button .wb-icon { width: 16px; height: 16px; }
.wb-project-actions > button:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wb-project-actions > .wb-version-history { max-width: 220px; border: 1px solid transparent; background: transparent !important; color: var(--wl-text-2); }
.wb-project-actions > .wb-version-history > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.wb-project-actions > .wb-version-history:hover { background: var(--wl-raised) !important; color: var(--wl-text); }
.wb-project-actions > .wb-version-button { border: 1px solid transparent; background: var(--wl-accent); color: var(--wl-on-accent); }
.wb-project-actions > .wb-version-button:hover { background: color-mix(in srgb, var(--wl-accent) 80%, var(--wl-text)); color: var(--wl-on-accent); }
/* Create version and its arrow (the project's other actions) read as one split button, a hairline between them. */
.wb-project-actions > .wb-version-button:has(+ .wb-version-more) { border-start-end-radius: 0; border-end-end-radius: 0; padding-inline-end: 12px; }
.wb-project-actions > .wb-version-more { width: 30px; margin-inline-start: -4px; padding: 0; justify-content: center; border: 1px solid transparent; border-inline-start-color: color-mix(in srgb, var(--wl-on-accent) 22%, transparent); border-start-start-radius: 0; border-end-start-radius: 0; background: var(--wl-accent); color: var(--wl-on-accent); }
.wb-project-actions > .wb-version-more:hover { color: var(--wl-on-accent); background: color-mix(in srgb, var(--wl-accent) 80%, var(--wl-text)); }
.wb-project-actions > .wb-version-more > span:last-child { display: none; }
.wb-project-actions > .wb-version-more .wb-icon { width: 14px; height: 14px; }
/* A pop-out (D-105): one page in a window of its own. The bar keeps the project's name and a way
   back; the rail, the side panels and the project's actions stay in the project's window. */
body.wl-popout .wb-projects-button, body.wl-popout .wb-project-actions > :is(.wb-version-history, .wb-version-button, .wb-version-more) { display: none; }
body.wl-popout .wl-workspace :is(.wl-rail, .wl-side-panel, .wl-page-column) { display: none; }
body.wl-popout .wb-project-bar { padding-inline-start: 22px; }
.wb-project-actions > .wb-popout-back { border: 1px solid var(--wl-line); background: color-mix(in srgb, var(--wl-text) 3%, transparent); color: var(--wl-text); }
.wb-project-actions > .wb-popout-back:hover { border-color: var(--wl-line-strong); background: color-mix(in srgb, var(--wl-text) 8%, transparent); }
.menu .wb-menu-soon { margin-inline-start: 8px; padding: 1px 6px; border: 1px solid var(--background-modifier-border); border-radius: var(--r-pill); font-size: 10.5px; color: var(--text-faint); }
@media (max-width: 850px) { .wb-project-actions > .wb-version-history { width: 32px; padding: 0; gap: 0; justify-content: center; } .wb-project-actions > .wb-version-history > span:last-child { display: none; } }
@media (max-width: 650px) {
  .wb-project-actions > .wb-version-button,
  .wb-project-actions > .wb-version-button:has(+ .wb-version-more) { width: 32px; padding: 0; gap: 0; justify-content: center; }
  .wb-project-actions > .wb-version-button > span:last-child { display: none; }
}
@media (pointer: coarse) { .wb-project-actions > button { height: 36px; } .wb-project-actions > .wb-version-history { min-width: 36px; } }
@media (pointer: coarse) and (max-width: 650px) { .wb-project-actions > .wb-version-button { width: 36px; } }
.wb-shell.mod-windows .titlebar { height: var(--wb-bar-height); }
.wb-shell.mod-windows .titlebar-button-container.mod-right { height: var(--wb-bar-height); align-items: stretch; background: transparent !important; -webkit-app-region: no-drag; }
.wb-shell.mod-windows .titlebar-button-container.mod-right .titlebar-button { width: 44px; flex: 0 0 44px; height: 100%; padding: 0; justify-content: center; -webkit-app-region: no-drag; }
.wb-shell.mod-windows .titlebar-button-container.mod-right .titlebar-button svg { pointer-events: none; }
.wb-shell .workspace-tab-header-container { -webkit-app-region: no-drag; }
.wb-shell :is(.workspace-leaf-content, .wl-page)[data-type="file-explorer"] .nav-file.wb-root-map-file { display: none !important; }
/* The rail: the pages (Home, Files, Map) at the top; Studio (coming), the palette, Packages and
   Settings at the foot. Files opens and folds the file panel, so the panel toggle steps aside. */
.wb-shell .workspace-ribbon.mod-left { margin-top: 0; }
.wb-shell .workspace-ribbon.mod-left .sidebar-toggle-button.mod-left { display: none; }
.wb-shell .wb-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 6px 0; }
.wb-shell .wb-rail-foot { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: auto; }
/* One size for every control on the rail, ours and the host's. */
/* Its pages are muted until chosen; the chosen one is brighter, on the raised tone, with a slim ice edge
   (DESIGN-SYSTEM.md, section 8). */
.wb-shell .workspace-ribbon.mod-left :is(.wb-rail-button, .side-dock-ribbon-action) { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-md); background: transparent; box-shadow: none; color: var(--wl-text-3); }
.wb-shell .workspace-ribbon.mod-left :is(.wb-rail-button .wb-icon, .side-dock-ribbon-action svg) { width: 20px; height: 20px; }
.wb-shell .wb-rail-button > span:last-child:empty { display: none; }
.wb-shell .workspace-ribbon.mod-left :is(.wb-rail-button, .side-dock-ribbon-action):hover { background: var(--wl-raised); color: var(--wl-text); }
.wb-shell .wb-rail-button:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wb-shell .workspace-ribbon.mod-left :is(.wb-rail-button, .side-dock-ribbon-action).is-active { background: var(--wl-raised); color: var(--wl-text); }
.wb-shell .workspace-ribbon.mod-left :is(.wb-rail-button, .side-dock-ribbon-action).is-active::before { content: ''; position: absolute; left: -4px; top: 50%; translate: 0 -50%; width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: var(--wl-selection); }
.wb-shell .workspace-ribbon.mod-left .wb-rail-button.is-soon { opacity: .38; cursor: default; }
.wb-shell .workspace-ribbon.mod-left .wb-rail-button.is-soon:hover { background: transparent; color: var(--wl-text-3); }
/* The own window's rail and tabs are drawn by the kit (shell/src/workspace/WorkspaceView.vue); the same cues, from
   here. The rail: muted pages, the chosen one brighter with the ice edge. */
body.wb-shell .wl-ui.wl-workspace .wl-rail-button { color: var(--wl-text-3); }
body.wb-shell .wl-ui.wl-workspace :is(.wl-rail-button:hover, .wl-rail-button.is-active) { color: var(--wl-text); }
body.wb-shell .wl-ui.wl-workspace .wl-rail-button.is-active::before { background: var(--wl-light-1); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--wl-glow-1) 70%, transparent); }
/* World light (D-186): where you are on the rail carries the open world's light. */
body.wb-shell .wl-ui.wl-workspace .wl-rail-button.is-active { color: var(--wl-light-1); background: color-mix(in srgb, var(--wl-light-1) 11%, transparent); }
body.wb-shell .wl-ui.wl-workspace .wl-rail-button.is-soon:hover { color: var(--wl-text-3); }
/* The tabs: muted until pointed at; the shown tab's label is bright, and in the pane that has focus a thin ice line
   runs along its top (DESIGN-SYSTEM.md, section 7, Tabs). The panel's own small tabs are muted the same way. */
body.wb-shell .wl-ui.wl-workspace .wl-tab:not(.is-shown) { color: var(--wl-text-3); }
body.wb-shell .wl-ui.wl-workspace .wl-tab:not(.is-shown):hover { color: var(--wl-text-2); }
body.wb-shell .wl-ui.wl-workspace :is(.wl-main-stage:not(.is-split) > .wl-tab-row, .wl-main-stage.is-split > .wl-tab-row.is-focused) > .wl-tabs > .wl-tab.is-shown {
  background: linear-gradient(var(--wl-selection), var(--wl-selection)) top center / calc(100% - 4 * var(--r-sm)) 2px no-repeat, var(--wl-frame, var(--wl-surface));
}
body.wb-shell .wl-ui.wl-workspace .wl-icon-button.wl-tool:not(.is-shown, :hover) { color: var(--wl-text-3); }
/* Each page shows only its own tabs, and a split with none of them steps aside.
   Home, Settings and Versions are single pages with no tab bar. */
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-tab-header, .workspace-tabs).wb-other-page { display: none; }
.wb-shell.wb-page-alone :is(.workspace-split.mod-root, .wl-main) .workspace-tab-header-container { display: none; }
/* Maps open as tabs by stepping into places; a blank tab would belong to Files. */
.wb-shell.wb-page-map :is(.workspace-split.mod-root, .wl-main) .workspace-tab-header-new-tab { display: none; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) .workspace-tab-header-container { padding-right: 8px; }
.wb-shell.is-hidden-frameless:not(.is-fullscreen) .workspace-tabs.mod-top-right-space .workspace-tab-header-container { padding-right: 8px; }
.wb-shell.is-hidden-frameless:not(.is-fullscreen):not(.mod-macos) .workspace-tabs.mod-top-right-space .workspace-tab-header-container:after { display: none; }
.wb-shell .workspace-tab-header.wb-home-tab { width: 42px; min-width: 42px; max-width: 42px; flex: 0 0 42px; }
.wb-home-tab .workspace-tab-header-inner { justify-content: center; }
.wb-shell .wb-home-tab { height: var(--tab-height); padding: 0; margin: 0; border: 0; box-shadow: none; background: transparent; color: var(--text-muted); -webkit-app-region: no-drag; }
.wb-home-tab .workspace-tab-header-inner-icon { display: flex !important; }
.wb-shell .wb-home-tab:hover { background: var(--background-modifier-hover); color: var(--text-normal); }
.wb-root-map-tab .workspace-tab-header-inner-icon { color: var(--wb-accent); display: flex !important; }
.wb-root-map-tab .workspace-tab-header-inner-icon .wb-icon { width: 18px; height: 18px; stroke-width: 2; }
.wb-root-map-tab .workspace-tab-header-inner-close-button, .wb-home-tab .workspace-tab-header-inner-close-button { display: none !important; }
.wb-root-map-tab .workspace-tab-header-status-container, .wb-home-tab .workspace-tab-header-status-container { display: none !important; }
.wb-home-tab .workspace-tab-header-inner-title { display: none !important; }
.wb-home-tab.is-active .workspace-tab-header-inner-icon { color: var(--wl-selection); }
.wb-home-intro-input { min-height: 120px; resize: vertical; }
.wb-root-map-tab .workspace-tab-header-status-icon { color: var(--wb-accent); }
.wb-shell .workspace-tab-header-container .sidebar-toggle-button.mod-right { width: 38px; padding: 4px; border-radius: var(--r-sm); color: var(--text-normal); }
.wb-shell .workspace-tab-header-container .sidebar-toggle-button.mod-right .clickable-icon { width: 30px; height: 30px; justify-content: center; color: var(--text-normal); background: var(--background-modifier-hover); border: 1px solid var(--background-modifier-border); border-radius: var(--r-sm); }
.wb-shell .workspace-tab-header-container .sidebar-toggle-button.mod-right:hover .clickable-icon { color: var(--text-accent); border-color: var(--background-modifier-border-hover); }
.wb-projects-open .horizontal-main-container, .wb-projects-open .status-bar { visibility: hidden; }
.wb-projects-overview { position: absolute; inset: var(--wb-bar-height) 0 0; background: var(--background-primary); z-index: 10; overflow: auto; padding: 48px clamp(24px, 7vw, 100px); }
.wb-overview-heading { position: relative; }
.wb-overview-heading > div { font-size: 11px; letter-spacing: 1.5px; font-weight: 650; color: var(--text-muted); }
.wb-overview-heading h1 { font-size: var(--t-title-page); margin: 8px 0; }
.wb-overview-heading p { color: var(--text-muted); margin: 0; }
.wb-return-button { position: absolute; top: 24px; right: 0; }
.wb-overview-toolbar { margin: 42px 0 24px; padding-bottom: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--background-modifier-border); }
.wb-overview-tab { font-weight: 600; }
.wb-project-card { display: block; width: 300px; height: auto; text-align: left; padding: 0; border: 1px solid var(--wl-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: none; background: var(--wl-surface); color: var(--wl-text); }
.wb-project-card:hover { border-color: var(--wl-line-strong); }
.wb-project-cover { height: 164px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--wl-raised), var(--wl-inset)); color: var(--wl-text-2); }
.wb-project-cover-icon .wb-icon { width: 66px; height: 66px; stroke-width: .9; opacity: .8; }
.wb-project-badge { position: absolute; bottom: 16px; left: 16px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--wl-bg) 40%, transparent); color: var(--wl-text); padding: 4px 12px; font-size: var(--t-help); }
.wb-project-card-info { padding: 20px; }
.wb-project-card-info h2 { font-size: 18px; margin: 0 0 7px; }
.wb-project-card-info p { color: var(--wl-text-2); font-size: var(--t-help); margin: 0 0 24px; }
.wb-card-action { font-size: var(--t-help); font-weight: 600; color: var(--wl-text); }
/* A dialog (the window's own, and the map's "Create map"): a large solid panel over a dimmed page, its title in the
   interface face, its main action steel and the rest quiet. */
.wb-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: color-mix(in srgb, var(--wl-bg) 55%, transparent); display: grid; place-items: center; padding: 24px; }
.wb-modal { width: min(460px, 100%); max-height: 80vh; overflow: auto; background: var(--wl-surface); color: var(--wl-text); border: 1px solid var(--wl-line); border-radius: var(--r-xl); padding: 28px; position: relative; box-shadow: var(--wl-elev-pop); }
.wb-modal h2 { font-size: var(--t-h2); font-weight: 600; margin: 0 24px 12px 0; }
.wb-modal-description { color: var(--wl-text-2); line-height: 1.6; font-size: var(--t-ui); }
.wb-modal-close { position: absolute; right: 15px; top: 15px; padding: 5px; height: 30px; width: 30px; border-radius: var(--r-sm); color: var(--wl-text-3); box-shadow: none !important; background: transparent !important; }
.wb-modal-close:hover { color: var(--wl-text); background: var(--wl-raised) !important; }
.wb-input-label { display: flex; flex-direction: column; gap: 9px; font-size: var(--t-help); font-weight: 600; margin: 24px 0; }
.wb-name-input { width: 100%; height: 40px !important; font-size: 14px !important; }
.wb-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.wb-primary-button { background: var(--wl-accent) !important; color: var(--wl-on-accent) !important; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border-radius: var(--r-md); box-shadow: none !important; }
.wb-primary-button:hover { background: color-mix(in srgb, var(--wl-accent) 80%, var(--wl-text)) !important; }
.wb-secondary-button { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-md); box-shadow: none !important; border: 1px solid var(--wl-line); background: color-mix(in srgb, var(--wl-text) 3%, transparent); }
.wb-secondary-button:hover { border-color: var(--wl-line-strong); background: color-mix(in srgb, var(--wl-text) 8%, transparent); }
/* A toast: a small solid card at the foot of the window, rose-edged when it reports a failure. */
.wb-toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2000; border: 1px solid var(--wl-line); background: var(--wl-surface); color: var(--wl-text); padding: 14px 20px; border-radius: var(--r-lg); box-shadow: var(--wl-elev-pop); font-size: var(--t-ui); }
.wb-toast.is-error { border-color: var(--wl-danger); }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] :is(.view-content, .wl-page-content) { position: relative; }
.wb-map-body { display: flex; flex: 1 1 0; min-height: 0; min-width: 0; overflow: hidden; }
.wb-map-body > :is(.view-content, .wl-page-content) { flex: 1 1 0; min-width: 0; height: 100%; }
.wb-map-body > :is(.workspace-split.mod-right-split, .wl-side-panel.is-right) { position: relative; flex: 0 0 auto; height: 100%; max-width: 45%; border-left: 1px solid var(--wl-line); container-type: inline-size; container-name: map-panel; }
/* Strong enough to beat the retained workspace hiding the edge in the last tab of a group (any map but the first). */
:is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf, .wl-tab-page) .wb-map-body > :is(.workspace-split.mod-right-split, .wl-side-panel.is-right) > .workspace-leaf-resize-handle { display: block; position: absolute; top: 0; bottom: 0; left: -3px; width: 6px; height: 100%; margin: 0; cursor: col-resize; }
.wb-map-body .mod-sidedock .workspace-tab-header-container { height: 40px; padding: 4px 8px; align-items: center; }
.wb-map-body .mod-sidedock .workspace-tab-header-container-inner { height: 32px; margin: 0; padding: 0; align-items: center; overflow: hidden; gap: 2px; }
.wb-map-body .mod-sidedock .workspace-tab-header { flex: 0 0 36px; min-width: 36px; max-width: 36px; height: 32px; padding: 2px; }
.wb-map-body .mod-sidedock .workspace-tab-header-inner { height: 28px; padding: 0; justify-content: center; gap: 5px; }
.wb-map-body .mod-sidedock .workspace-tab-header-inner-title,
.wb-map-body .mod-sidedock .workspace-tab-header-inner-close-button,
.wb-map-body .mod-sidedock .workspace-tab-header-status-container,
.wb-map-body .mod-sidedock .workspace-tab-header-new-tab,
.wb-map-body .mod-sidedock .workspace-tab-header-tab-list { display: none; }
.wb-map-body .mod-sidedock .workspace-tab-header-inner-close-button { display: none !important; }
@container map-panel (min-width: 310px) {
  .wb-map-body .mod-sidedock .workspace-tab-header { flex: 0 1 auto; min-width: 0; max-width: none; }
  .wb-map-body .mod-sidedock .workspace-tab-header-inner { padding: 0 8px; }
  .wb-map-body .mod-sidedock .workspace-tab-header-inner-title { display: inline; font-size: 12px; font-weight: 500; white-space: nowrap; }
}
:is(.workspace-leaf-content, .wl-page)[data-type="world-builder-map-settings"] > :is(.view-header, .wl-page-header) { display: none; }
:is(.workspace-leaf-content, .wl-page)[data-type="world-builder-map-settings"] > :is(.view-content, .wl-page-content) { padding: 0 !important; overflow: auto; }
.wb-map-settings-sheet { padding: 12px 12px 24px; font-size: 12px; display:flex; flex-direction:column; gap:12px; container-type:inline-size; }
.wb-map-settings-sheet > .wb-map-form-error:empty { display: none; }
.wb-map-settings-sheet .wb-feature-field { gap:7px; margin:0; font-size:11px; font-weight:500; min-width:0; }
.wb-map-settings-sheet .wb-feature-field input, .wb-map-settings-sheet .wb-feature-field select { height: 32px; min-width: 0; padding: 4px 7px; font-size: 12px; border-radius: var(--r-md); }
.wb-map-settings-sheet .wb-feature-note { margin:0; font-size: 11px; line-height: 1.45; }
.wb-map-settings-sheet input[type='color'] { padding: 3px; border: 1px solid var(--wl-line); border-radius: var(--r-sm); background: var(--wl-inset); }
.wb-map-settings-sheet input[type='color']::-webkit-color-swatch { border-radius: 3px; border: 0; }
.wb-map-setting-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.wb-map-settings-sheet .wb-map-preference-toggle { flex-direction: row; justify-content: space-between; align-items: center; min-height:30px; margin:0; gap:12px; }
.wb-map-settings-sheet .wb-map-preference-toggle input { height: 14px; width: 14px; flex-shrink: 0; padding: 0; }
.wb-map-ratio-presets { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.wb-map-ratio-presets button { font-size: 11px; height: 26px; padding: 3px 8px; box-shadow: none; }
.wb-map-grid-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 3px 0 10px; }
.wb-map-settings-sheet button.wb-map-grid-type { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 50px; padding: 6px 2px; font-size: 10px; box-shadow: none; border: 1px solid var(--wl-line); background: transparent; border-radius: var(--r-sm); color: var(--wl-text-2); }
.wb-map-grid-type svg { width: 18px; height: 18px; }
.wb-map-settings-sheet button.wb-map-grid-type:hover { background: var(--wl-raised); color: var(--wl-text); }
.wb-map-settings-sheet button.wb-map-grid-type[aria-pressed='true'] { color: var(--wl-text); border-color: var(--wl-selection); background: var(--wl-selection-soft); }
.wb-map-action-button, .wb-map-quiet-button { width: 100%; min-height: 28px; margin-top: 8px; font-size: 12px; box-shadow: none; }
.wb-map-quiet-button { background: transparent; color: var(--wl-text-2); border: 1px solid var(--wl-line); }
.wb-map-surface { position: absolute; z-index: 0; pointer-events: none; }
.wb-map-surface > svg { display: block; overflow: visible; }
.wb-map-panel-mounted .workspace > :is(.workspace-split.mod-root, .wl-main) { flex: 1 1 0; }
.wb-shell .sidebar-toggle-button.mod-right,
.wb-shell .workspace > :is(.workspace-split.mod-right-split, .wl-side-panel.is-right) { display: none !important; }
.wb-map-panel-toggle { flex-shrink: 0; }
.wb-map-navigation { position: absolute; top: 8px; left: 12px; right: 104px; z-index: 6; display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; pointer-events: none; }
.wb-map-breadcrumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; max-width: 100%; min-width: 0; border: 1px solid var(--wl-glass-border); background: var(--wl-glass); padding: 4px; border-radius: var(--r-md); box-shadow: var(--wb-map-shadow); pointer-events: auto; }
.wb-map-navigation button { box-shadow: none; background: transparent; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-ui); font-weight: 500; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--wl-text-2); }
.wb-map-navigation button:hover { color: var(--wl-text); background: var(--wl-raised); }
.wb-map-navigation button[aria-current="page"] { color: var(--wl-text); }
.wb-map-navigation button:disabled { opacity: .4; }
.wb-map-crumb { max-width: 190px; overflow: hidden; }
/* The map you are in shows its whole name; it shortens only when the bar runs out of room. */
.wb-map-crumb[aria-current="page"], .wb-map-breadcrumbs > span.wb-map-crumb { max-width: none; min-width: 0; }
.wb-map-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-map-overflow, .wb-map-separator { flex-shrink: 0; }
.wb-map-ancestor-menu { position: absolute; top: 100%; left: 0; margin-top: 5px; min-width: 160px; max-width: min(320px, 100%); max-height: 300px; overflow: auto; background: var(--wl-surface); border: 1px solid var(--wl-line); border-radius: var(--r-lg); padding: 5px; pointer-events: auto; box-shadow: var(--wl-elev-pop); }
.wb-map-ancestor-menu .wb-map-ancestor { width: 100%; height: auto; min-height: 30px; text-align: left; }
.wb-map-ancestor span { white-space: normal; overflow-wrap: anywhere; }
.wb-map-separator { color: var(--wl-text-3); }
.wb-map-children { max-width: 150px; height: 28px; font-size: 12px; }
.wb-map-form-error { color: var(--wl-danger); font-size: var(--t-ui); }
/* No back and forward arrows on any page; the rail and tabs are the way around. */
.wb-shell .view-header-nav-buttons { display: none; }
.wb-map-entrance { cursor: pointer; }
.wb-map-entrance.canvas-node-group, .wb-map-entrance.canvas-node-group .canvas-node-container { pointer-events: auto; }
.wb-map-entrance:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
/* The map's floating tools share one look: a surface with a hairline and the popover shadow, 4px
   inside, 32px buttons with 18px icons and the surface's radius less those 4px, muted until
   hovered, and the app's selection tint for whatever is on. The band (bottom), the stack and the
   actions (top right), the breadcrumbs, help and the hint all use it. */
.wb-shell :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] { --wb-map-shadow: var(--wl-elev-pop); }
.canvas-card-menu.wb-build-toolbar, :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls > :is(.wb-map-view-stack, .canvas-control-group), .wb-shape-menu,
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) { background: var(--wl-glass); border: 1px solid var(--wl-glass-border); border-radius: var(--r-md); box-shadow: var(--wb-map-shadow); }
/* The band: Select, Pan | Area, Pin, Token | Measure | grid, snap, rulers. */
.canvas-card-menu.wb-build-toolbar { display: flex; align-items: center; gap: 2px; padding: 4px; bottom: var(--size-4-6); max-width: calc(100% - 24px); overflow: visible; }
.wb-build-toolbar :is(.canvas-card-menu-button, .canvas-control-item), .wb-map-tool { width: 32px; height: 32px; min-width: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--r-sm); padding: 0; color: var(--wl-text-2); background: transparent; box-shadow: none; transition: background-color var(--wl-quick) var(--wl-ease), color var(--wl-quick) var(--wl-ease); }
.wb-build-toolbar :is(.canvas-card-menu-button, .canvas-control-item) svg, .wb-map-tool svg { width: 18px; height: 18px; flex-shrink: 0; fill: none !important; }
.wb-build-toolbar :is(.wb-map-tool, .canvas-control-item):hover { color: var(--wl-text); background: var(--wl-raised); }
.wb-map-tool[aria-pressed="true"], .wb-shape-control.is-active { color: var(--wl-text); background: var(--wl-selection-soft); }
.wb-shape-control.is-active .wb-map-tool { color: var(--wl-text); }
.wb-shape-control.is-active > .wb-map-tool:hover { background: var(--wl-selection-soft); }
.wb-build-toolbar :is(.wb-map-tool, .canvas-control-item):focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wb-build-toolbar :is(.wb-map-tool:disabled, .canvas-control-item.is-disabled) { opacity: .4; background: transparent; cursor: default; }
.wb-tool-separator { flex-shrink: 0; height: 18px; width: 1px; margin: 0 4px; background: var(--wl-line); }
.wb-map-view-toggles { display: flex; align-items: center; gap: 2px; }
.wb-shape-control { position: relative; display: flex; align-items: center; border-radius: var(--r-sm); }
.wb-build-toolbar .wb-shape-control > .wb-map-tool:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.wb-build-toolbar .wb-shape-choice { min-width: 16px; width: 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.wb-shape-choice svg { width: 12px !important; }
.wb-shape-menu { position: absolute; bottom: calc(100% + 12px); left: -4px; width: 168px; padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.wb-build-toolbar .wb-shape-menu .wb-map-tool { width: 100%; justify-content: flex-start; padding: 0 8px; font-size: var(--t-ui); }
.wb-build-hint { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 7; pointer-events: none; color: var(--wl-text-2); font-size: var(--t-help); padding: 6px 12px; background: var(--wl-glass); border: 1px solid var(--wl-glass-border); border-radius: var(--r-pill); box-shadow: var(--wb-map-shadow); width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; white-space: normal; text-align: center; line-height: 1.4; overflow-wrap: anywhere; }
.wb-build-hint:empty { display: none; }
.wb-map-pan-mode { cursor: grab; }
.wb-map-pan-mode.wb-map-panning { cursor: grabbing; }
/* Map tooltips name the key that picks the tool. */
.tooltip .wb-tip-key { display: inline-block; margin-left: 8px; padding: 0 5px; border: 1px solid var(--wl-line-strong); border-radius: var(--r-xs); font-size: 10px; line-height: 15px; color: var(--wl-text-2); }

/* The stack: zoom in, level (resets), zoom out, fit | undo, redo, pinned to the top right (under
   the map's actions while the side panel is closed). Help sits alone in the bottom-right corner,
   level with the band. Map settings is the side panel's own tab, so the canvas's gear is hidden. */
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls { top: 8px; bottom: var(--size-4-6); inset-inline-end: 10px; gap: 6px; pointer-events: none; align-items: flex-end; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"]:not(:has(.wb-map-panel-toggle.is-active)) .canvas-controls { top: 92px; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) .wl-page[data-type="canvas"]:has(> .wl-page-header .wl-page-more[hidden]):not(:has(.wb-map-panel-toggle.is-active)) .canvas-controls { top: 58px; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls > :is(.wb-map-view-stack, .canvas-control-group) { padding: 4px; pointer-events: auto; overflow: visible; }
.wb-map-view-stack { display: flex; flex-direction: column; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .wb-map-view-stack > .canvas-control-group { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 1px; overflow: visible; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .wb-map-view-stack > .canvas-control-group + .canvas-control-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--wl-line); }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls > .canvas-control-group:has(.lucide-help-circle) { margin-top: auto; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item { width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm); color: var(--wl-text-2); background: transparent; transition: background-color var(--wl-quick) var(--wl-ease), color var(--wl-quick) var(--wl-ease); }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item svg { width: 16px; height: 16px; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item:hover { color: var(--wl-text); background: var(--wl-raised); }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item.is-disabled { opacity: .4; background: transparent; cursor: default; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: -2px; }
.wb-map-view-stack .canvas-control-item:has(.lucide-maximize) { order: 1; }
:is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .wb-map-view-stack .wb-map-zoom-level { height: 22px; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Boris as a sheet along the bottom (boris-panel.mjs marks the body .wt-orbis-sheet): the map keeps only the room above
   him, too short for the vertical stack. Lay the stack out as one compact horizontal pill with vertical dividers. */
body.wt-orbis-sheet :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls { bottom: auto; max-width: calc(100% - 20px); align-items: flex-end; }
body.wt-orbis-sheet .wb-map-view-stack { display: flex; flex-direction: row; align-items: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
body.wt-orbis-sheet .wb-map-view-stack::-webkit-scrollbar { display: none; }
body.wt-orbis-sheet :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .wb-map-view-stack > .canvas-control-group { flex-direction: row; align-items: center; flex-shrink: 0; }
body.wt-orbis-sheet :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .wb-map-view-stack > .canvas-control-group + .canvas-control-group { margin-top: 0; padding-top: 0; border-top: 0; margin-left: 3px; padding-left: 3px; border-left: 1px solid var(--wl-line); }
body.wt-orbis-sheet :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item { width: 26px; height: 26px; }
body.wt-orbis-sheet :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .wb-map-view-stack .wb-map-zoom-level { width: auto; min-width: 30px; height: 26px; padding: 0 3px; }
body.wt-orbis-sheet :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls > .canvas-control-group:has(.lucide-help-circle) { display: none; }
.wb-map-settings-group { display: none !important; }
/* A narrower map trims controls and toolbars so nothing clips or crowds small screens. */
@container map-canvas (max-width: 520px) {
  :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls > .canvas-control-group:has(.lucide-help-circle) { display: none; }
  :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item { width: 26px; height: 26px; }
  :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] .canvas-controls .canvas-control-item svg { width: 14px; height: 14px; }
  .canvas-card-menu.wb-build-toolbar { padding: 3px; bottom: 10px; max-width: calc(100% - 16px); }
  .wb-build-toolbar :is(.canvas-card-menu-button, .canvas-control-item), .wb-map-tool { width: 28px; height: 28px; min-width: 28px; }
  .wb-build-toolbar :is(.canvas-card-menu-button, .canvas-control-item) svg, .wb-map-tool svg { width: 16px; height: 16px; }
  .wb-tool-separator { margin: 0 2px; }
}
@container map-canvas (max-width: 400px) { .canvas-card-menu.wb-build-toolbar { flex-wrap: wrap; justify-content: center; } }

/* The map has no title row: the breadcrumbs name the place. The row's actions (More: Rename,
   Export as image; the panel toggle) float at the top right, and sit in the side panel's tab
   row while the panel is open. */
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) { position: absolute; top: 8px; right: 10px; z-index: 25; width: auto; height: auto; padding: 4px; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header):has(.wb-map-panel-toggle.is-active) { top: 4px; right: 4px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) :is(.view-header-left, .view-header-title-container, .wl-page-title) { display: none; }
/* With the panel closed they stand in a column, the panel toggle at the top, the same width as the zoom stack 8px below. */
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header):not(:has(.wb-map-panel-toggle.is-active)) :is(.view-actions, .wl-page-actions) { flex-direction: column-reverse; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"]:has(.wb-map-panel-toggle.is-active) .wb-map-body .workspace-tab-header-container { padding-right: 76px; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) :is(.view-actions, .wl-page-actions) { gap: 2px; padding: 0; margin: 0; }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) .view-action { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: var(--r-sm); color: var(--wl-text-2); }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) .view-action:hover { color: var(--wl-text); background: var(--wl-raised); }
.wb-shell :is(.workspace-split.mod-root, .wl-main) :is(.workspace-leaf-content, .wl-page)[data-type="canvas"] > :is(.view-header, .wl-page-header) .view-action svg { width: 16px; height: 16px; }
.wb-map-placing { cursor: crosshair; }
.wb-area-preview { position: absolute; border: 1px dashed var(--wl-selection); background: color-mix(in srgb, var(--wl-selection) 8%, transparent); pointer-events: none; z-index: 8; }
.wb-area-preview:has(svg) { border: 0; background: transparent; }
.wb-area-preview svg, .wb-area-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wb-area-preview svg * { fill: color-mix(in srgb, var(--wb-feature-tint, var(--wl-selection)) 14%, transparent); stroke: var(--wb-feature-tint, var(--wl-selection)); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wb-area-preview svg * { stroke-dasharray: 5 4; }
.wb-polygon-preview { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; overflow: visible; }
.wb-polygon-preview polyline { fill: color-mix(in srgb, var(--wl-selection) 10%, transparent); stroke: var(--wl-selection); stroke-width: 2; stroke-dasharray: 5 4; }
.wb-map-feature .canvas-node-container { position: relative; border-color: transparent !important; background: transparent !important; box-shadow: none !important; overflow: visible; }
.wb-map-feature .canvas-node-content, .wb-map-feature .canvas-node-placeholder, .wb-map-feature .wb-map-card-cache { display: none !important; }
.wb-feature-visual { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
/* A thing's name on the map: its size here; how it reads (no box, a halo, whole names) is shared by every map
   (map-panel-polish.css, Names on a map). */
.wb-feature-label { font-size: 14px; line-height: 1.25; font-weight: 600; max-width: 90%; }
.wb-map-pin .wb-feature-visual { display: block; transform: none; }
.wb-map-pin .wb-pin-marker { position: absolute; left: 50%; top: 40px; transform: translate(-50%, -50%) scale(var(--zoom-multiplier, 1)); transform-origin: 50% 50%; }
.wb-map-pin .wb-feature-label { position: absolute; left: 50%; top: calc(40px + 25px * var(--zoom-multiplier, 1)); transform: translateX(-50%) scale(var(--zoom-multiplier, 1)); transform-origin: 50% 0; }
.wb-pin-marker { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--wl-bg); border: 1px solid color-mix(in srgb, var(--wb-feature-tint) 65%, transparent); box-shadow: 0 3px 12px color-mix(in srgb, var(--wl-bg) 13%, transparent); }
.wb-pin-marker svg { width: 22px; height: 22px; color: var(--wb-feature-tint); }

.wb-feature-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--wl-line); }
.wb-feature-header h3 { margin: 5px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.wb-feature-fields { padding: 4px 20px 24px; overflow: auto; }
.wb-feature-field { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; font-size: 12px; font-weight: 500; color: var(--wl-text-2); }
.wb-feature-field input, .wb-feature-field select { width: 100%; height: 36px; font-size: 13px; color: var(--wl-text); }
.wb-feature-colors { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.wb-feature-swatch { width: 24px; height: 24px; padding: 0; border: 3px solid var(--wl-bg); border-radius: 50%; background: var(--swatch) !important; box-shadow: 0 0 0 1px var(--wl-line); }
.wb-feature-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wl-selection); }
.wb-feature-note { color: var(--wl-text-2); font-size: 12px; line-height: 1.6; }
.wb-feature-open, .wb-feature-delete { display: block; width: 100%; min-height: 36px; margin-top: 16px; font-size: 13px; box-shadow: none; }
.wb-feature-delete { background: transparent; color: var(--wl-danger); border: 1px solid var(--wl-line); }
@media (max-width: 850px) { .wb-project-bar { gap: 10px; padding-left: 8px; } .wb-project-name { max-width: 140px; } .wb-projects-overview { padding: 30px 24px; } }
@media (max-width: 650px) {
  .wb-project-heading { display: none; }
  .wb-project-bar { justify-content: flex-start; }
  .wb-project-bar > .wb-project-actions { margin-inline-start: auto; }
  .wb-project-bar > .wb-nav-toggle { order: -1; }
  .wb-return-button { position: static; margin-top: 20px; }
}

/* Keep expanded settings readable when the map sidebar is narrow. */
.wb-map-settings-sheet .wb-map-media-copy { min-width:0; }
@container (max-width:260px) {
  .wb-map-setting-pair { grid-template-columns:minmax(0,1fr); gap:14px; }
}
