.account-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(36, 92, 151, .95), transparent 38rem),
    var(--navy);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  color: white;
  border-radius: 20px;
  background: var(--navy);
  max-width: 1120px;
  margin: 18px auto 0;
}

.account-header .portal-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.account-header .portal-brand img { width: 48px; height: 48px; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.account-header .portal-brand span,
.account-header .portal-brand small { display: block; }
.account-header .portal-brand strong { font-size: 17px; }
.account-header .portal-brand small { margin-top: 2px; color: #b9d2f0; font-size: 12px; }

.account-main {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.account-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.account-intro h1,
.account-auth-panel h2,
.account-dashboard h2,
.account-dashboard h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -.035em;
}

.account-intro h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.02; }
.account-intro > p:not(.account-eyebrow) { max-width: 620px; color: var(--muted); line-height: 1.65; }
.account-eyebrow { margin: 0 0 8px; color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.account-status { min-height: 20px; margin: 22px 0; color: var(--muted); font-weight: 750; }
.account-status.is-error { color: var(--red-dark); }

.account-notice,
.account-auth-panel,
.account-dashboard {
  margin-top: 22px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #d7e0ea;
  border-radius: 20px;
  background: #f8fbff;
}

.account-notice p,
.account-auth-panel p,
.account-active-plan p,
.account-subscription p,
.account-player-form p,
.account-photo-form p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.account-auth-panel { display: grid; gap: 24px; }
.clerk-mount { display: flex; min-height: 120px; justify-content: center; }
.account-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-inline-notice { margin-top: 24px; }
.account-subscription,
.account-player-manager { margin-top: 24px; }
.account-subscription > div:first-child { display: grid; gap: 8px; margin-bottom: 20px; }
.account-subscription h3,
.account-player-form h3 { margin: 0; font-size: clamp(24px, 5vw, 34px); }
.clerk-pricing-mount { min-height: 260px; }
.account-active-plan { display: flex; gap: 14px; margin-bottom: 22px; padding: 18px; border-radius: 16px; color: #0c5e2b; background: #eaf8ef; }
.account-active-plan > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: #198754; font-weight: 900; }
.account-active-plan strong { color: #114c28; }
.account-player-form,
.account-photo-form { display: grid; gap: 20px; padding: clamp(18px, 4vw, 28px); border: 1px solid #d7e0ea; border-radius: 20px; background: white; }
.account-form-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(110px, .7fr)); gap: 14px; }
.account-field { display: grid; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 850; }
.account-field input,
.account-field select { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 12px; border: 1px solid #aebed0; border-radius: 11px; color: var(--ink); background: white; font: inherit; font-weight: 650; }
.account-field input:focus,
.account-field select:focus { border-color: #245c97; outline: 3px solid rgba(36, 92, 151, .18); }
.account-positions { margin: 0; padding: 0; border: 0; }
.account-positions legend { margin-bottom: 10px; color: var(--navy); font-size: 13px; font-weight: 900; }
.account-positions legend span { margin-left: 6px; color: var(--muted); font-weight: 650; }
.account-positions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.account-positions label { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #c5d1df; border-radius: 999px; color: var(--navy); background: #f8fbff; font-size: 13px; font-weight: 850; }
.account-photo-form { grid-template-columns: 1fr minmax(180px, auto) auto; align-items: center; margin-top: 16px; }
.account-photo-form input { max-width: 250px; }
.account-performance-data { display: grid; gap: 20px; margin-top: 18px; }
.account-performance-data[hidden] { display: none; }
.account-performance-heading { padding: clamp(18px, 4vw, 28px); border-radius: 20px; color: white; background: linear-gradient(135deg, var(--navy), #245c97); }
.account-performance-heading h3 { color: white; }
.account-performance-heading .account-eyebrow { color: #ffd65a; }
.account-performance-heading > p:not(.account-eyebrow) { margin-bottom: 0; color: #d9e8f7; line-height: 1.55; }
.account-public-video-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; color: white; font-size: 13px; font-weight: 800; line-height: 1.45; }
.account-public-video-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--yellow); }
.account-import-grid { display: grid; gap: 16px; }
.account-import-card { display: grid; gap: 18px; padding: clamp(18px, 4vw, 26px); border: 1px solid #d7e0ea; border-radius: 20px; background: white; }
.account-import-card > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; }
.account-import-card > div:first-child p { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.5; }
.account-import-card h4 { margin: 0; color: var(--navy); font-size: 22px; }
.account-source-mark { display: grid; grid-row: 1 / 3; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: white; background: var(--red-dark); font-weight: 950; }
.account-file-picker { display: grid; gap: 8px; padding: 14px; border: 1px dashed #8da4be; border-radius: 14px; color: var(--navy); background: #f4f8fc; font-size: 13px; font-weight: 900; }
.account-file-picker input { width: 100%; color: var(--ink); font: inherit; font-weight: 650; }
.account-performance-fields { grid-template-columns: 1fr 1fr; }
.account-metric-details { border: 1px solid #d7e0ea; border-radius: 14px; background: #f8fbff; }
.account-metric-details summary { padding: 14px; color: var(--navy); cursor: pointer; font-weight: 900; }
.account-metric-details summary span { margin-left: 6px; color: var(--muted); font-size: 12px; }
.account-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 14px 16px; }
.account-session-list { display: grid; gap: 10px; }
.account-session-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #d7e0ea; border-radius: 14px; background: #f8fbff; }
.account-session-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-session-card strong,
.account-session-card small { display: block; }
.account-session-card small { margin-top: 3px; color: var(--muted); }
.account-session-metrics { color: #38516d; font-size: 13px; font-weight: 750; }
.account-session-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-session-actions button { min-height: 38px; padding: 0 13px; border: 1px solid #b9c7d8; border-radius: 999px; color: var(--navy); background: white; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.account-video-badge { padding: 5px 9px; border-radius: 999px; color: #116b36; background: #e5f7ec; font-size: 11px; font-weight: 900; white-space: nowrap; }
.account-empty-sessions { margin: 0; color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.account-primary-button,
.account-secondary-button,
.account-danger-button,
.account-primary-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 900; cursor: pointer; text-decoration: none; }
.account-primary-button,
.account-primary-link { border: 1px solid var(--red-dark); color: white; background: var(--red-dark); }
.account-secondary-button { border: 1px solid #b9c7d8; color: var(--navy); background: white; }
.account-danger-button { border: 1px solid #b42318; color: #b42318; background: white; }
.account-danger-button:hover { color: white; background: #b42318; }
.account-primary-button:disabled,
.account-danger-button:disabled { cursor: wait; opacity: .65; }
.account-form-status { min-height: 18px; margin: 0; color: #166534; font-size: 13px; font-weight: 800; }
.account-form-status.is-error { color: var(--red-dark); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.account-secondary-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid #b9c7d8; border-radius: 999px; color: var(--navy); font-weight: 850; text-decoration: none; }
.account-secondary-link:focus-visible,
.account-primary-link:focus-visible,
.account-primary-button:focus-visible,
.account-secondary-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.cancel-membership-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 28px 90px rgba(0, 0, 0, .35); }
.cancel-membership-dialog::backdrop { background: rgba(5, 18, 35, .72); }
.cancel-membership-card { display: grid; gap: 20px; padding: clamp(24px, 5vw, 34px); }
.cancel-membership-card h2 { margin: 0; color: var(--navy); font-size: clamp(25px, 5vw, 34px); letter-spacing: -.03em; }
.cancel-membership-card p:not(.account-eyebrow):not(.account-form-status) { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.cancel-membership-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (max-width: 720px) {
  .account-header { align-items: stretch; flex-direction: column; margin: 0; border-radius: 0; }
  .account-header .site-navigation { justify-content: flex-start; overflow-x: auto; }
  .account-main { margin-top: 18px; }
  .account-dashboard-heading { align-items: flex-start; }
  .account-form-grid { grid-template-columns: 1fr 1fr; }
  .account-field-wide { grid-column: 1 / -1; }
  .account-photo-form { grid-template-columns: 1fr; }
  .account-performance-fields,
  .account-metric-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .account-form-grid { grid-template-columns: 1fr; }
  .account-field-wide { grid-column: auto; }
  .account-actions > * { width: 100%; box-sizing: border-box; }
  .cancel-membership-actions > * { width: 100%; }
}
