/* ============================================================
   FESTIVAL DIGITAL — Visual Material Design 3 (em teste)
   ------------------------------------------------------------
   Carregado depois do style.css SÓ quando App\Config\Visual::md3()
   (chave "visual_md3" do /admin). Tudo aqui fica dentro de html.md3:
   sem a classe, nada muda.

   ETAPA 1 — FUNDAÇÃO (11/11/2026)
   · papéis de cor do M3 (claro e escuro), gerados a partir do roxo da marca
   · os tokens do site (--bg-*, --text-*, --border, --radius-*, --shadow-*)
     passam a apontar para esses papéis, então as telas que já usam os tokens
     mudam sozinhas
   · variáveis do Bootstrap (--bs-*) no mesmo tema
   · forma, profundidade (elevação), movimento e camada de estado
   Componentes (botão, campo, cartão, chip, aba, modal…) são a ETAPA 2.

   Decisões (padrão recomendado, 11/11/2026):
   · fonte continua Inter (o M3 aceita a fonte da marca)
   · roxo de preenchimento continua o da marca (#7C3AED, --purple-fill)
   · gradiente fica só no logo e na capa: --gradient vira cor sólida
   · ESPECIFICIDADE: html.md3 (0,1,1) vence o [data-theme="dark"] (0,1,0)
     do style.css. Por isso TODO token redefinido no bloco claro precisa
     ser redefinido também no bloco escuro, senão o escuro herda o claro.
   ============================================================ */

