/* Wallet uses the existing Hub palette and Manrope font in both themes. */
[data-wallet-root]{--wallet-gap:14px;min-width:0}
[data-wallet-root] *, .wallet-dialog *{box-sizing:border-box}
.wallet-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px}
.wallet-heading h1{font-size:clamp(30px,4vw,48px);font-weight:700;letter-spacing:-.05em;line-height:1.08;margin:0 0 10px}
.wallet-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:13px;line-height:1.65;max-width:640px}
.wallet-heading-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.wallet-heading-actions .btn{white-space:nowrap}
[data-wallet-root] .btn svg,.wallet-dialog .btn svg{width:16px;height:16px;flex:0 0 16px}
[data-wallet-root] button:disabled,.wallet-dialog button:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
[data-wallet-root] .btn:focus-visible,.wallet-dialog button:focus-visible,.wallet-dialog input:focus-visible,.wallet-dialog textarea:focus-visible,.wallet-filters select:focus-visible,.wallet-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wallet-notice,.wallet-alert{border:1px solid var(--line);border-radius:12px;background:var(--panel3);padding:14px 16px;display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;font-size:12px;line-height:1.6}
.wallet-notice>svg,.wallet-alert>svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:var(--accent)}
.wallet-notice p{color:var(--muted);margin:3px 0 0;max-width:920px}
.wallet-notice strong{font-size:12px;font-weight:750}
.wallet-alert{border-color:color-mix(in srgb,#de927b 50%,var(--line));color:var(--text);align-items:center}
.wallet-alert>div{flex:1}.wallet-alert .btn{flex-shrink:0}
.wallet-tabs{display:flex;gap:4px;max-width:100%;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--panel3);margin-bottom:18px;width:max-content}
.wallet-tabs button{min-height:38px;min-width:110px;padding:8px 18px;border:0;border-radius:8px;color:var(--muted);background:none;font-size:12px;font-weight:700;white-space:nowrap}
.wallet-tabs button[aria-selected=true]{color:var(--accent2);background:var(--accent-bg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent)}
.wallet-tabs button:hover{color:var(--text)}
#wallet-view{outline:0;min-height:320px}
.wallet-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:var(--wallet-gap);margin-bottom:var(--wallet-gap)}
.wallet-balance-card{min-width:0;padding:24px;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));border-radius:15px;background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--accent) 12%,transparent),transparent 65%),linear-gradient(125deg,var(--panel2),var(--panel3));position:relative;overflow:hidden}
.wallet-balance-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.wallet-balance-top>span:first-child{display:flex;align-items:center;gap:9px}
.wallet-balance-top svg{width:18px;height:18px;color:var(--accent2)}
.wallet-unit{padding:5px 8px;border:1px solid var(--line);border-radius:6px;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.wallet-balance-value{font-size:clamp(38px,5vw,60px);line-height:1.15;font-weight:700;letter-spacing:-.055em;font-variant-numeric:tabular-nums;margin:20px 0 6px;overflow-wrap:anywhere}
.wallet-balance-value small{font-size:19px;font-weight:550;letter-spacing:-.01em;color:var(--muted)}
.wallet-balance-note{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 22px;max-width:500px}
.wallet-pockets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);padding-top:16px;gap:14px}
.wallet-pockets span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.wallet-pockets strong{display:block;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wallet-stats{display:flex;flex-direction:column;padding:22px!important}
[data-wallet-root] h2{font-size:15px;font-weight:700;margin:0 0 14px}
.wallet-stats dl{margin:0 0 6px;display:grid;gap:0;flex:1}
.wallet-stats dl>div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.wallet-stats dt{color:var(--muted);font-size:12px}.wallet-stats dd{margin:0;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.wallet-stats .text-link{align-self:flex-start;margin-top:10px}
.wallet-spending,.wallet-services{margin-bottom:var(--wallet-gap);padding:20px!important}
.wallet-spending .panel-head h2,.wallet-services .panel-head h2{margin:0}
.wallet-muted{color:var(--muted);font-size:11px}
.wallet-empty{padding:32px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.wallet-empty>svg{width:24px;height:24px;color:var(--muted2);margin-bottom:12px}
.wallet-empty h3{font-size:14px;font-weight:650;margin:0 0 7px}
.wallet-empty p{font-size:12px;color:var(--muted);line-height:1.65;max-width:460px;margin:0}
.wallet-loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;color:var(--muted)}
.wallet-spinner{border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:18px;height:18px;animation:wallet-spin .8s linear infinite}
@keyframes wallet-spin{to{transform:rotate(360deg)}}
.wallet-chart{height:120px;display:flex;align-items:flex-end;gap:5px;border-bottom:1px solid var(--line);padding:10px 0 0;margin:10px 0 20px}
.wallet-chart-col{height:100%;flex:1;display:flex;align-items:flex-end;max-width:55px;min-width:2px}.wallet-chart-col span{display:block;width:100%;height:max(2px,var(--wallet-bar,0%));background:linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 28%,transparent));border-radius:4px 4px 0 0}
.wallet-app-spend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}
.wallet-app-spend>div,.wallet-daily-list>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;min-width:0}
.wallet-app-spend span{color:var(--muted);overflow-wrap:anywhere}.wallet-app-spend strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.wallet-details{margin-top:18px;font-size:11px;color:var(--muted)}.wallet-details summary{cursor:pointer;padding:5px 0;min-height:30px}
.wallet-daily-list{display:grid;gap:8px;margin-top:12px;max-height:210px;overflow:auto;padding-right:8px}
.wallet-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wallet-offer{border:1px solid var(--line);border-radius:12px;background:var(--panel3);padding:17px;min-width:0;display:flex;flex-direction:column}
.wallet-offer-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.wallet-offer-head .icon-box{width:34px;height:34px}
.wallet-offer h3{font-size:15px;line-height:1.45;margin:0 0 7px}.wallet-offer>p{font-size:12px;line-height:1.55;color:var(--muted);margin:0 0 20px}
.wallet-offer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}.wallet-offer-bottom strong{font-size:14px;font-variant-numeric:tabular-nums}
.wallet-explainer{border-top:1px solid var(--line);padding:18px 2px;margin-top:8px}
.wallet-explainer>div:first-child{display:flex;gap:11px;align-items:flex-start}.wallet-explainer svg{width:17px;height:17px;color:var(--muted2);flex:0 0 17px;margin-top:2px}
.wallet-explainer h3{font-size:12px;font-weight:700;margin:0 0 6px}.wallet-explainer p{color:var(--muted);font-size:11px;line-height:1.7;margin:0;max-width:990px}
.wallet-foot-links{display:flex;flex-wrap:wrap;gap:12px 22px;padding-left:28px;margin-top:12px;font-size:11px}
.wallet-foot-links a,.wallet-consent a{color:var(--accent2);text-decoration:underline;text-underline-offset:3px}
.wallet-filters{display:grid;grid-template-columns:repeat(2,minmax(160px,260px));gap:12px;margin-bottom:18px}
.wallet-filters label{font-size:11px;color:var(--muted);display:grid;gap:7px}
.wallet-filters select{width:100%;height:42px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;padding:0 34px 0 12px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238a959e' stroke-width='1.8'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.wallet-ledger{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--panel)}
.wallet-transaction{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border-bottom:1px solid var(--line-soft)}
.wallet-transaction:last-child{border-bottom:0}.wallet-tx-icon{width:36px;height:36px;border:1px solid var(--line);background:var(--panel3);display:grid;place-items:center;border-radius:10px;color:var(--accent2)}.wallet-tx-icon svg{width:17px;height:17px}
.wallet-tx-detail{min-width:0}.wallet-tx-detail strong{display:block;font-size:12px;margin-bottom:4px}.wallet-tx-detail span{display:block;font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.wallet-tx-detail small{font-size:10px;color:var(--muted2)}
.wallet-tx-amount{text-align:right;font-variant-numeric:tabular-nums;align-self:center}.wallet-tx-amount strong{display:block;font-size:13px;white-space:nowrap}.wallet-tx-amount small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.wallet-tx-amount.positive strong{color:var(--accent2)}
.wallet-more{margin:16px auto 0;display:flex;min-width:160px;justify-content:center}
.wallet-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wallet-record{border:1px solid var(--line);border-radius:11px;padding:16px;background:var(--panel3);min-width:0}
.wallet-record-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;flex-wrap:wrap}
.wallet-record-title>strong{font-size:14px;overflow-wrap:anywhere}.wallet-record>p{font-size:11px;line-height:1.6;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.wallet-record>small{display:block;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.wallet-status{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;font-size:10px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--panel);font-weight:650}
.wallet-status--good{border-color:color-mix(in srgb,var(--accent) 25%,var(--line));color:var(--accent2);background:var(--accent-bg)}
.wallet-status--pending{color:color-mix(in srgb,#d1ae73 85%,var(--text));border-color:color-mix(in srgb,#d1ae73 20%,var(--line))}
.wallet-record-actions{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:12px}.wallet-record-actions .text-link{font-size:11px;min-height:36px}
.wallet-section-gap{margin-top:var(--wallet-gap)}.wallet-intro{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 17px;max-width:800px}
.wallet-order-dates,.wallet-limit-values{display:grid;gap:6px;margin:13px 0;font-size:11px}.wallet-order-dates>div,.wallet-limit-values>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.wallet-order-dates dt,.wallet-limit-values dt{color:var(--muted)}.wallet-order-dates dd,.wallet-limit-values dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.wallet-limits-head{margin:0 0 20px}.wallet-limits-head h2{font-size:24px;margin:12px 0 8px}.wallet-limits-head p{font-size:12px;color:var(--muted);line-height:1.65;max-width:800px;margin:0}.wallet-limits-head>.text-link{font-size:12px}
.wallet-dialog{width:min(500px,calc(100vw - 28px));max-height:calc(100dvh - 32px);max-height:calc(100vh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:0 24px 90px rgba(0,0,0,.45);overflow:auto}
.wallet-dialog::backdrop{background:rgba(3,7,10,.72);backdrop-filter:blur(4px)}
.wallet-dialog-form{padding:24px;display:flex;flex-direction:column;margin:0}
.wallet-dialog-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.wallet-dialog-form h2{font-size:22px;font-weight:700;letter-spacing:-.03em;margin:0;line-height:1.25;max-width:360px}
.wallet-dialog-close{width:32px;height:32px;flex:0 0 32px;background:var(--panel3);border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:22px;line-height:1;display:grid;place-items:center}
.wallet-dialog-body{display:grid;gap:17px}.wallet-dialog-body>p{font-size:12px;line-height:1.65;margin:0;color:var(--muted)}
.wallet-field{display:grid;gap:8px;font-size:12px;font-weight:650}.wallet-field input,.wallet-field textarea{background:var(--panel3);color:var(--text);border:1px solid var(--line);border-radius:9px;width:100%;font-family:inherit;font-size:15px;padding:12px;min-height:46px;outline:none}.wallet-field textarea{resize:vertical;min-height:85px}.wallet-field>small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.5}
.wallet-input-unit{position:relative}.wallet-input-unit input{padding-right:45px;font-variant-numeric:tabular-nums}.wallet-input-unit>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted)}
.wallet-consent{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.65;cursor:pointer;color:var(--muted)}.wallet-consent input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:var(--accent)}.wallet-consent span{min-width:0}
.wallet-form-error{font-size:12px;color:#dc9b85;line-height:1.6;margin:0}.wallet-form-error:not(:empty){margin-top:16px}
.wallet-dialog-form>footer{display:flex;justify-content:flex-end;gap:9px;padding-top:20px;margin-top:18px;border-top:1px solid var(--line)}
.wallet-purchase-detail{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel3)}.wallet-purchase-detail h3{font-size:17px;margin:8px 0 12px}.wallet-purchase-detail>strong{font-size:26px;letter-spacing:-.03em}.wallet-purchase-detail p{font-size:12px;color:var(--muted);margin:8px 0 0}
@media(max-width:1100px){.wallet-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-heading{align-items:flex-start}.wallet-heading-actions{flex-direction:column}.wallet-overview-grid{grid-template-columns:minmax(0,1.4fr) minmax(200px,1fr)}.wallet-balance-card{padding:20px}.wallet-unit{display:none}.wallet-pockets{gap:8px}}
@media(max-width:900px){.wallet-overview-grid{grid-template-columns:1fr}.wallet-stats dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.wallet-stats dl>div{display:block;border:0;padding:0}.wallet-stats dt{font-size:11px}.wallet-stats dd{text-align:left;font-size:13px;margin-top:6px}.wallet-stats h2{font-size:13px}.wallet-stats .text-link{margin-top:16px}.wallet-records{grid-template-columns:1fr}.wallet-catalog{grid-template-columns:1fr}}
@media(max-width:760px){
 [data-wallet-root]{--wallet-gap:10px}.wallet-heading{display:block;margin-bottom:16px}.wallet-heading h1{font-size:32px;margin-bottom:7px}.wallet-heading p:not(.eyebrow){font-size:12px;line-height:1.5}.wallet-heading-actions{flex-direction:row;margin-top:15px;gap:7px}.wallet-heading-actions .btn{height:40px;flex:1;justify-content:center}.wallet-heading-actions .btn.primary{flex:1.35}.wallet-notice{padding:12px;gap:9px;margin-bottom:13px}.wallet-notice p{font-size:11px;line-height:1.55}.wallet-notice strong{font-size:11px}.wallet-tabs{width:100%;gap:2px;padding:3px;margin-bottom:13px;border-radius:10px}.wallet-tabs button{min-width:0;flex:1;padding:8px 6px;font-size:11px;min-height:39px}.wallet-balance-card{padding:18px;border-radius:13px}.wallet-balance-value{font-size:43px;margin:18px 0 6px;line-height:1.15}.wallet-balance-value small{font-size:16px}.wallet-balance-note{font-size:11px;margin-bottom:17px}.wallet-balance-top{font-size:11px}.wallet-unit{display:block;font-size:9px;padding:4px 6px}.wallet-pockets{padding-top:14px;gap:9px}.wallet-pockets strong{font-size:12px}.wallet-pockets span{font-size:10px}.wallet-stats{padding:15px!important}.wallet-stats dl{gap:8px}.wallet-stats .text-link{margin-top:9px;min-height:32px}.wallet-spending,.wallet-services{padding:14px!important}.wallet-empty{padding:25px 10px}.wallet-empty h3{font-size:13px}.wallet-empty p{font-size:11px}.wallet-empty>svg{width:22px;height:22px;margin-bottom:10px}.wallet-app-spend{grid-template-columns:1fr}.wallet-offer{padding:14px}.wallet-explainer{padding:15px 2px}.wallet-foot-links{gap:8px 18px}.wallet-filters{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.wallet-filters select{font-size:12px;height:42px;padding-left:10px;padding-right:27px;background-position:right 8px center}.wallet-transaction{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:13px 11px}.wallet-tx-icon{width:29px;height:29px;border-radius:8px;align-self:start;margin-top:1px}.wallet-tx-icon svg{width:15px;height:15px}.wallet-tx-detail strong{font-size:12px}.wallet-tx-detail span{font-size:10px}.wallet-tx-detail small{font-size:9px}.wallet-tx-amount{grid-column:2;text-align:left;display:flex;align-items:center;gap:9px;margin-top:1px}.wallet-tx-amount strong{font-size:13px}.wallet-tx-amount small{margin:0;font-size:9px}.wallet-record{padding:13px}.wallet-record-title>strong{font-size:13px}.wallet-record-actions .btn{min-height:38px}.wallet-alert{flex-wrap:wrap;font-size:11px;padding:12px}.wallet-alert>.btn{margin-left:28px}.wallet-limits-head h2{font-size:22px}.wallet-limits-head p{font-size:11px}.wallet-dialog{width:calc(100vw - 20px);border-radius:15px;max-height:calc(100dvh - 24px)}.wallet-dialog-form{padding:20px 17px}.wallet-dialog-form h2{font-size:20px}.wallet-field input,.wallet-field textarea{font-size:16px}.wallet-dialog-form>footer{display:grid;grid-template-columns:1fr 1.5fr;gap:7px}.wallet-dialog-form>footer .btn{height:auto;min-height:44px;padding:10px 12px;text-align:center;line-height:1.4;justify-content:center}.wallet-dialog-body>p,.wallet-consent{font-size:12px}
}
@media(max-width:360px){.wallet-unit{display:none}.wallet-tabs button{font-size:10px;padding-left:3px;padding-right:3px}.wallet-balance-value{font-size:37px}.wallet-pockets strong{font-size:11px}.wallet-stats dt{font-size:10px}.wallet-stats dd{font-size:12px}.wallet-heading-actions .btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){.wallet-spinner{animation:none}}

.wallet-mcp{margin-bottom:var(--wallet-gap);padding:20px!important}.wallet-mcp .panel-head h2{margin:0}.wallet-mcp-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:18px;padding-top:5px}.wallet-mcp-grid>div{min-width:0}.wallet-mcp-grid>div>span{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:7px}.wallet-mcp-grid strong{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.02em;overflow-wrap:anywhere}.wallet-mcp-grid strong small{font-size:12px;font-weight:500;color:var(--muted)}.wallet-mcp-meter{height:3px;margin-top:10px;background:var(--line);border-radius:4px;overflow:hidden;max-width:210px}.wallet-mcp-meter>span{display:block;height:100%;width:var(--wallet-bar,0%);background:var(--accent);border-radius:4px}.wallet-mcp-unavailable{display:flex;align-items:center;justify-content:space-between;gap:15px}.wallet-mcp-unavailable p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.wallet-mcp-unavailable .text-link{flex-shrink:0}
@media(max-width:1100px){.wallet-mcp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:760px){.wallet-mcp{padding:14px!important}.wallet-mcp-grid{gap:15px}.wallet-mcp-grid strong{font-size:20px}.wallet-mcp-grid>div>span{font-size:10px;margin-bottom:5px}.wallet-mcp .panel-head>div{gap:8px}.wallet-mcp .panel-head .text-link{font-size:11px}.wallet-mcp-unavailable{display:block}.wallet-mcp-unavailable p{font-size:11px}.wallet-mcp-unavailable .text-link{margin-top:8px}}

/* Contract earnings stay visually and financially separate from service funds. */
.wallet-tabs{overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
.wallet-earnings-head{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:24px 0 20px}
.wallet-earnings-head>div:first-child{min-width:0;max-width:640px}
.wallet-earnings-head .eyebrow{margin:0 0 8px}
[data-wallet-root] .wallet-earnings-head h2{font-size:24px;line-height:1.25;letter-spacing:-.03em;margin:0 0 10px}
.wallet-earnings-head p:not(.eyebrow){font-size:12px;line-height:1.75;color:var(--muted);margin:0}
.wallet-earnings-actions{display:flex;flex-direction:column;gap:8px;flex:0 0 auto}
.wallet-earnings-actions .btn{justify-content:center;white-space:nowrap}
.wallet-earned-card{background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--accent) 8%,transparent),transparent 65%),var(--panel2)}
.wallet-earned-pockets{grid-template-columns:repeat(2,minmax(0,1fr))}
.wallet-earnings-note{display:flex;gap:11px;padding:6px 2px 20px;color:var(--muted);font-size:11px;line-height:1.7}
.wallet-earnings-note>svg{width:17px;height:17px;flex:0 0 17px;margin-top:2px;color:var(--muted2)}
.wallet-earnings-note p{margin:0 0 7px;max-width:1000px}.wallet-earnings-note p:last-child{margin-bottom:0}
.wallet-payroll-note{color:var(--text)}
.wallet-work-brand{display:flex;align-items:baseline;gap:5px 10px;flex-wrap:wrap}.wallet-work-brand strong{color:var(--accent2);font-weight:700}.wallet-work-brand span{color:var(--muted)}
.wallet-earnings-section{margin-bottom:var(--wallet-gap);padding:20px!important}
.wallet-earnings-section .panel-head{flex-wrap:wrap;gap:8px}.wallet-earnings-section .panel-head h2{margin:0}
.wallet-document-ref{overflow-wrap:anywhere}.wallet-document-ref a{color:var(--accent2);text-decoration:underline;text-underline-offset:3px}
.wallet-earnings-journal{margin:16px 0 0}.wallet-earnings-journal summary{padding:12px 0;font-size:12px}.wallet-earnings-journal .wallet-ledger{margin-top:8px}
.wallet-field select{min-width:0;max-width:100%;background-color:var(--panel3);color:var(--text);border:1px solid var(--line);border-radius:9px;width:100%;font-family:inherit;font-size:14px;padding:12px 36px 12px 12px;min-height:46px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238a959e' stroke-width='1.8'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.wallet-field select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wallet-field{min-width:0;grid-template-columns:minmax(0,1fr)}
.wallet-field select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet-payout-available{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel3)}
.wallet-payout-available>span{font-size:11px;line-height:1.5;color:var(--muted)}.wallet-payout-available>strong{font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:900px){.wallet-earnings-head{align-items:flex-start}.wallet-earnings-actions{min-width:170px}}
@media(max-width:760px){.wallet-tabs button{flex:1 0 auto;min-width:68px;padding-left:10px;padding-right:10px}.wallet-earnings-head{display:block;margin:20px 0 16px}[data-wallet-root] .wallet-earnings-head h2{font-size:22px}.wallet-earnings-head p:not(.eyebrow){font-size:11px;line-height:1.7}.wallet-earnings-actions{margin-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.wallet-earnings-actions .btn{min-height:44px;white-space:normal;font-size:11px;line-height:1.4;padding:10px 9px}.wallet-earnings-note{font-size:11px;padding-bottom:16px}.wallet-earnings-section{padding:14px!important}.wallet-field select{font-size:16px}.wallet-payout-available{gap:10px}.wallet-payout-available>strong{font-size:14px}}

/* A shared account overview keeps each source of funds explicit. */
.wallet-identity{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:14px 16px;margin:-4px 0 20px;border:1px solid var(--line);border-radius:12px;background:var(--panel3)}
.wallet-identity>div{min-width:0;flex:1 1 240px}.wallet-identity>div>span{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.wallet-identity strong{font-size:11px;line-height:1.6;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.wallet-identity>.wallet-status{flex:0 1 auto}
.wallet-opening-card h2{font-size:25px;line-height:1.25;letter-spacing:-.03em;margin:22px 0 12px;max-width:470px}.wallet-opening-card>p,.wallet-opening-card>ul{font-size:12px;line-height:1.75;color:var(--muted)}.wallet-opening-card>p{margin:0}.wallet-opening-card>ul{padding-left:18px;margin:16px 0 22px}.wallet-opening-card>.btn{align-self:flex-start;min-height:44px;margin-top:auto}.wallet-opening-card>small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:11px}
.wallet-documents{padding:20px!important}.wallet-documents .panel-head{flex-wrap:wrap;gap:14px}.wallet-documents .panel-head>div{display:block;min-width:0}.wallet-documents .panel-head h2{margin:0}.wallet-documents .panel-head p{margin:6px 0 0;font-size:12px;color:var(--muted);line-height:1.6}.wallet-doc-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.wallet-doc-filters>label{min-width:0}.wallet-doc-filters input{min-width:0;max-width:100%;width:100%;background:var(--panel3);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:10px;font-family:inherit;font-size:12px;min-height:42px;appearance:none;color-scheme:dark}.wallet-doc-filters input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[data-theme="light"] .wallet-doc-filters input{color-scheme:light}
.wallet-document-card p,.wallet-document-card small{overflow-wrap:anywhere}.wallet-document-card .wallet-record-title{align-items:flex-start}.wallet-date-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wallet-date-pair input{min-width:0;appearance:none;color-scheme:dark}[data-theme="light"] .wallet-date-pair input{color-scheme:light}
.wallet-document-summary{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel3);min-width:0}.wallet-document-summary>p{font-size:12px;line-height:1.6;margin:10px 0;overflow-wrap:anywhere}.wallet-document-summary dl{display:grid;gap:10px;margin:15px 0 0}.wallet-document-summary dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;font-size:11px;line-height:1.6}.wallet-document-summary dt{color:var(--muted)}.wallet-document-summary dd{margin:0;overflow-wrap:anywhere}
.wallet-document-table-wrap{max-width:100%;overflow-x:auto}.wallet-document-table{border-collapse:collapse;width:100%;font-size:11px;font-variant-numeric:tabular-nums}.wallet-document-table caption{text-align:left;font-weight:650;font-size:12px;line-height:1.6;padding-bottom:12px}.wallet-document-table th,.wallet-document-table td{border-bottom:1px solid var(--line);padding:10px 6px;text-align:right;vertical-align:top}.wallet-document-table th:first-child{text-align:left;width:48%}.wallet-document-table tbody th{font-weight:400;color:var(--muted)}.wallet-document-table thead th{font-size:10px;color:var(--muted)}.wallet-document-table td{white-space:nowrap}.wallet-document-hash{font-size:10px;line-height:1.65;overflow-wrap:anywhere;color:var(--muted)}.wallet-document-preview-lines{display:grid;gap:0;margin-top:10px;font-size:11px;line-height:1.6}.wallet-document-preview-lines>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.wallet-document-preview-lines>div>*{min-width:0;overflow-wrap:anywhere}.wallet-document-preview-lines strong{white-space:nowrap}
@media(max-width:900px){.wallet-doc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.wallet-identity{padding:12px;gap:10px;margin:0 0 15px}.wallet-identity>div{flex-basis:100%}.wallet-identity strong{font-size:10px}.wallet-opening-card h2{font-size:23px}.wallet-opening-card>.btn{width:100%;justify-content:center}.wallet-documents{padding:14px!important}.wallet-doc-filters{gap:10px 8px}.wallet-doc-filters input,.wallet-doc-filters select{font-size:16px;min-height:44px}.wallet-date-pair{gap:8px}.wallet-date-pair input{font-size:16px;padding:10px 6px}.wallet-document-summary{padding:12px}.wallet-document-summary dl>div{grid-template-columns:75px minmax(0,1fr);gap:8px}.wallet-document-table th,.wallet-document-table td{padding:9px 4px;font-size:10px}.wallet-document-table caption{font-size:11px}.wallet-document-table td{white-space:normal;overflow-wrap:anywhere}.wallet-document-preview-lines{font-size:10px}}
.wallet-funds-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.wallet-funds-grid>.wallet-balance-card{display:flex;flex-direction:column}
.wallet-funds-grid .wallet-pockets{margin-top:auto}
.wallet-earned-overview-pockets{grid-template-columns:repeat(2,minmax(0,1fr))}
.wallet-funds-actions{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;margin-top:19px}
.wallet-funds-actions .btn{min-height:42px;justify-content:center}.wallet-funds-actions .text-link{font-size:11px;min-height:38px}
.wallet-funds-note,.wallet-account-note{font-size:11px;line-height:1.7;color:var(--muted)}
.wallet-funds-note{margin:11px 0 0}.wallet-account-note{margin:0 2px 20px;max-width:1000px}
.wallet-funds-message{flex:1;padding:24px 0}.wallet-funds-message>strong{font-size:16px;line-height:1.4}.wallet-funds-message>p{font-size:12px;line-height:1.7;color:var(--muted);margin:9px 0 0}
.wallet-funds-unavailable>.btn{align-self:flex-start}
.wallet-service-stats{margin-bottom:var(--wallet-gap)}
.wallet-service-stats .wallet-stats{display:grid;grid-template-columns:130px minmax(0,1fr) auto;align-items:center;gap:22px}
.wallet-service-stats .wallet-stats h2{margin:0}.wallet-service-stats .wallet-stats dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0}
.wallet-service-stats .wallet-stats dl>div{display:block;border:0;padding:0}.wallet-service-stats .wallet-stats dd{text-align:left;margin-top:5px}.wallet-service-stats .wallet-stats .text-link{margin:0}
.wallet-payout-document{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel3);min-width:0}
.wallet-payout-document>strong{font-size:11px;line-height:1.5}.wallet-payout-document>.text-link{font-size:12px;justify-self:start;min-height:32px}
.wallet-payout-document p{font-size:11px;line-height:1.65;margin:0;overflow-wrap:anywhere}.wallet-payout-document>small{font-size:10px;line-height:1.6;color:var(--muted)}
@media(max-width:1100px){.wallet-funds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-service-stats .wallet-stats{grid-template-columns:1fr auto;gap:12px}.wallet-service-stats .wallet-stats h2{grid-column:1/-1}.wallet-service-stats .wallet-stats dl{gap:15px}}
@media(max-width:900px){.wallet-funds-grid{grid-template-columns:1fr}.wallet-funds-grid .wallet-pockets{margin-top:0}.wallet-earned-overview .wallet-balance-note{max-width:650px}}
@media(max-width:760px){.wallet-account-note{font-size:11px;margin-bottom:16px}.wallet-funds-grid .wallet-balance-value{font-size:43px}.wallet-funds-actions{gap:8px 14px;margin-top:16px}.wallet-funds-actions .btn{font-size:12px;min-height:44px}.wallet-funds-note{font-size:10px}.wallet-service-stats .wallet-stats{grid-template-columns:1fr;gap:10px}.wallet-service-stats .wallet-stats dl{gap:8px}.wallet-service-stats .wallet-stats .text-link{justify-self:start}.wallet-payout-document{padding:12px}.wallet-payout-document>small{font-size:11px}}
@media(max-width:360px){.wallet-funds-grid .wallet-balance-value{font-size:37px}.wallet-funds-actions{align-items:stretch;flex-direction:column}.wallet-funds-actions .text-link{align-self:flex-start}}

