/* ==============================================================================
   ARIMA - DISCORD COMPONENTS V2 EDITOR & LIVE PREVIEW (style.css)
   Signature Voyage & SeekACommunity Aesthetic (Light Theme with Authentic Discord Chat)
   ============================================================================== */

:root {
    /* Arima Signature Design Tokens */
    --bg-page-gradient: linear-gradient(180deg, #9bc2e8 0%, #edd8c8 45%, #f4efe9 85%, #f8f6f3 100%);
    --bg-card: #ffffff;
    --bg-card-warm: #f4efe9;
    --bg-card-sand: #eee7de;
    --border-subtle: rgba(97, 74, 68, 0.12);
    --border-card: rgba(97, 74, 68, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.9);

    --text-primary: #1a1615;
    --text-secondary: #453f3d;
    --text-muted: #757170;
    --text-tag: #614a44;

    --accent-green: #0ea158;
    --accent-green-hover: #0b8045;
    --accent-blue: #156cc2;
    --accent-amber: #cf8d13;
    --accent-terracotta: #c9502e;
    --accent-discord: #5865F2;

    --shadow-sm: 0 2px 10px rgba(97, 74, 68, 0.04);
    --shadow-md: 0 8px 30px rgba(97, 74, 68, 0.07);
    --shadow-lg: 0 16px 50px rgba(97, 74, 68, 0.1);

    --radius-pill: 9999px;
    --radius-card: 22px;
    --radius-card-sm: 14px;

    --font-heading: "Open Runde", "Plus Jakarta Sans", sans-serif;
    --font-body: "Open Runde", "Inter", "Plus Jakarta Sans", sans-serif;
    --font-mono: "Fragment Mono", monospace;

    /* Discord Interior Dark Palette */
    --discord-chat-bg: #313338;
    --discord-card-bg: #2b2d31;
    --discord-input-bg: #1e1f22;
    --discord-text-normal: #dbdee1;
    --discord-text-muted: #949ba4;
    --discord-text-header: #f2f3f5;
    --discord-blurple: #5865F2;
    --discord-blurple-hover: #4752C4;
    --discord-grey: #4e5058;
    --discord-grey-hover: #6d6f78;
    --discord-green: #248046;
    --discord-green-hover: #1a6334;
    --discord-red: #da373c;
    --discord-red-hover: #a12828;
}

/* Base Body Styles */
body.editor-page-body {
    background: var(--bg-page-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Page Layout Wrapper */
.editor-page-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding: 95px 24px 60px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.editor-page-container {
    width: 100%;
    max-width: 1540px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==============================================================================
   1. Page Hero Intro Banner
   ============================================================================== */

.editor-hero-header {
    text-align: center;
    margin: 10px auto 14px auto;
    max-width: 760px;
}

.seek-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-discord);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.editor-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0 0 8px 0;
}

.editor-hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==============================================================================
   2. Header Action Bar (Webhook, Custom Bot, JSON, Clear)
   ============================================================================== */

.editor-action-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-md);
}

.editor-bar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.webhook-profile-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.webhook-avatar-uploader {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px dashed rgba(97, 74, 68, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-warm);
    flex-shrink: 0;
}

.webhook-avatar-uploader:hover {
    border-color: var(--accent-green);
}

.webhook-avatar-uploader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.webhook-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 21, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 13px;
}

.webhook-avatar-uploader:hover .webhook-avatar-overlay {
    opacity: 1;
}

.webhook-inputs-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Styled Input Fields */
.editor-input {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--font-body);
    transition: border-color 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
    outline: none;
}

.editor-input:focus {
    border-color: var(--accent-green);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(14, 161, 88, 0.12);
}

.input-name {
    width: 140px;
    font-weight: 600;
}

.input-avatar-url {
    width: 230px;
}

.btn-clear-local-avatar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-pill, 9999px);
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-clear-local-avatar:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
}

/* Mode Switcher */
.profile-mode-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}

.mode-switch-btn {
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.mode-switch-btn:hover {
    color: var(--text-primary);
}

.mode-switch-btn.active {
    background: #ffffff;
    color: var(--accent-green);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Action Tools */
.editor-tools-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-btn-action {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.editor-btn-action:hover {
    background: var(--bg-card-sand);
    border-color: rgba(97, 74, 68, 0.2);
}

.editor-btn-action.btn-json {
    color: var(--accent-blue);
}

.editor-btn-action.btn-clear {
    color: var(--accent-terracotta);
}

.editor-btn-action.btn-clear:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Endpoint Bar */
.editor-bar-endpoint {
    width: 100%;
    padding-top: 12px;
    border-top: 1px dashed rgba(97, 74, 68, 0.15);
}

.endpoint-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.endpoint-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.endpoint-input-container .endpoint-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.input-endpoint-url {
    width: 100%;
    padding-left: 38px !important;
    background: var(--bg-card-warm);
    font-family: monospace, var(--font-body);
    font-size: 12.5px;
}

.btn-send {
    color: #ffffff !important;
    white-space: nowrap;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-body);
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: opacity 0.15s ease;
}

.btn-send:hover {
    opacity: 0.9;
}

.btn-send-webhook {
    background: #5865F2 !important;
    border-color: #5865F2 !important;
}

.btn-send-api {
    background: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

/* ==============================================================================
   3. Add Top-Level Component Bar (Floating Pill)
   ============================================================================== */

.add-component-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.add-component-bar:hover {
    border-color: rgba(97, 74, 68, 0.2);
    box-shadow: var(--shadow-md);
}

.btn-add-type {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-add-type i {
    font-size: 13px;
    color: var(--accent-green);
    transition: transform 0.2s;
}

.btn-add-type:hover {
    background: #ffffff;
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(97, 74, 68, 0.08);
}

.btn-add-type:hover i {
    transform: scale(1.15);
}

/* ==============================================================================
   4. Two-Column Layout Grid
   ============================================================================== */

.editor-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1040px) {
    .editor-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================================================
   5. Left Column: Component Cards & Drag-and-Drop
   ============================================================================== */

.editor-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

#editor-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Editor Component Card */
.editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.editor-card:hover {
    border-color: rgba(97, 74, 68, 0.2);
    box-shadow: var(--shadow-md);
}

/* Drag & Drop Visual Indicators */
.editor-card.is-dragging {
    opacity: 0.35;
    transform: scale(0.98);
    box-shadow: 0 16px 40px rgba(97, 74, 68, 0.15);
}

.editor-card.drag-over-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-green);
    z-index: 10;
    border-radius: 4px 4px 0 0;
}

.editor-card.drag-over-bottom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-green);
    z-index: 10;
    border-radius: 0 0 4px 4px;
}