/* ── Papéis de cor do M3 — CLARO ─────────────────────────── */
html.md3 {
    --md-primary:                 #7C3AED;
    --md-on-primary:              #FFFFFF;
    --md-primary-container:       #EADDFF;
    --md-on-primary-container:    #25005A;
    --md-secondary:               #635B70;
    --md-on-secondary:            #FFFFFF;
    --md-secondary-container:     #E9DEF8;
    --md-on-secondary-container:  #1F182B;
    --md-tertiary:                #8B3A8F;
    --md-on-tertiary:             #FFFFFF;
    --md-tertiary-container:      #FFD6FA;
    --md-on-tertiary-container:   #370039;
    --md-error:                   #BA1A1A;
    --md-on-error:                #FFFFFF;
    --md-error-container:         #FFDAD6;
    --md-on-error-container:      #410002;

    --md-surface:                 #FEF7FF;
    --md-surface-dim:             #DED8E0;
    --md-surface-bright:          #FEF7FF;
    --md-surface-container-lowest:#FFFFFF;
    --md-surface-container-low:   #F8F2FA;
    --md-surface-container:       #F2ECF4;
    --md-surface-container-high:  #ECE6EE;
    --md-surface-container-highest:#E6E0E9;
    --md-on-surface:              #1D1B20;
    --md-on-surface-variant:      #49454F;
    --md-outline:                 #7A757F;
    --md-outline-variant:         #CAC4D0;
    --md-inverse-surface:         #322F35;
    --md-inverse-on-surface:      #F5EFF7;
    --md-inverse-primary:         #D3BBFF;
    --md-scrim:                   #000000;

    /* Status fora do M3 (sucesso/aviso), no mesmo desenho de "container" */
    --md-ok-container:            #C6F1D0;
    --md-ok-fill:                 #146C2E;
    --md-warn-fill:               #8A5100;
    --md-ilha:                    #322F35;
    --md-on-ok-container:         #0A3818;
    --md-warn-container:          #FFDDB3;
    --md-on-warn-container:       #2B1700;
    --md-info-container:          #DCE2FF;
    --md-on-info-container:       #0F1A57;
    --md-inverse-ok:              #7BD99A;   /* ícone sobre --md-inverse-surface (snackbar) */
    --md-inverse-err:             #FFB4AB;
    --md-inverse-warn:            #FFB95C;

    /* Forma (M3 shape scale) */
    --md-shape-xs:   4px;
    --md-shape-sm:   8px;
    --md-shape-md:   12px;
    --md-shape-lg:   16px;
    --md-shape-xl:   28px;
    --md-shape-full: 999px;

    /* Profundidade (M3 elevation 1–3) */
    --md-elev-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
    --md-elev-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
    --md-elev-3: 0 1px 3px rgba(0,0,0,.30), 0 4px 8px 3px rgba(0,0,0,.15);

    /* Movimento (M3 easing + durações) */
    --md-ease:          cubic-bezier(.2, 0, 0, 1);
    --md-ease-enter:    cubic-bezier(.05, .7, .1, 1);
    --md-ease-exit:     cubic-bezier(.3, 0, .8, .15);
    --md-dur-short:     150ms;
    --md-dur-medium:    250ms;
    --md-dur-long:      400ms;

    /* Camada de estado (hover/foco/pressionado) — opacidade da cor do conteúdo */
    --md-state-hover:   .08;
    --md-state-focus:   .10;
    --md-state-press:   .10;

    /* Tipo (M3 type scale, em Inter) — usados pelos componentes da etapa 2 */
    --md-display-small:  2.25rem;
    --md-headline-large: 2rem;
    --md-headline-medium:1.75rem;
    --md-headline-small: 1.5rem;
    --md-title-large:    1.375rem;
    --md-title-medium:   1rem;
    --md-title-small:    .875rem;
    --md-body-large:     1rem;
    --md-body-medium:    .875rem;
    --md-body-small:     .75rem;
    --md-label-large:    .875rem;
    --md-label-medium:   .75rem;

    /* ── Tokens do site apontando para os papéis ──────────── */
    --purple:        var(--md-primary);
    --purple-dark:   #6B30D8;
    --purple-light:  #A78BFA;
    --purple-fill:   #7C3AED;

    /* gradiente só na marca: aqui vira cor sólida */
    --gradient:        linear-gradient(var(--purple-fill), var(--purple-fill));
    --gradient-text:   linear-gradient(var(--md-primary), var(--md-primary));
    --gradient-h:      linear-gradient(var(--md-primary), var(--md-primary));
    --gradient-subtle: linear-gradient(var(--md-surface-container), var(--md-surface-container));
    --gradient-marca:  linear-gradient(135deg, #7C3AED 0%, #D946EF 50%, #2D9CDB 100%);
    --gradient-ok:        linear-gradient(var(--md-ok-fill), var(--md-ok-fill));
    --gradient-blue:      linear-gradient(#2D9CDB, #2D9CDB);
    --gradient-ok-subtle: linear-gradient(var(--md-ok-container), var(--md-ok-container));

    --text-dark:     var(--md-on-surface);
    --text-body:     var(--md-on-surface);
    --text-muted:    var(--md-on-surface-variant);
    --text-light:    #625D69;

    --ok-text:       #146C2E;
    --warn-text:     #8A5100;
    --err-text:      var(--md-error);

    --bg-page:       var(--md-surface-container-low);
    --bg-white:      var(--md-surface-container-lowest);
    --bg-subtle:     var(--md-surface-container);

    --border:        var(--md-surface-container-highest);
    --border-focus:  rgba(124,58,237,.45);

    --shadow-sm:     var(--md-elev-1);
    --shadow-md:     var(--md-elev-2);
    --shadow-lg:     var(--md-elev-3);
    --shadow-purple: var(--md-elev-2);
    --shadow-glow:   0 0 0 3px rgba(124,58,237,.18);

    --radius-xs:     var(--md-shape-xs);
    --radius-sm:     var(--md-shape-sm);
    --radius-md:     var(--md-shape-md);
    --radius-lg:     var(--md-shape-lg);
    --radius-xl:     var(--md-shape-xl);

    --transition:    all var(--md-dur-medium) var(--md-ease);

    --footer-bg:     var(--md-surface-container);
    --link-color:    var(--md-primary);
    --code-bg:       var(--md-surface-container-high);
    --theme-toggle-bg:    var(--md-secondary-container);
    --theme-toggle-color: var(--md-on-secondary-container);

    /* ── Bootstrap no mesmo tema ──────────────────────────── */
    --bs-body-bg:            var(--md-surface-container-low);
    --bs-body-color:         var(--md-on-surface);
    --bs-emphasis-color:     var(--md-on-surface);
    --bs-secondary-color:    var(--md-on-surface-variant);
    --bs-secondary-bg:       var(--md-surface-container);
    --bs-tertiary-bg:        var(--md-surface-container-low);
    --bs-border-color:       var(--md-outline-variant);
    --bs-border-color-translucent: rgba(0,0,0,.12);
    --bs-primary:            #7C3AED;
    --bs-primary-rgb:        124, 58, 237;
    --bs-link-color:         var(--md-primary);
    --bs-link-color-rgb:     124, 58, 237;
    --bs-link-hover-color:   #6B30D8;
    --bs-focus-ring-color:   rgba(124,58,237,.30);
    --bs-border-radius:      var(--md-shape-sm);
    --bs-border-radius-sm:   var(--md-shape-xs);
    --bs-border-radius-lg:   var(--md-shape-md);
    --bs-border-radius-xl:   var(--md-shape-lg);
    --bs-border-radius-xxl:  var(--md-shape-xl);
    --bs-border-radius-pill: var(--md-shape-full);
    --bs-box-shadow-sm:      var(--md-elev-1);
    --bs-box-shadow:         var(--md-elev-2);
    --bs-box-shadow-lg:      var(--md-elev-3);
}

/* ── Papéis de cor do M3 — ESCURO ────────────────────────── */
html.md3[data-theme="dark"] {
    --md-primary:                 #D3BBFF;
    --md-on-primary:              #3F0094;
    --md-primary-container:       #5B21C4;
    --md-on-primary-container:    #EBDDFF;
    --md-secondary:               #CDC2DB;
    --md-on-secondary:            #342D40;
    --md-secondary-container:     #4A4458;
    --md-on-secondary-container:  #E9DEF8;
    --md-tertiary:                #EFB8EE;
    --md-on-tertiary:             #520D57;
    --md-tertiary-container:      #6F2273;
    --md-on-tertiary-container:   #FFD6FA;
    --md-error:                   #FFB4AB;
    --md-on-error:                #690005;
    --md-error-container:         #93000A;
    --md-on-error-container:      #FFDAD6;

    --md-surface:                 #141218;
    --md-surface-dim:             #141218;
    --md-surface-bright:          #3B383E;
    --md-surface-container-lowest:#0F0D13;
    --md-surface-container-low:   #1D1B20;
    --md-surface-container:       #211F26;
    --md-surface-container-high:  #2B2930;
    --md-surface-container-highest:#36343B;
    --md-on-surface:              #E6E0E9;
    --md-on-surface-variant:      #CAC4D0;
    --md-outline:                 #948F99;
    --md-outline-variant:         #49454F;
    --md-inverse-surface:         #E6E0E9;
    --md-inverse-on-surface:      #322F35;
    --md-inverse-primary:         #6B30D8;
    --md-scrim:                   #000000;

    --md-ok-container:            #1E4D2B;
    --md-ok-fill:                 #146C2E;
    --md-warn-fill:               #8A5100;
    --md-ilha:                    #2B2930;
    --md-on-ok-container:         #B8F0C6;
    --md-warn-container:          #5F3F00;
    --md-on-warn-container:       #FFDDB3;
    --md-info-container:          #2A3770;
    --md-on-info-container:       #DCE2FF;
    --md-inverse-ok:              #146C2E;
    --md-inverse-err:             #BA1A1A;
    --md-inverse-warn:            #8A5100;

    /* no escuro a profundidade é mais forte (a sombra quase não aparece) */
    --md-elev-1: 0 1px 2px rgba(0,0,0,.60), 0 1px 3px 1px rgba(0,0,0,.30);
    --md-elev-2: 0 1px 2px rgba(0,0,0,.60), 0 2px 6px 2px rgba(0,0,0,.30);
    --md-elev-3: 0 1px 3px rgba(0,0,0,.60), 0 4px 8px 3px rgba(0,0,0,.30);

    /* Tokens do site — os MESMOS do bloco claro (ver ESPECIFICIDADE no topo) */
    --purple:        var(--md-primary);
    --purple-dark:   #BE9BFF;
    --purple-light:  #E9DDFF;
    --purple-fill:   #7C3AED;            /* branco sobre ele: 5,7:1 nos dois temas */

    --gradient:        linear-gradient(var(--purple-fill), var(--purple-fill));
    --gradient-text:   linear-gradient(var(--md-primary), var(--md-primary));
    --gradient-h:      linear-gradient(var(--md-primary), var(--md-primary));
    --gradient-subtle: linear-gradient(var(--md-surface-container), var(--md-surface-container));
    --gradient-marca:  linear-gradient(135deg, #7C3AED 0%, #D946EF 50%, #2D9CDB 100%);
    --gradient-ok:        linear-gradient(var(--md-ok-fill), var(--md-ok-fill));
    --gradient-blue:      linear-gradient(#2D9CDB, #2D9CDB);
    --gradient-ok-subtle: linear-gradient(var(--md-ok-container), var(--md-ok-container));

    --text-dark:     var(--md-on-surface);
    --text-body:     var(--md-on-surface);
    --text-muted:    var(--md-on-surface-variant);
    --text-light:    #ADA7B3;

    --ok-text:       #7BD99A;
    --warn-text:     #FFB95C;
    --err-text:      var(--md-error);

    --bg-page:       var(--md-surface);
    --bg-white:      var(--md-surface-container-low);
    --bg-subtle:     var(--md-surface-container);

    --border:        var(--md-surface-container-highest);
    --border-focus:  rgba(211,187,255,.55);

    --shadow-sm:     var(--md-elev-1);
    --shadow-md:     var(--md-elev-2);
    --shadow-lg:     var(--md-elev-3);
    --shadow-purple: var(--md-elev-2);
    --shadow-glow:   0 0 0 3px rgba(211,187,255,.25);

    --radius-xs:     var(--md-shape-xs);
    --radius-sm:     var(--md-shape-sm);
    --radius-md:     var(--md-shape-md);
    --radius-lg:     var(--md-shape-lg);
    --radius-xl:     var(--md-shape-xl);

    --transition:    all var(--md-dur-medium) var(--md-ease);

    --footer-bg:     var(--md-surface-container);
    --link-color:    var(--md-primary);
    --code-bg:       var(--md-surface-container-high);
    --theme-toggle-bg:    var(--md-secondary-container);
    --theme-toggle-color: var(--md-on-secondary-container);

    --bs-body-bg:            var(--md-surface);
    --bs-body-color:         var(--md-on-surface);
    --bs-emphasis-color:     var(--md-on-surface);
    --bs-secondary-color:    var(--md-on-surface-variant);
    --bs-secondary-bg:       var(--md-surface-container);
    --bs-tertiary-bg:        var(--md-surface-container-low);
    --bs-border-color:       var(--md-outline-variant);
    --bs-border-color-translucent: rgba(255,255,255,.12);
    --bs-primary:            #7C3AED;
    --bs-primary-rgb:        124, 58, 237;
    --bs-link-color:         var(--md-primary);
    --bs-link-color-rgb:     211, 187, 255;
    --bs-link-hover-color:   #E9DDFF;
    --bs-focus-ring-color:   rgba(211,187,255,.35);
    --bs-border-radius:      var(--md-shape-sm);
    --bs-border-radius-sm:   var(--md-shape-xs);
    --bs-border-radius-lg:   var(--md-shape-md);
    --bs-border-radius-xl:   var(--md-shape-lg);
    --bs-border-radius-xxl:  var(--md-shape-xl);
    --bs-border-radius-pill: var(--md-shape-full);
    --bs-box-shadow-sm:      var(--md-elev-1);
    --bs-box-shadow:         var(--md-elev-2);
    --bs-box-shadow-lg:      var(--md-elev-3);

    color-scheme: dark;
}

/* ── Base global (seguro em toda tela) ───────────────────── */
html.md3 body {
    background-color: var(--bg-page);
    color: var(--text-body);
}
html.md3 ::selection {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
}
/* Indicador de foco do M3: contorno de 3px fora do elemento */
html.md3 :focus-visible {
    outline: 3px solid var(--md-primary);
    outline-offset: 2px;
}
/* Barra de rolagem no tom das superfícies */
html.md3 {
    scrollbar-color: var(--md-outline-variant) transparent;
}

/* ── Utilitários da etapa 2 (camada de estado do M3) ────────
   .md-state: o elemento ganha a camada de hover/foco/pressionado na cor do
   próprio texto (currentColor), como no M3. Os componentes da etapa 2 usam. */
html.md3 .md-state { position: relative; isolation: isolate; }
html.md3 .md-state::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: currentColor; opacity: 0; pointer-events: none; z-index: -1;
    transition: opacity var(--md-dur-short) var(--md-ease);
}
html.md3 .md-state:hover::after         { opacity: var(--md-state-hover); }
html.md3 .md-state:focus-visible::after { opacity: var(--md-state-focus); }
html.md3 .md-state:active::after        { opacity: var(--md-state-press); }

/* ============================================================
   ETAPA 2 — COMPONENTES (11/11/2026)
   Reveste as classes que as telas JÁ usam; nenhuma view muda.
   Seletores html.md3 .x (0,2,1) vencem as regras de style.css (0,1,0 a
   0,2,0), inclusive as [data-theme="dark"] .x — por isso as cores daqui
   vêm SEMPRE de tokens que existem nos dois temas.
   Fica para a etapa 3 (por tela): utilitários de canto fixo (u-r10…),
   estilos dentro das tags e o fw-bold (!important) do Bootstrap.
   ============================================================ */

/* ── Botões (M3 common buttons: cápsula, 40px, label-large) ── */
html.md3 .btn {
    border-radius: var(--md-shape-full);
    font-weight: 500;
    letter-spacing: .00625rem;
    transition: background-color var(--md-dur-short) var(--md-ease),
                box-shadow var(--md-dur-short) var(--md-ease),
                color var(--md-dur-short) var(--md-ease),
                border-color var(--md-dur-short) var(--md-ease);
}
/* Filled — a ação principal */
html.md3 .btn-primary-custom {
    background: var(--purple-fill);
    color: #fff !important;
    min-height: 40px;
    padding: .5rem 1.5rem;
    font-size: var(--md-label-large);
    font-weight: 500;
    border-radius: var(--md-shape-full);
    box-shadow: none;
}
html.md3 .btn-primary-custom::after { display: none; }   /* sem o brilho que desliza */
html.md3 .btn-primary-custom:hover,
html.md3 .btn-primary-custom:focus-visible {
    transform: none;
    background: color-mix(in srgb, #fff 8%, var(--purple-fill));
    box-shadow: var(--md-elev-1);
}
html.md3 .btn-primary-custom.btn-sm,
html.md3 .btn-primary-custom.coreo-acao {
    min-height: 32px;
    padding: .3rem 1rem;
    font-size: .8125rem;
    background: var(--purple-fill);
}
html.md3 .btn-primary-custom.btn-sm:hover,
html.md3 .btn-primary-custom.coreo-acao:hover { filter: none; background: color-mix(in srgb, #fff 8%, var(--purple-fill)); }

/* Outlined */
html.md3 .btn-outline-custom {
    border: 1px solid var(--md-outline);
    color: var(--md-primary) !important;
    min-height: 40px;
    padding: .5rem 1.5rem;
    font-size: var(--md-label-large);
    border-radius: var(--md-shape-full);
}
html.md3 .btn-outline-custom.btn-sm {
    min-height: 32px;
    padding: .3rem 1rem;
    font-size: .8125rem;
}
/* Conteúdo sempre no MEIO do botão. Com altura mínima (e esticado ao lado de
   outro botão numa linha flex) o texto ficava preso no topo: "Abrir painel"
   de 32px ao lado do "Financeiro" de 40px, nos cartões de Meus Festivais. */
html.md3 .btn-primary-custom,
html.md3 .btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
html.md3 .btn-outline-custom:hover {
    background: color-mix(in srgb, var(--md-primary) 8%, transparent);
    color: var(--md-primary) !important;
    transform: none;
    box-shadow: none;
}

/* Text — o btn-ghost do site (Cancelar, Voltar, ações de linha) */
html.md3 .btn-ghost {
    color: var(--md-primary);
    font-weight: 500;
    border-radius: var(--md-shape-full);
}
html.md3 .btn-ghost:hover {
    background: color-mix(in srgb, var(--md-primary) 8%, transparent);
    color: var(--md-primary);
}

/* Tonal de erro */
html.md3 .btn-danger-soft {
    background: var(--md-error-container);
    color: var(--md-on-error-container);
    border: 0;
    border-radius: var(--md-shape-full);
    font-weight: 500;
}
html.md3 .btn-danger-soft:hover { background: color-mix(in srgb, var(--md-on-error-container) 8%, var(--md-error-container)); color: var(--md-on-error-container); }

/* Botão de tema e sair do topo: icon buttons redondos */
html.md3 .theme-toggle,
html.md3 .fd-topbar .btn-nav-logout,
html.md3 .navbar-custom .btn-nav-logout,
html.md3 .fd-sb-burger,
html.md3 .fd-sb-collapse,
html.md3 .fd-sb-close {
    border-radius: 50%;
    border-color: transparent;
}
html.md3 .theme-toggle:hover { transform: none; box-shadow: none; }

/* ── Campos (M3 outlined text field) ──────────────────────── */
html.md3 .form-control,
html.md3 .form-select {
    border: 1px solid var(--md-outline);
    border-radius: var(--md-shape-xs);
    background-color: var(--bg-white);
    color: var(--md-on-surface);
    /* só o vertical: o horizontal é do style.css (.input-group-icon põe o
       recuo do ícone; mexer aqui jogava o ícone por cima do texto) */
    padding-top: .65rem;
    padding-bottom: .65rem;
}
html.md3 .form-control:hover:not(:focus):not(:disabled),
html.md3 .form-select:hover:not(:focus):not(:disabled) { border-color: var(--md-on-surface); }
html.md3 .form-control:focus,
html.md3 .form-select:focus {
    border-color: var(--md-primary);
    box-shadow: inset 0 0 0 1px var(--md-primary);   /* borda de 2px sem mexer no tamanho */
}
html.md3 .form-control::placeholder { color: var(--md-on-surface-variant); opacity: .8; }
html.md3 .form-control:disabled,
html.md3 .form-select:disabled,
html.md3 .form-control[readonly] {
    background-color: color-mix(in srgb, var(--md-on-surface) 4%, transparent);
    border-color: color-mix(in srgb, var(--md-on-surface) 12%, transparent);
    color: color-mix(in srgb, var(--md-on-surface) 60%, transparent);
}
html.md3 .form-control.is-invalid,
html.md3 .was-validated .form-control:invalid { border-color: var(--md-error); }
html.md3 .form-label {
    text-transform: none;
    letter-spacing: .00625rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--md-on-surface-variant);
}
html.md3 .form-section-title {
    text-transform: none;
    letter-spacing: .00625rem;
    font-size: var(--md-title-small);
    font-weight: 600;
    color: var(--md-primary);
    border-bottom-color: var(--md-outline-variant);
}
html.md3 .input-group-icon .input-icon,
html.md3 .input-group-icon .input-icon-right { color: var(--md-on-surface-variant); }

/* Checkbox, rádio e interruptor */
html.md3 .form-check-input {
    border: 2px solid var(--md-on-surface-variant);
    background-color: transparent;
}
html.md3 .form-check-input[type="checkbox"] { border-radius: 2px; }
html.md3 .form-check-input:checked {
    background-color: var(--purple-fill);
    border-color: var(--purple-fill);
}
html.md3 .form-check-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-primary) 16%, transparent); border-color: var(--md-primary); }
html.md3 .form-switch .form-check-input {
    border-radius: var(--md-shape-full);
    border-color: var(--md-outline);
    background-color: var(--md-surface-container-highest);
}
html.md3 .form-switch .form-check-input:checked {
    background-color: var(--purple-fill);
    border-color: var(--purple-fill);
}

/* ── Cartões (M3 outlined card: borda fina, sem sombra) ─────── */
html.md3 .card-custom,
html.md3 .card-stat,
html.md3 .card-festival,
html.md3 .card-feature {
    border: 1px solid var(--border);
    border-radius: var(--md-shape-md);
    background-color: var(--bg-white);
    box-shadow: none;
}
html.md3 .card-custom:hover,
html.md3 .card-stat:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--border);
}
/* cartão clicável: elevação 1 no hover, sem pular */
html.md3 .card-festival:hover,
html.md3 .card-feature:hover {
    transform: none;
    box-shadow: var(--md-elev-1);
    border-color: var(--border);
}
html.md3 .card-feature::before { display: none; }
html.md3 .feature-icon {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    box-shadow: none;
    border-radius: var(--md-shape-lg);
}
html.md3 .card-stat-icon { border-radius: var(--md-shape-lg); }
html.md3 .stat-purple { background: var(--md-primary-container);   color: var(--md-on-primary-container); }
html.md3 .stat-green  { background: var(--md-ok-container);        color: var(--md-on-ok-container); }
html.md3 .stat-yellow { background: var(--md-warn-container);      color: var(--md-on-warn-container); }
html.md3 .stat-blue   { background: var(--md-info-container);      color: var(--md-on-info-container); }
html.md3 .stat-pink   { background: var(--md-tertiary-container);  color: var(--md-on-tertiary-container); }
html.md3 .card-stat-info .stat-value { font-weight: 500; color: var(--md-on-surface); }
html.md3 .card-stat-info .stat-label {
    text-transform: none;
    letter-spacing: .03rem;
    font-size: .8125rem;
    color: var(--md-on-surface-variant);
}
html.md3 .empty-state-icon {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* ── Chips e etiquetas (M3: canto de 8px, peso 500) ────────── */
html.md3 .badge,
html.md3 .badge-custom {
    border-radius: var(--md-shape-sm);
    font-weight: 500;
    letter-spacing: .03rem;
}
html.md3 .badge-aberto,
html.md3 .badge-pago      { background: var(--md-ok-container);    color: var(--md-on-ok-container); }
html.md3 .badge-encerrado { background: var(--md-error-container); color: var(--md-on-error-container); }
html.md3 .badge-pendente  { background: var(--md-warn-container);  color: var(--md-on-warn-container); }
html.md3 .badge-role      { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }

/* ── Avisos dentro da página ───────────────────────────────── */
html.md3 .alert-custom { border-radius: var(--md-shape-md); }
html.md3 .alert-success-custom { background: var(--md-ok-container);    color: var(--md-on-ok-container); }
html.md3 .alert-danger-custom  { background: var(--md-error-container); color: var(--md-on-error-container); }
html.md3 .alert-warn-custom    { background: var(--md-warn-container);  color: var(--md-on-warn-container); }
html.md3 .alert-info-custom    { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }

/* ── Tabelas (M3 data table) ──────────────────────────────── */
html.md3 .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--md-on-surface);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: color-mix(in srgb, var(--md-on-surface) 3%, transparent);
    --bs-table-hover-bg: color-mix(in srgb, var(--md-primary) 5%, transparent);
    --bs-table-hover-color: var(--md-on-surface);
}
html.md3 .table-custom thead th,
html.md3 .table thead th {
    background: var(--md-surface-container);
    text-transform: none;
    letter-spacing: .00625rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--md-on-surface-variant);
}
html.md3 .table-custom tbody tr:hover { background: color-mix(in srgb, var(--md-primary) 5%, transparent); }

