.panel,
.hero-card,
.metric-card,
.table-card,
.login-card,
.empty-card,
.roster-list-card,
.roster-filter-bar,
.sidebar-user {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.panel,
.table-card,
.login-card,
.empty-card,
.sidebar-user {
  padding: 14px;
}

.hero-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.hero-card h2,
.empty-card h3,
.table-card h3,
.table-card h4,
.panel h2,
.panel h3 {
  margin: 0;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
}

.metric-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.metric-card__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.metric-card__label {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 400;
}

.metric-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.metric-card--neutral .metric-card__icon {
  background: var(--ic-total-bg);
  color: var(--ic-total-text);
}

.metric-card--done .metric-card__icon {
  background: var(--ic-ok-bg);
  color: var(--ic-ok-text);
}

.metric-card--progress .metric-card__icon {
  background: var(--ic-wait-bg);
  color: var(--ic-wait-text);
}

.metric-card--pending .metric-card__icon {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.eyebrow {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}

.nav-list {
  display: grid;
  gap: 3px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--text-2);
  transition: var(--transition-ui);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-link.is-active {
  color: var(--teal-dark);
  background: var(--active-bg);
}

.nav-link-label {
  font-size: 12px;
}

.menu-icon {
  color: var(--text-2);
  font-size: 14px;
}

.nav-link.is-active .menu-icon {
  color: var(--teal);
}

.button,
.secondary-button,
.ghost-button,
.danger-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition-ui);
}

.button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.button {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
}

.secondary-button,
.ghost-button {
  background: var(--card);
}

.danger-button {
  color: var(--danger-text);
  background: var(--card);
}

.button-icon,
.menu-button-icon {
  font-size: 14px;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-chip {
  appearance: none;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-ui);
}

.toggle-chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.toggle-chip.is-active {
  border-color: #cfe1e0;
  background: var(--active-bg);
  color: var(--teal-dark);
}

.status-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill {
  border: 1px solid transparent;
}

.status-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill--pending {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.status-pill--progress {
  background: var(--ic-wait-bg);
  color: var(--ic-wait-text);
}

.status-pill--done {
  background: var(--ic-ok-bg);
  color: var(--ic-ok-text);
}

.role-pill {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  font-size: 11px;
}

.person-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #eef4f2;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  object-fit: cover;
  flex-shrink: 0;
}

.person-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.person-title strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.person-title span,
.muted {
  color: var(--text-2);
  font-size: 10.5px;
}

