/* OficialCon — acessibilidade global (site + area do aluno).
   A interface do admin nao carrega app/layout.php e permanece independente. */
html[data-oc-font="small"]{font-size:93.75%}
html[data-oc-font="normal"]{font-size:100%}
html[data-oc-font="large"]{font-size:112.5%}

/* Sinalizacao da sessao ativa no cabecalho. */
/* Alinha Minha area com os links; o aviso conectado fica abaixo sem alterar a altura da linha. */
.oc-student-nav{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}
.oc-student-avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;font-size:1.44rem;line-height:1;flex-shrink:0}
.oc-student-online .oc-student-avatar{color:#62e9a7;text-shadow:0 0 12px rgba(98,233,167,.18)}
.oc-student-online .oc-student-avatar .oc-student-dot{position:absolute;right:-2px;bottom:-1px;width:9px;height:9px;border:2px solid #071525;border-radius:50%;background:#49d88c}
.oc-student-copy{display:inline-flex;position:relative;align-items:center;justify-content:center;line-height:1.2}
.oc-student-text{display:block}
.oc-student-online .oc-student-text{color:#fff;font-weight:750}
.oc-student-status{position:absolute;top:calc(100% + 3px);left:0;display:inline-flex;align-items:center;border-radius:999px;padding:2px 6px;background:rgba(65,210,135,.14);border:1px solid rgba(97,239,170,.28);color:#8aefbc;font-size:.62rem;line-height:1.1;font-weight:800;letter-spacing:.015em}
@media (max-width:991.98px){.oc-student-nav{padding:.55rem .25rem}}

/* Menu de ajustes, com tres tamanhos e duas opcoes de tema. */
.oc-a11y-nav{position:relative}
.oc-a11y-trigger{display:inline-flex;align-items:center;gap:.36rem;min-height:37px;padding:.36rem .63rem!important;border:1px solid rgba(226,235,247,.27)!important;border-radius:10px!important;color:#e8eef4!important;line-height:1.2;background:rgba(255,255,255,.055)!important}
.oc-a11y-trigger:hover,.oc-a11y-trigger:focus-visible{background:rgba(255,255,255,.13)!important;color:#fff!important;border-color:rgba(240,197,98,.8)!important}
.oc-a11y-trigger .bi{font-size:1.08rem}
.oc-a11y-dropdown{width:288px;max-width:calc(100vw - 30px);padding:17px!important;border:1px solid var(--bs-border-color,#e3e8ee);border-radius:15px!important;box-shadow:0 16px 45px rgba(0,0,0,.22);color:var(--bs-body-color,#15202b);background:var(--bs-body-bg,#fff);z-index:1080}
.oc-a11y-heading{display:flex;align-items:center;gap:.5rem;font-size:.95rem;font-weight:800;margin-bottom:17px}
.oc-a11y-label{display:block;margin:0 0 8px;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;font-weight:750;color:var(--bs-secondary-color,#667085)}
.oc-a11y-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px}
.oc-a11y-themes{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.oc-a11y-choice{appearance:none;display:inline-flex;gap:5px;align-items:center;justify-content:center;min-height:40px;padding:7px 9px;border:1px solid var(--bs-border-color,#d9e0e7);border-radius:9px;background:var(--bs-tertiary-bg,#f4f6f8);color:var(--bs-body-color,#15202b);font-weight:700;font-size:.86rem;line-height:1.2;cursor:pointer;transition:border-color .16s,background-color .16s}
.oc-a11y-choice:hover{border-color:#b28a31}
.oc-a11y-choice.is-selected{border-color:#ba8b26;background:rgba(213,165,54,.16);box-shadow:inset 0 0 0 1px rgba(213,165,54,.27)}
.oc-a11y-choice:focus-visible,.oc-a11y-trigger:focus-visible{outline:3px solid #e0b956!important;outline-offset:2px}
.oc-a11y-note{margin-top:12px;font-size:.73rem;color:var(--bs-secondary-color,#667085);line-height:1.4}
/* Botao textual posicionado depois do WhatsApp na barra superior. */
.oc-a11y-topbar{display:inline-flex;align-items:center;position:relative;margin-left:.35rem}
.oc-a11y-topbar .oc-a11y-trigger{display:inline-flex;align-items:center;gap:.38rem;min-height:29px;padding:.36rem .55rem!important;border-radius:9px!important;font-size:.73rem;font-weight:750;white-space:nowrap;letter-spacing:0}
.oc-a11y-topbar .oc-a11y-trigger .bi{font-size:.96rem}
.oc-a11y-topbar .oc-a11y-trigger::after{margin-left:.1rem}
.oc-a11y-topbar .oc-a11y-dropdown{margin-top:5px!important;text-align:left}
@media(max-width:991.98px){.oc-a11y-topbar{margin-left:.2rem}.oc-a11y-topbar .oc-a11y-trigger{min-height:27px;padding:.33rem .48rem!important;font-size:.68rem}}
@media(max-width:390px){.oc-a11y-topbar{margin-left:.1rem}.oc-a11y-topbar .oc-a11y-trigger{gap:.26rem;padding:.3rem .38rem!important;font-size:.64rem}}

/* Tema escuro: variveis sem alterar estilos do cabecalho, players ou banners. */
html[data-oc-theme="dark"]{
  color-scheme:dark;
  --ink:#e6edf5;--muted:#afbdce;--soft:#101e2c;--line:#35475a;--white:#162639;
  --bs-body-bg:#0c1724;--bs-body-color:#e6edf5;--bs-secondary-bg:#17283a;--bs-tertiary-bg:#1b2d40;
}
html[data-oc-theme="dark"] body{background:#0c1724;color:#e6edf5}
html[data-oc-theme="dark"] :is(.section-soft,.instagram-showcase-section,.student-login-section,.student-area-main,.student-area-head,.oc-checkout-bg){background:#101e2c;color:#e6edf5}
html[data-oc-theme="dark"] :is(.card-modern,.course-price,.oc-product-card,.oc-course-detail-price,.oc-checkout-panel,.oc-checkout-summary,.oc-stat,.oc-panel,.oc-course-card,.oc-quick,.student-login-card,.student-card,.oc-disciplina){background:#162639;color:#e6edf5;border-color:#35475a}
html[data-oc-theme="dark"] :is(.oc-product-card-title,.oc-product-main-price,.oc-course-about-content,.oc-course-about-content h2,.oc-course-about-content h3,.oc-product-payment-terms,.oc-product-payment-terms i,.oc-section-head h2,.oc-stat-value,.oc-panel h3,.oc-course-title,.oc-continue-title,.oc-quick,.oc-focus-info strong,.oc-empty-focus strong){color:#e6edf5}
html[data-oc-theme="dark"] :is(.section-lead,.oc-product-card-description,.oc-product-payment-terms,.oc-course-about-content,.oc-course-investment,.oc-checkout-heading p,.oc-summary-line span,.oc-summary-total span,.oc-stat-label,.oc-stat-hint,.oc-panel p,.oc-continue-meta,.oc-section-head p,.student-area-head p,.student-user-summary small,.lesson-views,.lesson-views strong){color:#b2c1d0}
html[data-oc-theme="dark"] :is(.oc-summary-total strong,.oc-entry-box strong,.oc-course-line strong,.oc-product-from){color:#f3cb73}
html[data-oc-theme="dark"] .instagram-marquee:before{background:linear-gradient(90deg,#101e2c,transparent)}
html[data-oc-theme="dark"] .instagram-marquee:after{background:linear-gradient(270deg,#101e2c,transparent)}
html[data-oc-theme="dark"] .testimonial-video-caption{background:#162639;color:#e6edf5;border-color:#35475a}
html[data-oc-theme="dark"] :is(.tag,.oc-product-badge,.oc-lesson-order){background:#203a53;color:#c7ddf3;border-color:#355069}
html[data-oc-theme="dark"] :is(.oc-entry-box,.oc-installments-box,.oc-pay-notice,.oc-checkout-student,.oc-direct-form,.oc-direct-pix,.oc-payment-option,.oc-payment-status,.oc-order-expiry,.oc-change-method summary,.oc-focus-body,.oc-empty-focus,.oc-action-link.light){background:#1c3044;border-color:#3d536b;color:#e5edf5}
html[data-oc-theme="dark"] .oc-payment-option:has(input:checked){background:#35311f;border-color:#d5a536}
html[data-oc-theme="dark"] :is(.oc-payment-option-text small,.oc-checkout-student span,.oc-summary-total small,.oc-course-line small,.oc-checkout-bottom-note,.oc-direct-form .form-label,.oc-pay-notice,.oc-order-expiry){color:#bdc9d7}
html[data-oc-theme="dark"] :is(.oc-checkout-login-required,.oc-summary-help){background:#30281a;color:#f3dfb2;border-color:#927131}
html[data-oc-theme="dark"] .oc-payment-pill{background:#174a36;color:#adf5ce}
html[data-oc-theme="dark"] .oc-checkout-login-content>strong{color:#f9e5bc}
html[data-oc-theme="dark"] .oc-checkout-login-content>p{color:#ddcfae}
html[data-oc-theme="dark"] .oc-checkout-student-identity :is(strong,small){color:#9ce3bb}
html[data-oc-theme="dark"] :is(.oc-course-line,.oc-summary-total,.oc-product-card .oc-product-pricing,.oc-course-detail-price .oc-product-payment-terms,.oc-checkout-rule,.oc-course-about-content th,.oc-course-about-content td){border-color:#3d536b}
html[data-oc-theme="dark"] .student-account-nav{background:#142638;border-color:#344b60;box-shadow:none}
html[data-oc-theme="dark"] .student-account-links a{color:#dce9f6}
html[data-oc-theme="dark"] .student-account-links a:hover{background:#274259;color:#fff}
html[data-oc-theme="dark"] .student-account-links .student-account-logout{color:#ffb4b4}
html[data-oc-theme="dark"] .student-user-summary strong{color:#f3f6fb}
html[data-oc-theme="dark"] :is(.list-group-item,.accordion-item,.modal-content,.dropdown-menu,.card,.table-responsive){background-color:#162639;color:#e6edf5;border-color:#35475a}
html[data-oc-theme="dark"] :is(.bg-white,.bg-light){background-color:#162639!important}
html[data-oc-theme="dark"] .oc-a11y-dropdown{background:#17283a;color:#f2f6fc}
html[data-oc-theme="dark"] .oc-a11y-choice{background:#21374a;color:#f1f5fc;border-color:#456078}
html[data-oc-theme="dark"] .oc-a11y-choice.is-selected{background:#53421f;border-color:#e7be5b}
html[data-oc-theme="dark"] .oc-student-online .oc-student-avatar{color:#65e6a5}
/* Area do aluno: alguns paineis usam CSS embutido depois do CSS global. */
html[data-oc-theme="dark"] .oc-dashboard{--oc-border:#35485d;--oc-muted:#bbcad9;--oc-bg:#101e2c}
html[data-oc-theme="dark"] :is(.oc-dashboard .oc-stat,.oc-dashboard .oc-panel,.oc-dashboard .oc-course-card,.oc-dashboard .oc-quick){background:#162639;border-color:#35475a;color:#e6edf5}
html[data-oc-theme="dark"] :is(.oc-dashboard .oc-stat-value,.oc-dashboard .oc-panel h3,.oc-dashboard .oc-section-head h2,.oc-dashboard .oc-course-title,.oc-dashboard .oc-continue-title,.oc-dashboard .oc-quick){color:#f2f6fb}
html[data-oc-theme="dark"] :is(.oc-dashboard .oc-focus-body,.oc-dashboard .oc-empty-focus){background:#1b3043;border-color:#3c5369;color:#d8e6f3}
html[data-oc-theme="dark"] .oc-dashboard .oc-focus-score{background:#21364b}
html[data-oc-theme="dark"] .oc-dashboard .oc-focus-info strong{color:#f4f7fc}
html[data-oc-theme="dark"] .oc-dashboard .oc-action-link.light{background:#2b445d;color:#f4f7fc}
html[data-oc-theme="dark"] .oc-dashboard .oc-course-card:hover{background:#1d3046}
html[data-oc-theme="dark"] .oc-disciplina .list-group-item{background:#162639;color:#f0f5fb;border-color:#35475a}
/* Mantem os avisos de pagamento e seus significados legiveis. */
html[data-oc-theme="dark"] .alert[style*="background:#fff8e8"]{background:#4d3820!important;border-color:#ae8331!important;color:#ffe3af}
@media(prefers-reduced-motion:reduce){.oc-a11y-choice{transition:none}}
