@import url('https://fonts.cdnfonts.com/css/news-gothic');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        @import url('https://fonts.cdnfonts.com/css/news-gothic');
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        .et-timer-root {
            font-family: var(--body-font, 'News Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
            transition: background 0.3s, color 0.3s;
            padding-bottom: 4rem; /* Space for fixed footer */
        }

        .et-timer-root.dark {
            background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
            color: white;
        }

        .et-timer-root.light {
            background: linear-gradient(to bottom right, #f1f5f9, #ffffff, #f1f5f9);
            color: #1e293b;
        }

        .container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 0;
        }
        /* Inside WP page, don't force 100vh */
        .et-timer-root.wp-embed .container { min-height: 0; }

        .main-content {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem 3rem;
            width: 100%;
        }

        /* Fullscreen adjustments */
        .et-timer-root:fullscreen .main-content,
        .et-timer-root:-webkit-full-screen .main-content,
        .et-timer-root:-moz-full-screen .main-content,
        .et-timer-root:-ms-fullscreen .main-content {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            margin-top: 0;
        }

        .et-timer-root:fullscreen,
        .et-timer-root:-webkit-full-screen,
        .et-timer-root:-moz-full-screen,
        .et-timer-root:-ms-fullscreen {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .et-timer-root:fullscreen .header,
        .et-timer-root:-webkit-full-screen .header,
        .et-timer-root:-moz-full-screen .header,
        .et-timer-root:-ms-fullscreen .header {
            margin-top: 1rem;
            margin-bottom: 1rem;
        }

        .et-timer-root:fullscreen .main-content,
        .et-timer-root:-webkit-full-screen .main-content,
        .et-timer-root:-moz-full-screen .main-content,
        .et-timer-root:-ms-fullscreen .main-content {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .footer {
            width: 100%;
            padding: 2rem;
            text-align: center;
            flex-shrink: 0;
            background: transparent;
            color: #cbd5e1;
            font-size: 0.875rem;
        }

        .footer a {
            color: inherit;
            text-decoration: underline;
        }

        .footer a:hover {
            opacity: 0.8;
        }

        .et-timer-root:fullscreen .footer,
        .et-timer-root:-webkit-full-screen .footer,
        .et-timer-root:-moz-full-screen .footer,
        .et-timer-root:-ms-fullscreen .footer {
            display: none;
        }

        /* Icons */
        .icon {
            width: 20px;
            height: 20px;
            display: inline-block;
        }

        /* Top Controls */
        .top-controls {
            display: flex;
            gap: 0.5rem;
            align-items: flex-start;
            margin-left: auto;
            margin-right: 1.5rem;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            font-size: 1.25rem;
        }

        .dark .icon-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .light .icon-btn {
            background: rgba(0, 0, 0, 0.1);
            color: #1e293b;
        }

        .icon-btn:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }

        /* Header */
        .header {
            width: 100%;
            padding: 2rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            flex-shrink: 0;
        }

        .header-left {
            display: flex;
            align-items: flex-start;
            gap: 2rem;
            flex: 0 1 auto;
        }

        .logo {
            width: 112px;
            height: 112px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .header-info {
            text-align: left;
            flex: 1;
        }

        .university-name {
            font-size: 2.25rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .master-degree {
            font-size: 1.125rem;
            margin-bottom: 0.5rem;
        }

        .dark .master-degree {
            color: #cbd5e1;
        }

        .light .master-degree {
            color: #64748b;
        }

        .course-name {
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }

        .dark .course-name {
            color: #ffffff;
        }

        .light .course-name {
            color: #64748b;
        }

        .professors {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }

        .professor {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .professor-image {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .professor-name {
            font-size: 0.875rem;
        }

        .dark .professor-name {
            color: #94a3b8;
        }

        .light .professor-name {
            color: #64748b;
        }

        /* Date Time Card */
        .datetime-card {
            padding: 1rem;
            border-radius: 0.75rem;
            border: 1px solid;
            min-width: 200px;
            align-self: flex-start;
        }

        .dark .datetime-card {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .light .datetime-card {
            background: #f1f5f9;
            border-color: #e2e8f0;
        }

        .datetime-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.25rem;
        }

        .dark .datetime-label {
            color: #64748b;
        }

        .light .datetime-label {
            color: #64748b;
        }

        .datetime-value {
            font-weight: 500;
        }

        .time-value {
            font-size: 1.5rem;
            font-family: 'Courier New', monospace;
            font-weight: 700;
        }

        .divider {
            height: 1px;
            margin: 0.75rem 0;
        }

        .dark .divider {
            background: rgba(255, 255, 255, 0.1);
        }

        .light .divider {
            background: #cbd5e1;
        }

        /* Main Content */
        .exam-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            width: 100%;
            max-width: 1200px;
        }

        .exam-card {
            padding: 3rem;
            border-radius: 1rem;
            border: 1px solid;
            transition: all 0.3s;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: visible;
            min-width: min-content;
        }

        #singleExamMode .exam-card {
            max-width: 800px;
            width: 100%;
        }

        .dark .exam-card {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .light .exam-card {
            background: white;
            border-color: #e2e8f0;
        }

        .exam-card.warning {
            box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
            animation: pulse-border 2s infinite;
        }

        @keyframes pulse-border {
            0%, 100% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.6); }
            50% { box-shadow: 0 0 60px rgba(239, 68, 68, 0.8); }
        }

        .exam-card.active {
            border-color: #475569;
            border-width: 2px;
        }

        .exam-name {
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 1rem;
            opacity: 0.9;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .exam-title {
            font-size: 1.875rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2rem;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* Clock Display */
        .clock-display {
            font-size: var(--clock-size, 11rem);
            font-family: var(--clock-font, 'News Gothic', 'Courier New', monospace);
            font-weight: 700;
            text-align: center;
            margin: 2rem 0;
            transition: all 0.3s ease;
            white-space: nowrap;
            line-height: 1.2;
            padding: 0 1rem;
        }

        .dark .clock-display {
            color: #cbd5e1;
        }

        .light .clock-display {
            color: #1e293b;
        }

        .clock-display.inactive {
            opacity: 0.3;
        }

        .clock-display.warning {
            color: #ef4444;
        }

        /* Buttons */
        .btn {
            padding: 1rem 2rem;
            font-size: 1.125rem;
            font-weight: 600;
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            color: white;
        }

        .btn:hover:not(:disabled) {
            opacity: 0.9;
            transform: translateY(-2px);
        }

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

        .btn-primary {
            width: 100%;
        }

        .btn-secondary {
            background: #6b7280;
        }

        .btn-danger {
            background: rgba(220, 38, 38, 0.8);
        }

        .btn-danger:hover {
            background: #dc2626;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 2rem;
        }

        #singleControls,
        #twoPartsControls {
            width: 100%;
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            transition: opacity 0.5s ease;
        }

        .status-message {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 600;
            color: #10b981;
            margin: 2rem 0;
        }

        .end-time-display {
            text-align: center;
            margin-top: 1.5rem;
        }

        .dark .end-time-display {
            color: #94a3b8;
        }

        .light .end-time-display {
            color: #64748b;
        }

        .waiting-text {
            text-align: center;
            font-size: 0.875rem;
            margin-top: 1rem;
        }

        .dark .waiting-text {
            color: #64748b;
        }

        .light .waiting-text {
            color: #94a3b8;
        }

        /* Config Panel */
        #configPanel {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            overflow-y: auto;
        }

        .config-content {
            max-width: 900px;
            margin: 2rem auto;
            background: #1e293b;
            border-radius: 1rem;
            padding: 2rem;
            color: white;
            max-height: 90vh;
            overflow-y: auto;
        }

        .config-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            position: sticky;
            top: 0;
            background: #1e293b;
            padding-bottom: 1rem;
            z-index: 10;
        }

        .config-title {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }

        .config-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .config-tab {
            padding: 0.75rem 1.5rem;
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: all 0.2s;
        }

        .config-tab.active {
            color: white;
            border-bottom-color: #3b82f6;
        }

        .config-tab:hover {
            color: white;
        }

        .config-section {
            display: none;
        }

        .config-section.active {
            display: block;
            padding: 1.5rem 0;
        }

        .form-group {
            margin-bottom: 2.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.75rem;
            margin-top: 1.5rem;
            font-weight: 500;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            color: white;
            font-size: 1rem;
        }

        .form-textarea {
            min-height: 100px;
            font-family: monospace;
            resize: vertical;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: #3b82f6;
        }

        .form-checkbox {
            margin-right: 0.5rem;
        }

        .color-input {
            height: 50px;
            cursor: pointer;
        }

        .professor-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 0.75rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
        }

        .professor-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .professor-number {
            font-size: 0.875rem;
            font-weight: 600;
            color: #3b82f6;
        }

        .professor-preview {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 0.5rem;
        }

        .professor-preview-image {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.1);
        }

        .professor-preview-info {
            flex: 1;
        }

        .professor-preview-name {
            font-weight: 600;
            font-size: 1.125rem;
            margin-bottom: 0.25rem;
        }

        .professor-preview-status {
            font-size: 0.75rem;
            color: #94a3b8;
        }

        .professor-fields {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .professor-image-upload {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .professors-list-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: #64748b;
        }

        .professors-list-empty-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .btn-remove-professor {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.5rem 0.75rem;
            font-size: 0.875rem;
            background: rgba(220, 38, 38, 0.8);
            border: none;
            border-radius: 0.375rem;
            color: white;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-remove-professor:hover {
            background: #dc2626;
        }

        .btn-add-professor {
            width: 100%;
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(59, 130, 246, 0.1);
            border: 2px dashed rgba(59, 130, 246, 0.5);
            border-radius: 0.75rem;
            color: #3b82f6;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 1rem;
            font-weight: 600;
        }

        .btn-add-professor:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: #3b82f6;
        }

        .professor-item input {
            margin-bottom: 0;
        }

        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        .form-group {
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                padding: 1.5rem;
                align-items: center;
            }

            .header-left {
                flex-direction: column;
                text-align: center;
                align-items: center;
            }

            .header-info {
                text-align: center;
            }

            .university-name {
                font-size: 1.5rem;
            }

            .logo {
                width: 80px;
                height: 80px;
            }

            .top-controls {
                order: -1;
                margin-left: 0;
                margin-right: 0;
                margin-bottom: 1rem;
            }

            .datetime-card {
                width: 100%;
                align-self: center;
            }

            .main-content {
                padding: 1.5rem;
            }

            .clock-display {
                font-size: calc(var(--clock-size, 11rem) * 0.5) !important;
                padding: 0 0.5rem;
            }

            #singleExamMode .exam-card {
                padding: 1.5rem;
            }

            .exam-card {
                padding: 1.5rem;
            }

            .professors {
                justify-content: center;
            }

            .exam-grid {
                grid-template-columns: 1fr;
            }

            .config-tabs {
                flex-wrap: wrap;
            }
        }
    
