.map-studio-main-row {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  gap: 12px;
  width: 100%;
}

.map-studio-map-column {
  flex: 4 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-studio-settings-panel {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  overflow: hidden;
}

.map-studio-settings-header {
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ms-line);
  background: var(--ms-surface-2);
}

.map-studio-settings-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.map-studio-settings-close-poi {
  flex-shrink: 0;
  margin: -6px -6px 0 0;
}

.map-studio-settings-header-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ms-ink-3);
  margin: 0 0 4px;
}

.map-studio-settings-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.map-studio-settings-notify {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--ms-line);
  background: var(--ms-surface);
}

.map-studio-root.is-dark-scheme .mud-input-control,
.map-studio-root.is-dark-scheme .mud-input,
.map-studio-root.is-dark-scheme .mud-select,
.map-studio-root.is-dark-scheme .mud-picker,
.map-studio-root.is-dark-scheme .mud-typography,
.map-studio-root.is-dark-scheme .mud-checkbox,
.map-studio-root.is-dark-scheme .mud-switch {
  color: var(--ms-ink-2);
}

.map-studio-root.is-dark-scheme .mud-input > input,
.map-studio-root.is-dark-scheme .mud-input > textarea,
.map-studio-root.is-dark-scheme .mud-select-input {
  color: var(--ms-ink);
}

.map-studio-root.is-dark-scheme .mud-input-outlined-border {
  border-color: var(--ms-line) !important;
}

.map-studio-root.is-dark-scheme .mud-input-label,
.map-studio-root.is-dark-scheme .mud-input-helper-text,
.map-studio-root.is-dark-scheme .mud-icon-root {
  color: var(--ms-ink-3);
}

.map-studio-root.is-dark-scheme .mud-button-outlined {
  border-color: var(--ms-line);
  color: var(--ms-ink-2);
}

.map-studio-root.is-dark-scheme .mud-button-text {
  color: var(--ms-accent-ink);
}

body:has(.map-studio-root.is-dark-scheme) {
  --ms-bg: #040a12;
  --ms-surface: #171d26;
  --ms-surface-2: #111720;
  --ms-surface-3: #202936;
  --ms-ink: #f2f5f8;
  --ms-ink-2: #c5ced9;
  --ms-ink-3: #8793a2;
  --ms-line: #2a3442;
  --ms-line-2: #222b38;
  --ms-accent: oklch(0.70 0.16 248);
  --ms-accent-soft: color-mix(in oklab, var(--ms-accent) 18%, #172132);
  --ms-accent-ink: #d7e7ff;
}

.map-studio-primary-action {
  margin-bottom: 12px;
}

.map-studio-routes-tools-block {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: var(--ms-surface-2);
}

.map-studio-routes-tools-block-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-ink-3);
}

.map-studio-route-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.map-studio-route-tool-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ms-line);
  border-radius: 8px;
  background: var(--ms-surface);
  color: var(--ms-ink);
  cursor: pointer;
  box-shadow: var(--ms-shadow-2);
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.map-studio-route-tool-btn:hover:not(:disabled) {
  border-color: var(--ms-accent);
  color: var(--ms-accent);
}

.map-studio-route-tool-btn.is-active,
.map-studio-route-tool-btn[aria-pressed="true"] {
  border-color: var(--ms-accent);
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}

.map-studio-route-tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.map-studio-route-tool-btn .map-studio-route-tool-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.map-studio-route-glyph-stack {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-studio-route-glyph-stack .map-studio-route-glyph-base {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.map-studio-route-glyph-stack .map-studio-route-glyph-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  font-size: 14px;
  border-radius: 50%;
  background: var(--ms-surface);
  box-shadow: 0 0 0 1px var(--ms-line);
}

.map-studio-route-tool-btn.is-danger:hover:not(:disabled) {
  border-color: #dc2626;
  color: #dc2626;
  background: color-mix(in oklab, #dc2626 12%, var(--ms-surface-2));
}

.map-studio-settings-section-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-studio-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.map-studio-guide-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  background: var(--ms-surface-2);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-btn);
  color: var(--ms-ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.map-studio-guide-tile:hover {
  background: var(--ms-accent-soft);
  border-color: color-mix(in oklab, var(--ms-accent) 30%, transparent);
  color: var(--ms-accent-ink);
}

.map-studio-settings-accordion {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-studio-acc-item {
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius-btn);
  background: var(--ms-surface);
  overflow: hidden;
}

.map-studio-acc-item.is-expanded {
  overflow: visible;
}

.map-studio-acc-item.is-expanded .map-studio-acc-body {
  overflow: visible;
}

/* MudSelect popover must sit above .map-studio-root.is-fullscreen (z-index 1400). */
.map-studio-settings-popover {
  z-index: 1800 !important;
}

body:has(.map-studio-root.is-fullscreen) .mud-popover,
body:has(.map-studio-root.is-fullscreen) .mud-picker-popover,
body:has(.map-studio-root.is-fullscreen) .mud-picker-inline-paper {
  z-index: 1800 !important;
  pointer-events: auto !important;
}

body:has(.map-studio-root.is-fullscreen) .mud-overlay,
body:has(.map-studio-root.is-fullscreen) .mud-overlay-dialog {
  z-index: 1650 !important;
}

body:has(.map-studio-root.is-fullscreen) .mud-dialog-container,
body:has(.map-studio-root.is-fullscreen) .mud-dialog {
  z-index: 1700 !important;
}

body:has(.map-studio-root.is-dark-scheme) .mud-dialog,
body:has(.map-studio-root.is-dark-scheme) .mud-popover,
body:has(.map-studio-root.is-dark-scheme) .mud-picker-popover,
body:has(.map-studio-root.is-dark-scheme) .mud-picker-inline-paper {
  background: var(--ms-surface) !important;
  border-color: var(--ms-line) !important;
  color: var(--ms-ink) !important;
}

body:has(.map-studio-root.is-dark-scheme) .mud-dialog .mud-typography,
body:has(.map-studio-root.is-dark-scheme) .mud-popover .mud-typography,
body:has(.map-studio-root.is-dark-scheme) .mud-picker-popover .mud-typography {
  color: var(--ms-ink-2) !important;
}

.map-studio-color-field {
  position: relative;
}

.map-studio-color-field .mud-input-control {
  flex: 1;
  min-width: 0;
}

.map-studio-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--ms-ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.map-studio-acc-header:hover {
  background: var(--ms-surface-2);
}

.map-studio-acc-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--ms-ink-3);
}

