/* ============================================================
   Suporte Uélicon — suporte.css
   ============================================================
   Estende o app.css base (cópia de Novos Alunos) com classes
   específicas do Suporte: skip link, ticket-drawer, public
   surface (form, obrigado, ticket), bumps, SLA, timeline,
   bulk-action-bar, atalhos.

   Importa app.css; só estilos próprios do produto aqui.
   v1.0 — 2026-05-15
   ============================================================ */

@import url('./app.css');

/* ============================================================
   SKIP LINK (NOVO no ecossistema — design-spec §1.8 e §4.2)
   ============================================================
   Primeiro elemento tabbable de toda página autenticada.
   Sai do "off-screen" no foco e leva pro <main id="main-content">.
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 200;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: top var(--motion-fast) var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* ============================================================
   TICKET DRAWER — variação do .drawer pra detalhe de ticket
   ============================================================
   Drawer-from-right 480px (560px em viewport ≥1600px), full-height,
   por cima da lista. Mobile vira página inteira (≤768px).
   ============================================================ */
.ticket-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: var(--surface-card);
  box-shadow: var(--shadow-drawer);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  animation: slide-in-right var(--motion-slow) var(--ease-out);
}
@media (min-width: 1600px) {
  .ticket-drawer { width: 560px; }
}
@media (max-width: 768px) {
  .ticket-drawer {
    position: static;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    animation: none;
  }
}

.ticket-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  /* deixa espaço pro action bar bottom-sheet em mobile */
}
.ticket-drawer__section {
  margin-bottom: var(--space-6);
}
.ticket-drawer__section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* Action bar sticky no fundo do drawer (desktop) */
.ticket-drawer__actions {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  /* Mobile: bottom-sheet fixed (NÃO modal central) */
  .ticket-drawer__actions {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-drawer);
    box-shadow: 0 -4px 12px oklch(0% 0 0 / 0.08);
  }
}

/* ============================================================
   PUBLIC SURFACE — form, obrigado, ticket (sem Alpine global)
   ============================================================
   CSP separada — sem unsafe-eval. Layout standalone.
   ============================================================ */
.public-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
}

.public-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.public-header__inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.public-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}
@media (max-width: 768px) {
  .public-main { padding: var(--space-4); }
}

.public-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  width: 100%;
  max-width: 600px;
}
.public-card--narrow { max-width: 560px; }
@media (max-width: 768px) {
  .public-card { padding: var(--space-5); }
}

.public-foot {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  padding: var(--space-6) var(--space-4);
}

/* Form público (heading e helper) */
.public-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-2);
}
.public-card__sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-6);
}

.public-form .field { margin-bottom: var(--space-5); }
.public-form .field__label {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.public-form .field__hint--required::after {
  content: " *";
  color: var(--red-600);
}
.public-form .input,
.public-form .select,
.public-form .textarea {
  min-height: 44px;  /* touch target a11y */
}

/* Honeypot (NUNCA visível) — invisible field for bot detection */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Outros condicional — input livre */
.outros-conditional {
  margin-top: var(--space-2);
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-subtle);
}

/* Anexos preview */
.attachments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.attachment-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-subtle);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.attachment-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-item__size {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  font-size: var(--text-xs);
}
.attachment-item__remove {
  background: transparent;
  border: 0;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--space-1);
}
.attachment-item__remove:hover { color: var(--red-600); }

/* Sticky submit on mobile */
@media (max-width: 768px) {
  .public-form__sticky-submit {
    position: sticky;
    bottom: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3);
    margin: var(--space-3) calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
  }
}

/* ============================================================
   TELA OBRIGADO — design-spec §5.8
   ============================================================ */
.obrigado-success {
  text-align: center;
  margin-bottom: var(--space-6);
}
.obrigado-success__icon {
  color: var(--green-500);
  margin-bottom: var(--space-3);
  display: inline-block;
}
.obrigado-success__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--green-700);
  margin: 0;
}

.token-display {
  text-align: center;
  margin-bottom: var(--space-6);
}
.token-display__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.token-display__value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  background: var(--neutral-100);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  user-select: all;
  word-break: break-all;
  max-width: 100%;
}
.token-display__url {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  word-break: break-all;
}

