/* One shared visual language; scoped controls keep business permissions intact. */
html:root[data-ui-theme="dark"]{--bg:#090a0c!important;--bg2:#15171c!important;--card:#15171c!important;--border:#30343c!important;--text:#f4f1ea!important;--text2:#a9a59d!important;--input-bg:#1b1e24!important;--accent:#d6ad66!important;--gold:#d6ad66!important;--red:#f1786d!important;--a-bg:#090a0c!important;--a-surface:#15171c!important;--a-soft:#1b1e24!important;--a-line:#30343c!important;--a-ink:#f4f1ea!important;--a-muted:#a9a59d!important;--a-brand:#d6ad66!important;color-scheme:dark;}
html[data-ui-theme="dark"] body .filter,html[data-ui-theme="dark"] body .search,html[data-ui-theme="dark"] body .order{background:#15171c!important;border-color:#30343c!important;color:#f4f1ea!important;}
html[data-ui-theme="dark"] body .filter.active{background:#26231c!important;border-color:#d6ad66!important;color:#d6ad66!important;}
html[data-ui-theme="dark"] body .search input,html[data-ui-theme="dark"] body .search button{color:#f4f1ea!important;}
html[data-ui-theme="dark"] body { background-color:#090a0c!important;color:#f4f1ea;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
html[data-ui-theme="dark"] body input,html[data-ui-theme="dark"] body select,html[data-ui-theme="dark"] body button,html[data-ui-theme="dark"] body textarea {font-family:inherit;}
html[data-ui-theme="dark"] body .card,html[data-ui-theme="dark"] body .title-card,html[data-ui-theme="dark"] body .title-track,html[data-ui-theme="dark"] body .account-card,html[data-ui-theme="dark"] body .support-card {background:#15171c!important;border-color:#30343c!important;color:#f4f1ea;box-shadow:none!important;}
html[data-ui-theme="dark"] body #profile-feature-card .profile-feature-pair{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
html[data-ui-theme="dark"] body #profile-feature-card .profile-feature-entry{flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:6px!important;min-width:0!important;min-height:82px!important;padding:10px 3px!important;border-radius:12px!important;}
html[data-ui-theme="dark"] body .production-finance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
html[data-ui-theme="dark"] body .production-finance-entry{flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:82px!important;padding:10px 3px!important;border-radius:12px!important;text-align:center;background:#15171c!important;border-color:#30343c!important;}
html[data-ui-theme="dark"] body .production-finance-entry i{font-size:24px;width:30px;height:30px;line-height:30px;margin:0 auto 6px;}
html[data-ui-theme="dark"] body .production-finance-entry b{font-size:12px;line-height:1.4;color:#f4f1ea;}
html[data-ui-theme="dark"] body .production-finance-entry>span{display:none;}
html[data-ui-theme="dark"] body #profile-feature-card .profile-feature-entry .profile-feature-icon{width:30px!important;height:30px!important;min-height:0!important;margin:0!important;}
html[data-ui-theme="dark"] body #profile-feature-card .profile-feature-entry svg{width:28px!important;height:28px!important;}
html[data-ui-theme="dark"] body #profile-feature-card .profile-feature-entry strong{font-size:12px!important;line-height:1.4!important;text-align:center!important;white-space:normal!important;}
html[data-ui-theme="dark"] body #profile-feature-card .profile-feature-entry small{display:none!important;}
html body .zd-title-description{grid-column:1/-1;border-top:1px solid #30343c;margin-top:8px;padding-top:4px;min-width:0;}
html body .zd-title-description summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;color:#d6ad66;list-style:none;}
html body .zd-title-description summary::before{content:'›';font-size:19px;transition:transform .15s;}
html body .zd-title-description[open] summary::before{transform:rotate(90deg);}
html body .zd-title-description .medal-runway,html body .zd-title-description .track-next{margin:8px 0;}
html body .account-tutorial-title{margin:0;padding:12px 14px;font-size:15px;color:#f4f1ea;}
html body .zd-account-availability{padding:9px 0;margin:5px 0;color:#d0ccc4;font-size:12px;line-height:1.6;border-bottom:1px solid #30343c;overflow-wrap:anywhere;}
html body .zd-account-availability b{font-weight:600;color:#f4f1ea;}
html body .zd-copy-order{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:48px;margin-left:8px;padding:4px 10px;border:1px solid #62583f;border-radius:8px;color:#d6ad66;background:#1b1e24;font-size:12px;cursor:pointer;}
html body .zd-scan-controls{padding:12px;background:#15171c;border:1px solid #30343c;border-radius:12px;margin:8px 0;}
html body .zd-scan-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;}
html body .zd-scan-modes button{min-height:44px;padding:8px;border:1px solid #30343c;background:#1b1e24;color:#d0ccc4;border-radius:9px;}
html body .zd-scan-modes button[aria-pressed="true"]{border-color:#d6ad66;color:#d6ad66;background:#26231c;}
html body .zd-scan-grid{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:8px;align-items:center;}
html body .zd-scan-grid>span{text-align:center;color:#96928b;}
html body .zd-scan-controls label{display:block;font-size:12px;color:#d0ccc4;margin-bottom:6px;}
html body .zd-scan-controls select,html body .zd-scan-controls input:not([type="checkbox"]){box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #30343c;background:#1b1e24;color:#f4f1ea;border-radius:8px;font-size:14px;color-scheme:dark;}
html body .zd-scan-clock{margin-top:12px;}
html body .zd-scan-endofday{display:flex!important;align-items:center;gap:6px;margin-top:8px;min-height:36px;}
html body .zd-scan-endofday input{width:18px;height:18px;}
html body .zd-scan-help{font-size:12px;color:#96928b;line-height:1.5;margin:10px 0 0;}
html body .zd-risk-warning{padding:12px 14px;margin:12px 0;border:1px solid #743e3a;border-radius:10px;background:#291719;color:#f1786d;font-size:13px;line-height:1.7;}
html body .zd-risk-warning[hidden],html body .zd-scan-controls [hidden]{display:none!important;}
html[data-ui-theme="dark"] body.messages-page .message-entry[data-optimized-support="1"]{display:flex!important;align-items:center;gap:12px;min-height:76px;padding:15px 16px!important;border:1px solid #62583f!important;border-radius:14px!important;background:#15171c!important;box-shadow:none!important;}
html[data-ui-theme="dark"] body.messages-page .message-entry[data-optimized-support="1"] .support-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:#26231c!important;color:#d6ad66!important;border-radius:12px;}
html[data-ui-theme="dark"] body.messages-page .message-entry[data-optimized-support="1"] .message-copy{min-width:0;flex:1;text-align:left;}
html[data-ui-theme="dark"] body.messages-page .message-entry[data-optimized-support="1"] .message-copy b{display:block;color:#f4f1ea;font-size:16px;}
html[data-ui-theme="dark"] body.messages-page .message-entry[data-optimized-support="1"] .message-copy>span{display:block;color:#96928b;font-size:12px;margin-top:4px;}
html[data-ui-theme="dark"] body .support-links .support-link{min-height:56px!important;border:1px solid #30343c!important;border-radius:10px!important;background:#1b1e24!important;}
html body .ui-theme-picker{display:none!important;}
html body .zd-ui-theme-note{font-size:13px;color:#96928b;padding:10px 0;}
@media(prefers-reduced-motion:reduce){html body .zd-title-description summary::before{transition:none;}}

.production-finance-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.production-finance-entry{min-width:0!important;padding:14px 3px!important;text-align:center}.production-finance-entry span{display:none}.production-finance-entry b{font-size:12px!important}.benefit-notice{padding:12px 0;border-bottom:1px solid #33404c}.benefit-notice p{white-space:pre-wrap;color:#a3afba;font-size:13px}.wallet-details summary{cursor:pointer;padding:14px 0;font-weight:700}.selected-stats{padding:15px;border:1px solid #33404c;border-radius:12px;margin:16px 0;line-height:1.9}.selected-stats small{display:block;color:#a3afba}