.map-studio-acc-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--ms-line-2);
  font-size: 13px;
  color: var(--ms-ink-2);
}

.map-studio-acc-body .mud-input-control {
  margin-top: 8px;
}

.map-studio-color-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-studio-color-preview {
  flex-shrink: 0;
  border-radius: var(--ms-radius-btn);
  background:
    linear-gradient(45deg, #d4d4d8 25%, transparent 25%) -6px 0/12px 12px,
    linear-gradient(-45deg, #d4d4d8 25%, transparent 25%) -6px 0/12px 12px,
    linear-gradient(45deg, transparent 75%, #d4d4d8 75%) -6px 0/12px 12px,
    linear-gradient(-45deg, transparent 75%, #d4d4d8 75%) -6px 0/12px 12px,
    #f4f4f5;
}

.map-studio-poi-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.map-studio-color-swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: var(--ms-radius-btn);
  border: 1px solid var(--ms-line);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Map Studio 2026 fullscreen redesign */
.map-studio-root.is-fullscreen {
  --ms-studio-bg: #050912;
  --ms-panel: #343434;
  --ms-panel-2: #2f2f2f;
  --ms-panel-active: #272a30;
  --ms-divider: #101216;
  --ms-muted-text: #8d8d8d;
  --ms-soft-text: #b8b8b8;
  --ms-cyan: #31899a;
  --ms-danger: #c9171d;
  padding: 0;
  overflow: hidden;
  background: var(--ms-studio-bg);
  color: var(--ms-soft-text);
  font-family: Roboto, Arial, sans-serif;
}

.map-studio-root.is-fullscreen .map-studio-workspace {
  height: 100vh;
  gap: 0;
  background: var(--ms-studio-bg);
}

.map-studio-root.is-fullscreen .map-studio-editor-topbar {
  position: relative;
  height: 72px;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 28%);
  align-items: center;
  padding: 0 18px 0 32px;
  border: 0;
  border-radius: 0;
  background: var(--ms-studio-bg);
  box-shadow: none;
}

.map-studio-root.is-fullscreen .map-studio-brand {
  position: absolute;
  left: 32px;
  top: 21px;
  color: #8c8c8c;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.map-studio-root.is-fullscreen .map-studio-brand-logo {
  position: absolute;
  left: 32px;
  top: 27px;
  width: 120px;
  height: auto;
  display: block;
  opacity: 0.58;
}

.map-studio-root.is-fullscreen .map-studio-title-cluster {
  grid-column: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 34px;
  margin-right: 28px;
}

.map-studio-root.is-fullscreen .map-studio-editor-title {
  grid-column: 1;
  justify-self: end;
  margin-right: 28px;
  color: #7e7f85;
  font-size: 23px;
  font-weight: 100;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.map-studio-root.is-fullscreen .map-studio-history-actions {
  grid-column: 2;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}

.map-studio-root.is-fullscreen .tool-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f727a;
  box-shadow: none;
}

.map-studio-root.is-fullscreen .tool-btn:hover:not(:disabled) {
  color: #c7c7c7;
  background: rgba(255, 255, 255, 0.05);
}

.map-studio-root.is-fullscreen .tool-btn:disabled {
  opacity: 0.35;
}

.map-studio-root.is-fullscreen .tool-btn .material-symbols-rounded {
  font-size: 34px;
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

.map-studio-root.is-fullscreen .map-studio-editor-topbar > .tool-btn:last-child {
  grid-column: 2;
  justify-self: end;
  width: 48px;
  height: 48px;
}

.map-studio-root.is-fullscreen .map-studio-editor-topbar > .tool-btn:last-child .material-symbols-rounded {
  font-size: 38px;
}

.map-studio-root.is-fullscreen .map-studio-main-row {
  flex: 1;
  min-height: 0;
  gap: 8px;
  padding: 0 8px 8px 0;
  background: var(--ms-studio-bg);
}

.map-studio-root.is-fullscreen .map-studio-map-column {
  flex: 1 1 72%;
  min-width: 0;
  min-height: 0;
  display: flex;
  position: relative;
}

.map-studio-root.is-fullscreen .map-studio-map-panel,
.map-studio-root.is-fullscreen .map-studio-preview-frame-shell {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #858585;
  box-shadow: none;
}

.map-studio-root.is-fullscreen .map-studio-preview-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #858585;
}

.map-studio-root.is-fullscreen .map-studio-map-panel.is-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.map-studio-root.is-fullscreen .map-studio-canvas-wrap {
  flex: 1;
  min-height: 0;
  background: radial-gradient(circle at 55% 60%, #bdbdbd 0, #8b8b8b 46%, #707070 100%);
}

.map-studio-root.is-fullscreen .map-studio-bottom {
  height: 72px;
  min-height: 72px;
  border: 0;
  border-radius: 0;
  background: var(--ms-cyan);
  color: #d6eef3;
}

.map-studio-root.is-fullscreen .map-studio-right-rail {
  flex: 0 0 28%;
  min-width: 420px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-studio-root.is-fullscreen .map-studio-mode-grid {
  height: 178px;
  min-height: 178px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--ms-panel);
}

.map-studio-root.is-fullscreen .map-studio-mode-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: 0;
  border-right: 1px solid var(--ms-divider);
  border-bottom: 1px solid var(--ms-divider);
  background: var(--ms-panel);
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.map-studio-root.is-fullscreen .map-studio-mode-tile:nth-child(3n) {
  border-right: 0;
}

.map-studio-root.is-fullscreen .map-studio-mode-tile:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.map-studio-root.is-fullscreen .map-studio-mode-tile:hover,
.map-studio-root.is-fullscreen .map-studio-mode-tile.is-active {
  background: var(--ms-panel-active);
  color: #d0d0d0;
}

.map-studio-root.is-fullscreen .map-studio-mode-tile.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.map-studio-root.is-fullscreen .material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 25px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

.map-studio-root.is-fullscreen .map-studio-settings-panel {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 16px;
  background: var(--ms-panel);
  box-shadow: none;
  color: var(--ms-muted-text);
}

.map-studio-root.is-fullscreen .map-studio-settings-header {
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ms-divider);
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
  text-align: center;
}

.map-studio-root.is-fullscreen .map-studio-settings-scroll {
  padding: 0;
  scrollbar-color: #757575 transparent;
}

.map-studio-root.is-fullscreen .map-studio-acc-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--ms-divider);
}

.map-studio-root.is-fullscreen .map-studio-acc-header {
  min-height: 52px;
  padding: 0 54px;
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
}

.map-studio-root.is-fullscreen .map-studio-acc-body {
  padding: 24px 54px 34px;
  border-top: 1px solid var(--ms-divider);
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
}

.map-studio-root.is-fullscreen .map-studio-settings-panel .mud-input-root,
.map-studio-root.is-fullscreen .map-studio-settings-panel .mud-input-control,
.map-studio-root.is-fullscreen .map-studio-settings-panel .mud-input-slot {
  color: #535353;
  font-weight: 100;
}

.map-studio-root.is-fullscreen .map-studio-settings-panel .mud-input-outlined-border {
  border: 0;
  border-radius: 999px;
  background: #969696;
}

.map-studio-root.is-fullscreen .map-studio-settings-panel .mud-input > input,
.map-studio-root.is-fullscreen .map-studio-settings-panel .mud-input > textarea {
  min-height: 36px;
  color: #565656;
  text-align: center;
  font-weight: 100;
}

.map-studio-root.is-fullscreen .map-studio-settings-notify .mud-alert {
  border: 0;
  border-radius: 14px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8d8d8;
  font-weight: 100;
  text-align: center;
}

.map-studio-root.is-fullscreen .map-studio-settings-notify .mud-alert-filled-error {
  background: var(--ms-danger);
}

.map-studio-root.is-fullscreen .map-studio-settings-notify .mud-alert-filled-info,
.map-studio-root.is-fullscreen .map-studio-settings-notify .mud-alert-filled-success {
  background: #116878;
}

.map-studio-root.is-fullscreen .map-studio-floor-overview {
  position: relative;
  inset: auto;
  flex: 1;
  padding: 20px;
  border: 0;
  background: #858585;
}

.map-studio-root.is-fullscreen .map-studio-floor-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .map-studio-root.is-fullscreen .map-studio-editor-topbar {
    grid-template-columns: 1fr 340px;
  }

  .map-studio-root.is-fullscreen .map-studio-right-rail {
    flex-basis: 340px;
    min-width: 340px;
  }

  .map-studio-root.is-fullscreen .map-studio-mode-tile {
    font-size: 13px;
  }
}

