* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f5;
  color: #1d2a26;
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px;
  background: #0f3d2e;
  color: #eafff3;
  padding: 20px 0;
  flex-shrink: 0;
}
.brand { font-weight: 700; font-size: 1.1rem; padding: 0 20px 20px; }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
  color: #d3ece0;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 0.92rem;
}
.sidebar nav a:hover, .sidebar nav a.active { background: #145c41; color: #fff; }
.sidebar nav a.logout { margin-top: 20px; color: #f3c1c1; }
.content { flex: 1; padding: 28px 36px; max-width: 1100px; }
h1, h2, h3 { color: #0f3d2e; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e5e9e7; text-align: left; font-size: 0.92rem; }
th { background: #eef5f1; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.btn {
  display: inline-block;
  background: #16804f;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn:hover { background: #126b41; }
.btn.secondary { background: #cfe6da; color: #0f3d2e; }
.btn.danger { background: #c0392b; }
.btn.whatsapp { background: #25D366; }
input, textarea, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d3d9d6;
  border-radius: 6px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 4px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.flash-success { background: #d8f3e3; color: #145c41; }
.flash-error { background: #fbdcdc; color: #8c2a22; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0f3d2e; }
.login-card { background: #fff; padding: 36px; border-radius: 10px; width: 320px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; }
.badge-matched { background: #d8f3e3; color: #145c41; }
.badge-unmatched { background: #fde8d2; color: #8a5300; }
.badge-resolved { background: #d8e8fb; color: #1a4f8c; }
.photo-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; margin: 4px; }
