@font-face {
  font-family: "Source Sans 3";
  src: url("./source-sans-3-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

/* Discrete social buttons: navy/grey, matching IFAuthCard. Official marks only. */

.IFSocialStack {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.IFSocialButton {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  padding: 10px 19px;
  border: 1px solid #174f63;
  border-radius: 7px;
  color: #174f63;
  background: #f5f9fa;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 540;
  line-height: 1.2;
  text-decoration: none;
}

.IFSocialButton:hover {
  border-color: #10485f;
  color: #10485f;
  background: #eaf2f5;
}

.IFSocialMarkBox,
.IFSocialMark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  box-sizing: border-box;
}

.IFSocialMarkBox .IFSocialMark {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.IFSocialDivider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 4px 0 6px;
  color: #71858f;
  font-size: 13px;
  font-weight: 540;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.IFSocialDivider::before,
.IFSocialDivider::after {
  content: "";
  border-top: 1px solid #cfdee5;
}

.IFSocialDivider span {
  padding: 0 2px;
}

:root {
  color-scheme: light;
  --if-ink: #173342;
  --if-text: #536b77;
  --if-muted: #71858f;
  --if-blue: #155b78;
  --if-blue-dark: #10485f;
  --if-line: #cfdee5;
  --if-soft: #f5f9fa;
  --if-warn: #fff8dc;
}

* {
  box-sizing: border-box;
}

body.IFAccountPage {
  margin: 0;
  color: var(--if-ink);
  background: #eaf2f5;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 390;
  line-height: 1.5;
}

a {
  color: var(--if-blue);
  text-underline-offset: 3px;
}

.IFAccountShell {
  width: min(1320px, calc(100% - 48px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(27, 66, 82, 0.09);
}

.IFAccountHeader {
  padding: 0 32px;
  border-bottom: 1px solid var(--if-line);
}

.IFAccountBrandRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
}

.IFAccountBrand {
  display: block;
  width: min(390px, 46vw);
}

.IFAccountBrand img {
  display: block;
  width: 100%;
  height: auto;
}

.IFAccountRelated {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--if-muted);
  font-size: 13px;
}

.IFAccountRelated span {
  font-weight: 560;
}

.IFAccountRelated a {
  color: var(--if-ink);
  text-decoration: none;
}

.IFAccountNav {
  display: flex;
  align-items: stretch;
  min-height: 58px;
  border-top: 1px solid var(--if-line);
}

.IFAccountNav > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  color: #294754;
  font-size: 14px;
  font-weight: 430;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.IFAccountNav > a:hover,
.IFAccountNav > a[aria-current="page"] {
  border-bottom-color: #5c96ab;
  color: #114f68;
}

.IFAccountNav .IFLanguageLink {
  min-width: 48px;
  margin-left: auto;
  padding-right: 7px;
  padding-left: 7px;
  color: #4f6975;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.IFAccountMain {
  width: min(1120px, calc(100% - 72px));
  min-height: 580px;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.IFAccountKicker {
  margin: 0 0 9px;
  color: #5b7885;
  font-size: 12px;
  font-weight: 570;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.IFAuthLayout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
  gap: 80px;
  align-items: start;
  max-width: 970px;
  margin: 0 auto;
}

.IFAuthIntro {
  padding-top: 19px;
}

.IFAuthIntro h1,
.IFSingleCard h1,
.IFAccountHero h1 {
  margin: 0;
  color: var(--if-ink);
  font-size: clamp(37px, 4vw, 50px);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.IFAuthIntro > p:last-child,
.IFSingleCard > p,
.IFAccountHero > div:first-child > p:last-child {
  max-width: 51ch;
  margin: 20px 0 0;
  color: var(--if-text);
  font-size: 17px;
  line-height: 1.6;
}

.IFAuthCard,
.IFSingleCard,
.IFAccountPanel {
  border: 1px solid var(--if-line);
  border-radius: 11px;
  background: #fff;
}

.IFAuthCard {
  padding: 31px;
  box-shadow: 0 8px 25px rgba(29, 65, 79, 0.05);
}

.IFSingleCard {
  max-width: 670px;
  margin: 0 auto;
  padding: 42px;
}

.IFFormField {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 19px;
  color: #274553;
  font-size: 14px;
  font-weight: 540;
}

.IFFormField > span {
  color: var(--if-muted);
  font-size: 12px;
  font-weight: 390;
}

.IFFormField input,
.IFFormField select,
.IFFormField textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #aec3cc;
  border-radius: 7px;
  color: var(--if-ink);
  background: #fff;
  font: inherit;
}

.IFFormField input:focus,
.IFFormField select:focus,
.IFFormField textarea:focus {
  outline: 3px solid rgba(21, 91, 120, 0.13);
  border-color: #397f9a;
}

.IFFormField textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.IFFormField select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--if-blue) 50%), linear-gradient(135deg, var(--if-blue) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 42px;
}

.IFContactBoundary {
  max-width: 560px;
  padding: 15px 17px;
  border: 1px solid #eadca5;
  border-radius: 12px;
  background: #fff9df;
  color: #413b25;
  font-size: 14px;
  line-height: 1.55;
}

.IFAdminView {
  display: grid;
  gap: 28px;
}

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

.IFAdminMetrics > div,
.IFAdminPanel {
  border: 1px solid var(--if-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(25, 75, 91, 0.05);
}

.IFAdminMetrics > div {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.IFAdminMetrics span {
  color: var(--if-muted);
  font-size: 13px;
}

.IFAdminMetrics strong {
  color: var(--if-text);
  font-size: 28px;
  font-weight: 560;
}

.IFAdminPanel {
  padding: 24px;
}

.IFAdminPanel h2,
.IFAdminPanel h3 {
  margin-top: 0;
}

.IFAdminPanel h3 {
  margin-top: 28px;
}

.IFAdminSearch {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.IFAdminSearch label {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--if-text);
  font-size: 13px;
}

.IFAdminSearch input {
  min-height: 46px;
  border: 1px solid #aec3cc;
  border-radius: 11px;
  padding: 10px 13px;
  font: inherit;
}

.IFContactMessage {
  padding: 18px;
  border-radius: 12px;
  background: #f5f8f9;
  color: var(--if-text);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.IFAdminStatusForm {
  max-width: 420px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e1eaee;
}

.IFAdminStatusNotice {
  padding: 12px 14px;
  border: 1px solid #b9d8c7;
  border-radius: 10px;
  background: #f0f8f3;
  color: #294f3a;
}

.IFCheckField {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 6px 0 22px;
  color: #526b76;
  font-size: 13.5px;
  font-weight: 390;
  line-height: 1.45;
}

.IFCheckField input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}

.IFCheckCompact {
  margin-top: 2px;
}

.IFTermsLink {
  margin: -14px 0 22px 29px;
  font-size: 13px;
}

.IFPrimaryButton,
.IFPrimaryLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 19px;
  border: 1px solid var(--if-blue);
  border-radius: 7px;
  color: #fff;
  background: var(--if-blue);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 540;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.IFPrimaryButton:hover,
.IFPrimaryLink:hover {
  border-color: var(--if-blue-dark);
  background: var(--if-blue-dark);
}

.IFAuthCard .IFPrimaryButton {
  width: 100%;
}

.IFAuthSwitch,
.IFAuthLinks {
  margin: 23px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e1eaee;
  color: var(--if-muted);
  font-size: 13.5px;
  text-align: center;
}

.IFAuthLinks {
  display: grid;
  gap: 10px;
}

.IFCompletion h2,
.IFAccountPanel h2 {
  margin: 0;
  color: var(--if-ink);
  font-size: 22px;
  font-weight: 550;
  line-height: 1.2;
}

.IFCompletion > p,
.IFAccountPanel > p {
  color: var(--if-text);
}

.IFPrivateNotice {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid #e5d492;
  border-radius: 7px;
  color: #4a4020 !important;
  background: var(--if-warn);
  font-size: 13px;
}

.IFFormMessage {
  max-width: 970px;
  margin: -30px auto 32px;
  padding: 12px 15px;
  border-radius: 7px;
  font-size: 14px;
}

.IFFormMessage p {
  margin: 0;
}

.IFFormMessageError {
  border: 1px solid #e8c9c2;
  color: #6b302a;
  background: #fff6f3;
}

.IFFormMessageInfo {
  border: 1px solid #c9dce4;
  color: #284d5d;
  background: #f3f8fa;
}

.IFTrap {
  position: absolute;
  left: -10000px;
}

.IFButtonRow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.IFSecondaryLink {
  color: var(--if-text);
}

.IFAccountHero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--if-line);
}

.IFSignedIn {
  display: grid;
  gap: 3px;
  color: var(--if-muted);
  font-size: 12.5px;
  text-align: right;
}

.IFSignedIn strong {
  color: #385463;
  font-size: 14px;
  font-weight: 500;
}

.IFAccountGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 29px;
}

.IFAccountPanel {
  min-height: 210px;
  padding: 26px;
}

.IFSettingsCurrent {
  margin-top: 18px;
}

.IFSettingsBlock {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid #e1eaee;
}

.IFSettingsBlock h3 {
  margin: 0;
  color: var(--if-ink);
  font-size: 18px;
  font-weight: 560;
}

.IFSettingsBlock > p {
  margin: 8px 0 19px;
  color: var(--if-text);
  font-size: 13.5px;
  line-height: 1.55;
}

.IFSettingsBlock .IFFormField {
  margin-bottom: 15px;
}

.IFSettingsBlock .IFPrimaryButton {
  width: 100%;
}

.IFStatusValue {
  margin-bottom: 0;
  color: #1e566d !important;
  font-size: 21px;
  font-weight: 520;
}

.IFSelectionLabel {
  margin: 22px 0 2px;
  color: var(--if-muted) !important;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.IFSelectedPlan {
  margin: 0 0 16px;
  color: var(--if-ink) !important;
  font-size: 18px;
}

.IFBillingForm {
  margin: 18px 0 13px;
}

.IFPurchaseSummary {
  display: grid;
  gap: 7px;
  margin: 17px 0 18px;
  padding: 15px 16px;
  border: 1px solid #dce7eb;
  border-radius: 9px;
  background: #f7fafb;
}

.IFPurchaseSummary p {
  margin: 0;
  color: var(--if-text);
  font-size: 13px;
  line-height: 1.5;
}

.IFPurchaseSummary p:first-child {
  color: var(--if-ink);
  font-size: 15px;
}

.IFPurchaseSummary strong {
  font-size: 18px;
  font-weight: 560;
}

.IFCheckoutConsent {
  margin: 13px 0;
  padding: 12px 13px;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
}

.IFBillingForm .IFPrimaryButton {
  margin-top: 5px;
}

.IFTextLink {
  display: inline-block;
  margin-top: 8px;
}

.IFMembershipFacts {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
}

.IFMembershipFacts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding-top: 9px;
  border-top: 1px solid #e1eaee;
}

.IFMembershipFacts dt {
  color: var(--if-muted);
}

.IFMembershipFacts dd {
  margin: 0;
  color: var(--if-ink);
}

.IFReceiptsPanel {
  grid-column: 1 / -1;
  min-height: 170px;
}

.IFEmptyState {
  margin: 18px 0 0;
  padding: 18px 0;
  border-top: 1px solid #e1eaee;
}

.IFTableWrap {
  overflow-x: auto;
  margin-top: 18px;
}

.IFTableWrap table {
  width: 100%;
  border-collapse: collapse;
  color: var(--if-text);
  font-size: 14px;
}

.IFTableWrap th,
.IFTableWrap td {
  padding: 12px 10px;
  border-top: 1px solid #e1eaee;
  text-align: left;
}

.IFTableWrap th {
  color: #385462;
  font-weight: 540;
}

.IFAccountLogout {
  margin: 25px 0 0;
  text-align: right;
}

.IFInvoiceDetail {
  margin: 28px 0;
}

.IFInvoiceDetail > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid #e1eaee;
}