/* Container accent stripe */
.card-type-17 {
    --stripe-color: #5865F2;
    border-left: 5px solid var(--stripe-color);
}

.editor-card.has-open-dropdown,
.editor-card:has(.btn-style-dropdown-wrap.is-open) {
    overflow: visible !important;
    z-index: 50 !important;
}

/* Card Header */
.editor-card-header {
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
    position: relative;
    z-index: 5;
}

.card-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    transition: color 0.15s, transform 0.15s;
}

.card-drag-handle:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.card-drag-handle:active {
    cursor: grabbing;
}

.card-btn-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    transition: transform 0.2s ease, color 0.2s;
}

.card-btn-toggle:hover {
    color: var(--text-primary);
}

.editor-card.is-collapsed .card-btn-toggle {
    transform: rotate(-90deg);
}

.editor-card.is-collapsed .editor-card-body {
    display: none;
}

.card-type-info {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}

.card-icon-pill {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.card-type-badge {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-title-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 3px 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    max-width: 220px;
    letter-spacing: -0.01em;
}

.card-title-input:hover {
    background: var(--bg-card-warm);
    border-color: var(--border-subtle);
}

.card-title-input:focus {
    background: #ffffff;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(14, 161, 88, 0.15);
}

.card-header-color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--border-subtle);
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-action-btn {
    background: var(--bg-card-warm);
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.card-action-btn:hover {
    background: var(--bg-card-sand);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.card-action-btn.card-action-spoiler {
    color: var(--text-muted);
}

.card-action-btn.card-action-spoiler:hover {
    background: rgba(201, 80, 46, 0.1);
    color: var(--accent-terracotta);
    border-color: rgba(201, 80, 46, 0.25);
}

.card-action-btn.card-action-spoiler.active {
    background: var(--accent-terracotta);
    color: #ffffff;
    border-color: var(--accent-terracotta);
    box-shadow: 0 2px 8px rgba(201, 80, 46, 0.25);
}

.card-action-btn.card-action-del:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.card-action-btn.card-action-disabled {
    color: var(--text-muted);
}

.card-action-btn.card-action-disabled:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.card-action-btn.card-action-disabled.is-disabled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.15);
}

/* Separator Action Buttons (1-icon compact) */
.card-action-btn.card-action-divider.is-visible {
    background: rgba(14, 161, 88, 0.1);
    color: #0ea158;
    border-color: rgba(14, 161, 88, 0.28);
}

.card-action-btn.card-action-divider.is-visible:hover {
    background: rgba(14, 161, 88, 0.2);
    border-color: #0ea158;
    color: #0a7c43;
}

.card-action-btn.card-action-divider.is-hidden {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.28);
}

.card-action-btn.card-action-divider.is-hidden:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #dc2626;
}

.card-action-btn.card-action-spacing.is-thick {
    background: rgba(21, 108, 194, 0.1);
    color: #156cc2;
    border-color: rgba(21, 108, 194, 0.28);
}

.card-action-btn.card-action-spacing.is-thick:hover {
    background: rgba(21, 108, 194, 0.2);
    border-color: #156cc2;
    color: #0d5296;
}

/* Card Header Quick Toggle Buttons (Separator, etc.) */
.card-header-toggle-btn {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.card-header-toggle-btn:hover {
    background: var(--bg-card-sand);
    color: var(--text-primary);
    border-color: rgba(97, 74, 68, 0.25);
}

.card-header-toggle-btn.active {
    background: #ffffff;
    color: var(--accent-green);
    border-color: rgba(14, 161, 88, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Flat Separator Card without body */
.editor-card.card-separator .editor-card-header {
    border-bottom: none;
}

/* Card Body */
.editor-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #faf8f5;
    position: relative;
    z-index: 1;
}

/* Controls & Inputs inside Cards */
.editor-control-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.control-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.flex-row-gap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.control-checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    transition: all 0.15s;
}

.control-checkbox-pill:hover {
    border-color: rgba(97, 74, 68, 0.25);
    background: #ffffff;
}

/* Color Palette Chips & Header Color Bar */
.container-header-color-bar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 6px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.035);
    border-radius: var(--radius-pill, 9999px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.color-palette-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.color-preset-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    outline: none;
}

.color-preset-chip:hover {
    transform: scale(1.2);
}

.color-preset-chip.active {
    transform: scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px var(--text-primary);
}

.color-native-input-wrap {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(#ff4365, #ff9f1c, #ffe66d, #2ec4b6, #3a86ff, #9b5de5, #ff4365);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.color-native-input-wrap:hover {
    transform: scale(1.2);
}

.color-native-input-wrap.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--text-primary);
}

.color-native-input {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

.color-native-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}

.color-native-input::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0;
}

.color-native-input::-moz-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0;
}

/* Markdown Toolbar & Textarea */
.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-subtle);
    border-bottom: none;
}

.md-tool-btn {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
}

.md-tool-btn:hover {
    background: var(--bg-card-sand);
    border-color: rgba(97, 74, 68, 0.2);
    transform: translateY(-1px);
}