/* ── Abas ─────────────────────────────────────────────────────
   Pílulas do site → filter chips do M3 (selecionado em secondary-container).
   As abas de verdade (.nav-tabs) → primary tabs com sublinhado. */
html.md3 .nav-pills-custom .nav-link,
html.md3 .cfg-aba,
html.md3 .org-nav-item {
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--md-shape-sm);
    color: var(--md-on-surface-variant);
    font-weight: 500;
}
html.md3 .nav-pills-custom .nav-link:hover,
html.md3 .cfg-aba:hover,
html.md3 .org-nav-item:hover {
    background: color-mix(in srgb, var(--md-on-surface-variant) 8%, transparent);
    color: var(--md-on-surface);
    border-color: var(--md-outline-variant);
}
html.md3 .nav-pills-custom .nav-link.active,
html.md3 .cfg-aba.on,
html.md3 .org-nav-item.ativo {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    border-color: transparent;
    box-shadow: none;
    font-weight: 600;
}
html.md3 .nav-tabs { border-bottom: 1px solid var(--md-surface-container-highest); }
html.md3 .nav-tabs .nav-link {
    border: 0;
    border-radius: 0;
    color: var(--md-on-surface-variant);
    font-weight: 500;
    padding: .75rem 1rem;
}
html.md3 .nav-tabs .nav-link:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); color: var(--md-on-surface); }
html.md3 .nav-tabs .nav-link.active {
    background: transparent;
    color: var(--md-primary);
    box-shadow: inset 0 -3px 0 var(--md-primary);
}

