:root{--shell:470px;--bg:#f4f7f8;--card:#fff;--ink:#0e1728;--muted:#748291;--line:#e7ecef;--blue:#1769ed;--blue2:#2e78f5;--green:#08a96f;--red:#df2d2d;--amber:#e99b05;--nav:76px;--shadow:0 9px 26px rgba(29,47,67,.075)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#app{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:#edf2f4}button,input,textarea,select{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;padding:0}a{text-decoration:none;color:inherit}.icon{display:block;flex:0 0 auto}.app-stage{min-height:100dvh}.mobile-shell{width:min(var(--shell),100%);min-height:100dvh;margin:0 auto;background:linear-gradient(180deg,#f7fafb 0,#f2f6f7 52%,#edf3f4 100%);padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom,0px));position:relative;overflow-x:hidden;box-shadow:0 0 60px rgba(18,37,55,.08)}.mobile-shell.no-nav{padding-bottom:0}.screen{padding:12px 14px 24px;min-height:100dvh}.card{background:rgba(255,255,255,.95);border:1px solid rgba(220,228,232,.88);border-radius:20px;box-shadow:var(--shadow)}
.payqr-logo{width:100%;height:100%;display:block;object-fit:contain}
.loading{min-height:100dvh;display:grid;place-items:center;background:#fff}.spinner{width:36px;height:36px;border:3px solid #e5eaed;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* auth */
.login-page,.lock-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 34%,#fff 0,#f8fafb 35%,#eef3f5 100%)}.login-box{width:min(330px,100%);text-align:center}.login-logo,.lock-icon{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#eaf2ff,#dce9ff);color:#2268e8;display:grid;place-items:center;margin:0 auto 12px;box-shadow:0 10px 25px rgba(37,108,238,.15)}.login-box h1,.lock-card h1{font-size:24px;margin:0 0 5px;letter-spacing:-.4px}.login-box>p,.lock-card>p{font-size:12px;color:#8896a2;margin:0 0 16px}.login-card{background:#fff;border:1px solid #e4eaed;border-radius:17px;padding:16px;text-align:left;box-shadow:0 12px 32px rgba(15,23,42,.07)}.login-card label,.field-label{font-size:10px;color:#6f7c87;font-weight:700;display:block;margin:0 0 6px}.login-card input,.control,.form-card select,.form-card textarea,.textarea{width:100%;border:1px solid #dfe6ea;background:#f8fafb;border-radius:12px;outline:none;transition:.18s}.login-card input,.control,.form-card select{height:43px;padding:0 11px;font-size:12px}.login-card input:focus,.control:focus,.form-card textarea:focus,.textarea:focus{border-color:#9bc0ff;box-shadow:0 0 0 3px rgba(23,105,237,.08)}.primary-btn{width:100%;min-height:43px;border-radius:12px;background:linear-gradient(135deg,#347af5,#1769ed);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 20px rgba(23,105,237,.2);margin-top:12px}.primary-btn:disabled{opacity:.55}.error-text{color:#cf2e2e;font-size:10px;margin:7px 2px}.login-help{font-size:10px;color:#82909b;margin-top:14px}.lock-card{width:min(320px,100%);text-align:center;background:#fff;padding:24px;border-radius:24px;box-shadow:0 25px 65px rgba(15,23,42,.12)}.pin-input{width:180px;height:58px;text-align:center;font-size:28px;letter-spacing:14px;text-indent:14px;border:1px solid #dce4e8;border-radius:15px;background:#f7f9fa;outline:none;margin:5px auto 10px;display:block}.ghost-link{font-size:11px;color:#64727e;margin-top:7px}
/* topbars */
.topbar{height:50px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;margin:0 0 10px;position:relative}.topbar.sticky{position:sticky;top:0;z-index:45;background:rgba(247,250,251,.9);backdrop-filter:blur(16px);margin-left:-14px;margin-right:-14px;padding:0 14px;border-bottom:1px solid rgba(225,232,235,.7)}.back-btn,.top-icon,.chat-head-btn{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:#45535e;background:rgba(255,255,255,.75);border:1px solid #e2e8eb}.page-title.small{text-align:center;font-size:17px;margin:0;font-weight:820;letter-spacing:-.2px}.topbar-right{display:flex;justify-content:flex-end}.top-add{width:36px;height:36px;border-radius:11px;background:var(--blue);color:#fff;display:grid;place-items:center;box-shadow:0 6px 16px rgba(23,105,237,.2)}.section-title{font-size:24px;margin:8px 3px 14px;letter-spacing:-.45px}
/* bottom nav */
.bottom-nav{position:fixed;z-index:60;left:50%;bottom:0;transform:translateX(-50%);width:min(var(--shell),100%);height:calc(var(--nav) + env(safe-area-inset-bottom,0px));padding:8px 10px env(safe-area-inset-bottom,0px);background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border-top:1px solid #e5eaed;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 -8px 24px rgba(15,23,42,.035)}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;color:#697781;position:relative}.nav-icon{width:38px;height:35px;border-radius:13px;display:grid;place-items:center;transition:.2s}.nav-item.active{color:var(--blue);font-weight:760}.nav-item.active .nav-icon{background:#e6f0ff;transform:translateY(-1px)}.nav-item.active .nav-icon:before{content:"";position:absolute;top:3px;width:4px;height:4px;border-radius:50%;background:var(--blue)}
/* skeleton */
.skeleton-screen{padding-top:22px}.sk{background:linear-gradient(100deg,#edf1f3 20%,#f8fafb 40%,#edf1f3 60%);background-size:220% 100%;animation:shimmer 1.05s linear infinite;border-radius:16px}.sk-head{height:48px;margin-bottom:16px}.sk-card{height:106px;margin-bottom:10px;padding:18px;display:flex;align-items:center;gap:14px}.sk-circle{width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.65)}.sk-lines{flex:1}.sk-lines i{display:block;height:9px;background:rgba(255,255,255,.7);border-radius:8px;margin:8px 0}.sk-lines i:nth-child(1){width:56%}.sk-lines i:nth-child(2){width:74%}.sk-lines i:nth-child(3){width:34%}@keyframes shimmer{to{background-position:-220% 0}}
/* home + transaction cards */
.segment-wrap{display:grid;grid-template-columns:1fr 42px;gap:8px;align-items:center;padding:4px 0 10px}.sticky-segment{position:sticky;top:0;z-index:40;background:linear-gradient(180deg,rgba(247,250,251,.98) 0,rgba(247,250,251,.91) 82%,rgba(247,250,251,0) 100%);backdrop-filter:blur(15px);padding-top:8px;margin-top:-12px}.segment,.filter-tabs,.chat-tabs,.mode-segment{background:#e9edef;border-radius:15px;padding:4px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}.segment button,.filter-tabs button,.chat-tabs button,.mode-segment button{min-height:37px;border-radius:11px;color:#64717c;font-size:11px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:5px}.segment button.active,.filter-tabs button.active,.chat-tabs button.active,.mode-segment button.active{background:#fff;color:#0e1728;box-shadow:0 3px 10px rgba(15,23,42,.07)}.segment button.active{background:linear-gradient(135deg,#377cf6,#1769ed);color:#fff}.segment-num{font-size:9px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:rgba(255,255,255,.18);display:grid;place-items:center}.refresh-btn{height:42px;border-radius:13px;background:linear-gradient(135deg,#347af5,#1769ed);color:#fff;display:grid;place-items:center;box-shadow:0 7px 17px rgba(23,105,237,.18)}.tx-list{display:flex;flex-direction:column;gap:8px}.tx-card{width:100%;min-height:96px;padding:12px 13px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;transition:transform .16s,box-shadow .16s}.tx-card:active{transform:scale(.986)}.brand-stack{width:48px;height:48px;position:relative}.payqr-logo{width:48px;height:48px}.flow-badge{position:absolute;right:-4px;bottom:-5px;width:24px;height:24px;border-radius:8px;color:#fff;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 4px 10px rgba(15,23,42,.14)}.flow-badge.deposit{background:#10ad76}.flow-badge.withdraw{background:#e64545}.tx-main{min-width:0}.tx-name{font-size:14px;font-weight:820;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-id{font-size:10.5px;color:#72808b;margin-top:3px;white-space:nowrap}.tx-tags{display:flex;gap:4px;margin-top:5px;min-height:18px}.tag{font-size:8.5px;padding:3px 6px;border-radius:7px}.tag.blue{background:#e9f2ff;color:#246eea}.tag.amber{background:#fff4d6;color:#a66a00}.tx-side{text-align:right;min-width:106px}.tx-time{font-size:9.5px;color:#7f8b95;white-space:nowrap}.tx-amount{font-size:19px;font-weight:860;letter-spacing:-.5px;margin:7px 0 5px}.tx-amount.deposit,.detail-money b.deposit{color:#049e68}.tx-amount.withdraw,.detail-money b.withdraw{color:#d82f2f}.status{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:750;padding:4px 7px;border-radius:10px}.status i{width:7px;height:7px;border-radius:50%}.status.pending{color:#9f6900;background:#fff6d9}.status.pending i{background:#f1a90e}.status.success{color:#08764f;background:#e7fff3}.status.success i{background:#0ab675}.status.rejected{color:#b92d2d;background:#fff0f0}.status.rejected i{background:#df3939}.empty{padding:28px;text-align:center;color:#85919a;font-size:12px}.pagination{display:flex;justify-content:center;gap:6px;margin:14px 0 2px}.pagination button{width:35px;height:35px;border-radius:10px;background:#fff;border:1px solid #e2e8eb;font-size:11px;color:#697681}.pagination button.active{background:var(--blue);color:#fff;border-color:var(--blue)}.pagination button:disabled{opacity:.35}.sticky-filter{position:sticky;top:4px;z-index:38;margin-bottom:11px;box-shadow:0 6px 18px rgba(15,23,42,.05)}
/* detail */
.detail-screen.with-action-bar{padding-bottom:92px}.person-strip{width:100%;height:47px;background:#fff;border:1px solid #e4eaed;border-radius:15px;display:grid;grid-template-columns:32px 1fr 20px;align-items:center;gap:8px;padding:0 11px;margin-bottom:9px;text-align:left;box-shadow:0 5px 16px rgba(15,23,42,.04)}.person-avatar{width:31px;height:31px;border-radius:10px;background:#e8f1ff;color:#1769ed;display:grid;place-items:center}.person-strip>span:nth-child(2){font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-card{padding:15px;margin-bottom:9px}.detail-summary{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center}.detail-id{min-width:0}.copy-line{display:flex;align-items:center;gap:6px}.copy-line strong{font-size:15px}.copy-line button,.value-copy button,.bank-link-top button{color:#2d71e9}.detail-id>span{display:block;font-size:9.5px;color:#7c8994;margin-top:4px}.detail-money{text-align:right}.detail-money .status{margin-bottom:7px}.detail-money>b{display:block;font-size:21px}.withdraw-tools{margin-top:16px;border-top:1px solid #edf0f2;padding-top:13px}.qr-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eceeef;border-radius:12px;padding:3px;width:210px;margin:0 auto 10px}.qr-tabs button{height:32px;border-radius:9px;font-size:10px;font-weight:700}.qr-tabs button.active{background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.08)}.qr-image{width:220px;height:220px;display:block;margin:0 auto;image-rendering:pixelated}.receipt-tools{display:flex;gap:7px;justify-content:center;margin-top:10px}.outline-btn{min-height:36px;padding:0 12px;border-radius:11px;border:1px solid #dbe3e7;background:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:10px;font-weight:750}.info-card{padding:4px 13px;margin-bottom:9px}.info-row{min-height:45px;border-bottom:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.info-row:last-child{border-bottom:0}.info-row>span{color:#687681}.value-copy{display:flex;align-items:center;gap:6px;min-width:0}.value-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}.client-controls{display:grid;gap:8px;margin:9px 0 15px}.mini-control{min-height:66px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 12px;text-align:left}.mini-control-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center}.mini-control-icon.note{background:#fff5df;color:#e39a00}.mini-control-icon.safe{background:#e7fbf1;color:#08a96f}.mini-control-icon.blocked{background:#ffeded;color:#d63232}.mini-control-copy{min-width:0}.mini-control-copy b{display:block;font-size:12px}.mini-control-copy small{display:block;font-size:9.5px;color:#85919b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-dot{width:9px;height:9px;border-radius:50%;background:#f0aa0b;box-shadow:0 0 0 5px #fff4d8}.subheading{font-size:14px;margin:15px 2px 9px}.action-bar{position:fixed;z-index:65;left:50%;bottom:0;transform:translateX(-50%);width:min(var(--shell),100%);padding:9px 11px calc(9px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.96);border-top:1px solid #e5eaed;backdrop-filter:blur(18px);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:7px}.action-btn{height:49px;border-radius:14px;color:#fff;font-size:11px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 8px 18px rgba(15,23,42,.1)}.action-btn.accept{background:linear-gradient(135deg,#347af5,#1769ed)}.action-btn.reject{background:linear-gradient(135deg,#ee4343,#cd1919)}.action-btn.defer{background:#eef1f3;color:#4a5863;box-shadow:none;border:1px solid #dfe5e8}
/* chat list */
.chat-list-screen{min-height:100dvh;background:#fff;padding-bottom:calc(var(--nav) + 8px)}.chat-list-top{position:sticky;top:0;z-index:42;background:rgba(249,251,252,.96);backdrop-filter:blur(16px);padding:11px 14px 10px;border-bottom:1px solid #e8edef}.chat-tabs{width:225px;margin-left:auto;margin-bottom:9px}.searchbar{height:46px;border-radius:14px;background:#eef1f2;display:flex;align-items:center;gap:9px;padding:0 12px;color:#6e7d88}.searchbar input{border:0;outline:none;background:transparent;flex:1;min-width:0;font-size:12px}.chat-list{background:#fff}.chat-row{width:100%;min-height:92px;padding:12px 15px;display:grid;grid-template-columns:48px minmax(0,1fr) 44px;gap:10px;align-items:center;text-align:left;border-bottom:1px solid #eef1f3}.avatar{width:48px;height:48px;border-radius:50%;background:#233144;color:#fff;display:grid;place-items:center;font-size:18px;font-weight:780}.avatar.mini{width:34px;height:34px;font-size:13px}.chat-copy{min-width:0}.chat-name-line{display:flex;align-items:center;gap:5px;min-width:0}.chat-name-line b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-badge{font-size:7.5px;padding:3px 5px;border-radius:6px;background:#fff1cb;color:#9a6500;flex:0 0 auto}.chat-last{font-size:11px;color:#7b8994;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.chat-tx{display:inline-block;font-size:8.5px;margin-top:5px;padding:3px 6px;border-radius:7px}.chat-tx.deposit{background:#e8faf2;color:#07865b}.chat-tx.withdraw{background:#fff0f0;color:#c72d2d}.chat-meta{text-align:right;font-size:9.5px;color:#71808a;align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px}.chat-meta i{font-style:normal;width:22px;height:22px;border-radius:50%;background:#111827;color:#fff;display:grid;place-items:center;font-size:8.5px}
/* chat thread */
.chat-screen{min-height:100dvh;background:#edf3f5;padding-bottom:74px}.sticky-chat-head{position:sticky;top:0;z-index:70;height:60px;background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border-bottom:1px solid #e4eaed;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px}.chat-head-btn{width:38px;height:38px}.chat-person{min-width:0;display:flex;align-items:center;gap:8px;text-align:left}.chat-person>span:last-child{min-width:0}.chat-person b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-person small{font-size:8.5px;color:#83909a;display:block}.chat-head-actions{display:flex;align-items:center;gap:5px}.chat-close-btn{height:32px;padding:0 9px;border-radius:10px;background:#ffeded;color:#c93030;font-size:9px;font-weight:750}.chat-close-btn.open{background:#e8faf2;color:#07865b}.chat-activity-strip{position:sticky;top:60px;z-index:35;background:rgba(237,243,245,.94);backdrop-filter:blur(12px);display:flex;gap:6px;padding:7px 10px;overflow:auto;border-bottom:1px solid #e1e8eb}.activity-pill{flex:0 0 auto;height:35px;border-radius:11px;background:#fff;border:1px solid #e2e8eb;padding:0 9px;display:flex;align-items:center;gap:6px;font-size:9px}.activity-pill b{font-size:10px}.activity-pill.deposit b{color:#07865b}.activity-pill.withdraw b{color:#ce3232}.messages{padding:14px 12px 20px;display:flex;flex-direction:column;gap:8px}.message{max-width:82%;padding:9px 11px;border-radius:15px;font-size:11px;line-height:1.4;box-shadow:0 3px 10px rgba(15,23,42,.035)}.message.client{align-self:flex-start;background:#fff;border:1px solid #e3e8eb;border-bottom-left-radius:5px}.message.operator{align-self:flex-end;background:linear-gradient(135deg,#3b80f4,#1a68e8);color:#fff;border-bottom-right-radius:5px}.message small{display:block;font-size:7.5px;margin-top:5px;opacity:.7;text-align:right}.message img{max-width:210px;border-radius:10px;display:block}.chat-empty{text-align:center;color:#83909a;font-size:10px;margin-top:35px}.chat-composer{position:fixed;z-index:75;left:50%;bottom:0;transform:translateX(-50%);width:min(var(--shell),100%);height:66px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border-top:1px solid #e3e9ec;display:grid;grid-template-columns:38px 38px minmax(0,1fr) 40px;gap:5px;align-items:center}.composer-icon{width:38px;height:38px;border-radius:12px;background:#eef3f6;color:#52616c;display:grid;place-items:center}.chat-composer>input{height:40px;border:1px solid #e0e6e9;background:#f5f8f9;border-radius:13px;padding:0 11px;outline:none;font-size:11px}.send-btn{width:40px;height:40px;border-radius:13px;background:var(--blue);color:#fff;display:grid;place-items:center}
/* profile/search */
.profile-hero{text-align:center;padding:12px 0 8px}.profile-avatar{width:62px;height:62px;border-radius:22px;background:linear-gradient(135deg,#dce9ff,#edf5ff);color:#1769ed;display:grid;place-items:center;margin:0 auto 8px;font-size:22px;font-weight:820}.profile-hero h2{margin:0;font-size:20px}.copy-plain{font-size:9.5px;color:#76848f;display:flex;align-items:center;gap:5px;margin:5px auto 0}.section-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-row>span,.section-row small{font-size:9px;color:#84919a}.search-card{padding:11px;margin-bottom:10px}.searchbar.strong{background:#f3f6f7;border:1px solid #e3e8eb}.filter-button{width:34px;height:34px;border-radius:10px;background:#fff;display:grid;place-items:center;border:1px solid #e2e8eb}.search-card>.filter-tabs{margin-top:8px}.advanced-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.advanced-grid select,.advanced-grid input{height:38px;border-radius:11px;border:1px solid #e0e6e9;background:#f8fafb;padding:0 9px;outline:none;font-size:10px}.result-count{font-size:10px;color:#77858f;margin:8px 2px}
/* menu */
.menu-screen{padding-top:18px}.account-header{display:flex;align-items:center;gap:11px;margin:2px 6px 13px}.account-icon{width:52px;height:52px;border-radius:50%;background:#dce9ff;color:#1769ed;display:grid;place-items:center}.account-header h1{font-size:22px;margin:0 0 2px}.account-header p{font-size:10px;color:#8b99a3;margin:0}.menu-group{overflow:hidden;margin-bottom:10px}.menu-row{min-height:61px;display:grid;grid-template-columns:39px minmax(0,1fr) 18px;gap:10px;align-items:center;padding:8px 13px;border-bottom:1px solid #e9edef;width:100%;text-align:left}.menu-row:last-child{border-bottom:0}.menu-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center}.menu-icon.blue{background:#e8f1ff;color:#1769ed}.menu-icon.green{background:#e8faef;color:#0aaf69}.menu-icon.yellow{background:#fff5de;color:#e89d00}.menu-icon.violet{background:#f2ebff;color:#7b45de}.menu-icon.red{background:#ffeded;color:#da3535}.menu-icon.gray{background:#eef1f3;color:#5f6d77}.menu-copy strong{font-size:13px;display:block}.menu-copy small{font-size:9.5px;color:#8b98a2;display:block;margin-top:2px}.logout-row{margin-top:9px;border-bottom:0}
/* stats */
.period-card{width:100%;padding:15px;display:flex;align-items:center;justify-content:space-between;text-align:left;margin-bottom:9px}.period-card span{font-size:10px;color:#7f8c96;display:block}.period-card b{font-size:12px;display:block;margin-top:3px}.stat-summary{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}.stat-summary>div,.platform-grid>div{background:#f7f9fa;border-radius:14px;padding:12px}.stat-summary span,.platform-grid span{display:block;font-size:10px;color:#66737e}.stat-summary b,.platform-grid b{display:block;font-size:18px;margin-top:5px}.stat-summary small,.platform-grid small{font-size:8.5px;color:#8d98a1}.limits-card{padding:15px;margin-bottom:10px}.limits-card h3,.platform-card h3{font-size:16px;margin:0 0 10px}.limit-row{height:42px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f2;font-size:12px}.limit-row:last-child{border-bottom:0}.platform-card{padding:15px;margin-bottom:9px}.platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
/* wallets */
.wallet-mode-card{padding:14px;margin-bottom:9px}.wallet-mode-card .section-row b{font-size:13px}.wallet-mode-card .section-row small{display:block;margin-top:2px}.mode-segment{margin-top:10px}.wallet-card{padding:12px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:center;margin-bottom:8px}.wallet-card.selected{border-color:#aacbff;box-shadow:0 0 0 2px rgba(23,105,237,.06),var(--shadow)}.bank-mark{width:44px;height:44px;border-radius:13px;background:#f4f7f8;display:grid;place-items:center}.bank-mark .payqr-logo{width:38px;height:38px}.wallet-copy{min-width:0}.wallet-title-line{display:flex;align-items:center;gap:6px}.wallet-copy strong{font-size:12.5px}.wallet-copy>span{display:block;font-size:9px;color:#7d8a94;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-badge{font-size:7.5px;padding:3px 5px;border-radius:6px;background:#e8f1ff;color:#1769ed}.wallet-side{display:flex;align-items:center;gap:5px}.mini-icon-btn{width:32px;height:32px;border-radius:10px;background:#f1f4f5;color:#66737d;display:grid;place-items:center}.mini-icon-btn.danger{background:#ffeded;color:#d53636}.wallet-select-btn{grid-column:2/-1;height:31px;border-radius:10px;background:#e9f2ff;color:#1769ed;font-size:9.5px;font-weight:750}.statement-title{margin-top:16px}.statement-list{overflow:hidden}.statement-row{min-height:62px;display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 12px;border-bottom:1px solid #edf0f2}.statement-row:last-child{border-bottom:0}.statement-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center}.statement-icon.in{background:#e8faef;color:#08a96f}.statement-icon.out{background:#ffeded;color:#d73535}.statement-copy b{display:block;font-size:11px}.statement-copy small{display:block;font-size:8.5px;color:#84909a;margin-top:2px}.statement-row>strong{font-size:11px}.statement-row>strong.in{color:#079b67}.statement-row>strong.out{color:#d22d2d}
/* forms quick operators logs */
.form-card,.settings-section{padding:14px}.form-card h3,.settings-section h3{font-size:14px;margin:0 0 10px}.form-card label{font-size:9.5px;color:#6e7c87;display:block;margin:10px 0 5px}.form-card textarea,.textarea{min-height:105px;padding:10px;resize:vertical;font-size:11px}.progress{height:7px;background:#eaf0f3;border-radius:8px;overflow:hidden;margin-top:9px}.progress i{display:block;height:100%;background:var(--blue);transition:.18s}.section-list{margin-top:15px}.broadcast-row{padding:12px;margin-bottom:7px}.broadcast-row b{font-size:11px}.broadcast-row p{font-size:10px;color:#586671;margin:4px 0}.broadcast-row small{font-size:8.5px;color:#8b97a0}.hint-card{display:flex;align-items:center;gap:8px;background:#eef4ff;color:#42617f;border:1px solid #dce9fa;border-radius:13px;padding:10px 12px;font-size:9.5px;margin-bottom:9px}.quick-card{padding:10px;display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:8px;align-items:center;margin-bottom:8px;transition:.18s}.quick-card.dragging{transform:scale(1.018);box-shadow:0 15px 35px rgba(23,105,237,.15);border-color:#a9caff;z-index:10}.drag-handle{width:32px;height:42px;color:#8b98a1;display:grid;place-items:center;touch-action:none}.quick-copy b{font-size:12px}.quick-copy p{font-size:9.5px;color:#65737e;margin:3px 0 0;line-height:1.35}.danger-soft{min-height:36px;padding:0 11px;border-radius:11px;background:#ffeded;color:#c82e2e;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:9.5px;font-weight:750}.danger-soft.small{min-height:32px;padding:0 8px;font-size:8px}.log-list{display:flex;flex-direction:column;gap:7px}.log-row{padding:11px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center}.log-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center}.log-icon.info{background:#e8f1ff;color:#1769ed}.log-icon.success{background:#e8faef;color:#08a96f}.log-icon.danger{background:#ffeded;color:#d43636}.log-copy b{display:block;font-size:11px}.log-copy span,.log-copy small{display:block;font-size:8.5px;color:#82909a;margin-top:2px}.log-row>strong{font-size:10.5px;color:#078e5f}
/* devices */
.devices-screen{background:#070b0f;color:#f5f7fa;min-height:100dvh;padding-bottom:28px}.devices-screen .topbar.sticky{background:rgba(7,11,15,.93);border-color:#1e2730}.devices-screen .back-btn,.devices-screen .top-icon{background:#121821;border-color:#27313b;color:#f3f6f8}.device-hero{text-align:center;padding:25px 8px 18px;color:#e8edf1}.device-hero .icon{margin:0 auto 20px;color:#b9c3cc}.device-hero p{font-size:10.5px;color:#7f8993;line-height:1.45;margin:0}.eyebrow{font-size:9px;letter-spacing:1.5px;color:#7e8994;margin:15px 4px 8px;font-weight:650}.session-card{background:#12171e;border-color:#25303a;box-shadow:none;color:#f6f7f9;padding:12px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:center;margin-bottom:8px}.device-icon{width:44px;height:44px;border-radius:13px;background:#1b2b3c;color:#dce7f1;display:grid;place-items:center}.session-copy b{display:block;font-size:12px}.session-copy small{display:block;font-size:8.5px;color:#7f8a94;margin-top:2px}.current-badge{font-size:8px;padding:5px 7px;border-radius:9px;background:#0f3a2c;color:#76dfb4;font-weight:750}.danger-wide,.dark-wide{width:100%;height:48px;border-radius:14px;font-size:11px;font-weight:850;margin-top:10px}.danger-wide{background:#f25a52;color:#fff}.dark-wide{background:#151d26;color:#fff}.danger-wide.compact{height:42px;margin-top:8px}
/* settings */
.pause-card{min-height:70px;padding:12px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;margin-bottom:9px}.pause-icon{width:42px;height:42px;border-radius:13px;background:#e8faef;color:#08a96f;display:grid;place-items:center}.pause-icon.paused{background:#fff0df;color:#d68000}.pause-card b{font-size:12px}.pause-card small{display:block;font-size:9px;color:#83909a;margin-top:2px}.settings-section{margin-bottom:9px}.toggle-row{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0f2}.toggle-row:last-child{border-bottom:0}.toggle-copy b{display:block;font-size:11px}.toggle-copy small{display:block;font-size:8.5px;color:#87939c;margin-top:2px}.switch{width:42px;height:24px;border-radius:14px;background:#dce2e5;padding:3px;transition:.18s}.switch i{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.18);transition:.18s}.switch.on{background:#18b777}.switch.on i{transform:translateX(18px)}.site-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.check-chip{height:33px;border-radius:10px;background:#f3f6f7;display:flex;align-items:center;gap:5px;padding:0 7px;font-size:8.5px;color:#65737d;overflow:hidden}.check-dot{width:14px;height:14px;border-radius:4px;border:1px solid #b9c5cc;background:#fff;flex:0 0 auto}.check-chip.on{background:#eaf2ff;color:#1769ed}.check-chip.on .check-dot{background:#1769ed;border-color:#1769ed;position:relative}.check-chip.on .check-dot:after{content:"✓";position:absolute;color:#fff;font-size:8px;left:2px;top:0}.muted{font-size:9.5px;line-height:1.4;color:#7f8c95;margin:0 0 10px}.security-state{font-size:8px;padding:4px 6px;border-radius:7px;background:#f1f3f4;color:#77858f}.security-state.on{background:#e8faef;color:#07865b}.button-row{display:flex;gap:7px;margin-top:9px}.button-row .outline-btn,.button-row .danger-soft{flex:1}.bank-link-row{padding:10px 0;border-bottom:1px solid #edf0f2}.bank-link-row:last-child{border-bottom:0}.bank-link-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.bank-link-top b{font-size:11px}.mini-methods{display:flex;gap:6px;margin-top:6px}.mini-methods button{height:30px;padding:0 9px;border-radius:9px;background:#f1f4f5;color:#6d7a84;font-size:8.5px}.mini-methods button.on{background:#e8f1ff;color:#1769ed;font-weight:750}.save-settings{margin-bottom:10px}
/* modal */
.modal-backdrop{position:fixed;z-index:120;inset:0;background:rgba(10,18,27,.42);backdrop-filter:blur(3px);display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(var(--shell),100%);max-height:88dvh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:9px 15px calc(17px + env(safe-area-inset-bottom,0px));box-shadow:0 -18px 45px rgba(15,23,42,.18);animation:sheetUp .22s cubic-bezier(.2,.8,.2,1)}@keyframes sheetUp{from{transform:translateY(100%);opacity:.6}to{transform:none;opacity:1}}.sheet-handle{width:38px;height:4px;border-radius:4px;background:#dce2e5;margin:1px auto 10px}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sheet-head>b{font-size:16px}.close-btn{width:34px;height:34px;border-radius:11px;background:#f1f4f5;display:grid;place-items:center}.field-label{margin-top:9px}.textarea.large{min-height:150px}.modal-toggle{margin-top:8px}.time-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.days-row{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.days-row button{height:32px;border-radius:9px;background:#f2f5f6;font-size:8px;color:#697681}.days-row button.on{background:#1769ed;color:#fff}.pin-control{text-align:center;font-size:18px;letter-spacing:8px}.quick-use-list{display:flex;flex-direction:column;gap:6px}.quick-use-list button{text-align:left;padding:10px;border-radius:11px;background:#f5f8f9;border:1px solid #e5eaed}.quick-use-list b{display:block;font-size:10px}.quick-use-list span{display:block;font-size:9px;color:#6f7d88;margin-top:3px}.toast{position:fixed;z-index:150;left:50%;bottom:calc(var(--nav) + 12px);transform:translateX(-50%);max-width:86vw;background:#111827;color:#fff;padding:9px 12px;border-radius:11px;font-size:10px;box-shadow:0 10px 28px rgba(15,23,42,.22);animation:toastIn .2s ease}.toast.low{bottom:75px}@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:380px){:root{--nav:72px}.screen{padding-left:10px;padding-right:10px}.topbar.sticky{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.tx-card{grid-template-columns:44px minmax(0,1fr) auto;padding:10px}.brand-stack,.payqr-logo{width:44px;height:44px}.tx-side{min-width:93px}.tx-amount{font-size:17px}.status{font-size:8px}.action-bar{padding-left:7px;padding-right:7px}.action-btn{font-size:9px}.site-grid{grid-template-columns:1fr 1fr}.chat-head-actions .chat-head-btn{display:none}}
.wallet-copyable{display:flex!important;align-items:center;gap:5px}.wallet-copyable button{color:#2a70e8;display:inline-grid;place-items:center}.devices-screen+.bottom-nav{display:none}


/* ===== PayQR v4 compact UI ===== */
:root{
  --shell:460px;
  --nav:64px;
  --shadow:0 7px 22px rgba(28,45,62,.065);
}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  font-size:14px;
}
html,body,#app,button,input,textarea,select{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Arial,sans-serif;
}
body{font-size:13px;letter-spacing:-.01em}
.screen{padding:10px 12px 20px}
.card{border-radius:17px;box-shadow:var(--shadow)}
.section-title{font-size:20px;line-height:1.1;margin:6px 2px 11px;font-weight:760;letter-spacing:-.45px}
.page-title.small{font-size:15px;font-weight:760;letter-spacing:-.24px}
.topbar{height:46px;grid-template-columns:38px 1fr 38px;margin-bottom:8px}
.topbar.sticky{margin-left:-12px;margin-right:-12px;padding:0 12px}
.back-btn,.top-icon,.chat-head-btn{width:34px;height:34px;border-radius:11px}
.top-add{width:33px;height:33px;border-radius:10px}

/* bottom navigation: compact and equal alignment */
.bottom-nav{
  height:calc(var(--nav) + env(safe-area-inset-bottom,0px));
  padding:5px 6px env(safe-area-inset-bottom,0px);
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:stretch;
  background:rgba(255,255,255,.965);
  box-shadow:0 -5px 18px rgba(15,23,42,.04);
}
.nav-item{
  min-width:0;
  gap:2px;
  font-size:9px;
  line-height:1.05;
  font-weight:540;
  letter-spacing:-.12px;
  overflow:hidden;
}
.nav-item>span:last-child{
  width:100%;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
.nav-icon{
  width:32px;
  height:31px;
  border-radius:10px;
}
.nav-item.active{font-weight:700}
.nav-item.active .nav-icon{transform:none;background:#e8f1ff}
.nav-item.active .nav-icon:before{top:1px;width:3px;height:3px}

/* compact transaction cards */
.tx-list{gap:7px}
.tx-card{
  min-height:82px;
  padding:9px 10px;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:9px;
  border-radius:17px;
}
.brand-stack,.payqr-logo{width:42px;height:42px}
.payqr-logo{image-rendering:auto;filter:none}
.flow-badge{
  right:-3px;bottom:-4px;width:21px;height:21px;border-radius:7px;border-width:2px;
}
.flow-badge .icon{width:12px;height:12px}
.tx-name{font-size:12.5px;font-weight:740;letter-spacing:-.18px}
.tx-id{font-size:9.5px;margin-top:2px}
.tx-tags{margin-top:4px;min-height:15px}
.tag{font-size:7.8px;padding:2px 5px;border-radius:6px}
.tx-side{min-width:92px}
.tx-time{font-size:8.8px}
.tx-amount{font-size:16.5px;font-weight:780;letter-spacing:-.35px;margin:5px 0 4px}
.status{font-size:8px;gap:4px;padding:3px 6px;border-radius:9px}
.status i{width:6px;height:6px}

/* sections, menu and forms */
.menu-screen{padding-top:12px}
.account-header h1{font-size:18px!important;letter-spacing:-.35px}
.account-header p{font-size:9.5px!important}
.menu-row{min-height:56px!important}
.menu-copy strong{font-size:11.5px!important;font-weight:720!important}
.menu-copy small{font-size:8.5px!important}
.menu-icon{width:36px!important;height:36px!important;border-radius:11px!important}
.segment-wrap{grid-template-columns:1fr 38px;gap:7px;padding-bottom:8px}
.segment,.filter-tabs,.chat-tabs,.mode-segment{border-radius:13px;padding:3px}
.segment button,.filter-tabs button,.chat-tabs button,.mode-segment button{min-height:33px;border-radius:10px;font-size:10px}
.refresh-btn{height:38px;border-radius:12px}
.pagination{gap:5px;margin-top:11px}
.pagination button{width:32px;height:32px;font-size:10px;border-radius:9px}

/* logs with vector PayQR badge + platform/IP */
.log-list{gap:6px}
.log-row{padding:9px 10px;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;border-radius:15px}
.log-row.tx-log{grid-template-columns:40px minmax(0,1fr) auto}
.log-row.tx-log .brand-stack,.log-row.tx-log .payqr-logo{width:40px;height:40px}
.log-row.tx-log .flow-badge{width:19px;height:19px;right:-2px;bottom:-3px}
.log-icon{width:34px;height:34px;border-radius:10px}
.log-copy b{font-size:10.5px;font-weight:720}
.log-copy span{font-size:8.2px;line-height:1.25}
.log-copy small{font-size:7.8px;line-height:1.2}
.log-copy .log-meta{color:#4e6578;margin-top:3px;font-weight:600}
.log-row>strong{font-size:10px;white-space:nowrap}
.log-row>strong.log-deposit{color:#079566}
.log-row>strong.log-withdraw{color:#cf3939}

/* keep iOS inputs from zooming while visual text remains compact */
@media (max-width:768px){
  input,textarea,select{font-size:16px!important}
  .control,.login-card input,.form-card select{font-size:16px!important}
}
@media(max-width:380px){
  :root{--nav:62px}
  .screen{padding-left:9px;padding-right:9px}
  .topbar.sticky{margin-left:-9px;margin-right:-9px;padding-left:9px;padding-right:9px}
  .tx-card{grid-template-columns:39px minmax(0,1fr) auto;padding:8px 9px;gap:8px}
  .brand-stack,.payqr-logo{width:39px;height:39px}
  .tx-side{min-width:86px}
  .tx-amount{font-size:15.5px}
  .nav-item{font-size:8.6px}
  .nav-icon{width:30px;height:29px}
}

/* ===== PayQR v5 React interaction + polish ===== */
:root{
  --shell:452px;
  --nav:60px;
  --blue:#1f6ff0;
  --blue-soft:#e9f2ff;
  --surface:#ffffff;
  --surface-2:#f5f8fa;
  --ink:#101827;
  --muted:#74818d;
  --shadow:0 7px 20px rgba(24,42,61,.06);
}
html,body,#app,button,input,textarea,select{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Arial,sans-serif;
}
body{font-size:12px;letter-spacing:-.012em}
.mobile-shell{background:linear-gradient(180deg,#f8fafb 0%,#f3f7f8 48%,#eff4f5 100%)}
.screen{padding:9px 11px 18px;animation:screenIn .22s cubic-bezier(.2,.75,.25,1)}
@keyframes screenIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.card{border-radius:16px;border-color:rgba(221,229,233,.9);box-shadow:var(--shadow)}
.page-title.small{font-size:14px;line-height:1.1;font-weight:750;letter-spacing:-.28px}
.section-title{font-size:19px;font-weight:760}
.topbar{height:44px;grid-template-columns:36px 1fr 36px}
.back-btn,.top-icon,.chat-head-btn{width:32px;height:32px;border-radius:10px}
.topbar .icon{width:19px;height:19px}

/* Footer rebuilt as a compact mobile tab bar. */
.bottom-nav{
  height:calc(var(--nav) + env(safe-area-inset-bottom,0px));
  padding:4px 6px env(safe-area-inset-bottom,0px);
  border-top:1px solid rgba(217,225,229,.92);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(22px) saturate(1.2);
  -webkit-backdrop-filter:blur(22px) saturate(1.2);
}
.nav-item{gap:1px;font-size:8.2px;line-height:1;font-weight:560;letter-spacing:-.08px}
.nav-icon{width:29px;height:28px;border-radius:9px}
.nav-icon .icon{width:19px;height:19px;stroke-width:1.85}
.nav-item.active{font-weight:700}
.nav-item.active .nav-icon{background:#e8f1ff}
.nav-item.active .nav-icon:before{top:0;width:3px;height:3px}

/* Cards are tighter but retain readable touch targets. */
.tx-list{gap:6px}
.tx-card{min-height:76px;padding:8px 9px;grid-template-columns:39px minmax(0,1fr) auto;gap:8px;border-radius:15px}
.brand-stack,.payqr-logo{width:39px;height:39px}
.flow-badge{width:20px;height:20px;border-radius:7px;right:-3px;bottom:-4px}
.tx-name{font-size:11.8px;font-weight:750}
.tx-id{font-size:9px}
.tx-side{min-width:87px}
.tx-time{font-size:8.2px}
.tx-amount{font-size:15.5px;font-weight:790;margin:4px 0 3px}
.status{font-size:7.7px;padding:3px 5px}
.segment-wrap{grid-template-columns:1fr 36px;gap:6px}
.segment button,.filter-tabs button,.chat-tabs button,.mode-segment button{min-height:31px;font-size:9.4px}
.refresh-btn{height:36px}

/* Native resizable bottom sheet. Drag handle snaps to 42%, 66% or 92% viewport height. */
.modal-backdrop{background:rgba(9,17,28,.34);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.sheet.resizable-sheet{
  max-height:93dvh;
  min-height:36dvh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0 13px calc(12px + env(safe-area-inset-bottom,0px));
  border-radius:23px 23px 0 0;
  box-shadow:0 -22px 55px rgba(15,23,42,.16);
  transition:height .16s cubic-bezier(.2,.72,.2,1);
  will-change:height;
}
.sheet-drag-zone{height:25px;flex:0 0 25px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:ns-resize}
.sheet-drag-zone:active{cursor:grabbing}
.sheet-handle{width:39px;height:4px;margin:0;border-radius:999px;background:#d5dde2;transition:.15s}
.sheet-drag-zone:active .sheet-handle{width:48px;background:#b8c4cb}
.sheet-head{flex:0 0 42px;margin:0;border-bottom:1px solid #edf1f3;position:relative}
.sheet-head>b{font-size:14px;font-weight:770;position:absolute;left:50%;transform:translateX(-50%);max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:10px 1px 2px;-webkit-overflow-scrolling:touch}
.close-btn{width:31px;height:31px;border-radius:10px;margin-left:auto}

/* Quick reply sorting: dedicated grip owns the gesture so the page does not scroll while sorting. */
.quick-card{position:relative;transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease}
.quick-card.dragging{z-index:25;transform:scale(1.018);box-shadow:0 16px 34px rgba(20,35,50,.15);opacity:.96}
.drag-handle{touch-action:none!important;cursor:grab;user-select:none;-webkit-user-select:none}
.drag-handle:active{cursor:grabbing;background:#eaf2ff;color:var(--blue)}
.hint-card{font-size:9px;line-height:1.3}

/* Devices follow the PayQR light/blue visual language. */
.devices-screen{background:radial-gradient(circle at 50% 2%,rgba(42,121,246,.09),transparent 210px)}
.device-hero{padding:15px 14px 17px!important;text-align:center}
.device-hero-icon{width:76px;height:76px;margin:2px auto 11px;border-radius:24px;display:grid;place-items:center;color:#236eea;background:linear-gradient(145deg,#eef5ff,#dfeaff);box-shadow:inset 0 0 0 1px rgba(48,112,222,.08),0 12px 28px rgba(36,102,209,.10)}
.device-hero p{max-width:370px;margin:0 auto;color:#76838e;font-size:9.5px;line-height:1.42}
.session-card{min-height:73px!important;padding:10px 11px!important;border-radius:17px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important}
.session-card.current-session{border-color:#dbe9ff;background:linear-gradient(135deg,#fff,#f8fbff)}
.device-icon{width:40px!important;height:40px!important;border-radius:12px!important;color:#226eea!important;background:#eaf2ff!important}
.session-copy b{font-size:11.5px!important;font-weight:760!important}
.session-copy small{font-size:8.4px!important;line-height:1.25!important}
.session-meta{color:#8b97a0!important}
.current-badge{display:inline-flex!important;align-items:center;gap:4px;font-size:7.7px!important;padding:5px 7px!important;background:#e8fbf2!important;color:#087b55!important;border-radius:9px!important;font-weight:750!important;white-space:nowrap}
.current-badge i{width:6px;height:6px;border-radius:50%;background:#0ab977}
.devices-screen .eyebrow{font-size:8px!important;letter-spacing:.12em;color:#8a96a0;margin:14px 3px 7px!important}
.devices-screen .danger-wide,.devices-screen .dark-wide{min-height:42px;border-radius:13px;font-size:10.5px;font-weight:760}

/* Forms stay physically compact while computed 16px prevents Safari focus zoom. */
@media(max-width:768px){
 input,textarea,select{font-size:16px!important}
 .control,.login-card input,.form-card select{font-size:16px!important;height:40px!important;padding-left:10px!important;padding-right:10px!important}
 textarea,.textarea{line-height:1.25!important}
}
@media(max-width:380px){
 :root{--nav:58px}
 .screen{padding-left:8px;padding-right:8px}
 .tx-card{grid-template-columns:37px minmax(0,1fr) auto;padding:7px 8px}
 .brand-stack,.payqr-logo{width:37px;height:37px}
 .tx-side{min-width:82px}
 .tx-amount{font-size:14.8px}
 .nav-item{font-size:7.9px}
 .nav-icon{width:28px;height:27px}
}


/* v6 stability + interaction fixes */
.modal-backdrop{z-index:500!important;position:fixed!important;inset:0!important;touch-action:none;overscroll-behavior:contain}
.sheet.resizable-sheet{z-index:501;isolation:isolate;background:#fff;transform:translateZ(0);animation:sheetUpV6 .22s cubic-bezier(.22,.82,.25,1)}
@keyframes sheetUpV6{from{transform:translate3d(0,34px,0);opacity:.65}to{transform:translate3d(0,0,0);opacity:1}}
.sheet-body{touch-action:pan-y;overscroll-behavior-y:contain;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
.sheet-drag-zone{position:relative;z-index:3;touch-action:none!important;-webkit-user-select:none;user-select:none}
.sheet-head{display:flex!important;align-items:center!important;min-height:42px}
.close-btn{touch-action:manipulation;position:relative;z-index:4}
.quick-card{touch-action:pan-y}
.quick-card.dragging{pointer-events:none}
.quick-card.dragging .drag-handle{pointer-events:auto}
.drag-handle{min-width:42px;min-height:52px;display:grid;place-items:center;touch-action:none!important}
.fatal-ui{width:min(430px,calc(100% - 28px));margin:18vh auto 0;background:#fff;border:1px solid #e1e8ec;border-radius:22px;padding:22px;text-align:center;box-shadow:0 18px 48px rgba(15,23,42,.12)}
.fatal-ui .payqr-logo{width:58px;height:58px;margin:0 auto 12px}.fatal-ui h2{margin:0;font-size:19px}.fatal-ui p{font-size:11px;color:#75838f;line-height:1.45}
button{touch-action:manipulation}
@media(max-width:768px){
  .sheet input,.sheet textarea,.sheet select,.chat-composer input,.searchbar input{font-size:16px!important}
}


/* v6.2 iOS-safe bottom sheets: no body scroll lock, no portal/visualViewport dependency */
.modal-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:1000!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  background:rgba(12,20,30,.34)!important;
  -webkit-backdrop-filter:blur(4px)!important;
  backdrop-filter:blur(4px)!important;
  overscroll-behavior:none!important;
  padding:0!important;
}
.sheet.resizable-sheet{
  position:relative!important;
  z-index:1001!important;
  width:min(var(--shell),100%)!important;
  min-height:38dvh!important;
  max-height:92dvh!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#fff!important;
  border-radius:22px 22px 0 0!important;
  box-shadow:0 -18px 50px rgba(15,23,42,.19)!important;
  transform:none!important;
  animation:sheetEnterV62 .18s ease-out!important;
  transition:height .12s ease-out!important;
  padding:0 13px max(12px,env(safe-area-inset-bottom,0px))!important;
}
@keyframes sheetEnterV62{from{opacity:.65;transform:translate3d(0,22px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
.sheet-drag-zone{
  height:26px!important;
  flex:0 0 26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.sheet-handle{width:42px!important;height:4px!important;border-radius:999px!important;background:#cbd4da!important;margin:0!important}
.sheet-head{height:42px!important;min-height:42px!important;flex:0 0 42px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-bottom:1px solid #edf1f3!important;position:relative!important;margin:0!important}
.sheet-head>b{position:static!important;transform:none!important;max-width:72%!important;text-align:center!important;font-size:14px!important}
.sheet-head .close-btn{position:absolute!important;right:0!important;top:5px!important;margin:0!important}
.sheet-body{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;padding:10px 1px 4px!important;overscroll-behavior:contain!important}
@supports not (height: 1dvh){.sheet.resizable-sheet{min-height:38vh!important;max-height:92vh!important}}


/* v6.3 compatibility hotfix: React 16.0 + iOS Safari */
.modal-backdrop{min-height:100vh!important;min-height:-webkit-fill-available!important}
.sheet.resizable-sheet{transform:translate3d(0,0,0)!important;max-height:92vh!important;min-height:38vh!important}
@supports(height:100dvh){.modal-backdrop{min-height:100dvh!important}.sheet.resizable-sheet{max-height:92dvh!important}}


/* v6.4 — reliable touch sorting for quick replies */
body.quick-reordering{overscroll-behavior:none!important;-webkit-user-select:none!important;user-select:none!important}
.quick-card{will-change:transform;transition:transform .14s ease,box-shadow .14s ease,opacity .14s ease,border-color .14s ease}
.quick-card.dragging{z-index:40!important;transform:scale(1.025)!important;box-shadow:0 18px 42px rgba(23,105,237,.20)!important;border-color:#92bcff!important;background:#fbfdff!important;opacity:.94!important;pointer-events:none!important}
.drag-handle{width:42px!important;min-width:42px!important;height:54px!important;min-height:54px!important;border-radius:13px!important;touch-action:none!important;overscroll-behavior:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;cursor:grab!important}
.drag-handle:active{cursor:grabbing!important;background:#e8f1ff!important;color:#1769ed!important;transform:scale(.97)}
.quick-card:not(.dragging) .drag-handle{pointer-events:auto!important}
.quick-reordering .quick-card{transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.quick-reordering .bottom-nav{pointer-events:none}
