/* Member design system. Isolated from administration, QR receipts and campaign popups. */
body.member-ui,body.auth-ui{--ui-ink:#223730;--ui-muted:#627168;--ui-line:#e1e7df;--ui-paper:#fff;--ui-navy:#0a2463;--ui-mint:#eef7f1;--ui-green:#27674f;--ui-gold:#866125;--ui-cream:#fcf5e4;--ui-shadow:0 6px 24px -18px #253e3526}
body.member-ui{background:#f6f7f3;color:var(--ui-ink);font-size:14px;line-height:1.8}
body.member-ui .shell{background:transparent;border:0;box-shadow:none;max-width:1100px}
body.member-ui .layout{display:flex;flex-direction:column;flex:1 1 0;min-height:0;padding:0;max-width:none}
body.member-ui .main{flex:1 1 0;width:100%;max-width:960px;min-height:0;min-width:0;margin:0 auto;padding:24px 24px 12px!important;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
body.member-ui .member-topbar{min-height:78px;height:auto;padding:14px 24px;background:#f9faf7;border:0;box-shadow:none;gap:12px}
body.member-ui .member-identity{gap:10px;min-width:0}
body.member-ui .member-greeting{min-width:0}
body.member-ui .member-greeting small{font-size:11px;color:var(--ui-muted)}
body.member-ui .member-greeting strong{font-size:15px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
body.member-ui .member-topbar .avatar{width:44px;height:44px;min-width:44px;border-radius:15px!important;background:var(--ui-navy);box-shadow:none;border:0}
body.member-ui .member-tools{gap:7px;flex-shrink:0}
body.member-ui .inbox-bell{min-width:44px;min-height:44px}
body.member-ui .member-brand{width:44px;min-width:44px;min-height:44px;display:flex;align-items:center}
body.member-ui .page-head,body.member-ui .records-heading{margin:0 0 22px;gap:14px;align-items:center}
body.member-ui .page-head h1,body.member-ui .records-heading h1,body.member-ui .contact-intro h1{font-size:24px;font-weight:600;line-height:1.55;letter-spacing:0}
body.member-ui h2{font-size:18px;font-weight:500;line-height:1.65}
body.member-ui h3{font-size:15px;font-weight:500;line-height:1.7}
body.member-ui .eyebrow{font-size:11px;font-weight:400;line-height:1.8;color:var(--ui-muted);margin-bottom:4px}
body.member-ui :is(.muted,.hint,.small-muted){color:var(--ui-muted);font-size:12px;line-height:1.9}
body.member-ui .section-head{gap:12px;align-items:center;margin:26px 0 13px}
body.member-ui .section-head h2{font-size:17px;font-weight:500}
body.member-ui .section-head>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--ui-navy)}
body.member-ui :is(.card,.record-card){border:1px solid var(--ui-line);border-radius:22px;background:#fff;box-shadow:var(--ui-shadow);padding:20px;color:var(--ui-ink)}
body.member-ui .card+.card{margin-top:14px}
body.member-ui .btn,body.member-ui .main .btn,body.member-ui #sheet .btn{min-height:46px;padding:10px 17px;border:1px solid transparent!important;border-radius:13px!important;background:var(--ui-navy)!important;color:#fff!important;font-size:13px!important;font-weight:500;line-height:1.65;box-shadow:none!important;text-shadow:none;white-space:normal;gap:8px}
body.member-ui .btn svg{width:19px;height:19px;flex-shrink:0}
body.member-ui .btn:is(.outline,.secondary),body.member-ui .main .btn:is(.outline,.secondary),body.member-ui #sheet .btn:is(.outline,.secondary){background:#fff!important;border-color:var(--ui-line)!important;color:var(--ui-navy)!important}
body.member-ui .btn.danger,body.member-ui #sheet .btn.danger{background:#fff2f1!important;border-color:#edcbc9!important;color:#a72b36!important}
body.member-ui button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none!important}
body.member-ui .text-btn,body.member-ui .eng-back{min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ui-navy)}
body.member-ui .eng-back{margin:0 0 6px}
body.member-ui .btn:focus-visible,body.member-ui a:focus-visible,body.member-ui button:focus-visible,body.member-ui summary:focus-visible,body.member-ui label:focus-within{outline:2px solid #947239;outline-offset:3px}
body.member-ui label:focus-within{outline:none}
body.member-ui :is(input,select,textarea){background:#fbfcfa!important;border:1px solid #cbd6cc;border-radius:12px!important;color:var(--ui-ink)!important;box-shadow:none!important;padding:12px 13px;font-size:16px;font-weight:400;line-height:1.6;min-height:48px;max-width:100%;scroll-margin-block:100px}
body.member-ui input::placeholder,body.member-ui textarea::placeholder{color:#78867d;opacity:1;font-size:14px}
body.member-ui :is(input,textarea,select):focus{border-color:#4f806c;outline:2px solid #d4e8dc;outline-offset:1px}
body.member-ui label{font-size:13px;font-weight:400;color:#40584c;gap:7px}
body.member-ui .form-stack{gap:18px}
body.member-ui textarea{min-height:112px;resize:vertical}
body.member-ui input[type=checkbox],body.member-ui input[type=radio]{min-height:20px;min-width:20px;width:20px;height:20px;accent-color:var(--ui-green);flex-shrink:0}
body.member-ui label.check{min-height:44px;align-items:center}
body.member-ui input[type=file]{font-size:12px;padding:8px;background:#f5f8f3!important}
body.member-ui input[type=file]::file-selector-button{border:0;border-radius:8px;background:#e5eee5;color:#305644;font:inherit;padding:9px;margin-inline-end:10px}
body.member-ui .notice{padding:14px 16px;background:var(--ui-mint);border:1px solid #dbe9de;border-radius:14px;color:#3b5c49;box-shadow:none;font-size:13px;line-height:1.9}
body.member-ui .alert{padding:12px 15px;background:#fff4f2;color:#972c38;border:1px solid #f0d6d1;border-radius:12px;font-size:13px}
body.member-ui .badge{font-size:11px;font-weight:400;line-height:1.5;padding:5px 9px;box-shadow:none;border:1px solid #eadfc2;border-radius:8px;background:#fff6df;color:#805d1c}
body.member-ui .badge:is(.approved,.completed){background:#edf7ef;color:#306545;border-color:#dbeadf}
body.member-ui .badge:is(.rejected,.cancelled){background:#fcf0ee;color:#a14147;border-color:#efdcd8}
body.member-ui .badge:is(.revision,.correction){background:#fff2df;color:#8d5b16;border-color:#eedfbe}
body.member-ui .empty,body.member-ui .media-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:30px 20px;min-height:160px;border:1px dashed #d5dfd4;border-radius:20px;background:#fafbf7;color:#657565;text-align:center;font-size:13px;font-weight:400;line-height:1.9;box-shadow:none}
body.member-ui .empty>svg,body.member-ui .media-empty>svg{width:32px;height:32px;color:#93a28d;filter:none}
body.member-ui .empty strong,body.member-ui .media-empty strong{font-size:14px;font-weight:500;color:#405749}
body.member-ui .row{padding:15px 0;gap:12px;border-color:var(--ui-line)}
body.member-ui .row-body{min-width:0;overflow-wrap:anywhere}
body.member-ui .row-icon{border:0;background:#edf2eb;color:#64755d;border-radius:12px;box-shadow:none}
body.member-ui .row h3{font-size:13px;font-weight:400;line-height:1.85}
body.member-ui .row-end{font-size:12px;flex-shrink:0}
body.member-ui .row p{font-size:11px;color:var(--ui-muted)}
body.member-ui :is(.positive,.row-end.positive){color:#23744e}
body.member-ui :is(.negative,.row-end.negative){color:#aa3d47}
/* Home: wallet first, campaign supporting, competition and history clearly separated. */
body.member-ui .home-wallet-panel{margin:0 0 16px;padding:20px;border-radius:26px;border-color:#ceddcf;border-top-color:#e4d4a8;background:linear-gradient(135deg,#fffdf6,#f0f8f2);box-shadow:0 12px 30px -25px #23453580}
body.member-ui .home-wallet-panel .section-head{margin:0}
body.member-ui .home-wallet-panel .section-head>a{min-height:44px;color:#795b24;background:#fffaf0;border-color:#eadfc8}
body.member-ui .home-wallet-panel .club-wallet-total{background:transparent;border:0;padding:6px 0;margin:16px 0 0;gap:9px}
body.member-ui .home-wallet-panel .club-wallet-total strong{font-size:38px;font-weight:500;color:#254e3c;line-height:1.5}
body.member-ui .home-wallet-panel .club-wallet-total span{color:#607363;font-size:12px}
body.member-ui .home-wallet-panel .wallet-history-link{min-height:44px;padding:12px 0 0;margin-top:12px;color:#385746;font-size:12px}
body.member-ui .home-feature{display:flex;flex-direction:row;align-items:center;gap:15px;padding:18px 20px;margin:0 0 22px;background:#0a2463;border:0;border-radius:22px;box-shadow:none;outline:0;color:#fff}
body.member-ui .home-feature:before,body.member-ui .home-feature:after{display:none}
body.member-ui .home-feature .feature-symbol{width:42px;height:42px;min-width:42px;border-radius:14px;border:1px solid #ffffff26;background:#ffffff10;box-shadow:none;color:#f2d89d;margin:0}
body.member-ui .home-feature .feature-symbol svg{width:24px;height:24px}
body.member-ui .home-feature h2{font-size:17px;font-weight:500;color:#fff;margin:3px 0 5px}
body.member-ui .home-feature p{font-size:12px;line-height:1.9;color:#d1dbed;margin:0}
body.member-ui .home-feature small{font-size:10px;color:#c4cfe4}
body.member-ui .home-feature .feature-link{font-size:12px;color:#f2d89d;min-height:34px;margin:4px 0 0;gap:8px}
body.member-ui .home-feature .feature-link svg{width:17px;height:17px}
body.member-ui .admin-entry{min-height:44px;margin:0 0 14px;padding:10px 14px;background:#f0f2ee;border:1px solid var(--ui-line);border-radius:13px}
body.member-ui .admin-entry strong{font-size:13px;font-weight:500}
body.member-ui .home-leaderboard{border-radius:24px;box-shadow:var(--ui-shadow)}
body.member-ui .leaders-head h2{font-size:18px;font-weight:500}
body.member-ui .leader-person strong{font-size:13px;color:#354b3e}
body.member-ui :is(.leader-person>span,.leader-count span,.leaders-foot,.leader-ties,.leaders-admin-note){color:#647260;font-size:11px}
body.member-ui .leader-self-heading small,body.member-ui .leader-self p{color:#526c52;font-size:12px}
body.member-ui .leader-self>a{min-height:44px;font-size:12px}
body.member-ui .leaders-tabs button{min-height:44px}
body.member-ui .home-history{padding:4px 18px}
/* Consistent registration and history surfaces. */
body.member-ui .records-actions{gap:9px;margin-bottom:18px}
body.member-ui .records-actions :is(button,a){min-height:44px;border-radius:12px;background:#fff;border-color:var(--ui-line);color:#426050;font-size:12px;padding:9px 12px;box-shadow:none}
body.member-ui .records-filter-line{margin-bottom:18px}
body.member-ui .records-filters>button{min-height:44px}
body.member-ui .record-card-heading{margin-bottom:20px;gap:11px}
body.member-ui .record-card-heading h2{font-size:16px;font-weight:500}
body.member-ui .record-product-icon{border-radius:13px;background:#edf7f0;color:#31765a}
body.member-ui .record-code{background:#f4f7f1;border-radius:12px}
body.member-ui .scan-page .scan-help{font-size:12px;color:#617568;line-height:1.9}
body.member-ui .scan-page .scan-submit{width:100%}
body.member-ui .scan-page .scan-submit-row{margin-top:4px;padding-top:15px;border-top:1px solid var(--ui-line)}
body.member-ui .install-guide-entry{border-radius:13px!important;background:#fff7e6;border:1px solid #e9d8b1;box-shadow:none;min-height:52px;padding:9px 12px;gap:8px;color:#805c1f}
body.member-ui .install-guide-entry b{font-size:12px;font-weight:500}
body.member-ui .install-guide-entry small{font-size:10px;color:#7b715d}
body.member-ui .install-guide-entry>svg{width:19px;height:19px}
/* Menu: short rows in meaningful groups, without six competing hero cards. */
.member-menu{display:grid;gap:22px;grid-template-columns:1fr 1fr;align-items:start}
body.member-ui .menu-section>h2{font-size:12px;font-weight:500;color:#6c796c;margin:0 3px 10px}
.menu-list{background:#fff;border:1px solid var(--ui-line);border-radius:21px;padding:3px 17px;box-shadow:var(--ui-shadow)}
.menu-link{display:flex;align-items:center;gap:13px;padding:15px 0;min-height:78px;color:var(--ui-ink);border-bottom:1px solid #edf0e9}
.menu-link:last-child{border-bottom:0}
.menu-link>span:nth-child(2){min-width:0;flex:1}
.menu-link strong{display:block;font-size:14px;font-weight:500;line-height:1.7}
.menu-link small{display:block;color:var(--ui-muted);font-size:11px;line-height:1.9;margin-top:2px}
.menu-symbol{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:13px;background:#eef6ef;color:#49735b}
.menu-symbol svg{width:21px;height:21px}
.menu-link>svg{width:17px;height:17px;color:#82907b}
.menu-campaigns .menu-symbol,.menu-referral .menu-symbol{background:#faf1db;color:#95712b}
.menu-feedback .menu-symbol{background:#edf1f9;color:#647393}
.member-version{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:10px 5px;margin-top:18px;border:0;background:transparent;color:var(--ui-muted);font-size:12px}
.member-version svg{width:17px;height:17px}.member-version bdi{margin-inline-start:auto;font-size:11px}
/* Requests: calm explanation beside one obvious action. */
.member-action-card{display:grid;grid-template-columns:44px 1fr;gap:14px;padding:22px;border:1px solid #d9e7db;border-radius:23px;background:#eff7ef}
.member-action-card.gold{background:#fcf6e8;border-color:#ecdfc1}
.member-action-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:#dcefe2;color:#437357}
.member-action-card.gold .member-action-symbol{background:#f3e5c2;color:#987330}
.member-action-symbol svg{width:24px;height:24px}
body.member-ui .member-action-card h2{font-size:17px;margin:0 0 6px}
.member-action-card p{font-size:13px;color:#637264;line-height:1.9;margin:0}
.member-action-card>.btn{grid-column:1/-1;margin-top:3px}
body.member-ui .eng-submission h3{font-size:14px;font-weight:500}
body.member-ui .eng-submission .section-head{margin:0 0 12px}
body.member-ui .eng-message{font-size:14px;line-height:2;color:#425848}
body.member-ui .report-pager{gap:12px;margin-top:18px;font-size:12px;color:var(--ui-muted)}
body.member-ui .campaign-grid{gap:14px}
body.member-ui .campaign-tile{padding:22px;border:1px solid #d9e5d9;border-radius:22px;background:linear-gradient(135deg,#f6faf2,#ecf6f1);box-shadow:none;display:grid;grid-template-columns:40px 1fr;gap:10px;text-align:right}
body.member-ui .campaign-tile>svg{grid-row:1/3;width:38px;height:38px;padding:8px;box-sizing:border-box;border-radius:12px;background:#e5edcf;color:#7b783e}
body.member-ui .campaign-tile strong{font-size:17px;font-weight:500;color:#294c37}
body.member-ui .campaign-tile>b{font-size:17px;font-weight:500;color:#397257}
body.member-ui .campaign-tile>small{grid-column:1/-1;border-top:1px solid #dce8dc;padding-top:12px;margin-top:5px;font-size:12px;color:#59745c}
/* Invitation: explain the two reward milestones independently. */
.referral-intro{text-align:center;padding:20px 20px 24px;background:linear-gradient(145deg,#fdf8eb,#edf7ef);border:1px solid #e4e5cf;border-radius:24px;margin-bottom:16px}
.referral-symbol{display:flex;justify-content:center;gap:0;margin:0 auto 15px;color:#7f773d}
.referral-symbol svg{width:42px;height:42px;background:#fbf3dd;border:4px solid #f7f7e9;border-radius:50%;padding:7px;box-sizing:content-box}
.referral-symbol svg+svg{margin-inline-start:-15px;background:#e1f0e4;color:#467458}
body.member-ui .referral-intro h2{font-size:20px;font-weight:500;margin:0 0 8px}
.referral-intro>p{font-size:13px;color:#657260;line-height:1.9;max-width:440px;margin:auto}
.referral-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:21px}
.referral-steps>div{padding:14px 8px;background:#ffffffbd;border:1px solid #e6e8d7;border-radius:15px}
.referral-steps>div>span{display:grid;place-items:center;border-radius:50%;width:22px;height:22px;margin:0 auto 7px;background:#e8eedb;color:#526b42;font-size:12px}
.referral-steps small{display:block;font-size:11px;color:#687760}
.referral-steps strong{display:block;font-size:19px;font-weight:500;color:#526b38;margin-top:7px}
.referral-steps strong small{display:inline;font-size:11px;font-weight:400}
body.member-ui .referral-share input{margin-bottom:12px;font-size:12px!important;background:#f5f7f1!important}
.share-caption{font-size:11px;text-align:center;color:#78836e;margin:22px 0 12px}
body.member-ui .share-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 20px}
body.member-ui .share-grid button{min-width:0;min-height:62px;border:0;background:transparent;border-radius:10px;padding:5px 0;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:8px;color:#506451;font-size:10px}
body.member-ui .share-grid .share-logo{width:27px;height:27px}
/* Account, rewards, library and notifications follow the same scale. */
body.member-ui .profile-photo-card{display:flex;align-items:center;gap:17px;padding:19px;flex-direction:row;text-align:right}
body.member-ui .profile-photo-card .profile-avatar{width:66px;height:66px;border-radius:20px;box-shadow:none;border:1px solid #dfe7dc;object-fit:cover}
body.member-ui .profile-photo-card>div:first-child{flex:none}
body.member-ui .profile-photo-card h2{font-size:17px;font-weight:500}
body.member-ui .profile-photo-card p{margin:3px 0 5px}
body.member-ui .profile-photo-card .avatar-select{padding:4px 10px;min-height:38px;background:#f6f8f3!important;font-size:11px!important}
body.member-ui .account-summary{padding:6px 18px}
body.member-ui .account-summary .form-stack{gap:0}
.account-option{display:flex;align-items:center;gap:12px;width:100%;min-height:80px;text-align:right;background:transparent;border:0;border-bottom:1px solid var(--ui-line);padding:14px 0;color:var(--ui-navy)}
.account-option:last-child{border:0}.account-option>svg{width:23px;height:23px;flex:none}
.account-option>svg:last-child{width:17px;height:17px;color:#8d9986}
.account-option>span{flex:1;min-width:0}.account-option strong{display:block;font-size:14px;font-weight:500;color:var(--ui-ink)}.account-option small{display:block;font-size:11px;color:var(--ui-muted);margin-top:5px}
body.member-ui [data-action=logout]{color:#a54b4b;margin-top:16px}
body.member-ui .cash-summary{padding:23px;border-radius:24px;border:1px solid #d5e3d2;background:linear-gradient(130deg,#fffaf0,#eff7f0);box-shadow:none;gap:17px}
body.member-ui .cash-summary strong{font-size:30px;font-weight:500;color:#2b5c42;line-height:1.6}
body.member-ui .cash-summary strong small{font-size:12px;font-weight:400}
body.member-ui .cash-summary>div>small{font-size:12px;color:#516a52}
body.member-ui .cash-summary>.small-muted{margin:0;font-size:12px}
body.member-ui .gift-grid{gap:16px}
body.member-ui .gift{display:flex;flex-direction:column;gap:10px;padding:16px}
body.member-ui .gift h2{font-size:15px;font-weight:500;margin:0}
body.member-ui .gift p{font-size:12px;line-height:1.9;margin:0}
body.member-ui .gift .btn{margin-top:auto}
body.member-ui .gift-mark{background:#f7f3e7;border:0;color:#a18b52;box-shadow:none;height:110px;border-radius:14px}
body.member-ui .gift-photo{background:#f8f9f5;border-radius:14px}
body.member-ui .gift-photo img{object-fit:contain;max-height:170px}
body.member-ui details>summary{min-height:44px;font-size:13px;font-weight:500;color:#405b48;cursor:pointer;align-content:center}
body.member-ui .inbox-tools{gap:8px;flex-wrap:wrap;margin:0 0 16px}
body.member-ui .inbox-item{padding:19px;margin:0 0 12px}
body.member-ui .inbox-item.unread{border-color:#bcd3bd;background:#f8fcf7;box-shadow:inset -3px 0 #6a9272}
body.member-ui .inbox-item h2{font-size:15px;font-weight:500;line-height:1.8;margin:12px 0 7px}
body.member-ui .inbox-item p{font-size:13px;line-height:2;color:#4d6653}
body.member-ui .inbox-item .inbox-tools{margin:12px 0 0}
body.member-ui .inbox-meta{font-size:11px;color:#6f7d70;gap:8px}
body.member-ui .inbox-kind{background:#edf2e7;color:#657344;font-size:10px;padding:3px 7px;border-radius:6px}
body.member-ui .push-panel{padding:9px 16px;margin-bottom:16px;background:#f9faf6}
body.member-ui .media-search{gap:8px;margin-bottom:20px}
body.member-ui .media-search .btn{width:48px;min-width:48px;padding:10px}
body.member-ui .media-trail{font-size:12px;min-height:44px;color:#566c56;gap:8px}
body.member-ui .media-folders{gap:12px;margin-bottom:16px}
body.member-ui .media-folder{padding:15px;border-radius:16px;box-shadow:none;border:1px solid #dde5d7;background:#f5f8ef;color:#4a6348;min-height:90px}
body.member-ui .media-folder strong{font-size:14px;font-weight:500}
body.member-ui .media-folder-icon{background:#e6edda;color:#758549;border:0;box-shadow:none;border-radius:12px}
body.member-ui .media-folder small{font-size:11px;color:#68775d}
body.member-ui .media-card{background:#fff;border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);border-radius:20px;color:var(--ui-ink);overflow:hidden}
body.member-ui .media-card-art{background:#eaf2e8;color:#688454;min-height:120px}
body.member-ui .media-card-art.video{background:linear-gradient(130deg,#f7f0dc,#e8f1e3);color:#958146}
body.member-ui .media-card-body{padding:17px}
body.member-ui .media-card-body>strong{font-size:15px;font-weight:500;line-height:1.9}
body.member-ui .media-card-description{font-size:12px;line-height:1.9;color:#62765e}
body.member-ui .media-card-bottom{color:#477152;font-size:11px;margin-top:16px}
body.member-ui .contact-intro{padding-top:8px}
body.member-ui .contact-call{padding:16px;background:transparent;border:0;box-shadow:none}
body.member-ui .contact-call bdi{font-size:26px;font-weight:500}
body.member-ui .contact-department,body.member-ui .contact-address{border-color:var(--ui-line);background:#fff;border-radius:18px;padding:17px}
body.member-ui .contact-address h2{font-size:15px;font-weight:500}
body.member-ui .contact-address p{font-size:13px;line-height:2}
body.member-ui .contact-maps a{min-height:72px;border:1px solid var(--ui-line);border-radius:17px;background:#fafbf6}
body.member-ui .contact-maps strong{font-size:12px;font-weight:500}
/* Standard sheets only. Fullscreen popups and the date picker retain their own layouts. */
body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet):not(.avatar-sheet){border:1px solid #dde5d8;border-radius:24px;padding:22px;background:#fff;color:var(--ui-ink);box-shadow:0 22px 70px #12282033;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet) .dialog-head{padding:0 0 14px;margin-bottom:18px;border-bottom:1px solid var(--ui-line);align-items:center}
body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet) .dialog-head h2{font-size:18px;font-weight:500;line-height:1.65}
body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet) .dialog-head button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:12px;background:#f3f6ef;color:#60735d;display:grid;place-items:center;border:0;padding:0}
body.member-ui .member-field-error,body.auth-ui .member-field-error{display:block;grid-column:1/-1;font-size:12px;font-weight:400;line-height:1.8;color:#b43747;margin-top:5px}
body.member-ui [aria-invalid=true]{border-color:#bf5362!important;outline-color:#f6e4e5!important}
body.member-ui #toast,body.member-ui .dialog-toast{border-radius:15px;box-shadow:0 10px 25px #243e3022;font-size:13px;font-weight:400;line-height:1.8}
/* Bottom navigation keeps its equal icon sizes and color-only selection. */
body.member-ui .bottom-nav{background:#fff;border:1px solid #e9ece4;box-shadow:0 -4px 30px -15px #354f4222;border-radius:23px;bottom:calc(10px + env(safe-area-inset-bottom));padding:5px 8px!important;width:calc(100% - 24px);max-width:936px;min-height:70px}
body.member-ui .bottom-nav a:not(.active) .nav-orb,body.member-ui .bottom-nav a:not(.active) .nav-label{color:#65756a!important}
body.member-ui .bottom-nav a.active .nav-orb,body.member-ui .bottom-nav a.active .nav-label{color:#a66a18!important}
/* Navy sign-in, simple form hierarchy, no decorative animation. */
body.auth-ui{background:#0a2463;color:#f7f9fc;min-height:100vh;min-height:100dvh}
body.auth-ui .auth-page{min-height:100vh;min-height:100dvh;max-width:none;width:100%;display:flex;flex-direction:column;justify-content:center;padding:32px 22px;background:radial-gradient(ellipse at 0 0,#23447b66,transparent 55%),#0a2463!important}
body.auth-ui .water-circuit{opacity:.08;animation:none;pointer-events:none}
body.auth-ui .water-pulse{animation:none}
body.auth-ui .auth-top{margin:0 0 25px}
body.auth-ui .auth-brand{margin:0 auto!important;gap:12px}
body.auth-ui .auth-brand img{width:78px;height:78px;object-fit:contain}
body.auth-ui .auth-brand span{font-size:13px;font-weight:400;color:#d2dcf0}
body.auth-ui .auth-form-panel{position:relative;width:100%;max-width:430px;margin:0 auto;padding:27px 25px;background:#0e2a64;border:1px solid #ffffff20;border-radius:24px;box-shadow:0 20px 55px -40px #0009}
body.auth-ui .auth-welcome{margin-bottom:24px}
body.auth-ui .auth-welcome h1,body.auth-ui .auth-form-panel h1{font-size:26px;font-weight:500;line-height:1.6;color:#fff;margin:0 0 5px}
body.auth-ui .auth-welcome .eyebrow{font-size:11px;color:#d8c193;margin-bottom:7px}
body.auth-ui .auth-form-panel .intro{font-size:13px;color:#c3cee4;line-height:1.9;margin-bottom:18px}
body.auth-ui .auth-form-panel label{font-size:13px;font-weight:400;color:#d5def0;gap:8px}
body.auth-ui .auth-form-panel input{min-height:50px;font-size:16px;border-radius:12px;background:#092256!important;border-color:#49618f;color:#fff;font-weight:400;padding:12px 13px}
body.auth-ui .auth-form-panel input:focus{outline:2px solid #a4bdc85c;border-color:#aac9d5}
body.auth-ui .auth-form-panel .btn{border-radius:12px!important;min-height:48px;background:#e7f1e9!important;border:1px solid #eef4e8!important;color:#143e37!important;font-size:14px!important;font-weight:500;box-shadow:none!important}
body.auth-ui .auth-form-panel .btn.outline{background:transparent!important;border-color:#526990!important;color:#e5eafa!important}
body.auth-ui .auth-form-panel .text-btn{min-height:44px;margin:4px 0 7px!important;color:#cbd7f0;font-size:12px}
body.auth-ui .auth-form-panel .form-stack{gap:17px}
body.auth-ui .password-eye{width:44px;height:44px;top:3px;left:3px;color:#c2d0e8}
body.auth-ui .member-field-error{color:#ffb7bd}
@media(min-width:760px){body.member-ui .referral-intro,body.member-ui .referral-share{max-width:650px;margin-inline:auto}body.member-ui[data-page=profile] .main{max-width:760px}}
@media(max-width:759px){body.member-ui .main{padding:20px 18px 10px!important}body.member-ui .member-topbar{padding:12px 18px;min-height:74px}body.member-ui .page-head,body.member-ui .records-heading{margin-bottom:19px}body.member-ui .page-head h1,body.member-ui .records-heading h1{font-size:22px}body.member-ui .member-menu{grid-template-columns:1fr;gap:20px}body.member-ui .records-heading{align-items:flex-start}body.member-ui .records-heading .eyebrow{max-width:160px}body.member-ui .install-guide-entry>svg:last-child,body.member-ui .install-guide-entry small{display:none}body.member-ui .install-guide-entry{min-height:44px;margin-top:8px;flex:none}body.member-ui .install-guide-entry b{white-space:nowrap}body.member-ui .two{grid-template-columns:1fr 1fr;gap:12px}body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet):not(.avatar-sheet){width:calc(100% - 20px);margin:auto auto 10px;padding:20px 18px;padding-bottom:calc(20px + env(safe-area-inset-bottom));border-radius:23px}body.member-ui .gift-grid{grid-template-columns:1fr 1fr}body.member-ui .gift .btn{padding:10px 6px;font-size:12px!important}body.member-ui .share-grid{gap:6px}body.member-ui .contact-maps{gap:10px}}
@media(max-width:359px){body.member-ui .main{padding:18px 12px 10px!important}body.member-ui .member-topbar{padding:11px 13px;gap:8px}body.member-ui .member-identity{gap:8px}body.member-ui .member-greeting strong{font-size:13px}body.member-ui .member-tools{gap:2px}body.member-ui .card,body.member-ui .record-card{padding:16px}body.member-ui .home-wallet-panel{padding:17px}body.member-ui .home-wallet-panel .club-wallet-total strong{font-size:33px}body.member-ui .home-feature{padding:16px;gap:11px}body.member-ui .home-feature h2{font-size:15px}body.member-ui .home-feature .feature-symbol{width:34px;height:34px;min-width:34px}body.member-ui .menu-list{padding-inline:13px}body.member-ui .menu-link{min-height:73px}body.member-ui .referral-share{padding:14px}body.member-ui .share-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 7px}body.member-ui .two{grid-template-columns:1fr}body.auth-ui .auth-page{padding:22px 14px}body.auth-ui .auth-form-panel{padding:22px 18px}body.member-ui .bottom-nav{width:calc(100% - 16px);padding:5px 4px!important}}
@media(max-height:650px){body.auth-ui .auth-page{justify-content:flex-start;padding-block:20px}body.auth-ui .auth-brand{flex-direction:row}.auth-ui .auth-brand img{width:48px!important;height:48px!important}body.auth-ui .auth-top{margin-bottom:18px}body.auth-ui .auth-welcome{margin-bottom:16px}body.auth-ui .auth-form-panel{padding:20px}}
@media(prefers-reduced-motion:reduce){body.member-ui *,body.auth-ui *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Final alignment: native password controls, compact auth branding and field feedback. */
body.auth-ui .auth-page .auth-brand img{width:78px;height:78px}
body.auth-ui .auth-page .password-eye{top:50%;transform:translateY(-50%);margin:0}
body.auth-ui .auth-form-panel>button{margin:10px 0 0!important}
body.member-ui .profile-field-error,body.auth-ui .profile-field-error{font-size:12px;font-weight:400;line-height:1.8;color:#b43747;margin:5px 0 0}
body.auth-ui .profile-field-error{color:#ffb7bd}
body.member-ui .referral-intro{padding-top:18px}
body.member-ui .referral-symbol{margin-bottom:10px}
body.member-ui .referral-symbol svg{width:32px;height:32px}

body.member-ui .profile-photo-card .avatar-placeholder{background:#edf4eb;color:#77946c;border-color:#d9e5d4;box-shadow:none}
body.member-ui .records-actions :is(button,a){border-radius:12px!important}
body.member-ui .account-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px}
body.member-ui .account-detail-field{min-width:0}
body.member-ui .account-detail-field>label{display:grid;gap:7px}
body.member-ui .account-optional{padding:4px 14px;border:1px solid #e0e7da;background:#f8faf5;border-radius:15px}
body.member-ui .account-optional summary{display:list-item;padding:9px 0}
body.member-ui .account-optional summary small{font-weight:400;font-size:11px;color:#71816b;margin-inline-start:6px}
body.member-ui .account-optional[open]{padding-bottom:17px}
body.member-ui .account-optional .hint{margin:4px 0 18px}
@media(max-width:520px){body.member-ui .account-detail-grid{grid-template-columns:1fr}}
body.member-ui .media-folder strong{white-space:normal;overflow:visible;text-overflow:clip;max-width:100%;line-height:1.8}
body.member-ui .media-folder-arrow{color:#869778}
body.member-ui .media-trail strong,body.member-ui .media-back{color:#4f7055}
body.member-ui .media-card-art{border-bottom:1px solid #e1e8db}
body.member-ui .media-card-art svg{filter:none}
body.member-ui .media-card-art>small{background:#fbfdf7;color:#55724c;border:1px solid #dfe7d8;border-radius:6px}
body.member-ui .media-card-category,body.member-ui .media-card-bottom small{color:#6d7c65}
body.member-ui .media-card-bottom{border-color:#e6ebdf}
body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet):not(.avatar-sheet){max-height:calc(var(--visible-height,100dvh) - 32px);top:var(--visual-top,0px);bottom:0;margin:auto}
@media(max-width:759px){body.member-ui #sheet:not(.popup-dialog):not(.calendar-sheet):not(.avatar-sheet){top:auto;bottom:calc(12px + var(--keyboard-inset,0px));margin:0 auto}}

body.member-ui .media-card{border-radius:20px!important}

.member-file-control{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #d4dfd0;border-radius:12px;background:#f1f6ec;color:#486844;padding:9px 14px;overflow:hidden}
.member-file-name{font-size:13px;line-height:1.8;overflow-wrap:anywhere;text-align:center;max-width:100%}
body.member-ui .member-file-control input[type=file]{position:absolute;inset:0;margin:0;opacity:0;width:100%;height:100%;min-height:100%;cursor:pointer}
.member-file-control:focus-within{outline:2px solid #719767;outline-offset:2px}

@media(min-width:760px){body.member-ui[data-page=home] .main{display:block}body.member-ui .home-dashboard-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}body.member-ui .home-money{display:flex;flex-direction:column;gap:18px}body.member-ui .home-money .home-feature,body.member-ui .home-money .home-wallet-panel{margin:0}body.member-ui .home-dashboard-top>.home-leaderboard{grid-row:auto!important;grid-column:auto!important;margin:0}body.member-ui[data-page=home] .home-history-title{margin-top:26px;margin-bottom:12px}body.member-ui[data-page=home] .admin-entry{margin-bottom:16px}}

body.member-ui .topbar.member-topbar{height:auto;min-height:78px;padding:14px 24px}
body.light-mode.member-ui .campaign-tile{aspect-ratio:auto;min-height:160px;background:linear-gradient(135deg,#f9f6e8,#edf6ed)!important;border-radius:22px!important;border-color:#dde5ce!important;box-shadow:none!important}
body.member-ui .campaign-tile:only-child{grid-column:1/-1}
body.member-ui .campaign-grid{margin-bottom:24px}
body.member-ui .campaign-grid+h2{font-size:17px;margin-bottom:12px}
body.member-ui #sheet.popup-dialog .popup-footer .btn{font-size:16px!important}
body.member-ui .inbox-item.unread{border-color:#c8dcc9!important;box-shadow:inset -3px 0 #6a9272!important;background:#f8fcf7!important}
@media(max-width:759px){body.member-ui .topbar.member-topbar{min-height:74px;padding:12px 18px}}
@media(max-width:359px){body.member-ui .topbar.member-topbar{padding:11px 13px}}

@media(min-width:760px){body.member-ui .home-dashboard-top{gap:18px 24px}body.member-ui .home-money{grid-column:1;grid-row:1}body.member-ui .home-dashboard-top>.home-leaderboard{grid-column:2!important;grid-row:1/span 2!important}body.member-ui .home-activity{grid-column:1;grid-row:2;min-width:0}body.member-ui[data-page=home] .home-history-title{margin-top:0}}

/* The application frame is fixed; the member content is its scroll container. */
body.member-ui .main{padding-bottom:calc(24px + var(--keyboard-inset,0px))!important}
body.auth-ui .auth-page{flex:1 1 0;min-height:0;height:100%;justify-content:flex-start}
body.auth-ui .auth-page>.auth-top{flex-shrink:0;margin-top:auto}
body.auth-ui .auth-page>.auth-form-panel{flex-shrink:0;margin-bottom:auto}

/* Product artwork stays square without cropping the product. Padding ratio also supports older browsers. */
body.member-ui .gift-photo,body.member-ui .gift-mark{position:relative;display:block;width:100%;height:auto;min-height:0;flex:none;overflow:hidden}
body.member-ui .gift-photo:before,body.member-ui .gift-mark:before{content:"";display:block;padding-top:100%}
body.member-ui .gift-photo img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
body.member-ui .gift-mark>svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

body.member-ui .media-card-art{border-bottom:0}

/* 097: compact library grids at every category depth and in search results. */
body.member-ui .media-items,body.member-ui .media-folders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
body.member-ui .media-card,body.member-ui .media-folder{min-width:0}
body.member-ui .media-card{border-radius:16px!important}
body.member-ui .media-card-art{min-height:0}
body.member-ui .media-card-art>svg{width:36px;height:36px}
body.member-ui .media-card-art>small{font-size:10px;padding:2px 7px;right:8px;bottom:8px}
body.member-ui .media-card-body{padding:11px;gap:6px}
body.member-ui .media-card-body>strong{font-size:13px;line-height:1.8;font-weight:500}
body.member-ui .media-card-category{font-size:10px;line-height:1.6}
body.member-ui .media-card-description{font-size:11px;line-height:1.8}
body.member-ui .media-card-bottom{flex-direction:column;align-items:flex-start;gap:3px;padding-top:8px;margin-top:auto;font-size:11px;line-height:1.8}
body.member-ui .media-card-bottom b{font-weight:500;white-space:nowrap}
body.member-ui .media-card-bottom small{font-size:10px}
body.member-ui .media-folder{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:118px;padding:12px;border-radius:16px}
body.member-ui .media-folder-icon{width:34px;height:34px;margin:0 0 3px;border-radius:10px}
body.member-ui .media-folder-icon svg{width:23px;height:23px}
body.member-ui .media-folder strong{font-size:13px;line-height:1.8}
body.member-ui .media-folder small{font-size:10px;margin-top:auto}
body.member-ui .media-folder-arrow{font-size:18px;left:12px;top:15px}
body.member-ui .media-heading{margin-bottom:14px}
body.member-ui .media-search{margin-bottom:12px}
body.member-ui .media-trail{min-height:32px;margin-bottom:12px;font-size:11px}
@media(min-width:680px){body.member-ui .media-items,body.member-ui .media-folders{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}body.member-ui .media-card-body{padding:14px}body.member-ui .media-card-body>strong{font-size:14px}}
@media(max-width:359px){body.member-ui .media-items,body.member-ui .media-folders{gap:10px}body.member-ui .media-card-body{padding:10px}body.member-ui .media-folder{padding:10px}}

body.member-ui .media-result{font-size:12px;color:#607557;line-height:1.8;margin-bottom:14px}
body.member-ui .media-search [data-media-clear]{width:auto;min-width:64px;padding:8px 10px;font-size:11px}

body.member-ui .media-heading .page-head{margin:0}

/* 098: rewards remain a compact product grid, including a single product. */
body.member-ui .gift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
body.member-ui .gift-grid>.gift{min-width:0;grid-column:auto;margin:0;padding:11px;gap:8px;border-radius:16px!important}
body.member-ui .gift-grid>.empty{grid-column:1/-1}
body.member-ui .gift h2{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
body.member-ui .gift p{font-size:11px;line-height:1.8;overflow-wrap:anywhere}
body.member-ui .gift p:empty{display:none}
body.member-ui .gift-photo,body.member-ui .gift-mark{border-radius:10px}
body.member-ui .gift-price{gap:5px;margin-block:5px 8px}
body.member-ui .gift-price del{font-size:11px}
body.member-ui .gift-discount{font-size:10px;padding:2px 5px;border-radius:6px}
body.member-ui .gift-price strong{font-size:16px;line-height:1.8;overflow-wrap:anywhere}
body.member-ui .gift-price strong small{font-size:10px;font-weight:400}
body.member-ui .gift .btn{width:100%;min-width:0;min-height:44px;padding:9px 5px;font-size:11px!important;line-height:1.7}
@media(min-width:680px){body.member-ui .gift-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}body.member-ui .gift-grid>.gift{padding:14px}body.member-ui .gift h2{font-size:14px}body.member-ui .gift-price strong{font-size:18px}}
@media(max-width:359px){body.member-ui .gift-grid{gap:10px}body.member-ui .gift-grid>.gift{padding:9px}body.member-ui .gift-price strong{font-size:15px}}

body.member-ui .gift-grid .gift-price{margin-top:auto}
body.member-ui .gift-grid .gift .btn{margin-top:0}

/* Move the fixed sign-in composition above the soft keyboard, without adding a scroll area. */
.auth-page.auth-keyboard-active{overflow:hidden!important;overscroll-behavior:none;will-change:transform}
.auth-page.auth-keyboard-active .auth-form-panel{overflow:visible}
/* Keep registration guidance above its action at every screen size. */
body.member-ui .scan-page .scan-submit-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;width:100%}
body.member-ui .scan-page .scan-help{width:100%;max-width:none;text-align:center;margin:0}
body.member-ui .scan-page .scan-submit{min-width:0;max-width:100%;flex:none;box-sizing:border-box}
