/**
 * Stylesheet: custom-image-grid-carousel-splitter.css
 * Tool 15: Custom Image Grid Maker & Seamless Carousel Splitter
 *
 * Strict 2-Column Desktop / 1-Column Mobile Layout
 * Modern Creative Studio Visual Identity
 */

/* ── Root Workspace ── */
.igs-workspace {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.tool-workspace.igs-workspace {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    align-items: start;
}

@media (min-width: 1025px) {
    .igs-preview {
        position: sticky;
        top: 90px;
        align-self: start;
        z-index: 10;
    }
}

@media (max-width: 1024px) {
    .tool-workspace.igs-workspace {
        grid-template-columns: 1fr;
    }
}

/* ── Top Tool Header Banner ── */
.igs-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.igs-header-left {
    max-width: 760px;
}

.igs-badge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 29, 72, 0.12);
    color: #f43f5e;
    border: 1px solid rgba(225, 29, 72, 0.25);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-3);
}

.igs-studio-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-heading);
    margin: 0 0 var(--space-3);
    letter-spacing: -0.025em;
}

.igs-title-gradient {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.igs-studio-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.igs-header-right {
    flex-shrink: 0;
}

.igs-quick-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.igs-pill-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 11px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.igs-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: igsPulse 2s infinite;
}

@keyframes igsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Upload Stage ── */
.igs-upload-stage {
    margin: var(--space-4) 0 var(--space-8);
}

.igs-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-14) var(--space-8);
    border: 2px dashed rgba(244, 63, 94, 0.35);
    background: radial-gradient(circle at 50% 30%, rgba(244, 63, 94, 0.06), transparent 70%),
                rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.igs-dropzone:hover,
.igs-dropzone.dragover {
    border-color: #f43f5e;
    background: radial-gradient(circle at 50% 30%, rgba(244, 63, 94, 0.12), transparent 70%),
                rgba(15, 23, 42, 0.75);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.2);
    transform: translateY(-2px);
}

.igs-hidden-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.igs-drop-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    margin-bottom: var(--space-5);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.igs-glow-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, transparent 70%);
    animation: igsGlowRing 3s ease-in-out infinite;
}

@keyframes igsGlowRing {
    0%, 100% { opacity: 0.4; transform: scale(0.96); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.igs-drop-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 var(--space-2);
}

.igs-drop-desc {
    max-width: 620px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 var(--space-6);
}

.igs-drop-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    z-index: 6;
}

.igs-btn-browse,
.igs-btn-sample {
    position: relative;
    z-index: 6;
}

.igs-drop-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.igs-drop-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Top Studio Toolbar ── */
.igs-top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.igs-toolbar-file {
    display: flex;
    align-items: center;
}

.igs-file-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.igs-pill-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.igs-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.igs-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   STRICT 2-COLUMN DESKTOP / 1-COLUMN MOBILE GRID
   ══════════════════════════════════════════════════════════ */
.igs-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 440px);
    gap: var(--space-6);
    align-items: start;
}

@media (max-width: 1024px) {
    .igs-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Card Styling ── */
.igs-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.igs-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.igs-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.igs-step-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 2px 8px;
    border-radius: 9999px;
}

/* ── Column 1: Interactive Pan/Zoom Viewport ── */
.igs-stage-card {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.igs-stage-header {
    margin-bottom: var(--space-3);
}

.igs-stage-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.igs-status-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.igs-zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.igs-zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s;
}

.igs-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f43f5e;
}

/* Viewport Outer Box */
.igs-viewport {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    min-height: 420px;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

/* Grid Container: Constrained to exact aspect ratio */
.igs-grid-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    background: #000;
}

/* Background Fill Layer (Gaussian blur, color, gradient) */
.igs-bg-fill-layer {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.65);
    pointer-events: none;
    z-index: 1;
}

/* Image Draggable Surface */
.igs-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    z-index: 2;
}

.igs-image-layer:active {
    cursor: grabbing;
}

.igs-image-layer img {
    position: absolute;
    transform-origin: 0 0;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Grid Slicing Lines & Tile Badges Layer */
.igs-grid-lines-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    display: grid;
}

.igs-tile-cell {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    transition: background 0.15s;
}

.igs-tile-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1.5px solid #f43f5e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.igs-tile-order-tag {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

