/* shared: estilos consolidados por responsabilidade. */
.panel,
.hero-card,
.metric-card,
.table-card,
.login-card,
.empty-card,
.revezamento-lista-list-card,
.revezamento-lista-filter-bar,
.barra-lateral-user {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.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;
}

.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);
}

.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: 11px;
  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;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

img.avatar {
  display: block;
  max-width: none;
}

.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: 11px;
}

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

.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);
  }
}

.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;
}

.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: 11px;
  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);
}

.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"] .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) {

  .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;
  }

  .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: 11px;
  }

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

  .theme-toggle__option.is-active {
    background: rgb(255 255 255 / 15%);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 7%);
  }

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

@media (max-width: 1199px) {
  .page-header,
  .panel,
  .hero-card,
  .metric-card,
  .table-card,
  .empty-card,
  .central-toolbar,
  .central-filters,
  .central-summary,
  .central-composer,
  .central-directory,
  .central-scope,
  .central-role-card,
  .central-role-panel,
  .movimentacoes-table-wrap,
  .historico-snapshot,
  .historico-table-scroll {
    border: 1px solid rgb(255 255 255 / 54%);
    background: rgb(255 255 255 / 58%);
    box-shadow: 0 14px 34px rgb(31 46 48 / 11%), inset 0 1px 0 rgb(255 255 255 / 68%);
    backdrop-filter: none;
  }

  .central-summary,
  .central-directory,
  .historico-snapshot,
  .historico-table-scroll,
  .movimentacoes-table-wrap {
    overflow: hidden;
  }

  .central-row__main:hover,
  .historico-table tbody tr:hover,
  .movimentacoes-table tbody tr:hover {
    background: rgb(255 255 255 / 34%);
  }

  html[data-theme="dark"] .page-header,
  html[data-theme="dark"] .panel,
  html[data-theme="dark"] .hero-card,
  html[data-theme="dark"] .metric-card,
  html[data-theme="dark"] .table-card,
  html[data-theme="dark"] .empty-card,
  html[data-theme="dark"] .central-toolbar,
  html[data-theme="dark"] .central-filters,
  html[data-theme="dark"] .central-summary,
  html[data-theme="dark"] .central-composer,
  html[data-theme="dark"] .central-directory,
  html[data-theme="dark"] .central-scope,
  html[data-theme="dark"] .central-role-card,
  html[data-theme="dark"] .central-role-panel,
  html[data-theme="dark"] .movimentacoes-table-wrap,
  html[data-theme="dark"] .historico-snapshot,
  html[data-theme="dark"] .historico-table-scroll {
    border-color: var(--border);
    background: var(--card);
    box-shadow: 0 16px 36px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 8%);
  }

  html[data-theme="dark"] .central-row__main:hover,
  html[data-theme="dark"] .historico-table tbody tr:hover,
  html[data-theme="dark"] .movimentacoes-table tbody tr:hover {
    background: var(--active-bg);
  }
}

