:root {
  /* === Verdant Meridian brand palette (per Brand Guidelines v1.0) ===
     7 tokens · 3 functions · 60/30/10 proportion (neutrals/primary/secondary) */
  /* PRIMARY */
  --teal-dark: #1F4D59;
  /* SECONDARY */
  --sage:      #7A9B8E;
  --teal-deep: #163C47;
  --teal-mid:  #3B6F7C;
  --mist:      #CBD8D3;
  /* NEUTRALS */
  --charcoal:  #333333;
  --slate:     #545454;
  --paper:     #F7F5F1;

  /* Semantic aliases used across the UI */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --border: #e6e3dc;
  --text: var(--charcoal);
  --muted: var(--slate);
  --primary: var(--teal-dark);
  --primary-dark: var(--teal-deep);
  --primary-light: #e8eeec;
  --accent: var(--sage);
  --accent-dark: #5e7e72;

  /* Status colors stay semantic (independent of brand palette) */
  --danger: #c0392b;
  --warning: #e67e22;
  --success: #1aa37a;

  --shadow: 0 1px 2px rgba(31,77,89,0.05), 0 4px 12px rgba(31,77,89,0.05);
  --shadow-lg: 0 4px 14px rgba(31,77,89,0.10), 0 12px 40px rgba(31,77,89,0.07);
  --radius: 10px;
  --radius-sm: 6px;

  /* Verdant typography:
     DISPLAY — Georgia Italic (titles, anchor phrases).
     BODY    — Inter (web sub) / Calibri / Source Sans Pro / Helvetica fallbacks. */
  --font-display: Georgia, "Times New Roman", "Cambria", serif;
  --font-body: "Inter", "Source Sans Pro", "Helvetica Neue", "Calibri", Arial, system-ui, sans-serif;
  --font-mark: "Century Gothic", "Avant Garde", "Avenir Next", "Avenir", "Futura", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* Page titles and section headers use Georgia Italic (brand display).
   Card titles + inline UI headers keep the body font for legibility. */
.page-header h2,
.brand h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
/* Eyebrow utility: short uppercase letter-spaced label, used in section openers. */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--slate);
}
#app { height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; margin: 4px 0 0 0; }

/* ========== Auth ========== */
.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 45%, var(--teal-mid) 80%, var(--sage) 100%);
}
.auth-card {
  width: 420px;
  max-width: 92vw;
  background: var(--surface);
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
}
.brand { text-align: center; margin-bottom: 24px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: auto;
  margin-bottom: 4px;
}
.brand-mark img {
  max-height: 90px;
  max-width: 240px;
  height: auto;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-mark.text-only {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  height: auto;
}
.brand h1 { font-size: 20px; margin: 14px 0 4px; color: var(--primary); font-weight: 500; }
.brand .muted { font-size: 12.5px; }
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=date], textarea, select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; min-height: 64px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.success { color: var(--accent); font-size: 13px; margin-top: 4px; }

/* ========== Buttons ========== */
.btn {
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, transform 0.04s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ========== Shell ========== */
.shell { display: flex; flex: 1; min-height: 0; }
.sidebar {
  width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
  font-style: italic;
}
/* Mark is a 1:1 square SVG — force both dimensions so flex doesn't squash it. */
.brand-mini img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand-mini .brand-mark { height: auto; margin: 0; }
.brand-mini .brand-mark.text-only { padding: 4px 10px; font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}
.nav-btn:hover { background: var(--surface-2); }
.nav-btn.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }

.user-info {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 13px;
}
.user-name { font-weight: 600; }
.user-role {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.main {
  flex: 1;
  overflow-y: auto;
  padding: 26px 32px;
}

/* ========== Page ========== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 18px;
  flex-wrap: wrap;
}
.page-header h2 { margin: 6px 0 0; font-size: 22px; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back-btn { margin-bottom: 4px; }

/* ========== Grid / Cards ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card form { display: flex; flex-direction: column; gap: 12px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.12s, border-color 0.12s;
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.project-card h4 { margin: 0 0 6px; font-size: 16px; }
.project-card .meta { color: var(--muted); font-size: 12px; }
.project-card .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag.RESIDENCIAL { background: #e6f4ec; color: #1aa37a; }
.tag.COMERCIAL { background: #e6eef4; color: #2f6cc9; }
.tag.HOSPITAIS { background: #fbecec; color: #c0392b; }

/* ========== Tables ========== */
.table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-top: 8px;
}
.table th, .table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.table th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-2); }