/* Compact property inspector */
.map-studio-settings-panel {
  flex: 0 0 304px;
  width: 304px;
  min-width: 260px;
  border: 1px solid #34373d;
  border-radius: 3px;
  background: #202226;
  color: #c7c9ce;
}

.map-studio-settings-header {
  padding: 7px 9px;
  border-bottom-color: #34373d;
  background: #292b30;
}

.map-studio-settings-header-title {
  margin: 0;
  color: #b7bac1;
  font-size: 10px;
}

.map-studio-settings-scroll {
  padding: 7px;
  scrollbar-color: #555960 #202226;
}

.map-studio-settings-notify {
  padding: 7px;
  border-top-color: #34373d;
  background: #202226;
}

.map-studio-primary-action,
.map-studio-inspector-tools,
.map-studio-guide-grid {
  margin-bottom: 7px;
}

.map-studio-settings-panel .mud-typography,
.map-studio-settings-panel .mud-input,
.map-studio-settings-panel .mud-select,
.map-studio-settings-panel .mud-checkbox,
.map-studio-settings-panel .mud-switch,
.map-studio-settings-panel .mud-button-root {
  color: #c7c9ce;
  font-size: 11px;
}

.map-studio-settings-panel .mud-input-control,
.map-studio-acc-body .mud-input-control {
  margin-top: 3px !important;
}

.map-studio-settings-panel .mud-input-control-input-container {
  background: #303238;
  border-radius: 2px;
}

.map-studio-settings-panel .mud-input > input,
.map-studio-settings-panel .mud-input > textarea,
.map-studio-settings-panel .mud-select-input {
  min-height: 20px;
  padding: 3px 5px !important;
  color: #e0e1e4 !important;
  font-size: 11px;
}

.map-studio-settings-panel .mud-input-label,
.map-studio-settings-panel .mud-input-helper-text {
  color: #9da1a9 !important;
  font-size: 9px !important;
}

.map-studio-settings-panel .mud-input-outlined-border {
  border-color: #464950 !important;
  border-radius: 2px !important;
}

.map-studio-settings-panel .mud-grid {
  margin: -2px;
}

.map-studio-settings-panel .mud-grid-item {
  padding: 2px;
}

.map-studio-settings-panel .mud-button-root {
  min-height: 27px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: none;
}

.map-studio-inspector-tools {
  padding: 5px;
  background: #292b30;
  border: 1px solid #3b3e44;
}

.map-studio-inspector-tools .tool-btn,
.map-studio-inspector-tools .map-studio-route-tool-btn {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 2px;
  box-shadow: none;
}

.map-studio-inspector-tools .tool-btn svg {
  width: 18px;
  height: 18px;
}

.map-studio-guide-grid {
  gap: 5px;
}

.map-studio-guide-tile {
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-color: #3b3e44;
  border-radius: 2px;
  background: #292b30;
  color: #c7c9ce;
  font-size: 10px;
}

.map-studio-guide-tile .mud-icon-root {
  color: #d7d9dd;
  font-size: 23px;
}

.map-studio-acc-item {
  border-color: #34373d;
  border-radius: 2px;
  background: #25272c;
}

.map-studio-acc-header {
  padding: 6px 7px;
  color: #d1d3d7;
  font-size: 10px;
}

