/* Keep the bridge network choices visible instead of inside an OS picker. */
.modal[data-kind="native-bridge-form"]{height:auto;min-height:0;max-height:min(90dvh,800px);grid-template-rows:auto minmax(0,auto);overflow:hidden}
.modal[data-kind="native-bridge-form"] .modal-body{min-height:0;padding:20px;overflow-y:auto}
.modal[data-kind="native-bridge-form"] .modal-header{align-items:center;padding:18px 20px}
.modal[data-kind="native-bridge-form"] .modal-header .icon-button{width:44px;height:44px;margin:-8px -8px -8px 0}
.native-bridge-source{display:flex;align-items:center;gap:10px;padding:12px 14px;margin-bottom:22px;border:1px solid var(--line);border-radius:12px;background:#1b102b}
.native-bridge-source>span:nth-child(2){display:grid;gap:1px}
.native-bridge-source small{color:var(--muted);font-size:11px}
.native-bridge-source strong{font-size:14px;font-weight:600}
.native-bridge-source-token{margin-left:auto;color:var(--muted);font-size:12px}
.native-bridge-network-icon{width:26px;height:26px;min-width:26px;object-fit:contain;border-radius:50%;flex-shrink:0}
.native-bridge-destinations{padding:0;margin:0 0 20px;border:0;min-width:0}
.native-bridge-destinations legend{padding:0;color:var(--text);font-size:14px;font-weight:600}
.native-bridge-destinations p{margin:5px 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.native-bridge-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.native-bridge-network{position:relative;display:block;min-width:0;cursor:pointer}
.native-bridge-network input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.native-bridge-network-card{display:flex;align-items:center;gap:8px;min-height:56px;padding:10px;border:1px solid #473053;border-radius:12px;background:#180d25;font-size:12px;font-weight:550}
.native-bridge-network-card>span:first-of-type{min-width:0;overflow-wrap:anywhere}
.native-bridge-network-mark{display:block;width:14px;height:14px;min-width:14px;margin-left:auto;border:1px solid #866696;border-radius:50%}
.native-bridge-network input:checked+.native-bridge-network-card{border-color:var(--pink);background:#48203f55;box-shadow:inset 0 0 0 1px var(--pink)}
.native-bridge-network input:checked+.native-bridge-network-card .native-bridge-network-mark{border:4px solid var(--pink);background:var(--bg)}
.native-bridge-network input:focus-visible+.native-bridge-network-card{outline:3px solid var(--cyan,#22d3ee);outline-offset:3px}
.modal[data-kind="native-bridge-form"] .field-label{font-size:12px}
.modal[data-kind="native-bridge-form"] .primary-button{width:100%;min-height:48px;font-size:14px}
.modal[data-kind="native-bridge-form"] .native-bridge-fee-note{margin:12px 0 0;font-size:11px;line-height:1.6;color:var(--muted)}
@media(max-width:350px){.native-bridge-network-card{gap:6px;padding:9px;font-size:11px}.native-bridge-network-icon{width:22px;height:22px;min-width:22px}.native-bridge-network-mark{width:12px;height:12px;min-width:12px}}

/* The receive QR stays local, high contrast, and clear of labels or logos. */
.modal[data-kind="receive"]{height:fit-content;min-height:0;max-height:min(90dvh,800px);grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.modal[data-kind="receive"] .modal-header{align-items:center;padding:18px 20px}
.modal[data-kind="receive"] .modal-header .icon-button{width:44px;height:44px;min-width:44px;margin:-8px -8px -8px 0}
.modal[data-kind="receive"] .modal-body{min-height:0;padding:18px 20px;overflow-y:auto}
.modal[data-kind="receive"] .modal-footer{padding:16px 20px}
.modal[data-kind="receive"] .primary-button{min-height:48px}
.native-receive-network{display:flex;justify-content:center;align-items:center;gap:8px;font-size:14px;font-weight:600;margin-bottom:14px}
.native-receive-network .network-icon{width:24px;height:24px;flex-shrink:0}
.native-receive-code{display:flex;justify-content:center}
.native-receive-qr{display:block;width:min(224px,100%);height:auto;aspect-ratio:1;background:#fff;border-radius:8px;flex-shrink:1}
.modal[data-kind="receive"] .native-receive-caption{text-align:center;font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0}
.native-receive-address{font-size:13px;line-height:1.7;text-align:center;overflow-wrap:anywhere;user-select:all}
.native-receive-notice{margin-top:16px;font-size:12px;line-height:1.6;color:var(--muted)}
.native-receive-notice strong{color:var(--text)}
.native-receive-help{margin-top:8px;font-size:12px;line-height:1.6;color:var(--muted)}
.native-receive-help summary{display:list-item;padding:12px 0;cursor:pointer;min-height:44px}
.native-receive-help p{margin:0 0 8px}

/* Native token actions keep the chart and transaction entry together. */
.native-token-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 10px}
.native-token-actions .action-button{min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:13px;padding:10px 4px}
.native-token-actions .action-button>span{font-size:23px;line-height:1}
.native-token-actions button:disabled{opacity:.4;cursor:not-allowed}
.native-token-note{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 16px}
.native-swap-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:16px 0}
.native-swap-pair .field{min-width:0;margin:0}
.native-token-select{position:relative;display:flex;align-items:center}
.native-token-select img{position:absolute;left:10px;width:22px;height:22px;pointer-events:none;z-index:1}
.native-token-select select{padding-left:40px;padding-right:22px;min-height:58px;width:100%;font-size:14px}
.modal[data-kind="transfer-swap-form"],.modal[data-kind="transfer-form"],.modal[data-kind="asset-chart"]{height:fit-content;min-height:0;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 28px);margin:auto;overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto}
.modal[data-kind="transfer-swap-form"] .modal-body,.modal[data-kind="transfer-form"] .modal-body,.modal[data-kind="asset-chart"] .modal-body{overflow-y:auto;min-height:0}

/* Dialogs live in the browser top layer, outside the page's safe-area padding. */
.modal[data-kind]{position:fixed;inset:calc(env(safe-area-inset-top,0px) + 12px) 0 calc(env(safe-area-inset-bottom,0px) + 12px);margin:auto;min-height:0;height:fit-content;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto}
.modal[data-kind] .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.modal[data-kind] .modal-header{align-items:center;padding:18px 20px;gap:12px}
.modal[data-kind] .modal-header h2{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.modal[data-kind] .modal-header .icon-button{flex-shrink:0;width:44px;height:44px;min-width:44px;margin:0}
.modal[data-kind] .modal-footer{padding:14px 20px}
.modal[data-kind] .modal-footer:empty{display:none}
.modal[data-kind] .review-row{gap:14px;align-items:start}
.modal[data-kind] .review-address{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.topbar{padding-top:calc(16px + env(safe-area-inset-top,0px));}.modal[data-kind]{width:calc(100% - 24px)}.modal[data-kind] .modal-body{padding:18px 20px}}

.modal .native-apple-login{background:#fff;color:#000;border:1px solid #fff;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;min-height:48px}
.modal .native-apple-login:disabled{opacity:.5}

.native-staking-card{margin-bottom:20px}
.native-staking-card h2{margin:14px 0 10px}
.native-staking-card>p{line-height:1.5}
.native-staking-card>.primary-button{width:100%;min-height:48px;margin-top:10px}
.native-staking-note{font-size:13px;line-height:1.55;color:var(--muted,#ada4bd)}
.native-staking-actions{display:flex;gap:12px;border:0;padding:0;margin:0 0 20px}
.native-staking-actions legend{font-size:14px;margin-bottom:10px}
.native-staking-actions label{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 16px;border:1px solid #49305e;border-radius:12px;flex:1;cursor:pointer}
.native-staking-actions label:has(input:checked){border-color:#ed70d1;background:#302039}
.native-staking-actions input{accent-color:#ed70d1;width:18px;height:18px}
[data-kind^="native-staking"] .primary-button{min-height:48px}
[data-kind^="native-staking"] .modal-footer{display:grid;gap:8px}
[data-kind^="native-staking"] .review-row{gap:14px}
[data-kind^="native-staking"] .review-address{overflow-wrap:anywhere;text-align:right}