/* ── Janelas (M3 dialog) e menus ──────────────────────────── */
html.md3 .modal-content {
    border: 0;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container-high);
    color: var(--md-on-surface);
    box-shadow: var(--md-elev-3);
}
html.md3 .modal-header {
    border-bottom: 0;
    padding: 1.5rem 1.5rem .75rem;
}
html.md3 .modal-title { font-size: var(--md-headline-small); font-weight: 400; color: var(--md-on-surface); }
html.md3 .modal-body { padding-left: 1.5rem; padding-right: 1.5rem; }
html.md3 .modal-footer {
    border-top: 0;
    padding: .75rem 1.5rem 1.25rem;
    gap: .5rem;
}
html.md3 .modal-backdrop { --bs-backdrop-bg: var(--md-scrim); --bs-backdrop-opacity: .32; }
/* confirmarAcao(): o botão recebe a cor por style="" (vermelho/verde/âmbar);
   aqui só a forma do M3 */
html.md3 #modalConfirm .modal-content { border-radius: var(--md-shape-xl); }
html.md3 #modalConfirmBtn { border-radius: var(--md-shape-full); }
html.md3 #modalConfirmIcon { border-radius: 50% !important; }

html.md3 .dropdown-menu {
    border: 0;
    border-radius: var(--md-shape-xs);
    background: var(--md-surface-container);
    box-shadow: var(--md-elev-2);
    padding: .5rem 0;
}
html.md3 .dropdown-item { padding: .6rem 1rem; color: var(--md-on-surface); }
html.md3 .dropdown-item:hover,
html.md3 .dropdown-item:focus { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); color: var(--md-on-surface); }

html.md3 .offcanvas {
    background: var(--md-surface-container-low);
    color: var(--md-on-surface);
    border: 0;
}
html.md3 .offcanvas-end { border-radius: var(--md-shape-lg) 0 0 var(--md-shape-lg); }
html.md3 .offcanvas-start { border-radius: 0 var(--md-shape-lg) var(--md-shape-lg) 0; }

html.md3 .tooltip { --bs-tooltip-bg: var(--md-inverse-surface); --bs-tooltip-color: var(--md-inverse-on-surface); --bs-tooltip-border-radius: var(--md-shape-xs); }
html.md3 .progress { border-radius: var(--md-shape-full); background-color: var(--md-surface-container-highest); }
html.md3 .progress-bar { background-color: var(--purple-fill); }

/* ── Toast → snackbar do M3 (fica no mesmo lugar) ─────────── */
html.md3 .fd-toast {
    background: var(--md-inverse-surface);
    color: var(--md-inverse-on-surface);
    border: 0;
    border-radius: var(--md-shape-xs);
    box-shadow: var(--md-elev-3);
}
html.md3 .fd-toast .tc-ico { background: transparent; }
html.md3 .fd-toast.ok   .tc-ico { color: var(--md-inverse-ok); }
html.md3 .fd-toast.err  .tc-ico { color: var(--md-inverse-err); }
html.md3 .fd-toast.warn .tc-ico { color: var(--md-inverse-warn); }
html.md3 .fd-toast .tc-tit,
html.md3 .fd-toast .tc-sub { color: inherit; }
html.md3 .fd-toast .tc-sub { opacity: .8; }
html.md3 .fd-toast .tc-x { color: var(--md-inverse-on-surface); }
html.md3 .fd-toast .tc-x:hover { background: color-mix(in srgb, var(--md-inverse-on-surface) 12%, transparent); color: var(--md-inverse-on-surface); }
html.md3 .fd-toast .tc-acao {
    border: 0;
    color: var(--md-inverse-primary);
    border-radius: var(--md-shape-full);
    font-weight: 500;
}
html.md3 .fd-toast .tc-acao:hover { background: color-mix(in srgb, var(--md-inverse-primary) 12%, transparent); color: var(--md-inverse-primary); }
html.md3 .fd-toast.ok .tc-barra { background: var(--md-inverse-primary); }
html.md3 .fd-toast.err .tc-barra { background: var(--md-inverse-err); }
html.md3 .fd-toast.warn .tc-barra { background: var(--md-inverse-warn); }

/* ── Barra lateral → navigation drawer do M3 ──────────────── */
html.md3 .fd-sidebar {
    background: var(--md-surface-container-low);
    border-right: 0;
}
html.md3 .fd-sb-foot { border-top-color: var(--md-outline-variant); }
html.md3 .fd-sb-sep { background: var(--md-outline-variant); }
html.md3 .fd-sb-link {
    border-radius: var(--md-shape-full);
    padding: .65rem 1rem;
    color: var(--md-on-surface-variant);
    font-size: var(--md-label-large);
    font-weight: 500;
}
html.md3 .fd-sb-link:hover {
    background: color-mix(in srgb, var(--md-on-surface) 8%, transparent);
    color: var(--md-on-surface);
}
html.md3 .fd-sb-link.ativo {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    font-weight: 600;
}
html.md3 .fd-sb-link.ativo::before { display: none; }   /* sem o filete: a pílula já marca */
html.md3 .fd-sb-link.travado:hover { background: transparent; color: var(--md-on-surface-variant); }
html.md3 .fd-sb-badge { background: var(--md-error); color: var(--md-on-error); font-weight: 600; }
html.md3 .fd-sb-badge.neutro { background: transparent; color: var(--md-on-surface-variant); }
html.md3 .fd-sb-sair { color: var(--md-error); }
html.md3 .fd-sb-sair:hover { background: color-mix(in srgb, var(--md-error) 10%, transparent); color: var(--md-error); }
html.md3 .fd-sb-group-nome { font-weight: 600; color: var(--md-on-surface); }
html.md3 .fd-sb-group-sub,
html.md3 .fd-sb-top-label { letter-spacing: .03rem; text-transform: none; font-weight: 500; color: var(--md-on-surface-variant); }

/* ── Topo → top app bar do M3 (mesma superfície da gaveta) ─── */
html.md3 .navbar-custom {
    background-color: var(--md-surface-container-low);
    box-shadow: none;
}
html.md3 .navbar-custom .nav-link {
    border-radius: var(--md-shape-full);
    color: var(--md-on-surface-variant) !important;
}
html.md3 .navbar-custom .nav-link:hover {
    background: color-mix(in srgb, var(--md-on-surface) 8%, transparent);
    color: var(--md-on-surface) !important;
}
html.md3 .navbar-custom .nav-link.active {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container) !important;
}
html.md3 .navbar-custom .nav-link.active::after { display: none; }
html.md3 .fd-topbar .user-greeting,
html.md3 .navbar-custom .user-greeting {
    background: var(--md-surface-container-high);
    border-color: transparent;
    color: var(--md-on-surface);
}

/* Trilha "Festivais › … › tela" */
html.md3 .fd-trilha a:hover { color: var(--md-primary); }
html.md3 .fd-trilha [aria-current] { color: var(--md-on-surface); }

/* Título da tela: headline do M3 (peso normal) */
html.md3 .page-header h1,
html.md3 .page-header h2 { font-weight: 500; letter-spacing: 0; }

