/**
 * R1Promote — Public Interface Styles
 */

/* ── Access Denied ────────────────────────────────────── */
.r1p-denied {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: #555;
}

/* ── Status Bar ───────────────────────────────────────── */
#r1p-status-bar {
    background: #1e1e1e;
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

#r1p-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.r1p-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

#r1p-status-stats {
    font-size: 12px;
    opacity: 0.7;
    display: flex;
    gap: 16px;
}

/* ── Main Layout ──────────────────────────────────────── */
#r1p-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

#r1p-left-panel {
    flex: 0 0 420px;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

/* ── Tab Navigation ───────────────────────────────────── */
.r1p-tab-nav {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.r1p-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.r1p-tab-btn:hover {
    color: #333;
}

.r1p-tab-btn.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background: #fff;
}

.r1p-tab-panel {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* ── Studio Tab ───────────────────────────────────────── */
.r1p-studio-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

#r1p-studio-iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 180px);
    border: none;
    border-radius: 0 0 8px 8px;
    background: #1a1a2e;
}

/* Full-width Studio mode */
#r1p-main.r1p-mode-studio #r1p-left-panel {
    flex: 1;
    max-width: none;
    max-height: none;
}

#r1p-main.r1p-mode-studio #r1p-right-panel {
    display: none;
}

/* ── Studio Sub-Tabs ────────────────────────────── */
.r1p-studio-subtab-nav {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.r1p-studio-subtab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.r1p-studio-subtab-btn:hover {
    color: #333;
}

.r1p-studio-subtab-btn.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background: #fff;
}

/* ── Image Tabs ────────────────────────────────── */
.r1p-imgtabs-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    border-bottom: 2px solid #e0e0e0;
}
.r1p-imgtabs-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: #777;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 140px;
    border-radius: 6px 6px 0 0;
    background: transparent;
}
.r1p-imgtabs-btn:hover {
    color: #333;
    background: rgba(0,0,0,0.03);
}
.r1p-imgtabs-btn.r1p-imgtabs-active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background: rgba(34,113,177,0.05);
}
.r1p-imgtabs-panel {
    display: none;
    padding: 4px 0;
}
.r1p-imgtabs-panel.r1p-imgtabs-active {
    display: block;
}

/* ── Auto Gen Toolbar ─────────────────────────────────── */
#r1p-autogen-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Sections ─────────────────────────────────────────── */
#r1p-right-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
}

/* ── Sections ─────────────────────────────────────────── */
#r1p-left-panel h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #1e1e1e;
}

.r1p-hint {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px 0;
    font-style: italic;
}

.r1p-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.r1p-required {
    color: #d63638;
}

/* ── Form Groups ──────────────────────────────────────── */
.r1p-form-group {
    margin-bottom: 14px;
}

.r1p-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.r1p-form-group input[type="text"],
.r1p-form-group input[type="url"],
.r1p-form-group textarea,
.r1p-form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.r1p-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.r1p-form-group select {
    background: #fff;
}

/* ── Buttons ──────────────────────────────────────────── */
.r1p-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.r1p-btn-primary {
    background: #2271b1;
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}

.r1p-btn-primary:hover {
    background: #135e96;
}

.r1p-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.r1p-btn-danger {
    background: #f44336;
    color: #fff;
    border-color: #f44336;
}
.r1p-btn-danger:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}
.r1p-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.r1p-btn-outline {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.r1p-btn-outline:hover {
    background: #f0f6fc;
}

/* ── Template Grid ────────────────────────────────────── */
.r1p-template-cats {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.r1p-cat-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.15s;
}

.r1p-cat-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.r1p-cat-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

#r1p-template-scroll {
    max-height: 330px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px;
    background: #fafafa;
}

#r1p-template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.r1p-template-card {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    background: #fff;
}

.r1p-template-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34,113,177,0.15);
}

.r1p-template-card.selected {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.3);
}

.r1p-template-card .r1p-tpl-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 4px;
}

.r1p-template-card .r1p-tpl-best {
    font-size: 11px;
    color: #888;
}

.r1p-template-card .r1p-tpl-score {
    font-size: 11px;
    margin-top: 4px;
}

