:root {
    --se-bg-main: #FAFAFA;
    --se-bg-panel: #ffffff;
    --se-border-color: #e2e8f0;
    --se-accent: #6366f1;
    --se-accent-hover: #4f46e5;
    --se-accent-light: rgba(99, 102, 241, 0.08);
    --se-text-primary: #0f172a;
    --se-text-secondary: #64748b;
    --se-bg-sidebar: #0f172a;
    --se-sidebar-text: #94a3b8;
    --se-sidebar-active: #ffffff;
    --se-topbar-height: 60px;
    --se-property-bar-height: 48px;
    --se-sidebar-width: 72px;
    --se-panel-width: 248px;
    --se-danger: #ef4444;
    --se-danger-hover: #dc2626;
}

/* Base resets for self-contained editor container */
.se-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--se-text-primary);
    background: var(--se-bg-main);
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Inline / embedded designer ([shirt_editor_designer] shortcode) —
   override the full-screen 100vh app height so it sits within page flow. */
.se-embed-mode {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.se-embed-mode .se-container {
    height: var(--se-embed-height, 85vh);
    min-height: 600px;
}

.se-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Topbar Style ──────────────────────────────────────────────────────── */
.se-topbar {
    height: var(--se-topbar-height);
    background: var(--se-bg-panel);
    border-bottom: 1px solid var(--se-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.se-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.se-logo img {
    height: 36px;
    object-fit: contain;
    display: block;
}

.se-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--se-text-primary);
    background: var(--se-bg-main);
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid var(--se-border-color);
}

.se-topbar-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.se-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.se-unit-price {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    padding: 0 10px;
    white-space: nowrap;
}

.se-unit-price .woocommerce-Price-amount {
    font-weight: 600;
}

.se-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--se-border-color);
    background: var(--se-bg-panel);
    color: var(--se-text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.se-btn-icon:hover {
    color: var(--se-text-primary);
    border-color: var(--se-text-secondary);
    background: var(--se-bg-main);
}

.se-btn-icon.favorited {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.se-btn-icon.favorited svg {
    fill: currentColor;
}

.se-editor-notice {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 9999;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--se-border-color);
    background: #ffffff;
    color: var(--se-text-primary);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.se-editor-notice.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.se-editor-notice.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.se-editor-notice.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.se-editor-notice.info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.se-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--se-accent);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.se-btn-primary:hover {
    background: var(--se-accent-hover);
}

/* ─── Contextual Property Bar ───────────────────────────────────────────── */
.se-property-bar {
    height: var(--se-property-bar-height);
    background: #f1f5f9;
    border-bottom: 1px solid var(--se-border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    z-index: 90;
}

.se-prop-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.se-prop-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.se-prop-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--se-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.se-prop-divider {
    height: 20px;
    width: 1px;
    background: var(--se-border-color);
}

.se-select {
    background: #ffffff;
    border: 1px solid var(--se-border-color);
    color: var(--se-text-primary);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.se-select:focus {
    border-color: var(--se-accent);
}

.se-number-input {
    background: #ffffff;
    border: 1px solid var(--se-border-color);
    color: var(--se-text-primary);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    width: 60px;
    border-radius: 6px;
    outline: none;
    text-align: center;
}

.se-number-input:focus {
    border-color: var(--se-accent);
}

.se-btn-group {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--se-border-color);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.se-btn-toggle {
    border: none;
    background: transparent;
    color: var(--se-text-secondary);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.se-btn-toggle:hover {
    color: var(--se-text-primary);
    background: var(--se-bg-main);
}

.se-btn-toggle.active {
    background: var(--se-accent);
    color: #ffffff;
}

.se-btn-tool {
    border: none;
    background: transparent;
    color: var(--se-text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.se-btn-tool:hover {
    color: var(--se-text-primary);
    background: #e2e8f0;
}

.se-btn-delete {
    border: 1px solid var(--se-border-color);
    background: #ffffff;
    color: var(--se-danger);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.se-btn-delete:hover {
    color: #ffffff;
    background: var(--se-danger);
    border-color: var(--se-danger);
}

/* Color input overlay */
.se-color-picker-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.se-active-color-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--se-border-color);
    cursor: pointer;
}

.se-hidden-color-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ─── Main Body Area ────────────────────────────────────────────────────── */
.se-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar */
.se-sidebar {
    width: var(--se-sidebar-width);
    background: var(--se-bg-sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
    z-index: 80;
}

.se-sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: none;
    background: transparent;
    color: var(--se-sidebar-text);
    cursor: pointer;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    gap: 6px;
    transition: all 0.2s ease;
}

.se-sidebar-btn svg {
    transition: transform 0.2s ease;
}

.se-sidebar-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.se-sidebar-btn:hover svg {
    transform: scale(1.1);
}

.se-sidebar-btn.active {
    color: var(--se-accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Middle Tab Panels */
.se-panel {
    width: var(--se-panel-width);
    background: var(--se-bg-panel);
    border-right: 1px solid var(--se-border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 70;
}

.se-tab-content {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 16px;
}

.se-tab-content.active {
    display: flex;
}

.se-tab-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--se-text-primary);
}

.se-panel-section {
    margin-bottom: 20px;
}

.se-panel-section h4 {
    font-size: 11px;
    font-weight: 600;
    color: var(--se-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* ─── Tab Item Contents ─────────────────────────────────────────────────── */

/* Shirt Color Swatches */
.se-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.se-swatch {
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--se-border-color);
    transition: transform 0.2s ease;
}

.se-swatch:hover {
    transform: scale(1.1);
}

.se-swatch.active {
    box-shadow: 0 0 0 2px var(--se-accent);
}

.se-custom-color-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.se-color-picker-input {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.se-hex-input {
    flex: 1;
    background: var(--se-bg-main);
    border: 1px solid var(--se-border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    text-transform: uppercase;
}

.se-hex-input:focus {
    border-color: var(--se-accent);
}

.se-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--se-border-color);
    outline: none;
    margin: 8px 0;
}

.se-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--se-accent);
    cursor: pointer;
}

/* Info card */
.se-info-card {
    background: var(--se-bg-main);
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    padding: 12px;
}

.se-info-card strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.se-info-card p {
    font-size: 11px;
    color: var(--se-text-secondary);
    line-height: 1.4;
}

/* Size Selection */
.se-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.se-size-btn {
    border: 1px solid var(--se-border-color);
    background: #ffffff;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    color: var(--se-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.se-size-btn:hover {
    border-color: var(--se-accent);
    background: var(--se-bg-main);
}

.se-size-btn.active {
    border-color: var(--se-accent);
    background: var(--se-accent-light);
    color: var(--se-accent);
}

/* Quantity Control */
.se-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 120px;
    background: #ffffff;
}

.se-qty-btn {
    border: none;
    background: var(--se-bg-main);
    color: var(--se-text-primary);
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.se-qty-btn:hover {
    background: var(--se-border-color);
}

.se-qty-input {
    border: none;
    border-left: 1px solid var(--se-border-color);
    border-right: 1px solid var(--se-border-color);
    text-align: center;
    width: 48px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.se-qty-input::-webkit-outer-spin-button,
.se-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Upload Zone */
.se-upload-zone {
    border: 2px dashed var(--se-border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    background: var(--se-bg-main);
    color: var(--se-text-secondary);
    transition: all 0.2s ease;
}

.se-upload-zone:hover {
    border-color: var(--se-accent);
    background: var(--se-accent-light);
    color: var(--se-accent);
}

.se-upload-zone svg {
    margin-bottom: 6px;
}

.se-upload-zone span {
    font-size: 12px;
    font-weight: 500;
}

.se-upload-zone small {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Grid Layouts */
.se-gallery-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.se-gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* Image Card */
.se-image-card {
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    /* overflow: visible so the ✕ remove button is not clipped */
    overflow: visible;
    position: relative;
}

.se-image-card:hover {
    border-color: var(--se-accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Uploaded images get a subtle accent top-border so they stand out */
.se-image-card--uploaded {
    border-top: 2px solid var(--se-accent);
}

.se-image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 4px;
}

.se-image-card span {
    font-size: 10px;
    font-weight: 500;
    color: var(--se-text-primary);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

/* ✕ remove button on uploaded gallery cards */
.se-image-remove-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: scale(0.8);
}

.se-image-card:hover .se-image-remove-btn {
    opacity: 1;
    transform: scale(1);
}

/* Gallery section label ("My Uploads" / "Gallery") */
.se-gallery-section-label {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--se-text-secondary);
    padding: 4px 0 2px;
    border-bottom: 1px solid var(--se-border-color);
    margin-bottom: 2px;
}

/* Font Card */
.se-font-card {
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    overflow: hidden;
}

.se-font-card:hover {
    border-color: var(--se-accent);
    background: var(--se-bg-main);
}

.se-font-card img {
    max-width: 100%;
    max-height: 26px;
    object-fit: contain;
}

.se-font-card span {
    font-size: 11px;
    font-weight: 500;
    color: var(--se-text-primary);
    word-break: break-all;
}

/* Add Text Primary Button */
.se-btn-add-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--se-accent);
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.se-btn-add-primary:hover {
    background: var(--se-accent-hover);
}

/* Template Card */
.se-template-card {
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.se-template-card:hover {
    border-color: var(--se-accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.se-template-card img {
    width: 100%;
    aspect-ratio: 1.1;
    object-fit: cover;
    border-bottom: 1px solid var(--se-border-color);
}

.se-template-card span {
    padding: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--se-text-primary);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Shape Button */
.se-shape-btn {
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    aspect-ratio: 1;
}

.se-shape-btn:hover {
    border-color: var(--se-accent);
    background: var(--se-bg-main);
}

.se-shape-btn span {
    color: var(--se-accent);
}

.se-shape-btn img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.se-shape-btn small {
    font-size: 9px;
    color: var(--se-text-secondary);
    font-weight: 500;
}

/* Sticker Button */
.se-sticker-btn {
    border: 1px solid var(--se-border-color);
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.se-sticker-btn:hover {
    border-color: var(--se-accent);
    background: var(--se-bg-main);
}

.se-sticker-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Layers List */
.se-layers-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.se-layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--se-bg-main);
    border: 1px solid var(--se-border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.se-layer-item:hover {
    background: #f1f5f9;
}

.se-layer-item.active {
    background: var(--se-accent-light);
    border-color: var(--se-accent);
    color: var(--se-accent);
}

.se-layer-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.se-layer-icon {
    font-size: 14px;
}

.se-layer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.se-layer-visibility {
    border: none;
    background: transparent;
    padding: 2px;
    cursor: pointer;
    color: var(--se-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.se-layer-visibility:hover {
    opacity: 0.8;
}

.se-layer-visibility.visible {
    opacity: 1;
    color: var(--se-accent);
}

.se-canvas-stage {
    flex: 1;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.se-canvas-stage.se-show-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.se-canvas-viewport-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-canvas-viewport {
    position: relative;
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

.canvas-container {
    background: transparent !important;
}

/* Side Switcher (Front/Back) */
.se-side-switcher {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--se-border-color);
    z-index: 10;
}

.se-side-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--se-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.se-side-btn:hover {
    color: var(--se-text-primary);
}

.se-side-btn.active {
    background: var(--se-accent);
    color: #ffffff;
}

/* Zoom Controls Bar */
.se-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--se-border-color);
    z-index: 10;
}

.se-zoom-btn {
    border: none;
    background: #f1f5f9;
    color: var(--se-text-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.se-zoom-btn:hover {
    background: #e2e8f0;
}

.se-slider-container {
    display: flex;
    align-items: center;
}

.se-zoom-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    outline: none;
}

.se-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--se-accent);
    cursor: pointer;
}

.se-zoom-percent {
    font-size: 11px;
    font-weight: 600;
    color: var(--se-text-primary);
    min-width: 32px;
    text-align: right;
}

/* Scrollbar styles */
.se-tab-content::-webkit-scrollbar {
    width: 6px;
}

.se-tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.se-tab-content::-webkit-scrollbar-thumb {
    background: var(--se-border-color);
    border-radius: 3px;
}

.se-tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--se-text-secondary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .se-container {
        height: auto;
        overflow-y: auto;
    }
    .se-body {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }
    .se-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        height: 64px;
    }
    .se-sidebar-btn {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    .se-panel {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--se-border-color);
    }
    .se-canvas-stage {
        height: 500px;
        overflow: visible;
    }
    .se-side-switcher {
        bottom: 10px;
    }
}

/* ─── Toggle Switch Controls ────────────────────────────────────────────── */
.se-settings-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--se-text-primary);
    font-weight: 500;
}

.se-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.se-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.se-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 20px;
}

.se-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .se-slider {
    background-color: var(--se-accent);
}

input:checked + .se-slider:before {
    transform: translateX(20px);
}