/* ============================================================
   ETAPA 3 — TELAS (11/11/2026)
   Ajustes por tela, ainda só aqui (as views não mudam: o site sem a chave
   continua igual). A ARTE fica como está — cartões da vitrine, capas dos
   festivais (.fd-banner), topo da página do evento: é a marca e a arte do
   organizador, não componente de interface.
   ============================================================ */

/* ── 3.1 Públicas: comuns ──────────────────────────────────── */
/* Rótulo de seção ("Em breve", "Recursos") → etiqueta tonal, sem caixa alta */
html.md3 .section-label {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    border: 0;
    border-radius: var(--md-shape-sm);
    text-transform: none;
    letter-spacing: .03rem;
    font-weight: 500;
    font-size: var(--md-label-large);
}
/* Títulos: headline do M3 (peso médio, sem gradiente) */
html.md3 .section-title { font-weight: 500; letter-spacing: 0; color: var(--md-on-surface); }
html.md3 .text-gradient {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--md-primary);
    font-weight: inherit;
}
html.md3 .divider-gradient { background: var(--md-outline-variant); opacity: 1; height: 1px; }
html.md3 .border-gradient { border: 1px solid var(--md-outline-variant); background: var(--bg-white); }
html.md3 .shadow-purple { box-shadow: var(--md-elev-1) !important; }

/* Rodapé do visitante: superfície tonal, sem a linha de gradiente */
html.md3 .footer-custom {
    background: var(--md-surface-container);
    border-top: 0;
}
html.md3 .footer-custom::before { display: none; }
html.md3 .footer-title { text-transform: none; letter-spacing: .03rem; font-weight: 600; color: var(--md-on-surface-variant); }
html.md3 .footer-links a:hover { color: var(--md-primary); }
html.md3 .footer-social a { border-radius: 50%; }
html.md3 .footer-social a:hover { transform: none; }

/* ── 3.2 Página inicial ────────────────────────────────────── */
/* Números da plataforma: cor sólida, peso de headline */
html.md3 .hero-vitrine .hero-stat .hs-num {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--md-primary);
    font-weight: 500;
}
html.md3 .hero-vitrine .hero-stat .hs-label { text-transform: none; letter-spacing: .03rem; font-weight: 500; font-size: .8125rem; }
/* Os 4 recursos: outlined card com ícone em container tonal */
html.md3 .hero-vitrine .hero-banner-features .hero-feature {
    border: 1px solid var(--border);
    border-radius: var(--md-shape-md);
    background: var(--bg-white);
    box-shadow: none;
}
html.md3 .hero-vitrine .hero-banner-features .hero-feature:hover {
    border-color: var(--border);
    box-shadow: var(--md-elev-1);
}
html.md3 .hero-banner-features .hero-feature .hf-ico {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border: 0;
    border-radius: var(--md-shape-md);
    box-shadow: none;
}
html.md3 .hero-banner-features .hero-feature.hf-blue .hf-ico {
    background: var(--md-info-container);
    color: var(--md-on-info-container);
    box-shadow: none;
}
html.md3 .hero-vitrine .hero-feature .hf-title { font-weight: 600; }
/* Setas e bolinhas do carrossel */
html.md3 .vt-seta {
    background: var(--md-surface-container-lowest);
    color: var(--md-on-surface);
    box-shadow: var(--md-elev-2);
}
html.md3 .vt-seta:hover, html.md3 .vt-seta:focus-visible { transform: none; }
html.md3 .vt-ponto span { background: var(--md-outline-variant); }
html.md3 .vt-ponto:hover span { background: var(--md-outline); }
html.md3 .vt-ponto.ativo span { background: var(--md-secondary-container); }
html.md3 .vt-ponto.ativo span::after { background: var(--purple-fill); }
/* "Uma plataforma, tudo resolvido": outlined card, sem a faixa e o brilho em
   gradiente; o ícone vai para um container tonal na cor de cada perfil */
html.md3 .hf-card {
    border-radius: var(--md-shape-md);
    box-shadow: none;
}
html.md3 .hf-card::before,
html.md3 .hf-card::after { display: none; }
html.md3 .hf-card:hover {
    transform: none;
    box-shadow: var(--md-elev-1);
    border-color: var(--border);
}
html.md3 .hf-ic {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    box-shadow: none;
    border-radius: var(--md-shape-md);
}
html.md3 .hf-grp .hf-ic { background: var(--md-info-container); color: var(--md-on-info-container); }
html.md3 .hf-ges .hf-ic { background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); }
html.md3 .hf-eyebrow { text-transform: none; letter-spacing: .03rem; font-weight: 500; font-size: .8125rem; }
html.md3 .hf-tit { font-weight: 500; }
html.md3 .hf-lista i { color: var(--md-on-primary-container); background: var(--md-primary-container); }
html.md3 .hf-grp .hf-lista i { color: var(--md-on-info-container); background: var(--md-info-container); }
html.md3 .hf-ges .hf-lista i { color: var(--md-on-tertiary-container); background: var(--md-tertiary-container); }
html.md3 .hf-mais { color: var(--md-primary); font-weight: 500; }
html.md3 .hf-card:hover .hf-mais i { transform: none; }