.r1p-tpl-preview {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    color: #999;
    cursor: pointer;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
}
.r1p-tpl-preview:hover {
    color: #2271b1;
    background: rgba(34,113,177,0.1);
}

.r1p-tpl-score-good {
    color: #4caf50;
    font-weight: 600;
}

.r1p-tpl-score-ok {
    color: #ff9800;
    font-weight: 600;
}

/* ── Image Upload Dropzones ───────────────────────────── */
#r1p-scan-dropzone,
#r1p-ref-dropzone {
    display: flex;
    align-items: center;
    gap: 10px;
}

#r1p-ref-preview {
    margin-top: 10px;
}

#r1p-ref-preview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

#r1p-scan-result {
    margin-top: 12px;
    padding: 12px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
    font-size: 13px;
    max-height: 200px;
    overflow-y: auto;
}

/* ── Actions ──────────────────────────────────────────── */
#r1p-actions {
    padding: 10px 0;
}

#r1p-actions .r1p-form-group {
    margin-bottom: 12px;
}

#r1p-generate-status {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #2271b1;
    text-align: center;
}

#r1p-generate-status.error {
    color: #d63638;
}

/* ── Gallery ──────────────────────────────────────────── */
#r1p-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

#r1p-gallery-header h3 {
    margin: 0;
    font-size: 16px;
}

#r1p-gallery-count {
    font-size: 13px;
    color: #888;
}

#r1p-gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.r1p-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

#r1p-gallery-empty p {
    font-size: 15px;
    line-height: 1.6;
}

#r1p-gallery-grid,
#r1p-imaging-gallery-grid,
#r1p-studio-gallery-grid,
#r1p-audio-gallery-grid,
#r1p-music-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.r1p-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
    transition: box-shadow 0.2s;
}

.r1p-gallery-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.r1p-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.r1p-gallery-item .r1p-item-trash {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r1p-gallery-item .r1p-item-recycle {
    position: absolute;
    top: 6px;
    right: 38px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r1p-gallery-item:hover .r1p-item-recycle {
    opacity: 1;
}

.r1p-gallery-item .r1p-item-recycle:hover {
    background: rgba(34,113,177,0.85);
}
.r1p-gallery-item .r1p-item-download {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255,255,255,0.85);
    color: #333;
    border: none;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}
.r1p-gallery-item:hover .r1p-item-download {
    display: flex;
}
.r1p-gallery-item .r1p-item-download:hover {
    background: rgba(255,255,255,1);
    color: #2271b1;
}
.r1p-gallery-item .r1p-item-convert {
    display: none;
    position: absolute;
    top: 6px;
    right: 34px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(0,0,0,0.7);
    color: #4caf50;
    border: none;
    font-size: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    transition: background 0.15s;
}
.r1p-gallery-item:hover .r1p-item-convert {
    display: flex;
}
.r1p-gallery-item .r1p-item-convert:hover {
    background: rgba(76,175,80,0.85);
    color: #fff;
}

.r1p-gallery-item:hover .r1p-item-trash {
    opacity: 1;
}

.r1p-gallery-item .r1p-item-trash:hover {
    background: #d63638;
}

.r1p-gallery-item .r1p-item-label {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.r1p-gallery-item .r1p-tpl-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(34, 113, 177, 0.85);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Prompt Editor ────────────────────────────────────── */
#r1p-prompt-preview-section {
    margin-bottom: 12px;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

#r1p-prompt-editor {
    margin-top: 6px;
}

.r1p-btn-sm {
    font-size: 11px !important;
    padding: 4px 10px !important;
    font-weight: 500 !important;
}

/* ── Size Selector ─────────────────────────────── */
.r1p-size-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #ccd0d4;
    border-radius: 10px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}
.r1p-size-btn:hover {
    border-color: #aaa;
    color: #333;
}
.r1p-size-btn.active {
    border-color: #2271b1;
    color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 12px rgba(34, 113, 177, 0.25), inset 0 0 8px rgba(34, 113, 177, 0.06);
}
.r1p-size-btn svg {
    flex-shrink: 0;
}

/* ── Preset Pills ─────────────────────────────────────── */
.r1p-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.r1p-preset-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #c5d9ed;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.15s;
}

