/* Shared readability and hierarchy refresh. */
html[data-site-theme=light]{--bg:#f5f7f9;--card:#fff;--panel:#fff;--text:#20323d;--muted:#60717d;--border:#e1e7eb;--line:#e1e7eb;--accent:#087d71}
html[data-site-theme=light] body{background:#f5f7f9!important;color:#20323d!important}
html[data-site-theme=light] body :is(.desk-header,.market-tabs){background:#fff!important;border-color:#e1e7eb!important;box-shadow:0 1px 8px #243d4b06!important}
html[data-site-theme=light] body :is(.h2-panel,.h2-card,.design-card,.my-card){background:#fff!important;border:1px solid #e1e7eb!important;box-shadow:0 3px 12px #243d4b04!important;border-radius:14px!important}
html[data-site-theme=light] body :is(.h2-panel,.h2-card,.design-card,.my-card) :is(h2,h3,strong){color:#20323d!important}
html[data-site-theme=light] body :is(.h2-panel,.h2-card,.design-card,.my-card) :is(p,small){color:#596e7b!important}
html[data-site-theme=light] body :is(input,select,textarea){background:#fff!important;color:#243c49!important;border-color:#c8d5dd!important;border-radius:9px}
html[data-site-theme=light] body :is(.market-tabs,.my-tabs) :is(a,button){color:#596e7b!important;background:transparent!important}
html[data-site-theme=light] body :is(.market-tabs,.my-tabs) :is([aria-selected=true],[aria-current=page],[aria-pressed=true],.active){color:#076d61!important;background:#e7f4ef!important;font-weight:700}
html[data-site-theme=light] body .cn-notifications{--cn-muted:#536b78;--cn-line:#e1e7eb;--cn-soft:#f5f7f9;--cn-accent:#087d71}
html[data-site-theme=light] body .cn-notifications :is(h2,h3,strong){color:#20323d!important}
html[data-site-theme=light] body .cn-notifications article.unread{background:#ecf7f3!important}
html[data-site-theme=light] body .cn-notifications article p{color:#536b78!important}
body :is(.h2-panel,.design-card) h2{letter-spacing:-.4px;line-height:1.4}
body :is(.h2-news-row,.h2-voice-story,.design-voice) strong{line-height:1.65!important;word-break:keep-all;overflow-wrap:anywhere}
body :is(.h2-panel,.design-card) p{line-height:1.7}
body :is(.market-tabs,.my-tabs){gap:6px}
body :is(button,a,input,select,textarea):focus-visible{outline:2px solid #138a7c;outline-offset:3px}
@media(max-width:760px){body .market-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}body .market-tabs>*{flex-shrink:0;white-space:nowrap}body .cn-notifications .cn-list-tools{align-items:flex-start;gap:8px}body .cn-notifications .cn-clean-tools{gap:10px}}
/* Home alert banner owns its palette, independently of global heading/link rules. */
html body #view-home #home-v2 .ma-home-promo{background:linear-gradient(110deg,#103a42,#0b2331)!important;border-color:#39766e!important;color:#eafffa!important}
html body #view-home #home-v2 .ma-home-promo h2{color:#f0fff9!important;line-height:1.45!important;overflow-wrap:anywhere}
html body #view-home #home-v2 .ma-home-promo .ma-kicker{color:#83e7d3!important}
html body #view-home #home-v2 .ma-home-promo :is(p,small){color:#c5dfe0!important}
html body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:first-child{background:#62e0c7!important;color:#073d35!important}
html body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:last-child{background:transparent!important;color:#eafffa!important;border-color:#719b9d!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo{background:linear-gradient(110deg,#eaf8f3,#f5fafc)!important;border-color:#bddbd3!important;color:#173c36!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo h2{color:#173c36!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo .ma-kicker{color:#076e61!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo :is(p,small){color:#45635f!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:first-child{background:#087b69!important;color:#fff!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:last-child{background:#fff!important;color:#176358!important;border-color:#aacfc5!important}
@media(max-width:760px){html body #view-home #home-v2 .ma-home-promo .ma-promo-actions{gap:8px}html body #view-home #home-v2 .ma-home-promo .ma-promo-actions a{flex:1;min-height:44px;box-sizing:border-box}}
/* Feature colors: neutral reading surfaces with distinct, accessible accents. */
html body #view-home{--feature-blue:#397ce7;--feature-violet:#8061d9;--feature-orange:#df9147}
html body #view-home>.cn-start{padding:12px 18px;margin:10px 0 16px;gap:10px 18px;align-items:center;background:transparent!important;box-shadow:none!important;border-color:transparent!important}
html body #view-home>.cn-start .cn-start-kicker,html body #view-home>.cn-start p{display:none}
html body #view-home>.cn-start h2{font-size:15px!important;margin:0!important}
html body #view-home>.cn-start .cn-start-links a{padding:9px 12px;min-height:40px}
html body #view-home #home-v2 .ma-home-promo{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 80% 0%,#55468c80,transparent 65%),linear-gradient(120deg,#282144,#172b49)!important;border-color:#625284!important;padding:26px!important}
html body #view-home #home-v2 .ma-home-promo h2{color:#faf7ff!important;max-width:620px}
html body #view-home #home-v2 .ma-home-promo .ma-kicker{color:#c9b6ff!important}
html body #view-home #home-v2 .ma-home-promo :is(p,small){color:#ded8ef!important}
html body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:first-child{background:#ded1ff!important;color:#34205c!important;box-shadow:0 4px 15px #0002}
html body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:last-child{background:#ffffff0a!important;color:#f2edff!important;border-color:#9182af!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo{background:radial-gradient(ellipse at 85% 0%,#dad6ff99,transparent 65%),linear-gradient(120deg,#f3edff,#eaf3ff)!important;border-color:#d9d1ee!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo h2{color:#30244b!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo .ma-kicker{color:#7151ae!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo :is(p,small){color:#625875!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:first-child{background:#6b49bb!important;color:white!important}
html[data-site-theme=light] body #view-home #home-v2 .ma-home-promo .ma-promo-actions a:last-child{background:#ffffffc9!important;color:#593d90!important;border-color:#cbbde3!important}
html body #home-v2 .h2-box{border-radius:16px!important;overflow:hidden;box-shadow:0 3px 14px #00000008!important}
html body #home-v2 .h2-news{border-top:3px solid #5389e3!important}
html body #home-v2 .h2-community{border-top:3px solid #e7a15b!important}
html body #home-v2 .h2-calendar{border-top:3px solid #9270d8!important}
html body #home-v2 .h2-voices{border-top:3px solid #d47ca7!important}
html[data-site-theme=light] body #home-v2 .h2-box{background:#fff!important;border-left-color:#e6e8ed!important;border-right-color:#e6e8ed!important;border-bottom-color:#e6e8ed!important}
html body #home-v2 .h2-account{background:linear-gradient(135deg,#342d23,#262937)!important;border-color:#675437!important}
html body #home-v2 .h2-account :is(h3,strong,p){color:#f1e3cf!important}
html body #home-v2 .h2-account a[href='#rewards']{background:#f3c878!important;color:#473014!important;border-color:#f3c878!important;border-radius:10px!important}
html[data-site-theme=light] body #home-v2 .h2-account{background:linear-gradient(135deg,#fff3df,#fffaf2)!important;border-color:#ebd9bb!important}
html[data-site-theme=light] body #home-v2 .h2-account :is(h3,strong,p){color:#624521!important}
html body #home-v2 .h2-shortcuts a{--shortcut:#91b5ff;border-radius:12px!important;border-color:color-mix(in srgb,var(--shortcut) 30%,transparent)!important;background:color-mix(in srgb,var(--shortcut) 8%,transparent)!important}
html body #home-v2 .h2-shortcuts a:nth-child(2){--shortcut:#c69aff}html body #home-v2 .h2-shortcuts a:nth-child(3){--shortcut:#e3ad68}html body #home-v2 .h2-shortcuts a:nth-child(4){--shortcut:#78c7c1}html body #home-v2 .h2-shortcuts a:nth-child(5){--shortcut:#df92b9}
html body #home-v2 .h2-shortcuts a svg{color:var(--shortcut)!important}
html[data-site-theme=light] body #home-v2 .h2-shortcuts a{color:#343d50!important;background:color-mix(in srgb,var(--shortcut) 13%,white)!important}
html[data-site-theme=light] body #home-v2 .h2-shortcuts a svg{color:color-mix(in srgb,var(--shortcut) 65%,#25304b)!important}
html body #portal-market>a{border-radius:14px!important;border-top:3px solid #e9a347!important}html body #portal-market>a:nth-child(2){border-top-color:#8385dd!important}html body #portal-market>a:nth-child(3){border-top-color:#a479dc!important}html body #portal-market>a:nth-child(4){border-top-color:#6999cb!important}
html[data-site-theme=light] body #portal-market>a{background:#fff!important}
html body #view-news .cn-start,html body #view-calendar .cn-start{border-left:3px solid #7298e8!important}
html body #view-community .cn-start,html body #view-rewards .cn-start{border-left:3px solid #e6ae69!important}
html body #view-influencers .cn-start{border-left:3px solid #cc82b2!important}
html body #scanner-desk .cn-start,html body #funding-desk .cn-start{border-left:3px solid #a18adf!important}
@media(max-width:760px){html body #view-home>.cn-start{padding:8px 0;gap:9px}html body #view-home>.cn-start .cn-start-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}html body #view-home>.cn-start .cn-start-links a{min-width:0;font-size:11px;gap:3px;padding:10px 7px}html body #view-home #home-v2 .ma-home-promo{padding:20px!important}html body #view-home #home-v2 .ma-home-promo h2{font-size:21px!important}}
html body #home-v2 #portal-market>a.portal-quote{border-top:3px solid #e9a347!important;border-radius:14px!important}html body #home-v2 #portal-market>a:nth-child(2){border-top-color:#8385dd!important}html body #home-v2 #portal-market>a:nth-child(3){border-top-color:#a479dc!important}html body #home-v2 #portal-market>a:nth-child(4){border-top-color:#6999cb!important}
html[data-site-theme=light] body #home-v2 #portal-market>a.portal-quote{background:#fff!important}
html body #account-panel #my-membership{--cn-ink:#f5eee0;--cn-muted:#cec5b5;--cn-accent:#e6c888;--cn-line:#615440;--cn-note:#ffffff08;--cn-button:#302d28;--cn-primary:#e6c888;--cn-primary-ink:#272118;background:linear-gradient(120deg,#242526,#343025)!important}
html[data-site-theme=light] body #account-panel #my-membership{--cn-ink:#453a29;--cn-muted:#70624e;--cn-accent:#82601d;--cn-line:#dfcfad;--cn-note:#ffffffaa;--cn-button:#fff;--cn-primary:#695125;--cn-primary-ink:#fff;background:linear-gradient(120deg,#fffaf0,#f3ebd9)!important}
@media(max-width:760px){html body #view-home>.cn-start .cn-start-links a{word-break:keep-all;font-size:11px;justify-content:center;text-align:center}html body #view-home>.cn-start .cn-start-links a>span{display:none}}
/* Footer changes to a column on mobile: never use a fixed flex basis for disclosure height. */
html body .desk-footer .site-owner-card{flex:0 0 auto!important;align-self:flex-start;width:fit-content;max-width:100%;height:auto!important;min-height:0!important;box-sizing:border-box;background:#ffffff04;border-color:#49616d!important;color:#c8d7df;border-radius:12px!important}
html body .desk-footer .site-owner-card summary{padding:12px 16px!important;line-height:1.6;min-height:44px;box-sizing:border-box;cursor:pointer;font-weight:600}
html body .desk-footer .site-owner-card:not([open])>div{display:none!important}
html body .desk-footer .site-owner-card[open]{width:min(100%,360px)}
html body .desk-footer .site-owner-card[open]>div{padding:0 16px 14px!important;gap:6px!important;line-height:1.8}
html body .desk-footer .site-owner-card a{color:#a8d7ed!important;overflow-wrap:anywhere}
html[data-site-theme=light] body .desk-footer .site-owner-card{background:#fff!important;border-color:#d9e2e8!important;color:#485e6d!important}
html[data-site-theme=light] body .desk-footer .site-owner-card a{color:#266a91!important}
html body .desk-footer .site-owner-card summary:focus-visible{outline:2px solid #7298e8;outline-offset:3px;border-radius:10px}
/* Native SafeAreaView already reserves the system navigation inset. */
@media(max-width:760px){
 html[data-native-header=true] body .mobile-tabbar{bottom:0!important;padding:7px 8px!important;height:auto!important;min-height:0!important;box-sizing:border-box!important}
 html[data-native-header=true] body{padding-bottom:74px!important}
}
