/**
 * TeamsApp Design System — Settings-quality UI for the entire application.
 */

:root {
  --ta-bg: #0c0c0c;
  --ta-accent: #e8192c;
  --st-bg: #0c0c0c;
  --st-bg-elevated: #141414;
  --st-surface: rgba(255, 255, 255, 0.045);
  --st-surface-hover: rgba(255, 255, 255, 0.07);
  --st-surface-press: rgba(255, 255, 255, 0.1);
  --st-border: rgba(255, 255, 255, 0.08);
  --st-border-strong: rgba(255, 255, 255, 0.12);
  --st-text: #f5f5f7;
  --st-text-secondary: rgba(235, 235, 245, 0.6);
  --st-text-tertiary: rgba(235, 235, 245, 0.38);
  --st-accent: #e8192c;
  --st-accent-soft: rgba(232, 25, 44, 0.14);
  --st-success: #30d158;
  --st-success-bg: rgba(48, 209, 88, 0.12);
  --st-danger: #ff453a;
  --st-danger-bg: rgba(255, 69, 58, 0.12);
  --st-radius-group: 14px;
  --st-radius-row: 0;
  --st-row-min-h: 52px;
  --st-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --st-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --st-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 32px rgba(0, 0, 0, 0.35);
  --st-max-w: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

.ta-page,
.settings-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--st-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(232, 25, 44, 0.08), transparent 55%),
    linear-gradient(180deg, #101010 0%, var(--st-bg) 40%);
  color: var(--st-text);
  font-family: var(--st-font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.ta-shell,
.settings-shell {
  max-width: var(--st-max-w);
  margin: 0 auto;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  min-width: 0;
}

/* —— Profile header —— */
.settings-hero {
  padding: 20px 4px 24px;
  animation: st-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.settings-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%);
  border: 1px solid var(--st-border-strong);
  border-radius: 18px;
  box-shadow: var(--st-shadow);
}

.settings-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--st-accent) 0%, #ff5c6a 100%);
  display: grid;
  place-items: center;
  font-family: var(--st-font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(232, 25, 44, 0.35);
}

.settings-hero-text { min-width: 0; flex: 1; }

.settings-hero-title {
  margin: 0 0 4px;
  font-family: var(--st-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--st-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-role-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--st-accent-soft);
  color: #ff8a94;
  border: 1px solid rgba(232, 25, 44, 0.25);
}

/* —— Toast alerts —— */
.settings-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: st-fade-up 0.35s ease both;
}

.settings-toast--success {
  background: var(--st-success-bg);
  border: 1px solid rgba(48, 209, 88, 0.25);
  color: #7dffb0;
}

.settings-toast--error {
  background: var(--st-danger-bg);
  border: 1px solid rgba(255, 69, 58, 0.25);
  color: #ff9f98;
}

.settings-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* —— Section groups —— */
.settings-section {
  margin-bottom: 28px;
  animation: st-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.settings-section:nth-child(2) { animation-delay: 0.04s; }
.settings-section:nth-child(3) { animation-delay: 0.08s; }
.settings-section:nth-child(4) { animation-delay: 0.12s; }
.settings-section:nth-child(5) { animation-delay: 0.16s; }
.settings-section:nth-child(6) { animation-delay: 0.2s; }

.settings-section-label {
  margin: 0 0 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--st-text-tertiary);
}

.settings-group {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-group);
  overflow: hidden;
  box-shadow: var(--st-shadow);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--st-row-min-h);
  padding: 0 16px;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.settings-row::after {
  content: '';
  position: absolute;
  left: 56px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--st-border);
  pointer-events: none;
}

.settings-group li:last-child .settings-row::after {
  display: none;
}

@media (hover: hover) {
  .settings-row:hover {
    background: var(--st-surface-hover);
  }
}

.settings-row:active {
  background: var(--st-surface-press);
  transition-duration: 0.05s;
}

.settings-row-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--st-text);
}

.settings-row-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-row-icon--accent {
  background: var(--st-accent-soft);
  color: #ff6b78;
}

