    :root {
      --bg: #eef3ef;
      --panel: #f8faf7;
      --panel-strong: #ffffff;
      --ink: #1e2b1f;
      --muted: #5f6f61;
      --line: #d4ddd3;
      --accent: #2f6a43;
      --warn: #a85f00;
      --bad: #992626;
      --good: #1f7a3b;
    }
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      color: var(--ink);
      font-family: "Segoe UI", "Gill Sans", Calibri, sans-serif;
      background:
        radial-gradient(circle at 8% 8%, #dceadf 0%, transparent 40%),
        radial-gradient(circle at 95% 0%, #e7efe6 0%, transparent 36%),
        linear-gradient(180deg, #f5f8f4 0%, var(--bg) 100%);
    }
    .shell {
      height: 100%;
      display: grid;
      grid-template-columns: var(--sidebar-width, 360px) 1fr var(--rightbar-width, 360px);
      position: relative;
    }
    @media (max-width: 1020px) {
      .shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
      }
    }
    .left {
      grid-column: 1;
      border-right: 1px solid var(--line);
      background: linear-gradient(180deg, var(--panel) 0%, #eef4ec 100%);
      overflow: auto;
      padding: 14px;
      min-width: 0;
    }
    .right {
      border-left: 1px solid var(--line);
      background: linear-gradient(180deg, #f6faf8 0%, #eaf1ee 100%);
      overflow: auto;
      padding: 14px;
      min-width: 0;
    }
    .planet-mini {
      font-size: 0.76rem;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.35;
    }
    .planet-mode {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
    }
    .planet-mode .btn {
      border-radius: 9px;
      padding: 6px 9px;
      font-size: 0.79rem;
    }
    .planet-mode .btn.active {
      background: #d6f0de;
      color: #163621;
      border-color: #b9e4c8;
    }
    .planet-sub {
      border: 1px solid #deeadf;
      border-radius: 10px;
      background: #fbfdfb;
      padding: 8px;
      margin-top: 8px;
    }
    .planet-sub-title {
      margin: 0 0 6px 0;
      font-size: 0.78rem;
      color: #406045;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-weight: 700;
    }
    .planet-collapsible > summary {
      cursor: pointer;
      list-style: none;
      user-select: none;
      margin: 0;
    }
    .planet-collapsible > summary::-webkit-details-marker {
      display: none;
    }
    .planet-collapsible > summary::after {
      content: 'Expand';
      float: right;
      font-size: 0.7rem;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .planet-collapsible[open] > summary::after {
      content: 'Collapse';
    }
    .planet-sub-body {
      margin-top: 8px;
    }
    .inline-field {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    .inline-field label {
      margin: 0;
      font-size: 0.78rem;
      white-space: nowrap;
    }
    .inline-field input {
      margin: 0;
      flex: 1;
      min-width: 0;
    }
    .planet-two-col {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }
    .planet-item-bundle-row {
      grid-template-columns: minmax(50px, 0.8fr) minmax(120px, 1.2fr);
      gap: 6px;
    }
    .planet-item-bundle-row > div {
      min-width: 0;
    }
    .planet-item-bundle-row select {
      padding: 7px 8px;
      font-size: 0.82rem;
    }
    .planet-two-col > div label,
    .planet-three-col > div label {
      font-size: 0.78rem;
      margin-bottom: 3px;
    }
    .planet-two-col > div input,
    .planet-two-col > div select,
    .planet-three-col > div input,
    .planet-three-col > div select {
      margin-bottom: 0;
    }
    .planet-three-col {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }
    .planet-scenes-params {
      grid-template-columns: minmax(50px, 0.58fr) minmax(50px, 0.62fr) minmax(100px, 1.8fr);
    }
    @media (max-width: 1250px) {
      .planet-three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .planet-scenes-params {
        grid-template-columns: minmax(50px, 0.7fr) minmax(50px, 0.8fr) minmax(100px, 1.5fr);
      }
    }
    .planet-list {
      min-height: 120px;
      max-height: 400px;
      overflow: auto;
      border: 1px solid #dbe7dc;
      border-radius: 8px;
      background: #fff;
      padding: 4px;
      resize: vertical;
      padding-right: 2px;
    }
    #planetMosaicsList,
    #planetQuadsList,
    #planetMosaicsCompareList {
      --planet-row-h: 72px;
      height: calc((var(--planet-row-h) * 2) + 12px);
      min-height: calc((var(--planet-row-h) * 2) + 12px);
    }
    .planet-item input[type="checkbox"] {
      accent-color: #0f4fa8;
    }
    .planet-item {
      padding: 5px 6px;
      border-bottom: 1px solid #edf2ec;
      font-size: 0.77rem;
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }
    .planet-item:last-child { border-bottom: 0; }
    .planet-item-info-top {
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
    }
    .planet-side-chip {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      padding: 2px 6px;
      border-radius: 999px;
      background: #d9e9ff;
      color: #184985;
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
    .planet-compare-date {
      position: absolute;
      top: 50px;
      z-index: 810;
      background: rgba(14, 31, 64, 0.85);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.35);
      border-radius: 8px;
      padding: 4px 8px;
      font-size: 0.75rem;
      font-weight: 700;
      pointer-events: none;
      transform: translateX(-50%);
      white-space: nowrap;
    }
    .planet-compare-date.left { left: 25%; }
    .planet-compare-date.right { left: 75%; }
    .planet-item-content {
      display: flex;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }
    .planet-thumb {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 4px;
      flex-shrink: 0;
      border: 1px solid #dde9dd;
      background: #f8faf7;
    }
    .planet-thumb.thumb-error {
      display: none;
    }
    .planet-thumb-placeholder {
      width: 60px;
      height: 60px;
      background: #f0f4f1;
      border: 1px solid #dde9dd;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      color: #99a39a;
      flex-shrink: 0;
    }
    .planet-item-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .planet-item .name {
      font-family: Consolas, monospace;
      color: #1e4027;
      font-size: 0.72rem;
      word-break: break-all;
    }
    .planet-item .meta {
      color: var(--muted);
      font-size: 0.72rem;
      margin-top: 1px;
    }
    .planet-compare-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-top: 6px;
    }
    .planet-compare-grid .planet-list {
      min-height: 80px;
      height: calc(72px * 2 + 12px);
    }
    .planet-band-control {
      position: absolute;
      top: 10px;
      right: 58px;
      z-index: 815;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px;
      border: 1px solid rgba(255,255,255,0.32);
      border-radius: 10px;
      background: rgba(24, 32, 24, 0.72);
      color: #eef6ee;
    }
    .planet-band-control label {
      margin: 0;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .planet-band-control select {
      margin: 0;
      padding: 3px 6px;
      font-size: 0.74rem;
      min-width: 68px;
      border-radius: 7px;
      border: 1px solid rgba(255,255,255,0.4);
      background: rgba(248, 252, 249, 0.95);
      color: #173027;
    }
    .archive-band-control {
      position: absolute;
      top: 10px;
      right: 58px;
      z-index: 815;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px;
      border: 1px solid rgba(255,255,255,0.32);
      border-radius: 10px;
      background: rgba(24, 32, 24, 0.72);
      color: #eef6ee;
    }
    .archive-band-control label {
      margin: 0;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .archive-band-control select {
      margin: 0;
      padding: 3px 6px;
      font-size: 0.74rem;
      min-width: 68px;
      border-radius: 7px;
      border: 1px solid rgba(255,255,255,0.4);
      background: rgba(248, 252, 249, 0.95);
      color: #173027;
    }
    .planet-job-status.loading { color: #0f4fa8; font-weight: 700; }
    .planet-job-status.good    { color: #1f7a3b; font-weight: 700; }
    .planet-job-status.bad     { color: #992626; font-weight: 700; }
    .planet-files {
      max-height: 110px;
      overflow: auto;
      border: 1px solid #dbe7dc;
      border-radius: 8px;
      background: #fff;
      padding: 4px;
      font-size: 0.72rem;
      color: #406045;
    }
    .shell.collapsed { grid-template-columns: 0 1fr var(--rightbar-width, 360px); }
    .shell.collapsed .left { display: none; }
    .shell.right-collapsed { grid-template-columns: var(--sidebar-width, 360px) 1fr 0; }
    .shell.right-collapsed .right { display: none; }
    .shell.right-collapsed #rightSidebarResizer { display: none; }
    .shell.collapsed.right-collapsed { grid-template-columns: 0 1fr 0; }
    .right { grid-column: 3; }
    .section {
      background: var(--panel-strong);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 10px;
      box-shadow: 0 6px 18px rgba(26, 43, 26, 0.06);
    }
    h1 {
      margin: 0;
      font-size: 1.2rem;
      letter-spacing: 0.02em;
    }
    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .help-popover {
      position: relative;
      flex: 0 0 auto;
    }
    .help-badge {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid #c8d7c7;
      background: #f4faf3;
      color: #2f6a43;
      font-size: 0.86rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: help;
      user-select: none;
    }
    .planet-view-tabs {
      display: flex;
      gap: 2px;
      margin: 8px 0;
      border-bottom: 2px solid #ddd;
    }
    .planet-view-tab {
      flex: 1;
      padding: 8px 12px;
      border: none;
      background: #f5f5f5;
      border-radius: 4px 4px 0 0;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      color: #555;
      transition: all 0.2s ease;
      border-bottom: 3px solid transparent;
    }
    .planet-view-tab:hover {
      background: #e8e8e8;
      color: #333;
    }
    .planet-view-tab.active {
      background: white;
      color: #2f6fdd;
      border-bottom: 3px solid #2f6fdd;
    }
    .planet-opacity-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 8px;
      margin: 6px 0 8px;
    }
    .planet-opacity-row label {
      margin: 0;
      font-size: 0.78rem;
      color: #36523b;
      font-weight: 700;
      white-space: nowrap;
    }
    .planet-opacity-row input[type="range"] {
      margin: 0;
      width: 100%;
      accent-color: #2f6fdd;
      padding: 0;
      background: transparent;
    }
    .planet-opacity-value {
      font-size: 0.76rem;
      color: #35508f;
      font-weight: 700;
      min-width: 36px;
      text-align: right;
    }
    }
    .help-panel {
      position: fixed;
      top: 22px;
      left: calc(var(--sidebar-width, 360px) - 34px);
      width: min(440px, calc(100vw - 52px));
      padding: 12px 13px;
      border-radius: 12px;
      border: 1px solid #d6e3d5;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 14px 28px rgba(26, 43, 26, 0.16);
      color: var(--ink);
      font-size: 0.8rem;
      line-height: 1.45;
      z-index: 1200;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-4px);
      transition: opacity .14s ease, transform .14s ease;
    }
    .help-popover:hover .help-panel,
    .help-popover:focus-within .help-panel {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .help-panel strong {
      display: block;
      margin-bottom: 6px;
      color: #36523b;
      font-size: 0.82rem;
      letter-spacing: 0.01em;
    }
      .help-topic {
        color: #2f6a43;
        font-weight: 800;
      }
      .help-subtopic {
        color: #2f6fb2;
        font-weight: 700;
      }
    .help-panel p {
      margin: 0 0 8px 0;
    }
    .help-panel ol {
      margin: 0;
      padding-left: 18px;
    }
    .help-panel li + li {
      margin-top: 4px;
    }
    .sub {
      margin-top: 6px;
      color: var(--muted);
      font-size: 0.9rem;
    }
    .title {
      margin: 0 0 8px 0;
      font-size: 0.88rem;
      color: #3f5a44;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 700;
    }
    label {
      display: block;
      font-size: 0.82rem;
      color: var(--muted);
      margin: 0 0 4px 0;
    }
    input[type="text"],
    input[type="password"],
    input[type="date"],
    input[type="file"],
    select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 9px;
      padding: 8px 10px;
      font-size: 0.9rem;
      background: #fff;
      color: var(--ink);
      margin-bottom: 8px;
    }
    .row {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .row > * { flex: 1; min-width: 120px; }
    .planet-aoi-row {
      display: grid;
      grid-template-columns: minmax(100px, 1.15fr) minmax(100px, 0.85fr);
      gap: 8px;
    }
    .planet-aoi-row > * {
      min-width: 0;
    }
    .planet-scenes-actions {
      display: grid;
      grid-template-columns: minmax(96px, 0.95fr) minmax(96px, 1.05fr);
      gap: 6px;
    }
    .planet-scenes-actions > * {
      min-width: 0;
    }
    .planet-scenes-actions .btn {
      padding: 7px 9px;
      font-size: 0.8rem;
    }
    .planet-mosaic-actions {
      display: grid;
      grid-template-columns: minmax(92px, 1fr) minmax(92px, 1fr);
      gap: 6px;
    }
    .planet-mosaic-actions > * {
      min-width: 0;
    }
    .planet-mosaic-actions .btn {
      padding: 7px 9px;
      font-size: 0.8rem;
    }
    .btn {
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 9px 12px;
      font-weight: 700;
      cursor: pointer;
      transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
      white-space: nowrap;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn.primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 6px 16px rgba(47, 106, 67, 0.26);
    }
    .btn.secondary {
      background: #fff;
      border-color: var(--line);
      color: var(--ink);
    }
    .btn.mode-active {
      background: #103a76;
      border-color: #0d2f5f;
      color: #ffffff;
      box-shadow: 0 6px 16px rgba(16, 58, 118, 0.28);
    }
    .btn.mode-active:hover {
      background: #0f356d;
    }
    .btn.mode-muted {
      background: #e0e5ea;
      border-color: #c8d1da;
      color: #5f6b76;
      box-shadow: none;
    }
    .btn.planet-aoi-cue {
      background: #fff6de;
      border-color: #f4b22c;
      color: #5a3a00;
      box-shadow: 0 0 0 2px rgba(244, 178, 44, 0.35), 0 8px 20px rgba(244, 178, 44, 0.28);
      animation: planet-aoi-cue-pulse 1.2s ease-in-out infinite;
    }
    .btn.planet-step-cue {
      background: #fff6de;
      border-color: #f4b22c;
      color: #5a3a00;
      box-shadow: 0 0 0 2px rgba(244, 178, 44, 0.35), 0 8px 20px rgba(244, 178, 44, 0.28);
      animation: planet-aoi-cue-pulse 1.2s ease-in-out infinite;
    }
    .btn.planet-aoi-cue:hover {
      background: #ffefc8;
    }
    .planet-api-key-highlight {
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
      box-shadow: none;
      transition: none;
    }
    .planet-api-key-highlight .api-key {
      margin-bottom: 0;
      border-color: #e2b14c;
      background: linear-gradient(180deg, #fff9e8 0%, #fff3d2 100%);
      box-shadow: 0 0 0 2px rgba(244,178,44,0.2);
      transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    }
    .planet-api-key-highlight.has-key {
      border: 0;
      background: transparent;
      box-shadow: none;
    }
    .planet-api-key-highlight.has-key .api-key {
      border-color: #7ea7ec;
      background: linear-gradient(180deg, #eaf2ff 0%, #dbe8ff 100%);
      box-shadow: 0 0 0 2px rgba(47,111,221,0.2);
    }
    @keyframes planet-aoi-cue-pulse {
      0% { box-shadow: 0 0 0 2px rgba(244, 178, 44, 0.35), 0 8px 20px rgba(244, 178, 44, 0.28); }
      50% { box-shadow: 0 0 0 5px rgba(244, 178, 44, 0.28), 0 10px 24px rgba(244, 178, 44, 0.33); }
      100% { box-shadow: 0 0 0 2px rgba(244, 178, 44, 0.35), 0 8px 20px rgba(244, 178, 44, 0.28); }
    }
    .btn.warn {
      background: #f8eddc;
      border-color: #e7cd9f;
      color: #7a4800;
    }
    .btn:disabled { opacity: 0.56; cursor: not-allowed; transform: none; }

    #mapWrap {
      grid-column: 2;
      position: relative;
      min-width: 0;
    }
    #mapWrap.planet-aoi-active {
      border: 3px dotted #2f6a43;
      border-radius: 4px;
    }
    #fullscreenMapToggle {
      position: absolute;
      top: 10px;
      left: 6px;
      z-index: 1001;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(26, 43, 26, 0.15);
    }
    #fullscreenMapToggle:hover { background: #eef4ec; }
    #leftSidebarToggle,
    #rightSidebarToggle {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 1001;
      width: 22px;
      height: 68px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(26, 43, 26, 0.15);
    }
    #leftSidebarToggle:hover,
    #rightSidebarToggle:hover { background: #eef4ec; }
    #leftSidebarToggle {
      left: 0;
      clip-path: polygon(0% 0%, 100% 20%, 100% 80%, 0% 100%);
    }
    #rightSidebarToggle {
      right: 0;
      clip-path: polygon(100% 0%, 0% 20%, 0% 80%, 100% 100%);
    }
    #leftSidebarToggle[aria-pressed="true"] svg,
    #rightSidebarToggle[aria-pressed="true"] svg { transform: scaleX(-1); }
    .shell.fullscreen-map { grid-template-columns: 0 1fr 0; }
    .shell.fullscreen-map .left,
    .shell.fullscreen-map .right,
    .shell.fullscreen-map #sidebarResizer,
    .shell.fullscreen-map #rightSidebarResizer { display: none; }
    #sidebarResizer {
      position: absolute;
      left: calc(var(--sidebar-width, 360px) - 3px);
      top: 0;
      bottom: 0;
      width: 6px;
      cursor: ew-resize;
      z-index: 900;
      background: linear-gradient(90deg, rgba(47,106,67,0.15), rgba(47,106,67,0));
    }
    #rightSidebarResizer {
      position: absolute;
      right: calc(var(--rightbar-width, 360px) - 3px);
      top: 0;
      bottom: 0;
      width: 6px;
      cursor: ew-resize;
      z-index: 900;
      background: linear-gradient(90deg, rgba(47,106,67,0), rgba(47,106,67,0.15));
    }
    .shell.collapsed #sidebarResizer { display: none; }
    .shell.collapsed #rightSidebarResizer { display: none; }
    .mini-btn {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      padding: 4px 7px;
      font-size: 0.78rem;
      cursor: pointer;
      color: var(--ink);
      font-weight: 700;
    }
    #map {
      height: 100%;
      width: 100%;
      min-height: 520px;
    }
    /* Hide only the rectangle draw icon on map; keep edit/delete and save/cancel controls visible. */
    .leaflet-draw-draw-rectangle {
      display: none !important;
    }
    @media (max-width: 1020px) {
      #map { min-height: 56vh; }
    }
    .topbar {
      position: absolute;
      top: 10px;
      left: 10px;
      right: auto;
      z-index: 800;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      max-width: 62vw;
    }
    .topbar .btn {
      padding: 6px 9px;
      border-radius: 9px;
      border: 1px solid rgba(255,255,255,0.32);
      background: rgba(24, 32, 24, 0.72);
      color: #eef6ee;
      box-shadow: none;
    }
    .topbar .btn.active {
      background: #d6f0de;
      color: #163621;
      border-color: #d6f0de;
    }
    #planetSidebarToggle {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 820;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 0.78rem;
      border: 1px solid rgba(255,255,255,0.32);
      background: rgba(24, 32, 24, 0.72);
      color: #eef6ee;
      box-shadow: none;
    }
    #planetSidebarToggle .arrow {
      font-weight: 900;
      margin-right: 5px;
    }
    .status {
      font-size: 0.87rem;
      color: var(--muted);
      min-height: 18px;
      margin-top: 4px;
    }
    .status.good { color: var(--good); font-weight: 700; }
    .status.bad { color: var(--bad); font-weight: 700; }
    .status.warn { color: var(--warn); font-weight: 700; }
    .help {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.35;
    }
    .param-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 8px;
    }
    .param-row input {
      margin-bottom: 0;
      padding: 6px 8px;
      font-size: 0.85rem;
    }
    .param-row label {
      margin-bottom: 3px;
      font-size: 0.78rem;
    }
    .archive-list-wrap {
      --archive-row-height: 34px;
      height: calc((var(--archive-row-height) * 3) + 14px);
      min-height: calc((var(--archive-row-height) * 3) + 14px);
      max-height: 300px;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
      margin-bottom: 8px;
      resize: vertical;
      padding-right: 2px;
    }
    .archive-header, .archive-row {
      display: grid;
      grid-template-columns: 34px 34px 1fr;
      gap: 6px;
      align-items: center;
      padding: 6px 8px;
      min-height: var(--archive-row-height);
      border-bottom: 1px solid #edf2ec;
    }
    .archive-header {
      position: sticky;
      top: 0;
      z-index: 2;
      background: #f7faf6;
      font-size: 0.74rem;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .archive-row:last-child { border-bottom: 0; }
    .archive-row label {
      margin: 0;
      color: var(--ink);
      font-size: 0.82rem;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      max-width: 100%;
    }
    .archive-empty {
      padding: 10px;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .lr-col {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .top-workflow {
      position: absolute;
      top: 10px;
      left: 10px;
      right: 12px;
      z-index: 820;
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      pointer-events: auto;
    }
    .top-card {
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid #d8e2d8;
      border-radius: 10px;
      padding: 7px 9px;
      box-shadow: 0 7px 18px rgba(18, 30, 18, 0.15);
      backdrop-filter: blur(2px);
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }
    .top-card label { margin: 0; font-size: 0.76rem; }
    .top-card input { margin: 0; padding: 4px 6px; width: auto; min-width: 66px; }
    .top-card input.num-mini { min-width: 42px; width: 42px; text-align: center; padding: 4px; }
    .top-card input.api-key { min-width: 170px; width: 170px; }
    .top-card .btn { padding: 6px 9px; font-size: 0.8rem; }
    .leaflet-top.leaflet-left {
      margin-top: 58px;
    }
    .compare-meta {
      color: var(--muted);
      font-size: 0.76rem;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .compare-opt {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 4px;
      font-size: 0.79rem;
      color: var(--ink);
    }
    .compare-toggle-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 2px;
    }
    .compare-toggle-row .compare-opt {
      margin-top: 0;
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .selection-subtitle {
      margin: 0 0 5px 0;
      color: #406045;
      font-size: 0.76rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .image-select-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 8px;
    }
    .image-select-row .btn {
      width: 100%;
      padding: 7px 6px;
      font-size: 0.74rem;
      line-height: 1.2;
      white-space: normal;
      text-align: center;
      min-height: 44px;
    }
    .archive-source-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 8px;
    }
    .archive-source-row .btn {
      width: 100%;
      padding: 7px 8px;
      font-size: 0.76rem;
      line-height: 1.15;
      min-height: 38px;
    }
    @media (max-width: 1250px) {
      .image-select-row {
        grid-template-columns: 1fr;
      }
      .archive-source-row {
        grid-template-columns: 1fr;
      }
    }
    .ai-processing-row {
      display: grid;
      grid-template-columns: minmax(92px, 1.02fr) minmax(88px, 0.98fr);
      gap: 6px;
    }
    .ai-processing-row > * {
      min-width: 0;
    }
    .ai-processing-row .btn {
      padding: 7px 9px;
      font-size: 0.8rem;
    }
    .btn.processing-btn {
      background: #fff;
      border-color: var(--line);
      color: var(--ink);
      box-shadow: none;
    }
    .btn.processing-btn.mode-active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: 0 6px 16px rgba(47, 106, 67, 0.26);
    }
    .btn.processing-btn.mode-muted {
      background: #e0e5ea;
      border-color: #c8d1da;
      color: #5f6b76;
      box-shadow: none;
    }
    .btn.processing-btn.ready {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: 0 6px 16px rgba(47, 106, 67, 0.26);
    }
    .calc-section {
      margin-top: 8px;
    }
    .calc-section summary {
      cursor: pointer;
      list-style: none;
      font-size: 0.88rem;
      font-weight: 700;
      color: #36523b;
      margin: -2px 0 8px 0;
      user-select: none;
    }
    .calc-section summary::-webkit-details-marker {
      display: none;
    }
    .calc-section summary::after {
      content: 'Expand';
      float: right;
      font-size: 0.72rem;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .calc-section[open] summary::after {
      content: 'Collapse';
    }
    .calc-body {
      resize: vertical;
      overflow: auto;
      min-height: 130px;
      max-height: 56vh;
      padding-right: 2px;
    }
    .stats-row {
      color: var(--muted);
      font-size: 0.76rem;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .stats-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 6px;
      font-size: 0.78rem;
    }
    .stats-table th, .stats-table td {
      border: 1px solid #deeadf;
      padding: 5px 6px;
      text-align: left;
    }
    .stats-table th {
      background: #f3f8f2;
      color: #46604a;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    #swipeDivider {
      position: absolute;
      top: 0;
      height: 100%;
      width: 2px;
      transform: translateX(-50%);
      background: rgba(255,255,255,0.95);
      border-left: 1px solid rgba(8,14,20,0.55);
      border-right: 1px solid rgba(8,14,20,0.25);
      box-shadow: 0 0 5px rgba(0,0,0,0.28);
      z-index: 810;
      pointer-events: auto;
      display: none;
      cursor: ew-resize;
      touch-action: none;
    }
    #swipeHandle {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid #fff;
      background: rgba(7, 16, 21, 0.88);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      pointer-events: auto;
      cursor: ew-resize;
    }
    #swipePct {
      position: absolute;
      left: 50%;
      top: 10px;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.64);
      color: #f3f7f7;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 999px;
      padding: 3px 7px;
      font-size: 0.72rem;
      font-weight: 700;
      pointer-events: none;
      display: none;
    }
    @media (max-width: 1100px) {
      .help-panel {
        left: 18px;
        top: 18px;
        width: min(440px, calc(100vw - 36px));
      }
      .top-workflow {
        left: 12px;
      }
      .topbar {
        top: 56px;
        max-width: calc(100% - 24px);
      }
      #planetSidebarToggle {
        top: 56px;
      }
      .leaflet-top.leaflet-left { margin-top: 96px; }
    }
    @media (max-width: 720px) {
      .help-panel {
        left: 12px;
        top: 12px;
        width: calc(100vw - 24px);
      }
      .topbar {
        top: 162px;
      }
      #planetSidebarToggle {
        top: 162px;
      }
      .leaflet-top.leaflet-left { margin-top: 204px; }
    }
    
    /* AI Progress Bar Overlay */
    #aiProgressOverlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: none;
      z-index: 1000;
      background: transparent;
      pointer-events: none;
    }
    
    #aiProgressOverlay.visible {
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 0;
    }
    
    .ai-progress-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    
    .ai-progress-bar-bg {
      width: 350px;
      height: 6px;
      background: rgba(200, 200, 200, 0.4);
      border-radius: 3px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .ai-progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #888888, #666666);
      border-radius: 3px;
      transition: width 0.2s ease;
      box-shadow: 0 0 6px rgba(100, 100, 100, 0.5);
    }
    
    .ai-progress-text {
      color: #666666;
      font-size: 16px;
      font-weight: bold;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
      min-width: 50px;
      text-align: center;
      background: rgba(255, 255, 255, 0.7);
      padding: 4px 12px;
      border-radius: 4px;
    }

    /* Hide unused Quads list in Quad View */
    #planetQuadsCount,
    #planetQuadsList {
      display: none;
    }
  

