#passkey-pilot-bar[hidden], #passkey-pilot-bar [hidden] {display:none !important;}
#passkey-pilot-bar {position:relative;z-index:1018;display:flex;align-items:center;gap:12px;padding:3px 20px;min-height:36px;box-sizing:border-box;background:#0e1322;color:#c3cad8;font:12px/1.5 system-ui,sans-serif;}
.passkey-brand {display:flex;align-items:center;gap:7px;white-space:nowrap;}
.passkey-brand strong {font-weight:500;color:#edf3ff;}
#passkey-pilot-bar p {margin:0;}
#passkey-pilot-bar button,#passkey-pilot-bar a,#passkey-pilot-bar summary {color:inherit;font:inherit;text-decoration:none;}
#passkey-pilot-bar button,#passkey-pilot-bar summary {border:0;border-radius:6px;background:transparent;cursor:pointer;padding:5px 8px;min-height:30px;}
#passkey-pilot-bar button:hover,#passkey-pilot-bar summary:hover,#passkey-pilot-bar a:hover {background:#232c42;color:#fff;}
#passkey-pilot-bar :focus-visible {outline:2px solid #bbc7df;outline-offset:2px;}
#passkey-details {width:22px;padding:0 !important;color:#919bb0 !important;}
#passkey-budget {margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;}
.passkey-bar-actions {display:flex;gap:4px;margin-left:auto;flex-shrink:0;}
.passkey-menu {position:relative;}
.passkey-menu summary {display:flex;align-items:center;gap:5px;list-style:none;white-space:nowrap;}
.passkey-menu summary::-webkit-details-marker {display:none;}
.passkey-menu:not([open]) > .passkey-popover {display:none;}
.passkey-popover {position:absolute;right:0;top:calc(100% + 7px);width:340px;max-width:calc(100vw - 24px);max-height:70dvh;overflow:auto;padding:12px;background:#0e1322;border-radius:8px;box-shadow:0 10px 40px #0009;color:#c3cad8;}
.passkey-popover-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;}
.passkey-popover-head h2 {margin:0 !important;}
.passkey-wallet-actions {width:250px;display:flex;flex-direction:column;align-items:stretch;gap:3px;}
.passkey-wallet-actions button,.passkey-wallet-actions a {text-align:left;display:block;padding:7px 8px !important;border-radius:6px;}
#passkey-menu-state {padding:5px 8px 9px;color:#919bb0;}
.passkey-narrow {display:none;}
#passkey-status:empty {display:none;}
#passkey-status {position:absolute;top:100%;right:20px;max-width:min(420px,calc(100vw - 24px));padding:9px 12px !important;background:#232c42;border-radius:6px;box-shadow:0 5px 20px #0006;}
.passkey-sr {position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;}
#passkey-activity-notice,#passkey-activity-history-notice {color:#919bb0;font-size:12px;margin:8px 0;}
.passkey-activity-row {display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center;text-decoration:none !important;font-size:12px !important;border:0 !important;border-radius:6px !important;padding:9px 6px !important;margin:0 !important;background:transparent !important;color:#dfe5f3 !important;}
.passkey-activity-row:hover {background:#232c42 !important;}
.passkey-activity-row small {color:#919bb0;grid-column:1 / -1;font-size:11px;}
.passkey-activity-state {font-size:11px;color:#aeb8cc;white-space:nowrap;}
#passkey-activity-all {width:100%;margin-top:8px;text-align:left;}
#passkey-activity-dialog {width:min(500px,calc(100% - 28px));}
.passkey-pilot dialog {position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 28px));max-height:90dvh;overflow:auto;background:#101725;color:#edf3ff;border:1px solid #3a4860;border-radius:12px;padding:24px;font:14px/1.5 system-ui,sans-serif;}
.passkey-pilot dialog::backdrop {background:rgba(0,0,0,.76);}
.passkey-pilot dialog h2 {font-size:16px;margin:0 0 18px;color:#fff;}.passkey-pilot dialog p {color:#b7c4d8;}
.passkey-pilot dialog button,.passkey-pilot dialog a {display:inline-block;font:inherit;border:1px solid #4b5b77;border-radius:7px;padding:9px 14px;color:#edf3ff;background:#223049;text-decoration:none;margin:4px 4px 4px 0;}
.passkey-pilot dialog .passkey-primary {background:#edf3ff;color:#101725;}
.passkey-pilot dialog dl>div {display:grid;grid-template-columns:135px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #263247;}
.passkey-pilot dialog dt {color:#a2b3cd;font-weight:400;}.passkey-pilot dialog dd {margin:0;overflow-wrap:anywhere;}
.passkey-pilot dialog details {margin-block:18px;}#passkey-address {font-family:monospace;overflow-wrap:anywhere;}
@media(max-width:600px){#passkey-pilot-bar{padding:3px 8px;gap:3px;} .passkey-pilot dialog {padding:20px;} .passkey-pilot dialog dl>div{grid-template-columns:105px 1fr;}}
@media(max-width:991.98px){
  /* Phone regions are fixed. Reserve the measured notice below the header,
     including when its locked-wallet or transaction status changes height. */
  html.m-on body.v2.passkey-pilot {
    --m-top:calc(var(--m-safe-t) + var(--m-head) + var(--m-comp) + var(--passkey-bar-height,0px));
  }
  html.m-on body.v2.passkey-pilot #passkey-pilot-bar {
    position:fixed;top:calc(var(--m-safe-t) + var(--m-head));
    left:var(--m-safe-l);right:var(--m-safe-r);z-index:1018;
  }
  html.m-on body.v2.passkey-pilot .app-container > header .hdr-tools {flex:1;}
  html.m-on body.v2.passkey-pilot header :is(.wallet-section,.connected-details,#header-wallet-btn) {min-width:0;max-width:100%;}
  html.m-on body.v2.passkey-pilot #address-display {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
@media(min-width:992px){
  body.v2.passkey-pilot {--passkey-frame-height:calc(100vh - 84px - var(--v2-band-h,32px) - var(--v2-notice-h,0px) - var(--passkey-bar-height,0px));}
  body.v2.passkey-pilot .trade-unified-layout,
  body.v2.passkey-pilot .trade-unified-layout.ticket-open {
    min-height:var(--passkey-frame-height) !important;
    max-height:var(--passkey-frame-height) !important;
  }
  body.v2.passkey-pilot #v2-col1,
  body.v2.passkey-pilot #v2-col2,
  body.v2.passkey-pilot #v2-col3 {min-height:0;max-height:var(--passkey-frame-height);}
  body.v2.passkey-pilot #v2-col2 {overflow:hidden;}
  body.v2.passkey-pilot .trade-preview-card {max-height:100%;overflow-y:auto;}
  html.v2-loading body.v2.passkey-pilot #v2-boot {height:var(--passkey-frame-height);}
}

#passkey-migration-status{overflow-wrap:anywhere;}
#passkey-migration-dialog [hidden]{display:none !important;}
#passkey-migration-address{overflow-wrap:anywhere;font-family:monospace;}
#passkey-migration-dialog label{display:block;margin:12px 0;color:#dfe5f3;}
#passkey-migration-dialog input,#passkey-migration-dialog select{display:block;width:100%;margin-top:6px;padding:9px;background:#182235;color:#fff;border:1px solid #4b5b77;border-radius:6px;font:inherit;}

#passkey-migration-cleanup input[type="checkbox"]{display:inline-block;width:auto;margin:0 6px 0 0;padding:0;vertical-align:middle;}

.passkey-pilot dialog button:disabled{opacity:.45;cursor:not-allowed;}

@media(max-width:1199px){
  #passkey-pilot-bar .passkey-wide {display:none;}
  #passkey-pilot-bar .passkey-narrow {display:inline;}
}
@media(max-width:600px){
  #passkey-pilot-bar {font-size:11px;}
  #passkey-pilot-bar button,#passkey-pilot-bar summary {padding:4px;}
  .passkey-brand {gap:0;}
  .passkey-bar-actions {gap:0;}
  #passkey-activity-count {white-space:nowrap;}
  #passkey-pilot-bar .passkey-popover {position:fixed;top:calc(var(--m-safe-t) + var(--m-head) + var(--passkey-bar-height,36px) + 6px);left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 150px);}
  #passkey-status {right:12px;}
}
@media(max-width:359px){#passkey-budget-short {font-size:10px;}.passkey-brand strong {display:none;}}

#passkey-info [hidden], #wp-passkey-about[hidden] {display:none !important;}