.settings-row-icon--blue { background: rgba(10, 132, 255, 0.15); color: #64b5ff; }
.settings-row-icon--green { background: rgba(48, 209, 88, 0.12); color: #5ee87a; }
.settings-row-icon--orange { background: rgba(255, 159, 10, 0.12); color: #ffb340; }
.settings-row-icon--purple { background: rgba(191, 90, 242, 0.12); color: #c88aff; }

.settings-row-body {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
}

.settings-row-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.settings-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--st-text-secondary);
  line-height: 1.35;
}

.settings-row-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--st-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(232, 25, 44, 0.4);
}

.settings-chevron {
  width: 16px;
  height: 16px;
  color: var(--st-text-tertiary);
  flex-shrink: 0;
}

.settings-chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Destructive row */
.settings-row--destructive .settings-row-label {
  color: var(--st-danger);
}

.settings-row--destructive .settings-row-icon {
  background: var(--st-danger-bg);
  color: var(--st-danger);
}

/* Footer */
.settings-footer {
  text-align: center;
  padding: 8px 0 12px;
  font-size: 12px;
  color: var(--st-text-tertiary);
  letter-spacing: 0.01em;
}

.settings-footer strong {
  color: var(--st-text-secondary);
  font-weight: 600;
}

/* —— Bottom sheet modals —— */
.st-modal-root {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.st-modal-root.is-open {
  opacity: 1;
  visibility: visible;
}

.st-modal-root.is-open .st-modal-sheet {
  transform: translateY(0);
}

.st-modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  max-height: min(92dvh, 720px);
  background: #1c1c1e;
  border: 1px solid var(--st-border-strong);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .st-modal-root {
    align-items: center;
    padding: 24px;
  }
  .st-modal-sheet {
    border-radius: 20px;
    transform: translateY(24px) scale(0.96);
  }
  .st-modal-root.is-open .st-modal-sheet {
    transform: translateY(0) scale(1);
  }
}

.st-modal-grabber {
  width: 36px;
  height: 5px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .st-modal-grabber { display: none; }
}

.st-modal-head {
  padding: 8px 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--st-border);
}

.st-modal-head h2 {
  margin: 0;
  font-family: var(--st-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.st-modal-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--st-text-secondary);
}

.st-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.st-field {
  margin-bottom: 16px;
}

.st-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text-secondary);
}

.st-input,
.st-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--st-border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--st-text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.st-input:focus,
.st-textarea:focus {
  border-color: rgba(232, 25, 44, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.15);
}

.st-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.st-quick-links {
  margin-bottom: 16px;
}

.st-quick-links p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--st-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.st-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-border);
  color: var(--st-text-secondary);
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-chip:hover {
  background: var(--st-accent-soft);
  border-color: rgba(232, 25, 44, 0.3);
  color: #fff;
}

.st-modal-meta {
  font-size: 12px;
  color: var(--st-text-tertiary);
  margin: -4px 0 16px;
  line-height: 1.5;
}

.st-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.st-btn:active { transform: scale(0.98); opacity: 0.92; }

.st-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--st-text);
  border: 1px solid var(--st-border);
}

.st-btn--primary {
  background: linear-gradient(180deg, #ff3b4a 0%, var(--st-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 25, 44, 0.35);
}

.st-btn--danger {
  background: linear-gradient(180deg, #ff4d5c 0%, #d9182c 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(217, 24, 44, 0.35);
}

/* Confirm dialog (replaces window.confirm) */
.st-confirm-body {
  padding: 8px 20px 8px;
}

.st-confirm-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--st-text-secondary);
  text-align: center;
}

.st-confirm-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--st-border);
  font-size: 13px;
  line-height: 1.45;
  color: var(--st-text-tertiary);
  text-align: left;
}

.st-modal-actions--confirm {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 420px) {
  .st-modal-actions--confirm {
    grid-template-columns: 1fr 1fr;
  }
}

.st-modal-actions--confirm .st-btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

@media (max-width: 419px) {
  .st-modal-actions--confirm .st-btn--danger,
  .st-modal-actions--confirm .st-btn--primary {
    order: -1;
  }
}

