/* Content-led sections: a card groups a task; rows group its related facts. */
:root{--surface:#0e1d2f;--surface-soft:#12253a;--border:#2b4058;--navy:#ecf2fc;--text-muted:#9eafc6;--primary:#ff4668;--coral:#ff617b;--danger:#ff718a;--balance-padding:12px;--balance-radius:14px;--balance-amount:28px}
[hidden]{display:none!important}
.tp-app .app-page-content{font-size:14px;line-height:1.45;padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
.page-content,.stack,.my-detail-page,.hw-wallet,.hw-manage-tokens{gap:12px}
.page-heading h1{font-size:24px;line-height:1.2;margin:0 0 4px;letter-spacing:-.025em}
.page-heading p{font-size:13px;line-height:1.45}
.muted{line-height:1.45}
.card{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:14px;min-width:0;min-height:0;background:linear-gradient(140deg,#102035,#0b1929);box-shadow:none}
.card>:is(p,h1,h2,h3,h4),.card>.muted{margin:0}
.page .card>:is(h2,h3),.page .section-title{font-size:16px;line-height:1.35;margin:0;font-weight:650}
.card .card{background:#13263b;box-shadow:none}
.card>:is(.stack,form){min-width:0}
.kv{gap:12px;padding:0;font-size:13px;line-height:1.45}
.kv>.muted{flex:1;min-width:0;font-size:12px}
.kv-value{font-weight:550;max-width:62%;min-width:0}
.field{gap:6px;font-size:12px;line-height:1.4}
.field-label{font-weight:600}
.field>small{font-size:11px;line-height:1.4}
.input,.select,textarea{min-height:44px;border-radius:9px;padding:10px;font-size:14px;line-height:1.4;background:#091726;border-color:#354b64}
textarea{min-height:96px}
.btn{min-height:44px;padding:9px 12px;border-radius:10px;font-size:13px;line-height:1.3;gap:7px}
.btn>svg{width:19px;height:19px}
.btn-secondary{border-color:#344c66}
.btn-ghost{padding-inline:9px}
.form-group{display:grid;gap:8px;min-width:0}
.form-group>p,.pay-form>p,.auth-form>p{margin:0;font-size:12px}
.form-group+.form-group{border-top:1px solid var(--line);padding-top:12px}
.notice{padding:9px 10px;gap:8px;font-size:12px;line-height:1.45;border-radius:10px;min-width:0}
.notice>svg{width:18px;height:18px;margin-top:1px}
.grid{gap:10px}
.page-actions{gap:8px;margin-top:12px}
.page-actions:empty{display:none}
.page-actions>.notice{order:2}
.detail-header{min-height:44px;gap:8px}
.detail-title{font-size:18px;line-height:1.3}
.back-button{font-size:0;padding:10px;flex:0 0 44px}
.back-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.badge{align-self:flex-start;font-size:11px;line-height:1.3;padding:4px 7px;max-width:100%;overflow-wrap:anywhere}
.amount-card{gap:5px}
.amount-value{font-size:28px;line-height:1.2;margin:0;letter-spacing:-.025em;overflow-wrap:anywhere}
.amount-card>.muted{font-size:12px}
.filter-row{gap:6px}
.filter-row .btn{padding-inline:8px;font-size:12px}
.empty-state{padding:20px 14px;text-align:center;align-items:center}
.empty-state>p{max-width:34em}
.list-panel{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0d1c2e}
.section-disclosure{border:1px solid var(--line);border-radius:12px;background:#0b1a2b;min-width:0}
.section-disclosure>summary{cursor:pointer;min-height:44px;padding:12px;font-size:13px;font-weight:600;line-height:1.45;color:#bdcbe0}
.section-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.disclosure-content{display:flex;flex-direction:column;gap:10px;padding:0 12px 12px;min-width:0}
.disclosure-content>:is(p,ol,ul){margin:0;font-size:12px;line-height:1.5}
.inset-summary{display:flex;flex-direction:column;gap:8px;padding:12px;background:#13263a;border-radius:10px;min-width:0}
.inset-summary .section-disclosure{border:0;background:transparent}
.inset-summary .section-disclosure>summary{padding:8px 0;min-height:44px}
.inset-summary .disclosure-content{padding:0}
/* Home/My: compact balance hierarchy with the address on its own clear row. */
.balance-card,.balance-card.tp-wallet-hero{display:block;gap:0;padding:12px;border-radius:14px;min-height:0}
.balance-card-head,.balance-card--home .balance-card-head{min-height:22px;justify-content:space-between;font-size:12px;gap:8px}
.balance-card .balance-eye{margin:-11px -4px;flex-shrink:0}
.balance-card-amount{margin:3px 0 7px;gap:6px;line-height:1.15}
.balance-card-amount>strong{font-size:28px}
.balance-card-amount>span{font-size:14px}
.balance-card-network{font-size:10px;padding:3px 7px}
.balance-card-native,.balance-card--home .balance-card-native{font-size:12px;line-height:1.4;margin-top:9px}
.balance-card--home .balance-card-native{padding-top:8px;margin-top:9px}
.balance-card-native>strong{font-size:13px}
.balance-card--overview .balance-card-balances{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:3px}
.balance-card--overview .balance-card-amount{margin:0;flex-wrap:wrap;min-width:0}
.balance-card--overview .balance-card-native{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex-shrink:0;margin:0;font-size:11px}
.balance-card-address{padding-top:8px;margin-top:10px}
.balance-card-address-label{font-size:10px}
.balance-card-address-row{margin-top:2px;min-height:32px}
.balance-card-copy{margin:-6px 0;flex-basis:44px}
.balance-card-full-address{font-size:11px;line-height:1.5}
.tp-card-watermark{width:105px;height:125px;opacity:.3}
.tp-section-head{padding-bottom:10px}
.tp-action-grid{margin-top:12px;gap:8px}
.tp-action-card{min-height:82px;padding:8px 2px;gap:4px;border-radius:12px}
.tp-action-circle .tp-icon{width:27px;height:27px}
.tp-action-card strong{font-size:13px}
.tp-action-card small{font-size:10px}
.tp-activity{margin-top:20px}
.tp-activity-head{margin-bottom:10px}
.tp-activity-head h2{font-size:20px}
.tp-activity-list{padding:0 12px;border-radius:14px}
.tp-activity-row{min-height:60px;padding:10px 0;gap:10px}
.tp-activity-symbol{width:34px;height:34px}
.tp-activity-info strong,.tp-activity-value strong{font-size:12px}
.tp-activity-info small,.tp-activity-value small{font-size:11px}
.tp-home-note{margin-top:16px;font-size:11px}
.tp-app .app-page-content:has(.my-page-polished){padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
.my-page-polished{gap:12px}
.my-page-polished .my-profile-button{min-height:60px;padding:3px!important;gap:12px}
.my-page-polished .my-avatar{width:44px;height:44px}
.my-page-polished .my-avatar>svg{width:27px;height:27px}
.my-page-polished .my-profile-copy>strong{font-size:18px}
.my-page-polished .my-profile-copy .muted{font-size:12px}
.my-page-polished .my-menu-grid{gap:0;padding:3px;border:1px solid var(--line);border-radius:14px;background:#0d1c2e;grid-auto-rows:auto}
.my-page-polished .my-menu-item{height:auto;min-height:78px;padding:8px 3px!important;background:transparent!important;border:0!important;border-radius:0;grid-template-rows:24px 16px 12px;gap:3px;align-content:center}
.my-page-polished .my-menu-item:nth-child(-n+6){border-bottom:1px solid #23384d!important}
.my-page-polished .my-menu-item:not(:nth-child(3n)){border-right:1px solid #23384d!important}
.my-page-polished .my-menu-icon{width:24px;height:24px}
.my-page-polished .my-menu-icon svg{width:22px;height:22px}
.my-page-polished .my-menu-item>strong{font-size:12px;line-height:16px}
.my-page-polished .my-menu-subtitle{font-size:10px;line-height:12px;min-height:12px}
/* Wallet assets are rows in one panel rather than large repeated cards. */
.hw-section-heading{gap:8px}
.hw-section-heading .section-title{margin:0}
.hw-section-heading .btn{font-size:12px}
.hw-address-card{padding:12px;gap:8px}
.hw-full-address{background:transparent;border:0;border-radius:0;padding:0;margin:0;font-size:11px;color:#dbe6f6;line-height:1.5}
.hw-address-card>.muted{font-size:11px;margin:0}
.hw-address-card .hw-wallet-actions{margin-top:4px}
.hw-assets .hw-section-heading{margin-bottom:8px}
.hw-wallet-token.card{padding:0;border:0;border-radius:0;background:transparent;gap:0}
.hw-wallet-token+.hw-wallet-token,.hw-manage-token-row+.hw-manage-token-row{border-top:1px solid var(--line)}
.hw-wallet-token-content{min-height:64px;padding:10px 12px;gap:10px;line-height:1.4}
button.hw-wallet-token-content:hover{background:#14283c}
.hw-token-mark{width:34px;height:34px;flex-basis:34px;font-size:16px}
.hw-token-details,.hw-wallet-token-amount{gap:2px}
.hw-token-details strong,.hw-wallet-token-amount strong{font-size:13px}
.hw-token-details .muted,.hw-wallet-token-amount .muted{font-size:11px}
.hw-token-hint{margin:8px 0 0;font-size:11px;line-height:1.45}
.hw-manage-token-row{display:flex;flex-direction:row;align-items:center;padding:10px 12px;min-height:64px;background:transparent;border:0;border-radius:0;gap:10px}
.hw-manage-tokens>.muted{margin:0;font-size:12px;line-height:1.45}
/* Payment, swap and receive prioritize the main task. */
.receive-card{align-items:center;gap:10px}
.receive-brand{font-size:13px}
.receive-card>.muted{font-size:12px}
.receive-qr-frame{width:min(100%,208px);margin:0 auto;padding:5px;border-radius:12px;box-shadow:none}
.receive-card .badge{align-self:center;font-size:10px}
.receive-card .section-title{font-size:12px;color:var(--muted);margin-top:2px}
.receive-card .full-address{margin:0;font-size:12px;line-height:1.5;width:100%;max-width:100%}
.receive-card .equal-actions{width:100%;margin-top:4px}
.equal-actions>.btn{min-height:44px}
.pay-form,.p2p-trade-form,.p2p-reference-form,.auth-form,.appeal-form,.my-form{gap:12px}
.pay-form .field-error{margin:0}
.amount-input-wrap{border-color:#354b64;border-radius:9px;gap:0}
.amount-input-wrap .btn{min-width:44px;padding:8px}
.pay-fee-line{padding:8px 0 0;font-size:12px;gap:8px}
.pay-fee-line .muted{font-size:12px}
.payment-recipient{padding:0 0 10px}
.payment-recipient p{margin:0}
.payment-recipient .full-address{margin:4px 0 0;font-size:12px}
.swap-token-fields{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:6px;align-items:end}
.swap-token-fields .select{font-size:12px;padding-inline:7px;min-width:0}
.swap-direction{width:44px;min-width:44px;height:44px;margin:0;align-self:end;padding:10px}
.swap-direction>svg{width:22px;height:22px}
.swap-quote{gap:6px}
.swap-quote>.muted{font-size:12px;margin:0}
.swap-quote>.amount-value{font-size:26px}
.swap-quote>:is(.section-disclosure){margin-top:2px}
.review-amount-pair .amount-value{font-size:22px}
.review-amount-pair .amount-card{padding:12px;min-width:0}
.payment-status-card,.order-status-hero,.appeal-status-hero,.p2p-match-card{padding:16px 12px;gap:8px;align-items:center}
.status-symbol,.order-status-icon,.appeal-status-mark,.p2p-match-visual{width:48px;height:48px;margin:0 auto 4px;border-radius:14px;background:#1b3047;color:#9cb4d1}
.status-symbol>svg,.order-status-icon>svg,.appeal-status-mark>svg,.p2p-match-visual>svg{width:26px;height:26px}
.payment-status-amount{font-size:26px;margin:4px 0}
.page .order-status-hero h1,.page .appeal-status-hero h1{font-size:22px;line-height:1.25;margin:4px 0}
.order-status-hero p,.appeal-status-hero p,.p2p-match-card p{line-height:1.45;font-size:12px}
/* P2P orders: summary, payee, reference; help stays folded. */
.p2p-entry-intro{padding:0}
.p2p-entry-intro p{margin:0;font-size:13px;line-height:1.45}
.p2p-trade-form .p2p-method-hint{margin:0;font-size:11px;line-height:1.4}
.p2p-estimate{gap:3px;margin:0}
.p2p-estimate>.muted{font-size:12px}
.p2p-crypto-amount{font-size:24px;line-height:1.25;color:var(--text)}
.p2p-quote{background:#13263b}
.p2p-explainer{padding-left:18px;margin:0}
.p2p-explainer li{margin:6px 0;line-height:1.5;color:var(--muted)}
.p2p-order-progress h2{margin:0}
.p2p-order-progress>p{font-size:12px;line-height:1.45}
.p2p-order-progress>.order-summary-amount{background:transparent;border:0;padding:0;border-radius:0;gap:4px}
.p2p-escrow{gap:8px;border-top:1px solid var(--line);padding-top:10px;font-size:12px}
.p2p-escrow>svg{color:#60dcb6;width:20px;height:20px}
.p2p-escrow p{margin:3px 0 0;font-size:11px;line-height:1.45}
.p2p-payee-card>p,.p2p-receiving-card>p{margin:0;line-height:1.45;font-size:12px}
.p2p-sample-payee{padding:10px;margin:0;background:#13263b;border-radius:9px}
.p2p-reference-form>p{font-size:11px;line-height:1.45}
.p2p-order-tools .btn{min-height:44px;font-size:12px}
.order-card-top,.order-card-amounts,.order-card-bottom{gap:8px;flex-wrap:wrap}
.order-list-card{padding:12px;gap:9px}
.order-card-amounts strong{font-size:17px}
.order-card-amounts>span{font-size:13px}
.order-card-bottom{font-size:11px;color:var(--muted)}
.order-side{font-size:11px;padding:3px 6px}
.order-side-buy{background:#163c34;color:#72dfb9}
.order-side-sell{background:#3b2b20;color:#ffc496}
.orders-list{gap:8px}
.order-list-card:hover,.appeal-list-card:hover{background:#15293e}
.orders-filters,.appeal-filters{background:#101f31;padding:3px;gap:3px}
.orders-filters .btn,.appeal-filters .btn{min-height:44px;color:var(--muted);padding:8px}
.orders-filters .btn.is-active,.appeal-filters .btn.is-active{background:#243b54;color:var(--text);box-shadow:none}
/* Account forms, preferences and methods use aligned rows. */
.my-detail-page .card>.field{margin:0}
.my-setting-row{padding:0 0 10px;gap:12px;border-bottom:1px solid var(--line)}
.my-setting-copy{gap:3px}
.my-setting-copy>.muted{font-size:11px}
.my-setting-link{padding:10px 0;min-height:44px;border-radius:0;color:#c8d6ea}
.my-setting-link+.my-setting-link{border-top:1px solid var(--line)}
.my-setting-link:has(+.my-setting-link){margin-bottom:-12px}
.my-security-emblem{width:44px;height:44px;margin-bottom:0;border-radius:12px;background:#25233a;color:#ff8596}
.my-sample-document{padding:16px 12px;margin:0;background:#13263b;border-color:#405675;color:#b6c9e1}
.my-form input[readonly]{background:#14273b;color:#b6c5d8}
.collection-method-list{gap:0}
.collection-method-row{padding:10px 12px}
.collection-method-row+.collection-method-row{border-top:1px solid var(--line)}
.collection-method-top{flex-wrap:nowrap;gap:9px}
.collection-method-mark,.collection-method-mark.is-upi{width:34px;height:34px;border-radius:10px;background:#2b253d;color:#ff8c9c;font-size:14px}
.collection-method-copy{min-width:0;flex:1}
.page .collection-method-copy>.section-title{font-size:14px;margin:0}
.collection-method-copy>.muted{font-size:10px;line-height:1.4}
.collection-method-top>.btn{flex-shrink:0;padding:9px;font-size:12px}
.collection-page>.muted{margin:0;font-size:12px}
.my-guide-icon,.my-notification-icon{width:36px;height:36px;border-radius:10px;background:#142c43;color:#afc7e5}
.my-guide-copy{font-size:13px;line-height:1.6;margin:0}
.my-guide-intro{gap:10px}
.my-guide-intro>.muted{font-size:12px}
.my-notification-top{gap:8px}
.my-notification-top .section-title{font-size:14px;min-width:0}
.my-transaction-heading{gap:8px;flex-wrap:wrap}
.my-transaction-title{gap:8px;font-size:14px}
.my-full-address{font-size:11px;line-height:1.45}
.my-transaction-filters .btn{font-size:11px}
/* Authentication starts with the form; supporting reading stays compact. */
.auth-shell{gap:12px;max-width:520px}
.auth-intro{padding:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.auth-symbol{width:38px;height:38px;border-radius:11px;background:#2d2338;color:#ff8093}
.auth-symbol>svg{width:24px;height:24px}
.auth-wordmark{font-size:20px;letter-spacing:-.03em}
.auth-intro>:is(h1,h2){font-size:22px;line-height:1.25;margin:0}
.auth-intro>p{font-size:12px;line-height:1.45;margin:0;width:100%}
.auth-card{padding:12px;gap:12px}
.auth-form .btn,.auth-footer .btn{min-height:44px}
.auth-form .field{gap:6px}
.auth-password>button{min-width:44px;min-height:44px;right:0;padding:8px}
.auth-footer{margin:0;gap:4px 8px;font-size:12px}
.auth-footer p{margin:0;font-size:12px}
.auth-benefits{gap:8px;margin:0}
.auth-benefits li{font-size:12px;line-height:1.4;gap:8px}
.auth-success{gap:10px}
.appeal-list-card{gap:8px}
.page .appeal-list-card h2{font-size:15px}
.appeal-description{min-height:96px;line-height:1.5}
.appeal-evidence-row{padding:9px;background:#14273b;border-color:#314861;color:#c4d3e6}
.appeal-stage{padding-bottom:16px;gap:10px}
.appeal-stage-marker{background:#172b40;border-color:#3d536c;color:#aabbd2}
.appeal-stage:not(:last-child)::after{background:#30465e}
.appeal-case-description{font-size:13px;line-height:1.6;margin:0}
.appeal-case-actions .btn{min-height:44px}
/* Dialogs are content-sized and actions wrap before labels collide. */
.modal-card{padding:16px;border-radius:16px}
.modal-heading{margin-bottom:12px;gap:8px}
.modal-heading h2{font-size:19px}
.modal-actions{gap:8px;margin-top:12px;flex-wrap:wrap}
.modal-actions .btn{flex:1 1 110px}
@media(min-width:701px){
 :root{--balance-padding:14px;--balance-amount:32px}
 .card,.auth-card{padding:16px}
 .balance-card,.balance-card.tp-wallet-hero{padding:14px}
 .balance-card-amount>strong{font-size:32px}
 .my-page-polished .my-menu-item{min-height:86px;height:auto}
 .my-page-polished .my-menu-item>strong{font-size:12px}
 .my-page-polished .my-menu-subtitle{font-size:10px}
 .tp-action-card{min-height:90px}
 .tp-action-circle .tp-icon{width:30px;height:30px}
 .tp-action-card strong{font-size:13px}
 .tp-action-card small{font-size:10px}
 .hw-wallet-token.card{padding:0}
 .hw-wallet-token-content{padding:12px 14px}
 .page .card.order-summary-amount{padding:0}
}
@media(max-width:350px){
 .my-page-polished .my-menu-item{min-height:76px}
 .my-page-polished .my-menu-item>strong{font-size:10px}
 .my-page-polished .my-menu-subtitle{font-size:9px}
 .balance-card--overview .balance-card-balances{gap:6px}
 
 .collection-method-row{padding:8px}
 .collection-method-top{gap:6px}
}

.tp-view-all{min-height:44px;padding:10px 0 10px 8px}
.order-card-amounts{flex-direction:row;align-items:baseline}
.order-preview-controls .notice{margin-bottom:0}
.order-status-actions .btn{min-height:44px}
.order-stage-list{margin:0}
.order-stage{padding-bottom:16px}
.order-stage:not(:last-child)::after{background:#30465e}
.order-stage-marker{background:#14273c;border-color:#3a506b;color:#b4c4d9}
.guide-sections .section-disclosure{border:0;border-radius:0;background:transparent}
.guide-sections .section-disclosure+.section-disclosure{border-top:1px solid var(--line)}
/* Short labels retain readable type while secondary text may wrap naturally. */
.tp-action-card small{white-space:normal;line-height:1.3}
.field:has(>input[type=checkbox]){flex-direction:row;align-items:center;gap:9px;min-height:44px}
.field>input[type=checkbox]{order:-1;flex:0 0 20px;min-height:20px;height:20px;width:20px;margin:0}
.my-check-row{min-height:44px;align-items:center}
@media(max-width:350px){
 .my-page-polished .my-menu-item>strong{font-size:12px}
 .my-page-polished .my-menu-subtitle{font-size:10px}
}
.tp-header-brand{min-height:44px}
.tp-header-circle{width:44px;height:44px;min-width:44px;min-height:44px}
.tp-bottom-item{min-height:44px}
.demo-preview>summary{min-height:44px;padding:11px 0;font-size:13px;line-height:1.5;cursor:pointer}
.demo-preview>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Preserve Home's approved burgundy balance treatment over the shared card base. */
.balance-card--home.tp-wallet-hero{background:radial-gradient(circle at 104% -10%,#da163f 0%,#68142e 28%,transparent 62%),linear-gradient(119deg,#250f22 3%,#1c1328 43%,#380f24 75%,#72102e 100%)}
.field>small{font-weight:400}
.input,.select,textarea{font-weight:500}
.input::placeholder,textarea::placeholder{font-weight:400}
.my-setting-link{justify-content:flex-start}
.auth-form>.btn-ghost{align-self:flex-end}
.page .receive-card>.section-title{font-size:12px;font-weight:600;color:var(--muted)}
