.family-quota-card,
.mm-quota-details { border: 1px solid #eee6df; border-radius: 20px; background: #fff; color: #28252d; box-shadow: 0 8px 28px rgba(53, 39, 73, .035); }
.family-quota-card { margin: 0 0 12px; padding: 20px; line-height: 1.5; }
.family-quota-heading,
.mm-quota-details header,
.mm-quota-record-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.family-quota-heading { margin-bottom: 20px; }
.family-quota-heading h2,
.mm-quota-details h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.family-quota-heading span,
.mm-quota-details header span { flex: none; border-radius: 9px; padding: 5px 9px; background: #f2eeff; color: #4f35c8; font-size: 12px; }
.family-quota-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.family-quota-emblem { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #fff7e9; }
.family-quota-emblem img { width: 26px; height: 26px; }
.family-quota-person { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.family-quota-person b { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.family-quota-person small { color: #655e6c; font-size: 13px; }
.family-quota-status { flex: none; max-width: 108px; padding: 7px 9px; border-radius: 999px; background: #f2eeff; color: #4f35c8; font-size: 13px; font-weight: 700; text-align: center; }
.family-quota-status.is-expired { background: #fff0f0; color: #b83d3d; }
.family-quota-status.is-soon { background: #fff2e9; color: #a94118; }
.family-quota-card .family-quota-period { margin: 12px 0 16px; color: #655e6c; font-size: 13px; overflow-wrap: anywhere; }
.family-quota-balance,
.family-quota-history { border-radius: 16px; background: #f7f4ff; padding: 16px; }
.family-quota-balance-title { display: block; color: #28252d; font-size: 15px; font-weight: 700; }
.family-quota-balance strong { display: block; margin: 4px 0 0; color: #4f35c8; font-size: 42px; line-height: 1.15; }
.family-quota-balance strong small { margin-left: 4px; color: #28252d; font-size: 17px; }
.family-quota-balance p { margin: 3px 0 0; color: #655e6c; font-size: 13px; }
.family-quota-progress { height: 7px; margin-top: 18px; border-radius: 99px; background: #e8e1fb; overflow: hidden; }
.family-quota-progress i { display: block; height: 100%; border-radius: inherit; background: #6c4cf1; }
.family-quota-usage,
.family-quota-history > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.family-quota-usage span,
.family-quota-history > div span { padding: 0 5px; border-right: 1px solid #e4dcf5; color: #655e6c; font-size: 12px; text-align: center; }
.family-quota-usage span:first-child,
.family-quota-history > div span:first-child { padding-left: 0; }
.family-quota-usage span:last-child,
.family-quota-history > div span:last-child { border-right: 0; padding-right: 0; }
.family-quota-usage b,
.family-quota-history b { color: #28252d; font-size: 18px; }
.family-quota-history { margin-top: 10px; }
.family-quota-history > span { color: #28252d; font-size: 14px; font-weight: 700; }
.family-quota-card button,
.mm-quota-details button,
.import-quota-link { min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.family-quota-card button { display: flex; align-items: center; width: 100%; border: 0; text-align: left; }
.family-quota-renewal { gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #f7f4ff; color: #28252d; }
.family-quota-renewal-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #eee8ff; }
.family-quota-renewal-icon img { width: 22px; height: 22px; }
.family-quota-renewal > span:nth-child(2) { min-width: 0; flex: 1; }
.family-quota-renewal b,
.family-quota-renewal small { display: block; }
.family-quota-renewal b { font-size: 14px; }
.family-quota-renewal b em { margin-left: 4px; border-radius: 6px; padding: 2px 6px; background: #eae7f1; color: #655e6c; font-size: 12px; font-style: normal; font-weight: 500; }
.family-quota-renewal small { margin-top: 2px; color: #655e6c; font-size: 12px; font-weight: 400; line-height: 1.5; }
.family-quota-renewal > i { color: #655e6c; font-size: 24px; font-style: normal; }
.family-quota-action { justify-content: center; gap: 10px; min-height: 50px !important; margin-top: 14px; border-radius: 14px; background: #6c4cf1; color: #fff; font-size: 15px !important; }
.family-quota-action span { font-size: 22px; line-height: 1; }
.family-quota-loading { margin: 0 0 12px; color: #655e6c; }
/* The family page is a glanceable summary; full breakdown stays on the membership page. */
.family-quota-card { padding: 12px 14px; }
.family-quota-heading { margin-bottom: 8px; }
.family-quota-heading h2 { font-size: 18px; }
.family-quota-heading span { padding: 3px 7px; font-size: 11px; }
.family-quota-card .family-quota-identity { gap: 7px; }
.family-quota-card .family-quota-emblem { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
.family-quota-card .family-quota-emblem img { width: 22px; height: 22px; }
.family-quota-card .family-quota-person b { font-size: 15px; }
.family-quota-card .family-quota-person small { font-size: 11px; }
.family-quota-card .family-quota-status { padding: 5px 7px; font-size: 11px; }
.family-quota-card .family-quota-period { margin: 4px 0 8px; font-size: 11px; }
.family-quota-card .family-quota-balance { display: flex; align-items: center; gap: 10px; min-height: 58px; box-sizing: border-box; padding: 8px 10px; border-radius: 12px; }
.family-quota-balance-main { flex: none; min-width: 105px; }
.family-quota-card .family-quota-balance-title { font-size: 12px; }
.family-quota-card .family-quota-balance strong { margin-top: 0; font-size: 30px; }
.family-quota-card .family-quota-balance strong small { font-size: 13px; }
.family-quota-balance-side { flex: 1; min-width: 0; color: #655e6c; font-size: 11px; line-height: 1.45; }
.family-quota-balance-side b { color: #28252d; font-size: 12px; }
.family-quota-balance-side .qn { white-space: nowrap; }
.family-quota-card .family-quota-progress { height: 5px; margin-top: 7px; }
.family-quota-card .family-quota-history { margin: 6px 0 0; padding: 0; border-radius: 0; background: transparent; color: #655e6c; font-size: 11px; line-height: 1.4; }
.family-quota-card .family-quota-action { justify-content: space-between; gap: 8px; min-height: 44px !important; margin-top: 8px; padding: 5px 10px; border-radius: 10px; font-size: 12px !important; }
.family-quota-action-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.family-quota-action-copy b { font-size: 12px; }
.family-quota-action-copy small { color: rgba(255,255,255,.88); font-size: 10px; font-weight: 400; line-height: 1.35; }
.family-quota-card .family-quota-action-link { flex: none; font-size: 12px; white-space: nowrap; }
.family-quota-card { padding: 8px 12px; }
.family-quota-heading { margin-bottom: 3px; }
.family-quota-card .family-quota-identity { min-height: 26px; }
.family-quota-card .family-quota-person { flex-direction: row; align-items: baseline; gap: 4px; overflow: hidden; white-space: nowrap; }
.family-quota-card .family-quota-person b { flex: none; font-size: 14px; }
.family-quota-card .family-quota-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-quota-card .family-quota-status { font-size: 11px; }
.family-quota-card .family-quota-period { margin: 0 0 5px; font-size: 12px; }
.family-quota-card .family-quota-balance { min-height: 46px; padding: 5px 8px; }
.family-quota-balance-main { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.family-quota-card .family-quota-balance-title { font-size: 12px; white-space: nowrap; }
.family-quota-card .family-quota-balance strong { font-size: 26px; white-space: nowrap; }
.family-quota-card .family-quota-balance strong small { font-size: 12px; }
.family-quota-balance-side { font-size: 12px; }
.family-quota-card .family-quota-progress { margin-top: 4px; }
.family-quota-card .family-quota-action { min-height: 44px !important; margin-top: 5px; }
.family-quota-card .family-quota-history { font-size: 12px; }
.family-quota-card .family-quota-action-copy { display: block; color: #fff; font-size: 12px; line-height: 1.3; }
.family-quota-card .family-quota-action-link { font-size: 12px; }
.import-quota-link { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 0; background: transparent; text-align: center; line-height: 1.5; white-space: normal; }
.mm-quota-details { margin: 16px 0; padding: 20px; line-height: 1.55; }
.mm-quota-details p { margin: 8px 0; color: #655e6c; font-size: 14px; overflow-wrap: anywhere; }
.mm-quota-details h3 { margin: 24px 0 12px; font-size: 17px; }
.mm-quota-identity { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.mm-quota-period { margin: 12px 0 18px !important; font-size: 13px !important; }
.mm-quota-hero,
.mm-quota-history { border-radius: 16px; background: #f7f4ff; padding: 18px; }
.mm-quota-hero > span { color: #28252d; font-size: 16px; font-weight: 700; }
.mm-quota-hero strong { display: block; margin: 5px 0 0; color: #4f35c8; font-size: 48px; line-height: 1.1; }
.mm-quota-hero strong small { margin-left: 5px; color: #28252d; font-size: 17px; }
.mm-quota-hero p { margin: 4px 0 0; font-size: 13px; }
.mm-quota-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.mm-quota-numbers span { padding: 0 6px; border-right: 1px solid #ded6f1; color: #655e6c; font-size: 12px; text-align: center; }
.mm-quota-numbers span:first-child { padding-left: 0; }
.mm-quota-numbers span:last-child { padding-right: 0; border-right: 0; }
.mm-quota-numbers b { display: block; color: #28252d; font-size: 23px; }
.mm-quota-history { margin-top: 10px; }
.mm-quota-history h3 { margin: 0; font-size: 15px; }
.mm-quota-renewal { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: #f7f4ff; color: #28252d; text-align: left; }
.mm-quota-renewal > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mm-quota-renewal b { font-size: 14px; }
.mm-quota-renewal small { margin-top: 2px; color: #655e6c; font-size: 12px; font-weight: 400; }
.mm-quota-renewal > i { color: #655e6c; font-size: 24px; font-style: normal; }
.mm-quota-plan-action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px !important; margin-top: 12px; border: 0; border-radius: 14px; background: #6c4cf1; color: #fff; font-size: 15px !important; }
.mm-quota-plan-action span { font-size: 22px; }
.mm-quota-details .mm-quota-reason { padding: 10px; border-radius: 12px; background: #fff8eb; color: #664c22; }
.mm-quota-source,
.mm-quota-record { padding: 12px 0; border-bottom: 1px solid #eee6df; }
.mm-quota-source > div { display: flex; justify-content: space-between; gap: 8px; }
.mm-quota-source b,
.mm-quota-record b { font-size: 15px; }
.mm-quota-source span,
.mm-quota-source small,
.mm-quota-record small { color: #655e6c; font-size: 12px; }
.mm-quota-source small,
.mm-quota-record small { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.mm-quota-record-title h3 { margin-bottom: 0; }
.mm-quota-record-title button { border: 0; background: transparent; color: #4f35c8; }
.mm-quota-details .mm-quota-record-note { font-size: 12px; }
.mm-quota-more { width: 100%; margin-top: 8px; border: 1px solid #e8ddf5; border-radius: 12px; background: #f2eeff; color: #4f35c8; }
/* 会员与额度详情顶部紧凑化 */
.mm-quota-details { padding: 16px; }
.mm-quota-details .mm-quota-period { margin: 4px 0; }
.mm-quota-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 12px 14px; }
.mm-quota-hero > span { font-size: 14px; }
.mm-quota-hero strong { margin: 0; font-size: 34px; justify-self: end; }
.mm-quota-hero strong small { font-size: 14px; }
.mm-quota-hero p, .mm-quota-hero .family-quota-progress { grid-column: 1 / -1; }
.mm-quota-details .mm-quota-inline { margin: 6px 0 0; color: #655e6c; font-size: 12px; white-space: nowrap; }
.mm-quota-inline b { color: #28252d; font-size: 14px; }
.mm-quota-history { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 9px 14px; }
.mm-quota-history h3 { flex: none; font-size: 13px; }
.mm-quota-details .mm-quota-history .mm-quota-inline { margin: 0; }
.mm-quota-renewal { margin-top: 8px; padding: 8px 12px; }