/* ── 3.3 Página do festival (evento_detalhe.php) ───────────── */
html.md3 .evento-hero { border-radius: var(--md-shape-xl); }
html.md3 .evento-hero h1 { font-weight: 500; }
html.md3 .evento-side {
    border-radius: var(--md-shape-lg);
    box-shadow: none;
    background: var(--md-surface-container-low);
    border-color: var(--border);
}
html.md3 .side-info .val { font-weight: 600; }
html.md3 .ev-contagem {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    border: 0;
    border-radius: var(--md-shape-md);
}
html.md3 .ev-contagem .rot,
html.md3 .ev-contagem .u { text-transform: none; letter-spacing: .03rem; color: var(--md-on-secondary-container); opacity: .85; }
html.md3 .ev-contagem .n,
html.md3 .ev-contagem .fim { color: var(--md-on-secondary-container); font-weight: 500; }
html.md3 .ev-contagem.urgente { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .ev-contagem.urgente .rot,
html.md3 .ev-contagem.urgente .u,
html.md3 .ev-contagem.urgente .n,
html.md3 .ev-contagem.urgente .fim { color: var(--md-on-warn-container); }
/* Compartilhar / Como chegar: botões contornados do M3 */
html.md3 .ev-share .btn,
html.md3 .ev-rotas .btn {
    border: 1px solid var(--md-outline);
    border-radius: var(--md-shape-full);
    color: var(--md-primary);
    background: transparent;
    font-weight: 500;
}
html.md3 .ev-share .btn:hover,
html.md3 .ev-rotas .btn:hover {
    border-color: var(--md-outline);
    background: color-mix(in srgb, var(--md-primary) 8%, transparent);
    color: var(--md-primary);
}
html.md3 .ev-mapa-caixa { border-radius: var(--md-shape-md); background: var(--md-surface-container); }

/* ── 3.4 Entrar, cadastro e senha ──────────────────────────── */
html.md3 .auth-card {
    border: 0;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container-low);
    box-shadow: none;
}
html.md3 .auth-header img { filter: none; }
html.md3 .auth-header h1,
html.md3 .auth-header h2 { font-weight: 400; font-size: var(--md-headline-small); }
/* cadastro: escolha do tipo de conta = cartões selecionáveis do M3 */
html.md3 .tipo-card {
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--md-shape-md);
    background: var(--bg-white);
}
html.md3 .tipo-card:hover { border-color: var(--md-outline); background: color-mix(in srgb, var(--md-on-surface) 4%, var(--bg-white)); }
html.md3 .tipo-card.active {
    border-color: transparent;
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    box-shadow: none;
}
html.md3 .tipo-card .tipo-icon { background: var(--md-surface-container-high); }
html.md3 .tipo-card.active .tipo-icon { background: var(--purple-fill); color: #fff; }
html.md3 .tipo-card.active .tipo-sub { color: var(--md-on-secondary-container); opacity: .8; }
html.md3 .sec-num { background: var(--purple-fill); }

/* ── 3.5 Telas do grupo ────────────────────────────────────── */
/* Título da tela: cor sólida de texto (regra do site), não a primária */
html.md3 .page-header .text-gradient { color: var(--md-on-surface); }

/* Lista de festivais (grupo_index): filtros = filter chips do M3 */
html.md3 .gi-filtros .btn {
    border-radius: var(--md-shape-sm);
    min-height: 32px;
}
html.md3 .gi-filtros .btn-primary-custom {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container) !important;
    padding: .3rem .9rem;
}
html.md3 .gi-filtros .btn-primary-custom:hover { background: color-mix(in srgb, var(--md-on-secondary-container) 8%, var(--md-secondary-container)); box-shadow: none; }
html.md3 .gi-filtros .btn-ghost { color: var(--md-on-surface-variant); border-color: var(--md-outline-variant) !important; }
/* Ações do festival inscrito ("Minha inscrição", "Meu festival"…) */
html.md3 .gi-acao {
    border-radius: var(--md-shape-md);
    border-color: var(--md-outline-variant);
    background: var(--bg-white);
}
html.md3 .gi-acao:hover {
    transform: none;
    border-color: var(--md-outline-variant);
    box-shadow: var(--md-elev-1);
}
html.md3 .gi-acao:hover .gi-acao-seta { transform: none; }
html.md3 .gi-acao-ic { background: var(--md-primary-container); color: var(--md-on-primary-container); border-radius: var(--md-shape-md); }
html.md3 .gi-acao-principal { background: var(--purple-fill); border-color: transparent; color: #fff; }
html.md3 .gi-acao-principal:hover { box-shadow: var(--md-elev-1); }
html.md3 .gi-acao-principal .gi-acao-ic { background: rgba(255,255,255,.18); color: #fff; }
html.md3 .gi-ins { border-color: var(--md-outline-variant); background: var(--md-surface-container-low); }
html.md3 .gi-ins-tit { text-transform: none; letter-spacing: .03rem; font-weight: 600; }
html.md3 .gi-ins-tit i { color: var(--md-primary); }

/* Primeiro acesso ("Como funciona a inscrição") */
html.md3 .onb-passo.atual { border-color: transparent; background: var(--md-secondary-container); }
html.md3 .onb-passo.atual .onb-num { background: var(--purple-fill); border-color: var(--purple-fill); }

/* Inscrição: faixa de etapas e cartões das coreografias */
html.md3 .ins-etapa.andamento .ins-etapa-marca {
    border-color: var(--md-primary);
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
}
html.md3 .coreo-grid-card {
    border-radius: var(--md-shape-md);
    border-top-color: var(--border);
    border-right-color: var(--border);
    border-bottom-color: var(--border);
    box-shadow: none;
}
html.md3 .coreo-grid-card:hover { box-shadow: var(--md-elev-1); }
html.md3 .coreo-acao-video {
    border: 0;
    border-radius: var(--md-shape-full);
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}
html.md3 .coreo-acao-video:hover { background: color-mix(in srgb, var(--md-on-secondary-container) 8%, var(--md-secondary-container)); color: var(--md-on-secondary-container); }
html.md3 .item-participante:hover { transform: none !important; background: color-mix(in srgb, var(--md-on-surface) 6%, transparent) !important; }

/* Feedback dos jurados */
html.md3 .fb-media-pill {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    box-shadow: none;
    font-weight: 600;
}
html.md3 .fb-av-avatar { background: var(--md-primary-container); color: var(--md-on-primary-container); }
html.md3 .fb-av-foto { border-color: var(--md-outline-variant); }
html.md3 .fb-quote { border-left-color: var(--md-primary); border-radius: 0 var(--md-shape-md) var(--md-shape-md) 0; background: var(--md-surface-container); }
html.md3 .fb-audio { background: var(--md-surface-container); border-color: var(--md-outline-variant); border-radius: var(--md-shape-md); }
html.md3 .fb-dia-head::after { background: var(--md-outline-variant); height: 1px; }

/* Meu festival */
html.md3 .mf-hero { background: var(--md-surface-container); border: 0; border-radius: var(--md-shape-lg); }
html.md3 .mf-et.pend .mf-bola { background: var(--md-primary-container); border-color: var(--md-primary); color: var(--md-on-primary-container); }
html.md3 .mf-pos { background: var(--md-primary-container); color: var(--md-on-primary-container); font-weight: 600; }

/* Meu Grupo: filtros de participantes, escolha da função, cartões */
html.md3 .pf { border-radius: var(--md-shape-sm); }
html.md3 .pf:hover { border-color: var(--md-outline); color: var(--md-on-surface); }
html.md3 .pf.active { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; }
html.md3 .tipo-chip { border-radius: var(--md-shape-sm); }
html.md3 .tipo-chip:hover { border-color: var(--md-outline); }
html.md3 .tipo-chip:has(input:checked) { border-color: transparent; background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
html.md3 #card-form-part.editando { box-shadow: 0 0 0 2px var(--md-primary); }
html.md3 .grupo-tile,
html.md3 .part-card,
html.md3 .insc-card { border-radius: var(--md-shape-md); }
html.md3 .grupo-tile:hover,
html.md3 .part-card:hover { border-color: var(--md-outline-variant); box-shadow: var(--md-elev-1); }
html.md3 .insc-card:hover { box-shadow: var(--md-elev-1); }
html.md3 .mg-atalhos a,
html.md3 .mg-atalhos button { border-radius: var(--md-shape-full); }

/* ── 3.6 Telas do jurado ───────────────────────────────────────
   A tela de nota (avaliar_foco.php) era um "terminal de mesário": papel
   branco fixo + miolo com foto do palco e teclado de vidro. No M3 vira um
   painel tonal que acompanha o tema (no escuro deixa de ser um cartão branco
   aceso no ginásio), com teclado tonal e o OK como botão cheio. O <style> da
   view usa !important no campo de comentário — aqui também, só nesse campo. */
html.md3 .foco-pos {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    border-radius: var(--md-shape-sm);
    font-weight: 600;
}
html.md3 .jr-chip { background: var(--md-secondary-container); }
html.md3 .jr-chip .nm { color: var(--md-on-secondary-container); font-weight: 600; }
html.md3 .jr-chip .av.ini { background: var(--md-primary-container); color: var(--md-on-primary-container); }
html.md3 .foco-sair { border-color: var(--md-outline) !important; }

html.md3 .painel-nota {
    border: 0;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container-low);
    box-shadow: none;
}
html.md3 .pn-header { background: transparent; color: var(--md-on-surface); }
html.md3 .pn-fest,
html.md3 .pn-sub { font-family: inherit; letter-spacing: .08em; }
html.md3 .pn-fest { font-weight: 600; }
html.md3 .pn-sub { color: var(--md-on-surface-variant); font-weight: 500; }
html.md3 .pn-coreo { border-top: 1px solid var(--md-outline-variant); color: var(--md-on-surface); }
html.md3 .pn-classif { color: var(--md-on-surface-variant); }
html.md3 .pn-classif.vazia { color: var(--md-outline); }
html.md3 .pn-release {
    background: var(--md-surface-container-high);
    border: 0;
    border-radius: var(--md-shape-md);
    color: var(--md-on-surface-variant);
}
html.md3 .pn-release .rl-tag { color: var(--md-primary); text-transform: none; letter-spacing: .03rem; font-weight: 600; }
/* Faixa "PRONTO PARA AVALIAR", miolo e teclado: o desenho do avaliar_foco.php vale
   nos dois visuais (cena escura com os bailarinos, 18/11/2026) — nada aqui. */
html.md3 .pn-feedback {
    background: transparent;
    border-top: 0;
}
html.md3 .pn-feedback textarea,
html.md3 .pn-feedback textarea:focus {
    background: var(--md-surface-container-lowest) !important;
    color: var(--md-on-surface) !important;
    -webkit-text-fill-color: var(--md-on-surface);
    border: 1px solid var(--md-outline) !important;
    border-radius: var(--md-shape-xs);
}
html.md3 .pn-feedback textarea:focus { border-color: var(--md-primary) !important; box-shadow: inset 0 0 0 1px var(--md-primary) !important; }
html.md3 .pn-feedback textarea::placeholder { color: var(--md-on-surface-variant) !important; }
html.md3 .pn-feedback.falta { background: var(--md-error-container); box-shadow: inset 0 0 0 2px var(--md-error); }
html.md3 .pn-feedback.falta textarea { border-color: var(--md-error) !important; }
html.md3 .pn-falta { background: var(--md-error-container); color: var(--md-on-error-container); border-radius: var(--md-shape-sm); }
html.md3 .pn-premios { background: transparent; border-top: 1px solid var(--md-outline-variant); }
html.md3 .pr-nome { color: var(--md-on-surface); }
html.md3 .pr-chip {
    border: 1px solid var(--md-outline);
    background: transparent;
    color: var(--md-on-surface-variant);
    border-radius: var(--md-shape-sm);
    font-weight: 500;
}
html.md3 .pr-chip.on { border-color: transparent; background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
html.md3 .pn-premios .pr-sel { background-color: var(--md-surface-container-lowest); color: var(--md-on-surface); border-color: var(--md-outline); }
/* Gravar: o vermelho fica (é o "REC"), sem o brilho */
html.md3 .rec-btn { box-shadow: var(--md-elev-1); }
html.md3 .foco-footer {
    background: var(--md-surface-container-low);
    border: 0;
    border-radius: var(--md-shape-lg);
}
/* Recepção do jurado: cartões de sessão selecionáveis */
html.md3 .dia-card {
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--md-shape-md);
}
html.md3 .dia-card:hover { transform: none; border-color: var(--md-outline); }
html.md3 .dia-card.sel {
    border-color: transparent;
    background: var(--md-secondary-container);
    box-shadow: none;
}
html.md3 .dia-card.completo { border-color: transparent; background: var(--md-ok-container); }
html.md3 .dia-card.completo.sel { box-shadow: 0 0 0 2px var(--ok-text); }
html.md3 .dia-card.sel .dia-num,
html.md3 .dia-card.sel .dia-data { color: var(--md-on-secondary-container); }
html.md3 .dia-card.completo .dia-num,
html.md3 .dia-card.completo .dia-data { color: var(--md-on-ok-container); }
html.md3 .dia-prog { background: var(--md-surface-container-highest); border-radius: var(--md-shape-full); }
html.md3 .dia-prog > span { background: var(--purple-fill); }
html.md3 .cat-chip { background: transparent; border: 1px solid var(--md-outline-variant); color: var(--md-on-surface-variant); border-radius: var(--md-shape-sm); }
html.md3 .jr-foto { border: 0; background: var(--md-primary-container); box-shadow: none; }
html.md3 .jr-foto-vazia { background: var(--md-primary-container); color: var(--md-on-primary-container); }

/* Avaliação detalhada (avaliar.php) */
html.md3 .recorder-wrap { background: var(--md-surface-container); border: 0; border-radius: var(--md-shape-md); }
html.md3 .btn-record-custom { background: var(--purple-fill); border-radius: var(--md-shape-full); font-weight: 500; }
html.md3 .btn-stop-custom,
html.md3 .recording-pill { background: var(--md-error-container); color: var(--md-on-error-container); border-color: transparent; border-radius: var(--md-shape-full); }
html.md3 .recording-pill.alerta { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .audio-saved-box { background: var(--md-ok-container); color: var(--md-on-ok-container); border: 0; border-radius: var(--md-shape-md); }
html.md3 .audio-preview-box { background: var(--md-surface-container); border: 1px solid var(--md-outline-variant); border-radius: var(--md-shape-md); }
html.md3 .coreo-card { border-radius: var(--md-shape-md); }
html.md3 .coreo-header { background: var(--md-surface-container-low); border-bottom-color: var(--md-outline-variant); }
html.md3 .coreo-header:hover { background: var(--md-surface-container); }
html.md3 .coreo-num { border: 0; background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
html.md3 .coreo-num.done { background: var(--md-ok-container); color: var(--md-on-ok-container); }
html.md3 .nota-input {
    border-color: var(--md-outline) !important;
    border-radius: var(--md-shape-xs) !important;
}
html.md3 .nota-input:focus { border-color: var(--md-primary) !important; box-shadow: inset 0 0 0 1px var(--md-primary) !important; }
html.md3 .dia-pill { border: 1px solid var(--md-outline-variant); border-radius: var(--md-shape-sm); background: transparent; color: var(--md-on-surface-variant); }
html.md3 .dia-pill.active,
html.md3 .dia-pill:hover { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; }

/* Avaliação rápida (avaliar_rapido.php) */
html.md3 .rapido-table thead th { text-transform: none; letter-spacing: .00625rem; font-weight: 500; background: var(--md-surface-container); color: var(--md-on-surface-variant); }
html.md3 .rapido-table tbody tr:hover td { background: color-mix(in srgb, var(--md-primary) 5%, transparent); }
html.md3 .nota-rapida,
html.md3 .com-rapido { border: 1px solid var(--md-outline); border-radius: var(--md-shape-xs); background: var(--md-surface-container-lowest); color: var(--md-on-surface); }
html.md3 .nota-rapida:focus,
html.md3 .com-rapido:focus { border-color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-primary); }
html.md3 .nota-rapida.saved { border-color: var(--ok-text); background: var(--md-ok-container); color: var(--md-on-ok-container); }
html.md3 .nota-rapida.falta,
html.md3 .com-rapido.falta { border-color: var(--md-error); background: var(--md-error-container); }

/* Tablet deitado: a linha preta entre as duas colunas vira divisória fina */
@media (min-width: 900px) and (max-height: 860px) {
    html.md3 .pn-body { border-left: 1px solid var(--md-outline-variant); }
}

/* ============================================================
   ETAPA 3.7 — TELAS DO ORGANIZADOR (12/11/2026)
   Painel, Configuração, Programação, Ensaios, Workshops, Financeiro,
   Apuração, Telão (painel), Credenciamento, Métricas, Histórico, Links,
   Certificados e Prêmios. Os degradês inline das views viraram
   --gradient-subtle / --gradient-ok / --gradient-ok-subtle (style.css),
   que aqui são cor sólida. A prévia escura do telão (.tl-preview) e as
   medalhas (ouro/prata/bronze) ficam: são informação, não decoração.
   ============================================================ */

/* Rótulos e cabeçalhos de tabela em CAIXA ALTA → label do M3 */
html.md3 .res-table th,
html.md3 .cred-table th,
html.md3 .tp-tab th,
html.md3 .fin-tabela th,
html.md3 .en-table th,
html.md3 .fin-hero .k,
html.md3 .oc-h,
html.md3 .mt-kpi-lbl,
html.md3 .prog-lbl,
html.md3 .eo-filtros-lbl,
html.md3 .ck-opc {
    text-transform: none;
    letter-spacing: .00625rem;
    font-weight: 500;
}
/* só na tela: no papel essas tabelas têm o desenho de impressão próprio */
@media screen {
html.md3 .res-table th,
html.md3 .cred-table th,
html.md3 .fin-tabela th,
html.md3 .en-table th { background: var(--md-surface-container); color: var(--md-on-surface-variant); }
}

/* Barras escuras "navy" de total → superfície tonal mais alta */
html.md3 .eo-total,
html.md3 .en-total,
html.md3 .cred-selbar {
    background: var(--md-surface-container-highest);
    color: var(--md-on-surface);
}
html.md3 .eo-total small,
html.md3 .en-total small { color: var(--md-on-surface-variant); }
html.md3 .cred-selbar .cs-n b { color: var(--md-primary); }
/* seletores segmentados que ficavam navy quando escolhidos */
html.md3 .ct-seg label:has(input:checked),
html.md3 .hs-pill.on {
    background: var(--md-secondary-container);
    border-color: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* Etiquetas de status fixas (amarelo/vermelho/azul/verde claros) → containers */
html.md3 .eo-tarja,
html.md3 .en-tarja,
html.md3 .ws-vagas.quase,
html.md3 .lk-motivo { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .eo-tarja.orfao,
html.md3 .en-tarja.orfao,
html.md3 .ws-vagas.cheia,
html.md3 .pos-pill.sem-colocacao,
html.md3 .wsi-aviso.erro { background: var(--md-error-container); color: var(--md-on-error-container); }
html.md3 .eo-tarja.ja,
html.md3 .en-tarja.junto { background: var(--md-info-container); color: var(--md-on-info-container); }
html.md3 .en-badge-pub,
html.md3 .wsi-aviso.ok { background: var(--md-ok-container); color: var(--md-on-ok-container); }
html.md3 .eo-item.eo-orfao,
html.md3 .eo-item.eo-erro { border-color: var(--md-error); }
html.md3 .eo-item.eo-erro { background: color-mix(in srgb, var(--md-error) 6%, transparent); }
html.md3 .eo-item.eo-simult { border-left-color: var(--md-tertiary); }
html.md3 .cred-grupo-card .cg-vazio { color: var(--warn-text); }
html.md3 .cred-table tr.ok .cred-nome { color: var(--ok-text); }
html.md3 .cred-progress.done > span { background: var(--md-ok-fill); }
html.md3 .hs-mud .de   { color: var(--md-error); }
html.md3 .hs-mud .para { color: var(--ok-text); }

/* ── Programação (quadro) ─────────────────────────────────── */
html.md3 .board-day-head {
    background: var(--md-surface-container);
    border-color: transparent;
    border-radius: var(--md-shape-md);
}
html.md3 .board-day-head .bd-title,
html.md3 .board-col-head .col-title { font-weight: 600; }
html.md3 .board-day-head .bd-add,
html.md3 .board-col-head .col-int {
    border: 1px solid var(--md-outline);
    border-radius: var(--md-shape-sm);
    color: var(--md-primary);
}
html.md3 .board-col-head .col-int { color: var(--warn-text); }
html.md3 .board-day-head .bd-add:hover,
html.md3 .board-col-head .col-int:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); }
html.md3 .board-col {
    background: var(--md-surface-container-low);
    border-color: var(--md-outline-variant);
    border-radius: var(--md-shape-lg);
    box-shadow: none;
}
html.md3 .board-col-head { border-radius: var(--md-shape-lg) var(--md-shape-lg) 0 0; border-bottom-color: var(--md-outline-variant); }
html.md3 .board-col-head.col-head-sessao { background: var(--md-surface-container); }
html.md3 .board-col-head.col-head-pool { background: transparent; }
/* o pool continua opaco (os cartões dos dias passam por trás) */
html.md3 .board-col.col-pool {
    background-color: var(--md-surface-container-high);
    background-image: none;
    border-color: var(--md-outline-variant);
}
html.md3 .col-pool.recolhido .pool-recolhido-lbl .lbl-n { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .board-col.nao-aceita::after { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); border-radius: var(--md-shape-xs); }
html.md3 .board-card {
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--md-shape-sm);
    background: var(--md-surface-container-lowest);
}
html.md3 .board-card:hover { transform: none; box-shadow: var(--md-elev-1); border-color: var(--md-outline); }
html.md3 .board-card.tipo-mostra,
html.md3 .board-card.tipo-comp { border-left: 3px solid var(--pc, var(--md-primary)); }
html.md3 .board-card .bc-hora,
html.md3 .board-card .bc-dia {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    border-radius: var(--md-shape-xs);
}
html.md3 .board-card.dia-fora .bc-dia { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .board-card .bc-ja { color: var(--ok-text); }
html.md3 .bc-prog { text-transform: none; letter-spacing: 0; border-radius: var(--md-shape-xs); }
html.md3 .board-card.tipo-intervalo {
    border: 1px dashed var(--md-outline);
    border-left: 3px solid var(--warn-text);
    background: var(--md-warn-container);
}
html.md3 .board-card.tipo-intervalo .bc-title,
html.md3 .board-card.tipo-intervalo .bc-dur { color: var(--md-on-warn-container); }
html.md3 .board-card.tipo-intervalo .bc-hora { background: color-mix(in srgb, var(--md-on-warn-container) 12%, transparent); color: var(--md-on-warn-container); }
html.md3 .board-card .bc-remove:hover { color: var(--md-error); }
html.md3 .board-empty { border: 1px dashed var(--md-outline-variant); border-radius: var(--md-shape-sm); }
html.md3 .prog-aloc-bar { background: var(--md-surface-container-highest); }

/* ── Financeiro ───────────────────────────────────────────── */
html.md3 .fin-hero .bar { background: var(--md-surface-container-highest); }
html.md3 .fin-hero .bar > i { background: var(--md-ok-fill); }
html.md3 .fin-hero .sel .v { color: var(--ok-text); }
html.md3 .fin-pill.pago      { background: var(--md-ok-container);   color: var(--md-on-ok-container); }
html.md3 .fin-pill.pendente  { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .fin-pill.cancelada { background: var(--md-surface-container-highest); color: var(--md-on-surface-variant); }
html.md3 .fin-pill.aguard    { background: var(--md-surface-container-high); color: var(--md-on-surface-variant); border-color: var(--md-outline-variant); }
html.md3 .fin-pill.falta     { background: transparent; color: var(--md-on-warn-container); }
html.md3 .fin-sub.rec { color: var(--md-error); }
html.md3 .fin-seg-cont { background: var(--md-error); color: var(--md-on-error); }
html.md3 .fin-btn.ok { background: var(--md-ok-fill); border-color: var(--md-ok-fill); }
html.md3 .fin-btn.ghost:hover { color: var(--md-error); }

/* ── Workshops (chamada) ──────────────────────────────────── */
html.md3 .ch-barra { background: var(--md-surface-container-highest); }
html.md3 .ch-barra > div { background: var(--md-ok-fill); }
html.md3 .ch-linha { border-color: var(--md-outline-variant); border-radius: var(--md-shape-md); }

/* ── Telão (painel do operador): os chips fora da prévia ─── */
html.md3 .chip-notas.ok,
html.md3 .tl-play.tocando { background: var(--md-ok-container); color: var(--md-on-ok-container); border-color: transparent; }

/* ── Apuração ─────────────────────────────────────────────── */
html.md3 .pos-pill { border-radius: var(--md-shape-full); }

/* ── Certificados e prêmios: ícones de cabeçalho em tom ─────── */
/* !important: o fundo vem inline na view */
html.md3 .ct-ico { background: var(--md-primary-container) !important; color: var(--md-on-primary-container); }
html.md3 .pe-pub.on { border-left-color: var(--md-ok-fill); }

/* ============================================================
   ETAPA 3.8 — TELAS DO ADMIN (12/11/2026)
   /admin (abas), Financeiro da plataforma, Usuários, Auditoria
   financeira, Log de atividade, Ao vivo, Excluir avaliações.
   Duas classes para o que vem INLINE na view (o style="" vence a folha,
   por isso o !important — só aqui):
     .md3-solido — degradê inline vira a cor sólida de --md3-solido
                   (posta inline ao lado; sem ela, o roxo de preenchimento)
     .md3-ilha   — cartão escuro de propósito (rodapé "navy" de totais):
                   continua escuro, no cinza-roxo neutro do M3
   ============================================================ */
html.md3 .md3-solido { background: var(--md3-solido, var(--purple-fill)) !important; }
html.md3 .md3-ilha   { background: var(--md-ilha) !important; }

/* Rótulos em CAIXA ALTA → label do M3 */
html.md3 .stat-pill .sp-lbl,
html.md3 .av-palco .rot,
html.md3 .av-tab th,
html.md3 .la-box .rot,
html.md3 .af-box .rot {
    text-transform: none;
    letter-spacing: .00625rem;
    font-weight: 500;
}

/* Filtros "pílula" que ficavam navy quando escolhidos → filter chip */
html.md3 .la-pill.on,
html.md3 .af-pill.on {
    background: var(--md-secondary-container);
    border-color: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* Etiquetas por tipo/categoria (cores fixas claras) → containers do tema */
html.md3 .la-tipo.login,
html.md3 .la-tipo.cadastro,
html.md3 .af-cat.pagamento { background: var(--md-ok-container); color: var(--md-on-ok-container); }
html.md3 .la-tipo.login_falhou,
html.md3 .la-tipo.login_bloq,
html.md3 .af-cat.estorno,
html.md3 .af-cat.recusa { background: var(--md-error-container); color: var(--md-on-error-container); }
html.md3 .la-tipo.acao,
html.md3 .af-cat.isencao { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
html.md3 .la-tipo.download,
html.md3 .af-cat.comprovante { background: var(--md-info-container); color: var(--md-on-info-container); }
html.md3 .af-cat.alerta { background: var(--md-warn-container); color: var(--md-on-warn-container); }
html.md3 .la-res.ok,
html.md3 .af-box.verde .val,
html.md3 .af-mud .para { color: var(--ok-text); }
html.md3 .la-res.erro,
html.md3 .af-box.verm .val,
html.md3 .af-mud .de { color: var(--md-error); }

/* Ao vivo */
html.md3 .av-chip.ok   { background: var(--md-ok-container);    color: var(--md-on-ok-container); }
html.md3 .av-chip.live { background: var(--md-error-container); color: var(--md-on-error-container); }
html.md3 .av-chip.live .dot { background: var(--md-error); }
html.md3 .av-palco {
    background: var(--md-surface-container);
    border-color: transparent;
    border-radius: var(--md-shape-md);
}
html.md3 .av-palco .rot { color: var(--md-primary); }
html.md3 .av-bar.verde > i { background: var(--md-ok-fill); }
html.md3 .av-alerta.warn { background: var(--md-warn-container);  color: var(--md-on-warn-container); }
html.md3 .av-alerta.err  { background: var(--md-error-container); color: var(--md-on-error-container); }

/* Excluir avaliações: aviso e botões de perigo */
html.md3 .exa-aviso {
    background: var(--md-warn-container);
    border-color: transparent;
    color: var(--md-on-warn-container);
    border-radius: var(--md-shape-md);
}
html.md3 .exa-aviso > i { color: var(--md-on-warn-container); }
html.md3 .exa-btn {
    border: 1px solid var(--md-outline);
    color: var(--md-error);
    border-radius: var(--md-shape-full);
}
html.md3 .exa-btn:hover { background: var(--md-error); color: var(--md-on-error); border-color: var(--md-error); }
html.md3 .exa-confirmar { background: var(--md-error); color: var(--md-on-error); border-radius: var(--md-shape-full); }
html.md3 .exa-confirmar:not(:disabled):hover { background: color-mix(in srgb, var(--md-on-error) 8%, var(--md-error)); color: var(--md-on-error); }

/* ============================================================
   ETAPA 5 — AJUDA E TUTORIAIS (12/11/2026)
   Central de Ajuda e "Saiba mais" já seguem os tokens; aqui só o que é
   fixo nos tutoriais por perfil. Os vídeos (jurado e grupo) têm as regras
   MD3 no <style> da própria view (a página pública não carrega este
   arquivo). As capturas dos tutoriais do organizador e do grupo são
   imagens: mostram o desenho anterior até serem refeitas.
   ============================================================ */
html.md3 .tut-fase span,
html.md3 .tut-aviso .rot { text-transform: none; letter-spacing: .03rem; font-weight: 600; }
html.md3 .tut-aviso { border-color: transparent; background: var(--md-warn-container); color: var(--md-on-warn-container); border-radius: var(--md-shape-md); }
html.md3 .tut-aviso .rot { color: var(--md-on-warn-container); }
html.md3 .tut-aviso.dica { background: var(--md-info-container); color: var(--md-on-info-container); }
html.md3 .tut-aviso.dica .rot { color: var(--md-on-info-container); }
html.md3 .tut-intro { border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
    html.md3 { --md-dur-short: 0ms; --md-dur-medium: 0ms; --md-dur-long: 0ms; }
}
