/* ═══════════════════════════════════════════════════════
   Section Preview fieldtype  (.sprev-*)
   ═══════════════════════════════════════════════════════ */

.sprev-wrap { padding-top: 0.25rem; }

.sprev-img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--color-border-input);
    display: block;
}

.sprev-empty {
    height: 2.5rem;
    border-radius: 6px;
    border: 1px dashed var(--color-border-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* ═══════════════════════════════════════════════════════
   Section Manager fieldtype  (.smgr-*)
   ═══════════════════════════════════════════════════════ */

.smgr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.05);
}

.smgr-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(128, 128, 128, 0.1);
}

.smgr-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smgr-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(128, 128, 128, 0.6);
}

.smgr-meta {
    flex: 1;
    min-width: 0;
}

.smgr-name-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.smgr-handle {
    font-size: 11px;
    opacity: 0.45;
    margin-top: 4px;
    font-family: monospace;
}

.smgr-controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.smgr-toggle {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    user-select: none;
}

.smgr-toggle-knob {
    position: absolute;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.smgr-label {
    font-size: 11px;
    opacity: 0.55;
}