.IFInvoiceDetail dt {
  color: var(--if-muted);
}

.IFInvoiceDetail dd {
  margin: 0;
  color: var(--if-ink);
}

.IFAccountFooter {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 32px;
  padding: 24px 0 29px;
  border-top: 1px solid var(--if-line);
  color: #687d87;
  font-size: 12.5px;
}

.IFAccountFooter p {
  margin: 0;
}

.IFFooterIdentity {
  color: #465f6b;
}

.IFFooterActions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.IFFooterActions a {
  color: #536e7b;
  font-weight: 390;
  white-space: nowrap;
}

.IFFooterActions .IFFooterTerms {
  font-weight: 540;
}

.IFMembershipView {
  display: grid;
  gap: 34px;
}

.IFMembershipHero {
  max-width: 790px;
}

.IFMembershipHero h1 {
  max-width: 720px;
  margin: 4px 0 13px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.IFMembershipHero > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--if-text);
  font-size: 18px;
}

.IFBillingSelector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
  border: 1px solid var(--if-line);
  border-radius: 12px;
  background: var(--if-soft);
}

.IFBillingSelector p {
  margin: 0;
  color: var(--if-text);
}

.IFBillingSelector .IFBillingLabel {
  margin-bottom: 2px;
  color: var(--if-ink);
  font-weight: 540;
}

.IFBillingOptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 4px;
  flex: 0 0 294px;
  padding: 4px;
  border: 1px solid #c6d7de;
  border-radius: 10px;
  background: #fff;
}

.IFBillingOptions button {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--if-text);
  background: transparent;
  font: inherit;
  font-weight: 470;
  cursor: pointer;
}

.IFBillingOptions button[aria-pressed="true"] {
  color: #fff;
  background: var(--if-blue);
}

.IFBillingOptions button span {
  display: block;
  font-size: 12px;
  font-weight: 440;
}

.IFMembershipPlans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.IFPlanCard {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 27px 25px 24px;
  border: 1px solid var(--if-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 66, 81, 0.05);
}

.IFPlanCardFeatured {
  border-color: #8fb7c7;
  box-shadow: 0 14px 34px rgba(21, 91, 120, 0.11);
}

.IFPlanCard header {
  min-height: 118px;
}

.IFPlanCard header p {
  margin: 5px 0 0;
  color: var(--if-text);
}

.IFPlanCard .IFPlanLabel {
  margin: 0 0 7px;
  color: var(--if-blue);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.IFPlanCard h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 520;
  line-height: 1.1;
}

.IFPlanPrice {
  min-height: 86px;
  margin: 18px 0 20px;
  padding: 15px 0;
  border-top: 1px solid var(--if-line);
  border-bottom: 1px solid var(--if-line);
}