.lld-top-right-toggle {
  position: fixed;
  top: 58px;
  z-index: 750;
  pointer-events: auto;
}

.lld-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(20, 27, 24, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e7f2ed;
  white-space: nowrap;
}

.lld-checkbox-label:hover {
  background: rgba(20, 27, 24, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.lld-checkbox-input {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #79e3b5;
  flex-shrink: 0;
}

.lld-checkbox-text {
  display: block;
  transition: all 0.2s ease;
}

.lld-top-center-search {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 710;
  pointer-events: auto;
}

.lld-search-compact-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lld-search-input-compact {
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: #ffffff;
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  caret-color: #111111;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.78rem;
  width: 280px;
  max-width: 90vw;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.lld-search-input-compact::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.lld-search-input-compact:-webkit-autofill,
.lld-search-input-compact:-webkit-autofill:hover,
.lld-search-input-compact:-webkit-autofill:focus {
  -webkit-text-fill-color: #111111;
  caret-color: #111111;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  transition: background-color 9999s ease-out 0s;
}

.lld-search-input-compact:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.30);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.lld-search-compact-row .btn {
  padding: 5px 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.lld-control-panel {
  position: fixed;
  bottom: 10px;
  width: 22vw;
  max-width: 260px;
  z-index: 700;
  pointer-events: auto;
  background: rgba(20, 27, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #f4f7f5;
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
}

.lld-control-header {
  display: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f7f3;
  margin-bottom: 4px;
}

.lld-control-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.lld-control-sub {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px 5px;
}

.lld-sub-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e6f2ec;
  margin-bottom: 3px;
}

.planet-lld-plugin-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.planet-lld-plugin-actions .btn {
  padding: 7px 8px;
  font-size: 0.78rem;
}

.planet-lld-plugin-note {
  margin-top: 6px;
  color: #d8e8df;
}

.lld-unseeded-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}

.lld-unseeded-row label {
  display: grid;
  grid-template-rows: auto auto;
  gap: 3px;
  font-size: 0.72rem;
  color: #e7f2ed;
}

.lld-unseeded-row input[type='number'] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 0.78rem;
}

.lld-unseeded-row .btn {
  padding: 7px 8px;
  font-size: 0.78rem;
}

.lld-unseeded-compact-row {
  display: grid;
  grid-template-columns: 60px 60px auto;
  gap: 3px;
  align-items: end;
}

.lld-unseeded-label {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1px;
  font-size: 0.68rem;
  color: #e7f2ed;
  line-height: 1.1;
}

.lld-unseeded-compact-row input[type='number'] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border-radius: 4px;
  padding: 3px 4px;
  font-size: 0.73rem;
}

