/* ==========================================================================
   TECSA — Gerador de Atas de Reunião — v0.2
   ========================================================================== */

:root {
  --tecsa-blue: #003C82;
  --tecsa-blue-hover: #1A5A9E;
  --tecsa-blue-light: #E6EDF5;
  --tecsa-gray: #8A8C8E;
  --tecsa-gray-soft: #b0b2b4;
  --tecsa-text: #231F20;
  --tecsa-border: #D0D0D0;
  --tecsa-bg: #F5F5F5;
  --tecsa-success: #16a34a;
  --tecsa-danger: #dc2626;

  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(35, 31, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(35, 31, 32, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--tecsa-text);
  background: var(--tecsa-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ol, ul, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
em { font-style: normal; }

/* --- Top bar ------------------------------------------------------------ */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--tecsa-border);
}
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-logo { height: 22px; width: auto; display: block; }
.topbar-sep { width: 1px; height: 18px; background: var(--tecsa-border); }
.topbar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--tecsa-gray);
}
.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--tecsa-text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-logout {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--tecsa-gray);
  background: transparent;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.topbar-logout:hover {
  color: var(--tecsa-danger);
  border-color: var(--tecsa-danger);
}

/* --- Login stage --------------------------------------------------------- */
.login-box {
  text-align: center;
  padding: 48px 24px;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tecsa-blue);
  margin-bottom: 8px;
}
.login-subtitle {
  font-size: 14px;
  color: var(--tecsa-gray);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.btn-login {
  font-size: 15px;
  padding: 14px 28px;
  gap: 12px;
}

/* --- Page container ------------------------------------------------------ */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
@media (max-width: 640px) { .page { padding: 24px 16px 48px; } }

/* --- Hero ---------------------------------------------------------------- */
.hero { margin-bottom: 24px; }
.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--tecsa-blue);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.hero-subtitle { font-size: 14px; color: var(--tecsa-gray); }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  max-width: 100%;
}
@media (max-width: 640px) {
  .card { padding: 20px 18px; border-radius: var(--radius-md); }
}

/* --- Stages -------------------------------------------------------------- */
.stage { display: none; }
.stage.stage-active { display: block; }

/* --- Form base ----------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tecsa-gray);
  flex-wrap: wrap;
}
.label-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--tecsa-gray);
}
.label-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tecsa-gray-soft);
  font-size: 10px;
  margin-left: 4px;
}

.input,
select.input,
textarea.input {
  font-size: 14px;
  color: var(--tecsa-text);
  background: #fff;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
  font-family: inherit;
}
textarea.input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.input::placeholder { color: #b8bbbe; }
.input:focus {
  border-color: var(--tecsa-blue);
  background: #f4f8fd;
  box-shadow: 0 0 0 3px rgba(0, 60, 130, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- File picker --------------------------------------------------------- */
.file-picker {
  position: relative;
}

.file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 2px dashed var(--tecsa-border);
  border-radius: var(--radius-md);
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: center;
}

.file-label.file-label-compact {
  padding: 18px 20px;
  gap: 4px;
}

.file-label:hover,
.file-picker.dragover .file-label,
.file-picker.has-file .file-label {
  border-color: var(--tecsa-blue);
  background: #f4f8fd;
}

.file-label-icon { color: var(--tecsa-blue); }

.file-label-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--tecsa-text);
}
.file-picker.has-file .file-label-text { color: var(--tecsa-blue); }

.file-label-hint {
  font-size: 11px;
  color: var(--tecsa-gray);
}

/* --- Lista de arquivos selecionados -------------------------------------- */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fafbfc;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-sm);
}

.file-list-icon {
  color: var(--tecsa-blue);
  flex-shrink: 0;
}

.file-list-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--tecsa-border);
  flex-shrink: 0;
}

.file-list-info {
  flex: 1;
  min-width: 0;
}

.file-list-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tecsa-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-meta {
  font-size: 11px;
  color: var(--tecsa-gray);
}

.file-list-remove {
  background: transparent;
  border: none;
  color: var(--tecsa-gray);
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.file-list-remove:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--tecsa-danger);
}

.file-list-total {
  font-size: 11px;
  color: var(--tecsa-gray);
  text-align: right;
  padding: 4px 12px;
  font-style: italic;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: none;
  transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
  margin-top: 6px;
}
.btn-primary { background: var(--tecsa-blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--tecsa-blue-hover); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }

