/* =====================================================================
   ProGo — Design System (Laravel) — v2 moderno
   Cor padrao da marca: rgb(41, 61, 101) / #293D65
   --brand / --brand-dark sao injetados no layout (respeitam o cliente).
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* Compat: ícones legados escritos como `fa fa-xxx` (v4) renderizam sólidos no Font Awesome 6. */
.fa { font-family: "Font Awesome 6 Free"; font-weight: 900; }

:root {
    --brand: #293D65;
    --brand-dark: #1d2d4d;
    --brand-soft: rgba(41, 61, 101, 0.07);
    --brand-soft-2: rgba(41, 61, 101, 0.14);

    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #fafbfe;
    --border: #e7eaf1;
    --text: #182135;
    --text-muted: #717a90;
    --success: #12a06b;
    --warning: #e08a1e;
    --danger: #e5484d;

    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(20, 30, 55, 0.05), 0 1px 3px rgba(20, 30, 55, 0.05);
    --shadow: 0 8px 28px rgba(20, 30, 55, 0.09);
    --shadow-lg: 0 24px 60px rgba(20, 30, 55, 0.18);
    --sidebar-w: 270px;
    --header-h: 70px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(41, 61, 101, 0.06), transparent 60%),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
img { max-width: 100%; }

/* ---------------------------------------------------------------- Shell */
.app { min-height: 100vh; }

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.sidebar__brand {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

/* Logo (cliente ou padrao do produto) — centralizado no topo da sidebar */
.brand-logo { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.brand-logo img {
    max-width: 220px;
    max-height: 54px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Fallback "P" caso nao haja logo (texto) */
.sidebar__logo {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(41, 61, 101, 0.28);
}
.sidebar__brand-name { font-weight: 800; font-size: 18px; color: var(--brand); line-height: 1.1; }
.sidebar__brand-name span { color: var(--text-muted); font-weight: 600; font-size: 10px; display: block; letter-spacing: 0.08em; margin-top: 2px; }

.sidebar__scroll { flex: 1; overflow-y: auto; padding: 14px 14px 24px; }
.sidebar__scroll::-webkit-scrollbar { width: 6px; }
.sidebar__scroll::-webkit-scrollbar-thumb { background: var(--brand-soft-2); border-radius: 6px; }

.side-user {
    display: flex; align-items: center; gap: 11px;
    padding: 12px; margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
    border: 1px solid var(--border);
}
.side-user__avatar {
    position: relative; overflow: hidden;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(41, 61, 101, 0.28);
}
.side-user__avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
/* Com foto, as iniciais ficam escondidas atrás da imagem (fallback se a img falhar). */
.side-user__avatar--foto .side-user__ini { visibility: hidden; }
.side-user__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.side-user__name { font-weight: 800; color: var(--brand); font-size: 14px; }
.side-user__sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 158px; }

.sidebar__search { margin: 12px 0 14px; }
.sidebar__search-label {
    display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
.sidebar__search-wrap { position: relative; }
.sidebar__search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--text-muted); pointer-events: none;
}
.sidebar__search-input {
    width: 100%; padding: 9px 10px 9px 34px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: #fff; color: var(--text);
    font-size: 13px; font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sidebar__search-input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.sidebar__search-input::-webkit-search-cancel-button { cursor: pointer; }
.sidebar__search-empty {
    margin: 8px 2px 0; font-size: 12px; color: var(--text-muted); font-weight: 600;
}
.sidebar.is-filtering .nav-cascade.is-open > .nav-sub { max-height: 1200px; }
.sidebar.is-filtering .nav-sub-group.is-open > .nav-sub-sub { max-height: 600px; }
.nav-item.is-nav-hidden,
.nav-cascade.is-nav-hidden,
.nav-sub-group.is-nav-hidden,
.nav-child.is-nav-hidden { display: none !important; }

.nav-group__title {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--text-muted); font-weight: 800;
    padding: 18px 12px 7px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; margin: 1px 0;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600; font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    position: relative;
}
/* icone em "chip" arredondado */
.nav-item svg {
    width: 16px; height: 16px;
    box-sizing: content-box; padding: 6px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand); opacity: 1; flex-shrink: 0;
    transition: all 0.18s ease;
}
.nav-item:hover { background: var(--surface-2); border-color: var(--border); }
.nav-item:hover svg { background: var(--brand-soft-2); }
.nav-item.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(41, 61, 101, 0.30);
}
.nav-item.is-active svg { background: rgba(255, 255, 255, 0.18); color: #fff; }
/* barra indicadora lateral do item ativo */
.nav-item.is-active::before {
    content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--brand);
}

/* ---------------------------------------------------------------- Menu em cascata */
.nav-cascade { margin: 1px 0; }
.nav-parent {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border: 1px solid transparent; border-radius: var(--radius-sm);
    background: transparent; color: var(--text); cursor: pointer;
    font-weight: 700; font-size: 12px; font-family: inherit; text-align: left;
    letter-spacing: 0.01em; transition: all 0.18s ease;
}
.nav-parent:hover { background: var(--surface-2); border-color: var(--border); }
.nav-parent__icon {
    width: 16px; height: 16px; box-sizing: content-box; padding: 6px;
    border-radius: 9px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0;
    transition: all 0.18s ease;
}
.nav-parent:hover .nav-parent__icon { background: var(--brand-soft-2); }
.nav-parent__label { flex: 1; min-width: 0; }
.nav-parent__arrow { width: 15px; height: 15px; color: var(--text-muted); transition: transform 0.22s ease; }
.nav-cascade.is-open > .nav-parent { color: var(--brand); }
.nav-cascade.is-open > .nav-parent .nav-parent__icon { background: var(--brand); color: #fff; }
.nav-cascade.is-open > .nav-parent .nav-parent__arrow { transform: rotate(90deg); color: var(--brand); }

.nav-sub {
    overflow: hidden; max-height: 0;
    transition: max-height 0.26s ease;
    margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--border);
}
.nav-cascade.is-open > .nav-sub { max-height: 480px; }
.nav-sub-group { margin: 3px 0 6px; }
.nav-sub-parent {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    font-size: 11.5px;
    font-family: inherit;
    text-align: left;
    letter-spacing: 0.02em;
    transition: all 0.16s ease;
}
.nav-sub-parent:hover { background: var(--surface-2); color: var(--brand); border-color: var(--border); }
.nav-sub-parent__arrow {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.nav-sub-group.is-open > .nav-sub-parent { color: var(--brand); }
.nav-sub-group.is-open > .nav-sub-parent .nav-sub-parent__arrow { transform: rotate(90deg); color: var(--brand); }
.nav-sub-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.22s ease;
    margin: 2px 0 4px 6px;
    padding-left: 12px;
    border-left: 1px dashed color-mix(in srgb, var(--brand) 22%, var(--border));
}
.nav-sub-group.is-open > .nav-sub-sub { max-height: 220px; }
.nav-sub-sub .nav-child { font-size: 12px; }
.nav-child {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 10px; margin: 1px 0; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 600; font-size: 12.5px;
    transition: all 0.16s ease;
}
.nav-child svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); opacity: 0.9; }
.nav-child:hover { background: var(--surface-2); color: var(--brand); }
.nav-child:hover svg { color: var(--brand); }
.nav-child.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.nav-child.is-active svg { color: var(--brand); }
.nav-child.is-active::before {
    content: ""; position: absolute; left: -16px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);
}
.nav-child { position: relative; }

/* Rodape do sidebar */
.sidebar__foot {
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; line-height: 1.25;
}
.sidebar__foot span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; }
.sidebar__foot strong { font-size: 15px; color: var(--brand); font-weight: 800; }
.sidebar__foot small { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- Main */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    height: var(--header-h);
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(120deg, var(--header-bg, var(--brand)), var(--brand-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 18px rgba(20, 30, 55, 0.14);
}
.topbar__title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.topbar__title small { display: block; font-size: 11px; font-weight: 500; opacity: 0.78; letter-spacing: 0; }
.topbar__right { display: flex; align-items: center; gap: 16px; }

/* Seletor de empresa (ADM) no topo */
.empresa-switch { display: flex; align-items: center; gap: 8px; }
.empresa-switch > svg { width: 17px; height: 17px; color: #fff; opacity: 0.85; flex-shrink: 0; }

/* select nativo (fallback caso o Select2/CDN nao carregue) */
.empresa-switch select {
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 11px; color: #fff;
    font: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
    max-width: 230px; padding: 7px 30px 7px 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.empresa-switch select:focus { outline: none; }
.empresa-switch option { color: #182135; }

/* Select2 estilizado para o topo escuro */
.empresa-switch .select2-container { line-height: normal; }
.empresa-switch .select2-container--default .select2-selection--single {
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 11px; height: 36px; display: flex; align-items: center;
}
.empresa-switch .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff; font-weight: 700; font-size: 13px; line-height: 34px; padding-left: 12px; padding-right: 26px;
}
.empresa-switch .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; right: 6px; }
.empresa-switch .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #fff transparent transparent; }
.empresa-switch .select2-container--open.select2-container--above .select2-selection--single,
.empresa-switch .select2-container--open.select2-container--below .select2-selection--single { background: rgba(255,255,255,0.22); }

/* Dropdown do Select2 (claro, legivel) */
.select2-dropdown { border-color: var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,20,40,0.18); overflow: hidden; }
.select2-search--dropdown .select2-search__field { border-radius: 8px; border: 1px solid var(--border); padding: 7px 10px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.select2-results__option { font-size: 13.5px; }

.topbar__client {
    font-size: 13px; font-weight: 700; opacity: 0.95;
    max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__sep { width: 1px; height: 28px; background: rgba(255,255,255,0.22); }
.topbar__icon-btn {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255,255,255,0.16); color: #fff;
    display: grid; place-items: center; border: none; cursor: pointer;
    transition: background 0.18s;
}
.topbar__icon-btn:hover { background: rgba(255,255,255,0.28); }

.menu-toggle { display: none; background: rgba(255,255,255,0.16); border: none; color: #fff; width: 42px; height: 42px; border-radius: 11px; cursor: pointer; }

.content { padding: 28px; flex: 1; max-width: 1320px; width: 100%; min-width: 0; box-sizing: border-box; overflow-x: hidden; }
.content--embed { padding: 20px 22px; max-width: none; }
body.is-embed { background: var(--surface); }
/* Dentro do modal (iframe) o "Voltar" não faz sentido — fechar é pelo cabeçalho do modal. */
body.is-embed .page-head .btn--ghost { display: none; }
/* Dentro do modal o "Baixar PDF" fica no topo do modal — esconde o do relatório. */
body.is-embed .page-head .js-pdf-btn { display: none; }
body.is-embed .aval-fill__footer-hint,
body.is-embed .js-aval-voltar { display: none; }
body.is-embed .aval-fill__footer {
    left: 0;
    right: 0;
    width: 100%;
    padding-inline: 16px;
}
body.is-embed .aval-fill__footer-inner {
    max-width: none;
    width: 100%;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
body.is-embed .aval-fill__footer-actions {
    width: auto;
    display: flex;
    justify-content: flex-end;
}
body.is-embed .aval-fill__footer-actions .btn,
body.is-embed .aval-fill__footer-inner > form,
body.is-embed .aval-fill__footer-inner > .btn {
    width: auto;
}
body.is-embed .aval-fill__footer-inner > form {
    display: flex;
    margin: 0;
}
body.is-embed .aval-fill__hero--compact { margin-top: 0; }

.disc-pager--top { margin-bottom: 14px; }
.disc-pager--bottom { margin-top: 14px; margin-bottom: 0; }

.aval-toast {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 1300;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.aval-toast.is-visible { opacity: 1; transform: translateY(0); }

tr.aval-row--flash td,
.aval-card.aval-row--flash {
    animation: avalFlash 1.2s ease;
}
@keyframes avalFlash {
    0% { background-color: rgba(99, 102, 241, .14); }
    100% { background-color: transparent; }
}
.aval-card.aval-row--flash { border-radius: var(--radius); }

/* Lista DISC — filtro, info de uso, ranking, paginação e grid de competências */
.disc-filtro {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.disc-filtro__campo { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; min-width: 130px; }
.disc-filtro__campo label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.disc-filtro__campo input, .disc-filtro__campo select {
    padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px;
    background: var(--surface); color: var(--text); width: 100%;
}
.disc-filtro__campo input:focus, .disc-filtro__campo select:focus { outline: none; border-color: var(--brand); }
.disc-filtro__acao { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

/* Seletor de idioma — topbar e login */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-decoration: none; line-height: 1.2; white-space: nowrap; }
.lang-switch a:hover { background: var(--surface-2); color: var(--brand); }
.lang-switch a.is-active { background: var(--brand); color: #fff; }
.lang-switch--login { justify-content: center; width: max-content; margin: 0 auto 18px; }

.disc-uso { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; margin: 6px 0 12px; }
.disc-uso strong { color: var(--brand); }

.disc-rank { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

/* Botão DNA do Time */
.disc-dna-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 0; border-radius: 999px;
    cursor: pointer; color: #fff; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    box-shadow: 0 4px 14px rgba(99, 102, 241, .35); transition: transform .14s ease, box-shadow .14s ease;
}
.disc-dna-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99, 102, 241, .45); }
.disc-dna-btn__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 11px; }
.disc-dna-btn__txt { white-space: nowrap; }

/* Botão Coach ProGoIA */
.disc-coach-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 0; border-radius: 999px;
    cursor: pointer; color: #fff; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7);
    box-shadow: 0 4px 14px rgba(99, 102, 241, .35); transition: transform .14s ease, box-shadow .14s ease;
}
.disc-coach-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99, 102, 241, .45); }
.disc-coach-btn__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 11px; }
.disc-coach-btn__txt { white-space: nowrap; }

/* Modal Coach ProGoIA */
.coach-modal__box { width: min(760px, 96vw); max-height: 92vh; }
.coach-modal__head { background: linear-gradient(135deg, #0ea5e9, #6366f1 50%, #a855f7); color: #fff; }
.coach-modal__head h3 { color: #fff; }
.coach-modal__head .rel-modal__close { color: #fff; opacity: .85; }
.coach-modal__body { overflow: auto; max-height: calc(92vh - 52px); background: var(--bg); padding: 16px 18px 20px; }
.coach-intro { margin-bottom: 14px; }
.coach-intro__badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    color: #4338ca; background: color-mix(in srgb, #6366f1 12%, #fff); margin-bottom: 8px;
}
.coach-intro p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.coach-form { display: grid; gap: 10px; margin-bottom: 14px; }
.coach-form label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.coach-select {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); font-size: 13px; color: var(--text);
}
.coach-form .select2-container { width: 100% !important; }
.coach-form .select2-container--default .select2-selection--single {
    height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.coach-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px; padding-left: 12px; font-size: 13px; color: var(--text);
}
.coach-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.coach-form .select2-container--default.select2-container--focus .select2-selection--single,
.coach-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.coach-form .select2-container--default .select2-selection--multiple {
    min-height: 48px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); padding: 6px 8px 2px; display: block;
}
.coach-form .select2-container--default.select2-container--focus .select2-selection--multiple,
.coach-form .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.coach-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0; padding: 5px 10px 5px 8px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe); color: #0f172a;
    font-size: 12px; font-weight: 700; line-height: 1.3; display: inline-flex;
    align-items: center; gap: 6px; max-width: 100%;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static; border: 0; border-radius: 999px; width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #0369a1; background: rgba(14,165,233,.12); font-size: 14px; line-height: 1;
    margin: 0; padding: 0; order: 2;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #0ea5e9; color: #fff;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-search--inline {
    margin: 0; flex: 1 1 120px; min-width: 120px;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin: 0; padding: 6px 4px; height: 28px; min-height: 28px; font-size: 13px;
    color: var(--text); border: 0 !important; outline: 0 !important; box-shadow: none !important;
    width: 100% !important;
}
.coach-form .select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-right: 4px; margin-top: 4px;
}
#quimicaModal .select2-dropdown { border-radius: 12px; }
#quimicaModal .select2-results__option { padding: 8px 12px; }
.coach-gerar { justify-self: start; display: inline-flex; align-items: center; gap: 8px; }
.coach-result { margin-top: 4px; }
.coach-result__hero {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px;
    border-radius: 14px; border: 1px solid var(--border);
    background: linear-gradient(135deg, color-mix(in srgb, var(--coach) 16%, #fff), var(--surface));
}
.coach-result__letter {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 26px; font-weight: 900; color: #fff; background: var(--coach);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--coach) 35%, transparent);
}
.coach-result__kicker { font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.coach-result strong { display: block; font-size: 17px; margin-top: 2px; }
.coach-result__hero span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.coach-result__body { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.coach-result__body h4 { margin: 16px 0 8px; font-size: 13px; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.coach-result__body h4:first-child { margin-top: 0; }
.coach-result__body p, .coach-result__body li { font-size: 13px; line-height: 1.55; color: var(--text); }
.coach-result__body ul { margin: 0 0 8px; padding-left: 18px; }

/* Conversa aberta ProGoIA (follow-up pós-geração) */
.ia-open-chat {
    position: relative;
    margin-top: 16px;
    border-radius: 20px;
}
.ia-open-chat__glow {
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    z-index: 0;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 42%, #a855f7 78%, #f59e0b);
    background-size: 220% 220%;
    animation: iaGlow 9s linear infinite;
    opacity: .88;
}
.ia-open-chat__panel {
    position: relative;
    z-index: 1;
    margin: 1px;
    border-radius: 19px;
    overflow: hidden;
    background:
        radial-gradient(900px 180px at 0% -30%, rgba(99,102,241,.12), transparent 55%),
        radial-gradient(700px 160px at 100% 0%, rgba(14,165,233,.1), transparent 50%),
        var(--surface);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}
.ia-open-chat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,250,252,.35));
}
.ia-open-chat__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    position: relative;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7);
    box-shadow: 0 8px 18px rgba(99, 102, 241, .28);
}
.ia-open-chat__pulse {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12b886;
    border: 2px solid #fff;
    animation: iaPulse 1.8s infinite;
}
.ia-open-chat__titles {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}
.ia-open-chat__titles strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    background: linear-gradient(135deg, #0ea5e9, #6366f1 50%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ia-open-chat__titles span {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}
.ia-open-chat__cost {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #1d4ed8;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .22);
    white-space: nowrap;
}
.ia-open-chat__thread {
    max-height: 260px;
    min-height: 72px;
    margin: 0;
    padding: 14px 14px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-behavior: smooth;
}
.ia-open-chat__row {
    display: flex;
    margin-bottom: 10px;
    animation: iaOpenChatIn .28s ease;
}
@keyframes iaOpenChatIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ia-open-chat__row--user { justify-content: flex-end; }
.ia-open-chat__row--bot { justify-content: flex-start; }
.ia-open-chat__bubble {
    max-width: 88%;
    margin: 0;
}
.ia-open-chat__bubble.ia-msg--user {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .22);
}
.ia-open-chat__bubble.ia-msg--bot {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148, 163, 184, .22);
    border-bottom-left-radius: 6px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}
.ia-open-chat__name {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
    opacity: .72;
}
.ia-open-chat__bubble.ia-msg--user .ia-open-chat__name { color: rgba(255,255,255,.85); }
.ia-open-chat__bubble.ia-msg--bot .ia-open-chat__name { color: var(--text-muted); }
.ia-open-chat__bubble p { margin: 0; }
.ia-open-chat__answer p,
.ia-open-chat__answer li {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 6px;
}
.ia-open-chat__answer ul { margin: 0; padding-left: 18px; }
.ia-open-chat__composer {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(148, 163, 184, .16);
    background: linear-gradient(180deg, rgba(248,250,252,.35), rgba(255,255,255,.85));
}
.ia-open-chat__dock {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 20px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ia-open-chat__dock:focus-within {
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12), 0 10px 24px rgba(99, 102, 241, .08);
}
.ia-open-chat__input {
    flex: 1;
    min-height: 24px;
    max-height: 120px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    resize: none;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text);
}
.ia-open-chat__input:focus { outline: none; }
.ia-open-chat__input::placeholder { color: #94a3b8; }
.ia-open-chat__send {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7);
    box-shadow: 0 8px 18px rgba(99, 102, 241, .28);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ia-open-chat__send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, .34);
}
.ia-open-chat__send:disabled { opacity: .55; cursor: wait; }
.ia-open-chat__send i { font-size: 14px; }
.ia-open-chat__send-cost {
    position: absolute;
    right: -4px;
    top: -6px;
    min-width: 22px;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    color: #1d4ed8;
    background: #fff;
    border: 1px solid rgba(59, 130, 246, .25);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.ia-open-chat__hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Dinâmica em Grupo — sala online (liderança) */
.dl-enter__hero { text-align: center; margin-bottom: 20px; }
.dl-enter__badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 800; color: #4f46e5; background: rgba(79,70,229,.1); margin-bottom: 12px;
}
.dl-enter__meta, .dl-enter__role { color: var(--text-muted); font-size: 14px; }
.dl-roteiro-preview {
    margin: 16px 0; padding: 14px 16px; border-radius: 14px;
    background: rgba(79,70,229,.06); border: 1px solid rgba(79,70,229,.15);
}
.dl-roteiro-preview h4 { margin: 0 0 8px; font-size: 13px; color: var(--brand); }
.dl-roteiro-preview ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }

