        /* Complia Engine | Designed by Alessio Polidoro | 2026 Ethical Compliance Tool */
        /* RESET & BASE */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        }

        body {
            display: flex;
            height: 100vh;
            overflow: hidden;
            background: #E5E5E5;
        }

        /* PREVIEW AREA */
        .preview-area {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: url('./assets/bg-office.jpg');
            background-size: cover;
            position: relative;
        }

        .preview-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 1;
        }

        /* SIDEBAR */
        .sidebar {
            width: 420px;
            background: #1E1E1E;
            color: #fff;
            display: flex;
            flex-direction: column;
            border-left: 1px solid #333;
            z-index: 10;
        }

        .tabs-header {
            display: flex;
            background: #151515;
            border-bottom: 1px solid #333;
        }

        .tab-btn {
            flex: 1;
            padding: 15px 10px;
            background: transparent;
            border: none;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            transition: 0.2s;
        }

        .tab-btn span {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            color: #888;
        }

        .tab-btn svg {
            width: 18px;
            height: 18px;
            fill: #888;
        }

        .tab-btn.active {
            border-bottom: 2px solid #00555a;
            background: #1E1E1E;
        }

        .tab-btn.active svg,
        .tab-btn.active span {
            fill: #fff;
            color: #fff;
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .tab-pane {
            display: none;
        }

        .tab-pane.active {
            display: block;
        }

        /* UI CONTROLS */
        h2 {
            font-size: 11px;
            text-transform: uppercase;
            color: #666;
            margin-bottom: 12px;
            border-bottom: 1px solid #333;
            padding-bottom: 5px;
            margin-top: 20px;
        }

        label {
            font-size: 11px;
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            color: #ccc;
        }

        input[type="range"] {
            width: 100%;
            accent-color: #00555a;
            margin-bottom: 15px;
        }

        input[type="color"] {
            width: 100%;
            height: 35px;
            border: none;
            background: none;
            cursor: pointer;
            margin-bottom: 10px;
        }

        input[type="text"]:not(.hex-input),
        textarea,
        select {
            width: 100%;
            padding: 12px;
            background: #2C2C2C;
            border: 1px solid #444;
            color: white;
            border-radius: 4px;
            font-size: 12px;
            line-height: 1.6;
        }

        textarea {
            min-height: 90px;
            resize: vertical;
        }

        /* GREEN CHECKBOXES */
        .checkbox-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #252525;
            padding: 10px;
            border-radius: 6px;
            margin-bottom: 10px;
        }

        .checkbox-row input[type="checkbox"] {
            appearance: none;
            width: 34px;
            height: 18px;
            background: #444;
            border-radius: 20px;
            position: relative;
            cursor: pointer;
            transition: 0.3s;
        }

        .checkbox-row input[type="checkbox"]:checked {
            background: #2ecc71;
        }

        .checkbox-row input[type="checkbox"]::before {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            background: white;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: 0.3s;
        }

        .checkbox-row input[type="checkbox"]:checked::before {
            left: 18px;
        }

        .align-group {
            display: flex;
            background: #2C2C2C;
            padding: 4px;
            border-radius: 6px;
            gap: 4px;
            margin-bottom: 15px;
        }

        .align-btn {
            flex: 1;
            background: transparent;
            border: none;
            padding: 6px;
            cursor: pointer;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .align-btn.active {
            background: #444;
        }

        .align-btn svg {
            width: 14px;
            height: 14px;
            fill: #888;
        }

        .align-btn.active svg {
            fill: #fff;
        }

        .inline-badge {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #000;
            padding: 8px 12px;
            border-radius: 6px;
            margin-bottom: 15px;
            font-size: 10px;
            font-weight: bold;
            border: 1px solid #333;
        }

        .status-tag {
            padding: 2px 6px;
            border-radius: 4px;
        }

        .tag-pass {
            background: #2ecc71;
            color: #000;
        }

        .tag-fail {
            background: #e74c3c;
            color: #fff;
        }

        .sidebar-hub {
            padding: 20px;
            background: #000;
            border-top: 1px solid #333;
        }

        .sidebar-hub .inline-badge {
            font-size: 13px;
            padding: 12px 14px;
            margin-bottom: 10px;
        }

        .btn-export {
            width: 100%;
            padding: 14px;
            background: #00555a;
            border: none;
            color: white;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
        }

        .btn-export:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            filter: grayscale(1);
        }

        /* CUSTOM SELECT SYSTEM */
        .sidebar-content select {
            display: none !important;
        }

        .custom-select-wrapper {
            position: relative;
            user-select: none;
            width: 100%;
            margin-bottom: 20px;
        }

        .custom-select-trigger {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 0 12px;
            font-size: 12px;
            font-weight: 400;
            color: white;
            background: #2C2C2C;
            border: 1px solid #444;
            border-radius: 4px;
            cursor: pointer;
            height: 44px;
            /* Twin Rule */
            box-sizing: border-box !important;
        }

        /* Optional Arrow */
        .custom-select-trigger::after {
            content: '▼';
            position: absolute;
            right: 12px;
            font-size: 10px;
            color: #888;
        }

        .custom-options {
            position: absolute;
            display: block;
            top: 100%;
            left: 0;
            right: 0;
            border: 1px solid #444;
            background: #2C2C2C;
            transition: all 0.2s;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            z-index: 999;
            margin-top: 2px;
            /* Twin Rule */
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            max-height: 200px;
            overflow-y: auto;
        }

        .custom-select-wrapper.open .custom-options {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }

        .custom-option {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 0 12px;
            font-size: 12px;
            font-weight: 400;
            color: white;
            cursor: pointer;
            transition: all 0.2s;
            height: 44px;
            /* Twin Rule */
            box-sizing: border-box !important;
            margin-bottom: 4px;
            /* Vertical Gap */
        }

        .custom-option:last-child {
            margin-bottom: 0;
        }

        .custom-option:hover {
            background-color: #383838;
            /* Grey Hover */
        }

        .custom-option.selected {
            background-color: #00555a;
        }

        /* --- PREVIEW CARD --- */
        :root {
            --bg-color: #FFFFFF;
            --text-color: #000000;
            --btn-bg: #00555a;
            --btn-text: #FFFFFF;
            --btn-border: #00555a;
            --btn-border-width: 0px;
            --btn-radius: 6px;
            --pref-bg: transparent;
            --pref-text: #000000;
            --pref-border: #000000;
            --pref-border-width: 1px;
            --pref-radius: 6px;
            --radius: 12px;
            --padding: 32px;
            --font-size: 14px;
            --title-align: center;
            --body-align: center;
            --footer-align: center;
            --divider-color: rgba(0, 0, 0, 0.1);
            --divider-thickness: 1px;
        }

        .cookie-card {
            position: relative;
            z-index: 10;
            width: 480px;
            background: var(--bg-color);
            color: var(--text-color);
            border-radius: var(--radius);
            padding: var(--padding);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            gap: 20px;
            box-sizing: border-box;
        }

        /* BAR LAYOUT — Nested Block Architecture */
        .cookie-card.bar-layout {
            width: 100%;
            max-width: 100%;
            position: fixed;
            bottom: 0;
            left: 0;
            border-radius: 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            padding: 15px 40px;
            /* Stays column: main-layout on top, divider/footer below */
            flex-direction: column;
            gap: 10px;
        }

        /* Primary wrapper: text + buttons in a row */
        .cookie-card.bar-layout .bar-main-layout {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            gap: 20px;
        }

        .cookie-card.bar-layout .bar-text-block {
            flex-direction: column;
            flex: 1;
            flex-grow: 1;
            max-width: 40%;
            text-align: left;
            min-width: 0;
        }

        .cookie-card.bar-layout .bar-text-block .cookie-title {
            text-align: left;
            font-size: calc(var(--font-size) + 2px);
            margin-bottom: 2px;
        }

        .cookie-card.bar-layout .bar-text-block .cookie-text {
            text-align: left;
            font-size: var(--font-size);
            margin: 0;
        }

        .cookie-card.bar-layout .bar-btn-block {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: 1fr;
            align-items: stretch;
            gap: 10px;
            flex-shrink: 0 !important;
        }

        .cookie-card.bar-layout .bar-btn-block .btn {
            white-space: nowrap;
        }

        /* Bar-mode btn-pref: layout-only overrides (typography via .shared-button-style) */
        .cookie-card.bar-layout .bar-btn-block .btn-pref {
            flex-shrink: 0;
            width: auto;
            margin-top: 0;
            white-space: nowrap;
        }

        /* Divider & footer stay below, full width */
        .cookie-card.bar-layout .card-divider {
            width: 100%;
            margin: 0;
        }

        .cookie-card.bar-layout .footer-wrapper {
            width: 100%;
            justify-content: flex-start !important;
            text-align: left;
        }

        .preview-area.bar-preview {
            align-items: flex-end;
            justify-content: stretch;
        }

        .preview-area.bar-preview .cookie-card.bar-layout {
            position: relative;
        }

        /* TABLET & MOBILE: Bar reverts to floating card below 1024px */
        @media (max-width: 1024px) {

            /* Reset bar-layout to floating card */
            .cookie-card.bar-layout {
                width: 480px;
                max-width: 90vw;
                position: relative;
                bottom: auto;
                left: auto;
                border-radius: var(--radius);
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
                padding: var(--padding);
                gap: 20px;
            }

            /* Reset preview area alignment */
            .preview-area.bar-preview {
                align-items: center;
                justify-content: center;
            }

            /* Stack bar-main-layout vertically like a card */
            .cookie-card.bar-layout .bar-main-layout {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }

            .cookie-card.bar-layout .bar-text-block {
                text-align: var(--title-align);
                max-width: 100%;
            }

            .cookie-card.bar-layout .bar-text-block .cookie-title {
                text-align: var(--title-align);
                font-size: calc(var(--font-size) + 4px);
            }

            .cookie-card.bar-layout .bar-text-block .cookie-text {
                text-align: var(--body-align);
            }

            .cookie-card.bar-layout .bar-btn-block {
                grid-auto-flow: row;
                grid-template-columns: 1fr;
                gap: 10px;
                width: 100%;
            }

            .cookie-card.bar-layout .bar-btn-block .btn-pref {
                width: 100%;
            }

            .cookie-card.bar-layout .footer-wrapper {
                justify-content: var(--footer-align) !important;
                text-align: var(--footer-align);
            }
        }

        .cookie-title {
            font-size: calc(var(--font-size) + 4px);
            font-weight: bold;
            text-align: var(--title-align);
        }

        .cookie-text {
            font-size: var(--font-size);
            line-height: 1.5;
            opacity: 0.9;
            text-align: var(--body-align);
            white-space: pre-wrap;
        }

        .btn-group {
            display: flex;
            gap: 12px;
        }

        .btn-group .btn {
            flex: 1;
        }

        /* SHARED BUTTON STYLE — Nuclear identity enforcement */
        .shared-button-style {
            font-family: inherit !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            line-height: 1.2 !important;
            letter-spacing: normal !important;
            text-transform: none;
            /* No-Growth Padding & Layout */
            height: 44px;
            padding: 0 24px;
            min-width: 140px;
            white-space: nowrap !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-sizing: border-box !important;
        }

        .btn {
            border-radius: var(--btn-radius);
            background: var(--btn-bg);
            color: var(--btn-text);
            border: var(--p-border-thickness) solid var(--btn-border);
            box-sizing: border-box !important;
        }

        .btn-pref {
            /* User Controlled Style */
            background: var(--pref-bg);
            border: var(--s-border-thickness) solid var(--pref-border-color);
            color: var(--pref-text);

            border-radius: var(--pref-radius);
            margin-top: -5px;
            /* No-Growth Layout */
            height: 44px;
            min-width: 140px;
            white-space: nowrap !important;
            padding: 0 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box !important;
        }

        .card-divider {
            border: 0;
            border-top: var(--divider-thickness) solid var(--divider-color);
            width: 100%;
            margin: 5px 0;
        }

        .footer-wrapper {
            display: flex;
            gap: 8px;
            font-size: 12px;
        }

        .footer-wrapper.stacked {
            flex-direction: column;
            align-items: var(--footer-align);
        }

        .footer-wrapper.stacked .sep {
            display: none;
        }

        .footer-wrapper.inline {
            flex-direction: row;
            justify-content: var(--footer-align);
            flex-wrap: wrap;
        }

        .footer-link,
        .pref-trigger {
            color: var(--text-color);
            opacity: 0.7;
            text-decoration: underline;
            cursor: pointer;
        }

        .hidden {
            display: none !important;
        }

        /* PREF MODAL LIST */
        .switch {
            position: relative;
            display: inline-block;
            width: 42px;
            height: 22px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider {
            background-color: var(--btn-bg);
        }

        input:checked+.slider:before {
            transform: translateX(20px);
        }

        /* PRO COLOR ROW */
        /* PRO COLOR ROW: Standardized */
        .color-row {
            display: flex;
            align-items: flex-end !important;
            justify-content: flex-start;
            gap: 6px;
            margin-bottom: 10px;
        }

        .color-picker-wrapper {
            flex: 1;
            /* Hero: Fills available space */
            height: 32px;
            min-width: 60px;
            overflow: hidden;
            border-radius: 4px;
            border: 1px solid #444;
            box-sizing: border-box !important;
        }

        .color-picker-wrapper input[type="color"] {
            width: 150%;
            height: 150%;
            transform: translate(-25%, -25%);
            border: none;
            padding: 0;
            background: none;
            cursor: pointer;
        }

        .hex-input {
            width: 72px;
            height: 32px;
            background: #2C2C2C;
            border: 1px solid #444;
            color: white;
            padding: 0 4px;
            font-size: 11px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
            border-radius: 4px;
            text-transform: uppercase;
            text-align: center;
            box-sizing: border-box !important;
        }

        .rgb-group {
            display: flex;
            gap: 4px;
        }

        .rgb-input {
            width: 35px;
            height: 32px;
            background: #2C2C2C;
            border: 1px solid #444;
            color: white;
            padding: 0;
            font-size: 11px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
            border-radius: 4px;
            text-align: center;
            appearance: textfield;
            -moz-appearance: textfield;
            box-sizing: border-box !important;
        }

        .rgb-input::-webkit-outer-spin-button,
        .rgb-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .hex-input:focus,
        .rgb-input:focus {
            border-color: #00555a;
            outline: none;
        }

        /* MICRO LABELS */
        .input-label-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .micro-label {
            font-size: 9px;
            color: #888;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* COPYRIGHT — inside preview-area only */
        .copyright-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 50;
            text-align: center;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.4);
            padding: 10px;
            font-family: 'Inter', sans-serif;
        }

        /* ═══════════════════════════════════════════ */
        /* EXPORT PORTAL MODAL                         */
        /* ═══════════════════════════════════════════ */
        .export-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .export-overlay.visible {
            display: flex;
            opacity: 1;
        }

        .export-modal {
            background: #1A1A1A;
            border: 1px solid #333;
            border-radius: 12px;
            width: 720px;
            max-width: 90vw;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
            animation: exportSlideIn 0.3s ease;
            overflow: hidden;
        }

        @keyframes exportSlideIn {
            from {
                transform: translateY(20px) scale(0.97);
                opacity: 0;
            }

            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .export-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid #2A2A2A;
        }

        .export-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            font-weight: 700;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .export-close {
            background: none;
            border: none;
            color: #666;
            font-size: 26px;
            cursor: pointer;
            line-height: 1;
            padding: 0 4px;
            transition: color 0.2s;
        }

        .export-close:hover {
            color: #fff;
        }

        .export-tabs {
            display: flex;
            gap: 0;
            padding: 0 24px;
            background: #151515;
            border-bottom: 1px solid #2A2A2A;
        }

        .export-tab {
            padding: 12px 24px;
            background: transparent;
            border: none;
            color: #666;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .export-tab:hover {
            color: #aaa;
        }

        .export-tab.active {
            color: #00555a;
            border-bottom-color: #00555a;
        }

        .export-code-area {
            flex: 1;
            overflow: auto;
            padding: 20px 24px;
            min-height: 300px;
            max-height: 50vh;
        }

        .export-code-area pre {
            margin: 0;
            background: #0D0D0D;
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #222;
            overflow-x: auto;
        }

        .export-code-area code {
            font-family: 'Fira Code', monospace;
            font-size: 12.5px;
            line-height: 1.7;
            color: #A9B7C6;
            white-space: pre;
            tab-size: 2;
        }

        .export-actions {
            display: flex;
            gap: 12px;
            padding: 16px 24px;
            border-top: 1px solid #2A2A2A;
            background: #151515;
        }

        .export-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .export-btn-copy {
            background: #2A2A2A;
            color: #ccc;
            border: 1px solid #444;
        }

        .export-btn-copy:hover {
            background: #333;
            color: #fff;
        }

        .export-btn-copy.copied {
            background: #00555a;
            color: #fff;
            border-color: #00555a;
        }

        .export-btn-zip {
            background: #00555a;
            color: #fff;
        }

        .export-btn-zip:hover {
            background: #006d73;
        }