.IFPlanPrice > span,
.IFPlanPrice [data-price-period] > span {
  display: block;
  color: var(--if-ink);
  font-size: 27px;
  font-weight: 510;
  line-height: 1.1;
}

.IFPlanPrice small {
  display: block;
  margin-top: 5px;
  color: var(--if-muted);
  font-size: 13px;
}

[data-price-period="monthly"] {
  display: none;
}

body[data-billing="monthly"] [data-price-period="monthly"] {
  display: block;
}

body[data-billing="monthly"] [data-price-period="annual"] {
  display: none;
}

.IFPlanCard ul {
  display: grid;
  gap: 11px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--if-text);
  list-style: none;
}

.IFPlanCard li {
  position: relative;
  padding-left: 22px;
}

.IFPlanCard li::before {
  position: absolute;
  left: 0;
  color: var(--if-blue);
  content: "✓";
}

.IFPlanAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 18px;
  border: 1px solid var(--if-blue);
  border-radius: 8px;
  color: #fff;
  background: var(--if-blue);
  font-weight: 510;
  text-decoration: none;
}

.IFPlanAction:hover {
  background: var(--if-blue-dark);
}

.IFPlanActionSecondary {
  color: var(--if-blue);
  background: #fff;
}

.IFPlanActionSecondary:hover {
  color: #fff;
}

.IFPlanActionNote {
  min-height: 39px;
  margin: 10px 0 0;
  color: var(--if-muted);
  font-size: 13px;
  text-align: center;
}

.IFMembershipBoundary {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 40px;
  padding: 27px 30px;
  border: 1px solid #eadca6;
  border-radius: 13px;
  background: var(--if-warn);
}

.IFMembershipBoundary h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 510;
  line-height: 1.18;
}

.IFMembershipBoundary p {
  margin: 0 0 10px;
  color: #514d36;
}

.IFMembershipBoundary p:last-child {
  margin-bottom: 0;
}

.IFLegalView {
  max-width: 900px;
  margin: 0 auto;
}

.IFLegalHeader {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--if-line);
}