.dl-sala {
    min-height: 100vh; margin: 0; padding: 16px;
    background: #0f172a; color: #e2e8f0; position: relative; overflow-x: hidden;
}
.dl-sala__glow {
    position: fixed; inset: -20%; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at 20% 10%, rgba(14,165,233,.18), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(168,85,247,.16), transparent 40%);
}
.dl-sala__head, .dl-sala__layout { position: relative; z-index: 1; }
.dl-sala__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 16px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}
.dl-sala__brand { display: flex; align-items: center; gap: 12px; }
.dl-sala__icon {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7); color: #fff; font-size: 18px;
}
.dl-sala__brand strong { display: block; font-size: 16px; }
.dl-sala__brand small { color: #94a3b8; font-size: 12px; }
.dl-sala__user { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dl-sala__pill {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: 4px 8px; border-radius: 999px; background: rgba(245,158,11,.2); color: #fbbf24;
}
.dl-sala__layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 16px; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 900px) { .dl-sala__layout { grid-template-columns: 1fr; } }
.dl-sala__card {
    padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1); margin-bottom: 12px;
}
.dl-sala__card h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.dl-sala__card--stage { margin-bottom: 0; min-height: 420px; }
.dl-progress__bar {
    height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 8px;
}
.dl-progress__bar span {
    display: block; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #a855f7); transition: width .35s ease;
}
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-steps__item {
    display: flex; align-items: center; gap: 10px; font-size: 12px; color: #94a3b8; padding: 6px 8px; border-radius: 10px;
}
.dl-steps__item.is-current { background: rgba(99,102,241,.2); color: #fff; font-weight: 700; }
.dl-steps__item.is-done { color: #cbd5e1; }
.dl-steps__dot {
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font-size: 11px; font-weight: 800; background: rgba(255,255,255,.1); flex-shrink: 0;
}
.dl-steps__item.is-current .dl-steps__dot { background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; }
.dl-online { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.dl-online li { display: flex; align-items: center; gap: 8px; }
.dl-stage__status {
    display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    padding: 4px 10px; border-radius: 999px; background: rgba(148,163,184,.2); color: #cbd5e1; margin-bottom: 10px;
}
.dl-stage__status--live { background: rgba(34,197,94,.2); color: #4ade80; }
.dl-stage__status--done { background: rgba(59,130,246,.2); color: #93c5fd; }
.dl-sala__card--stage h2 { margin: 0 0 12px; font-size: 24px; }
.dl-stage__instrucao { font-size: 15px; line-height: 1.6; color: #cbd5e1; margin-bottom: 20px; }
.dl-resposta label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.dl-resposta textarea {
    width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15);
    background: rgba(15,23,42,.6); color: #fff; font: inherit; resize: vertical; margin-bottom: 10px;
}
.dl-resposta__ok { color: #4ade80; font-size: 13px; font-weight: 700; }
.dl-fac-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dl-respostas-grupo h4 { margin: 0 0 10px; font-size: 14px; }
.dl-respostas-lista { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; }
.dl-resposta-card {
    padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.dl-resposta-card strong { display: block; font-size: 12px; color: #93c5fd; margin-bottom: 4px; }
.dl-resposta-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.dl-empty { color: #94a3b8; font-size: 13px; margin: 0; }

/* Modal DNA do Time */
.dna-modal__box { width: min(980px, 96vw); max-height: 92vh; }
.dna-modal__body { overflow: auto; max-height: calc(92vh - 52px); background: var(--bg); }
.dna-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 18px 20px;
}
.dna-hero {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 16px 18px;
    border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--dna) 18%, #fff), var(--surface));
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.dna-hero__letter {
    width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
    font-size: 32px; font-weight: 900; color: #fff; background: var(--dna); box-shadow: 0 8px 20px color-mix(in srgb, var(--dna) 40%, transparent);
}
.dna-hero__kicker { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.dna-hero strong { display: block; font-size: 20px; margin-top: 2px; }
.dna-equilibrio { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.dna-equilibrio__bar { flex: 1; max-width: 140px; height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.dna-equilibrio__bar i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #22c55e); border-radius: 999px; }
.dna-equilibrio b { font-size: 12px; color: var(--text); }
.dna-panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.dna-panel h4 { margin: 0 0 12px; font-size: 13px; font-weight: 800; }
.dna-panel--grafico {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
}
.dna-panel--grafico h4,
.dna-panel--grafico .dna-insights-title { text-align: center; }
.dna-panel--grafico .disc-grafico {
    display: flex; justify-content: center; align-items: center;
    width: 100%; margin: 0 auto 8px;
}
.dna-panel--grafico .disc-grafico img { margin: 0 auto; }
.dna-panel--grafico .dna-insights { text-align: left; }
.dna-insights-title { margin: 14px 0 10px; font-size: 13px; font-weight: 800; }
.dna-dist { display: flex; flex-direction: column; gap: 10px; }
.dna-dist__item small { font-size: 10.5px; color: var(--text-muted); }
.dna-dist__head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.dna-dist__head b { margin-left: auto; font-size: 13px; }
.dna-dist__tag { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; }
.dna-dist__track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 3px; }
.dna-dist__track i { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.dna-insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dna-insights__item {
    padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; font-weight: 600;
    border-left: 4px solid var(--border); background: var(--surface-2);
}
.dna-insights__item--ok { border-left-color: #22c55e; background: rgba(34, 197, 94, .08); }
.dna-insights__item--alerta { border-left-color: #f59e0b; background: rgba(245, 158, 11, .08); }
.dna-insights__item--dica { border-left-color: #6366f1; background: rgba(99, 102, 241, .08); }
@media (max-width: 760px) {
    .dna-grid { grid-template-columns: 1fr; }
}
.btn--rank-comp { background: #e5484d; color: #fff; }
.btn--rank-comp:hover { background: #c93b40; color: #fff; }

/* Botão "Gerar" (laranja, igual ao legado) — relatório ainda não liberado para o cliente. */
.btn--gerar { background: #f8ac59; color: #fff; box-shadow: 0 4px 12px rgba(248,172,89,.35); }
.btn--gerar:hover { background: #f0993a; color: #fff; transform: translateY(-1px); }
.disc-gerar-form { display: inline; margin: 0; }
.disc-acoes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.disc-acoes .btn--sm { white-space: nowrap; }
.btn--disc-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 8px;
    background: #e5484d;
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(229, 72, 77, 0.35);
    line-height: 1;
}
.btn--disc-pdf:hover {
    background: #c93b40;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(229, 72, 77, 0.4);
}
.btn--disc-pdf i {
    font-size: 13px;
}

/* Mensagens de retorno ao gerar relatório. */
.disc-flash { max-width: 720px; margin: 0 auto 14px; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.disc-flash--ok { background: #e6f7ec; color: #1b7a3d; border: 1px solid #b6e6c6; }
.disc-flash--err { background: #fdecec; color: #c0392b; border: 1px solid #f3c2c2; }

/* Paginação no topo, centralizada. */
.disc-pager { display: flex; justify-content: center; margin-bottom: 14px; }
.disc-pager .pagination { margin: 0; justify-content: center; }

/* Modal de confirmação (gerar relatório). */
.confirm { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; }
.confirm.is-open { display: flex; }
.confirm__backdrop { position: absolute; inset: 0; background: rgba(20,30,55,0.55); backdrop-filter: blur(3px); }
.confirm__box {
    position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px;
    padding: 30px 28px 24px; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,0.32);
    animation: confirmIn 0.18s ease-out;
}
@keyframes confirmIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.confirm__icon {
    width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f8ac59, #f0993a); color: #fff; font-size: 24px;
    box-shadow: 0 8px 20px rgba(248,172,89,0.4);
}
.confirm__titulo { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--text); }
.confirm__msg { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.confirm__msg strong { color: var(--brand); }
.confirm__acoes { display: flex; gap: 10px; justify-content: center; }
.confirm__acoes .btn { min-width: 120px; justify-content: center; }

/* Botão amarelo (ordenações de ranking: melhor nota/competência). */
.btn--warning { background: #f0ad4e; color: #fff; }
.btn--warning:hover { background: #e09a35; color: #fff; transform: translateY(-1px); }

/* Ranking por cargo. */
.disc-cargo-col { text-align: center; font-size: 11px; max-width: 120px; overflow-wrap: anywhere; }
.disc-melhor { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 800; }

/* Nota do cargo clicável (abre a correlação) */
.disc-cargo-nota { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.disc-cargo-nota:hover { filter: brightness(.85); }

/* Detalhe da correlação com cargo (modal): 3 gráficos lado a lado */
.cargo-corr__graficos { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.cargo-corr__g { text-align: center; }
.cargo-corr__cols { display: flex; justify-content: space-around; width: 105px; margin: 0 auto 4px; font-weight: 800; color: #2F328F; font-size: 13px; }
.cargo-corr__leg { margin-top: 8px; font-size: 12px; font-weight: 700; color: #2b3550; max-width: 120px; }

/* Modal "Configurar cargos". */
.cargo-modal__box { height: auto; max-height: 92vh; top: 4vh; width: min(880px, 96vw); }
.cargo-modal__body { padding: 18px 20px 24px; overflow-y: auto; }
.cargo-modal__body h4 { margin: 0 0 10px; font-size: 15px; color: var(--brand); }
.cargo-lista { margin-bottom: 26px; }
.cargo-hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 12px; }
.cargo-hint strong { color: var(--brand); }
.cargo-badge { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.cargo-form__lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; margin-top: 12px; }
.cargo-form__lbl:first-of-type { margin-top: 0; }
.cargo-form input[name="nome"] { width: 100%; max-width: 320px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.grupo-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.grupo-pager__info { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.grupo-pager .btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Modal de grupos: alterna entre a lista e o formulário (sem amontoar tudo). */
.grupo-modal__body .grupo-view[hidden] { display: none; }
.grupo-view__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.grupo-view__head h4 { margin: 0; }
.grupo-view__head .btn { margin-left: auto; }
#grupoViewForm .grupo-view__head .btn { margin-left: 0; }
#grupoViewForm .grupo-view__head h4 { margin-left: 4px; }
.grupo-tabela th, .grupo-tabela td { vertical-align: middle; }
.grupo-form__linha { margin-bottom: 16px; }
.grupo-form__linha input[type="text"] { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.grupo-form__grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px;
}
@media (max-width: 720px) {
    .grupo-form__grid-2 { grid-template-columns: 1fr; }
}
.grupo-form__hint { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.grupo-form__url {
    margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--brand-soft, #eef2ff);
    border: 1px solid var(--border); font-size: 12px; word-break: break-all; color: var(--brand);
}
.grupo-form__url[hidden] { display: none !important; }
.grupo-form__count { font-weight: 600; color: var(--brand); font-size: 12px; }
.grupo-form__botoes { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface, #fff); z-index: 2; }
.grupo-link-full {
    display: inline-block; max-width: 360px; font-size: 12px; font-weight: 600;
    color: var(--brand); word-break: break-all; line-height: 1.35; text-decoration: none;
}
.grupo-link-full:hover { text-decoration: underline; }

/* Seletor de pessoas moderno (busca + lista de checkboxes) */
.people-picker { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.people-picker__bar { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--surface-2, #f7f8fa); flex-wrap: wrap; }
.people-picker__search { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.people-picker__search i { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.people-picker__search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; font-size: 14px; }
.people-picker__search input:focus { outline: none; }
.people-picker__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,61,101,0.12); }
.people-picker__acoes { display: flex; gap: 6px; }
.people-picker__btn { border: 1px solid var(--border); background: #fff; color: var(--brand); font-weight: 600; font-size: 12px; padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; }
.people-picker__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.people-picker__list { max-height: 140px; overflow-y: auto; padding: 4px; display: flex; flex-direction: column; gap: 1px; }
.people-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: background .12s; }
.people-item:hover { background: rgba(41,61,101,0.06); }
.people-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.people-item__check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px; color: #fff; font-size: 11px; flex-shrink: 0; transition: background .12s, border-color .12s; }
.people-item__check i { opacity: 0; transform: scale(.5); transition: opacity .12s, transform .12s; }
.people-item.is-sel { background: rgba(41,61,101,0.10); }
.people-item.is-sel .people-item__check { background: var(--brand); border-color: var(--brand); }
.people-item.is-sel .people-item__check i { opacity: 1; transform: scale(1); }
.people-item__nome { line-height: 1.2; }
.people-picker__vazio { padding: 18px; text-align: center; color: var(--text-muted); font-size: 13px; }
.cargo-form__check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 14px 0; }
.cargo-form__check input { width: 16px; height: 16px; }
.cargo-form .select2-container { margin-bottom: 4px; }
.cargo-acoes-col { text-align: right; }
.cargo-acoes { text-align: right; white-space: nowrap; }
.cargo-acoes .btn { margin-left: 4px; }
.cargo-form__botoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cargo-form__botoes .btn[hidden] { display: none; }
.cargo-sim { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: start; margin: 10px 0 16px; }
.cargo-disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cargo-disc__col { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface-2); }
.cargo-disc__letra { display: block; text-align: center; font-weight: 800; font-size: 17px; color: var(--brand); margin-bottom: 8px; }
.cargo-disc__opt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 0; cursor: pointer; }
.cargo-disc__opt.is-disabled { opacity: .4; cursor: not-allowed; }

/* Simulador DISC (gráfico ao vivo) */
.cargo-grafico { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); position: sticky; top: 0; }
.cargo-grafico__titulo { text-align: center; font-weight: 700; font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.cargo-grafico__cols { display: flex; justify-content: space-around; font-weight: 800; color: #2F328F; font-size: 13px; margin-bottom: 4px; }
.cargo-grafico__img { min-height: 230px; display: flex; align-items: center; justify-content: center; transition: opacity .15s; }
.cargo-grafico__img.is-loading { opacity: .4; }
.cargo-grafico__img img { max-width: 100%; height: auto; }
@media (max-width: 720px) { .cargo-sim { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cargo-disc { grid-template-columns: repeat(2, 1fr); } }

.disc-paginfo { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }

.disc-grid th.sortable a { color: inherit; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.disc-grid th.sortable a:hover { text-decoration: underline; }
.disc-grid th.sortable .seta { font-size: 10px; opacity: .8; }
.disc-comp-col { text-align: center; padding: 4px !important; }
.disc-comp-col img { width: 26px; height: 26px; vertical-align: middle; }
.disc-comp-col span { font-size: 9px; }
.disc-comp-cell { text-align: center; font-weight: 700; font-size: 12px; }

/* Cabeçalho das competências: ícone relevante, colorido pelo fator DISC (igual ao VIP). */
.disc-comp-col { white-space: nowrap; }
.comp-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 6px rgba(15,20,40,.18);
}
.comp-chip i { font-size: 26px; line-height: 1; }

.comp-legenda, .insig-legenda {
    background: #f6f8fc; border: 1px solid #e4e9f2; border-radius: 12px;
    padding: 12px 16px; margin-bottom: 14px;
}
.comp-legenda__titulo { display: block; font-size: 12px; font-weight: 700; color: #44506b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.comp-legenda__lista { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.comp-legenda__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #2b3550; }
.comp-legenda__chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 13px;
}
/* Ícone da competência nos cards do relatório VIP (substitui a letra DISC). */
.comp-ico-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 15px;
    margin-right: 8px; flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(15,20,40,.18);
}

/* Insígnias de correlação (substituem a nota %) — clicáveis. */
.insig-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 14px;
    box-shadow: 0 2px 5px rgba(15,20,40,.18);
}
.insig-badge--lg { width: 54px; height: 54px; font-size: 26px; }
.insig-btn {
    border: 0; background: transparent; padding: 0; cursor: pointer; line-height: 0;
    transition: transform .12s ease;
}
.insig-btn:hover { transform: scale(1.18); }
.insig-legenda__lista { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.insig-legenda__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #2b3550; }
.insig-legenda__item .insig-badge { width: 26px; height: 26px; font-size: 12px; }

/* Legenda das insígnias compacta: tudo em uma linha. */
.insig-legenda--compacta .insig-legenda__lista { flex-wrap: nowrap; gap: 4px 10px; overflow-x: auto; }
.insig-legenda--compacta .insig-legenda__item { font-size: 10.5px; gap: 5px; white-space: nowrap; }
.insig-legenda--compacta .insig-legenda__item .insig-badge { width: 18px; height: 18px; font-size: 9px; flex: none; }
.disc-comp-cell { text-align: center; }
.disc-comp-cell .insig-badge { vertical-align: middle; }

/* Destaque da melhor competência da linha (ao ordenar por melhor competência). */
.disc-comp-best { background: rgba(245,158,11,.14); border-radius: 10px; }
.disc-comp-best .insig-btn { position: relative; }
.disc-comp-best .insig-badge { box-shadow: 0 0 0 3px rgba(245,158,11,.85); transform: scale(1.1); }
.disc-comp-best__star { position: absolute; top: -6px; right: -6px; font-size: 11px; color: #f59e0b; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* Tela de correlação por competência (modal). */
.comp-corr { max-width: 720px; margin: 0 auto; }
.comp-corr__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.comp-corr__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px; color: #fff; font-size: 26px;
    box-shadow: 0 8px 18px rgba(15,20,40,.22);
}
.comp-corr__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted, #7a849c); }
.comp-corr__head h2 { font-size: 22px; color: var(--c, #293d65); margin: 2px 0 0; }
.comp-corr__score {
    display: flex; align-items: center; gap: 14px;
    background: #f6f8fc; border: 1px solid #e4e9f2; border-radius: 14px;
    padding: 14px 18px; margin-bottom: 16px;
}
.comp-corr__pct { font-size: 30px; font-weight: 800; color: #1f2a44; line-height: 1; }
.comp-corr__rot { font-size: 14px; color: #44506b; margin-top: 4px; }
.comp-corr__txt { font-size: 15px; line-height: 1.7; color: #2b3550; }
.comp-corr__nome { color: #d63b4b; }
.comp-corr__def { font-size: 14px; line-height: 1.7; color: #2b3550; }

/* Grid DISC sem scroll horizontal: o conteúdo quebra de linha em vez de gerar rolagem. */
.disc-table-wrap { overflow-x: hidden; }
.disc-table-wrap .disc-grid { width: 100%; }
.disc-table-wrap .disc-grid th,
.disc-table-wrap .disc-grid td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
/* Colunas que não devem quebrar (ID, Data, Status, Ações) */
.disc-table-wrap .disc-grid th.col-nowrap,
.disc-table-wrap .disc-grid td.col-nowrap { white-space: nowrap; overflow-wrap: normal; word-break: normal; }

/* Modal de relatório (iframe LIGHT/PRO/VIP a partir do /disc) */
.rel-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.rel-modal.is-open { display: block; }
#discProIaPickerModal,
#coachModal,
#coachSaldoModal,
#quimicaModal,
#plano1a1Modal,
#planoAcaoModal,
#analiseDiscModal,
#iaSaldoModal { z-index: 1300; }
.rel-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.rel-modal__box {
    position: absolute; top: 2.5vh; left: 50%; transform: translateX(-50%);
    width: min(1180px, 97vw); height: 95vh; background: var(--surface);
    border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
    display: flex; flex-direction: column; overflow: hidden;
    z-index: 1;
}
.rel-modal__head {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: linear-gradient(120deg, var(--header-bg, var(--brand)), var(--brand-dark)); color: #fff;
    flex-wrap: wrap;
}
.rel-modal__head h3 { font-size: 15px; font-weight: 700; margin: 0; flex: 1; min-width: 180px; }
.rel-modal__tools {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.rel-modal__email {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rel-modal__email-input {
    width: min(240px, 42vw); min-width: 160px;
    padding: 8px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12); color: #fff; font-size: 13px;
}
.rel-modal__email-input::placeholder { color: rgba(255,255,255,.65); }
.rel-modal__email-input:focus {
    outline: none; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.18);
}
.rel-modal__email-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #0ea5e9; color: #fff; font-weight: 800; font-size: 13px;
    padding: 9px 14px; border-radius: 10px; border: 0; cursor: pointer;
    box-shadow: 0 6px 18px rgba(14,165,233,.35);
    transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
}
.rel-modal__email-btn:hover:not(:disabled) {
    background: #0284c7; transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(2,132,199,.45);
}
.rel-modal__email-btn:disabled { opacity: .65; cursor: not-allowed; }
.rel-modal__pdf {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: #16a34a; color: #fff; font-weight: 800; font-size: 13.5px;
    padding: 9px 18px; border-radius: 10px; box-shadow: 0 6px 18px rgba(22,163,74,.45);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.rel-modal__pdf:hover { background: #15893f; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(22,163,74,.55); color: #fff; }
.rel-modal__close { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rel-modal__close:hover { background: rgba(255,255,255,.3); }
.rel-modal__close svg { width: 16px; height: 16px; }
.rel-modal__frame { flex: 1; border: 0; width: 100%; background: var(--bg, #f4f6fb); }
.rel-modal__loading { position: absolute; inset: 52px 0 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 13px; pointer-events: none; }
.rel-modal__spin { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: relspin .8s linear infinite; }
@keyframes relspin { to { transform: rotate(360deg); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; color: var(--text); }
.page-head .accent { width: 50px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); margin-top: 9px; }
.page-head p { color: var(--text-muted); margin: 5px 0 0; }

/* ---------------------------------------------------------------- Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card__body { padding: 22px; }
.card__hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.card__head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.modulos-picker { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.modulos-picker.is-loading-empresa .modulos-picker__toolbar,
.modulos-picker.is-loading-empresa .modulos-picker__grupos {
    opacity: .45;
    pointer-events: none;
}
.modulos-picker__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-2, #f8f9fb) 0%, #fff 100%);
    flex-wrap: wrap;
}
.modulos-picker__search {
    flex: 1 1 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.modulos-picker__search i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.modulos-picker__search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    font-size: 14px;
}
.modulos-picker__search input:focus { outline: none; }
.modulos-picker__search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(41, 61, 101, 0.12);
}
.modulos-picker__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.modulos-picker__btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    font-size: 12px;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.modulos-picker__btn:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.modulos-picker__btn--ghost:hover { background: var(--surface-2, #f3f4f6); color: var(--text); border-color: var(--border); }
.modulos-picker__total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.modulos-picker__empty {
    margin: 0;
    padding: 16px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--surface-2, #f8f9fb);
    border-bottom: 1px solid var(--border);
}
.modulos-picker__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff 0%, var(--surface-2, #f8f9fb) 100%);
}
.modulos-picker__loading.is-hidden { display: none; }
.modulos-picker__loading-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(27, 42, 89, .08);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}
.modulos-picker__spin {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: relspin .8s linear infinite;
    flex-shrink: 0;
}
.modulos-picker__grupos { display: flex; flex-direction: column; }

.modulo-grupo { border-bottom: 1px solid var(--border); }
.modulo-grupo:last-child { border-bottom: 0; }
.modulo-grupo__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(135deg, var(--mc-soft) 0%, #fff 72%);
    transition: background .12s;
}
.modulo-grupo__head::-webkit-details-marker { display: none; }
.modulo-grupo[open] > .modulo-grupo__head {
    box-shadow: inset 4px 0 0 var(--mc);
}
.modulo-grupo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--mc);
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--mc) 35%, transparent);
}
.modulo-grupo__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.modulo-grupo__nome { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.2; }
.modulo-grupo__sub { font-size: 12px; color: color-mix(in srgb, var(--mc) 55%, var(--text-muted)); font-weight: 600; }
.modulo-grupo__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.modulo-grupo__count {
    font-size: 11px;
    font-weight: 800;
    color: var(--mc);
    background: color-mix(in srgb, var(--mc-soft) 80%, #fff);
    border: 1px solid color-mix(in srgb, var(--mc) 18%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.modulo-grupo__toggle {
    border: 1px solid color-mix(in srgb, var(--mc) 25%, var(--border));
    background: #fff;
    color: var(--mc);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
}
.modulo-grupo__toggle:hover {
    background: var(--mc);
    border-color: var(--mc);
    color: #fff;
}
.modulo-grupo__chevron {
    color: var(--mc);
    font-size: 11px;
    width: 18px;
    text-align: center;
    transition: transform .18s ease;
}
.modulo-grupo[open] .modulo-grupo__chevron { transform: rotate(180deg); }
.modulo-grupo__body {
    padding: 10px 12px 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--mc-soft) 45%, #fff) 0%, #fff 100%);
}

.modulo-subgrupo { margin-top: 8px; }
.modulo-subgrupo:first-child { margin-top: 0; }
.modulo-subgrupo__label {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mc);
    background: color-mix(in srgb, var(--mc-soft) 70%, #fff);
    border-radius: 999px;
}

.modulo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}
.modulo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 0 0 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.modulo-card:hover {
    border-color: color-mix(in srgb, var(--mc) 35%, var(--border));
    box-shadow: 0 4px 12px color-mix(in srgb, var(--mc) 10%, transparent);
}
.modulo-card__stripe {
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--mc) 0%, color-mix(in srgb, var(--mc) 55%, #fff) 100%);
    flex-shrink: 0;
}
.modulo-card__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 0;
}
.modulo-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.modulo-card__nome {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modulo-card__tag {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 1px 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mc) 16%, #fff);
    color: var(--mc);
}
.modulo-card__sub {
    display: block;
    min-height: 14px;
    font-size: 10px;
    line-height: 1.2;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modulo-card__sub:empty { display: none; min-height: 0; }
.modulo-card__status {
    display: block;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.modulo-card__switch { flex-shrink: 0; }
.modulo-card__switch .switch__track {
    width: 36px;
    height: 20px;
}
.modulo-card__switch .switch__track::after {
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
}
.modulo-card__switch .switch input:checked + .switch__track::after {
    transform: translateX(16px);
}
.modulo-card .switch input:checked + .switch__track { background: var(--mc, var(--brand)); }
.modulo-card.is-on {
    border-color: color-mix(in srgb, var(--mc) 40%, var(--border));
    background: linear-gradient(180deg, color-mix(in srgb, var(--mc-soft) 50%, #fff) 0%, #fff 100%);
}
.modulo-card.is-on .modulo-card__status { color: var(--mc); }

.is-hidden,
.modulo-card.is-hidden-visao,
.modulo-card.is-hidden-busca,
.modulo-card.is-hidden-adm,
.modulo-card.is-hidden-empresa { display: none !important; }

@media (max-width: 1200px) {
    .modulo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .modulo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .modulo-grupo__head {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
    .modulo-grupo__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 52px;
    }
}
@media (max-width: 520px) {
    .modulo-grid { grid-template-columns: 1fr; }
}
.card__head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__head h2 { font-size: 16px; }

/* Card recolhível (details/summary) */
.card--collapse > summary { list-style: none; cursor: pointer; user-select: none; justify-content: flex-start; }
.card--collapse > summary::-webkit-details-marker { display: none; }
.card--collapse > summary:hover { background: var(--brand-soft); }
.card--collapse:not([open]) > summary { border-bottom: none; }
.card--collapse .card__chevron { color: var(--text-muted); transition: transform 0.2s ease; margin-left: auto; }
.card--collapse[open] .card__chevron { transform: rotate(180deg); }
.card__plus {
    flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 15px;
    box-shadow: 0 4px 12px rgba(41, 61, 101, 0.3);
}
.card--collapse:not([open]) .card__plus { animation: plusPulse 1.8s ease-in-out infinite; }
.card--collapse[open] .card__plus { transform: rotate(45deg); transition: transform 0.2s ease; }
@keyframes plusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(41, 61, 101, 0.40); }
    50% { box-shadow: 0 0 0 7px rgba(41, 61, 101, 0); }
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    opacity: 0.9;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 15px; }
.stat__icon svg { width: 23px; height: 23px; }
.stat__value { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.stat__label { color: var(--text-muted); font-size: 13px; margin-top: 7px; font-weight: 600; }

/* progress */
.progress { height: 10px; border-radius: 8px; background: var(--brand-soft); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); transition: width 0.5s ease; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 13.5px; cursor: pointer;
    border: 1px solid transparent; transition: all 0.18s ease; line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 6px 16px rgba(41,61,101,0.32); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(41,61,101,0.42); }
.btn--ghost { background: var(--surface); color: var(--brand); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand-soft-2); }
.btn--danger { background: #fff; color: var(--danger); border-color: rgba(229,72,77,0.3); }
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--sm { padding: 7px 13px; font-size: 12.5px; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; }
table.data thead th {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 10px 14px; font-weight: 700; white-space: nowrap;
}
table.data thead th.sortable a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
table.data thead th.sortable a:hover { text-decoration: underline; }
table.data thead th.sortable .seta { font-size: 10px; opacity: .85; }
table.data tbody td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 12.5px; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover td { background: var(--brand-soft); }
.cell-strong { font-weight: 700; color: var(--text); }
.col-center { text-align: center !important; }
.col-center .btn { float: none; }

/* Botão de ação sob um campo (ex.: cadastrar novo participante) */
.btn--xs { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.field-add-btn { margin-top: 8px; align-self: flex-start; }

/* Barra de envio de lembretes em fila */
.lembrete-bar { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.lembrete-bar__field { margin: 0; min-width: 260px; flex: 1 1 260px; max-width: 360px; }
.lembrete-bar .btn { white-space: nowrap; }
.lembrete-bar__check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; padding-bottom: 8px; }
.lembrete-bar__check input { width: 16px; height: 16px; }

/* Barra de progresso da importação */
.import-progress { margin-top: 14px; }
.import-progress__bar { height: 10px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.import-progress__bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }
.import-progress p { margin: 8px 0 0; font-size: 13px; }

/* Resultado / logs da importação */
.import-resumo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.import-logs { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.import-logs .import-log { padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.import-logs .import-log:last-child { border-bottom: 0; }
.import-log--ok { color: var(--text); }
.import-log--ok i { color: #16a34a; margin-right: 6px; }
.import-log--erro { color: #b91c1c; background: rgba(239,68,68,0.06); }
.import-log--erro i { color: #dc2626; margin-right: 6px; }

/* Modal de formulário (cadastro rápido) */
.modal__box--form { width: min(460px, 94vw); }
.modal__form { padding: 22px; }
.modal__form .field { margin-bottom: 14px; }
.modal__form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.np-erro { color: var(--danger, #dc2626); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.cell-muted { color: var(--text-muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge--success { background: rgba(18,160,107,0.12); color: var(--success); }
.badge--warning { background: rgba(224,138,30,0.14); color: var(--warning); }
.badge--muted { background: var(--brand-soft); color: var(--text-muted); }
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--danger { background: rgba(229,72,77,0.13); color: #d93640; }
.badge--info { background: rgba(59,130,246,0.13); color: #2563eb; }
.badge--assin-full { background: rgba(41,61,101,0.14); color: #293D65; }
.badge--assin-fee { background: rgba(224,138,30,0.16); color: #b45309; }
.badge--assin-light { background: rgba(13,148,136,0.14); color: #0f766e; }
.data-dentro { color: var(--success); font-weight: 700; }
.data-fora { color: #d93640; font-weight: 700; }

/* ---------------------------------------------------------------- Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.field > input[type=text], .field > input[type=email], .field > input[type=password],
.field > input[type=number], .field > input[type=date], .field > select, .field > textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; color: var(--text); background: var(--surface-2); transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field > input:focus, .field > select:focus, .field > textarea:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft);
}
.field .hint { font-size: 11.5px; color: var(--text-muted); }
.field .error { font-size: 12px; color: var(--danger); font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch__track { width: 44px; height: 24px; border-radius: 999px; background: var(--border); position: relative; transition: background 0.18s; flex-shrink: 0; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.18s; }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* color swatch input */
.color-input { display: flex; align-items: center; gap: 12px; }
.color-input input[type=color] { width: 46px; height: 42px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.logo-preview { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 88px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #293D65; transition: background 0.18s; }
.logo-preview img { max-height: 60px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.file-input { margin-top: 10px; width: 100%; font: inherit; color: var(--text-muted); }
.file-input::file-selector-button { font: inherit; padding: 8px 14px; margin-right: 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; transition: background 0.18s, border-color 0.18s; }
.file-input::file-selector-button:hover { border-color: var(--brand); background: var(--brand-soft); }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.prefix-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.prefix-input__tag { display: flex; align-items: center; padding: 0 12px; background: var(--brand-soft); color: var(--text); font-weight: 600; border-right: 1px solid var(--border); }
.prefix-input input { flex: 1; border: 0; outline: none; padding: 11px 14px; font: inherit; background: transparent; }

/* Foto do usuário (upload + preview) */
.usuario-foto { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.usuario-foto__thumb { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; border: 1px solid var(--border); background: var(--brand-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--brand); font-size: 30px; }
.usuario-foto__thumb img { width: 100%; height: 100%; object-fit: cover; }
.usuario-foto__acao { flex: 1; min-width: 0; }
.usuario-foto__label { display: block; font-weight: 600; margin-bottom: 6px; }

/* Select2 alinhado ao visual dos inputs do formulário */
.field .select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 14px; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.select2-dropdown { border-color: var(--border); border-radius: 10px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.select2-search--dropdown .select2-search__field { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }

/* ---------------------------------------------------------------- Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 380px; }
.search input { width: 100%; padding: 11px 14px 11px 42px; border: 1px solid var(--border); border-radius: 999px; font: inherit; background: var(--surface); transition: box-shadow 0.18s, border-color 0.18s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); }

/* ---------------------------------------------------------------- Flash / alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.alert--success { background: rgba(18,160,107,0.12); color: var(--success); }
.alert--error { background: rgba(229,72,77,0.1); color: var(--danger); }
.alert--warning { background: rgba(220,150,20,0.12); color: #9a6a00; }

/* empty state */
.empty { text-align: center; padding: 54px 20px; color: var(--text-muted); }
.empty svg { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 12px; }

/* tabs (tipos de processo) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 13px; color: var(--text-muted); transition: all 0.16s; }
.tab:hover { border-color: var(--brand-soft-2); color: var(--brand); }
.tab.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(41,61,101,0.28); }

/* pagination */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; transition: all 0.15s; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination [aria-disabled=true] span { opacity: 0.4; }

.overlay { display: none; position: fixed; inset: 0; background: rgba(20,30,55,0.5); z-index: 55; backdrop-filter: blur(2px); }

/* avaliacao 360 — cards (desktop usa tabela, mobile vira cards) */
.aval-cards { display: none; }
.aval-table__acoes { vertical-align: middle; }
.aval-table .aval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    max-width: 168px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    transform: none;
}
.aval-table .aval-btn:hover { transform: none; box-shadow: none; filter: brightness(1.05); }
.aval-table .btn--primary.aval-btn { box-shadow: none; }
.aval-table .btn--primary.aval-btn:hover { box-shadow: none; }
.aval-table .btn--sky.aval-btn { box-shadow: none; }
.aval-table .btn--sky.aval-btn:hover { box-shadow: none; filter: brightness(1.05); }
.aval-card .aval-btn {
    min-width: 200px;
    min-height: 36px;
    white-space: normal;
    text-align: center;
    box-shadow: none;
}
.aval-card .aval-btn:hover { transform: none; box-shadow: none; }
.aval-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 14px; }
.aval-card__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.aval-card__k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.aval-card__v { font-weight: 600; text-align: right; }
.aval-card .btn { width: 100%; margin-top: 12px; }
.aval-card__actions { text-align: center; margin-top: 12px; }
.aval-card__actions .btn { width: auto; margin-top: 0; }

/* questionario */
.q-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.q-item:last-child { border-bottom: none; }
.q-item h3 { font-size: 15px; }
.q-item p { color: var(--text-muted); margin: 4px 0 14px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale label { cursor: pointer; }
.scale input { display: none; }
.scale span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--border); font-weight: 700; background: var(--surface); transition: all 0.15s; }
.scale label:hover span { border-color: var(--brand); }
.scale input:checked + span { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; transform: scale(1.06); }

.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.q-opt:hover { border-color: var(--brand); }
.q-opt input { accent-color: var(--brand); }
.q-opt:has(input:checked) { border-color: var(--brand); background: rgba(40,80,200,.06); }

/* ---------------------------------------------------------------- Login */
.login-page { min-height: 100vh; }

.login-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -5%, rgba(255,255,255,.12), transparent 55%),
        radial-gradient(700px 360px at 0% 100%, rgba(255,255,255,.08), transparent 50%),
        linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 48%, color-mix(in srgb, var(--brand) 70%, #1a2744) 100%);
}

.login-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: .45;
}
.login-bg__orb--1 {
    width: 320px;
    height: 320px;
    top: 8%;
    left: -80px;
    background: rgba(255,255,255,.18);
}
.login-bg__orb--2 {
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: 10%;
    background: color-mix(in srgb, var(--brand) 40%, #5b8cff);
}

.login-lang {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.22);
}
.login-lang a { color: rgba(255,255,255,.85); }
.login-lang a:hover { background: rgba(255,255,255,.14); color: #fff; }
.login-lang a.is-active { background: #fff; color: var(--brand); }

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.login-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(8, 14, 35, .22);
    padding: 20px 32px 28px;
}

.login-card__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.login-lang-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.login-lang-picker__icon {
    display: flex;
    color: var(--text-muted);
    line-height: 0;
}
.login-lang-picker__track {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e8ebf2;
    gap: 2px;
}
.login-lang-picker__btn {
    min-width: auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: color .15s, background .15s, box-shadow .15s;
}
.login-lang-picker__btn:hover {
    color: var(--brand);
}
.login-lang-picker__btn.is-active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 2px 8px rgba(20, 30, 55, .12);
}

.login-brand { text-align: center; margin-bottom: 28px; padding-top: 4px; }
.login-brand__logo { display: flex; justify-content: center; }
.login-brand__logo img {
    width: auto;
    max-width: min(100%, 320px);
    max-height: 120px;
    height: auto;
    object-fit: contain;
}
.login-brand__fallback {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(41,61,101,.28);
}

.login-form { display: flex; flex-direction: column; gap: 2px; }
.login-form .field { margin-bottom: 14px; }

.login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.login-input input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 13px 0;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}
.login-input input:focus { outline: none; }
.login-input:focus-within {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.login-input:focus-within svg { color: var(--brand); }

.login-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
}
.login-remember span:last-child {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}
.login-forgot {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.login-forgot:hover { text-decoration: underline; }

.login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent);
    transition: transform .12s, box-shadow .15s;
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 40%, transparent);
}

.login-copy {
    margin: 22px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.login-about {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: -.01em;
}
.login-about:hover { text-decoration: underline; }
.login-support {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
.login-support:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 520px) {
    .login-card { padding: 16px 20px 22px; border-radius: 20px; }
    .login-brand__logo img { max-height: 96px; }
    .login-lang-picker__btn { padding: 6px 10px; font-size: 11px; }
    .login-form__row { flex-direction: column; align-items: flex-start; }
}

/* legado: lang-switch dentro do card */
.lang-switch--login { justify-content: center; width: max-content; margin: 0 auto 18px; }

/* ---------------------------------------------------------------- Error pages */
.error-shell { max-width: 520px; }

.error-card {
    text-align: center;
    padding: 28px 32px 32px;
}

.error-card__logo {
    margin-bottom: 24px;
}
.error-card__logo img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}
.error-card__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    font-size: 24px;
}

.error-card__oops {
    margin: 0 0 8px;
    font-size: clamp(2.75rem, 10vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-card__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.error-card__messages {
    margin: 0 auto 26px;
    max-width: 42ch;
}
.error-card__messages p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
.error-card__messages p:last-child {
    margin-bottom: 0;
}

.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.error-card__actions .btn {
    min-width: 140px;
    padding: 12px 22px;
    border-radius: 999px;
}

@media (max-width: 520px) {
    .error-card { padding: 22px 20px 26px; }
    .error-card__actions .btn { flex: 1 1 100%; min-width: 0; }
}

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.is-open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: grid; place-items: center; }
    .overlay.is-open { display: block; }
    .form-grid { grid-template-columns: 1fr; }

    .aval-table { display: none; }
    .aval-cards { display: block; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .content { padding: 18px 14px; }
    .topbar { padding: 0 14px; }
    .topbar__client, .topbar__sep { display: none; }
    .topbar .lang-switch a { padding: 6px 8px; font-size: 11px; }
    .topbar__logo { height: 38px; padding: 4px 9px; }
    .topbar__logo img { max-height: 28px; max-width: 110px; }
}

/* ================================================================ Painel Executivo */
.exec { display: flex; flex-direction: column; gap: 18px; }

.exec-hello { padding: 4px 2px 2px; }
.exec-hello__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.exec-hello__tag svg { width: 13px; height: 13px; }
.exec-hello h1 { font-size: 28px; margin-top: 10px; font-weight: 800; }
.exec-hello h1 span { color: var(--brand); }

/* Empty state do painel */
.exec-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 28px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; }
.exec-empty__icon { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand-soft), var(--brand-soft-2)); color: var(--brand); margin-bottom: 20px; }
.exec-empty__icon svg { width: 42px; height: 42px; }
.exec-empty h2 { font-size: 20px; font-weight: 800; }
.exec-empty p { color: var(--text-muted); font-size: 14px; max-width: 520px; margin: 10px 0 0; line-height: 1.6; }
.exec-empty__hint { margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 8px 16px; border-radius: 999px; }

/* mensagem "sem dados" por bloco/KPI */
.no-data { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 10px; color: var(--text-muted); text-align: center; }
.no-data svg { width: 26px; height: 26px; opacity: 0.5; flex-shrink: 0; }
.no-data span { font-size: 12.5px; font-weight: 600; }

.kpi--empty::before { background: var(--border); }
.kpi--empty .kpi__icon { background: var(--surface-2); color: var(--text-muted); }
.kpi--empty .no-data { padding: 8px 0 2px; }

.mini--empty .mini__icon { background: var(--surface-2); color: var(--text-muted); }
.mini .no-data { flex-direction: row; justify-content: flex-start; text-align: left; padding: 8px 0 0; gap: 7px; }

.total--empty .total__icon { background: var(--surface-2); color: var(--text-muted); }

.enps__empty .no-data { color: rgba(255,255,255,0.92); padding: 20px 0; }
.enps__empty .no-data svg { opacity: 0.85; }

.exec-section { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-top: 8px; padding-bottom: 4px; border-bottom: 2px solid var(--border); }
.exec-section span { display: inline; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-muted); font-size: 12px; margin-left: 8px; }

.exec-row { display: grid; gap: 18px; }
.exec-row--2 { grid-template-columns: 1fr 1fr; }
.exec-row--3 { grid-template-columns: repeat(3, 1fr); }
.exec-row--hc { grid-template-columns: 1.7fr 1fr; }

/* chip + subtitle no cabecalho dos cards */
.exec .card__head { flex-wrap: wrap; }
.exec .card__head small { flex-basis: 100%; order: 5; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.card__chip { margin-left: auto; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* pills de variacao */
.pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill--up { background: rgba(18, 160, 107, 0.12); color: var(--success); }
.pill--down { background: rgba(224, 72, 72, 0.12); color: #d6453c; }

/* KPIs principais */
.exec-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.kpi__icon svg { width: 19px; height: 19px; }
.kpi__value { font-size: 32px; font-weight: 800; line-height: 1; color: var(--text); }
.kpi__label { font-size: 13.5px; font-weight: 700; margin-top: 7px; }
.kpi__detail { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* barras horizontais (mapa da empresa) */
.hbar { margin-bottom: 16px; }
.hbar:last-child { margin-bottom: 0; }
.hbar__head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hbar__head strong { font-weight: 800; }
.hbar__track { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 30px; }
.hbar__fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-weight: 800; font-size: 12px; border-radius: 10px; min-width: 42px; transition: width 0.6s ease; }

/* sentimentos (feedbacks) */
.sentimentos { display: flex; justify-content: space-around; gap: 12px; margin-bottom: 16px; }
.sentimento { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sentimento__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-sm); }
.sentimento__label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.stacked { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; }
.stacked__seg { transition: flex 0.5s ease; }

/* barras verticais (distribuicao desempenho) */
.vbars { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 200px; padding-top: 10px; }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; height: 100%; gap: 6px; }
.vbar__val { font-size: 12px; font-weight: 800; }
.vbar__col { width: 100%; max-width: 64px; border-radius: 8px 8px 0 0; transition: height 0.6s ease; }
.vbar__lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-align: center; }

/* lideres */
.lider { margin-bottom: 18px; }
.lider:last-child { margin-bottom: 0; }
.lider__top { display: flex; align-items: center; gap: 8px; }
.lider__top strong { font-size: 26px; font-weight: 800; color: var(--brand); }
.lider p { font-size: 13px; color: var(--text-muted); margin: 4px 0 8px; }

/* legenda + headcount chart */
.legend { display: flex; gap: 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.hc-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 170px; }
.hc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; }
.hc-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; }
.hc-bar { width: 8px; border-radius: 4px 4px 0 0; min-height: 3px; transition: height 0.6s ease; }
.hc-lbl { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.hc-foot { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hc-pill { flex: 1; min-width: 120px; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.hc-pill span { font-size: 11px; font-weight: 700; opacity: 0.85; }
.hc-pill strong { font-size: 22px; font-weight: 800; }
.hc-pill--green { background: rgba(18, 184, 134, 0.12); color: #0f9d72; }
.hc-pill--red { background: rgba(255, 93, 115, 0.12); color: #e0435a; }
.hc-pill--blue { background: var(--brand-soft); color: var(--brand); }

/* eNPS (card gradiente) */
.enps { background: linear-gradient(150deg, #7c5cff, #b14bff 70%, #d44bd4); color: #fff; border: none; padding: 22px; }
.enps__top { display: flex; align-items: center; justify-content: space-between; }
.enps__heart svg { width: 26px; height: 26px; opacity: 0.95; }
.enps__chip { background: rgba(255,255,255,0.2); padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.enps__value { font-size: 46px; font-weight: 800; line-height: 1; margin-top: 14px; }
.enps__sub { font-size: 12px; opacity: 0.9; margin: 4px 0 18px; }
.enps-row { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.enps-row strong { text-align: right; font-weight: 800; }
.enps-track { background: rgba(255,255,255,0.22); height: 8px; border-radius: 6px; overflow: hidden; }
.enps-fill { height: 100%; background: #fff; border-radius: 6px; }

/* mini cards (turnover, absenteismo, diversidade) */
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.mini__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.mini__icon svg { width: 20px; height: 20px; }
.mini__value { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mini__label { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.mini__detail { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag--warn { background: rgba(224, 138, 30, 0.15); color: var(--warning); }

/* Nine Box */
.ninebox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nb { position: relative; border-radius: 16px; padding: 16px; min-height: 92px; color: #fff; background: linear-gradient(140deg, var(--nb), color-mix(in srgb, var(--nb) 70%, #000 12%)); box-shadow: var(--shadow-sm); overflow: hidden; }
.nb__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nb__title { font-size: 15px; font-weight: 800; }
.nb__qtd { background: rgba(255,255,255,0.25); border-radius: 9px; padding: 2px 10px; font-weight: 800; font-size: 14px; }
.nb__sub { font-size: 11.5px; opacity: 0.9; margin-top: 8px; line-height: 1.35; }

/* Nine Box modal (processos Zara) */
.modal__box--ninebox { width: min(1120px, 96vw); max-height: 92vh; }
.ninebox-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.ninebox-toolbar label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ninebox-toolbar__select {
    min-width: min(420px, 100%); flex: 1; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); font: inherit;
}
.ninebox-wrap {
    display: grid; grid-template-columns: 28px 1fr; gap: 8px 10px;
    padding: 16px 18px 8px;
}
.ninebox-axis--y {
    writing-mode: vertical-rl; transform: rotate(180deg);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase;
}
.ninebox-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ninebox-matrix {
    display: grid; grid-template-columns: 72px repeat(3, 1fr); gap: 10px; align-items: stretch;
}
.ninebox-row-label {
    display: flex; align-items: center; justify-content: flex-end; padding-right: 4px;
    font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-align: right;
}
.ninebox-foot { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; }
.ninebox-foot__spacer { display: block; }
.ninebox-labels-x {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ninebox-labels-x span {
    text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-muted);
}
.ninebox-axis--x {
    text-align: center; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase;
}
.nb--modal { min-height: 118px; padding: 12px; }
.nb--modal .nb__title { font-size: 13px; }
.nb--modal .nb__sub { font-size: 10.5px; margin-top: 6px; }
.nb__names {
    list-style: none; margin: 8px 0 0; padding: 0; max-height: 88px; overflow: auto;
    font-size: 10.5px; line-height: 1.45; opacity: 0.95;
}
.nb__names li + li { margin-top: 2px; }
.ninebox-table-wrap { padding: 8px 18px 18px; border-top: 1px solid var(--border); }
.ninebox-table .muted { color: rgba(255,255,255,.72); font-size: 11px; }
.ninebox-table td .muted { color: var(--text-muted); }
.nb-chip {
    display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
    color: #fff; background: linear-gradient(140deg, var(--nb), color-mix(in srgb, var(--nb) 70%, #000 12%));
}
@media (max-width: 820px) {
    .ninebox-matrix { grid-template-columns: 56px repeat(2, 1fr); }
    .ninebox-foot { grid-template-columns: 56px 1fr; }
}
@media (max-width: 560px) {
    .ninebox-matrix { grid-template-columns: 1fr; }
    .ninebox-row-label { justify-content: flex-start; padding: 4px 0 0; }
    .ninebox-foot { grid-template-columns: 1fr; }
    .ninebox-labels-x { grid-template-columns: 1fr; }
    .ninebox-wrap { grid-template-columns: 1fr; }
    .ninebox-axis--y { writing-mode: horizontal-tb; transform: none; justify-content: flex-start; }
}

/* Totais */
.exec-totais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.total { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.total__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex-shrink: 0; }
.total__icon svg { width: 24px; height: 24px; }
.total__value { font-size: 28px; font-weight: 800; line-height: 1; }
.total__label { font-size: 13px; font-weight: 700; margin-top: 3px; }
.total__detail { font-size: 11px; color: var(--text-muted); }

/* Distribuicao DISC */
.disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.disc__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.disc__circle { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.disc__qtd { font-size: 26px; font-weight: 800; }
.disc__lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.disc__pct { font-size: 12px; font-weight: 800; color: var(--brand); }

@media (max-width: 1100px) {
    .exec-kpis { grid-template-columns: repeat(2, 1fr); }
    .exec-row--hc { grid-template-columns: 1fr; }
    .exec-totais { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .exec-row--2, .exec-row--3 { grid-template-columns: 1fr; }
    .ninebox { grid-template-columns: 1fr 1fr; }
    .exec-hello h1 { font-size: 23px; }
}
@media (max-width: 560px) {
    .exec-kpis, .exec-totais, .disc { grid-template-columns: 1fr 1fr; }
    .ninebox { grid-template-columns: 1fr; }
    .vbars { height: 160px; }
}

/* ---------------------------------------------------------------- Botao Exibir (drill-down) */
.btn-exibir {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--brand); font-weight: 700; font-size: 11.5px; font-family: inherit;
    transition: all 0.16s ease; white-space: nowrap;
}
.btn-exibir svg { width: 13px; height: 13px; }
.btn-exibir:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px rgba(41,61,101,0.22); }
.kpi__top .btn-exibir, .total .btn-exibir { padding: 3px 9px; font-size: 10.5px; }
.card__head .btn-exibir { margin-left: auto; }
.exec-section .btn-exibir { margin-left: auto; }
.exec-section { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- Modal drill-down */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.modal__box {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(940px, 94vw); max-height: 86vh; display: flex; flex-direction: column;
    background: var(--surface); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45); animation: modalIn 0.18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal__head {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
}
.modal__head h3 { font-size: 16px; font-weight: 800; margin: 0; flex: 1; }
.modal__count { font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 999px; }
.modal__close {
    width: 32px; height: 32px; border-radius: 9px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.16); color: #fff; display: grid; place-items: center;
    transition: background 0.16s ease;
}
.modal__close:hover { background: rgba(255,255,255,0.3); }
.modal__close svg { width: 16px; height: 16px; }
.modal__body { padding: 0; overflow: auto; }
.modal__loading, .modal__empty { padding: 48px 20px; text-align: center; color: var(--text-muted); font-weight: 600; }
.modal__spin {
    width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--brand); animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dtl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtl-table thead th {
    position: sticky; top: 0; background: var(--surface-2); color: var(--text-muted);
    text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.05em; font-weight: 800;
    text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.dtl-table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.dtl-table tbody tr:hover { background: var(--surface-2); }
.dtl-table tbody tr:last-child td { border-bottom: none; }
.dtl-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; }

.dtl-pager {
    position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border);
}
.dtl-pager__info { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.dtl-pager__btns { display: flex; align-items: center; gap: 10px; }
.dtl-pager__pos { font-size: 12px; font-weight: 800; color: var(--brand); min-width: 54px; text-align: center; }
.dtl-pager__btn {
    padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
    color: var(--brand); font-weight: 700; font-size: 12.5px; font-family: inherit; cursor: pointer;
    transition: all 0.16s ease;
}
.dtl-pager__btn:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.dtl-pager__btn:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 560px) {
    .dtl-table { font-size: 12px; }
    .dtl-table thead th, .dtl-table tbody td { padding: 8px 10px; }
    .dtl-pager { flex-direction: column; gap: 8px; align-items: stretch; }
    .dtl-pager__btns { justify-content: space-between; }
}

/* ---------------------------------------------------------------- Agente IA (ProGoIA) */
.ia-widget { margin-bottom: 22px; }
.ia-widget--v2 .ia-shell { position: relative; }
.ia-shell__glow {
    position: absolute; inset: -2px; border-radius: 22px; z-index: 0; opacity: .9;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 45%, #a855f7 80%, #f59e0b);
    background-size: 200% 200%; animation: iaGlow 8s linear infinite;
}
@keyframes iaGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.ia-widget--v2 .ia-card {
    position: relative; z-index: 1; margin: 2px; display: block; gap: 0;
    padding: 18px 20px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.55);
    background:
        radial-gradient(1200px 200px at 10% -20%, rgba(99,102,241,.14), transparent 55%),
        radial-gradient(800px 180px at 90% 0%, rgba(14,165,233,.12), transparent 50%),
        var(--surface);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .08); overflow: hidden;
}
.ia-widget--v2 .ia-card::before { display: none; }
.ia-card__top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ia-card__intro { flex: 1; min-width: 200px; }
.ia-avatar {
    width: 58px; height: 58px; border-radius: 18px; flex: 0 0 auto; position: relative;
    display: grid; place-items: center; background: linear-gradient(145deg, #fff, #eef2ff);
    border: 1px solid rgba(99,102,241,.2); box-shadow: 0 8px 20px rgba(99,102,241,.18);
}
.ia-avatar__ring {
    position: absolute; inset: -4px; border-radius: 22px; border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #0ea5e9, #a855f7) border-box;
    opacity: .55; animation: iaSpin 10s linear infinite;
}
@keyframes iaSpin { to { transform: rotate(360deg); } }
.ia-avatar img { width: 36px; height: 36px; object-fit: contain; position: relative; z-index: 1; }
.ia-avatar__pulse {
    position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%;
    background: #12b886; border: 2px solid #fff; animation: iaPulse 1.8s infinite;
}
@keyframes iaPulse {
    0% { box-shadow: 0 0 0 0 rgba(18,184,134,.45); }
    70% { box-shadow: 0 0 0 8px rgba(18,184,134,0); }
    100% { box-shadow: 0 0 0 0 rgba(18,184,134,0); }
}
.ia-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ia-head h3 { font-size: 19px; font-weight: 800; color: var(--text); margin: 0; }
.ia-head h3 span {
    background: linear-gradient(135deg, #0ea5e9, #6366f1 50%, #a855f7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ia-online {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
    color: #12b886; background: rgba(18,184,134,0.12); padding: 3px 10px; border-radius: 999px;
}
.ia-online i { width: 7px; height: 7px; border-radius: 50%; background: #12b886; }
.ia-sub { color: var(--text-muted); font-size: 13.5px; margin: 6px 0 0; }

.ia-coins {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px;
    background: #60a5fa; border: 1px solid #3b82f6; color: #fff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, .22); margin-left: auto;
}
.ia-coins--light { background: #60a5fa; border-color: #3b82f6; color: #fff; }
.ia-coins__icon {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.22); color: #fff; font-size: 13px;
}
.ia-coins__icon svg { width: 15px; height: 15px; }
.ia-coins__meta { display: grid; line-height: 1.1; }
.ia-coins__meta small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.ia-coins__meta strong { font-size: 16px; font-weight: 800; color: #fff; }
.ia-coins__cost { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9); white-space: nowrap; }
.ia-coins__pop { animation: iaCoinPop .35s ease; }
@keyframes iaCoinPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: #fff; } 100% { transform: scale(1); } }

.ia-chat {
    display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto;
    margin: 14px 0; padding: 12px; border-radius: 14px;
    background: rgba(248,250,252,.85); border: 1px solid var(--border);
}
.ia-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.ia-msg--user { align-self: flex-end; background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; border-bottom-right-radius: 4px; }
.ia-msg--bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.ia-msg--bot b { color: var(--brand); }
.ia-msg--bot ul { margin: 6px 0 0; padding-left: 18px; }
.ia-msg--bot li { margin: 2px 0; }
.ia-msg__warn { color: #b45309; font-weight: 600; }
.ia-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.ia-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: 0.6; animation: iaDot 1.2s infinite; }
.ia-typing i:nth-child(2) { animation-delay: 0.2s; }
.ia-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes iaDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.ia-actions {
    display: flex; flex-direction: column; gap: 10px; margin-top: 14px;
}
.ia-actions__row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.ia-actions__row--center {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(66.666% + 10px);
    margin: 0 auto;
    width: 100%;
}
.ia-actions--five .ia-action {
    min-height: 88px;
    padding: 12px 12px 10px;
}
.ia-action {
    display: flex; align-items: flex-start; gap: 10px; text-align: left; cursor: pointer;
    padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--border);
    background: rgba(255,255,255,.92); font-family: inherit; transition: all .16s ease;
    box-shadow: var(--shadow-sm);
}
.ia-action:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.1); }
.ia-action:disabled { opacity: .65; cursor: wait; transform: none; }
.ia-action__icon {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    color: #fff; font-size: 15px; flex: 0 0 auto;
}
.ia-action--coach .ia-action__icon { background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7); }
.ia-action--quimica .ia-action__icon { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.ia-action--analise .ia-action__icon { background: linear-gradient(135deg, #64748b, #334155 60%, #0f766e); }
.ia-action--plano .ia-action__icon { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.ia-action--roteiro .ia-action__icon { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
#quimicaSelect + .select2-container,
#plano1a1Select + .select2-container,
#planoAcaoSelect + .select2-container,
#analiseDiscSelect + .select2-container { margin-bottom: 4px; }
.coach-pdf-bar {
    display: flex; justify-content: flex-end; margin: 16px 0 4px; padding-top: 12px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.btn--pdf {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px; border: 1px solid #fecaca;
    background: linear-gradient(135deg, #fff1f2, #fff); color: #be123c;
    font-size: 13px; font-weight: 800; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.btn--pdf:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(190,18,60,.12); color: #9f1239; }
.btn--pdf i { font-size: 14px; }
.ia-action__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ia-action__body strong { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.25; }
.ia-action__body small { font-size: 11px; line-height: 1.3; color: var(--text-muted); font-weight: 500; }
.ia-action__cost {
    align-self: flex-start; font-size: 10px; font-weight: 800; color: #fff;
    background: #60a5fa; border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
@media (max-width: 960px) {
    .ia-actions__row { grid-template-columns: 1fr; }
    .ia-actions__row--center { max-width: none; grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .ia-actions__row { grid-template-columns: 1fr; }
}

.ia-form { display: flex; gap: 12px; margin-top: 14px; align-items: stretch; }
.ia-field-wrap { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ia-field {
    width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border);
    background: #fff; color: var(--text); font-size: 14px; font-family: inherit;
    box-shadow: var(--shadow-sm); transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ia-field:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.ia-field-hint { font-size: 11px; color: var(--text-muted); font-weight: 600; padding-left: 4px; }
.ia-send {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 0 22px; border-radius: 14px; border: none; font-weight: 800; font-size: 14px; font-family: inherit;
    color: #fff; background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7);
    box-shadow: 0 10px 22px rgba(99,102,241,0.28); transition: all 0.16s ease;
}
.ia-send svg { width: 17px; height: 17px; }
.ia-send:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.ia-send:disabled { opacity: 0.6; cursor: not-allowed; }

.ia-saldo-modal { width: min(420px, 94vw); }
.ia-saldo-modal__body { padding: 22px 20px 20px; text-align: center; }
.ia-saldo-modal__icon {
    width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
    display: grid; place-items: center; font-size: 22px; color: #fff;
    background: #60a5fa;
}
.ia-saldo-modal__icon svg { width: 26px; height: 26px; }
.ia-saldo-modal__body p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.ia-saldo-modal__meta { color: var(--text-muted); font-size: 13px !important; margin-bottom: 16px !important; }
.ia-saldo-modal__actions {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px;
}
.ia-saldo-modal__actions .btn { min-width: 120px; }
.ia-saldo-modal__actions .btn--primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.coach-modal__head { display: flex; align-items: center; gap: 10px; }
.coach-modal__head h3 { flex: 1; margin: 0; }
.coach-gerar { gap: 8px; }
.coach-gerar__cost {
    display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px;
    background: rgba(255,255,255,.2); font-size: 11px; font-weight: 800;
}

@media (max-width: 560px) {
    .ia-card__top { flex-direction: column; }
    .ia-coins { margin-left: 0; width: 100%; justify-content: flex-start; }
    .ia-send span { display: none; }
    .ia-send { padding: 0 18px; }
    .ia-form { gap: 8px; }
}

/* ---------------------------------------------------------------- Módulo DISC */
.disc-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.disc-card {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: all 0.16s ease; position: relative; overflow: hidden;
}
.disc-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.disc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c); }
.disc-card.is-active { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.disc-card__circle { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.disc-card__qtd { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.disc-card__lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 3px; }

.disc-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 11.5px; white-space: nowrap; }

.disc-show { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; align-items: start; }
.disc-show__hero { display: flex; align-items: center; gap: 18px; padding: 26px; }
.disc-show__big { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 38px; flex-shrink: 0; }
.disc-show__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 800; }
.disc-show__hero h2 { font-size: 24px; color: var(--text); margin: 4px 0 8px; }

.disc-bar { display: grid; grid-template-columns: 34px 1fr 48px; grid-template-areas: "tag track val" "tag lbl lbl"; align-items: center; gap: 6px 12px; margin-bottom: 16px; }
.disc-bar__tag { grid-area: tag; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.disc-bar__track { grid-area: track; height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.disc-bar__fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.disc-bar__val { grid-area: val; font-weight: 800; color: var(--text); text-align: right; }
.disc-bar__lbl { grid-area: lbl; font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Documento de relatório DISC (PRO / LIGHT / VIP) */
.rel-doc { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; max-width: 1000px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.rel-doc__head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid #2F328F; padding-bottom: 12px; margin-bottom: 20px; }
.rel-doc__kind { color: #2F328F; font-weight: 800; font-size: 18px; }
.rel-doc__head h2 { margin: 2px 0 0; color: #333; font-size: 20px; }
.rel-doc__logo { height: 46px; }
.rel-graficos { display: grid; gap: 14px; justify-items: center; margin-bottom: 22px; }
.rel-graficos--1 { grid-template-columns: 1fr; }
.rel-graficos--4 { grid-template-columns: repeat(4, 1fr); }
.rel-graficos figure { margin: 0; text-align: center; }
.rel-graficos figure img { width: 105px; height: 205px; max-width: none; display: block; margin: 0 auto; }
.disc-grafico-fig img { width: 105px; height: 205px; max-width: none; display: block; margin: 0 auto; }
.disc-grafico-svg { display: block; margin: 0 auto; line-height: 0; }
.disc-grafico-svg svg { display: block; width: 100%; height: 100%; }
.rel-graf img { max-width: 100%; height: auto; }
.rel-graficos figcaption { color: #2F328F; font-size: 12px; margin-top: 6px; }
.rel-texto p { color: #555; font-size: 13px; line-height: 1.6; text-align: justify; margin: 0 0 12px; }
.rel-doc__foot { text-align: center; color: #2F328F; font-weight: 600; margin-top: 18px; }

.page-head--disc-pro {
    position: relative;
    justify-content: center;
    text-align: center;
    margin-bottom: 14px;
}
.page-head--disc-pro .page-head__main--center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-inline: 8px;
    gap: 6px;
}
.page-head--disc-pro .page-head__actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.disc-pro-ia-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .01em;
}
.disc-pro-ia-label {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5b21b6;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 55%, #ddd6fe 100%);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, .28), 0 4px 16px rgba(124, 58, 237, .14);
    transition: box-shadow .18s ease, transform .15s ease;
}
.disc-pro-ia-label:hover {
    box-shadow: 0 0 0 1px rgba(124, 58, 237, .45), 0 6px 20px rgba(124, 58, 237, .22);
    transform: translateY(-1px);
}
.disc-pro-ia-label:active { transform: translateY(0); }
.disc-pro-ia-label i {
    color: #7c3aed;
    font-size: 12px;
}
.disc-pro-ia-label__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 0 0 rgba(124, 58, 237, .45);
    animation: discIaLabelPulse 2s ease-out infinite;
}
@keyframes discIaLabelPulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .45); }
    70% { box-shadow: 0 0 0 7px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
body.is-embed .page-head--disc-pro { margin-bottom: 10px; }
@media (max-width: 640px) {
    .page-head--disc-pro .page-head__actions { position: static; justify-content: center; width: 100%; margin-top: 8px; }
}

.disc-ia-picker {
    width: min(440px, 94vw);
    height: auto;
    max-height: 90vh;
    top: 50%;
    transform: translate(-50%, -50%);
}
.disc-ia-picker__body { padding: 0 20px 20px; }
.disc-ia-picker__lead {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
}
.disc-ia-picker__grid { display: flex; flex-direction: column; gap: 8px; }
.disc-ia-picker__item {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}
.disc-ia-picker__item > i {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: #fff;
}
.disc-ia-picker__item > span { font-weight: 700; font-size: 13.5px; color: var(--text); }
.disc-ia-picker__item > small { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.disc-ia-picker__item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.disc-ia-picker__item--coach > i { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.disc-ia-picker__item--quimica > i { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.disc-ia-picker__item--analise > i { background: linear-gradient(135deg, #10b981, #047857); }
.disc-ia-picker__item--plano > i { background: linear-gradient(135deg, #f59e0b, #d97706); }
.disc-ia-picker__item--roteiro > i { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* Abas de navegação do VIP */
.rel-tabs { display: flex; flex-wrap: nowrap; gap: 3px; border-bottom: 2px solid var(--border); margin-bottom: 22px; }
.rel-tab { appearance: none; border: none; background: transparent; flex: 1 1 0; min-width: 0; padding: 6px 2px; font-size: 10px; font-weight: 700; letter-spacing: 0; white-space: nowrap; text-align: center; color: var(--text-muted); cursor: pointer; border-radius: 6px 6px 0 0; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s, background .15s; }
.rel-tab:hover { color: #2F328F; background: #f6f8fc; }
.rel-tab.is-active { color: #2F328F; border-bottom-color: #2F328F; }
.rel-page { display: none; animation: relFade .2s ease; }
.rel-page.is-active { display: block; }
@keyframes relFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* VIP / Analítico */
.rel-ident { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 16px; background: #f6f8fc; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; }
.rel-ident span { font-size: 12.5px; color: #555; }
.rel-ident strong { color: #2F328F; }
.rel-pred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.rel-pred__item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rel-pred__item small { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.rel-pred__item strong { color: #2F328F; font-size: 14px; }
.rel-pred__item--alto { border-left: 4px solid #12b886; }
.rel-pred__item--baixo { border-left: 4px solid #ff5d73; }
.rel-sec { color: #2F328F; font-size: 15px; font-weight: 800; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.rel-fatores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rel-fator { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rel-fator strong { color: #2F328F; font-size: 13px; }
.rel-fator span { color: #666; font-size: 12px; }
.rel-lista { margin: 0; padding-left: 18px; columns: 2; column-gap: 28px; }
.rel-lista li { color: #555; font-size: 12.5px; line-height: 1.55; margin-bottom: 6px; break-inside: avoid; }
.rel-duas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rel-duas h4 { color: #2F328F; font-size: 13px; margin: 0 0 8px; }
.rel-duas .rel-lista { columns: 1; }
.rel-barras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.rel-barra__topo { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #444; margin-bottom: 4px; }
.rel-barra__topo strong { color: #2F328F; }
.rel-barra__trilho { height: 8px; background: #eef1f7; border-radius: 6px; overflow: hidden; }
.rel-barra__fill { height: 100%; background: linear-gradient(90deg, #2F328F, #4f53c9); border-radius: 6px; }
.rel-barra__fill--alt { background: linear-gradient(90deg, #12b886, #38d9a9); }
.rel-barra__desc { color: #777; font-size: 11.5px; line-height: 1.45; margin: 5px 0 0; }
.rel-sub { color: #2F328F; font-size: 13px; font-weight: 800; margin: 18px 0 8px; }
.rel-destaque { text-align: center; color: #333; font-size: 14px; margin: 14px 0; }
.rel-destaque b { color: #2F328F; }
.rel-sumario { list-style: none; margin: 0; padding: 0; }
.rel-sumario li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 14px; color: #444; font-weight: 600; }
.rel-sumario li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2F328F; flex: none; }
.rel-fatores4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.rel-fator4 { border: 1px solid var(--border); border-left: 4px solid #016bba; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rel-fator4 strong { color: #016bba; font-size: 14px; }
.rel-fator4 span { color: #666; font-size: 12.5px; line-height: 1.5; }
.rel-pdi { display: grid; gap: 12px; }
.rel-pdi__item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.rel-pdi__se { margin: 0 0 6px; font-size: 13px; color: #444; }
.rel-pdi__se span { color: var(--text-muted); font-weight: 700; }
.rel-pdi__se b { color: #2F328F; }
.rel-pdi__faz { margin: 0; font-size: 12.5px; color: #555; line-height: 1.55; }
.rel-pdi__faz span { color: var(--text-muted); font-weight: 700; }
.rel-legenda-cor { color: #2F328F; font-weight: 600; font-size: 12.5px; text-align: center; margin: 0 0 14px; }
.rel-legenda { width: 100%; border-collapse: collapse; margin: 16px 0 4px; border-radius: 10px; overflow: hidden; }
.rel-legenda td { text-align: center; padding: 8px 6px; font-size: 11.5px; line-height: 1.3; }
.pdf-loading { position: fixed; inset: 0; background: rgba(27,42,89,.55); display: none; align-items: center; justify-content: center; z-index: 9999; }
.pdf-loading.is-on { display: flex; }
.pdf-loading__box { background: #fff; border-radius: 14px; padding: 26px 34px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.pdf-loading__spin { width: 42px; height: 42px; border: 4px solid #e2e7f0; border-top-color: #2F328F; border-radius: 50%; margin: 0 auto 14px; animation: pdfspin .8s linear infinite; }
@keyframes pdfspin { to { transform: rotate(360deg); } }
.pdf-loading__txt { color: #2F328F; font-weight: 700; }
.rel-capa { text-align: center; padding: 24px 0 10px; }
.rel-capa__titulo { font-size: 34px; color: #1b2a59; font-weight: 800; margin-bottom: 28px; }
.rel-capa__logo { max-width: 320px; width: 60%; height: auto; margin-bottom: 34px; }
.rel-capa__dados { margin: 0 auto; border-collapse: collapse; }
.rel-capa__dados td { padding: 8px 10px; font-size: 15px; vertical-align: top; }
.rel-capa__dados .rot { text-align: right; color: var(--text-muted); white-space: nowrap; }
.rel-capa__dados .val { text-align: left; color: #333; }
.rel-chart { position: relative; height: 380px; max-width: 560px; margin: 8px auto 0; }
.rel-chart--bar { height: 420px; max-width: 640px; }
.rel-chart__sep { text-align: center; color: var(--text-muted); font-weight: 700; font-size: 12.5px; margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.rel-pct { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 12px; border: 1px solid rgba(0,0,0,.12); }
.rel-quadrantes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rel-quad { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.rel-quad__cab { color: #2F328F; font-weight: 800; font-size: 13px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.rel-quad__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.rel-quad__nome { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #444; }
.rel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rel-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.rel-card__cab { display: flex; align-items: center; gap: 8px; }
.rel-card__ico img { width: 30px; height: 30px; }
.rel-card__nome { color: #2F328F; font-weight: 700; font-size: 13px; flex: 1; }
.rel-card__desc { color: #666; font-size: 11.5px; line-height: 1.45; margin: 6px 0 0; }
.rel-idt { width: 100%; max-width: 560px; margin: 0 auto; border-collapse: collapse; }
.rel-idt th { background: #0b52b4; color: #fff; padding: 8px; font-size: 13px; }
.rel-idt td { padding: 8px 12px; border: 1px solid #fff; font-size: 13px; font-weight: 600; }
.rel-idt td.pc { text-align: center; width: 90px; }
.rel-barra__nome { display: inline-flex; align-items: center; gap: 8px; }
.rel-barra__ico img { width: 26px; height: 26px; vertical-align: middle; }
.rel-sumario li img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.rel-sumario li::before { display: none; }
.rel-snum { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 3px 8px rgba(41,61,101,.32); }

/* Ícones modernos por fator DISC (badges) — substituem as engrenagens antigas. Tamanho fixo igual para todos. */
.fbadge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(15,23,42,.18); }
.fb-D { background: linear-gradient(135deg, #f0686c, #e5484d); }
.fb-I { background: linear-gradient(135deg, #f0b34a, #e0941a); }
.fb-S { background: linear-gradient(135deg, #34c768, #16a34a); }
.fb-C { background: linear-gradient(135deg, #4f86f2, #2563eb); }
.fb-x { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.rel-pdi-form { display: grid; gap: 18px; }
.rel-pdi-form__bloco { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.rel-pdi-form__cab { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #333; font-size: 13px; }
.rel-pdi-form__plano { margin-top: 10px; color: #333; font-size: 13px; }
.rel-pdi-form__linhas { display: grid; gap: 22px; margin-top: 20px; }
.rel-pdi-form__linhas span { display: block; border-bottom: 1px solid #bbb; height: 1px; }
@media (max-width: 720px) {
    .rel-pred, .rel-fatores, .rel-fatores4, .rel-barras, .rel-duas, .rel-quadrantes, .rel-cards { grid-template-columns: 1fr; }
    .rel-lista { columns: 1; }
}
@media (max-width: 720px) { .rel-graficos--4 { grid-template-columns: repeat(2, 1fr); } }
@media print {
    .no-print, .sidebar, .topbar, .ia-widget, .rel-tabs { display: none !important; }
    .rel-doc { border: none; box-shadow: none; max-width: 100%; }
    .app-main, .content, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
    .rel-page { display: block !important; page-break-inside: avoid; }
    .rel-page + .rel-page { page-break-before: always; }
}

.disc-grafico { display: inline-block; }
.disc-grafico img { width: 105px; height: 205px; max-width: none; display: block; }
.disc-ordem { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.disc-ordem__sep { color: var(--text-muted); font-weight: 700; }

.disc-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.disc-info > div { display: flex; flex-direction: column; gap: 2px; }
.disc-info span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.disc-info strong { color: var(--text); font-weight: 700; font-size: 14px; }

.cmp-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.cmp-form__field { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.cmp-form__field label { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 980px) { .disc-cards { grid-template-columns: repeat(2, 1fr); } .disc-show { grid-template-columns: 1fr; } .cmp-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .disc-cards { grid-template-columns: 1fr; } .disc-info { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Solicitar por e-mail */
.solic-form { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 14px; align-items: end; }
.solic-form__field { display: flex; flex-direction: column; gap: 5px; }
.solic-form__field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.solic-form__field .req { color: #d93640; }
.solic-form__field input, .solic-form__field select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; background: #fff; }
.solic-form__field input:focus, .solic-form__field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,61,101,0.12); }
.solic-form__acao { display: flex; align-items: flex-end; }
.solic-acoes { display: inline-flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 120px; }
.btn--xs { padding: 6px 10px; font-size: 11.5px; border-radius: 8px; gap: 6px; }
.solic-acoes form { display: block; }
.solic-acoes .btn { width: 100%; }
.js-copiar-link.is-ok { color: #12a06b; border-color: #12a06b; }
@media (max-width: 860px) { .solic-form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Questionário DISC (preencher) */
.quiz-body { background: #eef1f6; min-height: 100vh; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; background: var(--brand); }
.quiz-top__logo { height: 64px; width: auto; border-radius: 15px; background: #fff; padding: 6px 10px; }
.quiz-top__back { color: #fff; opacity: .92; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.quiz-top__back:hover { opacity: 1; }
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 26px 16px 60px; }
.quiz-wrap--largo { max-width: 920px; }
.quiz-wrap--interno { max-width: 520px; padding: 0 0 16px; }
.quiz-body .quiz-wrap--interno { padding: 16px 16px 48px; }
.quiz-wrap--interno .quiz-card { padding: 18px 20px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(20,30,60,.08); }
.quiz-wrap--interno .quiz-card__title { font-size: 20px; }
.quiz-wrap--interno .quiz-card__sub { font-size: 13px; margin-bottom: 14px; }
.quiz-wrap--interno .quiz-fields { gap: 10px; }
.quiz-wrap--interno .quiz-field input { padding: 8px 10px; font-size: 13px; }
.quiz-wrap--interno .quiz-instru { margin: 14px 0 4px; padding: 12px 14px; font-size: 12.5px; }
.quiz-wrap--interno .quiz-instru li { margin-bottom: 4px; }
.quiz-wrap--interno .quiz-actions { margin-top: 14px; }
.quiz-wrap--interno .btn--lg { padding: 10px 18px; font-size: 14px; }
.quiz-wrap--interno .quiz-card--q { padding: 14px 16px 16px; }
.quiz-wrap--interno .quiz-progress { margin-bottom: 10px; gap: 10px; }
.quiz-wrap--interno .quiz-progress__bar { height: 6px; }
.quiz-wrap--interno .quiz-progress__txt { font-size: 12px; }
.quiz-wrap--interno .quiz-q__head { gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.quiz-wrap--interno .quiz-q__n { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.quiz-wrap--interno .quiz-q__prompt { font-size: 11.5px; line-height: 1.35; }
.quiz-wrap--interno .quiz-opts { gap: 6px; }
.quiz-wrap--interno .quiz-opt { padding: 5px 8px; gap: 8px; border-radius: 9px; }
.quiz-wrap--interno .quiz-opt__txt { font-size: 13px; line-height: 1.35; }
.quiz-wrap--interno .quiz-opt__actions { width: 30px; height: 30px; }
.quiz-wrap--interno .quiz-opt__btn { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
.quiz-wrap--interno .quiz-final-aviso { margin: 12px 0 2px; padding: 8px 12px; font-size: 12px; }
/* Garante que o atributo [hidden] oculte mesmo elementos .btn/flex do questionário */
.quiz-wrap [hidden] { display: none !important; }
.quiz-wrap--center { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 72px); }
.quiz-card { background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(20,30,60,.10); padding: 28px 28px 24px; }
.quiz-card__title { font-size: 24px; color: var(--brand); margin: 0 0 4px; }
.quiz-card__sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.quiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-field { display: flex; flex-direction: column; gap: 5px; }
.quiz-field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.quiz-field .req { color: #d93640; }
.quiz-field input { padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.quiz-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,61,101,0.12); }
.quiz-instru { margin: 22px 0 6px; background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; color: #3a4760; }
.quiz-instru ul { margin: 10px 0 0; padding-left: 18px; }
.quiz-instru li { margin-bottom: 7px; line-height: 1.45; }
.quiz-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }
.quiz-actions--nav { justify-content: center; align-items: center; }
.quiz-final-aviso { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 4px; padding: 12px 16px; background: rgba(18,160,107,0.10); color: #12a06b; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-align: center; }
.btn--lg { padding: 13px 24px; font-size: 15px; }
.quiz-erro { color: #d93640; font-size: 13px; font-weight: 600; margin: 12px 0 0; text-align: center; }

.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quiz-progress__bar { flex: 1; height: 9px; background: #dde3ee; border-radius: 999px; overflow: hidden; }
.quiz-progress__bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.quiz-progress__txt { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }

.quiz-card--q { padding-top: 22px; }
.quiz-q__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.quiz-q__n { width: 50px; height: 50px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.quiz-q__prompt { flex: 1; margin: 0; padding-top: 4px; font-size: 15px; font-weight: 800; line-height: 1.4; color: #2a3550; text-transform: uppercase; }
.quiz-q__hl { font-weight: 800; }
.quiz-q__hl--mais { color: #12a06b; }
.quiz-q__hl--menos { color: #d93640; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.quiz-opt.is-mais { border-color: #12a06b; background: rgba(18,160,107,0.06); }
.quiz-opt.is-menos { border-color: #d93640; background: rgba(229,72,77,0.06); }
.quiz-opt__txt { flex: 1; font-size: 15px; color: #2a3550; min-width: 0; }
.quiz-opt__actions { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.quiz-opt__btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: #f6f8fc; color: #9aa3b5; font-size: 15px; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.quiz-opt__actions .quiz-opt__btn { position: absolute; top: 0; right: 0; }
.quiz-opt__btn.is-oculto { visibility: hidden; }
.quiz-opt__btn--mais:hover { border-color: #12a06b; color: #12a06b; }
.quiz-opt__btn--menos:hover { border-color: #d93640; color: #d93640; }
.quiz-opt.is-mais .quiz-opt__btn--mais { background: #12a06b; border-color: #12a06b; color: #fff; }
.quiz-opt.is-menos .quiz-opt__btn--menos { background: #d93640; border-color: #d93640; color: #fff; }

.quiz-result { background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(20,30,60,.10); padding: 40px 36px; text-align: center; max-width: 520px; }
.quiz-result__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; margin: 0 auto 18px; }
.quiz-result__icon--ok { background: rgba(18,160,107,0.12); color: #12a06b; }
.quiz-result__icon--warn { background: rgba(224,138,30,0.14); color: #e08a1e; }
.quiz-result h1 { font-size: 23px; color: var(--brand); margin: 0 0 10px; }
.quiz-result p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

@media (max-width: 560px) {
    .quiz-fields { grid-template-columns: 1fr; }
    .quiz-opt__txt { font-size: 14px; }
    .quiz-q__n { width: 44px; height: 44px; font-size: 20px; }
}

/* ---------------------------------------------------------------- Créditos (comprar / liberar) */
.btn--block { width: 100%; justify-content: center; }

/* Shop — comprar ProTokens (IA) e ProCoin (DISC) */
.shop { display: grid; gap: 14px; }
.shop-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    border-radius: 14px; padding: 12px 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #4f46e5 100%);
    color: #fff; box-shadow: 0 8px 20px rgba(30, 58, 138, .18);
}
.shop-hero__copy { flex: 1 1 220px; min-width: 0; }
.shop-hero h1 { margin: 0 0 2px; font-size: 16px; line-height: 1.25; font-weight: 800; }
.shop-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.4; }
.shop-balances { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-balance {
    display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); min-width: 140px;
}
.shop-balance__icon {
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    font-size: 12px; color: #fff; flex: 0 0 auto;
}
.shop-balance--ia .shop-balance__icon { background: linear-gradient(135deg, #38bdf8, #818cf8); }
.shop-balance--disc .shop-balance__icon { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.shop-balance__top { display: flex; align-items: center; gap: 6px; }
.shop-balance__top strong { font-size: 11px; font-weight: 800; }
.shop-balance__num { font-size: 16px; font-weight: 900; line-height: 1.1; }
.shop-balance__body small { display: block; margin-top: 1px; color: rgba(255,255,255,.7); font-size: 10px; }

.shop-chip {
    display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 999px;
    font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}
.shop-chip--ia { background: rgba(56,189,248,.18); color: #e0f2fe; border: 1px solid rgba(125,211,252,.35); }
.shop-chip--disc { background: rgba(251,191,36,.18); color: #fef3c7; border: 1px solid rgba(252,211,77,.35); }
.shop-card .shop-chip--ia { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.shop-card .shop-chip--disc { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }

.shop-nav {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border);
}
.shop-nav__item {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
    color: var(--text); text-decoration: none; font-size: 12px; font-weight: 700;
}
.shop-nav__item em { font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .04em; opacity: .7; }
.shop-nav__item:hover { background: var(--bg); }
.shop-nav__item--ia:hover { background: #eff6ff; color: #1d4ed8; }
.shop-nav__item--disc:hover { background: #fff7ed; color: #c2410c; }

.shop-sec {
    background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.shop-sec__head { margin-bottom: 12px; }
.shop-sec__title { display: flex; gap: 10px; align-items: flex-start; }
.shop-sec__title h2 { margin: 0 0 2px; font-size: 15px; font-weight: 800; color: var(--text); }
.shop-sec__title p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.shop-sec__badge {
    display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px;
    color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
    flex: 0 0 auto;
}
.shop-sec__badge--ia { background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #a855f7); }
.shop-sec__badge--disc { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.shop-sec__badge--hist { background: linear-gradient(135deg, #475569, #0f172a); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.shop-grid--tokens { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.shop-card {
    position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px;
    border-radius: 12px; border: 1px solid var(--border); background: #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,.04); transition: transform .14s ease, box-shadow .14s ease;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.shop-card--ia { background: linear-gradient(180deg, #f8fbff, #fff 46%); border-color: #dbeafe; }
.shop-card--ia.is-destaque {
    border-color: #60a5fa; box-shadow: 0 8px 18px rgba(37,99,235,.12);
    background: linear-gradient(180deg, #eff6ff, #fff 50%);
}
.shop-card--ia.is-destaque-max {
    border-color: #7c3aed; box-shadow: 0 12px 28px rgba(124,58,237,.18);
    background: linear-gradient(165deg, #f5f3ff 0%, #eff6ff 38%, #fff 72%);
}
.shop-card--tier { padding-top: 14px; min-height: 100%; }
.shop-card__tier { display: flex; flex-direction: column; gap: 2px; }
.shop-card__faixa {
    font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #64748b;
}
.shop-card__rotulo {
    font-size: 15px; font-weight: 900; line-height: 1.15; color: #1e3a8a;
}
.shop-card--ia.is-destaque-max .shop-card__rotulo { color: #5b21b6; }
.shop-card__off {
    display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e;
    font-size: 10px; font-weight: 900; letter-spacing: .03em; border: 1px solid #fcd34d;
}
.shop-card__off--base {
    background: #f1f5f9; color: #475569; border-color: #e2e8f0;
}
.shop-card__ribbon--off {
    background: linear-gradient(135deg, #f59e0b, #ea580c); font-size: 10px; padding: 3px 10px;
}
.shop-card__price--tier strong { font-size: 20px; }
.shop-card__save {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857;
    font-size: 11px; font-weight: 800; line-height: 1.25; border: 1px solid #a7f3d0;
}
.shop-card__save i { font-size: 12px; opacity: .85; }
.shop-card__btn--glow {
    background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #0ea5e9);
    box-shadow: 0 6px 16px rgba(79,70,229,.28);
}
.shop-card__btn--glow:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(79,70,229,.34); }
.shop-card--disc { background: linear-gradient(180deg, #fffaf5, #fff 46%); border-color: #fed7aa; }
.shop-card__ribbon {
    position: absolute; top: -8px; right: 10px; padding: 2px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff;
    font-size: 9px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase;
}
.shop-card__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.shop-card__name { font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.shop-card--ia .shop-card__name { color: #2563eb; }
.shop-card--disc .shop-card__name { color: #c2410c; }
.shop-card__qty { display: flex; align-items: baseline; gap: 6px; }
.shop-card__qty strong { font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.shop-card--ia .shop-card__qty strong { color: #1d4ed8; }
.shop-card--disc .shop-card__qty strong { color: #9a3412; }
.shop-card__qty span { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.shop-card__price { display: grid; gap: 1px; }
.shop-card__price strong { font-size: 16px; font-weight: 900; color: #059669; }
.shop-card__de { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }
.shop-card__price span { font-size: 11px; color: var(--text-muted); }
.shop-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.shop-card__list li {
    display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: var(--text-muted); line-height: 1.3;
}
.shop-card__list i { color: #10b981; margin-top: 2px; font-size: 10px; }
.shop-card__list b { color: var(--text); }
.shop-card form { margin-top: auto; }
.shop-card__btn {
    width: 100%; justify-content: center; gap: 6px; border: 0; border-radius: 9px;
    padding: 8px 10px; font-size: 12px; font-weight: 800; color: #fff; cursor: pointer;
}
.shop-card__btn--ia { background: linear-gradient(135deg, #0ea5e9, #4f46e5); }
.shop-card__btn--ia:hover { filter: brightness(1.05); }
.shop-card__btn--disc { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.shop-card__btn--disc:hover { filter: brightness(1.05); }

.shop-hist { display: grid; gap: 8px; }
.shop-hist__bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    color: var(--text-muted); font-size: 12px;
}
.shop-hist__table { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.shop-pill {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 800; white-space: nowrap;
}
.shop-pill em { font-style: normal; font-size: 9px; opacity: .75; letter-spacing: .04em; }
.shop-pill--ia { background: #eff6ff; color: #1d4ed8; }
.shop-pill--disc { background: #fff7ed; color: #c2410c; }
.shop-empty { padding: 20px 12px; color: var(--text-muted); text-align: center; }
.shop-empty p { margin: 0; font-size: 13px; }

@media (max-width: 720px) {
    .shop-hero { padding: 10px 12px; }
    .shop-sec { padding: 12px; }
}

/* ADMIN — liberar ProTokens / ProCoin */
.admin-cred {
    display: grid; gap: 12px; width: 100%; max-width: 100%; min-width: 0;
    overflow: hidden; box-sizing: border-box;
}
.admin-cred__hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #334155);
    color: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.18);
}
.admin-cred__copy { flex: 1 1 220px; min-width: 0; }
.admin-cred__copy h1 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.admin-cred__copy p { margin: 0; font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.4; }
.admin-cred__kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-kpi {
    min-width: 110px; padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    display: grid; gap: 1px;
}
.admin-kpi__lbl { font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; opacity: .8; }
.admin-kpi strong { font-size: 15px; font-weight: 900; line-height: 1.15; }
.admin-kpi small { font-size: 10px; opacity: .7; }
.admin-kpi--ia { background: rgba(56,189,248,.12); border-color: rgba(125,211,252,.28); }
.admin-kpi--disc { background: rgba(251,191,36,.12); border-color: rgba(252,211,77,.28); }

.admin-cred__filtros {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
    padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
}
.admin-cred__campo { display: grid; gap: 4px; min-width: 150px; flex: 1 1 140px; }
.admin-cred__campo label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.admin-cred__campo input,
.admin-cred__campo select {
    height: 34px; border: 1px solid var(--border); border-radius: 8px;
    padding: 0 10px; font-size: 13px; background: #fff; color: var(--text);
}
.admin-cred__acoes { display: flex; gap: 6px; align-items: center; }

.admin-cred__lista {
    background: #fff; border: 1px solid #e8edf5; border-radius: 16px; padding: 14px;
    box-shadow: 0 2px 12px rgba(15,23,42,.04);
    min-width: 0; max-width: 100%; overflow: hidden; box-sizing: border-box;
}
.admin-cred__meta {
    text-align: center; font-size: 12px; color: #64748b; margin-bottom: 8px;
}
.admin-cred__pager {
    display: flex; justify-content: center; margin: 0 0 12px;
    max-width: 100%; overflow: hidden;
}
.admin-cred__pager--bottom { margin: 12px 0 0; }
.admin-cred__pager .pagination,
.admin-cred__pager nav,
.admin-cred__pager > * {
    margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap;
    max-width: 100%;
}

/* Grid admin — cabe na largura da página (sem estourar) */
.admin-cred__table-wrap {
    width: 100%; max-width: 100%; min-width: 0;
    overflow-x: auto; border: 1px solid #e8edf5; border-radius: 12px; background: #fff;
    box-sizing: border-box;
}
.admin-cred-grid {
    width: 100%; max-width: 100%; table-layout: fixed;
    border-collapse: collapse; font-size: 12.5px; color: #334155;
}
.admin-cred-grid thead th {
    background: #f8fafc; color: #64748b; font-size: 10.5px; font-weight: 700;
    letter-spacing: .03em; text-transform: uppercase; text-align: left;
    padding: 9px 10px; border-bottom: 1px solid #e8edf5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-cred-grid tbody td {
    padding: 9px 10px; vertical-align: middle;
    border-bottom: 1px solid #f1f5f9; background: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-cred-grid tbody tr:last-child td { border-bottom: 0; }
.admin-cred-grid tbody tr:hover td { background: #f8fafc; }
.admin-cred-grid tbody tr.is-pendente td:first-child {
    box-shadow: inset 3px 0 0 #f59e0b;
}
.admin-cred-grid tbody tr.is-cancelado td { color: #94a3b8; }

.admin-cred-grid th:nth-child(1),
.admin-cred-grid td:nth-child(1) { width: 52px; }
.admin-cred-grid th:nth-child(2),
.admin-cred-grid td:nth-child(2) { width: 118px; }
.admin-cred-grid th:nth-child(3),
.admin-cred-grid td:nth-child(3) { width: 108px; }
.admin-cred-grid th:nth-child(4),
.admin-cred-grid td:nth-child(4) { width: 84px; }
.admin-cred-grid th:nth-child(5),
.admin-cred-grid td:nth-child(5) { width: 12%; }
.admin-cred-grid th:nth-child(6),
.admin-cred-grid td:nth-child(6) { width: 11%; }
.admin-cred-grid th:nth-child(7),
.admin-cred-grid td:nth-child(7) { width: 118px; }
.admin-cred-grid th:nth-child(8),
.admin-cred-grid td:nth-child(8) { width: 132px; }
.admin-cred-grid th:nth-child(9),
.admin-cred-grid td:nth-child(9) { width: 88px; }

.admin-cred-grid .acg-id {
    color: #94a3b8; font-size: 12px; font-variant-numeric: tabular-nums;
}
.admin-cred-grid .acg-prod {
    display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
    padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
    box-sizing: border-box;
}
.admin-cred-grid .acg-prod em {
    font-style: normal; font-size: 9px; font-weight: 800; opacity: .7; letter-spacing: .03em;
}
.admin-cred-grid .acg-prod--ia { background: #eff6ff; color: #1d4ed8; }
.admin-cred-grid .acg-prod--disc { background: #fff7ed; color: #c2410c; }
.admin-cred-grid .acg-qtd {
    font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums;
}
.admin-cred-grid .acg-qtd span { color: #94a3b8; font-weight: 500; font-size: 11px; }
.admin-cred-grid .acg-valor {
    font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums;
}
.admin-cred-grid .acg-cliente { font-weight: 600; color: #0f172a; }
.admin-cred-grid .acg-user { color: #64748b; }
.admin-cred-grid .acg-data { color: #64748b; font-size: 11.5px; font-variant-numeric: tabular-nums; }

.admin-cred-grid .acg-status {
    display: inline-block; max-width: 100%;
    padding: 3px 8px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    vertical-align: middle; box-sizing: border-box;
}
.admin-cred-grid .acg-status--0 { background: #fef3c7; color: #92400e; }
.admin-cred-grid .acg-status--1 { background: #d1fae5; color: #065f46; }
.admin-cred-grid .acg-status--2 { background: #fee2e2; color: #991b1b; }

.admin-cred-grid .acg-acoes { text-align: right; white-space: nowrap; overflow: visible; }
.admin-cred-grid .acg-acoes form { margin: 0; display: inline-flex; }
.admin-cred-grid .acg-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 28px; min-width: 72px; padding: 0 12px; border: 0; border-radius: 8px;
    color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
}
.admin-cred-grid .acg-btn--ia { background: #2563eb; }
.admin-cred-grid .acg-btn--ia:hover { background: #1d4ed8; }
.admin-cred-grid .acg-btn--disc { background: #ea580c; }
.admin-cred-grid .acg-btn--disc:hover { background: #c2410c; }
.admin-cred-grid .acg-btn--retirar { background: #e11d48; }
.admin-cred-grid .acg-btn--retirar:hover { background: #be123c; }
.admin-cred-grid .acg-empty {
    text-align: center; padding: 32px 12px !important; color: #94a3b8; white-space: normal !important;
}

/* legado liberar créditos */
.creditos-saldo {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 12px 18px; box-shadow: 0 6px 18px rgba(20,30,60,.05);
}
.creditos-saldo i { font-size: 26px; color: var(--brand); }
.creditos-saldo__num { display: block; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1; }
.creditos-saldo__lbl { display: block; font-size: 12px; color: var(--text-muted); }
.pacotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pacote {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 22px 20px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 8px 24px rgba(20,30,60,.06);
}
.pacote__head { display: flex; align-items: baseline; gap: 7px; }
.pacote__mais { font-size: 30px; font-weight: 800; color: var(--brand); }
.pacote__lbl { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.pacote__preco { display: flex; flex-direction: column; gap: 2px; }
.pacote__de { font-size: 12.5px; color: var(--text-muted); text-decoration: line-through; }
.pacote__por { font-size: 24px; color: var(--success); }
.pacote__unit { font-size: 12px; color: var(--text-muted); }
.pacote__gera { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pacote__gera li { font-size: 13px; color: var(--text-muted); }
.pacote__gera li b { color: var(--text); }
.pacote form { margin-top: auto; }

/* ================================================================ */
/* Construtor de questionário — visual moderno (temas / questões)   */
/* ================================================================ */

/* Variantes de botão usadas no construtor */
.btn--soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn--soft:hover { background: var(--brand-soft-2, var(--brand-soft)); filter: brightness(.98); }

/* Barra de ações Zara (Exportar / NineBox) */
.proc-zara-bar {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px; margin-bottom: 12px;
}
.proc-zara-btn {
    display: inline-flex; align-items: center; gap: 7px; width: auto; max-width: 100%;
    flex: 0 1 auto; padding: 6px 11px; border-radius: 9px; border: 1px solid transparent;
    text-align: left; cursor: pointer; text-decoration: none; transition: transform .14s ease, box-shadow .14s ease;
    box-shadow: var(--shadow-sm);
}
.proc-zara-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.proc-zara-btn__icon {
    width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
    background: rgba(255,255,255,.2); color: inherit;
}
.proc-zara-btn__icon svg { width: 14px; height: 14px; }
.proc-zara-btn__text { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.proc-zara-btn__text strong { font-size: 12px; font-weight: 700; line-height: 1.15; color: inherit; }
.proc-zara-btn__text small { font-size: 9.5px; opacity: .85; font-weight: 600; line-height: 1.2; color: inherit; }
.proc-zara-btn--export {
    background: linear-gradient(135deg, #0f766e, #115e59); color: #fff;
    border-color: rgba(255,255,255,.12);
}
.proc-zara-btn--ninebox {
    background: linear-gradient(135deg, #293d65, #1e2f52); color: #fff;
    border-color: rgba(255,255,255,.1);
}
@media (max-width: 640px) {
    .proc-zara-btn { padding: 5px 10px; }
    .proc-zara-btn__text small { display: none; }
}

/* Nine Box modal — lista paginada */
.ninebox-list { border-top: 1px solid var(--border); background: var(--bg); }
.ninebox-list__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px 0;
}
.ninebox-list__head h4 { margin: 0; font-size: 14px; font-weight: 800; color: var(--text); }
.ninebox-export {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
    background: #15803d; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 14px rgba(21,128,61,.28); transition: transform .14s ease, box-shadow .14s ease;
}
.ninebox-export svg { width: 16px; height: 16px; }
.ninebox-export:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21,128,61,.35); color: #fff; }
.ninebox-pager {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 10px 18px;
}
.ninebox-pager__info { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.ninebox-pager__nav { display: inline-flex; align-items: center; gap: 8px; }
.ninebox-pager__page { font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 88px; text-align: center; }
.ninebox-pager__btn {
    padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
    font-size: 12px; font-weight: 700; color: var(--brand); cursor: pointer;
}
.ninebox-pager__btn:hover:not(:disabled) { background: var(--brand-soft); }
.ninebox-pager__btn:disabled { opacity: .45; cursor: not-allowed; color: var(--text-muted); }
.nb__more { opacity: .85; font-style: italic; }
.btn--icon { padding: 0; width: 32px; height: 32px; border-radius: 9px; }
.btn--icon.btn--sm { width: 30px; height: 30px; }
.btn--icon svg, .btn--icon i { margin: 0; }

.field-hint { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; margin-left: 6px; }

/* Resumo no cabeçalho */
.qb-stats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.qb-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.qb-stat i { color: var(--brand); }

/* Painel recolhível de configurações */
.qb-settings { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qb-settings > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.qb-settings > summary::-webkit-details-marker { display: none; }
.qb-settings__title { font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 9px; }
.qb-settings__title i { color: var(--brand); }
.qb-settings__hint { color: var(--text-muted); font-size: 12.5px; }
.qb-settings__chev { margin-left: auto; color: var(--text-muted); transition: transform .2s ease; }
.qb-settings[open] .qb-settings__chev { transform: rotate(180deg); }
.qb-settings__body { padding: 4px 18px 18px; border-top: 1px solid var(--border); }
.qb-settings__body .qform-actions { margin-top: 16px; }

/* Lista do construtor */
.qb { display: flex; flex-direction: column; gap: 18px; }

/* Card de tema */
.tema-card { position: relative; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgba(20,30,60,.05); border-left: 4px solid var(--brand); }
.tema-card--loose { border-left-color: var(--text-muted); }
.tema-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; background: linear-gradient(180deg, #f7f9ff, #fcfdff); border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; flex-wrap: wrap; }
.tema-card__id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tema-card__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 14px rgba(41,61,101,.28); }
.tema-card__icon--muted { background: var(--brand-soft); color: var(--text-muted); box-shadow: none; }
.tema-card__meta { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tema-card__name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.tema-card__chips { display: flex; gap: 7px; flex-wrap: wrap; }
.tema-card__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tema-card__def { margin: 0; padding: 12px 18px; color: var(--text-muted); font-size: 13.5px; border-bottom: 1px solid var(--border); background: #fcfdff; }
.tema-card__questoes { padding: 12px 18px 16px; display: flex; flex-direction: column; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }
.chip i { font-size: 10px; opacity: .85; }

/* Card de questão */
.qcard { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-top: 1px dashed var(--border); }
.qcard:first-child { border-top: none; }
.qcard__num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.qcard__body { flex: 1 1 auto; min-width: 0; }
.qcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.qcard__enunciado { font-weight: 600; color: var(--text); min-width: 0; }
.qcard__enunciado p { margin: 0; }
.qcard__tools { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

.qchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.qchip i { font-size: 10px; }
.qchip--alt { background: rgba(40,80,200,.09); color: var(--brand); }
.qchip--disc { background: rgba(224,138,30,0.14); color: var(--warning); }

.qcard__alts { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.qcard__alts li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); background: #f8faff; border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px; }
.qcard__alt-txt { flex: 1 1 auto; min-width: 0; }
.qcard__alt-peso { flex: 0 0 auto; min-width: 24px; text-align: center; font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 7px; padding: 2px 7px; }

/* Estados auxiliares */
.qb-empty { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.qb-empty i { opacity: .6; }
.qb-onboard { text-align: center; padding: 40px 24px; border: 2px dashed var(--border); border-radius: 18px; background: var(--surface); }
.qb-onboard__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.qb-onboard h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.qb-onboard p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* Ações de adicionar (sempre 100% de largura) */
.qb-add { display: flex; flex-direction: column; gap: 12px; }
.qb-add__item { width: 100%; }
.qb-add__item--inset { margin-top: 10px; }
.qb-add__btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; list-style: none; padding: 14px; border: 2px dashed var(--border); border-radius: 14px; background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: 13.5px; transition: all .18s ease; }
.qb-add__btn::-webkit-details-marker { display: none; }
.qb-add__btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.qb-add__btn--primary { border-style: solid; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 6px 16px rgba(41,61,101,0.28); }
.qb-add__btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); filter: brightness(1.04); }
.qb-add__item[open] .qb-add__btn { border-radius: 14px 14px 0 0; }
.qb-add__item > .inline-edit__body { margin-top: 0; border-radius: 0 0 14px 14px; box-shadow: none; }

/* Formulários inline (editar/adicionar) */
.inline-edit { position: relative; }
.inline-edit > summary { list-style: none; cursor: pointer; display: inline-flex; transition: filter .15s; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit > summary:hover { filter: brightness(.97); }
.inline-edit__body { margin-top: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(20,30,60,.07); }
.tema-card__tools .inline-edit__body,
.qcard__tools .inline-edit__body { position: absolute; right: 0; z-index: 20; width: min(560px, 88vw); box-shadow: 0 16px 40px rgba(20,30,60,.16); }
.qform-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Alternativas no formulário */
.alts-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.alts-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.alts-head strong { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.alts-head strong i { color: var(--brand); }
.alt-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.alt-row__bullet { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand-soft-2, #c7d2ec); }
.alt-row input[type="text"] { flex: 1 1 auto; }
.alt-row .alt-peso { flex: 0 0 78px; width: 78px; text-align: center; }
.alt-row .btn { flex: 0 0 auto; }

/* Conteúdo HTML renderizado (instruções e enunciados) */
.rich-text { line-height: 1.6; color: var(--text); }
.rich-text :first-child { margin-top: 0; }
.rich-text :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 8px; }
.rich-text ul, .rich-text ol { margin: 0 0 8px; padding-left: 22px; }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text strong, .rich-text b { font-weight: 700; }

.aval-instrucoes { border-left: 4px solid var(--brand); }

/* ------------------------------------------------------------------ */
/* Página de preenchimento 360 — layout moderno                       */
/* ------------------------------------------------------------------ */
.aval-fill { max-width: 860px; margin: 0 auto; padding-bottom: 96px; }

.aval-fill__hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 14px 18px 16px;
    margin-bottom: 16px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: var(--shadow-sm);
}
.aval-fill__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(320px 120px at 100% 0%, rgba(255,255,255,.12), transparent 70%),
        radial-gradient(200px 100px at 0% 100%, rgba(255,255,255,.06), transparent 65%);
    pointer-events: none;
}
.aval-fill__hero-body { position: relative; z-index: 1; }
.aval-fill__eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .75;
}
.aval-fill__title {
    margin: 4px 0 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.2;
    color: #fff;
}
.aval-fill__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aval-fill__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
}
.aval-fill__chip--accent { background: rgba(255,255,255,.22); }

.aval-fill__instructions {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.aval-fill__instructions-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--brand-soft);
}
.aval-fill__instructions-body { flex: 1; min-width: 0; font-size: 14px; }

.aval-fill__progress {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.aval-fill__progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}
.aval-fill__progress-head strong { color: var(--brand); font-size: 14px; }
.aval-fill__progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    overflow: hidden;
}
.aval-fill__progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #5b8cff));
    transition: width .35s cubic-bezier(.4,0,.2,1);
}

.aval-fill__section { margin-bottom: 22px; }
.aval-fill__section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 2px;
}
.aval-fill__section-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--brand-soft);
}
.aval-fill__section-head h2 { flex: 1; font-size: 1.05rem; min-width: 0; }
.aval-fill__section-count {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.aval-fill__questions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aval-fill .q-item {
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.aval-fill .q-item:focus-within {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    box-shadow: 0 8px 24px rgba(41, 61, 101, .08);
}
.aval-fill .q-item__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 0;
}
.aval-fill .q-item__title {
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}
.aval-fill .q-item__num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-top: 0;
    border-radius: 10px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 12px rgba(41, 61, 101, .22);
}
.aval-fill .q-opts {
    display: grid;
    gap: 10px;
    padding: 16px 18px 18px;
}
.aval-fill .q-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.aval-fill .q-opt:hover {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.aval-fill .q-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.aval-fill .q-opt__marker {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #c5cad6;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.aval-fill .q-opt__text { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.45; }
.aval-fill .q-opt:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 20%, transparent);
}
.aval-fill .q-opt:has(input:checked) .q-opt__marker {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
.aval-fill .q-item__field { padding: 14px 18px 18px; }
.aval-fill .q-item__field textarea {
    width: 100%;
    min-height: 112px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    font: inherit;
    line-height: 1.55;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.aval-fill .q-item__field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.aval-fill__footer {
    position: fixed;
    left: var(--sidebar-w);
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(20, 30, 55, .06);
}
.aval-fill__footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.aval-fill__footer-hint { margin: 0; font-size: 13px; color: var(--text-muted); }
.aval-fill__footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.aval-fill__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    padding-right: 20px;
    box-shadow: 0 8px 20px rgba(41, 61, 101, .22);
}

.aval-fill__hero--compact {
    padding: 12px 16px 14px;
    margin-bottom: 16px;
}
.aval-fill__hero--compact .aval-fill__title { margin-bottom: 0; font-size: 1.2rem; }
.aval-fill__hero--compact .aval-fill__eyebrow { margin-top: 0; }

.btn--sky {
    background: #0ea5e9;
    color: #fff;
    border: 1px solid #0ea5e9;
}
.btn--sky:hover { background: #0284c7; border-color: #0284c7; color: #fff; }

.aval-zara-table-wrap { overflow-x: auto; }
.aval-zara-table { min-width: 480px; }
.aval-zara-sugestoes { display: flex; flex-direction: column; gap: 10px; }
.aval-zara-sug {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
}
.aval-zara-sug summary {
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.aval-zara-sug summary::-webkit-details-marker { display: none; }
.aval-zara-sug__body { padding: 0 14px 14px; font-size: 13px; }
.aval-zara-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    font: inherit;
    line-height: 1.55;
    resize: vertical;
}
.aval-zara-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.aval-zara-top3 { margin-bottom: 10px; }
.aval-zara-top3.card .card__head { padding: 7px 10px; }
.aval-zara-top3.card .card__body { padding: 6px 8px; }
.aval-zara-top3__head { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.aval-zara-top3__head h2 { color: #fff; margin: 0; font-size: 11.5px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.aval-zara-top3__body { display: flex; flex-direction: column; gap: 4px; }
.aval-zara-top3__item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: none;
}
.aval-zara-top3__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .18s ease;
    min-height: 32px;
}
.aval-zara-top3__toggle:hover { background: var(--surface-2); }
.aval-zara-top3__toggle::-webkit-details-marker { display: none; }
.aval-zara-top3__rank {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aval-zara-top3__nome {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--brand);
}
.aval-zara-top3__expand {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
    background: #fff;
    position: relative;
    transition: border-color .18s ease, background .18s ease;
}
.aval-zara-top3__expand::before,
.aval-zara-top3__expand::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--brand);
    border-radius: 1px;
    transition: transform .22s ease, opacity .18s ease;
}
.aval-zara-top3__expand::before {
    width: 8px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}
.aval-zara-top3__expand::after {
    width: 1.5px;
    height: 8px;
    transform: translate(-50%, -50%);
}
.aval-zara-top3__item[open] .aval-zara-top3__expand {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}
.aval-zara-top3__item[open] .aval-zara-top3__expand::after {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
}
.aval-zara-top3__toggle:hover .aval-zara-top3__expand {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: var(--brand-soft);
}
.aval-zara-top3__item[open] .aval-zara-top3__toggle { background: var(--surface-2); }
.aval-zara-top3__panel {
    padding: 6px 8px 8px 32px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.aval-zara-top3__sec { margin: 6px 0 2px; font-size: 11px; }
.aval-zara-top3__sec:first-child { margin-top: 0; }
.aval-zara-top3__text { font-size: 11px; line-height: 1.4; color: var(--text); }
.aval-zara-top3__text p { margin: 0 0 4px; }
.aval-zara-top3__text p:last-child { margin-bottom: 0; }
.aval-zara-readonly {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
}

/* Feedback / PDI — lista de avaliados (cliente 183) */
.aval-acoes {
    white-space: nowrap;
}
.aval-acoes .btn--sm,
.aval-acoes .zara-status {
    min-width: 98px;
    height: 32px;
    padding: 0 12px;
    box-sizing: border-box;
    vertical-align: middle;
}

.aval-acoes-th--zara-full { min-width: 430px; }
.aval-acoes--zara-full {
    white-space: normal;
    min-width: 430px;
    max-width: 520px;
    line-height: 1.2;
}
.aval-acoes--zara-full .btn--sm,
.aval-acoes--zara-full .zara-status {
    min-width: 78px;
    height: 30px;
    padding: 0 8px;
    margin: 2px 1px;
    font-size: 11px;
}
.aval-acoes--zara-full .btn--zara-dual .btn-zara-stack__main { font-size: 9px; }
.aval-acoes--zara-full .btn--zara-dual .btn-zara-stack__sub { font-size: 10px; }
.aval-acoes--zara-full .zara-status .btn-zara-stack__main { font-size: 9px; }
.aval-acoes--zara-full .zara-status .btn-zara-stack__sub { font-size: 10px; }
.aval-acoes--zara-full .js-devolutiva i { margin-right: 4px; }

@media (max-width: 1200px) {
    .aval-acoes-th--zara-full,
    .aval-acoes--zara-full {
        min-width: 360px;
        max-width: 420px;
    }
    .aval-acoes--zara-full .btn--sm,
    .aval-acoes--zara-full .zara-status {
        min-width: 72px;
        padding: 0 6px;
    }
}

.btn--primary.btn--zara-dual {
    line-height: 1;
    gap: 0;
}
.btn--primary.btn--zara-dual .btn-zara-stack {
    display: block;
    line-height: 1.05;
    text-align: center;
}
.btn--primary.btn--zara-dual .btn-zara-stack__main,
.btn--primary.btn--zara-dual .btn-zara-stack__sub {
    display: block;
    color: #fff;
    font-weight: 700;
}
.btn--primary.btn--zara-dual .btn-zara-stack__main {
    font-size: 10px;
    opacity: .95;
}
.btn--primary.btn--zara-dual .btn-zara-stack__sub {
    font-size: 11px;
    letter-spacing: .02em;
}

.zara-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    line-height: 1.05;
    color: #94a3b8;
    cursor: default;
    user-select: none;
}
.zara-status .btn-zara-stack {
    display: block;
    text-align: center;
    line-height: 1.05;
}
.zara-status .btn-zara-stack__main,
.zara-status .btn-zara-stack__sub {
    display: block;
}
.zara-status .btn-zara-stack__main {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}
.zara-status .btn-zara-stack__sub {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .02em;
}
.aval-card__actions--stack { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.aval-card__actions--stack .btn { width: auto; min-width: 200px; }

@media (max-width: 960px) {
    .aval-fill__footer { left: 0; padding-inline: 16px; }
}

@media (max-width: 720px) {
    .aval-fill { padding-bottom: 120px; }
    .aval-fill__hero { padding: 12px 14px 14px; }
    .aval-fill__title { font-size: 1.1rem; }
    .aval-fill__section-head { flex-wrap: wrap; }
    .aval-fill__section-count { margin-left: 46px; }
    .aval-fill__footer-inner { flex-direction: column; align-items: stretch; }
    .aval-fill__footer-actions { width: 100%; }
    .aval-fill__footer-actions .btn { flex: 1; justify-content: center; }
    .aval-fill__submit { width: 100%; justify-content: center; }
    body.is-embed .aval-fill__footer-inner { flex-direction: row; align-items: center; justify-content: flex-end; }
    body.is-embed .aval-fill__footer-actions { width: auto; }
    body.is-embed .aval-fill__footer-actions .btn,
    body.is-embed .aval-fill__submit { width: auto; flex: 0 0 auto; }
}

/* Página de preenchimento: título da questão (legado / outras telas) */
.q-item__title { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.q-item__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.q-item__title .rich-text { flex: 1; }

@media (max-width: 720px) {
    .tema-card__tools, .qcard__tools { gap: 6px; }
    .tema-card__tools .inline-edit__body,
    .qcard__tools .inline-edit__body { position: static; width: auto; }
    .qcard__top { flex-direction: column; }
}

/* Summernote: alinhar ao visual dos campos do formulário */
.note-editor.note-frame, .note-editor.note-airframe { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.note-editor.note-frame .note-toolbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 6px 8px; }
.note-editor.note-frame .note-editing-area .note-editable { background: #fff; }
.note-editor.note-frame.fullscreen { border-radius: 0; }

/* ================================================================ */
/* Construtor de questionário em página única (tema/questão/alt)    */
/* ================================================================ */
#qb-temas { counter-reset: tema; }
.tb-tema { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 18px rgba(20,30,60,.05); padding: 14px 16px; margin-bottom: 16px; counter-increment: tema; }
.tb-tema__head { display: flex; align-items: center; gap: 10px; }
.tb-tema__badge { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(41,61,101,.28); }
.tb-tema__badge::after { content: counter(tema); }
.tb-tema__nome { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.tb-tema__peso { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.tb-tema__peso label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.tb-tema__peso input { width: 84px; }
.tb-tema__def { margin-top: 10px; width: 100%; resize: vertical; min-height: 42px; }

/* Inputs do construtor que ficam fora de .field herdam o mesmo padrão moderno */
.tb-tema__nome, .tb-tema__peso input, .tb-tema__def,
.alt-row input[type="text"], .alt-row .alt-peso {
    padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; color: var(--text); background: var(--surface-2);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.tb-tema__nome:focus, .tb-tema__peso input:focus, .tb-tema__def:focus,
.alt-row input:focus, .alt-row .alt-peso:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft);
}
.tb-tema__nome { font-size: 15px; }

.tb-questoes { counter-reset: q; margin-top: 8px; }
.tb-questao { counter-increment: q; display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 10px; border: 1px solid var(--border); border-radius: 13px; background: #fcfdff; }
.tb-questao__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.tb-questao__num::before { content: counter(q); }
.tb-questao__body { flex: 1 1 auto; min-width: 0; }
.tb-q-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.tb-alts { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.tb-addq { margin-top: 12px; }
.alts-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.alts-head strong { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.escala-sel { flex: 0 0 auto; max-width: 240px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.escala-sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.alts-hint { font-size: 11.5px; margin: 6px 0 10px; }
.ui-modal-list { text-align: left; margin: 0; padding-left: 18px; }
.ui-modal-list li { margin: 5px 0; }

/* Barra de confirmação */
.qb-bar { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 -6px 20px rgba(20,30,60,.08); }
.btn--lg { padding: 13px 26px; font-size: 14.5px; }

/* Mini editor de texto rico (contenteditable) */
.rich-ed { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.rich-ed__tb { display: flex; gap: 2px; padding: 6px; background: var(--surface); border-bottom: 1px solid var(--border); }
.rich-ed__b { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: all .15s; }
.rich-ed__b:hover { background: var(--brand-soft); color: var(--brand); }
.rich-ed__area { min-height: 90px; padding: 11px 13px; outline: none; line-height: 1.55; color: var(--text); }
.rich-ed__area:focus { box-shadow: inset 0 0 0 2px var(--brand-soft); }
.rich-ed__area:empty::before { content: attr(data-ph); color: var(--text-muted); pointer-events: none; }

/* Intranet — página de boas-vindas do colaborador */
.intranet-welcome {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid #639cfd;
    border-radius: 14px;
    padding: 28px 32px 32px;
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.intranet-welcome__head h1 { font-size: 1.35rem; color: var(--brand); margin: 0 0 8px; }
.intranet-welcome__sub { font-size: 1.1rem; font-weight: 700; color: var(--brand); margin: 0; }
.intranet-welcome__body { margin-top: 24px; line-height: 1.6; }
.intranet-welcome__list { margin: 16px 0 24px; padding-left: 22px; }
.intranet-welcome__list li { margin-bottom: 10px; }

@media (max-width: 640px) {
    .tb-q-meta { grid-template-columns: 1fr; }
    .tb-tema__head { flex-wrap: wrap; }
}

/* Tapetinho */
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: inline-block; margin: 0; }
.tape-meta { font-size: 12.5px; margin-top: 4px; color: var(--text-muted); }
.tape-meta strong { color: var(--text); }
.tape-meta__ok { color: #15803d !important; }
.tape-meta__time { color: #7e22ce !important; }
.tape-links { font-size: 12.5px; }
.tape-links__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.tape-links__row > span { font-weight: 700; color: var(--text-muted); min-width: 92px; }
.tape-links__row a { color: var(--brand); word-break: break-all; }
.tape-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.tape-form__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tape-form__equipe { padding-top: 8px; border-top: 1px dashed var(--border); }
.tape-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 12px; }
.tape-audit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tape-audit span { display: block; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.tape-audit strong { font-size: 13px; }
.tape-public { min-height: 100vh; margin: 0; background: linear-gradient(160deg, #eef2ff, #f8fafc 45%, #fff); display: grid; place-items: start center; padding: 32px 16px; }
.tape-public__box { width: min(640px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.tape-public__box--wide { width: min(920px, 100%); }
.tape-public__badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #4338ca; background: #e0e7ff; padding: 4px 10px; border-radius: 999px; }
.tape-public__head h1 { margin: 10px 0 4px; font-size: 1.35rem; color: var(--brand); }
.tape-public__head p { margin: 0; color: var(--text-muted); }
.tape-public__form { margin-top: 18px; display: grid; gap: 10px; }
.tape-public__form label { font-weight: 700; font-size: 13px; }
.tape-public__form input[type=text] { padding: 10px 12px; border: 2px solid #22c55e; border-radius: 10px; font-size: 15px; }
.tape-public__hint { margin: 8px 0 0; font-weight: 700; font-size: 13px; }
.tape-chars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tape-char { border: 2px solid var(--border); border-radius: 12px; background: #fff; padding: 8px; cursor: pointer; display: grid; gap: 4px; place-items: center; }
.tape-char img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.tape-char span { font-size: 11px; color: var(--text-muted); }
.tape-char.is-active { border-color: #4800ff; box-shadow: 0 0 0 3px rgba(72, 0, 255, .12); }
.tape-public__submit { margin-top: 8px; justify-self: start; }
.tape-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 18px; }
.tape-board__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tape-board__item.is-lider { border-color: #f59e0b; background: #fffbeb; }
.tape-board__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.tape-board__item strong { display: block; font-size: 14px; }
.tape-board__item span { font-size: 12px; color: var(--text-muted); }
@media (max-width: 900px) {
    .tape-form__grid, .tape-form__grid--4, .tape-audit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .tape-form__grid, .tape-form__grid--4, .tape-audit, .tape-chars { grid-template-columns: 1fr; }
}

/* Tapetinho — jogo (tabuleiro legado) */
.tape-public__langs { display: flex; gap: 16px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.tape-chars--many { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.tape-chars--many .tape-char img { width: 40px; height: 40px; }
.tape-game { margin: 0; min-height: 100vh; background: #0b1220; color: #fff; position: relative; overflow-x: auto; }
.tape-game__logo { position: absolute; left: 14px; top: 8px; height: 42px; z-index: 5; }
.tape-game__title { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; margin: 0; color: #1e3a8a; background: rgba(255,255,255,.9); padding: 4px 14px; border-radius: 10px; font-size: 18px; z-index: 5; white-space: nowrap; }
.tape-game__langs { position: absolute; right: 14px; top: 12px; z-index: 5; display: inline-flex; border-radius: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.35); }
.tape-game__langs button { border: 0; background: rgba(15,23,42,.55); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; cursor: pointer; }
.tape-game__langs button.is-active { background: #fff; color: #1e3a8a; }
.tape-game__hud {
    position: absolute;
    top: 120px;
    left: 80px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
}
.tape-game__hud #LabelClock { color: #fff; font-weight: 700; min-width: 7ch; }
.tape-game__trophy { position: absolute; top: 24%; left: 50%; margin: -150px 0 0 -100px; width: 200px; height: 200px; z-index: 20; }
.tape-game__actions { position: relative; z-index: 6; padding: 70px 16px 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tape-game__stage { border: 1px solid #639cfd; height: calc(100vh - 120px); overflow-x: auto; margin: 0 8px 8px; }
.tape-game__board { background-color: #1e3a5f; background-repeat: no-repeat; background-size: 100% 100%; min-height: 90%; min-width: 100%; }
.tape-board-row { padding: 280px 20px 40px 50px; text-align: center; position: relative; }
.tape-status { background: #000; border-radius: 15px; padding: 2px 8px; color: #fff; font-size: 22px; position: absolute; top: 90px; left: 80px; }
.tape-slots {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end; /* base dos tapetes alinhada */
    gap: 0;
}
.tape-slot {
    width: 125px;
    flex: 0 0 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}
/* Nome sempre acima da imagem */
.tape-slot__name {
    display: block;
    width: max-content;
    max-width: 120px;
    background: #000;
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 0;
}
.tape-slot__name--empty {
    background: transparent;
    color: transparent;
    min-height: 18px;
}
/* Personagem e tapete vazio: mesma regra do legado (sem esticar) */
.tape-slot__img {
    display: block;
    max-width: 125px;
    width: auto;
    height: auto;
    cursor: pointer;
    margin: 0 auto;
    order: 1;
    user-select: none;
    vertical-align: bottom;
}
.tape-admin-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tape-public__warn { color: #b45309; font-weight: 700; line-height: 1.5; margin: 0; }
.badge--soft { background: #e2e8f0; color: #334155; }
.tape-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.45); }
.tape-modal[hidden] { display: none !important; }
.tape-modal__box { background: #fff; color: #111; border-radius: 14px; padding: 20px 22px; width: min(420px, 92vw); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.tape-modal__box h3 { margin: 0 0 8px; font-size: 18px; }
.tape-modal__box p { margin: 0 0 16px; line-height: 1.45; }
.tape-modal__actions { display: flex; justify-content: flex-end; gap: 8px; }
/* Ponto eletrônico — dashboard */
.ponto-dash { display: flex; flex-direction: column; gap: 16px; }
.ponto-dash__hero {
    display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 16px;
    padding: 22px 24px; border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0d9488 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.ponto-dash__tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.12); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ponto-dash__hero-copy h1 { margin: 10px 0 6px; font-size: 1.55rem; line-height: 1.15; }
.ponto-dash__hero-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: .92rem; }
.ponto-dash__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.72); }
.ponto-dash__demo {
    padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14);
    color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem;
}
.ponto-dash__clock {
    min-width: 140px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14); text-align: center; align-self: center;
}
.ponto-dash__clock strong { display: block; font-size: 1.8rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ponto-dash__clock small { color: rgba(255,255,255,.65); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }

.ponto-dash__stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.ponto-stat {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
    background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.ponto-stat strong { display: block; font-size: 1.05rem; color: #0f172a; }
.ponto-stat > div:last-child span { display: block; margin-top: 2px; font-size: .78rem; color: #64748b; }
.ponto-stat__ring {
    --pct: 50; width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; position: relative;
    background: conic-gradient(var(--accent) calc(var(--pct) * 1%), #e2e8f0 0);
    display: grid; place-items: center;
}
.ponto-stat__ring::before {
    content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.ponto-stat__ring span {
    position: relative; z-index: 1; font-size: .72rem; font-weight: 800; color: var(--accent);
}
.ponto-stat__icon {
    width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
}
.ponto-stat__icon svg { width: 24px; height: 24px; }

.ponto-dash__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.ponto-panel {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.ponto-panel--wide { grid-column: 1 / -1; }
.ponto-panel__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 14px 16px 0;
}
.ponto-panel__head h2 { margin: 0; font-size: .95rem; color: #0f172a; }
.ponto-panel__head small { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.ponto-panel__body { padding: 14px 16px 16px; }
.ponto-panel__body--split { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.ponto-donut {
    width: 132px; height: 132px; border-radius: 50%; position: relative; flex-shrink: 0;
}
.ponto-donut__slice { display: none; }
.ponto-donut__center {
    position: absolute; inset: 22px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ponto-donut__center strong { font-size: 1.35rem; color: #0f172a; line-height: 1; }
.ponto-donut__center small { font-size: .68rem; color: #64748b; text-transform: uppercase; }

.ponto-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; }
.ponto-legend li {
    display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: .84rem; color: #475569;
}
.ponto-legend li:last-child { border-bottom: 0; }
.ponto-legend i { width: 10px; height: 10px; border-radius: 999px; display: block; }
.ponto-legend strong { color: #0f172a; }

.ponto-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 140px; }
.ponto-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ponto-bars__track {
    width: 100%; height: 100px; border-radius: 10px 10px 4px 4px; background: #f1f5f9;
    display: flex; align-items: flex-end; overflow: hidden;
}
.ponto-bars__track span {
    display: block; width: 100%; border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #2b8cff, #6366f1); min-height: 4px;
}
.ponto-bars__col small { font-size: .68rem; color: #64748b; }
.ponto-bars__col em { font-style: normal; font-size: .78rem; font-weight: 700; color: #0f172a; }

.ponto-team {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.ponto-person {
    padding: 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc;
}
.ponto-person--off { opacity: .72; }
.ponto-person__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ponto-person__avatar {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #293D65, #2b8cff);
}
.ponto-person__info { flex: 1; min-width: 0; }
.ponto-person__info strong { display: block; font-size: .84rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ponto-person__info small { display: block; font-size: .72rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ponto-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.ponto-dot--ok { background: #12b886; box-shadow: 0 0 0 4px rgba(18,184,134,.15); }
.ponto-dot--warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.ponto-dot--info { background: #2b8cff; box-shadow: 0 0 0 4px rgba(43,140,255,.15); }
.ponto-dot--bad { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.15); }
.ponto-person__times { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; color: #64748b; margin-bottom: 8px; }
.ponto-person__times b { color: #0f172a; font-size: .78rem; }
.ponto-person__bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 8px; }
.ponto-person__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #12b886, #2b8cff); }
.ponto-person footer { font-size: .68rem; color: #94a3b8; }

.ponto-week { display: flex; align-items: flex-end; gap: 8px; min-height: 120px; }
.ponto-week__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ponto-week__bar {
    width: 100%; height: 90px; border-radius: 8px; background: #f1f5f9; position: relative; overflow: hidden;
}
.ponto-week__bar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0);
    background: linear-gradient(180deg, #12b886, #0d9488); border-radius: 8px 8px 0 0;
}
.ponto-week__col small { font-size: .68rem; color: #64748b; }
.ponto-week__col em { font-style: normal; font-size: .72rem; font-weight: 700; color: #0f172a; }

.ponto-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ponto-feed li {
    display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ponto-feed li:last-child { border-bottom: 0; }
.ponto-feed time { font-size: .78rem; font-weight: 700; color: #2b8cff; font-variant-numeric: tabular-nums; }
.ponto-feed strong { display: block; font-size: .84rem; color: #0f172a; }
.ponto-feed span { display: block; font-size: .72rem; color: #64748b; margin-top: 2px; }

@media (max-width: 1100px) {
    .ponto-dash__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ponto-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ponto-dash__stats, .ponto-dash__grid, .ponto-team { grid-template-columns: 1fr; }
    .ponto-panel--wide { grid-column: auto; }
}

/* Folha de pagamento — dashboard */
.folha-dash { display: flex; flex-direction: column; gap: 16px; }
.folha-dash__hero {
    display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 16px;
    padding: 22px 24px; border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 42%, #7c5cff 100%);
    box-shadow: 0 18px 40px rgba(76, 29, 149, .22);
}
.folha-dash__tag {
    display: inline-flex; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.12); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.folha-dash__hero-copy h1 { margin: 10px 0 6px; font-size: 1.55rem; line-height: 1.15; }
.folha-dash__hero-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: .92rem; }
.folha-dash__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.72); }
.folha-dash__demo {
    padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14);
    color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem;
}
.folha-dash__total {
    min-width: 200px; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14); text-align: right; align-self: center;
}
.folha-dash__total small { display: block; color: rgba(255,255,255,.65); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.folha-dash__total strong { display: block; margin-top: 6px; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.folha-dash__delta { display: inline-block; margin-top: 8px; font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.folha-dash__delta--up { background: rgba(18,184,134,.2); color: #bbf7d0; }

.folha-badge {
    display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.folha-badge--ok { background: rgba(18,184,134,.18); color: #166534; }
.folha-badge--warn { background: rgba(245,158,11,.18); color: #92400e; }
.folha-dash__hero .folha-badge--ok { background: rgba(18,184,134,.25); color: #bbf7d0; }
.folha-dash__hero .folha-badge--warn { background: rgba(245,158,11,.25); color: #fde68a; }

.folha-dash__stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.folha-stat {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
    background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.folha-stat strong { display: block; font-size: 1rem; color: #0f172a; font-variant-numeric: tabular-nums; }
.folha-stat > div:last-child span { display: block; margin-top: 2px; font-size: .78rem; color: #64748b; }
.folha-stat__icon {
    width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
}
.folha-stat__icon svg { width: 24px; height: 24px; }

.folha-dash__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.folha-panel {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.folha-panel--wide { grid-column: 1 / -1; }
.folha-panel__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 14px 16px 0;
}
.folha-panel__head h2 { margin: 0; font-size: .95rem; color: #0f172a; }
.folha-panel__head small { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.folha-panel__body { padding: 14px 16px 16px; }
.folha-panel__body--split { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.folha-donut {
    width: 132px; height: 132px; border-radius: 50%; position: relative; flex-shrink: 0;
}
.folha-donut__center {
    position: absolute; inset: 22px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.folha-donut__center strong { font-size: .78rem; color: #0f172a; line-height: 1.2; }
.folha-donut__center small { font-size: .62rem; color: #64748b; text-transform: uppercase; }

.folha-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; }
.folha-legend li {
    display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: .84rem; color: #475569;
}
.folha-legend li:last-child { border-bottom: 0; }
.folha-legend i { width: 10px; height: 10px; border-radius: 999px; display: block; }
.folha-legend strong { color: #0f172a; font-variant-numeric: tabular-nums; font-size: .78rem; }

.folha-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 140px; }
.folha-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.folha-bars__track {
    width: 100%; height: 100px; border-radius: 10px 10px 4px 4px; background: #f1f5f9;
    display: flex; align-items: flex-end; overflow: hidden;
}
.folha-bars__track span {
    display: block; width: 100%; border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #7c5cff, #4c1d95); min-height: 4px;
}
.folha-bars__col small { font-size: .68rem; color: #64748b; }
.folha-bars__col em { font-style: normal; font-size: .78rem; font-weight: 700; color: #0f172a; }

.folha-team {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.folha-person {
    padding: 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fafafa;
}
.folha-person--pend { border-color: #fde68a; background: #fffbeb; }
.folha-person__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.folha-person__avatar {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #4c1d95, #7c5cff);
}
.folha-person__info { flex: 1; min-width: 0; }
.folha-person__info strong { display: block; font-size: .84rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folha-person__info small { display: block; font-size: .72rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folha-person__vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.folha-person__vals span { display: block; font-size: .68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .03em; }
.folha-person__vals b { display: block; font-size: .82rem; color: #0f172a; font-variant-numeric: tabular-nums; }

.folha-dept { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.folha-dept__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .84rem; }
.folha-dept__head strong { color: #0f172a; }
.folha-dept__head span { color: #64748b; font-size: .72rem; }
.folha-dept__bar { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; margin-bottom: 4px; }
.folha-dept__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c5cff, #2b8cff); }
.folha-dept footer { font-size: .72rem; color: #64748b; }

.folha-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.folha-steps li { display: flex; align-items: center; gap: 12px; }
.folha-steps__dia {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; font-weight: 800; color: #4c1d95;
    background: #ede9fe; font-size: .85rem;
}
.folha-steps strong { display: block; font-size: .84rem; color: #0f172a; }
.folha-steps em { display: block; font-style: normal; font-size: .68rem; color: #7c5cff; text-transform: uppercase; letter-spacing: .04em; }

.folha-divider { border: 0; border-top: 1px solid #f1f5f9; margin: 12px 0; }
.folha-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.folha-feed li {
    display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}
.folha-feed li:last-child { border-bottom: 0; }
.folha-feed time { font-size: .72rem; font-weight: 700; color: #94a3b8; font-variant-numeric: tabular-nums; }
.folha-feed strong { display: block; font-size: .8rem; color: #0f172a; }
.folha-feed span { display: block; font-size: .7rem; color: #64748b; margin-top: 2px; }
.folha-feed__item--ok time { color: #12b886; }
.folha-feed__item--warn time { color: #f59e0b; }
.folha-feed__item--info time { color: #2b8cff; }

@media (max-width: 1100px) {
    .folha-dash__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .folha-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .folha-dash__stats, .folha-dash__grid, .folha-team { grid-template-columns: 1fr; }
    .folha-panel--wide { grid-column: auto; }
    .folha-dash__total { text-align: left; width: 100%; }
}

/* Admissão — folha de pagamento */
.adm-form { display: flex; flex-direction: column; gap: 14px; }
.adm-tabs {
    display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid #d7dce5;
    background: #f3f4f6; border-radius: 10px 10px 0 0; overflow: hidden;
}
.adm-tab {
    border: 0; background: transparent; padding: 11px 14px; font-size: .78rem; font-weight: 600;
    color: #64748b; cursor: pointer; border-right: 1px solid #e2e8f0; white-space: nowrap;
}
.adm-tab:hover:not(:disabled) { background: #e9edf3; color: #334155; }
.adm-tab.is-active { background: #fff; color: #c2410c; box-shadow: inset 0 -2px 0 #ea580c; }
.adm-tab:disabled { opacity: .45; cursor: not-allowed; }
.adm-pane { display: none; flex-direction: column; gap: 14px; }
.adm-pane.is-active { display: flex; }
.adm-card { border-radius: 0 0 12px 12px; border-top: 0; }
.adm-section {
    margin: 4px 0 0; padding-bottom: 8px; font-size: .95rem; color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.adm-grid--top { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.adm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.adm-grid--top-row { margin-bottom: 4px; }
.adm-grid--inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-col { display: flex; flex-direction: column; gap: 0; }
.adm-span-2 { grid-column: span 2; }
.adm-input--short { max-width: 72px; }
.adm-form input:not([readonly]):not([disabled]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="email"]),
.adm-form select:not([disabled]),
.adm-form textarea:not([readonly]):not([disabled]) { background: #fff; }
.adm-form input[readonly],
.adm-form input:disabled,
.adm-form select:disabled,
.adm-form textarea:disabled { background: #f1f5f9 !important; color: #64748b; cursor: not-allowed; }
.is-readonly { background: #f1f5f9 !important; color: #64748b; cursor: not-allowed; }
.field--req > label::after { content: ' *'; color: #ef4444; font-weight: 700; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
input.is-invalid,
select.is-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 1px #ef4444; }
.adm-checks { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.adm-check { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #334155; cursor: pointer; }
.adm-check input { width: 16px; height: 16px; accent-color: #ea580c; }
.adm-foto__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-foto__preview { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid #e2e8f0; }
.btn--upload {
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    background: linear-gradient(180deg, #f97316, #ea580c); color: #fff; border: 0;
    padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: .84rem;
    box-shadow: 0 4px 12px rgba(234, 88, 12, .25);
}
.btn--upload:hover { filter: brightness(1.05); }
@media (max-width: 980px) {
    .adm-grid--top, .adm-grid--3, .adm-grid--4, .adm-grid--2col { grid-template-columns: 1fr; }
    .adm-span-2 { grid-column: auto; }
}

@media (max-width: 900px) {
    .tape-chars--many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .tape-game__title { left: 14px; transform: none; top: 56px; font-size: 14px; }
    .tape-game__hud { left: 14px; top: 100px; font-size: 16px; }
    .tape-status { left: 14px; font-size: 16px; }
    .tape-board-row { padding-top: 220px; padding-left: 12px; }
}

/* ---------------------------------------------------------------- Sobre (institucional) */
@keyframes sobre-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes sobre-glow-pulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes sobre-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sobre-page {
    position: relative;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}
.sobre-bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .45;
    background-image:
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.sobre-shell {
    position: relative;
    z-index: 1;
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
}

.sobre-gradient-text {
    background: linear-gradient(120deg, #7dd3fc 0%, #c4b5fd 45%, #fcd34d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sobre-gradient-flow 5s ease infinite;
}

.sobre-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.sobre-pill--glow {
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 0 24px rgba(125,211,252,.25);
}
.sobre-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 10px #7dd3fc;
    animation: sobre-glow-pulse 2s ease infinite;
}

.sobre-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 4px 24px rgba(20,30,55,.06);
}
.sobre-topbar__inner {
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}
.sobre-topbar__brand img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(41,61,101,.12));
}
.sobre-topbar__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sobre-topbar__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.sobre-topbar__link:hover { color: var(--brand); }
.sobre-topbar__cta {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 12px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent);
}

.sobre-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(91,140,255,.28), transparent 55%),
        radial-gradient(900px 420px at 85% -5%, rgba(255,255,255,.14), transparent 55%),
        radial-gradient(700px 360px at 0% 100%, rgba(196,181,253,.12), transparent 50%),
        linear-gradient(155deg, #0f1729 0%, var(--brand-dark) 35%, var(--brand) 68%, #1e3a5f 100%);
    color: #fff;
}
.sobre-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.sobre-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: sobre-glow-pulse 6s ease-in-out infinite;
}
.sobre-hero__orb--1 {
    width: 420px;
    height: 420px;
    top: -80px;
    left: -120px;
    background: rgba(125,211,252,.35);
}
.sobre-hero__orb--2 {
    width: 340px;
    height: 340px;
    right: -60px;
    bottom: 80px;
    background: rgba(196,181,253,.3);
    animation-delay: -2s;
}
.sobre-hero__orb--3 {
    width: 260px;
    height: 260px;
    left: 45%;
    top: 20%;
    background: rgba(252,211,77,.15);
    animation-delay: -4s;
}
.sobre-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 48px;
}
.sobre-hero__copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 800;
}
.sobre-lead {
    margin: 0 0 24px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    max-width: 52ch;
}
.sobre-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.sobre-btn-glow {
    box-shadow:
        0 12px 32px color-mix(in srgb, var(--brand) 45%, transparent),
        0 0 0 1px rgba(255,255,255,.12) inset;
}
.sobre-hero .btn--ghost {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
    color: #fff;
    backdrop-filter: blur(8px);
}
.sobre-hero .btn--ghost:hover {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.45);
    transform: translateY(-1px);
}
.sobre-hero .sobre-pill--glow {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.95);
}
.sobre-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}
.sobre-hero__badges span {
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    transition: transform .15s, background .15s;
}
.sobre-hero__badges span:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.14);
}

.sobre-hero__visual {
    position: relative;
    perspective: 900px;
}
.sobre-hero__ring {
    position: absolute;
    inset: -12px;
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 50%, rgba(125,211,252,.28), rgba(196,181,253,.12) 55%, transparent 75%);
    opacity: .9;
    filter: blur(22px);
    pointer-events: none;
}
.sobre-hero__bento {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    transform: rotateY(-6deg) rotateX(4deg);
    transform-style: preserve-3d;
}
.sobre-bento {
    position: relative;
    overflow: hidden;
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(14px) saturate(1.3);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sobre-bento:hover {
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.sobre-bento--float { animation: sobre-float 5s ease-in-out infinite; }
.sobre-bento--d1 { animation-delay: -.5s; }
.sobre-bento--d2 { animation-delay: -1.2s; }
.sobre-bento--d3 { animation-delay: -2s; }
.sobre-bento strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}
.sobre-bento span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.68);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sobre-bento--main {
    grid-column: 1 / -1;
    text-align: left;
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(125,211,252,.18), rgba(196,181,253,.12) 50%, rgba(255,255,255,.06));
    border-color: rgba(125,211,252,.35);
}
.sobre-bento__kicker {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #bae6fd;
    margin-bottom: 10px;
}
.sobre-bento--main strong {
    font-size: 1.28rem;
    margin-bottom: 8px;
}
.sobre-bento--main p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

.sobre-marquee {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
    padding: 16px 20px;
}
.sobre-marquee__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin-inline: auto;
}
.sobre-marquee__track span {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.88);
    white-space: nowrap;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
}
.sobre-marquee__track span:nth-child(3n) {
    background: rgba(125,211,252,.14);
    border-color: rgba(125,211,252,.35);
    color: #bae6fd;
}
.sobre-marquee__track span:nth-child(3n+1) {
    background: rgba(196,181,253,.12);
    border-color: rgba(196,181,253,.3);
    color: #e9d5ff;
}
.sobre-marquee__track span:nth-child(3n+2) {
    background: rgba(252,211,77,.1);
    border-color: rgba(252,211,77,.28);
    color: #fde68a;
}

.sobre-beneficios {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(41,61,101,.06), transparent 60%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}
.sobre-section__head--light .sobre-pill { background: var(--brand-soft); color: var(--brand); }
.sobre-section__head h2 {
    background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--brand) 70%, var(--text)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sobre-beneficios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sobre-beneficio {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    border-radius: 22px;
    background: linear-gradient(155deg, #fff 0%, color-mix(in srgb, var(--card-accent, var(--brand)) 5%, #f8faff) 100%);
    border: 1px solid color-mix(in srgb, var(--card-accent, var(--brand)) 18%, var(--border));
    box-shadow:
        0 4px 18px color-mix(in srgb, var(--card-accent, var(--brand)) 10%, transparent),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sobre-beneficio--cloud { --card-accent: #293D65; }
.sobre-beneficio--mobile { --card-accent: #0d9668; }
.sobre-beneficio--ia { --card-accent: #6366f1; }
.sobre-beneficio--brand { --card-accent: #d97706; }
.sobre-beneficio--email { --card-accent: #4f6fd8; }
.sobre-beneficio--chart { --card-accent: #0891b2; }
.sobre-beneficio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent, var(--brand)), color-mix(in srgb, var(--card-accent, var(--brand)) 50%, #fff));
    border-radius: 22px 22px 0 0;
}
.sobre-beneficio::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent, var(--brand)) 8%, transparent), transparent 55%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.sobre-beneficio:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px color-mix(in srgb, var(--card-accent, var(--brand)) 16%, transparent),
        inset 0 1px 0 rgba(255,255,255,.9);
    border-color: color-mix(in srgb, var(--card-accent, var(--brand)) 35%, var(--border));
}
.sobre-beneficio:hover::after { opacity: 1; }
.sobre-beneficio__num {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--card-accent, var(--brand)) 12%, transparent);
    letter-spacing: -.04em;
    pointer-events: none;
}
.sobre-beneficio__icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--card-accent, var(--brand)) 22%, transparent);
}
.sobre-beneficio__icon svg { width: 22px; height: 22px; }
.sobre-beneficio__icon--cloud { background: linear-gradient(145deg, #293D65, #3d5280); color: #fff; }
.sobre-beneficio__icon--mobile { background: linear-gradient(145deg, #0d9668, #14b887); color: #fff; }
.sobre-beneficio__icon--ia { background: linear-gradient(145deg, #6366f1, #818cf8); color: #fff; }
.sobre-beneficio__icon--brand { background: linear-gradient(145deg, #d97706, #f59e0b); color: #fff; }
.sobre-beneficio__icon--email { background: linear-gradient(145deg, #4f6fd8, #6b8cff); color: #fff; }
.sobre-beneficio__icon--chart { background: linear-gradient(145deg, #0891b2, #22d3ee); color: #fff; }
.sobre-beneficio h3 {
    position: relative;
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: -.02em;
}
.sobre-beneficio p {
    position: relative;
    margin: 0;
    font-size: .86rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.sobre-produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sobre-produto {
    position: relative;
    overflow: hidden;
    padding: 24px 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--prod-accent, var(--brand)) 4%, #f8faff) 100%);
    border: 1px solid color-mix(in srgb, var(--prod-accent, var(--brand)) 16%, var(--border));
    box-shadow:
        0 4px 16px color-mix(in srgb, var(--prod-accent, var(--brand)) 8%, transparent),
        inset 0 1px 0 rgba(255,255,255,.85);
    transition: transform .22s, box-shadow .22s, border-color .22s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sobre-produto::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, color-mix(in srgb, var(--brand) 25%, transparent), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .22s;
    pointer-events: none;
}
.sobre-produto:hover {
    transform: translateY(-5px);
    box-shadow:
        0 22px 44px color-mix(in srgb, var(--prod-accent, var(--brand)) 18%, transparent),
        inset 0 1px 0 rgba(255,255,255,.85);
    border-color: color-mix(in srgb, var(--prod-accent, var(--brand)) 32%, var(--border));
}
.sobre-produto:hover::after { opacity: 1; }
.sobre-produto--featured {
    grid-column: span 2;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--prod-accent, var(--brand)) 10%, #fff) 0%, #fff 45%, color-mix(in srgb, var(--prod-accent, var(--brand)) 6%, #f0f4ff) 100%);
    border-color: color-mix(in srgb, var(--prod-accent, var(--brand)) 28%, var(--border));
    box-shadow:
        0 8px 32px color-mix(in srgb, var(--prod-accent, var(--brand)) 20%, transparent),
        inset 0 1px 0 rgba(255,255,255,.9);
}
.sobre-produto--featured .sobre-produto__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #5b8cff));
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent);
}
.sobre-produto--featured h3 { font-size: 1.08rem; }
.sobre-produto--blue { --prod-accent: var(--brand); }
.sobre-produto--indigo { --prod-accent: #4f6fd8; }
.sobre-produto--cyan { --prod-accent: #0891b2; }
.sobre-produto--teal { --prod-accent: #0d9668; }
.sobre-produto--violet { --prod-accent: #7c3aed; }
.sobre-produto--amber { --prod-accent: #d97706; }
.sobre-produto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--prod-accent, var(--brand));
    border-radius: 22px 22px 0 0;
}
.sobre-produto__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.sobre-produto__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--prod-accent, var(--brand)), color-mix(in srgb, var(--prod-accent, var(--brand)) 75%, #fff));
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--prod-accent, var(--brand)) 30%, transparent);
    transition: transform .2s;
}
.sobre-produto:hover .sobre-produto__icon { transform: scale(1.06); }
.sobre-produto__icon svg { width: 21px; height: 21px; }
.sobre-produto h3 {
    margin: 0;
    font-size: .96rem;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.sobre-produto p {
    margin: 0;
    flex: 1;
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text-muted);
}
.sobre-produto__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}
.sobre-produto__tags span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--prod-accent, var(--brand)) 12%, #fff);
    color: var(--prod-accent, var(--brand));
    border: 1px solid color-mix(in srgb, var(--prod-accent, var(--brand)) 22%, transparent);
}

.sobre-section--ia {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 100% 80% at 0% 50%, rgba(125,211,252,.15), transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 20%, rgba(196,181,253,.12), transparent 50%),
        linear-gradient(165deg, #0a1020 0%, var(--brand-dark) 40%, var(--brand) 100%);
    color: #fff;
}
.sobre-ia__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125,211,252,.2), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    animation: sobre-glow-pulse 5s ease infinite;
}
.sobre-pill--light {
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18);
}
.sobre-ia {
    position: relative;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 40px;
    align-items: start;
}
.sobre-ia__intro h2 {
    margin: 0 0 16px;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -.03em;
    background: linear-gradient(120deg, #fff 30%, #bae6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sobre-ia__intro p {
    margin: 0 0 24px;
    font-size: .98rem;
    line-height: 1.7;
    color: rgba(255,255,255,.78);
    max-width: 48ch;
}
.sobre-ia__intro .btn--primary {
    background: linear-gradient(135deg, #fff, #e0f2fe);
    color: var(--brand);
    border: none;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.sobre-ia__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.sobre-ia-card {
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    transition: transform .2s, border-color .2s, background .2s;
}
.sobre-ia-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.11);
    border-color: rgba(125,211,252,.35);
}
.sobre-ia-card:nth-child(1) { animation: sobre-float 6s ease-in-out infinite; }
.sobre-ia-card:nth-child(2) { animation: sobre-float 6s ease-in-out infinite -1.5s; }
.sobre-ia-card:nth-child(3) { animation: sobre-float 6s ease-in-out infinite -3s; }
.sobre-ia-card:nth-child(4) { animation: sobre-float 6s ease-in-out infinite -4.5s; }
.sobre-ia-card__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7dd3fc;
    margin-bottom: 14px;
    box-shadow: 0 0 16px rgba(125,211,252,.8);
    animation: sobre-glow-pulse 2.5s ease infinite;
}
.sobre-ia-card h3 {
    margin: 0 0 8px;
    font-size: .96rem;
}
.sobre-ia-card p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
    color: rgba(255,255,255,.72);
}

.sobre-integracoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sobre-integracao {
    position: relative;
    padding: 26px 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--int-accent, var(--brand)) 5%, #f8faff) 100%);
    border: 1px solid color-mix(in srgb, var(--int-accent, var(--brand)) 18%, var(--border));
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
    box-shadow:
        0 4px 16px color-mix(in srgb, var(--int-accent, var(--brand)) 8%, transparent),
        inset 0 1px 0 rgba(255,255,255,.88);
}
.sobre-integracao--mail { --int-accent: #4f6fd8; }
.sobre-integracao--pdf { --int-accent: #dc2626; }
.sobre-integracao--portal { --int-accent: #0891b2; }
.sobre-integracao--folha { --int-accent: #0d9668; }
.sobre-integracao--api { --int-accent: #7c3aed; }
.sobre-integracao--credit { --int-accent: #d97706; }
.sobre-integracao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--int-accent, var(--brand)), color-mix(in srgb, var(--int-accent, var(--brand)) 40%, #fff));
    border-radius: 22px 22px 0 0;
}
.sobre-integracao:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px color-mix(in srgb, var(--int-accent, var(--brand)) 16%, transparent),
        inset 0 1px 0 rgba(255,255,255,.88);
    border-color: color-mix(in srgb, var(--int-accent, var(--brand)) 32%, var(--border));
}
.sobre-integracao__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--int-accent, var(--brand)), color-mix(in srgb, var(--int-accent, var(--brand)) 70%, #fff));
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--int-accent, var(--brand)) 28%, transparent);
}
.sobre-integracao__icon svg { width: 23px; height: 23px; }
.sobre-integracao h3 {
    margin: 0 0 8px;
    font-size: .95rem;
}
.sobre-integracao p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.sobre-cta__support {
    font-size: .82rem;
    color: rgba(255,255,255,.78);
    font-weight: 600;
    text-decoration: none;
}
.sobre-cta__support:hover { color: #fff; text-decoration: underline; }

.sobre-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}
.sobre-section--alt {
    background:
        radial-gradient(ellipse 70% 40% at 50% 100%, rgba(41,61,101,.05), transparent),
        var(--surface);
    border-block: 1px solid var(--border);
}
.sobre-section__head {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}
.sobre-section__head h2 {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    letter-spacing: -.03em;
    line-height: 1.15;
}
.sobre-section__head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: .98rem;
}

.sobre-disc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.sobre-disc__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 24px 48px rgba(20,30,55,.12),
        0 0 0 1px rgba(255,255,255,.5) inset;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    min-height: 300px;
    transition: transform .3s, box-shadow .3s;
}
.sobre-disc__media:hover {
    transform: scale(1.02);
    box-shadow: 0 28px 56px color-mix(in srgb, var(--brand) 18%, transparent);
}
.sobre-disc__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15,23,41,.4));
    z-index: 1;
    pointer-events: none;
}
.sobre-disc__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}
.sobre-disc__media.is-fallback img { display: none; }
.sobre-disc__fallback {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 28px;
}
.sobre-disc__media.is-fallback .sobre-disc__fallback { display: grid; }
.sobre-disc__fallback span {
    aspect-ratio: 1;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(6px);
}
.sobre-disc__copy h2 {
    margin: 0 0 16px;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -.03em;
}
.sobre-disc__copy p {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: .95rem;
}
.sobre-disc__list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}
.sobre-disc__list li {
    position: relative;
    padding: 10px 14px 10px 32px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--brand) 4%, #f8faff));
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 6%, transparent);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.sobre-disc__list li:hover {
    transform: translateX(4px);
    border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 12%, transparent);
}
.sobre-disc__list li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #5b8cff);
    box-shadow: 0 0 8px color-mix(in srgb, var(--brand) 40%, transparent);
}

.sobre-clientes {
    padding: 36px 32px;
    background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--brand) 5%, #f4f7fc) 100%);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
    border-radius: 24px;
    text-align: center;
    box-shadow:
        0 8px 32px color-mix(in srgb, var(--brand) 10%, transparent),
        inset 0 1px 0 rgba(255,255,255,.9);
}
.sobre-clientes img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: saturate(1.05);
}

.sobre-cta {
    position: relative;
    z-index: 1;
    padding: 0 0 72px;
}
.sobre-cta__box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 44px 48px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 80% 100% at 0% 50%, rgba(125,211,252,.15), transparent 55%),
        linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #1e3a5f 100%);
    color: #fff;
    box-shadow:
        0 28px 60px color-mix(in srgb, var(--brand) 38%, transparent),
        0 0 0 1px rgba(255,255,255,.1) inset;
}
.sobre-cta__glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 70% 80% at 100% 50%, rgba(125,211,252,.18), transparent 60%);
    pointer-events: none;
}
.sobre-cta__copy {
    position: relative;
    z-index: 1;
}
.sobre-cta__copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    letter-spacing: -.03em;
    line-height: 1.2;
}
.sobre-cta__copy p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: .96rem;
    line-height: 1.6;
    max-width: 48ch;
}
.sobre-cta__contact {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.sobre-cta .btn--primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}
.sobre-cta .btn--primary:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    filter: none;
}
.sobre-cta__phone {
    font-size: .82rem;
    color: rgba(255,255,255,.72);
    font-weight: 600;
}

.sobre-footer {
    position: relative;
    z-index: 1;
    padding: 28px 0 36px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.sobre-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sobre-footer__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.sobre-footer__back:hover { text-decoration: underline; }
.sobre-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .sobre-hero__orb,
    .sobre-bento--float,
    .sobre-ia-card,
    .sobre-gradient-text,
    .sobre-pill__dot,
    .sobre-ia-card__dot,
    .sobre-ia__glow { animation: none !important; }
    .sobre-hero__bento { transform: none; }
    .sobre-disc__media { transform: none; }
}

@media (max-width: 960px) {
    .sobre-hero__grid,
    .sobre-disc,
    .sobre-beneficios__grid,
    .sobre-produtos,
    .sobre-ia,
    .sobre-ia__cards,
    .sobre-integracoes { grid-template-columns: 1fr; }
    .sobre-produto--featured { grid-column: span 1; }
    .sobre-hero { padding-top: 48px; }
    .sobre-hero__grid { padding-bottom: 32px; }
    .sobre-hero__bento { transform: none; }
    .sobre-hero__ring { display: none; }
    .sobre-cta__box { padding: 32px 28px; }
    .sobre-disc__list { grid-template-columns: 1fr; }
    .sobre-disc__media { transform: none; }
    .sobre-topbar__nav a.sobre-topbar__anchor { display: none; }
}
@media (max-width: 640px) {
    .sobre-produtos,
    .sobre-beneficios__grid,
    .sobre-integracoes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .sobre-hero__bento { grid-template-columns: 1fr; }
    .sobre-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- Fast Leader */
.fl-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; background: #eef2ff; color: #3730a3;
}
.fl-badge--lider-operacional { background: #fff7ed; color: #c2410c; }
.fl-badge--lider-tatico { background: #eff6ff; color: #1d4ed8; }
.fl-badge--lider-estrategico { background: #ecfdf5; color: #047857; }

.fl-intro, .fl-form { padding: 22px 24px; margin-bottom: 18px; }
.fl-intro__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
    background: linear-gradient(120deg, #0284c7, #4f46e5); color: #fff;
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.fl-intro h2 { margin: 0 0 8px; font-size: 18px; }
.fl-intro p { color: var(--text-muted); margin: 0 0 10px; }
.fl-intro__pilares { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.fl-intro__pilares li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.fl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fl-dot--conectar { background: #0284c7; }
.fl-dot--capacitar { background: #4f46e5; }
.fl-dot--consolidar { background: #0d9488; }
.fl-intro__hint { font-size: 13px; }

.fl-form h3 { margin: 0 0 14px; font-size: 16px; }
.fl-form__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px;
}
.fl-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.fl-field input {
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
    font: inherit; color: var(--text); background: #fff;
}
.fl-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.fl-error { color: #dc2626; font-weight: 600; font-size: 12px; }
.fl-form__acoes { margin-top: 18px; display: flex; justify-content: flex-end; }
.btn--lg { padding: 12px 22px; font-size: 15px; }

.fl-quiz { max-width: 920px; margin: 0 auto; }
.fl-pilar {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 20px 22px; margin-bottom: 16px; border-left: 6px solid var(--fl-cor);
    box-shadow: var(--shadow-sm);
}
.fl-pilar__head { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 14px; }
.fl-pilar__head h2 { margin: 0; font-size: 18px; color: var(--fl-cor); }
.fl-q { margin-bottom: 18px; }
.fl-q:last-child { margin-bottom: 0; }
.fl-q__texto { margin: 0 0 10px; color: #334155; font-size: 14px; font-weight: 500; }
.fl-q__slider { display: flex; align-items: center; gap: 14px; }
.fl-slider {
    flex: 1; -webkit-appearance: none; appearance: none; height: 8px;
    border-radius: 4px; background: #e2e8f0; outline: none;
}
.fl-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: var(--fl-cor); cursor: pointer;
}
.fl-slider::-moz-range-thumb {
    width: 20px; height: 20px; border: 0; border-radius: 50%;
    background: var(--fl-cor); cursor: pointer;
}
.fl-q__val { min-width: 28px; text-align: right; font-weight: 800; font-size: 15px; color: #1e293b; }
.fl-quiz__acoes { display: flex; justify-content: center; margin: 8px 0 28px; }

.fl-result {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 26px 28px; max-width: 920px; margin: 0 auto; box-shadow: var(--shadow-sm);
}
.fl-result__ident {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 2px solid #2F328F; padding-bottom: 12px; margin-bottom: 20px; gap: 16px;
}
.fl-result__kind { color: #2F328F; font-weight: 800; font-size: 16px; }
.fl-result__ident h2 { margin: 2px 0 4px; font-size: 22px; }
.fl-result__meta { margin: 0; color: var(--text-muted); font-size: 13px; }
.fl-result__logo { height: 44px; }
.fl-result__grid {
    display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin-bottom: 18px;
}
.fl-macro {
    background: #0f172a; color: #f8fafc; border-radius: 12px; padding: 22px 16px;
    text-align: center; border: 1px solid #334155;
}
.fl-macro__num { font-size: 42px; font-weight: 800; color: #38bdf8; line-height: 1; }
.fl-macro__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-top: 6px; }
.fl-macro__level { margin-top: 8px; font-weight: 700; font-size: 15px; }
.fl-bars { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.fl-bar__lbl { font-size: 13px; color: #475569; margin-bottom: 5px; }
.fl-bar__track { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.fl-bar__fill { height: 100%; border-radius: 999px; }
.fl-rec {
    background: #f8fafc; border: 1px solid var(--border); border-left-width: 4px;
    border-radius: 10px; padding: 16px 18px; margin-bottom: 18px;
}
.fl-rec h3 { margin: 0 0 8px; font-size: 15px; }
.fl-rec p { margin: 0; color: #475569; font-size: 13.5px; text-align: justify; line-height: 1.55; }
.fl-result__acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 720px) {
    .fl-form__grid { grid-template-columns: 1fr; }
    .fl-result__grid { grid-template-columns: 1fr; }
}

/* Tomada de Decisão — opções e matriz */
.fl-q--opcoes { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.fl-q__num { color: #2F328F; font-weight: 800; margin-right: 4px; }
.fl-opcoes { display: flex; flex-direction: column; gap: 8px; }
.fl-opcao {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
    background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; font-size: 14px; line-height: 1.45; color: #334155;
    transition: background .15s, border-color .15s;
}
.fl-opcao:hover { background: #edf2f7; border-color: #cbd5e0; }
.fl-opcao input { margin-top: 3px; flex-shrink: 0; }
.fl-opcao:has(input:checked) { border-color: #2F328F; background: #eef2ff; }
.fl-td-intro { text-align: center; color: var(--text-muted); margin: 0 0 18px; }
.fl-matrix {
    display: grid; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 42px;
    max-width: 680px; margin: 0 auto 22px; gap: 0;
}
.fl-matrix__y {
    writing-mode: vertical-rl; transform: rotate(180deg);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; font-weight: 700; color: #0e0e2c; padding: 12px 0;
    border-right: 3px solid #0e0e2c; letter-spacing: .04em;
}
.fl-matrix__grid {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 14px; padding-left: 14px; padding-bottom: 14px;
}
.fl-matrix__q {
    border-radius: 16px; color: #fff; padding: 24px 14px; text-align: center;
    min-height: 120px; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.fl-matrix__q-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.fl-matrix__q-pct { font-size: 32px; font-weight: 900; background: rgba(255,255,255,.22); display: inline-block; padding: 2px 16px; border-radius: 20px; }
.fl-matrix__q--embasada { background: #f40081; }
.fl-matrix__q--experimentacao { background: #00b0e6; }
.fl-matrix__q--rapida { background: #67cb47; }
.fl-matrix__q--aposta { background: #8752be; }
.fl-matrix__x {
    grid-column: 2; display: flex; justify-content: space-between;
    font-size: 11px; font-weight: 700; color: #0e0e2c; padding: 10px 14px 0;
    border-top: 3px solid #0e0e2c; letter-spacing: .04em;
}
@media (max-width: 600px) {
    .fl-matrix { grid-template-columns: 32px 1fr; grid-template-rows: 1fr 32px; }
    .fl-matrix__q { min-height: 96px; padding: 16px 10px; }
    .fl-matrix__q-title { font-size: 12px; }
    .fl-matrix__q-pct { font-size: 22px; }
}

/* Estilos de Liderança — cards de resultado */
.fl-estilos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.fl-estilo-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-top: 4px solid var(--fl-cor, #0ea5e9);
    border-radius: 12px;
    padding: 16px 18px;
}
.fl-estilo-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.fl-estilo-card__score {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}
.fl-estilo-card p {
    margin: 0;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
}
.fl-estilo-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.fl-estilo-tag--high { color: #854d0e; background: #fef9c3; }
.fl-estilo-tag--balanced { color: #166534; background: #dcfce7; }
.fl-estilo-tag--low { color: #991b1b; background: #fee2e2; }

/* Gestão e Liderança — escala 1–5 e donuts */
.fl-escala-legenda {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 16px;
}
.fl-q--escala { margin-bottom: 18px; }
.fl-escala {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.fl-escala__opt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
    color: #334155;
    transition: background .15s, border-color .15s;
}
.fl-escala__opt:hover { background: #edf2f7; border-color: #cbd5e0; }
.fl-escala__opt:has(input:checked) {
    border-color: var(--fl-cor, #2F328F);
    background: color-mix(in srgb, var(--fl-cor, #2F328F) 12%, white);
    color: var(--fl-cor, #2F328F);
}
.fl-escala__opt input { accent-color: var(--fl-cor, #2F328F); }
.fl-gl-charts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 8px 0 22px;
}
.fl-gl-chart { text-align: center; width: 200px; }
.fl-gl-chart h3 { margin: 0 0 12px; font-size: 16px; color: #1e293b; }
.fl-gl-donut {
    --fl-pct: 0;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--fl-cor) calc(var(--fl-pct) * 1%), #e9ecef 0);
    display: grid;
    place-items: center;
}
.fl-gl-donut__inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.fl-gl-donut__inner strong { font-size: 28px; line-height: 1; color: #0f172a; }
.fl-gl-donut__inner span { font-size: 12px; color: #94a3b8; margin-top: 2px; }
@media (max-width: 600px) {
    .fl-escala__opt { font-size: 12px; padding: 8px 2px; }
}

/* Cartão de Perfil DISC */
.disc-cartao-page { margin-bottom: 18px; }
.disc-cartao-page__intro { margin-bottom: 0; }
#cartaoSelect + .select2-container { margin-bottom: 4px; }
#cartaoResult { margin-top: 4px; }

.disc-cartao-wrap {
    max-width: 100%;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.disc-cartao-wrap .coach-result__hero {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}
.disc-cartao-wrap .coach-result__body {
    border: 0;
    border-radius: 0;
    padding: 12px;
    background: transparent;
}
.disc-cartao-wrap .coach-pdf-bar {
    margin: 0;
    padding: 10px 12px 2px;
    border-top: 1px solid var(--border);
}

.disc-cartao__hero-text { min-width: 0; flex: 1; }
.disc-cartao__hero-frase {
    margin: 6px 0 0;
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.45;
}

.disc-cartao__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.disc-cartao__layout {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}
.disc-cartao__viz {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--coach, #2F328F) 4%, var(--surface));
    align-self: start;
}
.disc-cartao__viz .disc-grafico { line-height: 0; }
.disc-cartao__viz .disc-grafico img,
.disc-cartao__viz .disc-grafico-svg {
    width: 96px;
    height: auto;
    max-height: 188px;
}

.disc-cartao__matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}
.disc-cartao__matrix--full { grid-column: 1 / -1; }

.disc-cartao-panel {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, #f1f5f9);
    min-width: 0;
}
.disc-cartao-panel--ok { border-left: 3px solid #12b886; }
.disc-cartao-panel--no { border-left: 3px solid #ff5d73; }
.disc-cartao-panel h4,
.disc-cartao__body h4 {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: .04em;
}
.disc-cartao-panel ul,
.disc-cartao__lista {
    margin: 0;
    padding-left: 16px;
}
.disc-cartao-panel li,
.disc-cartao__lista li {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.45;
}
.disc-cartao-panel li:last-child,
.disc-cartao__lista li:last-child { margin-bottom: 0; }

.disc-cartao__ordem {
    list-style: none;
    margin: 0;
    padding: 0;
}
.disc-cartao__ordem li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}
.disc-cartao__ordem li:last-child { margin-bottom: 0; }
.disc-cartao__rotulo {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.disc-cartao__pct {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-muted);
}
.disc-cartao__fator {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.disc-cartao__lista--ok li::marker { color: #12b886; }
.disc-cartao__lista--no li::marker { color: #ff5d73; }

.disc-cartao__motivacao {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--coach, #2F328F) 22%, var(--border));
    border-left: 4px solid var(--coach, #2F328F);
    background: color-mix(in srgb, var(--coach, #2F328F) 6%, var(--surface));
    font-size: 12px;
    line-height: 1.45;
}
.disc-cartao__motivacao strong { color: var(--brand); }

.dd-disc-stats {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(47, 50, 143, .06);
    border: 1px solid rgba(47, 50, 143, .12);
}
.dd-disc-stats h4 { margin: 0 0 10px; font-size: 13px; color: #1e293b; }
@media (max-width: 860px) {
    .disc-cartao__layout { grid-template-columns: 1fr; }
    .disc-cartao__viz {
        justify-self: center;
        width: fit-content;
        max-width: 100%;
    }
}
@media (max-width: 560px) {
    .disc-cartao__matrix { grid-template-columns: 1fr; }
}

/* Dinâmica DISC — lista e modal de resultados */
.ddi-list-bar {
    width: 80px;
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}
.ddi-list-bar span {
    display: block;
    height: 100%;
    width: var(--ddi-pct, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}
.ddi-resumo-modal { max-width: 640px; width: calc(100% - 32px); }
.ddi-resumo-modal__body { padding: 0 18px 18px; max-height: 70vh; overflow-y: auto; }
.ddi-resumo-meta { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); }
.ddi-resumo-hint {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid #c7d2fe; background: #eef2ff;
    font-size: 12px; font-weight: 600; line-height: 1.45; color: #3730a3;
}
.ddi-resumo-hint i { flex-shrink: 0; margin-top: 2px; font-size: 14px; color: #4f46e5; }
.ddi-resumo-lista { display: grid; gap: 8px; }
.ddi-resumo-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ddi-resumo-item:not([open]) { border-color: #c7d2fe; }
.ddi-resumo-item:not([open]):hover {
    border-color: #818cf8;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .12);
}
.ddi-resumo-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .2s ease;
}
.ddi-resumo-item summary:hover { background: var(--brand-soft, #f8fafc); }
.ddi-resumo-item summary::-webkit-details-marker { display: none; }
.ddi-resumo-summary-text { flex: 1; min-width: 0; }
.ddi-resumo-item summary strong { display: block; font-size: 14px; }
.ddi-resumo-item summary small { display: block; font-size: 12px; color: var(--text-muted); }
.ddi-resumo-toggle {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    margin-left: auto; text-align: right;
}
.ddi-resumo-toggle__hint { font-size: 11px; font-weight: 700; color: #4f46e5; white-space: nowrap; }
.ddi-resumo-toggle__hint--open { color: var(--text-muted); }
.ddi-resumo-item:not([open]) .ddi-resumo-toggle__hint--open { display: none; }
.ddi-resumo-item[open] .ddi-resumo-toggle__hint--closed { display: none; }
.ddi-resumo-chevron {
    font-size: 12px; color: #4f46e5;
    transition: transform .2s ease, color .2s ease;
}
.ddi-resumo-item[open] .ddi-resumo-chevron { transform: rotate(180deg); color: var(--text-muted); }
.ddi-resumo-item:not([open]) .ddi-resumo-chevron { animation: ddiResumoChevronPulse 2s ease-in-out infinite; }
@keyframes ddiResumoChevronPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
.ddi-resumo-letter {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px;
}
.ddi-resumo-detalhe { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.ddi-resumo-insight { margin: 12px 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.ddi-resumo-bars { display: grid; gap: 6px; margin-bottom: 10px; }
.ddi-resumo-bar { display: grid; grid-template-columns: 24px 1fr 36px; gap: 8px; align-items: center; }
.ddi-resumo-bar__tag {
    width: 24px; height: 24px; border-radius: 6px;
    display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800;
}
.ddi-resumo-bar__track {
    height: 6px; border-radius: 999px; background: var(--border); overflow: hidden;
}
.ddi-resumo-bar__track span { display: block; height: 100%; border-radius: 999px; }
.ddi-resumo-reflexao { margin: 8px 0 12px; font-size: 13px; color: var(--text-muted); }
.ddi-resumo-foot { margin-top: 14px; text-align: center; }
.ddi-loading-inline { padding: 24px; text-align: center; color: var(--text-muted); }