.map-studio-acc-body {
  padding: 4px 7px 7px;
  border-top-color: #34373d;
  color: #b7bac1;
  font-size: 10px;
}

.map-studio-color-field {
  min-height: 26px;
  gap: 5px;
}

.map-studio-color-preview {
  appearance: none;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.map-studio-color-preview:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.map-studio-color-picker-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.map-studio-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 1px;
}

.map-studio-floor-settings-preview {
  width: min(150px, 100%);
  height: 120px;
  margin: 4px auto 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #181a1e;
  border: 1px solid #3d4047;
}

.map-studio-floor-settings-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-studio-floor-settings-preview span {
  color: #8e929a;
  font-size: 10px;
}

.map-studio-floor-settings-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  margin-bottom: 7px;
  color: #aeb1b8;
  font-size: 10px;
}

.map-studio-floor-settings-meta strong {
  color: #dddfe3;
  font-weight: 500;
}

@media (max-width: 820px) {
  .map-studio-main-row {
    flex-direction: column;
    gap: 5px;
  }

  .map-studio-map-column {
    flex: 1 1 58%;
    min-height: 42vh;
  }

  .map-studio-settings-panel {
    flex: 0 1 42%;
    width: 100%;
    min-width: 0;
    min-height: 180px;
    border-radius: 0;
  }

  .map-studio-settings-header,
  .map-studio-settings-scroll {
    padding: 6px;
  }

  .map-studio-guide-grid {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

  .map-studio-inspector-tools .tool-btn,
  .map-studio-inspector-tools .map-studio-route-tool-btn,
  .map-studio-settings-panel .mud-icon-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .map-studio-guide-tile {
    min-height: 76px;
    aspect-ratio: auto;
  }
}

/* Final overrides for the fullscreen Map Studio layout. Keep these after compact inspector rules. */
.map-studio-root.is-fullscreen .map-studio-main-row {
  flex-direction: row;
  gap: 8px;
  padding: 0 8px 8px 0;
}

.map-studio-root.is-fullscreen .map-studio-map-column {
  flex: 1 1 72%;
  min-height: 0;
}

.map-studio-root.is-fullscreen .map-studio-right-rail {
  flex: 0 0 28%;
  min-width: 420px;
  display: flex;
}

.map-studio-root.is-fullscreen .map-studio-settings-panel {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 16px;
  background: var(--ms-panel);
}

.map-studio-root.is-fullscreen .map-studio-settings-header {
  min-height: 64px;
  padding: 0 18px;
  background: var(--ms-panel);
}

.map-studio-root.is-fullscreen .map-studio-settings-scroll {
  padding: 0;
}

.map-studio-root.is-fullscreen .map-studio-settings-header-row {
  width: 100%;
  justify-content: center;
  align-items: center;
}

.map-studio-root.is-fullscreen .map-studio-settings-header-title {
  margin: 0;
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
  letter-spacing: -0.02em;
  text-transform: none;
}

.map-studio-root.is-fullscreen .map-studio-settings-close-poi {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b9b9b9;
  cursor: pointer;
}

.map-studio-root.is-fullscreen .map-studio-settings-close-poi .material-symbols-rounded {
  font-size: 24px;
}

.map-studio-root.is-fullscreen .map-studio-settings-accordion {
  display: flex;
  flex-direction: column;
}

.map-studio-root.is-fullscreen .map-studio-acc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.map-studio-root.is-fullscreen .map-studio-acc-toggle {
  justify-self: end;
  color: #8f8f8f;
  font-size: 20px;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-select,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-checkbox,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch {
  font-family: Roboto, Arial, sans-serif;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 0 26px;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-label {
  position: static;
  transform: none;
  max-width: none;
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
  line-height: 1.2;
  overflow: visible;
  white-space: normal;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control-input-container {
  margin: 0;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control > .mud-input-control-input-container {
  grid-column: 2;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-root {
  min-height: 36px;
  border-radius: 999px;
  background: #969696;
  color: #565656;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-outlined-border {
  border: 0;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-adornment,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-icon-root {
  color: #5d5d5d;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > input,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > textarea {
  padding: 7px 18px;
  color: #565656;
  font-size: 15px;
  font-weight: 100;
  text-align: center;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > textarea {
  min-height: 88px;
  border-radius: 18px;
  text-align: left;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-button-root {
  min-height: 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 100;
  text-transform: none;
}

.map-studio-root.is-fullscreen .map-studio-guide-tile .material-symbols-rounded,
.map-studio-root.is-fullscreen .map-studio-bb-btn .material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

.map-studio-root.is-fullscreen .map-studio-bb-btn .material-symbols-rounded {
  font-size: 34px;
}

.map-studio-root.is-fullscreen .map-studio-route-tool-icon,
.map-studio-root.is-fullscreen .map-studio-route-glyph-base,
.map-studio-root.is-fullscreen .map-studio-route-glyph-badge,
.map-studio-root.is-fullscreen .map-studio-pathfinder-btn .material-symbols-rounded,
.map-studio-root.is-fullscreen .toolbar-section-icon {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

.map-studio-root.is-fullscreen .map-studio-pathfinder-btn .material-symbols-rounded,
.map-studio-root.is-fullscreen .toolbar-section-icon {
  font-size: 24px;
}

.map-studio-icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9b9b9b;
  cursor: pointer;
}

.map-studio-icon-button.danger {
  color: #d96a6a;
}

.map-studio-icon-button .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

/* Corrections for the Map Studio sketch alignment and settings rows. */
.map-studio-root.is-fullscreen .map-studio-editor-topbar {
  height: 72px;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 28%);
  grid-template-rows: 72px;
  align-items: center;
  padding: 0 18px 0 32px;
}

.map-studio-root.is-fullscreen .map-studio-brand-logo {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  width: 120px;
  height: auto;
  opacity: 0.58;
}

.map-studio-root.is-fullscreen .map-studio-editor-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin: 0 28px 0 0;
  font-size: 17.25px;
  line-height: 1;
}

.map-studio-root.is-fullscreen .map-studio-history-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  margin: 0 0 0 18px;
  height: 48px;
}

.map-studio-root.is-fullscreen .map-studio-editor-topbar > .tool-btn:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

.map-studio-root.is-fullscreen .map-studio-floor-overview {
  background: transparent;
}

.map-studio-root.is-fullscreen .map-studio-floor-tile {
  background: var(--ms-panel);
  border-color: var(--ms-divider);
}

.map-studio-root.is-fullscreen .map-studio-floor-tile-image {
  background: #252525;
}

.map-studio-root.is-fullscreen .map-studio-acc-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control,
.map-studio-root.is-fullscreen .map-studio-color-field,
.map-studio-root.is-fullscreen .map-studio-floor-settings-meta,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-checkbox,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-slider {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  color: var(--ms-muted-text);
  font-size: 15px;
  font-weight: 100;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-label,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-checkbox .mud-typography,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch .mud-typography,
.map-studio-root.is-fullscreen .map-studio-floor-settings-meta,
.map-studio-root.is-fullscreen .map-studio-color-field::before {
  color: var(--ms-muted-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 100;
  line-height: 1.2;
}

.map-studio-root.is-fullscreen .map-studio-color-field::before {
  content: "Цвет";
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control-input-container,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input,
.map-studio-root.is-fullscreen .map-studio-color-preview,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-slider-container {
  grid-column: 2;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-root,
.map-studio-root.is-fullscreen .map-studio-color-preview,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-select .mud-input-root {
  min-height: 36px;
  width: 100%;
  border-radius: 999px;
  background: #a1a1a1;
  color: #4f4f4f;
  border: 0;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > input,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > textarea,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-select .mud-input-slot {
  color: #4f4f4f;
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 100;
}

.map-studio-root.is-fullscreen .map-studio-color-preview {
  justify-content: center;
  padding: 6px 18px;
}

.map-studio-root.is-fullscreen .map-studio-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
}

body:has(.map-studio-root.is-fullscreen) .mud-picker-popover {
  position: fixed !important;
  inset: auto 16px 16px auto !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
}

body:has(.map-studio-root.is-fullscreen) .mud-picker-popover .mud-paper {
  max-width: 100% !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
}

/* Settings form final structure: external label left, compact readable control right. */
.map-studio-root.is-fullscreen .map-studio-acc-body {
  gap: 14px;
}

.map-studio-root.is-fullscreen .map-studio-setting-row,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control {
  display: grid !important;
  grid-template-columns: minmax(132px, 40%) minmax(132px, 1fr) !important;
  align-items: center !important;
  column-gap: 18px !important;
  width: 100% !important;
  min-height: 36px !important;
  margin: 0 !important;
  font-family: Roboto, Arial, sans-serif !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-label,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-label {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  transform: none !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #8d8d8d !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  pointer-events: none !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control-input-container {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-root {
  min-height: 34px !important;
  height: auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #a4a4a4 !important;
  color: #3f3f3f !important;
  box-shadow: none !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-outlined-border {
  display: none !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > input,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input > textarea,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-select .mud-input-slot {
  min-height: 34px !important;
  padding: 7px 16px !important;
  color: #3f3f3f !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.2 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body textarea {
  min-height: 82px !important;
  border-radius: 18px !important;
}

.map-studio-root.is-fullscreen .map-studio-color-field::before {
  content: none !important;
}

.map-studio-root.is-fullscreen .map-studio-color-preview {
  grid-column: 2 !important;
  width: fit-content !important;
  min-width: 118px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 5px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #a4a4a4 !important;
  color: #3f3f3f !important;
}

.map-studio-root.is-fullscreen .map-studio-color-value {
  color: #3f3f3f;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 100;
  line-height: 1;
}

.map-studio-root.is-fullscreen .map-studio-color-swatch {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 999px !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-typography-caption {
  color: #8d8d8d !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
  margin: -6px 0 4px calc(40% + 18px) !important;
}

/* Professional settings layout pass: every editable setting is a readable row. */
.map-studio-root.is-fullscreen .map-studio-settings-panel,
.map-studio-root.is-fullscreen .map-studio-settings-panel * {
  font-family: Roboto, Arial, sans-serif !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body > .mud-stack,
.map-studio-root.is-fullscreen .map-studio-poi-settings,
.map-studio-root.is-fullscreen .map-studio-poi-settings > .map-studio-settings-accordion {
  width: 100%;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-grid-item {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-control {
  grid-template-columns: minmax(150px, 42%) minmax(160px, 1fr) !important;
  gap: 16px !important;
  min-height: 38px !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-label,
.map-studio-root.is-fullscreen .map-studio-setting-label {
  color: #949494 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-input-root {
  min-height: 36px !important;
  border-radius: 999px !important;
  background: #a7a7a7 !important;
  overflow: visible !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-select .mud-input-root {
  min-height: 36px !important;
  padding-right: 8px !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-select .mud-input-slot {
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: left !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-root {
  min-height: 44px !important;
  height: auto !important;
  align-items: flex-start !important;
  border-radius: 18px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-slot,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-select-input {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 28px !important;
  padding: 3px 10px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-root {
  max-width: 100% !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: #d0d0d0 !important;
  color: #333 !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-content {
  max-width: 170px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #333 !important;
  font-size: 12px !important;
  font-weight: 100 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-checkbox,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch {
  display: grid !important;
  grid-template-columns: minmax(150px, 42%) minmax(160px, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 36px !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-checkbox .mud-typography,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch .mud-typography {
  grid-column: 1 !important;
  grid-row: 1 !important;
  color: #949494 !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-checkbox .mud-button-root,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch .mud-switch-base,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-switch .mud-switch-span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-slider {
  display: grid !important;
  grid-template-columns: minmax(150px, 42%) minmax(160px, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-slider::before {
  content: "Значение";
  color: #949494;
  font-size: 14px;
  font-weight: 100;
  line-height: 1.25;
  align-self: center;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-slider .mud-slider-container {
  grid-column: 2 !important;
  width: 100% !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-typography-subtitle2,
.map-studio-root.is-fullscreen .map-studio-acc-body > .mud-typography-caption,
.map-studio-root.is-fullscreen .map-studio-acc-body .mud-stack > .mud-typography-caption {
  width: 100% !important;
  margin: 4px 0 0 !important;
  color: #a8a8a8 !important;
  font-size: 13px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body .mud-button-root {
  width: fit-content !important;
  max-width: 100% !important;
  padding-inline: 16px !important;
}

/* Map Studio settings design system. Keep this block last: it normalizes every
   setting row after older MudBlazor overrides have run. */
.map-studio-root.is-fullscreen .map-studio-setting-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: Roboto, Arial, sans-serif;
}

.map-studio-root.is-fullscreen .map-studio-setting-title {
  margin: 0 0 14px;
  color: #adadad;
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 100;
  line-height: 1.25;
  text-align: center;
}

.map-studio-root.is-fullscreen .map-studio-setting-subtitle {
  margin: 18px 0 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 17, 26, 0.46);
  color: #c2c2c2;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.25;
}

.map-studio-root.is-fullscreen .map-studio-setting-row {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  display: grid !important;
  grid-template-columns: minmax(132px, 40%) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-row.is-tall {
  align-items: start !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}

.map-studio-root.is-fullscreen .map-studio-setting-label {
  color: #9b9b9b !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-hint,
.map-studio-root.is-fullscreen .map-studio-setting-note {
  color: #797f87;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 100;
  line-height: 1.35;
}

.map-studio-root.is-fullscreen .map-studio-setting-note {
  margin: 8px 0 10px calc(40% + 14px);
}

.map-studio-root.is-fullscreen .map-studio-setting-control {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-control {
  width: 100% !important;
  min-height: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-control-input-container {
  width: 100% !important;
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-label,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-helper-text {
  display: none !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-root,
.map-studio-root.is-fullscreen .map-studio-field .mud-input-root {
  width: 100% !important;
  min-height: 34px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #adadad !important;
  color: #333840 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-outlined-border {
  display: none !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input > input,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input > textarea,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-select .mud-input-slot {
  width: 100% !important;
  min-height: 34px !important;
  padding: 7px 14px !important;
  color: #333840 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input > textarea {
  min-height: 88px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  resize: vertical;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .map-studio-textarea .mud-input-root {
  border-radius: 18px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-select .mud-input-slot {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-adornment,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-icon-root {
  color: #4b5058 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-control.mud-disabled,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input.mud-disabled,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-disabled {
  opacity: 0.55 !important;
}

.map-studio-root.is-fullscreen .map-studio-color-field {
  position: relative;
}

.map-studio-root.is-fullscreen .map-studio-color-field .map-studio-setting-control {
  position: relative;
  justify-content: flex-start;
}

.map-studio-root.is-fullscreen .map-studio-color-preview {
  width: auto !important;
  min-width: 126px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 5px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #adadad !important;
  color: #333840 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  cursor: pointer;
}

.map-studio-root.is-fullscreen .map-studio-color-preview:disabled {
  cursor: default;
  opacity: 0.55;
}

.map-studio-root.is-fullscreen .map-studio-color-swatch {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  border: 1px solid rgba(33, 37, 43, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18) inset;
}

.map-studio-root.is-fullscreen .map-studio-color-value {
  max-width: 148px;
  color: #333840 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 100 !important;
  line-height: 1 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-studio-root.is-fullscreen .map-studio-color-picker-control {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-root {
  min-height: 42px !important;
  align-items: flex-start !important;
  border-radius: 18px !important;
  overflow: visible !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-slot,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-select-input {
  min-height: 32px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  white-space: normal !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-root {
  max-width: 100% !important;
  min-height: 24px !important;
  height: auto !important;
  border-radius: 999px !important;
  background: #d3d3d3 !important;
  color: #30343a !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-content {
  max-width: 190px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #30343a !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 100 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-checkbox,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-switch {
  width: auto !important;
  min-height: 34px !important;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-checkbox .mud-typography,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-switch .mud-typography {
  display: none !important;
}

.map-studio-root.is-fullscreen .map-studio-slider-control {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.map-studio-root.is-fullscreen .map-studio-slider-control .mud-slider {
  width: 100% !important;
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-slider-control .mud-slider::before {
  content: none !important;
}

.map-studio-root.is-fullscreen .map-studio-slider-control .mud-slider .mud-slider-container {
  grid-column: auto !important;
  width: 100% !important;
}

.map-studio-root.is-fullscreen .map-studio-slider-value {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #adadad;
  color: #333840;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 100;
  line-height: 1;
}

.map-studio-root.is-fullscreen .map-studio-setting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.map-studio-root.is-fullscreen .map-studio-setting-actions.is-compact {
  margin: 2px 0 12px calc(40% + 14px);
}

.map-studio-root.is-fullscreen .map-studio-setting-actions.is-stacked {
  flex-direction: column;
}

.map-studio-root.is-fullscreen .map-studio-setting-actions .mud-button-root {
  min-height: 34px !important;
  border-radius: 999px !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  text-transform: none !important;
}

body:has(.map-studio-root.is-fullscreen) .map-studio-settings-popover,
body:has(.map-studio-root.is-fullscreen) .mud-picker-popover {
  max-width: min(420px, calc(100vw - 24px)) !important;
  max-height: min(620px, calc(100vh - 24px)) !important;
  overflow: auto !important;
}

body:has(.map-studio-root.is-fullscreen) .mud-picker-popover {
  transform-origin: top right !important;
}

.map-studio-dialog-settings {
  width: 100%;
  font-family: Roboto, Arial, sans-serif;
}

.map-studio-dialog-settings .mud-stepper {
  margin-bottom: 16px !important;
}

.map-studio-dialog-settings .mud-grid {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
}

.map-studio-dialog-settings .mud-grid-item {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
}

.map-studio-dialog-settings .mud-input-control {
  width: 100% !important;
  min-height: 36px !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  margin: 0 0 10px !important;
}

.map-studio-dialog-settings .mud-input-label {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  max-width: none !important;
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  transform: none !important;
  color: #9b9b9b !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  pointer-events: none !important;
}

.map-studio-dialog-settings .mud-input-control-input-container {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  margin: 0 !important;
}

.map-studio-dialog-settings .mud-input-root {
  width: 100% !important;
  min-height: 34px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #adadad !important;
  color: #333840 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.map-studio-dialog-settings .mud-input-outlined-border {
  display: none !important;
}

.map-studio-dialog-settings .mud-input > input,
.map-studio-dialog-settings .mud-input > textarea,
.map-studio-dialog-settings .mud-select .mud-input-slot {
  min-height: 34px !important;
  padding: 7px 14px !important;
  color: #333840 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
}

.map-studio-dialog-settings .mud-input > textarea {
  min-height: 92px !important;
  border-radius: 18px !important;
  resize: vertical;
}

.map-studio-dialog-settings .mud-select .mud-input-slot,
.map-studio-dialog-settings .mud-select-input {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.map-studio-dialog-settings .mud-checkbox {
  display: grid !important;
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  min-height: 36px !important;
  margin: 0 0 10px !important;
}

.map-studio-dialog-settings .mud-checkbox .mud-typography {
  grid-column: 1 !important;
  grid-row: 1 !important;
  color: #9b9b9b !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 100 !important;
  line-height: 1.25 !important;
}

.map-studio-dialog-settings .mud-checkbox .mud-button-root {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

.map-studio-dialog-settings .map-studio-setting-row {
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr) !important;
}

.map-studio-dialog-settings .map-studio-setting-control .mud-input-control {
  display: block !important;
  grid-template-columns: none !important;
  margin: 0 !important;
}

.map-studio-dialog-settings .map-studio-color-preview {
  background: #adadad !important;
  color: #333840 !important;
}

.map-studio-dialog-settings .mud-slider {
  display: grid !important;
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 10px !important;
}

.map-studio-dialog-settings .mud-slider .mud-slider-container {
  grid-column: 2 !important;
  width: 100% !important;
}

.map-studio-dialog-settings .mud-slider::before {
  content: attr(aria-label);
  color: #9b9b9b;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 100;
}

.map-studio-dialog-settings .mud-typography-caption {
  color: #797f87 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 100 !important;
  line-height: 1.35 !important;
}

/* Final compact pass: fixes icon font loading, small controls, sane radii,
   and the left inset that the settings layout must always have. */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100;
  font-display: block;
  src: url('../fonts/material-symbols-rounded-100.ttf') format('truetype');
}

.material-symbols-rounded,
.map-studio-root.is-fullscreen .material-symbols-rounded,
.map-studio-dialog-settings .material-symbols-rounded {
  width: 1em;
  max-width: 1em;
  min-width: 1em;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  direction: ltr;
  font-family: 'Material Symbols Rounded' !important;
  font-size: 20px;
  font-style: normal !important;
  font-weight: 100 !important;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24 !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.map-studio-root.is-fullscreen .map-studio-settings-scroll {
  padding: 10px 0 12px !important;
}

.map-studio-root.is-fullscreen .map-studio-acc-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-title {
  margin: 0 24px 12px !important;
  font-size: 13px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-subtitle {
  margin: 14px 24px 8px !important;
  padding-top: 10px !important;
  font-size: 12px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-row {
  min-height: 30px !important;
  grid-template-columns: minmax(138px, 42%) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin: 0 0 8px !important;
  padding: 0 24px 0 28px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-copy {
  padding-top: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-label {
  font-size: 12.5px !important;
  line-height: 1.22 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-hint,
.map-studio-root.is-fullscreen .map-studio-setting-note {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-note {
  margin: 6px 24px 8px calc(42% + 38px) !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control {
  justify-content: flex-end !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input-root,
.map-studio-root.is-fullscreen .map-studio-field .mud-input-root,
.map-studio-dialog-settings .mud-input-root {
  min-height: 28px !important;
  border-radius: 14px !important;
  background: #a8a8a8 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input > input,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input > textarea,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-select .mud-input-slot,
.map-studio-dialog-settings .mud-input > input,
.map-studio-dialog-settings .mud-input > textarea,
.map-studio-dialog-settings .mud-select .mud-input-slot {
  min-height: 28px !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-input > textarea,
.map-studio-dialog-settings .mud-input > textarea {
  min-height: 72px !important;
  border-radius: 12px !important;
  padding-top: 8px !important;
}

.map-studio-root.is-fullscreen .map-studio-color-preview {
  min-width: 112px !important;
  min-height: 28px !important;
  gap: 8px !important;
  padding: 4px 10px !important;
  border-radius: 14px !important;
  background: #a8a8a8 !important;
}

.map-studio-root.is-fullscreen .map-studio-color-swatch {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

.map-studio-root.is-fullscreen .map-studio-color-value {
  max-width: 118px !important;
  font-size: 11.5px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-root {
  min-height: 32px !important;
  border-radius: 12px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-slot,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-select-input {
  min-height: 24px !important;
  gap: 4px !important;
  padding: 4px 9px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-root {
  min-height: 20px !important;
  border-radius: 10px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-content {
  max-width: 160px !important;
  font-size: 10.5px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-control .mud-checkbox,
.map-studio-root.is-fullscreen .map-studio-setting-control .mud-switch {
  min-height: 28px !important;
}

.map-studio-root.is-fullscreen .map-studio-slider-control {
  min-height: 28px !important;
  grid-template-columns: minmax(0, 1fr) 40px !important;
  gap: 8px !important;
}

.map-studio-root.is-fullscreen .map-studio-slider-value {
  min-height: 24px !important;
  border-radius: 12px !important;
  background: #a8a8a8 !important;
  font-size: 10.5px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-actions {
  margin: 10px 24px 0 28px !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-actions.is-compact {
  margin: 2px 24px 10px calc(42% + 38px) !important;
}

.map-studio-root.is-fullscreen .map-studio-setting-actions .mud-button-root {
  min-height: 28px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
}

.map-studio-dialog-settings .mud-input-control,
.map-studio-dialog-settings .mud-checkbox,
.map-studio-dialog-settings .mud-slider {
  min-height: 30px !important;
  grid-template-columns: minmax(138px, 38%) minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.map-studio-dialog-settings .mud-input-label,
.map-studio-dialog-settings .mud-checkbox .mud-typography,
.map-studio-dialog-settings .mud-slider::before {
  min-height: 28px !important;
  padding-left: 8px !important;
  font-size: 12.5px !important;
  line-height: 1.22 !important;
}

.map-studio-dialog-settings .map-studio-setting-row {
  grid-template-columns: minmax(138px, 38%) minmax(0, 1fr) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Final normalization for compact settings controls. */
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-root,
.map-studio-dialog-settings .map-studio-number-field .mud-input-root {
  position: relative !important;
  min-height: 28px !important;
  height: 28px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 24px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #a8a8a8 !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field input,
.map-studio-dialog-settings .map-studio-number-field input {
  height: 28px !important;
  min-height: 28px !important;
  padding: 5px 6px 5px 11px !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 18px !important;
  color: #2f3032 !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-adornment,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-adornment-end,
.map-studio-dialog-settings .map-studio-number-field .mud-input-adornment,
.map-studio-dialog-settings .map-studio-number-field .mud-input-adornment-end {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 14px 14px 0 !important;
  transform: none !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-adornment button,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-adornment .mud-icon-button-root,
.map-studio-dialog-settings .map-studio-number-field .mud-input-adornment button,
.map-studio-dialog-settings .map-studio-number-field .mud-input-adornment .mud-icon-button-root {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #56585c !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-adornment svg,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-adornment .mud-icon-root,
.map-studio-dialog-settings .map-studio-number-field .mud-input-adornment svg,
.map-studio-dialog-settings .map-studio-number-field .mud-input-adornment .mud-icon-root {
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field input[type="number"]::-webkit-outer-spin-button,
.map-studio-root.is-fullscreen .map-studio-number-field input[type="number"]::-webkit-inner-spin-button,
.map-studio-dialog-settings .map-studio-number-field input[type="number"]::-webkit-outer-spin-button,
.map-studio-dialog-settings .map-studio-number-field input[type="number"]::-webkit-inner-spin-button {
  width: 18px !important;
  height: 28px !important;
  margin: 0 !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-root,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-root {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 32px !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #a8a8a8 !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-control-input-container,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-control-input-container {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-slot,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-slot {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 28px !important;
  padding: 4px 30px 4px 10px !important;
  background: transparent !important;
  color: #2f3032 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 18px !important;
  white-space: normal !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-select-input,
.map-studio-dialog-settings .map-studio-multi-select .mud-select-input {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  border: 0 !important;
  color: transparent !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-adornment,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-adornment-end,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-adornment,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-adornment-end {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-root,
.map-studio-dialog-settings .map-studio-multi-select .mud-chip,
.map-studio-dialog-settings .map-studio-multi-select .mud-chip-root {
  min-height: 20px !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: rgba(16, 24, 38, 0.12) !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-chip-content,
.map-studio-dialog-settings .map-studio-multi-select .mud-chip-content {
  max-width: 210px !important;
  overflow: hidden !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 10.5px !important;
  line-height: 16px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #2f3032 !important;
}

/* Correction pass: MudBlazor numeric steppers and multi-select value layer. */
.map-studio-root.is-fullscreen .map-studio-number-field.mud-input-number-control .mud-input,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-number-control .mud-input,
.map-studio-dialog-settings .map-studio-number-field.mud-input-number-control .mud-input,
.map-studio-dialog-settings .map-studio-number-field .mud-input-number-control .mud-input {
  position: relative !important;
  min-height: 28px !important;
  height: 28px !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #a8a8a8 !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field.mud-input-number-control .mud-input input,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-number-control .mud-input input,
.map-studio-dialog-settings .map-studio-number-field.mud-input-number-control .mud-input input,
.map-studio-dialog-settings .map-studio-number-field .mud-input-number-control .mud-input input {
  min-height: 28px !important;
  height: 28px !important;
  padding: 5px 24px 5px 11px !important;
  color: #2f3032 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin,
.map-studio-dialog-settings .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin,
.map-studio-dialog-settings .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 3 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 14px 14px 0 !important;
  transform: none !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin button,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin button,
.map-studio-dialog-settings .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin button,
.map-studio-dialog-settings .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin button {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #56585c !important;
  box-shadow: none !important;
}

.map-studio-root.is-fullscreen .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin svg,
.map-studio-root.is-fullscreen .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin .mud-icon-root,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin svg,
.map-studio-root.is-fullscreen .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin .mud-icon-root,
.map-studio-dialog-settings .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin svg,
.map-studio-dialog-settings .map-studio-number-field.mud-input-number-control .mud-input-numeric-spin .mud-icon-root,
.map-studio-dialog-settings .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin svg,
.map-studio-dialog-settings .map-studio-number-field .mud-input-number-control .mud-input-numeric-spin .mud-icon-root {
  width: 13px !important;
  height: 13px !important;
  font-size: 13px !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-root,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-root {
  position: relative !important;
  min-height: 32px !important;
  height: auto !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #a8a8a8 !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-slot,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-slot {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-select-input,
.map-studio-dialog-settings .map-studio-multi-select .mud-select-input {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 30px 7px 10px !important;
  overflow: hidden !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
  color: #2f3032 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 18px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-adornment,
.map-studio-root.is-fullscreen .map-studio-multi-select .mud-input-adornment-end,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-adornment,
.map-studio-dialog-settings .map-studio-multi-select .mud-input-adornment-end {
  pointer-events: none !important;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect {
  position: relative;
  width: 100%;
  min-width: 0;
  font-family: Roboto, Arial, sans-serif;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-button {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  padding: 0 0 0 10px;
  border: 0;
  border-radius: 12px;
  background: #a8a8a8;
  color: #2f3032;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-icon {
  width: 28px;
  min-width: 28px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #56585c;
  font-size: 18px;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  background: #111722;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-option {
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #d6d9df;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 18px;
  cursor: pointer;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-option:hover {
  background: #1d2534;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-check {
  width: 24px;
  min-width: 24px;
  color: #b7c2d5;
  font-size: 20px;
}

.map-studio-root.is-fullscreen .map-studio-custom-multiselect-option-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