@keyframes st-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-hero,
  .settings-section,
  .settings-toast,
  .st-modal-sheet,
  .ta-section,
  .ta-hero,
  .ta-toast {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Extended components (app-wide)
   ═══════════════════════════════════════════════════════════════ */

.ta-page-intro {
  padding: 8px 4px 20px;
  animation: st-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ta-page-title {
  margin: 0 0 6px;
  font-family: var(--st-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ta-page-sub {
  margin: 0;
  font-size: 14px;
  color: var(--st-text-secondary);
  line-height: 1.5;
}

.ta-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ta-tab {
  flex: 1 1 auto;
  min-width: 120px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  color: var(--st-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.ta-tab:active { transform: scale(0.98); }

.ta-tab.is-active {
  background: linear-gradient(180deg, #ff3b4a 0%, var(--st-accent) 100%);
  border-color: rgba(232, 25, 44, 0.45);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 25, 44, 0.28);
}

.ta-tab .ta-badge-inline {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 700;
}

.ta-panel {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-group);
  padding: 20px 18px;
  box-shadow: var(--st-shadow);
  animation: st-fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ta-panel + .ta-panel { margin-top: 14px; }

.ta-field { margin-bottom: 16px; }
.ta-field:last-child { margin-bottom: 0; }

.ta-field label,
.ta-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text-secondary);
}

.ta-hint {
  margin: -4px 0 8px;
  font-size: 12px;
  color: var(--st-text-tertiary);
  line-height: 1.45;
}

.ta-input,
.ta-textarea,
.ta-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--st-border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--st-text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ta-textarea { min-height: 132px; resize: vertical; line-height: 1.5; }

.ta-input:focus,
.ta-textarea:focus,
.ta-select:focus {
  border-color: rgba(232, 25, 44, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.15);
}

.ta-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--st-border);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

label.ta-check-row {
  cursor: pointer;
  margin-left: 0;
  margin-right: 0;
}

.ta-check-row input[type="checkbox"],
.ta-check-row input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  margin-top: 2px;
  padding: 0 !important;
  margin-bottom: 0 !important;
  flex: 0 0 20px !important;
  flex-shrink: 0;
  accent-color: var(--st-accent);
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 4px;
}

.ta-check-row input[type="radio"] {
  border-radius: 50%;
}

.ta-check-row span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--st-text-secondary);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ta-check-row label {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.ta-btn-block {
  width: 100%;
  margin-top: 18px;
}

.ta-btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 12px;
}

.ta-btn--danger {
  background: linear-gradient(180deg, #ff6259 0%, var(--st-danger) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 69, 58, 0.28);
}

.ta-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--st-text);
  border: 1px solid var(--st-border);
  box-shadow: none;
}

.ta-btn--info {
  background: rgba(10, 132, 255, 0.18);
  color: #64b5ff;
  border: 1px solid rgba(10, 132, 255, 0.28);
  box-shadow: none;
}

.ta-info-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--st-border);
}

.ta-info-row:last-child { border-bottom: none; }

.ta-info-row strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-text-tertiary);
  margin-bottom: 4px;
}

.ta-info-row span,
.ta-info-row a {
  color: var(--st-text);
  font-size: 16px;
  line-height: 1.45;
  word-break: break-word;
}

.ta-info-row a { color: #ff8a94; text-decoration: none; }
.ta-info-row a:hover { text-decoration: underline; }

.ta-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--st-accent-soft);
  border: 1px solid rgba(232, 25, 44, 0.22);
  color: var(--st-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.ta-callout a { color: #ff8a94; }

.ta-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--st-text-tertiary);
}

.ta-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: var(--st-text-tertiary);
}

.ta-empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--st-text-secondary);
}

.ta-empty-sub { margin: 0; font-size: 14px; line-height: 1.45; }

.ta-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.ta-member-card {
  padding: 16px;
  border-radius: var(--st-radius-group);
  border: 1px solid var(--st-border);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

@media (hover: hover) {
  .ta-member-card:hover {
    background: var(--st-surface-hover);
    border-color: var(--st-border-strong);
    transform: translateY(-1px);
  }
}

.ta-member-card:active { transform: scale(0.99); }

.ta-member-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.ta-member-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--st-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ta-member-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--st-danger-bg);
  border: 1px solid rgba(255, 69, 58, 0.22);
  color: #ff9f98;
  font-size: 12px;
  font-weight: 600;
}

.ta-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ta-member-actions > a,
.ta-member-actions > button,
.ta-member-actions > form {
  min-width: 0;
}

.ta-member-actions form {
  display: flex;
  margin: 0;
}

@media (max-width: 640px) {
  .ta-member-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ta-member-actions > a.st-btn,
  .ta-member-actions > button.st-btn,
  .ta-member-actions > form,
  .ta-member-actions > form .st-btn {
    width: 100%;
  }
}

.ta-schedule-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.ta-schedule-hub-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--st-shadow);
}

.ta-schedule-hub-btn strong {
  font-size: 16px;
  font-weight: 700;
}

.ta-schedule-hub-btn span {
  font-size: 12px;
  color: var(--st-text-secondary);
}

.ta-schedule-hub-btn.is-active {
  border-color: var(--st-accent);
  background: var(--st-accent-soft);
}

.ta-schedule-hub-btn.is-active strong {
  color: var(--st-accent);
}