/* ========== Badges ========== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 500;
}
.pill {
  display: inline-block;
  background: var(--warning);
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  margin-left: 6px;
  vertical-align: middle;
}
.status-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-chip.approved { background: #e6f4ec; color: #1aa37a; }
.status-chip.pending { background: #fff3e0; color: #e67e22; }
.status-chip.rejected { background: #fbecec; color: #c0392b; }
.status-chip.admin { background: #ede4fa; color: #6f42c1; }

/* ========== Empty ========== */
.empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}
.empty.hidden { display: none; }

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ========== Checklist ========== */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  flex-direction: row;
}
.filter-chip input { margin: 0; }
.checklist-section {
  margin-bottom: 18px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-header .section-progress { font-size: 12px; font-weight: 500; }
.checklist-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 60px 1fr 280px;
  gap: 14px;
  align-items: start;
}
.item-number {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}
.item-type {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 9px;
  display: inline-block;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.item-type.OBRIGATORIO { background: #fbecec; color: #c0392b; }
.item-type.PONTUACAO { background: #fff3e0; color: #e67e22; }
.item-desc {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
}
.item-response { display: flex; flex-direction: column; gap: 8px; }
.status-row { display: flex; gap: 4px; }
.status-row.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.status-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.1s;
  text-align: center;
}
.status-btn:hover { background: var(--surface-2); }
.status-btn.active.status-C  { background: #1aa37a; color: #fff; border-color: #1aa37a; }
.status-btn.active.status-NC { background: #c0392b; color: #fff; border-color: #c0392b; }
.status-btn.active.status-AT { background: #e67e22; color: #fff; border-color: #e67e22; }
.status-btn.active.status-NA { background: #67768a; color: #fff; border-color: #67768a; }
.status-btn.active.status-NP { background: #9aa5b1; color: #fff; border-color: #9aa5b1; }
.status-btn.active.status-NI { background: #5d6d7e; color: #fff; border-color: #5d6d7e; }
.meta-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 6px;
}
.meta-row select {
  font-size: 12px;
  padding: 5px 8px;
}
.item-response textarea { font-size: 12.5px; min-height: 50px; }
.photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.photo-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}
.photo-row .btn { padding: 5px 9px; font-size: 12px; }

.path-box {
  display: block;
  background: var(--surface-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12.5px;
  word-break: break-all;
  margin-top: 8px;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-preview {
  width: 120px;
  height: 80px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ========== Dashboard ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-card { padding: 16px 18px; }
.dashboard-card h3 { margin: 0 0 12px; font-size: 15px; }
.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  margin-top: 10px;
  color: var(--muted);
}
.chart-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.summary-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}
.summary-cell .lab { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.summary-cell .val { font-size: 18px; font-weight: 700; }
.summary-cell .delta { font-size: 11px; margin-top: 2px; }
.delta.up { color: #1aa37a; }
.delta.down { color: #c0392b; }
.delta.flat { color: var(--muted); }

/* ========== Photo lightbox ========== */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  cursor: zoom-out;
}
.lightbox-backdrop img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1c2630;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  font-size: 13.5px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }
.toast.success { background: var(--accent); }

/* ========== Mobile-specific ========== */

/* Topbar (escondida em desktop) */
.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  /* Respeita safe-area do iOS (notch) */
  padding-top: max(10px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-toggle {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  justify-content: center;
}
.topbar-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 16px;
}
.topbar-brand img { height: 26px; width: 26px; object-fit: contain; flex-shrink: 0; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 53, 64, 0.55);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.2s;
}
.sidebar-backdrop.open {
  display: block;
  opacity: 1;
}

/* ----- Tablet ----- */
@media (max-width: 900px) {
  .checklist-item { grid-template-columns: 1fr; }
  .sidebar { width: 200px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-actions { flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr 1fr; }
}

/* ----- Mobile (phone) ----- */
@media (max-width: 720px) {
  /* Mostra topbar, esconde sidebar por padrão (vira drawer). */
  .topbar { display: flex; }
  .shell { flex-direction: column; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    max-width: 80vw;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.22s ease-out;
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    padding-top: max(18px, env(safe-area-inset-top));
  }
  .sidebar.open { transform: translateX(0); }
  .main {
    padding: 18px 16px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .grid { grid-template-columns: 1fr; }

  /* Page header empilha */
  .page-header h2 { font-size: 19px; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }

  /* Cards de projeto maiores pra tocar */
  .project-card { padding: 18px; }
  .project-card h4 { font-size: 17px; }

  /* Modais ocupam quase a tela */
  .modal {
    width: 100% !important;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom)) 16px;
  }
  .modal-backdrop {
    align-items: stretch;
    padding: 0;
  }
  .modal-actions .btn { flex: 1; padding: 12px; }

  /* Checklist: itens com mais respiro pra tocar */
  .checklist-item { padding: 16px; gap: 12px; }
  .item-number { font-size: 22px; }
  .status-btn { padding: 10px 4px; font-size: 13px; min-height: 44px; }
  .meta-row { grid-template-columns: 1fr; }
  .meta-row select { padding: 10px; font-size: 14px; min-height: 44px; }
  textarea, input[type=text], input[type=password], input[type=email], input[type=date], select {
    font-size: 16px; /* >=16px evita zoom automático do iOS ao focar */
    padding: 11px 12px;
  }

  /* Tabela de vistorias vira lista de cards */
  .table { border: none; background: transparent; }
  .table thead { display: none; }
  .table, .table tbody, .table tr { display: block; }
  .table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 4px 0;
    box-shadow: var(--shadow);
  }
  .table tr:hover td { background: transparent; }
  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
  }
  .table td:last-child { border-bottom: none; }
  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .table td[style*="text-align:right"] { justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
  .table td[style*="text-align:right"]::before { display: none; }

  /* Filtros do checklist em coluna */
  .filters { flex-direction: column; align-items: stretch; }
  .filter-chip, .filters select { width: 100%; padding: 10px 14px; min-height: 44px; box-sizing: border-box; }

  /* Dashboard em 1 coluna */
  .dashboard-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }

  /* Auth card adapta */
  .auth-card { padding: 28px 22px; border-radius: 12px; }
  .brand-mark { height: 70px; }
  .brand-mark img { max-height: 70px; max-width: 200px; }

  /* User info no rodapé da sidebar com mais respiro */
  .user-info { padding-bottom: max(14px, env(safe-area-inset-bottom)); }

  /* Filter-chip do checklist com mais altura no toque */
  .filter-chip { display: flex; align-items: center; }
}

/* ----- Mobile pequeno ----- */
@media (max-width: 420px) {
  .main { padding: 14px 12px; }
  .page-header h2 { font-size: 17px; }
  .summary-grid { grid-template-columns: 1fr; }
  .header-actions .btn { font-size: 13px; padding: 11px 12px; }
}
