/* Top bar wallet connection: button plus a modal with official wallet icons. */
#cellblock.cc .facility-nav{overflow:visible}
#cellblock.cc .cc-wallet{position:relative;display:flex;align-items:stretch;border-left:1px solid var(--line-2)}
#cellblock.cc .cc-wallet-button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:7px;padding:0 14px;cursor:pointer;color:#120808;background:#e7e0d6;font-weight:700;letter-spacing:.02em;white-space:nowrap}
#cellblock.cc .cc-wallet-button:hover,#cellblock.cc .cc-wallet-button:focus-visible{background:#fff}
#cellblock.cc .cc-wallet-button img{width:16px;height:16px;border-radius:4px;display:block;object-fit:contain}
#cellblock.cc .cc-wallet[data-state=connected] .cc-wallet-button{background:#1b1716;color:#9fd59a}
#cellblock.cc .cc-wallet[data-state=connected] .cc-wallet-button:hover{background:#262120}
#cellblock.cc .cc-wallet-menu{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:16px;background:rgba(5,4,4,.72);backdrop-filter:blur(2px);white-space:normal;text-transform:none;letter-spacing:0;line-height:1.4}
#cellblock.cc .cc-wallet-menu[hidden]{display:none}
#cellblock.cc .cc-wallet-panel{width:min(460px,100%);max-height:min(620px,calc(100vh - 32px));overflow:auto;padding:18px;background:#121010;border:1px solid #3a3230;box-shadow:0 24px 70px rgba(0,0,0,.7)}
#cellblock.cc .cc-wallet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#cellblock.cc .cc-wallet-head h3{margin:0;color:#f1ebe3;font-size:15px;font-weight:700}
#cellblock.cc .cc-wallet-close{all:unset;cursor:pointer;width:28px;height:28px;display:grid;place-items:center;color:#8d857e;font-size:20px}
#cellblock.cc .cc-wallet-close:hover,#cellblock.cc .cc-wallet-close:focus-visible{color:#f1ebe3;outline:1px solid #3a3230}
#cellblock.cc .cc-wallet-chain{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;margin-bottom:12px;background:#1c1817;border:1px solid #2c2624;color:#e7e0d7;font-size:12.5px}
#cellblock.cc .cc-wallet-chain img{width:16px;height:16px;display:block}
#cellblock.cc .cc-wallet-group h4{margin:10px 0 8px;color:#8d857e;font-size:11.5px;font-weight:400}
#cellblock.cc .cc-wallet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#cellblock.cc .cc-wallet-tile{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:104px;padding:12px 6px;cursor:pointer;background:#1b1817;border:1px solid #262120;color:#e7e0d7;font-size:12.5px;text-align:center}
#cellblock.cc .cc-wallet-tile:hover,#cellblock.cc .cc-wallet-tile:focus-visible{background:#221d1c;border-color:#e5484d}
#cellblock.cc .cc-wallet-tile small{color:#8d857e;font-size:10px;margin-top:-4px}
#cellblock.cc .cc-wallet-icon{width:44px;height:44px;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:#2a2423;color:#f1ebe3;font-weight:700;box-shadow:0 1px 0 rgba(255,255,255,.06) inset}
#cellblock.cc .cc-wallet-icon img{width:100%;height:100%;object-fit:contain;display:block}
/* Official marks on their brand app-icon colours. */
#cellblock.cc [data-brand=phantom] .cc-wallet-icon{background:#ab9ff2}
#cellblock.cc [data-brand=phantom] .cc-wallet-icon img{width:66%;height:66%;filter:brightness(0) invert(1)}
#cellblock.cc [data-brand=backpack] .cc-wallet-icon{background:#e33e3f}
#cellblock.cc [data-brand=backpack] .cc-wallet-icon img{width:60%;height:60%;filter:brightness(0) invert(1)}
#cellblock.cc [data-brand=trust] .cc-wallet-icon{background:#fff}
#cellblock.cc [data-brand=trust] .cc-wallet-icon img{width:62%;height:62%}
#cellblock.cc [data-brand=metamask] .cc-wallet-icon{background:#fff}
#cellblock.cc [data-brand=metamask] .cc-wallet-icon img{width:72%;height:72%}
#cellblock.cc [data-brand=solflare] .cc-wallet-icon,#cellblock.cc [data-brand=okx] .cc-wallet-icon{background:none}
#cellblock.cc .cc-wallet-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cellblock.cc .cc-wallet-session{display:grid;grid-template-columns:40px 1fr;gap:4px 12px;align-items:center;padding:12px;margin-bottom:8px;background:#1b1817;border:1px solid #262120}
#cellblock.cc .cc-wallet-session .cc-wallet-icon{grid-row:span 2}
#cellblock.cc .cc-wallet-session strong{color:#9fd59a;font-size:13px}
#cellblock.cc .cc-wallet-session code{color:#cfc8bf;font-size:11px;word-break:break-all}
#cellblock.cc .cc-wallet-action{all:unset;box-sizing:border-box;display:block;width:100%;padding:9px 12px;margin-top:6px;cursor:pointer;border:1px solid #2c2624;color:#e7e0d7;font-size:12.5px}
#cellblock.cc .cc-wallet-action:hover,#cellblock.cc .cc-wallet-action:focus-visible{border-color:#e5484d;background:#1a1514}
#cellblock.cc .cc-wallet-status{min-height:1em;margin:10px 2px 0;color:#cfc8bf;font-size:11px}
#cellblock.cc .cc-wallet-status[data-error=true]{color:#ff7a6e}
#cellblock.cc .cc-wallet-note{margin:6px 2px 0;color:var(--faint);font-size:10.5px}
@media(max-width:700px){
  #cellblock.cc .cc-wallet-button{padding:0 9px}
  #cellblock.cc .cc-wallet-button .cc-wallet-long{display:none}
  #cellblock.cc .cc-wallet[data-state=connected] .cc-wallet-button::after{content:'ON'}
  #cellblock.cc .cc-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