.editor-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 12px 12px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13.5px;
    padding: 14px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(14, 161, 88, 0.15);
}

.char-counter-pill {
    align-self: flex-end;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    margin-top: -6px;
}

/* Convert Text to Section Accessory Bar */
.text-add-accessory-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-subtle);
    flex-wrap: wrap;
}

.text-add-acc-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text-acc-pill {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-text-acc-pill:hover {
    background: #ffffff;
    color: var(--accent-green);
    border-color: rgba(14, 161, 88, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Nested Components Container */
.nested-components-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 14px;
    border-left: 2px solid rgba(97, 74, 68, 0.12);
    margin: 4px 0;
}

/* Section Accessory Box */
.section-accessory-box {
    background: #ffffff;
    border: 1px dashed rgba(97, 74, 68, 0.2);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessory-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accessory-choice-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-add-acc,
.btn-add-section-item {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-add-acc:hover,
.btn-add-section-item:hover {
    background: #ffffff;
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-remove-accessory {
    align-self: flex-start;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #ef4444;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

/* Media Gallery in Editor */
.editor-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-gallery-squares-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.gallery-thumb-square {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card-warm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.gallery-thumb-square:hover {
    border-color: var(--accent-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-thumb-square.is-placeholder {
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(97, 74, 68, 0.04),
        rgba(97, 74, 68, 0.04) 6px,
        rgba(97, 74, 68, 0.09) 6px,
        rgba(97, 74, 68, 0.09) 12px
    );
    border: 2px dashed rgba(97, 74, 68, 0.25);
    color: var(--text-muted);
}

.gallery-thumb-square.is-placeholder:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.thumb-placeholder-stripes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}

.thumb-placeholder-stripes i {
    font-size: 20px;
}

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

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 21, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: #ffffff;
    font-size: 14px;
}

.gallery-thumb-square:hover .thumb-overlay {
    opacity: 1;
}

.thumb-del-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(26, 22, 21, 0.75);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 3;
    transition: background-color 0.15s;
}

.thumb-del-btn:hover {
    background: #ef4444;
}

/* Thumbnail Accessory Editor in Section */
.thumbnail-accessory-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 0;
}

.thumb-editor-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.thumb-controls-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 240px;
}

.thumb-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.input-thumb-url {
    flex: 1;
    min-width: 200px;
}

.local-image-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 161, 88, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(14, 161, 88, 0.25);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
}

.btn-remove-local-thumb,
.btn-clear-thumb-url {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
}

.btn-remove-local-thumb:hover,
.btn-clear-thumb-url:hover {
    color: #ef4444;
}

.btn-upload-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-upload-pill:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.card-action-btn.card-action-switch-acc:hover {
    background: rgba(201, 80, 46, 0.1);
    color: var(--accent-terracotta);
    border-color: rgba(201, 80, 46, 0.25);
}

/* Custom Button Style Dropdown in Card Header */
.btn-style-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-style-dropdown-wrap.is-open {
    z-index: 100;
}

.btn-style-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-card);
    background: var(--bg-card-warm);
    color: var(--text-primary);
    transition: all 0.15s ease;
    user-select: none;
}

.btn-style-dropdown-trigger:hover {
    background: var(--bg-card-sand);
    border-color: var(--border-focus);
}

.btn-style-dropdown-trigger .caret-icon {
    font-size: 9px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.btn-style-dropdown-wrap.is-open .caret-icon {
    transform: rotate(180deg);
}

.btn-style-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: #ffffff !important;
    border: 1px solid rgba(97, 74, 68, 0.2) !important;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 9999;
}

.btn-style-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.btn-style-option:hover {
    background: #f4efea;
    color: var(--text-primary);
}

.btn-style-option.is-selected {
    background: #ede6df;
    font-weight: 700;
}

.btn-style-option .opt-check {
    font-size: 11px;
    color: var(--accent-green);
}

/* Button Emoji Trigger & Picker Controls */
.button-emoji-picker-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-emoji-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-warm);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    height: 32px;
    box-sizing: border-box;
}

.btn-emoji-trigger:hover {
    background: var(--bg-card-sand);
    border-color: var(--border-focus);
}

.btn-emoji-trigger.has-emoji {
    background: #ffffff;
    border-color: rgba(97, 74, 68, 0.25);
    padding: 0;
    width: 34px;
    height: 32px;
    justify-content: center;
}

.btn-emoji-trigger-sprite {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-emoji-trigger-label {
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.btn-clear-button-emoji {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s, background-color 0.15s;
}

.btn-clear-button-emoji:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==============================================================================
   Button Actions Manager & Multi-Action List (Warm Light Theme)
   ============================================================================== */

.editor-card:has(.button-action-dropdown-wrap.is-open) {
    overflow: visible !important;
    z-index: 50 !important;
}

.button-actions-manager {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle);
}

.button-actions-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.button-action-header-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.button-action-header-label i {
    color: var(--accent-green);
    font-size: 12px;
}

.button-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Action Item Mini-Card */
.button-action-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(97, 74, 68, 0.03);
    transition: all 0.15s ease;
    overflow: visible;
}

.button-action-item:hover {
    border-color: rgba(97, 74, 68, 0.24);
    box-shadow: 0 4px 12px rgba(97, 74, 68, 0.06);
}

.button-action-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: #f7f6f4;
    border-bottom: 1px solid rgba(97, 74, 68, 0.12);
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
}

.button-action-item.is-collapsed .button-action-item-header {
    border-bottom: none;
    border-radius: 12px;
}

.button-action-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.button-action-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-action-collapse {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.15s ease;
    flex-shrink: 0;
    font-size: 11px;
    padding: 0;
}

.btn-action-collapse:hover {
    color: var(--text-primary);
    background: rgba(97, 74, 68, 0.08);
}

.button-action-item.is-collapsed .btn-action-collapse .collapse-icon {
    transform: rotate(-90deg);
}

