/* H/P2P-only polish: no legacy selector or financial behavior changes. */
.hn-shell .btn,.hn-tabs button,.hn-p2p-assets button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.hn-shell .btn .tf-icon,.hn-tabs .tf-icon,.hn-field-label .tf-icon{width:17px;height:17px;flex:0 0 17px}
.hn-shell .btn span{min-width:0}.hn-pagination button:first-child .tf-icon{transform:rotate(180deg)}
.hn-toolbar h2{display:flex;align-items:center;gap:10px}.hn-toolbar h2>.tf-icon{width:24px;height:24px;color:#1265f6}
.hn-shell .btn{transition:box-shadow .16s,background-color .16s,transform .16s}.hn-shell .btn:not(:disabled):hover{box-shadow:0 5px 16px #1265f619;transform:translateY(-1px)}
.hn-card{position:relative;overflow:hidden;box-shadow:0 7px 25px #165bba04}.hn-card:before{content:"";position:absolute;left:0;top:24px;width:3px;height:28px;border-radius:0 3px 3px 0;background:#b9d8ff}
.hn-grid>.hn-empty{grid-column:1/-1;margin:0;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center}.hn-empty h2{line-height:1.6;max-width:40ch}
.hn-p2p-overview{background:radial-gradient(ellipse at 100% 0,#eaf6ff,transparent 65%),#fff;box-shadow:0 10px 35px #1265dd06}
.hn-p2p-assets button{min-height:36px}.hn-p2p-assets .coin-logo,.hn-usdt{width:19px;height:19px;flex:0 0 19px}
.hn-usdt{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#23a784;color:white;font-size:15px;font-weight:700;font-family:Arial,sans-serif}
.hn-field-label,.hn-form-section{display:flex;align-items:center;gap:8px}.hn-field-label>.tf-icon{color:#7195c4}
.hn-form-section{padding:15px 0 12px;margin:6px 0 14px;border-bottom:1px solid #e3edfb;color:#17457b;font-size:14px;font-weight:700}.hn-form-section>.tf-icon{width:19px;height:19px;color:#1265f6}
.hn-dialog input,.hn-dialog select{font:inherit;font-variant-numeric:tabular-nums}.hn-dialog .hn-actions .btn{white-space:normal;line-height:1.5}.hn-dialog .hn-muted{font-size:12px;line-height:1.8}
.hn-collateral-estimate{display:block;padding:12px 0;overflow-wrap:anywhere}.hn-collateral-estimate:empty{padding:0}
.hn-loan-preview{display:block;padding:14px 16px;margin:0 0 18px;border:1px solid #ccebdd;border-radius:12px;background:#f0faf6;color:#116e51;font-size:13px;line-height:1.8;font-weight:600;overflow-wrap:anywhere}.hn-loan-preview.invalid{background:#fff4f5;border-color:#f3ced4;color:#a52c42}
.hn-shell [aria-busy=true]{cursor:progress}.hn-manual-asset{margin:0 0 18px;border:1px solid #dce8fa;border-radius:12px;padding:12px 15px;color:#4b6c96;font-size:12px}.hn-manual-asset>summary{cursor:pointer;min-height:26px;line-height:26px}.hn-manual-asset[open]>.hn-dialog-grid{margin-top:15px}.hn-manual-asset[hidden]{display:none}
.hn-p2p-amounts{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #e5edf8;font-size:13px}.hn-p2p-amounts span{color:#577296}.hn-p2p-amounts strong{color:#193d68;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}.hn-shell .hn-card .hn-p2p-amounts~.hn-p2p-order-meta{margin-top:14px}
.hn-review-row,.hn-valuation,.hn-p2p-order-meta,.hn-p2p-terms{overflow-wrap:anywhere}.hn-valuation small{display:block;line-height:1.8}.hn-pair>span{min-width:0;flex:1}.hn-pair>strong{min-width:0;flex:1.4}
.hn-loading{border:1px solid #dce8fa;border-radius:24px;background:linear-gradient(135deg,#fff,#f2f8ff);padding:38px 30px;margin:20px 0}.hn-loading>.tf-icon{width:32px;height:32px;color:#1265f6}.hn-loading h2{font-size:21px;margin:17px 0 8px}.hn-loading p{color:#6984a6;font-size:13px;line-height:1.8}
.hn-skeleton{height:12px;margin-top:22px;border-radius:7px;background:linear-gradient(100deg,#e7f0fc,#f6faff,#e7f0fc);background-size:200% 100%;animation:hn-read 1.8s ease-in-out infinite}.hn-skeleton.short{width:65%;margin-top:12px}
@keyframes hn-read{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.hn-skeleton{animation:none}.hn-shell .btn{transition:none}}
@media(max-width:720px){.hn-tabs button{gap:6px;padding:12px 10px}.hn-shell .hn-head{flex-wrap:wrap}.hn-head>div{min-width:0;flex:1 1 220px}.hn-head p{font-size:13px}.hn-p2p-overview-top{flex-wrap:wrap}.hn-p2p-summary{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:17px}.hn-p2p-summary>div:last-child{grid-column:1/-1;border-top:1px solid #e4edfa;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.hn-p2p-summary>div:last-child span{margin:0}.hn-p2p-summary>div:last-child strong{font-size:14px}.hn-dialog .hn-actions{display:grid;grid-template-columns:1fr;gap:10px}.hn-dialog .hn-actions .btn{width:100%;min-width:0;min-height:46px}.hn-loading{padding:28px 22px}.hn-p2p-shortcuts button{min-height:78px}.hn-tabs{overflow:visible}.hn-tabs button{white-space:normal}.hn-tabs .tf-icon{width:16px;height:16px;flex-basis:16px}}
.mainnet-ui dialog.hn-dialog[open]{display:flex;flex-direction:column;overflow:hidden;background:#fff}
.hn-dialog .hn-dialog-content{overflow:auto;min-height:0;overscroll-behavior:contain}
.hn-dialog .hn-dialog-top{flex:0 0 auto;background:radial-gradient(ellipse at 100% 0,#e6f4ff,transparent 65%),#fbfdff;box-shadow:inset 0 1px 0 #fff}
.hn-dialog .hn-dialog-top h2{display:flex;align-items:center;gap:12px;min-width:0;line-height:1.5}
.hn-dialog-badge{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border:1px solid #cfe1ff;border-radius:13px;background:linear-gradient(140deg,#fff,#edf6ff);color:#1265f6}
.hn-dialog-badge>.tf-icon{width:22px;height:22px}
.mainnet-ui dialog.hn-dialog .hn-dialog-top>.icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:0 0 44px;border:0;border-radius:10px;background:transparent;color:#728ba9;box-shadow:none;font-size:23px;line-height:1;display:flex;align-items:center;justify-content:center}
.mainnet-ui dialog.hn-dialog .hn-dialog-top>.icon-button:hover{background:#edf5ff;color:#1265f6}
body:has(dialog.hn-dialog[open]){overflow:hidden}
.hn-dialog::backdrop{backdrop-filter:blur(4px)}
.hn-dialog .hn-modal-error{background:#fff2f4;border-color:#f5c5cb;color:#a72742}
@media(max-width:800px){.hn-dialog::backdrop{backdrop-filter:none}.hn-dialog .hn-dialog-top h2{font-size:18px;gap:10px}.hn-dialog-badge{width:34px;height:34px;flex-basis:34px;border-radius:11px}.hn-dialog-badge>.tf-icon{width:20px;height:20px}}
@media(max-width:720px){.hn-review-row.hn-address-row{grid-template-columns:minmax(0,1fr);gap:7px}.hn-address-row>strong{text-align:left;font-family:ui-monospace,Consolas,monospace}.hn-dialog .hn-dialog-content{scroll-padding:18px}}
@media(forced-colors:active){.hn-shell button:focus-visible{outline:2px solid ButtonText}.hn-dialog-badge{border:1px solid CanvasText}}
@supports(appearance:base-select){
 .hn-dialog select.hn-icon-select,.hn-dialog select.hn-icon-select::picker(select){appearance:base-select}
 .hn-dialog select.hn-icon-select::picker(select){border:1px solid #cbdffc;border-radius:12px;padding:5px;background:#fff;color:#173756;box-shadow:0 12px 36px #193c6024}
 .hn-dialog select.hn-icon-select option{display:flex;align-items:center;gap:9px;padding:11px 12px;border-radius:8px;font-size:14px;line-height:1.5}
 .hn-dialog select.hn-icon-select option:checked,.hn-dialog select.hn-icon-select option:hover{background:#edf5ff;color:#1265f6}
 .hn-dialog select.hn-icon-select option>.tf-icon{width:18px;height:18px;flex:0 0 18px;pointer-events:none}
 .hn-dialog select.hn-icon-select option>.coin-logo{width:19px;height:19px;flex:0 0 19px}
 .hn-dialog select.hn-icon-select option::checkmark{color:#1265f6;margin-left:auto}
}