.ta-accordion { display: flex; flex-direction: column; gap: 10px; }

.ta-accordion-item {
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-group);
  background: var(--st-surface);
  overflow: hidden;
  box-shadow: var(--st-shadow);
}

.ta-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--st-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ta-accordion-trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ta-accordion-item.is-open .ta-accordion-trigger svg { transform: rotate(180deg); }

.ta-accordion-body {
  display: none;
  padding: 0 18px 16px;
  color: var(--st-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.ta-accordion-item.is-open .ta-accordion-body { display: block; animation: st-fade-up 0.28s ease both; }

.ta-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: ta-shimmer 1.2s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes ta-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ta-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st-bg);
  transition: opacity 0.28s ease;
}

.ta-loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--st-accent);
  animation: ta-spin 0.85s linear infinite;
}

@keyframes ta-spin { to { transform: rotate(360deg); } }

.ta-divider-label {
  margin: 20px 0 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--st-text-tertiary);
}

/* —— Auth (login, signup) —— */
.ta-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  overflow-x: hidden;
}

.ta-auth-card {
  width: 100%;
  max-width: 420px;
}

.ta-auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.ta-auth-logo h1 {
  margin: 0;
  font-family: var(--st-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #ff6b78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ta-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  font-size: 14px;
}

.ta-auth-links a {
  color: #ff8a94;
  text-decoration: none;
  font-weight: 600;
}

.ta-auth-links a:hover { text-decoration: underline; }

.ta-password-wrap { position: relative; }
.ta-password-wrap .ta-input { padding-right: 72px; }
.ta-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--st-text-tertiary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ta-password-toggle:hover { color: var(--st-text); background: rgba(255,255,255,0.06); }

.ta-input.code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.ta-auth-card--wide { width: min(480px, 100%); }

.ta-auth {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.ta-auth-logo img {
  width: min(360px, 86vw);
  filter: drop-shadow(0 0 16px rgba(232, 25, 44, 0.35));
}

.ta-auth-shell { width: min(420px, 100%); min-width: 0; max-width: 100%; }
.ta-auth-shell .ta-panel,
.ta-auth-shell form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ta-auth-shell .ta-panel + .ta-panel { margin-top: 14px; }

.ta-auth-code,
.ta-input.ta-auth-code {
  text-align: center;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
}

.ta-auth-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--st-text-secondary);
  font-size: 14px;
  text-decoration: none;
}

.ta-auth-back:hover { color: var(--st-text); text-decoration: underline; }

.ta-auth-forgot {
  display: block;
  text-align: right;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--st-text-secondary);
  text-decoration: none;
}

.ta-auth-forgot:hover { color: #ff8a94; }

.ta-auth-section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ta-auth-section-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--st-text-secondary);
  line-height: 1.45;
}

.ta-auth-section .st-btn { width: 100%; text-decoration: none; }

/* —— Home hub (admin-home, user-home) —— */
.ta-home-logo {
  text-align: center;
  padding: 24px 4px 8px;
}

.ta-home-logo img {
  width: min(320px, 80vw);
  filter: drop-shadow(0 0 16px rgba(232, 25, 44, 0.35));
}

.ta-home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ta-home-actions .st-btn { width: 100%; text-decoration: none; }

.ta-home-logout {
  display: block;
  text-align: center;
  margin: 24px 0 8px;
  color: var(--st-text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.ta-home-logout:hover { color: #ff8a94; text-decoration: underline; }

.ta-home-club-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid var(--st-border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.ta-home-club-logo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--st-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--st-text-tertiary);
}

a.ta-club-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* —— Events list —— */
.ta-event-desc {
  display: none;
  margin-top: 12px;
  color: var(--st-text-secondary);
  line-height: 1.5;
}

.ta-event-desc.is-open { display: block; }

.ta-event-image {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.ta-event-ticket-meta p {
  margin: 0 0 12px;
  line-height: 1.45;
  color: var(--st-text-secondary);
}

.ta-event-ticket-meta strong {
  color: var(--st-text);
  display: block;
  margin-bottom: 2px;
}

.ta-event-ticket-checked {
  color: #3dd68c !important;
}

.ta-event-ticket-qr-wrap {
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--st-border);
}

.ta-event-ticket-qr {
  display: inline-block;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.ta-event-ticket-code {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--st-text-secondary);
  word-break: break-all;
}

/* —— Coaches notepad —— */
.ta-notepad-content {
  white-space: pre-wrap;
  line-height: 1.5;
  color: var(--st-text-secondary);
}

/* Tom Select dark theme (chat admin) */
.ta-page .ts-control {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--st-border-strong) !important;
  border-radius: 10px !important;
  color: var(--st-text) !important;
}

.ta-page .ts-control input { color: var(--st-text) !important; }

.ta-page .ts-dropdown {
  background-color: #1c1c1e !important;
  border: 1px solid var(--st-border-strong) !important;
  color: var(--st-text) !important;
}

.ta-page .ts-dropdown .option { color: var(--st-text) !important; }

.ta-page .ts-dropdown .active {
  background-color: var(--st-accent-soft) !important;
  color: #ff8a94 !important;
}

.ta-chat-groups {
  -webkit-user-select: none;
  user-select: none;
}

.ta-chat-group-block {
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--st-border);
}

