    :root {
      --font: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
      --mono: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
      --collapsed-panel-height: 50px;
      --bg: #eef3fb;
      --surface: rgba(255, 255, 255, 0.9);
      --surface-2: rgba(255, 255, 255, 0.96);
      --line: rgba(33, 33, 33, 0.1);
      --text: #1d1d1f;
      --muted: #5f615f;
      --accent: #0a84ff;
      --accent-strong: #409cff;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.09);
      --shadow-md: 0 4px 8px rgba(0,0,0,0.06), 0 16px 64px rgba(0,0,0,0.13);
      --r-sm: 12px;
      --r-md: 18px;
      --r-lg: 28px;
      --r-pill: 999px;
    }

    * { box-sizing: border-box; }
    html, body {
      height: 100%;
      margin: 0;
      overflow: hidden;
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(29, 111, 255, 0.14), transparent 24%),
        linear-gradient(160deg, #f8fbff 0%, #edf4ff 52%, #e2ecfb 100%);
    }

    html.preload-dark, html.preload-dark body {
      background: #101214;
    }

    body {
      min-height: 100vh;
      padding: 16px 20px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      -webkit-user-select: none;
      user-select: none;
    }

    input,
    textarea,
    select,
    [contenteditable="true"] {
      -webkit-user-select: text;
      user-select: text;
    }

    body.dark-mode {
      --surface: rgba(30, 32, 36, 0.9);
      --surface-2: rgba(24, 26, 30, 0.96);
      --line: rgba(255, 255, 255, 0.1);
      --text: #f5f5f7;
      --muted: #b5b7bd;
      --accent: #3b92ff;
      --accent-strong: #61a8ff;
      --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.24);
      --shadow-md: 0 24px 80px rgba(0, 0, 0, 0.34);
      background:
        radial-gradient(circle at top left, rgba(59, 146, 255, 0.2), transparent 24%),
        linear-gradient(160deg, #15171b 0%, #101216 52%, #0b0d10 100%);
    }

    #container {
      position: relative;
      width: calc(100vw - 40px);
      height: calc(100vh - 32px);
      height: calc(100dvh - 32px);
      margin: 0 auto;
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      background: var(--surface);
      backdrop-filter: blur(18px);
      transition: box-shadow 0.3s ease;
    }

    #map-wrap {
      position: relative;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
    }

    #map {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
      background: linear-gradient(180deg, #dbe7f3 0%, #eef3f8 100%);
      cursor: grab;
    }

    body.dark-mode #map {
      background: linear-gradient(180deg, #26313d 0%, #1b232c 100%);
    }

    #map.dragging {
      cursor: grabbing;
    }

    #map.box-select-mode {
      cursor: crosshair;
    }


    #map.edit-mode {
      cursor: crosshair;
    }

    #map.measure-mode {
      cursor: crosshair;
    }

    #map.feature-hover {
      cursor: pointer;
    }

    #map.edit-mode.feature-hover,
    #map.measure-mode.feature-hover {
      cursor: pointer;
    }

    #map-markers {
      position: absolute;
      inset: 0;
      z-index: 850;
      pointer-events: none;
      will-change: transform;
    }

    #map .leaflet-popup-pane {
      z-index: 980;
    }

    #map-box-select-overlay {
      position: absolute;
      inset: 0;
      z-index: 840;
      pointer-events: none;
    }

    #map-box-select-overlay.active {
      pointer-events: auto;
    }

    .map-box-select-rect {
      position: absolute;
      display: none;
      border: 2px solid rgba(10, 132, 255, 0.96);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(10, 132, 255, 0.16) 0%, rgba(10, 132, 255, 0.08) 100%);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.42),
        0 10px 24px rgba(10, 132, 255, 0.14);
    }

    .map-box-select-rect.visible {
      display: block;
    }

    .map-feature-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transform: translateX(-50%);
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.78);
      color: rgba(29, 29, 31, 0.86);
      border: 1px solid rgba(10, 132, 255, 0.12);
      font-size: 10px;
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: -0.01em;
      white-space: nowrap;
      box-shadow: none;
    }

    .map-feature-label-icon {
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .map-edit-indicator {
      position: relative;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 2px solid rgba(10, 132, 255, 0.98);
      background: rgba(10, 132, 255, 0.08);
      box-shadow:
        0 0 0 6px rgba(10, 132, 255, 0.16),
        0 0 20px rgba(10, 132, 255, 0.24);
      transform: none;
      pointer-events: none;
      animation: edit-indicator-pulse 1.1s ease-out infinite;
    }

    .map-edit-indicator-icon {
      background: transparent;
      border: 0;
      width: 34px !important;
      height: 34px !important;
      margin-left: -17px !important;
      margin-top: -17px !important;
    }

    .map-edit-geometry-indicator path,
    .map-edit-geometry-indicator polygon,
    .map-edit-geometry-indicator polyline {
      stroke: rgba(10, 132, 255, 0.95);
      stroke-width: 5;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 12 10;
      fill: rgba(10, 132, 255, 0.12);
      pointer-events: none;
    }

    .map-edit-geometry-indicator.line path,
    .map-edit-geometry-indicator.line polyline {
      fill: none;
    }

    .map-edit-geometry-indicator.polygon path,
    .map-edit-geometry-indicator.polygon polygon {
      fill: rgba(10, 132, 255, 0.14);
    }

    @keyframes edit-indicator-pulse {
      0% {
        box-shadow:
          0 0 0 0 rgba(10, 132, 255, 0.28),
          0 0 18px rgba(10, 132, 255, 0.24);
        opacity: 0.92;
      }
      70% {
        box-shadow:
          0 0 0 18px rgba(10, 132, 255, 0),
          0 0 26px rgba(10, 132, 255, 0.1);
        opacity: 1;
      }
      100% {
        box-shadow:
          0 0 0 0 rgba(10, 132, 255, 0),
          0 0 18px rgba(10, 132, 255, 0.14);
        opacity: 0.92;
      }
    }


    body.dark-mode .map-feature-label {
      background: rgba(20, 22, 26, 0.72);
      color: rgba(255, 255, 255, 0.84);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .map-marker {
      position: absolute;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      pointer-events: auto;
      padding: 0;
      appearance: none;
      -webkit-appearance: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .map-marker.default {
      width: 12px;
      height: 12px;
      background: #30d158;
      border: 2px solid #1f8f42;
    }

    .map-marker.highlight {
      width: 16px;
      height: 16px;
      background: #ffd54f;
      border: 2px solid #222;
    }

    .map-marker.search-pin {
      width: 26px;
      height: 38px;
      background:
        no-repeat center / contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 38'%3E%3Cpath d='M13 1C6.925 1 2 5.925 2 12c0 8.25 8.8 16.647 10.29 18.014a1.05 1.05 0 0 0 1.42 0C15.2 28.647 24 20.25 24 12 24 5.925 19.075 1 13 1Z' fill='%230a84ff' stroke='%23005fcc' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='12' r='4.2' fill='white'/%3E%3C/svg%3E");
      border: 0;
      border-radius: 0;
      transform: translate(-50%, -100%);
      box-shadow: none;
    }

    .map-marker.search-pin::before {
      content: none;
    }

    .map-marker.search-pin .marker-callout {
      transform: translate(calc(-50% + var(--stack-shift-x)), calc(var(--stack-shift-y) - 6px));
    }

    .map-marker.search-pin.show-callout .marker-callout {
      transform: translate(calc(-50% + var(--stack-shift-x)), calc(var(--stack-shift-y) - 10px));
    }

    .search-result-icon-wrap {
      width: 26px;
      height: 38px;
      background: transparent;
      border: 0;
    }

    .search-result-icon-wrap .map-marker.search-pin {
      position: absolute;
      left: 0;
      top: 0;
      transform: none;
    }

    .map-marker.consolidated {
      width: 20px;
      height: 20px;
      background: #ff2d20;
      border: 3px solid #fff;
      box-shadow: 0 0 0 2px #ff2d20, 0 2px 14px rgba(255, 45, 32, 0.55);
    }

    .marker-callout {
      --stack-shift-x: 0px;
      --stack-shift-y: 0px;
      position: absolute;
      z-index: 980;
      left: 50%;
      bottom: calc(100% + 10px);
      transform: translate(calc(-50% + var(--stack-shift-x)), var(--stack-shift-y));
      min-width: 138px;
      max-width: 240px;
      background: rgba(28, 28, 30, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #fff;
      font-size: 11px;
      line-height: 1.25;
      padding: 9px 12px 10px;
      border-radius: 12px;
      opacity: 0;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
      transition: opacity 0.14s ease, transform 0.14s ease;
      text-align: center;
      pointer-events: none;
    }

    .marker-callout::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 100%;
      width: 10px;
      height: 10px;
      background: rgba(28, 28, 30, 0.96);
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      transform: translate(-50%, -55%) rotate(45deg);
    }

    .marker-callout-close {
      position: absolute;
      top: -10px;
      right: -10px;
      width: 24px;
      height: 24px;
      border: 2px solid rgba(28, 28, 30, 0.92);
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      background: linear-gradient(180deg, #ff5f57 0%, #ff3b30 100%);
      color: #fff;
      font-size: 0;
      font-weight: 700;
      line-height: 0;
      box-shadow: 0 6px 14px rgba(255, 59, 48, 0.32);
      cursor: pointer;
      pointer-events: auto;
    }

    .marker-callout-close svg {
      width: 12px;
      height: 12px;
      display: block;
      flex: 0 0 auto;
    }

    .marker-callout-close:hover {
      background: linear-gradient(180deg, #ff746d 0%, #ff453a 100%);
      box-shadow: 0 8px 16px rgba(255, 59, 48, 0.36);
      transform: none;
    }

    :root {
      --popup-zoom-scale: 1;
    }

    .gns-popup-wrap {
      transform: scale(var(--popup-zoom-scale));
      transform-origin: 50% 100%;
      transition: transform 0.2s ease;
    }

    .gns-popup-wrap .leaflet-popup-content-wrapper {
      background: rgba(28, 28, 30, 0.96);
      color: #fff;
      border-radius: 14px;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    }

    .gns-popup-wrap .leaflet-popup-content {
      margin: 0;
      min-width: 150px;
    }

    .gns-popup-wrap .leaflet-popup-tip {
      background: rgba(28, 28, 30, 0.96);
    }

    .gns-popup {
      padding: 10px 12px;
      text-align: center;
    }

    .gns-popup-title {
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.01em;
    }

    .gns-popup-subtitle,
    .gns-popup-coords,
    .gns-popup-note {
      margin-top: 4px;
    }

    .gns-popup-subtitle {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.8);
    }

    .gns-popup-coords {
      font-family: var(--mono);
      font-size: 10px;
      color: rgba(255, 255, 255, 0.78);
    }

    .gns-popup-note {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.72);
    }

    .point-menu {
      min-width: 180px;
      padding: 10px;
    }

    .point-menu.coords-only {
      min-width: 168px;
    }

    .point-menu-title {
      font-size: 12px;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .point-menu-meta {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.72);
      margin-bottom: 10px;
    }

    .point-menu.coords-only .point-menu-meta {
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      text-align: center;
    }

    .point-menu-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .point-menu-btn {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
      border-radius: 10px;
      padding: 8px 10px;
      font: inherit;
      font-size: 12px;
      text-align: left;
      cursor: pointer;
      transition: background 140ms ease, border-color 140ms ease;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .point-menu-btn svg {
      width: 15px;
      height: 15px;
      flex: 0 0 auto;
    }

    .point-menu-btn-label {
      min-width: 0;
      flex: 1 1 auto;
    }

    .point-menu-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .point-menu.coords-only .point-menu-btn {
      justify-content: center;
      text-align: center;
    }

    .layer-context-menu {
      position: absolute;
      width: min(200px, calc(100vw - 32px));
      max-width: min(200px, calc(100vw - 32px));
      padding: 12px;
      border-radius: 20px;
      background: #1f2024;
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
      z-index: 980;
      display: none;
    }

    .layer-context-menu.visible {
      display: block;
    }

    .layer-context-title {
      display: block;
      width: 100%;
      max-width: 100%;
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 10px;
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .layer-context-actions {
      display: grid;
      gap: 8px;
    }

    .layer-context-btn {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-radius: 12px;
      padding: 9px 11px;
      font: inherit;
      font-size: 12px;
      text-align: left;
      cursor: pointer;
      box-shadow: none;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .layer-context-btn svg {
      width: 15px;
      height: 15px;
      flex: 0 0 auto;
    }

    .layer-context-btn-label {
      min-width: 0;
      flex: 1 1 auto;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal;
    }

    .layer-context-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.2);
      transform: none;
    }

    .layer-context-btn.destructive {
      color: #ff7f78;
      border-color: rgba(255, 90, 82, 0.2);
      background: rgba(255, 90, 82, 0.12);
    }

    .layer-context-btn.destructive:hover {
      background: rgba(255, 90, 82, 0.2);
      border-color: rgba(255, 90, 82, 0.32);
    }

    .layer-context-btn:disabled,
    .layer-context-btn.disabled {
      opacity: 0.42;
      cursor: not-allowed;
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.08);
    }

    .layers-add-menu {
      position: absolute;
      min-width: 210px;
      padding: 12px;
      border-radius: 20px;
      background: #1f2024;
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
      z-index: 990;
      display: none;
    }

    .layers-add-menu.visible {
      display: block;
    }

    .layers-add-menu-actions {
      display: grid;
      gap: 8px;
    }

    .layers-add-menu-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-radius: 12px;
      padding: 10px 11px;
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
      box-shadow: none;
    }

    .layers-add-menu-btn svg {
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
      color: rgba(255, 255, 255, 0.88);
    }

    .layers-add-menu-btn span {
      display: block;
    }

    .layers-add-menu-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.2);
      transform: none;
    }

    .layers-add-menu-divider {
      height: 1px;
      margin: 4px 0;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 999px;
    }

    .confirm-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background: rgba(14, 18, 28, 0.38);
      -webkit-backdrop-filter: blur(12px) saturate(1.05);
      backdrop-filter: blur(12px) saturate(1.05);
      z-index: 1200;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.22s ease;
      will-change: opacity;
    }

    body.modal-open #map-wrap > :not(.confirm-modal) {
      filter: blur(10px) saturate(0.94);
      transition: filter 0.22s ease;
    }

    body.modal-open #map-wrap > .confirm-modal {
      filter: none;
    }

    body.map-export-capturing #floating-panel,
    body.map-export-capturing .map-top-controls,
    body.map-export-capturing #status,
    body.map-export-capturing #layer-context-menu,
    body.map-export-capturing #layers-add-menu,
    body.map-export-capturing #measure-menu,
    body.map-export-capturing #basemap-menu,
    body.map-export-capturing #map-loading,
    body.map-export-capturing #bookmark-capture-flash,
    body.map-export-capturing #tour-overlay,
    body.map-export-capturing .confirm-modal,
    body.map-export-capturing .command-palette,
    body.map-export-capturing #map-box-select-overlay,
    body.map-export-capturing .leaflet-control-attribution {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    body.map-export-hide-scale #topos-scale {
      opacity: 0 !important;
      visibility: hidden !important;
    }

    body.map-export-hide-basemap #map .leaflet-tile-pane {
      opacity: 0 !important;
    }

    body.map-export-hide-data #map .leaflet-overlay-pane,
    body.map-export-hide-data #map .leaflet-marker-pane,
    body.map-export-hide-data #map .leaflet-tooltip-pane,
    body.map-export-hide-data #map .leaflet-pane[class*="minor-label-pane"],
    body.map-export-hide-data #map-markers {
      opacity: 0 !important;
      visibility: hidden !important;
    }

    body.modal-open .confirm-modal {
      background: rgba(14, 18, 28, 0.26);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .confirm-modal.visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .confirm-modal-card {
      width: min(560px, calc(100vw - 40px));
      padding: 28px 28px 24px;
      border-radius: 28px;
      background: rgba(255,255,255,0.96);
      border: 1px solid rgba(33,33,33,0.08);
      box-shadow: var(--shadow-md);
      transform: translateY(12px) scale(0.985);
      transition: transform 0.24s ease;
    }

    .confirm-modal.visible .confirm-modal-card {
      transform: translateY(0) scale(1);
    }

    .confirm-modal-eyebrow {
      margin: 0 0 10px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .confirm-modal-card h2 {
      margin: 0 0 10px;
      font-size: 30px;
      line-height: 1;
      letter-spacing: -0.05em;
      color: var(--text);
    }

    .confirm-modal-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      font-size: 15px;
    }

    .confirm-modal-copy {
      margin-top: 18px;
      padding: 16px 18px;
      border-radius: 18px;
      background: rgba(0, 0, 0, 0.04);
      border: 1px solid var(--line);
    }

    .confirm-modal-copy strong {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      letter-spacing: -0.01em;
      color: var(--text);
    }

    .confirm-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 22px;
    }

    .confirm-modal-cancel {
      background: rgba(255, 255, 255, 0.94);
      color: var(--text);
      border: 1px solid var(--line);
      box-shadow: none;
    }

    .confirm-modal-delete {
      background: linear-gradient(180deg, #ff5a52 0%, #e1362d 100%);
      color: #fff;
      box-shadow: none;
    }

    .confirm-modal-delete:hover {
      background: linear-gradient(180deg, #ff6a63 0%, #eb4339 100%);
      box-shadow: none;
      transform: translateY(-1px);
    }

    .confirm-modal-save {
      background: linear-gradient(180deg, #1490ff 0%, #0067d8 100%);
      color: #fff;
      box-shadow: none;
    }

    .confirm-modal-save:hover {
      background: linear-gradient(180deg, #2d9cff 0%, #0a74ea 100%);
      box-shadow: none;
      transform: translateY(-1px);
    }

    .confirm-modal-input {
      width: 100%;
      margin-top: 12px;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: rgba(255, 255, 255, 0.92);
      color: var(--text);
      font: inherit;
      font-size: 15px;
      line-height: 1.3;
      outline: none;
    }

    .confirm-modal-input:focus {
      border-color: rgba(10, 132, 255, 0.42);
      box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
    }

    .confirm-modal-list {
      display: grid;
      gap: 10px;
      margin-top: 10px;
      max-height: min(280px, 42vh);
      overflow: auto;
      padding: 2px 3px 2px 0;
    }

    .confirm-modal-list-btn {
      appearance: none;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
      color: #f5f7fb;
      cursor: pointer;
      display: grid;
      gap: 6px;
      font: inherit;
      outline: none;
      padding: 16px 18px;
      position: relative;
      text-align: left;
      transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
      width: 100%;
    }

    .confirm-modal-list-btn:focus,
    .confirm-modal-list-btn:focus-visible {
      outline: none;
    }

    .confirm-modal-list-btn:hover {
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.13), rgba(255, 255, 255, 0.04));
      border-color: rgba(110, 177, 255, 0.42);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .confirm-modal-list-btn.selected {
      background: linear-gradient(180deg, rgba(24, 137, 255, 0.22), rgba(13, 72, 135, 0.18));
      border-color: rgba(77, 159, 255, 0.78);
      box-shadow: inset 0 0 0 1px rgba(77, 159, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .confirm-modal-list-text {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .confirm-modal-list-title {
      color: #f6f8fc;
      font-size: 0.95rem;
      font-weight: 800;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .confirm-modal-list-meta {
      color: rgba(215, 224, 235, 0.68);
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1.25;
    }

    body.dark-mode .confirm-modal-card {
      background: rgba(26, 28, 31, 0.96);
      border-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .confirm-modal-copy {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .confirm-modal-card p,
    body.dark-mode .confirm-modal-copy strong,
    body.dark-mode .confirm-modal-copy span {
      color: #f5f5f7;
    }

    body.dark-mode .confirm-modal-cancel {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    body.dark-mode .confirm-modal-cancel:hover {
      background: rgba(255, 255, 255, 0.1);
      box-shadow: none;
    }

    .attached-table-panel {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 18px;
      height: min(360px, 42vh);
      z-index: 930;
      display: none;
      pointer-events: none;
      transition: left 0.22s ease, right 0.22s ease, height 0.22s ease;
    }

    .attached-table-panel.visible {
      display: block;
      pointer-events: auto;
    }

    .attached-table-card {
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      border-radius: 26px;
      border: 1px solid var(--line);
      background: var(--surface-2);
      box-shadow: var(--shadow-md);
      overflow: hidden;
    }

    .attached-table-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.72);
    }

    body.dark-mode .attached-table-header {
      background: rgba(255, 255, 255, 0.04);
    }

    .attached-table-title {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .attached-table-close {
      width: 36px;
      height: 36px;
      min-width: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border-radius: 999px;
      box-shadow: none;
    }

    .attached-table-close svg {
      width: 16px;
      height: 16px;
      display: block;
    }

    .attached-table-frame {
      width: 100%;
      height: 100%;
      border: 0;
      background: transparent;
      display: block;
    }

    @media (max-height: 760px) {
      .attached-table-panel {
        height: min(320px, 46vh);
      }
    }

    body.dark-mode .confirm-modal-input {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.18);
      color: var(--text);
    }

    body.dark-mode .confirm-modal-input:focus {
      border-color: rgba(59, 146, 255, 0.4);
      box-shadow: 0 0 0 4px rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .confirm-modal-list-btn {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
      border-color: rgba(255, 255, 255, 0.09);
    }

    body.dark-mode .confirm-modal-list-btn:hover {
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.14), rgba(255, 255, 255, 0.035));
      border-color: rgba(110, 177, 255, 0.44);
    }

    body.dark-mode .confirm-modal-list-btn.selected {
      background: linear-gradient(180deg, rgba(24, 137, 255, 0.24), rgba(13, 72, 135, 0.2));
      border-color: rgba(77, 159, 255, 0.78);
    }

    .bookmark-capture-flash {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      opacity: 0;
      transform: scale(0.985);
      background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 24%, rgba(255, 255, 255, 0.03) 48%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 38%, rgba(10, 132, 255, 0.02) 100%);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 48px rgba(255, 255, 255, 0.06);
      z-index: 1250;
      will-change: opacity, transform;
    }

    .bookmark-capture-flash.active {
      animation: bookmark-capture-flash 0.34s cubic-bezier(0.22, 0.8, 0.24, 1);
    }

    @keyframes bookmark-capture-flash {
      0% {
        opacity: 0;
        transform: scale(0.985);
      }
      18% {
        opacity: 0.62;
        transform: scale(1);
      }
      58% {
        opacity: 0.16;
        transform: scale(1.002);
      }
      100% {
        opacity: 0;
        transform: scale(1.006);
      }
    }

    .marker-callout-title {
      display: block;
      font-weight: 600;
      letter-spacing: -0.01em;
    }

    .marker-callout-coords,
    .marker-callout-meta {
      display: block;
      margin-top: 4px;
      font-size: 10px;
      color: rgba(255, 255, 255, 0.78);
    }

    .marker-callout-coords {
      font-family: var(--mono);
    }

    .map-marker:hover .marker-callout,
    .map-marker.show-callout .marker-callout {
      opacity: 1;
      transform: translate(calc(-50% + var(--stack-shift-x)), calc(var(--stack-shift-y) - 1px));
    }

    .map-marker.search-pin:hover .marker-callout {
      opacity: 0;
      transform: translate(calc(-50% + var(--stack-shift-x)), calc(var(--stack-shift-y) - 6px));
    }

    .map-marker.search-pin.show-callout .marker-callout {
      opacity: 1;
      transform: translate(calc(-50% + var(--stack-shift-x)), calc(var(--stack-shift-y) - 10px));
    }

    #map-loading {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(248, 248, 250, 0.66);
      backdrop-filter: blur(6px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease;
      z-index: 1000;
    }

    #map-loading.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .map-loading-card {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 20px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

    body.dark-mode #map-loading {
      background: rgba(10, 12, 16, 0.6);
    }

    body.dark-mode .map-loading-card {
      background: rgba(24, 26, 30, 0.92);
      border-color: rgba(255, 255, 255, 0.08);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    .map-loading-spinner {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 3px solid rgba(30, 64, 175, 0.16);
      border-top-color: var(--accent);
      animation: map-loading-spin 0.9s linear infinite;
    }

    @keyframes map-loading-spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .map-loading-title {
      font-size: 15px;
      font-weight: 700;
    }

    .map-loading-subtitle {
      font-size: 13px;
      color: var(--muted);
    }

    .floating-panel {
      position: absolute;
      top: calc(16px + env(safe-area-inset-top));
      left: calc(16px + env(safe-area-inset-left));
      width: min(360px, calc(100vw - 72px));
      min-height: 0;
      padding: 18px 18px 16px;
      border-radius: 24px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-md);
      z-index: 870;
      backdrop-filter: blur(18px);
      overflow: visible;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      will-change: top, left, width, height, transform, border-radius, padding;
      transition:
        top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.42s ease,
        padding 0.42s ease,
        box-shadow 0.42s ease,
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .floating-panel.collapsing-sequence {
      transition:
        top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.24s,
        border-radius 0.45s ease,
        padding 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .floating-panel.expanded {
      width: min(380px, calc(100vw - 72px));
      height: calc(100% - 32px);
      padding: 22px 20px 24px;
      border-radius: 28px;
    }

    #container.edit-mode {
      box-shadow:
        0 0 0 1.5px rgba(10, 132, 255, 0.5),
        0 0 0 6px rgba(10, 132, 255, 0.12),
        0 0 40px rgba(10, 132, 255, 0.2);
      transition: box-shadow 0.3s ease;
    }

    .floating-panel.collapsed-ready {
      width: fit-content;
      min-width: 0;
      max-width: calc(100vw - 72px);
      height: var(--collapsed-panel-height);
      padding: 4px;
      overflow: visible;
      box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.18),
        0 18px 38px rgba(10, 132, 255, 0.18);
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed {
      top: 50%;
      left: 10px;
      width: 42px;
      min-width: 42px;
      max-width: 42px;
      height: 42px;
      padding: 4px;
      border-radius: 999px;
      align-items: center;
      justify-content: center;
      transform: translateY(-50%);
      box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.24),
        0 12px 28px rgba(10, 132, 255, 0.16);
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed:hover {
      transform: translateY(-50%) scale(1.12);
      box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.38),
        0 0 0 8px rgba(10, 132, 255, 0.1),
        0 16px 34px rgba(10, 132, 255, 0.22);
    }

    .floating-panel.pill-expanding .panel-topbar,
    .floating-panel.pill-expanding .panel-hero,
    .floating-panel.pill-expanding .sidebar-stage,
    .floating-panel.pill-expanding .sidebar-toolstrip,
    .floating-panel.pill-expanding .news-panel,
    .floating-panel.pill-expanding .import-panel,
    .floating-panel.pill-expanding .bookmarks-panel,
    .floating-panel.pill-expanding .layers-panel,
    .floating-panel.pill-expanding .settings-panel,
    .floating-panel.pill-expanding .basemaps-panel,
    .floating-panel.pill-expanding .selection-panel,
    .floating-panel.pill-expanding .share-panel,
    .floating-panel.pill-expanding .attribute-panel,
    .floating-panel.pill-expanding .feature-panel,
    .floating-panel.pill-expanding .sidebar-collapse-wrap {
      opacity: 0;
      pointer-events: none;
    }

    body.dark-mode #container.edit-mode {
      box-shadow:
        0 0 0 1.5px rgba(61, 155, 255, 0.6),
        0 0 0 6px rgba(10, 132, 255, 0.16),
        0 0 44px rgba(61, 155, 255, 0.24);
    }

    .panel-hero {
      width: 100%;
      overflow: hidden;
      max-height: 420px;
      opacity: 1;
      transform: translateY(0);
      transition:
        max-height 0.28s ease,
        opacity 0.2s ease,
        transform 0.2s ease,
        margin 0.2s ease;
    }

    .floating-panel.expanded .panel-hero {
      max-height: 0;
      opacity: 0;
      transform: translateY(-10px);
      margin: 0;
      pointer-events: none;
    }

    .floating-panel.collapsed-ready .panel-hero {
      max-height: 0;
      width: 0;
      min-width: 0;
      opacity: 0;
      transform: translateY(-10px);
      margin: 0;
      pointer-events: none;
    }

    .eyebrow {
      margin: 0 0 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      transition: font-size 0.24s ease, letter-spacing 0.24s ease, transform 0.24s ease;
    }

    .floating-panel.collapsed-ready .panel-topbar {
      width: auto;
      margin-bottom: 0;
      height: 36px;
      min-height: 36px;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed .panel-topbar {
      width: 100%;
      height: 100%;
      min-height: 0;
      justify-content: center;
      margin: 0;
      gap: 0;
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed .topbar-left,
    .floating-panel.collapsed-ready.auto-hide-collapsed .topbar-right {
      display: none;
      width: 0;
      min-width: 0;
      opacity: 0;
      pointer-events: none;
    }

    .floating-panel.collapsed-ready .topbar-left,
    .floating-panel.collapsed-ready .topbar-right,
    .floating-panel.collapsed-ready .sidebar-expand-wrap {
      height: 36px;
      align-items: center;
    }

    .floating-panel.collapsed-ready .topbar-left {
      display: flex;
      width: auto;
      min-width: 0;
      opacity: 1;
      overflow: visible;
      pointer-events: auto;
      margin: 0;
      gap: 0;
    }

    .floating-panel.collapsed-ready .topbar-right {
      margin-left: 0;
      width: auto;
      min-width: 36px;
      justify-content: flex-start;
    }

    .floating-panel.collapsed-ready .eyebrow {
      display: block;
      margin: 0;
      font-size: 13px;
      letter-spacing: 0.14em;
      line-height: 1;
      white-space: nowrap;
    }

    .floating-panel.collapsed-ready .sidebar-stage,
    .floating-panel.collapsed-ready .sidebar-toolstrip,
    .floating-panel.collapsed-ready .news-panel,
    .floating-panel.collapsed-ready .import-panel,
    .floating-panel.collapsed-ready .bookmarks-panel,
    .floating-panel.collapsed-ready .layers-panel,
    .floating-panel.collapsed-ready .settings-panel,
    .floating-panel.collapsed-ready .basemaps-panel,
    .floating-panel.collapsed-ready .selection-panel,
    .floating-panel.collapsed-ready .share-panel,
    .floating-panel.collapsed-ready .attribute-panel,
    .floating-panel.collapsed-ready .feature-panel,
    .floating-panel.collapsed-ready .sidebar-collapse-wrap {
      width: 0;
      min-width: 0;
    }

    .floating-panel.collapsed-ready .sidebar-toolstrip {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
    }

    .floating-panel.collapsed-ready .news-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.expanded.feature-mode .sidebar-toolstrip,
    .floating-panel.feature-mode .sidebar-toolstrip,
    .floating-panel.expanded.tools-mode .sidebar-toolstrip,
    .floating-panel.tools-mode .sidebar-toolstrip,
    .floating-panel.expanded.settings-mode .sidebar-toolstrip,
    .floating-panel.settings-mode .sidebar-toolstrip,
    .floating-panel.expanded.profile-mode .sidebar-toolstrip,
    .floating-panel.profile-mode .sidebar-toolstrip,
    .floating-panel.expanded.basemaps-mode .sidebar-toolstrip,
    .floating-panel.basemaps-mode .sidebar-toolstrip,
    .floating-panel.expanded.data-mode .sidebar-toolstrip,
    .floating-panel.data-mode .sidebar-toolstrip,
    .floating-panel.expanded.selection-mode .sidebar-toolstrip,
    .floating-panel.selection-mode .sidebar-toolstrip,
    .floating-panel.expanded.layer-properties-mode .sidebar-toolstrip,
    .floating-panel.layer-properties-mode .sidebar-toolstrip,
    .floating-panel.expanded.feature-properties-mode .sidebar-toolstrip,
    .floating-panel.feature-properties-mode .sidebar-toolstrip {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
      transform: translateY(-8px);
    }

    .floating-panel.collapsed-ready .import-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .bookmarks-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .layers-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .layer-properties-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .settings-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .basemaps-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .selection-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .share-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .attribute-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .feature-panel {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .floating-panel.collapsed-ready .topbar-right {
      margin-left: 0;
      flex: 0 0 auto;
    }

    .panel-topbar {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      margin-bottom: 8px;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .topbar-right {
      margin-left: auto;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      min-width: 0;
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: var(--r-pill);
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.8);
      box-shadow: var(--shadow-sm);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .topbar-mode-toggle {
      flex: 0 0 auto;
      position: relative;
    }

    .topbar-mode-toggle::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      top: calc(100% + 8px);
      transform: translateX(-50%) translateY(-4px);
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(28, 30, 34, 0.92);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: none;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
      z-index: 100;
    }

    .topbar-mode-toggle:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    body.dark-mode .topbar-mode-toggle::after {
      background: rgba(255, 255, 255, 0.96);
      color: #111318;
    }

    .floating-panel:not(.expanded) .topbar-mode-toggle {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-6px);
    }

    body.tour-active .topbar-mode-toggle {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-6px);
    }

    .floating-panel.expanded.feature-properties-mode .topbar-mode-toggle {
      width: 0;
      min-width: 0;
      max-width: 0;
      margin: 0;
      padding: 0;
      border-width: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transform: translateY(-6px);
      box-shadow: none;
    }

    .floating-panel.collapsed-ready .theme-toggle {
      opacity: 0;
      transform: translateY(-6px);
      pointer-events: none;
      width: 0;
      min-width: 0;
      max-width: 0;
      padding: 0;
      border-width: 0;
      margin: 0;
      overflow: hidden;
      box-shadow: none;
    }

    body.dark-mode .theme-toggle {
      background: rgba(255, 255, 255, 0.06);
    }

    .theme-switch {
      position: relative;
      display: inline-block;
      width: 42px;
      height: 24px;
    }

    .theme-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .theme-slider {
      position: absolute;
      inset: 0;
      cursor: pointer;
      background: rgba(0, 0, 0, 0.18);
      border-radius: var(--r-pill);
      transition: 0.25s ease;
    }

    .theme-slider::before {
      content: "";
      position: absolute;
      width: 18px;
      height: 18px;
      left: 3px;
      top: 3px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      transition: 0.25s ease;
    }

    .theme-switch input:checked + .theme-slider {
      background: var(--accent);
    }

    .theme-switch input:checked + .theme-slider::before {
      transform: translateX(18px);
    }

    h1 {
      margin: 0;
      font-size: 34px;
      line-height: 0.96;
      letter-spacing: -0.06em;
    }

    .intro {
      margin: 12px 0 16px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .panel-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 2px;
    }

    .sidebar-stage {
      max-height: 0;
      margin-top: 0;
      padding-top: 0;
      padding-bottom: 0;
      border-top: 1px solid rgba(33, 33, 33, 0.08);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      opacity: 0;
      overflow: hidden;
      transform: translateY(10px);
      transition:
        max-height 0.38s ease 0.16s,
        margin-top 0.38s ease 0.16s,
        padding-top 0.38s ease 0.16s,
        opacity 0.32s ease 0.18s,
        transform 0.32s ease 0.18s;
      pointer-events: none;
    }

    body.dark-mode .sidebar-stage {
      border-top-color: rgba(255, 255, 255, 0.16);
    }

    .floating-panel.expanded .sidebar-stage {
      max-height: none;
      margin-top: 12px;
      padding-top: 12px;
      padding-bottom: 4px;
      opacity: 1;
      overflow: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .floating-panel.expanded.feature-mode .sidebar-stage {
      max-height: 110px;
      padding-bottom: 10px;
    }

    .floating-panel.expanded.settings-mode .sidebar-stage,
    .floating-panel.expanded.profile-mode .sidebar-stage,
    .floating-panel.expanded.tools-mode .sidebar-stage,
    .floating-panel.expanded.layer-properties-mode .sidebar-stage,
    .floating-panel.expanded.basemaps-mode .sidebar-stage,
    .floating-panel.expanded.data-mode .sidebar-stage {
      max-height: 110px;
      padding-bottom: 10px;
    }

    .floating-panel.expanded.selection-mode .sidebar-stage {
      max-height: 176px;
      padding-bottom: 16px;
    }

    .sidebar-stage-title {
      margin: 0 0 10px;
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .sidebar-stage-copy {
      margin: 0;
      display: block;
      line-height: 1.55;
      min-height: 0;
      overflow: visible;
    }

    .sidebar-toolstrip {
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.3s ease 0.14s,
        opacity 0.24s ease 0.14s,
        transform 0.24s ease 0.14s,
        margin-top 0.24s ease 0.14s;
    }

    .floating-panel.expanded .sidebar-toolstrip {
      max-height: 124px;
      margin-top: 12px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      overflow: visible;
    }

    .sidebar-toolstrip-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      padding-top: 4px;
      padding-bottom: 4px;
    }

    .sidebar-tool-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 74px;
      padding: 10px 6px 8px;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 246, 255, 0.92) 100%);
      color: var(--text);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
      text-align: center;
    }

    .sidebar-tool-btn:hover {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 241, 255, 0.98) 100%);
      border-color: rgba(10, 132, 255, 0.28);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
      transform: none;
    }

    .sidebar-tool-icon {
      width: 20px;
      height: 20px;
      display: block;
      color: var(--accent);
    }

    .sidebar-tool-label {
      font-size: 10px;
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.01em;
      color: var(--text);
      text-wrap: balance;
    }

    .sidebar-tool-btn[data-sidebar-tool="bookmarks"] .sidebar-tool-label {
      font-size: 9px;
    }

    .sidebar-tool-btn.active {
      background: #0a84ff;
      border-color: #0a84ff;
      box-shadow: none;
      color: #fff;
      transform: none;
    }

    .sidebar-tool-btn.active .sidebar-tool-icon,
    .sidebar-tool-btn.active .sidebar-tool-label {
      color: #fff;
    }

    body.dark-mode .sidebar-tool-btn {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: rgba(59, 146, 255, 0.18);
    }

    body.dark-mode .sidebar-tool-btn:hover {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.06) 100%);
      border-color: rgba(59, 146, 255, 0.32);
      transform: none;
    }

    body.dark-mode .sidebar-tool-btn.active {
      background: #0a84ff;
      border-color: #0a84ff;
      box-shadow: none;
      color: #fff;
    }

    body.dark-mode .sidebar-tool-btn.active .sidebar-tool-icon,
    body.dark-mode .sidebar-tool-btn.active .sidebar-tool-label {
      color: #fff;
    }

    .import-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .import-panel.visible {
      max-height: calc(100vh - 272px);
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      min-height: 0;
    }

    .news-panel {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      gap: 0;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .bookmarks-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .bookmarks-panel.visible {
      max-height: min(560px, calc(100vh - 300px));
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      min-height: 0;
    }

    .bookmarks-card {
      width: 100%;
      min-height: 0;
      max-height: min(560px, calc(100vh - 300px));
      overflow: auto;
      border-radius: 24px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 247, 255, 0.96) 100%);
      padding: 16px;
    }

    .bookmarks-list {
      display: grid;
      gap: 10px;
    }

    .bookmarks-empty {
      padding: 18px 16px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.1);
      background: rgba(255, 255, 255, 0.66);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .bookmark-row {
      width: 100%;
      display: grid;
      grid-template-columns: 68px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 14px 14px 12px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.1);
      background: rgba(255, 255, 255, 0.66);
      text-align: left;
      color: var(--text);
    }

    .bookmark-row:hover {
      border-color: rgba(10, 132, 255, 0.24);
      background: rgba(245, 249, 255, 0.9);
    }

    .bookmark-row-title {
      font-size: 16px;
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .bookmark-row-main {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

    .bookmark-row-thumb {
      width: 68px;
      height: 68px;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.1);
      background:
        linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, rgba(10, 132, 255, 0.02) 100%),
        rgba(255, 255, 255, 0.42);
      overflow: hidden;
      position: relative;
    }

    .bookmark-row-thumb img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .bookmark-row-thumb::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 42%;
      background: linear-gradient(180deg, rgba(10, 15, 25, 0) 0%, rgba(10, 15, 25, 0.18) 100%);
      pointer-events: none;
    }

    .bookmark-row-delete {
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      border: 1px solid rgba(255, 90, 82, 0.16);
      background: rgba(255, 90, 82, 0.08);
      color: #d83b34;
      flex: 0 0 auto;
    }

    .bookmark-row-delete:hover {
      border-color: rgba(255, 90, 82, 0.28);
      background: rgba(255, 90, 82, 0.14);
    }

    .bookmark-row-delete svg {
      width: 18px;
      height: 18px;
      display: block;
    }

    .bookmark-row-meta,
    .bookmark-row-basemap {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    body.dark-mode .bookmarks-card {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: rgba(59, 146, 255, 0.16);
    }

    body.dark-mode .bookmark-row,
    body.dark-mode .bookmarks-empty {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .bookmark-row-thumb {
      background:
        linear-gradient(180deg, rgba(59, 146, 255, 0.12) 0%, rgba(59, 146, 255, 0.04) 100%),
        rgba(255, 255, 255, 0.04);
      border-color: rgba(59, 146, 255, 0.18);
    }

    body.dark-mode .bookmark-row:hover {
      background: rgba(59, 146, 255, 0.12);
      border-color: rgba(59, 146, 255, 0.28);
    }

    .bookmark-row.active {
      background: rgba(10, 132, 255, 0.08);
      border-color: rgba(10, 132, 255, 0.4);
    }
    .bookmark-row.active:hover {
      background: rgba(10, 132, 255, 0.12);
      border-color: rgba(10, 132, 255, 0.5);
    }
    .bookmark-row.active .bookmark-row-title {
      color: var(--accent);
    }
    body.dark-mode .bookmark-row.active {
      background: rgba(59, 146, 255, 0.12);
      border-color: rgba(59, 146, 255, 0.4);
    }
    body.dark-mode .bookmark-row.active .bookmark-row-title {
      color: var(--accent-strong);
    }

    body.dark-mode .bookmark-row-delete {
      border-color: rgba(255, 106, 99, 0.18);
      background: rgba(255, 106, 99, 0.1);
      color: #ff8b84;
    }

    body.dark-mode .bookmark-row-delete:hover {
      border-color: rgba(255, 106, 99, 0.3);
      background: rgba(255, 106, 99, 0.16);
    }

    .projects-card {
      width: 100%;
    }
    .projects-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      padding: 0 6px;
    }
    .projects-card-kicker {
      margin: 0;
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .projects-card-empty {
      font-size: 12px;
      color: var(--muted);
      padding: 10px 6px;
    }
    .projects-card-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .projects-card-skeleton {
      display: grid;
      gap: 8px;
    }
    .projects-card-skeleton-item {
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(90deg, var(--line) 25%, rgba(0,0,0,0.04) 50%, var(--line) 75%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.4s ease infinite;
    }
    body.dark-mode .projects-card-skeleton-item {
      background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.06) 75%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.4s ease infinite;
    }
    @keyframes skeleton-shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .projects-card-new-btn {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      border-radius: 50%;
      border: 1.5px solid var(--line);
      background: var(--surface);
      color: var(--text);
      font-size: 18px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .projects-card-new-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    body.dark-mode .projects-card-new-btn {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.12);
      color: var(--text);
    }
    body.dark-mode .projects-card-new-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .projects-card-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      padding: 10px 14px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface);
      cursor: pointer;
      text-align: left;
      transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }
    .projects-card-item:hover {
      background: var(--surface-2);
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      transform: translateY(-1px);
    }
    .projects-card-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .projects-card-date {
      flex-shrink: 0;
      font-size: 11px;
      color: var(--muted);
    }
    body.dark-mode .projects-card-item {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.08);
    }
    body.dark-mode .projects-card-item:hover {
      background: rgba(255,255,255,0.09);
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    .projects-card-item.active {
      background: rgba(10, 132, 255, 0.1);
      border-color: rgba(10, 132, 255, 0.35);
    }
    .projects-card-item.active:hover {
      background: rgba(10, 132, 255, 0.13);
      box-shadow: 0 2px 10px rgba(10, 132, 255, 0.12);
      transform: none;
      cursor: default;
    }
    .projects-card-item.active .projects-card-name {
      color: var(--accent);
    }
    body.dark-mode .projects-card-item.active {
      background: rgba(59, 146, 255, 0.12);
      border-color: rgba(59, 146, 255, 0.35);
    }
    body.dark-mode .projects-card-item.active .projects-card-name {
      color: var(--accent-strong);
    }

    .tips-card {
      width: 100%;
      border-radius: 18px;
      border: 0;
      background: transparent;
      box-shadow: none;
      padding: 0;
    }

    .tips-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      padding: 0 6px;
    }

    .tips-card-kicker {
      margin: 0;
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .tips-card-badge {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .tips-card-item {
      padding: 12px 12px 10px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.1);
      background: rgba(255, 255, 255, 0.66);
    }

    .tips-card-title {
      margin: 0 0 6px;
      color: var(--text);
      font-size: 15px;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .tips-card-copy {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.48;
    }

    .welcome-sidebar-divider {
      width: 100%;
      height: 1px;
      margin: 16px 0 18px;
      background: linear-gradient(90deg, rgba(10, 132, 255, 0.12) 0%, rgba(10, 132, 255, 0.28) 50%, rgba(10, 132, 255, 0.12) 100%);
      border-radius: 999px;
      flex: 0 0 auto;
    }

    body.dark-mode .tips-card {
      background: transparent;
      border-color: transparent;
    }

    body.dark-mode .tips-card-item {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .welcome-sidebar-divider {
      background: linear-gradient(90deg, rgba(59, 146, 255, 0.12) 0%, rgba(59, 146, 255, 0.32) 50%, rgba(59, 146, 255, 0.12) 100%);
    }

    .floating-panel.expanded .news-panel.visible {
      max-height: calc(100vh - 280px);
      overflow-y: auto;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      min-height: 0;
      padding: 18px 20px 20px;
      border-radius: 22px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 247, 255, 0.96) 100%);
    }

    body.dark-mode .floating-panel.expanded .news-panel.visible {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: rgba(59, 146, 255, 0.16);
    }

    .news-card {
      width: 100%;
      min-height: 0;
      border-radius: 18px;
      border: 0;
      background: transparent;
      box-shadow: none;
      padding: 0;
      overflow: visible;
    }

    .news-card-list {
      display: grid;
      gap: 10px;
      padding-bottom: 6px;
    }

    .news-card-item {
      padding: 12px 12px 10px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.1);
      background: rgba(255, 255, 255, 0.66);
    }

    .news-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      padding: 0 6px;
    }

    .news-card-kicker {
      margin: 0;
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .news-card-source {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .news-card-title {
      margin: 0 0 6px;
      color: var(--text);
      font-size: 15px;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .news-card-summary {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .news-card-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
      text-decoration: none;
    }

    .news-card-link:hover {
      text-decoration: underline;
    }

    body.dark-mode .news-card {
      background: transparent;
      border-color: transparent;
    }

    body.dark-mode .news-card-item {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .add-data-status {
      border-color: rgba(255, 106, 99, 0.24);
      background: rgba(255, 106, 99, 0.1);
      color: #ff8b84;
    }

    body.dark-mode .add-data-note {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .sidebar-loading-card {
      background: rgba(26, 28, 31, 0.96);
      border-color: rgba(59, 146, 255, 0.18);
    }

    .feature-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .feature-panel.visible {
      max-height: none;
      margin-top: 14px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .floating-panel.expanded.feature-mode .feature-panel.visible {
      flex: 0 0 auto;
      height: calc(100% - 214px);
      max-height: calc(100% - 214px);
      min-height: 0;
    }

    .layers-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .layers-panel.visible {
      max-height: 560px;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }


    .settings-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .settings-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .basemaps-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .basemaps-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .layer-properties-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .layer-properties-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .feature-properties-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .feature-properties-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .feature-properties-panel.visible #feature-properties-card {
      max-height: calc(100vh - 290px);
      overflow-y: auto;
    }

    #feature-properties-card {
      display: grid;
      align-content: start;
      gap: 16px;
      width: 100%;
      min-height: 0;
    }

    #feature-properties-card .settings-row {
      gap: 14px;
      padding: 18px 18px 20px;
    }

    #feature-properties-card .settings-row-copy {
      font-size: 13px;
      line-height: 1.45;
    }

    #feature-properties-card .settings-row-copy.compact {
      margin-top: -4px;
    }

    #feature-properties-card .settings-row-copy.link-copy {
      max-width: 100%;
    }

    #feature-properties-card .settings-inline-toggle {
      width: 100%;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      margin-top: 0;
    }

    .feature-properties-heading {
      display: grid;
      align-content: start;
      justify-items: start;
      gap: 12px;
    }

    .feature-properties-heading .settings-row-label {
      margin: 0;
    }

    .feature-properties-static {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 0 14px;
      border-radius: 18px;
      border: 1px solid rgba(59, 146, 255, 0.18);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.01em;
      width: auto;
      max-width: 100%;
      box-shadow: none;
    }

    .feature-properties-static code {
      background: none;
      padding: 0;
      border: 0;
      color: inherit;
      font: inherit;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      text-transform: none;
    }

    .feature-properties-toggle-wrap {
      display: flex;
      justify-content: flex-start;
      width: 100%;
      margin: -2px 0 2px;
    }

    .feature-properties-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .feature-properties-metric {
      min-height: 120px;
    }

    body.dark-mode .feature-properties-static {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(59, 146, 255, 0.16);
    }

    .data-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .data-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .selection-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .selection-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .share-panel {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: stretch;
      gap: 14px;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .share-panel.visible {
      max-height: calc(100vh - 290px);
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      overflow-y: auto;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      padding: 16px;
    }

    .tools-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .tools-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .attribute-panel {
      display: flex;
      justify-content: center;
      width: 100%;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition:
        max-height 0.34s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        margin-top 0.24s ease;
    }

    .attribute-panel.visible {
      max-height: none;
      margin-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      flex: 1 1 auto;
      min-height: 0;
    }

    .import-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      padding: 16px 16px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: min(100%, 620px);
      min-height: 0;
      max-height: calc(100vh - 272px);
      overflow: auto;
    }

    .import-card > * {
      flex-shrink: 0;
    }

    .feature-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      display: flex;
      flex-direction: column;
      width: min(100%, 620px);
      height: 100%;
      min-height: 0;
      max-height: calc(100vh - 272px);
      overflow: hidden;
      background-clip: padding-box;
    }

    .floating-panel.expanded.feature-mode .feature-card {
      height: 100%;
      max-height: none;
    }

    .layers-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      padding: 16px;
      display: grid;
      gap: 12px;
      width: 100%;
      max-height: calc(100vh - 290px);
      overflow-y: auto;
    }

    .share-card {
      display: grid;
      gap: 14px;
      width: 100%;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.5);
      padding: 14px;
    }

    .tools-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      padding: 16px;
      display: grid;
      align-content: start;
      gap: 14px;
      width: min(100%, 620px);
      min-height: 0;
      max-height: calc(100vh - 272px);
      overflow: auto;
    }

    .tools-grid {
      display: grid;
      gap: 10px;
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
    }

    .workspace-tool-card {
      width: 100%;
      text-align: left;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.54);
      color: var(--text);
      border-radius: 18px;
      padding: 14px;
      display: grid;
      gap: 6px;
      min-height: 0;
      cursor: pointer;
      transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    }

    .workspace-tool-card:hover {
      transform: translateY(-1px);
      border-color: rgba(10, 132, 255, 0.34);
    }

    .workspace-tool-card.active {
      border-color: rgba(10, 132, 255, 0.42);
      background: rgba(10, 132, 255, 0.09);
    }

    .workspace-tool-card.disabled {
      opacity: 0.6;
    }

    .workspace-tool-card-head {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0;
    }

    .workspace-tool-card-title {
      font-size: 15px;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .workspace-tool-desc {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .tools-empty {
      padding: 26px 20px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.48);
      color: var(--text);
      font-size: 14px;
      line-height: 1.6;
      text-align: center;
      font-weight: 500;
    }

    .tools-parameter-grid {
      display: grid;
      grid-template-columns: auto auto;
      gap: 12px;
      align-items: end;
      justify-content: start;
    }

    .tools-distance-field {
      width: 66px;
      max-width: 100%;
    }

    .tools-unit-chip {
      display: inline-flex;
      align-items: center;
      min-height: 42px;
      padding: 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .tools-cluster-list {
      display: grid;
      gap: 10px;
      margin-top: 2px;
    }

    .tools-cluster-item {
      width: 100%;
      box-sizing: border-box;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.48);
      display: block;
      cursor: pointer;
      transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
    }

    .tools-cluster-item:hover {
      transform: translateY(-1px);
    }

    .tools-cluster-item.active {
      border-color: rgba(10, 132, 255, 0.42);
      background: rgba(10, 132, 255, 0.08);
    }

    .tools-cluster-top {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px;
      align-items: start;
    }

    .tools-cluster-checkbox {
      width: 18px;
      height: 18px;
      margin: 2px 0 0;
      accent-color: var(--blue);
      cursor: pointer;
    }

    .tools-cluster-name {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .tools-cluster-meta {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .tools-bulk-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 4px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }

    .tools-bulk-toggle input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--blue);
      cursor: pointer;
    }

    .tools-toggle-block {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .tools-toggle-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
    }

    .tools-review-list {
      display: grid;
      gap: 8px;
      margin-top: 2px;
    }

    .tools-review-item {
      width: 100%;
      box-sizing: border-box;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.48);
      cursor: pointer;
      transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
    }

    .tools-review-item:hover {
      transform: translateY(-1px);
    }

    .tools-review-item.active {
      border-color: rgba(10, 132, 255, 0.42);
      background: rgba(10, 132, 255, 0.08);
    }

    .tools-review-item input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin: 2px 0 0;
      accent-color: var(--blue);
      cursor: pointer;
      flex: 0 0 auto;
    }

    .tools-review-copy {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .tools-review-name {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .tools-review-meta {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .tools-note {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(10, 132, 255, 0.08);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      border: 1px solid rgba(10, 132, 255, 0.16);
    }

    .workspace-tool-row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 12px;
      align-items: start;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.56);
      padding: 12px 14px;
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .workspace-tool-row:hover {
      border-color: rgba(10, 132, 255, 0.24);
      background: rgba(242, 247, 255, 0.94);
      transform: translateY(-1px);
    }

    .workspace-tool-row.selected {
      border-color: rgba(10, 132, 255, 0.34);
      background: rgba(228, 239, 255, 0.92);
    }

    .workspace-tool-icon {
      width: 20px;
      height: 20px;
      color: var(--blue);
      flex: 0 0 auto;
      margin-top: 2px;
    }

    .workspace-tool-icon svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .workspace-tool-meta {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

    .workspace-tool-title {
      font-size: 14px;
      line-height: 1.25;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .workspace-tool-description {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .workspace-tool-file {
      font-size: 11px;
      line-height: 1.35;
      color: var(--muted);
      opacity: 0.8;
    }

    .settings-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      padding: 16px;
      display: grid;
      gap: 12px;
      width: 100%;
      max-height: calc(100vh - 290px);
      min-height: 0;
      overflow: auto;
    }

    #layer-properties-card {
      align-content: start;
      align-items: start;
    }

    .floating-panel.expanded.basemaps-mode #basemaps-manager-card {
      height: 100%;
      max-height: none;
    }

    .floating-panel.expanded.basemaps-mode #basemaps-manager-card {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 12px;
      align-content: stretch;
    }

    .floating-panel.expanded.data-mode #add-data-card {
      height: 100%;
      max-height: none;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 12px;
      align-content: stretch;
    }

    .floating-panel.expanded.settings-mode #settings-card,
    .floating-panel.expanded.profile-mode #profile-card {
      height: 100%;
      max-height: none;
      align-content: start;
      align-items: start;
    }

    .add-data-section {
      display: grid;
      gap: 10px;
    }

    .add-data-status {
      padding: 10px 12px;
      border-radius: 16px;
      border: 1px solid rgba(255, 90, 82, 0.16);
      background: rgba(255, 90, 82, 0.08);
      color: #d83b34;
      font-size: 12px;
      line-height: 1.45;
    }

    .add-data-note {
      padding: 12px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.58);
      display: grid;
      gap: 5px;
      align-content: start;
    }

    .add-data-note strong {
      font-size: 13px;
      color: var(--text);
    }

    .add-data-note span {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .add-data-card-shell {
      position: relative;
      display: grid;
      gap: 12px;
      min-height: 0;
    }

    .sidebar-loading-overlay {
      position: absolute;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      border-radius: inherit;
      background: rgba(20, 24, 31, 0.28);
      z-index: 12;
      backdrop-filter: blur(8px);
    }

    .sidebar-loading-overlay.visible {
      display: flex;
    }

    .sidebar-loading-card {
      width: min(320px, 100%);
      display: grid;
      gap: 12px;
      padding: 16px;
      border-radius: 20px;
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: rgba(255, 255, 255, 0.94);
      box-shadow: var(--shadow-sm);
    }

    .sidebar-loading-title {
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .sidebar-loading-copy {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .sidebar-loading-bar {
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: rgba(10, 132, 255, 0.12);
      overflow: hidden;
      position: relative;
    }

    .sidebar-loading-bar span {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 34%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #61a8ff 0%, #0a84ff 100%);
      transform: translateX(-120%);
      will-change: transform;
      animation: sidebar-loading-sweep 1.15s ease-in-out infinite alternate;
    }

    @keyframes sidebar-loading-sweep {
      from {
        transform: translateX(-120%);
      }
      to {
        transform: translateX(320%);
      }
    }

    .floating-panel.sidebar-busy .panel-topbar,
    .floating-panel.sidebar-busy .panel-hero,
    .floating-panel.sidebar-busy .sidebar-stage,
    .floating-panel.sidebar-busy .sidebar-toolstrip,
    .floating-panel.sidebar-busy .news-panel,
    .floating-panel.sidebar-busy .import-panel,
    .floating-panel.sidebar-busy .bookmarks-panel,
    .floating-panel.sidebar-busy .layers-panel,
    .floating-panel.sidebar-busy .layer-properties-panel,
    .floating-panel.sidebar-busy .feature-properties-panel,
    .floating-panel.sidebar-busy .settings-panel,
    .floating-panel.sidebar-busy .basemaps-panel,
    .floating-panel.sidebar-busy .data-panel,
    .floating-panel.sidebar-busy .selection-panel,
    .floating-panel.sidebar-busy .share-panel,
    .floating-panel.sidebar-busy .attribute-panel,
    .floating-panel.sidebar-busy .feature-panel,
    .floating-panel.sidebar-busy .sidebar-collapse-wrap {
      opacity: 0.38;
      pointer-events: none;
      filter: saturate(0.82);
    }

    .selection-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      padding: 16px;
      display: grid;
      align-content: start;
      gap: 10px;
      width: 100%;
      height: 100%;
      max-height: calc(100vh - 272px);
      min-height: 0;
      overflow: auto;
    }

    .floating-panel.expanded.selection-mode .selection-card {
      height: 100%;
      max-height: none;
    }

    .selection-show-more-btn {
      display: block;
      width: 100%;
      padding: 10px 16px;
      background: none;
      border: none;
      color: var(--accent);
      font-size: 13px;
      font-weight: 600;
      text-align: center;
      cursor: pointer;
      border-radius: 14px;
      margin-top: 4px;
    }

    .selection-show-more-btn:hover {
      background: var(--accent-subtle, rgba(10,132,255,0.08));
    }

    .selection-empty {
      padding: 18px 16px;
      border-radius: 18px;
      border: 1px dashed rgba(10, 132, 255, 0.18);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      text-align: center;
      background: rgba(255, 255, 255, 0.56);
    }

    .selection-list {
      display: grid;
      gap: 8px;
    }

    .selection-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .selection-card-title {
      flex-grow: 1;
      margin: 0;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .selection-action-btn {
      width: 36px;
      height: 36px;
      min-width: 36px;
      padding: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid var(--line);
      color: var(--text);
      box-shadow: none;
      cursor: pointer;
    }

    .selection-action-btn:hover {
      transform: none;
      background: rgba(255, 255, 255, 0.9);
    }

    body.dark-mode .selection-action-btn {
      background: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .selection-action-btn:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    .selection-action-btn svg {
      width: 16px;
      height: 16px;
    }

    .selection-review-btn {
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 239, 255, 0.94) 100%);
      color: var(--text);
      border-radius: 999px;
      padding: 8px 12px;
      font: inherit;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: none;
    }

    body.dark-mode .selection-review-btn {
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.16) 0%, rgba(10, 132, 255, 0.1) 100%);
      border-color: rgba(59, 146, 255, 0.28);
      color: #e8f2ff;
    }

    .selection-review-btn.end-review {
      border-color: rgba(255, 90, 82, 0.28);
      background: linear-gradient(180deg, rgba(255, 122, 114, 0.18) 0%, rgba(255, 90, 82, 0.12) 100%);
      color: #b3271f;
    }

    body.dark-mode .selection-review-btn.end-review {
      border-color: rgba(255, 122, 114, 0.26);
      background: linear-gradient(180deg, rgba(255, 122, 114, 0.18) 0%, rgba(255, 90, 82, 0.1) 100%);
      color: #ffd4cf;
    }

    .selection-row {
      display: grid;
      gap: 4px;
      padding: 12px 14px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.66);
      cursor: pointer;
      transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
    }

    .selection-row:hover {
      border-color: rgba(10, 132, 255, 0.28);
      background: rgba(242, 247, 255, 0.92);
      transform: translateY(-1px);
    }

    .selection-row-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal;
    }

    .selection-row-meta,
    .selection-row-layer,
    .selection-row-nt {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal;
    }

    .selection-review-count {
      font-size: 13px;
      line-height: 1.45;
      color: var(--muted);
    }

    .selection-review-grid {
      display: grid;
      gap: 12px;
    }

    .selection-review-actions {
      display: flex;
      justify-content: flex-start;
    }

    .settings-row {
      display: grid;
      gap: 4px;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.14);
      background: rgba(255, 255, 255, 0.76);
    }

    .settings-row-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .settings-row-value {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }

    .settings-row-copy {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
      overflow-wrap: anywhere;
    }

    .profile-info-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      padding: 6px 0;
      border-bottom: 1px solid var(--line);
    }
    .profile-info-row:last-child { border-bottom: none; }
    .profile-info-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--muted);
      min-width: 44px;
    }
    .profile-info-value {
      font-size: 12px;
      color: var(--text);
    }

    .settings-panel.profile-panel {
      flex-direction: column;
    }
    .settings-panel.profile-panel .settings-card {
      flex: 1 1 auto;
      overflow-y: auto;
    }
    .profile-panel-footer {
      flex-shrink: 0;
      padding: 14px 0 4px;
      display: flex;
      justify-content: center;
    }
    .profile-signout-btn {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      padding: 8px 20px !important;
      border-radius: 999px !important;
      border: 1.5px solid #ff3b30 !important;
      background: transparent !important;
      color: #ff3b30 !important;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: none !important;
      transform: none !important;
      transition: background 0.15s ease, opacity 0.15s ease;
      text-decoration: none;
      opacity: 0.9;
    }
    .profile-signout-btn:hover,
    .profile-signout-btn:focus,
    .profile-signout-btn:active {
      background: rgba(255, 59, 48, 0.1) !important;
      box-shadow: none !important;
      transform: none !important;
      color: #ff3b30 !important;
      opacity: 1;
    }

    .signout-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(8, 10, 14, 0.94);
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .signout-overlay.visible {
      opacity: 1;
      pointer-events: all;
      visibility: visible;
    }
    .signout-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 32px 28px 28px;
      border-radius: 20px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      box-shadow: 0 24px 64px rgba(0,0,0,0.32);
      max-width: 300px;
      width: 90%;
      text-align: center;
    }
    .signout-icon {
      width: 40px;
      height: 40px;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .signout-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
    }
    .signout-copy {
      font-size: 12px;
      line-height: 1.5;
      color: var(--muted);
    }
    .signout-signin-btn {
      margin-top: 6px;
      padding: 9px 22px;
      border-radius: 10px;
      border: none;
      background: #0a84ff;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.15s ease;
    }
    .signout-signin-btn:hover { opacity: 0.88; }

    .settings-toggle-row {
      display: grid;
      gap: 10px;
      margin-top: 2px;
      cursor: pointer;
      user-select: none;
    }

    .settings-toggle-copy {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }

    .settings-toggle-row .theme-switch {
      justify-self: start;
    }

    .settings-select {
      width: 100%;
      min-height: 42px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: rgba(255, 255, 255, 0.88);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .settings-select:focus {
      border-color: rgba(10, 132, 255, 0.42);
      box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14);
    }

    .app-select-native {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .app-select {
      position: relative;
      width: 100%;
    }

    .app-select-trigger {
      width: 100%;
      min-height: 42px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: rgba(255, 255, 255, 0.88);
      color: var(--text);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      outline: none;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      text-align: left;
      box-shadow: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .app-select-trigger:hover {
      transform: none;
      border-color: rgba(10, 132, 255, 0.28);
    }

    .app-select-trigger:focus-visible,
    .app-select.open .app-select-trigger {
      border-color: rgba(10, 132, 255, 0.42);
      box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14);
    }

    .app-select-trigger[disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .app-select-trigger.import-variant {
      min-height: 0;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.9);
      font-size: 13px;
      font-weight: 500;
    }

    .app-select-label {
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .app-select-chevron {
      width: 14px;
      height: 14px;
      flex: 0 0 auto;
      color: var(--muted);
      transition: transform 0.18s ease;
    }

    .app-select.open .app-select-chevron {
      transform: rotate(180deg);
    }

    .app-select-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      display: none;
      padding: 8px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-md);
      z-index: 1450;
      max-height: 260px;
      overflow: auto;
    }

    .app-select.open .app-select-menu {
      display: grid;
      gap: 4px;
    }

    .app-select-option {
      width: 100%;
      border: 0;
      background: transparent;
      color: var(--text);
      text-align: left;
      border-radius: 12px;
      padding: 10px 12px;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      box-shadow: none;
    }

    .app-select-option:hover {
      background: rgba(10, 132, 255, 0.08);
      transform: none;
    }

    .app-select-option.active {
      background: rgba(10, 132, 255, 0.12);
      color: var(--accent);
    }

    .app-select-option-check {
      width: 14px;
      height: 14px;
      flex: 0 0 auto;
      opacity: 0;
    }

    .app-select-option.active .app-select-option-check {
      opacity: 1;
    }

    .app-select-option.inferred-active .app-select-option-check {
      opacity: 1;
    }

    body.dark-mode .app-select-trigger {
      background: rgba(255,255,255,0.05);
      border-color: rgba(59, 146, 255, 0.18);
      color: var(--text);
    }

    body.dark-mode .app-select-trigger.import-variant {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255, 255, 255, 0.12);
    }

    body.dark-mode .app-select-menu {
      background: rgba(26,28,31,0.96);
      border-color: rgba(255,255,255,0.08);
    }

    body.dark-mode .app-select-option:hover {
      background: rgba(59, 146, 255, 0.16);
    }

    body.dark-mode .app-select-option.active {
      background: rgba(59, 146, 255, 0.2);
      color: #8bc0ff;
    }

    body.dark-mode .settings-color-input,
    body.dark-mode .settings-color-chip {
      background: rgba(255,255,255,0.05);
      border-color: rgba(59, 146, 255, 0.18);
      color: var(--text);
    }

    body.dark-mode .layer-properties-metric {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .layer-properties-empty {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(59, 146, 255, 0.14);
    }

    .settings-input {
      width: 100%;
      min-height: 42px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: rgba(255, 255, 255, 0.88);
      font: inherit;
      font-size: 14px;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .settings-input:focus {
      border-color: rgba(10, 132, 255, 0.42);
      box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.14);
    }

    .settings-action-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .settings-version-row {
      margin-top: 8px;
      padding: 10px 2px 2px;
      border-top: 1px solid rgba(10, 132, 255, 0.08);
    }

    .settings-version-btn {
      width: 100%;
      display: grid;
      gap: 3px;
      justify-items: center;
      text-align: center;
      border: 0;
      background: transparent;
      color: var(--muted);
      padding: 0;
      box-shadow: none;
    }

    .settings-version-btn:hover {
      transform: none;
      color: var(--text);
      background: transparent;
      border-color: transparent;
      box-shadow: none;
    }

    .settings-version-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .settings-version-value {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    .settings-action-btn {
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 239, 255, 0.94) 100%);
      color: var(--text);
      border-radius: 999px;
      padding: 9px 14px;
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    .settings-action-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(10, 132, 255, 0.3);
    }

    .settings-action-btn.secondary {
      background: rgba(255, 255, 255, 0.7);
    }

    .settings-action-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .settings-stack {
      display: grid;
      gap: 10px;
    }

    .settings-custom-list {
      display: grid;
      gap: 8px;
      margin-top: 2px;
    }

    .settings-custom-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 10px;
      padding: 12px 12px;
      border-radius: 18px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.58);
    }

    .settings-custom-meta {
      min-width: 0;
      flex: 1 1 auto;
      display: grid;
      gap: 3px;
    }

    .settings-custom-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .settings-custom-url {
      font-size: 11px;
      line-height: 1.4;
      color: var(--muted);
      word-break: break-all;
    }

    .basemap-manager-section {
      display: grid;
      gap: 10px;
    }

    .basemap-manager-section.list {
      min-height: 0;
      align-content: start;
    }

    .basemap-manager-list-wrap {
      min-height: 0;
      max-height: 100%;
      overflow: auto;
      padding-right: 2px;
      display: grid;
      align-content: start;
      align-self: start;
      gap: 8px;
    }

    .basemap-manager-helper {
      margin-top: 2px;
    }

    .basemap-manager-add-btn {
      align-self: start;
    }

    .settings-remove-btn {
      flex: 0 0 auto;
      border: 1px solid rgba(255, 59, 48, 0.16);
      background: rgba(255, 59, 48, 0.08);
      color: #ff3b30;
      border-radius: 999px;
      padding: 8px 12px;
      font: inherit;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }

    .settings-color-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 2px;
    }

    .settings-color-input {
      width: 52px;
      height: 42px;
      padding: 4px;
      border-radius: 14px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: rgba(255, 255, 255, 0.88);
      cursor: pointer;
      flex: 0 0 auto;
    }

    .settings-color-input::-webkit-color-swatch-wrapper {
      padding: 0;
    }

    .settings-color-input::-webkit-color-swatch {
      border: 0;
      border-radius: 10px;
    }

    .settings-color-input::-moz-color-swatch {
      border: 0;
      border-radius: 10px;
    }

    .settings-color-chip {
      min-width: 0;
      flex: 1 1 auto;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: rgba(255, 255, 255, 0.88);
      color: var(--text);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.2;
      font-family: var(--mono);
    }

    .layer-properties-metrics {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layer-properties-metric {
      display: grid;
      gap: 4px;
      padding: 12px;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.5);
    }

    .layer-properties-metric span {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .layer-properties-metric strong {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      overflow-wrap: anywhere;
    }

    .feature-hidden-fields {
      display: grid;
      gap: 6px;
    }
    .feature-hidden-field {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 13px;
      color: var(--text-secondary, var(--text));
      opacity: 0.7;
    }
    .feature-unhide-btn {
      font-size: 12px;
      padding: 2px 10px;
      border-radius: 999px;
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(230,239,255,0.94) 100%);
      color: var(--text);
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      font: inherit;
    }
    .feature-unhide-btn:hover {
      border-color: rgba(10, 132, 255, 0.3);
    }
    body.dark-mode .feature-unhide-btn {
      background: linear-gradient(180deg, rgba(59,146,255,0.16) 0%, rgba(10,132,255,0.1) 100%);
      border-color: rgba(59,146,255,0.28);
      color: #e8f2ff;
    }
    body.dark-mode .feature-unhide-btn:hover {
      border-color: rgba(91,171,255,0.4);
      background: linear-gradient(180deg, rgba(59,146,255,0.22) 0%, rgba(10,132,255,0.14) 100%);
    }

    .layer-properties-hidden-fields {
      display: grid;
      gap: 6px;
      margin-top: 8px;
    }
    .layer-properties-categories {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 10px;
      max-height: 220px;
      overflow-y: auto;
    }
    .layer-properties-category-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: var(--text);
    }
    .layer-properties-cat-color {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.12);
      background: none;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
    }
    .layer-properties-cat-label {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      opacity: 0.85;
    }
    .layer-properties-hidden-field {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 13px;
      color: var(--text);
    }
    .layer-properties-unhide-btn {
      font-size: 12px;
      padding: 2px 10px;
      border-radius: 999px;
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(230,239,255,0.94) 100%);
      color: var(--text);
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      font: inherit;
    }
    .layer-properties-unhide-btn:hover {
      border-color: rgba(10, 132, 255, 0.3);
    }
    body.dark-mode .layer-properties-unhide-btn {
      background: linear-gradient(180deg, rgba(59,146,255,0.16) 0%, rgba(10,132,255,0.1) 100%);
      border-color: rgba(59,146,255,0.28);
      color: #e8f2ff;
    }
    body.dark-mode .layer-properties-unhide-btn:hover {
      border-color: rgba(91,171,255,0.4);
      background: linear-gradient(180deg, rgba(59,146,255,0.22) 0%, rgba(10,132,255,0.14) 100%);
    }

    .layer-properties-range-wrap {
      display: grid;
      gap: 8px;
      margin-top: 4px;
    }

    .layer-properties-range-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .layer-properties-range-value {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent);
    }

    .layer-properties-range {
      width: 100%;
      margin: 0;
      accent-color: #0a84ff;
      cursor: pointer;
    }

    .layer-properties-zoom-hints {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--text-secondary, rgba(120,120,128,0.9));
      margin-top: -4px;
    }

    .layer-properties-segmented {
      display: flex;
      gap: 6px;
      margin-top: 4px;
    }

    .layer-properties-seg-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 7px 8px;
      border-radius: 10px;
      border: 1.5px solid var(--border, rgba(120,120,128,0.2));
      background: none;
      color: var(--text-secondary, rgba(120,120,128,0.8));
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }

    .layer-properties-seg-btn.active {
      border-color: var(--accent, #0a84ff);
      color: var(--accent, #0a84ff);
      background: rgba(10,132,255,0.08);
    }

    .layer-properties-seg-btn:hover:not(.active) {
      background: var(--hover-bg, rgba(120,120,128,0.07));
    }

    .layer-properties-empty {
      padding: 20px 18px;
      border-radius: 18px;
      border: 1px dashed rgba(10, 132, 255, 0.18);
      background: rgba(255, 255, 255, 0.56);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      text-align: center;
    }

    .attribute-card {
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      box-shadow: none;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      min-height: 0;
      max-height: calc(100vh - 246px);
      overflow: hidden;
    }

    .attribute-table-wrap {
      flex: 1 1 auto;
      min-height: 0;
      overflow: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 0;
    }

    .attribute-table-wrap::-webkit-scrollbar {
      display: none;
    }

    .attribute-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }

    .attribute-table th,
    .attribute-table td {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(33, 33, 33, 0.08);
      text-align: left;
      vertical-align: top;
      white-space: nowrap;
    }

    .attribute-table th {
      position: sticky;
      top: 0;
      background: rgba(255, 255, 255, 0.94);
      color: var(--text);
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      z-index: 1;
    }

    .attribute-table td {
      color: var(--text);
    }

    .share-copy {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .share-save-btn {
      justify-self: start;
      box-shadow: none;
    }

    .confirm-modal-form {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .confirm-modal-stack {
      display: grid;
      gap: 12px;
    }

    .confirm-modal-row {
      display: grid;
      gap: 6px;
    }

    .confirm-modal-row label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .confirm-modal-toggle-row {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.14);
      background: rgba(255, 255, 255, 0.76);
    }

    .confirm-modal-toggle-row.visible {
      display: flex;
    }

    .confirm-modal-toggle-copy {
      min-width: 0;
      display: grid;
      gap: 4px;
    }

    .confirm-modal-toggle-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
    }

    .confirm-modal-toggle-meta {
      font-size: 12px;
      line-height: 1.4;
      color: var(--muted);
    }

    body.dark-mode .confirm-modal-toggle-row {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.18);
    }

    .confirm-modal-error {
      min-height: 18px;
      margin-top: 2px;
      color: #ff6a63;
      font-size: 12px;
      line-height: 1.45;
      font-weight: 600;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .layers-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(33, 33, 33, 0.08);
    }

    .layers-add-btn {
      width: 36px;
      height: 36px;
      min-width: 36px;
      border-radius: 999px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      line-height: 1;
      box-shadow: none;
    }

    .layers-add-btn svg {
      width: 18px;
      height: 18px;
      display: block;
    }

    .layers-toolbar-spacer {
      flex: 1 1 auto;
    }

    .layers-any-edit-btn {
      position: relative;
      width: 36px;
      height: 36px;
      min-width: 36px;
      border-radius: 999px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid var(--line);
      box-shadow: none;
      transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }

    .layers-any-edit-btn::after {
      content: attr(data-tooltip);
      position: absolute;
      right: calc(100% + 8px);
      left: auto;
      top: 50%;
      bottom: auto;
      transform: translateY(-50%) translateX(4px);
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(28, 30, 34, 0.92);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      z-index: 10;
    }

    .layers-any-edit-btn:hover::after {
      opacity: 1;
      transform: translateY(-50%) translateX(0);
    }

    .layers-any-edit-btn svg {
      width: 17px;
      height: 17px;
      display: block;
    }

    .layers-any-edit-btn.active {
      background: rgba(10, 132, 255, 0.16);
      border-color: rgba(10, 132, 255, 0.34);
      color: var(--accent);
    }

    body.dark-mode .layers-any-edit-btn {
      background: rgba(24, 26, 30, 0.94);
      border-color: var(--line);
      color: var(--muted);
    }

    body.dark-mode .layers-any-edit-btn.active {
      background: rgba(59, 146, 255, 0.18);
      border-color: rgba(59, 146, 255, 0.34);
      color: #fff;
    }

    body.dark-mode .layers-any-edit-btn::after {
      background: rgba(245, 245, 247, 0.96);
      color: #111317;
    }

    .layers-edit-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.78);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      box-shadow: none;
    }

    .settings-inline-toggle {
      width: fit-content;
      max-width: 100%;
      justify-content: flex-start;
      margin-top: 2px;
    }

    .settings-static-value {
      min-height: 52px;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
      color: var(--text);
      font-size: 15px;
      font-weight: 600;
      display: flex;
      align-items: center;
    }

    .layers-edit-toggle .theme-switch {
      width: 38px;
      height: 22px;
    }

    .layers-edit-toggle .theme-slider::before {
      width: 16px;
      height: 16px;
    }

    .layers-edit-toggle input:checked + .theme-slider::before {
      transform: translateX(16px);
    }

    .topbar-mode-toggle.disabled {
      opacity: 0.35;
      pointer-events: none;
    }

    .layers-empty {
      border-radius: 18px;
      border: 1px dashed rgba(10, 132, 255, 0.2);
      padding: 16px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      text-align: center;
    }

    .layers-list {
      display: grid;
      gap: 10px;
    }

    .layer-row {
      display: grid;
      grid-template-columns: auto auto 1fr auto;
      gap: 12px;
      align-items: center;
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.56);
      padding: 12px 14px;
      cursor: grab;
      position: relative;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .layer-row.selected {
      border-color: rgba(10, 132, 255, 0.34);
      background: rgba(228, 239, 255, 0.92);
    }

    .layer-row.hidden {
      opacity: 0.58;
      background: rgba(245, 245, 247, 0.9);
      border-style: dashed;
    }

    .layer-row.dragging {
      opacity: 0.6;
      transform: scale(0.985);
      cursor: grabbing;
    }

    .layer-row.drop-target {
      border-color: rgba(10, 132, 255, 0.34);
      background: rgba(232, 241, 255, 0.92);
    }

    .layer-row.multi-selected {
      border-color: rgba(10, 132, 255, 0.5);
      background: rgba(10, 132, 255, 0.1);
      outline: 2px dashed rgba(10, 132, 255, 0.35);
      outline-offset: -1px;
    }

    .layer-swatch {
      width: 18px;
      height: 18px;
      border: 2px solid transparent;
      flex: 0 0 auto;
      position: relative;
      background: transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .layer-swatch::before {
      content: "";
      display: block;
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: currentColor;
      border: 2px solid currentColor;
      box-sizing: border-box;
    }

    .layer-swatch.line::before {
      width: 12px;
      height: 0;
      border-radius: 999px;
      border-width: 0 0 3px 0;
      transform: rotate(-18deg);
      background: transparent;
    }

    .layer-swatch.polygon::before {
      width: 11px;
      height: 11px;
      border-radius: 3px;
      background: currentColor;
      border-width: 2px;
      transform: rotate(12deg);
    }

    .layer-swatch.mixed::before {
      width: 12px;
      height: 9px;
      border-radius: 3px;
      background:
        linear-gradient(currentColor, currentColor) center/100% 3px no-repeat;
      border-width: 2px;
      transform: rotate(8deg);
    }

    .layer-drag {
      width: 14px;
      height: 18px;
      position: relative;
      opacity: 0.5;
      flex: 0 0 auto;
    }

    .layer-drag::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle, currentColor 1.2px, transparent 1.3px) 0 0 / 7px 6px repeat;
      color: var(--muted);
    }

    .layer-meta {
      min-width: 0;
      display: grid;
      gap: 2px;
    }

    .layer-name-row {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .layer-name {
      min-width: 0;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .layer-lock-indicator {
      width: 20px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      background: rgba(10, 132, 255, 0.08);
      color: var(--accent);
      flex: 0 0 auto;
    }

    .layer-lock-indicator svg {
      width: 12px;
      height: 12px;
      display: block;
    }

    .layer-subtitle {
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .layer-zoom-btn {
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: rgba(255, 255, 255, 0.8);
      color: var(--text);
      border-radius: 999px;
      padding: 7px 12px;
      font-size: 12px;
      font-weight: 700;
      box-shadow: none;
    }

    .layer-zoom-btn:hover {
      background: rgba(255, 255, 255, 0.96);
      box-shadow: none;
      transform: none;
    }

    .feature-card-scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 16px 16px 0;
    }

    .feature-card-scroll::-webkit-scrollbar {
      display: none;
    }

    .feature-card-head {
      display: grid;
      gap: 6px;
      margin-bottom: 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(33, 33, 33, 0.08);
    }

    body.dark-mode .feature-card-head {
      border-bottom-color: rgba(255, 255, 255, 0.16);
    }

    .feature-card-title {
      margin: 0;
      font-size: 19px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
    }

    .feature-card-subtitle {
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.02em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .feature-card-meta {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
    }

    .feature-card-actions {
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .feature-card-action-btn {
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 239, 255, 0.94) 100%);
      color: var(--text);
      border-radius: 999px;
      padding: 9px 14px;
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.01em;
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
      box-shadow: none;
    }

    .feature-card-action-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(10, 132, 255, 0.3);
    }

    body.dark-mode .feature-card-action-btn {
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.16) 0%, rgba(10, 132, 255, 0.1) 100%);
      border-color: rgba(59, 146, 255, 0.28);
      color: #e8f2ff;
    }

    body.dark-mode .feature-card-action-btn:hover {
      border-color: rgba(91, 171, 255, 0.4);
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.22) 0%, rgba(10, 132, 255, 0.14) 100%);
    }

    .feature-card-status-pill {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      border-radius: 999px;
      padding: 9px 14px;
      border: 1px solid #0a84ff;
      background: #0a84ff;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }

    body.dark-mode .feature-card-status-pill {
      border-color: #3b92ff;
      background: #3b92ff;
      color: #fff;
    }

    .feature-section {
      display: grid;
      gap: 10px;
    }

    .feature-section-title {
      margin: 0;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .feature-review-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 0 12px;
      margin-top: -4px;
    }

    .feature-review-nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .feature-review-nav-btn {
      width: 36px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(10, 132, 255, 0.18);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 239, 255, 0.94) 100%);
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: none;
      font-size: 18px;
      font-weight: 700;
      line-height: 1;
    }

    .feature-review-nav-btn span {
      display: block;
      transform: translateY(-1px);
    }

    .feature-review-nav-btn:disabled {
      opacity: 0.45;
      cursor: default;
    }

    .feature-review-nav-count {
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      white-space: nowrap;
    }

    body.dark-mode .feature-review-nav-btn {
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.16) 0%, rgba(10, 132, 255, 0.1) 100%);
      border-color: rgba(59, 146, 255, 0.28);
      color: #e8f2ff;
    }

    .feature-grid {
      display: grid;
      gap: 10px;
      grid-template-columns: 1fr;
      padding-bottom: 12px;
    }

    .feature-field {
      border-radius: 16px;
      border: 1px solid rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.56);
      padding: 10px 12px;
      min-width: 0;
      box-shadow: none;
    }

    .feature-field-label {
      display: block;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .feature-field-value {
      display: block;
      font-size: 13px;
      line-height: 1.4;
      color: var(--text);
      word-break: break-word;
      min-height: calc(13px * 1.4);
    }

    .feature-field-input {
      width: 100%;
      min-height: calc(13px * 1.4);
      padding: 0;
      padding-right: 52px;
      padding-bottom: 18px;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 13px;
      line-height: 1.4;
      resize: none;
      outline: none;
    }

    .feature-field-input::placeholder {
      color: transparent;
    }

    .feature-field:has(.feature-field-input) {
      position: relative;
    }

    .feature-field-edit-wrap {
      position: relative;
    }

    .feature-field-menu-btn,
    .feature-field-lock-btn {
      position: absolute;
      right: 8px;
      width: 18px;
      height: 18px;
      min-width: 18px;
      padding: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      color: var(--muted);
      border: 0;
      box-shadow: none;
    }

    .feature-field-menu-btn {
      top: 2px;
    }

    .feature-field-lock-btn {
      top: auto;
      bottom: 2px;
    }

    .feature-field-menu-btn svg,
    .feature-field-lock-btn svg {
      width: 12px;
      height: 12px;
    }

    .feature-field-menu-btn:hover,
    .feature-field-lock-btn.locked {
      color: #0a84ff;
    }

    .feature-field-menu-btn:hover,
    .feature-field-lock-btn:hover {
      background: rgba(10, 132, 255, 0.12);
      color: #0a84ff;
    }

    .feature-field-menu {
      position: absolute;
      top: 0;
      right: 24px;
      min-width: 128px;
      padding: 8px;
      border-radius: 14px;
      border: 1px solid rgba(33, 33, 33, 0.08);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
      display: none;
      z-index: 3;
    }

    .feature-field-menu.visible {
      display: block;
    }

    .feature-field-menu-item {
      width: 100%;
      padding: 8px 10px;
      border-radius: 10px;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      text-align: left;
      box-shadow: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .feature-field-menu-item svg {
      width: 13px;
      height: 13px;
      flex: 0 0 auto;
    }

    .feature-field-menu-item:hover {
      background: rgba(10, 132, 255, 0.12);
      color: #0a84ff;
    }

    .feature-field-input:disabled {
      opacity: 0.72;
      cursor: not-allowed;
    }

    body.dark-mode .feature-field-menu {
      border-color: rgba(255, 255, 255, 0.08);
      background: rgba(26, 28, 31, 0.98);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    }

    .import-drop-zone {
      margin-top: 0;
      margin-bottom: 0;
      border: 3px dashed #3498db;
      border-radius: 20px;
      padding: 22px 16px;
      text-align: center;
      background: #f9f9f9;
      font-size: 14px;
      color: var(--muted);
      transition: all 0.2s ease;
      min-height: 156px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      width: 100%;
    }

    .import-drop-zone:hover {
      background: #f0f0f0;
    }

    .import-drop-zone.dragover {
      background: #e8f4ff;
      border-color: #85c5f0;
    }

    .import-drop-zone.loaded {
      background: #e8f5e8;
      border-color: #27ae60;
    }

    .import-drop-zone h3 {
      margin: 0 0 8px;
      color: var(--text);
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .import-drop-zone p {
      margin: 4px 0;
      font-size: 13px;
      line-height: 1.45;
      color: var(--muted);
    }

    .import-schema-info {
      margin-top: 10px;
      padding: 8px 12px;
      background: rgba(0, 0, 0, 0.04);
      border-radius: 12px;
      color: var(--muted);
      letter-spacing: 0.1px;
      font-size: 11px;
    }

    .import-file-status {
      margin-top: 10px;
      font-weight: 600;
      font-size: 13px;
      line-height: 1.45;
      color: #34c759;
      min-height: 18px;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal;
      text-align: center;
    }

    .import-mapping {
      display: grid;
      width: 100%;
      margin-top: 16px;
      gap: 10px;
      grid-template-columns: 1fr;
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease, margin-top 0.28s ease;
      margin-top: 0;
    }

    .import-mapping.visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      max-height: 600px;
      margin-top: 16px;
    }

    .import-mapping-row {
      display: grid;
      gap: 6px;
    }

    .import-mapping-help {
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
      margin-top: 2px;
    }

    .import-mapping-label {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--text);
    }

    .import-mapping-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      width: 100%;
      padding: 10px 40px 10px 12px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.9);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      outline: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position:
        calc(100% - 18px) calc(50% - 1px),
        calc(100% - 12px) calc(50% - 1px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    .import-mapping-select:focus {
      border-color: rgba(10, 132, 255, 0.34);
      box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
    }

    .import-confirm-btn {
      display: none;
      margin-top: 16px;
      min-width: 140px;
      justify-content: center;
      position: relative;
      z-index: 1;
      align-self: center;
    }

    .import-confirm-btn.visible {
      display: inline-flex;
    }

    body.dark-mode .import-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .feature-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .layers-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .share-panel.visible {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .share-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .tools-card,
    body.dark-mode .workspace-tool-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .workspace-tool-card.active {
      background: rgba(10, 132, 255, 0.14);
    }

    body.dark-mode .tools-note {
      background: rgba(10, 132, 255, 0.12);
      border-color: rgba(10, 132, 255, 0.2);
    }

    body.dark-mode .tools-empty {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.16);
      color: var(--text);
    }

    body.dark-mode .workspace-tool-row {
      border-color: rgba(59, 146, 255, 0.16);
      background: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .workspace-tool-row:hover {
      border-color: rgba(59, 146, 255, 0.28);
      background: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .workspace-tool-row.selected {
      border-color: rgba(59, 146, 255, 0.36);
      background: rgba(10, 132, 255, 0.15);
    }

    body.dark-mode .tools-unit-chip {
      color: var(--text);
    }

    body.dark-mode .tools-cluster-item {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.16);
    }

    body.dark-mode .tools-review-item {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.16);
    }

    body.dark-mode .tools-review-item.active {
      background: rgba(10, 132, 255, 0.15);
      border-color: rgba(59, 146, 255, 0.34);
    }

    body.dark-mode .settings-card,
    body.dark-mode .settings-row,
    body.dark-mode .selection-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .settings-select {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(59, 146, 255, 0.2);
      color: var(--text);
    }

    body.dark-mode .settings-input {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(59, 146, 255, 0.2);
      color: var(--text);
    }

    body.dark-mode .settings-action-btn {
      background: linear-gradient(180deg, rgba(59, 146, 255, 0.14) 0%, rgba(59, 146, 255, 0.08) 100%);
      border-color: rgba(59, 146, 255, 0.24);
      color: var(--text);
    }

    body.dark-mode .settings-action-btn.secondary {
      background: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .settings-custom-item {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.18);
    }

    body.dark-mode .selection-empty,
    body.dark-mode .selection-row {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(59, 146, 255, 0.18);
    }

    body.dark-mode .selection-row:hover {
      background: rgba(59, 146, 255, 0.12);
      border-color: rgba(59, 146, 255, 0.28);
    }

    body.dark-mode .settings-remove-btn {
      background: rgba(255, 59, 48, 0.12);
      border-color: rgba(255, 59, 48, 0.22);
      color: #ff8d87;
    }

    body.dark-mode .attribute-card {
      background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .attribute-table th {
      background: rgba(24, 26, 30, 0.94);
    }

    body.dark-mode .attribute-table th,
    body.dark-mode .attribute-table td {
      border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .layers-edit-toggle {
      background: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .layers-toolbar {
      border-bottom-color: rgba(255, 255, 255, 0.16);
    }

    body.dark-mode .import-drop-zone {
      background: rgba(255, 255, 255, 0.04);
      border-color: #4c8dff;
    }

    body.dark-mode .import-drop-zone:hover {
      background: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .import-drop-zone.dragover {
      background: rgba(76, 141, 255, 0.14);
      border-color: #78a8ff;
    }

    body.dark-mode .import-drop-zone.loaded {
      background: rgba(48, 209, 88, 0.14);
      border-color: #30d158;
    }

    body.dark-mode .import-schema-info {
      background: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .import-mapping-select {
      background: rgba(255,255,255,0.06);
      border-color: var(--line);
    }

    body.dark-mode .feature-field {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(59, 146, 255, 0.16);
    }

    body.dark-mode .layer-row {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(59, 146, 255, 0.16);
    }

    body.dark-mode .layer-row.selected {
      background: rgba(59, 146, 255, 0.12);
      border-color: rgba(59, 146, 255, 0.34);
    }

    body.dark-mode .layer-row.hidden {
      background: rgba(255, 255, 255, 0.03);
      border-style: dashed;
    }

    body.dark-mode .layer-row.drop-target {
      background: rgba(59, 146, 255, 0.12);
      border-color: rgba(59, 146, 255, 0.34);
    }

    body.dark-mode .layer-row.multi-selected {
      border-color: rgba(59, 146, 255, 0.55);
      background: rgba(59, 146, 255, 0.12);
      outline-color: rgba(59, 146, 255, 0.38);
    }

    body.dark-mode .layer-lock-indicator {
      border-color: rgba(59, 146, 255, 0.18);
      background: rgba(59, 146, 255, 0.12);
      color: #8bc0ff;
    }

    body.dark-mode .layer-drag::before {
      color: rgba(255, 255, 255, 0.74);
    }

    body.dark-mode .layer-zoom-btn {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(59, 146, 255, 0.18);
      color: var(--text);
    }

    .sidebar-collapse-wrap {
      margin-top: 0;
      width: 100%;
      display: flex;
      align-items: center;
      padding-top: 0;
      max-height: 0;
      opacity: 0;
      overflow: visible;
      transform: translateY(10px);
      position: relative;
      pointer-events: none;
      transition:
        max-height 0.28s ease 0.18s,
        margin-top 0.28s ease 0.18s,
        padding-top 0.28s ease 0.18s,
        opacity 0.16s ease,
        transform 0.16s ease;
    }

    .floating-panel.expanded .sidebar-collapse-wrap {
      margin-top: auto;
      max-height: 72px;
      padding-top: 18px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .floating-panel.expanded.feature-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.tools-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.layer-properties-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.feature-properties-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.settings-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.profile-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.basemaps-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.data-mode .sidebar-collapse-wrap,
    .floating-panel.expanded.selection-mode .sidebar-collapse-wrap {
      justify-content: flex-start;
    }

    .sidebar-expand-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 0;
      max-width: 0;
      opacity: 0;
      overflow: visible;
      transform: translateY(0);
      pointer-events: none;
      transition:
        width 0.22s ease,
        max-width 0.22s ease,
        margin-left 0.22s ease,
        opacity 0.22s ease,
        transform 0.22s ease;
    }

    .floating-panel.collapsed-ready .sidebar-expand-wrap {
      width: 36px;
      max-width: 36px;
      margin-left: 0;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed .sidebar-expand-wrap {
      width: 100%;
      max-width: 100%;
      height: 100%;
      margin: 0;
    }

    .floating-panel.collapsed-ready .sidebar-expand-wrap .sidebar-collapse-btn {
      display: inline-flex;
      position: static;
      left: auto;
      transform: none;
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed .sidebar-expand-wrap .sidebar-collapse-btn {
      width: 100%;
      height: 100%;
      min-width: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      color: #0a84ff;
    }

    .floating-panel.collapsed-ready.auto-hide-collapsed .sidebar-expand-wrap .sidebar-collapse-btn .map-control-icon {
      width: 20px;
      height: 20px;
    }

    .floating-panel.expanded .sidebar-expand-wrap {
      width: 0;
      max-width: 0;
      margin-left: 0;
      opacity: 0;
      pointer-events: none;
    }

    .sidebar-collapse-btn {
      --sidebar-chevron-shift: -50%;
      position: absolute;
      left: 50%;
      width: 36px;
      height: 36px;
      min-width: 36px;
      display: none;
      border-radius: 999px;
      align-items: center;
      justify-content: center;
      padding: 0;
      background: rgba(255, 255, 255, 0.92);
      color: var(--text);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
      transform: translateX(var(--sidebar-chevron-shift));
      transition:
        left 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.18s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .floating-panel.expanded.feature-mode .sidebar-collapse-btn,
    .floating-panel.expanded.tools-mode .sidebar-collapse-btn,
    .floating-panel.expanded.layer-properties-mode .sidebar-collapse-btn,
    .floating-panel.expanded.feature-properties-mode .sidebar-collapse-btn,
    .floating-panel.expanded.settings-mode .sidebar-collapse-btn,
    .floating-panel.expanded.profile-mode .sidebar-collapse-btn,
    .floating-panel.expanded.basemaps-mode .sidebar-collapse-btn,
    .floating-panel.expanded.data-mode .sidebar-collapse-btn,
    .floating-panel.expanded.selection-mode .sidebar-collapse-btn {
      display: inline-flex;
      --sidebar-chevron-shift: 0;
      left: 0;
      transform: translateX(var(--sidebar-chevron-shift));
    }

    .sidebar-profile-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      min-width: 32px;
      padding: 0;
      border: 1px solid #0a84ff;
      border-radius: 999px;
      background: #0a84ff;
      color: #fff;
      cursor: pointer;
      transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }

    .sidebar-profile-btn svg {
      width: 18px;
      height: 18px;
    }

    .sidebar-profile-btn:hover {
      background: #0070d8;
      border-color: #0070d8;
      color: #fff;
    }

    .sidebar-brand-label {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.06em;
      color: var(--muted);
      pointer-events: none;
      user-select: none;
      white-space: nowrap;
      opacity: 1;
      transition: opacity 0.18s ease;
    }

    .floating-panel.expanded.editable-feature-mode .sidebar-brand-label,
    .floating-panel.expanded.editable-selection-mode .sidebar-brand-label,
    .floating-panel.expanded.multi-layer-delete-mode .sidebar-brand-label {
      opacity: 0;
    }

    .sidebar-project-save-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      width: 36px;
      height: 36px;
      min-width: 36px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.92);
      color: var(--text);
      box-shadow: var(--shadow-sm);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .sidebar-feature-delete-btn {
      display: none;
      position: absolute;
      left: 50%;
      --sidebar-delete-shift: -50%;
      transform: translateX(-50%);
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      min-width: 36px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.92);
      color: var(--text);
      box-shadow: var(--shadow-sm);
    }

    .sidebar-settings-btn {
      display: none;
      position: absolute;
      left: 0;
      width: 36px;
      height: 36px;
      min-width: 36px;
      border-radius: 999px;
      align-items: center;
      justify-content: center;
      padding: 0;
      background: rgba(255, 255, 255, 0.92);
      color: var(--text);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
    }

    .sidebar-settings-btn::after,
    .sidebar-project-save-btn::after,
    .sidebar-feature-delete-btn::after,
    .sidebar-profile-btn::after {
      content: attr(aria-label);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%) translateY(4px);
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(28, 30, 34, 0.92);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }

    .sidebar-settings-btn:hover,
    .sidebar-project-save-btn:hover,
    .sidebar-collapse-btn:hover {
      background: #0a84ff;
      border-color: #0a84ff;
      color: #fff;
      box-shadow: none;
    }

    .sidebar-feature-delete-btn:hover {
      background: #ff3b30;
      border-color: #ff3b30;
      color: #fff;
      box-shadow: none;
      transform: translateX(var(--sidebar-delete-shift));
    }

    .sidebar-settings-btn:hover::after,
    .sidebar-project-save-btn:hover::after,
    .sidebar-feature-delete-btn:hover::after,
    .sidebar-profile-btn:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .floating-panel.expanded .sidebar-settings-btn {
      display: inline-flex;
    }

    .floating-panel.expanded.feature-mode .sidebar-settings-btn,
    .floating-panel.expanded.tools-mode .sidebar-settings-btn,
    .floating-panel.expanded.layer-properties-mode .sidebar-settings-btn,
    .floating-panel.expanded.feature-properties-mode .sidebar-settings-btn,
    .floating-panel.expanded.settings-mode .sidebar-settings-btn,
    .floating-panel.expanded.profile-mode .sidebar-settings-btn,
    .floating-panel.expanded.basemaps-mode .sidebar-settings-btn,
    .floating-panel.expanded.data-mode .sidebar-settings-btn,
    .floating-panel.expanded.selection-mode .sidebar-settings-btn {
      display: none;
    }

    .floating-panel.expanded.profile-mode .sidebar-profile-btn {
      display: none;
    }

    .floating-panel.expanded.editable-feature-mode .sidebar-feature-delete-btn {
      display: inline-flex;
    }

    .floating-panel.expanded.editable-selection-mode .sidebar-feature-delete-btn {
      display: inline-flex;
    }

    .floating-panel.expanded.multi-layer-delete-mode .sidebar-feature-delete-btn {
      display: inline-flex;
    }

    .floating-panel.expanded .sidebar-project-save-btn {
      margin-left: auto;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .sidebar-project-save-btn:disabled,
    .floating-panel.expanded .sidebar-project-save-btn:disabled {
      opacity: 0.35 !important;
      cursor: not-allowed;
      pointer-events: none;
    }

    body.dark-mode .sidebar-project-save-btn {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    body.dark-mode .sidebar-feature-delete-btn {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    body.dark-mode .sidebar-settings-btn {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    body.dark-mode .sidebar-settings-btn::after,
    body.dark-mode .sidebar-project-save-btn::after,
    body.dark-mode .sidebar-feature-delete-btn::after,
    body.dark-mode .sidebar-profile-btn::after {
      background: rgba(255, 255, 255, 0.96);
      color: #111318;
    }

    .sidebar-collapse-btn:hover {
      transform: translateX(var(--sidebar-chevron-shift, -50%));
    }

    .sidebar-collapse-btn .map-control-icon {
      width: 16px;
      height: 16px;
    }

    .sidebar-settings-btn .map-control-icon {
      width: 16px;
      height: 16px;
    }

    .sidebar-project-save-btn .map-control-icon {
      width: 16px;
      height: 16px;
    }

    .sidebar-feature-delete-btn .map-control-icon {
      width: 16px;
      height: 16px;
    }

    .sidebar-collapse-btn .icon-left {
      display: none;
    }

    .floating-panel.expanded.feature-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.tools-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.layer-properties-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.feature-properties-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.settings-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.profile-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.basemaps-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.data-mode .sidebar-collapse-btn .icon-up,
    .floating-panel.expanded.selection-mode .sidebar-collapse-btn .icon-up {
      display: none;
    }

    .floating-panel.expanded.feature-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.tools-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.layer-properties-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.feature-properties-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.settings-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.profile-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.basemaps-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.data-mode .sidebar-collapse-btn .icon-left,
    .floating-panel.expanded.selection-mode .sidebar-collapse-btn .icon-left {
      display: block;
    }

    body.dark-mode .sidebar-collapse-btn {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    body.dark-mode .sidebar-project-save-btn:hover,
    body.dark-mode .sidebar-settings-btn:hover,
    body.dark-mode .sidebar-collapse-btn:hover {
      background: #0a84ff;
      border-color: #0a84ff;
      color: #fff;
      box-shadow: none;
    }

    body.dark-mode .sidebar-feature-delete-btn:hover {
      background: #ff3b30;
      border-color: #ff3b30;
      color: #fff;
      box-shadow: none;
    }

    body.dark-mode .sidebar-collapse-btn:hover {
      transform: translateX(var(--sidebar-chevron-shift, -50%));
    }

    button {
      border: 0;
      border-radius: var(--r-pill);
      padding: 10px 16px;
      color: #fff;
      background: var(--accent);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    button:hover {
      background: var(--accent-strong);
      box-shadow: 0 2px 10px rgba(0, 113, 227, 0.25);
      transform: translateY(-1px);
    }

    .ghost-btn {
      background: rgba(255, 255, 255, 0.94);
      color: var(--text);
      border: 1px solid var(--line);
      box-shadow: none;
    }

    .ghost-btn:hover {
      background: #fff;
      box-shadow: none;
    }

    body.dark-mode .ghost-btn {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    body.dark-mode .ghost-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .map-top-controls {
      position: absolute;
      top: calc(16px + env(safe-area-inset-top));
      right: calc(16px + env(safe-area-inset-right));
      display: flex;
      align-items: stretch;
      gap: 8px;
      z-index: 850;
    }

    #map-controls {
      position: relative;
      display: flex;
      flex-direction: row;
      gap: 8px;
      z-index: 1;
    }

    .map-search-wrap {
      position: relative;
      z-index: 1;
      width: min(280px, calc(100vw - 360px));
      min-width: 180px;
      display: grid;
      justify-items: center;
      overflow: visible;
    }

    .map-search {
      position: relative;
      z-index: 2;
      width: 100%;
      height: 44px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.94);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px);
    }

    .map-search-icon {
      width: 16px;
      height: 16px;
      color: var(--muted);
      flex: 0 0 auto;
    }

    .map-search-input {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: none;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      padding: 0;
      margin: 0;
    }

    .map-search-input::placeholder {
      color: var(--muted);
      opacity: 1;
      font-weight: 500;
    }

    .map-search-spinner {
      width: 14px;
      height: 14px;
      flex: 0 0 14px;
      border-radius: 50%;
      border: 2px solid rgba(30, 64, 175, 0.15);
      border-top-color: var(--accent);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease;
      animation: map-search-spin 0.75s linear infinite;
    }

    .map-search-spinner.visible {
      opacity: 1;
    }

    @keyframes map-search-spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    body.dark-mode .map-search-spinner {
      border-color: rgba(255, 255, 255, 0.12);
      border-top-color: var(--accent);
    }

    .map-search-clear {
      width: 20px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 20px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.1);
      color: var(--muted);
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
    }

    .map-search-clear.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .map-search-clear:hover {
      background: rgba(10, 132, 255, 0.14);
      color: var(--accent);
    }

    .map-search-clear svg {
      width: 10px;
      height: 10px;
      display: block;
    }

    .map-search-results {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      display: none;
      max-height: min(320px, calc(100vh - 150px));
      overflow: auto;
      padding: 6px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: var(--shadow-md);
      backdrop-filter: blur(18px);
      z-index: 5;
    }

    .map-search-results.visible {
      display: grid;
      gap: 4px;
    }

    .map-search-result {
      display: grid;
      gap: 2px;
      width: 100%;
      padding: 9px 10px;
      border: 0;
      border-radius: 12px;
      background: transparent;
      color: var(--text);
      text-align: left;
      cursor: pointer;
      font: inherit;
    }

    .map-search-result:hover,
    .map-search-result.active {
      background: rgba(10, 132, 255, 0.12);
    }

    .map-search-result-title {
      font-size: 12px;
      font-weight: 700;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .map-search-result-meta {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .map-search-results-divider {
      height: 1px;
      margin: 6px 4px;
      background: var(--line);
      border-radius: 999px;
    }

    .map-search-result.from-layer .map-search-result-title {
      color: var(--search-layer-color, var(--accent));
    }

    body.dark-mode .map-search-results {
      background: rgba(24, 26, 30, 0.96);
      border-color: var(--line);
    }

    body.dark-mode .map-search {
      background: rgba(24, 26, 30, 0.94);
      border-color: var(--line);
    }

    body.dark-mode .map-search-clear {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.72);
    }

    body.dark-mode .map-search-clear:hover {
      background: rgba(59, 146, 255, 0.24);
      color: #fff;
    }

    #basemap-menu {
      position: absolute;
      top: 0;
      left: 0;
      width: max-content;
      min-width: 0;
      max-width: 240px;
      padding: 8px;
      border-radius: var(--r-lg);
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-md);
      display: none;
      z-index: 860;
    }

    #basemap-menu.open {
      display: grid;
      gap: 4px;
    }

    .basemap-option {
      width: 100%;
      display: block;
      margin: 0;
      padding: 10px 12px;
      border-radius: var(--r-md);
      border: 0;
      background: transparent;
      color: var(--text);
      text-align: left;
      box-shadow: none;
      white-space: nowrap;
      transform: none;
    }

    .basemap-option:hover {
      background: rgba(0, 113, 227, 0.08);
      box-shadow: none;
      transform: none;
    }

    .basemap-option.active {
      background: rgba(0, 113, 227, 0.12);
      color: var(--accent);
      transform: none;
    }

    .basemap-option.active:hover {
      background: rgba(0, 113, 227, 0.12);
      color: var(--accent);
      transform: none;
    }

    .basemap-menu-divider {
      height: 1px;
      margin: 6px 4px;
      background: rgba(10, 132, 255, 0.12);
    }

    .basemap-option.add-basemap-option {
      color: var(--accent);
      font-weight: 700;
    }

    .map-control {
      position: relative;
      width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: var(--r-md);
      background: rgba(255, 255, 255, 0.94);
      color: var(--text);
      font-size: 24px;
      line-height: 1;
      margin: 0;
      padding: 0;
      min-width: 0;
      box-shadow: var(--shadow-sm);
    }

    .map-control::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      top: calc(100% + 8px);
      bottom: auto;
      transform: translateX(-50%) translateY(-4px);
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(28, 30, 34, 0.92);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }

    .map-control:hover {
      background: #fff;
    }

    .map-control:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .map-control.active {
      background: linear-gradient(180deg, #2893ff 0%, #0a84ff 100%);
      border-color: rgba(10, 132, 255, 0.98);
      color: #fff;
      box-shadow: 0 12px 26px rgba(10, 132, 255, 0.24);
    }

    .map-control.selection-return-btn {
      width: 0;
      min-width: 0;
      padding: 0;
      margin: 0;
      opacity: 0;
      transform: translateX(8px) scale(0.92);
      pointer-events: none;
      overflow: hidden;
      border-width: 0;
      box-shadow: none;
      transition:
        width 0.24s ease,
        min-width 0.24s ease,
        padding 0.24s ease,
        margin 0.24s ease,
        opacity 0.2s ease,
        transform 0.24s ease,
        border-width 0.24s ease;
    }

    .map-control.selection-return-btn.visible {
      width: 44px;
      min-width: 44px;
      padding: 0;
      margin-right: 2px;
      opacity: 1;
      transform: translateX(0) scale(1);
      pointer-events: auto;
      border-width: 1px;
      overflow: visible;
    }

    .map-control.review-return-btn {
      width: 0;
      min-width: 0;
      padding: 0;
      margin: 0;
      opacity: 0;
      transform: translateX(8px) scale(0.92);
      pointer-events: none;
      overflow: hidden;
      border-width: 0;
      box-shadow: none;
      white-space: nowrap;
      transition:
        width 0.24s ease,
        min-width 0.24s ease,
        padding 0.24s ease,
        margin 0.24s ease,
        opacity 0.2s ease,
        transform 0.24s ease,
        border-width 0.24s ease;
    }

    .map-control.review-return-btn.visible {
      width: auto;
      min-width: 162px;
      padding: 0 16px;
      margin-right: 8px;
      opacity: 1;
      transform: translateX(0) scale(1);
      pointer-events: auto;
      border-width: 1px;
      overflow: visible;
      background: linear-gradient(180deg, #2893ff 0%, #0a84ff 100%);
      border-color: rgba(10, 132, 255, 0.98);
      color: #fff;
      box-shadow: 0 12px 26px rgba(10, 132, 255, 0.24);
    }

    .map-control.review-return-btn.visible:hover {
      background: linear-gradient(180deg, #1f82ee 0%, #066fd6 100%);
      border-color: rgba(10, 132, 255, 0.98);
      color: #fff;
      box-shadow: 0 14px 28px rgba(10, 132, 255, 0.28);
    }

    .map-control.review-return-btn.end-review {
      background: linear-gradient(180deg, #ff6a63 0%, #ff3b30 100%);
      border-color: rgba(255, 90, 82, 0.98);
      color: #fff;
      box-shadow: 0 12px 26px rgba(255, 59, 48, 0.26);
    }

    .map-control.review-return-btn.visible.end-review:hover {
      background: linear-gradient(180deg, #ef564f 0%, #d92f26 100%);
      border-color: rgba(255, 90, 82, 0.98);
      color: #fff;
      box-shadow: 0 14px 28px rgba(255, 59, 48, 0.3);
    }

    .map-control.review-return-btn .review-return-text {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .map-control.review-return-btn::after {
      display: none;
      content: none;
    }

    .map-control-icon {
      width: 18px;
      height: 18px;
      display: block;
      flex: 0 0 auto;
    }

    body.dark-mode .map-control,
    body.dark-mode #basemap-menu {
      background: rgba(24, 26, 30, 0.94);
      color: var(--text);
      border-color: var(--line);
    }

    body.dark-mode .map-control:hover {
      background: rgba(48, 52, 60, 0.98);
    }

    body.dark-mode .map-control::after {
      background: rgba(255, 255, 255, 0.96);
      color: #111318;
    }

    body.dark-mode .map-control.active {
      background: linear-gradient(180deg, #3d9bff 0%, #0a84ff 100%);
      border-color: rgba(61, 155, 255, 0.98);
      color: #fff;
    }

    body.dark-mode .basemap-option:hover {
      background: rgba(59, 146, 255, 0.14);
    }

    body.dark-mode .basemap-option.active {
      background: rgba(59, 146, 255, 0.2);
      color: #8bc0ff;
    }

    #status {
      position: absolute;
      left: 50%;
      bottom: calc(16px + env(safe-area-inset-bottom));
      max-width: 360px;
      width: max-content;
      padding: 10px 12px;
      border-radius: var(--r-md);
      background: rgba(24, 26, 30, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text);
      font-size: 13px;
      line-height: 1.4;
      z-index: 500;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px);
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, 10px);
      pointer-events: none;
      transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.22s;
    }

    #status.no-transition {
      transition: none !important;
    }

    #status.visible {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
      transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        left 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
    }

    body:not(.dark-mode) #status {
      background: rgba(255, 255, 255, 0.94);
      border-color: rgba(10, 132, 255, 0.12);
      color: #1d1d1f;
      box-shadow: 0 10px 24px rgba(12, 23, 41, 0.12);
    }

    .topos-scale {
      position: absolute;
      right: calc(16px + env(safe-area-inset-right));
      bottom: calc(16px + env(safe-area-inset-bottom));
      z-index: 500;
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 7px;
      padding: 8px 10px 9px;
      border-radius: 14px;
      background: rgba(19, 22, 28, 0.78);
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(16px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
      pointer-events: none;
      user-select: none;
    }

    .topos-scale-label {
      color: rgba(255, 255, 255, 0.92);
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    .topos-scale-distance {
      color: rgba(255, 255, 255, 0.72);
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: 0.02em;
      margin-top: -2px;
      white-space: nowrap;
    }

    .topos-scale-bar {
      position: relative;
      height: 12px;
      border: 2px solid rgba(255, 255, 255, 0.94);
      border-top: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 50%, rgba(255, 255, 255, 0.2) 50% 100%);
      box-sizing: border-box;
    }

    .topos-scale-bar::before,
    .topos-scale-bar::after {
      content: "";
      position: absolute;
      top: -7px;
      width: 0;
      height: 7px;
      border-left: 2px solid rgba(255, 255, 255, 0.94);
    }

    .topos-scale-bar::before {
      left: -2px;
    }

    .topos-scale-bar::after {
      right: -2px;
    }

    body:not(.dark-mode) .topos-scale {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(10, 132, 255, 0.12);
      box-shadow: 0 10px 24px rgba(12, 23, 41, 0.12);
    }

    body:not(.dark-mode) .topos-scale-label {
      color: rgba(29, 29, 31, 0.9);
    }

    body:not(.dark-mode) .topos-scale-distance {
      color: rgba(29, 29, 31, 0.62);
    }

    body:not(.dark-mode) .topos-scale-bar {
      border-color: rgba(29, 29, 31, 0.9);
      background: linear-gradient(90deg, rgba(29, 29, 31, 0.06) 0 50%, rgba(29, 29, 31, 0.14) 50% 100%);
    }

    body:not(.dark-mode) .topos-scale-bar::before,
    body:not(.dark-mode) .topos-scale-bar::after {
      border-left-color: rgba(29, 29, 31, 0.9);
    }

    .leaflet-tooltip.measure-tooltip {
      padding: 6px 9px;
      border: 1px solid rgba(10, 132, 255, 0.18);
      border-radius: 999px;
      background: rgba(24, 26, 30, 0.88);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
      backdrop-filter: blur(14px);
    }

    .leaflet-tooltip-top.measure-tooltip::before {
      border-top-color: rgba(24, 26, 30, 0.88);
    }

    body:not(.dark-mode) .leaflet-tooltip.measure-tooltip {
      border-color: rgba(10, 132, 255, 0.14);
      background: rgba(255, 255, 255, 0.94);
      color: #1d1d1f;
      box-shadow: 0 8px 18px rgba(12, 23, 41, 0.12);
    }

    body:not(.dark-mode) .leaflet-tooltip-top.measure-tooltip::before {
      border-top-color: rgba(255, 255, 255, 0.94);
    }

    .leaflet-tooltip.tour-city-tooltip {
      padding: 7px 12px;
      border: 1px solid rgba(10, 132, 255, 0.16);
      border-radius: 999px;
      background: rgba(24, 26, 30, 0.9);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(14px);
    }

    .leaflet-tooltip-top.tour-city-tooltip::before {
      border-top-color: rgba(24, 26, 30, 0.9);
    }

    body:not(.dark-mode) .leaflet-tooltip.tour-city-tooltip {
      border-color: rgba(10, 132, 255, 0.12);
      background: rgba(255, 255, 255, 0.94);
      color: #1d1d1f;
      box-shadow: 0 8px 18px rgba(12, 23, 41, 0.12);
    }

    body:not(.dark-mode) .leaflet-tooltip-top.tour-city-tooltip::before {
      border-top-color: rgba(255, 255, 255, 0.94);
    }

    .status-message {
      display: block;
    }

    .status-progress {
      display: none;
      margin-top: 10px;
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.1);
      overflow: hidden;
    }

    .status-progress.visible {
      display: block;
    }

    .status-progress-bar {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #8bc0ff 0%, #3b92ff 100%);
      transition: width 0.18s ease;
    }

    .status-progress.indeterminate .status-progress-bar {
      width: 40%;
      animation: status-indeterminate-sweep 1s ease-in-out infinite alternate;
    }

    @keyframes status-indeterminate-sweep {
      from {
        transform: translateX(-55%);
      }
      to {
        transform: translateX(160%);
      }
    }

    body:not(.dark-mode) .status-progress {
      background: rgba(29, 29, 31, 0.08);
    }

    body:not(.dark-mode) .status-progress-bar {
      background: linear-gradient(90deg, #61a8ff 0%, #0a84ff 100%);
    }

    .leaflet-control-attribution {
      display: none;
    }

    html {
      scrollbar-color: rgba(125, 132, 146, 0.42) transparent;
    }

    *::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    *::-webkit-scrollbar-track {
      background: transparent;
    }

    *::-webkit-scrollbar-thumb {
      border-radius: 999px;
      border: 2px solid transparent;
      background: rgba(125, 132, 146, 0.36);
      background-clip: padding-box;
    }

    body.dark-mode *::-webkit-scrollbar-thumb {
      background: rgba(125, 132, 146, 0.42);
      background-clip: padding-box;
    }

    @media (max-width: 900px) {
      body {
        padding: 10px;
      }

      #container {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
      }

      .floating-panel {
        width: calc(100% - 32px);
      }

      .map-top-controls {
        left: 16px;
        right: 16px;
      }

      .map-search-wrap {
        width: min(280px, calc(100vw - 180px));
      }
    }

    .tour-overlay {
      position: absolute;
      inset: 0;
      --tour-focus-x: 50%;
      --tour-focus-y: 44%;
      --tour-focus-rx: 150px;
      --tour-focus-ry: 150px;
      z-index: 1400;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.28s ease, visibility 0s linear 0.28s;
    }

    .tour-overlay.visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.28s ease, visibility 0s linear 0s;
    }

    .tour-overlay-fog {
      position: absolute;
      inset: 0;
      background: rgba(7, 10, 16, 0.08);
      backdrop-filter: blur(5px);
      -webkit-mask-image: radial-gradient(ellipse var(--tour-focus-rx) var(--tour-focus-ry) at var(--tour-focus-x) var(--tour-focus-y), transparent 0 72%, #000 86%);
      mask-image: radial-gradient(ellipse var(--tour-focus-rx) var(--tour-focus-ry) at var(--tour-focus-x) var(--tour-focus-y), transparent 0 72%, #000 86%);
    }

    .tour-overlay-backdrop {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse calc(var(--tour-focus-rx) * 1.05) calc(var(--tour-focus-ry) * 1.05) at var(--tour-focus-x) var(--tour-focus-y), rgba(88, 169, 255, 0.08) 0, rgba(88, 169, 255, 0.03) 44%, transparent 68%),
        radial-gradient(ellipse calc(var(--tour-focus-rx) * 1.24) calc(var(--tour-focus-ry) * 1.24) at var(--tour-focus-x) var(--tour-focus-y), transparent 0 70%, rgba(7, 10, 16, 0.06) 76%, rgba(7, 10, 16, 0.68) 100%),
        linear-gradient(180deg, rgba(7, 10, 16, 0.5) 0%, rgba(7, 10, 16, 0.74) 100%);
    }

    .tour-planet-ring {
      position: absolute;
      left: var(--tour-focus-x);
      top: var(--tour-focus-y);
      width: calc(var(--tour-focus-rx) * 2);
      height: calc(var(--tour-focus-ry) * 2);
      border-radius: 999px;
      transform: translate(-50%, -50%);
      transition:
        left 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
      box-shadow:
        0 0 0 1px rgba(139, 192, 255, 0.26),
        0 0 0 10px rgba(10, 132, 255, 0.05),
        0 22px 80px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
      pointer-events: none;
    }

    .tour-planet-ring::before,
    .tour-planet-ring::after {
      content: "";
      position: absolute;
      inset: -16px;
      border-radius: 50%;
      border: 1px solid rgba(139, 192, 255, 0.12);
      pointer-events: none;
    }

    .tour-planet-ring::after {
      inset: 24px -22px -18px -22px;
      border-color: rgba(139, 192, 255, 0.08);
      transform: rotate(-14deg);
    }

    .tour-card {
      position: absolute;
      width: min(420px, calc(100vw - 64px));
      min-height: 220px;
      padding: 22px 22px 18px;
      border-radius: 24px;
      background: rgba(24, 26, 30, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
      backdrop-filter: blur(20px);
      color: #fff;
    }

    .tour-kicker {
      margin: 0 0 8px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #8bc0ff;
    }

    .tour-title {
      margin: 0;
      font-size: 34px;
      line-height: 1.02;
      letter-spacing: -0.03em;
    }

    .tour-copy {
      margin: 14px 0 0;
      max-width: 34ch;
      color: rgba(255, 255, 255, 0.74);
      font-size: 15px;
      line-height: 1.55;
    }

    .tour-step-meta {
      margin-top: 18px;
      color: rgba(255, 255, 255, 0.52);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .tour-progress {
      display: flex;
      gap: 8px;
      margin-top: 18px;
    }

    .tour-progress-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
      transition: transform 0.18s ease, background 0.18s ease;
    }

    .tour-progress-dot.active {
      background: #0a84ff;
      transform: scale(1.15);
    }

    .tour-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 22px;
    }

    .tour-actions-left,
    .tour-actions-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .tour-btn {
      min-width: 108px;
      height: 42px;
      padding: 0 18px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      box-shadow: none;
      cursor: pointer;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .tour-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.18);
      transform: none;
    }

    .tour-btn.primary {
      background: #0a84ff;
      border-color: #0a84ff;
      color: #fff;
    }

    .tour-btn.primary:hover {
      background: #2491ff;
      border-color: #2491ff;
    }

    .tour-card.card-center,
    .tour-card.card-right,
    .tour-card.card-left,
    .tour-card.card-bottom-left,
    .tour-card.card-bottom-right {
      left: 50%;
      top: 72%;
      transform: translate(-50%, -50%);
      text-align: center;
    }

    .tour-card.card-center .tour-copy {
      margin-left: auto;
      margin-right: auto;
    }

    .tour-target-highlight {
      position: relative;
      z-index: 1410 !important;
      box-shadow:
        0 0 0 2px rgba(139, 192, 255, 0.92),
        0 0 0 10px rgba(10, 132, 255, 0.12),
        0 18px 42px rgba(0, 0, 0, 0.24) !important;
    }

    .tour-step-pulse {
      position: absolute;
      inset: 0;
      border-radius: 24px;
      border: 1px solid rgba(139, 192, 255, 0.28);
      animation: tour-step-pulse 1.8s ease-out infinite;
      pointer-events: none;
    }

    @keyframes tour-step-pulse {
      0% {
        opacity: 0.9;
        transform: scale(0.98);
      }
      100% {
        opacity: 0;
        transform: scale(1.08);
      }
    }

    @keyframes tour-ring-drift {
      0% {
        transform: translate(-50%, -50%) scale(0.985);
      }
      35% {
        transform: translate(calc(-50% + 8px), calc(-50% - 6px)) scale(1.012);
      }
      68% {
        transform: translate(calc(-50% - 7px), calc(-50% + 5px)) scale(0.996);
      }
      100% {
        transform: translate(-50%, -50%) scale(0.985);
      }
    }

    .tour-overlay.intro-active .tour-planet-ring {
      animation: tour-ring-drift 7.5s ease-in-out infinite;
    }

    body:not(.dark-mode) .tour-card {
      background: rgba(255, 255, 255, 0.94);
      border-color: rgba(10, 132, 255, 0.12);
      color: #1d1d1f;
      box-shadow: 0 18px 42px rgba(12, 23, 41, 0.14);
    }

    body:not(.dark-mode) .tour-copy,
    body:not(.dark-mode) .tour-step-meta {
      color: rgba(29, 29, 31, 0.66);
    }

    body:not(.dark-mode) .tour-btn {
      background: rgba(29, 29, 31, 0.06);
      border-color: rgba(10, 132, 255, 0.12);
      color: #1d1d1f;
    }

    body:not(.dark-mode) .tour-btn:hover {
      background: rgba(10, 132, 255, 0.1);
      border-color: rgba(10, 132, 255, 0.18);
    }

    @media (max-width: 900px) {
      .tour-planet-ring {
        width: 230px;
        height: 230px;
        top: 32%;
      }

      .tour-overlay-fog {
        -webkit-mask-image: radial-gradient(ellipse var(--tour-focus-rx) var(--tour-focus-ry) at var(--tour-focus-x) var(--tour-focus-y), transparent 0 70%, #000 84%);
        mask-image: radial-gradient(ellipse var(--tour-focus-rx) var(--tour-focus-ry) at var(--tour-focus-x) var(--tour-focus-y), transparent 0 70%, #000 84%);
      }

      .tour-overlay-backdrop {
        background:
          radial-gradient(ellipse calc(var(--tour-focus-rx) * 1.04) calc(var(--tour-focus-ry) * 1.04) at var(--tour-focus-x) var(--tour-focus-y), rgba(88, 169, 255, 0.12) 0, rgba(88, 169, 255, 0.06) 42%, transparent 68%),
          radial-gradient(ellipse calc(var(--tour-focus-rx) * 1.2) calc(var(--tour-focus-ry) * 1.2) at var(--tour-focus-x) var(--tour-focus-y), transparent 0 68%, rgba(7, 10, 16, 0.08) 74%, rgba(7, 10, 16, 0.84) 100%),
          linear-gradient(180deg, rgba(7, 10, 16, 0.62) 0%, rgba(7, 10, 16, 0.84) 100%);
      }

      .tour-card,
      .tour-card.card-center,
      .tour-card.card-right,
      .tour-card.card-left,
      .tour-card.card-bottom-left,
      .tour-card.card-bottom-right {
        left: calc(16px + env(safe-area-inset-left));
        right: calc(16px + env(safe-area-inset-right));
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: auto;
        min-height: 0;
        transform: none;
      }

      .tour-title {
        font-size: 28px;
      }
    }

    .command-palette {
      position: fixed;
      top: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(-8px);
      width: min(520px, calc(100vw - 40px));
      padding: 16px;
      border-radius: 24px;
      background: rgba(255,255,255,0.94);
      border: 1px solid rgba(33,33,33,0.1);
      box-shadow: var(--shadow-md);
      backdrop-filter: blur(16px);
      z-index: 1300;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    body.dark-mode .command-palette {
      background: rgba(26,28,31,0.96);
      border-color: rgba(255,255,255,0.08);
    }

    .command-palette.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .command-palette-label {
      display: block;
      margin-bottom: 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .command-input {
      width: 100%;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.82);
      color: var(--text);
      border-radius: 16px;
      padding: 14px 16px;
      font: inherit;
      font-size: 15px;
      outline: none;
    }

    body.dark-mode .command-input {
      background: rgba(255,255,255,0.06);
    }

    .command-input:focus {
      border-color: rgba(10, 132, 255, 0.42);
      box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
    }

    .command-hint {
      margin: 10px 2px 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    /* ── Auth overlay ─────────────────────────────────────────── */
    .auth-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: linear-gradient(135deg, #0d1117 0%, #0a1628 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .auth-card {
      width: 100%;
      max-width: 400px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 24px;
      padding: 36px 32px 32px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .auth-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.01em;
    }
    .auth-logo svg {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }
    .auth-tabs {
      display: flex;
      gap: 4px;
      background: rgba(255,255,255,0.06);
      border-radius: 12px;
      padding: 4px;
    }
    .auth-tab {
      flex: 1;
      padding: 8px;
      border: none;
      border-radius: 9px;
      background: transparent;
      color: rgba(255,255,255,0.5);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }
    .auth-tab.active {
      background: rgba(10,132,255,0.25);
      color: #fff;
    }
    .auth-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .auth-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .auth-label {
      font-size: 13px;
      font-weight: 600;
      color: rgba(255,255,255,0.6);
      letter-spacing: 0.02em;
    }
    .auth-input {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 11px 14px;
      font: inherit;
      font-size: 15px;
      color: #fff;
      outline: none;
      transition: border-color 0.15s;
    }
    .auth-input::placeholder {
      color: rgba(255,255,255,0.25);
    }
    .auth-input:focus {
      border-color: rgba(10,132,255,0.6);
    }
    .auth-error {
      font-size: 13px;
      color: #ff6b6b;
      display: none;
      padding: 10px 12px;
      background: rgba(255,80,80,0.1);
      border-radius: 10px;
      border: 1px solid rgba(255,80,80,0.2);
    }
    .auth-submit {
      background: #0a84ff;
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 13px;
      font: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s, opacity 0.15s;
      margin-top: 4px;
    }
    .auth-submit:hover {
      background: #0070d8;
    }
    .auth-submit:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .auth-footer {
      text-align: center;
      font-size: 13px;
      color: rgba(255,255,255,0.4);
      margin: 0;
    }
    .auth-switch {
      background: none;
      border: none;
      color: #0a84ff;
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      padding: 0;
    }
    .auth-switch:hover {
      text-decoration: underline;
    }
    .auth-label-optional {
      font-weight: 400;
      opacity: 0.5;
      font-size: 11px;
    }
    .auth-signup-fields {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .auth-strength {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 6px;
    }
    .auth-strength-bars {
      display: flex;
      gap: 5px;
      flex: 1;
    }
    .auth-strength-bar {
      height: 4px;
      flex: 1;
      border-radius: 99px;
      background: rgba(255,255,255,0.1);
      transition: background 0.2s ease;
    }
    .auth-strength-label {
      font-size: 12px;
      font-weight: 600;
      width: 44px;
      text-align: right;
      transition: color 0.2s ease;
    }
    .auth-loading-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.01em;
    }
    .auth-loading-logo svg {
      width: 36px;
      height: 36px;
    }