/* ── Selector overlay (shown when no token/uc given) ── */
.et-selector-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 3rem 1rem;
    background: linear-gradient(to bottom right, #f1f5f9, #ffffff, #f1f5f9);
}
.et-selector-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
}
.et-selector-box h2 { text-align:center; margin:0 0 1.5rem; font-size:1.5rem; color:#1e293b; }
.et-sel-field { margin-bottom:1.25rem; }
.et-sel-field label { display:block; font-weight:600; font-size:.875rem; margin-bottom:.4rem; color:#374151; }
.et-sel-select { width:100%; padding:.65rem .75rem; border:1px solid #d1d5db; border-radius:.5rem; font-size:1rem; background:#fff; }
.et-sel-select:focus { outline:none; border-color:#3b82f6; }

/* ── Exam creator panel ── */
#examCreatorPanel {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.8);
    z-index: 2000;
    overflow-y: auto;
}
.exam-creator-content {
    max-width: 700px;
    margin: 2rem auto;
    background: #1e293b;
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    max-height: 90vh;
    overflow-y: auto;
}
.exam-creator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    background: #1e293b;
    padding-bottom: 1rem;
    z-index: 10;
}
.exam-creator-title { font-size:1.5rem; font-weight:700; }
.exam-creator-section { margin-bottom: 1.5rem; }
.exam-creator-section-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Fullscreen when .container is the fullscreen element */
.container:fullscreen,
.container:-webkit-full-screen,
.container:-moz-full-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #f1f5f9, #ffffff, #f1f5f9);
}
.container.dark:fullscreen,
.et-timer-root.dark .container:-webkit-full-screen {
    background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
    color: white;
}
.container:fullscreen .main-content,
.container:-webkit-full-screen .main-content {
    display: flex; align-items: center; justify-content: center; flex: 1; width: 100%;
}
.container:fullscreen .header,
.container:-webkit-full-screen .header { margin-top:1rem; margin-bottom:1rem; }
.container:fullscreen .footer,
.container:-webkit-full-screen .footer { display:none; }

/* Prevent root wrapper from forcing huge height inside WP pages */
.et-timer-root {
    display: block;
    width: 100%;
}

/* ── Fullscreen: background must be set on the element that goes fullscreen ── */
.container:fullscreen,
.container:-webkit-full-screen,
.container:-moz-full-screen,
.container:-ms-fullscreen {
    background: linear-gradient(to bottom right, #f1f5f9, #ffffff, #f1f5f9) !important;
    color: #1e293b;
    display: flex;
    flex-direction: column;
}
.et-timer-root.dark .container:fullscreen,
.et-timer-root.dark .container:-webkit-full-screen,
.et-timer-root.dark .container:-moz-full-screen {
    background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a) !important;
    color: white;
}
.container:fullscreen .main-content,
.container:-webkit-full-screen .main-content {
    display: flex; align-items: center; justify-content: center; flex: 1; width: 100%;
}
.container:fullscreen .header,
.container:-webkit-full-screen .header { margin-top:1rem; margin-bottom:1rem; }
.container:fullscreen .footer,
.container:-webkit-full-screen .footer { display:none !important; }
.container:fullscreen .top-controls,
.container:-webkit-full-screen .top-controls { transition: opacity 0.5s ease; }

/* Professor images — always circular */
.professor-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}
/* Placeholder circle when no image */
.professor-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 0, 0, 0.2);
    border: 2px solid rgba(148, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: inherit;
}

