/* ============================================
   MTEQ - Modern Design System
   Colors: Rosa/Gul från Making Change
   ============================================ */

/* v4.13.2: Global button override - prevent external CSS interference */
.mteq-container button,
.mteq-container .mteq-btn,
.mteq-container a.mteq-btn {
    /* Prevent WordPress/theme CSS from adding weird hover effects */
    transform: none !important;
    box-shadow: none !important;
    background-image: none !important;
    filter: none !important;
}

.mteq-container button:hover,
.mteq-container .mteq-btn:hover,
.mteq-container a.mteq-btn:hover {
    /* Allow only our own controlled transforms */
    transform: translateY(-1px) !important;
    filter: none !important;
    background-image: none !important;
}

.mteq-container .mteq-mode-btn:hover {
    /* Mode buttons should not move at all */
    transform: none !important;
}

/* v4.13.4: Even more aggressive - kill ALL external button effects */
button[class*="mteq"],
.mteq-btn,
a.mteq-btn {
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

button[class*="mteq"]:hover,
.mteq-btn:hover,
a.mteq-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

:root {
    /* v4.15.0+: Making Change Purple Palette */
    --color-primary: #48277c;          /* Primär lila */
    --color-primary-dark: #3d1f63;     /* Mörkare lila för hover */
    --color-primary-light: #cdc2de;    /* Ljusare lila för highlights */
    --color-primary-medium: #8b71aa;   /* Medium lila för accenter */
    --color-secondary: #d4a5e8;        /* Ljus lila/rosa för gradienter */
    
    /* v4.15.2: Accent colors från paletten */
    --color-gold: #c49b0e;             /* Guld för viktiga åtgärder */
    --color-gold-dark: #a17f0b;        /* Mörkare guld för hover */
    --color-bronze: #856130;           /* Brons för subtila accenter */
    --color-blue: #008bc8;             /* Blå för info/länkar */
    --color-blue-light: #93d5f6;       /* Ljusblå för highlights */
    
    /* Neutrals */
    --color-background: #F8F9FA;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background: var(--color-background);
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-gray-800);
    line-height: 1.6;
}

/* ============================================
   v4.18: TYPOGRAPHY
   Fonts loaded via wp_enqueue_style in mteq.php
   ============================================ */

/* Headings, buttons, labels = Libre Franklin */
h1, h2, h3, h4, h5, h6,
.mteq-container h1,
.mteq-container h2,
.mteq-container h3,
.mteq-container h4,
button,
.mteq-btn,
a.mteq-btn,
.mteq-section-title,
label,
.mteq-header-org-info {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Headings = SemiBold (600) */
h1, h2, h3, h4, h5, h6,
.mteq-section-title {
    font-weight: 600;
}

/* Buttons = SemiBold (600) */
button,
.mteq-btn,
a.mteq-btn {
    font-weight: 600;
}

.mteq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* ============================================
   GLOBAL HEADER (v4.15.10)
   ============================================ */

/* v4.18: Header på EN rad med flexbox */
.mteq-global-header {
    background: var(--color-white);
    padding: 16px 32px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mteq-logo-link {
    display: block;
    line-height: 0;
}

.mteq-logo-global {
    height: 40px;
    width: auto;
    display: block;
}

.mteq-header-org-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.mteq-manage-link {
    color: #48277c;
    text-decoration: none;
    font-weight: 500;
}

.mteq-manage-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mteq-logo-global {
        height: 32px;
    }
    
    .mteq-global-header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .mteq-header-org-info {
        font-size: 13px;
    }
}

/* ============================================
   HEADER
   ============================================ */

.mteq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    gap: var(--space-lg);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-gray-100); /* v4.15.2: Subtil separator */
}

.mteq-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.5px;
}

/* v4.15.0: MTQ Logo styling */
.mteq-logo-container {
    margin-bottom: 16px;
}

.mteq-logo {
    height: 48px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .mteq-logo {
        height: 36px;
    }
}

/* v4.13.0: Simplified credits info */
.mteq-credits-info {
    margin: 0;
    font-size: 16px;
    color: var(--color-gray-600);
}

.mteq-credits-info strong {
    color: var(--color-gray-900);
}

.mteq-low-credits {
    color: #f59e0b;
    font-weight: 600;
}

/* v4.13.1: Manage team link */
.mteq-manage-link {
    color: #48277c;
    text-decoration: none;
    font-weight: 500;
}

.mteq-manage-link:hover {
    text-decoration: underline;
}

/* v4.14.0: Team selector dropdown */
.mteq-team-selector {
    font-size: 16px;
    font-weight: 600;
    color: #48277c;
    background: white;
    border: 2px solid #48277c;
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23307E92" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

.mteq-team-selector:hover {
    border-color: #3d1f63;
    background-color: #f0f9fb;
}

.mteq-team-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(48, 126, 146, 0.2);
}