.r1p-preset-pill:hover {
    background: #d2e3fc;
}

.r1p-preset-save {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    color: #888;
    cursor: pointer;
    border: 1px dashed #ccc;
    border-radius: 12px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.r1p-preset-save:hover {
    color: #2271b1;
    border-color: #2271b1;
}

/* ── Spinner / Loading ────────────────────────────────── */
.r1p-gallery-item-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 200%;
    animation: r1p-shimmer 1.5s ease-in-out infinite;
}

@keyframes r1p-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.r1p-spinner {
    border: 3px solid #e0e0e0;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: r1p-spin 0.8s linear infinite;
}

@keyframes r1p-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Gallery Stats ────────────────────────────────────── */
#r1p-gallery-stats {
    margin-top: 16px;
    padding: 10px 14px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
    font-size: 13px;
    color: #2271b1;
    text-align: center;
}

/* ── Settings Page ────────────────────────────────────── */
.r1p-settings-wrap .nav-tab-wrapper {
    margin-bottom: 20px;
}

.r1p-template-table td {
    vertical-align: middle;
}

/* ── History Tabs ─────────────────────────────────────── */
#r1p-history-tabs,
.r1p-history-tabs {
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.r1p-history-tab {
    padding: 5px 24px 5px 12px;
    font-size: 12px;
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    transition: background 0.15s;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.r1p-history-tab-x {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    font-size: 11px !important;
    color: #333;
    cursor: pointer;
    z-index: 2;
    line-height: 18px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.r1p-history-tab-x:hover {
    opacity: 1 !important;
    color: #d63638;
}

.r1p-history-tab .r1p-tab-count {
    opacity: 0.7;
    font-size: 10px;
    margin-left: 2px;
    flex-shrink: 0;
}

.r1p-history-tab:hover {
    background: #e0e0e0;
}

.r1p-history-tab.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* ── Lightbox ─────────────────────────────────────────── */
#r1p-lightbox {
    display: none;
}

#r1p-lightbox.show {
    display: flex !important;
}

/* ── Video Gallery Items ──────────────────────────────── */
.r1p-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
    transition: background 0.15s;
}
.r1p-video-play:hover {
    background: rgba(0,0,0,0.9);
}
/* Video items in gallery */
.r1p-gallery-item[data-video-url] {
    cursor: pointer;
}
.r1p-gallery-item[data-video-url]::after {
    content: '';
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    #r1p-main {
        flex-direction: column;
    }
    #r1p-left-panel {
        flex: none;
        max-width: none;
    }
    #r1p-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* ── Video Splicing ────────────────────────────────── */
#r1p-splice-track {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

#r1p-splice-track::-webkit-scrollbar {
    height: 6px;
}

#r1p-splice-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.r1p-splice-card {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.r1p-splice-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.r1p-splice-transition-btn {
    transition: background 0.2s, transform 0.15s;
}

.r1p-splice-transition-btn:hover {
    transform: translate(-50%,-50%) scale(1.15) !important;
}

.r1p-splice-delete {
    opacity: 0;
    transition: opacity 0.15s;
}

.r1p-splice-card:hover .r1p-splice-delete {
    opacity: 1;
}

/* ── Video Flyer Editor ─────────────────────────────────── */
#r1p-video-editor-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
}
#r1p-video-editor-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}
#r1p-editor-canvas {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.r1p-editor-obj {
    transition: box-shadow 0.15s;
}
.r1p-editor-obj:hover {
    box-shadow: 0 0 0 2px rgba(34,113,177,0.4);
}
.r1p-editor-obj.active {
    box-shadow: 0 0 0 2px #2271b1 !important;
    z-index: 100 !important;
}
.r1p-editor-layer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 2px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}
.r1p-editor-layer-row:hover {
    background: #f0f6fc;
}
.r1p-editor-layer-active {
    background: #e8f0fe !important;
    border-color: #2271b1 !important;
}
.r1p-editor-layer-icon {
    font-size: 14px;
    flex-shrink: 0;
}
.r1p-editor-layer-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-weight: 500;
}
.r1p-editor-layer-z {
    font-size: 10px;
    color: #999;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 3px;
}
