:root {
  --bg:#f6eee8;--surface:#fff9f4;--surface-2:#ebdfd7;--text:#38263e;--muted:#806e84;--line:#dccbd6;--accent:#b94d1e;--accent-ink:#fff7f0;--good:#377b63;--warning:#95641c;--danger:#ad3c57;--radius:23px;--font:Vazirmatn,system-ui,sans-serif;
  --deck:#eaddd3;--deck-top:#f5e8de;--wave:#c44f20;--wave-track:#d5b6bd;--task:#fff7f0;--task-inset:#eee1da;--strip:#422a49;--strip-text:#fff2e8;--orange:#f79550;--orange-ink:#442539;
}
:root[data-theme="dark"] {
  --bg:#24182b;--surface:#33213b;--surface-2:#422c49;--text:#f9ede7;--muted:#b8a3ba;--line:#533a57;--accent:#ff9958;--accent-ink:#372032;--good:#bbd6a2;--warning:#ffd085;--danger:#ff9fba;
  --deck:#38233c;--deck-top:#482b48;--wave:#ff9857;--wave-track:#704455;--task:#38253f;--task-inset:#462e4b;--strip:#56344d;--strip-text:#fff0e6;--orange:#ff9b5b;--orange-ink:#3c2437;
}
html,body {background:var(--bg)}body{font-size:13px}button{transition:background .16s,transform .16s}button:active{transform:scale(.95)}button:focus-visible,a:focus-visible{outline-offset:3px}
.app-shell {max-width:570px;padding-top:max(env(safe-area-inset-top),var(--host-safe-top,0px));overflow:hidden}
.app-header {padding:21px 24px 13px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.pulse-brand {display:flex;align-items:center;gap:9px}.pulse-mark{color:var(--accent);width:34px;height:34px}.pulse-brand strong{font-size:12px;display:block}.pulse-brand small{font-size:8px;color:var(--muted);letter-spacing:3px;display:block;line-height:1.2;margin-top:3px}
.pulse-head-actions{display:flex;align-items:center;gap:6px}.pulse-icon,.pulse-language{height:42px;min-width:42px;border:0;background:none;display:grid;place-items:center;border-radius:15px}.pulse-icon span{display:none}.pulse-language{font-size:11px}.pulse-icon .icon{width:19px}
.app-nav {position:static;inset:auto;max-width:none;margin:0 24px;background:none;border:0;padding:0 0 3px;gap:24px;justify-content:flex-start;border-bottom:1px solid var(--line)}
.app-nav button{position:relative;flex:0 1 auto;min-width:65px;min-height:43px;font-size:12px;padding:8px 6px;border-radius:0;font-weight:500}.app-nav [aria-current="page"]{background:none;color:var(--text);font-weight:700}.app-nav [aria-current="page"]:after{content:'';position:absolute;bottom:-4px;inset-inline:8px;height:3px;background:var(--accent);border-radius:4px}
.app-main {padding:18px 22px calc(28px + max(env(safe-area-inset-bottom),var(--host-safe-bottom,0px)));min-height:calc(100dvh - 123px)}
.pulse-page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 2px 14px;gap:12px}.pulse-page-heading h1{font-size:24px;font-weight:550;letter-spacing:-.7px}.pulse-position{font-size:11px;color:var(--muted);letter-spacing:1px}.pulse-position b{color:var(--accent);font-weight:500}
.pulse-deck {position:relative;overflow:hidden;background:linear-gradient(155deg,var(--deck-top),var(--deck) 60%);border-radius:30px;padding:15px 22px 0;box-shadow:0 18px 45px #09041317;isolation:isolate}
.pulse-deck:before{content:'';position:absolute;z-index:-1;width:260px;height:260px;border:1px solid color-mix(in srgb,var(--accent) 9%,transparent);border-radius:50%;top:-150px;inset-inline-end:-130px;box-shadow:0 0 0 26px color-mix(in srgb,var(--accent) 3%,transparent),0 0 0 53px color-mix(in srgb,var(--accent) 2%,transparent)}
.pulse-deck-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.pulse-status{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--good)}.pulse-status i{width:5px;height:5px;border-radius:50%;background:currentColor}.pulse-status.warning{color:var(--warning)}.pulse-status.critical{color:var(--danger)}.pulse-status.muted{color:var(--muted)}
.pulse-detail{border:0;background:none;color:var(--muted);display:flex;align-items:center;gap:6px;font-size:10px;padding:6px 0;min-height:33px}.pulse-detail .icon{width:18px}
.pulse-identity{margin-top:12px}.pulse-identity h2{font-size:26px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;text-align:start}.pulse-identity>div{margin-top:2px;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:9px;color:var(--muted)}.pulse-identity bdi{font-size:9px;overflow-wrap:anywhere}
.pulse-data-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:9px;color:var(--muted)}.pulse-data-heading>span:first-child{letter-spacing:.7px}.pulse-data-state{font-size:9px}
.pulse-data-reading{display:flex;align-items:baseline;gap:9px;margin-top:3px;color:var(--text)}.pulse-data-reading strong{font-size:57px;line-height:1.35;letter-spacing:-2px;font-weight:350}.pulse-data-reading>span{font-size:12px;color:var(--muted)}
.pulse-wave{position:relative;width:calc(100% + 10px);margin:1px -5px 0;direction:ltr}.pulse-wave svg{width:100%;height:104px}.pulse-wave-track{fill:var(--wave-track)}.pulse-wave-fill{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--remaining)) 0 0);fill:var(--wave);filter:drop-shadow(0 0 10px color-mix(in srgb,var(--wave) 12%,transparent))}.pulse-wave-unknown .pulse-wave-track{opacity:.3}
.pulse-wave-caption{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted);margin:1px 0 14px}.pulse-wave-caption bdi{color:var(--accent)}
.pulse-time{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 -22px;padding:13px 17px;border-top:1px solid color-mix(in srgb,var(--line) 65%,transparent);background:color-mix(in srgb,var(--bg) 21%,transparent);font-size:10px}.pulse-time>span{display:flex;align-items:center;gap:5px}.pulse-time .icon{width:13px}.pulse-auto{border:0;background:transparent;color:var(--muted);font-size:9px;display:flex;align-items:center;gap:5px;padding:3px 0;min-height:29px}.pulse-state-note{font-size:9px;color:var(--danger)}
.pulse-transport{display:grid;grid-template-columns:50px minmax(0,1fr) 50px;align-items:center;gap:13px;margin:21px 9px 0}.pulse-skip{border:0;background:var(--surface);height:50px;border-radius:50%;display:grid;place-items:center}.pulse-skip svg{width:22px;height:22px}.pulse-skip:disabled{opacity:.32;cursor:default}.pulse-primary{height:59px;border-radius:30px;background:var(--accent);color:var(--accent-ink);font-size:14px;font-weight:700;border:0;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 28px color-mix(in srgb,var(--accent) 12%,transparent)}
.pulse-tools{display:flex;justify-content:space-around;gap:9px;margin:12px 0}.pulse-tools button{border:0;background:none;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;min-height:39px;padding:0 2px}.pulse-tools .icon{width:16px}
.pulse-queue{background:var(--surface);border-radius:22px;overflow:hidden}.pulse-queue-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;padding:16px 17px;gap:12px;text-align:start}.pulse-queue-label{display:flex;align-items:center;gap:13px}.pulse-queue-label>.icon{color:var(--accent)}.pulse-queue-label strong{display:block;font-size:12px;font-weight:550}.pulse-queue-label small{font-size:9px;color:var(--muted);display:block;margin-top:2px}.pulse-queue-tail{color:var(--muted)}.pulse-queue-tail .icon{width:17px}.pulse-queue-content{border-top:1px solid var(--line);padding:15px 14px}.pulse-queue-content .search-box{border-radius:15px;background:var(--bg)}.pulse-queue-content .filter-row{flex-wrap:wrap;gap:5px}.pulse-queue-content .segmented{gap:0}.pulse-queue-content .segmented button{font-size:10px;padding:7px 9px}.pulse-queue-content .sort-select{font-size:10px;max-width:108px}.pulse-queue-scroll{max-height:290px;overflow:auto;scrollbar-width:thin;margin-top:8px}.pulse-queue-item{width:100%;border:0;border-bottom:1px solid var(--line);background:none;display:grid;grid-template-columns:27px minmax(0,1fr) 7px;gap:10px;align-items:center;padding:13px 3px;text-align:start}.pulse-queue-item[aria-pressed="true"]{color:var(--accent)}.pulse-queue-number{font-size:10px;color:var(--muted)}.pulse-queue-number svg{width:22px;height:22px;color:var(--accent)}.pulse-queue-name{min-width:0}.pulse-queue-name strong{font-size:11px;font-weight:500;display:block;overflow-wrap:anywhere}.pulse-queue-name small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.pulse-queue-item>i{width:5px;height:5px;background:var(--good);border-radius:50%}.pulse-queue-item>i.critical{background:var(--danger)}.pulse-queue-item>i.warning{background:var(--warning)}.pulse-queue-item>i.muted{background:var(--muted)}.pulse-queue-refresh{display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:0;width:100%;margin-top:10px;min-height:43px;font-size:11px;color:var(--muted)}.pulse-queue .result-count{font-size:10px}.pulse-queue .btn.load-more{border-radius:14px;font-size:11px;background:var(--surface-2)}
.pulse-empty {background:var(--deck);border-radius:30px;min-height:440px;padding:36px 18px;text-align:center}.pulse-empty>svg{width:80px;height:80px;color:var(--accent);margin:auto}.pulse-empty .empty{padding:30px 0}.pulse-empty .empty>.icon{display:none}.pulse-empty h2{font-weight:450;font-size:25px}.pulse-empty .btn{border-radius:25px}.pulse-empty-controls{margin-bottom:20px}
.page-title h1{font-size:26px;font-weight:550}.page-title p{font-size:12px}.pulse-secondary .wallet-card{background:var(--orange);color:var(--orange-ink);border-radius:28px;padding:24px}.wallet-card .balance{font-size:43px;font-weight:400}.wallet-card .btn{background:var(--orange-ink);color:var(--orange);border-radius:22px}.wallet-tabs .btn{background:var(--surface);border:0;border-radius:15px}.wallet-tabs .selected{box-shadow:inset 0 -2px var(--accent)}.transaction{grid-template-columns:36px minmax(0,1fr) auto;gap:9px}.tx-icon{width:34px;height:34px;border-radius:50%;background:var(--surface)}.tx-title{font-size:12px}.tx-amount{font-size:12px}.transaction-list{border-top:0}.category-list{grid-template-columns:1fr 1fr;gap:12px}.category-card{display:flex;flex-direction:column;align-items:flex-start;min-height:190px;padding:18px 16px;background:var(--surface);border:0;border-radius:24px;gap:18px;position:relative}.category-symbol{border-radius:15px;width:42px;height:42px;background:var(--surface-2);color:var(--accent)}.category-card>.icon{position:absolute;top:28px;inset-inline-end:17px;width:15px}.category-card h3{font-size:14px}.category-card p{font-size:10px}.category-card:nth-child(2n){background:var(--surface-2)}.notice{border-radius:18px;font-size:12px}.search-box{background:var(--surface);border-color:var(--line);border-radius:17px}