.mteq-header-actions {
    display: flex;
    gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */

.mteq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
    /* v4.13.4: Default to teal if no other class specified */
    background: #48277c !important;
    color: white !important;
    border: 1px solid #48277c !important;
}

.mteq-btn:focus {
    outline: none;
}

.mteq-btn:active {
    transform: translateY(0);
}

/* Alla knappar samma färg: #48277c */
.mteq-btn-primary,
.mteq-btn-email,
.mteq-btn-warning,
.mteq-btn-danger {
    background: #48277c;
    color: white !important;
    border: 1px solid #48277c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mteq-btn-primary:hover,
.mteq-btn-email:hover,
.mteq-btn-warning:hover,
.mteq-btn-danger:hover {
    background: #3d1f63;
    color: white !important;
    border-color: #3d1f63;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.mteq-btn-primary:focus,
.mteq-btn-email:focus,
.mteq-btn-warning:focus,
.mteq-btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(48, 126, 146, 0.3);
}

.mteq-btn-primary:active,
.mteq-btn-email:active,
.mteq-btn-warning:active,
.mteq-btn-danger:active {
    transform: translateY(0);
}

.mteq-btn-secondary {
    background: var(--color-white);
    color: #48277c;
    border: 1px solid #48277c;
    box-shadow: var(--shadow-sm);
}

.mteq-btn-secondary:hover {
    background: #f0f9fb;
    border-color: #3d1f63;
    color: #3d1f63;
}

/* v4.15.2: Guld-knapp för viktiga åtgärder */
.mteq-btn-gold {
    background: #c49b0e !important;
    color: #ffffff !important;
    border: 1px solid #c49b0e !important;
    box-shadow: 0 2px 6px rgba(197, 155, 14, 0.3) !important;
    font-weight: 600;
}

.mteq-btn-gold:hover {
    background: #a17f0b !important;
    border-color: #a17f0b !important;
    box-shadow: 0 4px 12px rgba(197, 155, 14, 0.4) !important;
    transform: translateY(-2px);
}

.mteq-btn-gold:active {
    transform: translateY(0);
}

.mteq-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.mteq-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}


/* ============================================
   ORGANIZATION INFO
   ============================================ */

/* Dashboard Grid Layout (v4.12.7) */
.mteq-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .mteq-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.mteq-team-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mteq-team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mteq-team-header h2 {
    margin: 0;
    font-size: 20px;
    color: #48277c;
    font-weight: 700;
}

.mteq-credits-card {
    background: linear-gradient(135deg, #48277c 0%, #3d1f63 100%);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(48, 126, 146, 0.3);
}

.mteq-credits-header {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mteq-credits-big {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0;
}

.mteq-credits-subtitle {
    font-size: 16px;
    opacity: 0.8;
}

.mteq-credits-warning {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.25);
    border-radius: 6px;
    font-size: 13px;
}

.mteq-organization-info {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.mteq-org-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.mteq-org-name {
    font-size: 20px;
    font-weight: 700;
}

.mteq-org-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mteq-credits-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    font-size: 16px;
}

.mteq-credits-label {
    opacity: 0.9;
}

.mteq-credits-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.mteq-credits-value.mteq-credits-low {
    color: var(--color-secondary);
}

.mteq-credits-total {
    opacity: 0.7;
    font-size: 18px;
}

.mteq-warning {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 193, 7, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.mteq-no-credits,
.mteq-no-organization {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.mteq-no-credits p,
.mteq-no-organization p {
    margin: 0 0 var(--space-md);
    color: var(--color-gray-600);
}

/* ============================================
   CARDS & PROJECTS
   ============================================ */

.mteq-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.mteq-project-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-100);
    border-top: 3px solid var(--color-primary-light); /* v4.15.2: Subtil accent */
}

.mteq-project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
    border-top-color: var(--color-primary); /* v4.15.2: Mer framträdande på hover */
}

.mteq-project-card h3 {
    margin: 0 0 var(--space-md);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.mteq-project-card p {
    margin: var(--space-sm) 0;
    font-size: 14px;
    color: var(--color-gray-600);
}

.mteq-project-card .mteq-btn {
    margin-top: var(--space-md);
    width: 100%;
}

/* ============================================
   EMPTY STATES
   ============================================ */

.mteq-empty {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.mteq-empty p {
    margin: var(--space-sm) 0;
    font-size: 16px;
    color: var(--color-gray-600);
}

/* ============================================
   FORMS
   ============================================ */

.mteq-form {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
}

.mteq-field {
    margin-bottom: var(--space-lg);
}

.mteq-field label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 14px;
}

.mteq-field input[type="text"],
.mteq-field input[type="email"],
.mteq-field input[type="date"],
.mteq-field textarea,
.mteq-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--color-white);
}

