/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg-base:      #0d1117;
  --bg-surface:   #161b22;
  --bg-elevated:  #21262d;
  --bg-input:     #0d1117;
  --border:       #30363d;
  --text-1:       #e6edf3;
  --text-2:       #8b949e;
  --text-3:       #484f58;
  --accent:       #c9a050;
  --accent-dim:   rgba(201,160,80,.12);
  --success:      #3fb950;
  --danger:       #f85149;
  --warning:      #d29922;
  --info:         #58a6ff;
  --sidebar-w:    260px;
  --radius:       8px;
  --radius-sm:    5px;
  --shadow:       0 4px 24px rgba(0,0,0,.45);
}

.theme-light {
  --bg-base:      #f0f2f5;
  --bg-surface:   #ffffff;
  --bg-elevated:  #e8eaed;
  --bg-input:     #ffffff;
  --border:       #d0d7de;
  --text-1:       #1f2328;
  --text-2:       #57606a;
  --text-3:       #9ca3af;
  --accent:       #8b6914;
  --accent-dim:   rgba(139,105,20,.1);
  --success:      #1a7f37;
  --danger:       #cf222e;
  --warning:      #9a6700;
  --info:         #0969da;
  --shadow:       0 2px 12px rgba(0,0,0,.12);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-base);
  color: var(--text-1);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea {
  font: inherit;
  color: var(--text-1);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--bg-elevated); }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.3; }

/* ─── Layout ──────────────────────────────────────────────── */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-base);
}
.login-screen.hidden { display: none; }

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.app.hidden { display: none; }

/* ─── Login Card ─────────────────────────────────────────── */
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 360px;
  box-shadow: var(--shadow);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-symbol {
  font-size: 42px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.login-logo h1 {
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--text-1);
}
.login-logo p {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.login-form .form-group { margin-bottom: 16px; }
.login-error {
  background: rgba(248,81,73,.12);
  border: 1px solid rgba(248,81,73,.4);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.sidebar-title strong { font-size: 15px; display: block; }
.sidebar-loja {
  font-size: 11px;
  color: var(--text-2);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  color: var(--text-2);
  font-size: 13.5px;
  border-radius: 0;
  transition: background .12s, color .12s;
  text-align: left;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--bg-elevated); color: var(--text-1); }
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
}
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.api-status { display: flex; align-items: center; gap: 7px; }
.api-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.api-dot.ok  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.api-dot.err { background: var(--danger); }
.api-label { font-size: 12px; color: var(--text-2); }
.user-row { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 13px; color: var(--text-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-logout {
  padding: 4px 6px;
  color: var(--text-3);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.btn-logout:hover { color: var(--danger); background: rgba(248,81,73,.12); }

/* ─── Main Content ───────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-base);
}
.view-container { padding: 28px 40px; }

/* ─── View Header ────────────────────────────────────────── */
.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.view-header-left h2 { font-size: 20px; }
.view-header-left p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.view-header-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary {
  background: var(--accent);
  color: #0d1117;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) { opacity: .88; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--text-2); }
.btn-danger {
  background: rgba(248,81,73,.12);
  color: var(--danger);
  border: 1px solid rgba(248,81,73,.25);
}
.btn-danger:hover:not(:disabled) { background: rgba(248,81,73,.22); }
.btn-ghost {
  color: var(--text-2);
  padding: 6px 10px;
}
.btn-ghost:hover { color: var(--text-1); background: var(--bg-elevated); }
.btn-icon { padding: 6px 8px; font-size: 15px; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-full { width: 100%; justify-content: center; padding: 10px; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 5px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 14px;
}
.form-row.col3 { grid-template-columns: repeat(3, minmax(0, 300px)); }
.form-row.col4 { grid-template-columns: repeat(4, minmax(0, 240px)); }
.form-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 20px 0 10px;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.card-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-1);
}
.card-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead th {
  background: var(--bg-elevated);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-elevated); }
.td-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-success { background: rgba(63,185,80,.15); color: var(--success); }
.badge-danger  { background: rgba(248,81,73,.15); color: var(--danger); }
.badge-warning { background: rgba(210,153,34,.15); color: var(--warning); }
.badge-info    { background: rgba(88,166,255,.15); color: var(--info); }
.badge-accent  { background: var(--accent-dim); color: var(--accent); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-2); }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(2px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 520px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; }
.modal-close {
  color: var(--text-2);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--bg-elevated); color: var(--text-1); }
.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-footer:empty { display: none; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--text-1);
  box-shadow: var(--shadow);
  transform: translateX(120%);
  transition: transform .25s ease;
  max-width: 320px;
}
.toast.visible { transform: translateX(0); }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--info); }