/* The selected account persists above a separate task player, rather than inside its header. */
dialog.sheet{width:calc(100% - 24px);max-width:520px;height:fit-content;max-height:none;inset:0;margin:auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;color:var(--text)}
dialog.sheet::backdrop{background:#100b18bf;backdrop-filter:blur(9px)}
dialog.sheet[open]{animation:none}
.pulse-dialog-stack{height:min(850px,calc(100dvh - 40px - max(env(safe-area-inset-top),var(--host-safe-top,0px)) - max(env(safe-area-inset-bottom),var(--host-safe-bottom,0px))));display:flex;flex-direction:column;gap:12px}
.pulse-now-strip{display:flex;align-items:center;gap:12px;flex:0 0 65px;background:var(--strip);color:var(--strip-text);border-radius:20px;padding:11px 15px;box-shadow:0 10px 32px #09051240;margin:0 11px}
.pulse-mini-cover{display:grid;place-items:center;flex:0 0 41px;height:41px;background:var(--orange);color:var(--orange-ink);border-radius:11px}.pulse-mini-cover svg{width:24px;height:24px}.pulse-now-identity{min-width:0;flex:1}.pulse-now-identity small{display:block;font-size:7px;letter-spacing:1px;opacity:.65}.pulse-now-identity strong{display:block;font-size:12px;line-height:1.5;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.pulse-now-bars{display:flex;gap:3px;align-items:center;height:23px;direction:ltr;flex-shrink:0}.pulse-now-bars i{width:3px;height:9px;background:var(--orange);border-radius:4px}.pulse-now-bars i:nth-child(2){height:21px}.pulse-now-bars i:nth-child(3){height:15px}.pulse-now-bars i:nth-child(4){height:6px}
.pulse-task-panel{display:flex;flex-direction:column;flex:1;min-height:0;background:var(--task);border-radius:29px;overflow:hidden;box-shadow:0 25px 75px #09051250}
.sheet-header{background:var(--task);border:0;padding:21px 19px 17px;flex-shrink:0;gap:9px;align-items:flex-start}.sheet-header h2{font-size:21px;font-weight:550;line-height:1.45;overflow-wrap:anywhere}.sheet-header>.row{gap:7px;align-items:center;min-width:0}.sheet-header .icon-btn{width:44px;height:44px;min-width:44px;background:var(--task-inset);border:0;border-radius:50%}.sheet-header [data-action="sheet-back"]{background:none;width:44px;min-width:44px;padding:0}.sheet-header .icon{width:18px}
.sheet-body{flex:1;min-height:0;overflow:auto;padding:0 19px 20px;overscroll-behavior:contain;scrollbar-width:thin}.pulse-task-content{display:flex;flex-direction:column;gap:15px}.pulse-task-block{min-width:0}.pulse-task-block>:first-child{margin-top:0!important}.pulse-task-block>:last-child{margin-bottom:0!important}.sheet-actions{flex:0 0 auto;padding:14px 17px 17px;background:var(--task-inset);border-top:0;display:flex;flex-wrap:wrap;gap:8px}.sheet-actions>.btn{flex:1;min-width:105px;width:auto;border-radius:25px;font-size:12px;min-height:48px}.sheet-actions .secondary{background:var(--task);border:0}.sheet-actions .share-options{display:flex;width:100%;gap:8px}.sheet-actions .share-options .btn{flex:1;border-radius:25px}.pulse-no-actions{display:none}
.sheet .btn{border-radius:15px}.sheet .detail-title{font-size:14px;font-weight:550;overflow-wrap:anywhere}.sheet .detail-identity{font-size:10px;margin:0}.sheet .detail-usage{background:var(--task-inset);padding:20px;border-radius:22px;margin:0}.sheet .detail-usage .big{font-size:32px;font-weight:350;color:var(--accent);margin:9px 0}.sheet .detail-usage .progress{height:7px;border-radius:9px;background:var(--line)}.sheet .progress>span{background:var(--accent)}.sheet .detail-usage .small{font-size:10px}
.sheet .action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.sheet .action-grid .btn{flex-direction:column;gap:9px;font-size:9px;line-height:1.5;min-height:83px;padding:12px 4px;background:var(--task-inset);border:0;border-radius:18px}.sheet .action-grid .primary{background:var(--accent);color:var(--accent-ink)}.sheet .action-grid .icon{width:20px;height:20px}.pulse-detail-facts{padding:17px;background:var(--task-inset);border-radius:17px}.pulse-detail-facts summary{list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:10px;min-height:25px;cursor:pointer}.pulse-detail-facts summary::-webkit-details-marker{display:none}.pulse-detail-facts .fact-list{margin-top:14px!important}.sheet .fact-list>div{font-size:11px;padding:11px 0;gap:14px}.sheet .fact-list dt{flex-shrink:1}.sheet .action-row{padding:8px 0;border:0}.sheet .action-row p{font-size:10px}.sheet .action-row strong{font-size:12px}.sheet .switch{background:var(--line)}.sheet .switch[aria-checked="true"]{background:var(--accent)}.sheet .technical-value{font-size:10px;border-radius:15px;background:var(--task-inset)}
.sheet .notice{background:var(--task-inset);padding:16px;border-radius:18px;font-size:11px;line-height:1.9;border:0}.sheet .notice.critical{color:var(--danger)}.sheet .notice.warning{color:var(--warning)}.sheet-error:not(:empty){padding:15px;border:1px solid var(--danger);border-radius:17px;margin-bottom:16px;font-size:12px;background:var(--task-inset)}
.sheet .plan-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.sheet .plan-card{background:var(--task-inset);border:0;border-radius:20px;padding:15px 12px;gap:14px;position:relative;overflow:hidden;isolation:isolate}.sheet .plan-card:before{content:'';display:block;height:64px;border-radius:11px;background:radial-gradient(circle at 50% 50%,transparent 0 15%,var(--task-inset) 16% 18%,transparent 19% 29%,var(--task-inset) 30% 32%,transparent 33% 43%,var(--task-inset) 44% 46%,transparent 47%),linear-gradient(135deg,var(--orange),#c86962);opacity:.8}.sheet .plan-card:nth-child(2n):before{background:repeating-radial-gradient(ellipse at 0 100%,var(--orange) 0 5px,transparent 7px 15px),var(--strip)}.sheet .plan-card .row.between{flex-direction:column;align-items:flex-start;gap:7px}.sheet .plan-card h3{font-size:13px;font-weight:550}.sheet .plan-card .badge{font-size:8px;padding:3px 6px}.sheet .plan-card .price{font-size:20px;font-weight:450;line-height:1.45;overflow-wrap:anywhere}.sheet .plan-card .price small{font-size:9px;display:block}.sheet .plan-card .plan-meta{display:flex;flex-direction:column;gap:6px;font-size:10px}.sheet .plan-card .plan-meta .icon{width:13px;height:13px}.sheet .plan-card .btn{margin-top:auto;border-radius:20px;min-height:40px;font-size:10px;padding:8px}.sheet .plan-card .plan-trial{font-size:9px}
.sheet .field input,.sheet .field select{background:var(--task-inset);border:1px solid var(--line);border-radius:15px;font-size:12px}.sheet .field>span,.sheet .field>label{font-size:12px}.sheet .field small{font-size:10px}.sheet .field{margin-bottom:0}.sheet .quantity-control{border-radius:16px;background:var(--task-inset)}.sheet .qty-btn{background:var(--task);border:0}.sheet .renew-summary{background:var(--orange);color:var(--orange-ink);border-radius:23px;padding:22px}.sheet .renew-summary h3{font-size:14px;font-weight:550}.sheet .summary-amount{font-size:33px;line-height:1.35;font-weight:450;letter-spacing:-1px;color:inherit;margin:13px 0;overflow-wrap:anywhere}.sheet .renew-summary p{font-size:11px}
.sheet[data-kind="qr"] .pulse-task-block:has(.qr-frame){background:var(--orange);border-radius:23px;padding:26px 17px}.sheet .qr-frame{background:#fff;border-radius:17px;padding:12px;max-width:230px;margin:0 auto}.sheet .qr-frame svg{width:100%;height:auto}.sheet[data-kind="qr"] .technical-value{font-size:11px}
.sheet .settings-section{margin:0;padding:15px 0 0;border-top:1px solid var(--line)}.sheet .settings-section h3{font-size:16px;font-weight:550}.sheet .demo-label{font-size:8px;letter-spacing:0}.sheet .account-options{grid-template-columns:1fr;gap:1px;margin-top:14px;background:var(--task-inset);border-radius:17px;overflow:hidden}.sheet .account-options .btn{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:start;justify-content:flex-start;font-size:11px;min-height:46px;padding:12px 14px}.sheet .account-options .primary{color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.sheet .concept-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sheet .concept-options .btn{font-size:10px;min-width:0;min-height:40px;padding:7px;background:var(--task-inset);border:0;border-radius:11px}.sheet .concept-options .primary{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.sheet .settings-section .action-row{padding:12px 0;border-bottom:1px solid var(--line)}.sheet .settings-section details{font-size:12px}.sheet .grid-2{gap:8px}.sheet .grid-2 .btn{font-size:10px;padding:10px}
.toast{background:var(--accent);color:var(--accent-ink);border-radius:24px;bottom:24px}
@media(min-width:480px){.app-main{padding-inline:29px}.pulse-deck{padding-inline:29px}.pulse-time{margin-inline:-29px;padding-inline:24px}.pulse-data-reading strong{font-size:70px}.pulse-transport{margin-inline:35px}.pulse-wave{max-width:420px;margin-inline:auto}.pulse-page-heading h1{font-size:28px}.pulse-identity h2{font-size:31px}.pulse-queue-content .filter-row{justify-content:space-between}.sheet-header h2{font-size:24px}.sheet .plan-card:before{height:85px}}
@media(max-width:370px){.app-header{padding-inline:20px}.app-nav{margin-inline:20px}.app-main{padding-inline:17px;padding-top:19px}.pulse-page-heading{margin-bottom:15px}.pulse-page-heading h1{font-size:23px}.pulse-deck{padding-inline:18px;border-radius:27px}.pulse-identity h2{font-size:24px}.pulse-data-reading strong{font-size:53px}.pulse-time{margin-inline:-18px;padding-inline:13px;font-size:9px;gap:7px}.pulse-auto{font-size:8px}.pulse-transport{margin-inline:5px;grid-template-columns:46px minmax(0,1fr) 46px;gap:10px}.pulse-skip{height:46px}.pulse-primary{height:56px}.pulse-tools{gap:4px}.pulse-tools button{font-size:9px;gap:5px}.pulse-dialog-stack{gap:10px}.sheet-header{padding:19px 16px 15px}.sheet-body{padding-inline:15px}.sheet-header h2{font-size:19px}.sheet .plan-card{padding:13px 10px;gap:12px}.sheet .plan-card .price{font-size:18px}.sheet .action-grid{gap:5px}.sheet .action-grid .btn{font-size:8px;border-radius:15px}.sheet .summary-amount{font-size:29px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