:root { --login-page: #eaf1f1; --login-panel: #ffffff; --login-panel-alt: #f6fbfa; --login-line: #dce6e6; --login-muted: #667477; --login-shadow: 0 28px 80px rgb(24 58 61 / 14%); }

html[data-theme="dark"] { --login-page: #0f1115; --login-panel: #1b2029; --login-panel-alt: #242b36; --login-line: #343c49; --login-muted: #c3cad4; --login-shadow: 0 28px 76px rgb(0 0 0 / 34%); }

.stats-row { grid-template-columns: 1fr; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.page-header-toolbar { justify-content: flex-end; }

.page-header-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px; }

.section-title h3, .section-title h4 { margin: 0px; color: var(--text); font-size: 13.5px; font-weight: 600; }

.capsule-list { display: flex; flex-wrap: wrap; gap: 8px; }

.capsule { padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 11px; }

.search-field { position: relative; flex: 1 1 280px; min-width: 220px; max-width: 360px; }

.search-field .ti { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: var(--text-3); font-size: 11px; }

.search-field input { height: 32px; padding-left: 30px; }

.empty-card p, .hero-card p, .panel p { margin: 0px; }

@media (min-width: 700px) {
  .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.movement-action { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }

.movement-action.is-direction { border-color: color-mix(in srgb, #6d5bd0 24%, var(--border)); background: color-mix(in srgb, #6d5bd0 8%, var(--card)); color: rgb(91, 74, 185); }

.movement-action.is-start { border-color: color-mix(in srgb, #0b8f75 24%, var(--border)); background: color-mix(in srgb, #0b8f75 8%, var(--card)); color: rgb(8, 116, 95); }

.movement-action.is-reset, .movement-action.is-remove { border-color: color-mix(in srgb, #c55b3d 24%, var(--border)); background: color-mix(in srgb, #c55b3d 8%, var(--card)); color: rgb(164, 74, 49); }

.movement-action.is-update { border-color: color-mix(in srgb, #3278b8 24%, var(--border)); background: color-mix(in srgb, #3278b8 8%, var(--card)); color: rgb(40, 103, 159); }

html[data-theme="dark"] .revezamento-lista-pessoa:hover, html[data-theme="dark"] .central-row__main:hover, html[data-theme="dark"] .movimentacoes-table tbody tr:hover, html[data-theme="dark"] .historico-table tbody tr:hover { background: var(--surface-hover); }

html[data-theme="dark"] .central-row__editor, html[data-theme="dark"] .central-composer__body, html[data-theme="dark"] .revezamento-lista-filter-bar, html[data-theme="dark"] .revezamento-lista-painel-status, html[data-theme="dark"] .revezamento-lista-tabela-status-wrap { background: var(--surface); }

html[data-theme="dark"] .revezamento-lista-local-select, html[data-theme="dark"] .revezamento-lista-controle-turma__select, html[data-theme="dark"] .central-filter-field select, html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .search-field input { background: var(--field-bg); color: var(--text); border-color: var(--border); }

html[data-theme="dark"] .revezamento-lista-tabela-status thead th, html[data-theme="dark"] .movimentacoes-table th, html[data-theme="dark"] .historico-table th { background: var(--surface); color: var(--text-2); }

html[data-theme="dark"] .revezamento-lista-tabela-status td, html[data-theme="dark"] .movimentacoes-table td, html[data-theme="dark"] .historico-table td { background: var(--card); }

html[data-theme="dark"] .movement-action.is-direction { color: rgb(185, 175, 255); }

html[data-theme="dark"] .movement-action.is-start { color: rgb(112, 216, 189); }

html[data-theme="dark"] .movement-action.is-reset, html[data-theme="dark"] .movement-action.is-remove { color: rgb(242, 166, 143); }

html[data-theme="dark"] .movement-action.is-update { color: rgb(145, 197, 244); }

html[data-theme="dark"] .button { box-shadow: none; }

@media (max-width: 1199px) {
  .search-field { min-width: 0px; max-width: none; }
  .search-field input { height: 46px; border-radius: 999px; }
}

@media (max-width: 1199px) {
  .search-field input { background: rgba(255, 255, 255, 0.58); }
  html[data-theme="dark"] .search-field input { background: var(--field-bg); }
}

@media (max-width: 1199px) {
  .search-field input { background: rgba(255, 255, 255, 0.54); }
  html[data-theme="dark"] .search-field input { border-color: rgba(255, 255, 255, 0.18); background: var(--surface); color: rgb(242, 251, 251); }
}

@media (min-width: 700px) {
  html[data-theme="dark"] .avatar:not(img) { border-color: rgba(154, 219, 214, 0.18); background: linear-gradient(135deg, rgba(154, 219, 214, 0.14), rgba(255, 255, 255, 0.05)); color: rgba(217, 245, 243, 0.86); box-shadow: rgba(255, 255, 255, 0.07) 0px 1px 0px inset; }
  html[data-theme="dark"] .barra-lateral-user .avatar:not(img) { border-color: rgba(154, 219, 214, 0.18); background: rgba(154, 219, 214, 0.11); color: rgba(217, 245, 243, 0.88); box-shadow: rgba(255, 255, 255, 0.07) 0px 1px 0px inset; }
}

.recorte-foto { width: min(420px, -24px + 100vw); max-height: calc(100dvh - 24px); margin: auto; padding: 0px; border: 0px; background: transparent; color: var(--text); }

.recorte-foto::backdrop { background: rgba(15, 17, 21, 0.58); backdrop-filter: none; }

.recorte-foto__panel { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 20px; background: rgb(255, 255, 255); box-shadow: rgba(15, 23, 42, 0.28) 0px 26px 70px; }

.recorte-foto__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.recorte-foto__header h2, .recorte-foto__header p { margin: 0px; }

.recorte-foto__header h2 { color: var(--text); font-size: 17px; font-weight: 760; line-height: 1.1; }

.recorte-foto__header p { margin-top: 3px; color: var(--text-2); font-size: 11px; }

.recorte-foto__stage { position: relative; width: min(312px, -72px + 100vw); aspect-ratio: 1 / 1; justify-self: center; overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.11); border-radius: 50%; background: rgb(237, 245, 244); box-shadow: rgba(255, 255, 255, 0.76) 0px 0px 0px 1px inset, rgba(15, 23, 42, 0.12) 0px 14px 32px; cursor: grab; touch-action: none; user-select: none; }

.recorte-foto__stage.is-dragging { cursor: grabbing; }

.recorte-foto__image { position: absolute; top: 50%; left: 50%; max-width: none; translate: -50% -50%; will-change: transform; user-select: none; pointer-events: none; }

.recorte-foto__mask, .recorte-foto__grid { position: absolute; inset: 0px; pointer-events: none; }

.recorte-foto__mask { border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 50%; box-shadow: rgba(15, 23, 42, 0.02) 0px 0px 0px 999px inset; }

.recorte-foto__grid { background: linear-gradient(90deg, transparent 33%, rgba(255, 255, 255, 0.42) 33%, rgba(255, 255, 255, 0.42) 34%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.42) 66%, rgba(255, 255, 255, 0.42) 67%, transparent 67%), linear-gradient(0deg, transparent 33%, rgba(255, 255, 255, 0.42) 33%, rgba(255, 255, 255, 0.42) 34%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.42) 66%, rgba(255, 255, 255, 0.42) 67%, transparent 67%); opacity: 0.72; }

.recorte-foto__tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

.recorte-foto__tool-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--teal-dark); font-size: 14px; }

.recorte-foto__zoom { width: 100%; accent-color: var(--teal-dark); }

.recorte-foto__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.recorte-foto__actions .button, .recorte-foto__actions .secondary-button { justify-content: center; min-height: 40px; }

@media (max-width: 420px) {
  .recorte-foto__panel { gap: 12px; padding: 14px; border-radius: 18px; }
}


@media (min-width: 1200px) {
  .historico-page, .movimentacoes-page, .central-page--roles { display: block; min-width: 0px; }
  html[data-theme="dark"] .historico-page .historico-snapshots, html[data-theme="dark"] .movimentacoes-page .movimentacoes-table-card, html[data-theme="dark"] .central-page--roles .central-role-grid, html[data-theme="dark"] .central-page--roles .central-role-panel { border-color: var(--border); background: var(--card); box-shadow: rgba(0, 0, 0, 0.18) 0px 10px 28px; }
}

/* Recuperação de acesso e verificação de email */

.login-page__recovery-link { border: 0px; background: transparent; font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-weight: 700; cursor: pointer; }

html[data-theme="dark"] .login-page__recovery-link { color: rgb(113, 213, 207); }

.role-pill__icon { margin-right: 4px; font-size: 12px; }

/* Recorte de foto: componente compartilhado, independente do módulo Perfil. */
html[data-theme="dark"] .recorte-foto__painel {
  border-color: var(--border);
  background: var(--card);
  box-shadow: rgb(0 0 0 / 34%) 0 22px 54px;
}

html[data-theme="dark"] .recorte-foto__stage,
html[data-theme="dark"] .recorte-foto__tools {
  border-color: var(--border);
  background: var(--surface);
}