.alert-keep-link {
  background: var(--status-warning-bg);
  border: 1px solid oklch(85% 0.06 75);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  color: var(--amber-700);
}
.alert-keep-link__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.alert-keep-link__icon {
  color: var(--amber-700);
  flex-shrink: 0;
}
.alert-keep-link__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-700);
}
.alert-keep-link__body {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--amber-700);
}

.copy-button {
  position: relative;
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out);
  margin-bottom: var(--space-4);
}
.copy-button:hover { background: var(--accent-hover); }
.copy-button:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.copy-button[data-state="copied"] {
  background: var(--green-700);
}

.alt-save {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.alt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
@media (max-width: 480px) {
  .alt-actions { grid-template-columns: 1fr; }
}
.alt-actions .btn--ghost { width: 100%; }

.qr-inline {
  display: none;
  text-align: center;
  margin: var(--space-4) 0;
}
.qr-inline[data-open="true"] {
  display: block;
  animation: fade-in var(--motion-base) var(--ease-out);
}
.qr-inline__img {
  display: inline-block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-2);
  background: #fff;
}
.qr-inline__caption {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

.next-steps {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
}
.next-steps__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.next-steps ul {
  margin: 0;
  padding-left: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-normal);
}
.next-steps li { margin-bottom: var(--space-1); }

/* ============================================================
   PUBLIC TICKET (consulta status) — design-spec §5.9
   ============================================================ */
.public-ticket__header {
  margin-bottom: var(--space-6);
}
.public-ticket__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}
.public-ticket__protocol {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  word-break: break-all;
}
.public-ticket__status-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.public-ticket__status-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.public-ticket__meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}
.public-ticket__description {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-normal);
  margin: 0;
  padding: 0;
  border: 0;
}
.public-ticket__description blockquote,
blockquote.public-ticket__description {
  border-left: 3px solid var(--border-subtle);
  padding-left: var(--space-3);
  margin: var(--space-2) 0;
  color: var(--text-body);
}
.public-ticket__resposta {
  background: var(--surface-subtle);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-top: var(--space-4);
}
.public-ticket__notice {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  text-align: center;
}

/* ============================================================
   BUMPS CHIP — design-spec §3.4
   ============================================================ */
.bump-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  color: var(--amber-700);
  white-space: nowrap;
}
.bump-chip svg { width: 12px; height: 12px; }
.bump-chip--escalated { color: var(--red-700); background: var(--amber-100); }
.bump-chip--pre-close {
  color: var(--red-700);
  background: var(--red-100);
}

/* ============================================================
   SLA bands inline (design-spec §3.3)
   ============================================================ */
.sla-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.sla-text svg { width: 12px; height: 12px; }
.sla-text--aviso { color: var(--amber-700); }
.sla-text--critico { color: var(--red-700); }

/* ============================================================
   HISTÓRICO DO ALUNO (card no detalhe) — design-spec §3.6
   ============================================================ */
.aluno-historico {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.aluno-historico__line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-body);
  margin-bottom: var(--space-2);
}
.aluno-historico__alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.aluno-historico__alert--warning {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
}
.aluno-historico__alert--danger {
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
}
.aluno-historico__timeline-mini {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}
.aluno-historico__timeline-mini__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  color: var(--text-body);
}
.aluno-historico__timeline-mini__item a { color: var(--accent-soft-text); }

/* ============================================================
   TIMELINE COMPLETA (aluno-timeline.html) — design-spec §5.5
   ============================================================ */
.timeline-aluno {
  position: relative;
  padding-left: var(--space-6);
}
.timeline-aluno::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}
.timeline-aluno__item {
  position: relative;
  padding-bottom: var(--space-5);
}
.timeline-aluno__bullet {
  position: absolute;
  left: -19px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neutral-300);
  border: 2px solid var(--surface-card);
  z-index: 1;
}
.timeline-aluno__bullet--resolvido { background: var(--green-500); }
.timeline-aluno__bullet--nao_resolvido { background: var(--red-500); }
.timeline-aluno__bullet--em_andamento { background: var(--amber-500); }
.timeline-aluno__bullet--aberto { background: var(--blue-500); }
.timeline-aluno__bullet--aguardando_aluno { background: var(--neutral-500); }
.timeline-aluno__meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}
.timeline-aluno__title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.timeline-aluno__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   BULK ACTION BAR (lista tickets)
   ============================================================ */