/* Legacy simple modal (coaches notepad) */
.ta-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ta-modal.is-open { display: flex; }

.ta-modal-card {
  background: var(--st-surface);
  padding: 24px;
  border-radius: var(--st-radius-group);
  width: min(500px, 100%);
  border: 1px solid var(--st-border-strong);
  box-shadow: var(--st-shadow-lg);
}

/* —— Data tables —— */
.ta-table-wrap {
  overflow-x: auto;
  border-radius: var(--st-radius-group);
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
  -webkit-overflow-scrolling: touch;
}

.ta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ta-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(20, 20, 20, 0.98);
}

.ta-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-text-tertiary);
  border-bottom: 1px solid var(--st-border-strong);
}

.ta-table td {
  padding: 14px;
  border-bottom: 1px solid var(--st-border);
  color: var(--st-text);
  vertical-align: middle;
}

.ta-table tbody tr {
  transition: background 0.12s ease;
}

@media (hover: hover) {
  .ta-table tbody tr:hover {
    background: var(--st-surface-hover);
  }
}

.ta-table tbody tr:last-child td { border-bottom: none; }

/* —— Child / nested cards —— */
.ta-child-card {
  border: 1px solid var(--st-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.ta-child-card:last-child { margin-bottom: 0; }

.ta-section-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--st-text);
}

.ta-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* —— Legacy page normalization —— */
.ta-page .container,
.ta-page .wrap {
  max-width: var(--st-max-w);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.ta-page h1:not([class]),
.ta-page h2:not([class]) {
  font-family: var(--st-font-display);
  letter-spacing: -0.02em;
}

.ta-page input:not([class]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]),
.ta-page textarea:not([class]),
.ta-page select:not([class]) {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--st-border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--st-text);
  font: inherit;
  font-size: 16px;
  margin-bottom: 12px;
}

.ta-page input[type="checkbox"].ta-checkbox,
.ta-page input[type="radio"].ta-radio {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 20px !important;
}

.ta-page input[type="radio"].ta-radio {
  border-radius: 50%;
}

.ta-page button:not([class]),
.ta-page input[type=submit]:not([class]),
.ta-page .btn:not([class]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff3b4a 0%, var(--st-accent) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 25, 44, 0.28);
  transition: transform 0.12s, opacity 0.12s;
}

.ta-page button:not([class]):active { transform: scale(0.98); }

.ta-page table:not([class]) {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ta-page table:not([class]) th,
.ta-page table:not([class]) td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--st-border);
  text-align: left;
}

