/**
 * /tools/site-cluster.css — Site Cluster tool styles.
 *
 * Tool-scoped (.sc-*), mirroring hotspot-finder.css's patterns on the
 * shared shell vocabulary (gw tokens via geoweave-tokens.css). Loaded
 * by the shared scaffold's co-load once the registry entry is ready.
 */

/* ---- sections ---- */
.sc-section { margin-bottom: 18px; }
.sc-section-label {
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--gw-text-dim, #6b7280);
    margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.sc-section-hint { font-size: 12px; color: var(--gw-text-dim, #6b7280); margin-bottom: 8px; }
.sc-empty { font-size: 13px; color: var(--gw-text-dim, #6b7280); padding: 6px 0; }
.sc-status { font-size: 12px; color: var(--gw-text-dim, #6b7280); min-height: 16px; margin-top: 6px; }
.sc-loaded-line { font-size: 13px; margin-top: 8px; color: var(--gw-text, #111827); }

/* ---- buttons ---- */
.sc-btn {
    background: var(--gw-accent, #0d9488); color: #fff; border: 0;
    border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
.sc-btn:hover { filter: brightness(1.1); }
.sc-btn:disabled { opacity: 0.45; cursor: default; filter: none; }
.sc-btn-secondary {
    background: transparent; color: var(--gw-text, #111827);
    border: 1px solid var(--gw-border, #d1d5db);
}
.sc-mini-btn {
    background: transparent; border: 1px solid var(--gw-border, #d1d5db);
    border-radius: 4px; font-size: 11px; padding: 1px 7px; cursor: pointer;
    color: var(--gw-text-dim, #6b7280);
}
.sc-mini-btn:hover { border-color: var(--gw-accent, #0d9488); color: var(--gw-accent, #0d9488); }
/* POI slice (2026-09-08): clamped +/- radius steppers read as inert
   (no .sc-mini-btn:disabled existed; the green hover leaked onto
   unclickable buttons). */
.sc-mini-btn:disabled { opacity: 0.4; cursor: default; }
.sc-mini-btn:disabled:hover { border-color: var(--gw-border, #d1d5db); color: var(--gw-text-dim, #6b7280); }
/* v2: badge + steppers on one line, compact steppers. */
.sc-ph-wrap { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sc-ph-wrap .sc-mini-btn { padding: 0 5px; font-size: 12px; line-height: 16px; }
/* v2: edit mode also locks the shell's NavigationControl zoom
   buttons (map-edge +/-), which bypass handler disables. Class
   toggled by setEditMode on the map container. */
.sc-zoom-locked .maplibregl-ctrl-zoom-in,
.sc-zoom-locked .maplibregl-ctrl-zoom-out { pointer-events: none; opacity: 0.35; }

/* ---- step 1: targets ---- */
/* .sc-add-row retired by the location-picker slice restructure
   (mode radios + panels replaced the side-by-side add row). */
.sc-input-panel { margin-top: 8px; }
.sc-map-click-hint { font-size: 12px; color: var(--gw-text-dim, #6b7280); padding: 4px 0; }
.sc-citypicker-mount { width: 100%; }
.sc-paste {
    width: 100%; box-sizing: border-box; margin: 8px 0 6px;
    border: 1px solid var(--gw-border, #d1d5db); border-radius: 6px;
    font-size: 13px; padding: 8px; font-family: inherit;
}
.sc-target-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-target-table td { padding: 4px 6px; border-bottom: 1px solid var(--gw-border-soft, #eef0f2); }
.sc-target-rename {
    width: 100%; border: 1px solid transparent; border-radius: 4px;
    font-size: 13px; padding: 3px 5px; background: transparent;
}
.sc-target-rename:hover, .sc-target-rename:focus {
    border-color: var(--gw-border, #d1d5db); background: #fff; outline: none;
}
.sc-target-coords { color: var(--gw-text-dim, #6b7280); font-size: 12px; white-space: nowrap; }
.sc-target-acts { white-space: nowrap; text-align: right; }

/* ---- step 2: source + chips ---- */
.sc-src-row { display: flex; gap: 16px; flex-wrap: wrap; }
.sc-src-opt, .sc-radius-opt { font-size: 13px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.sc-param-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.sc-param-label { font-size: 12px; font-weight: 600; color: var(--gw-text-dim, #6b7280); }
.sc-dropzone-mount { margin-bottom: 4px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chip {
    border: 1px solid var(--gw-border, #d1d5db); background: #fff;
    border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer;
    color: var(--gw-text, #111827);
}
.sc-chip-on {
    background: var(--gw-accent, #0d9488); border-color: var(--gw-accent, #0d9488);
    color: #fff;
}
.sc-chip-count { opacity: 0.75; font-size: 11px; margin-left: 3px; }

/* ---- step 3: params + results ---- */
.sc-minpct {
    width: 70px; border: 1px solid var(--gw-border, #d1d5db); border-radius: 6px;
    font-size: 13px; padding: 5px 7px;
}
.sc-thresholds { font-size: 12px; margin-top: 6px; }
.sc-threshold { font-weight: 600; white-space: nowrap; }
.sc-results-summary { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sc-results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-results-table th {
    text-align: left; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--gw-text-dim, #6b7280);
    padding: 4px 6px; border-bottom: 1px solid var(--gw-border, #d1d5db);
}
.sc-results-table td { padding: 5px 6px; border-bottom: 1px solid var(--gw-border-soft, #eef0f2); }
.sc-circle-row { cursor: pointer; }
.sc-circle-row:hover td { background: var(--gw-hover, #f6f8fa); }
.sc-circle-sites td {
    font-size: 12px; color: var(--gw-text-dim, #6b7280);
    background: var(--gw-hover, #f6f8fa); padding: 6px 10px;
}
.sc-phase-badge {
    display: inline-block; color: #fff; border-radius: 4px;
    font-size: 11px; font-weight: 700; padding: 2px 8px; white-space: nowrap;
}
.sc-export-row { display: flex; gap: 10px; margin-top: 10px; }

/* ---- Commit 3: edit mode + save ---- */
.sc-mini-on { background: var(--gw-accent, #0d9488); color: #fff; border-color: var(--gw-accent, #0d9488); }
.sc-edited-dot { color: var(--gw-accent, #0d9488); font-size: 9px; margin-left: 4px; vertical-align: middle; }
.sc-edited-note { color: var(--gw-accent, #0d9488); }
/* POI slice (2026-09-12): with map-click selection the active row is
   the only on-screen confirmation that a click landed on the intended
   circle, so it reads harder than the pre-slice pale mint. The
   :hover rule below is required, not decorative — `.sc-circle-row:hover
   td` above outranks a bare `.sc-edit-active td`, so without it the
   active row loses its treatment the moment the pointer crosses it. */
.sc-edit-active td { background: #d1fae5; font-weight: 600; }
.sc-edit-active:hover td { background: #d1fae5; }
.sc-edit-active td:first-child { box-shadow: inset 3px 0 0 var(--gw-accent, #0d9488); }
.sc-save-name { margin-top: 12px; }
.sc-drag-handle {
    width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid #d32f2f; background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: grab;
    position: relative;
}
.sc-drag-handle::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
    background: currentColor; color: inherit;
}
.sc-drag-handle:active { cursor: grabbing; }