/* ── Exam Creator Panel — improved contrast ── */
#examCreatorPanel .exam-creator-content {
    background: #0f172a;
}
#examCreatorPanel .form-label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    display: block;
}
#examCreatorPanel .form-input,
#examCreatorPanel .form-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    border-radius: 0.375rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
    font-size: 0.9375rem;
}
#examCreatorPanel .form-input::placeholder { color: #64748b; }
#examCreatorPanel .form-input:focus,
#examCreatorPanel .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,.25);
}
#examCreatorPanel .form-select option {
    background: #1e293b;
    color: #f1f5f9;
}
#examCreatorPanel .form-checkbox {
    width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer;
}
#examCreatorPanel .exam-creator-section-title {
    color: #94a3b8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
}
#examCreatorPanel small {
    color: #64748b;
    font-size: 0.8rem;
}
#examCreatorPanel .form-group {
    margin-bottom: 0.75rem;
}
/* Section card containers */
#examCreatorPanel .exam-creator-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
#examCreatorPanel .exam-creator-header {
    border-bottom: 1px solid #1e293b;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
#examCreatorPanel .exam-creator-title {
    color: #f1f5f9;
}
#examCreatorPanel .close-btn {
    color: #94a3b8;
    font-size: 1.25rem;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 0.375rem;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
#examCreatorPanel .close-btn:hover { background: rgba(255,255,255,.1); color: white; }
/* "Exame Livre" badge */
.et-livre-badge {
    display: inline-block;
    background: rgba(59,130,246,.15);
    border: 1px solid rgba(59,130,246,.3);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ── Inside WordPress: don't force 100vh height ── */
.in-wp .container {
    min-height: 0;
}
/* But fullscreen always needs 100vh */
.in-wp .container:fullscreen,
.in-wp .container:-webkit-full-screen {
    min-height: 100vh !important;
}