.ta-page .error-msg,
.ta-page .err { color: #ff9f98; }
.ta-page .success-msg,
.ta-page .ok { color: #7dffb0; }

/* ── Desktop / layout hardening (wins over legacy ui-fixes & stale cache) ── */
.ta-club-news-block {
  width: min(640px, 100%) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.ta-club-news-block .ta-panel,
.ta-club-news-block form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ta-people-search {
  position: relative;
}
.ta-people-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--st-text-tertiary);
  pointer-events: none;
  display: inline-flex;
}
.ta-people-search .ta-input {
  padding-left: 42px;
}
.ta-people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.ta-people-filter {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--st-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--st-text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ta-people-filter.is-on {
  background: rgba(232, 25, 44, 0.16);
  border-color: rgba(232, 25, 44, 0.4);
  color: #fff;
}
.ta-people-meta {
  font-size: 12px;
  color: var(--st-text-tertiary);
  margin: 0 0 8px;
  min-height: 16px;
}
.ta-people-list {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--st-border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.ta-people-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid var(--st-border);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ta-people-row:last-child { border-bottom: 0; }
.ta-people-row.is-active,
.ta-people-row:hover {
  background: rgba(232, 25, 44, 0.1);
}
.ta-people-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--st-text);
}
.ta-people-copy {
  min-width: 0;
  flex: 1;
}
.ta-people-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ta-people-user {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--st-text-tertiary);
}
.ta-people-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ta-people-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--st-text-secondary);
}
.ta-people-chip--kid {
  background: rgba(232, 25, 44, 0.1);
  border-color: rgba(232, 25, 44, 0.22);
}
.ta-people-chip mark,
.ta-people-name mark,
.ta-people-user mark {
  background: rgba(255, 214, 10, 0.35);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.ta-people-empty {
  margin: 8px 0 0;
  padding: 18px 14px;
  border: 1px dashed var(--st-border);
  border-radius: 14px;
  text-align: center;
  color: var(--st-text-tertiary);
  font-size: 14px;
}
.ta-people-chosen {
  margin-bottom: 14px;
}
.ta-people-chosen-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 25, 44, 0.4);
  background: rgba(232, 25, 44, 0.1);
}
.ta-people-chosen-card .ta-people-copy { flex: 1; }
.ta-people-chosen-kids {
  margin-top: 4px;
  font-size: 12px;
  color: var(--st-text-secondary);
}
.ta-contact-compose {
  margin-top: 4px;
}

@media (min-width: 1024px) {
  html.is-wide body.ta-club-page:has(.ta-dock) {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html.is-wide body.ta-club-page .ta-app-bar,
  html.is-wide body.ta-club-page .ta-app-home,
  html.is-wide body.ta-club-page .ta-club-header,
  html.is-wide body.ta-club-page .ta-alert-strip {
    max-width: 1120px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html.is-wide body.ta-club-page:has(.ta-classic-home) .sections,
  html.is-wide body.ta-club-page:has(.ta-classic-home) .ta-club-news-block {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* —— Schedule event (TeamSnap-style flow, TeamsApp theme) —— */
a.ta-event-card,
a.ta-event-card-main {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.ta-event-card:active,
a.ta-event-card-main:active {
  transform: scale(0.99);
}

.ta-event-card-open {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--st-accent);
}

.ta-event-map-wrap {
  margin: 0 0 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}

.ta-event-map {
  display: block;
  width: 100%;
  height: 188px;
  border: 0;
  background: #1a1d22;
}

.ta-event-map--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.ta-event-map--empty strong {
  font-size: 16px;
}

.ta-event-map--empty span {
  font-size: 13px;
  color: var(--st-text-secondary);
}

.ta-event-hero {
  text-align: center;
  padding: 18px 8px 6px;
}

.ta-event-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-text-tertiary);
}

.ta-event-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 750;
}

.ta-event-when {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--st-text-secondary);
  white-space: pre-line;
}

.ta-rsvp {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 16px 0 18px;
  border: 1px solid var(--st-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--st-surface);
}

.ta-rsvp-btn {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--st-border);
  background: transparent;
  color: var(--st-text-secondary);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.ta-rsvp-btn:last-child { border-right: 0; }

.ta-rsvp-btn.is-active {
  background: var(--st-accent-soft);
  color: var(--st-accent);
}

.ta-rsvp-counts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ta-rsvp-count {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

.ta-rsvp-count strong {
  display: block;
  font-size: 22px;
}

.ta-rsvp-count span {
  font-size: 12px;
  color: var(--st-text-secondary);
}

.ta-event-rows {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-group);
  overflow: hidden;
  box-shadow: var(--st-shadow);
}

.ta-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--st-border);
}

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

.ta-event-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--st-accent-soft);
  color: var(--st-accent);
  flex: 0 0 auto;
}

.ta-event-row-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.ta-event-row-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ta-event-row-body strong {
  font-size: 15px;
}

.ta-event-row-body span {
  font-size: 13px;
  color: var(--st-text-secondary);
}

.ta-event-row-chevron {
  color: var(--st-text-tertiary);
}

.ta-event-ghost-form { margin-top: 14px; }

.ta-event-ghost-btn { width: 100%; }
a.ta-event-ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ta-event-name-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.ta-event-name-list li {
  padding: 10px 0;
  border-top: 1px solid var(--st-border);
  font-size: 15px;
}

.ta-event-name-list li:first-child { border-top: 0; }

.ta-event-fab {
  position: fixed;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff3b4a 0%, var(--st-accent) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(232, 25, 44, 0.35);
}

.ta-event-fab span {
  font-size: 22px;
  line-height: 1;
}

.ta-event-fab-space { height: 72px; }