.lld-unseeded-compact-row .btn {
  padding: 3px 6px !important;
  font-size: 0.72rem !important;
  min-width: 0 !important;
  height: fit-content;
}

.lld-all-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.lld-refresh-btn {
  margin-left: auto;
  padding: 3px 7px !important;
  font-size: 0.85rem !important;
  line-height: 1;
  border-radius: 6px !important;
  min-width: 0;
  flex-shrink: 0;
}

.lld-progress-wrap {
  margin-top: 7px;
}

.lld-progress-label {
  font-size: 0.70rem;
  color: #c8dfd5;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lld-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.lld-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #79e3b5, #3ecf8e);
  border-radius: 3px;
  transition: width 0.35s ease;
  will-change: width;
}

.lld-all-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #e7f2ed;
  cursor: pointer;
}

.lld-all-check-label input[type='checkbox'] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #79e3b5;
}

.lld-range-legend-wrap {
  margin-top: 10px;
  border: 1px solid #d9e2db;
  border-radius: 8px;
  background: #f7faf8;
  padding: 8px;
}

.lld-range-legend-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2a4634;
  margin-bottom: 4px;
}

.lld-range-legend-source {
  font-size: 0.68rem;
  color: #6a7f71;
  margin-bottom: 6px;
}

.lld-range-legend-list {
  display: grid;
  gap: 4px;
}