.mteq-field input:focus,
.mteq-field textarea:focus,
.mteq-field select:focus {
    outline: none;
    border-color: var(--color-primary-text);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.mteq-field textarea {
    resize: vertical;
    min-height: 100px;
}

.mteq-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* ============================================
   MESSAGES
   ============================================ */

.mteq-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
    font-size: 14px;
}

.mteq-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.mteq-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ============================================
   TABLES
   ============================================ */

.mteq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mteq-table th,
.mteq-table td {
    padding: 10px 14px;
    text-align: left;
}

.mteq-table th {
    background: var(--color-gray-50);
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-primary-light);
}

.mteq-table td {
    border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 13px;
}

.mteq-table tr:last-child td {
    border-bottom: none;
}

.mteq-table tr:hover td {
    background: var(--color-gray-50);
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.mteq-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.mteq-badge.completed {
    background: #D1FAE5;
    color: #065F46;
}

.mteq-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

/* ============================================
   SURVEY STYLES
   ============================================ */

.mteq-survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.mteq-survey-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.mteq-survey-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-md);
}

.mteq-survey-header p {
    font-size: 18px;
    color: var(--color-gray-600);
}

/* Progress Bar */
.mteq-progress-container {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.mteq-progress-bar {
    height: 8px;
    background: var(--color-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.mteq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.mteq-progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
}

/* Survey Step */
/* Survey Step - Frågor i en vit box */
.mteq-survey-step {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-gray-200);
}

.mteq-step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-text);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* Question Card */
.mteq-question-card {
    background: var(--color-gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.mteq-question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: var(--space-md);
}

/* Answer Options - Neutrala tills valda */
.mteq-answer-options {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.mteq-answer-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.mteq-answer-btn:hover {
    border-color: var(--color-gray-400);
    background: var(--color-gray-50);
}

/* Ja - Neutral lila när vald */
.mteq-answer-btn[data-value="yes"].selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Delvis - Neutral lila när vald */
.mteq-answer-btn[data-value="partly"].selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Nej - Neutral lila när vald */
.mteq-answer-btn[data-value="no"].selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Kan inte svara - Grå när vald */
.mteq-answer-btn[data-value="cannot_answer"].selected {
    background: #6B7280;
    color: white;
    border-color: #6B7280;
}

/* Tips Section */
.mteq-tips-section {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFECB3 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
    border-left: 4px solid var(--color-secondary);
}

.mteq-tips-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mteq-tip-item {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.mteq-tip-item:last-child {
    margin-bottom: 0;
}

/* Navigation */
.mteq-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    gap: var(--space-lg);
}

/* Dot Navigation */
.mteq-dot-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
}

.mteq-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.mteq-nav-dot:hover {
    background: var(--color-gray-400);
    transform: scale(1.2);
}

.mteq-nav-dot.active {
    background: var(--color-primary);
    width: 32px;
    border-radius: var(--radius-full);
}

.mteq-nav-dot.completed {
    background: var(--color-success);
}

/* Results */
.mteq-results {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-2xl);
}

.mteq-results-section {
    margin-top: var(--space-2xl);
}

.mteq-results-summary {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.mteq-stat {
    flex: 1;
    min-width: 200px;
    background: var(--color-gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.mteq-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary-text);
    margin-bottom: var(--space-sm);
}

.mteq-stat-label {
    font-size: 14px;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mteq-dimension {
    margin-bottom: var(--space-2xl);
    padding: 0;
    background: transparent;
}

/* v4.20.5: Special styling for total distribution bar */
.mteq-total-dimension {
    background: linear-gradient(135deg, #f8f5fc 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 4px 12px rgba(72, 39, 124, 0.08);
    margin-bottom: 40px;
}

.mteq-dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.mteq-dimension-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.mteq-dimension-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-700);
}

/* Horizontal Bar Chart */
.mteq-bar-chart {
    display: flex;
    align-items: center;
    height: 40px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mteq-bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

/* v4.21.6: Runda hörn på första och sista segmentet */
.mteq-bar-segment:first-child {
    border-radius: 8px 0 0 8px;
}

.mteq-bar-segment:last-child {
    border-radius: 0 8px 8px 0;
}

/* Om bara ett segment finns */
.mteq-bar-segment:first-child:last-child {
    border-radius: 8px;
}

.mteq-bar-segment:hover {
    opacity: 0.9;
}

.mteq-bar-segment.yes {
    background: #4CAF50;
}

.mteq-bar-segment.partly {
    background: #FF9800;
}

.mteq-bar-segment.no {
    background: #F44336;
}

.mteq-bar-segment.cannot {
    background: #9E9E9E;
}

/* Bar Chart Legend */
.mteq-bar-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.mteq-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--color-gray-700);
}