.bulk-action-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.bulk-action-bar__count {
  font-weight: var(--weight-semibold);
  color: var(--accent-soft-text);
  font-variant-numeric: tabular-nums;
}
.bulk-action-bar__actions {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
  flex-wrap: wrap;
}

/* ============================================================
   ATALHOS DRAWER (modal-not-modal — drawer lateral)
   ============================================================ */
.atalhos-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: var(--surface-card);
  box-shadow: var(--shadow-drawer);
  z-index: var(--z-drawer);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  animation: slide-in-right var(--motion-slow) var(--ease-out);
}
.atalhos-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.atalhos-drawer__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.atalhos-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.atalhos-list kbd {
  font-family: var(--font-mono);
  background: var(--surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  min-width: 24px;
  text-align: center;
}

/* ============================================================
   TICKETS TABLE — linha selecionada via J/K
   ============================================================ */
.tickets-table tbody tr.is-selected-keyboard {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 0 var(--accent);
}
.tickets-table .cell-numero {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.tickets-table .cell-aluno-nome {
  color: var(--text-body);
  font-weight: var(--weight-medium);
}
.tickets-table .cell-aluno-cpf {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.tickets-table .cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

/* ============================================================
   CARD DE COMENTÁRIO INTERNO
   ============================================================ */
.comment-card {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
}
.comment-card:last-child { border-bottom: 0; }
.comment-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}
.comment-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--neutral-200);
  color: var(--text-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-card__autor { font-weight: var(--weight-medium); color: var(--text-primary); }
.comment-card__time { color: var(--text-secondary); font-size: var(--text-xs); }
.comment-card__edit-btn {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.comment-card__edit-btn:hover {
  background: var(--surface-subtle);
  color: var(--text-primary);
}
.comment-card__texto {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: var(--leading-normal);
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.comment-card__edited {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}
.comment-card__edited a { color: var(--accent-soft-text); }

/* ============================================================
   CROSS-CHECK CARD (3 linhas condicionais)
   ============================================================ */
.cross-check {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.cross-check__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
}
.cross-check__row:last-child { border-bottom: 0; }
.cross-check__icon {
  flex-shrink: 0;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cross-check__label { color: var(--text-secondary); min-width: 130px; flex-shrink: 0; }
.cross-check__value { color: var(--text-body); flex: 1; }
.cross-check__value--ativo { color: var(--green-700); font-weight: var(--weight-medium); }
.cross-check__value--bloqueado { color: var(--red-700); font-weight: var(--weight-medium); }
.cross-check__value--atrasado { color: var(--amber-700); font-weight: var(--weight-medium); }
.cross-check__value--desconhecido { color: var(--text-tertiary); font-style: italic; }
.cross-check__link {
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: var(--accent-soft-text);
}
.cross-check__empty {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-align: center;
  padding: var(--space-3);
}

/* ============================================================
   ATTACHMENTS LIST (no detalhe ticket)
   ============================================================ */
.anexo-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.anexo-row:hover { background: var(--surface-subtle); }
.anexo-row__name { flex: 1; color: var(--text-body); }
.anexo-row__size { color: var(--text-secondary); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.anexo-row__download { color: var(--text-secondary); padding: var(--space-1); }
.anexo-row__download:hover { color: var(--accent-soft-text); }

/* ============================================================
   TAGS chips (livres, removíveis)
   ============================================================ */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  background: var(--status-neutral-bg);
  color: var(--status-neutral-fg);
}
.tag-chip__remove {
  background: transparent;
  border: 0;
  padding: 0;
  color: currentColor;
  opacity: 0.5;
  cursor: pointer;
}
.tag-chip__remove:hover { opacity: 1; }

/* ============================================================
   ALUNO SEARCH no header (dropdown inline)
   ============================================================ */
.aluno-search-wrap {
  position: relative;
}
.aluno-search-input {
  width: 220px;
  height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--surface-card);
  font-size: var(--text-sm);
}
.aluno-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
@media (max-width: 640px) {
  .aluno-search-input { width: 100%; }
}

/* ============================================================
   ADMIN DROPDOWN (header)
   ============================================================ */
.admin-dropdown {
  position: relative;
}
.admin-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: var(--space-1);
  z-index: var(--z-dropdown);
}
.admin-dropdown__menuitem {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text-body);
  font-size: var(--text-sm);
}
.admin-dropdown__menuitem:hover { background: var(--surface-subtle); color: var(--text-primary); }
.admin-dropdown__menuitem.is-locked { color: var(--text-tertiary); }

/* ============================================================
   SLA ALERT CHIP NO HEADER ("Tickets em risco")
   ============================================================ */
.header-sla-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  height: 28px;
}
.header-sla-chip:hover { background: var(--amber-100); }
.header-sla-chip svg { width: 14px; height: 14px; }

/* ============================================================
   FORMULÁRIO FECHAMENTO (inline — não modal central)
   ============================================================ */
.fechamento-inline {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.fechamento-inline__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

/* ============================================================
   AUDITORIA (lista colapsada)
   ============================================================ */
.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-body);
}
.audit-list li {
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.audit-list li:last-child { border-bottom: 0; }
.audit-list__time { color: var(--text-secondary); flex-shrink: 0; }
.audit-list__ator { color: var(--text-primary); }

/* ============================================================
   DASHBOARD CHART (SVG inline, sem libs)
   ============================================================ */
.chart-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.chart-card__svg {
  width: 100%;
  height: 200px;
  display: block;
}
.chart-card__svg .axis { stroke: var(--border-subtle); stroke-width: 1; }
.chart-card__svg .gridline { stroke: var(--border-subtle); stroke-width: 1; stroke-dasharray: 2 2; }
.chart-card__svg .line { stroke: var(--accent); stroke-width: 2; fill: none; }
.chart-card__svg .area { fill: var(--accent-soft); fill-opacity: 0.5; }
.chart-card__svg .label { font-size: 10px; fill: var(--text-tertiary); font-family: var(--font-sans); }
.chart-card__svg .point { fill: var(--accent); }

/* ============================================================
   FORM BUILDER admin (campos do form público)
   ============================================================ */
.field-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.field-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-card);
  font-size: var(--text-sm);
}
.field-list-item__name { color: var(--text-primary); font-weight: var(--weight-medium); }
.field-list-item__slug {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.field-list-item__type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-tertiary);
}
.field-list-item--builtin {
  background: var(--surface-subtle);
  opacity: 0.85;
}