.button-action-item-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-action-item.is-collapsed .button-action-item-body {
    display: none;
}

.action-curr-prefix {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 12px;
    margin-right: 4px;
}

.btn-action-del-item {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-size: 12px;
}

.btn-action-del-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-add-action-pill {
    background: var(--bg-card-warm);
    border: 1px dashed rgba(97, 74, 68, 0.28);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    width: fit-content;
    user-select: none;
}

.btn-add-action-pill:hover {
    background: #ffffff;
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(97, 74, 68, 0.06);
    transform: translateY(-1px);
}

/* Action Dropdown Trigger */
.button-action-dropdown-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.button-action-dropdown-wrap.is-open {
    z-index: 1000;
}

.button-action-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 0 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    user-select: none;
    font-family: var(--font-body);
}

.button-action-dropdown-trigger:hover {
    background: var(--bg-card-sand);
    border-color: rgba(97, 74, 68, 0.25);
}

.button-action-dropdown-wrap.is-open .button-action-dropdown-trigger {
    border-color: var(--accent-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 161, 88, 0.12);
}

.button-action-current-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button-action-current-value .action-curr-icon {
    color: var(--accent-green);
    font-size: 13px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.button-action-current-value .action-curr-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12.5px;
}

.button-action-dropdown-trigger .caret-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.button-action-dropdown-wrap.is-open .caret-icon {
    transform: rotate(180deg);
}

/* Warm Light Dropdown Menu matching the page and editor styling */
.button-action-dropdown-menu,
.button-action-listbox {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: #ffffff !important;
    border: 1px solid rgba(97, 74, 68, 0.18) !important;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(97, 74, 68, 0.14), 0 4px 12px rgba(97, 74, 68, 0.06);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 9999;
    box-sizing: border-box;
}

.button-action-dropdown-menu::-webkit-scrollbar,
.button-action-listbox::-webkit-scrollbar {
    width: 6px;
}
.button-action-dropdown-menu::-webkit-scrollbar-track,
.button-action-listbox::-webkit-scrollbar-track {
    background: transparent;
}
.button-action-dropdown-menu::-webkit-scrollbar-thumb,
.button-action-listbox::-webkit-scrollbar-thumb {
    background: rgba(97, 74, 68, 0.2);
    border-radius: 3px;
}

/* Warm Option Styling matching .btn-style-option */
.button-action-option {
    flex-shrink: 0 !important;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 500;
    user-select: none;
    transition: all 0.12s ease;
    box-sizing: border-box;
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-body);
}

.button-action-option:hover {
    background-color: #f4efea !important;
    color: var(--text-primary) !important;
}

.button-action-option.is-selected,
.button-action-option[aria-selected="true"] {
    background-color: #ede6df !important;
    color: var(--text-primary) !important;
    font-weight: 700;
}

.button-action-option .action-opt-icon {
    font-size: 12.5px;
    width: 16px;
    text-align: center;
    margin-right: 9px;
    flex-shrink: 0;
    color: var(--accent-green);
}

.button-action-option .opt-check {
    margin-left: auto;
    font-size: 11px;
    color: var(--accent-green);
}

/* Subfields per action */
.button-action-subfield {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.button-action-subfield .subfield-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.button-action-subfield input.compact-num-input {
    max-width: 90px;
}

/* ==============================================================================
   Conditional Check ("Comprobar") & Flow Action Styles (Discord Aesthetic)
   ============================================================================== */

.check-action-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
    width: 100%;
}

.check-function-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.check-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--discord-text-normal, #dbdee1);
    display: block;
}

.check-function-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.check-function-dropdown-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.check-function-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #f2f3f5;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: var(--font-body);
}

.check-function-trigger:hover {
    background: #2b2d31;
    border-color: rgba(255, 255, 255, 0.15);
}

.check-function-dropdown-wrap.is-open .check-function-trigger {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.check-function-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    max-height: 240px;
    overflow-y: auto;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10000;
}

.check-function-option {
    height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    color: #dbdee1;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    transition: all 0.1s ease;
    text-align: left;
    width: 100%;
}

.check-function-option:hover {
    background-color: #232428;
    color: #ffffff;
}

.check-function-option.is-selected {
    background-color: #2b2d31;
    color: #ffffff;
    font-weight: 600;
}

/* ==============================================================================
   Reusable Typed Field System (Tipo: Static, Adaptive, Mirror)
   ============================================================================== */

.typed-fields-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.typed-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.typed-field-section-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #dbdee1;
    margin-bottom: 2px;
}

.typed-field-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
}

.typed-field-col-type {
    width: 135px;
    min-width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.typed-field-col-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.typed-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #dbdee1;
    display: block;
    line-height: 1.2;
}

.typed-field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.typed-field-counter {
    font-size: 11.5px;
    font-style: italic;
    color: #949ba4;
    font-family: var(--font-body);
}

.typed-dropdown-wrap {
    position: relative;
    width: 100%;
}

.typed-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #dbdee1;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: var(--font-body);
}

.typed-dropdown-trigger:hover {
    background: #2b2d31;
    border-color: rgba(255, 255, 255, 0.15);
}

.typed-dropdown-wrap.is-open .typed-dropdown-trigger {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.typed-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 135px;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10000;
}

.typed-option {
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #dbdee1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    transition: all 0.1s ease;
    font-family: var(--font-body);
}

.typed-option:hover {
    background-color: #232428;
    color: #ffffff;
}

.typed-option.is-selected {
    font-weight: 600;
    color: #ffffff;
}

.typed-option-check {
    font-size: 11px;
    color: #ffffff;
    margin-left: 6px;
}

.typed-input {
    width: 100%;
    height: 38px;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0 12px;
    color: #dbdee1;
    font-size: 13px;
    box-sizing: border-box;
    font-family: var(--font-body);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.typed-input:focus {
    border-color: #5865f2;
    outline: none;
    background: #1e1f22;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.typed-role-dropdown-wrap {
    position: relative;
    width: 100%;
}

.typed-role-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 13px;
    color: #949ba4;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: var(--font-body);
}