.lld-range-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lld-range-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.18);
  flex: 0 0 12px;
}

.lld-range-legend-text {
  font-size: 0.72rem;
  color: #2f3d34;
  line-height: 1.2;
}

.lld-selected-llds-wrap {
  margin-top: 10px;
  border-top: 1px dashed #cdd8cf;
  padding-top: 8px;
}

.lld-selected-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #274233;
  margin-bottom: 2px;
}

.lld-selected-note {
  font-size: 0.66rem;
  color: #6e7f74;
  margin-bottom: 6px;
}

.lld-focus-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #3f5447;
  margin-bottom: 6px;
  user-select: none;
}

.lld-focus-toggle input[type='checkbox'] {
  width: 13px;
  height: 13px;
}

.lld-selected-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.lld-selected-download-btn {
  font-size: 0.68rem !important;
  padding: 4px 8px !important;
}

.lld-selected-list {
  display: grid;
  gap: 4px;
  max-height: 140px;
  overflow: auto;
}

.lld-selected-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  border: 1px solid #d9e3dc;
  border-radius: 6px;
  background: #ffffff;
  cursor: default;
}

.lld-selected-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6fdd;
  flex: 0 0 8px;
}

.lld-selected-text {
  font-size: 0.71rem;
  color: #2f3d34;
  line-height: 1.2;
  word-break: break-word;
}