.btn-secondary {
  background: #fff;
  color: var(--tecsa-blue);
  border: 1px solid var(--tecsa-border);
}
.btn-secondary:hover:not(:disabled) { background: var(--tecsa-bg); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn-small {
  font-family: inherit;
  background: transparent;
  color: var(--tecsa-blue);
  border: 1px solid var(--tecsa-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-small:hover { background: var(--tecsa-blue-light); border-color: var(--tecsa-blue); }

.btn-small.as-label {
  display: inline-block;
  text-align: center;
}

/* --- Processing stage ---------------------------------------------------- */
.processing { text-align: center; padding: 20px 0; }

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--tecsa-blue-light);
  border-top-color: var(--tecsa-blue);
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tecsa-blue);
  margin-bottom: 6px;
}
.processing-subtitle {
  font-size: 14px;
  color: var(--tecsa-gray);
  margin-bottom: 24px;
}
.processing-steps {
  text-align: left;
  max-width: 480px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.processing-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--tecsa-gray);
  padding: 8px 0;
  transition: color 0.2s ease;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tecsa-border);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.processing-steps li.step-active { color: var(--tecsa-blue); font-weight: 600; }
.processing-steps li.step-active .step-dot { background: var(--tecsa-blue); }
.processing-steps li.step-done { color: var(--tecsa-success); }
.processing-steps li.step-done .step-dot { background: var(--tecsa-success); }

.processing-hint {
  font-size: 11px;
  color: var(--tecsa-gray-soft);
  font-style: italic;
}

/* --- Review stage -------------------------------------------------------- */
.review-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tecsa-border);
}
.review-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tecsa-blue);
  margin-bottom: 4px;
}
.review-subtitle { font-size: 13px; color: var(--tecsa-gray); }

.review-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--tecsa-border);
}
.review-section:last-of-type { border-bottom: none; }

.review-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecsa-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.review-section-title.clickable { cursor: pointer; user-select: none; }

.review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.review-section-head .review-section-title { margin-bottom: 0; }

.review-note {
  font-size: 11px;
  color: var(--tecsa-gray);
  font-style: italic;
  margin-bottom: 12px;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dynamic-item {
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fafbfc;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dynamic-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--tecsa-gray);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
}
.dynamic-item-remove:hover { color: var(--tecsa-danger); background: rgba(220, 38, 38, 0.08); }

.transcricao-box {
  margin-top: 12px;
  background: var(--tecsa-bg);
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tecsa-text);
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

.review-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
.review-actions .btn { margin-top: 0; }

@media (max-width: 640px) {
  .review-actions { flex-direction: column-reverse; }
  .review-actions .btn { width: 100%; }
}

/* --- Editor HTML inline (contenteditable) -------------------------------- */
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 10px;
}

.editor-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecsa-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.editor-toolbar {
  display: flex;
  gap: 6px;
}

.editor-toolbar .btn-small {
  min-width: 32px;
  padding: 6px 10px;
  font-family: "Montserrat", sans-serif;
}

/* --- Editor inline (contenteditable) ------------------------------------- */
.ata-editor {
  background: #fff;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  min-height: 400px;
  max-height: 70vh;
  overflow-y: auto;
  font-family: "Montserrat", sans-serif;
  font-size: 11pt;
  line-height: 1.5;
  color: var(--tecsa-text);
  text-align: justify;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ata-editor:focus {
  border-color: var(--tecsa-blue);
  box-shadow: 0 0 0 3px rgba(0, 60, 130, 0.08);
}

/* ========================================================================
   Estilos do HTML dentro do editor — espelham EXATAMENTE os estilos do
   renderer_service.py / generate_letterhead_pdf.py (mesmo CSS, mesmas
   unidades em mm) pra que o preview seja fiel ao PDF final.

   Única diferença: no PDF os running elements @top-right (logo) e
   @bottom-center (rodapé) não são visíveis aqui porque o contenteditable
   não simula @page. Mas o conteúdo interno é WYSIWYG.
   ======================================================================== */

/* Título do documento (h1 com a mesma regra do .doc-title do renderer). */
.ata-editor h1 {
  font-size: 18pt;
  font-weight: 700;
  color: var(--tecsa-blue);
  margin-top: 8mm;
  margin-bottom: 4mm;
}

.ata-editor h2 {
  font-size: 14pt;
  font-weight: 700;
  color: var(--tecsa-blue);
  margin-top: 6mm;
  margin-bottom: 3mm;
  padding-bottom: 2mm;
  border-bottom: 1pt solid var(--tecsa-blue);
  text-transform: uppercase;
  letter-spacing: 0.5pt;
}

.ata-editor h3 {
  font-size: 12pt;
  font-weight: 600;
  color: var(--tecsa-blue);
  margin-top: 5mm;
  margin-bottom: 2mm;
}

.ata-editor p {
  margin-bottom: 3mm;
  text-align: justify;
}

.ata-editor strong {
  font-weight: 700;
}

.ata-editor table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10pt;
  margin: 4mm 0 6mm 0;
}

