/* Original local member panel: the same restrained lavender/purple visual language. */
.member-portal { color: #6e6b7b; max-width: 1500px; margin-inline: auto; min-width: 0; }
.member-portal h1, .member-portal h2, .member-portal h3 { color: #5e5873; }
.member-portal h1 { font-size: 1.6rem; font-weight: 500; letter-spacing: 0; margin: 4px 0 9px; }
.member-portal h2 { font-size: 1.08rem; font-weight: 600; margin: 0 0 14px; }
.member-portal h3 { font-size: 1rem; }
.member-portal p { line-height: 1.65; }
.member-portal__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.member-portal__head p { margin: 0; }
.member-portal__eyebrow { color: #7d25cd; font-size: .7rem; font-weight: 600; letter-spacing: .1em; }
.member-portal__identity { color: #6b239e; font-size: .84rem; background: #fff; padding: 10px 14px; border-radius: 6px; overflow-wrap: anywhere; max-width: 270px; }
.member-portal__notice { background: #f8f3ff; border: 1px solid #dac6ed; border-left: 4px solid #7d25cd; padding: 16px 20px; border-radius: 6px; margin-bottom: 23px; font-size: .84rem; }
.member-portal__notice strong { color: #694280; }
.member-portal__notice p { margin: 6px 0 0; }
.member-portal__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 23px; }
.member-portal__card, .member-portal__bonus, .member-portal__panel { border-radius: 6px; background: #fff; box-shadow: 0 4px 24px #22292f0b; min-width: 0; }
.member-portal__card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-top: 3px solid #cbb6e2; }
.member-portal__card p { margin: 0 0 17px; font-weight: 500; }
.member-portal__card strong { color: #5e5873; font-size: 1.6rem; font-weight: 500; overflow-wrap: anywhere; }
.member-portal__card small { line-height: 1.6; margin: 11px 0 17px; }
.member-portal__card a { color: #7d25cd; font-size: .82rem; margin-top: auto; padding-block: 3px; }
.member-portal__card--purple { border-color: #a362d9; }
.member-portal__card--pink { border-color: #d995be; }
.member-portal__section-title { margin: 27px 0 17px !important; }
.member-portal__bonus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 23px; }
.member-portal__bonus { padding: 21px; }
.member-portal__bonus-number { display: inline-grid; place-items: center; width: 35px; height: 35px; color: #7d25cd; background: #f3e9fc; border-radius: 6px; font-size: .75rem; margin-bottom: 18px; }
.member-portal__bonus h2 { font-size: .94rem; margin-bottom: 12px; }
.member-portal__bonus > strong { color: #5e5873; font-weight: 500; font-size: 1.1rem; overflow-wrap: anywhere; }
.member-portal__bonus > p { font-size: .77rem; margin-bottom: 20px; }
.member-portal__bonus dl { border-top: 1px solid #ebe9f1; padding-top: 9px; margin-bottom: 0; font-size: .76rem; }
.member-portal__bonus dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.member-portal dd { margin: 0; color: #5e5873; overflow-wrap: anywhere; }
.member-portal__panel { padding: 24px; margin-bottom: 23px; }
.member-portal__panel > header p { margin: 0 0 20px; font-size: .84rem; }
.member-portal__status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; margin: 22px 0; }
.member-portal__status-grid dt { font-size: .8rem; margin-bottom: 8px; }
.member-portal__status-grid dd { font-weight: 500; }
.member-portal__hint { font-size: .78rem; margin-bottom: 0; }
.member-portal__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 18px; }
.member-portal__legend > span { display: flex; align-items: center; gap: 11px; font-size: .82rem; }
.member-portal__avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; color: #777985; border: 3px solid currentColor; border-radius: 50%; background: #fff; overflow: hidden; }
.member-portal__avatar svg { width: 24px; height: 24px; fill: currentColor; align-self: end; }
/* Exact observed legend PNGs and colours; unknown is not a Silver package. */
.member-portal__avatar--starter { color: #29ABE2; background-image: url('/assets/diva-packages/200.png'); }
.member-portal__avatar--bronze { color: #A4592A; background-image: url('/assets/diva-packages/300.png'); }
.member-portal__avatar--silver { color: #A6A6A6; background-image: url('/assets/diva-packages/400.png'); }
.member-portal__avatar--gold { color: #E6C30B; background-image: url('/assets/diva-packages/500.png'); }
.member-portal__avatar--diamond { color: #00BF63; background-image: url('/assets/diva-packages/600.png'); }
.member-portal__avatar--unknown { color: #777985; }
.member-portal__avatar:is(.member-portal__avatar--starter, .member-portal__avatar--bronze, .member-portal__avatar--silver, .member-portal__avatar--gold, .member-portal__avatar--diamond) { border: 0; border-radius: 0; background-color: transparent; background-size: contain; background-position: center; background-repeat: no-repeat; }
.member-portal__avatar:is(.member-portal__avatar--starter, .member-portal__avatar--bronze, .member-portal__avatar--silver, .member-portal__avatar--gold, .member-portal__avatar--diamond) > svg { display: none; }
.member-portal__filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.member-portal__filter label { display: grid; gap: 9px; min-width: 160px; font-size: .82rem; }
.member-portal__filter .select { min-height: 40px; width: 100%; }
.member-portal__filter .button { min-height: 40px; }
.member-portal__tree-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.member-portal__tree-head p { overflow-wrap: anywhere; }
.member-portal__tag { color: #704494; font-size: .7rem; background: #f3e9fc; padding: 6px 9px; border-radius: 20px; }
.member-portal__tree { overflow-x: auto; padding-block: 9px 16px; }
.member-portal__tree ul { list-style: none; margin: 0; padding: 0 0 0 29px; }
.member-portal__tree > ul { padding-left: 0; }
.member-portal__tree--binary > ul { display: inline-flex; min-width: 100%; justify-content: center; }
.member-portal__tree--binary ul { display: flex; justify-content: center; padding: 22px 0 0; }
.member-portal__tree--binary li { display: flex; flex-direction: column; align-items: center; flex: 1 0 auto; padding: 12px 14px; }
.member-portal__tree--binary li li { border-left: 0; padding-inline: 14px; }
.member-portal__tree--binary li li::before { width: 100%; border-top: 1px solid #d8d6df; top: 0; left: 0; }
.member-portal__tree--binary li li:first-child::before { left: 50%; width: 50%; }
.member-portal__tree--binary li li:last-child::before { width: 50%; }
.member-portal__tree--binary li li:only-child::before { display: none; }
.member-portal__tree--binary li li::after { content: ''; position: absolute; top: 0; height: 12px; left: 50%; border-left: 1px solid #d8d6df; }
.member-portal__tree--binary .member-portal__node { flex-direction: column; text-align: center; min-width: 145px; max-width: 210px; }
.member-portal__tree--binary .member-portal__node > div { align-items: center; }
.member-portal__tree--binary .member-portal__avatar { width: 42px; height: 42px; }
.member-portal__tree--binary .member-portal__leaf { margin: 10px 0 0; max-width: 160px; min-width: 0; text-align: center; }
.member-portal__report-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.member-portal__report-links a { display: flex; flex-direction: column; gap: 9px; padding: 20px; background: #f8f5fc; border: 1px solid #ebe9f1; border-radius: 6px; color: #7d25cd; font-size: .9rem; }
.member-portal__report-links span { color: #827e8e; font-size: .78rem; line-height: 1.6; }
.member-portal__tree li { position: relative; padding-block: 9px; }
.member-portal__tree li li { border-left: 1px dotted #b8b4c0; padding-left: 13px; }
.member-portal__tree li li::before { content: ''; width: 12px; border-top: 1px dotted #b8b4c0; position: absolute; left: 0; top: 28px; }
.member-portal__node { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.member-portal__node > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.member-portal__node-link { background: none; border: 0; color: #7d25cd; font: inherit; font-size: .84rem; font-weight: 600; text-align: left; cursor: pointer; padding: 4px 2px; overflow-wrap: anywhere; max-width: 300px; }
.member-portal__node-link:hover { text-decoration: underline; }
.member-portal__node small { font-size: .69rem; color: #827e8e; }
.member-portal__joined { font-style: italic; }
.member-portal__more { color: #7d25cd; background: #f7f1fc; border-radius: 4px; padding: 5px 7px; font-size: .65rem; max-width: 120px; }
.member-portal__leg { display: inline-block; font-size: .65rem; color: #6e527f; background: #f5effb; padding: 3px 7px; margin-bottom: 7px; border-radius: 4px; }
.member-portal__leaf { margin: 7px 0 0 42px; font-size: .67rem; color: #827e8e; min-width: 175px; }
.member-portal__tree.member-portal__tree--binary ul { display: flex; justify-content: center; padding: 22px 0 0; }
.member-portal__tree.member-portal__tree--binary > ul { padding-top: 0; }
.member-portal__tree.member-portal__tree--binary li li { border-left: 0; padding-inline: 14px; }
.member-portal__tree.member-portal__tree--binary li li::before { width: 100%; border-top: 1px solid #d8d6df; top: 0; left: 0; }
.member-portal__tree.member-portal__tree--binary li li:first-child::before { left: 50%; width: 50%; }
.member-portal__tree.member-portal__tree--binary li li:last-child::before { width: 50%; }
.member-portal__tree.member-portal__tree--binary li li:only-child::before { display: none; }
.member-portal__empty { padding: 18px; background: #faf8fd; border: 1px dashed #d8cce5; border-radius: 6px; }
.member-portal__empty p { max-width: 700px; }
.member-portal__history { padding-inline: 0; padding-bottom: 0; }
.member-portal__history > header, .member-portal__history > form { padding-inline: 24px; }
.member-portal__history > form { padding-block: 4px 24px; }
.member-portal__table-wrap { overflow-x: auto; }
.member-portal .data-table { min-width: 740px; }
.member-portal .data-table th { text-align: left; }
.member-portal .data-table td { max-width: 250px; overflow-wrap: anywhere; }
.member-portal__pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 19px 24px; font-size: .8rem; }
.member-portal__pagination > div { display: flex; gap: 10px; }
.member-portal__error { border-radius: 6px; color: #a1223c; background: #fff1f3; border: 1px solid #edc9d1; padding: 20px; }
.member-portal__loading { color: #6b477d; background: #fff; padding: 35px 24px; border-radius: 6px; }
.member-portal button:focus-visible, .member-portal a:focus-visible, .member-portal select:focus-visible { outline: 3px solid #b477df; outline-offset: 3px; }
.member-portal input:focus-visible { outline: 3px solid #b477df; outline-offset: 3px; }
.member-portal__quick-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.member-portal__quick-actions a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px; border: 1px solid #d7c8e3; border-radius: 9px; color: #472364; background: #fff; text-align: center; font-size: .88rem; font-weight: 600; text-decoration: none; }
.member-portal__quick-actions a:hover { background: #f5eefb; border-color: #a582bf; }
.member-portal__data-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 20px; margin-bottom: 23px; border: 1px solid #ded3e7; border-radius: 9px; background: #f8f4fc; font-size: .88rem; }
.member-portal__data-status > div { flex: 1 1 420px; }
.member-portal__data-status p { margin: 7px 0 0; }
.member-portal__data-status > a { display: inline-flex; align-items: center; min-height: 44px; color: #472364; font-weight: 600; }
.member-portal__breadcrumbs { margin: 0 0 15px; }
.member-portal__breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 4px; }
.member-portal__breadcrumbs li { display: flex; align-items: center; min-width: 0; font-size: .84rem; }
.member-portal__breadcrumbs li + li::before { content: '/'; color: #82718f; margin-inline: 5px; }
.member-portal__breadcrumbs button, .member-portal__breadcrumbs [aria-current] { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 8px; overflow-wrap: anywhere; max-width: 260px; }
.member-portal__breadcrumbs button { cursor: pointer; border: 1px solid #ded3e7; border-radius: 6px; font: inherit; background: #fff; color: #472364; }
.member-portal__breadcrumbs [aria-current] { font-weight: 600; }
.member-portal__branch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.member-portal__find { flex: 1 1 320px; }
.member-portal__filter .input { min-height: 46px; font-size: 16px; width: 100%; }
.member-portal__filter .select, .member-portal__filter .button, .member-portal__branch-actions .button, .member-portal__pagination .button { min-height: 44px; }
.member-portal__filter .select { font-size: 16px; }
.member-portal__filter > .member-portal__hint, .member-portal__form-error { flex: 1 1 100%; }
.member-portal__form-error { color: #9c2446; background: #fff1f5; border-left: 3px solid #ad3150; padding: 11px 14px; font-size: .88rem; margin-bottom: 0; }
.member-portal__export { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 19px 24px 0; }
.member-portal__export span { font-size: .84rem; }
.member-portal__export .button, .member-portal__node-link { min-height: 44px; }
.member-portal__node small { font-size: .78rem; }
.member-portal__hint { font-size: .84rem; }
.member-portal .data-table { font-size: .9rem; }
@media (max-width: 1000px) { .member-portal__quick-actions { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .member-portal__quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .member-portal__quick-actions a:last-child { grid-column: 1 / -1; }
  .member-portal__data-status { padding: 17px; gap: 7px 22px; }
  .member-portal__data-status > div { flex-basis: 100%; }
  .member-portal__find { flex: 0 1 auto; }
  .member-portal__export { padding: 19px 19px 0; }
  .member-portal__filter .button { justify-content: center; }
}
@media (max-width: 1100px) { .member-portal__bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .member-portal__report-links { grid-template-columns: minmax(0,1fr); }
  .member-portal__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .member-portal h1 { font-size: 1.4rem; }
  .member-portal__cards, .member-portal__bonus-grid, .member-portal__status-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .member-portal__card, .member-portal__bonus, .member-portal__panel { padding: 19px; }
  .member-portal__card strong { font-size: 1.35rem; }
  .member-portal__notice { padding: 14px 16px; }
  .member-portal__filter { align-items: stretch; flex-direction: column; }
  .member-portal__filter label { min-width: 0; }
  .member-portal__legend { justify-content: flex-start; column-gap: 24px; }
  .member-portal__legend > span { min-width: 100px; }
  .member-portal__tree ul { padding-left: 18px; }
  .member-portal__tree > ul { padding-left: 0; }
  .member-portal__history { padding-inline: 0; padding-bottom: 0; }
  .member-portal__history > header, .member-portal__history > form { padding-inline: 19px; }
  .member-portal__pagination { align-items: flex-start; flex-direction: column; padding: 19px; }
}