.form-grid,
.table-list,
.auth-form,
.field,
.inline-form,
.content-columns {
  display: grid;
  gap: 12px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.auth-form__notice,
.auth-form__error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #e4aaa6;
  border-radius: var(--radius-control);
  background: #fcebeb;
  color: var(--danger-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-form__notice {
  border-color: color-mix(in srgb, var(--teal) 38%, var(--border));
  background: color-mix(in srgb, var(--teal) 10%, var(--surface));
  color: var(--text-1);
}

.auth-form__notice[hidden],
.auth-form__error[hidden] {
  display: none;
}

.field label {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.search-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--field-bg);
  color: var(--text);
  padding: 8px 10px;
  transition: var(--transition-ui);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.search-field input:hover {
  border-color: var(--teal);
}

.inline-form {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.table-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}

.empty-card {
  display: grid;
  gap: 6px;
  color: var(--text-2);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 12px 30px rgb(29 36 33 / 14%);
  animation: toast-enter 180ms ease-out;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
}

.toast__message {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.toast__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}

.toast__close:hover {
  background: var(--bg);
  color: var(--text);
}

.toast--success {
  border-left-color: var(--ic-ok-text);
}

.toast--success .toast__icon {
  background: var(--ic-ok-bg);
  color: var(--ic-ok-text);
}

.toast--error {
  border-left-color: var(--danger-text);
}

.toast--error .toast__icon {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.toast--info {
  border-left-color: var(--ic-total-text);
}

.toast--info .toast__icon {
  background: var(--ic-total-bg);
  color: var(--ic-total-text);
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-brand {
  display: grid;
  gap: 4px;
  min-height: 34px;
}

.sidebar-brand__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-turma {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin-left: 34px;
  padding: 2px 5px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--team-accent-bg);
  color: var(--team-accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.sidebar-turma--select {
  padding: 0;
  background: transparent;
}

.sidebar-turma__select {
  min-width: 82px;
  height: 28px;
  padding: 0 26px 0 9px;
  border: 1px solid #e7bfd0;
  border-radius: var(--radius-control);
  background-color: var(--team-accent-bg);
  color: var(--team-accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.sidebar-turma__select:hover {
  border-color: #d99ab4;
  background-color: #f7dce6;
}

.sidebar-turma__select:focus-visible {
  border-color: var(--team-accent);
  outline: 2px solid rgb(192 48 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 70%);
}

.sidebar-turma--restricted {
  padding: 2px 6px;
  cursor: pointer;
}

.sidebar-turma:hover,
.sidebar-turma:focus-within {
  background: #F7DCE6;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.brand-label {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-user {
  display: grid;
  gap: 8px;
}

.sidebar-user-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sidebar-user-link:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgb(0 96 93 / 12%);
  transform: translateY(-1px);
}

.sidebar-user-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.theme-toggle__option {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 180ms ease;
}

.theme-toggle__option.is-active {
  background: var(--card);
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.app-sidebar .sidebar-user {
  padding: 10px;
}

.app-sidebar .logout-button {
  min-height: 30px;
}

.logout-button {
  color: var(--danger-text);
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: var(--danger-text);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.logout-button:focus-visible {
  outline: 2px solid var(--danger-text);
  outline-offset: 2px;
}


.confirmation-dialog {
  width: min(400px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 18px 48px rgb(29 36 33 / 18%);
}

.confirmation-dialog::backdrop {
  background: #0f1115;
}

.confirmation-dialog__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
}

.confirmation-dialog__content h2,
.confirmation-dialog__content p {
  margin: 0;
}

.confirmation-dialog__content h2 {
  font-size: 15px;
}

.confirmation-dialog__content p {
  margin-top: 4px;
  color: var(--text-2);
}

.confirmation-dialog__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger-text);
}

.confirmation-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.confirmation-dialog__confirm:hover,
.confirmation-dialog__confirm:focus-visible {
  border-color: var(--danger-text);
  background: var(--danger-bg);
  color: var(--danger-text);
}


@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.status-pill--pending .status-pill__dot {
  animation: pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}

html[data-theme="dark"] .table-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .empty-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .roster-row,
html[data-theme="dark"] .roster-list-card,
html[data-theme="dark"] .roster-filter-bar,
html[data-theme="dark"] .sidebar-user {
  background: var(--card);
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .secondary-button:hover,
html[data-theme="dark"] .secondary-button:focus-visible,
html[data-theme="dark"] .ghost-button:hover,
html[data-theme="dark"] .ghost-button:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

html[data-theme="dark"] .theme-toggle__option.is-active {
  background: var(--active-bg);
  color: var(--text);
}

html[data-theme="dark"] option {
  background: var(--card);
  color: var(--text);
}

/* Professional solid dark surfaces. */
html[data-theme="dark"] .button,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .danger-button,
html[data-theme="dark"] .toggle-chip,
html[data-theme="dark"] .role-pill,
html[data-theme="dark"] .confirmation-dialog {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .button {
  border-color: #4fb9aa;
  background: #287a70;
  color: #f7fffc;
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button:focus-visible {
  border-color: #71d6c7;
  background: #338c81;
}

html[data-theme="dark"] .danger-button,
html[data-theme="dark"] .logout-button {
  color: var(--danger-text);
}

html[data-theme="dark"] .confirmation-dialog::backdrop {
  background: var(--drawer-backdrop);
}

/* App startup splash and loading skeletons. */
.app-splash {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  background: var(--bg);
  color: var(--text);
}

.app-splash__content {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 280px);
  text-align: center;
}

.app-splash__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.app-splash__title {
  margin: 4px 0 0;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.15;
}

.app-splash__subtitle {
  margin: 0;
  color: var(--team-accent);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0;
}

.app-splash__loader {
  position: relative;
  width: 112px;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 18%, var(--border));
}

.app-splash__loader::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: var(--teal);
  animation: app-splash-loader 900ms ease-in-out infinite;
}

.skeleton-line {
  display: block;
  width: 100%;
  min-height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-hover) 48%, var(--surface) 100%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1200ms ease-in-out infinite;
}

.skeleton-line--icon,
.skeleton-line--avatar {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.skeleton-line--wide { width: 72px; }
.skeleton-line--medium { width: 58px; }
.skeleton-line--short { width: 48px; }
.skeleton-line--number { width: 24px; min-height: 16px; }
.skeleton-line--name { width: min(150px, 48vw); min-height: 13px; }
.skeleton-line--status { width: 86px; min-height: 18px; }
.skeleton-line--label { width: 42px; min-height: 9px; }
.skeleton-line--time { width: 44px; min-height: 14px; }
.skeleton-line--button { width: 72px; min-height: 34px; border-radius: var(--radius-control); }
.skeleton-line--button-secondary { width: 64px; min-height: 34px; border-radius: var(--radius-control); }
.skeleton-line--count { width: 132px; min-height: 11px; }
.skeleton-line--search { width: 180px; min-height: 16px; }

@keyframes app-splash-loader {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(290%); }
}

@keyframes skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

html[data-theme="dark"] .app-splash {
  background: var(--bg);
}

html[data-theme="dark"] .app-splash__title {
  color: var(--teal);
}

html[data-theme="dark"] .skeleton-line {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-hover) 48%, var(--surface) 100%);
  background-size: 220% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .app-splash__loader::after,
  .skeleton-line {
    animation: none;
  }
}

@media (min-width: 1200px) {
  .sidebar-brand {
    gap: 8px;
    min-height: auto;
    padding: 2px 2px 12px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .sidebar-brand__identity {
    gap: 9px;
    min-width: 0;
    padding: 0 6px;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
    color: #ffffff;
    font-size: 19px;
  }

  .brand-label {
    overflow: hidden;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-turma {
    width: auto;
    margin-left: 37px;
    background: transparent;
    color: rgb(255 255 255 / 78%);
  }

  .sidebar-turma--select {
    width: calc(100% - 43px);
  }

  .sidebar-turma__select {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 29px;
    padding: 0 28px 0 9px;
    border-color: rgb(255 255 255 / 30%);
    background-color: #C0305E;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 650;
    box-shadow: 0 4px 10px rgb(74 19 39 / 16%);
  }

  .sidebar-turma__select:hover {
    border-color: rgb(255 255 255 / 44%);
    background-color: #A92952;
  }

  .sidebar-turma__select:focus-visible {
    border-color: #ffffff;
    outline: 2px solid rgb(192 48 94 / 30%);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 46%), 0 5px 12px rgb(74 19 39 / 20%);
  }

  .sidebar-turma__select option {
    background: #ffffff;
    color: #1d2421;
  }

  .sidebar-turma--restricted {
    border: 1px solid rgb(255 255 255 / 16%);
    background: rgb(255 255 255 / 8%);
  }

  .sidebar-turma:hover,
  .sidebar-turma:focus-within {
    background: rgb(255 255 255 / 12%);
  }

  .nav-list {
    gap: 2px;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 24%) transparent;
  }

  .nav-link {
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgb(255 255 255 / 72%);
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .nav-link:hover {
    border-color: rgb(255 255 255 / 8%);
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
  }

  .nav-link.is-active {
    border-color: rgb(255 255 255 / 10%);
    background: rgb(255 255 255 / 16%);
    color: #ffffff;
    box-shadow: inset 3px 0 0 rgb(255 255 255 / 86%);
  }

  .nav-link-label {
    font-size: 11.5px;
    font-weight: 600;
  }

  .nav-link .menu-icon,
  .nav-link.is-active .menu-icon {
    width: 18px;
    color: currentColor;
    font-size: 15px;
  }

  .sidebar-footer {
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid rgb(255 255 255 / 12%);
  }

  .theme-toggle {
    gap: 3px;
    padding: 3px;
    border-color: rgb(255 255 255 / 15%);
    border-radius: 8px;
    background: rgb(255 255 255 / 8%);
  }

  .theme-toggle__option {
    min-height: 28px;
    border-radius: 6px;
    color: rgb(255 255 255 / 68%);
    font-size: 10px;
  }

  .theme-toggle__option:hover {
    color: #ffffff;
  }

  .theme-toggle__option.is-active {
    background: #ffffff;
    color: #006f6c;
    box-shadow: none;
  }

  .app-sidebar .pwa-install-button {
    min-height: 34px;
    border-color: rgb(255 255 255 / 15%);
    border-radius: 7px;
    background: rgb(255 255 255 / 8%);
    color: rgb(255 255 255 / 78%);
    font-size: 10.5px;
    font-weight: 620;
    transform: none;
  }

  .app-sidebar .pwa-install-button:hover,
  .app-sidebar .pwa-install-button:focus-visible {
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 13%);
    color: #ffffff;
    transform: none;
  }

  .app-sidebar .pwa-install-button.is-installed {
    border-color: rgb(255 255 255 / 10%);
    background: rgb(255 255 255 / 5%);
    color: rgb(255 255 255 / 54%);
  }

  .app-sidebar .sidebar-user {
    padding: 9px;
    border-color: rgb(255 255 255 / 15%);
    border-radius: 7px;
    background: rgb(255 255 255 / 8%);
    color: #ffffff;
    box-shadow: none;
  }

  .app-sidebar .sidebar-user-link:hover {
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 13%);
    box-shadow: none;
    transform: none;
  }

  .app-sidebar .sidebar-user-link:focus-visible {
    outline-color: rgb(255 255 255 / 72%);
  }

  .app-sidebar .sidebar-user .avatar {
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 14%);
    color: #ffffff;
  }

  .app-sidebar .sidebar-user .person-title strong {
    color: #ffffff;
    font-size: 11.5px;
  }

  .app-sidebar .sidebar-user .person-title span {
    color: rgb(255 255 255 / 62%);
    font-size: 9.5px;
  }

  .app-sidebar .logout-button {
    min-height: 32px;
    border-color: rgb(255 255 255 / 14%);
    border-radius: 7px;
    background: transparent;
    color: rgb(255 255 255 / 72%);
    font-size: 10.5px;
  }

  .app-sidebar .logout-button:hover,
  .app-sidebar .logout-button:focus-visible {
    border-color: rgb(255 184 184 / 28%);
    background: rgb(123 28 36 / 22%);
    color: #ffffff;
  }

  html[data-theme="dark"] .app-sidebar,
  html[data-theme="dark"] .desktop-shell-header {
    border-color: var(--desktop-chrome-border);
    background: var(--desktop-chrome-bg);
  }

  html[data-theme="dark"] .theme-toggle__option.is-active {
    background: #28333f;
    color: #7ad4cb;
  }

  html[data-theme="dark"] .sidebar-brand,
  html[data-theme="dark"] .sidebar-footer {
    border-color: rgb(154 177 187 / 14%);
  }

  html[data-theme="dark"] .sidebar-turma--restricted,
  html[data-theme="dark"] .theme-toggle,
  html[data-theme="dark"] .app-sidebar .pwa-install-button,
  html[data-theme="dark"] .app-sidebar .sidebar-user,
  html[data-theme="dark"] .app-sidebar .logout-button {
    border-color: rgb(154 177 187 / 16%);
    background: rgb(255 255 255 / 5%);
  }

  html[data-theme="dark"] .nav-link {
    color: rgb(234 242 244 / 70%);
  }

  html[data-theme="dark"] .nav-link:hover {
    border-color: rgb(122 212 203 / 12%);
    background: rgb(122 212 203 / 8%);
    color: #f5fbfa;
  }

  html[data-theme="dark"] .nav-link.is-active {
    border-color: rgb(122 212 203 / 14%);
    background: rgb(122 212 203 / 12%);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #7ad4cb;
  }

  html[data-theme="dark"] .sidebar-turma:hover,
  html[data-theme="dark"] .sidebar-turma:focus-within,
  html[data-theme="dark"] .app-sidebar .pwa-install-button:hover,
  html[data-theme="dark"] .app-sidebar .pwa-install-button:focus-visible,
  html[data-theme="dark"] .app-sidebar .sidebar-user-link:hover {
    border-color: rgb(122 212 203 / 20%);
    background: rgb(122 212 203 / 9%);
  }

  html[data-theme="dark"] .sidebar-turma__select option {
    background: #202832;
    color: #f2f7f7;
  }
}