/* Compact wallet: prepaid rubles, bonus credits and earned funds stay distinct. */
[data-wallet-root]{--wallet-gap:14px}
.wallet-balance-card{padding:22px;background:var(--panel2);border-color:var(--line);border-radius:14px}
.wallet-balance-value{font-size:clamp(34px,4vw,48px);margin:16px 0 6px;letter-spacing:-.045em}
.wallet-balance-note{margin-bottom:18px;max-width:none}
.wallet-balance-top{font-size:12px}.wallet-balance-top svg{color:var(--muted)}
.wallet-funds-grid{gap:14px}.wallet-funds-grid .wallet-pockets{margin-top:8px}
.wallet-funds-grid .wallet-funds-actions{margin-top:auto;padding-top:18px}
.wallet-earned-overview .wallet-funds-note{margin-top:10px;line-height:1.55}
.wallet-paid-reserve{display:flex;justify-content:space-between;gap:12px;padding:0 0 16px;font-size:11px;color:var(--muted)}
.wallet-paid-reserve strong{color:var(--text);font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}
.wallet-bonus-pocket{border-top:1px solid var(--line);padding-top:15px}
.wallet-bonus-pocket>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px}
.wallet-bonus-pocket strong{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}
.wallet-bonus-pocket p,.wallet-bonus-pocket>small{color:var(--muted);font-size:11px;line-height:1.55}
.wallet-bonus-pocket p{margin:7px 0 5px}.wallet-bonus-pocket>small{display:block}
.wallet-number.wallet-identity{display:flex;align-items:center;gap:10px 16px;margin:0 0 16px;padding:12px 14px;background:var(--panel2)}
.wallet-number .wallet-number-info{flex:1 1 auto;min-width:0}
.wallet-number .wallet-number-info>span{font-size:10px;margin-bottom:4px}
.wallet-number .wallet-number-info>strong{display:block;font-size:14px;font-weight:550;line-height:1.5;letter-spacing:.07em;white-space:nowrap;overflow-wrap:normal}
.wallet-number .wallet-number-actions{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.wallet-number-actions .btn{min-height:36px;font-size:11px;padding:7px 10px}
.wallet-number>.wallet-copy-status:empty{display:none}
.wallet-number>.wallet-copy-status{flex:1 1 100%;font-size:11px;color:var(--muted);line-height:1.5}
.wallet-copy-helper{position:fixed;top:0;left:-10000px;width:1px;height:1px;opacity:0;pointer-events:none}
.wallet-opening-card h2{margin:20px 0 8px}.wallet-opening-card>.btn{margin-top:24px}
.wallet-tabs{width:100%;border-radius:10px;gap:3px}
.wallet-tabs button{min-width:0;flex:0 0 auto;padding:9px 15px;min-height:38px;font-size:12px}
.wallet-tabs button[aria-selected=true]{background:var(--panel);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
.wallet-notice-compact{font-size:11px;padding:10px 12px;align-items:center;margin-bottom:14px}
.wallet-notice-compact>svg{margin-top:0;color:var(--muted)}
.wallet-stats dd>small{display:block;font-size:10px;line-height:1.5;color:var(--muted);font-weight:400;margin-top:3px}
.wallet-app-spend strong,.wallet-daily-list strong{white-space:normal;text-align:right;overflow-wrap:anywhere}
.wallet-foot-links{padding:4px 0;margin:14px 0 0;gap:10px 20px}
.wallet-history-filters{grid-template-columns:repeat(2,minmax(130px,1fr)) minmax(180px,1.4fr) repeat(2,minmax(125px,.8fr));gap:10px;margin-bottom:8px}
.wallet-history-filters>label{min-width:0}
.wallet-history-filters input{min-width:0;max-width:100%;width:100%;height:42px;border:1px solid var(--line);border-radius:9px;padding:9px 10px;background:var(--panel);color:var(--text);font-family:inherit;font-size:12px;appearance:none;color-scheme:dark}
[data-theme="light"] .wallet-history-filters input{color-scheme:light}
.wallet-history-filters input:focus-visible,.wallet-history-entry>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wallet-history-scope{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 12px}
.wallet-history-scope .text-link{font-size:10px;padding:0;min-height:28px}
.wallet-history-count{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 12px;font-size:11px;color:var(--muted)}
.wallet-history-count .btn{flex:0 0 auto;min-height:36px}
.wallet-history-entry{border-bottom:1px solid var(--line-soft)}
.wallet-history-entry:last-child{border-bottom:0}
.wallet-history-entry>summary{list-style:none;cursor:pointer;border-bottom:0;min-height:75px;padding:14px}
.wallet-history-entry>summary::-webkit-details-marker{display:none}
.wallet-history-entry>summary:hover{background:var(--panel3)}
.wallet-history-entry[open]>summary{background:var(--panel3)}
.wallet-history-entry[open] .wallet-tx-detail small>span{display:inline-block;transform:rotate(180deg)}
.wallet-history-entry .wallet-tx-detail small{display:flex;gap:6px;margin-top:4px;font-size:10px}
.wallet-history-entry .wallet-tx-amount{min-width:0;max-width:100%;display:grid;gap:4px}
.wallet-history-entry .wallet-tx-amount strong{white-space:normal;overflow-wrap:anywhere}
.wallet-history-entry .wallet-tx-bonus{color:var(--muted);font-size:11px;font-weight:500}
.wallet-transaction-details{padding:2px 16px 16px 64px;background:var(--panel3);font-size:11px;line-height:1.6}
.wallet-transaction-details dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 25px}
.wallet-transaction-details dl>div{min-width:0;display:grid;gap:2px}
.wallet-transaction-details dt{color:var(--muted)}.wallet-transaction-details dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wallet-transaction-details .wallet-transaction-id{grid-column:1/-1}
.wallet-transaction-details>p{margin:12px 0 0;color:var(--muted);font-size:10px}
.wallet-statement-amounts{display:grid;gap:4px;text-align:right;min-width:0}
.wallet-statement-amounts strong{white-space:normal;overflow-wrap:anywhere}
.wallet-exchange-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.85fr);gap:var(--wallet-gap);align-items:start;margin-bottom:var(--wallet-gap)}
.wallet-exchange-panel,.wallet-exchange-balances,.wallet-exchange-history{padding:20px!important;min-width:0}
.wallet-exchange-panel .panel-head{align-items:center;margin-bottom:18px;gap:15px}.wallet-exchange-panel .panel-head h2{margin:0}
.wallet-exchange-panel .panel-head .text-link{font-size:11px;flex-shrink:0}
.wallet-exchange-panel form{display:grid;gap:17px}
.wallet-exchange-panel .wallet-field input,.wallet-exchange-panel .wallet-field select{background:var(--panel);font-size:14px}
.wallet-exchange-panel .wallet-input-unit>span{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.wallet-exchange-panel .wallet-input-unit input{padding-right:110px}
.wallet-exchange-direction{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.wallet-exchange-direction legend{font-size:12px;font-weight:650;margin-bottom:8px;padding:0}
.wallet-exchange-direction label{position:relative;cursor:pointer;min-width:0}
.wallet-exchange-direction input{position:absolute;opacity:0;width:1px;height:1px}
.wallet-exchange-direction span{display:block;text-align:center;font-size:12px;line-height:1.5;padding:11px 8px;border:1px solid var(--line);border-radius:9px;background:var(--panel3);overflow-wrap:anywhere;color:var(--muted)}
.wallet-exchange-direction input:checked+span{color:var(--text);border-color:var(--muted);background:var(--panel)}
.wallet-exchange-direction input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}
.wallet-exchange-direction input:disabled+span{opacity:.5;cursor:not-allowed}
.wallet-exchange-available{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:11px;color:var(--muted)}
.wallet-exchange-available strong{color:var(--text);font-size:13px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wallet-exchange-submit{width:100%;min-height:44px;justify-content:center}
.wallet-exchange-unavailable{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.wallet-exchange-panel .wallet-form-error{margin:0}.wallet-exchange-panel .wallet-form-error:empty{display:none}
.wallet-exchange-balances h2{margin-bottom:5px}.wallet-exchange-balances>dl{display:grid;gap:15px;margin:22px 0}
.wallet-exchange-balances dl>div{display:flex;justify-content:space-between;gap:15px;font-size:11px;align-items:baseline}
.wallet-exchange-balances dt{color:var(--muted);line-height:1.5}.wallet-exchange-balances dd{margin:0;font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;text-align:right;overflow-wrap:anywhere}
.wallet-exchange-rate{display:grid;gap:6px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.wallet-exchange-rate strong{font-weight:500;color:var(--text);line-height:1.5;overflow-wrap:anywhere}
.wallet-exchange-balances>p{font-size:11px;line-height:1.6;color:var(--muted);margin:16px 0 0}
.wallet-exchange-empty{padding:12px 20px 24px!important;text-align:center}.wallet-exchange-empty>.btn{min-width:130px;justify-content:center}
.wallet-quote-summary{display:grid;gap:15px;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--panel3);margin:0}
.wallet-quote-summary>div{display:flex;justify-content:space-between;gap:16px;font-size:12px;align-items:baseline}
.wallet-quote-summary dt{color:var(--muted);line-height:1.5}.wallet-quote-summary dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;font-weight:600;overflow-wrap:anywhere}
.wallet-quote-summary .wallet-quote-output{font-size:16px;border-top:1px solid var(--line);padding-top:15px}
.wallet-quote-summary .wallet-quote-output dt{font-size:12px;color:var(--text)}
.wallet-quote-summary dt>small{display:block;font-size:10px;font-weight:400;margin-top:4px}
.wallet-quote-expiry{font-size:11px!important;line-height:1.6}
.wallet-dialog [data-w-refresh-quote][hidden]{display:none}
@media(max-width:1100px){.wallet-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-history-search{grid-column:1/-1}}
@media(max-width:900px){.wallet-exchange-grid{grid-template-columns:1fr}.wallet-exchange-balances>dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0}.wallet-exchange-balances dl>div{display:grid;gap:5px}.wallet-exchange-balances dd{text-align:left}}
@media(max-width:760px){
 .wallet-funds-grid{gap:10px}.wallet-balance-card{padding:17px}.wallet-funds-grid .wallet-balance-value{font-size:38px}.wallet-balance-top{font-size:12px}
 .wallet-bonus-pocket strong{font-size:12px}.wallet-bonus-pocket p{font-size:10px}.wallet-bonus-pocket>small{font-size:10px}
 .wallet-number.wallet-identity{gap:10px;padding:12px;margin-bottom:13px}.wallet-number .wallet-number-info{flex:1 1 100%}.wallet-number .wallet-number-info>strong{font-size:14px;letter-spacing:.06em}
 .wallet-number .wallet-number-actions{flex:0 0 auto;gap:7px}.wallet-number-actions .btn{min-height:40px;padding:8px 12px}
 .wallet-tabs button{min-height:40px;padding:8px 12px;font-size:11px}
 .wallet-history-filters{gap:10px 8px}.wallet-history-filters input,.wallet-history-filters select{font-size:16px;height:44px}
 .wallet-history-count{font-size:10px;gap:8px}.wallet-history-count .btn{font-size:11px;padding:8px 10px;min-height:40px}
 .wallet-history-scope{font-size:10px;margin-bottom:9px}.wallet-history-scope .text-link{font-size:11px}
 .wallet-history-entry>summary{padding:12px 10px;grid-template-columns:29px minmax(0,1fr);gap:8px}
 .wallet-history-entry .wallet-tx-detail span{font-size:10px}.wallet-history-entry .wallet-tx-amount{grid-column:2;text-align:left;gap:3px;margin-top:2px}
 .wallet-history-entry .wallet-tx-amount strong{font-size:12px}.wallet-history-entry .wallet-tx-amount .wallet-tx-bonus{font-size:11px}
 .wallet-transaction-details{padding:3px 12px 14px 47px}.wallet-transaction-details dl{grid-template-columns:1fr;gap:10px}.wallet-transaction-details .wallet-transaction-id{grid-column:auto}
 .wallet-exchange-panel,.wallet-exchange-balances,.wallet-exchange-history{padding:15px!important}.wallet-exchange-panel form{gap:15px}
 .wallet-exchange-panel .wallet-field input,.wallet-exchange-panel .wallet-field select{font-size:16px}.wallet-exchange-balances>dl{grid-template-columns:1fr;gap:12px}
 .wallet-exchange-balances dl>div{display:flex}.wallet-exchange-balances dd{text-align:right}.wallet-exchange-available{font-size:11px}.wallet-exchange-available strong{font-size:12px}
 .wallet-quote-summary{padding:13px}.wallet-quote-summary>div{font-size:11px;gap:10px}.wallet-quote-summary .wallet-quote-output{font-size:15px}
}
@media(max-width:360px){.wallet-funds-grid .wallet-balance-value{font-size:34px}.wallet-number .wallet-number-info>strong{font-size:13px}.wallet-history-count{align-items:flex-start}.wallet-exchange-direction span{font-size:11px}.wallet-bonus-pocket>div{gap:6px}}

.wallet-balance-chip{position:relative;font-size:.83rem;white-space:nowrap}
.wallet-balance-chip summary{display:flex;align-items:center;gap:.45rem;cursor:pointer;border:1px solid var(--border,currentColor);border-radius:1rem;padding:.35rem .65rem}
.wallet-balance-chip summary svg{width:1rem;height:1rem}
.wallet-balance-chip>div{position:absolute;right:0;top:calc(100% + .5rem);z-index:80;padding:1rem;min-width:14rem;background:var(--panel,#fff);color:var(--text,#171d24);border:1px solid var(--border,#9ca3af);border-radius:.7rem;box-shadow:0 .4rem 1.5rem #0002}
.wallet-balance-chip dl{display:grid;grid-template-columns:auto auto;gap:.4rem .85rem;margin:.65rem 0}.wallet-balance-chip dd{margin:0;text-align:right}
.wallet-offer-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:1rem;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--border,#9ca3af55)}
.wallet-offer-list article:last-child{border-bottom:0}.wallet-offer-list h3{margin:.15rem 0}.wallet-offer-list small,.wallet-offer-list span{color:var(--muted,inherit);font-size:.83rem}
@media(max-width:600px){.wallet-balance-chip summary{padding:.25rem .42rem}.wallet-balance-chip>div{position:fixed;right:.65rem;top:3.6rem}.wallet-offer-list article{gap:.55rem}.wallet-offer-list article strong{white-space:nowrap}}
/* PENROUZ wallet */
[data-wallet-root] {
  --wf-mint:#91e4c6; --wf-ink:#101817; --wf-surface:#151c1e;
  --wf-line:#2c3839; --wf-soft:#202b2b; --wf-type:#f1f6f4; --wf-muted:#a3b3b0;
  container:walletpane / inline-size; min-width:0; max-width:1176px; margin-inline:auto; color:var(--wf-type);
}
html[data-theme="light"] [data-wallet-root] {
  --wf-mint:#136c56; --wf-ink:#eaf3ee; --wf-surface:#ffffff;
  --wf-line:#d9e3dd; --wf-soft:#f1f5f2; --wf-type:#182521; --wf-muted:#53655d;
}
[data-wallet-root] .wf-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 17px}
[data-wallet-root] .wf-heading h1 {margin:0;font:700 clamp(27px,2.75vw,39px)/1.17 Manrope,Arial,sans-serif;letter-spacing:-.052em;color:var(--wf-type)}
.wf-heading button,.wf-panel button,.wf-number-tools button,.wf-open {font:inherit;cursor:pointer}
.wf-tool,.wf-inline-tool,.wf-more {display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px!important;font-weight:650!important;background:transparent;color:var(--wf-type);border:0}
.wf-tool {min-height:38px;padding:0 13px;border:1px solid var(--wf-line);background:var(--wf-surface);border-radius:10px}
.wf-tool .wf-icon {width:17px;height:17px}
.wf-tool:hover,.wf-inline-tool:hover,.wf-more:hover {background:var(--wf-soft)}
[data-wallet-root] .wallet-tabs {display:flex;width:100%;min-width:0;max-width:100%;gap:clamp(8px,1.75vw,25px);overflow:auto;padding:0 1px;border:0;border-bottom:1px solid var(--wf-line);border-radius:0;background:transparent;margin:0 0 22px;scrollbar-width:none}
[data-wallet-root] .wallet-tabs::-webkit-scrollbar {display:none}
[data-wallet-root] .wallet-tabs button {position:relative;min-width:0;min-height:42px;padding:4px 2px 12px;color:var(--wf-muted);font-size:13px;font-weight:600;line-height:1.3;border:0;border-radius:0;box-shadow:none;background:transparent}
[data-wallet-root] .wallet-tabs button[aria-selected="true"] {color:var(--wf-type);background:none;box-shadow:none}
[data-wallet-root] .wallet-tabs button[aria-selected="true"]::after {content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--wf-mint);border-radius:4px}
[data-wallet-root] button:focus-visible,[data-wallet-root] a:focus-visible {outline:2px solid var(--wf-mint);outline-offset:3px}
[data-wallet-root] .wallet-tabs button:focus-visible {outline-offset:-3px}
.wf-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wf-dashboard {display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:18px;align-items:stretch}
.wf-left {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:10px;min-width:0}
.wf-card {width:100%;isolation:isolate;position:relative;overflow:hidden;min-width:0;min-height:233px;aspect-ratio:2.28;max-height:282px;
  display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:clamp(20px,2.15vw,31px);
  border:1px solid #579f84;border-radius:21px;color:#f7fffa;
  background:radial-gradient(ellipse at 98% -12%,#74a98a 0%,transparent 52%),
    radial-gradient(ellipse at 9% 123%,#285b4a,transparent 63%),linear-gradient(111deg,#112d29 2%,#1c4e41 49%,#366c51 100%);
  box-shadow:inset 0 1px 0 #dcffe41c,inset 0 -1px 0 #0003,0 9px 24px -16px #0009}
.wf-card::before {content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(103deg,#031a151a 5%,transparent 46%,#d9ffd315 65%,transparent 79%);pointer-events:none}
[data-wallet-root] .wf-card .wf-engraving {position:absolute;z-index:-1;inset:0 0 0 auto;width:58%;height:100%;max-width:none;color:#dcffda;opacity:.62;stroke:none;fill:none;pointer-events:none;
  mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 98%)}
.wf-card-head {display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px}
.wf-wordmark {display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:800;letter-spacing:.16em;line-height:1}
.wf-wordmark svg {width:23px;height:23px;fill:currentColor}
.wf-currency {display:inline-flex;align-items:center;justify-content:center;min-height:23px;padding:2px 9px;border-radius:100px;border:1px solid #d7ffe158;background:#193d3091;color:#f1fff5;font-size:10px;font-weight:750;letter-spacing:.11em}
.wf-card-funds {position:relative;max-width:90%;margin:16px 0 15px}
.wf-card-funds>span,.wf-number-label {display:block;color:#d5e9dd;font-size:12px;font-weight:550;line-height:1.4}
.wf-amount {margin-top:4px;color:#fff;font:650 clamp(38px,4.45vw,62px)/1.12 Manrope,Arial,sans-serif;letter-spacing:-.068em;font-variant-numeric:tabular-nums}
.wf-amount.wf-amount--long {font-size:clamp(27px,3.3vw,47px);letter-spacing:-.055em}
.wf-amount small {font-size:.61em;color:#dceee1;font-weight:530;letter-spacing:-.025em}
.wf-account-number {max-width:100%;min-width:0;position:relative}
.wf-number-label {color:#c6dece;font-size:10px;letter-spacing:.045em}
.wf-number-row,.wf-number-tools {display:flex;align-items:center;gap:8px}
.wf-number-row strong {font:600 clamp(13px,1.3vw,16px)/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.065em;color:#fff;white-space:nowrap}
.wf-number-tools {gap:1px}
.wf-number-tools button {display:grid;place-items:center;width:32px;height:32px;padding:6px;border:0;background:#173e3059;color:#e7f8eb;border-radius:7px}
.wf-number-tools button:hover {background:#d6ffdc2b;color:#fff}
.wf-number-tools svg,.wf-inline-tool svg,.wf-more svg,.wf-foot svg,.wf-action-end svg,.wf-open svg {width:16px;height:16px}
.wf-number-tools svg:not(.wf-icon),.wf-action-icon svg:not(.wf-icon),.wf-action-end svg,.wf-pocket-icon svg:not(.wf-icon),.wf-more svg,.wf-foot svg,.wf-open svg,.wf-empty-icon svg:not(.wf-icon),.wf-movement svg:not(.wf-icon),.wf-load-error>svg {fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wf-pockets {display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--wf-line);border-radius:15px;background:var(--wf-surface);padding:13px 2px}
.wf-pocket {display:flex;align-items:center;gap:11px;min-width:0;padding:1px clamp(12px,1.7vw,22px)}
.wf-pocket+.wf-pocket {border-inline-start:1px solid var(--wf-line)}
.wf-pocket-icon,.wf-action-icon,.wf-movement,.wf-empty-icon {display:inline-grid;flex:none;place-items:center}
.wf-pocket-icon {width:35px;height:35px;border-radius:11px;background:var(--wf-soft);color:var(--wf-muted)}
.wf-pocket-icon svg {width:17px;height:17px}
.wf-bonus-icon {background:#b19bd714;color:#c6b0ec}
html[data-theme="light"] .wf-bonus-icon {color:#71509e;background:#f3eef8}
.wf-pocket>div {display:grid;gap:2px;min-width:0}
.wf-pocket>div>span,.wf-pocket small {font-size:11px;font-weight:530;line-height:1.35;color:var(--wf-muted)}
.wf-pocket strong {display:block;font-size:15px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums}
.wf-panel {min-width:0;background:var(--wf-surface);border:1px solid var(--wf-line);border-radius:19px;padding:clamp(17px,1.7vw,24px)}
.wf-panel-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
[data-wallet-root] .wf-panel-head h2,[data-wallet-root] .wf-load-error h2 {margin:0;color:var(--wf-type);font-weight:680;font-size:clamp(17px,1.43vw,21px);line-height:1.3;letter-spacing:-.04em}
.wf-inline-tool,.wf-more {color:var(--wf-mint);padding:5px 4px;min-height:32px;border-radius:7px}
.wf-inline-tool .wf-icon {width:15px;height:15px}
.wf-more {gap:2px}
.wf-more svg {width:14px;height:14px}
.wf-actions {display:flex;flex-direction:column}
.wf-action-list {display:flex;flex:1;min-width:0;flex-direction:column;justify-content:space-evenly;margin-top:9px}
.wf-action {appearance:none;width:100%;display:flex;align-items:center;min-height:64px;flex:1;gap:14px;text-align:start;padding:11px 5px;color:var(--wf-type);background:transparent;border:0}
.wf-action+.wf-action {border-top:1px solid var(--wf-line)}
.wf-action:not(:disabled):hover {background:var(--wf-soft);border-radius:9px}
.wf-actions button.wf-action:disabled {opacity:1;filter:none;cursor:default}
.wf-actions button.wf-action:disabled .wf-action-text strong {color:var(--wf-muted)}
.wf-actions button.wf-action:disabled .wf-action-text small {color:var(--wf-muted)}
.wf-action-icon {height:41px;width:41px;border-radius:13px;background:var(--wf-soft);color:var(--wf-type)}
.wf-action-icon svg {width:20px;height:20px}
.wf-action--topup .wf-action-icon {background:#96e9c8;color:#103c2e}
.wf-action--topup:disabled .wf-action-icon {color:#b0c5ba;background:#293a32}
html[data-theme="light"] .wf-action--topup:disabled .wf-action-icon {background:#e2ece5;color:#4c6a58}
.wf-action-text {display:grid;gap:4px;min-width:0;flex:1}
.wf-action-text strong {font-size:15px;font-weight:680;line-height:1.35}
.wf-action-text small {color:var(--wf-muted);font-size:12px;line-height:1.45;font-weight:450}
.wf-action-end {display:grid;place-items:center;color:var(--wf-muted)}
.wf-recent,.wf-month {display:flex;flex-direction:column}
.wf-empty {display:flex;align-items:center;justify-content:flex-start;gap:16px;min-height:105px;flex:1;margin-top:12px;padding:12px 2px}
.wf-empty-icon {width:48px;height:55px;border:1px solid var(--wf-line);background:var(--wf-soft);color:var(--wf-muted);border-radius:13px;transform:rotate(-5deg)}
.wf-empty-icon svg {width:24px;height:24px;transform:rotate(5deg)}
.wf-empty strong {display:block;font-size:15px;font-weight:650}
.wf-empty p,.wf-load-error p {color:var(--wf-muted);font-size:12px;line-height:1.5;margin:5px 0 0}
.wf-recent-list {list-style:none;margin:11px 0 0;padding:0}
.wf-recent-list li {display:flex;gap:11px;align-items:center;min-height:55px;padding:7px 0}
.wf-recent-list li+li {border-top:1px solid var(--wf-line)}
.wf-movement {width:32px;height:32px;border-radius:10px;color:var(--wf-muted);background:var(--wf-soft)}
.wf-movement svg,.wf-metric-icon svg {width:16px;height:16px}
.wf-movement--in {color:var(--wf-mint)}
.wf-movement-name,.wf-movement-value {min-width:0;display:grid;gap:3px}
.wf-movement-name {flex:1;overflow-wrap:anywhere}
.wf-movement-name strong,.wf-movement-value strong {font-size:13px;font-weight:650}
.wf-movement-name small,.wf-movement-value small,.wf-metric dd small {font-size:10px;color:var(--wf-muted);line-height:1.35}
.wf-movement-value--in {color:var(--wf-mint)}
.wf-movement-value {text-align:end;font-variant-numeric:tabular-nums}
.wf-period {font-size:11px;color:var(--wf-muted);background:var(--wf-soft);border-radius:7px;padding:4px 8px}
.wf-month dl {display:grid;margin:12px 0 0;align-content:center;flex:1}
.wf-metric {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;min-height:36px}
.wf-metric+.wf-metric {border-top:1px solid var(--wf-line)}
.wf-metric dt {display:flex;align-items:center;gap:8px;font-size:13px;color:var(--wf-muted)}
.wf-metric dd {display:grid;text-align:end;margin:0;font-size:14px;line-height:1.35;font-weight:650;font-variant-numeric:tabular-nums}
.wf-metric-icon {display:inline-grid;place-items:center;color:var(--wf-muted)}
.wf-metric-icon--in {color:var(--wf-mint)}
.wf-foot {display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--wf-muted);font-size:11px;margin:16px 2px 0}
.wf-foot>svg {width:13px;height:13px}
.wf-foot>a {display:inline-flex;align-items:center;gap:2px;color:var(--wf-muted);text-decoration:none;padding:5px}
.wf-foot>a:first-of-type {margin-inline-start:auto}
.wf-foot a:hover {color:var(--wf-type)}
.wf-foot a svg {width:12px;height:12px}
.wf-dashboard + .wallet-spending {margin-top:18px}
.wf-load-error {display:flex;gap:14px;align-items:flex-start}
.wf-load-error>svg {width:24px;height:24px;flex:none;color:var(--wf-muted)}.wf-load-error button {margin-top:12px}
.wf-onboarding {max-width:640px}
.wf-unopened {width:100%;min-height:232px;max-width:640px}
[data-wallet-root] .wf-new-body h2 {font-size:clamp(21px,2.25vw,33px);margin:18px 0 6px;color:#fff;line-height:1.2;letter-spacing:-.04em}
.wf-new-body p {font-size:13px;color:#d6eadd;margin:0 0 14px;line-height:1.4;max-width:26ch}
.wf-open {display:inline-flex;align-items:center;gap:6px;min-height:37px;border:0;border-radius:9px;background:#ddf6e6;color:#123c2e;padding:7px 13px;font-size:13px;font-weight:700}
[data-wallet-root]:not([data-wallet-view="overview"]) #wallet-view>.panel,
[data-wallet-root]:not([data-wallet-view="overview"]) #wallet-view>.wallet-section-gap>.panel {border-radius:16px;background:var(--wf-surface);border-color:var(--wf-line)}
[data-wallet-root] .wallet-notice {margin:0 0 13px;border-radius:11px}
[data-wallet-root] .wallet-mcp {margin-top:14px}
[data-wallet-root] .wallet-tabs button:hover {color:var(--wf-type)}
.wf-dashboard>*,.wf-action>* {min-width:0}
@media(max-width:1150px) {.wf-dashboard {gap:14px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.wf-number-row strong {font-size:13px}.wf-card{padding:21px}.wf-action{gap:10px}.wf-pocket{gap:8px}.wf-panel{padding:18px}}
@container walletpane (max-width:710px) {
  [data-wallet-root] .wf-heading {margin:0 0 10px}
  [data-wallet-root] .wallet-tabs {margin-bottom:15px;gap:17px}
  [data-wallet-root] .wallet-tabs button {font-size:12px;min-height:39px;padding-bottom:10px}
  .wf-dashboard {grid-template-columns:minmax(0,1fr);gap:12px}
  .wf-left {gap:7px}.wf-card{width:100%;min-height:196px;max-height:262px;border-radius:17px;padding:19px 21px}
  .wf-amount{font-size:clamp(40px,8vw,56px)}.wf-card-funds{margin:11px 0}
  .wf-number-row strong{font-size:14px}.wf-number-tools button{width:40px;height:38px}
  .wf-pocket strong{font-size:14px}.wf-pockets{border-radius:13px;padding:10px 0}
  .wf-panel{padding:15px 17px;border-radius:16px}
  .wf-action{min-height:55px;padding:8px 0}.wf-action-text{gap:2px}.wf-action-text strong{font-size:14px}.wf-action-text small{font-size:11px}
  .wf-action-list{margin-top:5px}.wf-action-icon{height:33px;width:33px;border-radius:10px}.wf-action-icon svg{width:17px;height:17px}
  .wf-empty{min-height:81px;margin-top:4px;padding:8px 0}.wf-empty-icon{width:35px;height:41px;border-radius:9px}
  .wf-foot{margin-top:10px}
}
@container walletpane (max-width:355px) {
  .wf-card{min-height:188px;padding:16px}.wf-wordmark{font-size:11px}.wf-number-row{gap:3px}.wf-number-row strong{font-size:12px;letter-spacing:.025em}
  .wf-pocket{padding:0 10px;gap:7px}.wf-pocket-icon{width:28px;height:28px;border-radius:8px}.wf-pocket>div>span{font-size:10px}.wf-panel{padding:13px}
}
.wf-mobile-nav {display:none}
@container walletpane (max-width:580px) {
  [data-wallet-root] .wallet-tabs {display:none}
  .wf-mobile-nav {display:flex;align-items:stretch;justify-content:space-between;gap:7px;border-bottom:1px solid var(--wf-line);margin:0 0 14px}
  .wf-mobile-nav button,.wf-section-picker {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;border:0;border-radius:0;background:transparent;color:var(--wf-muted);font:620 12px/1.3 Manrope,Arial,sans-serif;padding:3px 2px 8px;white-space:nowrap;cursor:pointer}
  .wf-mobile-nav [aria-current="page"],.wf-section-picker[data-current] {color:var(--wf-type)}
  .wf-mobile-nav [aria-current="page"]::after,.wf-section-picker[data-current]::after {content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--wf-mint);border-radius:4px}
  .wf-section-picker svg {width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;transform:rotate(90deg)}
  .wf-section-picker select {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
  .wf-section-picker:focus-within {outline:2px solid var(--wf-mint);outline-offset:-2px}
}


/* Wallet creation agreement: all text remains keyboard and screen-reader accessible. */
.wallet-agreement-intro{font-weight:600}.wallet-agreement-text{max-height:42vh;overflow:auto;padding:4px 14px 4px 0;line-height:1.6;overscroll-behavior:contain}.wallet-agreement-text h3{font-size:15px;margin:22px 0 8px}.wallet-agreement-text p{font-size:13px;overflow-wrap:anywhere}.wallet-agreement-consent{display:flex;align-items:flex-start;gap:10px;margin:22px 0 8px;font-size:14px;line-height:1.5;cursor:pointer}.wallet-agreement-consent input{flex:0 0 auto;width:18px;height:18px;margin-top:2px}.wallet-agreement-text:focus-visible{outline:2px solid currentColor;outline-offset:3px}@media(max-width:520px){.wallet-agreement-text{max-height:36vh}.wallet-dialog-form:has(.wallet-agreement-consent) footer{flex-wrap:wrap}.wallet-dialog-form:has(.wallet-agreement-consent) footer button{flex:1 1 100%}}
