/* ── MINIMAL ON-THEME EXPLORER TAB ── */
.exp-panel {
    font-family: sans-serif;
    font-size: 13px;
    color: #111;
}

.exp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d0d7de;
}

.exp-left,
.exp-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.exp-mode-group {
    display: inline-flex;
    border: 1px solid #888;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.exp-mode-btn {
    padding: 4px 11px;
    border: none;
    border-right: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.exp-mode-btn:last-child { border-right: none; }
.exp-mode-btn:hover { background: #f0f4ff; }
.exp-mode-btn[aria-pressed="true"] {
    background: #1565c0;
    color: #fff;
}

.exp-select,
.exp-date {
    padding: 4px 6px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    color: #111;
}

.exp-label {
    font-size: 12px;
    color: #444;
    font-weight: 600;
    margin: 0;
}

.exp-btn {
    padding: 4px 10px;
    border: 1px solid #888;
    border-radius: 4px;
    background: #f0f0f0;
    color: #111;
    font-size: 12px;
    cursor: pointer;
}
.exp-btn:hover:not(:disabled) { background: #e2e2e2; }
.exp-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.exp-btn-primary {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    background: #1565c0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.exp-btn-primary:hover:not(:disabled) { background: #0d47a1; }
.exp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.exp-muted {
    font-size: 12px;
    color: #555;
}

.exp-status-msg {
    padding: 20px 8px;
    text-align: center;
    color: #555;
    font-size: 13px;
}

/* ── MAIN STAGE VIEWPORT ── */
.exp-stage {
    padding: 12px 0;
}

/* 6-Well Grid */
.exp-plate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 780px;
    margin: 0 auto;
}

.exp-well-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    transition: border-color 120ms ease;
}

.exp-well-card:hover {
    border-color: #1565c0;
}

.exp-well-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 4px;
    color: #1a237e;
    font-weight: 600;
}

.exp-well-sub {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.exp-well-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    background: #111;
    border-radius: 4px;
    object-fit: cover;
}

/* 1-Well & 1-Coord Split with Side Minimap */
.exp-detail-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.exp-detail-main {
    flex: 1 1 420px;
    max-width: 520px;
    min-width: 0;
}

.exp-detail-side {
    width: 240px;
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-mini-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-plate-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.exp-plate-mini-btn {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid #90a4ae;
    background: #f0f4ff;
    color: #1a237e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.exp-plate-mini-btn:hover {
    border-color: #1565c0;
    background: #dbeafe;
}

.exp-plate-mini-btn.active {
    background: #1565c0;
    border-color: #0d47a1;
    color: #fff;
}

.exp-coord-mini-wrap {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
}

.exp-coord-mini-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 1.5px;
    aspect-ratio: 1 / 1;
}

.exp-mini-cell {
    border: none;
    padding: 0;
    border-radius: 2px;
    background: transparent;
}

.exp-mini-cell.clipped {
    background: #e2e8f0;
    opacity: 0.45;
}

.exp-mini-cell.captured {
    background: #bbdefb;
    cursor: pointer;
}

.exp-mini-cell.captured:hover {
    background: #64b5f6;
}

.exp-mini-cell.active {
    background: #1565c0;
    outline: 1.5px solid #0d47a1;
}

.exp-nudge-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.exp-well-meta,
.exp-coord-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #444;
}

.exp-mosaic-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    border: 2px solid #333;
    border-radius: 4px;
    overflow: hidden;
    cursor: crosshair;
}

#exp-well-img,
#exp-coord-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #111;
}

.exp-coord-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    border: 2px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.exp-coord-missing {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 13px;
    background: rgba(17, 17, 17, 0.85);
}

.exp-coord-missing[hidden] {
    display: none;
}

#exp-well-highlight {
    position: absolute;
    pointer-events: none;
    border: 2.5px solid #1565c0;
    background: rgba(21, 101, 192, 0.24);
    box-sizing: border-box;
}

#exp-well-selected {
    position: absolute;
    pointer-events: none;
    border: 2px solid #f59e0b;
    box-sizing: border-box;
}

.exp-hover-tip {
    position: absolute;
    pointer-events: none;
    background: rgba(24, 33, 45, 0.92);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    white-space: nowrap;
}

/* ── SCRUBBER BAR ── */
.exp-scrubber {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #d0d7de;
}

.exp-slider {
    flex: 1 1 220px;
    min-width: 140px;
    accent-color: #1565c0;
    cursor: pointer;
}

.exp-time-readout {
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1a237e;
    min-width: 185px;
    text-align: right;
}

@media (max-width: 640px) {
    .exp-plate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