.ata-editor thead th {
  background-color: var(--tecsa-blue);
  color: #fff;
  font-weight: 600;
  padding: 3mm 4mm;
  text-align: left;
  border: none;
}

.ata-editor tbody td {
  padding: 2.5mm 4mm;
  border-bottom: 0.3pt solid var(--tecsa-border);
  color: var(--tecsa-text);
  vertical-align: top;
}

.ata-editor tbody tr:nth-child(even) {
  background-color: var(--tecsa-blue-light);
}

.ata-editor ol,
.ata-editor ul {
  margin: 3mm 0 3mm 8mm;
}

.ata-editor ol li,
.ata-editor ul li {
  margin-bottom: 2mm;
}

/* Bloco de informações da reunião (meeting-info + info-table).
   No renderer NÃO há background nem border no .meeting-info — só a tabela
   herda estilo padrão. Mantemos igual aqui pra WYSIWYG fiel. */
.ata-editor .info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11pt;
  margin: 4mm 0 6mm 0;
}

.ata-editor .info-table td {
  padding: 2.5mm 4mm;
  border-bottom: 0.3pt solid var(--tecsa-border);
}

.ata-editor .info-label {
  font-weight: 600;
  color: var(--tecsa-gray);
  width: 30%;
}

.ata-editor .info-value {
  color: var(--tecsa-text);
}

/* Blockquote (bloco de destaque do renderer). */
.ata-editor blockquote {
  background: var(--tecsa-bg);
  border-left: 3pt solid var(--tecsa-blue);
  padding: 4mm 6mm;
  margin: 4mm 0;
  font-size: 10.5pt;
}

/* Container de fotos do Registro Fotográfico. */
.ata-editor .foto-container {
  text-align: center;
  margin-bottom: 8mm;
  page-break-inside: avoid;
}

.ata-editor .foto-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--tecsa-border);
}

.ata-editor .foto-legenda {
  font-size: 9pt;
  color: var(--tecsa-gray);
  margin-top: 2mm;
  text-align: center;
}

/* --- View source do editor ---------------------------------------------- */
.html-source-wrap {
  margin-top: 16px;
  padding: 14px;
  background: var(--tecsa-gray-light);
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
}

.html-source {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace;
  font-size: 12px !important;
  line-height: 1.5;
  background: #1a1a1a !important;
  color: #d4d4d4 !important;
  white-space: pre !important;
  min-height: 300px;
}

/* --- Fotos na review ----------------------------------------------------- */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.photos-empty {
  font-size: 12px;
  color: var(--tecsa-gray);
  font-style: italic;
  padding: 16px;
  text-align: center;
  background: var(--tecsa-bg);
  border-radius: var(--radius-md);
  border: 1px dashed var(--tecsa-border);
  grid-column: 1 / -1;
}

.photo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #fafbfc;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
}

.photo-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--tecsa-border);
}

.photo-card-name {
  font-size: 11px;
  color: var(--tecsa-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-card-caption {
  font-size: 12px !important;
  padding: 8px 10px !important;
  min-height: 44px !important;
}

.photo-card-remove {
  font-family: inherit;
  background: transparent;
  border: 1px solid var(--tecsa-border);
  color: var(--tecsa-gray);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.photo-card-remove:hover {
  color: var(--tecsa-danger);
  border-color: var(--tecsa-danger);
}

.photo-file-list .file-list-item {
  padding: 6px 10px;
}

/* --- Histórico ----------------------------------------------------------- */
.historico-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tecsa-border);
}
.historico-actions-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.meetings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meeting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--tecsa-border);
  border-radius: var(--radius-md);
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.meeting-row:hover {
  border-color: var(--tecsa-blue);
  background: var(--tecsa-blue-light);
}
.meeting-row-info { flex: 1; min-width: 0; }
.meeting-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tecsa-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meeting-row-meta {
  font-size: 11px;
  color: var(--tecsa-gray);
  margin-top: 2px;
}
.meeting-row-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.meeting-row-badge.draft { background: #FFF3E0; color: #E65100; }
.meeting-row-badge.final { background: #E8F5E9; color: #2E7D32; }
.meetings-empty {
  text-align: center;
  color: var(--tecsa-gray);
  font-size: 13px;
  padding: 32px 16px;
}
.meetings-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .historico-header { flex-direction: column; align-items: stretch; }
  .historico-actions-top { flex-direction: column; }
  .historico-actions-top .input { max-width: 100% !important; }
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: var(--tecsa-gray);
  padding-top: 20px;
}

/* --- Toast --------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  max-width: 480px;
  text-align: center;
}
.toast[data-type="success"] { background: var(--tecsa-success); }
.toast[data-type="error"] { background: var(--tecsa-danger); }
.toast[data-visible="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