.typed-role-trigger:hover {
    background: #2b2d31;
    border-color: rgba(255, 255, 255, 0.15);
}

.typed-role-dropdown-wrap.is-open .typed-role-trigger {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.typed-role-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10000;
}

.typed-role-helper-text {
    font-size: 12px;
    line-height: 1.45;
    color: #80848e;
    margin-top: 6px;
    font-family: var(--font-body);
}

/* Branch Segmented Tabs */
.check-branches-tabs {
    display: flex;
    align-items: center;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
}

.check-branch-tab {
    flex: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    background: transparent;
    font-size: 12.5px;
    font-weight: 500;
    color: #dbdee1;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-align: center;
    padding: 0 12px;
    font-family: var(--font-body);
}

.check-branch-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.check-branch-tab.is-active {
    background: #5865f2;
    color: #ffffff;
    font-weight: 600;
}

/* Branch Tree Guide Line */
.check-branch-tree {
    position: relative;
    border-left: 2px solid #4e5058;
    margin-left: 14px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.check-branch-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-branch-actions-list > .button-action-item {
    position: relative;
}

.check-branch-actions-list > .button-action-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 18px;
    height: 2px;
    background: #4e5058;
}

.btn-add-branch-action-wrap {
    position: relative;
    width: fit-content;
}

.btn-add-branch-action-wrap::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #4e5058;
}

.btn-add-branch-action {
    background: #5865f2;
    border: none;
    color: #ffffff;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    width: fit-content;
    user-select: none;
}

.btn-add-branch-action:hover {
    background: #4752c4;
}

/* Flow Editor Modal ("Editar flujo") */
dialog#flow-modal-dialog {
    width: 860px;
    max-width: 95vw;
    max-height: 88vh;
    border-radius: 10px;
    background: #313338;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    padding: 0;
    overflow: hidden;
    color: #dbdee1;
    font-family: var(--font-body);
}

dialog#flow-modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.flow-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #2b2d31;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.flow-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f2f3f5;
    font-family: var(--font-heading);
}

.flow-modal-close-btn {
    background: transparent;
    border: none;
    color: #949ba4;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.flow-modal-body {
    padding: 20px;
    max-height: calc(88vh - 130px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

.flow-modal-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #2b2d31;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-flow-modal-add-wrap {
    position: relative;
}

.btn-flow-modal-add {
    background: #5865f2;
    border: none;
    color: #ffffff;
    border-radius: 4px;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    transition: background 0.15s ease;
}

.btn-flow-modal-add:hover {
    background: #4752c4;
}

.btn-flow-modal-close-text {
    background: transparent;
    border: none;
    color: #dbdee1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    font-family: var(--font-body);
    transition: color 0.15s ease;
}

.btn-flow-modal-close-text:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Open Flow Modal trigger button inside Button Card */
.btn-open-flow-modal {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: var(--font-body);
}

.btn-open-flow-modal:hover {
    background: #5865f2;
    color: #ffffff;
}

/* Dark Theme Action Item Styling (Both inside card and flow modal) */
.button-action-item {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
    overflow: visible;
}

.button-action-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.button-action-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: #232428;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
}

.button-action-item.is-collapsed .button-action-item-header {
    border-bottom: none;
    border-radius: 8px;
}

.button-action-dropdown-trigger {
    background: transparent;
    border: none;
    color: #f2f3f5;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.button-action-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.button-action-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10000;
}

.button-action-option {
    height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    cursor: pointer;
    color: #dbdee1;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    transition: all 0.1s ease;
    text-align: left;
    width: 100%;
}

.button-action-option:hover {
    background-color: #232428;
    color: #ffffff;
}

.button-action-option.is-selected {
    background-color: #2b2d31;
    color: #ffffff;
    font-weight: 600;
}

.button-action-item-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action-collapse {
    color: #949ba4;
}

.btn-action-collapse:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-action-dup-item {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-size: 12px;
}

.btn-action-dup-item:hover {
    background: var(--bg-card-sand);
    color: var(--text-primary);
}

