/* CSS extraído da posição original 502 */
/* Identidade visual centralizada: altere estas variáveis para trocar o tema. */
    :root {
      --brand: #173b70;
      --brand-strong: #102d57;
      --accent: #58a6e7;
      --page: #f4f7fb;
      --surface: #ffffff;
      --text: #172b4d;
      --muted: #64748b;
      --line: #e1e8f2;
      --radius: 16px;
      font-family: Inter, system-ui, -apple-system, sans-serif;
      color: #172b4d;
      background: #f3f6fb;
    }
    * { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; }
    header {
      background: #173b70;
      color: white;
      padding: 20px 7%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .logo { font-size: 25px; font-weight: 800; }
    .logo span { color: #8bc4ff; }
    main {
      width: min(1000px, 92%);
      margin: 55px auto;
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 38px;
      align-items: center;
    }
    h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; }
    .intro { color: #536783; line-height: 1.8; }
    .feature {
      background: white;
      border: 1px solid #e1e8f2;
      border-radius: 12px;
      padding: 15px;
      margin-top: 12px;
    }
    .panel {
      background: white;
      padding: 28px;
      border: 1px solid #e1e8f2;
      border-radius: 16px;
      box-shadow: 0 12px 40px #173b7010;
    }
    .tabs { display: flex; gap: 8px; margin-bottom: 22px; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    .tab {
      flex: 1; border: 0; padding: 12px 5px;
      border-radius: 8px; background: #edf2f9; color: #173b70;
    }
    .tab.active { background: #173b70; color: white; }
    label { display: block; margin: 15px 0 7px; font-size: 14px; font-weight: 650; }
    input {
      width: 100%; padding: 12px; border: 1px solid #ccd6e5;
      border-radius: 8px; background: white; color: #172b4d;
    }
    input:focus { outline: 2px solid #8bc4ff; border-color: #3976bf; }
    .primary {
      width: 100%; margin-top: 20px; padding: 13px;
      background: #2463ad; color: white; border: 0; border-radius: 8px;
      font-weight: 700;
    }
    .primary:disabled { opacity: .6; cursor: wait; }
    .secondary {
      background: transparent; color: #2463ad; border: 0;
      padding: 12px 0; text-decoration: underline;
    }
    .quiz-history-action {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 170px; padding: 11px 22px; border: 1px solid #cbdcf0;
      border-radius: 9px; background: #fff; color: #17457a;
      font-weight: 700; text-decoration: none; cursor: pointer;
      box-shadow: 0 2px 5px rgba(15, 45, 80, .08);
    }
    .quiz-history-action:hover { background: #edf5ff; border-color: #8db5e5; }

    .password-recovery-panel {
      margin-top: 18px;
      padding: 20px;
      border: 1px solid #dce7f5;
      border-radius: 12px;
      background: #f8fbff;
    }
    .password-recovery-panel h3 { margin: 0 0 8px; color: #173b70; }
    .password-recovery-panel p { color: #536783; font-size: 14px; line-height: 1.6; }
    .password-recovery-panel .primary { margin-top: 14px; }
    .password-recovery-panel .secondary {
      display: inline-block;
      margin-top: 10px;
      text-decoration: underline;
    }
    .password-recovery-panel .message { margin-top: 12px; }

    .message { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
    .error { color: #b42318; }
    .success { color: #167447; }
    .muted { color: #64748b; font-size: 13px; line-height: 1.6; }
    .hidden { display: none !important; }
    footer { text-align: center; padding: 25px; color: #64748b; font-size: 13px; }

    .admin-panel { margin-top: 22px; padding: 22px; background: #fff; border: 1px solid #dce5f1; border-radius: 14px; }
    .admin-panel h3 { margin-top: 0; }
    .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .admin-panel select, .admin-panel input[type=file] { width: 100%; padding: 11px; border: 1px solid #ccd6e5; border-radius: 8px; background: white; color: #172b4d; }
    .admin-panel .primary { margin-top: 14px; }
    .preview { margin-top: 16px; max-height: 300px; overflow: auto; border: 1px solid #e1e8f2; border-radius: 8px; }
    .preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .preview th, .preview td { padding: 9px; border-bottom: 1px solid #e1e8f2; text-align: left; }
    .preview th { position: sticky; top: 0; background: #edf2f9; }
    .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .admin-actions button { flex: 1; min-width: 150px; }
    .dashboard { width: min(1000px, 92%); margin: 38px auto; }
    .dashboard-top { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
    .admin-entry { width:auto; margin:0; padding:10px 16px; }
    .admin-nav { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
    .admin-nav button { border:1px solid #ccd6e5; background:#fff; color:#173b70; border-radius:8px; padding:11px 16px; font-weight:650; }
    .admin-nav button.active { background:#173b70; color:#fff; border-color:#173b70; }
    .admin-card { background:#fff; border:1px solid #dce5f1; border-radius:14px; padding:24px; margin-top:16px; }
    .admin-card h3 { margin-top:0; }
    .admin-card input, .admin-card textarea, .admin-card select { width:100%; padding:11px; border:1px solid #ccd6e5; border-radius:8px; background:#fff; color:#172b4d; font:inherit; }
    .admin-card textarea { min-height:85px; resize:vertical; }
    .admin-card .primary { max-width:320px; }
    .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
    /* Gestão de Escolas: campo de observações ocupa toda a largura do formulário. */
    #schoolForm #schoolObservacoes { display:block; width:100%; min-height:110px; box-sizing:border-box; resize:vertical; }
    .contest-list { margin-top:18px; }
    .contest-item { padding:13px 0; border-bottom:1px solid #e1e8f2; }
    .contest-item:last-child { border-bottom:0; }
    .contest-item strong { display:block; }
    .contest-item small { color:#64748b; }
    .top-actions { display:flex; align-items:center; gap:10px; }
    @media (max-width:600px) { .form-grid { grid-template-columns:1fr; } }
    @media (max-width: 600px) { .admin-grid { grid-template-columns: 1fr; } }
    @media (max-width: 720px) {
      main { grid-template-columns: 1fr; margin: 30px auto; gap: 20px; }
      header { padding: 18px 5%; }
      .panel { padding: 22px; }
    }

    /* Administração em largura total; a área institucional sai do caminho. */
    main.admin-mode { display:block; width:min(1440px,96%); margin:24px auto; }
    main.admin-mode > section:first-child { display:none; }
    main.admin-mode > section.panel { width:100%; padding:clamp(18px,3vw,34px); }
    main.admin-mode #userArea { width:100%; }
    main.admin-mode #adminArea { width:100%; }
    main.admin-mode .admin-card { padding:clamp(16px,2.5vw,30px); }
    .review-toolbar {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 12px}
    .review-counts {display:flex;gap:8px;flex-wrap:wrap}
    .review-count {background:#edf3fb;border:1px solid #d9e5f4;border-radius:9px;padding:8px 12px;font-size:13px;font-weight:700}
    .review-workspace {display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:18px;align-items:start;margin-top:16px}
    .review-navigation,.review-editor {background:#fff;border:1px solid #dce5f1;border-radius:13px;padding:16px;min-width:0}
    .review-navigation {position:sticky;top:14px;max-height:72vh;overflow:auto}
    .review-navigation h4,.review-editor h3 {margin:0 0 12px}
    .review-question-list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
    .review-qbtn {border:1px solid #d6e0ed;background:#f8fafc;color:#173b70;border-radius:8px;padding:9px 4px;font-weight:700}
    .review-qbtn.active {background:#173b70;color:white;border-color:#173b70}
    .review-qbtn.done {border-color:#8ac6a5;background:#effaf3;color:#17633b}
    .review-qbtn.active.done {background:#17633b;color:white}
    .review-editor-head {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e7edf5;padding-bottom:13px;margin-bottom:15px}
    .review-editor-head h3 {margin:0}
    .review-meta {font-size:13px;color:#64748b}
    .review-editor label {margin-top:14px}

    .review-format-toolbar{display:flex;gap:5px;margin:7px 0 5px}
    .review-format-toolbar button{width:34px;height:32px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#173b70;font:inherit;cursor:pointer}
    .review-format-toolbar button:hover{background:#e8f1ff;border-color:#2876e8}
    .review-editor textarea,.review-editor input {width:100%;padding:12px;border:1px solid #ccd6e5;border-radius:8px;font:inherit;color:#172b4d;background:#fff}
    .review-editor textarea {min-height:130px;resize:vertical;line-height:1.55}
    .review-editor .support-field {min-height:85px}
    .alternative-grid {display:grid;grid-template-columns:1fr 1fr;gap:10px}
    .alternative-field {display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:start}
    .alternative-letter {background:#edf3fb;border-radius:8px;padding:11px;text-align:center;font-weight:800;color:#173b70}
    .alternative-field textarea {min-height:76px}
    .review-source {margin-top:16px;border:1px solid #e1e8f2;border-radius:9px;padding:12px;background:#f8fafc}
    .review-source summary {cursor:pointer;font-weight:700;color:#345273}
    .review-source pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font:13px/1.55 ui-monospace,monospace;color:#475569}
    .review-savebar {display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
    .review-savebar button {width:auto;min-width:190px;margin:0}
    .review-savebar .secondary {border:1px solid #ccd6e5;text-decoration:none;border-radius:8px;padding:12px 16px}
    .review-feedback {display:block;margin-top:12px;min-height:20px}
    @media(max-width:760px){.review-workspace{grid-template-columns:1fr}.review-navigation{position:static;max-height:none}.review-question-list{grid-template-columns:repeat(8,minmax(0,1fr))}.alternative-grid{grid-template-columns:1fr}.review-savebar button{width:100%;max-width:none}}


    .review-page .review-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.review-page .review-counts{display:flex;gap:9px;flex-wrap:wrap}.review-page .review-count{padding:10px 14px;border-radius:9px;background:#edf3fb}.review-page .pending-count{color:#a85b00;background:#fff7e8}.review-page .done-count{color:#17633b;background:#effaf3}
    .review-workspace{grid-template-columns:270px minmax(0,1fr);gap:14px}.review-navigation{position:static;max-height:75vh}.review-navigation input,.review-navigation select{width:100%;margin:8px 0;padding:10px;border:1px solid #ccd6e5;border-radius:8px}.review-question-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}.review-qbtn{width:100%;text-align:left;padding:11px}.review-editor{padding:0;overflow:hidden}.review-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#f2f6fc;border-bottom:1px solid #dce5f1}.review-tab{padding:15px 8px;border:0;background:transparent;color:#173b70;font-weight:700}.review-tab.active{background:#2876e8;color:white}.review-tab-panel{padding:18px}.review-tab-panel label{display:block;margin:12px 0}.review-editor-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.review-editor-head h3{margin-right:auto}.review-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.review-ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;overflow:auto;background:#f7f9fc;padding:16px;border:1px solid #dce5f1;border-radius:8px}.review-pdf-frame{min-height:420px;border:1px solid #dce5f1;border-radius:8px;background:#eef2f7;display:flex;flex-direction:column;align-items:center;gap:12px;color:#64748b;padding:16px;overflow:auto}.review-pdf-frame canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 2px 12px #172b4d22}.review-pdf-meta{align-self:stretch;text-align:center;font-size:13px;color:#64748b}.review-page .review-savebar{justify-content:space-between}.review-page .review-savebar button{min-width:130px}
    @media(max-width:850px){.review-workspace{grid-template-columns:1fr}.review-navigation{max-height:none}.review-tabs{grid-template-columns:1fr}.review-fields{grid-template-columns:1fr}}

    /* Camada visual da nova interface */
    body { background:var(--page); color:var(--text); }
    .site-header { position:sticky; top:0; z-index:50; min-height:78px; padding:12px clamp(18px,4vw,64px); background:var(--brand); box-shadow:0 5px 22px #102d5725; }
    .brand-lockup { display:flex; align-items:center; gap:11px; color:#fff; text-decoration:none; flex-shrink:0; }
    .brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:#fff; color:var(--brand); font-size:25px; font-weight:900; box-shadow:inset 0 0 0 2px #ffffff55; }
    .logo { font-size:25px; letter-spacing:-.7px; }
    .logo span { color:#9bd0ff; }
    .header-tagline { color:#dceaff; font-size:13px; }
    .top-navigation { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
    .nav-link,.nav-logout { width:auto; margin:0; border:0; border-radius:9px; padding:10px 12px; background:transparent; color:#e8f2ff; font-size:13px; font-weight:650; }
    .nav-link:hover,.nav-link.active { background:#ffffff20; color:#fff; }
    .nav-logout { margin-left:8px; border:1px solid #ffffff65; }
    main { width:min(1180px,92%); margin:48px auto; }
    main > section:first-child { padding:10px 12px; }
    main > section:first-child h1 { max-width:620px; color:var(--brand-strong); letter-spacing:-1.2px; }
    .eyebrow { color:#2463ad; font-weight:800; letter-spacing:1.5px; font-size:12px; }
    .feature,.panel,.admin-panel,.section-card,.admin-card { border-radius:var(--radius); box-shadow:0 8px 28px #173b700b; }
    .panel { border-color:var(--line); }
    .primary { background:var(--brand); border-radius:10px; transition:background .15s,transform .15s; }
    .primary:hover { background:var(--brand-strong); transform:translateY(-1px); }
    input,select,textarea { border-radius:10px !important; }
    .dashboard-top h2 { color:var(--brand-strong); }
    #welcomeTitle { margin:0 0 6px; font-size:clamp(25px,3vw,34px); color:var(--brand-strong); }
    #userEmail { margin-top:0; font-size:13px; }
    #studentArea { width:100%; }
    #adminArea { margin-top:26px; }
    .admin-nav { border-bottom:1px solid var(--line); padding-bottom:14px; }
    .admin-nav button { border-radius:10px; }
    .section-card { background:#fff; border:1px solid var(--line); padding:clamp(17px,2.5vw,26px); margin-top:16px; }
    .section-card h2 { color:var(--brand-strong); }
    .toast { position:fixed; right:22px; bottom:22px; z-index:100; max-width:min(420px,calc(100vw - 44px)); padding:14px 18px; border-radius:12px; background:#173b70; color:#fff; box-shadow:0 10px 35px #102d5733; }
    @media(max-width:900px){ .site-header{align-items:flex-start;flex-direction:column}.top-navigation{width:100%}.nav-link,.nav-logout{font-size:12px;padding:9px 10px}.header-tagline{display:none} }
    @media(max-width:720px){ main{margin:25px auto}.site-header{position:relative}.top-navigation{gap:3px}.nav-link{flex:1 1 auto}.nav-logout{margin-left:0} }


    /* Tela de filtros do simulado */
    .sim-filter-layout{display:grid;grid-template-columns:minmax(230px,.34fr) minmax(0,1fr);gap:28px;align-items:center;width:100%;padding:18px 0}
    .sim-filter-aside{padding:24px 12px;color:#173b70}
    .sim-aside-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:16px;background:#dcecff;color:#1673cc;font-size:32px;margin-bottom:20px}
    .sim-filter-aside h2{font-size:clamp(30px,3vw,42px);margin:0 0 14px;color:#102d57}
    .sim-filter-aside>p{font-size:17px;line-height:1.65;color:#3e587b;margin:0 0 22px;padding-bottom:22px;border-bottom:1px solid #d8e4f3}
    .sim-aside-feature{display:flex;gap:14px;align-items:flex-start;margin:17px 0}
    .sim-aside-feature>span{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:13px;background:#e1efff;color:#0876d5;font-size:25px;font-weight:800}
    .sim-aside-feature strong,.sim-aside-feature small{display:block}.sim-aside-feature strong{font-size:16px;color:#102d57;margin:2px 0 4px}.sim-aside-feature small{font-size:13px;line-height:1.5;color:#435b7b}
    .sim-filter-card{background:#fff;border:1px solid #dce7f5;border-radius:24px;padding:clamp(24px,3.5vw,48px);box-shadow:0 16px 45px #173b7012;min-width:0}
    .sim-filter-heading{text-align:center;margin:0 0 36px}.sim-filter-heading h2{font-size:clamp(28px,3vw,40px);letter-spacing:-1px;color:#102d57;margin:0 0 5px}.sim-filter-heading p{font-size:17px;color:#49617f;margin:0}
    .sim-filter-grid{display:grid;grid-template-columns:2fr 1fr;gap:22px 28px;align-items:end}
    .sim-field{display:block;margin:0;color:#102d57;font-size:16px;font-weight:750;min-width:0}.sim-field em{font-style:normal;color:#e04444}.sim-field>span{display:block;margin-bottom:9px}
    .sim-field select,.sim-field input{width:100%;height:48px;margin-top:9px;padding:0 15px;border:1px solid #b9cbe1;border-radius:11px;background:#fff;color:#172b4d;font:inherit;font-weight:500;box-shadow:0 2px 6px #173b7009}
    .sim-search-select{position:relative;margin-top:9px}.sim-search-select>summary{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border:1px solid #b9cbe1;border-radius:11px;background:#fff;color:#172b4d;font-weight:500;cursor:pointer;list-style:none;box-shadow:0 2px 6px #173b7009}.sim-search-select>summary::-webkit-details-marker{display:none}.sim-search-select>summary:after{content:'⌄';font-size:20px;color:#55708f}.sim-search-select[open]>summary{border-color:#398be0;border-bottom-left-radius:0;border-bottom-right-radius:0}.sim-search-select-panel{position:absolute;top:48px;left:0;right:0;z-index:40;padding:10px;background:#fff;border:1px solid #b9cbe1;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 14px 30px #173b7025}.sim-search-select-panel input{width:100%;height:42px;margin:0 0 8px;padding:0 12px;border:1px solid #b9cbe1;border-radius:8px;font:inherit;font-size:14px}.sim-search-select-options{max-height:230px;overflow:auto}.sim-search-option{display:block;width:100%;padding:10px 11px;border:0;border-radius:7px;background:#fff;color:#172b4d;text-align:left;font:inherit;font-size:14px;cursor:pointer}.sim-search-option:hover,.sim-search-option[aria-selected="true"]{background:#eaf3ff;color:#075eae}.sim-search-empty{padding:10px;color:#64748b;font-size:13px}.sim-native-filter-select{display:none!important}
    .sim-subject-field{grid-column:1;grid-row:2}.sim-year-field{grid-column:2;grid-row:2}
    .sim-subject-dropdown{position:relative;margin-top:9px}.sim-subject-dropdown summary{height:48px;display:flex;align-items:center;padding:0 16px;border:1px solid #b9cbe1;border-radius:11px;color:#172b4d;font-weight:500;cursor:pointer;list-style:none;box-shadow:0 2px 6px #173b7009}.sim-subject-dropdown summary::-webkit-details-marker{display:none}.sim-subject-options{position:absolute;top:54px;left:0;right:0;z-index:20;background:#fff;border:1px solid #cbd8e8;border-radius:12px;padding:12px;box-shadow:0 14px 30px #173b7025;max-height:240px;overflow:auto}.sim-subject-options label{display:flex;gap:9px;align-items:center;margin:8px 0;font-weight:500}.sim-subject-options input{width:16px;height:16px;margin:0}
    .sim-quantity-field{grid-column:1;grid-row:3}.sim-time-field{grid-column:2;grid-row:3}.sim-inline-control{display:flex;align-items:center;gap:14px;margin-top:9px}.sim-inline-control input{max-width:185px;margin:0}.sim-counter{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-width:94px;padding:10px 15px;border-radius:24px;background:#e0efff;color:#174b87;font-weight:800;font-size:14px}
    .sim-filter-notice{display:flex;flex-direction:column;gap:3px;margin:30px 0 0;padding:14px 19px;border:1px solid #b7d6ff;border-radius:14px;background:#edf6ff;color:#24466e}.sim-filter-notice strong{color:#10386b;font-size:16px}.sim-filter-notice span{font-size:14px}.sim-filter-submit{text-align:center;margin-top:32px}.sim-start-button{width:auto;min-width:300px;margin:0;padding:15px 36px;border:1px solid #3c91ec;border-radius:999px;background:linear-gradient(105deg,#123e7b,#087de0);color:#fff;font-size:19px;font-weight:800;box-shadow:0 10px 22px #087de044;transition:transform .18s,box-shadow .18s}.sim-start-button:hover{transform:translateY(-2px);box-shadow:0 14px 27px #087de055}.sim-start-button span{font-size:23px;margin-right:12px}.sim-filter-actions{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
    .sim-clear-button{min-width:170px;padding:14px 28px;border:1.5px solid #3c91ec;border-radius:999px;background:linear-gradient(180deg,#fff,#f4f8ff);color:#173b70;font-size:17px;font-weight:800;box-shadow:0 7px 18px #087de01c;transition:transform .18s,box-shadow .18s,border-color .18s}
    .sim-clear-button:hover{transform:translateY(-2px);border-color:#087de0;box-shadow:0 10px 22px #087de033}
    .sim-clear-button span{font-size:22px;margin-right:8px;vertical-align:-1px}.sim-filter-card #studentCatalogMessage{text-align:center;margin:10px 0 0}
    @media(max-width:850px){.sim-filter-layout{grid-template-columns:1fr;gap:10px}.sim-filter-aside{padding:5px 4px}.sim-filter-aside>p{max-width:650px}.sim-aside-feature{display:none}.sim-filter-grid{gap:17px}.sim-filter-card{padding:25px}}
    @media(max-width:560px){.sim-filter-grid{grid-template-columns:1fr}.sim-contest-field,.sim-board-field,.sim-subject-field,.sim-year-field,.sim-quantity-field,.sim-time-field{grid-column:1;grid-row:auto}.sim-inline-control input{max-width:160px}.sim-start-button{min-width:0;width:100%}.sim-filter-heading{margin-bottom:25px}}

    /* Login inspirado na referência enviada: cartão limpo, centralizado e sem botão duplicado. */
    .auth-card-content { padding: 4px 2px; }
    .auth-heading { text-align:center; margin: 0 0 24px; }
    .auth-heading h2 { margin:0 0 7px; color:var(--brand); font-size:25px; letter-spacing:-.5px; }
    .auth-heading p { margin:0; color:#34445c; font-size:15px; }
    .auth-mode-storage { display:none !important; }
    .panel { padding:clamp(28px,4vw,42px); }
    #authForm label { margin:17px 0 8px; color:#263c5d; }
    #authForm input { background:#eaf1fc; border:1px solid #d4e0f2; border-radius:7px !important; min-height:48px; padding:13px 14px; color:#142d50; }
    #authForm input:focus { outline:2px solid #9ab9e4; border-color:var(--brand); }
    #authForm .primary { min-height:49px; margin-top:25px; border-radius:9px; background:var(--brand); font-size:15px; letter-spacing:.2px; }
    .auth-links { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:13px; }
    .auth-links .secondary { padding:5px 0; text-decoration:underline; }
    .auth-link-button { border:0; background:transparent; color:var(--brand); padding:8px 0; font:inherit; cursor:pointer; }
    .auth-link-button:hover,.auth-links .secondary:hover { color:var(--accent); }
    .auth-note { margin-top:24px; }

    #signupOtpArea label { display:block; margin:16px 0 8px; color:var(--brand); font-weight:700; }
    #signupOtpInput { width:100%; min-height:58px; border:1px solid #cbdaf0; border-radius:9px; background:#f3f7fc; color:#173b70; }
    #signupOtpArea .primary { min-height:49px; border-radius:9px; background:var(--brand); color:#fff; }
    #signupOtpArea .auth-links button { min-height:36px; }
    #message:empty { display:none; }
    @media(max-width:720px) { .panel { padding:25px 22px; } .auth-heading h2 { font-size:23px; } }

    /* Linguagem visual da futura execução do simulado, separada da revisão administrativa. */
    .quiz-shell { --quiz-bg:#f4f7fc; --quiz-card:#ffffff; --quiz-line:#d6e2f0; --quiz-accent:#2879bd; --quiz-text:#173b70; --quiz-muted:#647b98; background:var(--quiz-bg); color:var(--quiz-text); min-height:calc(100vh - 78px); padding:28px 20px 42px; }
    .quiz-container { width:min(900px,100%); margin:0 auto; }
    .quiz-topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
    .quiz-brand { font-size:22px; font-weight:800; letter-spacing:-.5px; }
    .quiz-brand span { color:var(--quiz-accent); }
    .quiz-restart { width:auto; margin:0; padding:11px 18px; border-radius:24px; background:#245b82; }
    .quiz-progress-labels { display:flex; justify-content:space-between; gap:12px; color:var(--quiz-muted); font-size:13px; margin-bottom:10px; }
    .quiz-progress-track { height:6px; border-radius:99px; background:#303a33; overflow:hidden; margin-bottom:18px; }
    .quiz-progress-fill { height:100%; width:28%; background:var(--quiz-accent); border-radius:99px; }
    .quiz-question-card { position:relative; overflow:hidden; background:var(--quiz-card); border:1px solid var(--quiz-line); border-top:3px solid var(--quiz-accent); border-radius:17px; padding:28px; }
    .quiz-question-number { position:absolute; right:25px; top:12px; color:#ffffff0d; font-size:88px; font-weight:900; line-height:1; }
    .quiz-question-card h2 { position:relative; z-index:1; max-width:740px; margin:18px 0 24px; font-size:clamp(20px,3vw,27px); line-height:1.35; }
    .quiz-alternatives { display:grid; gap:10px; }
    .quiz-alternative { display:flex; align-items:center; gap:13px; width:100%; min-height:54px; padding:12px 15px; border:1px solid var(--quiz-line); border-radius:11px; background:#121915; color:var(--quiz-text); text-align:left; }
    .quiz-alternative:hover,.quiz-alternative.selected { border-color:var(--quiz-accent); background:#1b2b36; }
    .quiz-alternative-key { display:grid; place-items:center; flex:0 0 27px; height:27px; border-radius:50%; background:#26352e; color:var(--quiz-accent); font-weight:800; }
    .quiz-controls { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; }
    .quiz-controls button { width:auto; margin:0; border-radius:10px; padding:12px 18px; }
    .quiz-controls .secondary { color:var(--quiz-text); border:1px solid var(--quiz-line); text-decoration:none; }
    @media(max-width:600px) { .quiz-shell { padding:20px 13px 30px; } .quiz-question-card { padding:20px 16px; } .quiz-question-number { font-size:66px; right:13px; } .quiz-controls { flex-wrap:wrap; } .quiz-controls button { flex:1; } }

    /* Destaque da mensagem principal: a frase vira o ponto focal da tela. */
    main { width:min(1160px,94%); grid-template-columns:1.08fr .92fr; gap:clamp(28px,5vw,64px); margin:clamp(38px,6vh,72px) auto; }
    .hero-presentation {
      position:relative; isolation:isolate; overflow:hidden;
      padding:clamp(28px,4vw,48px);
      border-radius:24px;
      background:linear-gradient(145deg,#102b52 0%,#173f78 58%,#1c528f 100%);
      box-shadow:0 22px 55px #102d5730;
      color:#fff;
    }
    .hero-glow {
      position:absolute; z-index:-1; width:330px; height:330px; right:-125px; top:-145px;
      border-radius:50%; background:#69b7ff24; filter:blur(2px);
      box-shadow:0 0 0 34px #69b7ff0b,0 0 0 72px #69b7ff08;
    }
    .hero-copy { position:relative; z-index:1; }
    .eyebrow {
      display:inline-flex; align-items:center; gap:10px;
      margin:0 0 23px; padding:9px 13px;
      border:1px solid #a9d5ff65; border-radius:99px;
      background:#ffffff12; color:#c5e4ff;
      font-size:12px; font-weight:850; letter-spacing:2px;
    }
    .eyebrow-dot { width:8px; height:8px; border-radius:50%; background:#70c2ff; box-shadow:0 0 14px #70c2ff; }
    .hero-presentation h1 {
      max-width:650px; margin:0;
      color:#fff; font-size:clamp(36px,4.2vw,54px);
      line-height:1.08; letter-spacing:-1.8px; font-weight:850;
      text-wrap:balance;
    }
    .hero-presentation h1 span {
      display:block; margin-top:7px; color:#8dccff;
      text-shadow:0 5px 24px #061a3838;
    }
    .hero-presentation .intro {
      max-width:540px; margin:22px 0 0;
      color:#d5e6f8; font-size:15px; line-height:1.8;
    }
    .hero-features { position:relative; z-index:1; display:grid; gap:10px; margin-top:30px; }
    .hero-presentation .feature {
      margin:0; padding:13px 15px; border:1px solid #ffffff24;
      border-radius:13px; background:#ffffff12; color:#fff;
      box-shadow:0 7px 18px #071b3514;
    }
    .hero-presentation .feature strong { color:#fff; }
    .hero-presentation .feature .muted { color:#d3e4f6; }
    .hero-motif {
      position:absolute; z-index:-1; right:24px; bottom:120px;
      color:#ffffff09; font-size:clamp(180px,24vw,300px);
      line-height:.8; font-weight:900; pointer-events:none;
      transform:rotate(10deg);
    }
    @media(max-width:900px) {
      main { grid-template-columns:1fr; width:min(680px,94%); margin:28px auto; }
      .hero-presentation { padding:30px 25px; }
    }
    @media(max-width:600px) {
      .hero-presentation { border-radius:18px; padding:25px 20px; }
      .hero-presentation h1 { font-size:clamp(34px,10vw,44px); letter-spacing:-1.2px; }
      .eyebrow { font-size:10px; letter-spacing:1.5px; }
    }


    /* Versão clara: destaque visual sem painel escuro. */
    .hero-presentation {
      background:
        radial-gradient(circle at 88% 12%, #dcecff 0, #dcecff00 34%),
        linear-gradient(135deg, #ffffff 0%, #f3f7ff 58%, #eaf2ff 100%) !important;
      color:#17345d !important;
      border:1px solid #d8e5f7;
      box-shadow:0 18px 48px #254b7812;
    }
    .hero-glow {
      background:#8ebfff38 !important;
      box-shadow:0 0 0 34px #8ebfff18,0 0 0 72px #8ebfff0d !important;
    }
    .eyebrow {
      background:#e7f0ff !important;
      border:1px solid #cbdcf5 !important;
      color:#24558f !important;
    }
    .eyebrow-dot {
      background:#3478c8 !important;
      box-shadow:0 0 12px #3478c866 !important;
    }
    .hero-presentation h1 {
      color:#17345d !important;
      text-shadow:none !important;
    }
    .hero-presentation h1 span {
      color:#3478c8 !important;
      text-shadow:none !important;
    }
    .hero-presentation .intro {
      color:#526985 !important;
    }
    .hero-presentation .feature {
      background:#ffffffd9 !important;
      border:1px solid #dce7f5 !important;
      color:#17345d !important;
      box-shadow:0 5px 16px #234b7610 !important;
    }
    .hero-presentation .feature strong {
      color:#17345d !important;
    }
    .hero-presentation .feature .muted {
      color:#60758f !important;
    }
    .hero-motif {
      color:#2f70b808 !important;
    }


    /* Direção visual 5: editorial, luminosa e com hierarquia forte. */
    body {
      background:
        radial-gradient(ellipse at 12% 18%, #eaf3ff 0, #eaf3ff00 38%),
        linear-gradient(180deg,#f8fbff 0%,#f2f6fc 100%) !important;
    }
    .site-header {
      background:#ffffff !important;
      box-shadow:0 1px 0 #dfe8f3 !important;
      border-bottom:1px solid #e6edf6;
    }
    .brand-lockup { color:#163b70 !important; }
    .brand-mark {
      color:#fff !important;
      background:linear-gradient(145deg,#1b4b86,#347cc4) !important;
      border-radius:12px;
      box-shadow:0 5px 12px #1b4b8629 !important;
    }
    .logo { color:#173b70 !important; }
    .logo span { color:#438bd0 !important; }
    .header-tagline { color:#71839b !important; }
    .nav-link,.nav-logout { color:#3d5878 !important; }
    .nav-link:hover,.nav-link.active { background:#edf4fc !important; color:#17477f !important; }
    .nav-logout { border-color:#d5e1ef !important; }
    main {
      width:min(1220px,94%) !important;
      grid-template-columns:minmax(0,1.12fr) minmax(350px,.88fr) !important;
      align-items:center !important;
      gap:clamp(34px,6vw,82px) !important;
      margin:clamp(48px,8vh,92px) auto !important;
    }
    .hero-presentation {
      overflow:visible !important;
      position:relative !important;
      padding:12px 0 12px 8px !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      color:#183b68 !important;
    }
    .hero-glow {
      width:300px !important;height:300px !important;
      right:-15px !important;top:-95px !important;
      background:#d9eaff70 !important;
      filter:blur(1px) !important;
      box-shadow:0 0 0 35px #e6f0fc80,0 0 0 72px #edf4fc90 !important;
    }
    .hero-copy { max-width:650px; }
    .eyebrow {
      display:inline-flex !important;
      margin:0 0 27px !important;
      padding:0 !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      color:#3978b9 !important;
      font-size:13px !important;
      font-weight:850 !important;
      letter-spacing:2.4px !important;
    }
    .eyebrow-dot {
      width:9px !important;height:9px !important;
      background:#f0a34a !important;
      box-shadow:0 0 0 5px #f0a34a25 !important;
    }
    .hero-presentation h1 {
      max-width:680px !important;
      margin:0 !important;
      color:#17365f !important;
      font-size:clamp(42px,5vw,66px) !important;
      line-height:1.04 !important;
      letter-spacing:-2.6px !important;
      font-weight:850 !important;
      text-wrap:balance;
    }
    .hero-presentation h1 span {
      position:relative !important;
      display:inline !important;
      color:#2874b9 !important;
      text-shadow:none !important;
      background:linear-gradient(transparent 69%,#ffdfa8 69%,#ffdfa8 91%,transparent 91%);
      padding:0 2px 3px;
      -webkit-box-decoration-break:clone;
      box-decoration-break:clone;
    }
    .hero-presentation .intro {
      max-width:520px !important;
      margin:25px 0 0 !important;
      color:#647993 !important;
      font-size:16px !important;
      line-height:1.8 !important;
    }
    .hero-features {
      display:grid !important;
      grid-template-columns:1fr !important;
      gap:11px !important;
      margin-top:32px !important;
      max-width:570px;
    }
    .hero-presentation .feature {
      display:block;
      position:relative;
      margin:0 !important;
      padding:15px 18px 15px 20px !important;
      border:1px solid #e1eaf5 !important;
      border-left:4px solid #78a9d8 !important;
      border-radius:12px !important;
      background:#ffffffd9 !important;
      color:#24466f !important;
      box-shadow:0 7px 22px #24466f0b !important;
      transition:transform .18s ease,box-shadow .18s ease;
    }
    .hero-presentation .feature:hover {
      transform:translateX(4px);
      box-shadow:0 10px 25px #24466f14 !important;
    }
    .hero-presentation .feature strong { color:#1c416e !important; font-size:14px; }
    .hero-presentation .feature .muted { color:#74869c !important; font-size:13px; }
    .hero-motif {
      right:-12px !important;
      bottom:160px !important;
      color:#2c72b908 !important;
      font-size:clamp(210px,26vw,340px) !important;
      font-weight:900 !important;
      transform:rotate(8deg) !important;
    }
    .panel {
      background:#fff !important;
      border:1px solid #e2eaf4 !important;
      border-radius:22px !important;
      padding:clamp(30px,4vw,46px) !important;
      box-shadow:0 22px 60px #173b7012,0 3px 10px #173b7008 !important;
    }
    .auth-heading { margin-bottom:27px !important; }
    .auth-heading h2 {
      color:#193d6c !important;
      font-size:27px !important;
      font-weight:800 !important;
      letter-spacing:-.7px !important;
    }
    .auth-heading p { color:#8291a5 !important; }
    #authForm label { color:#304d70 !important; font-size:13px; font-weight:700; }
    #authForm input {
      background:#f5f8fc !important;
      border:1px solid #dce6f1 !important;
      border-radius:10px !important;
      color:#183b68 !important;
      min-height:51px !important;
    }
    #authForm input:focus {
      background:#fff !important;
      border-color:#70a5d9 !important;
      outline:3px solid #70a5d91c !important;
    }
    #authForm .primary {
      min-height:52px !important;
      margin-top:27px !important;
      border-radius:11px !important;
      background:linear-gradient(100deg,#1c4c83,#2e70ad) !important;
      box-shadow:0 8px 18px #1d4d8428;
      font-weight:750;
    }
    #authForm .primary:hover {
      background:linear-gradient(100deg,#173f70,#265f98) !important;
      transform:translateY(-1px);
    }
    .auth-link-button { color:#2d70ad !important; font-weight:650; }
    .auth-links .secondary { color:#647993 !important; }
    .auth-note { color:#8a98aa !important; font-size:12px; line-height:1.6; }
    @media(max-width:900px) {
      main { grid-template-columns:1fr !important; width:min(680px,92%) !important; gap:28px !important; margin:35px auto !important; }
      .hero-presentation { padding:5px 0 !important; }
      .hero-features { grid-template-columns:1fr 1fr !important; max-width:none; }
      .hero-presentation .feature:last-child { grid-column:1 / -1; }
      .hero-glow { right:0 !important; }
    }
    @media(max-width:600px) {
      .hero-presentation h1 { font-size:clamp(39px,11vw,52px) !important; letter-spacing:-1.8px !important; }
      .hero-features { grid-template-columns:1fr !important; }
      .hero-presentation .feature:last-child { grid-column:auto; }
      .panel { padding:27px 22px !important; }
      .hero-presentation .intro { font-size:15px !important; }
    }


    /* Slogan em lettering escolar: maior, expressivo e ainda legível. */
    @import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');
    .hero-presentation .eyebrow {
      display:block !important;
      width:fit-content;
      margin:0 0 24px !important;
      font-family:'Kalam','Segoe Print','Comic Sans MS',cursive !important;
      font-size:clamp(23px,2.5vw,31px) !important;
      line-height:1.2 !important;
      font-weight:700 !important;
      letter-spacing:.2px !important;
      color:#2869a8 !important;
      text-transform:uppercase;
      position:relative;
      padding:0 2px 7px !important;
    }
    .hero-presentation .eyebrow-dot { display:none !important; }
    .hero-presentation .eyebrow::after {
      content:"";
      position:absolute;
      left:1px;
      bottom:0;
      width:74%;
      height:4px;
      border-radius:50%;
      background:#f0bd70;
      transform:rotate(-1.4deg);
      opacity:.9;
    }
    .hero-presentation h1 {
      font-family:'Nunito Sans',Arial,sans-serif !important;
      font-size:clamp(39px,4.5vw,59px) !important;
      font-weight:900 !important;
      letter-spacing:-2px !important;
      line-height:1.08 !important;
    }
    .hero-presentation h1 span {
      background:linear-gradient(transparent 75%,#ffe4b8 75%,#ffe4b8 94%,transparent 94%) !important;
    }
    @media(max-width:600px) {
      .hero-presentation .eyebrow { font-size:24px !important; }
      .hero-presentation h1 { font-size:clamp(37px,10vw,49px) !important; }
    }


    /* Título principal com tipografia editorial, distinta da escrita escolar do slogan. */
    @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Kalam:wght@400;700&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');
    .hero-presentation h1 {
      max-width:650px !important;
      font-family:'DM Serif Display',Georgia,serif !important;
      font-size:clamp(43px,4.8vw,64px) !important;
      font-weight:400 !important;
      line-height:1.13 !important;
      letter-spacing:-1.25px !important;
      color:#1b3558 !important;
      text-wrap:balance;
    }
    .hero-presentation h1 span {
      display:inline !important;
      font-family:'DM Serif Display',Georgia,serif !important;
      font-style:italic !important;
      font-weight:400 !important;
      color:#2874b9 !important;
      background:linear-gradient(transparent 78%,#ffe2b5 78%,#ffe2b5 94%,transparent 94%) !important;
      text-shadow:none !important;
    }
    @media(max-width:600px) {
      .hero-presentation h1 {
        font-size:clamp(40px,10.5vw,52px) !important;
        line-height:1.12 !important;
        letter-spacing:-.8px !important;
      }
    }


    /* Frase principal em tipografia retrô, distinta da escrita manuscrita do slogan. */
    @import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');
    .hero-presentation h1 {
      font-family:'Righteous','Trebuchet MS',sans-serif !important;
      font-size:clamp(39px,4.4vw,57px) !important;
      font-weight:400 !important;
      line-height:1.18 !important;
      letter-spacing:.15px !important;
      color:#214d7d !important;
    }
    .hero-presentation h1 span {
      font-family:'Righteous','Trebuchet MS',sans-serif !important;
      font-style:normal !important;
      font-weight:400 !important;
      color:#347fc0 !important;
      background:linear-gradient(transparent 78%,#ffe2b5 78%,#ffe2b5 94%,transparent 94%) !important;
      text-shadow:none !important;
    }
    @media(max-width:600px) {
      .hero-presentation h1 {
        font-size:clamp(35px,9.5vw,48px) !important;
        line-height:1.2 !important;
        letter-spacing:0 !important;
      }
    }


    /* Caviar Dreams para o título: geométrica, espaçada e elegante. */
    @import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&display=swap');
    .hero-presentation h1 {
      font-family:'Caviar Dreams','Julius Sans One','Century Gothic',sans-serif !important;
      font-size:clamp(35px,3.9vw,51px) !important;
      font-weight:400 !important;
      line-height:1.28 !important;
      letter-spacing:1.2px !important;
      color:#214d7d !important;
    }
    .hero-presentation h1 span {
      font-family:'Caviar Dreams','Julius Sans One','Century Gothic',sans-serif !important;
      font-style:normal !important;
      font-weight:400 !important;
      color:#347fc0 !important;
      letter-spacing:1.1px !important;
      background:none !important;
      text-shadow:none !important;
    }
    @media(max-width:600px) {
      .hero-presentation h1 {
        font-size:clamp(31px,8.5vw,43px) !important;
        line-height:1.3 !important;
        letter-spacing:.7px !important;
      }
    }


    /* IDENTIDADE VISUAL SIMULAPRO — aplicada às telas internas */
    :root {
      --brand:#173b70;
      --brand-strong:#102d57;
      --brand-mid:#2874b9;
      --accent:#347fc0;
      --accent-soft:#eaf2fc;
      --page:#f4f7fc;
      --surface:#ffffff;
      --surface-soft:#f7faff;
      --text:#1b3558;
      --muted:#687d96;
      --line:#dfe8f3;
      --focus:#9fc4eb;
      --success:#23845b;
      --warning:#b7791f;
      --danger:#b54747;
    }
    html, body {
      background:var(--page) !important;
      color:var(--text);
    }
    body {
      background:
        radial-gradient(ellipse at 10% 0%,#eaf2fc 0,transparent 34%),
        var(--page) !important;
    }
    header, .site-header {
      background:#fff !important;
      color:var(--brand) !important;
      border-bottom:1px solid var(--line);
      box-shadow:0 2px 12px #173b7008;
    }
    .logo,.brand-lockup { color:var(--brand) !important; }
    .logo span,.brand-mark { color:#fff !important; }
    .brand-mark {
      background:linear-gradient(145deg,var(--brand),var(--accent)) !important;
      box-shadow:0 5px 12px #173b7022;
    }
    .header-tagline, footer { color:var(--muted) !important; }
    a { color:var(--brand-mid); }
    a:hover { color:var(--brand-strong); }
    h1,h2,h3,h4 { color:var(--brand); }
    .dashboard,.admin-panel,.admin-card,.panel,.feature {
      color:var(--text);
    }
    .dashboard { width:min(1160px,94%); }
    .admin-panel,.admin-card,.panel,.card,.content-card,.section-card {
      background:var(--surface) !important;
      border:1px solid var(--line) !important;
      border-radius:16px;
      box-shadow:0 8px 26px #173b7009;
    }
    /* Ajustes visuais da tela Reportar um problema */
    #studentSupport #supportType {
      min-height: 48px;
      padding: 11px 14px;
      font-size: 15px;
      border: 1px solid #cbdcf0;
      border-radius: 9px;
      background: #fff;
    }
    #studentSupport #backFromSupport {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 10px 16px;
      border: 1px solid #cbdcf0;
      border-radius: 9px;
      background: #fff;
      color: var(--brand) !important;
      font-weight: 650;
      text-decoration: none;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(15,45,80,.08);
    }
    #studentSupport #backFromSupport:hover {
      background: #edf5ff;
      border-color: #8db5e5;
    }

    .admin-panel h3,.admin-card h3 { color:var(--brand); }
    button,.primary,.admin-entry {
      transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
    }
    button.primary,.primary,.admin-entry {
      background:linear-gradient(100deg,var(--brand),var(--brand-mid)) !important;
      color:#fff !important;
      border:1px solid transparent !important;
      border-radius:10px;
      box-shadow:0 5px 14px #173b701c;
    }
    button.primary:hover,.primary:hover,.admin-entry:hover {
      background:linear-gradient(100deg,var(--brand-strong),#2366a6) !important;
      transform:translateY(-1px);
      box-shadow:0 8px 18px #173b7026;
    }
    button.secondary,.secondary {
      color:var(--brand-mid) !important;
    }
    .admin-nav button,.nav-link,.nav-logout {
      border:1px solid var(--line) !important;
      background:#fff !important;
      color:var(--brand) !important;
      border-radius:9px;
    }
    .admin-nav button.active,.nav-link.active {
      background:var(--accent-soft) !important;
      color:var(--brand-strong) !important;
      border-color:#c8dcf2 !important;
    }
    .admin-nav button:hover,.nav-link:hover,.nav-logout:hover {
      background:#edf4fc !important;
      border-color:#c8dcf2 !important;
    }
    input,select,textarea,
    .admin-panel select,.admin-panel input[type=file],
    .admin-card input,.admin-card textarea,.admin-card select {
      background:#fff !important;
      color:var(--text) !important;
      border:1px solid #ccd9e9 !important;
      border-radius:9px !important;
    }
    input:focus,select:focus,textarea:focus {
      outline:3px solid #347fc01c !important;
      border-color:var(--accent) !important;
    }
    label { color:#304d70; }
    .preview,.table-wrap,table {
      border-color:var(--line);
    }
    .preview th,table th {
      background:#edf4fc !important;
      color:var(--brand);
    }
    .preview td,table td,table th {
      border-bottom:1px solid var(--line);
    }
    .muted,.help-text,.description { color:var(--muted) !important; }
    .success { color:var(--success) !important; }
    .error { color:var(--danger) !important; }
    .badge,.status-badge {
      border-radius:999px;
    }
    .feature {
      border-color:var(--line) !important;
      box-shadow:0 5px 18px #173b7008;
    }
    /* A área de prova mantém o tema escuro próprio para favorecer concentração. */
    .quiz-shell {
      --quiz-accent:#58a6e7;
      --quiz-bg:#101820;
      --quiz-card:#182431;
      --quiz-line:#30465b;
    }
    @media(max-width:700px) {
      .dashboard { width:94%; }
      header,.site-header { padding-left:4% !important; padding-right:4% !important; }
    }


    /* Edição de matérias */
    #editSubjectList { margin-top:18px; }
    .subject-edit-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
    .subject-edit-row:last-child { border-bottom:0; }
    .subject-edit-row input { min-width:0; }
    .subject-edit-actions { display:flex; gap:8px; flex-wrap:wrap; }
    .subject-edit-actions button { width:auto; margin:0; padding:10px 14px; }
    @media(max-width:600px){ .subject-edit-row { grid-template-columns:1fr; } .subject-edit-actions button { flex:1; } }

    /* Página inicial autenticada: sem texto promocional e sem acesso administrativo duplicado. */
    #mainContent.logged-in {
      display:block !important;
      width:min(1180px,94%) !important;
      margin:clamp(38px,6vh,70px) auto !important;
    }
    #mainContent.logged-in > .hero-presentation { display:none !important; }
    #mainContent.logged-in > .panel {
      display:block !important;
      width:100% !important;
      max-width:none !important;
      padding:0 !important;
      border:0 !important;
      background:transparent !important;
      box-shadow:none !important;
    }
    #userArea {
      display:grid;
      grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);
      align-items:start;
      gap:clamp(28px,5vw,64px);
      width:100%;
    }
    #userArea.hidden { display:none !important; }
    .welcome-column {
      padding:30px 8px 30px 4px;
      align-self:start;
    }
    .welcome-kicker {
      color:#347fc0;
      font-size:12px;
      font-weight:800;
      letter-spacing:2px;
      margin:0 0 18px;
    }
    .welcome-column h1 {
      color:#173b70;
      font-family:'Nunito Sans',Arial,sans-serif;
      font-size:clamp(34px,4vw,48px);
      line-height:1.12;
      letter-spacing:-1.4px;
      margin:0 0 12px;
    }
    .welcome-column #userEmail {
      color:#71839b;
      font-size:14px;
      margin:0;
    }
    .welcome-message {
      color:#60758f;
      font-size:16px;
      line-height:1.8;
      max-width:420px;
      margin-top:28px;
    }
    .study-column {
      background:#fff;
      border:1px solid #dfe8f3;
      border-radius:20px;
      padding:clamp(25px,3.5vw,38px);
      box-shadow:0 16px 42px #173b7010;
      min-height:280px;
    }
    .study-column .dashboard-top { margin:0 0 22px; }
    .study-column .dashboard-top h2 {
      color:#173b70;
      font-size:25px;
      margin:0 0 7px;
    }
    .study-column .dashboard-top .intro {
      color:#687d96;
      margin:0;
    }
    .study-column #studentNotice {
      margin:0;
      background:#f7faff;
      border:1px solid #dfe8f3;
      border-left:4px solid #78a9d8;
      border-radius:12px;
      padding:20px;
    }
    .study-column #studentNotice strong { color:#173b70; }
    .study-column #studentNotice p { color:#687d96; line-height:1.7; }

    /* Fluxo correto: o painel de filtros substitui o conteúdo da área de estudos, sem mexer na coluna de boas-vindas. */
    .study-column.sim-view-active .dashboard-top,
    .study-column.sim-view-active #studentNotice { display:none !important; }
    /* Ao montar o simulado, a área de trabalho usa toda a largura disponível. */
    #userArea:has(.study-column.sim-view-active) { grid-template-columns:minmax(0,1fr); }
    .study-column.sim-view-active { grid-column:1 / -1; width:100%; max-width:none; padding:clamp(24px,3vw,42px); }
    .study-column.sim-view-active ~ .welcome-column { display:none; }
    .study-column #studentArea { width:100%; margin:0; }
    .study-column .sim-filter-layout { display:block; width:100%; padding:0; }
    .study-column .sim-filter-aside { display:none !important; }
    .study-column .sim-filter-card { width:100%; max-width:none; margin:0; }
    .study-column .sim-filter-grid { grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:24px 34px; }
    .study-column .sim-time-field .sim-inline-control { min-width:0; }
    .study-column .sim-time-field .sim-inline-control input { flex:1 1 170px; width:100%; max-width:220px; min-width:145px; }
    .study-column .sim-time-field .sim-counter { flex:0 0 auto; }
    @media(max-width:760px){ .study-column .sim-filter-grid { grid-template-columns:1fr; } .study-column.sim-view-active { padding:20px; } }


    /* Quantidade e duração lado a lado, na mesma linha. */
    .study-column.sim-view-active .sim-filter-limits-row {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(0,1fr) minmax(0,1fr);
      gap: 22px 26px;
      align-items: end;
      min-width: 0;
    }
    .study-column.sim-view-active .sim-filter-limits-row .sim-field { grid-column: auto !important; grid-row: auto !important; min-width: 0; }
    .study-column.sim-view-active .sim-filter-limits-row .sim-inline-control { flex-wrap: nowrap; min-width: 0; }
    .study-column.sim-view-active .sim-filter-limits-row .sim-inline-control input { flex: 1 1 120px; width: 100%; max-width: 190px; min-width: 90px; }
    .study-column.sim-view-active .sim-filter-limits-row .sim-counter { flex: 0 0 auto; }
    @media(max-width:650px) {
      .study-column.sim-view-active .sim-filter-limits-row { grid-template-columns: 1fr; gap: 16px; }
      .study-column.sim-view-active .sim-filter-limits-row .sim-inline-control { flex-wrap: wrap; }
    }

    /* Layout aprovado: fotografia à esquerda e filtros à direita. */
    #mainContent:has(.study-column.sim-view-active) { width:min(1600px,96%); max-width:none; margin:34px auto 48px; }
    #userArea:has(.study-column.sim-view-active) { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
    #userArea:has(.study-column.sim-view-active) .welcome-column { display:none !important; }
    .study-column.sim-view-active { display:block; grid-column:1/-1; width:100%; max-width:none; padding:0; margin:0; background:transparent; border:0; box-shadow:none; }
    .study-column.sim-view-active .dashboard-top,
    .study-column.sim-view-active #studentNotice { display:none !important; }
    .study-column.sim-view-active #studentArea { width:100%; margin:0; }
    .study-column.sim-view-active .sim-filter-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:18px; align-items:stretch; width:100%; padding:0; }
    .study-column.sim-view-active .sim-photo-panel { display:block !important; padding:0; margin:0; min-width:0; height:100%; min-height:650px; overflow:hidden; border:10px solid #fff; border-radius:28px; background:#fff; box-shadow:0 16px 42px #173b7020; }
    .study-column.sim-view-active .sim-photo-panel img { display:block; width:100%; height:100%; min-height:650px; object-fit:cover; object-position:center; border-radius:18px; }
    .study-column.sim-view-active .sim-filter-card { width:100%; max-width:none; min-width:0; margin:0; padding:clamp(24px,2.5vw,42px); border:1px solid #dce7f5; border-radius:28px; box-shadow:0 16px 42px #173b7018; display:flex; flex-direction:column; justify-content:center; }
    .study-column.sim-view-active .sim-filter-heading { text-align:left; margin-bottom:30px; }
    .study-column.sim-view-active .sim-filter-heading h2 { font-size:clamp(28px,2.4vw,38px); }
    .study-column.sim-view-active .sim-filter-grid { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:22px 26px; }
    .study-column.sim-view-active .sim-time-field .sim-inline-control { flex-wrap:wrap; }
    .study-column.sim-view-active .sim-time-field .sim-inline-control input { flex:1 1 130px; width:100%; max-width:190px; min-width:120px; }
    .study-column.sim-view-active .sim-filter-notice { margin-top:26px; }
    .study-column.sim-view-active .sim-filter-submit { margin-top:30px; }
    @media(max-width:1050px) {
      #mainContent:has(.study-column.sim-view-active) { width:min(960px,94%); }
      .study-column.sim-view-active .sim-filter-layout { grid-template-columns:1fr; }
      .study-column.sim-view-active .sim-photo-panel { min-height:380px; max-height:460px; }
      .study-column.sim-view-active .sim-photo-panel img { min-height:380px; max-height:460px; }
    }
    @media(max-width:650px) {
      #mainContent:has(.study-column.sim-view-active) { width:94%; margin:20px auto 32px; }
      .study-column.sim-view-active .sim-photo-panel { min-height:260px; max-height:300px; border-width:6px; border-radius:20px; }
      .study-column.sim-view-active .sim-photo-panel img { min-height:260px; max-height:300px; }
      .study-column.sim-view-active .sim-filter-card { padding:22px 18px; border-radius:20px; }
      .study-column.sim-view-active .sim-filter-grid { grid-template-columns:1fr; gap:16px; }
      .study-column.sim-view-active .sim-contest-field,.study-column.sim-view-active .sim-board-field,.study-column.sim-view-active .sim-subject-field,.study-column.sim-view-active .sim-year-field { grid-column:1; grid-row:auto; }
      .study-column.sim-view-active .sim-start-button { min-width:0; width:100%; }
    }

    /* Administração é exibida fora da coluna de estudos para não herdar
       regras de ocultação/grade da área do aluno. */
    #mainContent.logged-in.admin-mode #userArea {
      display:block !important;
      width:100%;
    }
    #mainContent.logged-in.admin-mode .welcome-column,
    #mainContent.logged-in.admin-mode #studyColumn {
      display:none !important;
    }
    #mainContent.logged-in.admin-mode #adminArea {
      display:block !important;
      width:100%;
      margin:0;
    }
    @media(max-width:760px) {
      #userArea { grid-template-columns:1fr; gap:18px; }
      .welcome-column { padding:8px 2px 10px; }
      .study-column { padding:24px 20px; }
    }


    @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700;800&display=swap');
    .welcome-column h1 {
      font-family:'DM Sans','Nunito Sans',Arial,sans-serif !important;
      font-size:clamp(36px,4vw,49px) !important;
      font-weight:700 !important;
      letter-spacing:-1.7px !important;
      line-height:1.13 !important;
      color:#173b70 !important;
    }
    .welcome-message {
      color:#60758f !important;
      font-size:16px !important;
      line-height:1.85 !important;
      max-width:440px !important;
      margin:23px 0 25px !important;
    }
    .welcome-cta {
      display:inline-flex !important;
      align-items:center;
      gap:13px;
      width:auto !important;
      min-height:43px;
      padding:10px 17px !important;
      margin:0 !important;
      border:1px solid #c9dcef !important;
      border-radius:9px !important;
      background:#ffffffb8 !important;
      color:#245f99 !important;
      box-shadow:0 3px 10px #173b7008 !important;
      font-family:'DM Sans','Nunito Sans',Arial,sans-serif !important;
      font-size:14px !important;
      font-weight:700 !important;
      cursor:pointer;
      transition:background .18s ease,border-color .18s ease,transform .18s ease;
    }
    .welcome-cta span { font-size:18px; line-height:1; }
    .welcome-cta:hover {
      background:#eaf2fc !important;
      border-color:#9dbfe2 !important;
      transform:translateY(-1px);
    }


    .welcome-message strong {
      color:#285f96;
      font-weight:700;
    }

  
/* Simulado integrado ao BraboSimulados: tema claro padrão */
.student-catalog .section-card{margin-top:18px}
.quiz-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.quiz-catalog-head h2{margin:0 0 5px}
.quiz-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:18px}
.quiz-select-row label{grid-column:1/-1;font-weight:700;color:#173b70}
.quiz-select-row select{min-height:46px;border:1px solid #cbdced;border-radius:9px;padding:10px 12px;background:#f8fafd;color:#173b70;font:inherit}
.quiz-select-row button{width:auto;margin:0;min-height:46px}
.quiz-shell{--qbg:#f4f7fc;--qcard:#fff;--qpanel:#f8fafd;--qline:#d6e2f0;--qtext:#173b70;--qmuted:#647b98;--qblue:#347fc0;--qanswer:#f8fafd;--qanswertext:#263f60;display:block;background:var(--qbg);color:var(--qtext);min-height:calc(100vh - 90px);padding:24px 18px 36px;border-radius:16px;margin-top:18px}
body.site-dark .quiz-shell{--qbg:#101827;--qcard:#1b2a40;--qpanel:#18263a;--qline:#30415b;--qtext:#edf3fb;--qmuted:#9eafc6;--qblue:#438bd0;--qanswer:#202f45;--qanswertext:#eaf1fa}
.quiz-container{max-width:1120px;margin:0 auto}
.quiz-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.quiz-brand{font-size:23px;font-weight:800;letter-spacing:-.7px;color:var(--qtext)}
.quiz-brand span{color:#347fc0}
.quiz-top-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.quiz-demo-label{font-size:11px;color:var(--qmuted);border:1px solid var(--qline);padding:7px 10px;border-radius:20px}
.quiz-theme-toggle,.quiz-exit{border:1px solid var(--qline);border-radius:20px;padding:8px 12px;background:var(--qcard);color:var(--qtext);font:600 12px 'DM Sans',Arial,sans-serif;cursor:pointer}
.quiz-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--qmuted);font-size:14px;margin-bottom:12px}
.quiz-meta strong{display:block;color:var(--qtext)}
.quiz-meta span{display:block;margin-top:3px}
.quiz-timer{font-variant-numeric:tabular-nums;padding:9px 13px;background:var(--qcard);border:1px solid var(--qline);border-radius:9px;color:var(--qtext)}
.quiz-progress{height:6px;background:var(--qline);border-radius:9px;overflow:hidden;margin-bottom:22px}
.quiz-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#347fc0,#73b6ed)}
.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px}
.quiz-question-card,.quiz-sidebar,.quiz-review-panel,.quiz-grid-wrap{background:var(--qcard);border:1px solid var(--qline);border-radius:16px;padding:clamp(18px,3vw,30px)}
.quiz-question-tag{font-size:12px;letter-spacing:1.3px;font-weight:800;color:#438bd0;margin-bottom:14px}
.quiz-question-card h1{font-size:clamp(19px,2.4vw,25px);line-height:1.45;margin:0 0 22px;color:var(--qtext)}
.quiz-support{white-space:pre-wrap;line-height:1.65;color:var(--qmuted);margin:0 0 16px}
.quiz-alternatives{display:grid;gap:10px}
.quiz-alternative{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;padding:13px 15px;border:1px solid var(--qline);border-radius:11px;background:var(--qanswer);color:var(--qanswertext);font:500 14px/1.5 'DM Sans',Arial,sans-serif;cursor:pointer}
.quiz-alternative.selected{border:2px solid #438bd0;background:#e4f1ff;color:#173b70;padding:12px 14px}
body.site-dark .quiz-shell .quiz-alternative.selected{background:#243f5d;color:#edf3fb}
.quiz-alt-letter{flex:0 0 27px;height:27px;border:1px solid #9db4cc;border-radius:8px;display:grid;place-items:center;font-weight:800}
.quiz-alternative.correct{border:2px solid #75c98b;background:#d9f5df;color:#174d27}
.quiz-alternative.wrong{border:2px solid #df8585;background:#fbe0e0;color:#762727}
.quiz-alternative:disabled{cursor:default;opacity:1}
.quiz-sidebar{padding:18px;height:max-content}
.quiz-sidebar h3{margin:0 0 12px;font-size:14px}
.quiz-sidebar>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--qline);font-size:13px;color:var(--qmuted)}
.quiz-sidebar b{color:var(--qtext)}
.quiz-pending{display:flex;align-items:center;gap:8px;margin-top:15px;font-size:13px;color:var(--qtext)}
.quiz-pending input{accent-color:#eabf36;width:17px;height:17px}
#quizSidebarHint{font-size:12px;color:var(--qmuted);line-height:1.6}
.quiz-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:18px;align-items:center}
.quiz-controls button,.quiz-review-panel button,.quiz-review-question>button{width:100%;max-width:220px;justify-self:center;min-height:38px;padding:9px 12px;border:1px solid var(--qline);border-radius:9px;background:var(--qcard);color:var(--qtext);font:700 13px 'DM Sans',Arial,sans-serif;cursor:pointer}
.quiz-controls #quizReview{background:#eaf2fc;color:#245f99;border-color:#b8d0e9}
body.site-dark .quiz-shell .quiz-controls #quizReview{background:#263a55;color:#edf3fb;border-color:#6687ac}
.quiz-controls button:disabled{opacity:.4;cursor:not-allowed}
.quiz-controls .quiz-finish{grid-column:1/-1;max-width:none;background:#1e7a50;color:#fff;border-color:#1e7a50}
.quiz-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:15px;color:var(--qmuted);font-size:12px}
.qdot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.qdot.answered{background:#78baff}.qdot.notdone{background:#fff;border:1px solid #cbd5e1}.qdot.pending{background:#eabf36}.qdot.hit{background:#16a34a}.qdot.miss{background:#dc5555}
.quiz-grid{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:7px;margin-top:14px}
.quiz-qnum{aspect-ratio:1;min-width:0;padding:0;border:1px solid #d9e0e8;border-radius:5px;background:#fff;color:#1b293b;font:700 11px 'DM Sans',Arial,sans-serif;cursor:pointer}
.quiz-qnum.answered{background:#78baff;border-color:#4b9be8;color:#102f50}
.quiz-qnum.pending{background:#eabf36;border-color:#eabf36;color:#2c240b}
.quiz-qnum.current{outline:2px solid #438bd0;outline-offset:2px}
.quiz-qnum.hit{background:#16a34a;border-color:#16a34a;color:#fff}
.quiz-qnum.miss{background:#dc5555;border-color:#dc5555;color:#fff}
.quiz-qnum.blank{background:#fff;color:#26364b}
.quiz-result{padding:22px;margin-bottom:18px;border:1px solid var(--qline);background:var(--qcard);border-radius:16px;text-align:center}
.quiz-result h2{margin:0 0 16px}
.quiz-result-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quiz-result-card{padding:17px;border-radius:12px;color:#fff}
.quiz-result-card.good{background:#174c31}.quiz-result-card.bad{background:#692b32}
.quiz-result-card strong{display:block;font-size:30px}.quiz-result-card span{display:block;font-size:13px;margin:3px 0 7px}.quiz-result-card b{font-size:19px}
.quiz-result p{color:var(--qmuted);font-size:13px;margin:14px 0}
.quiz-primary{border:0;border-radius:9px;background:#347fc0;color:#fff;padding:11px 22px;font:700 14px 'DM Sans',Arial,sans-serif;cursor:pointer}
.quiz-review-panel{margin-top:18px}
.quiz-review-panel h3,.quiz-grid-wrap h3{margin:0;font-size:16px}
.quiz-review-panel #quizBackResult{display:block;margin:18px auto 0}
.quiz-review-question{margin-top:18px}
.quiz-review-question .quiz-question-card{margin-bottom:16px}
.quiz-review-question>button{display:block;margin:0 auto 14px}
.quiz-readonly{font-size:12px;color:var(--qmuted)}
.hidden{display:none!important}
@media(max-width:760px){.quiz-layout{grid-template-columns:1fr}.quiz-sidebar{display:block}.quiz-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.quiz-topbar{align-items:flex-start;flex-direction:column}.quiz-top-actions{width:100%}.quiz-select-row{grid-template-columns:1fr}.quiz-select-row label{grid-column:auto}.quiz-select-row button{width:100%}.quiz-controls{grid-template-columns:1fr 1fr}.quiz-controls #quizReview{grid-column:1/-1;grid-row:1}.quiz-controls .quiz-finish{grid-column:1/-1}.quiz-result-cards{gap:8px}}


    /* Ajuste final: fotografia isolada à esquerda e formulário independente à direita. */
    @media (min-width: 1051px) {
      #mainContent:has(.study-column.sim-view-active) {
        width: min(1600px, 96vw) !important;
        max-width: 1600px !important;
      }
      .study-column.sim-view-active .sim-filter-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
        gap: 22px !important;
        align-items: stretch !important;
      }
      .study-column.sim-view-active .sim-photo-panel {
        min-height: 650px !important;
        max-height: 760px !important;
      }
      .study-column.sim-view-active .sim-photo-panel img {
        width: 100% !important;
        height: 100% !important;
        min-height: 650px !important;
        max-height: 760px !important;
        object-fit: cover !important;
        object-position: center !important;
      }
    }

  
    /* Marca oficial BraboSimulados */
    .site-header { background:#ffffff !important; border-bottom:1px solid #dce8f7; box-shadow:0 5px 22px #102d5712; }
    .brand-lockup { min-width:210px; height:54px; gap:0; }
    .brand-logo-image { display:block; width:250px; max-width:30vw; height:auto; max-height:66px; object-fit:contain; object-position:left center; }
    .top-navigation .nav-link, .top-navigation .nav-logout { color:#173b70 !important; }
    .top-navigation .nav-link:hover, .top-navigation .nav-link.active { background:#eaf2fc !important; color:#173b70 !important; }
    .top-navigation .nav-logout { border-color:#c9d9ed !important; }
    .header-tagline { color:#527096 !important; }
    @media (max-width:760px) { .brand-lockup { min-width:0; } .brand-logo-image { width:190px; max-width:42vw; max-height:52px; } }

    /* Administração em menu lateral + painel de conteúdo */
    main.admin-mode { width:min(1600px,98%); margin:14px auto 28px; }
    main.admin-mode > section.panel { padding:12px; }
    main.admin-mode #userArea { width:100%; }
    main.admin-mode .welcome-column, main.admin-mode .dashboard-top,
    main.admin-mode #studentNotice { display:none !important; }
    main.admin-mode #studyColumn { display:block !important; width:100%; max-width:none; padding:0; margin:0; background:transparent; border:0; box-shadow:none; }
    #adminArea { margin:0; width:100%; }
    .admin-shell { display:grid; grid-template-columns:260px minmax(0,1fr); gap:16px; align-items:stretch; min-height:calc(100vh - 125px); }
    .admin-sidebar { background:#fff; border:1px solid #d7e4f5; border-radius:15px; padding:12px; box-shadow:0 8px 28px #173b700b; }
    .admin-sidebar-title { padding:8px 10px 13px; color:#64748b; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
    .admin-menu { display:flex; flex-direction:column; gap:5px; }
    .admin-menu button { display:flex; align-items:center; gap:12px; width:100%; margin:0; padding:13px 12px; text-align:left; color:#173b70; background:transparent; border:0; border-radius:10px; font-weight:750; }
    .admin-menu button:hover { background:#edf4fd; }
    .admin-menu button.active { background:linear-gradient(110deg,#173b70,#2879bd); color:#fff; box-shadow:0 5px 14px #173b7025; }
    .admin-menu .menu-icon { width:24px; text-align:center; font-size:18px; }

    /* Menu administrativo agrupado no mesmo padrão visual de Minha Escola */
    .admin-menu { display:flex; flex-direction:column; gap:12px; }
    .admin-menu-group { border-bottom:1px solid #e5edf7; padding-bottom:9px; }
    .admin-menu-group:last-child { border-bottom:0; }
    .admin-menu-group > summary { display:flex; align-items:center; gap:10px; padding:11px 10px; color:#173b70; border-radius:10px; cursor:pointer; list-style:none; font-weight:800; }
    .admin-menu-group > summary::-webkit-details-marker { display:none; }
    .admin-menu-group > summary:hover { background:#edf4fd; }
    .admin-menu-group > summary .menu-icon { width:24px; text-align:center; font-size:18px; }
    .admin-menu-group > summary .group-chevron { margin-left:auto; color:#7890ad; transition:transform .18s ease; }
    .admin-menu-group[open] > summary .group-chevron { transform:rotate(180deg); }
    .admin-submenu { display:flex; flex-direction:column; gap:3px; padding:4px 0 0 12px; }
    .admin-submenu button { display:flex; align-items:center; gap:10px; width:100%; margin:0; padding:10px 10px; text-align:left; color:#315477; background:transparent; border:0; border-radius:9px; font-size:13px; font-weight:650; cursor:pointer; }
    .admin-submenu button:hover { background:#edf4fd; color:#173b70; }
    .admin-submenu button.active { background:linear-gradient(110deg,#173b70,#2879bd); color:#fff; box-shadow:0 4px 12px #173b7025; }
    .admin-submenu .menu-icon { flex:0 0 22px; width:22px; text-align:center; font-size:16px; }
    @media(max-width:850px){ .admin-menu{display:flex;grid-template-columns:none}.admin-menu-group{min-width:0} }

    .admin-content { min-width:0; background:#fff; border:1px solid #d7e4f5; border-radius:15px; padding:clamp(16px,2vw,26px); box-shadow:0 8px 28px #173b700b; }
    .admin-content > [data-admin-view] { margin:0; }
    .admin-content .admin-panel { margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
    .admin-content .section-card { margin:0 0 16px; }
    .admin-view-heading { display:flex; align-items:center; gap:14px; margin:0 0 20px; padding-bottom:16px; border-bottom:1px solid #e4edf8; }
    .admin-view-heading .view-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:13px; background:#eaf2fc; color:#1769b2; font-size:25px; }
    .admin-view-heading h2 { margin:0 0 4px; color:#102d57; font-size:24px; }
    .admin-view-heading p { margin:0; color:#64748b; }
    .admin-placeholder { border:1px dashed #c9d9ed; border-radius:12px; padding:26px; background:#f8fbff; color:#64748b; }
    .admin-placeholder h3 { margin:0 0 8px; color:#173b70; }
    .admin-form-card { max-width:760px; }
    .admin-form-card .form-grid { margin-bottom:14px; }
    .admin-form-card select,.admin-form-card input { width:100%; padding:12px; border:1px solid #ccd9eb; border-radius:9px; }
    .admin-form-card .primary { width:100%; max-width:none; }
    .review-workspace { grid-template-columns:minmax(220px,285px) minmax(0,1fr); }
    .review-navigation { position:sticky; top:90px; }
    .review-editor textarea#editEnunciado { min-height:260px; }
    @media(max-width:850px){ .admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static}.admin-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.review-workspace{grid-template-columns:1fr}.review-navigation{position:static;max-height:none} }
    @media(max-width:520px){ .admin-menu{grid-template-columns:1fr}.admin-content{padding:12px}.admin-view-heading h2{font-size:20px} }

  
    .proof-row-actions .danger{background:#b42318;color:#fff;border:1px solid #b42318}.proof-row-actions .danger:hover{background:#912018}

.review-pdf-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;width:100%}
.review-pdf-tools button{border:1px solid #cbd8ea;border-radius:8px;padding:8px 12px;background:#fff;color:#173b70;font-weight:600;cursor:pointer}
.review-pdf-tools button.primary{background:#1d65c1;color:#fff;border-color:#1d65c1}
.review-pdf-hint{font-size:12px;color:#64748b;text-align:center;width:100%}
.review-pdf-stage{position:relative;display:inline-block;max-width:100%;line-height:0;touch-action:none;cursor:default}
.review-pdf-stage.selecting{cursor:crosshair}
.review-pdf-stage canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 2px 12px #172b4d22}
.review-pdf-selection{position:absolute;border:2px dashed #1265d8;background:#1265d822;pointer-events:none;display:none;box-sizing:border-box}


    .simulado-question-image{display:block;max-width:100%;height:auto;max-height:720px;object-fit:contain;margin:12px 0;border-radius:8px}
    .quiz-alternative .simulado-question-image{max-width:100%;max-height:360px;margin:8px 0 0}
      .simulado-question-image-inline{display:inline-block!important;vertical-align:middle;max-width:min(100%,320px);max-height:110px;width:auto;height:auto;margin:0 5px;border-radius:4px}
      .simulado-question-image-primary{display:block!important;width:auto;height:auto;max-width:min(100%,360px);max-height:300px;margin:10px 0 14px;border-radius:4px;object-fit:contain}
      .question-extra-images{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:10px}
      .question-image-missing{display:inline-block;color:#a33;font-size:.9em;margin:0 4px}
    .quiz-alternative{align-items:flex-start}
    .quiz-alternative>span:last-child{min-width:0;flex:1;text-align:left}


    .review-image-manager{border:1px solid #d8e3f2;border-radius:10px;padding:13px;margin:12px 0;background:#f8fbff}
    .review-image-manager h4{margin:0 0 8px;color:#173b70}
    .review-image-manager p{margin:4px 0 10px;font-size:13px;color:#64748b}
    .review-image-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
    .review-image-row input[type=file]{max-width:100%;font-size:13px}
    .review-image-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
    .review-image-actions button{padding:7px 11px;font-size:12px}
    .review-image-preview{display:block;max-width:100%;max-height:220px;object-fit:contain;margin-top:9px;border:1px solid #dce5f1;border-radius:8px;background:white;padding:5px}
    .alternative-image-tools{display:flex;flex-direction:column;gap:6px;margin-top:7px}
    .alternative-image-tools input{font-size:12px;max-width:100%}
    .alternative-image-tools img{max-width:100%;max-height:150px;object-fit:contain;border:1px solid #dce5f1;border-radius:7px;padding:4px;background:#fff}
    .image-upload-status{font-size:12px;color:#52657d}


/* BraboSimulados — layout de prova em tela ampla, inspirado na referência escura */
.quiz-shell {
  --qbg: #101311;
  --qcard: #171c19;
  --qpanel: #141916;
  --qline: #303a34;
  --qtext: #f1f4f2;
  --qmuted: #a8b3ac;
  --qblue: #2879bd;
  --qanswer: #171c19;
  --qanswertext: #f1f4f2;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 70px);
  margin: 0;
  padding: 18px clamp(14px, 3vw, 42px) 32px;
  border-radius: 0;
  background: var(--qbg);
  color: var(--qtext);
  font-family: Arial, sans-serif;
  font-size: 11px;
}
body.site-dark .quiz-shell {
  --qbg: #101311;
  --qcard: #171c19;
  --qpanel: #141916;
  --qline: #303a34;
  --qtext: #f1f4f2;
  --qmuted: #a8b3ac;
  --qblue: #2879bd;
  --qanswer: #171c19;
  --qanswertext: #f1f4f2;
}
.quiz-shell {
  --qbg: #f3f6fb;
  --qcard: #ffffff;
  --qpanel: #f8fafd;
  --qline: #d6e2f0;
  --qtext: #173b70;
  --qmuted: #647b98;
  --qblue: #2879bd;
  --qanswer: #f8fafd;
  --qanswertext: #263f60;
}
.quiz-container { width: 100%; max-width: 1440px; margin: 0 auto; }
.quiz-layout { display: block; width: 100%; }
.quiz-sidebar { display: none !important; }
.quiz-question-card {
  width: 100%;
  max-width: none;
  min-height: 360px;
  box-sizing: border-box;
  padding: clamp(22px, 3vw, 38px);
  background: var(--qcard);
  border: 1px solid var(--qline);
  border-top: 3px solid var(--qblue);
  border-radius: 14px;
}
.quiz-question-tag { font: 700 11px Arial, sans-serif; letter-spacing: 1px; color: var(--qblue); }
.quiz-question-card h1,
#quizReviewPrompt {
  max-width: 1100px;
  color: var(--qtext);
  font: 700 18px/1.55 Arial, sans-serif;
}
.quiz-support { color: var(--qmuted); font: 11px/1.65 Arial, sans-serif; }
.quiz-meta, .quiz-timer, .quiz-topbar, .quiz-controls, .quiz-legend,
.quiz-review-panel, .quiz-grid-wrap, .quiz-result,
.quiz-theme-toggle, .quiz-exit {
  font-family: Arial, sans-serif;
  font-size: 11px;
}
.quiz-alternative {
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid var(--qline);
  border-radius: 9px;
  background: var(--qanswer);
  color: var(--qanswertext);
  font: 11px/1.55 Arial, sans-serif;
}
.quiz-alternative:hover,
.quiz-alternative.selected {
  border-color: var(--qblue);
  background: color-mix(in srgb, var(--qblue) 16%, var(--qcard));
  color: var(--qtext);
}
.quiz-alt-letter {
  flex-basis: 25px;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font: 700 11px Arial, sans-serif;
}
.quiz-progress { margin-bottom: 18px; }
.quiz-progress i { background: linear-gradient(90deg, #2879bd, #55a5e8); }
.quiz-topbar { margin-bottom: 16px; }
.quiz-brand { font: 700 20px Arial, sans-serif; }
.quiz-theme-toggle, .quiz-exit {
  border-radius: 8px;
  background: var(--qcard);
  border-color: var(--qline);
  color: var(--qtext);
  font: 600 11px Arial, sans-serif;
}
.quiz-controls button { font: 600 11px Arial, sans-serif; }
.quiz-review-panel, .quiz-grid-wrap, .quiz-result {
  background: var(--qcard);
  color: var(--qtext);
  border-color: var(--qline);
}
.quiz-question-number { color: #ffffff0b; }
@media (min-width: 900px) {
  .quiz-question-card { padding: 34px 42px; }
  .quiz-alternatives { max-width: none; }
}
@media (max-width: 600px) {
  .quiz-shell { padding: 14px 10px 24px; }
  .quiz-question-card { padding: 20px 15px; }
  .quiz-question-card h1, #quizReviewPrompt { font-size: 16px; }
}


/* Ajustes finais do layout do simulado — barra integrada e controles centralizados */
.quiz-shell { font-family: Arial, sans-serif; font-size: 11px; }
body.site-dark .quiz-shell {
  --qbg:#090f18; --qcard:#101c2a; --qpanel:#0d1723; --qline:#263d54;
  --qtext:#f1f6fc; --qmuted:#a9bacb; --qblue:#168fe5;
  --qanswer:#122235; --qanswertext:#f1f6fc;
}
.quiz-meta-integrated {
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; margin:0 0 16px; padding:8px 0;
  background:transparent; border:0; color:var(--qtext);
}
.quiz-meta-brand { display:flex; align-items:center; gap:28px; min-width:0; }
.quiz-meta-title { display:flex; flex-direction:column; gap:4px; min-width:0; }
.quiz-meta-title strong { font:700 14px Arial,sans-serif; color:var(--qtext); }
.quiz-meta-title span { font:11px Arial,sans-serif; color:var(--qmuted); }
.quiz-brand { font:700 25px Arial,sans-serif; color:var(--qtext); white-space:nowrap; }
.quiz-brand span { color:#168fe5; }
.quiz-timer { flex:none; padding:9px 16px; border:1px solid var(--qblue); border-radius:24px; color:var(--qtext); font:700 15px Arial,sans-serif; }
.quiz-progress { height:9px; margin:0; border-radius:20px; overflow:hidden; background:#263d54; }
.quiz-utility-row { display:flex; align-items:center; justify-content:flex-end; gap:16px; min-height:42px; margin-bottom:14px; }
.quiz-completion { margin-right:auto; color:var(--qmuted); font:11px Arial,sans-serif; }
.quiz-theme-toggle { padding:7px 12px; border:1px solid var(--qline); border-radius:8px; background:var(--qcard); color:var(--qtext); font:600 11px Arial,sans-serif; cursor:pointer; }
.quiz-layout { display:block; width:100%; }
.quiz-question-card { width:100%; max-width:none; min-height:0; padding:25px 30px 28px; background:var(--qcard); border:1px solid var(--qline); border-top:2px solid var(--qblue); border-radius:14px; box-sizing:border-box; }
.quiz-question-tag { margin-bottom:12px; color:var(--qblue); font:700 17px Arial,sans-serif; letter-spacing:.3px; }
.quiz-question-card h1, #quizReviewPrompt {
  width:100%; max-width:none; margin:0 0 22px; color:var(--qtext);
  font:700 17px/1.5 Arial,sans-serif; white-space:normal;
}
.quiz-support { margin-bottom:12px; color:var(--qmuted); font:11px/1.55 Arial,sans-serif; }
.quiz-alternatives {
  display:flex; flex-wrap:wrap; align-items:stretch; gap:12px;
  width:100%; max-width:none; margin-top:22px;
}
.quiz-alternative {
  display:inline-flex; flex:0 1 auto; align-items:center; gap:12px;
  width:auto; min-width:180px; max-width:100%; min-height:56px;
  padding:10px 16px; border:1px solid var(--qline); border-radius:10px;
  background:var(--qanswer); color:var(--qanswertext);
  text-align:left; font:14px/1.45 Arial,sans-serif; cursor:pointer;
}
.quiz-alt-letter {
  flex:0 0 30px; width:30px; height:30px; display:inline-flex;
  align-items:center; justify-content:center; border-radius:7px;
  border:1px solid var(--qblue); color:var(--qtext);
  font:700 14px Arial,sans-serif;
}
.quiz-alternative.selected { border-color:var(--qblue); background:color-mix(in srgb,var(--qblue) 20%,var(--qcard)); }
.quiz-controls-centered {
  display:grid; grid-template-columns:minmax(130px,1fr) auto minmax(130px,1fr);
  align-items:center; gap:14px; margin-top:24px;
}
.quiz-controls-center { display:flex; align-items:center; justify-content:center; gap:12px; }
.quiz-controls button { min-height:44px; padding:10px 18px; border-radius:9px; font:600 12px Arial,sans-serif; }
#quizPrev { justify-self:start; }
#quizNext { justify-self:end; }
.quiz-controls-center #quizPendingToggle { border:1px solid #d9a900; background:transparent; color:#e8bd26; }
.quiz-controls-center #quizPendingToggle.is-pending { background:#59480d; color:#ffe27a; }
.quiz-controls-center #quizReview { border:1px solid var(--qblue); background:#12395b; color:#fff; }
.quiz-controls-center .quiz-exit { border:1px solid #8196aa; background:transparent; color:var(--qtext); }
.quiz-finish { grid-column:1 / -1; width:100%; margin-top:2px; }
.quiz-legend { display:flex; gap:18px; margin-top:14px; color:var(--qmuted); font:11px Arial,sans-serif; }
.quiz-sidebar { display:none !important; }
.quiz-topbar { display:none !important; }
.quiz-shell {
  --qbg:#f3f6fb; --qcard:#fff; --qpanel:#f8fafd; --qline:#d6e2f0;
  --qtext:#173b70; --qmuted:#647b98; --qblue:#2879bd;
  --qanswer:#f8fafd; --qanswertext:#263f60;
}
@media(max-width:850px) {
  .quiz-meta-brand { gap:12px; flex-wrap:wrap; }
  .quiz-controls-centered { grid-template-columns:1fr 1fr; }
  .quiz-controls-center { grid-column:1 / -1; grid-row:2; flex-wrap:wrap; }
  #quizPrev { grid-column:1; grid-row:1; }
  #quizNext { grid-column:2; grid-row:1; }
  .quiz-finish { grid-row:3; }
  .quiz-alternative { min-width:min(100%,180px); }
}


/* Correções solicitadas após teste visual */
#studentQuiz.quiz-shell {
  min-height:0 !important;
  height:auto !important;
  padding-top:14px !important;
  padding-bottom:16px !important;
  margin-bottom:0 !important;
}
#studentQuiz .quiz-container {
  min-height:0 !important;
  height:auto !important;
  padding-bottom:0 !important;
}
#studentQuiz .quiz-meta-integrated { margin-bottom:10px !important; }
#studentQuiz .quiz-meta-brand { gap:22px !important; flex-wrap:nowrap !important; }
#studentQuiz .quiz-brand {
  display:inline-flex !important;
  align-items:baseline !important;
  gap:0 !important;
  width:max-content !important;
  min-width:max-content !important;
  white-space:nowrap !important;
  font-size:25px !important;
  line-height:1 !important;
}
#studentQuiz .quiz-brand span { display:inline !important; white-space:nowrap !important; }
#studentQuiz .quiz-utility-row {
  min-height:30px !important;
  height:30px !important;
  margin:2px 0 12px !important;
}
#studentQuiz .quiz-completion {
  display:none !important;
}
#studentQuiz .quiz-progress { margin-bottom:0 !important; }
#studentQuiz .quiz-question-card {
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  padding:24px 30px !important;
  overflow:visible !important;
}
#studentQuiz #quizQuestionTag {
  display:block !important;
  width:100% !important;
  margin:0 0 14px !important;
  text-align:left !important;
}
#studentQuiz #quizPrompt {
  display:block !important;
  position:static !important;
  width:100% !important;
  max-width:none !important;
  margin:0 0 20px !important;
  text-align:left !important;
  font:700 17px/1.5 Arial,sans-serif !important;
}
#studentQuiz .quiz-alternatives {
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  flex-wrap:nowrap !important;
  gap:9px !important;
  width:100% !important;
  margin-top:18px !important;
}
#studentQuiz .quiz-alternative {
  display:inline-flex !important;
  flex:0 1 auto !important;
  width:fit-content !important;
  min-width:260px !important;
  max-width:100% !important;
  min-height:48px !important;
  padding:9px 16px !important;
  font:14px/1.45 Arial,sans-serif !important;
}
#studentQuiz .quiz-alt-letter {
  flex:0 0 30px !important;
  width:30px !important;
  height:30px !important;
  font:700 14px Arial,sans-serif !important;
}
#studentQuiz .quiz-controls-centered { margin-top:18px !important; }
@media(max-width:700px) {
  #studentQuiz .quiz-meta-brand { flex-wrap:wrap !important; gap:10px !important; }
  #studentQuiz .quiz-question-card { padding:18px 14px !important; }
  #studentQuiz .quiz-alternative { min-width:0 !important; width:100% !important; }
}


/* Tema noturno global do BraboSimulados */
.site-theme-toggle {
  margin-left:10px; padding:8px 12px; border:1px solid #cbd9eb; border-radius:9px;
  background:#fff; color:#173b70; font:600 11px Arial,sans-serif; cursor:pointer;
  white-space:nowrap;
}
body.site-dark { background:#0b111a !important; color:#eaf1f8 !important; }
body.site-dark .site-header { background:#101a27 !important; border-color:#263b51 !important; }
body.site-dark .site-header .nav-link,
body.site-dark .site-header .nav-logout,
body.site-dark .site-theme-toggle {
  background:#142337 !important; color:#eaf1f8 !important; border-color:#2b4966 !important;
}
body.site-dark .site-header .nav-link.active { background:#1b3c5b !important; }
body.site-dark #mainContent,
body.site-dark #studentArea,
body.site-dark #studyColumn { background:#0b111a !important; color:#eaf1f8 !important; }
body.site-dark .sim-filter-card,
body.site-dark .auth-card,
body.site-dark .admin-card,
body.site-dark .dashboard-card,
body.site-dark .content-card {
  background:#111e2d !important; color:#eaf1f8 !important; border-color:#2b4158 !important;
}
body.site-dark .sim-filter-heading h2,
body.site-dark .sim-field,
body.site-dark .sim-filter-notice strong,
body.site-dark .sim-filter-notice,
body.site-dark .auth-card h1,
body.site-dark .auth-card h2 { color:#eaf1f8 !important; }
body.site-dark .sim-filter-heading p,
body.site-dark .muted { color:#a9bacb !important; }
body.site-dark .sim-field select,
body.site-dark .sim-field input,
body.site-dark .sim-subject-dropdown summary,
body.site-dark input, body.site-dark select, body.site-dark textarea {
  background:#0c1724 !important; color:#edf4fb !important; border-color:#35516c !important;
}
body.site-dark .sim-subject-options {
  background:#132236 !important; color:#edf4fb !important; border-color:#35516c !important;
}
body.site-dark .sim-subject-options label { color:#edf4fb !important; }
body.site-dark .sim-filter-notice { background:#142b43 !important; border-color:#28547c !important; }
body.site-dark .sim-counter { background:#1a3a5a !important; color:#dceeff !important; }
body.site-dark .sim-clear-button { background:transparent !important; color:#dceeff !important; border-color:#3986c7 !important; }
body.site-dark .site-header .brand-logo-image { filter:brightness(1.08); }
#subjectDropdown { z-index:30; }
#subjectDropdown[open] { z-index:60; }
.sim-subject-field { position:relative; z-index:31; }
.sim-subject-dropdown[open] .sim-subject-options { display:block !important; }
.sim-filter-grid, .sim-filter-card { overflow:visible !important; }
@media(max-width:760px) {
  .site-theme-toggle { margin:8px 0 0; }
  .site-header { flex-wrap:wrap; }
}


/* Textos independentes inseridos entre questões */
#panel-textos-prova textarea { width:100%; min-height:230px; padding:12px; border:1px solid #ccd9eb; border-radius:9px; font:14px/1.55 Arial,sans-serif; }
#panel-textos-prova label { display:block; font-weight:700; margin:8px 0; }
#panel-textos-prova input, #panel-textos-prova select { width:100%; padding:11px; border:1px solid #ccd9eb; border-radius:9px; }
.quiz-interleaved-texts { width:100%; margin:0 0 16px; }
.quiz-interleaved-card { border:1px solid #2879bd; border-radius:12px; padding:16px 18px; background:var(--qcard,#101c2a); color:var(--qtext,#f1f6fc); }
.quiz-interleaved-card + .quiz-interleaved-card { margin-top:10px; }
.quiz-interleaved-card h3 { margin:0 0 10px; color:var(--qblue,#168fe5); font:700 15px Arial,sans-serif; }
.quiz-interleaved-content { max-height:340px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.55 Arial,sans-serif; padding:14px; border-radius:8px; background:rgba(100,140,180,.09); }
.quiz-text-preview { max-height:72px; overflow:hidden; white-space:pre-wrap; font:13px/1.5 Arial,sans-serif; color:var(--qtext,#f1f6fc); }
.quiz-text-open { padding:9px 14px; border:1px solid var(--qblue,#168fe5); border-radius:8px; background:var(--qblue,#168fe5); color:white; font-weight:700; cursor:pointer; }
.exam-text-modal { position:fixed; inset:0; z-index:99999; display:grid; place-items:center; padding:20px; }
.exam-text-modal.hidden { display:none; }
.exam-text-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); }
.exam-text-modal-panel { position:relative; z-index:1; width:min(900px,96vw); max-height:88vh; display:flex; flex-direction:column; border:1px solid #2879bd; border-radius:14px; background:#101c2a; color:#f1f6fc; box-shadow:0 20px 70px #0008; }
.exam-text-modal-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid #29445f; }
.exam-text-modal-header h2 { margin:0; font:700 18px Arial,sans-serif; }
.exam-text-modal-header button { border:0; background:transparent; color:inherit; font-size:28px; cursor:pointer; }
.exam-text-modal-body { padding:20px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:15px/1.65 Arial,sans-serif; }
body.modal-open { overflow:hidden; }
body.site-dark #panel-textos-prova { color:#eaf1f8; }
body.site-dark #panel-textos-prova textarea { background:#0c1724; color:#edf4fb; border-color:#35516c; }
body.site-dark #panel-textos-prova input, body.site-dark #panel-textos-prova select { background:#0c1724; color:#edf4fb; border-color:#35516c; }


.exam-text-image-field { margin:14px 0; padding:14px; border:1px dashed #9bb6d4; border-radius:10px; }
.exam-text-image-field input[type="file"] { display:block; margin:8px 0; }
.exam-text-remove-image { display:flex!important; align-items:center; gap:8px; font-weight:500!important; }
.exam-text-remove-image input { width:auto!important; }
.exam-text-image-preview { margin-top:10px; max-width:440px; }
.exam-text-image-preview img { display:block; max-width:100%; max-height:260px; object-fit:contain; border:1px solid #ccd9eb; border-radius:8px; background:#fff; }
.quiz-interleaved-image { display:block; max-width:100%; max-height:520px; object-fit:contain; margin:8px auto 14px; border-radius:8px; }


.review-qbtn.annulled { border-color:#9aa6b2; background:#f0f2f5; color:#4b5563; }
.status-pill.annulled { background:#eef1f4; color:#596575; border:1px solid #aab4c0; }
.quiz-annulled-notice { padding:14px 16px; margin:0 0 12px; border:1px solid #aab4c0; border-radius:10px; background:#eef1f4; color:#344256; font-weight:700; text-align:center; }


    /* Formulário de redação: campos longos ocupam toda a largura */
    #formEssayProposal { width:100%; }
    #formEssayProposal .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 14px; }
    #formEssayProposal .form-grid > label { display:flex; flex-direction:column; align-items:stretch; gap:7px; min-width:0; }
    #formEssayProposal > label { display:flex; flex-direction:column; align-items:stretch; gap:8px; width:100%; margin:18px 0; }
    #formEssayProposal input, #formEssayProposal select, #formEssayProposal textarea { width:100%; max-width:none; box-sizing:border-box; }
    #formEssayProposal > label textarea { display:block; min-height:110px; resize:vertical; padding:12px 14px; line-height:1.5; font:inherit; }
    #formEssayProposal #essayInstructions { min-height:220px; }
    @media (max-width:700px) { #formEssayProposal .form-grid { grid-template-columns:1fr; } }


/* Redação: folha digital inspirada no formulário físico */
.essay-writing-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}
.essay-paper{width:min(100%,216mm);min-height:330mm;margin:0 auto;background:#fff;border:1px solid #cbd5e1;border-radius:3px;box-shadow:0 5px 22px rgba(15,35,65,.10);display:grid;grid-template-columns:15mm 1fr;padding:12mm 10mm 12mm 7mm;box-sizing:border-box}
.essay-line-numbers{display:flex;flex-direction:column;color:#64748b;text-align:right;padding-right:3mm;user-select:none;font:16px/9mm Arial,sans-serif}
.essay-line-numbers span{height:9mm;line-height:9mm}
#studentEssayText{width:100%;height:270mm;min-height:270mm;resize:vertical;border:0!important;border-radius:0!important;outline:none!important;box-shadow:none!important;padding:0 2mm!important;margin:0!important;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(9mm - 1px),#aebdce calc(9mm - 1px),#aebdce 9mm)!important;color:#172b45;font:17px/9mm Arial,sans-serif;letter-spacing:.1px;white-space:pre-wrap;overflow-y:auto;box-sizing:border-box}
#studentEssayText:focus{border:0!important;box-shadow:none!important}
.essay-upload-area{width:min(100%,216mm);margin:16px auto;padding:16px;border:1px dashed #9fb3ca;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#f8fbff}
.essay-upload-area p{margin:4px 0 0}
.essay-upload-button{cursor:pointer;padding:10px 14px;border:1px solid #b8c9dc;border-radius:8px;color:#174477;background:white;font-weight:600}
@media(max-width:700px){.essay-paper{padding:8mm 5mm 8mm 3mm;grid-template-columns:12mm 1fr;min-height:280mm}.essay-line-numbers{font-size:14px;padding-right:2mm}#studentEssayText{font-size:15px}.essay-writing-heading{align-items:flex-start;flex-direction:column}}

/* V7 - leitura confortável do tema, instruções e textos-base */
#studentEssayTheme,
#studentEssayTheme p,
#studentEssayTheme strong,
#studentEssayInstructions,
#studentEssayInstructions p,
#studentEssayInstructions div,
#studentEssayInstructions span,
#studentEssayInstructions li {
  font-size: 18px !important;
  line-height: 1.75 !important;
  color: #263b56 !important;
}
#studentEssayTheme {
  padding: 20px 22px !important;
  margin-top: 20px !important;
}
#studentEssayTheme p {
  margin: 10px 0 0 !important;
  white-space: pre-wrap;
}
#studentEssayInstructions {
  font-size: 18px !important;
  line-height: 1.8 !important;
  margin: 22px 0 28px !important;
  white-space: pre-wrap !important;
}
#studentEssayInstructions p { margin: 0 0 14px !important; }
#studentEssayTitle { font-size: 27px !important; }
#studentEssayMeta { font-size: 15px !important; }
@media(max-width:700px){
  #studentEssayTheme,
  #studentEssayTheme p,
  #studentEssayTheme strong,
  #studentEssayInstructions,
  #studentEssayInstructions p,
  #studentEssayInstructions div,
  #studentEssayInstructions span,
  #studentEssayInstructions li {
    font-size: 17px !important;
    line-height: 1.7 !important;
  }
}

    /* Ajuste responsivo para notebooks: mantém foto à esquerda e filtros à direita,
       mas reduz proporções para telas comuns de 1280–1440 px. */
    @media (min-width: 1051px) and (max-width: 1450px) {
      #mainContent:has(.study-column.sim-view-active) {
        width: min(1260px, 94vw) !important;
        max-width: 1260px !important;
        margin: 26px auto 38px !important;
      }
      .study-column.sim-view-active .sim-filter-layout {
        grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
        gap: 18px !important;
      }
      .study-column.sim-view-active .sim-photo-panel {
        min-height: 500px !important;
        max-height: 590px !important;
        border-width: 8px !important;
        border-radius: 22px !important;
      }
      .study-column.sim-view-active .sim-photo-panel img {
        min-height: 500px !important;
        max-height: 590px !important;
      }
      .study-column.sim-view-active .sim-filter-card {
        padding: clamp(20px, 2vw, 30px) !important;
        border-radius: 22px !important;
      }
      .study-column.sim-view-active .sim-filter-heading {
        margin-bottom: 20px !important;
      }
      .study-column.sim-view-active .sim-filter-heading h2 {
        font-size: clamp(25px, 2.1vw, 31px) !important;
      }
      .study-column.sim-view-active .sim-filter-grid {
        gap: 16px 18px !important;
      }
      .study-column.sim-view-active .sim-field {
        font-size: 14px !important;
      }
      .study-column.sim-view-active .sim-field select,
      .study-column.sim-view-active .sim-field input {
        height: 44px !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
        font-size: 14px !important;
      }
      .study-column.sim-view-active .sim-filter-notice {
        margin-top: 18px !important;
      }
      .study-column.sim-view-active .sim-filter-submit {
        margin-top: 20px !important;
      }
    }

    /* Em notebooks menores e janelas estreitas, empilha a imagem sem apertar os filtros. */
    @media (min-width: 701px) and (max-width: 1150px) {
      #mainContent:has(.study-column.sim-view-active) {
        width: min(900px, 94vw) !important;
      }
      .study-column.sim-view-active .sim-filter-layout {
        grid-template-columns: minmax(0, 1fr) !important;
      }
      .study-column.sim-view-active .sim-photo-panel {
        min-height: 320px !important;
        max-height: 390px !important;
      }
      .study-column.sim-view-active .sim-photo-panel img {
        min-height: 320px !important;
        max-height: 390px !important;
      }
      .study-column.sim-view-active .sim-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    @media (max-width: 700px) {
      .study-column.sim-view-active .sim-filter-card {
        padding: 20px 16px !important;
      }
      .study-column.sim-view-active .sim-filter-grid {
        grid-template-columns: minmax(0, 1fr) !important;
      }
      .study-column.sim-view-active .sim-filter-limits-row {
        grid-template-columns: minmax(0, 1fr) !important;
      }
      .study-column.sim-view-active .sim-filter-limits-row .sim-inline-control {
        flex-wrap: wrap !important;
      }
      .study-column.sim-view-active .sim-filter-limits-row .sim-inline-control input {
        max-width: 100% !important;
      }
    }


    /* Controle para mostrar/ocultar a senha na tela de autenticação. */
    .password-wrapper {
      position: relative;
      width: 100%;
    }
    .password-wrapper input {
      width: 100%;
      padding-right: 52px !important;
    }
    .password-toggle {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      margin: 0;
      padding: 0;
      border: 0 !important;
      border-radius: 8px;
      background: transparent !important;
      color: #647993 !important;
      box-shadow: none !important;
      font-size: 17px;
      cursor: pointer;
    }
    .password-toggle:hover {
      color: #2463ad !important;
      background: #edf4fc !important;
      transform: translateY(-50%);
    }
    .password-toggle:focus-visible {
      outline: 2px solid #70a5d9 !important;
      outline-offset: 2px;
    }


    /* Edição de concursos */
    .contest-actions { display:flex; gap:8px; flex-wrap:wrap; }
    .contest-edit-form { margin-top:18px; padding:18px; border:1px solid var(--line, #d8e3f1); border-radius:12px; background:var(--card, #fff); }
    .contest-edit-form h3 { margin:0 0 14px; }
    .contest-edit-form .form-grid { margin-bottom:12px; }
    .contest-edit-form .contest-edit-buttons { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
    .contest-list-item { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--line, #e3eaf3); }
    .contest-list-item:last-child { border-bottom:0; }
    .contest-list-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
    .contest-list-info small { color:var(--muted, #64748b); }
    @media (max-width:640px) { .contest-list-item { align-items:flex-start; flex-direction:column; } }


    .essay-ai-disclaimer {
      margin: 0 0 22px;
      padding: 16px 18px;
      border: 2px solid #d97706;
      border-left-width: 6px;
      border-radius: 10px;
      background: #fff7e6;
      color: #713f12;
      font-size: 16px;
      line-height: 1.6;
    }
    .essay-ai-disclaimer strong { display:block; margin-bottom:6px; font-size:17px; }
    .essay-ai-disclaimer p { margin:0; }
    .essay-correction-readable { font-size:16px; line-height:1.75; }
    .essay-correction-readable h4 { margin:22px 0 10px; font-size:18px; }
    .essay-correction-readable p, .essay-correction-readable li { font-size:16px; line-height:1.75; }
    .essay-correction-readable ul { padding-left:24px; }
    .essay-history-action {
      display:inline-flex; align-items:center; justify-content:center;
      min-width:190px; padding:12px 22px; border:1px solid #b9d0eb;
      border-radius:9px; background:#fff; color:#174477;
      font-size:15px; font-weight:700; text-decoration:none; cursor:pointer;
      box-shadow:0 2px 6px rgba(15,45,80,.08);
    }
    .essay-history-action:hover { background:#edf5ff; border-color:#7eaddf; }

    /* Etapa 7 — dashboard do estudante */
    .sp-dashboard{width:100%;display:grid;gap:18px;margin:18px 0 28px}
    .sp-dash-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
    .sp-dash-head h2{margin:0;color:var(--brand-strong);font-size:clamp(24px,3vw,32px)}
    .sp-dash-head p{margin:6px 0 0;color:var(--muted)}
    .sp-dash-actions{display:flex;gap:9px;flex-wrap:wrap}
    .sp-dash-actions button,.sp-goal-form button{border:1px solid #cbd9ea;background:#fff;color:#17457a;border-radius:9px;padding:10px 14px;font-weight:700}
    .sp-dash-actions button:first-child{background:#173b70;color:#fff;border-color:#173b70}
    .sp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .sp-kpi,.sp-chart-card,.sp-goal-card{background:var(--surface,#fff);border:1px solid var(--line,#e1e8f2);border-radius:14px;padding:17px;min-width:0;box-shadow:0 5px 18px #173b7008}
    .sp-kpi small{display:block;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
    .sp-kpi strong{display:block;font-size:clamp(24px,3vw,32px);color:var(--brand-strong);margin:8px 0 2px}
    .sp-kpi span{font-size:12px;color:var(--muted)}
    .sp-dash-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
    .sp-chart-card h3,.sp-goal-card h3{margin:0 0 6px;color:var(--brand-strong);font-size:19px}
    .sp-chart-card p,.sp-goal-card p{margin:0 0 14px;color:var(--muted);font-size:14px}
    .sp-chart{width:100%;min-height:350px;height:350px;overflow:visible}\n    .sp-chart svg{width:100%;height:350px;display:block}
    .sp-chart svg{width:100%;height:350px;display:block}
    .sp-empty{padding:28px 10px;text-align:center;color:var(--muted);font-size:13px;background:#f8fafc;border-radius:10px}
    .sp-goals{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:14px}
    .sp-goal-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
    .sp-goal-form label{margin:0 0 6px;font-size:12px;color:var(--muted)}
    .sp-goal-form input{padding:10px;font-size:14px}
    .sp-goal-form button{grid-column:1/-1;background:#173b70;color:white;border-color:#173b70}
    .sp-progress-list{display:grid;gap:12px}
    .sp-progress-row{display:grid;gap:5px}
    .sp-progress-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
    .sp-progress-track{height:9px;background:#e9eff7;border-radius:99px;overflow:hidden}
    .sp-progress-fill{height:100%;background:#397fc2;border-radius:99px;max-width:100%}
    .sp-dash-status{min-height:18px;font-size:12px;color:var(--muted)}
    @media(max-width:760px){.sp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-dash-grid,.sp-goals{grid-template-columns:1fr}}
    @media(max-width:460px){.sp-kpis{grid-template-columns:1fr 1fr;gap:8px}.sp-kpi{padding:13px}.sp-goal-form{grid-template-columns:1fr}.sp-goal-form button{grid-column:auto}}



/* ===== BraboSimulados: layout de boas-vindas + dashboard em largura total ===== */
#userArea {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:clamp(18px,2.4vw,28px) !important;
  width:100% !important;
  align-items:stretch !important;
}
#userArea > .welcome-column {
  display:grid !important;
  grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:clamp(24px,4vw,58px);
  row-gap:10px;
  padding:clamp(20px,2.8vw,34px) clamp(22px,3.2vw,42px) !important;
  margin:0 !important;
  border:1px solid #dce8f7;
  border-radius:22px;
  background:linear-gradient(115deg,#ffffff 0%,#f5f9ff 58%,#edf5ff 100%);
  box-shadow:0 14px 38px rgba(23,59,112,.08);
}
#userArea > .welcome-column h1 {
  grid-column:1;
  grid-row:1;
  align-self:end;
  font-size:clamp(25px,2.5vw,34px) !important;
  line-height:1.15 !important;
  letter-spacing:-.7px !important;
  margin:0 0 8px !important;
  color:#173b70 !important;
}
#userArea > .welcome-column .welcome-message {
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  max-width:850px !important;
  margin:0 !important;
  font-size:clamp(14px,1.05vw,16px) !important;
  line-height:1.8 !important;
  color:#60758f !important;
}
#userArea > .welcome-column .welcome-cta {
  grid-column:1;
  grid-row:2;
  justify-self:start;
  align-self:start;
  margin:0 !important;
}
#userArea > #studyColumn {
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#userArea > #studyColumn > #studentArea {
  width:100% !important;
  margin:0 !important;
}
#studentDashboard.sp-dashboard {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  gap:22px !important;
}
#studentDashboard .sp-dash-head {
  padding:clamp(22px,3vw,34px);
  border:1px solid #dce8f7;
  border-radius:20px;
  background:linear-gradient(110deg,#ffffff,#f6f9ff);
  box-shadow:0 12px 34px rgba(23,59,112,.06);
}
#studentDashboard .sp-kpis {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
}
#studentDashboard .sp-chart-card {
  min-width:0;
  min-height:360px !important;
  padding:24px !important;
}
#studentDashboard .sp-chart {
  min-height:275px !important;
  height:275px !important;
}
#studentDashboard .sp-goals {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:18px !important;
}
@media(max-width:760px) {
  #userArea > .welcome-column {
    grid-template-columns:1fr;
    row-gap:12px;
    padding:22px !important;
  }
  #userArea > .welcome-column h1,
  #userArea > .welcome-column .welcome-message,
  #userArea > .welcome-column .welcome-cta {
    grid-column:1;
    grid-row:auto;
  }
  #userArea > .welcome-column h1 { font-size:28px !important; }
  #studentDashboard .sp-kpis { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #studentDashboard .sp-goals { grid-template-columns:1fr !important; }
  #studentDashboard .sp-chart-card { min-height:320px !important; padding:18px !important; }
  #studentDashboard .sp-chart { min-height:235px !important; height:235px !important; }
}
@media(max-width:430px) {
  #studentDashboard .sp-kpis { grid-template-columns:1fr !important; }
}

/* ===== Modo noturno: contraste consistente em toda a plataforma ===== */
body.site-dark {
  --brand:#9fc9f2;
  --brand-strong:#d7e8fb;
  --text:#edf3fa;
  --muted:#aebed0;
}
body.site-dark #userArea > .welcome-column,
body.site-dark #studentDashboard .sp-dash-head,
body.site-dark #studentDashboard .sp-kpi,
body.site-dark #studentDashboard .sp-chart-card,
body.site-dark #studentDashboard .sp-goal-card {
  background:linear-gradient(135deg,#142235,#101b2a) !important;
  border-color:#2b425c !important;
  color:#edf3fa !important;
  box-shadow:0 14px 34px rgba(0,0,0,.18) !important;
}
body.site-dark #userArea > .welcome-column h1,
body.site-dark #studentDashboard h2,
body.site-dark #studentDashboard h3,
body.site-dark #studentDashboard .sp-kpi strong,
body.site-dark #userArea > .welcome-column .welcome-message strong {
  color:#edf4fc !important;
}
body.site-dark #userArea > .welcome-column .welcome-message,
body.site-dark #studentDashboard p,
body.site-dark #studentDashboard .sp-kpi small,
body.site-dark #studentDashboard .sp-kpi span,
body.site-dark #studentDashboard label,
body.site-dark #studentDashboard .sp-goal-card,
body.site-dark #studentDashboard .sp-goal-card span {
  color:#b8c8da !important;
}
body.site-dark #studentDashboard a,
body.site-dark #studentDashboard .sp-chart-label,
body.site-dark #studentDashboard .sp-chart text {
  color:#a9d0f7 !important;
  fill:#c3dafa !important;
}
body.site-dark #studentDashboard input,
body.site-dark #studentDashboard select {
  background:#0c1724 !important;
  color:#edf4fb !important;
  border-color:#35516c !important;
}
body.site-dark #studentDashboard .sp-progress-track,
body.site-dark #studentDashboard .sp-goal-progress {
  background:#26394e !important;
}
body.site-dark #userArea > .welcome-column .welcome-cta {
  background:#1a3858 !important;
  color:#eaf3fc !important;
  border-color:#456789 !important;
}



/* ===== Identidade visual acolhedora, vibrante e inclusiva ===== */
#userArea > .welcome-column {
  position:relative;
  overflow:hidden;
  grid-template-rows:auto !important;
  grid-template-columns:minmax(230px,.68fr) minmax(0,1.32fr) !important;
  padding:clamp(25px,3.2vw,42px) clamp(26px,4vw,54px) !important;
  min-height:174px;
  background:
    radial-gradient(circle at 94% 8%,rgba(255,196,112,.30),transparent 23%),
    radial-gradient(circle at 5% 100%,rgba(93,190,202,.20),transparent 28%),
    linear-gradient(115deg,#fff9ef 0%,#f4f8ff 48%,#f1f0ff 100%) !important;
  border:1px solid #e2e8fb !important;
  box-shadow:0 18px 42px rgba(61,82,150,.10) !important;
}
#userArea > .welcome-column::after {
  content:"✦";
  position:absolute;
  right:clamp(18px,3vw,42px);
  top:8px;
  color:#f4b85c;
  font-size:36px;
  opacity:.75;
  pointer-events:none;
}
#userArea > .welcome-column h1 {
  grid-column:1 !important;
  grid-row:1 !important;
  align-self:center !important;
  font-size:clamp(25px,2.8vw,37px) !important;
  line-height:1.16 !important;
  letter-spacing:-1px !important;
  margin:0 !important;
  max-width:330px;
  color:#24477f !important;
}
#userArea > .welcome-column .welcome-message {
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:center !important;
  margin:0 !important;
  max-width:900px !important;
  padding:4px 36px 4px 0;
  font-size:clamp(14px,1.08vw,16px) !important;
  line-height:1.85 !important;
  color:#536b8c !important;
}
#userArea > .welcome-column .welcome-cta { display:none !important; }

/* O painel tem cores alegres, mas sem perder legibilidade ou aparência profissional. */
#studentDashboard.sp-dashboard { gap:20px !important; }
#studentDashboard .sp-dash-head {
  position:relative;
  overflow:hidden;
  border:0 !important;
  border-radius:22px !important;
  background:linear-gradient(112deg,#244b87 0%,#347fc0 54%,#5a78c8 100%) !important;
  color:#fff !important;
  box-shadow:0 16px 34px rgba(42,91,160,.20) !important;
}
#studentDashboard .sp-dash-head::after {
  content:"✦";
  position:absolute;
  right:28px;
  top:-26px;
  font-size:112px;
  line-height:1;
  color:rgba(255,255,255,.10);
  pointer-events:none;
}
#studentDashboard .sp-dash-head h2,
#studentDashboard .sp-dash-head p { color:#fff !important; }
#studentDashboard .sp-dash-head p { opacity:.88; }
#studentDashboard .sp-dash-actions { position:relative; z-index:1; }
#studentDashboard .sp-dash-actions button {
  border-radius:11px !important;
  border:1px solid rgba(255,255,255,.55) !important;
  background:#fff !important;
  color:#244b87 !important;
  box-shadow:0 4px 12px rgba(10,35,75,.10);
}
#studentDashboard .sp-dash-actions button:first-child {
  background:#ffd36e !important;
  color:#4a3b19 !important;
  border-color:#ffd36e !important;
}
#studentDashboard .sp-kpi {
  position:relative;
  overflow:hidden;
  border-radius:17px !important;
  padding:20px !important;
  border:1px solid #e5eaf5 !important;
  background:linear-gradient(145deg,#fff 0%,#fbfcff 100%) !important;
  box-shadow:0 8px 22px rgba(38,70,125,.055) !important;
  transition:transform .18s ease,box-shadow .18s ease;
}
#studentDashboard .sp-kpi:hover {
  transform:translateY(-3px);
  box-shadow:0 13px 27px rgba(38,70,125,.11) !important;
}
#studentDashboard .sp-kpi::before {
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:5px;
  background:#55a6c8;
}
#studentDashboard .sp-kpi:nth-child(3n+2)::before { background:#8b79d6; }
#studentDashboard .sp-kpi:nth-child(3n)::before { background:#f0b45e; }
#studentDashboard .sp-kpi:nth-child(4n)::before { background:#5bb69a; }
#studentDashboard .sp-kpi strong { color:#244b87 !important; }
#studentDashboard .sp-chart-card,
#studentDashboard .sp-goal-card {
  border-radius:19px !important;
  border:1px solid #e2e9f5 !important;
  padding:clamp(20px,2.3vw,28px) !important;
  background:linear-gradient(145deg,#fff 0%,#fcfdff 100%) !important;
  box-shadow:0 9px 25px rgba(38,70,125,.055) !important;
}
#studentDashboard .sp-chart-card h3,
#studentDashboard .sp-goal-card h3 { color:#244b87 !important; }
#studentDashboard .sp-chart-card p,
#studentDashboard .sp-goal-card p { color:#6a7d99 !important; }
#studentDashboard .sp-chart {
  width:100% !important;
  min-width:0 !important;
  height:340px !important;
  min-height:340px !important;
  overflow:hidden !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
#studentDashboard .sp-chart svg {
  display:block;
  max-width:100%;
  overflow:visible;
}
/* O donut usa SVG com width=150 no HTML, mas estilos globais ampliavam para 100%.
   Mantemos um tamanho controlado e centralizado dentro do cartão. */
#studentDashboard #dashAccuracyChart > div {
  width:100% !important;
  min-width:0 !important;
  min-height:300px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:clamp(22px,4vw,48px) !important;
  flex-wrap:wrap;
  overflow:hidden;
}
#studentDashboard #dashAccuracyChart svg {
  width:clamp(190px,22vw,250px) !important;
  height:auto !important;
  max-width:48% !important;
  flex:0 1 250px;
}
#studentDashboard #dashAccuracyChart > div > div {
  font-size:15px !important;
  line-height:2.1 !important;
}
#studentDashboard .sp-empty {
  width:100%;
  border:1px dashed #cbd9ed;
  background:linear-gradient(135deg,#f6faff,#fbf8ff) !important;
  color:#71839b !important;
  border-radius:14px !important;
  padding:38px 18px !important;
}
#studentDashboard .sp-progress-track { background:#eaf0f8 !important; }
#studentDashboard .sp-progress-fill {
  background:linear-gradient(90deg,#49a6c4,#6c83d5) !important;
}
#studentDashboard .sp-goal-form button {
  border-radius:11px !important;
  background:linear-gradient(100deg,#2d6eaa,#526fc1) !important;
  border:0 !important;
  box-shadow:0 5px 14px rgba(45,110,170,.18);
}
@media(max-width:760px) {
  #userArea > .welcome-column {
    grid-template-columns:1fr !important;
    min-height:0;
    row-gap:12px;
  }
  #userArea > .welcome-column h1,
  #userArea > .welcome-column .welcome-message {
    grid-column:1 !important;
    grid-row:auto !important;
  }
  #userArea > .welcome-column .welcome-message { padding:0 24px 0 0; }
  #studentDashboard .sp-chart { height:290px !important; min-height:290px !important; }
  #studentDashboard #dashAccuracyChart > div { gap:12px !important; }
  #studentDashboard #dashAccuracyChart svg { max-width:65% !important; }
}

/* Modo noturno: mesma personalidade visual, com cores confortáveis. */
body.site-dark #userArea > .welcome-column {
  background:
    radial-gradient(circle at 94% 8%,rgba(224,171,86,.12),transparent 23%),
    radial-gradient(circle at 5% 100%,rgba(74,166,184,.12),transparent 28%),
    linear-gradient(115deg,#17263a 0%,#18283d 52%,#20253d 100%) !important;
  border-color:#304660 !important;
}
body.site-dark #userArea > .welcome-column h1 { color:#e7f0fb !important; }
body.site-dark #userArea > .welcome-column .welcome-message,
body.site-dark #userArea > .welcome-column .welcome-message strong { color:#bdcde0 !important; }
body.site-dark #studentDashboard .sp-kpi,
body.site-dark #studentDashboard .sp-chart-card,
body.site-dark #studentDashboard .sp-goal-card {
  background:linear-gradient(145deg,#17263a 0%,#1b2b40 100%) !important;
  border-color:#304660 !important;
}
body.site-dark #studentDashboard .sp-kpi strong,
body.site-dark #studentDashboard .sp-chart-card h3,
body.site-dark #studentDashboard .sp-goal-card h3 { color:#e5effb !important; }
body.site-dark #studentDashboard .sp-kpi small,
body.site-dark #studentDashboard .sp-kpi span,
body.site-dark #studentDashboard .sp-chart-card p,
body.site-dark #studentDashboard .sp-goal-card p { color:#b7c8dc !important; }
body.site-dark #studentDashboard #dashAccuracyChart > div > div { color:#b7c8dc !important; }
body.site-dark #studentDashboard .sp-empty {
  background:#1c2d43 !important;
  border-color:#3b5572 !important;
  color:#c0d0e3 !important;
}



/* ===== Layout analítico inspirado diretamente no painel de referência ===== */
#studentDashboard.sp-dashboard {
  display:grid !important;
  grid-template-columns:minmax(190px,.72fr) minmax(0,3fr) !important;
  grid-template-areas:
    "head head"
    "kpis charts"
    "goals goals"
    "status status";
  gap:15px !important;
  align-items:stretch;
}
#studentDashboard > .sp-dash-head { grid-area:head; }
#studentDashboard > .sp-kpis {
  grid-area:kpis;
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-auto-rows:minmax(80px,1fr);
  align-content:stretch;
  gap:9px !important;
}
#studentDashboard > .sp-dash-grid {
  grid-area:charts;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-rows:repeat(2,minmax(225px,auto));
  gap:12px !important;
  align-content:start;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card {
  min-width:0;
  min-height:225px !important;
  padding:15px !important;
  border-radius:12px !important;
  box-shadow:0 3px 12px rgba(30,60,110,.045) !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1) {
  grid-column:span 2;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(2),
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(3),
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4),
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) {
  grid-column:span 1;
}
#studentDashboard .sp-chart-card h3 {
  font-size:15px !important;
  margin-bottom:4px !important;
}
#studentDashboard .sp-chart-card p {
  font-size:11px !important;
  margin-bottom:8px !important;
  line-height:1.35 !important;
}
#studentDashboard .sp-chart {
  width:100% !important;
  height:175px !important;
  min-height:175px !important;
  overflow:hidden !important;
  display:flex;
  justify-content:center;
  align-items:center;
}
#studentDashboard .sp-chart svg {
  width:100% !important;
  height:175px !important;
  max-width:100%;
  display:block;
}
#studentDashboard #dashAccuracyChart > div {
  width:100% !important;
  min-height:170px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-evenly !important;
  gap:6px !important;
  flex-wrap:nowrap !important;
  padding:0 !important;
}
#studentDashboard #dashAccuracyChart svg {
  width:clamp(90px,9vw,125px) !important;
  height:auto !important;
  max-width:55% !important;
  flex:0 1 125px;
}
#studentDashboard #dashAccuracyChart > div > div {
  font-size:11px !important;
  line-height:1.8 !important;
}
#studentDashboard > .sp-goals {
  grid-area:goals;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}
#studentDashboard .sp-kpi {
  min-height:80px !important;
  padding:12px 12px 10px 15px !important;
  border-radius:11px !important;
  box-shadow:0 3px 12px rgba(30,60,110,.045) !important;
}
#studentDashboard .sp-kpi small {
  font-size:9px !important;
  letter-spacing:.04em;
}
#studentDashboard .sp-kpi strong {
  font-size:clamp(21px,2vw,27px) !important;
  margin:3px 0 0 !important;
}
#studentDashboard .sp-kpi span {
  font-size:10px !important;
  line-height:1.2;
}
#studentDashboard .sp-chart-card:nth-child(1) { border-top:3px solid #18b6a4 !important; }
#studentDashboard .sp-chart-card:nth-child(2) { border-top:3px solid #7b61d1 !important; }
#studentDashboard .sp-chart-card:nth-child(3) { border-top:3px solid #ff8b91 !important; }
#studentDashboard .sp-chart-card:nth-child(4) { border-top:3px solid #f0a43a !important; }
#studentDashboard .sp-chart-card:nth-child(5) { border-top:3px solid #328fd1 !important; }

@media(max-width:1050px) {
  #studentDashboard.sp-dashboard {
    grid-template-columns:minmax(160px,.65fr) minmax(0,2.2fr) !important;
  }
  #studentDashboard > .sp-dash-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:auto;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1) { grid-column:span 2; }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(n+2) { grid-column:span 1; }
}
@media(max-width:720px) {
  #studentDashboard.sp-dashboard {
    grid-template-columns:1fr !important;
    grid-template-areas:"head" "kpis" "charts" "goals" "status";
  }
  #studentDashboard > .sp-kpis {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:minmax(82px,auto);
  }
  #studentDashboard > .sp-dash-grid {
    grid-template-columns:1fr !important;
    grid-template-rows:auto;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(n) { grid-column:1 !important; }
  #studentDashboard .sp-chart { height:230px !important; min-height:230px !important; }
  #studentDashboard .sp-chart svg { height:230px !important; }
  #studentDashboard > .sp-goals { grid-template-columns:1fr !important; }
}
@media(max-width:420px) {
  #studentDashboard > .sp-kpis { grid-template-columns:1fr 1fr !important; }
  #studentDashboard #dashAccuracyChart > div { flex-wrap:wrap !important; }
}

/* Cores no tema escuro */
body.site-dark #studentDashboard .sp-chart-card:nth-child(1) { border-top-color:#39c6b3 !important; }
body.site-dark #studentDashboard .sp-chart-card:nth-child(2) { border-top-color:#a18be8 !important; }
body.site-dark #studentDashboard .sp-chart-card:nth-child(3) { border-top-color:#ff9da4 !important; }
body.site-dark #studentDashboard .sp-chart-card:nth-child(4) { border-top-color:#f4c16b !important; }
body.site-dark #studentDashboard .sp-chart-card:nth-child(5) { border-top-color:#69b7e8 !important; }



/* ===== Gráficos principais com formatos distintos e área maior ===== */
#studentDashboard > .sp-dash-grid {
  grid-template-rows:repeat(2,minmax(270px,auto)) !important;
  grid-auto-flow:row dense;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1),
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(2) {
  grid-column:span 2 !important;
  min-height:290px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(3),
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4),
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) {
  grid-column:span 1 !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1) {
  border-top-color:#18b6a4 !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(2) {
  border-top-color:#7b61d1 !important;
}
#studentDashboard #dashRecentChart,
#studentDashboard #dashTrendChart {
  height:235px !important;
  min-height:235px !important;
  width:100% !important;
}
#studentDashboard #dashRecentChart svg,
#studentDashboard #dashTrendChart svg {
  width:100% !important;
  height:235px !important;
  display:block;
}
@media(max-width:1050px) {
  #studentDashboard > .sp-dash-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:auto !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1),
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(2) {
    grid-column:span 2 !important;
  }
}
@media(max-width:720px) {
  #studentDashboard > .sp-dash-grid {
    grid-template-columns:1fr !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(n) {
    grid-column:1 !important;
  }
  #studentDashboard #dashRecentChart,
  #studentDashboard #dashTrendChart {
    height:250px !important;
    min-height:250px !important;
  }
  #studentDashboard #dashRecentChart svg,
  #studentDashboard #dashTrendChart svg {
    height:250px !important;
  }
}



/* ===== Correção da última linha do painel: eliminar espaço vazio ===== */
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) {
  grid-column: 1 / -1 !important;
  min-height: 210px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) #dashSubjectChart {
  width:100% !important;
  min-height:125px !important;
  height:auto !important;
  display:block !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) #dashSubjectChart > div {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  column-gap:30px !important;
  row-gap:16px !important;
}
@media(max-width:720px) {
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) {
    grid-column:1 !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) #dashSubjectChart > div {
    grid-template-columns:1fr !important;
  }
}



/* ===== Reorganização dos gráficos: evolução + matérias lado a lado ===== */
#studentDashboard > .sp-dash-grid {
  grid-template-columns:repeat(12,minmax(0,1fr)) !important;
  grid-template-rows:minmax(260px,auto) minmax(260px,auto) minmax(230px,auto) !important;
  grid-auto-flow:row !important;
}
/* Linha 1: simulados recentes em destaque e acertos x erros ao lado. */
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1) {
  grid-column:span 8 !important;
  grid-row:1;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(3) {
  grid-column:span 4 !important;
  grid-row:1;
}
/* Linha 2: evolução do desempenho e desempenho por matéria, metade para cada. */
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(2) {
  grid-column:span 6 !important;
  grid-row:2;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) {
  grid-column:span 6 !important;
  grid-row:2;
  min-height:260px !important;
}
/* Linha 3: evolução das redações ocupa toda a largura. */
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) {
  grid-column:1 / -1 !important;
  grid-row:3;
  min-height:230px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) #dashSubjectChart {
  min-height:150px !important;
  height:auto !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) #dashSubjectChart > div {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px 24px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart {
  height:175px !important;
  min-height:175px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart svg {
  height:175px !important;
}
@media(max-width:1050px) {
  #studentDashboard > .sp-dash-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:auto !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(1) {
    grid-column:span 2 !important;
    grid-row:auto;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(3),
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(2),
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) {
    grid-column:span 1 !important;
    grid-row:auto;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) {
    grid-column:span 2 !important;
    grid-row:auto;
  }
}
@media(max-width:720px) {
  #studentDashboard > .sp-dash-grid {
    grid-template-columns:1fr !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(n) {
    grid-column:1 !important;
    grid-row:auto !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(5) #dashSubjectChart > div {
    grid-template-columns:1fr !important;
  }
}



/* Evolução das redações em linha temporal horizontal, ocupando toda a faixa. */
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) {
  grid-column:1 / -1 !important;
  grid-row:3;
  min-height:285px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart {
  width:100% !important;
  height:220px !important;
  min-height:220px !important;
  display:flex;
  align-items:center;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart svg {
  width:100% !important;
  height:220px !important;
}
@media(max-width:720px) {
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) {
    min-height:260px !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart,
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart svg {
    height:205px !important;
    min-height:205px !important;
  }
}



/* Corrige a visibilidade do dashboard: o display:grid do layout não pode
   sobrescrever a classe .hidden durante a navegação entre telas. */
#studentDashboard.hidden {
  display: none !important;
}
#studentDashboard:not(.hidden) {
  display: grid !important;
}



/* Evolução das redações: barras horizontais para comparar notas com clareza. */
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) {
  grid-column:1 / -1 !important;
  grid-row:3;
  min-height:260px !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart {
  width:100% !important;
  height:auto !important;
  min-height:170px !important;
  display:block !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
#studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart svg {
  width:100% !important;
  min-width:520px;
  height:auto !important;
  display:block;
}
@media(max-width:720px) {
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) {
    min-height:230px !important;
  }
  #studentDashboard > .sp-dash-grid > .sp-chart-card:nth-child(4) #dashEssayChart {
    min-height:150px !important;
  }
}


    /* Ajuste responsivo da navegação e da área de filtros em telas médias. */
    @media (max-width: 1280px) {
      .site-header { flex-wrap: wrap; gap: 8px 14px; }
      .top-navigation { min-width: 0; max-width: 100%; flex-wrap: wrap; }
      .nav-link, .nav-logout { white-space: nowrap; }
      .sim-filter-layout { grid-template-columns: minmax(210px, .30fr) minmax(0, 1fr); gap: 20px; }
      .sim-filter-card { min-width: 0; }
    }
    @media (max-width: 900px) {
      .site-header { align-items: center; }
      .top-navigation { justify-content: flex-start; }
      .sim-filter-layout { grid-template-columns: 1fr; }
    }

/* BraboSimulados | landing page pública */
.site-header{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;min-height:78px;padding:8px clamp(18px,5vw,72px);background:rgba(255,255,255,.96);border-bottom:1px solid #e7edf5;box-shadow:0 4px 20px rgba(18,48,86,.06);backdrop-filter:blur(14px)}
.brand-lockup{display:flex;align-items:center}.brand-logo-image{display:block;width:245px;max-width:32vw;max-height:64px;object-fit:contain;object-position:left center}
.public-header-actions{display:flex;align-items:center;gap:10px}.header-login,.header-signup{width:auto;margin:0;padding:10px 19px;border-radius:9px;font-size:13px;font-weight:800}.header-login{color:#1d4778;background:#fff;border:1px solid #d6e0ed}.header-signup{color:#fff;background:#1d4778;border:1px solid #1d4778}.site-theme-toggle{width:34px;height:34px;margin:0 0 0 6px;padding:0;border:1px solid #e1e8f1;border-radius:50%;background:#f7f9fc;color:#526782;font-size:15px}.header-tagline{display:none!important}
body.auth-screen .marketing-landing{display:none}body.auth-screen #mainContent{display:block}body:not(.auth-screen):not(.app-screen) #mainContent{display:none}
.marketing-landing{overflow:clip;background:#f5f7fb;color:#18385f;font-family:inherit}
.bs-hero{position:relative;min-height:670px;display:flex;align-items:center;background:radial-gradient(ellipse at 80% 38%,#e5effc 0,transparent 40%),linear-gradient(120deg,#f7f9fc 0%,#eef4fb 100%);border-bottom:1px solid #e4ebf4}
.bs-hero-inner{width:min(1240px,88%);margin:0 auto;padding:75px 0 100px;display:grid;grid-template-columns:.88fr 1.12fr;align-items:center;gap:6%}
.bs-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#c16b2c;font-size:11px;font-weight:900;letter-spacing:1.65px;text-transform:uppercase}.bs-eyebrow i{width:7px;height:7px;border-radius:50%;background:#e28a3f;box-shadow:0 0 0 4px #f9e9dc}
.bs-hero h1{margin:22px 0 19px;color:#173b70;font-size:clamp(42px,5.2vw,67px);line-height:1.04;letter-spacing:-2.7px;font-weight:850}.bs-hero h1 span{color:#d77b35}
.bs-hero-copy>p{max-width:490px;margin:0;color:#60748e;font-size:17px;line-height:1.8}
.bs-hero-buttons{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:30px}
.bs-btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;width:auto;min-height:48px;margin:0;padding:13px 21px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:850;cursor:pointer;transition:transform .2s,box-shadow .2s}.bs-btn:hover{transform:translateY(-2px)}
.bs-btn-primary{border:1px solid #1d4778;background:linear-gradient(110deg,#183d70,#2d6fa9);color:#fff;box-shadow:0 9px 22px #1c477825}.bs-btn-primary b,.bs-btn-light b{font-size:18px}
.bs-btn-ghost{border:1px solid #d5dfeb;background:rgba(255,255,255,.7);color:#244b78}
.bs-hero-note{margin-top:24px;color:#71829a;font-size:11px}.bs-hero-note span{color:#d77b35;font-weight:900;margin-right:7px}
.bs-hero-media{position:relative;min-width:0;padding:22px 8px 30px}
.bs-image-shell{position:relative;overflow:hidden;padding:12px;border:1px solid #dce5f0;border-radius:15px;background:#fff;box-shadow:0 28px 65px rgba(23,59,112,.16)}
.bs-image-topline{height:31px;display:flex;align-items:center;gap:10px;padding:0 5px 9px;color:#7b8ca3;font-size:9px;letter-spacing:1px}.bs-image-topline>b{font-size:9px}.bs-window-dots{display:flex;gap:4px}.bs-window-dots i{width:6px;height:6px;border-radius:50%;background:#dce4ef}.bs-live{margin-left:auto;color:#d17a35;font-weight:900}
.bs-image-shell img{display:block;width:100%;height:auto;border:1px solid #e7edf5;border-radius:7px}
.bs-float-tag{position:absolute;right:-17px;bottom:5px;padding:13px 17px;border:1px solid #e2e9f2;border-radius:10px;background:#fff;box-shadow:0 12px 30px #173b701b}.bs-float-tag strong,.bs-float-tag small{display:block}.bs-float-tag strong{font-size:12px;color:#1b4779}.bs-float-tag small{margin-top:3px;color:#8493a7;font-size:10px}
.bs-scroll{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;color:#8292a7;text-decoration:none;font-size:9px;font-weight:850;letter-spacing:1.5px}.bs-scroll span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cdd9e7;border-radius:50%;color:#c97936;font-size:14px}
.bs-intro{padding:105px 0;background:#fff}.bs-intro-inner{width:min(1120px,86%);margin:auto;display:grid;grid-template-columns:1.4fr .6fr;gap:10%;align-items:center}.bs-section-copy h2,.bs-feature-copy h2,.bs-plans-heading h2,.bs-final h2{margin:18px 0;color:#173b70;font-size:clamp(34px,4.1vw,51px);line-height:1.1;letter-spacing:-1.7px}.bs-section-copy h2 em,.bs-feature-copy h2 em,.bs-plans-heading h2 em{color:#d77b35;font-style:normal}.bs-section-copy>p,.bs-feature-copy>p{max-width:680px;color:#667a94;font-size:15px;line-height:1.9}
.bs-mini-points{display:grid;gap:12px;margin-top:28px}.bs-mini-points>div{display:flex;align-items:center;gap:14px;color:#526985;font-size:13px}.bs-mini-points b{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#fff2e8;color:#c16b2c;font-size:11px}
.bs-intro-aside{position:relative;padding:29px 26px;border-left:3px solid #d77b35;background:#f7f9fc;border-radius:0 12px 12px 0}.bs-quote-mark{height:32px;color:#d77b35;font-family:Georgia,serif;font-size:55px;line-height:1}.bs-intro-aside p{color:#24466f;font-family:Georgia,serif;font-size:18px;line-height:1.6}.bs-intro-aside span{color:#a1adbd;font-size:9px;font-weight:900;letter-spacing:1.4px}
.bs-feature{padding:105px 0}.bs-feature-blue{background:#142f52;color:#fff}.bs-feature-light{background:#f3f6fa}.bs-feature-inner{width:min(1240px,88%);margin:auto;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:8%}.bs-feature-reverse{grid-template-columns:.95fr 1.05fr}.bs-feature-reverse .bs-feature-copy{order:1}.bs-feature-reverse .bs-feature-media{order:2}
.bs-feature-blue .bs-eyebrow-light,.bs-final .bs-eyebrow-light{color:#f0a15e}.bs-feature-blue .bs-feature-copy h2{color:#fff}.bs-feature-blue .bs-feature-copy h2 em{color:#f0a15e}.bs-feature-blue .bs-feature-copy>p{color:#c2d0e0}
.bs-feature-copy h2{font-size:clamp(34px,4vw,49px)}.bs-check-list{display:grid;gap:13px;margin:25px 0 30px;padding:0;list-style:none}.bs-check-list li{position:relative;padding-left:27px;color:#c9d5e4;font-size:13px;line-height:1.6}.bs-check-list li:before{content:"✓";position:absolute;left:0;top:0;color:#f0a15e;font-weight:900}.bs-btn-light{border:1px solid #f0a15e;background:#f0a15e;color:#17375f;box-shadow:0 10px 25px #071b3325}
.bs-feature-light .bs-feature-copy>p{color:#667a94}.bs-feature-light .bs-feature-copy h2{color:#173b70}
.bs-sticky{position:sticky;top:112px;align-self:center;min-width:0}.bs-screen-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;color:#a9bdd4;font-size:9px;font-weight:900;letter-spacing:1.3px}.bs-screen-label b{color:inherit;font-size:11px;letter-spacing:0}
.bs-screen-frame{overflow:hidden;padding:10px;border:1px solid #dbe5f1;border-radius:12px;background:#fff;box-shadow:0 24px 60px #071b3338}.bs-screen-frame img{display:block;width:100%;height:auto;border-radius:5px}.bs-question-frame{padding:11px}.bs-feature-blue .bs-screen-label{color:#b6c7dc}.bs-image-caption{display:flex;align-items:center;gap:7px;margin-top:11px;color:#91a4bb;font-size:10px}.bs-caption-dot{width:6px;height:6px;border-radius:50%;background:#dc8a47}
.bs-resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px}.bs-resource-grid article{display:flex;gap:11px;align-items:flex-start;padding:14px;border:1px solid #e0e8f2;border-radius:10px;background:#fff}.bs-resource-grid article>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:8px;background:#fff0e4;color:#c16b2c;font-size:15px}.bs-resource-grid b,.bs-resource-grid small{display:block}.bs-resource-grid b{color:#24466f;font-size:11px}.bs-resource-grid small{margin-top:5px;color:#788aa1;font-size:10px;line-height:1.5}
.bs-history-frame{position:relative;z-index:2}.bs-stats-frame{width:77%;margin:-22px 0 0 auto;position:relative;z-index:1;box-shadow:0 15px 40px #173b7022}.bs-feature-light .bs-screen-label{color:#8799af}
.bs-plans{padding:105px 6%;background:#fff}.bs-plans-heading{max-width:720px;margin:0 auto 43px;text-align:center}.bs-plans-heading h2{font-size:clamp(36px,4.3vw,52px)}.bs-plans-heading p{color:#6b7e96;font-size:14px;line-height:1.8}
.bs-plan-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:850px;margin:auto}.bs-plan-card{padding:31px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 14px 35px #173b700b}.bs-plan-featured{border-color:#e7c19f;background:linear-gradient(145deg,#fff,#fff8f1)}.bs-plan-overline{color:#c16b2c;font-size:9px;font-weight:900;letter-spacing:1.5px}.bs-plan-card h3{margin:12px 0;color:#173b70;font-size:26px}.bs-plan-card p{min-height:62px;color:#71839a;font-size:13px;line-height:1.7}.bs-btn-full{width:100%;margin-top:12px}.bs-btn-outline{border:1px solid #d9a577;background:#fff;color:#9d5b27}.bs-plan-note{display:block;margin-top:19px;text-align:center;color:#9aa7b8;font-size:10px}
.bs-final{padding:86px 7%;text-align:center;background:linear-gradient(115deg,#142f52,#1d4778);color:#fff}.bs-final h2{margin:17px 0;color:#fff;font-size:clamp(38px,4.5vw,55px)}.bs-final h2 em{color:#f0a15e;font-style:normal}.bs-final p{margin:0 0 27px;color:#c5d2e1;font-size:14px}
.bs-footer{padding:32px 6% 20px;background:#0e2440;color:#b6c5d8;text-align:center}.bs-footer-brand{color:#fff;font-size:21px;font-weight:900;text-decoration:none;letter-spacing:-.6px}.bs-footer-brand span{color:#e58a48}.bs-footer>p{margin:5px 0 25px;color:#8fa3bb;font-size:11px}.bs-footer-bottom{display:flex;justify-content:space-between;gap:15px;max-width:1240px;margin:auto;padding-top:17px;border-top:1px solid #ffffff18}.bs-footer-bottom small,.bs-footer-bottom a{color:#8fa3bb;font-size:10px;text-decoration:none}
@media(max-width:900px){.bs-hero-inner{width:88%;grid-template-columns:1fr;gap:30px;padding:60px 0 90px}.bs-hero-copy{max-width:650px}.bs-hero-media{width:min(760px,100%);margin:auto}.bs-intro-inner{grid-template-columns:1fr;gap:30px}.bs-intro-aside{max-width:580px}.bs-feature-inner,.bs-feature-reverse{grid-template-columns:1fr;gap:42px}.bs-feature-reverse .bs-feature-copy,.bs-feature-reverse .bs-feature-media{order:initial}.bs-sticky{position:relative;top:auto;max-width:760px;width:100%;margin:auto}.bs-feature-copy{max-width:700px}.bs-feature{padding:80px 0}}
@media(max-width:650px){.site-header{min-height:66px;padding:7px 12px}.brand-logo-image{width:168px;max-width:42vw;max-height:48px}.public-header-actions{gap:5px}.header-login,.header-signup{padding:8px 10px;font-size:11px}.site-theme-toggle{width:29px;height:29px;margin-left:1px;font-size:13px}.bs-hero{min-height:unset}.bs-hero-inner{width:88%;padding:50px 0 85px}.bs-hero h1{font-size:43px;letter-spacing:-1.8px}.bs-hero-copy>p{font-size:14px}.bs-hero-buttons{gap:10px}.bs-btn{min-height:44px;padding:11px 14px;font-size:11px;gap:10px}.bs-hero-media{padding:12px 3px 25px}.bs-image-shell{padding:7px;border-radius:10px}.bs-image-topline{height:25px;font-size:7px}.bs-float-tag{right:-3px;padding:9px 12px}.bs-float-tag strong{font-size:10px}.bs-float-tag small{font-size:9px}.bs-scroll{bottom:17px}.bs-intro,.bs-feature,.bs-plans{padding:70px 0}.bs-intro-inner,.bs-feature-inner{width:88%}.bs-section-copy h2,.bs-feature-copy h2{font-size:34px;letter-spacing:-1px}.bs-section-copy>p,.bs-feature-copy>p{font-size:13px}.bs-resource-grid{grid-template-columns:1fr}.bs-plan-cards{grid-template-columns:1fr}.bs-plan-card{padding:24px}.bs-plan-card p{min-height:unset}.bs-plans-heading h2{font-size:36px}.bs-final{padding:68px 6%}.bs-footer-bottom{flex-direction:column;align-items:center}.bs-screen-label{font-size:8px}.bs-screen-label b{font-size:9px}}
@media(prefers-reduced-motion:no-preference){.bs-image-shell,.bs-screen-frame{transition:transform .35s ease,box-shadow .35s ease}.bs-hero-media:hover .bs-image-shell,.bs-feature-media:hover .bs-screen-frame{transform:translateY(-4px)}}


.bs-footer{padding:28px 6% 18px;background:#0e2440;color:#b6c5d8;text-align:center}
.bs-footer-main{max-width:1240px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;gap:34px;min-height:78px}
.bs-footer-logo{display:flex;align-items:center;justify-content:center;max-width:min(390px,58vw);height:76px;overflow:hidden}
.bs-footer-logo img{display:block;width:100%;max-width:390px;max-height:76px;object-fit:contain;object-position:center}
.bs-social-area{display:flex;flex-direction:column;align-items:center;gap:10px}
.bs-social-label{color:#91a6bf;font-size:9px;font-weight:850;letter-spacing:1.35px}
.bs-social-links{display:flex;align-items:center;gap:10px}
.bs-social-link{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff30;border-radius:50%;color:#fff;background:#ffffff0a;transition:background .2s,border-color .2s,transform .2s}
.bs-social-link svg{width:18px;height:18px}
.bs-social-link:hover{background:#d77b35;border-color:#d77b35;transform:translateY(-2px)}
.bs-footer-bottom{display:flex;justify-content:space-between;gap:15px;max-width:1240px;margin:auto;padding-top:16px;border-top:1px solid #ffffff18}
.bs-footer-bottom small,.bs-footer-bottom a{color:#8fa3bb;font-size:10px;text-decoration:none}
@media(max-width:600px){.bs-footer{padding:25px 5% 17px}.bs-footer-main{flex-direction:column;gap:15px;margin-bottom:17px}.bs-footer-logo{max-width:82vw;width:100%;height:68px}.bs-footer-logo img{max-height:68px}.bs-social-area{gap:8px}.bs-footer-bottom{flex-direction:column;align-items:center}}


/* Tela de autenticação pública: somente o cartão de login, mantendo o cabeçalho do site. */
body.auth-screen .marketing-landing{display:none!important}
body.auth-screen .site-header{display:flex!important}
body.auth-screen .public-header-actions{display:flex!important}
body.auth-screen .header-tagline{display:none!important}
#mainContent.public-auth{
  display:block!important;
  width:min(470px,calc(100% - 32px))!important;
  max-width:470px!important;
  margin:clamp(38px,7vh,76px) auto 80px!important;
  padding:0!important;
  grid-template-columns:1fr!important;
}
#mainContent.public-auth>.hero-presentation{display:none!important}
#mainContent.public-auth>.panel{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:clamp(26px,4vw,38px)!important;
  border:1px solid #e1e8f2!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 12px 40px #173b7010!important;
}
#mainContent.public-auth #userArea,
#mainContent.public-auth #adminArea,
#mainContent.public-auth #studentArea{display:none!important}
@media(max-width:600px){
  #mainContent.public-auth{width:calc(100% - 28px)!important;margin:28px auto 55px!important}
  #mainContent.public-auth>.panel{padding:24px 19px!important}
}


      .admin-users-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(190px,.55fr) auto;gap:12px;align-items:end;margin:18px 0 8px}
      .admin-users-filters label{display:block;margin:0;color:#334b6b;font-size:13px;font-weight:700}
      .admin-users-filters input,.admin-users-filters select{display:block;width:100%;margin-top:7px;min-height:43px;padding:10px 12px;border:1px solid #ccd8e8;border-radius:9px;background:#fff;color:#173b70;font:inherit}
      .admin-users-filters input:focus,.admin-users-filters select:focus{outline:2px solid #8bc4ff;border-color:#3976bf}
      .admin-users-clear{min-height:43px;margin:0;padding:9px 14px;border:1px solid #d7e2f0;border-radius:9px;text-decoration:none;white-space:nowrap}
      .admin-users-results-line{display:flex;justify-content:flex-end;min-height:24px;margin:5px 0}
      @media(max-width:680px){.admin-users-filters{grid-template-columns:1fr 1fr}.admin-users-search-label{grid-column:1/-1}.admin-users-clear{width:100%}}
      @media(max-width:420px){.admin-users-filters{grid-template-columns:1fr}.admin-users-search-label{grid-column:auto}}
      #adminUsersList{overflow-x:auto}
      .admin-users-table{width:100%;border-collapse:collapse;min-width:520px;background:#fff}
      .admin-users-table th,.admin-users-table td{padding:13px 14px;text-align:left;border-bottom:1px solid #e5edf7}
      .admin-users-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f7faff}
      .admin-users-table td{font-size:14px;color:#173b70}
      .admin-user-role{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#eaf2ff;color:#17457d;font-size:12px;font-weight:700}
      .admin-users-empty{padding:18px;color:#64748b}

/* Minha conta — layout de dados cadastrais */
#studentAccount.quiz-shell{background:#fff!important;color:#172b45!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:0!important}
#studentAccount .account-page-wrap{width:min(1240px,100%);margin:0 auto;padding:10px 18px 48px;background:#fff}
#studentAccount .account-breadcrumb{display:flex;align-items:center;gap:9px;margin:0 0 42px;color:#173b70;font-size:14px}
#studentAccount .account-breadcrumb button{border:0;background:none;padding:0;margin:0;width:auto;color:#173b70;font:inherit;cursor:pointer}
#studentAccount .account-breadcrumb button:hover{text-decoration:underline}
#studentAccount .account-breadcrumb span{font-size:22px;color:#173b70}
#studentAccount .account-breadcrumb strong{font-weight:500;color:#d73535}
#studentAccount .account-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:stretch}
#studentAccount .account-intro{border-right:1px solid #d9d9d9;padding:0 28px 24px 0;min-height:620px}
#studentAccount .account-intro h2{font-size:26px;line-height:1.2;margin:0 0 16px;color:#172b45}
#studentAccount .account-intro p{font-size:15px;line-height:1.45;color:#26384e;margin:0;max-width:235px}
#studentAccount .account-back{margin-top:28px;width:auto;padding:9px 13px}
#studentAccount .account-details{min-width:0;padding:0 0 20px 0}
#studentAccount .account-section{position:relative;padding:0 0 30px;margin:0 0 28px;border-bottom:1px solid #d9d9d9}
#studentAccount .account-section:last-child{border-bottom:0;margin-bottom:0}
#studentAccount .account-section h2{font-size:26px;line-height:1.25;color:#172b45;margin:0 0 24px;font-weight:700}
#studentAccount .account-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px 30px;padding-right:12px}
#studentAccount .account-field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#172b45;font-size:15px;overflow-wrap:anywhere}
#studentAccount .account-field strong{font-weight:700}
#studentAccount .account-field span{font-size:16px}
#studentAccount .account-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
#studentAccount .account-section-heading h2{margin-bottom:20px}
#studentAccount .account-edit-button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:82px;margin:0 0 0 10px;padding:7px 17px;border:1px solid #e33b3b;border-radius:20px;background:#fff;color:#d52d2d;font-size:13px;font-weight:500;cursor:pointer}
#studentAccount .account-edit-button:hover{background:#fff3f3}
#studentAccount .account-section>.account-edit-button{margin-top:18px}
#studentAccount .account-masked-password{font-size:16px;letter-spacing:2px;margin:0;color:#172b45}
#studentAccount .account-edit-form{max-width:560px;margin:18px 0 4px;padding:18px;background:#f8fafc;border:1px solid #e2e7ee;border-radius:10px}
#studentAccount .account-edit-form label{display:block;margin:10px 0 6px;font-size:14px;font-weight:650;color:#26384e}
#studentAccount .account-edit-form input{display:block;width:100%;min-height:43px;margin:0 0 12px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:7px!important;background:#fff}
#studentAccount .account-edit-form p{font-size:13px;line-height:1.45;margin:8px 0;color:#64748b}
#studentAccount .account-form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
#studentAccount .account-form-actions button{width:auto;margin:0;padding:10px 16px}
#studentAccount .account-fields-additional{grid-template-columns:repeat(3,minmax(0,1fr))}
#studentAccount .account-note{font-size:13px;color:#64748b;margin:22px 0 0}
#studentAccount .account-password-toggle{width:auto;margin:-5px 0 12px;padding:6px 12px;font-size:12px}
@media(max-width:760px){#studentAccount .account-layout{grid-template-columns:1fr;gap:24px}#studentAccount .account-intro{min-height:0;border-right:0;border-bottom:1px solid #d9d9d9;padding:0 0 20px}#studentAccount .account-intro p{max-width:520px}#studentAccount .account-back{margin-top:16px}#studentAccount .account-fields-additional{grid-template-columns:1fr 1fr}}
@media(max-width:480px){#studentAccount .account-page-wrap{padding:8px 12px 30px}#studentAccount .account-breadcrumb{margin-bottom:26px}#studentAccount .account-fields,#studentAccount .account-fields-additional{grid-template-columns:1fr;gap:16px}#studentAccount .account-section h2{font-size:23px}#studentAccount .account-section-heading{align-items:flex-start}#studentAccount .account-edit-button{min-width:74px;padding:7px 12px}}


    /* Minha Escola — resgate de código institucional */
    #studentSchool { width:100%; max-width:900px; margin:0 auto 28px; padding:clamp(22px,3vw,34px); }
    #studentSchool .admin-view-heading { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
    #studentSchool .admin-view-heading h2 { margin:0 0 5px; }
    #studentSchool .admin-view-heading p { margin:0; color:var(--muted); line-height:1.6; }
    #studentSchoolRedeemButton { width:100%; max-width:320px; }
    #studentSchoolBack { margin-top:10px; }

/* Minha Escola — painel integrado */
#studentSchool{width:100%;max-width:1180px;margin:0 auto 28px;padding:clamp(18px,2.5vw,30px)}
#studentSchool .school-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
#studentSchool .school-head-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,#e8f1ff,#dceaff);font-size:26px}
#studentSchool .school-head h2{margin:0 0 5px;font-size:25px}#studentSchool .school-head p{margin:0;color:var(--muted);line-height:1.5}
#studentSchool .school-membership{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:16px 18px;margin:18px 0;border:1px solid var(--border,#dce4ef);border-radius:13px;background:var(--surface-2,rgba(127,127,127,.07))}
#studentSchool .school-membership div{display:flex;flex-direction:column;gap:5px;min-width:0}#studentSchool .school-membership small{font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--muted)}#studentSchool .school-membership strong{font-size:14px;overflow-wrap:anywhere}
#studentSchool .school-redeem{max-width:720px;padding:18px;border:1px solid var(--border,#dce4ef);border-radius:13px;margin:18px 0}#studentSchool .school-redeem-row{display:flex;gap:10px;align-items:center}#studentSchool .school-redeem-row input{flex:1;min-width:0}#studentSchool .school-redeem-row button{width:auto;white-space:nowrap}
#studentSchool .school-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:22px 0}
#studentSchool .school-overview article{padding:17px 19px;border:1px solid var(--border,#dce4ef);border-radius:13px;background:var(--surface-2,rgba(127,127,127,.06));display:flex;flex-direction:column;gap:7px}
#studentSchool .school-overview span{font-size:13px;color:var(--muted)}#studentSchool .school-overview strong{font-size:27px;line-height:1.1}
#studentSchool .school-anchor-nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 14px}#studentSchool .school-anchor-nav a{padding:9px 15px;border:1px solid var(--border,#dce4ef);border-radius:999px;text-decoration:none;color:var(--text,#24364b);font-size:13px;font-weight:700}#studentSchool .school-anchor-nav a:hover{background:var(--surface-2,rgba(127,127,127,.08))}
#studentSchool .school-work-panel{padding:20px;margin:14px 0;border:1px solid var(--border,#dce4ef);border-radius:15px;scroll-margin-top:18px}
#studentSchool .school-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}#studentSchool .school-panel-heading h3{margin:0 0 4px;font-size:18px}#studentSchool .school-panel-heading p{margin:0;color:var(--muted);font-size:13px}#studentSchool .school-panel-heading button{width:auto;white-space:nowrap}
#studentSchool .school-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#studentSchool .school-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650}#studentSchool .school-form-grid input,#studentSchool .school-form-grid select{width:100%;min-width:0}#studentSchool .school-form-actions{display:flex;gap:9px;margin-top:14px;flex-wrap:wrap}#studentSchool .school-form-actions button{width:auto}
#studentSchool .school-feedback{font-size:13px;color:var(--muted);min-height:18px;margin:8px 0}#studentSchool .school-class-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#studentSchool .school-class-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--border,#dce4ef);border-radius:11px;min-width:0}#studentSchool .school-form-grid select{display:block;width:100%;height:44px;min-height:44px;line-height:1.2;padding:9px 12px;box-sizing:border-box;appearance:auto}#studentSchool #schoolClassQuantity{height:44px}#studentSchool .school-class-item{align-items:flex-start}#studentSchool .school-class-actions{justify-content:flex-end}#studentSchool .school-class-item strong{display:block;font-size:14px}#studentSchool .school-class-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}#studentSchool .school-class-actions{display:flex;gap:6px;flex-wrap:wrap}#studentSchool .school-class-actions button{width:auto;padding:7px 10px;font-size:12px;margin:0}#studentSchool .school-class-status{font-size:11px;font-weight:700;color:#16834a}#studentSchool .school-class-status.inactive{color:#a16207}#studentSchool .school-empty,#studentSchool .school-placeholder{padding:18px;border-radius:10px;background:var(--surface-2,rgba(127,127,127,.06));color:var(--muted);font-size:13px;line-height:1.6}
#studentSchool .school-student-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid var(--border,#dce4ef);border-radius:11px;min-width:0}#studentSchool .school-student-item strong{display:block;font-size:14px}#studentSchool .school-student-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}#studentSchool .school-student-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#studentSchool .school-student-actions select{min-width:150px;max-width:190px}#studentSchool .school-student-actions button{width:auto;margin:0;padding:8px 11px;font-size:12px}@media(max-width:560px){#studentSchool .school-student-item{align-items:flex-start;flex-direction:column}#studentSchool .school-student-actions,#studentSchool .school-student-actions select,#studentSchool .school-student-actions button{width:100%;max-width:none}}
@media(max-width:680px){#studentSchool .school-membership{grid-template-columns:1fr 1fr}#studentSchool .school-membership div:first-child{grid-column:1/-1}#studentSchool .school-overview{gap:8px}#studentSchool .school-overview article{padding:13px}#studentSchool .school-overview strong{font-size:23px}#studentSchool .school-class-list{grid-template-columns:1fr}#studentSchool .school-panel-heading{align-items:flex-start;flex-direction:column}#studentSchool .school-panel-heading button{width:100%}}
@media(max-width:480px){#studentSchool .school-redeem-row{align-items:stretch;flex-direction:column}#studentSchool .school-redeem-row button{width:100%}#studentSchool .school-form-grid{grid-template-columns:1fr}#studentSchool .school-overview span{font-size:11px}#studentSchool .school-overview strong{font-size:20px}}

    #authForm small.muted { display:block; margin:-7px 0 10px; font-size:12px; line-height:1.4; }
    #signupExtraGroup, #passwordConfirmGroup { width:100%; }
    #signupExtraGroup input, #passwordConfirmGroup input { width:100%; }

    .school-form-card{background:var(--surface,#fff);border:1px solid var(--line,#e1e8f2);border-radius:14px;padding:18px;margin-top:14px}
    .school-target-box{border:1px solid var(--line,#e1e8f2);border-radius:10px;padding:12px;min-width:0}
    .school-target-box legend{font-weight:700;padding:0 6px}
    .school-target-list{display:grid;gap:8px;max-height:190px;overflow:auto;padding:4px}
    .school-target-list label{display:flex;align-items:center;gap:8px;font-weight:400}
    .school-target-list input{width:auto}
      .school-activity-search{width:100%;margin:6px 0 10px;padding:9px 11px;border:1px solid var(--line,#e1e8f2);border-radius:9px;background:var(--surface,#fff);color:var(--text,#243247)}
      .school-target-list label{padding:6px 8px;border-radius:8px;cursor:pointer}
      .school-target-list label:hover{background:var(--surface-soft,#f4f7fb)}
      .school-selection-count{font-size:12px;color:var(--muted,#66758a);margin:0 0 7px}


    /* Formulário de atividades: layout organizado e seleção múltipla */
    #schoolActivitiesPanel .school-activity-description{display:grid;grid-template-columns:1fr;gap:7px;margin-top:18px}
    #schoolActivitiesPanel .school-activity-description>label{font-weight:700;font-size:13px;color:var(--text,#243247)}
    #schoolActivitiesPanel .school-activity-description textarea{display:block;width:100%;min-height:112px;box-sizing:border-box;resize:vertical;padding:12px;border:1px solid var(--line,#d7e1ef);border-radius:10px;background:var(--surface,#fff);color:var(--text,#243247);font:inherit}
    #schoolActivitiesPanel .school-activity-target-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px;align-items:start}
    #schoolActivitiesPanel .school-target-box{min-width:0;margin:0;padding:14px;border:1px solid var(--line,#dce5f1);border-radius:12px;background:var(--surface,#fff)}
    #schoolActivitiesPanel .school-target-box legend{padding:0 7px;font-weight:750;color:var(--text,#243247)}
    #schoolActivitiesPanel .school-activity-search{display:block;width:100%;height:42px;box-sizing:border-box;margin:5px 0 9px;padding:9px 12px;border:1px solid var(--line,#cbd8e8);border-radius:9px;background:var(--surface,#fff);color:var(--text,#243247)}
    #schoolActivitiesPanel .school-selection-count{margin:0 0 8px;color:var(--muted,#64748b);font-size:12px}
    #schoolActivitiesPanel .school-target-list{display:grid;grid-template-columns:1fr;gap:7px;max-height:220px;overflow:auto;padding:2px}
    #schoolActivitiesPanel .school-target-list label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid var(--line,#e1e8f2);border-radius:9px;background:var(--surface,#fff);color:var(--text,#243247);font-size:13px;font-weight:500!important;text-align:left!important;cursor:pointer}
    #schoolActivitiesPanel .school-target-list label:hover{border-color:var(--primary,#3984d6);background:var(--surface-soft,#f4f8fd)}
    #schoolActivitiesPanel .school-target-list input[type=checkbox]{flex:0 0 17px;width:17px!important;height:17px;margin:0;accent-color:var(--primary,#2878c7)}
    #schoolActivitiesPanel .school-selected-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
    #schoolActivitiesPanel .school-selected-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 8px;border-radius:20px;background:var(--surface-soft,#edf4fc);border:1px solid var(--line,#d5e2f1);font-size:11px;color:var(--text,#243247)}
    #schoolActivitiesPanel .school-selected-chip span{overflow-wrap:anywhere}
    #schoolActivitiesPanel .school-selected-chip button{width:18px;height:18px;min-width:18px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted,#64748b);font-size:15px;line-height:1;cursor:pointer}
    #schoolActivitiesPanel .school-selected-chip button:hover{background:#dce8f6;color:#173b63}
    @media(max-width:950px){#schoolActivitiesPanel .school-activity-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:650px){#schoolActivitiesPanel .school-activity-target-grid{grid-template-columns:1fr}#schoolActivitiesPanel .school-form-card{padding:13px}}

    .school-muted{color:var(--muted,#64748b);font-size:.9rem}
    .school-activity-item{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:16px;border:1px solid var(--line,#e1e8f2);border-radius:12px;background:var(--surface,#fff)}
    .school-activity-item p{margin:6px 0;color:var(--muted,#64748b);white-space:pre-wrap}
    .school-activity-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:.85rem;color:var(--muted,#64748b)}
    .school-activity-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    @media(max-width:700px){.school-activity-item{flex-direction:column}.school-activity-actions{justify-content:flex-start}}

/* =========================================================
   BRABOSIMULADOS - TABELA DE INSTITUIÇÕES CADASTRADAS
   ========================================================= */
#panel-instituicoes-cadastradas .school-admin-card{padding:20px;border:1px solid #dce6f3;border-radius:14px;background:#fff;color:#173b70;box-shadow:0 5px 18px rgba(23,59,112,.05)}
.school-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}.school-admin-toolbar h3{margin:0 0 5px;color:#173b70;font-size:19px}.school-admin-toolbar p{margin:0}
.school-admin-filters{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,.55fr);gap:14px;margin-bottom:18px}.school-admin-filters label{display:grid;gap:7px;color:#173b70;font-size:12px;font-weight:750}.school-admin-filters input,.school-admin-filters select,.school-admin-length select{width:100%;min-height:40px;padding:9px 12px;border:1px solid #cbd9eb;border-radius:8px;background:#fff;color:#173b70;font:inherit}
.school-admin-length{display:flex;align-items:center;gap:8px;margin:14px 0;color:#52647a;font-size:13px}.school-admin-length select{width:auto;min-width:78px}.school-admin-status{margin:8px 0 12px}
.school-admin-table-wrap{width:100%;overflow-x:auto;border:1px solid #d4dfec;border-radius:9px}.school-admin-table{width:100%;min-width:1100px;border-collapse:collapse;background:#fff;color:#173b70;font-size:12px}.school-admin-table th{padding:13px 11px;background:#173b70;color:#fff;text-align:left;font-size:10px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;white-space:nowrap}.school-admin-table td{padding:13px 11px;border-bottom:1px solid #e1e8f2;color:#334b69;vertical-align:middle}.school-admin-table tbody tr:nth-child(even){background:#f5f8fc}.school-admin-table tbody tr:hover{background:#eaf2fc}.school-admin-table tbody tr:last-child td{border-bottom:0}.school-admin-id{color:#72849a;font-size:11px;font-weight:700}.school-admin-name{min-width:175px;color:#173b70!important;font-weight:750}.school-admin-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:20px;font-size:10px;font-weight:800;white-space:nowrap}.school-admin-badge.ativa{background:#dcfce7;color:#166534}.school-admin-badge.suspensa{background:#fff2d5;color:#9a5b00}.school-admin-badge.encerrada{background:#fee2e2;color:#991b1b}.school-admin-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.school-admin-actions button{width:31px;height:31px;min-width:31px;padding:0;border:1px solid #d5e1ef;border-radius:7px;background:#fff;color:#245b91;cursor:pointer;font-size:14px}.school-admin-actions button:hover{background:#eaf2fc;border-color:#347fc0}.school-admin-actions button.danger{color:#c03939}.school-admin-actions button.success{color:#16834a}.school-admin-empty{padding:32px!important;text-align:center;color:#7b8da3!important}.school-admin-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px;color:#52647a;font-size:12px}.school-admin-pagination{display:flex;gap:4px;align-items:center}.school-admin-pagination button{min-width:34px;height:34px;padding:0 9px;border:1px solid #d4dfec;border-radius:6px;background:#fff;color:#173b70;font-weight:700;cursor:pointer}.school-admin-pagination button.active{background:#2465a5;border-color:#2465a5;color:#fff}.school-admin-pagination button:disabled{opacity:.4;cursor:not-allowed}
body.site-dark #panel-instituicoes-cadastradas .school-admin-card{background:#111e2d!important;color:#eaf1f8!important;border-color:#2b4158!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-toolbar h3,body.site-dark #panel-instituicoes-cadastradas .school-admin-filters label{color:#eaf1f8!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-filters input,body.site-dark #panel-instituicoes-cadastradas .school-admin-filters select,body.site-dark #panel-instituicoes-cadastradas .school-admin-length select{background:#0c1724!important;color:#edf4fb!important;border-color:#35516c!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-length,body.site-dark #panel-instituicoes-cadastradas .school-admin-footer{color:#a9bacb!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-table-wrap{border-color:#2b4158!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-table{background:#111e2d!important;color:#eaf1f8!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-table th{background:#1b3c5b!important;color:#fff!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-table td{background:#111e2d!important;color:#d6e2ef!important;border-color:#2b4158!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-table tbody tr:nth-child(even) td{background:#172638!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-table tbody tr:hover td{background:#203b56!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-name{color:#eaf1f8!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-actions button,body.site-dark #panel-instituicoes-cadastradas .school-admin-pagination button{background:#142337!important;color:#dceeff!important;border-color:#35516c!important}body.site-dark #panel-instituicoes-cadastradas .school-admin-pagination button.active{background:#2465a5!important;color:#fff!important}
@media(max-width:700px){.school-admin-filters{grid-template-columns:1fr}#panel-instituicoes-cadastradas .school-admin-card{padding:13px}.school-admin-footer{align-items:flex-start;flex-direction:column}}


/* =========================================================
   V11 - CORREÇÃO REAL DO TEMA DA ADMINISTRAÇÃO
   Estas regras ficam no CSS PRINCIPAL da aplicação.
   ========================================================= */

/* Modo noturno: toda a estrutura administrativa, não só o fundo externo. */
body.site-dark #adminArea,
body.site-dark #adminArea .admin-shell,
body.site-dark #adminArea .admin-sidebar,
body.site-dark #adminArea .admin-content {
  background-color: #0b1522 !important;
  color: #eaf1f8 !important;
  border-color: #29425d !important;
}

body.site-dark #adminArea .admin-sidebar,
body.site-dark #adminArea .admin-content {
  background-color: #111e2d !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.22) !important;
}

body.site-dark #adminArea .admin-content {
  min-width: 0 !important;
}

body.site-dark #adminArea .admin-sidebar-title,
body.site-dark #adminArea .admin-menu-group > summary,
body.site-dark #adminArea .admin-menu-group > summary *,
body.site-dark #adminArea .admin-submenu button,
body.site-dark #adminArea .admin-content h1,
body.site-dark #adminArea .admin-content h2,
body.site-dark #adminArea .admin-content h3,
body.site-dark #adminArea .admin-content h4,
body.site-dark #adminArea .admin-content p,
body.site-dark #adminArea .admin-content label,
body.site-dark #adminArea .admin-content small,
body.site-dark #adminArea .admin-content span,
body.site-dark #adminArea .admin-content legend,
body.site-dark #adminArea .admin-content .muted {
  color: #e0eaf5 !important;
}

body.site-dark #adminArea .admin-menu-group,
body.site-dark #adminArea .admin-menu-group > summary,
body.site-dark #adminArea .admin-submenu {
  background: transparent !important;
  border-color: #29425d !important;
}

body.site-dark #adminArea .admin-submenu button:hover,
body.site-dark #adminArea .admin-menu-group > summary:hover {
  background: #1b3550 !important;
}

body.site-dark #adminArea .admin-submenu button.active {
  background: linear-gradient(110deg, #173b70, #2879bd) !important;
  color: #ffffff !important;
}

body.site-dark #adminArea .admin-content [data-admin-view],
body.site-dark #adminArea .admin-content .section-card,
body.site-dark #adminArea .admin-content .admin-panel,
body.site-dark #adminArea .admin-content .admin-card,
body.site-dark #adminArea .admin-content .school-admin-card,
body.site-dark #adminArea .admin-content .school-admin-toolbar,
body.site-dark #adminArea .admin-content .school-admin-filters,
body.site-dark #adminArea .admin-content .school-admin-table-wrap {
  background-color: #142337 !important;
  color: #eaf1f8 !important;
  border-color: #29425d !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.16) !important;
}

body.site-dark #adminArea .admin-content input:not([type="checkbox"]):not([type="radio"]),
body.site-dark #adminArea .admin-content select,
body.site-dark #adminArea .admin-content textarea {
  background-color: #0b1725 !important;
  color: #f1f6fc !important;
  border-color: #355574 !important;
  color-scheme: dark;
}

body.site-dark #adminArea .admin-content input::placeholder,
body.site-dark #adminArea .admin-content textarea::placeholder {
  color: #9db1c7 !important;
  opacity: 1 !important;
}

/* Cabeçalho da listagem Clientes / Instituições:
   azul-marinho forte com texto branco legível em ambos os temas. */
#adminArea #panel-instituicoes-cadastradas table thead,
#adminArea #panel-instituicoes-cadastradas table thead tr,
#adminArea #panel-instituicoes-cadastradas table thead th,
#adminArea #panel-instituicoes-cadastradas .school-admin-table thead,
#adminArea #panel-instituicoes-cadastradas .school-admin-table thead tr,
#adminArea #panel-instituicoes-cadastradas .school-admin-table thead th,
#panel-instituicoes-cadastradas table thead th,
#panel-instituicoes-cadastradas .school-admin-table thead th {
  background: #173b70 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  border-color: #315b89 !important;
  font-weight: 800 !important;
}

/* Reforço para que o tema escuro alcance a área de conteúdo mesmo
   quando a tela administrativa muda de posição no DOM. */
body.site-dark main.admin-mode,
body.site-dark main.admin-mode > section.panel,
body.site-dark main.admin-mode #userArea,
body.site-dark main.admin-mode #studyColumn {
  background-color: #0b1522 !important;
  color: #eaf1f8 !important;
  border-color: #29425d !important;
}



/* V13 - Busca de instituição por qualquer trecho do nome */
.contract-school-search-wrap { position: relative; }
.contract-school-search-wrap input[type="search"] {
  width: 100%;
  box-sizing: border-box;
}
.contract-school-search-results {
  position: absolute;
  z-index: 10050;
  top: calc(100% - 22px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #b8cce2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 43, 75, .18);
  padding: 5px;
}
.contract-school-search-results.hidden { display: none !important; }
.contract-school-search-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #173b70;
  text-align: left;
  cursor: pointer;
}
.contract-school-search-option:hover,
.contract-school-search-option:focus {
  background: #eaf2fb;
  outline: none;
}
.contract-school-search-option strong { color: #173b70; font-size: 13px; }
.contract-school-search-option span { color: #5d7693; font-size: 12px; }
.contract-school-search-empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}
body.site-dark .contract-school-search-results {
  background: #111e2d;
  border-color: #35516c;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
body.site-dark .contract-school-search-option { color: #eaf1f8; }
body.site-dark .contract-school-search-option strong { color: #f1f6fc; }
body.site-dark .contract-school-search-option span,
body.site-dark .contract-school-search-empty { color: #a9bfd5; }
body.site-dark .contract-school-search-option:hover,
body.site-dark .contract-school-search-option:focus { background: #1b3550; }



/* V14 - Tabela de contratos no mesmo padrão de Instituições cadastradas */
#panel-contratos-cadastrados .school-admin-table { min-width: 1120px; }
#panel-contratos-cadastrados .school-admin-table td { vertical-align: middle; }
#panel-contratos-cadastrados .school-row-actions {
  display: flex; gap: 6px; flex-wrap: wrap; min-width: 230px;
}
#panel-contratos-cadastrados .school-row-actions button {
  padding: 6px 9px; font-size: 11px; white-space: nowrap;
}
#panel-contratos-cadastrados .school-status-badge {
  display: inline-flex; align-items: center; border-radius: 20px;
  padding: 4px 9px; font-size: 11px; font-weight: 700;
  background: #e8eef7; color: #173b70;
}
#panel-contratos-cadastrados .school-status-badge.status-ativo { background:#dcfce7;color:#166534; }
#panel-contratos-cadastrados .school-status-badge.status-rascunho { background:#e8eef7;color:#173b70; }
#panel-contratos-cadastrados .school-status-badge.status-suspenso { background:#fef3c7;color:#92400e; }
#panel-contratos-cadastrados .school-status-badge.status-vencido,
#panel-contratos-cadastrados .school-status-badge.status-cancelado { background:#fee2e2;color:#991b1b; }
#panel-contratos-cadastrados .school-admin-pagination button.active {
  background: linear-gradient(110deg,#173b70,#2879bd); color:#fff; border-color:#173b70;
}


/* V15 - Contraste do cabeçalho da tabela de Contratos cadastrados */
body:not(.site-dark) #panel-contratos-cadastrados .school-admin-table thead,
body:not(.site-dark) #panel-contratos-cadastrados .school-admin-table thead tr,
body:not(.site-dark) #panel-contratos-cadastrados .school-admin-table thead th,
#panel-contratos-cadastrados .school-admin-table thead th {
  background: #173b70 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  border-color: #2d5684 !important;
  font-weight: 800 !important;
}
#panel-contratos-cadastrados .school-admin-table thead th * {
  color: #ffffff !important;
}
body.site-dark #panel-contratos-cadastrados .school-admin-table thead th {
  background: #173b70 !important;
  color: #ffffff !important;
  border-color: #2d5684 !important;
}


/* V16 - Consulta independente de códigos cadastrados */
#panel-codigos-cadastrados .codes-admin-card{padding:20px;border:1px solid #dce6f3;border-radius:14px;background:#fff;color:#173b70;box-shadow:0 5px 18px rgba(23,59,112,.05)}
#panel-codigos-cadastrados .school-admin-toolbar h3{margin:0 0 5px;color:#173b70;font-size:19px}
#panel-codigos-cadastrados .school-admin-toolbar p{margin:0;color:#52647a}
#panel-codigos-cadastrados .school-admin-filters{grid-template-columns:minmax(240px,1fr) minmax(200px,.65fr) minmax(150px,.45fr)}
#panel-codigos-cadastrados .school-admin-table{min-width:1180px}
#panel-codigos-cadastrados .school-admin-table thead th{background:#173b70!important;color:#fff!important;opacity:1!important;text-shadow:none!important;border-color:#2d5684!important;font-weight:800!important}
#panel-codigos-cadastrados .school-admin-table td{white-space:nowrap}
#panel-codigos-cadastrados .code-value{font-weight:800;letter-spacing:.5px;color:#173b70}
#panel-codigos-cadastrados .code-status{display:inline-flex;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:800}
#panel-codigos-cadastrados .code-status.ativo{background:#dcfce7;color:#166534}
#panel-codigos-cadastrados .code-status.bloqueado{background:#fff2d5;color:#9a5b00}
#panel-codigos-cadastrados .code-status.encerrado{background:#fee2e2;color:#991b1b}
body.site-dark #panel-codigos-cadastrados .codes-admin-card{background:#111e2d!important;color:#eaf1f8!important;border-color:#2b4158!important}
body.site-dark #panel-codigos-cadastrados .school-admin-toolbar h3,body.site-dark #panel-codigos-cadastrados .school-admin-filters label{color:#eaf1f8!important}
body.site-dark #panel-codigos-cadastrados .school-admin-toolbar p,body.site-dark #panel-codigos-cadastrados .school-admin-length,body.site-dark #panel-codigos-cadastrados .school-admin-footer,body.site-dark #panel-codigos-cadastrados .school-admin-status{color:#a9bacb!important}
body.site-dark #panel-codigos-cadastrados .school-admin-filters input,body.site-dark #panel-codigos-cadastrados .school-admin-filters select,body.site-dark #panel-codigos-cadastrados .school-admin-length select{background:#0c1724!important;color:#edf4fb!important;border-color:#35516c!important}
body.site-dark #panel-codigos-cadastrados .school-admin-table-wrap{border-color:#2b4158!important}
body.site-dark #panel-codigos-cadastrados .school-admin-table{background:#111e2d!important;color:#eaf1f8!important}
body.site-dark #panel-codigos-cadastrados .school-admin-table th{background:#173b70!important;color:#fff!important}
body.site-dark #panel-codigos-cadastrados .school-admin-table td{background:#111e2d!important;color:#d6e2ef!important;border-color:#2b4158!important}
body.site-dark #panel-codigos-cadastrados .school-admin-table tbody tr:nth-child(even) td{background:#172638!important}
body.site-dark #panel-codigos-cadastrados .school-admin-table tbody tr:hover td{background:#203b56!important}
body.site-dark #panel-codigos-cadastrados .code-value{color:#eaf1f8!important}
body.site-dark #panel-codigos-cadastrados .school-admin-actions button,body.site-dark #panel-codigos-cadastrados .school-admin-pagination button{background:#142337!important;color:#dceeff!important;border-color:#35516c!important}
body.site-dark #panel-codigos-cadastrados .school-admin-pagination button.active{background:#2465a5!important;color:#fff!important}
@media(max-width:900px){#panel-codigos-cadastrados .school-admin-filters{grid-template-columns:1fr}}


/* FINAL OVERRIDE — reprodução visual da referência aprovada */
#schoolActivitiesPanel #schoolActivityForm.school-activity-exact-form{
  display:block;width:100%;max-width:none;box-sizing:border-box;
  padding:20px 22px 18px!important;margin:14px 0 0!important;
  background:#fff!important;border:1px solid #cbdcf2!important;
  border-radius:14px!important;color:#102f62!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-section-banner{
  display:flex!important;align-items:center!important;gap:12px!important;
  width:100%;box-sizing:border-box;background:linear-gradient(90deg,#e4efff,#dceaff)!important;
  color:#082b68!important;border-radius:9px!important;padding:11px 15px!important;
  font-size:19px!important;font-weight:800!important;margin:0 0 16px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-section{
  display:block!important;padding:0 8px 18px!important;margin:0 0 16px!important;
  border:0!important;border-bottom:1px solid #d7e3f4!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-section h4{
  display:flex!important;align-items:center!important;gap:11px!important;
  margin:0 0 15px!important;font-size:18px!important;line-height:1.35!important;
  color:#082b68!important;font-weight:800!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-two-col{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:15px 22px!important;align-items:start!important;width:100%!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-two-col>label{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:7px!important;min-width:0!important;width:100%!important;
  font-size:13px!important;font-weight:750!important;color:#12366b!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-two-col input,
#schoolActivitiesPanel #schoolActivityForm .sa-two-col select,
#schoolActivitiesPanel #schoolActivityForm .sa-proof-wrap input,
#schoolActivitiesPanel #schoolActivityForm .sa-description textarea{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;
  min-height:43px!important;box-sizing:border-box!important;padding:11px 13px!important;
  border:1px solid #bfd2ee!important;border-radius:10px!important;background:#fff!important;
  color:#102f62!important;font:inherit!important;font-size:14px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-proof-wrap{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;width:100%!important;
}
#schoolActivitiesPanel #schoolActivityForm #schoolActivityProofSearch{
  width:100%!important;height:43px!important;min-height:43px!important;
  border:1px solid #bfd2ee!important;border-radius:10px!important;
}
#schoolActivitiesPanel #schoolActivityForm #schoolActivityProof{
  position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;
  padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-description{
  display:flex!important;flex-direction:column!important;gap:7px!important;
  width:100%!important;margin:18px 0 20px!important;
  font-size:13px!important;font-weight:750!important;color:#12366b!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-description textarea{
  min-height:110px!important;resize:vertical!important;font-weight:400!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-picker{position:relative!important;width:100%!important;min-width:0!important}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-trigger{
  display:flex!important;align-items:center!important;gap:12px!important;
  width:100%!important;min-height:43px!important;box-sizing:border-box!important;
  appearance:none!important;-webkit-appearance:none!important;
  border:1px solid #aebfda!important;border-radius:10px!important;
  background:#fff!important;color:#526987!important;padding:10px 14px!important;
  font:inherit!important;font-size:14px!important;text-align:left!important;cursor:pointer!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-trigger span{flex:1!important}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-trigger b{font-size:18px!important;color:#183b6d!important}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-panel{
  display:none;position:absolute!important;z-index:60!important;top:calc(100% + 5px)!important;
  left:0!important;right:0!important;padding:10px!important;background:#fff!important;
  border:1px solid #cbdcf2!important;border-radius:10px!important;
  box-shadow:0 12px 28px #183b6d20!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-picker.open .sa-picker-panel{display:block!important}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-panel .school-activity-search{
  width:100%!important;min-height:40px!important;box-sizing:border-box!important;
  padding:10px!important;border:1px solid #cbdcf2!important;border-radius:8px!important;margin-bottom:8px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-panel .school-target-list{
  display:grid!important;grid-template-columns:1fr!important;gap:6px!important;
  max-height:220px!important;overflow:auto!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-panel .school-target-list label{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;
  width:100%!important;box-sizing:border-box!important;padding:9px 10px!important;
  border:1px solid #d8e4f4!important;border-radius:8px!important;font-weight:500!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-picker-panel .school-target-list input{
  width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-chips{
  display:flex!important;flex-wrap:wrap!important;gap:7px!important;
  margin:8px 0 0!important;min-height:0!important;
}
#schoolActivitiesPanel #schoolActivityForm .school-selected-chip{
  display:inline-flex!important;align-items:center!important;gap:8px!important;
  background:#e4efff!important;border:1px solid #c9ddfa!important;color:#12366b!important;
  border-radius:8px!important;padding:6px 10px!important;font-size:13px!important;font-weight:700!important;
}
#schoolActivitiesPanel #schoolActivityForm .school-selected-chip button{
  border:0!important;background:transparent!important;color:#1264d8!important;
  font-size:17px!important;line-height:1!important;padding:0 2px!important;cursor:pointer!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-hint{
  margin:7px 0 0!important;color:#59769d!important;font-size:12px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-status-section{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;align-items:center!important;background:#edf4ff!important;
  border-radius:10px!important;padding:13px!important;margin-top:2px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-status-title{
  display:flex!important;gap:10px!important;align-items:center!important;
  color:#0d3470!important;font-size:15px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-status-card{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;
  border:1px solid #9fb5d5!important;border-radius:9px!important;padding:10px 13px!important;
  background:#fff!important;cursor:pointer!important;min-height:58px!important;box-sizing:border-box!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-status-card.active{
  border:2px solid #1264d8!important;background:#f8fbff!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-status-card input{
  width:20px!important;height:20px!important;min-height:20px!important;accent-color:#1264d8!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-status-card strong,
#schoolActivitiesPanel #schoolActivityForm .sa-status-card small{display:block!important;color:#102f62!important}
#schoolActivitiesPanel #schoolActivityForm .sa-status-card small{font-size:11px!important;color:#607a9d!important;margin-top:3px!important}
#schoolActivitiesPanel #schoolActivityForm .sa-actions{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;
  gap:12px!important;margin-top:18px!important;
}
#schoolActivitiesPanel #schoolActivityForm .sa-actions button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:190px!important;min-height:44px!important;padding:11px 16px!important;
  border-radius:9px!important;font-weight:750!important;cursor:pointer!important;
}
#schoolActivitiesPanel #schoolActivityForm #schoolActivitySaveDraft{
  background:#fff!important;color:#12366b!important;border:1px solid #9fb5d5!important;
}
#schoolActivitiesPanel #schoolActivityForm #schoolActivityPublish{
  background:#159447!important;color:#fff!important;border:1px solid #159447!important;
}
@media(max-width:700px){
  #schoolActivitiesPanel #schoolActivityForm .sa-two-col,
  #schoolActivitiesPanel #schoolActivityForm .sa-target-columns{grid-template-columns:minmax(0,1fr)!important}
  #schoolActivitiesPanel #schoolActivityForm .sa-status-section{grid-template-columns:1fr!important}
  #schoolActivitiesPanel #schoolActivityForm .sa-actions{flex-direction:column!important}
  #schoolActivitiesPanel #schoolActivityForm .sa-actions button{width:100%!important}
}

.school-pending-table-wrap{padding:18px!important;margin-top:16px}
.school-pending-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:var(--text-color,inherit)}
.school-pending-heading h4{margin:0;font-size:15px}
.school-pending-heading span{font-size:12px;color:var(--muted-color,#64748b)}
.school-pending-table-scroll{overflow-x:auto}
.school-pending-table{width:100%;border-collapse:collapse;background:var(--card-bg,#fff);color:var(--text-color,inherit)}
.school-pending-table th{background:var(--primary-light,#edf4fc);color:var(--primary-color,#174a82);font-weight:700;text-align:left;padding:12px 14px}
.school-pending-table td{padding:12px 14px;border-bottom:1px solid var(--border-color,#e2e8f0)}
.school-pending-table tbody tr:hover{background:var(--hover-bg,#f7faff)}
.school-pending-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--primary-light,#edf4fc);color:var(--primary-color,#174a82)}

.school-stats-detail-content{width:min(100%,1240px)!important;max-height:92vh!important}
.school-review-simulado-list{display:grid;gap:16px}
.school-review-simulado-question,.school-review-simulado{border:1px solid var(--border-color,#dbe5f1);border-radius:12px;padding:18px;background:var(--card-bg,#fff);color:var(--text-color,#12345a)}
.school-review-question-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.school-review-question-heading h4{margin:0}
.school-review-meta{font-size:13px;color:var(--muted-color,#64748b);margin:6px 0 12px}
.school-review-enunciado{line-height:1.65;margin:12px 0}
.school-review-support,.school-review-comment{padding:14px;margin:12px 0;border-radius:9px;background:var(--primary-light,#f0f5fb)}
.school-review-options{display:grid;gap:8px;margin:14px 0}
.school-review-option{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid var(--border-color,#dbe5f1);border-radius:9px}
.school-review-option.is-correct{border-color:#16a34a;background:#f0fdf4}
.school-review-option.is-wrong{border-color:#dc2626;background:#fef2f2}
.school-review-option small{margin-left:auto;font-weight:700;white-space:nowrap}
.school-review-option img{max-width:180px;max-height:140px;object-fit:contain}
.school-review-question-image{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:12px auto;border-radius:8px}
.school-review-answer{padding:12px;border-radius:9px;background:var(--primary-light,#edf4fc);margin-top:12px}
.school-review-comment{margin-top:12px}
.school-review-pill-ok,.school-review-pill-bad,.school-review-pill-neutral{padding:5px 10px;border-radius:30px;font-size:12px;font-weight:700}
.school-review-pill-ok{background:#dcfce7;color:#166534}.school-review-pill-bad{background:#fee2e2;color:#991b1b}.school-review-pill-neutral{background:#e2e8f0;color:#334155}
.school-pending-table{min-width:850px}
.school-pending-table th,.school-pending-table td{white-space:nowrap}
.school-pending-review-button{padding:8px 12px;font-size:12px}
.school-pending-heading{align-items:flex-start}
.school-pending-heading div{display:grid;gap:4px}


/* Popup independente de conferência — padrão aprovado */
body.school-stats-modal-open{overflow:hidden!important}
#schoolTeacherDetailModal.school-stats-detail-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  margin:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  overflow:auto!important;
  box-sizing:border-box!important;
  background:rgba(22,38,64,.52)!important;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
#schoolTeacherDetailModal.school-stats-detail-modal.hidden{display:none!important}
#schoolTeacherDetailModal .school-stats-detail-content{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  width:min(820px, calc(100vw - 48px))!important;
  max-width:820px!important;
  max-height:min(88vh, 900px)!important;
  margin:auto!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #dbe5f1!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#12345a!important;
  box-shadow:0 24px 70px rgba(15,35,65,.32)!important;
}
#schoolTeacherDetailModal .school-stats-modal-header{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:72px;
  padding:18px 28px;
  border-bottom:1px solid #dbe5f1;
  background:#fff;
}
#schoolTeacherDetailModal .school-stats-modal-header h3{
  margin:0!important;
  color:#123b70!important;
  font-size:24px!important;
  line-height:1.25;
  font-weight:800!important;
}
#schoolTeacherDetailModal .school-stats-modal-close{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  border:0;
  padding:6px 0 6px 10px;
  background:transparent;
  color:#075db4;
  font:inherit;
  font-size:15px;
  cursor:pointer;
}
#schoolTeacherDetailModal .school-stats-modal-close span{
  font-size:30px;
  line-height:1;
  font-weight:300;
  color:#123b70;
}
#schoolTeacherDetailModal .school-stats-modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:8px 28px 28px;
  background:#fff;
}
#schoolTeacherDetailModal .school-review-simulado{
  border:0!important;
  padding:0!important;
  background:#fff!important;
}
#schoolTeacherDetailModal .school-review-enunciado{
  color:#142f52;
  font-size:18px;
}
#schoolTeacherDetailModal .school-review-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:#123b70;
  font-weight:700;
  font-size:17px;
}
#schoolTeacherDetailModal .school-review-option{
  align-items:center;
  min-height:46px;
  padding:11px 15px;
  border:1px solid #d3e0f1;
  border-radius:10px;
  background:#fff;
  color:#16365c;
  font-size:16px;
}
#schoolTeacherDetailModal .school-review-option.is-correct{
  border:1.5px solid #16a34a!important;
  background:#effcf3!important;
}
#schoolTeacherDetailModal .school-review-answer{
  padding:15px 18px;
  border-radius:10px;
  background:#eaf3ff!important;
  color:#123b70;
  font-size:16px;
}
@media(max-width:640px){
  #schoolTeacherDetailModal.school-stats-detail-modal{padding:12px!important}
  #schoolTeacherDetailModal .school-stats-detail-content{width:calc(100vw - 24px)!important;max-height:92dvh!important}
  #schoolTeacherDetailModal .school-stats-modal-header{padding:15px 18px;min-height:62px}
  #schoolTeacherDetailModal .school-stats-modal-header h3{font-size:19px!important}
  #schoolTeacherDetailModal .school-stats-modal-body{padding:8px 18px 20px}
}

/* Conferência do aluno dentro do popup central: layout equivalente à tela original */
#schoolTeacherDetailModal .school-stats-detail-content{
  width:min(1480px,calc(100vw - 64px))!important;
  max-width:1480px!important;
  max-height:94vh!important;
}
#schoolTeacherDetailModal .school-stats-modal-body{
  padding:0!important;
  background:#f3f6fb!important;
}
.teacher-conference-shell{padding:16px 22px 22px;background:#f3f6fb;color:#123b70}
.teacher-conference-top-actions{display:flex;justify-content:center;margin:0 0 14px}
.teacher-conference-back,.teacher-conference-footer button{
  border:1px solid #cbdcf2;background:#fff;color:#174a82;border-radius:9px;padding:10px 20px;font-weight:700;cursor:pointer;box-shadow:0 2px 6px rgba(20,55,95,.06)
}
.teacher-conference-summary{display:flex;flex-wrap:wrap;gap:18px;align-items:center;padding:0 4px 12px;color:#58708e;font-size:13px}
.teacher-conference-summary .summary-correct{color:#168343;font-weight:700}
.teacher-conference-summary .summary-wrong{color:#d94b4b;font-weight:700}
.teacher-conference-question-card{background:#fff;border:1px solid #d3e1f2;border-top:2px solid #2581d6;border-radius:12px;padding:24px 28px;margin:0 0 16px;min-height:300px}
.teacher-conference-question-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.teacher-conference-kicker{font-size:17px;font-weight:800;letter-spacing:.04em;color:#2380d1}
.teacher-conference-mode{font-size:12px;color:#68809e;margin-top:8px}
.teacher-conference-result{font-size:12px;font-weight:700;border-radius:30px;padding:7px 12px;white-space:nowrap}
.teacher-conference-result.correct{background:#dcfce7;color:#166534}
.teacher-conference-result.wrong{background:#fee2e2;color:#991b1b}
.teacher-conference-result.neutral,.teacher-conference-result.unanswered{background:#e8eef7;color:#475569}
.teacher-conference-subject{font-size:14px;font-weight:700;color:#174a82;margin:10px 0}
.teacher-conference-support,.teacher-conference-comment{padding:14px 16px;border-radius:9px;background:#f0f5fc;margin:14px 0;color:#24476f}
.teacher-conference-enunciation{font-size:17px;font-weight:600;line-height:1.6;color:#12345a;margin:14px 0}
.teacher-conference-image{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:14px 0}
.teacher-conference-options-title{font-weight:800;color:#123b70;margin:18px 0 12px}
.teacher-conference-options{display:grid;gap:8px;max-width:760px}
.teacher-conference-option{display:flex;align-items:center;gap:12px;min-height:48px;padding:9px 13px;border:1px solid #d2e0f2;border-radius:10px;background:#f8fafd;color:#18385e}
.teacher-conference-option.correct{border:2px solid #65c982;background:#daf4df}
.teacher-conference-option.wrong{border:2px solid #ef7777;background:#fce0e0}
.teacher-conference-letter{display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border:1px solid #2581d6;border-radius:7px;color:#17518c;font-weight:800;background:#fff}
.teacher-conference-option-content{flex:1;line-height:1.5}
.teacher-conference-option-content img{display:block;max-width:240px;max-height:150px;object-fit:contain;margin-top:8px}
.teacher-conference-option-status{font-size:11px;font-weight:800;white-space:nowrap;color:#17643a}
.teacher-conference-option.wrong .teacher-conference-option-status{color:#a12c2c}
.teacher-conference-answer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:16px;padding:13px 16px;border-radius:9px;background:#e6f0ff;color:#153f70}
.teacher-conference-separator{padding:0 5px;color:#7990ad}
.teacher-conference-navigation{background:#fff;border:1px solid #d3e1f2;border-radius:12px;padding:20px 24px;margin-bottom:16px}
.teacher-conference-navigation h4{font-size:16px;color:#174a82;margin:0 0 14px}
.teacher-conference-grid{display:grid;grid-template-columns:repeat(20,minmax(32px,1fr));gap:7px}
.teacher-conference-number{height:48px;border:0;border-radius:5px;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.teacher-conference-number.correct{background:#16a34a}
.teacher-conference-number.wrong{background:#e05252}
.teacher-conference-number.neutral,.teacher-conference-number.unanswered{background:#8b9bb0}
.teacher-conference-number.active{outline:2px solid #2581d6;outline-offset:2px}
.teacher-conference-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:4px 0 0}
.teacher-conference-footer button{font-size:12px;min-width:145px}
@media(max-width:900px){.teacher-conference-grid{grid-template-columns:repeat(10,minmax(28px,1fr))}.teacher-conference-shell{padding:12px}.teacher-conference-question-card{padding:18px}}
@media(max-width:600px){#schoolTeacherDetailModal .school-stats-detail-content{width:calc(100vw - 16px)!important;max-height:96dvh!important}.teacher-conference-question-top{display:block}.teacher-conference-result{display:inline-flex;margin-top:10px}.teacher-conference-grid{grid-template-columns:repeat(5,minmax(28px,1fr))}.teacher-conference-footer{display:grid}.teacher-conference-footer button{width:100%}}

/* Estado de resposta na conferência: vermelho apenas na escolha errada do aluno */
#schoolTeacherDetailModal .teacher-conference-option{
  border:1px solid #d2e0f2!important;
  background:#f8fafd!important;
  color:#18385e!important;
}
#schoolTeacherDetailModal .teacher-conference-option.correct{
  border:2px solid #16a34a!important;
  background:#dcfce7!important;
}
#schoolTeacherDetailModal .teacher-conference-option.wrong{
  border:2px solid #dc5555!important;
  background:#fee2e2!important;
}
#schoolTeacherDetailModal .teacher-conference-option.wrong .teacher-conference-option-status{
  color:#b42323!important;
}

/* Indicador de carregamento da conferência */
.school-conference-loading{
  min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:36px 24px;background:#fff;color:#123b70;
}
.school-conference-loading-icon{
  width:82px;height:82px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#e8f2ff;color:#1765c1;font-size:43px;margin-bottom:16px;
  animation:school-hourglass-pulse 1.15s ease-in-out infinite;
}
.school-conference-loading h3{font-size:23px;font-weight:800;margin:0 0 10px;color:#123b70}
.school-conference-loading p{font-size:15px;line-height:1.5;color:#536b89;margin:0 0 20px;max-width:440px}
.school-conference-loading small{margin-top:12px;color:#71839a;font-size:12px}
.school-conference-progress{width:min(340px,90%);height:9px;border-radius:20px;background:#e5eef9;overflow:hidden}
.school-conference-progress span{display:block;width:38%;height:100%;border-radius:20px;background:linear-gradient(90deg,#1765c1,#3294e8);animation:school-loading-progress 1.4s ease-in-out infinite}
@keyframes school-hourglass-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.92);opacity:.72}}
@keyframes school-loading-progress{0%{transform:translateX(-110%)}100%{transform:translateX(290%)}}
.school-review-button-spinner{display:inline-block;width:13px;height:13px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;vertical-align:-2px;margin-right:5px;animation:school-button-spin .7s linear infinite}
@keyframes school-button-spin{to{transform:rotate(360deg)}}
button.is-loading{opacity:.86;cursor:wait}

/* Destaque inequívoco das respostas na conferência do professor */
#schoolTeacherDetailModal .teacher-conference-option.correct{
  border:2px solid #16a34a!important;
  background:#dcfce7!important;
  box-shadow:inset 0 0 0 1px rgba(22,163,74,.08)!important;
}
#schoolTeacherDetailModal .teacher-conference-option.wrong{
  border:2px solid #dc2626!important;
  background:#fee2e2!important;
  box-shadow:inset 0 0 0 1px rgba(220,38,38,.08)!important;
}
#schoolTeacherDetailModal .teacher-conference-option.correct .teacher-conference-letter{
  border-color:#16a34a!important;color:#166534!important;
}
#schoolTeacherDetailModal .teacher-conference-option.wrong .teacher-conference-letter{
  border-color:#dc2626!important;color:#991b1b!important;
}
#schoolTeacherDetailModal .teacher-conference-option-status{font-weight:800!important}


/* Destaque inequívoco na conferência: gabarito verde e escolha errada vermelha */
#schoolTeacherDetailModal .teacher-conference-options .teacher-conference-option.correct{
  background:#dcfce7!important;
  border:2px solid #16a34a!important;
  box-shadow:inset 0 0 0 1px rgba(22,163,74,.08)!important;
}
#schoolTeacherDetailModal .teacher-conference-options .teacher-conference-option.wrong{
  background:#fee2e2!important;
  border:2px solid #dc2626!important;
  box-shadow:inset 0 0 0 1px rgba(220,38,38,.08)!important;
}
#schoolTeacherDetailModal .teacher-conference-options .teacher-conference-option.correct .teacher-conference-letter{
  border-color:#16a34a!important;color:#166534!important;background:#f0fdf4!important;
}
#schoolTeacherDetailModal .teacher-conference-options .teacher-conference-option.wrong .teacher-conference-letter{
  border-color:#dc2626!important;color:#991b1b!important;background:#fff7f7!important;
}

/* Cores da resposta do aluno e do gabarito — classes calculadas pelo índice da opção */
#schoolTeacherDetailModal .teacher-conference-option.correct{
  background:#dcfce7!important;
  border:2px solid #16a34a!important;
  color:#14532d!important;
}
#schoolTeacherDetailModal .teacher-conference-option.wrong{
  background:#fee2e2!important;
  border:2px solid #dc2626!important;
  color:#7f1d1d!important;
}
#schoolTeacherDetailModal .teacher-conference-option.correct .teacher-conference-letter{
  background:#f0fdf4!important;border-color:#16a34a!important;color:#166534!important;
}
#schoolTeacherDetailModal .teacher-conference-option.wrong .teacher-conference-letter{
  background:#fff7f7!important;border-color:#dc2626!important;color:#991b1b!important;
}


/* CSS extraído da posição original 652634 */
/* Página pública de planos — inspiração no layout de streaming solicitado. */
    .public-plans-page{min-height:calc(100vh - 78px);padding:0 22px 54px;background:#090a0d;color:#fff}
    .public-plans-topbar{width:min(1120px,100%);margin:0 auto;padding:22px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff20;color:#f4f5f7;font-size:12px;font-weight:850;letter-spacing:2px}
    .plans-back-button{width:auto;margin:0;padding:9px 13px;border:1px solid #ffffff35;border-radius:999px;background:#ffffff10;color:#fff;font-weight:700}
    .public-plans-heading{text-align:center;padding:34px 0 26px}
    .plans-eyebrow{margin:0 0 10px;color:#a9c9ee;font-size:11px;font-weight:850;letter-spacing:2px}
    .public-plans-heading h1{margin:0;color:#fff;font-size:clamp(25px,4vw,36px);letter-spacing:-.8px}
    .public-plans-heading>p:last-child{margin:9px 0 0;color:#aeb5c1;font-size:14px}
    .public-plans-status{width:min(1120px,100%);margin:0 auto 14px;text-align:center;color:#aeb5c1;font-size:13px;min-height:20px}
    .public-plans-grid{width:min(960px,100%);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
    .public-plan-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:490px;padding:25px 23px 20px;border:1px solid #ffffff27;border-radius:18px;background:linear-gradient(155deg,#292a2e,#151619 55%);box-shadow:0 18px 45px #0008;overflow:hidden}
    .public-plan-card:before{content:"";position:absolute;inset:0 0 auto;height:7px;background:#a85a18}
    .public-plan-card.plan-tone-1:before{background:#d00042}
    .public-plan-card.plan-tone-2:before{background:#7ca500}
    .public-plan-card.is-featured{border-color:#d3a34d;box-shadow:0 18px 48px #0009,0 0 0 1px #d3a34d55}
    .public-plan-ribbon{position:absolute;top:17px;right:15px;padding:5px 9px;border-radius:5px;background:#f0c84b;color:#201a08;font-size:9px;font-weight:900;letter-spacing:.8px}
    .public-plan-card-head h2{margin:3px 0 8px;color:#fff;font-size:23px;font-weight:850;letter-spacing:-.5px}
    .public-plan-card-head p{min-height:54px;margin:0;color:#c2c5cb;font-size:12px;line-height:1.55}
    .public-plan-price{display:flex;flex-direction:column;gap:3px;margin:22px 0 18px}
    .public-plan-price small{color:#c4c8cf;font-size:12px}
    .public-plan-price strong{color:#fff;font-size:29px;line-height:1.2;letter-spacing:-.8px}
    .public-plan-price span{color:#aeb5c1;font-size:11px}
    .public-plan-cta{width:100%;min-height:43px;margin:0;padding:11px 12px;border:0;border-radius:9px;background:#ffda00;color:#171717;font-size:14px;font-weight:900;box-shadow:none}
    .public-plan-cta:hover{background:#ffe64b;transform:translateY(-1px)}
    .public-plan-cta.is-unavailable,.public-plan-cta:disabled{background:#44464b;color:#d0d2d6;cursor:not-allowed;opacity:1;transform:none}
    .public-plan-divider{height:1px;margin:22px 0 17px;background:#ffffff20}
    .public-plan-features{display:grid;gap:12px;margin:0;padding:0;list-style:none;color:#e4e6e9;font-size:12px;line-height:1.45}
    .public-plan-features li{display:flex;gap:9px;align-items:flex-start}
    .plan-feature-check{flex:0 0 17px;color:#f4d64b;font-weight:900}
    .plan-feature-limit{color:#aeb5c1;font-size:11px}
    .public-plan-card-foot{margin-top:auto;padding-top:20px;text-align:center;color:#b6bdc7;font-size:11px;font-weight:750}
    .public-plans-footnote{width:min(900px,100%);margin:24px auto 0;text-align:center;color:#9ca3af;font-size:12px;line-height:1.6}
    body.plans-screen{background:#090a0d!important}
    body.plans-screen>.site-header,body.plans-screen header.site-header{background:#111216!important;border-bottom-color:#ffffff1c!important;color:#fff!important}
    body.plans-screen .brand-lockup,body.plans-screen .logo{color:#fff!important}
    body.plans-screen .brand-mark{background:#fff!important;color:#173b70!important}
    body.plans-screen .public-header-actions .header-login,body.plans-screen .public-header-actions .header-signup{border-color:#ffffff45!important;background:#ffffff10!important;color:#fff!important}
    @media(max-width:820px){.public-plans-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px}.public-plan-card{min-height:450px}}
    @media(max-width:560px){.public-plans-page{padding:0 15px 38px}.public-plans-topbar{padding:16px 0}.public-plans-heading{padding:28px 0 22px}.public-plans-grid{grid-template-columns:1fr;max-width:390px;gap:15px}.public-plan-card{min-height:0;padding:23px 21px 18px}.public-plan-card-head p{min-height:0}.public-plan-card-foot{padding-top:16px}}


/* CSS extraído da posição original 657288 */
/* Planos: identidade visual oficial BraboSimulados + suporte ao tema global */
body.plans-screen:not(.site-dark) {
  background:#f4f7fc !important;
  color:#1b3558 !important;
}
body.plans-screen:not(.site-dark) .site-header {
  background:#fff !important;
  color:#173b70 !important;
  border-bottom:1px solid #dfe8f3 !important;
}
body.plans-screen:not(.site-dark) .public-plans-page {
  background:linear-gradient(180deg,#f4f7fc 0%,#edf3fb 100%) !important;
  color:#1b3558 !important;
}
body.plans-screen:not(.site-dark) .public-plans-topbar {
  color:#173b70 !important;
  border-bottom-color:#d8e3f0 !important;
}
body.plans-screen:not(.site-dark) .plans-back-button {
  background:#fff !important;
  color:#173b70 !important;
  border-color:#cbd9eb !important;
}
body.plans-screen:not(.site-dark) .plans-eyebrow { color:#2874b9 !important; }
body.plans-screen:not(.site-dark) .public-plans-heading h1 { color:#173b70 !important; }
body.plans-screen:not(.site-dark) .public-plans-heading>p:last-child,
body.plans-screen:not(.site-dark) .public-plans-status,
body.plans-screen:not(.site-dark) .public-plans-footnote { color:#647b98 !important; }
body.plans-screen:not(.site-dark) .public-plan-card {
  background:linear-gradient(155deg,#fff 0%,#f7faff 100%) !important;
  border-color:#d7e3f1 !important;
  box-shadow:0 14px 35px rgba(23,59,112,.10) !important;
}
body.plans-screen:not(.site-dark) .public-plan-card.is-featured {
  border-color:#2874b9 !important;
  box-shadow:0 16px 38px rgba(40,116,185,.17),0 0 0 1px rgba(40,116,185,.18) !important;
}
body.plans-screen:not(.site-dark) .public-plan-card-head h2,
body.plans-screen:not(.site-dark) .public-plan-price strong { color:#173b70 !important; }
body.plans-screen:not(.site-dark) .public-plan-card-head p,
body.plans-screen:not(.site-dark) .public-plan-price small,
body.plans-screen:not(.site-dark) .public-plan-price span,
body.plans-screen:not(.site-dark) .public-plan-card-foot { color:#647b98 !important; }
body.plans-screen:not(.site-dark) .public-plan-divider { background:#dfe8f3 !important; }
body.plans-screen:not(.site-dark) .public-plan-features { color:#294766 !important; }
body.plans-screen:not(.site-dark) .plan-feature-check { color:#23845b !important; }
body.plans-screen:not(.site-dark) .public-plan-cta {
  background:linear-gradient(90deg,#173b70,#2874b9) !important;
  color:#fff !important;
  box-shadow:0 5px 13px rgba(23,59,112,.18) !important;
}
body.plans-screen:not(.site-dark) .public-plan-cta:hover {
  background:linear-gradient(90deg,#102d57,#1f65a5) !important;
}
body.plans-screen:not(.site-dark) .public-plan-cta.is-unavailable,
body.plans-screen:not(.site-dark) .public-plan-cta:disabled {
  background:#e7edf5 !important;
  color:#7b8da5 !important;
  box-shadow:none !important;
}
body.plans-screen.site-dark {
  background:#0b111a !important;
  color:#eaf1f8 !important;
}
body.plans-screen.site-dark .site-header {
  background:#101a27 !important;
  color:#eaf1f8 !important;
  border-color:#263b51 !important;
}
body.plans-screen.site-dark .public-plans-page {
  background:linear-gradient(180deg,#0b111a 0%,#101a27 100%) !important;
  color:#eaf1f8 !important;
}
body.plans-screen.site-dark .public-plans-topbar {
  color:#eaf1f8 !important;
  border-bottom-color:#263b51 !important;
}
body.plans-screen.site-dark .plans-back-button {
  background:#142337 !important;
  color:#eaf1f8 !important;
  border-color:#2b4966 !important;
}
body.plans-screen.site-dark .plans-eyebrow { color:#79b8ed !important; }
body.plans-screen.site-dark .public-plans-heading h1 { color:#f1f6fc !important; }
body.plans-screen.site-dark .public-plans-heading>p:last-child,
body.plans-screen.site-dark .public-plans-status,
body.plans-screen.site-dark .public-plans-footnote { color:#a9bacb !important; }
body.plans-screen.site-dark .public-plan-card {
  background:linear-gradient(155deg,#17283b 0%,#101c2a 100%) !important;
  border-color:#2b4966 !important;
  box-shadow:0 18px 42px rgba(0,0,0,.28) !important;
}
body.plans-screen.site-dark .public-plan-card.is-featured {
  border-color:#438bd0 !important;
  box-shadow:0 18px 46px rgba(0,0,0,.32),0 0 0 1px rgba(67,139,208,.28) !important;
}
body.plans-screen.site-dark .public-plan-card-head h2,
body.plans-screen.site-dark .public-plan-price strong { color:#f1f6fc !important; }
body.plans-screen.site-dark .public-plan-card-head p,
body.plans-screen.site-dark .public-plan-price small,
body.plans-screen.site-dark .public-plan-price span,
body.plans-screen.site-dark .public-plan-card-foot { color:#a9bacb !important; }
body.plans-screen.site-dark .public-plan-divider { background:#2b4966 !important; }
body.plans-screen.site-dark .public-plan-features { color:#e3edf7 !important; }
body.plans-screen.site-dark .plan-feature-check { color:#8bc7f5 !important; }
body.plans-screen.site-dark .public-plan-cta {
  background:linear-gradient(90deg,#1d5b91,#287fc0) !important;
  color:#fff !important;
  box-shadow:0 5px 15px rgba(0,0,0,.22) !important;
}
body.plans-screen.site-dark .public-plan-cta.is-unavailable,
body.plans-screen.site-dark .public-plan-cta:disabled {
  background:#26394d !important;
  color:#9fb0c2 !important;
  box-shadow:none !important;
}


/* CSS extraído da posição original 662516 */
#studentSchool .school-students-toolbar{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(190px,1fr) auto;gap:14px;align-items:end;margin:4px 0 14px}
#studentSchool .school-students-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--text,#24364b)}
#studentSchool .school-students-toolbar input,#studentSchool .school-students-toolbar select{width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--border,#cbd7e6);border-radius:8px;background:var(--surface,#fff);color:var(--text,#24364b);font:inherit}
#studentSchool .school-student-page-size{min-width:120px}
#studentSchool .school-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--border,#d6dfeb);border-radius:9px;background:var(--surface,#fff)}
#studentSchool .school-data-table{width:100%;border-collapse:collapse;min-width:760px;color:var(--text,#24364b);font-size:13px}
#studentSchool .school-data-table th{padding:12px 13px;background:var(--surface-2,#edf2f8);border-bottom:1px solid var(--border,#cbd7e6);text-align:left;font-size:11px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;color:var(--muted,#64748b);white-space:nowrap}
#studentSchool .school-data-table td{padding:11px 13px;border-bottom:1px solid var(--border,#e1e8f0);vertical-align:middle;background:var(--surface,#fff)}
#studentSchool .school-data-table tbody tr:last-child td{border-bottom:0}
#studentSchool .school-data-table tbody tr:hover td{background:var(--surface-2,#f7f9fc)}
#studentSchool .school-data-table td strong{font-weight:700;color:var(--text,#24364b)}
#studentSchool .school-table-number{width:48px;color:var(--muted,#64748b);font-variant-numeric:tabular-nums}
#studentSchool .school-table-status{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:#e5f7ed;color:#16834a;font-size:11px;font-weight:800;white-space:nowrap}
#studentSchool .school-table-muted{color:var(--muted,#8492a6)}
#studentSchool .school-student-table-actions{display:flex;align-items:center;gap:6px;min-width:360px}
#studentSchool .school-student-table-actions select{min-width:120px;max-width:155px;height:34px;padding:5px 7px;border:1px solid var(--border,#cbd7e6);border-radius:7px;background:var(--surface,#fff);color:var(--text,#24364b);font-size:11px}
#studentSchool .school-student-table-actions button{width:auto;margin:0;padding:7px 9px;font-size:11px;white-space:nowrap}
#studentSchool .school-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted,#64748b);font-size:12px}
#studentSchool .school-table-pagination{display:flex;align-items:center;gap:4px}
#studentSchool .school-table-pagination button{min-width:34px;height:34px;padding:0 9px;border:1px solid var(--border,#cbd7e6);border-radius:6px;background:var(--surface,#fff);color:var(--text,#24364b);font-weight:700}
#studentSchool .school-table-pagination button.active{background:var(--primary,#2878c7);border-color:var(--primary,#2878c7);color:#fff}
#studentSchool .school-table-pagination button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){#studentSchool .school-students-toolbar{grid-template-columns:1fr 1fr}#studentSchool .school-students-toolbar .school-student-search-label{grid-column:1/-1}#studentSchool .school-table-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){#studentSchool .school-students-toolbar{grid-template-columns:1fr}#studentSchool .school-students-toolbar .school-student-search-label{grid-column:auto}}


/* CSS extraído da posição original 666124 */
#studentSchool .school-activities-toolbar{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(180px,1fr) minmax(110px,.45fr);gap:14px;align-items:end;margin:4px 0 14px}
#studentSchool .school-activities-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#173b70}
#studentSchool .school-activities-toolbar input,#studentSchool .school-activities-toolbar select{width:100%;min-height:40px;padding:9px 12px;border:1px solid #cbd9eb;border-radius:8px;background:#fff;color:#173b70;font:inherit}
#studentSchool .school-activities-page-size{min-width:110px}
#studentSchool #schoolActivityList.school-table-wrap{width:100%;overflow-x:auto;border:1px solid #d4dfec;border-radius:9px;background:#fff}
#studentSchool #schoolActivityList .school-data-table{width:100%;min-width:1050px;border-collapse:collapse;background:#fff;color:#173b70;font-size:12px}
#studentSchool #schoolActivityList .school-data-table th{padding:13px 11px;background:#edf2f8;color:#52647a;border-bottom:1px solid #cbd9eb;text-align:left;font-size:10px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;white-space:nowrap}
#studentSchool #schoolActivityList .school-data-table td{padding:12px 11px;border-bottom:1px solid #e1e8f2;color:#334b69;vertical-align:middle;background:#fff}
#studentSchool #schoolActivityList .school-data-table tbody tr:nth-child(even) td{background:#f5f8fc}
#studentSchool #schoolActivityList .school-data-table tbody tr:hover td{background:#eaf2fc}
#studentSchool #schoolActivityList .school-data-table tbody tr:last-child td{border-bottom:0}
#studentSchool #schoolActivityList .school-activity-title{min-width:190px;color:#173b70;font-weight:750}
#studentSchool #schoolActivityList .school-activity-description{display:block;max-width:300px;margin-top:4px;color:#72849a;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#studentSchool #schoolActivityList .school-activity-recipient{display:block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#studentSchool #schoolActivityList .school-activity-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:20px;font-size:10px;font-weight:800;white-space:nowrap}
#studentSchool #schoolActivityList .school-activity-badge.publicada{background:#dcfce7;color:#166534}
#studentSchool #schoolActivityList .school-activity-badge.rascunho{background:#fff3cd;color:#8a5a00}
#studentSchool #schoolActivityList .school-activity-badge.inativa{background:#e8edf3;color:#52647a}
#studentSchool #schoolActivityList .school-activity-table-actions{display:flex;align-items:center;gap:6px;min-width:160px}
#studentSchool #schoolActivityList .school-activity-table-actions button{width:auto;margin:0;padding:7px 9px;font-size:11px;white-space:nowrap}
#studentSchool .school-activities-empty{padding:34px 18px;text-align:center;color:#64748b;background:#fff;font-size:14px}
@media(max-width:760px){#studentSchool .school-activities-toolbar{grid-template-columns:1fr 1fr}#studentSchool .school-activities-toolbar label:first-child{grid-column:1/-1}}


/* CSS extraído da posição original 1543568 */
/* Layout institucional inspirado na referência: sidebar fixa e área de trabalho */
#studentSchool.school-app{display:grid;grid-template-columns:250px minmax(0,1fr);gap:0;max-width:1500px;width:100%;min-height:calc(100vh - 115px);margin:0 auto 28px;padding:0;overflow:hidden;border:1px solid #e1e8f2;border-radius:14px;background:#f4f7fb;color:#172b4d;box-shadow:0 8px 28px rgba(23,59,112,.07)}
#studentSchool.school-app.hidden{display:none}
.school-sidebar{display:flex;flex-direction:column;min-height:100%;padding:22px 14px;background:#fff;border-right:1px solid #e1e8f2}
.school-sidebar-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 25px;border-bottom:1px solid #edf1f6}.school-brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:#173b70;color:#fff;font-size:19px;font-weight:800}.school-sidebar-brand strong{display:block;font-size:14px;color:#173b70}.school-sidebar-brand small{display:block;margin-top:3px;color:#64748b;font-size:10px}
.school-sidebar-caption{margin:25px 10px 10px;color:#8290a3;font-size:9px;font-weight:800;letter-spacing:.12em}.school-side-nav{display:grid;gap:5px}.school-side-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:8px;color:#58677b;text-decoration:none;font-size:12px;font-weight:650;transition:.15s}.school-side-nav a span{width:18px;text-align:center;font-size:17px}.school-side-nav a:hover,.school-side-nav a.active{background:#eaf2fc;color:#173b70}.school-side-nav a.active{box-shadow:inset 3px 0 #347fc0}
.school-sidebar-bottom{display:grid;gap:8px;margin-top:auto;padding-top:22px}.school-side-theme,.school-side-back{width:100%;padding:10px 11px;border:1px solid #e1e8f2;border-radius:8px;background:#fff;color:#52647a;text-align:left;font:600 11px Arial,sans-serif;cursor:pointer}.school-side-theme:hover,.school-side-back:hover{border-color:#9db9da;background:#f5f8fc}.school-main-area{min-width:0;background:#f4f7fb}.school-topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:78px;padding:15px 28px;background:#fff;border-bottom:1px solid #e1e8f2}.school-topbar-kicker{display:block;margin-bottom:5px;color:#8290a3;font-size:9px;font-weight:800;letter-spacing:.12em}.school-topbar h2{margin:0;color:#173b70;font-size:20px}.school-topbar-right{display:flex;align-items:center;gap:9px;color:#64748b;font-size:11px}.school-user-dot{color:#347fc0;font-size:18px}.school-content-area{padding:24px 28px 30px;min-width:0}.school-content-area #studentSchoolTitle{scroll-margin-top:18px}.school-content-area .school-head{margin-bottom:20px}.school-content-area .school-head h2{display:none}.school-content-area .school-head-icon{width:44px;height:44px;font-size:22px}.school-content-area .school-overview{margin-top:8px}.school-content-area .school-work-panel{scroll-margin-top:18px}.school-legacy-back{display:none}

/* Proteção estrutural da Visão geral: os painéis operacionais não podem aparecer nela,
   mesmo que uma rotina assíncrona altere classes de visibilidade. */
#studentSchool[data-school-view="inicio"] #schoolProfessorRequestPanel,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolTeacherRequestsPanel,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolClassesPanel,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolClassDetail,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolStudentsPanel,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolProfessorPanel,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolStatisticsPanel,
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > #schoolActivitiesPanel,
#studentSchool[data-school-view="inicio"] #schoolStudentPanel,
#studentSchool[data-school-view="inicio"] #schoolDoubtsPanel,
#studentSchool[data-school-view="inicio"] #schoolNoticesPanel {
  display: none !important;
}
#studentSchool[data-school-view="inicio"] #schoolTeacherPanel > .school-overview {
  display: grid !important;
}
body.site-dark #studentSchool.school-app{background:#0b111a;color:#eaf1f8;border-color:#263b51}body.site-dark #studentSchool .school-sidebar{background:#101a27;border-color:#263b51}body.site-dark #studentSchool .school-sidebar-brand{border-color:#263b51}body.site-dark #studentSchool .school-sidebar-brand strong,body.site-dark #studentSchool .school-topbar h2{color:#eaf1f8}body.site-dark #studentSchool .school-sidebar-brand small,body.site-dark #studentSchool .school-sidebar-caption{color:#91a5bb}body.site-dark #studentSchool .school-side-nav a{color:#b5c4d5}body.site-dark #studentSchool .school-side-nav a:hover,body.site-dark #studentSchool .school-side-nav a.active{background:#1b3550;color:#eaf1f8}body.site-dark #studentSchool .school-main-area{background:#0b111a}body.site-dark #studentSchool .school-topbar{background:#101a27;border-color:#263b51}body.site-dark #studentSchool .school-topbar-right{color:#a9bacb}body.site-dark #studentSchool .school-side-theme,body.site-dark #studentSchool .school-side-back{background:#142337;color:#dce8f5;border-color:#2b4966}body.site-dark #studentSchool .school-membership,body.site-dark #studentSchool .school-overview article,body.site-dark #studentSchool .school-work-panel,body.site-dark #studentSchool .school-redeem,body.site-dark #studentSchool .school-class-list{background:#111e2d;color:#eaf1f8;border-color:#2b4158}body.site-dark #studentSchool .school-panel-heading h3,body.site-dark #studentSchool .school-panel-heading p,body.site-dark #studentSchool .school-overview span,body.site-dark #studentSchool .school-head p{color:#a9bacb}
@media(max-width:850px){#studentSchool.school-app{grid-template-columns:190px minmax(0,1fr)}.school-content-area{padding:20px 17px}.school-topbar{padding:14px 18px}}
.school-nav-group{display:grid;gap:4px}.school-side-nav .school-nav-group>a{position:relative}.school-side-nav .school-nav-chevron{margin-left:auto;width:auto;font-size:15px;transition:transform .15s}.school-nav-group.expanded .school-nav-chevron{transform:rotate(180deg)}.school-subnav{display:grid;gap:3px;margin:0 0 7px 28px;padding-left:10px;border-left:2px solid #dbe7f5}.school-side-nav .school-subnav a{padding:8px 9px;font-size:11px;font-weight:550;color:#64748b}.school-side-nav .school-subnav a:hover,.school-side-nav .school-subnav a.active{background:#eaf2fc;color:#173b70;box-shadow:inset 2px 0 #347fc0}.school-subnav.hidden{display:none}body.site-dark #studentSchool .school-subnav{border-color:#2b4966}body.site-dark #studentSchool .school-side-nav .school-subnav a{color:#b5c4d5}body.site-dark #studentSchool .school-side-nav .school-subnav a:hover,body.site-dark #studentSchool .school-side-nav .school-subnav a.active{background:#1b3550;color:#eaf1f8}
@media(max-width:620px){#studentSchool.school-app{grid-template-columns:1fr;min-height:0}.school-sidebar{padding:10px 12px;border-right:0;border-bottom:1px solid #e1e8f2}.school-sidebar-brand{padding:3px 4px 10px}.school-sidebar-caption,.school-sidebar-bottom{display:none}.school-side-nav{display:flex;overflow-x:auto;gap:4px;padding-top:9px}.school-side-nav a{white-space:nowrap;padding:9px 10px}.school-side-nav a span{display:none}.school-topbar{min-height:65px}.school-topbar-right{display:none}.school-content-area{padding:16px 12px}.school-content-area .school-membership{grid-template-columns:1fr}.school-content-area .school-overview{grid-template-columns:1fr 1fr}.school-content-area .school-overview article:last-child{grid-column:1/-1}}

.school-stats-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto;gap:12px;align-items:end;padding:15px;margin:14px 0;border:1px solid var(--line,#dce4ef);border-radius:12px;background:var(--surface,#fff)}
.school-stats-filters label{display:grid;gap:6px;color:#425570;font-size:12px;font-weight:700}.school-stats-filters input,.school-stats-filters select{width:100%;min-width:0;padding:10px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;color:#173b70;font:inherit}
.school-stats-dashboard{display:grid;gap:16px}.school-stats-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.school-stats-kpi,.school-stats-card{padding:16px;border:1px solid #e1e8f2;border-radius:12px;background:#fff}.school-stats-kpi span{display:block;color:#64748b;font-size:11px}.school-stats-kpi strong{display:block;margin-top:7px;color:#173b70;font-size:25px}.school-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.school-stats-card h4{margin:0 0 13px;color:#173b70;font-size:14px}.school-stats-table{width:100%;border-collapse:collapse;font-size:12px}.school-stats-table th,.school-stats-table td{padding:9px 7px;border-bottom:1px solid #edf1f6;text-align:left}.school-stats-table th{color:#64748b;font-weight:700}.school-stats-bar{height:8px;min-width:55px;overflow:hidden;border-radius:8px;background:#e9eef5}.school-stats-bar span{display:block;height:100%;border-radius:8px;background:#347fc0}.school-stats-empty{padding:22px;border:1px dashed #cbd8e8;border-radius:12px;color:#64748b;text-align:center;background:#fff}
body.site-dark #studentSchool .school-stats-kpi,body.site-dark #studentSchool .school-stats-card,body.site-dark #studentSchool .school-stats-filters,body.site-dark #studentSchool .school-stats-empty{background:#101a27;border-color:#263b51;color:#dbe7f3}body.site-dark #studentSchool .school-stats-kpi strong,body.site-dark #studentSchool .school-stats-card h4{color:#eaf1f8}body.site-dark #studentSchool .school-stats-filters label{color:#b5c4d5}
@media(max-width:900px){.school-stats-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.school-stats-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.school-stats-grid{grid-template-columns:1fr}.school-stats-filters{grid-template-columns:1fr}}


/* CSS extraído da posição original 1553323 */
.simulado-ia-search-results{position:absolute;z-index:1000;left:0;right:0;top:100%;max-height:260px;overflow:auto;background:#fff;border:1px solid #cbd8eb;border-radius:9px;box-shadow:0 8px 22px rgba(20,45,80,.14)}
.simulado-ia-search-results button{display:block;width:100%;padding:10px 12px;text-align:left;background:#fff;border:0;color:#12315a;cursor:pointer}
.simulado-ia-search-results button:hover{background:#edf4ff}
#simuladoIAMateriaDropdown[open] #simuladoIAMateriaOptions{display:block!important}
.simulado-ia-materia-option{display:flex;align-items:center;gap:9px;padding:7px 2px;font-weight:400;cursor:pointer}
.simulado-ia-materia-option input{width:17px;height:17px;accent-color:#1769d2}
#simuladoIAMateriaSummary::-webkit-details-marker{display:none}

#studentSimuladoIA .form-grid label{position:relative;min-width:0}

/* Gestão de Editais IA — BraboSimulados */
.edital-admin-view { padding:20px !important; }
.edital-workflow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0; }
.edital-workflow-step { display:flex; align-items:center; gap:10px; padding:13px; border:1px solid #dce7f5; border-radius:12px; background:#f7faff; }
.edital-workflow-step > span { display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; border-radius:50%; background:#e4eefb; color:#173b70; font-weight:800; }
.edital-workflow-step strong,.edital-workflow-step small { display:block; }
.edital-workflow-step strong { color:#173b70; font-size:13px; }
.edital-workflow-step small { color:#64748b; font-size:11px; margin-top:2px; }
.edital-admin-card { margin:16px 0; padding:20px; border:1px solid #dce6f2; border-radius:14px; background:#fff; box-shadow:0 5px 18px #173b7008; }
.edital-card-heading h3,.edital-list-toolbar h3 { margin:0 0 5px; color:#173b70; }
.edital-card-heading p,.edital-list-toolbar p { margin:0; color:#64748b; font-size:13px; }
.edital-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin-top:18px; }
.edital-form-grid label,.edital-list-filters label { display:flex; flex-direction:column; gap:7px; color:#29486e; font-size:13px; font-weight:700; }
.edital-form-grid label > span { color:#c2410c; }
.edital-form-grid input,.edital-form-grid select,.edital-list-filters input,.edital-list-filters select { width:100%; min-height:42px; border:1px solid #cbd8e8; border-radius:9px; padding:9px 11px; color:#173b70; background:#fff; }
.edital-file-field { grid-column:1/-1; padding:14px; border:1px dashed #a9bfdc; border-radius:10px; background:#f8fbff; }
.edital-file-field input { border:0; padding:5px 0; }
.edital-file-field small { color:#64748b; font-weight:500; }
.edital-form-actions { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-top:18px; }
.edital-form-actions p { margin:0; max-width:650px; font-size:13px; }
.edital-list-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.edital-list-filters { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(220px,1.2fr); gap:12px; margin:18px 0 12px; }
.edital-table-wrap { width:100%; overflow-x:auto; }
.edital-table { width:100%; border-collapse:collapse; min-width:850px; font-size:13px; }
.edital-table th { padding:12px 10px; text-align:left; color:#526985; background:#f3f7fc; font-size:11px; letter-spacing:.04em; white-space:nowrap; }
.edital-table td { padding:13px 10px; border-bottom:1px solid #e8eef6; color:#334b68; vertical-align:middle; }
.edital-table td small { display:block; margin-top:4px; color:#718096; }
.edital-empty { padding:24px !important; text-align:center; color:#718096 !important; }
.edital-version { display:inline-block; padding:4px 8px; border-radius:7px; background:#edf4fd; color:#173b70; font-weight:800; }
.edital-status { display:inline-block; padding:5px 8px; border-radius:7px; background:#eef2f7; color:#475569; font-size:11px; font-weight:750; white-space:nowrap; }
.edital-status-vigente { background:#e7f7ed; color:#16703b; }
.edital-status-rejeitado,.edital-status-erro { background:#fff0f0; color:#b42318; }
.edital-status-aguardando_aprovacao,.edital-status-aguardando_analise,.edital-status-analisando { background:#fff7e8; color:#9a5b00; }
.edital-open-file { padding:7px 10px; border:1px solid #c9d9ed; border-radius:8px; background:#f7faff; color:#173b70; font-weight:700; cursor:pointer; }
.edital-open-file:hover { background:#eaf2fc; }
@media(max-width:800px) { .edital-workflow { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .edital-admin-view { padding:13px !important; } .edital-admin-card { padding:14px; } .edital-form-grid,.edital-list-filters { grid-template-columns:1fr; } .edital-file-field { grid-column:auto; } .edital-workflow { gap:7px; } .edital-workflow-step { padding:9px; } .edital-form-actions button { width:100%; } }

.edital-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:190px}.edital-analyze-button{padding:7px 10px;border:1px solid #b8d0ee;border-radius:8px;background:#eaf3ff;color:#173b70;font-weight:750;cursor:pointer}.edital-analyze-button:disabled{opacity:.6;cursor:wait}.edital-content-table{min-width:900px}.edital-content-table td{max-width:360px;white-space:normal;overflow-wrap:anywhere}.edital-content-table td small{white-space:normal}.edital-content-table strong{color:#173b70}


/* =========================================================
   MINHA ESCOLA — DÚVIDAS E AVISOS
   ========================================================= */
#studentSchool .school-side-nav a .school-nav-badge {
  margin-left: auto;
  width: auto !important;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#studentSchool .school-comm-panel {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #dce6f2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(23, 59, 112, 0.04);
}
#studentSchool .school-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
#studentSchool .school-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #cbd8e8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #173b70 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 45, 80, 0.05) !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#studentSchool .school-icon-btn svg {
  transition: transform 0.3s ease;
}
#studentSchool .school-icon-btn:hover {
  background: #edf4fc !important;
  border-color: #347fc0 !important;
  color: #102d57 !important;
}
#studentSchool .school-icon-btn:hover svg {
  transform: rotate(90deg);
}
#studentSchool .school-btn-compact {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  height: 36px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(23, 59, 112, 0.14) !important;
}
#studentSchool .school-btn-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  height: 36px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 1px solid #cbd8e8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#studentSchool .school-btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #1e293b !important;
}
#studentSchool .school-comm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  margin: 0 0 20px;
  border: 1px solid #d6e4f5;
  border-radius: 12px;
  background: #f8fbff;
}
#studentSchool .school-comm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
#studentSchool .school-comm-field label {
  display: block;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 700;
  color: #173b70;
}
#studentSchool .school-comm-field input,
#studentSchool .school-comm-field textarea {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 11px 14px !important;
  border: 1px solid #cbd8e8 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #172b4d !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}
#studentSchool .school-comm-field textarea {
  min-height: 150px !important;
  resize: vertical;
}
#studentSchool .school-comm-field input:focus,
#studentSchool .school-comm-field textarea:focus {
  outline: none !important;
  border-color: #347fc0 !important;
  box-shadow: 0 0 0 3px rgba(52, 127, 192, 0.14) !important;
}
#studentSchool .school-comm-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
#studentSchool .school-comm-list {
  display: grid;
  gap: 10px;
}
#studentSchool .school-comm-list .school-empty {
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed #cbd8e8;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13.5px;
}
#studentSchool .school-doubt-card {
  cursor: pointer;
  background: #ffffff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#studentSchool .school-doubt-card:hover {
  border-color: #347fc0;
  background: #f5f9ff;
  box-shadow: 0 2px 8px rgba(23, 59, 112, 0.06);
}
#studentSchool .school-notice-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border, #dce4ef);
  border-radius: 12px;
  background: var(--surface, #fff);
}
#studentSchool .school-notice-body {
  min-width: 0;
  flex: 1;
}
#studentSchool .school-notice-body strong {
  display: block;
  font-size: 15px;
  color: var(--brand, #173b70);
}
#studentSchool .school-notice-body p {
  margin: 8px 0;
  color: var(--text, #334155);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#studentSchool .school-notice-body small {
  color: var(--muted, #64748b);
  font-size: 12px;
}
#studentSchool .school-doubt-detail {
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--border, #d6e4f5);
  border-radius: 12px;
  background: var(--surface, #fff);
}
#studentSchool .school-doubt-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #e6eef8);
}
#studentSchool .school-doubt-detail-head h4 {
  margin: 10px 0 4px;
  font-size: 17px;
  color: var(--brand, #173b70);
}
#studentSchool .school-doubt-back-btn {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}
#studentSchool .school-doubt-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#studentSchool .school-doubt-messages {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
#studentSchool .school-doubt-bubble {
  padding: 10px 14px;
  border-radius: 11px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#studentSchool .school-doubt-bubble.mine {
  justify-self: end;
  background: #e8f1fd;
  border: 1px solid #bfdbfe;
  color: #102d57;
}
#studentSchool .school-doubt-bubble.other {
  justify-self: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
#studentSchool .school-doubt-bubble-meta {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: .78;
}
#studentSchool .school-doubt-reply-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
#studentSchool .school-doubt-reply-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 8px 12px;
}
/* Modo noturno para Dúvidas e Avisos */
body.site-dark #studentSchool .school-comm-panel,
body.site-dark #studentSchool .school-comm-form,
body.site-dark #studentSchool .school-doubt-detail,
body.site-dark #studentSchool .school-notice-card,
body.site-dark #studentSchool .school-doubt-card {
  background: #111e2d;
  border-color: #2b4158;
  color: #eaf1f8;
}
body.site-dark #studentSchool .school-comm-field label {
  color: #cbd5e1;
}
body.site-dark #studentSchool .school-comm-field input,
body.site-dark #studentSchool .school-comm-field textarea {
  background: #0c1724 !important;
  border-color: #35516c !important;
  color: #edf4fb !important;
}
body.site-dark #studentSchool .school-icon-btn,
body.site-dark #studentSchool .school-btn-outline {
  background: #142337 !important;
  border-color: #2b4966 !important;
  color: #dceeff !important;
}
body.site-dark #studentSchool .school-icon-btn:hover,
body.site-dark #studentSchool .school-btn-outline:hover {
  background: #1d3552 !important;
  border-color: #438bd0 !important;
}
body.site-dark #studentSchool .school-comm-list .school-empty {
  background: #0e1926;
  border-color: #2b4158;
  color: #94a3b8;
}
body.site-dark #studentSchool .school-doubt-card:hover {
  background: #17283d;
  border-color: #438bd0;
}
body.site-dark #studentSchool .school-notice-body strong,
body.site-dark #studentSchool .school-doubt-detail-head h4 {
  color: #eaf1f8;
}
body.site-dark #studentSchool .school-notice-body p {
  color: #cbd5e1;
}
body.site-dark #studentSchool .school-doubt-detail-head {
  border-color: #263b51;
}
body.site-dark #studentSchool .school-doubt-bubble.mine {
  background: #1b3a5c;
  border-color: #2e5d8f;
  color: #eaf2fc;
}
body.site-dark #studentSchool .school-doubt-bubble.other {
  background: #172434;
  border-color: #2b4158;
  color: #dbe7f3;
}
@media(max-width:620px) {
  #studentSchool .school-side-nav a .school-nav-badge {
    display: inline-flex !important;
    margin-left: 6px;
  }
  #studentSchool .school-panel-actions {
    width: 100%;
    justify-content: flex-end;
  }
  #studentSchool .school-doubt-reply-form {
    flex-direction: column;
    align-items: stretch;
  }
  #studentSchool .school-notice-card {
    flex-direction: column;
  }
}