.IFLegalHeader h1 {
  max-width: 760px;
  margin: 4px 0 12px;
  color: var(--if-ink);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 520;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.IFLegalRevision {
  margin: 0;
  color: var(--if-muted);
  font-size: 14px;
}

.IFLegalSection {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 34px;
  padding: 27px 0;
  border-bottom: 1px solid #e1eaee;
}

.IFLegalSection h2 {
  margin: 0;
  color: var(--if-ink);
  font-size: 20px;
  font-weight: 540;
  line-height: 1.25;
}

.IFLegalCopy {
  color: var(--if-text);
}

.IFLegalCopy p {
  margin: 0 0 15px;
}

.IFLegalCopy p:last-child {
  margin-bottom: 0;
}

.IFLegalCopy strong {
  color: #294957;
  font-weight: 550;
}

.IFLegalContact {
  color: var(--if-text);
  font-style: normal;
}

body.IFAccountPage--remedyfinder {
  --if-blue: #155f70;
  --if-blue-dark: #104b59;
}

body.IFAccountPage--webhomeopath {
  --if-blue: #225f73;
  --if-blue-dark: #194b5b;
}

body.IFAccountPage--remedyfinder .IFAccountBrand,
body.IFAccountPage--webhomeopath .IFAccountBrand {
  width: min(350px, 44vw);
}

@media (max-width: 980px) {
  .IFAccountRelated {
    display: none;
  }

  .IFAccountNav {
    overflow-x: auto;
  }

  .IFAccountNav > a {
    flex: 0 0 auto;
  }

  .IFAuthLayout {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 620px;
  }

  .IFAccountFooter {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .IFFooterActions {
    justify-content: flex-start;
  }

  .IFMembershipPlans {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
  }

  .IFPlanCard,
  .IFPlanCard header,
  .IFPlanActionNote {
    min-height: 0;
  }

  .IFAdminMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .IFAccountShell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .IFAccountHeader {
    padding: 0 18px;
  }

  .IFAccountBrandRow {
    min-height: 86px;
  }

  .IFAccountBrand {
    width: min(330px, 82vw);
  }

  .IFAccountNav {
    margin: 0 -18px;
    padding: 0 12px;
  }

  .IFAccountNav > a {
    min-height: 50px;
    padding: 10px 11px;
    font-size: 13px;
  }

  .IFAccountMain {
    width: calc(100% - 36px);
    min-height: 520px;
    padding: 42px 0 52px;
  }

  .IFAuthIntro {
    padding-top: 0;
  }

  .IFAuthIntro h1,
  .IFSingleCard h1,
  .IFAccountHero h1 {
    font-size: 36px;
  }

  .IFAuthCard,
  .IFSingleCard {
    padding: 23px 20px;
  }

  .IFAccountHero {
    align-items: start;
    flex-direction: column;
  }

  .IFSignedIn {
    text-align: left;
  }

  .IFAccountGrid {
    grid-template-columns: 1fr;
  }

  .IFReceiptsPanel {
    grid-column: auto;
  }

  .IFAccountPanel {
    min-height: 0;
    padding: 22px 20px;
  }

  .IFAccountFooter {
    margin: 0 18px;
    padding: 22px 0 27px;
  }

  .IFFooterActions {
    flex-wrap: wrap;
  }

  .IFMembershipView {
    gap: 25px;
  }

  .IFMembershipHero h1 {
    font-size: 36px;
  }

  .IFBillingSelector,
  .IFMembershipBoundary {
    grid-template-columns: 1fr;
  }

  .IFBillingSelector {
    display: grid;
    gap: 14px;
  }

  .IFBillingOptions {
    width: 100%;
    flex-basis: auto;
  }

  .IFPlanCard {
    padding: 24px 20px 21px;
  }

  .IFMembershipBoundary {
    gap: 14px;
    padding: 23px 20px;
  }

  .IFLegalHeader {
    margin-bottom: 20px;
    padding-bottom: 22px;
  }

  .IFLegalHeader h1 {
    font-size: 36px;
  }

  .IFLegalSection {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 23px 0;
  }

  .IFAdminMetrics {
    grid-template-columns: 1fr;
  }

  .IFAdminPanel {
    padding: 20px;
  }

  .IFAdminSearch {
    align-items: stretch;
    flex-direction: column;
  }
}
