:root {
    color-scheme: dark;
    --bg: #070a0c;
    --panel: rgba(15, 18, 20, .94);
    --panel-2: rgba(26, 31, 32, .96);
    --panel-3: #27302f;
    --line: rgba(235,246,240,.14);
    --line-soft: rgba(235,246,240,.08);
    --text: #f4f6f8;
    --muted: #b1bab7;
    --faint: #78847f;
    --green: #8cff63;
    --amber: #f7c766;
    --cyan: #58d6e8;
    --red: #ff6f63;
    --violet: #b998ff;
    --shadow: 0 18px 60px rgba(0,0,0,.42);
    --r: 8px;
    --bottom-h: 218px;
    --panel-radius: 8px;
  }

  * { box-sizing: border-box; }
  html, body { width: 100%; height: 100%; margin: 0; }
  body {
    overflow: hidden;
    background:
      linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
      linear-gradient(145deg, rgba(87, 214, 141, .08), transparent 30%),
      linear-gradient(315deg, rgba(88, 214, 232, .07), transparent 32%),
      var(--bg);
    background-size: 24px 24px, 24px 24px, auto, auto, auto;
    color: var(--text);
    font: 13px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  button, input, select { font: inherit; }
  button { border: 0; }

  .app {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(118px, 148px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 9px;
    background:
      linear-gradient(180deg, rgba(16,20,22,.98), rgba(9,12,13,.93)),
      #0b0f11;
    border-bottom: 1px solid rgba(235,246,240,.1);
    box-shadow: inset 0 -1px rgba(0,0,0,.52), 0 14px 40px rgba(0,0,0,.24);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background:
      linear-gradient(145deg, rgba(89,169,71,.95), rgba(44,83,67,.95)),
      #1f3a2b;
    border: 1px solid rgba(140,255,99,.42);
    color: var(--green);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 30px rgba(0,0,0,.35);
  }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-mark img { width: 28px; height: 28px; display: block; }
  .brand-text strong {
    display: block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 2px rgba(0,0,0,.45);
  }
  .brand-text span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
  }

  .seed-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(112px, .38fr) minmax(112px, .38fr) auto auto;
    gap: 10px;
    align-items: center;
    align-self: end;
    min-width: 0;
  }

  .field, .select, .number {
    width: 100%;
    height: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r);
    background: linear-gradient(180deg, #20272a, #14191b);
    color: var(--text);
    outline: 0;
    transition: border-color .16s, box-shadow .16s, background .16s;
  }
  .field, .number { padding: 0 12px; font-family: "Cascadia Mono", "JetBrains Mono", Consolas, monospace; }
  .select { padding: 0 10px; cursor: pointer; }
  .field:focus, .select:focus, .number:focus {
    border-color: rgba(140,255,99,.82);
    box-shadow: 0 0 0 3px rgba(140,255,99,.13);
    background: #101713;
  }
  .field::placeholder { color: var(--faint); }

  .btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: var(--r);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text);
    background: linear-gradient(180deg, #273036, #1a2024);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s, border-color .12s, background .12s, color .12s;
  }
  .btn svg { width: 15px; height: 15px; stroke-width: 2.2; }
  .btn:hover { border-color: rgba(255,255,255,.18); background: #27332f; }
  .btn:active { transform: translateY(1px); }
  .btn.primary { background: linear-gradient(180deg, #9dff70, #65dd49); color: #081208; font-weight: 900; border-color: rgba(190,255,160,.5); }
  .btn.primary:hover { background: linear-gradient(180deg, #b3ff91, #77ef59); }
  .btn.ghost { background: linear-gradient(180deg, #222832, #181d25); border-color: rgba(255,255,255,.12); color: var(--muted); }
  .btn.ghost:hover { color: var(--text); border-color: rgba(87,214,141,.45); }
  .btn.warn { background: rgba(242,184,75,.12); color: #ffd481; border-color: rgba(242,184,75,.28); }
  .btn:disabled { opacity: .55; cursor: wait; transform: none; }

  .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .layout {
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar, .searchbar {
    min-height: 0;
    border-color: var(--line);
  }
  .sidebar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 14;
    display: grid;
    grid-template-columns: minmax(320px, 1.55fr) minmax(190px, .72fr) minmax(250px, .9fr) minmax(230px, .82fr);
    gap: 10px;
    min-height: var(--bottom-h);
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .sidebar.is-collapsed {
    transform: translateY(calc(100% - 36px));
  }
  .sidebar.is-collapsed .section {
    opacity: 0;
    pointer-events: none;
  }
  .searchbar { display: none; }
  .menu-toggle {
    position: absolute;
    left: 50%;
    top: -16px;
    z-index: 2;
    width: 44px;
    height: 28px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(235,246,240,.16);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(36,44,47,.98), rgba(17,22,24,.98));
    color: var(--text);
    box-shadow: 0 -10px 28px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.08);
    cursor: pointer;
    pointer-events: auto;
  }
  .menu-toggle span {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
  }
  .sidebar.is-collapsed .menu-toggle span {
    transform: translateY(3px) rotate(225deg);
  }
  .section {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(235,246,240,.14);
    border-radius: var(--panel-radius);
    background:
      linear-gradient(180deg, rgba(31,37,38,.96), rgba(13,17,18,.94)),
      #101516;
    box-shadow: 0 16px 34px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.06);
    transition: opacity .16s ease;
    backdrop-filter: blur(14px);
    pointer-events: auto;
    overflow: hidden;
  }
  .section:last-child { border-bottom-color: rgba(235,246,240,.14); }
  .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: #c8d3cf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .section-title > span:first-child {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #result-count { flex: 0 0 auto; }
  .title-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .mini-link {
    height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.055);
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
  }
  .mini-link:hover { color: var(--text); border-color: rgba(121,244,86,.35); }

  .layer-list, .result-list { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
  .layer-row {
    min-height: 34px;
    display: inline-grid;
    grid-template-columns: 24px minmax(0, auto) auto;
    align-items: center;
    gap: 6px;
    padding: 4px 9px 4px 5px;
    border-radius: 8px;
    color: var(--text);
    background: rgba(8,12,13,.7);
    border: 1px solid rgba(235,246,240,.12);
    cursor: pointer;
    max-width: 100%;
  }
  .layer-row:hover { background: rgba(31,39,38,.96); border-color: color-mix(in srgb, var(--icon), transparent 38%); }
  .layer-row.is-off { opacity: .48; filter: saturate(.6); }
  .layer-row.is-disabled {
    opacity: .36;
    cursor: help;
    border-style: dashed;
  }
  .layer-row.is-disabled:hover {
    opacity: .62;
    background: rgba(31,39,38,.7);
  }
  .layer-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--icon);
    background:
      linear-gradient(180deg, rgba(255,255,255,.1), transparent),
      color-mix(in srgb, var(--icon), transparent 80%);
    border: 1px solid color-mix(in srgb, var(--icon), transparent 48%);
    box-shadow: inset 0 1px rgba(255,255,255,.1);
  }
  #selected-icon,
  #popover-icon {
    --icon: #edf3ee;
  }
  .layer-icon svg { width: 15px; height: 15px; stroke-width: 2.2; }
  .layer-icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    object-fit: contain;
  }
  .features-panel .layer-list { max-height: 104px; overflow: auto; padding-right: 2px; }
  .features-panel .layer-list {
    max-height: 142px;
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    align-content: start;
  }
  .map-panel .layer-list { max-height: none; overflow: visible; padding-right: 0; }
  .layer-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  .count {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    color: #dfe5e9;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.08);
    font: 10px "Cascadia Mono", Consolas, monospace;
    text-align: center;
  }
  .count.muted {
    color: #8b9692;
  }
  .switch {
    display: none;
  }
  .switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #809089;
    transition: left .16s, background .16s;
  }
  .switch.on { background: rgba(87,214,141,.16); border-color: rgba(87,214,141,.42); }
  .switch.on::after { left: 17px; background: var(--green); }

  .map-stage {
    position: relative;
    grid-area: 1 / 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
      linear-gradient(rgba(233,245,235,.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(233,245,235,.02) 1px, transparent 1px),
      radial-gradient(circle at 50% 42%, rgba(79,151,102,.12), transparent 42%),
      #07110f;
    background-size: 32px 32px;
  }
  #map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    image-rendering: pixelated;
    background: #07110f;
  }
  #map-canvas.dragging { cursor: grabbing; }

  .empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-bottom: var(--bottom-h);
    pointer-events: none;
  }
  .empty.hidden { display: none; }
  .empty-inner {
    width: min(410px, calc(100% - 32px));
    text-align: center;
  }
  .empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: rgba(87,214,141,.1);
    border: 1px solid rgba(87,214,141,.34);
    box-shadow: var(--shadow);
  }
  .empty-icon svg { width: 34px; height: 34px; }
  .empty-icon img { width: 44px; height: 44px; display: block; }
  .empty h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: 0; }
  .empty p { margin: 0; color: var(--muted); }

  .floating {
    position: absolute;
    background: rgba(16,20,22,.94);
    border: 1px solid rgba(235,246,240,.14);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }
  .seed-card {
    top: 12px;
    left: 12px;
    min-width: 196px;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .seed-card.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .tiny-label {
    color: var(--faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .seed-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: "Cascadia Mono", Consolas, monospace;
    color: var(--green);
  }
  .icon-only {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #0d100f;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
  }
  .icon-only:hover { color: var(--text); border-color: rgba(87,214,141,.45); }
  .icon-only svg { width: 15px; height: 15px; }

  .compass {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--red);
    font-weight: 900;
    pointer-events: none;
  }
  .zoom-stack {
    right: 14px;
    bottom: calc(var(--bottom-h) + 32px);
    display: grid;
    gap: 4px;
    padding: 5px;
  }
  .zoom-stack .icon-only { width: 34px; height: 34px; }

  .status {
    left: 50%;
    top: 14px;
    bottom: auto;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    color: var(--muted);
  }
  .distance-note {
    left: 50%;
    top: 56px;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #f5d98d;
    z-index: 9;
  }
  .distance-note.visible { display: flex; }
  .stat {
    min-width: 74px;
    padding: 0 4px;
    font-family: "Cascadia Mono", Consolas, monospace;
  }
  .stat b { color: var(--text); font-weight: 600; }
  .divider { width: 1px; height: 18px; background: var(--line); }

  .chunk-pill {
    left: 12px;
    top: 76px;
    bottom: auto;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: var(--muted);
  }
  .chunk-pill.visible { display: flex; }
  .dot-spin {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,.18);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .loader {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(7,9,8,.62);
    z-index: 20;
  }
  .loader.visible { display: grid; }
  .loader-box {
    width: 250px;
    padding: 18px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  .loader-box .dot-spin { margin: 0 auto 12px; width: 26px; height: 26px; }
  .loader-box strong { display: block; margin-bottom: 4px; }
  .loader-box span { color: var(--muted); }

  .toast {
    right: 14px;
    top: 68px;
    padding: 9px 12px;
    color: var(--text);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s, transform .16s;
    z-index: 30;
  }
  .toast.visible { opacity: 1; transform: translateY(0); }

  .tooltip {
    position: absolute;
    z-index: 10;
    min-width: 180px;
    padding: 9px 10px;
    opacity: 0;
    transform: translateY(2px);
    pointer-events: none;
    transition: opacity .1s, transform .1s;
  }
  .tooltip.visible { opacity: 1; transform: translateY(0); }
  .tooltip strong { display: block; margin-bottom: 3px; }
  .tooltip span { color: var(--muted); font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }

  .detail-panel {
    display: grid;
    gap: 9px;
  }
  .selected-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 800;
  }
  .selected-name .layer-icon { width: 24px; height: 24px; }
  .coord-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    color: var(--muted);
    font-size: 12px;
  }
  .coord-grid.compact {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .coord-grid span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .coord-grid b {
    color: var(--text);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-weight: 800;
  }
  .panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .panel-actions .btn { height: 32px; padding: 0 10px; }
  .view-panel {
    display: grid;
    gap: 10px;
  }
  .go-panel {
    display: grid;
    gap: 9px;
  }
  .go-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }
  .go-grid .number { min-width: 0; }
  .go-grid .btn {
    width: 100%;
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0 8px;
  }
  .go-panel .panel-actions .btn {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }
  .range-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    color: var(--muted);
  }
  input[type="range"] {
    width: 100%;
    accent-color: var(--green);
  }
  .zoom-control { margin-top: 12px; }
  .legend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(86px, 1fr));
    gap: 8px 12px;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
  }
  .swatch {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
    flex: 0 0 auto;
  }

  .control-grid { display: grid; gap: 8px; }
  .inline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 62px;
    overflow: auto;
    margin-top: 2px;
  }
  .check {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(9,13,14,.75);
    cursor: pointer;
  }
  .check:hover { background: var(--panel-2); }
  .check input { accent-color: var(--green); }
  .check span { flex: 1; }
  .check .search-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
  }
  .check .search-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.1;
  }
  .help {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 0;
  }

  .result-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(9,13,14,.75);
  }
  .result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }
  .seed-mono {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--green);
    font-family: "Cascadia Mono", Consolas, monospace;
  }
  .mini-actions { display: flex; gap: 5px; }
  .result-list { max-height: 58px; overflow: auto; }
  .result-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
  }
  .result-meta b { color: var(--text); font-weight: 600; }
  .empty-results {
    padding: 12px;
    border: 1px dashed rgba(235,246,240,.16);
    border-radius: var(--r);
    color: var(--muted);
    text-align: center;
  }
  .location-popover {
    z-index: 18;
    width: 278px;
    padding: 12px;
    display: none;
    background:
      linear-gradient(180deg, rgba(25,30,34,.98), rgba(12,16,18,.98)),
      #111719;
    border-color: rgba(235,246,240,.18);
  }
  .location-popover.visible { display: block; }
  .popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }
  .popover-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 800;
  }
  .popover-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .popover-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 9px;
  }
  .popover-actions .btn { height: 30px; }

  .features-panel {
    box-shadow: 0 16px 38px rgba(0,0,0,.4), inset 0 2px rgba(140,255,99,.08);
  }
  .features-panel .layer-row:not(.is-off) {
    box-shadow: inset 3px 0 color-mix(in srgb, var(--icon), transparent 18%);
  }
  .map-panel .layer-row {
    width: 100%;
    grid-template-columns: 24px 1fr auto;
  }
  .detail-panel .selected-name,
  .popover-title {
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
  }
  .sidebar ::-webkit-scrollbar,
  .location-popover ::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }
  .sidebar ::-webkit-scrollbar-track,
  .location-popover ::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
  }
  .sidebar ::-webkit-scrollbar-thumb,
  .location-popover ::-webkit-scrollbar-thumb {
    background: rgba(177,186,183,.42);
    border-radius: 999px;
    border: 2px solid rgba(12,16,18,.9);
  }
  .sidebar ::-webkit-scrollbar-thumb:hover,
  .location-popover ::-webkit-scrollbar-thumb:hover {
    background: rgba(140,255,99,.5);
  }

  @media (max-width: 1320px) {
    .topbar {
      grid-template-columns: minmax(118px, 148px) minmax(0, 1fr);
      align-items: start;
    }
    .seed-form {
      grid-template-columns: minmax(180px, 1fr) 112px 112px auto auto;
    }
    .top-actions {
      grid-column: 2;
      justify-content: flex-start;
    }
  }

  @media (max-width: 1120px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
      grid-template-columns: repeat(2, minmax(260px, 1fr));
      max-height: 46vh;
      overflow: auto;
      padding-right: 4px;
    }
    .searchbar { display: none; }
    .topbar { grid-template-columns: 1fr; height: auto; padding-inline: 16px; }
    .brand { min-width: 0; }
    .seed-form { grid-template-columns: minmax(0, 1fr) 112px 112px; }
    .seed-form .btn {
      justify-self: start;
      min-width: 112px;
    }
    .top-actions { grid-column: auto; justify-content: flex-start; }
  }
  @media (max-width: 720px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
      left: 8px;
      right: 8px;
      bottom: 8px;
      grid-template-columns: 1fr;
      gap: 8px;
      max-height: 52vh;
      min-height: 0;
    }
    .section { padding: 10px; }
    .seed-form { grid-template-columns: 1fr 104px; }
    #dimension-select { grid-column: 1 / -1; }
    .seed-form .btn:not(.primary) { display: none; }
    .seed-form .btn {
      min-width: 0;
      width: 100%;
    }
    .brand-text strong { font-size: 15px; }
    .brand-text span { font-size: 11px; }
    .brand-mark { width: 36px; height: 36px; }
    .status { max-width: calc(100% - 28px); overflow: hidden; top: 10px; }
    .stat { min-width: auto; }
    .zoom-stack { bottom: 56vh; }
    .location-popover { width: min(258px, calc(100vw - 24px)); }
  }

  
  :root {
    --accent: #8cff63;
    --ring: 0 0 0 3px rgba(140, 255, 99, .30);
    --r: 9px;
    --panel-radius: 11px;
  }

  
  .btn:focus-visible,
  .icon-only:focus-visible,
  .mini-link:focus-visible,
  .layer-row:focus-visible,
  .menu-toggle:focus-visible,
  .check:focus-visible,
  .field:focus-visible,
  .select:focus-visible,
  .number:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-color: rgba(140, 255, 99, .7);
  }

  
  .btn {
    transition: transform .12s cubic-bezier(.2, .7, .3, 1), border-color .15s, background .15s, box-shadow .15s, color .12s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 16px rgba(0, 0, 0, .26);
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .3); }
  .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 22px rgba(101, 221, 73, .26); }
  .btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 28px rgba(101, 221, 73, .34); }

  
  .section {
    border-radius: var(--panel-radius);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, .4),
      0 2px 0 rgba(0, 0, 0, .22),
      inset 0 1px rgba(255, 255, 255, .07);
  }
  .section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 255, 99, .5), transparent);
    opacity: .55;
    pointer-events: none;
  }
  .sidebar:not(.is-collapsed) .section {
    animation: panel-in .26s cubic-bezier(.2, .7, .3, 1) both;
  }
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  
  .layer-row {
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  }
  .layer-row:active { transform: scale(.985); }
  .layer-row:not(.is-off):not(.is-disabled) {
    border-color: color-mix(in srgb, var(--icon), transparent 55%);
  }

  
  .chunk-pill {
    border-radius: 999px;
    padding: 7px 13px 7px 10px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(26, 32, 30, .96), rgba(13, 17, 18, .96));
    border: 1px solid rgba(140, 255, 99, .28);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
    animation: pill-pulse 1.8s ease-in-out infinite;
  }
  .chunk-pill .dot-spin { border-top-color: var(--accent); }
  @keyframes pill-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, .34), 0 0 0 0 rgba(140, 255, 99, 0); }
    50%      { box-shadow: 0 8px 22px rgba(0, 0, 0, .34), 0 0 0 4px rgba(140, 255, 99, .1); }
  }

  
  .loader-box { border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
  .toast {
    border-radius: 999px;
    border: 1px solid rgba(140, 255, 99, .26);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
  .empty-icon { border-radius: 20px; }

  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
  }

  
  :root {
    --ui-bg: #17162a;
    --ui-bg-2: #23223a;
    --ui-bg-3: #2e2d48;
    --ui-line: rgba(134, 129, 190, .22);
    --ui-line-strong: rgba(154, 139, 255, .58);
    --ui-text: #f1f2ff;
    --ui-muted: #a7a7c2;
    --ui-faint: #737391;
    --ui-blue: #1687ff;
    --ui-purple: #693af4;
    --ui-shadow: 0 10px 28px rgba(0, 0, 0, .48);
    --r: 5px;
    --panel-radius: 8px;
    --bottom-h: 0px;
  }

  body {
    background: #111;
    font: 12px/1.35 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .app {
    position: relative;
    height: 100vh;
    display: block;
    overflow: hidden;
    background: #111;
  }

  .layout {
    position: absolute;
    inset: 24px 10px 8px;
    display: block;
    min-height: 0;
    border: 3px solid #7437ff;
    box-shadow: inset 0 0 0 1px rgba(170, 127, 255, .35);
    overflow: hidden;
    background: #07110f;
  }

  .layout::before {
    content: "";
    position: absolute;
    z-index: 20;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 226px;
    border-radius: 9px;
    background: rgba(24, 23, 41, .97);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(154, 139, 255, .12);
    pointer-events: none;
  }

  .map-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #07110f;
  }

  .topbar {
    position: absolute;
    z-index: 25;
    left: 18px;
    top: 40px;
    width: 214px;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .brand,
  #dimension-select {
    display: none;
  }

  .seed-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
  }

  .top-actions {
    position: absolute;
    right: 0;
    top: 0;
    display: grid;
    grid-template-columns: 28px 28px;
    gap: 5px;
  }

  .field,
  .select,
  .number {
    height: 29px;
    border: 0;
    border-radius: 4px;
    background: #323149;
    color: var(--ui-text);
    box-shadow: none;
    font-size: 10px;
  }

  .field {
    padding: 0 76px 0 10px;
  }

  .select {
    padding: 0 9px;
    appearance: auto;
  }

  .number {
    padding: 0 10px;
    font-family: inherit;
  }

  .field:focus,
  .select:focus,
  .number:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(22, 135, 255, .42);
    background: #3a3955;
  }

  .btn {
    height: 29px;
    border: 0;
    border-radius: 4px;
    background: #3b3a56;
    color: var(--ui-text);
    box-shadow: none;
    font-size: 11px;
    font-weight: 700;
  }

  .btn:hover {
    transform: none;
    background: #464563;
  }

  .btn:active {
    transform: translateY(1px);
  }

  .btn.primary {
    height: 35px;
    background: linear-gradient(180deg, #137cff, #0967ef);
    color: white;
    font-weight: 800;
    box-shadow: none;
  }

  .btn.primary:hover {
    background: linear-gradient(180deg, #2188ff, #0d70ff);
  }

  .top-actions .btn {
    width: 28px;
    height: 29px;
    padding: 0;
    background: #3f3e5b;
  }

  .top-actions .btn span {
    display: none;
  }

  .seed-form #random-btn {
    width: 100%;
    justify-content: center;
    gap: 4px;
    background: #3b3a56;
    color: white;
  }

  .sidebar {
    position: absolute;
    z-index: 24;
    left: 16px;
    top: 150px;
    bottom: 16px;
    width: 226px;
    min-height: 0;
    display: block;
    padding: 0;
    pointer-events: none;
    transform: none;
    overflow: visible;
  }

  .menu-toggle {
    display: none;
  }

  .section {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    pointer-events: auto;
  }

  .section::before {
    display: none;
  }

  .features-panel {
    position: absolute;
    inset: 0 0 92px 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .features-panel .section-title {
    flex: 0 0 auto;
    height: 28px;
    margin: 0;
    padding: 0 12px;
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
  }

  .title-actions {
    gap: 5px;
  }

  #struct-total {
    display: none;
  }

  .mini-link {
    height: 21px;
    min-width: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #2f2e45;
    color: white;
    font-size: 11px;
    font-weight: 800;
  }

  #select-all-features {
    background: var(--ui-blue);
  }

  .features-panel .layer-list {
    flex: 1 1 auto;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    overflow: auto;
    padding: 0 8px 8px 8px;
    align-content: start;
  }

  .layer-row {
    width: 100%;
    min-height: 23px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    padding: 2px 6px 2px 3px;
    border: 0;
    border-radius: 3px;
    background: rgba(35, 34, 58, .96);
    color: var(--ui-text);
    box-shadow: none !important;
    font-size: 10px;
    font-weight: 800;
  }

  .layer-row:hover {
    background: #302f4d;
    border-color: transparent;
    transform: none;
  }

  .layer-row.is-off {
    opacity: .42;
    filter: grayscale(.25) saturate(.75);
  }

  .layer-row.is-disabled {
    opacity: .36;
    border-style: none;
  }

  .layer-icon {
    width: 17px;
    height: 17px;
    border-radius: 3px;
    background: #141421;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
  }

  .layer-icon svg {
    width: 12px;
    height: 12px;
  }

  .layer-icon img {
    border-radius: 3px;
  }

  .count {
    min-width: 24px;
    padding: 1px 5px;
    border: 0;
    border-radius: 999px;
    background: #171629;
    color: #deddf1;
    font: 9px "Cascadia Mono", Consolas, monospace;
  }

  .switch {
    display: none;
  }

  .go-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9px;
    border-radius: 8px 8px 0 0;
    background: rgba(28, 27, 45, .98);
    box-shadow: var(--ui-shadow);
  }

  .go-panel .section-title {
    display: none;
  }

  .go-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .go-grid .btn {
    grid-column: 1 / -1;
  }

  .go-panel .panel-actions {
    display: none;
  }

  .detail-panel {
    display: none;
  }

  .map-panel {
    position: fixed;
    top: 36px;
    right: 18px;
    z-index: 28;
    width: 152px;
    display: grid;
    gap: 7px;
    padding: 0;
    pointer-events: auto;
  }

  .map-panel .section-title,
  .zoom-control {
    display: none;
  }

  .map-panel .layer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    overflow: visible;
    padding: 0;
  }

  .map-panel .layer-row {
    min-height: 30px;
    grid-template-columns: 23px 1fr auto;
    padding: 4px 7px 4px 5px;
    border-radius: 5px;
    background: rgba(18, 18, 31, .94);
    box-shadow: 0 5px 16px rgba(0,0,0,.42) !important;
    font-size: 11px;
  }

  .map-panel .layer-icon {
    width: 23px;
    height: 23px;
    border-radius: 4px;
    background: #2d2c44;
  }

  .map-panel .count {
    min-width: 28px;
    background: #1d8cff;
    color: white;
    font-family: inherit;
    font-size: 9px;
    text-transform: lowercase;
  }

  .map-panel .count.muted {
    background: #2d2c44;
    color: #b7b6cc;
  }

  .floating {
    border: 0;
    border-radius: 5px;
    background: rgba(24, 24, 39, .94);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
    backdrop-filter: blur(8px);
  }

  .seed-card,
  .compass,
  .distance-note {
    display: none !important;
  }

  .status {
    left: 50%;
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
    gap: 6px;
    padding: 5px 7px;
    color: #c9c8db;
    font-size: 10px;
  }

  .stat {
    min-width: auto;
    padding: 0;
    font-family: inherit;
  }

  .stat b {
    color: white;
    font-weight: 700;
  }

  .divider {
    height: 18px;
    background: rgba(255,255,255,.12);
  }

  .status .icon-only {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #474660;
  }

  .zoom-stack {
    right: 8px;
    bottom: 28px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #181827;
  }

  .zoom-stack .icon-only {
    width: 29px;
    height: 29px;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: white;
  }

  .zoom-stack .icon-only + .icon-only {
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .chunk-pill {
    left: 50%;
    top: auto;
    bottom: 45px;
    transform: translateX(-50%);
    padding: 6px 9px;
    border: 0;
    border-radius: 5px;
    background: rgba(24, 24, 39, .94);
    color: white;
    box-shadow: 0 8px 22px rgba(0,0,0,.38);
    animation: none;
    font-size: 10px;
  }

  .tooltip {
    min-width: 130px;
    padding: 9px 10px;
    border-radius: 5px;
    background: rgba(20, 22, 34, .94);
    color: white;
  }

  .tooltip strong {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .tooltip span {
    color: #b2b1c6;
    font-family: inherit;
    font-size: 10px;
  }

  .location-popover {
    width: 198px;
    padding: 8px;
    border: 0;
    border-radius: 5px;
    background: rgba(30, 29, 48, .98);
    box-shadow: 0 12px 28px rgba(0,0,0,.55);
  }

  .popover-head {
    margin-bottom: 7px;
  }

  .popover-title {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 11px;
  }

  .popover-title .layer-icon {
    width: 19px;
    height: 19px;
  }

  .location-popover .icon-only {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: white;
  }

  .coord-grid {
    gap: 5px 8px;
    color: #aaa9c0;
    font-size: 10px;
  }

  .coord-grid b {
    color: white;
    font-family: inherit;
  }

  .popover-actions {
    gap: 5px;
    margin-top: 8px;
  }

  .popover-actions .btn {
    height: 25px;
    background: #4a4864;
    font-size: 10px;
  }

  .loader {
    background: rgba(7, 7, 12, .48);
  }

  .loader-box,
  .toast {
    background: rgba(30, 29, 48, .98);
    border: 0;
    border-radius: 6px;
  }

  .empty {
    padding-bottom: 0;
  }

  .empty-inner {
    padding: 18px;
    border-radius: 8px;
    background: rgba(30, 29, 48, .92);
    box-shadow: var(--ui-shadow);
  }

  .empty-icon {
    display: none;
  }

  .empty h1 {
    font-size: 16px;
  }

  .empty p {
    color: var(--ui-muted);
    font-size: 11px;
  }

  .sidebar ::-webkit-scrollbar,
  .location-popover ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  .sidebar ::-webkit-scrollbar-track,
  .location-popover ::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar ::-webkit-scrollbar-thumb,
  .location-popover ::-webkit-scrollbar-thumb {
    background: #5a5874;
    border: 0;
    border-radius: 99px;
  }

  @media (max-width: 720px) {
    .layout {
      inset: 8px;
    }
    .topbar {
      left: 16px;
      top: 18px;
      width: min(214px, calc(100vw - 32px));
    }
    .sidebar {
      left: 16px;
      top: 128px;
      bottom: 12px;
      width: min(226px, calc(100vw - 32px));
      max-height: none;
      display: block;
      overflow: visible;
    }
    .map-panel {
      top: 18px;
      right: 16px;
      width: 136px;
    }
    .status {
      max-width: calc(100% - 32px);
    }
  }

  
  .layout {
    inset: 0;
    border: 0;
    box-shadow: none;
  }

  .layout::before {
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 320px;
    border-radius: 12px;
    background: rgba(24, 23, 41, .985);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .52), inset 0 0 0 1px rgba(120, 117, 166, .18);
  }

  .topbar {
    left: 24px;
    top: 24px;
    width: 288px;
  }

  .seed-form {
    gap: 8px;
  }

  .field,
  .select {
    height: 40px;
    border-radius: 5px;
    background: #34334d;
    font-size: 14px;
  }

  .field {
    padding: 0 104px 0 12px;
  }

  .select {
    padding: 0 12px;
  }

  .top-actions {
    grid-template-columns: 40px 40px;
    gap: 8px;
  }

  .top-actions .btn {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #44435f;
  }

  .top-actions .btn svg {
    width: 17px;
    height: 17px;
  }

  .seed-form #random-btn {
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    background: #4a4966;
  }

  .sidebar {
    left: 8px;
    top: 168px;
    bottom: 8px;
    width: 320px;
  }

  .features-panel {
    inset: 0 0 128px 0;
  }

  .features-panel .section-title {
    height: 42px;
    padding: 0 16px;
    border-top: 1px solid rgba(139, 136, 176, .34);
    font-size: 15px;
  }

  .title-actions {
    gap: 8px;
  }

  .mini-link {
    height: 29px;
    min-width: 64px;
    border-radius: 5px;
    font-size: 14px;
  }

  .features-panel .layer-list {
    gap: 7px;
    padding: 0 16px 10px 16px;
  }

  .layer-row {
    min-height: 30px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 3px 8px 3px 4px;
    border-radius: 7px;
    background: rgba(35, 34, 57, .98);
    font-size: 14px;
  }

  .layer-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .layer-icon svg {
    width: 15px;
    height: 15px;
  }

  .layer-icon img {
    border-radius: 6px;
  }

  .count {
    min-width: 32px;
    padding: 2px 7px;
    font-size: 11px;
  }

  .go-panel {
    padding: 16px;
    border-radius: 9px 9px 0 0;
  }

  .go-grid {
    gap: 8px;
  }

  .number {
    height: 40px;
    border-radius: 5px;
    background: #34334d;
    font-size: 14px;
  }

  .go-grid .btn {
    height: 40px;
    border-radius: 5px;
    font-size: 15px;
  }

  .map-panel {
    top: 8px;
    right: 8px;
    width: 220px;
    gap: 8px;
  }

  .map-panel .layer-row {
    min-height: 43px;
    grid-template-columns: 34px 1fr auto;
    padding: 5px 8px 5px 5px;
    border-radius: 8px;
    background: rgba(19, 19, 33, .96);
    font-size: 14px;
  }

  .map-panel .layer-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .map-panel .layer-icon svg {
    width: 19px;
    height: 19px;
  }

  .map-panel .count {
    min-width: 39px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .location-popover {
    width: 278px;
    padding: 12px;
    border-radius: 7px;
    background: rgba(28, 27, 45, .985);
  }

  .popover-title {
    font-size: 14px;
  }

  .popover-title .layer-icon {
    width: 28px;
    height: 28px;
  }

  .location-popover .icon-only {
    width: 28px;
    height: 28px;
  }

  .coord-grid {
    font-size: 12px;
  }

  .popover-actions .btn {
    height: 37px;
    border-radius: 4px;
    font-size: 14px;
  }

  .tooltip {
    min-width: 182px;
    padding: 11px 12px;
    border-radius: 8px;
  }

  .tooltip strong {
    font-size: 14px;
  }

  .tooltip span {
    font-size: 12px;
  }

  .status {
    bottom: 8px;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 12px;
    background: rgba(36, 38, 58, .94);
  }

  .status .icon-only {
    width: 32px;
    height: 32px;
  }

  .zoom-stack {
    right: 8px;
    bottom: 8px;
    border-radius: 4px;
  }

  .zoom-stack .icon-only {
    width: 40px;
    height: 40px;
  }

  .chunk-pill {
    bottom: 55px;
  }

  
  :root {
    --premium-radius: 14px;
    --premium-radius-sm: 10px;
    --premium-ease: cubic-bezier(.2, .8, .2, 1);
    --premium-glow: 0 18px 42px rgba(0, 0, 0, .48), 0 0 0 1px rgba(139, 124, 255, .10);
  }

  .layout::before {
    border-radius: 18px;
    box-shadow:
      0 18px 48px rgba(0, 0, 0, .58),
      inset 0 0 0 1px rgba(161, 153, 221, .14),
      inset 0 1px 0 rgba(255,255,255,.05);
  }

  .field,
  .select,
  .number,
  .btn,
  .top-actions .btn,
  .mini-link,
  .layer-row,
  .layer-icon,
  .count,
  .map-panel .layer-row,
  .map-panel .layer-icon,
  .go-panel,
  .location-popover,
  .tooltip,
  .status,
  .zoom-stack,
  .chunk-pill,
  .loader-box,
  .toast {
    border-radius: var(--premium-radius-sm);
  }

  .go-panel,
  .location-popover,
  .tooltip,
  .status,
  .map-panel .layer-row,
  .chunk-pill,
  .loader-box {
    box-shadow: var(--premium-glow);
  }

  .field,
  .select,
  .number,
  .btn,
  .mini-link,
  .icon-only,
  .layer-row,
  .location-popover,
  .tooltip,
  .status,
  .zoom-stack,
  .chunk-pill {
    transition:
      transform .22s var(--premium-ease),
      opacity .22s var(--premium-ease),
      background .22s var(--premium-ease),
      box-shadow .22s var(--premium-ease),
      filter .22s var(--premium-ease);
  }

  .field:hover,
  .select:hover,
  .number:hover {
    background: #3b3a58;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  }

  .btn:hover,
  .mini-link:hover,
  .icon-only:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
  }

  .btn:active,
  .mini-link:active,
  .icon-only:active,
  .layer-row:active {
    transform: translateY(1px) scale(.985);
  }

  .layer-row {
    position: relative;
    overflow: hidden;
  }

  .layer-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.08) 42%, transparent 70%);
    transform: translateX(-125%);
    transition: transform .55s var(--premium-ease);
    pointer-events: none;
  }

  .layer-row:hover {
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.22) !important;
  }

  .layer-row:hover::after {
    transform: translateX(125%);
  }

  .layer-icon {
    transition: transform .22s var(--premium-ease), box-shadow .22s var(--premium-ease);
  }

  .layer-row:hover .layer-icon {
    transform: scale(1.06);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 12px rgba(0,0,0,.28);
  }

  .features-panel .layer-list {
    scroll-behavior: smooth;
  }

  .topbar,
  .sidebar,
  .map-panel,
  .status,
  .zoom-stack {
    animation: premium-rise .42s var(--premium-ease) both;
  }

  .map-panel {
    animation-delay: .04s;
  }

  .status,
  .zoom-stack {
    animation-delay: .08s;
  }

  @keyframes premium-rise {
    from {
      opacity: 0;
      transform: translateY(10px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .status {
    animation-name: premium-rise-centered;
  }

  @keyframes premium-rise-centered {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(10px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  .location-popover.visible,
  .tooltip.visible,
  .toast.visible,
  .chunk-pill.visible {
    animation: premium-pop .2s var(--premium-ease) both;
  }

  .chunk-pill.visible {
    animation-name: premium-pop-centered;
  }

  @keyframes premium-pop {
    from {
      opacity: 0;
      transform: translateY(8px) scale(.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes premium-pop-centered {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(8px) scale(.96);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  .status {
    overflow: hidden;
  }

  .status::before,
  .location-popover::before,
  .go-panel::before,
  .map-panel .layer-row::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.075), transparent 45%);
    pointer-events: none;
  }

  .go-panel,
  .location-popover,
  .status,
  .map-panel .layer-row {
    position: relative;
    overflow: hidden;
  }

  .btn.primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(20, 111, 255, .34);
  }

  .btn.primary::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -35%;
    width: 42%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    animation: premium-sweep 2.6s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes premium-sweep {
    0%, 42% { left: -45%; }
    68%, 100% { left: 118%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .topbar,
    .sidebar,
    .map-panel,
    .status,
    .zoom-stack,
    .location-popover.visible,
    .tooltip.visible,
    .toast.visible,
    .chunk-pill.visible,
    .btn.primary::after {
      animation: none !important;
    }
  }

  .feature-scroll {
    min-height: 0;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    padding: 0 16px 12px;
  }

  .features-panel .feature-scroll .layer-list {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .sub-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
    color: #d5d7ea;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .sub-title.with-actions span:last-child {
    display: inline-flex;
    gap: 6px;
  }

  .finder-box {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(139, 136, 176, .22);
    border-radius: 10px;
    background: rgba(24, 23, 41, .66);
  }

  .finder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .finder-grid .select,
  .finder-grid .number,
  .finder-grid .btn {
    min-width: 0;
    height: 34px;
  }

  .finder-grid .select:first-child,
  .finder-grid .btn {
    grid-column: 1 / -1;
  }

  .finder-status {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(10, 12, 16, .6);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    color: #7a8a84;
    font-size: 11px;
    line-height: 1.5;
  }

  .finder-results {
    display: grid;
    gap: 6px;
  }

  .finder-result {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(35, 34, 57, .94);
    color: white;
    cursor: pointer;
    text-align: left;
  }

  .finder-result:hover {
    background: #3b3a58;
  }

  .finder-result b,
  .finder-result small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .finder-result small {
    color: #b9b8ce;
    font-size: 10px;
  }

  .finder-result strong {
    color: #8cff63;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 11px;
  }

  .biome-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .biome-row {
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    min-height: 28px;
  }

  .biome-swatch {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 4px 10px rgba(0,0,0,.24);
  }

  .biome-row.is-off .biome-swatch {
    filter: grayscale(1) brightness(.55);
  }

  
  .topbar,
  .sidebar {
    animation: premium-fade .32s var(--premium-ease) both !important;
    transform: none !important;
  }

  .map-panel {
    position: fixed !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: premium-fade .32s var(--premium-ease) both !important;
  }

  @keyframes premium-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  
  .sidebar {
    top: 176px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: 320px !important;
    position: absolute !important;
    transform: none !important;
    overflow: visible !important;
  }

  .features-panel {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .features-panel .layer-list {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 12px !important;
  }

  .go-panel {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 2 !important;
    transform: none !important;
  }

  .go-panel::before {
    border-radius: inherit;
  }

  .layout::before {
    width: 320px !important;
  }

  
  html,
  body,
  .app {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #07110f !important;
  }

  .layout,
  .map-stage,
  #map-canvas {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .topbar {
    top: 16px !important;
  }

  .layout::before {
    top: 8px !important;
  }

  .sidebar {
    top: 160px !important;
  }

  
  @media (max-width: 1500px) {
    .layout::before {
      width: 300px !important;
    }
    .topbar {
      width: 268px !important;
    }
    .sidebar {
      width: 300px !important;
    }
    .map-panel {
      width: 196px !important;
    }
    .layer-row {
      font-size: 13px;
    }
  }

  @media (max-width: 1100px) {
    .layout::before {
      width: 270px !important;
      border-radius: 14px;
    }
    .topbar {
      left: 14px !important;
      top: 14px !important;
      width: 242px !important;
    }
    .sidebar {
      left: 8px !important;
      top: 146px !important;
      width: 270px !important;
    }
    .field,
    .select {
      height: 36px;
      font-size: 12px;
    }
    .top-actions {
      grid-template-columns: 36px 36px;
      gap: 6px;
    }
    .top-actions .btn {
      width: 36px;
      height: 36px;
    }
    .seed-form #random-btn {
      height: 34px;
      font-size: 12px;
    }
    .features-panel .section-title {
      height: 36px;
      padding-inline: 12px;
      font-size: 13px;
    }
    .mini-link {
      height: 26px;
      min-width: 54px;
      font-size: 12px;
    }
    .features-panel .layer-list {
      padding-inline: 10px;
      gap: 6px;
    }
    .layer-row {
      min-height: 28px;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      font-size: 12px;
    }
    .layer-icon {
      width: 23px;
      height: 23px;
    }
    .count {
      min-width: 28px;
      font-size: 10px;
    }
    .go-panel {
      padding: 12px;
    }
    .number,
    .go-grid .btn {
      height: 36px;
      font-size: 12px;
    }
    .map-panel {
      width: 176px !important;
    }
    .map-panel .layer-row {
      min-height: 38px;
      grid-template-columns: 30px 1fr auto;
      font-size: 12px;
    }
    .map-panel .layer-icon {
      width: 30px;
      height: 30px;
    }
  }

  @media (max-width: 760px) {
    .layout::before {
      left: 6px !important;
      top: 6px !important;
      bottom: auto !important;
      width: calc(100% - 12px) !important;
      height: 132px !important;
    }
    .topbar {
      left: 16px !important;
      top: 16px !important;
      width: calc(100% - 32px) !important;
    }
    .field {
      padding-right: 90px;
    }
    .sidebar {
      left: 6px !important;
      right: 6px !important;
      top: auto !important;
      bottom: 6px !important;
      width: auto !important;
      height: min(48vh, 360px) !important;
    }
    .features-panel {
      bottom: 112px !important;
    }
    .features-panel .layer-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .layer-row {
      font-size: 11px;
    }
    .go-panel {
      border-radius: 14px;
    }
    .map-panel {
      top: 154px !important;
      right: 8px !important;
      width: 152px !important;
    }
    .map-panel .layer-row {
      min-height: 34px;
      grid-template-columns: 26px 1fr auto;
      font-size: 11px;
    }
    .map-panel .layer-icon {
      width: 26px;
      height: 26px;
    }
    .zoom-stack {
      bottom: calc(min(48vh, 360px) + 16px);
    }
    .location-popover {
      width: min(278px, calc(100vw - 20px));
    }
  }

  .features-panel .feature-scroll {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 16px 18px !important;
  }

  .features-panel .feature-scroll .layer-list {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .features-panel .struct-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
    max-height: 248px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
  }

  .features-panel .biome-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    max-height: 248px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
  }

  .features-panel .finder-box,
  .features-panel .sub-title {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .features-panel .finder-box {
    margin: 2px 0 !important;
  }

  .features-panel .layer-row {
    min-width: 0 !important;
  }

  .features-panel .layer-label {
    min-width: 0 !important;
  }

  @media (max-width: 760px) {
    .features-panel .feature-scroll {
      padding: 0 10px 10px !important;
    }
    .features-panel .struct-list,
    .features-panel .biome-list {
      max-height: 190px !important;
    }
    .finder-grid {
      grid-template-columns: 1fr !important;
    }
  }

  .features-panel .feature-scroll > .finder-box {
    position: fixed !important;
    right: 56px !important;
    bottom: 16px !important;
    z-index: 26 !important;
    width: 320px !important;
    max-width: calc(100vw - 390px) !important;
    margin: 0 !important;
    padding: 12px !important;
    pointer-events: auto !important;
    background: rgba(28, 27, 45, .985) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(161, 153, 221, .14) !important;
  }

  .features-panel .feature-scroll > .finder-box .finder-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .features-panel .feature-scroll > .finder-box .finder-grid .select:first-child,
  .features-panel .feature-scroll > .finder-box .finder-grid .btn {
    grid-column: 1 / -1 !important;
  }

  .features-panel .feature-scroll > .finder-box .finder-results {
    max-height: 156px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }

  @media (max-width: 1100px) {
    .features-panel .feature-scroll > .finder-box {
      right: 56px !important;
      width: 286px !important;
      max-width: calc(100vw - 350px) !important;
    }
  }

  @media (max-width: 760px) {
    .features-panel .feature-scroll > .finder-box {
      left: 8px !important;
      right: 56px !important;
      bottom: calc(min(48vh, 360px) + 16px) !important;
      width: auto !important;
      max-width: none !important;
    }
    .features-panel .feature-scroll > .finder-box .finder-grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* ── Seed Finder Drawer ───────────────────────────── */
  .finder-drawer {
    position: fixed !important;
    top: 48px !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100 !important;
    width: 290px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--panel) !important;
    border-left: 1px solid var(--line) !important;
    box-shadow: -6px 0 24px rgba(0,0,0,.45) !important;
    pointer-events: auto !important;
    transition: transform .28s cubic-bezier(.2,.9,.3,1) !important;
  }

  .finder-drawer.is-hidden {
    transform: translateX(100%) !important;
  }

  /* Header — matches .section-title style */
  .finder-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--line) !important;
    flex-shrink: 0 !important;
    background: rgba(255,255,255,.022) !important;
  }

  .finder-head-text {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .finder-head-text svg {
    flex-shrink: 0;
    color: var(--green);
    opacity: .85;
  }

  .finder-head strong {
    color: var(--text) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
  }

  .finder-close-btn {
    flex-shrink: 0;
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    border: 1px solid var(--line) !important;
    background: transparent !important;
    color: var(--faint) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    cursor: pointer;
    display: grid !important;
    place-items: center !important;
    transition: background .15s, color .15s, border-color .15s !important;
  }

  .finder-close-btn:hover {
    background: rgba(255,80,60,.14) !important;
    border-color: rgba(255,80,60,.28) !important;
    color: var(--red) !important;
  }

  /* Scrollable content */
  .finder-scroll {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(177,186,183,.3) transparent !important;
  }

  .finder-scroll::-webkit-scrollbar { width: 4px; }
  .finder-scroll::-webkit-scrollbar-thumb { background: rgba(177,186,183,.3); border-radius: 4px; }

  /* Section cards — same feel as .section */
  .finder-section {
    display: grid !important;
    gap: 7px !important;
    padding: 10px !important;
    border-radius: var(--r) !important;
    border: 1px solid var(--line-soft) !important;
    background: rgba(255,255,255,.025) !important;
  }

  .finder-settings .finder-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .finder-field {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .finder-field span {
    color: var(--faint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .finder-settings .finder-grid .select,
  .finder-settings .finder-grid .number {
    min-width: 0 !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  /* Summary chips row */
  .finder-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 7px 8px !important;
    border-radius: var(--r) !important;
    background: rgba(255,255,255,.03) !important;
    border: 1px solid var(--line-soft) !important;
  }

  .finder-summary:empty { display: none !important; }

  .finder-summary.is-empty {
    align-items: center !important;
    min-height: 24px !important;
    color: var(--faint) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }

  /* Footer — flush to bottom, no extra gap */
  .finder-footer {
    flex-shrink: 0 !important;
    padding: 8px !important;
    border-top: 1px solid var(--line) !important;
    background: var(--panel) !important;
  }

  .finder-search-btn {
    width: 100% !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: var(--r) !important;
    background: linear-gradient(135deg, #3ab554, #27963f) !important;
    box-shadow: 0 2px 12px rgba(58,181,84,.25) !important;
    border: 1px solid rgba(100,210,120,.22) !important;
    color: #e8ffe8 !important;
    transition: filter .15s, transform .12s, box-shadow .15s !important;
  }

  .finder-search-btn:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 18px rgba(58,181,84,.36) !important;
  }

  .finder-search-btn:active {
    transform: translateY(0) !important;
    filter: brightness(.92) !important;
  }

  /* Results */
  .finder-results {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 1px !important;
  }

  .seed-result-card {
    display: grid;
    gap: 6px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255,255,255,.028);
    transition: border-color .15s;
  }

  .seed-result-card:hover { border-color: rgba(140,255,99,.22); }

  .seed-result-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .seed-result-meta {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
  }

  .seed-result-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seed-result-meta b {
    color: var(--text);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-weight: 800;
  }

  /* ── Tab pull-handle (always visible at right edge) ── */
  .finder-tab {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 200 !important;
    width: 36px !important;
    height: 108px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-left: 1px solid var(--line) !important;
    border-radius: 10px 0 0 10px !important;
    background: var(--panel) !important;
    box-shadow: -3px 0 0 rgba(140,255,99,.07), -6px 0 22px rgba(0,0,0,.55) !important;
    color: var(--muted) !important;
    cursor: pointer !important;
    transition: background .18s, color .18s, width .2s, box-shadow .18s, opacity .22s, transform .22s !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  .finder-tab svg {
    flex-shrink: 0 !important;
    color: var(--green) !important;
    opacity: .9 !important;
  }

  .finder-tab span {
    writing-mode: vertical-lr !important;
    text-orientation: mixed !important;
    transform: rotate(180deg) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    color: var(--muted) !important;
  }

  .finder-tab:hover {
    background: var(--panel-2) !important;
    color: var(--text) !important;
    width: 42px !important;
    box-shadow: -3px 0 0 rgba(140,255,99,.18), -8px 0 28px rgba(0,0,0,.6) !important;
  }

  .finder-tab:hover svg { opacity: 1 !important; }

  /* Hide tab when drawer is open */
  .finder-drawer:not(.is-hidden) ~ .finder-tab {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(110%) !important;
  }

  /* Responsive mobile */
  @media (max-width: 760px) {
    .finder-drawer {
      width: 100% !important;
      top: auto !important;
      bottom: 0 !important;
      height: 72vh !important;
      transform: translateY(0) !important;
      border-radius: 14px 14px 0 0 !important;
      border-left: none !important;
      border-top: 1px solid var(--line) !important;
      box-shadow: 0 -4px 24px rgba(0,0,0,.5) !important;
    }
    .finder-drawer.is-hidden {
      transform: translateY(100%) !important;
    }
    .finder-tab {
      top: auto !important;
      bottom: 0 !important;
      right: 16px !important;
      width: 96px !important;
      height: 30px !important;
      flex-direction: row !important;
      border-radius: 9px 9px 0 0 !important;
      border-left: none !important;
      border-top: 1px solid var(--line) !important;
      transform: none !important;
    }
    .finder-tab span {
      writing-mode: horizontal-tb !important;
      transform: none !important;
    }
    .finder-drawer:not(.is-hidden) ~ .finder-tab {
      transform: translateY(100%) !important;
    }
  }

  .sidebar .menu-toggle {
    left: auto !important;
    right: -27px !important;
    top: 50% !important;
    width: 28px !important;
    height: 76px !important;
    transform: translateY(-50%) !important;
    border-radius: 0 10px 10px 0 !important;
    border: 1px solid rgba(139, 136, 176, .34) !important;
    border-left: 0 !important;
    background: rgba(28, 27, 45, .985) !important;
    box-shadow: 10px 14px 28px rgba(0,0,0,.42) !important;
  }

  .sidebar .menu-toggle span {
    width: 10px !important;
    height: 10px !important;
    transform: rotate(135deg) !important;
  }

  .sidebar.is-collapsed {
    transform: translateX(calc(-100% + 10px)) !important;
  }

  .sidebar.is-collapsed .section {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .sidebar.is-collapsed .menu-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .sidebar.is-collapsed .menu-toggle span {
    transform: rotate(-45deg) !important;
  }

  @media (max-width: 760px) {
    .finder-open-btn {
      right: 56px !important;
      bottom: calc(min(48vh, 360px) + 16px) !important;
    }
  }

  .features-panel .biome-list {
    grid-template-columns: 1fr !important;
    max-height: 310px !important;
  }

  .features-panel .biome-row {
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    min-height: 34px !important;
    align-items: center !important;
  }

  .features-panel .biome-row .layer-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.2 !important;
  }

  .sidebar .menu-toggle {
    position: fixed !important;
    left: 328px !important;
    right: auto !important;
    top: 50% !important;
    z-index: 40 !important;
    width: 34px !important;
    height: 92px !important;
    display: grid !important;
    place-items: center !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .sidebar.is-collapsed .menu-toggle {
    left: 8px !important;
  }

  .sidebar .menu-toggle span {
    border-right-width: 3px !important;
    border-bottom-width: 3px !important;
  }

  @media (max-width: 1500px) {
    .sidebar .menu-toggle {
      left: 308px !important;
    }
  }

  @media (max-width: 1100px) {
    .sidebar .menu-toggle {
      left: 278px !important;
    }
  }

  @media (max-width: 760px) {
    .features-panel .biome-list {
      max-height: 230px !important;
    }
    .sidebar .menu-toggle {
      left: auto !important;
      right: 8px !important;
      top: auto !important;
      bottom: calc(min(48vh, 360px) + 10px) !important;
      width: 72px !important;
      height: 30px !important;
      transform: none !important;
      border-radius: 10px 10px 0 0 !important;
      border-left: 1px solid rgba(139, 136, 176, .34) !important;
    }
    .sidebar.is-collapsed .menu-toggle {
      right: 8px !important;
      left: auto !important;
      bottom: 8px !important;
    }
  }

  body.sidebar-hidden .topbar {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-360px) !important;
  }

  body.sidebar-hidden .layout::before {
    opacity: 0 !important;
    transform: translateX(-360px) !important;
    pointer-events: none !important;
  }

  body.sidebar-hidden .sidebar.is-collapsed {
    left: 0 !important;
    width: 0 !important;
    transform: none !important;
    pointer-events: none !important;
  }

  body.sidebar-hidden .sidebar.is-collapsed .section {
    display: none !important;
  }

  body.sidebar-hidden .sidebar.is-collapsed .menu-toggle {
    left: 8px !important;
    top: 50% !important;
    width: 36px !important;
    height: 96px !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    background: rgba(28, 27, 45, .98) !important;
    border: 1px solid rgba(139, 136, 176, .38) !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.5) !important;
  }

  body:not(.sidebar-hidden) .sidebar .menu-toggle {
    background: rgba(28, 27, 45, .98) !important;
  }

  .topbar,
  .layout::before,
  .sidebar,
  .sidebar .section,
  .sidebar .menu-toggle,
  .sidebar .menu-toggle span {
    transition:
      transform .32s cubic-bezier(.2, .8, .2, 1),
      opacity .24s ease,
      left .32s cubic-bezier(.2, .8, .2, 1),
      right .32s cubic-bezier(.2, .8, .2, 1),
      bottom .32s cubic-bezier(.2, .8, .2, 1),
      width .32s cubic-bezier(.2, .8, .2, 1),
      height .32s cubic-bezier(.2, .8, .2, 1),
      background .2s ease,
      box-shadow .2s ease !important;
  }

  body.sidebar-hidden .sidebar.is-collapsed .menu-toggle {
    animation: sidebar-handle-pop .28s cubic-bezier(.2, .8, .2, 1) both;
  }

  body:not(.sidebar-hidden) .sidebar .menu-toggle {
    animation: sidebar-handle-settle .28s cubic-bezier(.2, .8, .2, 1) both;
  }

  @keyframes sidebar-handle-pop {
    from {
      transform: translateY(-50%) translateX(-16px) scale(.92);
      opacity: .2;
    }
    to {
      transform: translateY(-50%) translateX(0) scale(1);
      opacity: 1;
    }
  }

  @keyframes sidebar-handle-settle {
    from {
      transform: translateY(-50%) translateX(-10px) scale(.96);
    }
    to {
      transform: translateY(-50%) translateX(0) scale(1);
    }
  }

  @media (max-width: 760px) {
    body.sidebar-hidden .topbar,
    body.sidebar-hidden .layout::before {
      transform: translateY(-180px) !important;
    }

    body.sidebar-hidden .sidebar.is-collapsed .menu-toggle {
      left: auto !important;
      right: 8px !important;
      top: auto !important;
      bottom: 8px !important;
      width: 76px !important;
      height: 34px !important;
      transform: none !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .topbar,
    .layout::before,
    .sidebar,
    .sidebar .section,
    .sidebar .menu-toggle,
    .sidebar .menu-toggle span {
      transition: none !important;
      animation: none !important;
    }
  }

  body.sidebar-hidden .topbar,
  body.sidebar-hidden .sidebar,
  body.sidebar-hidden .layout::before,
  body:not(.sidebar-hidden) .topbar,
  body:not(.sidebar-hidden) .sidebar,
  body:not(.sidebar-hidden) .layout::before {
    animation-name: none !important;
  }

  .finder-radius-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .finder-radius-presets .mini-link {
    width: 100%;
    height: 24px;
    padding: 0 4px;
    font-family: "Cascadia Mono", Consolas, monospace;
  }

  .finder-radius-presets .mini-link.is-active {
    color: #07100d;
    background: #8cff63;
    border-color: rgba(190,255,160,.55);
    box-shadow: 0 8px 18px rgba(140,255,99,.16);
  }

  .finder-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border-radius: 9px;
    background: rgba(10, 12, 18, .8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  }

  .finder-summary:empty {
    display: none;
  }

  .finder-summary.is-empty {
    display: flex;
    align-items: center;
    min-height: 28px;
    color: #5e6e68;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .finder-summary-chip {
    min-width: 0;
    max-width: 100%;
    min-height: 24px;
    display: inline-grid;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--chip), transparent 45%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--chip), transparent 82%);
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
  }

  .finder-summary-chip span {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--chip);
    box-shadow: 0 0 10px color-mix(in srgb, var(--chip), transparent 35%);
  }

  .finder-summary-chip b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: inherit;
  }

  .finder-summary-chip:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
  }

  .finder-picks {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-content: start;
  }

  .finder-pick-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #b9b8ce;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .finder-filter {
    width: 100%;
    height: 30px;
    min-width: 0;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    outline: 0;
    background: rgba(14, 14, 24, .86);
    color: #f4f2ff;
    font: 11px Inter, system-ui, sans-serif;
  }

  .finder-filter:focus {
    border-color: rgba(140,255,99,.55);
    box-shadow: 0 0 0 3px rgba(140,255,99,.10);
  }

  .finder-filter::placeholder {
    color: #8f8da8;
  }

  .finder-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 94px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 2px 3px;
  }

  .finder-empty {
    width: 100%;
    padding: 7px 8px;
    color: #8f8da8;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    background: rgba(14,14,24,.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  }

  .finder-chip-wrap {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 3px;
    max-width: 100%;
  }

  .finder-chip-wrap .finder-chip {
    border-radius: 8px 4px 4px 8px;
  }

  .finder-structure-list {
    max-height: 78px;
  }

  .finder-chip {
    min-width: 0;
    max-width: 100%;
    min-height: 27px;
    display: inline-grid;
    grid-template-columns: 17px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 5px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(20, 20, 33, .92);
    color: #d9d8ea;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    transition: transform .16s var(--premium-ease), background .16s, border-color .16s, box-shadow .16s;
  }

  .finder-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .finder-chip-count {
    min-width: 22px;
    padding: 1px 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--chip), transparent 58%);
    color: #ffffff;
    font: 800 10px "Cascadia Mono", Consolas, monospace;
    text-align: center;
  }

  .finder-chip-minus {
    width: 24px;
    min-height: 27px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px 8px 8px 4px;
    background: rgba(20, 20, 33, .92);
    color: #d9d8ea;
    cursor: pointer;
    font: 900 14px/1 "Cascadia Mono", Consolas, monospace;
    transition: transform .16s var(--premium-ease), background .16s, border-color .16s;
  }

  .finder-chip-minus:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--chip), transparent 72%);
    border-color: color-mix(in srgb, var(--chip), transparent 42%);
    color: white;
  }

  .finder-chip:hover {
    transform: translateY(-1px);
    background: rgba(43, 42, 68, .98);
    border-color: color-mix(in srgb, var(--chip), transparent 48%);
  }

  .finder-chip.is-selected {
    color: white;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--chip), transparent 58%), rgba(35, 34, 57, .98) 70%);
    border-color: color-mix(in srgb, var(--chip), transparent 32%);
    box-shadow:
      inset 3px 0 var(--chip),
      0 8px 18px color-mix(in srgb, var(--chip), transparent 84%);
  }

  .finder-chip-dot,
  .finder-chip-icon {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--chip);
    background: color-mix(in srgb, var(--chip), transparent 78%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  }

  .finder-chip-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: var(--chip);
  }

  .finder-chip-icon svg {
    width: 12px;
    height: 12px;
  }

  .finder-chip-icon img {
    width: 17px;
    height: 17px;
    display: block;
    border-radius: 5px;
    object-fit: contain;
  }


  .finder-open-btn.visible:hover {
    transform: translateY(-2px) !important;
  }

  .finder-head {
    cursor: default;
  }

  .finder-summary-chip,
  .finder-chip,
  .finder-chip-wrap,
  .seed-result-card {
    animation: finder-item-in .22s var(--premium-ease) both;
  }

  .finder-chip.is-selected {
    animation: finder-chip-selected .24s var(--premium-ease) both;
  }

  .finder-status {
    position: relative;
    overflow: hidden;
  }

  .finder-status::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }

  .finder-drawer:not(.is-hidden):not([aria-hidden="true"]) .finder-status::after {
    animation: finder-status-sheen 3.2s ease-in-out infinite;
  }

  @keyframes finder-panel-in {
    from {
      opacity: 0;
      transform: translateY(18px) scale(.96);
      filter: blur(2px);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes finder-item-in {
    from {
      opacity: 0;
      transform: translateY(5px) scale(.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes finder-chip-selected {
    0% { transform: scale(.96); }
    70% { transform: scale(1.03); }
    100% { transform: scale(1); }
  }

  @keyframes finder-open-pulse {
    0%, 100% {
      box-shadow: 0 18px 48px rgba(0, 0, 0, .48), 0 0 0 0 rgba(140,255,99,0);
    }
    50% {
      box-shadow: 0 18px 48px rgba(0, 0, 0, .48), 0 0 0 5px rgba(140,255,99,.12);
    }
  }

  @keyframes finder-status-sheen {
    0%, 70% {
      opacity: 0;
      transform: translateX(-120%);
    }
    82% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translateX(120%);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .finder-drawer,
    .finder-tab,
    .finder-summary-chip,
    .finder-chip,
    .finder-chip-wrap,
    .seed-result-card,
    .finder-status::after {
      animation: none !important;
      transition: none !important;
    }
  }

  .features-panel .biome-row.is-highlighted {
    color: #ffffff !important;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--icon), transparent 52%), rgba(35, 34, 58, .98) 64%) !important;
    box-shadow:
      inset 3px 0 var(--icon),
      0 0 0 1px color-mix(in srgb, var(--icon), transparent 35%),
      0 8px 20px color-mix(in srgb, var(--icon), transparent 82%) !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .features-panel .biome-row.is-highlighted .biome-swatch {
    filter: none !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.5),
      0 0 0 3px color-mix(in srgb, var(--icon), transparent 72%),
      0 0 16px color-mix(in srgb, var(--icon), transparent 30%) !important;
  }

  .features-panel .biome-row.is-highlighted .layer-label {
    text-shadow: 0 1px 8px rgba(0,0,0,.42);
  }

  .features-panel .biome-row.is-highlighted::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.13);
    pointer-events: none;
  }

  /* Seed Finder polish */
  .finder-drawer {
    top: 62px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: min(360px, calc(100vw - 28px)) !important;
    border: 1px solid rgba(235,246,240,.14) !important;
    border-radius: var(--panel-radius) !important;
    background:
      linear-gradient(180deg, rgba(31,37,38,.97), rgba(11,15,16,.965)),
      #101516 !important;
    box-shadow: 0 22px 52px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.06) !important;
    backdrop-filter: blur(14px) !important;
    overflow: hidden !important;
  }

  .finder-drawer.is-hidden {
    transform: translateX(calc(100% + 20px)) !important;
  }

  .finder-head {
    min-height: 52px !important;
    padding: 11px 12px !important;
    background:
      linear-gradient(180deg, rgba(39,48,47,.96), rgba(17,22,24,.94)) !important;
    border-bottom: 1px solid rgba(235,246,240,.13) !important;
    box-shadow: inset 0 -1px rgba(0,0,0,.28) !important;
  }

  .finder-head-text {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
  }

  .finder-head-text svg {
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    color: var(--green) !important;
    background: rgba(140,255,99,.10) !important;
    border: 1px solid rgba(140,255,99,.24) !important;
  }

  .finder-head strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
  }

  .finder-close-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: rgba(8,12,13,.55) !important;
    border-color: rgba(235,246,240,.14) !important;
  }

  .finder-scroll {
    gap: 10px !important;
    padding: 10px !important;
  }

  .finder-section {
    gap: 9px !important;
    padding: 10px !important;
    border: 1px solid rgba(235,246,240,.12) !important;
    border-radius: var(--panel-radius) !important;
    background:
      linear-gradient(180deg, rgba(20,25,26,.92), rgba(9,13,14,.88)) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.045) !important;
  }

  .finder-pick-head {
    color: #c8d3cf !important;
    font-size: 11px !important;
    letter-spacing: .08em !important;
  }

  .finder-pick-head .mini-link,
  .finder-section .mini-link {
    height: 28px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    color: #d7dfdc !important;
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(235,246,240,.13) !important;
  }

  .finder-pick-head .mini-link:hover,
  .finder-section .mini-link:hover {
    color: #07100d !important;
    background: var(--green) !important;
    border-color: rgba(190,255,160,.62) !important;
  }

  .finder-filter {
    height: 34px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    background: linear-gradient(180deg, #20272a, #14191b) !important;
    border-color: rgba(255,255,255,.13) !important;
    font-size: 12px !important;
  }

  .finder-filter::placeholder {
    color: var(--faint) !important;
  }

  .finder-filter:focus {
    border-color: rgba(140,255,99,.82) !important;
    box-shadow: 0 0 0 3px rgba(140,255,99,.13) !important;
    background: #101713 !important;
  }

  .finder-chip-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    max-height: 168px !important;
    padding: 1px 2px 3px !important;
  }

  .finder-structure-list {
    max-height: 132px !important;
  }

  .finder-chip-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 30px !important;
    gap: 4px !important;
  }

  .finder-chip {
    width: 100% !important;
    min-height: 34px !important;
    grid-template-columns: 24px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    padding: 5px 9px 5px 5px !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    background: rgba(8,12,13,.72) !important;
    border-color: rgba(235,246,240,.12) !important;
    font-size: 11px !important;
  }

  .finder-chip:hover {
    background: rgba(31,39,38,.96) !important;
    border-color: color-mix(in srgb, var(--chip), transparent 38%) !important;
  }

  .finder-chip.is-selected {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--chip), transparent 55%), rgba(31,39,38,.98) 74%) !important;
    border-color: color-mix(in srgb, var(--chip), transparent 32%) !important;
    box-shadow:
      inset 3px 0 var(--chip),
      0 10px 22px color-mix(in srgb, var(--chip), transparent 86%) !important;
  }

  .finder-chip-dot,
  .finder-chip-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.1), transparent),
      color-mix(in srgb, var(--chip), transparent 80%) !important;
    border: 1px solid color-mix(in srgb, var(--chip), transparent 48%) !important;
  }

  .finder-chip-dot::before {
    width: 12px !important;
    height: 12px !important;
    border-radius: 4px !important;
  }

  .finder-chip-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .finder-chip-icon img {
    width: 22px !important;
    height: 22px !important;
  }

  .finder-chip-minus {
    width: 30px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    background: rgba(8,12,13,.72) !important;
    border-color: rgba(235,246,240,.12) !important;
    color: var(--muted) !important;
  }

  .finder-settings .finder-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .finder-field span {
    color: var(--muted) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  .finder-settings .finder-grid .select,
  .finder-settings .finder-grid .number {
    height: 36px !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #20272a, #14191b) !important;
    border-color: rgba(255,255,255,.14) !important;
    color: var(--text) !important;
  }

  .finder-radius-presets {
    gap: 7px !important;
  }

  .finder-radius-presets .mini-link {
    height: 30px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.07) !important;
  }

  .finder-radius-presets .mini-link.is-active {
    color: #07100d !important;
    background: var(--green) !important;
    border-color: rgba(190,255,160,.62) !important;
    box-shadow: 0 10px 22px rgba(140,255,99,.18) !important;
  }

  .finder-summary {
    gap: 6px !important;
    padding: 8px !important;
    border: 1px solid rgba(235,246,240,.12) !important;
    border-radius: var(--panel-radius) !important;
    background: rgba(8,12,13,.74) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.045) !important;
  }

  .finder-summary.is-empty {
    min-height: 34px !important;
    color: var(--faint) !important;
  }

  .finder-summary-chip {
    min-height: 28px !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    background: color-mix(in srgb, var(--chip), transparent 84%) !important;
  }

  .finder-status {
    padding: 10px 11px !important;
    border-radius: var(--panel-radius) !important;
    color: var(--muted) !important;
    background: rgba(8,12,13,.62) !important;
    border: 1px solid rgba(235,246,240,.09) !important;
    line-height: 1.45 !important;
  }

  .finder-footer {
    padding: 10px !important;
    background:
      linear-gradient(180deg, rgba(17,22,24,.94), rgba(10,14,15,.98)) !important;
    border-top: 1px solid rgba(235,246,240,.13) !important;
  }

  .finder-search-btn {
    height: 42px !important;
    border-radius: 8px !important;
    color: #07100d !important;
    background: linear-gradient(180deg, #9dff70, #65dd49) !important;
    border-color: rgba(190,255,160,.55) !important;
    box-shadow: 0 16px 28px rgba(60,180,79,.22), inset 0 1px rgba(255,255,255,.25) !important;
    font-weight: 900 !important;
  }

  .finder-search-btn:hover {
    background: linear-gradient(180deg, #b3ff91, #77ef59) !important;
    box-shadow: 0 18px 34px rgba(60,180,79,.30), inset 0 1px rgba(255,255,255,.28) !important;
  }

  .seed-result-card {
    border-color: rgba(235,246,240,.12) !important;
    background: rgba(8,12,13,.72) !important;
  }

  .finder-tab {
    right: 18px !important;
    top: auto !important;
    bottom: calc(var(--bottom-h) + 24px) !important;
    width: 154px !important;
    height: 44px !important;
    flex-direction: row !important;
    gap: 9px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(190,255,160,.45) !important;
    border-radius: 8px !important;
    color: #07100d !important;
    background: linear-gradient(180deg, #9dff70, #65dd49) !important;
    box-shadow: 0 18px 38px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.06) inset !important;
    transform: none !important;
  }

  .finder-tab svg {
    width: 18px !important;
    height: 18px !important;
    color: #07100d !important;
    opacity: 1 !important;
  }

  .finder-tab span {
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
    transform: none !important;
    color: #07100d !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .finder-tab:hover {
    width: 162px !important;
    background: linear-gradient(180deg, #b3ff91, #77ef59) !important;
    box-shadow: 0 22px 46px rgba(0,0,0,.48), 0 0 0 4px rgba(140,255,99,.12) !important;
  }

  .finder-drawer:not(.is-hidden) ~ .finder-tab {
    transform: translateX(calc(100% + 32px)) !important;
  }

  @media (max-width: 760px) {
    .finder-drawer {
      right: 0 !important;
      bottom: 0 !important;
      width: 100% !important;
      height: min(78vh, 720px) !important;
      border-radius: 12px 12px 0 0 !important;
    }

    .finder-chip-list {
      grid-template-columns: 1fr !important;
      max-height: 150px !important;
    }

    .finder-structure-list {
      max-height: 118px !important;
    }

    .finder-tab {
      right: 12px !important;
      bottom: 14px !important;
      width: 148px !important;
      height: 42px !important;
      border-radius: 8px !important;
      transform: none !important;
    }

    .finder-tab span {
      display: inline !important;
    }

    .finder-drawer:not(.is-hidden) ~ .finder-tab {
      transform: translateY(120%) !important;
    }
  }

  /* Seed Finder final fit fixes */
  .finder-scroll {
    padding-bottom: 12px !important;
  }

  .finder-footer {
    padding: 8px 10px !important;
  }

  .finder-search-btn {
    height: 38px !important;
    color: #f3fff1 !important;
    background:
      linear-gradient(180deg, rgba(62,117,73,.98), rgba(38,75,48,.98)) !important;
    border-color: rgba(140,255,99,.38) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.16) !important;
  }

  .finder-search-btn svg {
    color: var(--green) !important;
  }

  .finder-search-btn:hover {
    background:
      linear-gradient(180deg, rgba(75,139,86,.98), rgba(45,88,55,.98)) !important;
    box-shadow: 0 13px 26px rgba(0,0,0,.34), 0 0 0 3px rgba(140,255,99,.08) !important;
  }

  .finder-status {
    min-height: 38px !important;
    margin-bottom: 2px !important;
  }

  .finder-tab {
    top: 76px !important;
    right: 18px !important;
    bottom: auto !important;
    width: 136px !important;
    height: 38px !important;
    gap: 8px !important;
    padding: 0 12px !important;
    color: var(--text) !important;
    background:
      linear-gradient(180deg, rgba(31,37,38,.97), rgba(13,17,18,.96)) !important;
    border-color: rgba(140,255,99,.32) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,.36), inset 3px 0 var(--green), inset 0 1px rgba(255,255,255,.07) !important;
  }

  .finder-tab svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--green) !important;
  }

  .finder-tab span {
    color: var(--text) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  .finder-tab:hover {
    width: 142px !important;
    background:
      linear-gradient(180deg, rgba(40,49,50,.98), rgba(18,24,25,.98)) !important;
    border-color: rgba(140,255,99,.55) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.42), inset 3px 0 var(--green), 0 0 0 3px rgba(140,255,99,.08) !important;
  }

  @media (max-width: 760px) {
    .finder-scroll {
      padding-bottom: 10px !important;
    }

    .finder-tab {
      top: auto !important;
      right: 12px !important;
      bottom: 14px !important;
      width: 136px !important;
      height: 38px !important;
    }
  }

  /* Seed Finder floating button placement */
  .finder-tab {
    top: 128px !important;
    right: 22px !important;
    width: 148px !important;
    height: 46px !important;
    padding: 0 12px 0 8px !important;
    gap: 10px !important;
    border-radius: 8px !important;
    background:
      linear-gradient(180deg, rgba(31,37,38,.98), rgba(12,16,17,.97)) !important;
    border: 1px solid rgba(235,246,240,.16) !important;
    box-shadow:
      0 18px 38px rgba(0,0,0,.42),
      inset 0 1px rgba(255,255,255,.07),
      inset 3px 0 rgba(140,255,99,.95) !important;
  }

  .finder-tab svg {
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    color: var(--green) !important;
    background: rgba(140,255,99,.10) !important;
    border: 1px solid rgba(140,255,99,.28) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.1) !important;
  }

  .finder-tab span {
    color: #f4f6f8 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .finder-tab:hover {
    width: 154px !important;
    background:
      linear-gradient(180deg, rgba(40,49,50,.99), rgba(16,22,23,.99)) !important;
    border-color: rgba(140,255,99,.42) !important;
    box-shadow:
      0 20px 42px rgba(0,0,0,.48),
      inset 0 1px rgba(255,255,255,.08),
      inset 3px 0 rgba(140,255,99,1),
      0 0 0 3px rgba(140,255,99,.08) !important;
  }

  @media (max-width: 760px) {
    .finder-tab {
      top: auto !important;
      right: 12px !important;
      bottom: 72px !important;
      width: 148px !important;
      height: 44px !important;
    }
  }

  /* Match Seed Finder button to the map control stack */
  .finder-tab {
    top: 112px !important;
    right: 8px !important;
    width: 220px !important;
    height: 43px !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    padding: 5px 8px 5px 5px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(139, 136, 176, .30) !important;
    color: #f4f2ff !important;
    background: rgba(19, 19, 33, .96) !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.42) !important;
    overflow: hidden !important;
  }

  .finder-tab::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    background: linear-gradient(180deg, rgba(255,255,255,.075), transparent 45%) !important;
    pointer-events: none !important;
  }

  .finder-tab svg {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 7px !important;
    border-radius: 7px !important;
    color: #5cc8f2 !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.10), transparent),
      #2d2c44 !important;
    border: 1px solid rgba(92,200,242,.42) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.10) !important;
  }

  .finder-tab span {
    color: #f4f2ff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .finder-tab:hover {
    width: 220px !important;
    background: rgba(28, 28, 47, .98) !important;
    border-color: rgba(92,200,242,.52) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.48), 0 0 0 3px rgba(92,200,242,.08) !important;
  }

  .finder-tab:hover svg {
    color: #8fe1ff !important;
    border-color: rgba(92,200,242,.62) !important;
  }

  @media (max-width: 760px) {
    .finder-tab {
      right: 8px !important;
      bottom: 64px !important;
      width: 220px !important;
      height: 43px !important;
    }
  }

  /* Seed Finder drawer cyan controls */
  .finder-drawer {
    --finder-accent: #5cc8f2;
    --finder-accent-soft: rgba(92,200,242,.12);
    --finder-accent-line: rgba(92,200,242,.42);
  }

  .finder-head-text svg {
    color: var(--finder-accent) !important;
    background: var(--finder-accent-soft) !important;
    border-color: var(--finder-accent-line) !important;
  }

  .finder-filter,
  .finder-settings .finder-grid .select,
  .finder-settings .finder-grid .number {
    height: 34px !important;
    border-radius: 8px !important;
    background: rgba(18, 23, 26, .95) !important;
    border-color: rgba(139,136,176,.26) !important;
  }

  .finder-filter:focus,
  .finder-settings .finder-grid .select:focus,
  .finder-settings .finder-grid .number:focus {
    border-color: var(--finder-accent-line) !important;
    box-shadow: 0 0 0 3px rgba(92,200,242,.12) !important;
    background: rgba(14, 20, 24, .98) !important;
  }

  .finder-pick-head .mini-link:hover,
  .finder-section .mini-link:hover {
    color: #061116 !important;
    background: var(--finder-accent) !important;
    border-color: rgba(143,225,255,.62) !important;
  }

  .finder-radius-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .finder-radius-presets .mini-link {
    height: 34px !important;
    border-radius: 8px !important;
    color: #d8d7ea !important;
    background: rgba(19, 19, 33, .96) !important;
    border-color: rgba(139,136,176,.22) !important;
  }

  .finder-radius-presets .mini-link.is-active {
    color: #061116 !important;
    background: var(--finder-accent) !important;
    border-color: rgba(143,225,255,.72) !important;
    box-shadow: 0 10px 22px rgba(92,200,242,.18) !important;
  }

  .finder-chip {
    min-height: 34px !important;
    border-color: rgba(139,136,176,.20) !important;
    background: rgba(12, 15, 18, .72) !important;
  }

  .finder-chip:hover {
    background: rgba(22, 27, 36, .96) !important;
    border-color: rgba(92,200,242,.36) !important;
  }

  .finder-chip.is-selected {
    background:
      linear-gradient(90deg, rgba(92,200,242,.22), rgba(25, 27, 43, .98) 74%) !important;
    border-color: rgba(92,200,242,.52) !important;
    box-shadow: inset 3px 0 var(--finder-accent), 0 10px 22px rgba(92,200,242,.10) !important;
  }

  .finder-chip-dot,
  .finder-chip-icon {
    background:
      linear-gradient(180deg, rgba(255,255,255,.10), transparent),
      #2d2c44 !important;
    border-color: rgba(92,200,242,.38) !important;
    color: var(--finder-accent) !important;
  }

  .finder-chip.is-selected .finder-chip-dot,
  .finder-chip.is-selected .finder-chip-icon {
    border-color: rgba(92,200,242,.62) !important;
  }

  .finder-chip.is-selected .finder-chip-dot::before {
    background: var(--finder-accent) !important;
  }

  .finder-chip-minus {
    min-height: 34px !important;
    background: rgba(19, 19, 33, .96) !important;
    border-color: rgba(139,136,176,.22) !important;
  }

  .finder-chip-minus:hover {
    color: #061116 !important;
    background: var(--finder-accent) !important;
    border-color: rgba(143,225,255,.62) !important;
  }

  .finder-summary-chip {
    min-height: 28px !important;
    background: rgba(92,200,242,.13) !important;
    border-color: rgba(92,200,242,.38) !important;
  }

  .finder-summary-chip span {
    background: var(--finder-accent) !important;
    box-shadow: 0 0 10px rgba(92,200,242,.38) !important;
  }

  .finder-search-btn {
    height: 43px !important;
    color: #061116 !important;
    background: linear-gradient(180deg, #8fe1ff, #5cc8f2) !important;
    border-color: rgba(143,225,255,.68) !important;
    box-shadow: 0 14px 28px rgba(20,111,255,.20), inset 0 1px rgba(255,255,255,.24) !important;
  }

  .finder-search-btn svg {
    color: #061116 !important;
  }

  .finder-search-btn:hover {
    background: linear-gradient(180deg, #a7e8ff, #6fd3ff) !important;
    box-shadow: 0 16px 32px rgba(20,111,255,.26), 0 0 0 3px rgba(92,200,242,.10) !important;
  }

  /* Seed Finder exact sidebar color/size match */
  .finder-drawer {
    --finder-accent: #1d8cff;
    --finder-accent-soft: rgba(29,140,255,.14);
    --finder-accent-line: rgba(29,140,255,.50);
    border-color: rgba(139,136,176,.30) !important;
    background: rgba(19, 19, 33, .96) !important;
  }

  .finder-head,
  .finder-section,
  .finder-summary,
  .finder-status,
  .finder-footer {
    background: rgba(19, 19, 33, .96) !important;
    border-color: rgba(139,136,176,.22) !important;
  }

  .finder-head-text svg,
  .finder-chip-dot,
  .finder-chip-icon {
    color: var(--finder-accent) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.10), transparent),
      #2d2c44 !important;
    border-color: rgba(29,140,255,.45) !important;
  }

  .finder-filter,
  .finder-settings .finder-grid .select,
  .finder-settings .finder-grid .number,
  .finder-chip,
  .finder-chip-minus,
  .finder-radius-presets .mini-link {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    background: rgba(14, 14, 24, .88) !important;
    border-color: rgba(139,136,176,.24) !important;
  }

  .finder-filter:focus,
  .finder-settings .finder-grid .select:focus,
  .finder-settings .finder-grid .number:focus {
    border-color: rgba(29,140,255,.68) !important;
    box-shadow: 0 0 0 3px rgba(29,140,255,.14) !important;
  }

  .finder-chip.is-selected {
    background:
      linear-gradient(90deg, rgba(29,140,255,.24), rgba(25, 25, 43, .98) 74%) !important;
    border-color: rgba(29,140,255,.64) !important;
    box-shadow: inset 3px 0 var(--finder-accent), 0 8px 18px rgba(29,140,255,.12) !important;
  }

  .finder-chip.is-selected .finder-chip-dot::before {
    background: var(--finder-accent) !important;
  }

  .finder-radius-presets .mini-link.is-active,
  .finder-pick-head .mini-link:hover,
  .finder-section .mini-link:hover {
    color: #ffffff !important;
    background: var(--finder-accent) !important;
    border-color: rgba(29,140,255,.72) !important;
    box-shadow: 0 8px 18px rgba(29,140,255,.20) !important;
  }

  .finder-summary-chip {
    background: rgba(29,140,255,.14) !important;
    border-color: rgba(29,140,255,.46) !important;
  }

  .finder-summary-chip span {
    background: var(--finder-accent) !important;
    box-shadow: 0 0 10px rgba(29,140,255,.42) !important;
  }

  .finder-search-btn {
    height: 43px !important;
    color: #ffffff !important;
    background: #1d8cff !important;
    border-color: rgba(29,140,255,.76) !important;
    box-shadow: 0 12px 28px rgba(20,111,255,.34) !important;
  }

  .finder-search-btn svg {
    color: #ffffff !important;
  }

  .finder-search-btn:hover {
    background: #2f99ff !important;
    box-shadow: 0 14px 32px rgba(20,111,255,.40), 0 0 0 3px rgba(29,140,255,.14) !important;
  }

  /* Wider right drawer to balance the left sidebar */
  .finder-drawer {
    width: min(408px, calc(100vw - 344px)) !important;
    right: 8px !important;
  }

  .finder-scroll {
    padding: 12px !important;
    gap: 12px !important;
  }

  .finder-section,
  .finder-summary,
  .finder-status {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .finder-chip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 9px !important;
    row-gap: 8px !important;
  }

  .finder-settings .finder-grid {
    gap: 12px !important;
  }

  .finder-radius-presets {
    gap: 9px !important;
  }

  .finder-footer {
    padding: 10px 12px !important;
  }

  @media (max-width: 980px) {
    .finder-drawer {
      width: min(408px, calc(100vw - 16px)) !important;
    }
  }

  /* Symmetric open Seed Finder panel */
  body:not(.finder-hidden) .map-panel {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .finder-drawer {
    top: 16px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: 320px !important;
    max-width: calc(100vw - 16px) !important;
  }

  .finder-drawer.is-hidden {
    transform: translateX(calc(100% + 16px)) !important;
  }

  .finder-scroll {
    padding: 10px !important;
    gap: 10px !important;
  }

  .finder-chip-list {
    column-gap: 7px !important;
    row-gap: 7px !important;
  }

  .finder-settings .finder-grid,
  .finder-radius-presets {
    gap: 8px !important;
  }

  .finder-footer {
    padding: 8px 10px !important;
  }

  @media (max-width: 760px) {
    .finder-drawer {
      top: auto !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
    }
  }

  /* Full labels in Seed Finder chips */
  .finder-chip {
    min-height: 42px !important;
    height: auto !important;
    align-items: center !important;
  }

  .finder-chip-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.18 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .finder-chip-wrap {
    align-items: stretch !important;
  }

  .finder-chip-wrap .finder-chip {
    min-height: 42px !important;
  }

  .finder-chip-minus {
    height: auto !important;
    min-height: 42px !important;
  }

  /* Keep structure chips readable with the remove button */
  .finder-structure-list {
    grid-template-columns: 1fr !important;
  }

  .finder-structure-list .finder-chip {
    min-height: 38px !important;
  }

  .finder-structure-list .finder-chip-wrap {
    grid-template-columns: minmax(0, 1fr) 34px !important;
  }

  .finder-structure-list .finder-chip-minus {
    min-height: 38px !important;
  }

  /* ── Exact left-sidebar match: colors + width ─────────── */
  .finder-drawer {
    --finder-accent: var(--ui-blue);
    --finder-accent-soft: rgba(22,135,255,.15);
    --finder-accent-line: rgba(22,135,255,.52);
    width: 320px !important;
    background: #0e0d1c !important;
    border-color: rgba(134,129,190,.20) !important;
    box-shadow: var(--ui-shadow) !important;
  }

  .finder-head {
    background: #131224 !important;
    border-bottom-color: rgba(134,129,190,.20) !important;
    box-shadow: none !important;
  }

  .finder-section {
    background: #131224 !important;
    border-color: rgba(134,129,190,.18) !important;
    box-shadow: none !important;
  }

  .finder-summary,
  .finder-status {
    background: #0e0d1c !important;
    border-color: rgba(134,129,190,.16) !important;
  }

  .finder-footer {
    background: #131224 !important;
    border-top-color: rgba(134,129,190,.20) !important;
  }

  .finder-pick-head .mini-link,
  .finder-section .mini-link {
    background: #2f2e45 !important;
    color: var(--ui-text) !important;
    border-color: transparent !important;
  }

  .finder-pick-head .mini-link:hover,
  .finder-section .mini-link:hover {
    background: var(--ui-blue) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .finder-filter,
  .finder-settings .finder-grid .select,
  .finder-settings .finder-grid .number {
    background: #323149 !important;
    border-color: transparent !important;
    color: var(--ui-text) !important;
    box-shadow: none !important;
  }

  .finder-filter:focus,
  .finder-settings .finder-grid .select:focus,
  .finder-settings .finder-grid .number:focus {
    border-color: rgba(22,135,255,.6) !important;
    box-shadow: 0 0 0 2px rgba(22,135,255,.22) !important;
    background: #3a3955 !important;
  }

  .finder-chip,
  .finder-chip-minus {
    background: rgba(35, 34, 58, .96) !important;
    border-color: var(--ui-line) !important;
  }

  .finder-chip:hover {
    background: #302f4d !important;
    border-color: rgba(22,135,255,.38) !important;
  }

  .finder-chip.is-selected {
    background: linear-gradient(90deg, rgba(22,135,255,.22), rgba(30,28,50,.98) 74%) !important;
    border-color: rgba(22,135,255,.60) !important;
    box-shadow: inset 3px 0 var(--ui-blue), 0 6px 16px rgba(22,135,255,.10) !important;
  }

  .finder-chip.is-selected .finder-chip-dot::before {
    background: var(--ui-blue) !important;
  }

  .finder-chip-dot,
  .finder-chip-icon {
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent), #2d2c44 !important;
    border-color: rgba(22,135,255,.40) !important;
    color: var(--ui-blue) !important;
  }

  .finder-chip-minus:hover {
    background: var(--ui-blue) !important;
    border-color: transparent !important;
    color: #fff !important;
  }

  .finder-radius-presets .mini-link {
    background: #2f2e45 !important;
    border-color: transparent !important;
    color: var(--ui-text) !important;
  }

  .finder-radius-presets .mini-link.is-active {
    background: var(--ui-blue) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(22,135,255,.28) !important;
  }

  .finder-summary-chip {
    background: rgba(22,135,255,.13) !important;
    border-color: rgba(22,135,255,.40) !important;
    color: var(--ui-text) !important;
  }

  .finder-summary-chip span {
    background: var(--ui-blue) !important;
    box-shadow: 0 0 8px rgba(22,135,255,.35) !important;
  }

  .finder-search-btn {
    background: var(--ui-blue) !important;
    border-color: rgba(22,135,255,.55) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(22,135,255,.30) !important;
  }

  .finder-search-btn svg { color: #fff !important; }

  .finder-search-btn:hover {
    background: #2f99ff !important;
    box-shadow: 0 12px 28px rgba(22,135,255,.38) !important;
  }

  .finder-head-text svg {
    color: var(--ui-blue) !important;
    background: rgba(22,135,255,.14) !important;
    border-color: rgba(22,135,255,.38) !important;
  }

  /* Single-column biome chips — matches structure list style */
  .finder-biome-list {
    grid-template-columns: 1fr !important;
    max-height: 200px !important;
  }

  .finder-biome-list .finder-chip {
    min-height: 34px !important;
  }

  .finder-biome-list .finder-chip-wrap {
    grid-template-columns: minmax(0, 1fr) 30px !important;
  }

  .finder-biome-list .finder-chip-minus {
    min-height: 34px !important;
  }

  @media (max-width: 980px) {
    .finder-drawer {
      width: min(320px, calc(100vw - 16px)) !important;
    }
  }

  /* ── Visual polish ──────────────────────────────────────── */

  /* Header: gradient accent strip on top */
  .finder-head {
    background: linear-gradient(180deg, #17162a, #0e0d1c) !important;
    border-top: 2px solid rgba(22,135,255,.55) !important;
    border-bottom-color: rgba(134,129,190,.28) !important;
  }

  .finder-head strong {
    font-size: 13px !important;
    letter-spacing: .04em !important;
    color: #e8e8ff !important;
  }

  .finder-head-text svg {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(22,135,255,.22), rgba(22,135,255,.08)) !important;
    border-color: rgba(22,135,255,.48) !important;
    box-shadow: 0 0 12px rgba(22,135,255,.18) !important;
  }

  /* Close button */
  .finder-close-btn {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(134,129,190,.22) !important;
    color: var(--ui-muted) !important;
  }
  .finder-close-btn:hover {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
  }

  /* Section cards with subtle depth */
  .finder-section {
    background: linear-gradient(180deg, #17162a, #0e0d1c) !important;
    border-color: rgba(134,129,190,.24) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.04), inset 0 1px rgba(255,255,255,.04) !important;
  }

  /* Section pick-head (BIOMES / STRUCTURES / SETTINGS labels) */
  .finder-pick-head {
    color: #9d9bbf !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  /* Clear button inside sections */
  .finder-pick-head .mini-link,
  .finder-section .mini-link {
    font-size: 10px !important;
    font-weight: 800 !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(134,129,190,.22) !important;
    border-radius: 5px !important;
    color: #c3c2e0 !important;
  }
  .finder-pick-head .mini-link:hover,
  .finder-section .mini-link:hover {
    background: var(--ui-blue) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(22,135,255,.28) !important;
  }

  /* Chips — more visual weight */
  .finder-chip {
    min-height: 40px !important;
    padding: 6px 10px 6px 6px !important;
    border-radius: 7px !important;
    gap: 9px !important;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--chip), transparent 88%) 0%, rgba(14,13,28,.96) 50%) !important;
    border-color: color-mix(in srgb, var(--chip), transparent 78%) !important;
    transition: background .12s, border-color .12s, box-shadow .12s !important;
  }

  .finder-chip:hover {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--chip), transparent 75%) 0%, rgba(22,20,42,.98) 55%) !important;
    border-color: color-mix(in srgb, var(--chip), transparent 55%) !important;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--chip), transparent 82%) !important;
  }

  /* Biome color swatch — round pill */
  .finder-chip-dot {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background:
      radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), rgba(0,0,0,.20)),
      var(--chip) !important;
    border: 1.5px solid rgba(255,255,255,.22) !important;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--chip), transparent 50%),
                inset 0 1px rgba(255,255,255,.25) !important;
    flex-shrink: 0 !important;
  }

  .finder-chip-dot::before {
    display: none !important;
  }

  /* Structure icon container */
  .finder-chip-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.10), transparent), #2b2a46 !important;
    border-color: rgba(134,129,190,.30) !important;
    flex-shrink: 0 !important;
  }

  /* Chip label */
  .finder-chip-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #e4e3ff !important;
  }

  /* Selected chip: strong glow + left accent + brighter background */
  .finder-chip.is-selected {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--chip, #1d8cff), transparent 45%) 0%, rgba(20,18,38,.98) 60%) !important;
    border-color: color-mix(in srgb, var(--chip, #1d8cff), transparent 20%) !important;
    box-shadow:
      inset 3px 0 0 var(--chip, var(--ui-blue)),
      0 0 0 1px color-mix(in srgb, var(--chip, #1d8cff), transparent 50%),
      0 4px 18px color-mix(in srgb, var(--chip, #1d8cff), transparent 72%) !important;
  }

  .finder-chip.is-selected .finder-chip-dot {
    box-shadow: 0 2px 14px color-mix(in srgb, var(--chip), transparent 35%),
                inset 0 1px rgba(255,255,255,.25) !important;
    border-color: rgba(255,255,255,.28) !important;
  }

  /* Remove (−) button */
  .finder-chip-minus {
    border-radius: 7px !important;
    background: rgba(20,19,36,.95) !important;
    border-color: rgba(134,129,190,.20) !important;
    color: #7878a0 !important;
  }
  .finder-chip-minus:hover {
    background: rgba(200,50,50,.85) !important;
    border-color: rgba(220,80,80,.50) !important;
    color: #ffd0d0 !important;
  }

  /* Search inputs */
  .finder-filter {
    height: 32px !important;
    background: #0a091a !important;
    border: 1px solid rgba(134,129,190,.22) !important;
    border-radius: 6px !important;
    color: #e8e7ff !important;
    font-size: 12px !important;
  }
  .finder-filter::placeholder { color: #5b5a78 !important; }
  .finder-filter:focus {
    border-color: rgba(22,135,255,.62) !important;
    box-shadow: 0 0 0 2px rgba(22,135,255,.16) !important;
    background: rgba(12,12,22,.95) !important;
  }

  /* Settings inputs */
  .finder-settings .finder-grid .select,
  .finder-settings .finder-grid .number {
    height: 34px !important;
    background: #0a091a !important;
    border: 1px solid rgba(134,129,190,.22) !important;
    border-radius: 6px !important;
    color: #e8e7ff !important;
  }

  /* Settings label */
  .finder-field span {
    color: #9d9bbf !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
  }

  /* Radius preset buttons */
  .finder-radius-presets .mini-link {
    height: 32px !important;
    border-radius: 6px !important;
    background: rgba(20,19,36,.95) !important;
    border: 1px solid rgba(134,129,190,.20) !important;
    color: #c3c2e0 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }
  .finder-radius-presets .mini-link.is-active {
    background: rgba(22,135,255,.90) !important;
    border-color: rgba(22,135,255,.60) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(22,135,255,.35) !important;
  }

  /* Summary row */
  .finder-summary {
    background: #0a091a !important;
    border-color: rgba(134,129,190,.20) !important;
    border-radius: 7px !important;
  }

  .finder-summary-chip {
    border-radius: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
    color: #e4e3ff !important;
    background: color-mix(in srgb, var(--chip, #1d8cff), transparent 82%) !important;
    border-color: color-mix(in srgb, var(--chip, #1d8cff), transparent 52%) !important;
  }

  .finder-summary-chip span {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--chip, var(--ui-blue)) !important;
    box-shadow: 0 0 8px var(--chip, var(--ui-blue)) !important;
  }

  /* Status line */
  .finder-status {
    background: #0a091a !important;
    border-color: rgba(134,129,190,.16) !important;
    border-radius: 7px !important;
    color: #9d9bbf !important;
    font-size: 11px !important;
  }

  /* Footer + Find seeds button */
  .finder-footer {
    background: #0e0d1c !important;
    border-top-color: rgba(134,129,190,.22) !important;
    padding: 10px !important;
  }

  .finder-search-btn {
    height: 42px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    color: #fff !important;
    background: linear-gradient(180deg, #3399ff, #1470d8) !important;
    border-color: rgba(22,135,255,.55) !important;
    box-shadow: 0 8px 22px rgba(22,135,255,.38), inset 0 1px rgba(255,255,255,.18) !important;
  }
  .finder-search-btn svg { color: rgba(255,255,255,.85) !important; }
  .finder-search-btn:hover {
    background: linear-gradient(180deg, #4da8ff, #1d7de8) !important;
    box-shadow: 0 10px 28px rgba(22,135,255,.48), inset 0 1px rgba(255,255,255,.22) !important;
  }

  /* Result cards */
  .seed-result-card {
    background: rgba(20,19,36,.95) !important;
    border-color: rgba(134,129,190,.22) !important;
    border-radius: 7px !important;
  }

  /* ── Responsive: narrow screens ─────────────────────────── */

  /* 1180px: finder fits but reduce width */
  @media (max-width: 1180px) {
    .finder-drawer {
      width: 280px !important;
    }
  }

  /* 1020px: map gets very tight — hide finder by default, only tab visible */
  @media (max-width: 1020px) {
    .finder-drawer {
      width: 100% !important;
      right: 0 !important;
      bottom: 0 !important;
      top: auto !important;
      height: min(75vh, 640px) !important;
      border-radius: 12px 12px 0 0 !important;
      border-left: 0 !important;
      border-right: 0 !important;
      border-bottom: 0 !important;
    }
    .finder-drawer.is-hidden {
      transform: translateY(110%) !important;
    }
    .finder-tab {
      top: auto !important;
      bottom: 14px !important;
      right: 14px !important;
      width: auto !important;
    }
    .finder-drawer:not(.is-hidden) ~ .finder-tab {
      transform: translateY(180%) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    .layout::after {
      display: none !important;
    }
  }

  /* 700px: left sidebar collapsed — only show toggle, map takes full screen */
  @media (max-width: 700px) {
    .layout::before {
      display: none !important;
    }
    .sidebar {
      left: 0 !important;
      top: auto !important;
      bottom: 0 !important;
      width: 100% !important;
      max-height: 60vh !important;
      border-radius: 12px 12px 0 0 !important;
      background: rgba(24,23,41,.97) !important;
      box-shadow: 0 -4px 24px rgba(0,0,0,.5) !important;
      z-index: 30 !important;
      padding: 8px !important;
      overflow: auto !important;
    }
    .sidebar.is-collapsed {
      transform: translateY(calc(100% - 44px)) !important;
    }
    .topbar {
      left: 8px !important;
      top: 8px !important;
      width: calc(100vw - 16px) !important;
    }
    .map-panel {
      top: 8px !important;
      right: 8px !important;
    }
  }

  /* Keep the Seed Finder trigger aligned with the right map controls. */
  @media (min-width: 1021px) {
    .map-panel,
    .finder-tab {
      --right-control-width: 152px;
    }

    .map-panel,
    .finder-tab,
    .finder-tab:hover {
      width: var(--right-control-width) !important;
    }

    .finder-tab {
      max-width: calc(100vw - 16px) !important;
    }
  }

  @media (min-width: 1021px) and (max-width: 1500px) {
    .map-panel,
    .finder-tab {
      --right-control-width: 196px;
    }
  }

  @media (min-width: 1021px) and (max-width: 1100px) {
    .map-panel,
    .finder-tab {
      --right-control-width: 176px;
    }
  }

  /* Favorite seeds */
  .top-actions {
    grid-template-columns: 28px 28px 28px 28px !important;
  }

  .top-actions .btn.like,
  .top-actions #favorites-btn {
    position: relative;
  }

  .btn.like svg,
  .icon-only.like svg {
    transition: fill .16s ease, color .16s ease, transform .16s ease;
  }

  .btn.like.is-liked,
  .icon-only.like.is-liked {
    color: #ff6f91 !important;
    border-color: rgba(255,111,145,.5) !important;
    background: linear-gradient(180deg, rgba(255,111,145,.22), rgba(42,24,42,.95)) !important;
  }

  .btn.like.is-liked svg,
  .icon-only.like.is-liked svg {
    fill: currentColor;
    transform: scale(1.04);
  }

  #favorites-btn.has-favorites::after {
    content: attr(data-count);
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff6f91;
    color: #fff;
    font: 800 9px/1 "Cascadia Mono", Consolas, monospace;
    box-shadow: 0 4px 12px rgba(255,111,145,.35);
  }

  .seed-line {
    min-width: 0;
  }

  .seed-line .seed-mono {
    flex: 1 1 auto;
  }

  .seed-line .icon-only {
    flex: 0 0 auto;
  }

  .favorites-drawer {
    position: fixed;
    z-index: 34;
    top: 16px;
    right: 12px;
    bottom: 12px;
    width: 340px;
    max-width: calc(100vw - 24px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 9px;
    background: #0e0d1c;
    border: 1px solid rgba(134,129,190,.24);
    box-shadow: 0 20px 54px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.04);
    transform: translateX(0);
    opacity: 1;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
  }

  .favorites-drawer.is-hidden {
    transform: translateX(calc(100% + 18px));
    opacity: 0;
    pointer-events: none;
  }

  .favorites-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, #17162a, #0e0d1c);
    border-top: 2px solid rgba(255,111,145,.62);
    border-bottom: 1px solid rgba(134,129,190,.26);
  }

  .favorites-head-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: #e8e8ff;
    font-weight: 900;
    letter-spacing: .04em;
  }

  .favorites-head-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ff6f91;
    background: linear-gradient(180deg, rgba(255,111,145,.24), rgba(255,111,145,.08));
    border: 1px solid rgba(255,111,145,.48);
    box-shadow: 0 0 14px rgba(255,111,145,.16);
  }

  .favorites-head-icon svg,
  .favorites-close-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
  }

  .favorites-close-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(134,129,190,.22);
    color: #a9a7c8;
    cursor: pointer;
  }

  .favorites-close-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
  }

  .favorites-scroll {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    overflow: auto;
  }

  .favorites-empty {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 8px;
    color: #e8e7ff;
    background: rgba(20,19,36,.95);
    border: 1px solid rgba(134,129,190,.22);
  }

  .favorites-empty.hidden {
    display: none;
  }

  .favorites-empty span {
    color: #9d9bbf;
    font-size: 12px;
  }

  .favorites-list {
    display: grid;
    gap: 9px;
    align-content: start;
  }

  .favorite-seed-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(255,111,145,.11), transparent 52%),
      rgba(20,19,36,.96);
    border: 1px solid rgba(134,129,190,.24);
    box-shadow: inset 3px 0 rgba(255,111,145,.58), 0 10px 24px rgba(0,0,0,.18);
  }

  .favorite-seed-main {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .favorite-seed-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font: 800 13px "Cascadia Mono", Consolas, monospace;
  }

  .favorite-seed-sub {
    color: #ffb4c7;
    font-size: 11px;
    font-weight: 800;
  }

  .favorite-seed-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 8px;
    color: #9d9bbf;
    font-size: 11px;
  }

  .favorite-seed-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .favorite-seed-meta b {
    color: #e8e7ff;
    font-family: "Cascadia Mono", Consolas, monospace;
  }

  .favorite-seed-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 30px;
    gap: 7px;
  }

  .favorite-seed-actions .mini-link {
    height: 30px;
    width: 100%;
    color: #e8e7ff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(134,129,190,.24);
  }

  .favorite-seed-actions .mini-link:hover {
    color: #fff;
    background: #ff6f91;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(255,111,145,.26);
  }

  .favorite-remove {
    width: 30px;
    height: 30px;
    color: #a9a7c8;
    background: rgba(20,19,36,.95);
    border-color: rgba(134,129,190,.22);
  }

  .favorite-remove:hover {
    color: #ffd0dc;
    background: rgba(200,50,75,.8);
    border-color: rgba(255,111,145,.5);
  }

  @media (max-width: 1100px) {
    .top-actions {
      grid-template-columns: repeat(4, 36px) !important;
    }
  }

  @media (max-width: 760px) {
    .top-actions {
      grid-template-columns: repeat(4, 32px) !important;
      gap: 5px !important;
    }

    .top-actions .btn {
      width: 32px !important;
      height: 32px !important;
    }

    .field {
      padding-right: 144px !important;
    }

    .favorites-drawer {
      top: auto;
      right: 0;
      bottom: 0;
      width: 100%;
      max-width: 100%;
      height: min(75vh, 640px);
      border-radius: 12px 12px 0 0;
      border-left: 0;
      border-right: 0;
      border-bottom: 0;
    }

    .favorites-drawer.is-hidden {
      transform: translateY(110%);
    }
  }

  /* Final right-panel polish: cleaner seed controls, bottom Seed Finder trigger, side arrows */
  .topbar {
    width: 300px !important;
  }

  .seed-form {
    gap: 8px !important;
  }

  .seed-form .field {
    padding-right: 12px !important;
  }

  .top-actions {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 8px !important;
    width: 100% !important;
  }

  .top-actions .btn {
    width: 100% !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: rgba(45,44,69,.98) !important;
    border: 1px solid rgba(134,129,190,.22) !important;
    color: #d6d4f2 !important;
  }

  .top-actions .btn:hover {
    background: rgba(57,55,86,.98) !important;
    border-color: rgba(134,129,190,.36) !important;
  }

  .top-actions .btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  #copy-seed-btn {
    color: #ffd481 !important;
  }

  #share-url-btn {
    color: #aeb6ff !important;
  }

  #favorites-btn {
    color: #bfc4d8 !important;
  }

  #favorites-btn.has-favorites {
    color: #ffb4c7 !important;
    border-color: rgba(255,111,145,.34) !important;
    background: rgba(255,111,145,.12) !important;
  }

  #favorites-btn.has-favorites::after {
    right: 5px !important;
    top: -7px !important;
  }

  .sidebar {
    top: 202px !important;
  }

  .favorites-drawer,
  .finder-drawer {
    right: 12px !important;
    bottom: 66px !important;
    width: 340px !important;
    overflow: visible !important;
    border-radius: 10px !important;
  }

  .favorites-drawer {
    z-index: 36 !important;
  }

  .finder-drawer {
    z-index: 35 !important;
  }

  .favorites-scroll,
  .finder-scroll {
    overflow: auto !important;
    border-radius: 0 0 10px 10px !important;
  }

  .favorites-head,
  .finder-head {
    position: static !important;
    padding: 11px 12px !important;
    border-radius: 10px 10px 0 0 !important;
  }

  .favorites-head {
    border-top-color: rgba(255,111,145,.44) !important;
    box-shadow: inset 3px 0 rgba(255,111,145,.56) !important;
  }

  .finder-head {
    border-top-color: rgba(22,135,255,.5) !important;
    box-shadow: inset 3px 0 rgba(22,135,255,.56) !important;
  }

  .favorites-head-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .favorites-close-btn,
  .finder-close-btn {
    position: absolute !important;
    left: -29px !important;
    top: 50% !important;
    width: 29px !important;
    height: 78px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 10px 0 0 10px !important;
    border: 1px solid rgba(134,129,190,.30) !important;
    border-right: 0 !important;
    background: rgba(20,19,36,.98) !important;
    color: #c9c6e8 !important;
    box-shadow: -10px 14px 28px rgba(0,0,0,.34) !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
  }

  .favorites-close-btn {
    border-color: rgba(255,111,145,.34) !important;
  }

  .finder-close-btn {
    border-color: rgba(22,135,255,.34) !important;
  }

  .favorites-close-btn svg,
  .finder-close-btn svg {
    display: none !important;
  }

  .favorites-close-btn::before,
  .finder-close-btn::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
  }

  .favorites-close-btn:hover {
    color: #fff !important;
    background: rgba(255,111,145,.20) !important;
  }

  .finder-close-btn:hover {
    color: #fff !important;
    background: rgba(22,135,255,.20) !important;
  }

  .favorites-list {
    gap: 10px !important;
  }

  .favorite-seed-card {
    gap: 11px !important;
    padding: 12px !important;
    background:
      linear-gradient(90deg, rgba(255,111,145,.12), rgba(20,19,36,.96) 42%),
      rgba(20,19,36,.96) !important;
    border-color: rgba(255,111,145,.22) !important;
  }

  .favorite-seed-value {
    font-size: 14px !important;
  }

  .favorite-seed-sub {
    color: #ffc0d0 !important;
  }

  .favorite-seed-actions {
    grid-template-columns: 1fr 1fr 34px !important;
  }

  .favorite-seed-actions .mini-link,
  .favorite-remove {
    height: 34px !important;
    border-radius: 8px !important;
  }

  .favorite-remove {
    width: 34px !important;
  }

  .finder-tab {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    width: 340px !important;
    max-width: calc(100vw - 24px) !important;
    height: 42px !important;
    z-index: 34 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(22,135,255,.38) !important;
    background: linear-gradient(180deg, rgba(35,34,58,.98), rgba(16,15,32,.98)) !important;
    color: #e8e7ff !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06) !important;
    transform: none !important;
  }

  .finder-tab svg {
    color: #58a6ff !important;
    width: 16px !important;
    height: 16px !important;
  }

  .finder-tab span {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    color: #e8e7ff !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .finder-tab:hover {
    width: 340px !important;
    background: linear-gradient(180deg, rgba(47,62,92,.98), rgba(20,24,44,.98)) !important;
    border-color: rgba(22,135,255,.56) !important;
    box-shadow: 0 16px 38px rgba(22,135,255,.16), 0 14px 34px rgba(0,0,0,.42) !important;
  }

  .finder-drawer:not(.is-hidden) ~ .finder-tab {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(12px) !important;
  }

  @media (max-width: 1500px) {
    .topbar,
    .sidebar,
    .layout::before {
      width: 300px !important;
    }
  }

  @media (max-width: 1100px) {
    .topbar,
    .sidebar,
    .layout::before {
      width: 270px !important;
    }

    .sidebar {
      top: 210px !important;
    }

    .favorites-drawer,
    .finder-drawer,
    .finder-tab,
    .finder-tab:hover {
      width: 318px !important;
      max-width: calc(100vw - 24px) !important;
    }
  }

  @media (max-width: 760px) {
    .topbar {
      width: calc(100% - 32px) !important;
    }

    .top-actions {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      margin-top: 7px !important;
    }

    .top-actions .btn {
      width: 100% !important;
      height: 32px !important;
    }

    .sidebar {
      top: auto !important;
    }

    .favorites-drawer,
    .finder-drawer {
      right: 0 !important;
      bottom: 56px !important;
      width: 100% !important;
      max-width: 100% !important;
      height: min(72vh, 620px) !important;
      border-radius: 12px 12px 0 0 !important;
    }

    .favorites-drawer.is-hidden,
    .finder-drawer.is-hidden {
      transform: translateY(110%) !important;
    }

    .favorites-close-btn,
    .finder-close-btn {
      left: auto !important;
      right: 12px !important;
      top: -32px !important;
      width: 74px !important;
      height: 32px !important;
      border-radius: 10px 10px 0 0 !important;
      border: 1px solid rgba(134,129,190,.30) !important;
      border-bottom: 0 !important;
      transform: none !important;
    }

    .favorites-close-btn::before,
    .finder-close-btn::before {
      transform: rotate(45deg) translateY(-2px) !important;
    }

    .finder-tab,
    .finder-tab:hover {
      right: 8px !important;
      bottom: 8px !important;
      width: calc(100% - 16px) !important;
      max-width: calc(100% - 16px) !important;
    }
  }

  /* Revert Seed Finder trigger to compact handle and hide drawer arrows while closed */
  .favorites-drawer.is-hidden .favorites-close-btn,
  .finder-drawer.is-hidden .finder-close-btn {
    display: none !important;
    pointer-events: none !important;
  }

  .finder-tab {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    width: 36px !important;
    max-width: none !important;
    height: 108px !important;
    z-index: 34 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(134,129,190,.28) !important;
    border-radius: 10px 0 0 10px !important;
    background: rgba(20,19,36,.98) !important;
    color: #c9c6e8 !important;
    box-shadow: -6px 0 22px rgba(0,0,0,.48), inset 1px 0 rgba(255,255,255,.05) !important;
    transform: translateY(-50%) !important;
    overflow: hidden !important;
  }

  .finder-tab svg {
    width: 16px !important;
    height: 16px !important;
    color: #58a6ff !important;
  }

  .finder-tab span {
    writing-mode: vertical-lr !important;
    text-orientation: mixed !important;
    transform: rotate(180deg) !important;
    color: #dcd9f8 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .finder-tab:hover {
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    width: 42px !important;
    max-width: none !important;
    height: 108px !important;
    background: rgba(28,27,45,.99) !important;
    border-color: rgba(22,135,255,.42) !important;
    box-shadow: -8px 0 28px rgba(0,0,0,.55), inset 2px 0 rgba(22,135,255,.18) !important;
    transform: translateY(-50%) !important;
  }

  .finder-drawer:not(.is-hidden) ~ .finder-tab {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(110%) !important;
  }

  @media (max-width: 760px) {
    .finder-tab,
    .finder-tab:hover {
      top: auto !important;
      right: 14px !important;
      bottom: 14px !important;
      width: 120px !important;
      max-width: none !important;
      height: 34px !important;
      flex-direction: row !important;
      gap: 7px !important;
      padding: 0 10px !important;
      border: 1px solid rgba(22,135,255,.34) !important;
      border-radius: 10px !important;
      transform: none !important;
      box-shadow: 0 12px 28px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06) !important;
    }

    .finder-tab span {
      writing-mode: horizontal-tb !important;
      transform: none !important;
      font-size: 12px !important;
      letter-spacing: 0 !important;
      text-transform: none !important;
    }

    .finder-drawer:not(.is-hidden) ~ .finder-tab {
      transform: translateY(120%) !important;
    }
  }

  /* Put Seed Finder back under the Map controls and keep labels readable */
  .map-panel {
    right: 8px !important;
    width: 176px !important;
  }

  .map-panel .layer-row {
    min-height: 42px !important;
    grid-template-columns: 32px minmax(82px, 1fr) 38px !important;
    gap: 8px !important;
    padding: 6px 7px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  .map-panel .layer-label {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .map-panel .layer-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
  }

  .map-panel .count {
    min-width: 36px !important;
    height: 24px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
  }

  .finder-tab,
  .finder-tab:hover {
    position: fixed !important;
    right: 8px !important;
    top: 112px !important;
    bottom: auto !important;
    width: 176px !important;
    max-width: calc(100vw - 16px) !important;
    height: 42px !important;
    z-index: 34 !important;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 38px !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
    padding: 6px 7px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(22,135,255,.34) !important;
    background:
      linear-gradient(90deg, rgba(22,135,255,.13), transparent 46%),
      rgba(20,19,36,.98) !important;
    color: #e8e7ff !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.05) !important;
    transform: none !important;
  }

  .finder-tab svg {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    border-radius: 7px !important;
    justify-self: start !important;
    color: #58a6ff !important;
    background: linear-gradient(180deg, rgba(255,255,255,.10), transparent), #2d2c44 !important;
    border: 1px solid rgba(22,135,255,.40) !important;
  }

  .finder-tab span {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    color: #e8e7ff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  .finder-tab::after {
    content: "Open";
    min-width: 36px;
    height: 24px;
    display: grid;
    place-items: center;
    justify-self: end;
    border-radius: 999px;
    background: #2d2c44;
    color: #b7b6cc;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .finder-tab:hover {
    background:
      linear-gradient(90deg, rgba(22,135,255,.18), transparent 52%),
      rgba(28,27,45,.99) !important;
    border-color: rgba(22,135,255,.52) !important;
    box-shadow: 0 10px 26px rgba(22,135,255,.12), 0 8px 22px rgba(0,0,0,.42) !important;
  }

  .finder-drawer:not(.is-hidden) ~ .finder-tab {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
  }

  .topbar {
    left: 8px !important;
    width: 300px !important;
  }

  .layout::before {
    left: 4px !important;
    width: 308px !important;
  }

  @media (max-width: 1100px) {
    .map-panel,
    .finder-tab,
    .finder-tab:hover {
      width: 176px !important;
    }

    .topbar {
      left: 8px !important;
      width: 270px !important;
    }

    .layout::before {
      width: 286px !important;
    }
  }

  @media (max-width: 760px) {
    .topbar {
      left: 8px !important;
      width: calc(100% - 16px) !important;
    }

    .layout::before {
      left: 6px !important;
      width: calc(100% - 12px) !important;
    }

    .map-panel {
      right: 8px !important;
      top: 154px !important;
      width: 176px !important;
    }

    .finder-tab,
    .finder-tab:hover {
      right: 8px !important;
      top: 252px !important;
      bottom: auto !important;
      width: 176px !important;
      max-width: calc(100vw - 16px) !important;
      height: 42px !important;
      transform: none !important;
    }
  }

  /* Keep right map controls independent from the collapsible left sidebar */
  body.sidebar-hidden .sidebar.is-collapsed .map-panel,
  .sidebar.is-collapsed .map-panel {
    display: grid !important;
    position: fixed !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
  }

  body.sidebar-hidden .sidebar.is-collapsed .map-panel .layer-row,
  .sidebar.is-collapsed .map-panel .layer-row {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body.sidebar-hidden .finder-tab,
  body.sidebar-hidden .finder-tab:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  @media (max-width: 760px) {
    body.sidebar-hidden .sidebar.is-collapsed .map-panel,
    .sidebar.is-collapsed .map-panel {
      right: 8px !important;
      top: 154px !important;
      width: 176px !important;
    }

    body.sidebar-hidden .finder-tab,
    body.sidebar-hidden .finder-tab:hover {
      right: 8px !important;
      top: 252px !important;
      bottom: auto !important;
      width: 176px !important;
      transform: none !important;
    }
  }

  /* Favorite seed cards: higher contrast and separated metadata values */
  .favorites-drawer {
    background: #0e0d1c !important;
    border-color: rgba(255,111,145,.26) !important;
    box-shadow: 0 22px 58px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.05) !important;
  }

  .favorites-head {
    background: linear-gradient(180deg, #1a1428, #0e0d1c) !important;
    border-bottom-color: rgba(255,111,145,.22) !important;
  }

  .favorites-head-icon {
    color: #f472b6 !important;
    background: linear-gradient(180deg, rgba(255,111,145,.22), rgba(255,111,145,.08)) !important;
    border-color: rgba(244,114,182,.42) !important;
  }

  .favorite-seed-card {
    gap: 10px !important;
    background:
      linear-gradient(135deg, rgba(255,111,145,.16), transparent 42%),
      linear-gradient(180deg, #171326, #120f20) !important;
    border-color: rgba(255,111,145,.30) !important;
    box-shadow: inset 3px 0 rgba(255,111,145,.72), 0 12px 26px rgba(0,0,0,.24) !important;
  }

  .favorite-seed-value {
    color: #ffffff !important;
  }

  .favorite-seed-sub {
    color: #ffb4c7 !important;
  }

  .favorite-seed-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    color: inherit !important;
    font-size: 11px !important;
  }

  .favorite-seed-meta .meta-item {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
    padding: 7px 8px !important;
    border-radius: 7px !important;
    background: rgba(22,18,35,.86) !important;
    border: 1px solid rgba(255,111,145,.16) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04) !important;
    overflow: hidden !important;
  }

  .favorite-seed-meta .meta-label {
    color: #93a4b8 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .favorite-seed-meta .meta-value {
    width: fit-content !important;
    max-width: 100% !important;
    padding: 3px 5px !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    background: rgba(2,6,23,.74) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    font: 900 12px Consolas, "Cascadia Mono", monospace !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .favorite-seed-actions .mini-link {
    background: rgba(30,24,44,.92) !important;
    border-color: rgba(255,111,145,.22) !important;
  }

  .favorite-seed-actions .mini-link:hover {
    background: #ff6f91 !important;
    box-shadow: 0 8px 18px rgba(255,111,145,.25) !important;
  }

  /* Keep the bottom Go panel inside the left sidebar */
  .sidebar {
    overflow: hidden !important;
  }

  .sidebar .go-panel {
    left: 16px !important;
    right: 16px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: calc(100% - 32px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 10px !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px rgba(255,255,255,.05) !important;
    transform: none !important;
  }

  .sidebar .go-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .sidebar .go-grid .number,
  .sidebar .go-grid .btn {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .sidebar .go-panel::before {
    inset: 0 !important;
    border-radius: inherit !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 18px !important;
      right: 18px !important;
      bottom: 12px !important;
      max-width: calc(100% - 36px) !important;
    }
  }

  /* Make the Go controls feel like the sidebar footer, not a crooked floating card */
  .sidebar .go-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 12px 18px 16px !important;
    border: 0 !important;
    border-top: 1px solid rgba(134,129,190,.18) !important;
    border-radius: 0 0 12px 12px !important;
    background:
      linear-gradient(180deg, rgba(18,17,32,.82), rgba(15,14,28,.98)) !important;
    box-shadow: 0 -12px 22px rgba(7,7,16,.35) !important;
  }

  .sidebar .go-panel::before,
  .sidebar .go-panel .section-title,
  .sidebar .go-panel .panel-actions {
    display: none !important;
  }

  .sidebar .go-grid {
    gap: 8px !important;
  }

  .sidebar .go-grid .number,
  .sidebar .go-grid .btn {
    height: 40px !important;
    border-radius: 8px !important;
  }

  .sidebar .features-panel {
    bottom: 124px !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      padding: 12px 28px 16px !important;
      max-width: none !important;
      border-radius: 0 0 12px 12px !important;
    }

    .sidebar .features-panel {
      bottom: 126px !important;
    }
  }

  /* Final Go footer alignment: controls only, no protruding panel chrome */
  .sidebar .go-panel {
    left: 16px !important;
    right: 16px !important;
    bottom: 14px !important;
    width: auto !important;
    max-width: calc(100% - 32px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .sidebar .go-panel::before {
    display: none !important;
  }

  .sidebar .go-grid {
    gap: 8px !important;
  }

  .sidebar .go-grid .number {
    height: 40px !important;
    border-radius: 8px !important;
  }

  .sidebar .go-grid .btn {
    height: 40px !important;
    border-radius: 8px !important;
    width: 100% !important;
  }

  .sidebar .features-panel {
    bottom: 114px !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 20px !important;
      right: 20px !important;
      bottom: 14px !important;
      max-width: calc(100% - 40px) !important;
    }

    .sidebar .features-panel {
      bottom: 116px !important;
    }
  }

  /* Stretch Go controls toward the sidebar arrow without bringing back panel chrome */
  .sidebar .go-panel {
    right: -16px !important;
    max-width: calc(100% - 4px) !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 20px !important;
      right: -16px !important;
      max-width: calc(100% - 4px) !important;
    }
  }

  /* Extended Go footer: match the arrow width with a clean sidebar-like backing */
  .sidebar .go-panel {
    padding: 10px 8px 12px !important;
    background:
      linear-gradient(180deg, rgba(18,17,32,.92), rgba(15,14,28,.99)) !important;
    border-top: 1px solid rgba(134,129,190,.18) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 -10px 20px rgba(7,7,16,.32) !important;
    overflow: hidden !important;
  }

  .sidebar .go-panel::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 48%) !important;
    pointer-events: none !important;
  }

  .sidebar .go-grid {
    position: relative !important;
    z-index: 1 !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 0 !important;
      right: -16px !important;
      bottom: 0 !important;
      max-width: calc(100% + 16px) !important;
      padding: 10px 24px 12px 20px !important;
    }
  }

  /* Re-set Go footer after testing wider variants: keep it neat inside the sidebar */
  .sidebar .go-panel {
    left: 12px !important;
    right: 26px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: calc(100% - 38px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .sidebar .go-panel::before {
    display: none !important;
  }

  .sidebar .go-grid {
    gap: 8px !important;
  }

  .sidebar .go-grid .number,
  .sidebar .go-grid .btn {
    height: 40px !important;
    border-radius: 8px !important;
  }

  .sidebar .features-panel {
    bottom: 110px !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 12px !important;
      right: 26px !important;
      bottom: 10px !important;
      max-width: calc(100% - 38px) !important;
    }

    .sidebar .features-panel {
      bottom: 112px !important;
    }
  }

  /* Final left sidebar sizing: keep the footer controls and arrow visually aligned */
  .sidebar .go-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .sidebar .go-grid {
    width: 100% !important;
  }

  .sidebar .menu-toggle {
    width: 42px !important;
    height: 92px !important;
  }

  body.sidebar-hidden .sidebar.is-collapsed .menu-toggle {
    width: 42px !important;
    height: 96px !important;
  }

  @media (max-width: 760px) {
    .sidebar .go-panel {
      left: 0 !important;
      right: 0 !important;
      max-width: 100% !important;
    }
  }

  /* Reference-style left panel with the newer seed actions kept in place */
  @media (min-width: 701px) {
    :root {
      --left-panel-width-final: 320px;
      --left-panel-left-final: 8px;
      --left-panel-topbar-height-final: 154px;
    }

    .layout::before {
      left: 4px !important;
      top: 8px !important;
      bottom: 8px !important;
      width: calc(var(--left-panel-width-final) + 8px) !important;
      border-radius: 14px !important;
      background: rgba(18,17,32,.96) !important;
      border: 1px solid rgba(134,129,190,.22) !important;
      box-shadow: 0 20px 44px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.05) !important;
    }

    .topbar {
      left: var(--left-panel-left-final) !important;
      top: 14px !important;
      width: var(--left-panel-width-final) !important;
      height: var(--left-panel-topbar-height-final) !important;
      padding: 10px 14px 12px !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) repeat(4, 36px) !important;
      grid-template-rows: 40px 40px 36px !important;
      grid-template-areas:
        "seed like fav copy share"
        "version version version version version"
        "random random random random random" !important;
      gap: 8px !important;
      border-radius: 14px 14px 0 0 !important;
      border: 0 !important;
      border-bottom: 1px solid rgba(134,129,190,.22) !important;
      background: transparent !important;
      box-shadow: none !important;
    }

    .brand {
      display: none !important;
    }

    .seed-form,
    .top-actions {
      display: contents !important;
    }

    #seed-input {
      grid-area: seed !important;
      min-width: 0 !important;
      height: 40px !important;
      border-radius: 8px !important;
    }

    #like-seed-btn {
      grid-area: like !important;
    }

    #favorites-btn {
      grid-area: fav !important;
    }

    #copy-seed-btn {
      grid-area: copy !important;
    }

    #share-url-btn {
      grid-area: share !important;
    }

    #version-select {
      grid-area: version !important;
      height: 40px !important;
      border-radius: 8px !important;
    }

    #dimension-select {
      display: none !important;
    }

    #random-btn {
      grid-area: random !important;
      height: 36px !important;
      border-radius: 4px !important;
    }

    .top-actions .btn {
      width: 36px !important;
      height: 40px !important;
      min-width: 0 !important;
      border-radius: 8px !important;
      padding: 0 !important;
    }

    #favorites-btn.has-favorites::after {
      right: -5px !important;
      top: -8px !important;
    }

    .sidebar {
      left: var(--left-panel-left-final) !important;
      top: calc(14px + var(--left-panel-topbar-height-final)) !important;
      bottom: 8px !important;
      width: var(--left-panel-width-final) !important;
      padding: 0 !important;
      border-radius: 0 0 14px 14px !important;
      background: transparent !important;
      box-shadow: none !important;
      overflow: visible !important;
    }

    .features-panel {
      inset: 0 0 112px 0 !important;
      width: 100% !important;
      padding: 0 14px 0 !important;
    }

    .features-panel .section-title {
      height: 40px !important;
      padding: 0 0 0 2px !important;
      margin: 0 !important;
      border-bottom: 0 !important;
    }

    .features-panel .feature-scroll {
      padding: 0 0 8px !important;
    }

    .features-panel .struct-list,
    .features-panel .biome-list {
      grid-template-columns: 1fr 1fr !important;
      gap: 7px 9px !important;
    }

    .features-panel .layer-row {
      min-width: 0 !important;
      min-height: 34px !important;
      border-radius: 9px !important;
    }

    .sidebar .go-panel {
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      height: 112px !important;
      padding: 16px 14px 14px !important;
      border: 0 !important;
      border-top: 1px solid rgba(134,129,190,.18) !important;
      border-radius: 0 0 14px 14px !important;
      background: rgba(18,17,32,.94) !important;
      box-shadow: 0 -10px 22px rgba(7,7,16,.24) !important;
      overflow: hidden !important;
    }

    .sidebar .go-panel::before,
    .sidebar .go-panel .section-title,
    .sidebar .go-panel .panel-actions {
      display: none !important;
    }

    .sidebar .go-grid {
      width: 100% !important;
      height: 100% !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
      gap: 8px !important;
      position: relative !important;
      z-index: 1 !important;
    }

    .sidebar .go-grid .number,
    .sidebar .go-grid .btn {
      min-width: 0 !important;
      width: 100% !important;
      height: 40px !important;
      border-radius: 8px !important;
    }

    .sidebar .go-grid .btn {
      grid-column: 1 / -1 !important;
    }

    .sidebar .menu-toggle {
      left: calc(var(--left-panel-left-final) + var(--left-panel-width-final)) !important;
      right: auto !important;
      top: 50% !important;
      width: 36px !important;
      height: 92px !important;
      border-radius: 0 10px 10px 0 !important;
      transform: translateY(-50%) !important;
    }

    body.sidebar-hidden .sidebar.is-collapsed .menu-toggle {
      left: 8px !important;
      width: 42px !important;
      height: 96px !important;
    }
  }

  @media (min-width: 701px) and (max-width: 1100px) {
    :root {
      --left-panel-width-final: 300px;
    }

    .topbar {
      grid-template-columns: minmax(0, 1fr) repeat(4, 34px) !important;
    }

    .top-actions .btn {
      width: 34px !important;
    }
  }

  /* Favorite seed dates: show full day and time without clipping */
  .favorite-seed-meta {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .favorite-seed-meta .meta-item {
    overflow: visible !important;
  }

  .favorite-seed-meta .meta-value {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }

  /* Cleaner favorite seed cards */
  .favorite-seed-card {
    padding: 13px !important;
    border-radius: 10px !important;
    gap: 12px !important;
    background:
      radial-gradient(circle at 0 0, rgba(255,111,145,.22), transparent 34%),
      linear-gradient(180deg, #181327, #100e1d) !important;
    border-color: rgba(255,111,145,.34) !important;
    box-shadow:
      inset 3px 0 rgba(255,111,145,.78),
      inset 0 1px rgba(255,255,255,.06),
      0 14px 30px rgba(0,0,0,.30) !important;
  }

  .favorite-seed-main {
    gap: 4px !important;
  }

  .favorite-seed-value {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  .favorite-seed-sub {
    font-size: 11px !important;
    color: #ffc1d1 !important;
  }

  .favorite-seed-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .favorite-seed-meta .meta-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 34px !important;
    padding: 7px 8px !important;
    border-radius: 8px !important;
    background: rgba(12,11,24,.68) !important;
    border: 1px solid rgba(255,111,145,.18) !important;
    overflow: visible !important;
  }

  .favorite-seed-meta .meta-item:nth-child(1),
  .favorite-seed-meta .meta-item:nth-child(2) {
    grid-column: 1 / -1 !important;
  }

  .favorite-seed-meta .meta-label {
    color: #a8b4c8 !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  .favorite-seed-meta .meta-value {
    justify-self: end !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    text-align: right !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .favorite-seed-actions {
    gap: 8px !important;
  }
