
:root {
  --casca-cabecalho: 52px;
  --casca-botao: 36px;
  --casca-margem: 16px;
  --casca-secao: 22px;
  --casca-cartao: 14px;
}
@media (max-width: 57.99rem) {
  :root {
    --goteira: 16px;
  }
  html,
  body {
    background: var(--bg) !important;
    overscroll-behavior: none !important;
  }
  body::before { display: none !important; }
  .app-shell,
  .workspace,
  .workspace-layout,
  .content-area,
  .manager-workspace,
  .student-workspace {
    background: var(--bg) !important;
  }
  body.is-student-view,
  body.is-student-view .app-shell,
  body.is-student-view .workspace,
  body.is-student-view .workspace-layout,
  body.is-student-view .content-area,
  body.is-student-view .student-workspace {
    background: var(--k-fundo) !important;
  }
  .workspace-header,
  .manager-header,
  body.is-student-view .student-header {
    position: sticky !important;
    top: 0;
    z-index: 24;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: calc(var(--safe-top, 0px) + var(--casca-cabecalho)) !important;
    padding: var(--safe-top, 0px) var(--casca-margem) 0 !important;
    background: var(--bg) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.is-student-view .student-header { background: var(--k-fundo) !important; }
  body.is-student-view,
  .kit-do-aluno {
    --recuo-topo: var(--safe-top, 0px);
    --k-cabecalho: var(--casca-cabecalho);
    --k-margem: var(--casca-margem);
    --goteira: var(--casca-margem);
  }
  .manager-header .manager-marca img,
  .manager-header .brand-logo,
  body.is-student-view .student-header .brand-logo,
  body.is-student-view .student-header .brand-inline img {
    object-fit: contain;
  }
  .manager-header .header-actions,
  body.is-student-view .student-header .header-actions {
    display: flex;
    align-items: center;
    gap: var(--esp-3) !important;
    margin-left: auto;
  }
  .manager-header .avatar-button,
  .manager-header .notification-button,
  body.is-student-view .student-header .avatar-button,
  body.is-student-view .student-header .notification-button {
    width: var(--casca-botao) !important;
    height: var(--casca-botao) !important;
    min-width: var(--casca-botao) !important;
    min-height: var(--casca-botao) !important;
  }
  @media (max-width: 28rem) {
    .manager-header .notification-button { display: grid !important; }
  }
  .cfg-head {
    box-sizing: border-box;
    min-height: calc(var(--safe-top, 0px) + var(--casca-cabecalho));
    margin: 0 calc(-1 * var(--casca-margem));
    padding: var(--safe-top, 0px) var(--casca-margem) 0;
    background: var(--bg);
    box-shadow: none;
  }
  .cfg-voltar {
    width: var(--casca-botao);
    height: var(--casca-botao);
  }
  .cfg-head-titulo {
    font-size: 17px;
    font-weight: 600;
  }
  .cfg-tela { margin-inline: 0; }
  body.is-mgr-fullscreen .manager-workspace .workspace-layout:has(.cfg-tela > .cfg-head:first-child) {
    padding-top: 0 !important;
  }
  body.is-student-view .tela-filha-cabecalho {
    box-sizing: border-box;
    min-height: var(--casca-cabecalho);
    padding-top: 0;
    background: var(--k-fundo);
  }
  body.is-student-view .tela-filha-titulo { font-size: 17px; font-weight: 600; }
  body.is-student-view:has(.student-header[hidden]) .tela-filha-cabecalho {
    top: 0;
    min-height: calc(var(--safe-top, 0px) + var(--casca-cabecalho));
    padding-top: var(--safe-top, 0px);
  }
  .modal.modal-fullscreen .modal-panel { background: var(--bg) !important; }
  body.is-student-view .modal.modal-fullscreen .modal-panel { background: var(--k-fundo) !important; }
  .modal.modal-fullscreen .modal-head.is-tela {
    box-sizing: border-box;
    min-height: calc(var(--safe-top, 0px) + var(--casca-cabecalho));
    padding: var(--safe-top, 0px) var(--casca-margem) 0;
    background: inherit;
  }
  .modal.modal-fullscreen .modal-head.is-tela > h2 { font-size: 17px; font-weight: 600; }
  .modal.modal-fullscreen .modal-head.is-tela > [data-tela-voltar] { width: var(--casca-botao); height: var(--casca-botao); }
  .modal.modal-fullscreen #modalBody { padding-inline: var(--casca-margem); }
  #managerBottomNav,
  #studentBottomNav,
  .bottom-nav {
    background: var(--bg) !important;
    border-top: 1px solid var(--line) !important;
  }
  body.is-student-view #studentBottomNav,
  body.is-student-view .bottom-nav {
    background: var(--k-fundo) !important;
    border-top-color: var(--k-fio) !important;
  }
  html,
  body,
  .app-shell,
  .workspace,
  .workspace-layout,
  .content-area {
    overflow-x: clip !important;
    max-width: 100vw;
  }
  .content-stack > *,
  .panel > *,
  .cfg-lista > *,
  .form-grid > *,
  .field > * {
    min-width: 0;
  }
  .content-stack,
  .panel,
  .field input,
  .field select,
  .field textarea {
    max-width: 100%;
  }
  body.teclado-aberto:has(:is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus) .barra-de-acao-fixa,
  body.teclado-aberto:has(:is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus) #managerBottomNav,
  body.teclado-aberto:has(:is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus) #studentBottomNav,
  body.teclado-aberto:has(:is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus) .bottom-nav,
  body.teclado-aberto:has(:is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus) .modal-foot {
    display: none !important;
  }
  .workspace-layout { padding-inline: var(--casca-margem) !important; }
  .panel { padding: var(--casca-cartao); }
  .cfg-tela.content-stack { gap: var(--esp-3); }
  .cfg-tela > .cfg-cartao-rotulo {
    margin: calc(var(--casca-secao) - var(--esp-3)) 0 0;
    font-size: 11px;
  }
  .cfg-tela > .cfg-head + .cfg-cartao-rotulo { margin-top: calc(var(--casca-secao) - var(--esp-3)); }
  .cfg-tela > .panel + .panel,
  .cfg-tela > .cfg-lista + .cfg-lista { margin-top: calc(var(--casca-secao) - var(--esp-3)); }
  .cfg-tela > .barra-de-acao-fixa { margin-top: 0; }
}
input[type="checkbox"][role="switch"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  margin: 0;
  border: 1px solid var(--borda, var(--line));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
input[type="checkbox"][role="switch"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 150ms ease, background 150ms ease;
}
input[type="checkbox"][role="switch"]:checked {
  border-color: var(--brand);
  background: var(--brand);
}
input[type="checkbox"][role="switch"]:checked::after {
  background: var(--brand-ink);
  transform: translateX(18px);
}
input[type="checkbox"][role="switch"]:disabled { opacity: 0.45; cursor: default; }
input[type="checkbox"][role="switch"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
label.linha-com-interruptor,
.linha-com-interruptor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-4);
  min-height: 44px;
  cursor: pointer;
}
.linha-com-interruptor > span { flex: 1 1 auto; min-width: 0; order: 1; }
.linha-com-interruptor > input[role="switch"] { order: 2; }
.ap-student-row input[type="checkbox"][role="switch"] { order: 9; margin-left: auto; }
.importar-marcar[role="switch"] { margin: 4px 0; }
.check-chip input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.check-chip { position: relative; }
.check-chip:has(input:checked) { border-color: var(--brand); background: var(--marca-lavagem, rgba(255, 255, 255, 0.06)); color: var(--brand-strong, var(--brand)); }
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ns-pc-op { position: relative; grid-template-columns: minmax(0, 1fr); }
.ns-pc-op input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