.mteq-legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
}

.mteq-legend-color.yes {
    background: #4CAF50;
}

.mteq-legend-color.partly {
    background: #FF9800;
}

.mteq-legend-color.no {
    background: #F44336;
}

.mteq-legend-color.cannot {
    background: #9E9E9E;
}

/* Detailed Question Breakdown - Table Layout */
.mteq-detailed-theme {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.mteq-detailed-theme-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-gray-300);
}

.mteq-detailed-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
}

.mteq-detailed-table thead th {
    text-align: center;
    padding: var(--space-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-600);
    border-bottom: 2px solid var(--color-gray-300);
}

.mteq-detailed-question-col {
    text-align: left !important;
    width: 45%;
}

.mteq-detailed-answer-col {
    width: 10%;
    text-align: center;
}

.mteq-detailed-prio-col {
    width: 10%;
    text-align: center;
}

.mteq-detailed-table tbody tr {
    border-bottom: 1px solid var(--color-gray-200);
}

.mteq-detailed-table tbody tr:hover {
    background: var(--color-gray-50);
}

.mteq-detailed-question-text {
    padding: var(--space-md);
    color: var(--color-gray-700);
    font-size: 15px;
    line-height: 1.5;
}

.mteq-detailed-answer-cell {
    padding: var(--space-md);
    text-align: center;
}

.mteq-detailed-prio-cell {
    padding: var(--space-md);
    text-align: center;
}

.mteq-prio-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #48277c;
}

