* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f2f5; color: #1a1a2e; }
.nav { background: #1a1a2e; color: #fff; padding: 12px 24px; display: flex;
       justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.nav a { color: #fff; text-decoration: none; margin-right: 16px; font-size: 14px; }
.nav a:hover { text-decoration: underline; }
.nav .user { font-size: 13px; display: flex; align-items: center; gap: 12px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h1 { font-size: 22px; margin-bottom: 4px; }
h2 { font-size: 17px; margin-bottom: 16px; color: #16213e; border-bottom: 2px solid #e94560; padding-bottom: 6px; }
.subtitle { color: #666; font-size: 14px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 12px; font-weight: 600; color: #444;
        margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
input[type=text], input[type=email], input[type=password], input[type=date],
textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid #ccc;
  border-radius: 4px; font-size: 14px; font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #e94560; }
textarea { resize: vertical; min-height: 70px; }
.btn { background: #e94560; color: #fff; border: none; padding: 10px 20px;
       border-radius: 4px; font-size: 14px; cursor: pointer; font-weight: 600; }
.btn:hover { background: #c73650; }
.btn-secondary { background: #16213e; }
.btn-secondary:hover { background: #0f1729; }
.btn-small { padding: 5px 10px; font-size: 12px; }
.q-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-table th, .q-table td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: middle; }
.q-table th { background: #16213e; color: #fff; font-size: 11px; text-transform: uppercase; text-align: center; }
.q-radio { text-align: center; width: 52px; }
.q-radio input { transform: scale(1.3); cursor: pointer; }
.comment-input { border: none; border-bottom: 1px solid #eee; border-radius: 0; padding: 4px; font-size: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 12px; }
.legend span { background: #eef1f6; padding: 4px 10px; border-radius: 20px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; }
.stats-table th { background: #f7f9fc; font-size: 12px; text-transform: uppercase; color: #555; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.rate-bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.rate-bar div { height: 100%; background: #e94560; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #d4edda; color: #155724; }
.alert-err { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }
.login-wrap { max-width: 380px; margin: 80px auto; }
.sig-canvas { border: 2px dashed #bbb; border-radius: 6px; background: #fafafa;
              cursor: crosshair; touch-action: none; width: 100%; height: 140px; display: block; }
.field-row { margin-bottom: 12px; }
.survey-header { text-align: center; margin-bottom: 24px; }
.survey-header h1 { color: #16213e; letter-spacing: 1px; }
.survey-header p { color: #888; font-size: 13px; }
.section-title { background: #eef1f6; padding: 8px 12px; border-left: 4px solid #e94560;
                 font-size: 14px; font-weight: 700; margin-bottom: 14px; color: #16213e; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
  .q-table { font-size: 11px; }
  .q-table th, .q-table td { padding: 4px; }
}