/* New wallets pop-up (Fund page → Create wallets), built from the app's own pop-up parts */
html:root .dq-layer .wpop.nw { z-index: var(--z-nest, 83); width: min(520px, calc(100vw - 32px)); overflow: visible; }
.wpop.nw .imp-hic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ac-hi, var(--ac)); background: rgba(201,220,242,.06); box-shadow: inset 0 0 0 1px rgba(201,220,242,.1); }
.wpop.nw .imp-ht small { display: inline-flex; align-items: center; gap: 5px; }
.wpop.nw .wpop-h .btn.sm { margin-right: 4px; }
.nw-b { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; overflow: visible; }
.nw-card { border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.05); }
.nw-count { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 16px 14px; }
.nw-count > .fl { margin: 0; }
.nw-step { display: flex; align-items: center; gap: 18px; }
.nw-pm { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 11px; cursor: pointer; color: var(--tx); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: background .15s; }
.nw-pm:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.nw-pm:disabled { opacity: .35; cursor: default; }
.nw-num { display: flex; align-items: baseline; gap: 8px; min-width: 150px; justify-content: center; padding: 2px 4px 8px; border-bottom: 1px solid rgba(214,234,255,.14); }
.nw-num input { width: 3ch; field-sizing: content; min-width: 1ch; border: 0; outline: 0; background: none; text-align: right; color: var(--tx); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.nw-num span { font-size: 15px; color: var(--tx3); }
.nw-quick button { min-width: 48px; justify-content: center; }
.nw-note { margin: 0; font-size: 12px; color: var(--tx3); }
.nw-set { padding: 2px 14px; }
.nw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nw-row:last-child { border-bottom: 0; }
.nw-row > span { display: flex; flex-direction: column; gap: 2px; }
.nw-row > span b { font-size: 13px; font-weight: 600; color: var(--tx); }
.nw-row > span small { font-size: 11.5px; color: var(--tx3); }
.nw-pk { position: relative; }
.nw-dd { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 11px; border: 0; border-radius: 10px; cursor: pointer; color: var(--tx); font: 500 12.5px/1 inherit; font-family: inherit;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: background .15s; }
.nw-dd:hover, .nw-pk.open .nw-dd { background: rgba(255,255,255,.07); }
.nw-dd b { font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-dd > svg:first-child { color: var(--tx2); }
.nw-dd > svg:last-child { color: var(--tx3); transition: transform .15s; }
.nw-pk.open .nw-dd > svg:last-child { transform: rotate(180deg); }
.nw-aa { font-style: normal; font-size: 11px; font-weight: 600; color: var(--tx3); width: 16px; text-align: center; flex: none; }
.nw-menu { left: auto; right: 0; bottom: calc(100% + 6px); top: auto; width: 330px; max-height: 380px; overflow: auto; z-index: 10; }
.nw-menu .rt-opt > svg:first-child { color: var(--tx2); margin-top: 1px; }
.nw-new { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0 0 9px 9px; padding-top: 4px; }
.nw-cost { display: flex; flex-direction: column; gap: 1px; }
.nw-cost small { font-size: 11px; color: var(--tx3); }
.nw-cost b { font-size: 14px; font-weight: 600; color: var(--tx); }
.nw-cost em { font-style: normal; font-size: 11px; color: var(--tx3); }
.nw-f .btn { min-width: 96px; justify-content: center; }
html:root:root[data-theme="light"] .wpop.nw .imp-hic { background: rgba(20,40,70,.05); box-shadow: inset 0 0 0 1px rgba(20,40,70,.1); }
html:root:root[data-theme="light"] .nw-card { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(20,40,70,.08); }
html:root:root[data-theme="light"] .nw-row { border-color: rgba(20,40,70,.08); }
html:root:root[data-theme="light"] .nw-num { border-color: rgba(20,40,70,.14); }
html:root:root[data-theme="light"] :is(.nw-pm, .nw-dd) { background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(20,40,70,.1); }
html:root:root[data-theme="light"] :is(.nw-pm:hover:not(:disabled), .nw-dd:hover, .nw-pk.open .nw-dd) { background: #fff; }
/* "New folder" field next to the folder buttons in both Marketplaces */
.mkp-fnew { display: flex; align-items: center; gap: 7px; padding: 0 10px; min-height: 34px; border-radius: 10px; color: var(--tx3);
  background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border: 1px dashed transparent; }
.mkp-fnew:focus-within { box-shadow: inset 0 0 0 1px rgba(214,234,255,.3); background: rgba(255,255,255,.04); }
.mkp-fnew input { flex: 1; min-width: 0; height: 32px; border: 0; outline: 0; background: none; color: var(--tx); font: 500 12.5px inherit; font-family: inherit; }
.mkp-fnew input::placeholder { color: var(--tx3); }
html:root:root[data-theme="light"] .mkp-fnew { background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(20,40,70,.1); }

/* folder colours: coloured folder icons and a colour choice when making a new folder/group */
.fc-ic { display: grid; place-items: center; flex: none; font-style: normal; color: var(--c, var(--tx3)) !important; }
.nw-menu .rt-opt > .fc-ic { margin-top: 0; }
.nw-menu .rt-opt { align-items: center; }
.fc-new { flex-direction: column; align-items: stretch !important; gap: 6px; padding: 6px 6px 8px 8px !important; }
.fc-in { display: flex; align-items: center; gap: 8px; }
.fc-in input { flex: 1; min-width: 0; height: 28px; border: 0; outline: 0; background: none; color: var(--tx); font: 500 12.5px inherit; font-family: inherit; }
.fc-in input::placeholder { color: var(--tx3); }
.fc-row { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 21px; }
.fc-dot { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; }
.fc-dot:hover { transform: scale(1.12); }
.fc-dot.on { box-shadow: 0 0 0 2px rgba(11,14,19,.9), 0 0 0 3.5px var(--c); }
html:root:root[data-theme="light"] .fc-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c); }
.fc-new .fp-fm-ok { flex: none; }
.fc-new input:placeholder-shown + .fp-fm-ok { visibility: hidden; }
.fp-fmenu { width: 244px; }
.fp-fmenu .fc-row { gap: 5px; padding-left: 20px; } .fp-fmenu .fc-dot { width: 14px; height: 14px; }

/* Add folder: a button that opens name + colour in place */
.fc-add { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 4px; padding: 8px 10px; border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0 0 9px 9px; background: none; cursor: pointer; color: var(--tx2); font: 500 12.5px/1 inherit; font-family: inherit; text-align: left; }
.fc-add:hover { color: var(--tx); background: rgba(255,255,255,.04); }
.fc-form { display: none; flex-direction: column; gap: 10px; margin-top: 4px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.fc-adding > .fc-add { display: none; }
.fc-adding > .fc-form { display: flex; animation: fpFm .14s ease-out; }
.fc-form .fc-in { gap: 9px; padding: 0 10px; height: 36px; border-radius: 9px; background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.fc-form .fc-in:focus-within { box-shadow: inset 0 0 0 1px rgba(214,234,255,.3); }
.fc-form .fc-in input { height: 34px; }
.fc-form .fc-row { padding-left: 2px; gap: 7px; }
.fc-act { display: flex; justify-content: flex-end; gap: 6px; }
.fc-act .btn { height: 30px; }
.fp-fmenu .fc-form .fc-row { gap: 6px; padding-left: 2px; }
html:root:root[data-theme="light"] .fc-add { border-color: rgba(20,40,70,.08); }
html:root:root[data-theme="light"] .fc-add:hover { background: rgba(20,40,70,.04); }
html:root:root[data-theme="light"] .fc-form { background: rgba(20,40,70,.03); box-shadow: inset 0 0 0 1px rgba(20,40,70,.08); }
html:root:root[data-theme="light"] .fc-form .fc-in { background: #fff; box-shadow: inset 0 0 0 1px rgba(20,40,70,.12); }
