* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #333;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

#app {
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.role-selection-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.role-title {
    font-size: 36px;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 80px;
    text-align: center;
    color: #333;
    text-shadow: 0 2px 20px rgba(0,0,0,0.05);
    letter-spacing: 2px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    cursor: grab;
    user-select: none;
}

.carousel-container:active {
    cursor: grabbing;
}

.role-options {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 180px;
}

.role-option {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    margin: 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.role-option::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-option.center::before {
    opacity: 1;
}

.role-option.left,
.role-option.right {
    transform: scale(0.55);
    opacity: 0.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.role-option.center {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.role-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    display: block;
    border: none;
    outline: none;
}

.role-option.left .role-image,
.role-option.right .role-image {
    /* filter: blur(2px) drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)); */
    opacity: 0.9;
}

.role-option.center .role-image {
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.4));
}

.details-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.carousel-navigation {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.carousel-navigation:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.carousel-navigation:active {
    transform: scale(0.95);
}

.arrow {
    font-size: 20px;
    /* color: #667eea; */
    line-height: 1;
    text-shadow: none;
}

.role-details {
    text-align: center;
    margin-bottom: 0;
    padding: 0 30px;
    flex: 1;
    height: auto;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.role-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    height: 38px;
    line-height: 38px;
    color: #333;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    letter-spacing: 1px;
}

/* P11.3: descrição compacta — o slot agora tem descrição + linha do MAC
   (o layout base é 100vh + overflow:hidden; espaço é clipado, não scrolla) */
.role-description {
    color: #666;
    font-size: 16px;
    max-width: 450px;
    margin: 0 auto;
    height: auto;
    min-height: 36px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.role-mac-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #333;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.role-mac-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: normal;
}

.role-mac-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 1);
}

.role-mac-input.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.role-mac-error {
    color: #ff4757;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    min-height: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    text-shadow: none;
    font-weight: 500;
}

.role-mac-error.visible {
    opacity: 1;
    visibility: visible;
}

/* P11.3: modo exibição — valor efetivo + lápis para editar */
.role-mac-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.role-mac-value {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    letter-spacing: 2px;
}

.role-mac-value.role-mac-default {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    letter-spacing: normal;
}

.role-mac-edit-btn {
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.role-mac-edit-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #333;
}

/* P11.3: modo edição — rascunho confirmado com ✓/Enter, descartado com ✕/Esc */
.role-mac-edit {
    max-width: 450px;
    margin: 0 auto;
}

.role-mac-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-mac-edit-row .role-mac-input {
    flex: 1;
    width: auto;
}

.role-mac-action {
    border: 0;
    background: transparent;
    color: #444;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.role-mac-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.7);
    color: #222;
}

.role-mac-action:disabled {
    color: #bbb;
    cursor: default;
}