@media (max-width: 1240px) {
  .lld-control-panel {
    width: 28vw;
    max-width: 100%;
    max-height: 35vh;
    overflow: auto;
  }
  .lld-search-input-compact {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .lld-control-panel {
    width: 90vw;
  }
  .lld-search-input-compact {
    width: 160px;
  }
}

.lld-cluster-hull-outline {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}

.lld-decor-icon-wrap {
  background: transparent;
  border: none;
}

.lld-comment-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.lld-comment-btn:hover {
  background: #f0f0f0;
}

.lld-order-badge {
  width: 28px;
  height: 20px;
  font-size: 11px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  padding: 0;
}

.lld-visited-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.lld-comment-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.lld-comment-popup-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.lld-comment-popup-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #2a3b2a;
}

.lld-comment-textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 4px 6px;
  box-sizing: border-box;
  border: 1px solid #d4ddd3;
  border-radius: 4px;
}

.lld-comment-popup-actions {
  display: flex;
  justify-content: flex-end;
}

.lld-comment-submit-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.planet-lld-label {
  max-width: none;
  width: max-content;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.planet-lld-label .line-1 {
  display: block;
  white-space: nowrap;
}

.planet-lld-label .line-2 {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
}

.planet-lld-label .lld-acres-line {
  color: #ffd06b;
}

.planet-lld-label-all {
  color: #ffffff;
}

.lld-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lld-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ffffff;
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  caret-color: #111111;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 0.78rem;
}