/* ─── AI Overlay ─────────────────────────────────────────── */
.ai-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  backdrop-filter: blur(3px);
}
.ai-overlay.hidden { display: none; }
.ai-overlay-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 720px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.ai-overlay-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.ai-overlay-header h3 { font-size: 15px; }
.ai-overlay-header p { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ai-spinner {
  font-size: 26px;
  color: var(--accent);
  animation: spin 2s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-output {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-1);
}

/* ─── Search Bar ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.search-bar input { max-width: 380px; }
.filter-bar { display: flex; gap: 8px; align-items: center; }

/* ─── Dashboard ──────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 13.5px;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.quick-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.quick-btn-icon { font-size: 18px; }
.recent-list { list-style: none; }
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: var(--bg-elevated); cursor: pointer; }
.recent-title { font-weight: 500; font-size: 13.5px; }
.recent-sub { font-size: 12px; color: var(--text-2); }
.recent-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.alert-card {
  background: rgba(210,153,34,.08);
  border: 1px solid rgba(210,153,34,.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-icon { font-size: 20px; }

/* ─── Wizard ─────────────────────────────────────────────── */
.wizard-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.wizard-progress {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.wizard-step-tab {
  flex: 1;
  padding: 11px 6px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
.wizard-step-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.wizard-step-tab.done   { color: var(--success); }
.wizard-body { padding: 28px 32px; }
.wizard-footer {
  padding: 14px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-elevated);
}

/* ─── Tipo Cards (wizard step 1) ─────────────────────────── */
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tipo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 13px;
}
.tipo-card:hover { border-color: var(--accent); background: var(--accent-dim); }
.tipo-card.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.tipo-icon { font-size: 22px; }

/* ─── Presença Pivot Table ───────────────────────────────── */
.pivot-wrapper { overflow-x: auto; }
.pivot-table { font-size: 12px; border-collapse: collapse; }
.pivot-table th, .pivot-table td {
  padding: 7px 10px;
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.pivot-table thead th { background: var(--bg-elevated); font-weight: 600; }
.pivot-table th.name-col { text-align: left; min-width: 160px; }
.pivot-table td.name-col { text-align: left; }
.cell-presente {
  background: rgba(63,185,80,.2);
  color: var(--success);
  cursor: pointer;
  user-select: none;
}
.cell-ausente {
  cursor: pointer;
  user-select: none;
  color: var(--text-3);
}
.cell-ausente:hover { background: var(--bg-elevated); }
.cell-presente:hover { background: rgba(63,185,80,.35); }
.cell-freq { font-weight: 600; }
.freq-ok  { color: var(--success); }
.freq-low { color: var(--danger); }
.row-total { background: var(--bg-elevated); font-weight: 600; }

/* ─── Balaústre View ─────────────────────────────────────── */
.balaustre-text {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: var(--text-1);
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.balaustre-edit-area {
  width: 100%;
  min-height: 500px;
  font-size: 13.5px;
  line-height: 1.9;
  resize: vertical;
}

/* ─── Presença Checkbox Grid ─────────────────────────────── */
.presenca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.presenca-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.presenca-item:hover { background: var(--bg-elevated); }
.presenca-item input[type=checkbox] { width: auto; cursor: pointer; accent-color: var(--accent); }
.presenca-item label { font-size: 12.5px; cursor: pointer; line-height: 1.3; }
.presenca-item .grau-tag {
  font-size: 10px;
  color: var(--text-3);
  display: block;
}

/* ─── Visitante List ─────────────────────────────────────── */
.visitante-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.visitante-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.visitante-row input { flex: 1; }

/* ─── Self-service Presence Screen ──────────────────────── */
.presence-screen {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
}
.presence-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.presence-title { font-size: 18px; font-weight: 700; }
.presence-sub   { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.quorum-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.quorum-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid transparent;
}
.quorum-chip.ok  { background: rgba(63,185,80,.15); border-color: var(--success); color: var(--success); }
.quorum-chip.low { background: rgba(248,81,73,.12); border-color: var(--danger);  color: var(--danger); }
.quorum-chip.neutral { background: var(--bg-elevated); border-color: var(--border); color: var(--text-2); }
.count-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.presence-grid-wrap {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}
.presence-grid-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  text-align: center;
  user-select: none;
  min-height: 110px;
  -webkit-tap-highlight-color: transparent;
}
.member-card:hover { border-color: var(--accent); background: var(--accent-dim); }
.member-card:active { transform: scale(.97); }
.member-card.present {
  border-color: var(--success);
  background: rgba(63,185,80,.12);
}
.member-card.present .card-check { opacity: 1; }
.card-check {
  font-size: 20px;
  color: var(--success);
  opacity: 0;
  transition: opacity .15s;
  line-height: 1;
}
.card-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.card-grau {
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 10px;
}
.member-card.present .card-grau {
  background: rgba(63,185,80,.2);
  color: var(--success);
}
.visitantes-section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.visitantes-section h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-2); }
.visitante-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13.5px;
}
.presence-footer {
  padding: 14px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── Session ID display ─────────────────────────────────── */
.session-id-display {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  margin: 8px 0;
}
.session-id-sub { font-size: 13px; color: var(--text-2); }

/* ─── Notas por seção ────────────────────────────────────── */
.nota-section {
  margin-bottom: 14px;
}
.nota-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}
.nota-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.palavra-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.col-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

/* ─── Status Indicator ───────────────────────────────────── */
.api-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─── Section box ────────────────────────────────────────── */
.section-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.section-box-header {
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.section-box-body { padding: 18px; }

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-2);
}
.empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state p { max-width: 300px; margin: 0 auto; font-size: 13.5px; }

/* ─── Danger Zone ────────────────────────────────────────── */
.danger-zone {
  border: 1px solid rgba(248,81,73,.35);
  border-radius: var(--radius);
  padding: 18px;
}

/* ─── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-2); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 12px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-gap { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
