* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #1a1a1a; background: #f4f5f7; }
.hidden { display: none !important; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 14px 24px; border-bottom: 1px solid #e6e8eb;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: bold; font-size: 16px; }
.brand span { color: #1f8a4c; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-email { color: #666; font-size: 13px; }
.badge { background: #fde68a; color: #92400e; padding: 3px 10px; border-radius: 12px; font-size: 12px; }

.btn {
  background: #1f8a4c; color: #fff; border: none; padding: 11px 20px;
  border-radius: 6px; font-size: 15px; cursor: pointer;
}
.btn:hover { background: #176b3b; }
.btn-ghost {
  background: #fff; border: 1px solid #d0d4d9; padding: 8px 14px;
  border-radius: 6px; font-size: 13px; cursor: pointer;
}
.btn-ghost:hover { background: #f0f2f4; }

/* Вход */
.login-view { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.login-card {
  background: #fff; padding: 32px; border-radius: 10px; width: 320px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.login-card h2 { font-size: 18px; }
.login-card input { padding: 11px; border: 1px solid #d0d4d9; border-radius: 6px; font-size: 15px; }
.error { color: #c0392b; font-size: 13px; min-height: 16px; }

/* Дашборд */
.dashboard { padding: 24px; max-width: 1200px; margin: 0 auto; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: 10px; padding: 16px 20px; min-width: 130px;
  border: 1px solid #e6e8eb;
}
.stat-card .num { font-size: 26px; font-weight: bold; color: #1f8a4c; }
.stat-card .lbl { font-size: 13px; color: #666; margin-top: 2px; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.controls select, .controls input[type=search] {
  padding: 9px 12px; border: 1px solid #d0d4d9; border-radius: 6px; font-size: 14px;
}
.controls input[type=search] { flex: 1; min-width: 220px; }

.table-wrap { background: #fff; border-radius: 10px; border: 1px solid #e6e8eb; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
th { background: #f7f9fa; color: #555; font-weight: bold; white-space: nowrap; }
tbody tr:hover { background: #f9fbfa; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.tag.qualified { background: #d1fae5; color: #065f46; }
.tag.completed { background: #dbeafe; color: #1e40af; }
.tag.partial { background: #fef3c7; color: #92400e; }
.seg { font-weight: bold; }
.phone { font-family: monospace; white-space: nowrap; }
.answers { color: #666; font-size: 12.5px; max-width: 260px; }
.empty { padding: 30px; text-align: center; color: #888; }