.lld-search-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.lld-search-input:-webkit-autofill,
.lld-search-input:-webkit-autofill:hover,
.lld-search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111111;
  caret-color: #111111;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  transition: background-color 9999s ease-out 0s;
}

.lld-search-row .btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

#lldAoiSection {
  display: none !important;
}


/* LLD Cluster plugin styling */
.lld-cluster-toggles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.lld-cluster-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #2a3b2a;
  cursor: pointer;
}

.lld-cluster-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.lld-cluster-toolbar .btn {
  flex: 1;
  font-size: 0.78rem;
  padding: 6px 4px;
}

.lld-cluster-toolbar .btn.active {
  outline: 2px solid var(--accent, #2f6a43);
  outline-offset: -2px;
}

.lld-cluster-toolbar .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lld-cluster-active {
  font-size: 0.78rem;
  color: #45524a;
  background: #f4faf3;
  border: 1px solid var(--line, #e0e6e0);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 10px;
}

.lld-cluster-selection {
  font-size: 0.78rem;
  background: #fbfbf3;
  border: 1px solid var(--line, #e0e6e0);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 10px;
}

.lld-cluster-selection-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #2a3b2a;
}

.lld-cluster-selection-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 140px;
  overflow-y: auto;
}

.lld-cluster-selection-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #45524a;
}

.lld-cluster-list-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #2a3b2a;
}

.lld-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.lld-cluster-empty {
  font-size: 0.78rem;
  color: #7a847c;
  padding: 6px 2px;
}

.lld-cluster-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid var(--line, #e0e6e0);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lld-cluster-item:hover {
  background: #f0f7f0;
}

.lld-cluster-item.is-active {
  border-color: var(--accent, #2f6a43);
  background: #eef7ef;
}

.lld-cluster-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.lld-cluster-item-body {
  flex: 1;
  min-width: 0;
}

.lld-cluster-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.lld-cluster-item-meta {
  font-size: 0.72rem;
  color: #6b756e;
}

.lld-cluster-item-actions {
  display: flex;
  gap: 4px;
}

.lld-cluster-item-actions button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 5px;
  border-radius: 4px;
  color: #2f6a43;
}

.lld-cluster-item-actions button:hover {
  background: #e2efe2;
}

.lld-cluster-item-actions button.danger {
  color: #b1352b;
}

.lld-cluster-item-actions button.danger:hover {
  background: #f6dede;
}

