main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 90px; }
.account-state { min-height: 62vh; display: grid; place-content: center; text-align: center; }
.account-state h1 { margin: 20px 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); }
.account-state p { color: var(--fs-muted); }
.state-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: auto; border: 1px solid var(--fs-border); border-radius: 17px; color: var(--fs-blue-500); background: var(--fs-surface); font-weight: 900; }
.signin-layout { display: grid; grid-template-columns: 1fr minmax(360px, .72fr); gap: 80px; align-items: center; min-height: 70vh; }
.signin-copy h1 { max-width: 720px; margin: 0 0 24px; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .97; letter-spacing: -.06em; }
.signin-copy > p:not(.fs-eyebrow) { max-width: 620px; color: var(--fs-muted); font-size: 1.08rem; line-height: 1.7; }
.signin-card { padding: 38px; border: 1px solid var(--fs-border); border-radius: var(--fs-radius-lg); background: linear-gradient(155deg, rgba(16,39,72,.94), rgba(8,21,41,.96)); box-shadow: var(--fs-shadow); }
.signin-card h2 { margin: 0 0 28px; font-size: 2rem; }
.account-form { display: grid; gap: 18px; }
.account-form .fs-button { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 15px; color: var(--fs-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--fs-border); }
.fs-button-google { position: relative; width: 100%; min-height: 52px; border: 1px solid rgba(180,199,228,.3); color: var(--fs-text); background: rgba(7,20,39,.48); }
.google-mark { position: absolute; left: 17px; width: 20px; height: 20px; object-fit: contain; }
.signup-prompt { margin: 24px 0 0; color: var(--fs-muted); font-size: .85rem; text-align: center; }
.signup-prompt a { color: var(--fs-blue-500); font-weight: 750; }
.account-app { display: grid; gap: 18px; }
.account-hero { display: flex; min-height: 210px; align-items: flex-end; justify-content: space-between; gap: 36px; padding: 28px 0 38px; border-bottom: 1px solid var(--fs-border); }
.account-hero h1 { margin: 0 0 12px; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.06em; }
.account-hero p:not(.fs-eyebrow) { margin: 0; color: var(--fs-muted); }
.account-identity { display: grid; gap: 5px; min-width: 250px; padding: 16px 18px; border: 1px solid var(--fs-border); border-radius: 13px; color: var(--fs-muted); background: rgba(6,17,35,.5); font-size: .8rem; text-align: right; }
.account-identity strong { color: white; font-size: 1rem; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary-grid article { display: grid; min-height: 145px; align-content: end; padding: 24px; border: 1px solid var(--fs-border); border-radius: 16px; background: rgba(9,24,46,.72); }
.summary-grid span, .plan-summary span { color: var(--fs-blue-500); font-size: .67rem; font-weight: 850; letter-spacing: .12em; }
.summary-grid strong { margin: 11px 0 7px; overflow-wrap: anywhere; font-size: 1.25rem; }
.summary-grid small { color: var(--fs-subtle); line-height: 1.4; }
.account-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.account-panel, .subscription-changes { padding: 32px; border: 1px solid var(--fs-border); border-radius: 18px; background: linear-gradient(155deg, rgba(15,34,63,.88), rgba(8,21,41,.93)); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2, .subscription-changes h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.status-badge { padding: 7px 10px; border: 1px solid rgba(57,217,138,.28); border-radius: 99px; color: #b9f5d7; background: rgba(57,217,138,.08); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status-badge.renewing { border-color: rgba(255,192,92,.4); color: #ffe0a6; background: rgba(255,192,92,.1); }
.status-badge.inactive { border-color: rgba(255,132,146,.42); color: #ffc5cc; background: rgba(255,132,146,.1); }
.billing-panel { transition: border-color .2s ease, box-shadow .2s ease; }
.billing-panel.status-active { border-color: rgba(57,217,138,.38); box-shadow: inset 3px 0 0 rgba(57,217,138,.72); }
.billing-panel.status-renewing { border-color: rgba(255,192,92,.4); box-shadow: inset 3px 0 0 rgba(255,192,92,.76); }
.billing-panel.status-inactive { border-color: rgba(255,132,146,.4); box-shadow: inset 3px 0 0 rgba(255,132,146,.72); }
.plan-summary { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 12px; margin: 28px 0; }
.plan-summary div { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--fs-border); border-radius: 11px; background: rgba(6,17,35,.55); }
.panel-copy { color: var(--fs-muted); line-height: 1.65; }
.payment-method { display: flex; min-height: 130px; align-items: center; gap: 18px; margin: 28px 0; padding: 20px; border: 1px solid var(--fs-border); border-radius: 14px; background: rgba(6,17,35,.6); }
.payment-method > div:last-child { display: grid; gap: 6px; }
.payment-method span { color: var(--fs-muted); font-size: .82rem; }
.card-chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg,#7bc7ff,#8d82ff); box-shadow: inset 0 0 0 1px #ffffff55; }
.history-panel { overflow: hidden; }
.history-table { margin-top: 25px; overflow-x: auto; }
.history-row { display: grid; min-width: 720px; grid-template-columns: 1fr 1.15fr .8fr .8fr .5fr; gap: 18px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--fs-border); color: var(--fs-muted); font-size: .84rem; }
.history-head { min-height: 38px; color: var(--fs-subtle); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.history-row a { color: var(--fs-blue-500); font-weight: 750; text-align: right; }
.empty-row { padding: 32px 0; color: var(--fs-muted); text-align: center; }
.subscription-changes { display: flex; align-items: center; justify-content: space-between; gap: 44px; margin-top: 26px; background: rgba(7,18,35,.62); }
.subscription-changes > div { max-width: 760px; }
.subscription-changes p:not(.fs-eyebrow) { margin-bottom: 0; color: var(--fs-muted); line-height: 1.65; }
.text-action { flex: 0 0 auto; border: 0; padding: 12px 0; color: #91a2ba; background: transparent; font-weight: 730; cursor: pointer; }
.text-action:hover { color: white; }

@media (max-width: 880px) {
  .signin-layout, .account-grid, .account-grid.simplified { grid-template-columns: 1fr; gap: 34px; }
  .usage-reading { align-items: stretch; flex-direction: column; }
  .usage-facts { width: 100%; min-width: 0; }
  .summary-grid { grid-template-columns: 1fr; }
  .account-hero, .subscription-changes { align-items: stretch; flex-direction: column; }
  .account-identity { text-align: left; }
}
@media (max-width: 640px) {
  main { width: min(100% - 24px, 1180px); padding-top: 32px; }
  .signin-layout { grid-template-columns: 1fr; min-height: 0; }
  .signin-copy h1 { font-size: 3rem; }
  .signin-card, .account-panel, .subscription-changes { padding: 24px 20px; }
  .account-hero { min-height: 0; }
  .account-hero h1 { font-size: 3.3rem; }
  .plan-summary { grid-template-columns: 1fr; }
  .usage-panel { padding: 26px 20px; }
  .usage-heading { display: block; }
  .usage-plan { min-width: 0; margin-top: 22px; text-align: left; }
  .usage-reading { margin-top: 42px; }
  .usage-total { display: block; }
  .usage-total > strong { display: block; margin-bottom: 18px; }
  .usage-facts { grid-template-columns: 1fr; }
  .usage-facts div { border-top: 1px solid var(--fs-border); border-left: 0; }
  .history-panel summary { min-height: 90px; }
  .history-panel summary > b { display: none; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .status-badge { width: max-content; }
  .subscription-changes { gap: 16px; }
  .text-action { text-align: left; }
}


/* Usage-first account overview */
.account-grid.simplified { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.usage-panel { padding: clamp(28px, 5vw, 46px); border: 1px solid #315075; border-radius: 22px; background: radial-gradient(circle at 88% 0, rgba(68,111,210,.28), transparent 42%), linear-gradient(150deg, rgba(14,34,65,.96), rgba(7,18,35,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.usage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.usage-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.045em; }
.usage-plan { display: grid; min-width: 230px; gap: 5px; padding: 14px 16px; border: 1px solid var(--fs-border); border-radius: 12px; background: rgba(5,15,31,.55); text-align: right; }
.usage-plan span, .usage-facts span { color: var(--fs-blue-500); font-size: .64rem; font-weight: 850; letter-spacing: .12em; }
.usage-plan strong { font-size: .94rem; }
.usage-plan small { color: var(--fs-subtle); }
.usage-reading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin: 48px 0 22px; }
.usage-total { display: flex; align-items: baseline; gap: 14px; }
.usage-total > strong { font-size: clamp(4.8rem, 11vw, 8.8rem); line-height: .72; letter-spacing: -.075em; }
.usage-total > span { color: #b7c4d8; font-size: 1.05rem; }
.usage-total b { color: white; }
.usage-facts { display: grid; min-width: 390px; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.usage-facts div { display: grid; gap: 8px; padding: 14px; border-left: 1px solid var(--fs-border); }
.usage-facts strong { font-size: 1rem; }
.usage-track { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(4,13,27,.85); box-shadow: inset 0 0 0 1px var(--fs-border); }
.usage-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #58dbfa, #8e83ff); transition: width .35s ease; }
.usage-caption { margin: 13px 0 0; color: var(--fs-muted); font-size: .85rem; }
.church-details { display: flex; flex-direction: column; }
.church-details .fs-button { margin-top: auto; }
.detail-list { display: grid; gap: 0; margin: 26px 0 30px; }
.detail-list div { display: grid; gap: 7px; padding: 17px 0; border-bottom: 1px solid var(--fs-border); }
.detail-list dt { color: var(--fs-subtle); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; color: #dce7f6; line-height: 1.45; }
.billing-panel .payment-method { min-height: 96px; margin: 20px 0; }
.history-panel { padding-block: 0; }
.history-panel summary { display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.history-panel summary::-webkit-details-marker { display: none; }
.history-panel summary span { display: grid; gap: 7px; }
.history-panel summary small { color: var(--fs-blue-500); font-size: .67rem; font-weight: 850; letter-spacing: .12em; }
.history-panel summary strong { font-size: 1.35rem; }
.history-panel summary > b { color: #9bacbf; font-size: .8rem; }
.history-panel[open] summary > b { color: white; }
.history-panel[open] .history-table { margin: 0 0 28px; }
.viewer-giving-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.viewer-giving-panel h2 { margin: 0 0 12px; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.viewer-giving-panel p:not(.fs-eyebrow) { max-width: 740px; margin-bottom: 0; color: var(--fs-muted); line-height: 1.65; }
.preference-switch { display: flex; align-items: center; gap: 12px; color: #dce7f6; font-size: .9rem; font-weight: 740; cursor: pointer; }
.preference-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.switch-track { position: relative; width: 48px; height: 27px; flex: 0 0 auto; border: 1px solid #3a4f6d; border-radius: 99px; background: #101d30; transition: background .2s, border-color .2s; }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #9babc1; transition: transform .2s, background .2s; }
.preference-switch input:checked + .switch-track { border-color: #45bce9; background: #197cde; }
.preference-switch input:checked + .switch-track span { background: white; transform: translateX(21px); }
.preference-switch input:focus-visible + .switch-track { outline: 3px solid rgba(104,233,255,.35); outline-offset: 3px; }
.preference-switch input:disabled + .switch-track { opacity: .5; }
.preference-status { grid-column: 2; margin: -12px 0 0 !important; font-size: .76rem; text-align: right; }
@media (max-width: 720px) {
  .viewer-giving-panel { grid-template-columns: 1fr; }
  .preference-status { grid-column: 1; margin-top: -8px !important; text-align: left; }
}