/* ── Stage Footer ── */
.igs-stage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.igs-footer-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.igs-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.igs-inline-checkbox input {
    display: none;
}

.igs-check-pill {
    width: 32px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    position: relative;
    transition: background 0.2s;
}

.igs-check-pill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.igs-inline-checkbox input:checked + .igs-check-pill {
    background: #f43f5e;
}

.igs-inline-checkbox input:checked + .igs-check-pill::after {
    transform: translateX(14px);
}

/* ── Sliced Tiles Gallery Preview ── */
.igs-gallery-card {
    margin-top: var(--space-4);
}

.igs-gallery-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.igs-tiles-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.igs-gallery-thumb {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    cursor: pointer;
    transition: all 0.18s;
}

.igs-gallery-thumb:hover {
    border-color: #f43f5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.igs-gallery-thumb canvas {
    display: block;
    width: 100%;
    height: auto;
}

.igs-gallery-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #f43f5e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 9999px;
}

/* ── Column 2: Controls Column ── */
.igs-controls-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ── Mode Switcher ── */
.igs-mode-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-4);
}

.igs-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.igs-mode-btn:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.05);
}

.igs-mode-btn.active {
    background: rgba(244, 63, 94, 0.18);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Preset Chips */
.igs-presets-box {
    margin-bottom: var(--space-4);
}

.igs-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.igs-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.igs-chip-btn {
    padding: 6px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s;
}

.igs-chip-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: #f43f5e;
}

.igs-chip-btn.active {
    background: #f43f5e;
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

/* Custom Matrix Row */
.igs-custom-matrix-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.igs-matrix-x {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 8px;
}

.igs-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.igs-text-input,
.igs-select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: all 0.18s;
}

.igs-text-input:focus,
.igs-select:focus {
    outline: none;
    border-color: #f43f5e;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

.igs-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-4) 0;
}

/* Aspect Ratio Cards */
.igs-ratio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.igs-ratio-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.18s;
}

.igs-ratio-card strong {
    font-size: 0.95rem;
    color: var(--text-heading);
}

.igs-ratio-card span {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 2px 0;
}

.igs-ratio-card em {
    font-size: 0.7rem;
    font-style: normal;
    font-family: monospace;
    color: #94a3b8;
}

.igs-ratio-card:hover {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.05);
}

.igs-ratio-card.active {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.igs-ratio-card.active strong {
    color: #f43f5e;
}

/* Color Picker */
.igs-color-group {
    margin-top: var(--space-3);
}

.igs-color-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 4px 8px;
}

.igs-color-input {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

#igsColorHexReadout {
    font-size: 0.78rem;
    font-family: monospace;
    color: var(--text-secondary);
}

/* ── Action Card & Export ── */
.igs-action-card {
    background: radial-gradient(circle at 50% 0%, rgba(244, 63, 94, 0.08), transparent 70%),
                rgba(15, 23, 42, 0.85);
    border-color: rgba(244, 63, 94, 0.25);
}

.igs-action-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 2px;
}

.igs-action-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 var(--space-3);
}

.igs-export-format-row {
    margin-bottom: var(--space-4);
}

.igs-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.igs-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.igs-radio-label input {
    accent-color: #f43f5e;
}

.igs-btn-export {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
    cursor: pointer;
    transition: all 0.22s;
}

.igs-btn-export:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(244, 63, 94, 0.45);
}

.igs-btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Progress Bar */
.igs-progress-wrap {
    margin-bottom: var(--space-3);
}

.igs-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.igs-progress-bar-bg {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.igs-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e11d48, #f43f5e);
    transition: width 0.15s;
}

/* Trust Badge Footer */
.igs-trust-footer-card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Photoshop-Style Layer Stack ── */
.igs-layer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.igs-layer-list::-webkit-scrollbar {
    width: 4px;
}
.igs-layer-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.igs-layer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.igs-layer-item:hover {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.06);
}

.igs-layer-item.active {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.14);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.igs-layer-thumb {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    object-fit: cover;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.igs-layer-info {
    flex: 1;
    min-width: 0;
}

.igs-layer-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.igs-layer-meta {
    font-size: 10px;
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.igs-layer-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.igs-layer-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
}

.igs-layer-btn:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
    color: #fff;
}

.igs-layer-btn.btn-active {
    background: #f43f5e;
    color: #fff;
}

.igs-zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}
.igs-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f43f5e;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.6);
}
