/* Balance chip, profile dropdown, add-balance pop-up and share pop-up. Used by every user page and the post page. */
.pn-me{position:relative;display:flex;align-items:center;gap:8px}
.pn-balbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9d9de;background:#fff;color:#222;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.pn-balbtn:hover{border-color:#7a2a8c;color:#7a2a8c}
.pn-balbtn i{color:#7a2a8c}
.pn-me .pn-balbtn span{display:inline}
.pn-ddb{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9d9de;background:#fff;color:#222;border-radius:8px;padding:6px 10px;font:inherit;font-size:13px;cursor:pointer;max-width:210px}
.pn-ddb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pn-ddb:hover{border-color:#7a2a8c}
.pn-ddm{position:absolute;right:0;top:calc(100% + 6px);z-index:60;width:270px;background:#fff;border:1px solid #d9d9de;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.14);padding:8px}
.pn-ddm[hidden]{display:none}
.pn-ddm .who{padding:8px 10px 10px;border-bottom:1px solid #eee;margin-bottom:6px}
.pn-ddm .who b{display:block;font-size:14px}
.pn-ddm .who small{color:#777;font-size:12px;word-break:break-all}
.pn-ddm .bal{background:#f6effa;border-radius:10px;padding:10px 12px;margin:2px 0 6px}
.pn-ddm .bal span{display:block;font-size:12px;color:#6b4a78}
.pn-ddm .bal b{display:block;font-size:22px;color:#4a1b5a;margin:2px 0 8px}
.pn-ddm .bal button{width:100%}
.pn-ddm a,.pn-ddm button.it{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 10px;border:0;background:none;border-radius:8px;color:#222;font:inherit;font-size:14px;cursor:pointer;text-decoration:none}
.pn-ddm a:hover,.pn-ddm button.it:hover{background:#f4f4f6}
.pn-ddm i{width:16px;color:#7a2a8c;text-align:center}
.pn-ddm hr{border:0;border-top:1px solid #eee;margin:6px 0}
@media(max-width:900px){.pn-me .pn-ddb span{display:none}.pn-ddb{padding:6px 9px}}

.wm-back{position:fixed;inset:0;background:rgba(20,10,30,.5);z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.wm-back[hidden]{display:none}
.wm{background:#fff;color:#222;border-radius:14px;width:100%;max-width:440px;max-height:92vh;overflow:auto;padding:22px 22px 20px;position:relative;box-shadow:0 18px 50px rgba(0,0,0,.28);font-size:14px;line-height:1.5}
.wm h2{margin:0 0 4px;font-size:20px}
.wm .wm-x{position:absolute;right:10px;top:8px;border:0;background:none;font-size:26px;line-height:1;color:#777;cursor:pointer;padding:4px 8px}
.wm .wm-x:hover{color:#000}
.wm .wm-sub{margin:0 0 14px;color:#666}
.wm label{display:block;font-weight:600;font-size:13px;margin:12px 0 5px}
.wm input[type=text],.wm input:not([type]),.wm input[inputmode]{width:100%;box-sizing:border-box;border:1px solid #cfcfd6;border-radius:8px;padding:10px 12px;font:inherit;font-size:15px}
.wm input:focus{outline:2px solid #7a2a8c33;border-color:#7a2a8c}
.wm .wm-q{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.wm .wm-q button{border:1px solid #d9d9de;background:#fff;border-radius:999px;padding:4px 12px;font:inherit;font-size:13px;cursor:pointer}
.wm .wm-q button:hover,.wm .wm-q button.on{border-color:#7a2a8c;color:#7a2a8c;background:#f6effa}
.wm .wm-gws{display:grid;gap:8px}
.wm .wm-gw{display:flex;gap:10px;align-items:flex-start;border:1px solid #d9d9de;border-radius:10px;padding:10px 12px;cursor:pointer;font-weight:400;margin:0}
.wm .wm-gw:has(input:checked){border-color:#7a2a8c;background:#f9f4fc}
.wm .wm-gw input{margin-top:4px}
.wm .wm-gw b{display:block;font-size:14px}
.wm .wm-gw small{color:#777}
.wm .wm-info{background:#f6f6f8;border-radius:10px;padding:10px 12px;margin-top:10px;white-space:pre-line;font-size:13px}
.wm .wm-info .acc{display:block;font-weight:700;font-size:15px;margin-bottom:6px;white-space:normal;word-break:break-all}
.wm .wm-msg{min-height:18px;margin:10px 0 0;font-size:13px}
.wm .wm-msg.err{color:#b3261e}.wm .wm-msg.ok{color:#1f7a45}
.wm .wm-go{width:100%;margin-top:12px;border:0;border-radius:8px;background:#7a2a8c;color:#fff;font:inherit;font-weight:600;padding:11px;cursor:pointer}
.wm .wm-go:hover{background:#651f75}.wm .wm-go:disabled{opacity:.6;cursor:default}
.wm .wm-ok{text-align:center;padding:8px 0}
.wm .wm-ok .tick{width:54px;height:54px;border-radius:50%;background:#e4f3ea;color:#1f7a45;display:flex;align-items:center;justify-content:center;font-size:28px;margin:4px auto 10px}
.wm .wm-ok .tick.wait{background:#fdf3dc;color:#9a6a00}
.wm .wm-ok h3{margin:0 0 6px;font-size:18px}
.wm .wm-link{display:flex;gap:6px;margin-top:6px}
.wm .wm-link input{flex:1;min-width:0;font-size:13px;background:#f6f6f8}
.wm .wm-link button,.wm .wm-row button,.wm .wm-row a{border:1px solid #d9d9de;background:#fff;border-radius:8px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer;color:#222;text-decoration:none;white-space:nowrap}
.wm .wm-link button:hover,.wm .wm-row button:hover,.wm .wm-row a:hover{border-color:#7a2a8c;color:#7a2a8c}
.wm .wm-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.wm .wm-stats{display:flex;gap:10px;margin:14px 0 4px}
.wm .wm-stats div{flex:1;background:#f6f6f8;border-radius:10px;padding:10px 12px}
.wm .wm-stats b{display:block;font-size:20px}.wm .wm-stats span{font-size:12px;color:#666}
.wm .wm-note{font-size:13px;color:#555;margin:10px 0 0}
/* the deposit discount in the add-balance pop-up */
.wm .wm-offer{background:#e8f6ee;color:#14603a;border-radius:10px;padding:10px 14px;text-align:center}
.wm .wm-offer b{display:block;font-size:22px}
.wm .wm-sum{margin-top:12px;border-top:1px solid #eee}
.wm .wm-sum div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eee}
.wm .wm-sum .plus{color:#1f7a45}
.wm .wm-sum .big{font-size:17px;font-weight:700}
.wm .wm-warn{background:#fdf3dc;color:#7a5300;border-radius:10px;padding:10px 12px;margin-top:12px;font-size:13px}
.wm [hidden]{display:none}

/* balance page */
.wl-card{display:flex;flex-wrap:wrap;align-items:center;gap:16px;background:#f6effa;border-radius:14px;padding:18px 20px;margin:8px 0 14px}
.wl-card .big{font-size:32px;font-weight:700;color:#4a1b5a;line-height:1.1}
.wl-card small{display:block;color:#6b4a78;font-size:13px}
.wl-card .sp{flex:1}
@media(max-width:700px){.dt.stack .acts{white-space:normal}}

/* phones: pop-ups come up from the bottom edge, fields are thumb sized, the account menu stays on screen */
@media(max-width:599.98px){
  .wm-back{align-items:flex-end;padding:0}
  .wm{max-width:none;max-height:92vh;max-height:92dvh;border-radius:18px 18px 0 0;padding:20px 16px calc(18px + env(safe-area-inset-bottom,0px))}
  .wm input[type=text],.wm input:not([type]),.wm input[inputmode],.wm select{font-size:16px;min-height:44px}
  .wm .wm-go{min-height:46px}
  .wl-card .sp{display:none}
  .wl-card>div{flex:1 1 100%}
}
@media(max-width:699.98px){
  .pn-ddm{width:min(290px,calc(100vw - 24px));max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);overflow-y:auto}
  .pn-ddm a,.pn-ddm button.it{min-height:42px}
}

/* the "copy link" icon of the account menu (the shared icon file has none) */
.fi-link{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E")}