.mteq-answer-count {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.mteq-answer-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.mteq-answer-dot.yes {
    background: #4CAF50;
}

.mteq-answer-dot.partly {
    background: #FF9800;
}

.mteq-answer-dot.no {
    background: #F44336;
}

.mteq-answer-dot.cannot {
    background: #9E9E9E;
}

.mteq-answer-number {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 15px;
}

/* ============================================
   EGNA REFLEKTIONER
   ============================================ */

.mteq-reflections-section {
    margin-top: 48px;
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.mteq-reflections-section h3 {
    margin: 0 0 var(--space-lg) 0;
    color: var(--color-gray-800);
    font-size: 20px;
}

.mteq-reflections-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.mteq-reflections-textarea:focus {
    outline: none;
    border-color: #48277c;
    box-shadow: 0 0 0 3px rgba(48, 126, 146, 0.1);
}

.mteq-reflections-textarea::placeholder {
    color: var(--color-gray-400);
    font-style: italic;
}

/* ============================================
   ORGANIZATION ADMIN
   ============================================ */

.mteq-org-admin {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mteq-org-section {
    margin-bottom: var(--space-2xl);
}

.mteq-org-section:last-child {
    margin-bottom: 0;
}

.mteq-org-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mteq-credit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.mteq-stat-card {
    background: var(--color-gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.mteq-stat-label {
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: var(--space-sm);
}

.mteq-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-gray-900);
}

/* Member List */
.mteq-member-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mteq-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.mteq-member-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mteq-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.mteq-member-name {
    font-weight: 600;
    color: var(--color-gray-800);
}

/* Invite Form */
.mteq-invite-form {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.mteq-invite-form input {
    flex: 1;
}

/* Bulk invite mode toggle */
.mteq-invite-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    /* v4.13.2: Removed border-bottom */
    padding-bottom: 10px;
}

.mteq-mode-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-gray-300);
    background: white;
    color: var(--color-gray-700);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    /* v4.13.2: Prevent external CSS from affecting */
    transform: none !important;
    box-shadow: none !important;
}

.mteq-mode-btn:hover {
    background: #f0f9fb;
    border-color: #48277c;
    color: #48277c;
    /* v4.13.2: No scale/zoom on hover */
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.mteq-mode-btn.active {
    background: #48277c;
    color: white;
    border-color: #48277c;
    /* v4.13.2: No special effects */
    transform: none !important;
    box-shadow: 0 2px 4px rgba(48, 126, 146, 0.2) !important;
}

/* v4.13.4: Better spacing for participants section */
.mteq-participants-section {
    margin-top: 40px;
}

.mteq-participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mteq-header-buttons {
    display: flex;
    gap: 12px;
}

.mteq-add-participant {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.mteq-invite-mode-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.mteq-invite-mode-content textarea:focus {
    outline: none;
    border-color: #48277c;
    box-shadow: 0 0 0 3px rgba(48, 126, 146, 0.1);
}

.mteq-field-help {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 6px;
    font-style: italic;
}

/* Email validation feedback */
#email-validation-feedback {
    margin-top: 15px;
}

.mteq-email-valid-box {
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.mteq-email-invalid-box {
    padding: 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.mteq-invalid-email-tag {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 4px 10px;
    border-radius: 12px;
    background: #ffeaea;
    color: #b30000;
    font-size: 13px;
    font-family: monospace;
}

.mteq-email-warning {
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--radius-md);
    color: #856404;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.mteq-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

.mteq-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-gray-200);
    border-top-color: #48277c;
    border-radius: 50%;
    animation: mteq-spin 0.8s linear infinite;
}

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

.mteq-loading-text {
    margin-top: 20px;
    color: var(--color-gray-600);
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   UTILITIES
   ============================================ */

.mteq-text-center {
    text-align: center;
}

.mteq-mt-lg {
    margin-top: var(--space-lg);
}

.mteq-mb-lg {
    margin-bottom: var(--space-lg);
}

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   ORGANIZATION ADMIN - Cards & Spacing
   ============================================ */

.mteq-org-admin-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

/* Credits Summary Card */
.mteq-credits-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
}

.mteq-credits-summary h3 {
    margin: 0 0 var(--space-lg) 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.mteq-credit-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.mteq-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.mteq-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary-text);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.mteq-stat-label {
    font-size: 13px;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Team Section Card */
.mteq-team-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
}

.mteq-team-section h3 {
    margin: 0 0 var(--space-lg) 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
}

/* Invite Form */
.mteq-invite-form {
    background: var(--color-gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.mteq-invite-form h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.mteq-inline-form {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.mteq-inline-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: white;
    outline: none;
}

.mteq-inline-form input[type="email"]:focus {
    border-color: var(--color-primary-text);
    box-shadow: 0 0 0 3px rgba(245, 180, 196, 0.1);
}

/* Members Table */
.mteq-members-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mteq-member-row {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    gap: var(--space-lg);
}

.mteq-member-row:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.mteq-member-info {
    flex: 1;
}

.mteq-member-info strong {
    font-size: 16px;
    color: var(--color-gray-900);
}

.mteq-org-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: var(--space-sm);
}

.mteq-member-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    text-align: right;
    min-width: 150px;
}

.mteq-member-stats span {
    font-size: 14px;
    color: var(--color-gray-600);
}

.mteq-member-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Invitations Section Card */
.mteq-invitations-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
}

.mteq-invitations-section h3 {
    margin: 0 0 var(--space-lg) 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.mteq-invitations-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mteq-invitation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    gap: var(--space-lg);
}

.mteq-invitation-row:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.mteq-invitation-info {
    flex: 1;
}

.mteq-invitation-info strong {
    font-size: 16px;
    color: var(--color-gray-900);
}

.mteq-invitation-status {
    font-weight: 600;
    font-size: 15px;
}

/* Message box */
.mteq-message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.mteq-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.mteq-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ============================================
   RESPONSIVE - Organization Admin
   ============================================ */

@media (max-width: 768px) {
    .mteq-credit-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .mteq-member-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mteq-member-stats {
        text-align: left;
    }
    
    .mteq-inline-form {
        flex-direction: column;
    }
    
    .mteq-inline-form input[type="email"] {
        width: 100%;
    }
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 768px) {
    .mteq-container {
        padding: var(--space-lg);
    }
    
    .mteq-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mteq-projects {
        grid-template-columns: 1fr;
    }
    
    .mteq-answer-options {
        flex-direction: column;
    }
    
    .mteq-answer-btn {
        min-width: 100%;
    }
    
    .mteq-navigation {
        flex-direction: column;
    }
    
    .mteq-actions {
        flex-direction: column;
    }
    
    .mteq-actions .mteq-btn {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mteq-project-card,
.mteq-survey-step,
.mteq-question-card {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   ORGANIZATION ADMIN IMPROVEMENTS (v4.12.3)
   ============================================ */

/* Stats boxes in horizontal row */
.mteq-org-stats {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mteq-stat-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    min-width: 150px;
    flex: 1;
}

.mteq-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #48277c;
    margin-bottom: 8px;
}

.mteq-stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* More spacing between sections */
.mteq-org-admin h2 {
    margin-top: 50px;
    margin-bottom: 20px;
}

.mteq-org-admin > .mteq-btn-primary {
    margin-top: 30px;
}

/* Invitation section spacing */
.mteq-pending-invitations {
    margin-top: 40px;
}

.mteq-invitation-card {
    border: 2px solid #f5b4c4;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.mteq-invitation-card h3 {
    margin-top: 0;
    color: #48277c;
}

.mteq-invitation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .mteq-btn,
    .mteq-navigation,
    .mteq-dot-navigation {
        display: none;
    }
    
    .mteq-container {
        max-width: 100%;
    }
}

/* ============================================
   v4.17.2: FOOTER
   ============================================ */

.mteq-footer {
    border-top: 2px solid #48277c;
    padding: 24px 32px;
    text-align: center;
    margin-top: 60px;
}

.mteq-footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
}

/* ============================================
   v4.17.2: SECTION SEPARATORS
   ============================================ */

.mteq-section-separator {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.mteq-section-title {
    color: #48277c;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

/* ============================================
   v4.19.0: DUAL CREDIT POOLS
   ============================================ */

.mteq-credits-summary {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.mteq-credit-pool {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mteq-credit-pool:last-child {
    border-bottom: none;
}

.mteq-credit-label {
    font-size: 16px;
    color: #48277c;
    font-weight: 500;
}

.mteq-credit-value {
    font-size: 24px;
    font-weight: 600;
    color: #48277c;
}

/* ============================================
   v4.21.0: LOCKING STYLES
   ============================================ */

/* Generate Report Section */
.mteq-generate-report-section {
    background: linear-gradient(135deg, #f8f5fc 0%, #ffffff 100%);
    border: 2px solid #48277c;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.mteq-generate-report-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.mteq-stat-item {
    text-align: center;
}

.mteq-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #48277c;
    margin-bottom: 8px;
}

.mteq-stat-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mteq-btn-large {
    padding: 16px 48px !important;
    font-size: 18px !important;
    margin: 16px 0;
}

.mteq-generate-info {
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
}

.mteq-warning-text {
    margin-top: 16px;
    color: #d97706;
    font-weight: 600;
    font-size: 14px;
}

.mteq-info-box {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    text-align: left;
}

.mteq-info-box p {
    margin-bottom: 12px;
    color: #374151;
}

.mteq-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mteq-info-box li {
    padding: 8px 0;
    color: #6b7280;
}

/* Warning Modal */
.mteq-warning-modal {
    max-width: 600px;
}

.mteq-warning-box {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.mteq-warning-box ul {
    margin: 16px 0 0 24px;
}

.mteq-warning-box li {
    margin: 10px 0;
    color: #92400e;
    font-weight: 500;
}

.mteq-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.mteq-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.mteq-btn-secondary:hover {
    background: #d1d5db;
}

/* Locked Banner */
.mteq-locked-banner {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #9ca3af;
    border-radius: 16px;
    padding: 40px;
    margin: 32px 0;
    text-align: center;
}

.mteq-lock-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.mteq-locked-banner h3 {
    color: #374151;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.mteq-locked-banner p {
    color: #6b7280;
    margin: 8px 0;
    font-size: 16px;
}

/* Modal Overlay & Modal */
.mteq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.mteq-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mteq-warning-modal {
    border-top: 4px solid #f59e0b;
}

.mteq-warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.mteq-warning-box ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.mteq-warning-box li {
    margin: 8px 0;
}

/* ============================================
   Help & Support Page Styles
   ============================================ */

/* Help Header */
.mteq-help-header {
    text-align: center;
    padding: 48px 20px 36px;
    margin-bottom: var(--space-2xl);
}

.mteq-help-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
    color: var(--color-primary);
}

.mteq-help-subtitle {
    font-size: 1.125rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-gray-600);
}

/* Help Sections */
.mteq-help-section {
    margin-bottom: var(--space-2xl);
}

.mteq-help-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--space-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    line-height: 1.3;
}

.mteq-help-icon {
    font-size: 1.25rem;
}

/* Help Cards */
.mteq-help-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.mteq-help-card p {
    line-height: 1.7;
    color: var(--color-gray-700);
    margin: 0 0 var(--space-lg) 0;
}

.mteq-help-card p:last-child {
    margin-bottom: 0;
}

.mteq-help-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.4;
}

/* Features Grid */
.mteq-help-features {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.mteq-help-feature {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.mteq-help-feature-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.mteq-help-feature strong {
    display: block;
    color: var(--color-gray-900);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
    line-height: 1.4;
}

.mteq-help-feature p {
    color: var(--color-gray-600);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Step-by-Step Guide */
.mteq-help-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--color-gray-200);
}

.mteq-help-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mteq-help-step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-medium) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.mteq-help-step-content {
    flex: 1;
}

.mteq-help-step-content h3 {
    font-size: 1.25rem;
    color: var(--color-gray-900);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.4;
    font-weight: 600;
}

.mteq-help-step-content h4 {
    font-size: 1.0625rem;
    color: var(--color-primary);
    margin: var(--space-lg) 0 var(--space-sm) 0;
    font-weight: 600;
    line-height: 1.4;
}

.mteq-help-step-content p {
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: var(--space-lg);
}

.mteq-help-step-content ul {
    margin: var(--space-md) 0 var(--space-lg) 0;
    padding-left: var(--space-lg);
}

.mteq-help-step-content li {
    margin: var(--space-sm) 0;
    line-height: 1.6;
    color: var(--color-gray-700);
}

/* Subsections */
.mteq-help-subsection {
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.mteq-help-subsection h4 {
    color: var(--color-primary);
    margin: 0 0 var(--space-md) 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.mteq-help-subsection p {
    margin-bottom: var(--space-md);
}

.mteq-help-subsection p:last-child {
    margin-bottom: 0;
}

.mteq-help-subsection ul {
    margin: var(--space-sm) 0 0 0;
}

/* Tips & Warnings */
.mteq-help-tip {
    background: #f0fdf4;
    border-left: 4px solid var(--color-success);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.mteq-help-warning {
    background: #fef3c7;
    border-left: 4px solid var(--color-warning);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.mteq-help-tip strong,
.mteq-help-warning strong {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--color-gray-900);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.mteq-help-tip p,
.mteq-help-warning p {
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.mteq-help-tip p:last-child,
.mteq-help-warning p:last-child {
    margin-bottom: 0;
}

.mteq-help-warning ul {
    margin: var(--space-sm) 0 var(--space-md) 0;
    padding-left: var(--space-lg);
}

.mteq-help-warning li {
    margin: var(--space-xs) 0;
    line-height: 1.6;
}

/* Image Placeholders */
.mteq-help-image-placeholder {
    background: var(--color-gray-100);
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    text-align: center;
    color: var(--color-gray-500);
    margin: var(--space-lg) 0;
    font-style: italic;
    font-size: 0.9375rem;
}

/* FAQ */
.mteq-help-faq {
    display: grid;
    gap: var(--space-lg);
}

.mteq-help-faq-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s ease;
}

.mteq-help-faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.mteq-help-faq-item h3 {
    color: var(--color-primary);
    font-size: 1.0625rem;
    margin: 0 0 var(--space-md) 0;
    font-weight: 600;
    line-height: 1.4;
}

.mteq-help-faq-item p {
    line-height: 1.7;
    color: var(--color-gray-700);
    margin: 0;
}

/* Video Grid */
.mteq-help-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.mteq-help-video-placeholder {
    background: var(--color-gray-50);
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.mteq-help-video-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
    color: var(--color-gray-500);
}

.mteq-help-video-placeholder h4 {
    color: var(--color-gray-800);
    margin: 0 0 var(--space-sm) 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.mteq-help-video-placeholder p {
    color: var(--color-gray-600);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Contact Section */
.mteq-help-contact {
    text-align: center;
}

.mteq-help-contact-info {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mteq-help-contact-item {
    padding: var(--space-lg);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.mteq-help-contact-item strong {
    display: block;
    color: var(--color-gray-900);
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.mteq-help-contact-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.mteq-help-contact-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .mteq-help-header h1 {
        font-size: 1.5rem;
    }
    
    .mteq-help-subtitle {
        font-size: 1rem;
    }
    
    .mteq-help-section-title {
        font-size: 1.25rem;
    }
    
    .mteq-help-step {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .mteq-help-step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .mteq-help-step-content h3 {
        font-size: 1.125rem;
    }
    
    .mteq-help-video-grid {
        grid-template-columns: 1fr;
    }
}

/* Help Images */
.mteq-help-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-300);
    box-shadow: var(--shadow-md);
    display: block;
}

/* ============================================
   Delete Modal Styles
   ============================================ */

.mteq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.mteq-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.mteq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-gray-200);
}

.mteq-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-gray-900);
}

.mteq-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mteq-modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.mteq-modal-body {
    padding: var(--space-xl);
}

.mteq-modal-body p {
    margin: 0 0 var(--space-md) 0;
    line-height: 1.6;
}

.mteq-modal-body ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.mteq-modal-body li {
    margin: var(--space-xs) 0;
    line-height: 1.5;
}

.mteq-warning-text {
    color: var(--color-warning);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: #fef3c7;
    border-radius: var(--radius-md);
}

.mteq-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-xl);
    border-top: 1px solid var(--color-gray-200);
}

/* Danger button styling */
.mteq-btn-danger {
    background: #dc2626;
    color: white;
}

.mteq-btn-danger:hover {
    background: #b91c1c;
}

.mteq-header-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Sektor toggle-grupp */
.mteq-toggle-group {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.mteq-toggle-option {
    cursor: pointer;
    margin: 0;
}

.mteq-toggle-option input[type="radio"] {
    display: none;
}

.mteq-toggle-option span {
    display: block;
    padding: 8px 20px;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--color-gray-600);
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-300);
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.mteq-toggle-option:last-child span {
    border-right: none;
}

.mteq-toggle-option input[type="radio"]:checked + span {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   v4.25.1 FIXES
   ============================================ */

/* 1. Libre Franklin genomgående – override tema-CSS */
.mteq-container,
.mteq-container *,
.mteq-app,
.mteq-app * {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 2. Konsekvent padding på alla kort/boxar */
.mteq-project-card,
.mteq-team-card,
.mteq-credits-card,
.mteq-stat-card,
.mteq-info-box,
.mteq-empty,
.mteq-panel {
    padding: var(--space-xl);
    box-sizing: border-box;
}

/* 3. Modal – responsiv för mindre skärmar */
@media (max-width: 640px) {
    .mteq-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 0 auto;
    }

    .mteq-modal-header,
    .mteq-modal-body,
    .mteq-modal-footer {
        padding: var(--space-lg);
    }

    .mteq-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .mteq-modal-footer .mteq-btn {
        width: 100%;
        text-align: center;
    }

    .mteq-modal-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .mteq-modal-buttons .mteq-btn {
        width: 100%;
        text-align: center;
    }

    .mteq-warning-modal {
        width: 95%;
    }
}

/* v4.25.1: Kompaktare deltagartabell */
.mteq-table .mteq-btn {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
}

.mteq-table td .mteq-badge {
    font-size: 12px;
}

.mteq-table .mteq-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

/* ============================================
   v4.25.2: TYPOGRAFI & RESPONSIVITET
   ============================================ */

/* Normalisera textstorlekar – harmoniskt typskala */
.mteq-container p,
.mteq-container li,
.mteq-container span,
.mteq-container div {
    font-size: 14px;
    line-height: 1.6;
}

.mteq-container h1 { font-size: 24px; }
.mteq-container h2 { font-size: 20px; }
.mteq-container h3 { font-size: 17px; }
.mteq-container h4 { font-size: 15px; }

/* Stat-siffrorna i rapport-boxen */
.mteq-stat-value { font-size: 28px !important; }
.mteq-stat-label { font-size: 11px !important; }

/* Knappar – konsekvent storlek */
.mteq-btn { font-size: 13px !important; padding: 9px 18px !important; }
.mteq-btn-small { font-size: 12px !important; padding: 6px 12px !important; }

/* Deltagare-räknaren ("1 deltagare") */
.mteq-participants-count,
.mteq-participants-header p,
.mteq-participants-header span {
    font-size: 14px !important;
}

/* Badges */
.mteq-badge { font-size: 11px !important; padding: 3px 10px !important; }

/* ============================================
   v4.25.2: MOBIL – generell layout
   ============================================ */

@media (max-width: 768px) {

    /* Container */
    .mteq-container {
        padding: 16px 12px;
    }

    /* Header */
    .mteq-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .mteq-header h1 { font-size: 20px; }

    .mteq-header-actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .mteq-header-actions .mteq-btn {
        flex: 1 1 auto;
        min-width: 120px;
        justify-content: center;
    }

    /* Dashboard-grid: en kolumn */
    .mteq-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Kort och boxar – full bredd, ingen overflow */
    .mteq-team-card,
    .mteq-credits-card,
    .mteq-stat-card,
    .mteq-project-card,
    .mteq-info-box,
    .mteq-add-participant,
    .mteq-panel {
        padding: 16px !important;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Rapport-statistik: tre kolumner → staplade */
    .mteq-report-stats,
    .mteq-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* Deltagare-header: knappar under räknaren */
    .mteq-participants-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mteq-header-buttons {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .mteq-header-buttons .mteq-btn {
        flex: 1 1 auto;
        min-width: 130px;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* Tabell – horisontell scroll istf. overflow */
    .mteq-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .mteq-table {
        min-width: 520px;
    }

    /* Stat-rutor i rapport-sektionen */
    .mteq-stat-value { font-size: 22px !important; }

    /* Generera rapport-knapp */
    .mteq-generate-btn,
    .mteq-btn-gold {
        width: 100%;
        text-align: center;
    }

    /* Projekt-kort: knappar full bredd */
    .mteq-project-card .mteq-btn {
        width: 100%;
    }

    /* Projekt-grid: en kolumn */
    .mteq-projects-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .mteq-container {
        padding: 12px 8px;
    }

    .mteq-container h1 { font-size: 18px; }
    .mteq-container h2 { font-size: 16px; }
    .mteq-container h3 { font-size: 15px; }

    .mteq-global-header {
        padding: 10px 14px;
    }

    .mteq-logo-global { height: 28px; }
}
