/* One navigation row, with account actions at the far right. */
body .workspace-header,body #sidebar.workspace-header,body .product-sidebar.workspace-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;position:relative;inset:auto;width:100%;height:auto;min-height:64px;padding:0 24px;margin:0;border:0;border-bottom:1px solid var(--line);background:#0b120f;z-index:20;overflow:visible}
body .workspace-header .brand{display:flex;align-items:center;gap:9px;min-height:64px;padding:0;margin:0;white-space:nowrap;letter-spacing:.12em;font-size:17px;font-weight:650;color:var(--ink)}
body .workspace-header .brand img{width:26px;height:26px}body .workspace-header .brand small,body .workspace-header .brand-divider,body .workspace-header .network,body .workspace-header .sidebar-foot,body .workspace-header #preview-info{display:none!important}
body .workspace-header nav,body #sidebar.workspace-header nav,body .product-sidebar.workspace-header nav{display:flex;flex-direction:row;align-items:center;gap:19px;min-width:0;min-height:64px;margin:0;padding:0;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
body .workspace-header nav::-webkit-scrollbar{display:none}
body .workspace-header nav>a,body .workspace-header nav>button,body #sidebar.workspace-header nav>.nav,body .product-sidebar.workspace-header nav>.nav{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--muted);font-family:var(--ui-font);font-size:12px;font-weight:550;line-height:1.2;text-decoration:none;white-space:nowrap;transition:color .15s,text-shadow .15s}
body .workspace-header nav .icon{display:none}body .workspace-header nav b{font:inherit;color:inherit}
body .workspace-header nav>a:hover,body .workspace-header nav>button:hover,body .workspace-header nav>a:focus-visible,body .workspace-header nav>button:focus-visible{color:var(--green);text-shadow:0 0 14px #bdf47845}
body .workspace-header nav>[aria-current=page],body #sidebar.workspace-header nav>.active,body .product-sidebar.workspace-header nav>[aria-current=page]{color:var(--green);box-shadow:inset 0 -2px var(--green);background:none}
body .workspace-header nav>.open-terminal,body .workspace-header nav>.exit-terminal{padding:0 12px;min-height:36px;border:1px solid #456038;border-radius:7px;color:var(--green);background:#142013;font-weight:600}
body .workspace-header .header-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:auto;min-width:0;margin:0;flex-wrap:nowrap}
body .workspace-header .header-right>button{flex:0 1 auto;max-width:170px;min-height:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 13px;font-family:var(--ui-font);font-size:12px;border:1px solid #567441;border-radius:8px;background:#bdf478;color:#172111;font-weight:600}
body .workspace-header .header-right>button[hidden]{display:none!important}body .workspace-header .header-right .quiet{background:none;color:var(--muted);border-color:var(--line);max-width:90px}
body .workspace-header[data-connected=false] .profile-link{display:none!important}body .workspace-header .profile-link,body .workspace-header #local-profile{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:150px;min-height:38px;margin:0;padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:#101a13;color:var(--ink);font-size:12px}
body .workspace-header #local-profile:before{display:none}body .workspace-header .profile-link>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-notice{padding:8px 24px;margin:0;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}
body .workspace-utility:not(:has(.search)){display:none!important}body .shell>.workspace-utility{min-height:0;padding:12px 24px;background:var(--bg);border-bottom:0}body .workspace-utility .search{width:100%;max-width:560px;min-height:40px;margin:0;background:var(--panel);border:1px solid var(--line);border-radius:8px}
@media(max-width:1050px){body .workspace-header,body #sidebar.workspace-header,body .product-sidebar.workspace-header{grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:0 16px}body .workspace-header nav,body #sidebar.workspace-header nav,body .product-sidebar.workspace-header nav{grid-column:1/-1;grid-row:2;gap:22px;min-height:46px;width:100%;justify-content:flex-start}body .workspace-header .header-right{grid-column:2;grid-row:1}body .workspace-header .brand{min-height:56px}}
@media(max-width:700px){body .workspace-header,body #sidebar.workspace-header,body .product-sidebar.workspace-header{padding:0 12px!important;gap:0 8px!important}body .workspace-header .brand{font-size:15px;gap:7px;min-height:56px}body .workspace-header nav>a,body .workspace-header nav>button{flex:0 0 auto!important;padding:0!important;font-size:12px!important}body .workspace-header nav>.open-terminal,body .workspace-header nav>.exit-terminal{padding:0 11px!important;min-height:34px}body .workspace-header .header-right>button{max-width:128px;min-height:38px;font-size:11px;padding:8px 10px}body .workspace-header .profile-link,body .workspace-header #local-profile{max-width:100px;min-height:38px;font-size:11px!important;padding:5px 7px!important}body .workspace-header .header-right>.quiet{max-width:78px;font-size:10px}body .workspace-header[data-connected=true] .brand{font-size:0;gap:0}body .workspace-header[data-connected=true] .brand>span{display:none}body .shell>.workspace-utility{padding:12px}body .workspace-header .header-right #wallet{max-width:128px}.header-notice{padding:8px 12px}}
body .workspace-header #wallet,body .workspace-header #connect-wallet,body .workspace-header #connect{min-height:38px;padding:8px 13px;border:1px solid var(--green);border-radius:8px;background:var(--green);color:#172111;font-size:12px;font-weight:600;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .workspace-header nav b{display:inline!important}
@media(max-width:700px){body .workspace-header #wallet,body .workspace-header #connect-wallet,body .workspace-header #connect{max-width:128px;font-size:11px;padding:8px 10px}}
body .workspace-header nav b{font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important}
body .pool-banner,body .pool-paths>a,body .directory-heading,body .pool-table-head{background:var(--panel);border-color:var(--line);color:var(--ink)}body .pool-banner{border-radius:12px;border-left:1px solid var(--line)}body .pool-banner .liquidity-art{opacity:.55}body .pool-paths>a{border-radius:12px}body .pool-paths>a:hover{background:#142019;border-color:#4d6640}body .create-pool-link{background:#172713;color:var(--green);border-color:#4d6640;border-radius:8px}

@media(max-width:380px){body .workspace-header .profile-link>span:last-child{display:none}body .workspace-header .profile-link,body .workspace-header #local-profile{max-width:40px}body .workspace-header #connect,body .workspace-header #wallet,body .workspace-header #connect-wallet{max-width:112px}}

/* Clear legacy sidebar sizing before laying out the shared navigation. */
body #sidebar.workspace-header,body .product-sidebar.workspace-header,body .workspace-header{box-sizing:border-box;grid-template-rows:auto;max-width:100%;min-width:0}
body .workspace-header .brand{grid-column:1;grid-row:1;min-width:0;height:auto;align-self:stretch}
body .workspace-header nav,body #sidebar.workspace-header nav,body .product-sidebar.workspace-header nav{flex-wrap:nowrap;height:auto;max-width:100%;align-self:stretch}
body .workspace-header nav>.nav{min-width:0;width:auto;gap:0}
body .workspace-header nav>.nav>span{display:none}
body .workspace-header nav>.nav:before,body .workspace-header nav>.nav:after{display:none}
body .workspace-header .header-right{max-width:100%;position:static;transform:none}
@media(min-width:1051px){body .workspace-header nav{grid-column:2;grid-row:1}body .workspace-header .header-right{grid-column:3;grid-row:1}}
@media(max-width:1050px){body #sidebar.workspace-header,body .product-sidebar.workspace-header,body .workspace-header{grid-template-rows:56px 46px}body .workspace-header nav{margin:0;transform:none}body .workspace-header .brand{height:56px!important}body .workspace-header nav>a,body .workspace-header nav>button{align-self:stretch}body .workspace-header nav>.open-terminal,body .workspace-header nav>.exit-terminal{align-self:center}}

@media(max-width:700px){body .workspace-header nav{gap:20px!important;justify-content:flex-start!important}}

/* Quiet, consistent disclosure controls across the workspace. */
body select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%237d9588' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:8px 5px;padding-right:34px;max-width:100%;text-overflow:ellipsis;cursor:pointer}
body summary{list-style:none;cursor:pointer}body summary::-webkit-details-marker{display:none}body summary::marker{content:''}
body details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px}
body details>summary::after{content:'+'!important;position:static!important;transform:none!important;float:none!important;width:16px!important;height:16px!important;flex:0 0 16px;border:0!important;background:none!important;color:var(--muted);font:400 15px/16px Arial,sans-serif;text-align:center;opacity:.7}
body details[open]>summary::after{content:'−'!important}
body details>summary:hover::after,body select:hover{color:var(--green)}
body details>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:4px}
body a [data-icon=arrow],body a [data-icon=external]{display:none!important}

.workspace-header[data-managed="true"] .header-right :is(#wallet,#connect-wallet,#connect,.workspace-connect){display:none!important}
.workspace-header .header-right .workspace-balance{background:#142019!important;color:#e9f4e9!important;border:1px solid #304336;border-radius:10px;padding:10px 15px;font-weight:650;white-space:nowrap}
.workspace-balance[hidden]{display:none!important}.funds-dialog{width:min(440px,calc(100vw - 24px));max-height:90dvh;overflow:auto;background:#0d1711;color:#eaf4e9;border:1px solid #344839;border-radius:16px;padding:26px}.funds-dialog h2{margin:0 32px 12px 0}.funds-balance{display:block;font-size:30px;margin-bottom:20px}.funds-close{position:absolute;top:12px;right:12px;width:30px;height:30px;padding:0}.funds-tabs{display:flex;gap:10px;margin:15px 0}.funds-tabs button{flex:1}.funds-dialog label{display:block;margin:14px 0;font-size:12px}.funds-dialog input,.funds-dialog select{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;min-width:0}.funds-dialog p,.funds-dialog small{overflow-wrap:anywhere;line-height:1.6;font-size:12px}.funds-dialog a{display:block;margin-top:15px}.funds-dialog .funds-primary{display:block;width:100%;box-sizing:border-box;text-align:center;background:#c0f675;color:#101a0e;padding:13px;border:0;border-radius:9px;font-weight:650;margin:14px 0}.funds-dialog [data-status]{color:#b9d7c0}.funds-dialog [hidden]{display:none!important}

.workspace-header[data-managed="true"] .header-right #disconnect{display:none!important}

.workspace-header .header-right .workspace-create{display:inline-flex;align-items:center;justify-content:center;background:#c0f675!important;color:#10200a!important;border:1px solid #c0f675;border-radius:10px;min-height:42px;padding:10px 18px;font-weight:750;white-space:nowrap;text-decoration:none}.workspace-header .header-right .workspace-create:hover{background:#d4ff9a!important}@media(max-width:600px){.workspace-header .header-right .workspace-create{padding:9px 11px;font-size:11px;min-height:38px}.workspace-header .header-right{gap:6px;flex-wrap:wrap}}

.workspace-pqc{padding:8px 11px;border:1px solid #3d4936;border-radius:8px;background:#131a12;color:#c1f786;font-family:inherit;font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer}.workspace-pqc[data-active="true"]{border-color:#647e46}.workspace-pqc[hidden]{display:none!important}

/* Direct deposits keep the connected wallet and trading balance in one view. */
.funds-dialog{width:min(480px,calc(100vw - 24px))}.funds-tabs button.active{border-color:#bff574;color:#c4f578;background:#24321d}.quick-deposit{display:block}.deposit-wallet{padding:15px;background:#0c110e;border:1px solid #344236;border-radius:10px}.deposit-wallet>span,.deposit-destination>span{display:block;color:#a8b6ac;font-size:12px}.deposit-wallet strong{display:block;margin:7px 0;font-size:24px;color:#eef6e9}.deposit-wallet small,.deposit-destination small{display:block;overflow-wrap:anywhere;color:#a8b6ac;font:11px/1.6 monospace}.deposit-amount-row{display:flex;align-items:center;gap:10px;border:1px solid #516545;border-radius:10px;padding:8px 12px;background:#090e0b}.funds-dialog .deposit-amount-row input{flex:1;width:0;min-width:0;border:0;outline:0;box-shadow:none;background:transparent;font-size:30px;padding:8px 0;margin:0;color:#f0f6eb}.deposit-amount-row:focus-within{outline:2px solid #bff574;outline-offset:2px}.deposit-amount-row>span{font-size:13px;color:#a9ba9f}.deposit-amount-row button{padding:6px 10px;min-height:32px;font-size:12px;color:#c4f578}.funds-dialog .deposit-reserve{font-size:11px;color:#9eafa0}.deposit-destination{margin-top:16px;padding-top:12px;border-top:1px solid #2c382e}.funds-dialog .deposit-confirm-note{text-align:center;font-size:11px;color:#a7b5a9}.funds-dialog .funds-secondary{padding:12px;text-align:center;border:1px solid #344236;border-radius:8px;color:#c4f578;font-size:12px}.deposit-options{margin-top:16px;padding-top:14px;border-top:1px solid #2d372e;font-size:12px}.deposit-options summary{cursor:pointer;color:#a9b6ac}.funds-dialog [data-deposit-status]{color:#c4f578}.funds-dialog .pending-recovery{padding:12px;border:1px solid #66724c;border-radius:8px;margin-top:12px}.funds-dialog .pending-recovery input{font-size:12px}.funds-dialog button:disabled{cursor:default;opacity:.5}

/* Allow external wallet overlays above the deposit without exposing the page. */
.wallet-handoff-backdrop{position:fixed;inset:0;background:#030503cc;z-index:10000}.funds-dialog.wallet-handoff{position:fixed;inset:0;margin:auto;z-index:10001;max-height:90dvh}
