@font-face{font-family:WalletVazirmatn;font-style:normal;font-weight:400;font-display:swap;src:url("/wallet-assets/Vazirmatn-400.ttf") format("truetype")}
@font-face{font-family:WalletVazirmatn;font-style:normal;font-weight:500;font-display:swap;src:url("/wallet-assets/Vazirmatn-500.ttf") format("truetype")}
@font-face{font-family:WalletVazirmatn;font-style:normal;font-weight:600;font-display:swap;src:url("/wallet-assets/Vazirmatn-600.ttf") format("truetype")}
@font-face{font-family:WalletVazirmatn;font-style:normal;font-weight:700;font-display:swap;src:url("/wallet-assets/Vazirmatn-700.ttf") format("truetype")}
:root{font-family:WalletVazirmatn,Tahoma,Arial,sans-serif;line-height:1.8;--primary:#7051c1;--primary-foreground:#fff;--ring:#7051c1}
:root.dark{--primary:#c4b5fd;--primary-foreground:#27134e;--ring:#c4b5fd}
[hidden]{display:none!important}header,main{max-width:1160px;margin:auto;padding:24px}header{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--border)}header #appearance{margin-inline-start:auto}.brand{font-weight:800;text-decoration:none;font-size:22px}.badge{font-size:13px;background:var(--accent);color:var(--accent-foreground);padding:4px 12px;border-radius:20px}.intro{display:flex;align-items:center;justify-content:space-between;gap:32px;margin:36px 0}h1{font-size:clamp(28px,4vw,42px);line-height:1.5;margin:8px 0}h2{font-size:20px;margin:0 0 12px}.eyebrow,.muted,footer{color:var(--muted-foreground)}.eyebrow{font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--secondary);color:var(--secondary-foreground);text-decoration:none;font-weight:600}.primary{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}.button:hover{filter:brightness(.94)}.button:disabled{opacity:.65}.button.danger{color:var(--destructive)}nav{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}nav a{padding:8px 12px;text-underline-offset:6px}[data-slot=card]{padding:24px;margin-bottom:24px;scroll-margin-top:16px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.balances{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;margin:24px 0}.balances span{display:block;color:var(--muted-foreground)}.balances strong{display:block;font-size:clamp(20px,3vw,34px);font-variant-numeric:tabular-nums}.columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}form{display:grid;gap:16px;margin:20px 0}label{display:grid;gap:6px}input,select{width:100%;min-height:44px;padding:10px;border:1px solid var(--input);border-radius:var(--radius);background:var(--background);color:var(--foreground);font-size:16px}label:has(#unit){display:flex;align-items:center}#unit{width:auto}article{padding:20px 0;border-top:1px solid var(--border);overflow-wrap:anywhere}article h3{margin:0}article p{margin:8px 0}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}#notice:not(:empty){padding:16px;background:var(--accent);border:1px solid var(--border);border-radius:var(--radius)}#notice[data-error=true]{color:var(--destructive)}details{margin-top:20px}summary{cursor:pointer;min-height:44px}footer{text-align:center;padding:32px}bdi{overflow-wrap:anywhere}
@media(max-width:700px){header,main{padding:16px}.intro{display:block;margin:24px 0}.intro #identity{margin-top:20px}.columns{grid-template-columns:1fr;gap:0}.balances{grid-template-columns:1fr;gap:16px}.balances strong{font-size:28px}[data-slot=card]{padding:20px}.badge{font-size:12px}header{gap:10px}.brand{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Shared Wallet introduction / balance-pass hierarchy, with live data only. */
.intro:has(#intro-copy[hidden]){margin:16px 0;justify-content:flex-end}
.intro #intro-copy{max-inline-size:none;width:100%;min-width:0}.intro h1{text-wrap:balance;max-inline-size:20ch}
#balance{background:linear-gradient(135deg,var(--accent),var(--card) 70%)}
.balances{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.balances .balance-primary{grid-column:1/-1;padding-block:12px 24px;border-bottom:1px solid var(--border)}
.balances .balance-primary strong{font-size:clamp(32px,6vw,52px);color:var(--primary);overflow-wrap:anywhere}
.balances strong{font-size:clamp(18px,2.3vw,26px);overflow-wrap:anywhere}
.loading-state{padding:20px;border:1px solid var(--border);border-radius:var(--radius);color:var(--muted-foreground)}
#access-help{margin-bottom:24px}summary{padding-block:8px}a,button,summary{touch-action:manipulation}
.button:active{filter:brightness(.88)}
@media(max-width:700px){.balances{grid-template-columns:1fr 1fr}.balances>div:last-child{grid-column:1/-1}header,main{padding-inline:max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-left))}main{padding-bottom:max(24px,env(safe-area-inset-bottom))}}

.intro-points{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}.intro-points li{padding:6px 12px;border:1px solid var(--border);border-radius:24px;color:var(--muted-foreground);font-size:14px}

/* Public introduction restored from the existing Wallet design. */

.wallet-home {
  --accent-type: var(--primary);
  --sky: #f4f1fa;
  --grid: #e6e1f0;
  --stage-glow: #b9a4eb40;
}
.dark .wallet-home {
  --sky: #18151f;
  --grid: #282330;
  --stage-glow: #866abd2c;
}
.wallet-home .wrap{width:min(1140px,calc(100% - 48px));margin-inline:auto}

.wallet-home .primary, .wallet-home .quiet, .wallet-home .showcase-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:630;font-size:14px;min-height:44px;border-radius:9px}
.wallet-home .primary, .wallet-home .quiet{padding:10px 17px}
.wallet-home .quiet{border:1px solid var(--border);background:var(--card);color:var(--foreground)}
.wallet-home .primary{background:var(--primary);color:var(--primary-foreground)}
.wallet-home .primary:hover, .wallet-home .quiet:hover{filter:brightness(.92)}
.wallet-home .actions{gap:10px;flex-wrap:wrap;margin-top:18px}
.wallet-home .center{justify-content:center}
.wallet-home .hero{position:relative;overflow:hidden;text-align:center;background-color:var(--sky);background-image:radial-gradient(ellipse at 50% 73%,var(--stage-glow),transparent 54%),linear-gradient(90deg,var(--grid) 1px,transparent 1px),linear-gradient(var(--grid) 1px,transparent 1px);background-size:auto,64px 64px,64px 64px;border-bottom:1px solid var(--border)}
.wallet-home .hero-inner{max-width:1200px;margin:auto;padding:36px 20px 24px}
.wallet-home .eyebrow{border:1px solid var(--border);border-radius:30px;gap:8px;display:inline-flex;background:var(--card);padding:4px 12px;font-size:12px;font-weight:680}
.wallet-home .eyebrow i{width:8px;height:8px;background:var(--primary);border-radius:3px;transform:rotate(45deg)}
.wallet-home .hero h1{font-size:clamp(42px,5vw,78px);line-height:1.01;letter-spacing:-.071em;margin:15px auto 12px;font-weight:740}
.wallet-home .hero h1 em{font-style:normal;color:var(--accent-type)}
.wallet-home .hero p{color:var(--muted-foreground);max-width:540px;margin:auto;font-size:17px}

.wallet-home .tile{display:inline-grid;place-items:center;flex:none;background:var(--muted);width:38px;height:38px;border-radius:11px;color:var(--accent-type)}

.wallet-home .float{position:absolute;gap:10px;text-align:left;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:13px;padding:12px 16px;box-shadow:0 8px 24px #14274d14}
.wallet-home .float b{font-size:14px}
.wallet-home .float small{font-size:11px;color:var(--muted-foreground)}

.wallet-home .float,.wallet-home .showcase-controls{display:flex;align-items:center}
.wallet-home .showcase-controls{justify-content:center;gap:2px;flex-wrap:wrap}
.wallet-home .showcase-controls span{font-size:12px;color:var(--muted-foreground);margin-right:8px}
.wallet-home .showcase-controls button{min-height:36px;min-width:38px;padding:5px 11px;color:var(--muted-foreground)}
.wallet-home .showcase-controls button[aria-pressed=true]{color:var(--foreground);background:var(--card);box-shadow:inset 0 0 0 1px var(--border)}
.wallet-home .feature-strip{display:grid;gap:18px}
.wallet-home .feature-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
.wallet-home .feature-strip{padding-block:30px}
.wallet-home .feature-strip article{border-inline-start:2px solid var(--border);padding-left:19px}
.wallet-home .feature-strip h2{font-size:20px;letter-spacing:-.045em;margin:9px 0 5px}
.wallet-home .feature-strip p{color:var(--muted-foreground)}

@media(max-width:660px){
.wallet-home .wrap{width:calc(100% - 32px)}
.wallet-home .hero-inner{padding:23px 12px 16px}
.wallet-home .hero h1{font-size:clamp(36px,8.6vw,56px)}
.wallet-home .hero p{font-size:15px;max-width:360px}

.wallet-home .float{padding:6px 9px;gap:5px;border-radius:9px}
.wallet-home .float b{font-size:10px}
.wallet-home .float small{font-size:9px}
.wallet-home .float .tile{width:21px;height:21px;border-radius:6px}
.wallet-home .float svg{width:13px}

.wallet-home .feature-strip{grid-template-columns:1fr}
.wallet-home .feature-strip{gap:20px}
.wallet-home .showcase-controls button{min-height:44px;padding:5px 8px}
.wallet-home .showcase-controls span{margin-right:2px}

}
@media(prefers-reduced-motion:reduce){.wallet-home .run{display:none}}

/* The payment follows the same light as the assistant's map and the Hub's metal iris. */
.wallet-home .stage {
  --device-width: clamp(310px, 27vw, 356px);
  isolation: isolate;
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 1120px;
  margin: 22px auto 12px;
}
.wallet-home .handset-shell { width: var(--device-width); position:relative; z-index:1; }
.wallet-home .iphone { display:block; width:100%; height:auto; filter:drop-shadow(0 15px 15px #0d192838); }
.wallet-home .light-field { position:absolute; inset:1% -7%; width:114%; height:95%; pointer-events:none; }
.wallet-home .metal-contour { stroke:#88779c; opacity:.37; stroke-width:.85; }
.dark .wallet-home .metal-contour { stroke:#998aa9; opacity:.5; }
.wallet-home .travelling-glint { stroke-width:2.2; opacity:.95; }
.wallet-home .showcase-controls { margin:16px auto 0; }
.wallet-home .stage .float { z-index:2; }
.wallet-home .f-left { right:calc(50% + var(--device-width) / 2 + 12px); top:29%; }
.wallet-home .f-right { left:calc(50% + var(--device-width) / 2 + 12px); top:60%; }
.wallet-home .f-right .tile { background:var(--accent); color:var(--accent-foreground); }
@keyframes wallet-trace { to { stroke-dashoffset:-100; } }
@media(prefers-reduced-motion:no-preference) {
  .wallet-home .travelling-glint { animation:wallet-trace 5.8s linear infinite; animation-delay:var(--delay); }
  .wallet-home .rim-light { animation:wallet-trace 6.8s linear infinite; animation-delay:-1.8s; }
  .wallet-home .hero.paused .travelling-glint,.wallet-home .hero.paused .rim-light { animation-play-state:paused; }
}
@media(max-width:790px) {
  .wallet-home .stage { --device-width:clamp(268px,78vw,316px); margin-top:16px; }
  .wallet-home .stage .float { display:none; }
  .wallet-home .light-field { inset:2% -22%; width:144%; }
}
.wallet-home .f-right{bottom:auto}.wallet-home .stage{height:auto}.wallet-home .float{white-space:nowrap}
.wallet-home .float small,.wallet-home .float b{display:block}
@media(prefers-reduced-motion:reduce){.wallet-home .showcase-controls .run{display:none}}

/* Colour the public illustration independently of the capabilities guide. */
.wallet-home #aw-pass stop:nth-child(1){stop-color:#382764}
.wallet-home #aw-pass stop:nth-child(2){stop-color:#503987}
.wallet-home #aw-pass stop:nth-child(3){stop-color:#7054af}
.wallet-home #aw-glass stop:nth-child(1){stop-color:#2b2536}
.wallet-home #aw-glass stop:nth-child(2){stop-color:#18151e}
.wallet-home #aw-glass stop:nth-child(3){stop-color:#201c2a}
.wallet-home :is(#aw-spectrum,#aw-filament) stop:nth-child(1){stop-color:#9e85ca}
.wallet-home :is(#aw-spectrum,#aw-filament) stop:nth-child(2){stop-color:#ccbaed}
.wallet-home :is(#aw-spectrum,#aw-filament) stop:nth-child(3){stop-color:#e8dff9}
.wallet-home :is(#aw-spectrum,#aw-filament) stop:nth-child(4){stop-color:#d3b4df}
.wallet-home :is(#aw-spectrum,#aw-filament) stop:nth-child(5){stop-color:#997bc6}

/* Persian typography and isolation from the signed-in workspace. */
.intro{display:block}.intro:has(#intro-copy:not([hidden]))>#identity{display:none}
.wallet-home .hero{border:1px solid var(--border);border-radius:20px}
.wallet-home .hero h1{letter-spacing:normal;line-height:1.55;max-inline-size:none;font-size:clamp(30px,4.5vw,58px)}
.wallet-home .hero p{line-height:1.9}.wallet-home .showcase-controls{gap:8px}
.wallet-home .showcase-controls button{border:1px solid var(--border);background:transparent;cursor:pointer;min-height:44px;font:inherit}
.wallet-home .feature-strip article{padding:16px;border-inline-start:2px solid var(--border);border-top:0}
.wallet-home .hero .stage{direction:ltr}.wallet-home .handset-shell{max-width:100%}
.wallet-home .feature-strip{scroll-margin-top:20px}

/* Restore the original account card and use the supplied atlas palette. */
:root.dark{--background:#191a2c;--foreground:#f3f1ff;--card:#222337;--card-foreground:#f3f1ff;--muted:#292a40;--muted-foreground:#bdbbd1;--border:#41405b;--primary:#bbaaff;--primary-foreground:#26213f;--accent:#302d4b;--accent-foreground:#e5daff;--secondary:#26263d;--secondary-foreground:#efebff}
header,main{width:100%;box-sizing:border-box;max-width:1280px}
.wallet-home{width:100%;min-width:0;--sky:var(--background);--stage-glow:#a99aff1c}
.wallet-home .hero{border:0;border-radius:0;background-image:radial-gradient(ellipse at 25% 50%,var(--stage-glow),transparent 65%);text-align:start;overflow:hidden}
.wallet-home .hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:40px;padding:36px 8px;max-width:none}
.wallet-home .intro-message{min-width:0}.wallet-home .hero h1{margin:22px 0;font-size:clamp(32px,3.7vw,56px);line-height:1.7}
.wallet-home .hero h1 em{background:linear-gradient(100deg,#a2b7ff,#c8a8ff);background-clip:text;color:transparent}
.wallet-home .hero p{margin:0;max-width:none;font-size:17px}.wallet-home .actions.center{justify-content:flex-start}
.wallet-home .intro-visual{min-width:0;text-align:center;direction:rtl}.wallet-home .showcase-controls{margin-top:0}
.wallet-home .stage{--device-width:clamp(245px,23vw,300px);margin:18px auto 10px}
.wallet-home #intro-caption{font-size:14px;text-align:center;color:var(--muted-foreground)}
.wallet-home .feature-strip{border-top:1px solid var(--border);margin-top:20px;gap:24px}
.account-heading{margin:28px 0 20px;font-size:34px}
#signed-in>nav{gap:8px;padding-bottom:16px;border-bottom:1px solid var(--border)}
#signed-in>nav a{text-decoration:none;border-radius:10px;color:var(--muted-foreground)}
#signed-in>nav a:hover,#signed-in>nav a:focus-visible{background:var(--accent);color:var(--foreground)}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}
.overview-grid>[data-slot=card]{margin:0;min-width:0}
#balance.balance-pass{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;min-height:360px;color:#faf8ff;border:1px solid #705ca5;background:radial-gradient(ellipse at 82% 25%,#6047ad,#382780 58%,#29205c)}
.balance-pass:after{content:"";position:absolute;inset:8px;z-index:-1;border:1px solid #e3d3ff39;border-radius:15px;pointer-events:none}
.balance-pass .pass-art{position:absolute;left:-20%;right:auto;top:-6%;width:85%;height:auto;z-index:-1;opacity:.7;mask-image:linear-gradient(270deg,transparent,#000 35%);pointer-events:none}
.pass-brand-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;direction:ltr;font-size:19px}
.pass-type{background:#2c2157cf;border:1px solid #b3a0e366;padding:4px 12px;border-radius:24px;font-size:12px;direction:rtl}
.balance-pass .muted,.balance-pass .balances span{color:#ece6fc}.balance-pass .balances .balance-primary strong{color:#fff;font-size:clamp(30px,3.5vw,48px);text-shadow:0 2px 12px #21174155}
.balance-pass .balances .balance-primary{border-color:#d8c9ff5e}.balance-pass .balances{gap:18px;margin:22px 0}
.balance-pass h2{font-size:15px;font-weight:500}.balance-pass label{font-size:12px}.balance-pass #unit{background:#302657;color:#fff;border-color:#8b7bac;min-height:40px;padding:6px}
.balance-pass .button{background:#302657d9;border-color:#9c86c5;color:#fff}.balance-pass .button.primary{background:#e1d4ff;color:#302049}
.balance-pass #account-id{font-size:12px;overflow-wrap:anywhere}.balance-pass details{font-size:13px}
#activity{max-height:650px;overflow:auto;scrollbar-width:thin}
@media(max-width:800px){.wallet-home .hero-inner{grid-template-columns:1fr;gap:24px;padding:20px 0}.wallet-home .hero{text-align:center}.wallet-home .hero h1{font-size:clamp(28px,6.8vw,42px)}.wallet-home .actions.center{justify-content:center}.wallet-home .stage{--device-width:260px}.overview-grid{grid-template-columns:1fr}.wallet-home .hero p{font-size:16px}.wallet-home .feature-strip{grid-template-columns:1fr}.account-heading{font-size:28px}}
@media(max-width:420px){#balance.balance-pass{padding:22px 18px}.balance-pass .balances strong{font-size:19px}.balance-pass .balances .balance-primary strong{font-size:32px}.wallet-home .showcase-controls{gap:6px}.wallet-home .showcase-controls span{width:100%}}

.brand{display:inline-flex;align-items:center;gap:10px}.brand-icon{width:32px;height:32px;flex:none}
#signed-in>nav a[aria-current=location]{background:var(--primary);color:var(--primary-foreground)}
.receipt-search{margin-top:16px;font-size:14px}.search-scope{font-size:12px;line-height:1.8;margin-block:8px}
#activity-search-result:not(:empty){padding:10px;border-radius:8px;background:var(--accent);font-size:13px}

/* Human-facing workspace: a wallet home and separate task views. */
#signed-in{scroll-margin-top:24px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0}
.workspace-heading .account-heading{margin:4px 0}.section-kicker{font-size:12px;color:var(--muted-foreground);letter-spacing:.03em;margin:0 0 8px}.workspace-heading .button svg{width:18px;height:18px;margin-inline-end:8px}
#signed-in>.wallet-tabs{padding:8px;gap:6px;border:1px solid var(--border);background:var(--card);border-radius:16px;margin-bottom:30px;box-shadow:0 6px 20px #07091a0d;display:flex;flex-wrap:wrap}
#signed-in>.wallet-tabs a{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 16px;min-height:48px;flex:1;white-space:nowrap;font-size:14px;transition:background .15s,transform .15s}
.wallet-tabs svg{width:19px;height:19px;flex:none}#signed-in>.wallet-tabs a[aria-current=page]{background:var(--primary);color:var(--primary-foreground);box-shadow:0 4px 14px #9c7bd827}
.overview-grid{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);align-items:stretch;gap:26px}
#balance.balance-pass{min-height:360px;box-shadow:0 18px 42px #130d3938;border-radius:24px;padding:30px}
.balance-pass .section-heading{align-items:center}.balance-pass .balances{margin:26px 0 18px}.balance-pass .balance-primary{padding-bottom:28px}.balance-pass .pass-art{opacity:.58}
.balance-pass .balances .balance-primary strong{font-size:clamp(34px,4vw,54px)}.balance-pass .account-reference{margin:12px 0 0}.balance-pass .account-reference summary{font-size:12px;min-height:30px;padding:0}
.balance-pass>details:last-child{margin-top:8px}.balance-pass>details:last-child summary{min-height:30px;padding:0;font-size:12px}
[data-wallet-view]>[data-slot=card],.wallet-companion,.recent-card{border-radius:20px;box-shadow:0 8px 28px #060a1814}
.wallet-companion{display:flex;flex-direction:column;padding:28px!important;background:linear-gradient(150deg,var(--card),var(--background));margin:0!important}
.wallet-companion h2{font-size:28px;margin:4px 0 8px}.wallet-companion>p{font-size:14px;line-height:1.9;margin:0 0 18px}
.quick-action{display:flex;align-items:center;gap:14px;text-decoration:none;padding:15px 2px;color:var(--foreground);border-top:1px solid var(--border);transition:transform .16s}
.quick-action:hover{transform:translateX(-3px)}.quick-action>svg{width:42px;height:42px;padding:10px;border-radius:13px;background:var(--accent);color:var(--accent-foreground);flex:none}
.quick-action>span{display:grid;gap:5px}.quick-action strong{font-size:14px}.quick-action small{font-size:12px;color:var(--muted-foreground)}.quick-action>b{margin-inline-start:auto;color:var(--muted-foreground)}
.recent-entry{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--foreground);padding:18px 0;border-bottom:1px solid var(--border)}.recent-entry:last-child{border-bottom:0}
.entry-icon{display:grid;place-items:center;width:42px;height:42px;background:var(--accent);color:var(--accent-foreground);border-radius:14px;font-size:24px}.recent-entry>span:last-child{display:grid;gap:6px}.recent-entry small{font-size:12px;color:var(--muted-foreground)}
.view-heading{margin:26px 0}.view-heading h2{font-size:28px;margin-bottom:8px}.view-heading p{color:var(--muted-foreground);margin:0;font-size:15px}
[data-wallet-view=activity] #activity{max-height:none;overflow:visible}.activity-row{position:relative;padding:22px 18px;margin:14px 0;background:var(--background);border:1px solid var(--border);border-radius:16px}
.activity-row h3{font-size:23px;margin-bottom:10px}.activity-row>p{display:inline-block;margin:4px 0 4px 20px;font-size:13px;color:var(--muted-foreground)}.activity-row details{margin-top:12px;border-top:1px solid var(--border);padding-top:6px;font-size:13px}.activity-row details p{overflow-wrap:anywhere;color:var(--muted-foreground)}
.friendly-empty{padding:28px;text-align:center;color:var(--muted-foreground);line-height:1.9}
body:has(#signed-in:not([hidden])) #access-help{display:none}

@media(max-width:800px){.overview-grid{grid-template-columns:1fr}.workspace-heading{margin:18px 0}.workspace-heading .account-heading{font-size:28px}#signed-in>.wallet-tabs{gap:4px;padding:6px;border-radius:14px}#signed-in>.wallet-tabs a{flex:1 0 28%;padding:10px 6px;font-size:12px;gap:6px;flex-direction:column;min-height:62px}.wallet-tabs svg{width:20px;height:20px}#balance.balance-pass{padding:24px;min-height:330px}.wallet-companion{padding:22px!important}.view-heading h2{font-size:24px}.activity-row{padding:18px 14px}.activity-row>p{display:block}.quick-action{padding:17px 0}}

#identity>strong{display:inline-flex;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--card);font-size:14px}
#balance.balance-pass .balances{margin-block:18px 14px}#balance.balance-pass .balances .balance-primary{padding-block:4px 18px}
[data-wallet-view] input:focus-visible,[data-wallet-view] select:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* Match the approved horizontal card: controls and account details live outside it. */
:root{font-synthesis:none}body,button,input,select,textarea{font-family:WalletVazirmatn,Tahoma,Arial,sans-serif}
.overview-grid{align-items:start}.wallet-card-block{min-width:0}
#balance.balance-pass{box-sizing:border-box;aspect-ratio:1.8;min-height:0;max-height:none;height:auto;padding:24px 26px;display:flex;flex-direction:column;justify-content:space-between;border-radius:20px;margin:0}
#balance .pass-brand-row{margin:0;font-size:17px;min-height:26px}
#balance.balance-pass .balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 0}
#balance.balance-pass .balances .balance-primary{grid-column:1/-1;padding:0 0 16px}
#balance .card-amount-label{font-size:14px;font-weight:400;color:#ece6fc;margin:0 0 5px}
#balance.balance-pass .balances .balance-primary strong{font-size:clamp(28px,3.8vw,48px);line-height:1.35;font-weight:500}
#balance .balances span{font-size:12px}#balance .balances strong{font-size:16px;font-weight:600;line-height:1.7}
#balance .pass-art{width:86%;top:-22%;left:-20%;transform-origin:50% 50%}
.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}
.card-toolbar .section-heading{margin:0}.card-toolbar label{font-size:12px}.card-toolbar #unit{min-height:42px;padding:6px 10px}
.card-toolbar .actions{margin:0;gap:8px}.card-toolbar .button{font-size:13px;padding:7px 13px;min-height:42px}
[data-wallet-view="account-security"] .account-reference{margin-block:20px}
@media(prefers-reduced-motion:no-preference){#balance .pass-art{animation:wallet-rosette-arrive .95s cubic-bezier(.2,.7,.25,1) both}@keyframes wallet-rosette-arrive{from{opacity:0;transform:translateX(-12px) rotate(-24deg) scale(1.08)}to{opacity:.58;transform:translateX(0) rotate(0) scale(1)}}}
@media(prefers-reduced-motion:reduce){#balance .pass-art{animation:none;transform:none}}
@media(max-width:800px){#balance.balance-pass{padding:22px 24px;min-height:0;aspect-ratio:1.8}}
@media(max-width:420px){#balance.balance-pass{padding:16px 18px;border-radius:18px}#balance .pass-brand-row{font-size:14px;min-height:20px}#balance .pass-type{font-size:10px;padding:2px 8px}#balance.balance-pass .balances{margin-top:10px;gap:9px}#balance .card-amount-label{font-size:12px;margin-bottom:2px}#balance.balance-pass .balances .balance-primary strong{font-size:30px}#balance.balance-pass .balances .balance-primary{padding-bottom:10px}#balance .balances span{font-size:10px}#balance .balances strong{font-size:13px}#balance .balances>div:last-child{grid-column:auto}.card-toolbar{gap:8px}.card-toolbar .button{font-size:12px;padding-inline:10px}}

/* Transient feedback must never push the wallet or move a focused control. */
:root{scrollbar-gutter:stable}
.wallet-feedback{position:fixed;inset-block-end:24px;inset-inline-end:24px;z-index:60;width:min(420px,calc(100vw - 32px));overflow:visible;display:flex;flex-direction:column;align-items:stretch;gap:8px;pointer-events:none}
.wallet-feedback>*{pointer-events:auto}
.wallet-feedback #loading,.wallet-feedback #notice:not(:empty){margin:0;padding:14px 18px;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 30px #07091a30;font-size:14px;line-height:1.9;overflow-wrap:anywhere}
.wallet-feedback #notice:empty{display:none}
.wallet-feedback #notice[data-error=true]{color:var(--destructive);border-color:var(--destructive)}
.wallet-feedback #retry-load{align-self:flex-start;background:var(--card);box-shadow:0 8px 30px #07091a30}
@media(max-width:600px){.wallet-feedback{inset-block-end:max(16px,env(safe-area-inset-bottom));inset-inline-end:16px}.wallet-feedback #loading,.wallet-feedback #notice:not(:empty){font-size:13px;padding:12px 16px}}

.feedback-notice{position:relative;pointer-events:auto}.feedback-notice:has(#notice:empty){display:none}
.wallet-feedback .feedback-notice #notice:not(:empty){padding-inline-end:52px}
#dismiss-notice{position:absolute;inset-block-start:4px;inset-inline-end:4px;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--muted-foreground);font:inherit;font-size:24px;cursor:pointer}
#dismiss-notice:hover,#dismiss-notice:focus-visible{color:var(--foreground);background:var(--accent)}

/* Keep the signed-in workspace focused on its navigation and balance. */
#intro-section:has(#intro-copy[hidden]){display:none}
.wallet-page-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.account-identity{margin-block:16px 24px}

/* Financial direction uses color plus the existing text and arrow cues. */
:root{--money-in:#137647;--money-out:#b4233f}
:root.dark{--money-in:#75ddb3;--money-out:#ffa0b3}
.activity-row[data-direction="incoming"] h3,.recent-entry[data-direction="incoming"] strong,.recent-entry[data-direction="incoming"] .entry-icon{color:var(--money-in)}
.activity-row[data-direction="outgoing"] h3,.recent-entry[data-direction="outgoing"] strong,.recent-entry[data-direction="outgoing"] .entry-icon{color:var(--money-out)}
#account-preferences .section-heading{justify-content:flex-start}
#account-preferences label{gap:16px;flex-wrap:wrap}

/* Show the current loading step instead of stacking it with an older notice. */
.wallet-feedback:has(#loading:not([hidden])) .feedback-notice{display:none}
.wallet-feedback #notice{max-height:calc(100dvh - 64px);overflow:auto;overscroll-behavior:contain}
.wallet-feedback:has(#retry-load:not([hidden])) #notice{max-height:calc(100dvh - 120px)}

/* Account is a compact control surface, with identity separate from everyday choices. */
.account-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.6fr);grid-template-areas:"profile preferences" "profile access";gap:20px;align-items:stretch}
.account-layout>[data-slot=card]{min-width:0;margin:0;padding:26px;border-radius:22px;box-shadow:0 10px 32px #090b2017}
.account-profile{grid-area:profile;display:flex;flex-direction:column;position:relative;background:radial-gradient(ellipse at 100% 0%,var(--accent),transparent 70%),var(--card)}
.profile-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;padding:12px 0 20px}
.profile-avatar{width:80px;height:80px;display:grid;place-items:center;border-radius:26px;background:var(--accent);color:var(--primary);border:1px solid var(--border);box-shadow:0 8px 24px #6e55b520}
.profile-avatar svg{width:36px;height:36px}
.account-profile #identity>strong{display:block;padding:0;border:0;border-radius:0;background:transparent;font-size:23px;font-weight:600;overflow-wrap:anywhere}
.account-profile .section-kicker{margin-bottom:6px}
.account-profile .account-reference{margin:0 0 18px;padding:12px 0;border-block:1px solid var(--border);font-size:12px}
.account-profile .account-reference summary{min-height:44px;display:list-item;padding:10px 0;color:var(--muted-foreground)}
.account-profile .account-reference:has(#account-id:empty){display:none}
.account-profile #account-id{font-size:12px;overflow-wrap:anywhere;margin:8px 0}
.profile-footer{margin-block-start:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
.account-logout{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:74px;min-height:44px;padding:8px 10px;border-radius:10px;color:var(--destructive);font-size:13px}
.account-logout:hover,.account-logout:focus-visible{background:var(--muted)}.account-logout svg{width:18px;height:18px}
.account-preferences{grid-area:preferences}.account-access{grid-area:access}
.account-panel-heading{display:flex;align-items:center;gap:12px}.account-panel-heading h3{font-size:18px;margin:0;font-weight:600}
.account-panel-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--accent);color:var(--primary);flex:none}.account-panel-icon svg{width:21px;height:21px}
.account-panel-copy{margin:10px 0 18px;color:var(--muted-foreground);font-size:13px}
.currency-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.currency-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px;padding:14px 16px;text-align:start;border:1px solid var(--border);border-radius:14px;background:var(--background);transition:background .15s,border-color .15s,box-shadow .15s}
.currency-choice>span:first-child{display:grid;gap:4px}.currency-choice strong{font-size:16px;font-weight:600}.currency-choice small{font-size:11px;color:var(--muted-foreground)}
.currency-check{width:23px;height:23px;flex:none;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center;background:var(--card)}.currency-check svg{width:15px;height:15px;visibility:hidden}
.currency-choice[aria-pressed=true]{background:var(--accent);border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
.currency-choice[aria-pressed=true] .currency-check{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}.currency-choice[aria-pressed=true] .currency-check svg{visibility:visible}
.currency-choice:hover{border-color:var(--primary)}.currency-choice:disabled{opacity:.6;cursor:wait}
.account-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.account-action{display:flex;align-items:center;gap:12px;min-height:90px;padding:16px 12px;border:1px solid var(--border);border-radius:14px;text-decoration:none;background:var(--background);transition:border-color .15s,background .15s}
.account-action:hover{background:var(--accent);border-color:var(--primary)}.account-action>span:nth-child(2){display:grid;gap:5px;min-width:0}.account-action strong{font-size:13px;font-weight:600}.account-action small{font-size:11px;color:var(--muted-foreground)}
.account-action-icon svg{width:23px;height:23px;color:var(--muted-foreground)}.account-action-arrow{margin-inline-start:auto;align-self:flex-start;color:var(--muted-foreground)}.account-action-arrow svg{width:15px;height:15px}
.account-help{margin-top:18px;border-top:1px solid var(--border);padding-top:8px;font-size:13px}.account-help summary{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--muted-foreground);list-style:none}.account-help summary::-webkit-details-marker{display:none}.account-help summary>svg{width:17px;height:17px}.account-help summary::after{content:'+';margin-inline-start:auto;font-size:20px}.account-help[open] summary::after{content:'−'}
.account-help p{color:var(--muted-foreground);margin:8px 0 12px;font-size:13px}.account-help>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--primary);text-underline-offset:5px}.account-help>a svg{width:15px;height:15px}
@media(max-width:900px){.account-layout{grid-template-columns:minmax(220px,.85fr) minmax(0,1.5fr)}.account-layout>[data-slot=card]{padding:22px}.account-action-grid{grid-template-columns:1fr}.account-action{min-height:74px}}
@media(max-width:650px){.account-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"profile" "preferences" "access";gap:16px}.account-layout>[data-slot=card]{padding:20px}.profile-head{flex-direction:row;text-align:start;gap:14px;padding:0 0 16px}.profile-avatar{width:60px;height:60px;border-radius:20px;flex:none}.profile-avatar svg{width:28px;height:28px}.account-profile #identity>strong{font-size:21px}.account-profile .account-reference{margin:0;padding:6px 0}.profile-footer{padding-top:8px}.account-panel-heading h3{font-size:17px}.currency-choice{padding:12px;gap:8px;min-height:76px}.currency-choice small{font-size:10px}.account-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-action{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 12px}.account-action>span:nth-child(2){grid-column:1/-1;grid-row:2}.account-action-arrow{grid-column:2;grid-row:1}.account-action small{font-size:10px}.account-action strong{font-size:13px}}

.account-profile .profile-footer{border-top:1px solid var(--border);padding-top:12px}
.account-profile .profile-footer .account-reference{margin:0;padding:0;border:0;flex:1;min-width:0}
@media(max-width:650px){.account-profile .profile-footer{padding-top:6px}}

.account-profile{overflow:hidden;isolation:isolate}
.account-profile::before{content:"";position:absolute;inset-inline-end:-100px;bottom:60px;width:320px;height:320px;background:url("/wallet-assets/rosette.svg") center/contain no-repeat;opacity:.1;pointer-events:none}
.account-profile>.profile-head,.account-profile>.profile-footer{position:relative}
@media(max-width:650px){.account-profile::before{display:none}}

/* Agent connections and spending permissions: two clear owner-controlled tasks. */
.agent-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.agent-view-heading h2{margin:0}.agent-view-heading .button{gap:8px;font-size:13px}.agent-view-heading svg{width:18px;height:18px}
.agent-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.agent-panel{padding:26px!important;border-radius:22px;margin:0!important;min-width:0;box-shadow:0 10px 32px #090b2017}
.agent-panel-heading{display:flex;align-items:center;gap:12px}.agent-panel-heading h3{font-size:18px;font-weight:600;margin:0}.agent-panel-heading>.button{margin-inline-start:auto;gap:6px;min-height:44px;padding:7px 12px;font-size:12px}.agent-panel-heading>.button svg{width:16px;height:16px}
.agent-boundary{font-size:13px;line-height:1.9;color:var(--muted-foreground);margin:18px 0 22px}.agent-empty{text-align:center;padding:20px 12px;color:var(--muted-foreground)}.agent-empty strong{display:block;color:var(--foreground);font-size:16px;font-weight:500}.agent-empty p{font-size:13px;margin:10px 0 0;line-height:1.9}
.agent-empty-art{width:82px;height:82px;border-radius:28px;display:grid;place-items:center;margin:34px auto 0;background:var(--accent);color:var(--primary);box-shadow:0 8px 28px #6e55b51c}.agent-empty-art svg{width:40px;height:40px}#connections:has(.agent-card) .agent-empty-art{display:none}
.agent-card,.grant-card{padding:18px;margin-top:18px;border:1px solid var(--border);background:var(--background);border-radius:16px;overflow-wrap:anywhere}.agent-card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.agent-card-heading h4{font-size:14px;margin:0;direction:ltr;unicode-bidi:plaintext;overflow-wrap:anywhere;font-weight:600}.agent-status{font-size:11px;flex:none;padding:3px 9px;border-radius:20px;background:var(--muted);color:var(--muted-foreground)}[data-active="true"]>.agent-card-heading>.agent-status{background:var(--accent);color:var(--primary)}
.agent-card-copy{font-size:12px!important;color:var(--muted-foreground);margin-block:12px!important}.agent-card>.button,.grant-card>.button{min-height:44px;font-size:12px;padding:7px 12px;margin-top:8px}
.grant-cap{margin:18px 0 8px;display:grid;gap:4px}.grant-cap>span{font-size:12px;color:var(--muted-foreground)}.grant-cap>strong{font-size:23px;font-weight:500}.grant-usage,.grant-expiry{font-size:12px;color:var(--muted-foreground)}.grant-card progress{display:block;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;background:var(--muted);accent-color:var(--primary);margin-block:12px}.grant-card progress::-webkit-progress-bar{background:var(--muted)}.grant-card progress::-webkit-progress-value{background:var(--primary)}.grant-card progress::-moz-progress-bar{background:var(--primary)}.grant-recipient{margin-top:12px;border-top:1px solid var(--border);font-size:12px}.grant-recipient summary{min-height:44px;color:var(--muted-foreground)}.grant-recipient p{direction:ltr;unicode-bidi:plaintext;overflow-wrap:anywhere;font-size:12px}
.agent-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid var(--border);border-radius:24px;background:var(--card);color:var(--foreground);box-shadow:0 24px 90px #03061266;overflow:auto}.agent-dialog::backdrop{background:#080b19b8;backdrop-filter:blur(4px)}.agent-dialog-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.agent-dialog-heading h3{font-size:20px;font-weight:600;margin:0}.dialog-close{width:44px;height:44px;display:grid;place-items:center;margin-inline-start:auto;border-radius:12px;color:var(--muted-foreground)}.dialog-close:hover{background:var(--muted)}.dialog-close svg{width:20px;height:20px}
.connect-steps{padding-inline-start:28px;margin:16px 0}.connect-steps li{padding-inline-start:8px}.connect-steps li::marker{color:var(--primary);font-weight:600}.connect-steps strong{font-size:14px;font-weight:500}.connect-steps p{font-size:13px;line-height:1.9;color:var(--muted-foreground);margin:8px 0}
.mcp-address{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--background);margin-top:18px}.mcp-address bdi{min-width:0;font-size:12px;direction:ltr;flex:1;overflow-wrap:anywhere}.mcp-address button{gap:8px;padding:7px 10px;font-size:12px;flex:none}.mcp-address svg{width:16px;height:16px}.copy-status{min-height:24px;margin:4px 0;color:var(--primary);font-size:12px}.check-connection{display:flex;gap:8px;width:100%;margin-top:20px}.check-connection svg{width:18px;height:18px}
.manual-connect{margin-top:24px;border-top:1px solid var(--border);padding-top:10px;font-size:13px;color:var(--muted-foreground)}.manual-connect form{color:var(--foreground)}.dialog-intro{font-size:13px;color:var(--muted-foreground);line-height:1.9}.agent-dialog form{gap:16px;margin-bottom:0}.agent-dialog label{font-size:13px}.agent-dialog input,.agent-dialog select{font-size:14px;min-width:0}.field-hint{margin:-10px 0 0;font-size:11px;color:var(--muted-foreground);line-height:1.9}.grant-limits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.agent-form-actions{display:flex;gap:10px;margin-top:6px}.agent-form-actions .primary{flex:1}
@media(max-width:800px){.agent-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.agent-panel{padding:20px!important}.agent-view-heading .button{padding:8px 12px}.agent-panel-heading{gap:9px}.agent-panel-heading h3{font-size:17px}}
@media(max-width:420px){.agent-dialog{padding:20px;border-radius:20px}.agent-dialog-heading{gap:8px}.agent-dialog-heading h3{font-size:18px}.mcp-address{align-items:stretch;flex-direction:column}.mcp-address bdi{padding:6px 0}.agent-panel-heading>.button{padding:7px 9px;font-size:11px}.agent-card,.grant-card{padding:16px}.agent-card-heading{gap:8px}.grant-limits{gap:10px}.grant-limits label{font-size:11px}}

.agent-dialog .dialog-feedback{font-size:12px;line-height:1.9;color:var(--destructive);margin:0;padding:10px 12px;border:1px solid var(--destructive);border-radius:10px;background:var(--background)}
.agent-dialog .dialog-feedback:empty{display:none}

html:has(.agent-dialog[open]){overflow:hidden}
.agent-card-heading h4{flex:1;min-width:0;text-align:right}
.grant-card[data-active="false"] progress{opacity:.4}

/* Requests are decision cards: visible terms, explicit stage and scoped actions. */
.requests-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.requests-view-heading h2{margin:0}.requests-view-heading>.button{gap:8px;font-size:13px}.requests-view-heading svg{width:18px;height:18px}
.requests-section-heading{display:flex;align-items:center;gap:14px;margin-bottom:18px}.requests-section-heading h3{font-size:16px;font-weight:500;margin:0;color:var(--muted-foreground)}.request-attention{font-size:12px;color:var(--primary);background:var(--accent);padding:4px 12px;border-radius:20px}.request-attention:empty{display:none}
.request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.request-grid>.agent-empty{grid-column:1/-1;padding:24px 16px 34px}.request-empty-art{display:grid;place-items:center;width:82px;height:82px;margin:38px auto 0;border-radius:28px;color:var(--primary);background:var(--accent);box-shadow:0 8px 28px #6e55b51c}.request-empty-art svg{width:38px;height:38px}#requests:has(.request-card) .request-empty-art{display:none}
.request-card{min-width:0;position:relative;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:22px;padding:24px;margin:0;background:var(--card);box-shadow:0 10px 32px #090b2017;overflow-wrap:anywhere}
.request-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.request-card-heading>span:first-child{font-size:12px;color:var(--muted-foreground)}.request-status{font-size:11px;line-height:1.8;padding:4px 10px;border-radius:20px;background:var(--muted);color:var(--muted-foreground);flex:none}
.request-card[data-state="prepared"] .request-status{background:var(--accent);color:var(--primary)}.request-card[data-state="unknown"] .request-status,.request-card[data-state="submitting"] .request-status,.request-card[data-state="reserved"] .request-status{background:var(--accent);color:var(--primary)}.request-card[data-state="declined"] .request-status,.request-card[data-state="rejected"] .request-status{color:var(--destructive)}
.request-amount{font-size:clamp(24px,3vw,32px);font-weight:500;line-height:1.5;margin:20px 0 18px;font-variant-numeric:tabular-nums}
.request-recipient{display:grid;gap:7px;border:1px solid var(--border);background:var(--background);border-radius:12px;padding:12px 14px}.request-recipient>span{font-size:11px;color:var(--muted-foreground)}.request-recipient>bdi{font-size:13px;direction:ltr;text-align:right;overflow-wrap:anywhere;user-select:text}.request-recipient>strong{font-size:14px;font-weight:500}
.request-agent,.request-deadline{font-size:12px;color:var(--muted-foreground);margin:12px 0 0}.request-hint{font-size:13px;color:var(--muted-foreground);line-height:1.9;margin:14px 0 0}
.request-details{font-size:12px;margin:16px 0 0;border-top:1px solid var(--border)}.request-details summary{min-height:44px;color:var(--muted-foreground)}.request-details p{font-size:12px;color:var(--muted-foreground);overflow-wrap:anywhere;unicode-bidi:plaintext}
.request-error{color:var(--destructive);font-size:12px;line-height:1.9;border:1px solid var(--destructive);border-radius:10px;padding:10px 12px;margin:12px 0 0}.request-error:empty{display:none}
.request-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:auto;padding-top:16px}.request-actions:empty{display:none}.request-actions>.button{min-height:48px;padding:9px 12px;font-size:13px;white-space:normal;text-align:center}.request-actions>.button:only-child{grid-column:1/-1}
.request-refund{grid-column:1/-1;margin:0;font-size:12px}.request-refund summary{min-height:44px;color:var(--muted-foreground)}.request-refund p{color:var(--muted-foreground);font-size:12px;line-height:1.9}.request-refund .request-actions{padding-top:4px}
.incoming-section{margin-top:28px;border:1px solid var(--border);border-radius:20px;background:var(--card);padding:12px 22px}.incoming-section>summary{display:flex;align-items:center;gap:12px;list-style:none;font-size:15px;font-weight:500;min-height:56px}.incoming-section>summary::-webkit-details-marker{display:none}.incoming-count{font-size:12px;color:var(--muted-foreground);margin-inline-start:auto}.incoming-chevron{font-size:22px;color:var(--muted-foreground);transition:transform .15s}.incoming-section[open] .incoming-chevron{transform:rotate(180deg)}.incoming-intro{font-size:12px;color:var(--muted-foreground);margin:8px 0 20px}.incoming-section>.request-grid{padding-bottom:10px}.incoming-section .request-card{box-shadow:none;background:var(--background)}
@media(max-width:750px){.request-grid{grid-template-columns:minmax(0,1fr);gap:16px}.request-card{padding:20px}.requests-view-heading>.button{padding:8px 12px}.incoming-section{padding:10px 16px}.request-actions>.button{font-size:12px;padding:9px 8px}.request-amount{font-size:28px}.request-card-heading>span:first-child{font-size:11px}.request-status{font-size:10px}.requests-section-heading{flex-wrap:wrap;gap:10px}}

/* Synthetic credit: one short request form and a separate status history. */
.recharge-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.recharge-view-heading h2{margin:0}.recharge-mode{font-size:12px;color:var(--muted-foreground);border:1px solid var(--border);padding:4px 12px;border-radius:20px}
.recharge-workspace{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;align-items:start}.recharge-compose{padding:28px!important;border-radius:24px;margin:0!important;box-shadow:0 10px 32px #090b2017;min-width:0}.recharge-symbol{width:56px;height:56px;display:grid;place-items:center;background:var(--accent);color:var(--primary);border-radius:18px;margin-bottom:20px}.recharge-symbol svg{width:28px;height:28px}.recharge-compose h3{font-size:21px;font-weight:600;margin:0}.recharge-intro{font-size:13px;line-height:1.95;color:var(--muted-foreground);margin:12px 0 24px}
#recharge-form{gap:10px;margin:0}#recharge-form>label{font-size:13px;display:block}#recharge-form input{min-width:0;font-size:14px}#recharge-form #recharge-amount{font-size:30px;font-weight:500;direction:ltr;text-align:right;min-height:74px;padding:12px 16px;border-radius:14px;font-variant-numeric:tabular-nums}#recharge-form>button[type="submit"]{width:100%;min-height:50px;margin-top:6px}.recharge-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}.recharge-presets .button{font-size:11px;font-weight:500;min-height:44px;padding:6px;white-space:normal;text-align:center}.recharge-presets .button:hover{border-color:var(--primary)}
.recharge-footnote{font-size:12px;text-align:center;color:var(--muted-foreground);margin:18px 0 0}.recharge-gate{font-size:13px;background:var(--accent);padding:12px 14px;border-radius:12px;line-height:1.9}.recharge-gate a{color:var(--primary)}.recharge-feedback{font-size:13px;line-height:1.9;padding:10px 12px;background:var(--accent);border-radius:12px;margin:4px 0}.recharge-feedback:empty{display:none}.recharge-feedback[data-error="true"]{color:var(--destructive);border:1px solid var(--destructive);background:var(--background)}
.recharge-history{min-width:0;scroll-margin-top:24px}.recharge-history-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:56px;margin-bottom:18px}.recharge-history-heading h3{font-size:17px;font-weight:500;margin:0}.recharge-history-heading .button{gap:7px;font-size:12px;padding:8px 12px}.recharge-history-heading svg{width:17px;height:17px}.recharge-list{display:grid;gap:18px}.recharge-list>.agent-empty{border:1px dashed var(--border);border-radius:22px;padding:60px 22px;background:var(--card)}.recharge-list>.agent-empty p{max-width:320px;margin-inline:auto}.recharge-card{padding:22px}.recharge-card .request-amount{margin:16px 0 8px;font-size:28px}.recharge-card[data-state="pending"] .request-status,.recharge-card[data-state="processing"] .request-status,.recharge-card[data-state="applied"] .request-status{background:var(--accent);color:var(--primary)}.recharge-card[data-state="rejected"] .request-status{color:var(--destructive)}.recharge-date{font-size:12px;color:var(--muted-foreground)}
.recharge-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 16px}.recharge-steps li{font-size:11px;color:var(--muted-foreground);position:relative;padding-top:10px;border-top:3px solid var(--border)}.recharge-steps li[data-complete="true"]{border-color:var(--primary);color:var(--foreground)}.recharge-steps li[aria-current="step"]{border-color:var(--primary);border-top-style:dashed;color:var(--primary)}.recharge-state-hint{font-size:13px;color:var(--muted-foreground);line-height:1.9}.recharge-card>p:not([class]){font-size:13px;line-height:1.9}.recharge-card .request-details{margin-top:10px}.recharge-review-panel{margin-top:28px;padding:14px 22px;background:var(--card);border:1px solid var(--border);border-radius:20px}.recharge-review-panel>summary{font-size:15px;min-height:48px}.recharge-review-panel>.request-grid{margin-top:16px}.recharge-review-reason{font-size:13px;margin:18px 0 0}
@media(max-width:800px){.recharge-workspace{grid-template-columns:minmax(0,1fr);gap:24px}.recharge-compose{padding:22px!important}.recharge-history-heading{margin-bottom:12px}.recharge-card{padding:20px}.recharge-compose h3{font-size:20px}.recharge-card .request-status{max-width:65%;flex:initial}.recharge-card .request-card-heading{align-items:start}.recharge-review-panel{padding:12px 16px}.recharge-presets .button{font-size:12px}}

.recharge-follow{width:100%;min-height:48px;margin-top:8px}.recharge-card .recharge-state-hint{margin-top:8px}

/* Native account activity: visible direction, quick filtering and expandable receipts. */
.activity-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.activity-view-heading h2{margin:0}.activity-view-heading>.button{font-size:13px;gap:8px}.activity-view-heading svg{width:18px;height:18px}
#activity.activity-workspace{padding:26px;border-radius:22px}.activity-tools{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:end}.activity-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:var(--background);border:1px solid var(--border);padding:6px;border-radius:14px}.activity-filters .button{font-size:13px;font-weight:500;min-height:46px;padding:8px;border:0;background:transparent;color:var(--muted-foreground)}.activity-filters .button[aria-pressed="true"]{background:var(--primary);color:var(--primary-foreground);box-shadow:0 4px 14px #9c7bd827}
.activity-search-box>label{font-size:12px;color:var(--muted-foreground);margin-bottom:7px}.activity-search-input{position:relative;display:flex;align-items:center}.activity-search-input>svg{position:absolute;inset-inline-start:13px;width:18px;height:18px;color:var(--muted-foreground);pointer-events:none}.activity-search-input input{padding-inline:40px 48px;height:50px;font-size:14px;border-radius:12px}.activity-search-input input::-webkit-search-cancel-button{display:none}.activity-search-input>button{position:absolute;inset-inline-end:3px;width:44px;height:44px;border:0;background:transparent;font:inherit;font-size:24px;color:var(--muted-foreground);border-radius:10px;cursor:pointer}.activity-search-input>button:disabled{opacity:.25;cursor:default}.activity-search-input>button:hover:not(:disabled){background:var(--accent);color:var(--foreground)}.activity-search-scope{font-size:12px;color:var(--muted-foreground);margin:14px 0 24px;line-height:1.9}
.activity-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid var(--border);margin-bottom:16px}.activity-list-heading h3{font-size:16px;font-weight:500;margin:0}.activity-list-heading #activity-search-result{padding:0;background:none;font-size:12px;color:var(--muted-foreground);margin:0}.activity-state{font-size:13px;color:var(--muted-foreground)}.activity-state:empty{display:none}.activity-error-box{padding:16px;border:1px solid var(--destructive);border-radius:14px;margin-bottom:16px}.activity-error-box p{font-size:13px;line-height:1.9;color:var(--destructive);margin:0 0 12px}.activity-error-box .button{min-height:44px;font-size:12px}
#activity .activity-row{padding:0;margin:0 0 14px;border:1px solid var(--border);background:var(--background);border-radius:18px;overflow:hidden}#activity .activity-overview{display:flex;align-items:center;gap:16px;padding:20px 22px}.activity-direction-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--card);border:1px solid var(--border);font-size:24px}.activity-row[data-direction="incoming"] .activity-direction-icon{color:var(--money-in)}.activity-row[data-direction="outgoing"] .activity-direction-icon{color:var(--money-out)}.activity-title{display:grid;gap:7px;min-width:0}.activity-title>strong{font-size:15px;font-weight:500}.activity-title time{font-size:12px;color:var(--muted-foreground)}.activity-value{margin-inline-start:auto;text-align:left;min-width:0}.activity-row .activity-value h3{font-size:24px;font-weight:500;margin:0 0 5px;font-variant-numeric:tabular-nums}.activity-status{font-size:11px;color:var(--muted-foreground)}
#activity .activity-receipt{margin:0;border-top:1px solid var(--border);padding:0}#activity .activity-receipt>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:8px 22px;font-size:12px;list-style:none;color:var(--muted-foreground)}.activity-receipt>summary::-webkit-details-marker{display:none}.receipt-chevron{font-size:20px;transition:transform .15s}.activity-receipt[open] .receipt-chevron{transform:rotate(180deg)}.activity-receipt .receipt-close-label{display:none}.activity-receipt[open] .receipt-close-label{display:inline}.activity-receipt[open] .receipt-open-label{display:none}.receipt-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;padding:20px 22px;margin:0;background:var(--card);border-top:1px solid var(--border)}.receipt-fields>div{min-width:0}.receipt-fields dt{font-size:11px;color:var(--muted-foreground);margin-bottom:5px}.receipt-fields dd{font-size:13px;margin:0;overflow-wrap:anywhere;unicode-bidi:plaintext;user-select:text}
.activity-row:not([data-status="APPLIED"]) .activity-value h3{color:var(--foreground)}.activity-row[data-status="REJECTED"] .activity-status{color:var(--destructive)}.activity-empty{text-align:center;padding:34px 16px 42px;color:var(--muted-foreground)}.activity-empty>span{display:grid;place-items:center;width:64px;height:64px;border-radius:22px;margin:0 auto 20px;background:var(--accent);color:var(--primary);font-size:28px}.activity-empty>strong{font-size:16px;font-weight:500;color:var(--foreground)}.activity-empty>p{font-size:13px;line-height:1.9;max-width:400px;margin:12px auto 0}.activity-more{display:flex;margin:22px auto 0;min-height:48px;font-size:13px}
@media(max-width:800px){#activity.activity-workspace{padding:20px}.activity-tools{grid-template-columns:minmax(0,1fr);gap:18px}.activity-filters .button{font-size:12px}.activity-view-heading>.button{font-size:12px;padding:8px 12px}.activity-list-heading{align-items:start;flex-direction:column;gap:8px}.activity-row .activity-value h3{font-size:21px}#activity .activity-overview{padding:18px;gap:12px;flex-wrap:wrap}.activity-direction-icon{width:40px;height:40px;border-radius:12px}.activity-title>strong{font-size:14px}.activity-title time{font-size:11px}.activity-value{flex:1 1 140px}.activity-status{font-size:11px}.receipt-fields{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px}#activity .activity-receipt>summary{padding-inline:18px}.activity-search-scope{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.receipt-chevron{transition:none}}

/* Clear entry to the same Wallet: original phone, local typography and one sign-in panel. */
#intro-section{scroll-margin-top:16px}.wallet-home .hero{background:radial-gradient(ellipse at 25% 50%,#a99aff12,transparent 65%)}.wallet-home .hero-inner{gap:48px;padding:28px 8px}.wallet-home .hero .eyebrow{font-size:12px;font-weight:500;padding:5px 12px;display:inline-flex}.wallet-home .hero h1{font-size:clamp(30px,3.4vw,46px);line-height:1.7;margin:18px 0}.wallet-home .hero .intro-description{font-size:16px;line-height:1.95;color:var(--muted-foreground)}
.intro-login-panel{padding:22px 24px;border:1px solid var(--border);border-radius:22px;background:var(--card);box-shadow:0 12px 36px #080b211c;margin-top:26px}.intro-login-panel h2{font-size:19px;font-weight:600;margin:0 0 10px}.wallet-home .intro-login-panel>p{font-size:13px;line-height:1.9}.wallet-home .intro-login-panel .intro-signin{display:flex;gap:12px;width:100%;min-height:50px;margin-top:18px;font-size:14px;border-radius:12px}.intro-signin svg{width:20px;height:20px;flex:none}.intro-signin>span:last-child{margin-inline-start:auto;font-size:20px}.wallet-home .intro-login-panel .intro-credit-note{font-size:12px;color:var(--muted-foreground);margin:12px 0 0}.intro-access-help{margin:18px 0 0!important;border-top:1px solid var(--border);padding-top:4px}.intro-access-help summary{font-size:12px;color:var(--muted-foreground);min-height:44px}.wallet-home .intro-access-help p{font-size:13px;margin:10px 0 14px}.intro-access-help>.button{font-size:12px;min-height:44px}.intro-recovery-link{display:block;width:fit-content;padding-block:12px;font-size:12px;color:var(--primary);text-underline-offset:5px}.wallet-home .intro-login-panel .intro-login-error{padding:10px 12px;color:var(--destructive);border:1px solid var(--destructive);border-radius:12px;margin:14px 0}.intro-learn-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--muted-foreground);margin-top:10px;text-underline-offset:5px}
.wallet-home .showcase-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:310px;margin:auto}.wallet-home .showcase-controls>span{grid-column:1/-1;margin:0 0 2px;font-size:12px;font-weight:400}.wallet-home .showcase-controls button{padding:8px;font-size:12px;font-weight:500;min-height:44px;border-radius:12px}.wallet-home .showcase-controls #intro-motion{grid-column:1/-1;border:0;min-height:44px;margin:0;padding:4px 10px;width:fit-content;justify-self:center;color:var(--muted-foreground);box-shadow:none;background:transparent}.wallet-home .showcase-controls button[aria-pressed="true"]{background:var(--accent);color:var(--primary);border-color:var(--primary)}.wallet-home .stage{--device-width:clamp(244px,22vw,280px);margin-top:10px}.wallet-home #intro-caption{font-size:12px;line-height:1.9;max-width:350px;margin:8px auto 0}
.wallet-home .feature-strip{gap:18px;padding:26px 0 12px;margin-top:18px}.wallet-home .feature-strip article{padding:20px;border:1px solid var(--border);border-radius:20px;background:var(--card);box-shadow:0 8px 28px #060a180d}.intro-feature-number{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--accent);color:var(--primary);font-size:14px}.wallet-home .feature-strip h2{font-size:17px;letter-spacing:normal;margin:14px 0 8px}.wallet-home .feature-strip p{font-size:13px;line-height:1.95;margin:0}
@media(max-width:800px){.wallet-home .hero-inner{grid-template-columns:minmax(0,1fr);gap:32px;padding:18px 0}.wallet-home .hero{text-align:start}.wallet-home .hero h1{font-size:30px;margin:16px 0;line-height:1.7}.wallet-home .hero .intro-description{font-size:14px}.intro-login-panel{padding:20px;margin-top:20px}.wallet-home .intro-visual{padding:12px 0 0}.wallet-home .stage{--device-width:260px}.wallet-home .feature-strip{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:12px;padding-top:24px}.wallet-home .feature-strip article{padding:20px}.wallet-home .hero .eyebrow{font-size:11px}}
@media(max-width:360px){.wallet-home .hero h1{font-size:27px}.intro-login-panel{padding:18px}.wallet-home .intro-login-panel .intro-signin{font-size:13px;padding-inline:12px}.wallet-home .stage{--device-width:242px}.wallet-home .showcase-controls{gap:6px}}

.wallet-home #intro-title:focus{outline:none}
:root:not(.dark) .wallet-home .hero h1 em{background-image:linear-gradient(100deg,#4b4197,#7950b6)}

/* A clean product introduction: actual mobile UI in a device frame. */
.wallet-home .product-stage{--device-width:clamp(270px,25vw,320px);margin:0 auto;min-width:0}.product-device{width:var(--device-width);margin:0;padding:8px;box-sizing:border-box;border:2px solid #8e8e9b;border-radius:46px;background:linear-gradient(145deg,#d4d3df,#353640 18%,#878892 55%,#cac9d6);box-shadow:0 22px 55px #090b2633;position:relative}.product-device::before{content:"";position:absolute;inset:-30px -80px;background:url('/wallet-assets/rosette.svg') center/contain no-repeat;opacity:.08;z-index:-1;pointer-events:none}.product-screen{position:relative;background:#191a2c;border:3px solid #080a0f;border-radius:36px;overflow:hidden}.product-status{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#f3f1ff;font-size:10px;font-weight:600;direction:ltr;position:relative}.product-island{position:absolute;left:50%;top:5px;transform:translateX(-50%);width:82px;height:23px;border-radius:16px;background:#07080d}.product-island::after{content:"";position:absolute;right:10px;top:8px;width:6px;height:6px;border-radius:50%;background:#182139}.product-screen-image{display:block;width:100%;height:auto}.product-home-bar{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);width:80px;height:4px;border-radius:8px;background:#f3f1ff;pointer-events:none}
.login-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid var(--border);border-radius:24px;background:var(--card);color:var(--foreground);box-shadow:0 24px 90px #03061266;overflow:auto}.login-dialog::backdrop{background:#080b19b8;backdrop-filter:blur(4px)}.login-dialog-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}.login-dialog-heading h2{font-size:21px;font-weight:600;margin:0}.login-dialog .dialog-close{font-size:24px;line-height:1}.login-dialog>p{font-size:13px;color:var(--muted-foreground);line-height:1.95;margin:0 0 20px}.login-google{display:flex;gap:12px;width:100%;min-height:50px;font-size:14px}.login-google>span{margin-inline-start:auto;font-size:20px}.login-dialog .intro-access-help{margin-top:20px!important}.login-dialog .intro-access-help p{font-size:13px;line-height:1.9;color:var(--muted-foreground)}.login-dialog .intro-login-error{color:var(--destructive);border:1px solid var(--destructive);padding:10px 12px;border-radius:12px}.login-dialog .intro-access-help>.button{font-size:12px;padding:8px 12px}.login-dialog .intro-recovery-link{font-size:12px}
html:has(.login-dialog[open]){overflow:hidden}
@media(max-width:800px){.wallet-home .product-stage{--device-width:285px}.wallet-home .intro-visual{padding-top:6px}.wallet-home .hero-inner{gap:28px}.login-dialog{padding:22px}}
@media(max-width:360px){.wallet-home .product-stage{--device-width:265px}.login-dialog{padding:20px}.login-dialog-heading h2{font-size:19px}}
/* Return failures keep the same Wallet entry surface without exposing callback details. */
.auth-failure{width:min(100% - 32px,480px);margin:8vh auto;padding:0}.auth-failure>.brand{display:flex;justify-content:center;gap:10px;margin-bottom:28px}.auth-failure-card{padding:32px;border:1px solid var(--border);border-radius:26px;background:var(--card);box-shadow:0 24px 70px #08071430}.auth-failure-icon{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#bca7ff20;color:var(--primary);font-size:32px}.auth-failure h1{font-size:27px;line-height:1.6;margin:18px 0 12px}.auth-failure p{font-size:15px;line-height:2;color:var(--muted-foreground)}.auth-failure .button{display:flex;justify-content:center;width:100%;margin-top:24px;min-height:52px}.auth-back{display:block;text-align:center;padding:14px 8px;min-height:48px}.auth-failure details{border-top:1px solid var(--border);padding-top:12px;margin-top:6px;font-size:14px}.auth-failure summary{cursor:pointer;min-height:44px;padding:8px 0}.auth-failure details a{display:inline-block;padding:8px 0;min-height:44px}@media(max-width:480px){.auth-failure-card{padding:24px 20px}.auth-failure{margin:5vh auto}}