/* Discord Official Emoji Picker Floating Component (No Backdrop, No Blur) */
.discord-emoji-popover {
    position: fixed;
    z-index: 99999;
    width: 440px;
    height: 440px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    background: #2b2d31;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    overscroll-behavior: contain;
    animation: discordFlyoutAppear 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes discordFlyoutAppear {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header with Search */
.emoji-picker-header {
    display: flex;
    align-items: center;
    padding: 12px 14px 10px 14px;
    background: #2b2d31;
    flex-shrink: 0;
}

.emoji-search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #1e1f22;
    border-radius: 4px;
    padding: 0 10px;
    height: 34px;
    border: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.emoji-search-box:focus-within {
    border-color: #5865f2;
}

.emoji-search-icon {
    color: #949ba4;
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}

.emoji-search-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #f2f3f5;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.emoji-search-input::placeholder {
    color: #80848e;
}

.emoji-search-clear-btn {
    background: transparent;
    border: none;
    color: #949ba4;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-search-clear-btn:hover {
    color: #f2f3f5;
}

/* Skin Tone Selector (Right of Search Bar) */
.emoji-skin-tone-wrap {
    position: relative;
    margin-left: 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.emoji-skin-tone-btn {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: #1e1f22;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    color: #dbdee1;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.emoji-skin-tone-btn:hover,
.emoji-skin-tone-btn.is-active {
    background: #35373c;
    border-color: rgba(255, 255, 255, 0.1);
}

.emoji-skin-tone-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #111214;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: discordFlyoutAppear 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.skin-tone-option {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.skin-tone-option:hover {
    background: #2b2d31;
    transform: scale(1.15);
}

.skin-tone-option.is-selected {
    background: #35373c;
    border-color: #5865f2;
}

.emoji-toned-char {
    font-size: 24px;
    line-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Body: Sidebar Categories + Scroller */
.emoji-picker-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.categoryList_c0e32c {
    width: 44px;
    background: #1e1f22;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.categoryList_c0e32c::-webkit-scrollbar {
    display: none;
}

.categoryItemDefaultCategory_b9ee0c {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #949ba4;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.15s ease;
    padding: 0;
}

.categoryItemDefaultCategory_b9ee0c:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #dbdee1;
}

.categoryItemDefaultCategory_b9ee0c.categoryItemDefaultCategorySelected_b9ee0c {
    background: #35373c;
    color: #f2f3f5;
}

.categoryIcon_b9ee0c {
    width: 18px;
    height: 18px;
    display: block;
}

/* Main Scrollable Area */
.emoji-scroller-content {
    flex: 1;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0 4px 10px 10px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a1b1e transparent;
}

.emoji-scroller-content::-webkit-scrollbar {
    width: 6px;
}

.emoji-scroller-content::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-scroller-content::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border-radius: 3px;
}

.categorySection_c656ac {
    margin-bottom: 12px;
}

.wrapper__14245.header_c656ac {
    position: sticky;
    top: 0;
    background: #2b2d31;
    z-index: 2;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease;
}

.wrapper__14245.header_c656ac:hover .headerLabel__14245 {
    color: #dbdee1;
}

.headerLabel__14245 {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #949ba4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.headerChevron__14245 {
    font-size: 10px;
    color: #949ba4;
    opacity: 0.7;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    display: inline-block;
}

.categorySection_c656ac.is-collapsed .emojiListRow_fc7141 {
    display: none !important;
}

.categorySection_c656ac.is-collapsed .headerChevron__14245 {
    transform: rotate(-90deg);
}

/* 9-Column Emoji Grid (Exact match to Discord screenshot) */
.emojiListRow_fc7141 {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.emojiItem_fc7141 {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.12s, transform 0.1s;
}

.emojiItem_fc7141:hover {
    background: #35373c;
    transform: scale(1.15);
    z-index: 5;
}

.emojiSpriteImage_d982c2 {
    background-repeat: no-repeat;
    display: block;
}

/* Bottom Inspector */
.inspector_aeaaeb.inspector_c0e32c {
    height: 48px;
    background: #232428;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    flex-shrink: 0;
}

.graphicPrimary_aeaaeb {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inspector-sprite-preview {
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
}

.textWrapper_aeaaeb {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.titlePrimary_aeaaeb {
    font-size: 13px;
    font-weight: 600;
    color: #f2f3f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inspector-hint-text {
    font-size: 10.5px;
    color: #949ba4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-emoji-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-pill, 9999px);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.btn-remove-emoji-pill:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Discord Preview Button Emoji */
.discord-btn-emoji {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-right: 4px;
    background-repeat: no-repeat;
}

.discord-btn-emoji-char {
    font-size: 16px;
    line-height: 1;
    margin-right: 4px;
    vertical-align: middle;
}

.gallery-thumb-square.btn-add-square {
    border: 2px dashed var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    gap: 4px;
}

.gallery-thumb-square.btn-add-square:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: var(--bg-card-warm);
}

.gallery-thumb-square.btn-add-square i {
    font-size: 16px;
}

.btn-upload-pill {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-upload-pill:hover {
    background: #ffffff;
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Segmented Toggle Buttons (Separators) */
.toggle-segmented-group {
    display: inline-flex;
    background: var(--bg-card-sand);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
    padding: 2px;
}

.seg-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s;
}

.seg-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(97, 74, 68, 0.1);
}

/* Button Styles Palette */
.button-styles-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-style-chip {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
}

.btn-style-chip:hover,
.btn-style-chip.active {
    transform: scale(1.05);
    border-color: #1a1615;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-style-chip.style-primary { background: var(--discord-blurple); color: #fff; }
.btn-style-chip.style-secondary { background: var(--discord-grey); color: #fff; }
.btn-style-chip.style-success { background: var(--discord-green); color: #fff; }
.btn-style-chip.style-danger { background: var(--discord-red); color: #fff; }
.btn-style-chip.style-link { background: #35363c; color: #fff; }

/* Empty state hints */
.editor-empty-hint {
    text-align: center;
    padding: 50px 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-card);
    color: var(--text-muted);
}

.empty-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-green);
    margin: 0 auto 12px auto;
}

.editor-empty-hint h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 0 6px 0;
}

.bottom-add-block-bar {
    width: 100%;
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.bottom-add-block-bar .add-component-bar {
    width: 100%;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px dashed rgba(97, 74, 68, 0.2);
}

.bottom-add-block-bar .add-component-bar:hover {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
}

/* ==============================================================================
   6. Right Column: Discord Live Message Preview Card
   ============================================================================== */

.preview-column {
    width: 100%;
    position: sticky;
    top: 90px;
}

.discord-mockup-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

/* Window Bar */
.discord-channel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 6px 14px 6px;
}

.discord-channel-header i {
    font-size: 14px;
    color: var(--text-muted);
}

.window-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dot-red { background: #ff5f56; }
.window-dot-yellow { background: #ffbd2e; }
.window-dot-green { background: #27c93f; }

.discord-header-badge {
    margin-left: auto;
    background: rgba(88, 101, 242, 0.1);
    color: var(--accent-discord);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Discord Chat Area (Direct Preview Card) */
.discord-chat-interior {
    background: var(--discord-chat-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    padding: 22px;
    color: var(--discord-text-normal);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

.discord-message-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.discord-avatar-col {
    flex-shrink: 0;
}

.discord-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}

.discord-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.discord-author-header {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.discord-username {
    font-weight: 600;
    font-size: 15px;
    color: var(--discord-text-header);
}

.discord-bot-badge {
    background: var(--discord-blurple);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 4.5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.discord-timestamp {
    color: var(--discord-text-muted);
    font-size: 12px;
    margin-left: 2px;
}

.discord-message-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* Discord Container V2 (Type 17) */
.discord-container-v2 {
    --stripe-color: #5865F2;
    background: var(--discord-card-bg);
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 4px solid var(--stripe-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    max-width: 540px;
}

.discord-container-v2.is-spoiler {
    filter: blur(8px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.discord-container-v2.is-spoiler.spoiler-revealed {
    filter: none;
    user-select: text;
    cursor: default;
}

/* Discord Text Display & Markdown */
.discord-text-display {
    font-size: 14px;
    line-height: 1.45;
    color: var(--discord-text-normal);
    word-break: break-word;
}

.discord-h1 { font-size: 1.4rem; font-weight: 700; color: var(--discord-text-header); margin: 6px 0; }
.discord-h2 { font-size: 1.2rem; font-weight: 700; color: var(--discord-text-header); margin: 4px 0; }
.discord-h3 { font-size: 1.05rem; font-weight: 700; color: var(--discord-text-header); margin: 3px 0; }

.discord-subtext {
    font-size: 12px;
    color: var(--discord-text-muted);
    margin: 2px 0 6px 0;
    line-height: 1.35;
}

.discord-quote {
    border-left: 4px solid #4e5058;
    padding-left: 12px;
    margin: 4px 0;
    color: #dbdee1;
}

.discord-code-block {
    background: var(--discord-input-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    overflow-x: auto;
    margin: 4px 0;
}

.discord-inline-code {
    background: var(--discord-input-bg);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.discord-link {
    color: #00a8fc;
    text-decoration: none;
}

.discord-link:hover {
    text-decoration: underline;
}

/* Discord Lists */
.discord-list {
    margin: 4px 0 8px 22px;
    padding: 0;
    list-style-type: disc;
    color: var(--discord-text-normal);
}

.discord-ordered-list {
    margin: 4px 0 8px 22px;
    padding: 0;
    list-style-type: decimal;
    color: var(--discord-text-normal);
}

.discord-list li,
.discord-ordered-list li {
    margin-bottom: 2px;
    line-height: 1.45;
}

/* Discord Inline Spoiler */
.discord-inline-spoiler {
    background-color: #202225;
    border-radius: 3px;
    padding: 1px 5px;
    color: transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline;
    vertical-align: baseline;
}

.discord-inline-spoiler:hover {
    background-color: #27292d;
}

.discord-inline-spoiler.revealed {
    background-color: rgba(255, 255, 255, 0.08);
    color: inherit;
    user-select: text;
}

.discord-timestamp-badge {
    background: #232428;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 12px;
    color: #dbdee1;
}

/* Discord Section (Type 9) */
.discord-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.discord-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discord-section-accessory {
    flex-shrink: 0;
}

.discord-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #111;
}

/* Discord Media Gallery (Type 12) - Faithful to Discord Attachment Grid */
.discord-media-gallery {
    display: grid;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    position: relative;
}

/* 1 Image: Full width natural attachment */
.discord-media-gallery[data-count="1"] {
    grid-template-columns: 1fr;
}
.discord-media-gallery[data-count="1"] .discord-gallery-item {
    max-height: 280px;
    width: 100%;
}
.discord-media-gallery[data-count="1"] .discord-gallery-item img {
    max-height: 280px;
    height: auto;
}

/* 2 Images: Exactly 2 side-by-side on the same line */
.discord-media-gallery[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    height: 180px;
}
.discord-media-gallery[data-count="2"] .discord-gallery-item {
    height: 100%;
}

/* 3 Images: 1 large left, 2 stacked right */
.discord-media-gallery[data-count="3"] {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(2, 95px);
    height: 194px;
}
.discord-media-gallery[data-count="3"] .discord-gallery-item:nth-child(1) {
    grid-row: 1 / span 2;
    grid-column: 1;
    height: 100%;
}
.discord-media-gallery[data-count="3"] .discord-gallery-item:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
    height: 100%;
}
.discord-media-gallery[data-count="3"] .discord-gallery-item:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
    height: 100%;
}

/* 4 Images: 2x2 grid */
.discord-media-gallery[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 100px);
    height: 204px;
}
.discord-media-gallery[data-count="4"] .discord-gallery-item {
    height: 100%;
}

.discord-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #2b2d31;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}

/* Wireframe Striped Lines Placeholder for Discord Preview */
.discord-gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: #2b2d31;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.065) 10px,
        rgba(255, 255, 255, 0.065) 20px
    );
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--discord-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    box-sizing: border-box;
}

.discord-gallery-placeholder i {
    font-size: 1.5rem;
    opacity: 0.6;
}

.discord-media-gallery.is-spoiler {
    cursor: pointer;
}

.discord-media-gallery.is-spoiler .discord-gallery-item img {
    filter: blur(40px);
    transition: filter 0.25s ease;
}

.discord-media-gallery.is-spoiler.spoiler-revealed .discord-gallery-item img {
    filter: none;
}

.discord-spoiler-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 5;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.discord-media-gallery.is-spoiler.spoiler-revealed .discord-spoiler-overlay {
    opacity: 0;
    pointer-events: none;
}

.spoiler-tag {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

/* Discord Separator (Type 14) */
.discord-separator {
    width: 100%;
}

.discord-separator[data-divider="true"] {
    border-top: 1px solid #3f4147;
}

.discord-separator[data-spacing="1"] { margin: 6px 0; }
.discord-separator[data-spacing="2"] { margin: 14px 0; }

/* Discord File (Type 13) */
.discord-file-pill {
    background: var(--discord-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
}

.discord-spoiler-tag-inline {
    background: #202225;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.discord-file-pill .file-icon {
    font-size: 22px;
    color: var(--discord-text-muted);
}

.discord-file-pill .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.discord-file-pill .file-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #00a8fc;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.discord-file-pill .file-size {
    font-size: 11.5px;
    color: var(--discord-text-muted);
}

.discord-file-pill .file-action {
    color: var(--discord-text-muted);
    font-size: 15px;
    cursor: pointer;
}

/* Discord Action Row & Buttons */
.discord-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.discord-btn {
    height: 38px;
    padding: 2px 16px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s;
    box-sizing: border-box;
}

.discord-btn:active {
    transform: scale(0.98);
}

.discord-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.discord-btn-style-1 { background-color: var(--discord-blurple); }
.discord-btn-style-1:hover:not([disabled]) { background-color: var(--discord-blurple-hover); }

.discord-btn-style-2 { background-color: var(--discord-grey); }
.discord-btn-style-2:hover:not([disabled]) { background-color: var(--discord-grey-hover); }

.discord-btn-style-3 { background-color: var(--discord-green); }
.discord-btn-style-3:hover:not([disabled]) { background-color: var(--discord-green-hover); }

.discord-btn-style-4 { background-color: var(--discord-red); }
.discord-btn-style-4:hover:not([disabled]) { background-color: var(--discord-red-hover); }

.discord-btn-style-5 { background-color: var(--discord-grey); }
.discord-btn-style-5:hover:not([disabled]) { background-color: var(--discord-grey-hover); }

.discord-btn-ext-icon {
    font-size: 12px;
    opacity: 0.8;
}

/* Discord Select Menu */
.discord-select-menu {
    background: var(--discord-input-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    color: var(--discord-text-muted);
    font-size: 13.5px;
}

.discord-select-arrow {
    font-size: 12px;
}

.discord-empty-state {
    text-align: center;
    padding: 36px 16px;
    color: var(--discord-text-muted);
}

.discord-empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.5;
}

/* ==============================================================================
   7. JSON Dialog Modal
   ============================================================================== */

dialog#json-dialog:not([open]) {
    display: none;
}

dialog#json-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    color: var(--text-primary);
    padding: 0;
    max-width: 800px;
    width: min(90vw, 800px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(97, 74, 68, 0.25);
    z-index: 1000;
}

dialog#json-dialog::backdrop {
    background: rgba(26, 22, 21, 0.5);
    backdrop-filter: blur(6px);
}

.modal-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: var(--bg-card-warm);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    transition: all 0.15s;
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-sand);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card-warm);
    padding: 0 16px;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: var(--font-body);
}

.modal-tab-btn.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.modal-body {
    padding: 20px;
    background: var(--bg-card-warm);
}

.json-code-pre {
    background: #111411;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    color: #4ade80;
    margin: 0;
}

.json-textarea-import {
    width: 100%;
    height: 350px;
    background: #111411;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #4ade80;
    font-family: var(--font-mono);
    font-size: 13px;
    box-sizing: border-box;
    resize: none;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #ffffff;
}

/* Media Picker Dialog Modal */
dialog#media-modal-dialog:not([open]) {
    display: none;
}

dialog#media-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    color: var(--text-primary);
    padding: 0;
    max-width: 620px;
    width: min(92vw, 620px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

dialog#media-modal-dialog::backdrop {
    background: rgba(26, 22, 21, 0.55);
    /* No backdrop blur as requested */
}

body.modal-open {
    overflow: hidden !important;
}

.media-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-modal-preview-box {
    width: 100%;
    max-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1615;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.modal-preview-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.media-drop-zone {
    border: 2px dashed rgba(97, 74, 68, 0.25);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    text-align: center;
}

.media-drop-zone:hover {
    border-color: var(--accent-green);
    background: #ffffff;
}

.media-drop-zone .drop-icon {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.media-drop-zone .drop-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.media-drop-zone .drop-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

.unsplash-search-row {
    margin-bottom: 10px;
}

.unsplash-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.unsplash-search-input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.unsplash-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px;
}

.unsplash-card {
    position: relative;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    background: #111;
}

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

.unsplash-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-green);
}

.unsplash-card.selected {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px var(--accent-green);
}

.unsplash-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent-green);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* ==============================================================================
   8. Toast Notification System
   ============================================================================== */

.editor-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 12px 36px rgba(97, 74, 68, 0.16);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.editor-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================================
   9. Footer Styles (Matching Timestamps & Seek Theme)
   ============================================================================== */
body.editor-page-body .seek-footer {
    margin-top: auto;
    padding: 34px 0 22px;
    background: var(--bg-card, #fbf9f6);
    border-top: 1px solid var(--border-subtle, rgba(97, 74, 68, 0.12));
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

body.editor-page-body .seek-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 24px;
}

body.editor-page-body .seek-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.editor-page-body .footer-bio {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 320px;
    color: var(--text-muted, #757170);
    margin: 0;
}

body.editor-page-body .footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

body.editor-page-body .footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card-warm, #f4efe9);
    border: 1px solid var(--border-subtle, rgba(97, 74, 68, 0.15));
    color: var(--text-secondary, #453f3d);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-size: 13px;
}

body.editor-page-body .footer-social-btn:hover {
    background: #ffffff;
    border-color: var(--accent-green, #0ea158);
    color: var(--accent-green, #0ea158);
    transform: translateY(-2px);
}

body.editor-page-body .seek-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.editor-page-body .footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #1a1615);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

body.editor-page-body .footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

body.editor-page-body .footer-link {
    font-size: 0.88rem;
    color: var(--text-muted, #757170);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.editor-page-body .footer-link:hover {
    color: var(--accent-green, #0ea158);
    transform: translateX(3px);
}

body.editor-page-body .seek-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle, rgba(97, 74, 68, 0.1));
    font-size: 0.82rem;
    color: var(--text-muted, #757170);
}

@media (max-width: 820px) {
    body.editor-page-body .seek-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