.pagination {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-button {
    background: rgba(255, 255, 255, 0.95);
    /* color: #667eea; */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 18px 100px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.start-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.start-button:active:not(:disabled) {
    transform: translateY(0);
}

.start-button:disabled {
    background: rgba(220, 220, 220, 0.85);
    color: #666;
    cursor: not-allowed;
    opacity: 0.75;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(200, 200, 200, 0.6);
}

.microphone-section {
    margin-top: 1.5rem;
}

.speaker-section {
    margin-top: 1.5rem;
}

.microphone-select {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-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='%23666' 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 16px center;
    background-size: 18px;
    padding-right: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.microphone-select:hover {
    border-color: #bbb;
}

.microphone-select:focus {
    outline: none;
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2), 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.microphone-select option {
    background: #fff;
    color: #333;
    padding: 12px;
}

.push-to-talk-section {
    margin-top: 1.5rem;
}

.voice-mode-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.voice-mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f5f5f5;
    border: 2px solid transparent;
}

.voice-mode-option:hover {
    background: #eee;
    border-color: #ddd;
}

.voice-mode-option:has(.voice-mode-radio:checked) {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.voice-mode-radio {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.voice-mode-label {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* Language switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    min-height: 40px;
    line-height: 1;
    white-space: nowrap;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.language-switcher:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2),
                inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.initial-actions {
    margin-top: 24px;
}

.initial-control-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

.initial-control-button:hover {
    background: linear-gradient(135deg, #5a6bd8 0%, #6a4292 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.initial-control-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.2rem;
}

/* Settings button */
.settings-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    min-height: 40px;
    line-height: 1;
    white-space: nowrap;
}

.settings-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.settings-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2),
                inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Settings modal/panel */
.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-panel {
    margin: 0 16px;
    width: 480px;
    max-width: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    padding: 32px;
    backdrop-filter: blur(20px);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.settings-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.settings-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    line-height: 1;
}

.settings-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

.settings-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.input-label {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

@media screen and (max-width: 768px) {
    /* 移动设备上减少视觉效果以提升性能 */
    body::before {
        display: none;
    }

    body {
        height: 100vh;
        height: 100dvh; /* 使用动态视口高度 */
        overflow: hidden;
        position: fixed;
        width: 100%;
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    }

    #app {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    }

    .role-selection-container {
        height: 100vh;
        height: 100dvh;
        padding: 10px 20px;
        justify-content: space-between;
        overflow: hidden;
        background: transparent;
    }

    .role-option {
        width: 200px;
        height: 200px;
        margin: 0 10px;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        border: none;
        clip-path: circle(50%);
        -webkit-clip-path: circle(50%);
    }

    .role-option.center {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .role-option.left,
    .role-option.right {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .role-image {
        border-radius: 50%;
        -webkit-border-radius: 50%;
        display: block;
        border: none;
        outline: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: circle(50%);
        -webkit-clip-path: circle(50%);
    }

    .role-title {
        font-size: 24px;
        margin-top: calc(20px + env(safe-area-inset-top, 0px) + 50px);
        margin-bottom: 20px;
        padding-top: 10px;
    }

    .carousel-container {
        margin: 0 auto 20px;
        flex-shrink: 0;
    }

    .role-name {
        font-size: 22px;
        margin-bottom: 8px;
        height: 32px;
        line-height: 32px;
    }

    .role-description {
        font-size: 14px;
        padding: 0 10px;
        height: auto;
        min-height: 40px;
    }

    .role-mac-row {
        gap: 8px;
    }

    .role-mac-value {
        font-size: 15px;
    }

    .role-mac-edit-btn {
        padding: 5px;
        font-size: 14px;
    }

    .role-mac-action {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .role-mac-input {
        padding: 8px 14px;
        font-size: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .role-mac-error {
        font-size: 11px;
        margin-top: 4px;
        min-height: 20px;
    }

    .details-container {
        margin: 0 auto 10px;
        flex-shrink: 0;
    }

    .role-details {
        height: auto;
        min-height: 80px;
        padding: 0 20px;
    }

    .start-button {
        padding: 14px 60px;
        font-size: 15px;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        flex-shrink: 0;
    }

    .carousel-navigation {
        width: 40px;
        height: 40px;
    }

    .arrow {
        font-size: 18px;
    }

    .pagination {
        margin-bottom: 15px;
        font-size: 15px;
        flex-shrink: 0;
    }

    .action-buttons {
        flex-shrink: 0;
    }

    .settings-panel {
        margin: 0 12px;
        width: calc(100% - 24px);
        padding: 24px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    }

    .settings-button {
        top: 12px;
        right: 12px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .settings-title {
        font-size: 20px;
    }
}

/* Modal de modo convidado (P11.3) — centralizado, fecha com "Entendi" (só nesta sessão) */
.guest-modal {
    position: fixed;
    inset: 0;
    z-index: 1200; /* acima do settings-modal (1100) */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
}

.guest-panel {
    width: 420px;
    max-width: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.guest-text {
    margin: 0 0 24px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.guest-ack {
    background: #667eea;
    color: #fff;
    border: 0;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.guest-ack:hover,
.guest-ack:focus-visible {
    background: #5a6fd8;
}

@media screen and (max-width: 375px) {
    .role-title {
        font-size: 20px;
        margin-top: calc(15px + env(safe-area-inset-top, 0px) + 50px);
        margin-bottom: 15px;
        padding-top: 10px;
    }

    .role-option {
        width: 150px;
        height: 150px;
        margin: 0 8px;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        border: none;
        clip-path: circle(50%);
        -webkit-clip-path: circle(50%);
    }

    .role-image {
        border-radius: 50%;
        -webkit-border-radius: 50%;
        display: block;
        border: none;
        outline: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: circle(50%);
        -webkit-clip-path: circle(50%);
    }

    .role-name {
        font-size: 18px;
        height: 28px;
        line-height: 28px;
        margin-bottom: 6px;
    }

    .role-description {
        font-size: 12px;
        min-height: 36px;
    }

    .role-details {
        min-height: 70px;
        padding: 0 15px;
    }

    .start-button {
        padding: 12px 50px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .carousel-navigation {
        width: 35px;
        height: 35px;
    }

    .arrow {
        font-size: 16px;
    }

    .pagination {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .role-mac-input {
        padding: 8px 12px;
        font-size: 12px;
    }

    .role-mac-error {
        font-size: 10px;
        margin-top: 4px;
        min-height: 18px;
    }

    .role-mac-value {
        font-size: 13px;
    }

    .role-mac-edit-btn {
        padding: 4px;
        font-size: 13px;
    }

    .role-mac-action {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .carousel-container {
        margin-bottom: 15px;
    }

    .details-container {
        margin-bottom: 8px;
    }

    .settings-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .settings-panel {
        padding: 20px;
    }

.language-switcher {
        top: 12px;
        left: 12px;
        padding: 10px 16px;
        font-size: 13px;
    }
}
