.login-card, .card { background: rgba(255,255,255,0.9); border: 1px solid rgba(216,224,232,0.9); border-radius: 30px; box-shadow: var(--shadow); }
.login-card { width: 100%; max-width: 430px; padding: 34px; text-align: center; }
.card { padding: 28px; }
.login-logo { width: 130px; height: 130px; object-fit: contain; margin-bottom: 18px; background: white; border-radius: 26px; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.summit-logo { width: 120px; height: 120px; object-fit: contain; background: white; border-radius: 22px; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.brand { display: flex; flex-direction: column; gap: 12px; }
.brand h1, .login-card h1, .topbar h2, .card-header h3 { margin: 0; }
.brand h1 { font-size: 24px; line-height: 1.1; }
.login-card h1 { font-size: 28px; letter-spacing: -0.04em; }
.topbar h2 { font-size: 30px; letter-spacing: -0.04em; }
.card-header h3 { font-size: 20px; letter-spacing: -0.02em; }
.brand p { margin: 0; opacity: 0.82; color: white; font-size: 14px; line-height: 1.5; }
.login-card p, .topbar p, .card-header p { color: var(--muted); }
.login-card p { margin: 8px 0 26px; font-size: 14px; }
.topbar p { margin: 6px 0 0; }
.card-header { margin-bottom: 24px; }
.card-header p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.nav { margin-top: 36px; display: grid; gap: 10px; }
.nav-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.12); font-size: 14px; font-weight: 600; }
.nav-item.active { background: rgba(255,255,255,0.22); }
.sidebar-note { font-size: 12px; line-height: 1.5; opacity: 0.75; }
.badge { padding: 10px 14px; border-radius: 999px; background: var(--summit-blue-light); color: var(--summit-blue-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 700; color: #344054; margin-bottom: 8px; text-align: left; }
input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; color: var(--text); background: white; outline: none; transition: border 0.15s ease, box-shadow 0.15s ease; }
input:focus, textarea:focus { border-color: var(--summit-blue); box-shadow: 0 0 0 4px rgba(82,107,133,0.14); }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.recipient-box { min-height: 100px; }
.helper-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.template-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.template-btn, .secondary-btn, .icon-btn { border: 1px solid var(--border); background: white; color: var(--summit-blue-dark); cursor: pointer; font-weight: 800; }
.template-btn { padding: 10px 12px; border-radius: 999px; font-size: 13px; }
.template-btn:hover, .secondary-btn:hover { background: var(--summit-blue-light); }
.secondary-btn { padding: 12px 14px; border-radius: 999px; }
.secondary-btn.compact { padding: 10px 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; font-size: 24px; line-height: 1; }
.primary-btn, .danger-send-btn { width: 100%; border: 0; border-radius: 18px; padding: 16px 18px; color: white; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 26px rgba(82,107,133,0.28); }
.primary-btn { background: linear-gradient(135deg, var(--summit-blue), var(--summit-blue-dark)); }
.danger-send-btn { background: linear-gradient(135deg, #b42318, #7a271a); }
.status { margin-top: 18px; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.4; display: none; text-align: left; }
.status.success { display: block; background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.status.error { display: block; background: #fef3f2; color: var(--error); border: 1px solid #fecdca; }
.preview-phone { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 36px; background: #111827; padding: 14px; box-shadow: 0 24px 50px rgba(17,24,39,0.24); }
.phone-screen { background: #f3f4f6; border-radius: 26px; min-height: 430px; padding: 18px; display: flex; flex-direction: column; }
.phone-header { text-align: center; font-size: 13px; font-weight: 800; color: #374151; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.message-bubble { margin-top: 20px; margin-left: auto; background: var(--summit-blue); color: white; padding: 13px 15px; border-radius: 18px 18px 4px 18px; max-width: 86%; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.empty-preview { color: #9ca3af; font-size: 14px; text-align: center; margin-top: 120px; line-height: 1.5; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.stat { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.stat strong { display: block; font-size: 20px; color: var(--summit-blue-dark); }
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.nav-item {
  border: none;
  text-align: left;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-badge {
  background: #e11d48;
  color: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.app-page {
  width: 100%;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border 0.15s ease, background 0.15s ease;
  margin-bottom: 20px;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--summit-blue);
  background: var(--summit-blue-light);
}

.drop-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.drop-zone h3 {
  margin: 0;
  color: var(--summit-blue-dark);
}

.drop-zone p {
  margin: 8px 0 0;
  color: var(--muted);
}

.selected-files {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.file-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
}

.import-summary {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.summary-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
  padding: 16px;
}

.summary-card strong {
  display: block;
  font-size: 22px;
  color: var(--summit-blue-dark);
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
}
.preview-section {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.preview-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  padding: 18px;
}

.preview-card h4 {
  margin: 0 0 12px;
  color: var(--summit-blue-dark);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 14px;
}

.preview-row:last-child {
  border-bottom: 0;
}

.warning-list {
  color: var(--error);
  font-size: 14px;
  line-height: 1.5;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.filter-bar input[type="text"],
.filter-bar select {
  width: auto;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.filter-bar input[type="text"] {
  flex: 1 1 220px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.checkbox-field input {
  width: auto;
}

.customer-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
}

.customer-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.customer-card:hover {
  border-color: var(--summit-blue);
}

.customer-card.selected {
  border-color: var(--summit-blue);
  box-shadow: 0 0 0 3px rgba(82,107,133,0.14);
}

.customer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.customer-card-meta {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.customer-card-athletes {
  margin-top: 8px;
  font-size: 13px;
  color: var(--summit-blue-dark);
}

.badge.inactive {
  background: #fef3f2;
  color: var(--error);
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.pagination-buttons {
  display: flex;
  gap: 10px;
}

.family-row-table {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.family-row {
  display: grid;
  grid-template-columns: 56px 140px 1fr 200px 90px;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #edf2f7;
  align-items: start;
}

.family-row:last-child {
  border-bottom: 0;
}

.family-row-header {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-weight: 700;
  color: var(--summit-blue-dark);
  z-index: 1;
}

.family-row-ambiguous {
  background: #fef3f2;
}

.family-row-parents_only {
  background: #fffaf0;
}

.family-row-empty {
  color: var(--muted);
}

.family-row-status {
  font-weight: 700;
}

.family-row-ambiguous .family-row-status {
  color: var(--error);
}

.family-row-parents_only .family-row-status {
  color: #b45309;
}

.family-row-edited {
  background: #eef3f7;
}

.family-row-edited .family-row-status {
  color: var(--summit-blue-dark);
}

.family-row-athletes[data-editable="true"] {
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 6px;
  margin: -2px -6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.family-row-athletes[data-editable="true"]:hover {
  background: rgba(82, 107, 133, 0.1);
}

.family-row-edit-hint {
  font-size: 11px;
  color: var(--summit-blue);
  opacity: 0;
  white-space: nowrap;
}

.family-row-athletes[data-editable="true"]:hover .family-row-edit-hint {
  opacity: 1;
}

.family-row-edit-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
}

.family-row-reset-btn {
  border: none;
  background: none;
  color: var(--summit-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.family-row-reset-btn:hover {
  text-decoration: underline;
}

.section-heading {
  margin: 20px 0 12px;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-badge {
  padding: 3px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.role-parent {
  background: #f3f0ff;
  color: #6d28d9;
}

.role-athlete {
  background: #ecfdf5;
  color: #047857;
}

.chat-card-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.customer-card.unread {
  border-color: var(--summit-blue);
}

.customer-card.unread strong,
.customer-card.unread .chat-card-preview {
  font-weight: 800;
  color: var(--text);
}

.chat-unread-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--summit-blue);
  margin-right: 6px;
  vertical-align: middle;
}

.chat-list-empty-phone {
  font-style: italic;
}

.chat-card-preview {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-messages {
  background: #f3f4f6;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 480px;
  min-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.chat-bubble-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.chat-bubble-row.outbound {
  align-items: flex-end;
}

.chat-bubble-row.inbound {
  align-items: flex-start;
}

.chat-messages .message-bubble {
  margin-top: 0;
}

.message-bubble.inbound {
  margin-left: 0;
  margin-right: auto;
  background: #e5e7eb;
  color: #1f2937;
  border-radius: 18px 18px 18px 4px;
}

.chat-bubble-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 4px;
}

.compose-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mode-tab {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mode-tab:hover {
  border-color: var(--summit-blue);
}

.mode-tab.active {
  background: var(--summit-blue);
  border-color: var(--summit-blue);
  color: white;
}

.audience-preview {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--summit-blue-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audience-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--summit-blue-dark);
}

.audience-excluded {
  font-size: 12px;
  color: var(--muted);
}

.new-chat-row {
  position: relative;
  margin-bottom: 14px;
}

.new-chat-search-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.new-chat-search-box input {
  margin-bottom: 8px;
}

.new-chat-results {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
}

.new-chat-result {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.new-chat-result:hover {
  background: var(--summit-blue-light);
}

.new-chat-result span {
  color: var(--muted);
  font-size: 12px;
}

.new-chat-result small {
  color: var(--summit-blue-dark);
}

.new-chat-result.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.new-chat-result-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.review-recipients-toggle {
  margin-top: 10px;
}

.text-btn {
  border: none;
  background: none;
  color: var(--summit-blue);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}

.text-btn:hover {
  text-decoration: underline;
}

.review-recipients-panel {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.review-recipients-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--summit-blue-dark);
}

.review-recipients-list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
}

.review-recipient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

.review-recipient-row:hover {
  background: white;
}

.review-recipient-row input {
  width: auto;
}

.review-recipient-row small {
  margin-left: auto;
  color: var(--muted);
}