/* ============================================================
   CONFIGURAÇÕES (admin/configuracoes)
   ============================================================ */
.config-group {
  margin-bottom: var(--space-6);
}
.config-group__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.config-row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}
.config-row__info { display: flex; flex-direction: column; }
.config-row__key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.config-row__desc {
  font-size: var(--text-sm);
  color: var(--text-body);
}
.config-row__range {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.config-row__input {
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.config-row__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.config-row__input--error {
  border-color: var(--red-500);
}

/* ============================================================
   ROLES (admin/roles — switches por flag)
   ============================================================ */
.role-flag-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}
.role-flag-row + .role-flag-row {
  border-top: 1px solid var(--border-subtle);
}
.role-flag-row__key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.role-flag-row__desc { color: var(--text-body); }
.role-flag-row--sensitive {
  background: var(--amber-50);
  border-radius: var(--radius);
}
.role-flag-row--sensitive .role-flag-row__lock {
  color: var(--amber-700);
  margin-right: var(--space-1);
}

/* ============================================================
   PAGE TITLE ATALHOS BUTTON
   ============================================================ */
.page-title-row__atalhos {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}
.page-title-row__atalhos kbd {
  font-family: var(--font-mono);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 10px;
}

/* ============================================================
   OUTROS pendentes (admin/taxonomia)
   ============================================================ */
.taxonomia-row {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}
.taxonomia-row:last-child { border-bottom: 0; }
.taxonomia-row__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.taxonomia-row__valor {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.taxonomia-row__count {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.taxonomia-row__variations {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-2);
}
.taxonomia-row__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ============================================================
   404 / 503 estados pública
   ============================================================ */
.public-error {
  text-align: center;
  padding: var(--space-6) 0;
}
.public-error__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  display: inline-block;
}
.public-error__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}
.public-error__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4) 0;
  line-height: var(--leading-normal);
}

/* ============================================================
   REDUCED MOTION (override)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ticket-drawer,
  .atalhos-drawer,
  .qr-inline[data-open="true"] {
    animation: none;
  }
  .copy-button { transition: none; }
}
