.bhr-no-save {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Locked BHR look. Charcoal steel, not navy. Gold stays for mining. No neon. */
:root {
  --bg: #090a0c;
  --navy: #121416;
  --panel: #15181c;
  --raised: #1c2126;
  --line: #3d444c;
  --text: #e8eef4;
  --muted: #9aa3ad;
  --blue: #9aa8b6;
  --gold: #c9a45a;
  --purple: #9774bd;
  --success: #e8b24a;
  --danger: #dc7381;
  --in: #1a1e24;
  --out: #2f2a1c;
  --glass: #15181c;
  --glass-line: #3d444c;
  --glass-in: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#livePill { display: none !important; }
#registerWaitPitch {
  color: #fc713d;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
  font-weight: 500;
}
body.need-app #appGate input,
body.need-app #appGate textarea,
body.need-app #appGate select {
  font-size: 16px !important;
}

body.need-app header,
body.need-app #linkLamp,
body.need-app .hdr-tools,
body.need-app #btnHdrRefresh,
body.need-app #btnLogout,
body.need-app #btnShowWallets,
body.need-app #btnWalletMenu,
body.need-app header .info-btn,
body.need-wallet header,
body.need-wallet #linkLamp,
body.need-wallet .hdr-tools,
body.need-wallet #btnHdrRefresh,
body.need-wallet #btnLogout,
body.need-wallet #btnShowWallets,
body.need-wallet #btnWalletMenu,
body.need-wallet header .info-btn,
body.need-wallet .door-side { display: none !important; }
body.need-app,
body.need-wallet {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: auto !important;
  height: auto !important;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
body.need-app #deskLayout,
body.need-app #walletGate,
body.need-app .v8-nav,
body.need-app .v8-rail,
body.need-app .activity-card,
body.need-app .mobile-page-heading { display: none !important; }

body.need-app #appGate {
  display: flex;
  flex-direction: column;
  width: min(400px, 100%) !important;
  max-height: calc(100dvh - 24px);
  margin: 0 auto !important;
  position: relative;
  z-index: 3;
  border-radius: 28px;
  padding: 16px 16px 12px;
  background: linear-gradient(165deg, #1c2128cc, #121416f2 42%, #0c0d10f5);
  border: 1px solid #5c656e;
  box-shadow: 0 22px 48px #0008, inset 0 1px 0 #ffffff14;
  min-height: 0;
  overflow: hidden;
}
body.need-app #appGateForm {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 0 1 auto;
}
body.need-app #appGateScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  padding-bottom: 12px;
}
body.need-app #appGateActions {
  flex: 0 0 auto;
  padding-top: 10px;
}
body.need-app #appGate .side-head {
  display: block;
  position: relative;
  margin: 0 0 4px;
  min-height: 0;
  flex: 0 0 auto;
}
body.need-app #appGate h2 { display: none !important; }
body.need-app #appGate .info-btn {
  display: inline-flex !important;
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
body.need-app #appGate .gate-mark {
  display: block !important;
  width: clamp(72px, 18vw, 96px);
  height: clamp(72px, 18vw, 96px);
  margin: 0 auto 10px;
}
body.need-app #appModeTabs {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  height: auto;
  background: linear-gradient(180deg, #252a31d9, #16191ef2);
  border: 1px solid #8ea8bc88 !important;
  border-bottom: 1px solid #8ea8bc88 !important;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #ffffff22;
  flex: 0 0 auto;
}
body.need-app #appModeTabs .tab,
body.need-app #appModeTabs .tab.on {
  flex: 1;
  position: relative;
  color: #d5e0ea;
  border: 1px solid transparent !important;
  border-radius: 999px;
  padding: 11px 8px;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 700;
}
body.need-app #appModeTabs .tab::after,
body.need-app #appModeTabs .tab.on::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  background: none !important;
}
body.need-app #appModeTabs .tab.on {
  color: #0b1218 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%) !important;
  border-color: #e4ebf0 !important;
  box-shadow: inset 0 1px 0 #ffffffee, inset 0 -1px 0 #7f8c99, 0 4px 10px #0005 !important;
}
body.need-app #appGateText {
  display: block;
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}
body.need-app #appGate .tip {
  display: block;
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
body.need-app #appPassTip[hidden] { display: none !important; }
body.need-app #appGate label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #c5d4e0;
}
body.need-app #appGateScroll > label:first-of-type { margin-top: 2px; }
body.need-app #appGate input,
body.need-app #appGate select {
  width: 100%;
  min-height: 48px;
  height: 48px;
  font-size: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  box-sizing: border-box;
}
body.need-app #appGate .pass-row,
body.need-app #appGate .addr-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
body.need-app #appGate .pass-row {
  gap: 0;
  padding: 0 6px 0 0;
  border: 1px solid #3a4048;
  border-radius: 14px;
  background: var(--in);
}
body.need-app #appGate .pass-row input,
body.need-app #appGate .addr-row select {
  width: 0;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  height: 48px;
}
body.need-app #appGate .pass-row input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.need-app #appGate input[type="text"] {
  -webkit-text-security: none !important;
  color: var(--text) !important;
}
body.need-app #appGate input[type="text"].bhr-secret:not([data-show="1"]),
input.bhr-secret:not([data-show="1"]) {
  -webkit-text-security: disc !important;
}
body.need-app #appGate input[type="text"].bhr-secret[data-show="1"],
input.bhr-secret[data-show="1"] {
  -webkit-text-security: none !important;
}
body.need-app #appGate .pass-row .ghost {
  flex: 0 0 auto;
  width: auto;
  min-width: 64px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  pointer-events: auto;
}
body.need-app #appGate .field-ico {
  display: none;
}
body.need-app #appGate .recovery-warn {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #7a6230;
  background: #1c1608;
  color: #e4c56a;
  font-size: 0.78rem;
  line-height: 1.4;
}
body.need-app #btnForgotPass {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0;
  min-height: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: #9aa3ad;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
}
body.need-app #appGate #btnAppLock,
body.need-app #btnGuest {
  width: 100%;
  margin-top: 0;
  border-radius: 12px;
  min-height: 50px;
  height: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
body.need-app #appGate #btnAppLock {
  border: 0;
  color: #111;
  background: linear-gradient(90deg, #9ea0a8 0%, #d7d7db 49.85%, #9ea0a8 100%);
  box-shadow: 0 8px 20px #0005;
}
body.need-app #btnGuest {
  margin-top: 8px;
  color: #e8eef4;
  background: transparent;
  border: 1px solid #3a4048;
  box-shadow: none;
}
body.need-app #appModeTabs {
  background: #121416;
  border: 1px solid #2a3036 !important;
  border-bottom: 1px solid #2a3036 !important;
}
body.need-app #appModeTabs .tab.on {
  color: #111 !important;
  background: linear-gradient(90deg, #9ea0a8 0%, #d7d7db 49.85%, #9ea0a8 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px #0004 !important;
}
body.need-app #appGate .pass-row .ghost {
  min-width: 72px;
  border-radius: 12px;
  border: 1px solid #3a4048;
  background: #1c2126;
  color: #e8eef4;
}

html {
  overscroll-behavior: none;
}
body:not(.need-app) header h1,
body.need-app header h1,
#lookSwitch,
.hdr-meta {
  display: none !important;
}

body:not(.need-app) {
  display: block !important;
  overflow: auto !important;
  height: auto !important;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding: max(8px, env(safe-area-inset-top, 0px)) 0 0;
  overscroll-behavior-y: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 65% 50% at 50% -8%, #3a3d4233, transparent),
    radial-gradient(ellipse 50% 40% at 8% 100%, #6f430b28, transparent),
    linear-gradient(140deg, #08090b 0%, #0c0d10 60%, #090a0c);
}
body:not(.need-app):not(.need-wallet) {
  display: flex !important;
  flex-direction: column;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
body:not(.need-app) #appGate { display: none !important; }

body.need-app header,
body.need-wallet header { display: none !important; }
body:not(.need-app):not(.need-wallet) header {
  position: sticky;
  top: 0;
  z-index: 50;
  order: -1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  border-radius: 20px;
  height: 60px;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(90deg, #0c0d10d9, #14161add 56%, #0a0b0dcc);
  border: 1px solid #6b737c88;
  box-shadow: 0 0 30px #0009;
}
body.need-app header,
body:not(.need-app) header {
  border: 1px solid rgba(133, 163, 186, .15);
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  height: auto;
  min-height: 72px;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 6px max(10px, env(safe-area-inset-left, 0px));
}
body.need-app .hdr-brand h1,
body.need-app .hdr-chip,
body.need-app .hdr-height,
body.need-app #livePill,
body.need-app .look,
body.need-app #btnLogout,
body:not(.need-app) .hdr-brand h1,
body:not(.need-app) .hdr-chip,
body:not(.need-app) .hdr-height,
body:not(.need-app) #livePill,
body:not(.need-app) .look,
#v8Rail .avatar {
  overflow: hidden;
  border-radius: 50%;
}
#v8Rail .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body:not(.need-app) .v8-rail,
body:not(.need-app) .mobile-page-heading,
body:not(.need-app) #deskMain > h2,
body:not(.need-app) #walletSide .side-head,
body:not(.need-app) .screenhead .eyebrow,
body:not(.need-app) .act-legend { display: none !important; }

body.need-app .hdr-brand .mark,
body:not(.need-app) .hdr-brand .mark {
  width: clamp(76px, 18vw, 96px);
  height: clamp(76px, 18vw, 96px);
  object-fit: contain;
}
body.need-app header .info-btn,
body:not(.need-app) header .info-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  padding: 0;
}
body:not(.need-app):not(.need-wallet) header #btnInfoDesk {
  display: none !important;
}
header .bhr-ping {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #6b737c66;
  background: #1c2126;
  color: #d7e0ea;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}
header .bhr-ping.on {
  display: inline-flex;
}
body:not(.need-app) #btnLogout.hdr-lock {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8eef4;
  border: 1px solid #c5d0dc;
  background: linear-gradient(180deg, #4a525c, #1c2128);
  box-shadow: 0 0 0 1px #9aa8b666, 0 0 10px #d7dee44d;
}
body:not(.need-app) #btnLogout.hdr-lock svg {
  width: 22px;
  height: 22px;
  display: block;
  color: #eef3f8;
  animation: lock-shine 2.2s ease-in-out infinite;
}
@keyframes lock-shine {
  0%, 100% {
    color: #c8d2dc;
    filter: drop-shadow(0 0 1px #aeb8c2) drop-shadow(0 0 6px #d7dee466);
  }
  50% {
    color: #ffffff;
    filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 12px #cfd8e6);
  }
}
body .link-lamp {
  display: inline-flex !important;
}
body:not(.need-app):not(.need-wallet) #btnHdrRefresh {
  display: inline-flex !important;
  position: static;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
  background: #1c2126;
  border: 1px solid var(--line);
  box-shadow: none;
}
body:not(.need-app):not(.need-wallet) #btnHdrRefresh svg {
  width: 18px;
  height: 18px;
  display: block;
}
body.need-app #btnHdrRefresh,
body.need-wallet #btnHdrRefresh {
  display: none !important;
}
body:not(.need-app):not(.need-wallet) #btnHdrRefresh:disabled {
  opacity: 0.55;
}

body.need-wallet #deskLayout,
body.need-wallet .v8-nav,
body.need-wallet .v8-rail,
body.need-wallet .mobile-page-heading,
body.need-wallet .activity-card { display: none !important; }
body.need-wallet #walletGate {
  display: flex !important;
  flex-direction: column;
  width: min(400px, 100%) !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 3;
  border-radius: 28px;
  padding: 16px 16px 12px;
  background: linear-gradient(165deg, #1c2128cc, #121416f2 42%, #0c0d10f5);
  border: 1px solid #5c656e;
  box-shadow: 0 22px 48px #0008, inset 0 1px 0 #ffffff14;
}
body.need-wallet #walletGate .side-head {
  display: block;
  position: relative;
  margin: 0 0 8px;
}
body.need-wallet #walletGate .side-head h2 { display: none !important; }
body.need-wallet #walletGate .gate-mark {
  display: block !important;
  width: clamp(72px, 18vw, 96px);
  height: clamp(72px, 18vw, 96px);
  margin: 0 auto 10px;
}
body.need-wallet #walletGate #btnWalletGateClose {
  display: inline-flex !important;
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
body.need-app #walletGate { display: none !important; }

body:not(.need-app):not(.need-wallet) header,
body:not(.need-app):not(.need-wallet) #deskLayout,
body:not(.need-app):not(.need-wallet) .v8-nav {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
body:not(.need-app):not(.need-wallet) #deskLayout {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
}
#walletSide,
#deskLayout[data-desk="mine"] #walletSide,
#deskLayout[data-desk="transfer"] #walletSide,
#deskLayout[data-desk="text"] #walletSide { display: none !important; }
#deskLayout[data-desk="wallets"] #walletSide { display: contents !important; }
#deskLayout.side-shut #walletSide { display: contents !important; }
#walletCol,
#walletMain,
#deskMain {
  min-width: 0;
  border-radius: 0;
  padding: 10px 12px 0;
  background: #121416;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
}
#walletCol { display: flex; flex-direction: column; gap: 10px; }
#walletCol details.fold { scroll-margin-bottom: 28px; }
#walletUnlock { display: flex; flex-direction: column; gap: 8px; }
#walletMain { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-height: 0; overflow: auto; }
#deskMain { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; }
.activity-card { display: none !important; }

#deskLayout[data-desk="wallets"] #walletMain { display: flex; }
#deskLayout[data-desk="wallets"] #deskMain { display: none !important; }
#deskLayout[data-desk="mine"] #walletMain,
#deskLayout[data-desk="transfer"] #walletMain,
#deskLayout[data-desk="text"] #walletMain { display: none; }
#deskLayout[data-desk="wallets"] #walletCol { display: flex !important; }
#deskLayout[data-desk="mine"] #walletCol,
#deskLayout[data-desk="transfer"] #walletCol,
#deskLayout[data-desk="text"] #walletCol { display: none !important; }
#deskLayout[data-desk="mine"] #deskMain,
#deskLayout[data-desk="transfer"] #deskMain,
#deskLayout[data-desk="text"] #deskMain { grid-column: 1 / -1; }

#deskMain {
  width: 100%;
  max-width: none;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}
body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs,
body:not(.need-app):not(.need-wallet) #deskMain .visual-tabs {
  display: none !important;
}
body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab-unread {
  display: none;
  left: auto;
  right: 18%;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #e8b24a;
  box-shadow: 0 0 0 2px #101214;
}
body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab.has-unread .tab-unread {
  display: flex;
  background: #e8b24a;
  box-shadow: 0 0 0 2px #101214;
}
#walletScreenHead,
#tab-mine .screenhead,
#tab-transfer .screenhead,
#tab-text .screenhead,
#walletCol .side-head { display: none !important; }

.screenhead {
  margin: 0 0 16px;
}
.screenhead h1 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.screenhead p {
  margin: 0;
  color: #9aa3ad;
  font-size: 0.88rem;
}

#walletScreenHead p { display: none; }
#walletStatus.live { color: #3ee2a6; font-weight: 650; }
#walletQuick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
#walletQuick button,
body:not(.need-app):not(.need-wallet) #deskLayout button.ghost,
body:not(.need-app):not(.need-wallet) #walletCol button.ghost,
body:not(.need-app):not(.need-wallet) #btnPayoutSet,
body:not(.need-app):not(.need-wallet) details.fold > summary {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #7a848ead;
  color: #f2f4f6;
  background: linear-gradient(180deg, #3a424cb0 0%, #14171cf5 35%, #101214 67%, #2c333cbf 100%);
  box-shadow: inset 0 1px 0 #ffffff44, inset 0 -1px 1px #7a848e33, 0 3px 13px #02070c75;
  font-weight: 670;
}
body:not(.need-app):not(.need-wallet) details.fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body:not(.need-app):not(.need-wallet) details.fold > summary::-webkit-details-marker,
body:not(.need-app):not(.need-wallet) details.fold > summary::marker { display: none; content: none; }
body:not(.need-app):not(.need-wallet) details.fold > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  border-right: 2px solid #9aa3ad;
  border-bottom: 2px solid #9aa3ad;
  transform: rotate(45deg) translate(-2px, -2px);
}
body:not(.need-app):not(.need-wallet) details.fold[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}
body:not(.need-app):not(.need-wallet) #deskLayout input:not([type=checkbox]):not([type=file]):not([type=radio]),
body:not(.need-app):not(.need-wallet) #deskLayout select,
body:not(.need-app):not(.need-wallet) #deskLayout textarea,
body:not(.need-app):not(.need-wallet) #walletCol input:not([type=checkbox]),
body:not(.need-app):not(.need-wallet) #walletCol select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #6b737c;
  background: linear-gradient(180deg, #1a1e24, #0e1013 65%, #14171c);
  color: #f2f4f6;
  box-shadow: inset 0 2px 6px #01050aaa, inset 0 1px 0 #ffffff14;
}
#btnConnect,
#btnMine,
#btnMine.primary,
#btnTransfer,
#btnCollect,
body:not(.need-app) button.primary:not(#btnText) {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 760;
  color: #0b1218 !important;
  border: 1px solid #9aa8b6 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%) !important;
  box-shadow: inset 0 1px 0 #ffffffee, inset 0 -1px 0 #7f8c99, 0 4px 14px #0006 !important;
}
#btnConnect {
  border-radius: 12px;
}
#btnConnect.connected-ok {
  background: linear-gradient(180deg, #0e493b88, #06362f55) !important;
  color: #35f3a4 !important;
  border: 1px solid #21996869 !important;
  box-shadow: inset 0 1px 0 #4affa029 !important;
}
#btnDisconnect { display: none !important; }

#balHero,
#recvCard,
#walletKeyCard {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(145deg, #1e2329, #14171c 80%);
  border: 1px solid var(--line);
}
#walletMain #passFold {
  display: block !important;
  border-radius: 20px;
  padding: 8px 12px 14px;
  background: linear-gradient(145deg, #1e2329, #14171c 80%);
  border: 1px solid var(--line);
}
#walletKeyCard .addr,
#recvCard .recv-short {
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.recovery-warn {
  color: #e8c07a;
  font-weight: 650;
}
#balHero {
  position: relative;
  background: radial-gradient(ellipse at 88% 12%, rgba(207,157,86,.13), transparent 45%), linear-gradient(145deg, #1e2329, #14171c 80%);
  border: 1px solid var(--line);
  height: auto;
  flex: 0 0 auto;
}
#btnWalletMenu {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 12px;
}
#btnWalletMenu svg {
  width: 18px;
  height: 18px;
  display: block;
}
#walletHeroActions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
#walletHeroActions .ghost,
#walletHeroActions .ico-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  border-radius: 13px;
  padding: 10px 6px;
}
.ico-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ico-btn svg,
#walletHeroActions svg,
button.with-ico svg,
.xfer-lock-line svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}
.field-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
}
.pass-row .field-ico,
.addr-row .field-ico {
  margin-left: 8px;
}
#appModeTabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#appModeTabs .tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.bal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.icon-only {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}
.icon-only svg {
  width: 20px;
  height: 20px;
}
.act-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--panel);
}
.act-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 650;
}
.act-head .ghost {
  width: auto;
  min-height: 32px;
  padding: 4px 10px;
  flex-direction: row;
}
.wallet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wallet-pair .ico-btn {
  flex-direction: row;
  min-height: 48px;
}
.tile-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--gold);
}
.tile-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}
.tile-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tile-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}
#mineHero img {
  width: 48px;
  height: 48px;
}
.hist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 900px) {
  .mine-dash {
    grid-template-columns: 1fr 1fr !important;
  }
  .xfer-metrics {
    grid-template-columns: 1fr 1fr !important;
  }
  .xfer-metrics .mine-tile:last-child {
    grid-column: 1 / -1;
  }
}
#balHero .bal-hero-ico { display: none; }
#balHero strong {
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.1;
  color: var(--text);
}
#recvCard {
  background: linear-gradient(130deg, #1a1e24b8, #101214);
  border: 1px solid #5c656e;
}

#tab-mine { display: none; }
#tab-mine.on {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 18px;
}
#tab-mine > .hint,
#tab-mine > .tip,
#tab-mine #payoutCollect { display: none; }
#tab-mine.on > * { order: 20; }
#tab-mine.on > .screenhead { order: 0; }
#tab-mine.on > #mineHero { order: 1; }
#tab-mine.on > #mineStatus { order: 2; }
#tab-mine.on > .bar-wrap { order: 3; }
#tab-mine.on > .mine-dash { order: 4; }
#tab-mine.on > .pulse-stats { order: 4; }
#tab-mine.on > label { order: 5; }
#tab-mine.on > #payoutPick { order: 6; }
#tab-mine.on > #payoutOther { order: 7; }
#tab-mine.on > #btnPayoutSet { order: 8; }
#tab-mine.on > #payoutLine { order: 9; }
#tab-mine.on > #hookPanel { order: 10; }
#tab-mine.on > .row { order: 11; }
#tab-mine.on > .mine-cta { order: 12; }
#tab-mine.on > .feed { order: 13; }
#tab-mine.on > #loadPanel { order: 14; }
#tab-mine.on > #feePanel { order: 15; }
#loadPanel .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
#loadPanel .check-row input {
  width: 22px;
  height: 22px;
}
#hookPanel {
  display: grid;
  gap: 10px;
  padding: 12px 14px 18px;
  border-radius: 18px;
  border: 1px solid #5c656e;
  background: linear-gradient(180deg, #2a323c88 0%, #14181ee8 100%);
}
#hookPanel h3 {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hook-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}
#hookPanel .hook-i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
}
#hookPanel input {
  font-size: 16px;
  min-height: 44px;
}
.hook-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hook-card {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-content: start;
  padding: 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid #5c656e;
  background: linear-gradient(135deg, #3a424c7a 0%, #101214ea 100%);
  min-height: 148px;
}
.hook-card.on { border-color: #c9a227; }
.hook-ico {
  width: 36px;
  height: 36px;
  color: var(--gold, #d4b45a);
}
.hook-ico svg { width: 36px; height: 36px; }
.hook-card-copy span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #9aa3ad);
}
.hook-card-copy strong { font-size: 1.05rem; }
.hook-sub { margin: 0; font-size: 0.78rem; color: var(--muted, #9aa3ad); }
.hook-card button {
  min-height: 44px;
  width: 100%;
  margin-top: auto;
}
#btnHookPin, #btnHookCopyId { min-height: 44px; }
.hook-id .pass-row { display: flex; gap: 8px; align-items: stretch; }
.hook-id .pass-row input { flex: 1; min-width: 0; }
.hook-id .pass-row button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 96px;
}
@media (max-width: 980px) {
  .hook-roles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hook-roles { grid-template-columns: 1fr; }
}
#mineHero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
}
#mineHero img { width: 48px; height: 48px; object-fit: contain; }
#mineHero .mine-hero-ico {
  width: 48px;
  height: 48px;
  color: var(--gold);
  flex: 0 0 48px;
}
.mine-dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mine-tile {
  min-height: 60px;
  padding: 10px 16px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #5c656e;
  background: linear-gradient(135deg, #3a424c7a 0%, #1a1e24e0 52%, #101214ea 100%);
  box-shadow: inset 0 1px 1px #ffffff55, 0 3px 11px #0006;
}
.mine-cta {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.mine-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#btnMine.primary {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 670;
}
#btnMine:disabled {
  opacity: 0.42;
  box-shadow: none;
}
#btnMineStop {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 670;
  color: #f2f4f6 !important;
  border: 1px solid #7a848ead;
  background: linear-gradient(180deg, #3a424cb0 0%, #14171cf5 35%, #101214 67%, #2c333cbf 100%) !important;
  box-shadow: inset 0 1px 0 #ffffff44, 0 3px 13px #02070c75;
}
#btnCollect {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
}

#tab-transfer.on {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
#tab-transfer .xfer-form,
#tab-transfer .xfer-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(155deg, rgba(30,35,41,.55), rgba(18,20,22,.7));
}
#tab-transfer .screenhead,
#tab-transfer .xfer-lock-line { grid-column: 1 / -1; }
#tab-transfer .hist-list {
  flex: 1 1 auto;
  min-height: 80px;
  overflow: auto;
}
.xfer-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pct-row button {
  border: 1px solid #6b737c;
  color: #d7dde4;
  background: linear-gradient(180deg, #2c333c, #101214 75%, #1c2126);
  box-shadow: inset 0 1px 0 #ffffff28;
  border-radius: 11px;
  min-height: 40px;
  font-weight: 800;
}
#btnTransfer {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
}
#tab-transfer select,
#tab-transfer input,
#histWallet,
#histDir {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  outline: none !important;
}
#tab-transfer select::-ms-expand,
#histWallet::-ms-expand,
#histDir::-ms-expand {
  display: none;
}
#fromUser,
#histWallet,
#histDir,
#prefKeep,
#prefMediaKeep,
#textKeep {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239aa3ad' d='M1.2 1.3L6 6.1l4.8-4.8 1.2 1.2L6 8.4 0 2.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 2.2rem;
}
#fromUser:focus,
#xferWho:focus,
#histWallet:focus,
#histDir:focus,
#tab-transfer select:focus,
#tab-transfer input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #5c656e !important;
}
.xfer-pair {
  grid-template-columns: 1fr !important;
}
.xfer-to .pass-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.xfer-to .pass-row input {
  min-width: 0;
  flex: 1 1 auto;
}

body.lab-skin #textLock,
body.lab-skin #xferLock { display: none !important; }
body.lab-skin #tab-text .screenhead,
body.lab-skin #tab-text .bubble-av,
body.guest-desk #tab-text .screenhead { display: none !important; }
#tab-text #btnRead,
#tab-text #btnDropChat { display: none !important; }
#tab-text #chatNote { display: none; }
#tab-text .chat-back {
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
}
#tab-text .chat-back svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: auto;
}
#tab-text.on {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  flex: 1;
  height: 100%;
  min-height: 0;
  position: relative;
}
#tab-text .chat {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 0;
  flex: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
}
#tab-text .chat-list,
#tab-text .chat-main {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px #0006;
}
#tab-text .chat-list,
#tab-text .chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
#tab-text .chat-list {
  padding-right: 10px;
  border-right: 1px solid #202428;
}
#tab-text .chat-stream {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 24px 20px;
  gap: 12px;
}
#tab-text .chat-day {
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: #101a26cc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}
#tab-text .chat-compose {
  flex-shrink: 0;
}
#tab-text .bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}
#tab-text .bubble-row.in { justify-content: flex-start; }
#tab-text .bubble-row.out { justify-content: flex-end; }
#tab-text .bubble-av {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101e2d;
  border: 1px solid #c9a45a;
  color: #f2f5f8;
  font-size: 0.72rem;
  font-weight: 750;
  overflow: hidden;
}
#tab-text .bubble {
  position: relative;
  max-width: min(82%, 340px);
  overflow: visible;
}
@keyframes reply-flash {
  0%, 100% {
    outline-color: #c9a45a;
    box-shadow: 0 0 0 0 transparent;
    filter: brightness(1);
  }
  40% {
    outline-color: #ffe08a;
    box-shadow: 0 0 0 3px #e8b24a, 0 0 22px #e8b24acc;
    filter: brightness(1.28);
  }
}
#tab-text .bubble.reply-hit {
  z-index: 3;
  outline: 2px solid #e8b24a;
  outline-offset: 3px;
  animation: reply-flash 0.55s ease-in-out 4;
}
@media (prefers-reduced-motion: reduce) {
  #tab-text .bubble.reply-hit {
    animation: none;
    outline: 2px solid #e8b24a;
    outline-offset: 3px;
  }
}
#tab-text .bubble-meta {
  justify-content: flex-end;
}
#tab-text .chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 8px;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid #3d444c;
  background: #15181c;
  box-shadow: none;
}
#tab-text .chat-list {
  overflow: auto;
  grid-column: 1;
  min-width: 0;
  z-index: 1;
}
#tab-text .chat-main {
  grid-column: 2;
  min-width: 0;
  z-index: 1;
}
#tab-text:has(#chatNewSheet.on) .chat-search {
  display: none;
}
#tab-text .chat-list,
#tab-text .chat-threads {
  min-height: 0;
}
#tab-text .chat-threads {
  flex: 1;
  overflow: auto;
}
#tab-text .chat-new {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}
#tab-text .chat-new #chatNewName,
#tab-text .chat-new #chatNewAddr {
  width: 100%;
  min-width: 0;
  margin: 0;
}
#tab-text .chat-find-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
#tab-text .chat-new #btnChatCheck {
  width: auto !important;
  min-width: 72px;
  margin: 0;
}
#tab-text .chat-new #btnChatNewX,
#tab-text .chat-new #btnChatStartOne {
  margin: 0;
}
#tab-text .chat-found-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}
#tab-text .chat-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#tab-text .picked-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 4px 4px 4px;
  border-radius: 999px;
  background: #1c2126;
  border: 1px solid #3d444c;
}
#tab-text .picked-chip .thread-av {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 0.7rem;
}
#tab-text .picked-chip span {
  font-size: 0.82rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-text .chip-x {
  width: 28px !important;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}
#tab-text .chat-group-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
#tab-text .chat-group-start #chatGroupTitle {
  margin: 0;
  min-width: 0;
}
#tab-text .chat-group-start #btnChatStartGroup {
  width: auto !important;
  min-width: 108px;
  margin: 0;
  padding: 0 12px;
}
#tab-text .who-line.match-ok {
  color: #e8b24a;
  font-weight: 750;
}
#tab-text .who-match {
  margin: 0;
  position: relative;
}
#tab-text .who-add {
  width: 44px !important;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  color: #0b1218;
  background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%);
  border: 1px solid #9aa8b6;
}
#tab-text .invite-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0 0 6px;
  padding: 8px;
  border-radius: 12px;
  background: #15181c;
}
#tab-text .invite-copy {
  min-width: 0;
}
#tab-text .invite-copy strong {
  display: block;
  font-size: 0.86rem;
}
#tab-text .invite-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-text .invite-x {
  width: auto;
  min-width: 72px;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
}
#tab-text .chat-compose {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 12px 10px;
  background: #121416;
  border-top: 1px solid #202428;
}
#tab-text .compose-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
#tab-text .compose-row #btnAttach,
#tab-text .compose-row #btnText {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 0 !important;
  display: grid !important;
  place-items: center;
}
#tab-text .compose-row #btnAttach svg,
#tab-text .compose-row #btnText svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0;
}
#tab-text .compose-row #textLine {
  width: 100%;
  min-width: 0;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0;
  border-radius: 999px;
  background: #131618;
  border: 1px solid #2a3036;
  padding: 0 16px;
  box-sizing: border-box;
}
#tab-text .keep-tools {
  display: none !important;
}
#tab-text .chat-search,
#tab-text #textLine,
#tab-text #chatNewName,
#tab-text #chatNewAddr {
  font-size: 16px;
}
#tab-text .chat-search {
  margin: 6px 10px 8px;
  width: calc(100% - 20px);
  height: 44px;
  border-radius: 12px;
  padding-left: 40px;
  color: var(--text);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db4c9' stroke-width='1.8'><circle cx='11' cy='11' r='6.5'/><path d='m20 20-3.2-3.2'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 16px;
}
#tab-text .attach-tray {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: min(220px, calc(100% - 24px));
  max-height: min(52vh, 420px);
  overflow: auto;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #5c656e;
  background: #15181c;
  box-shadow: 0 12px 28px #000a;
}
#tab-text .attach-tray[hidden] { display: none !important; }
#tab-text .attach-chip {
  margin: 0;
  width: 100%;
  min-height: 44px;
  height: 44px;
  justify-content: flex-start;
}
#tab-text .chat-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 4px 10px;
  color: #e8eef6;
  font-weight: 700;
  border-bottom: 1px solid #3d444c;
}
@keyframes bhr-spin { to { transform: rotate(-360deg); } }
#tab-text .chat-wait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-right: auto;
}
#tab-text .chat-wait[hidden] { display: none !important; }
#tab-text .chat-wait i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c9a22755;
  border-top-color: #e8c547;
  animation: bhr-spin 0.7s linear infinite;
}
#tab-text .chat-head-actions .chat-wait {
  margin-right: 0;
}
#tab-text .chat-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 12px 24px;
  color: var(--muted);
  font-size: 0.92rem;
}
#tab-text .chat-empty button {
  min-height: 44px;
  margin: 0;
}
#tab-text .text-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  z-index: 80;
}
#tab-text .text-menu-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7dde4;
  border: 1px solid #5c656e;
  background: #15181c;
}
#tab-text .text-menu-btn svg {
  width: 18px;
  height: 18px;
}
#tab-text .text-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  min-width: 188px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #5c656e;
  background: #15181c;
  box-shadow: 0 12px 28px #000a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  isolation: isolate;
}
#tab-text .text-drop[hidden] { display: none !important; }
#tab-text .text-drop-row {
  position: fixed;
  top: 0;
  right: auto;
  left: 12px;
  z-index: 140;
}
#tab-text .chat-thread {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
#tab-text .chat-thread.is-hold {
  background: #1c2126;
  outline: 1px solid #5c656e;
}
#tab-text #btnRowHide {
  color: #dc7381;
}
#tab-text #btnRowPin.on-pin {
  color: #ffd36a;
}
#tab-text .text-drop button {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: 100%;
  min-height: 44px;
  height: 44px;
  justify-content: flex-start;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8eef4;
  font-weight: 650;
}
#tab-text .text-drop button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
#tab-text #btnThreadPin.on-pin {
  color: #ffd36a;
}
#tab-text .text-drop button:hover {
  background: #1c2126;
}
#tab-text #btnDropAll {
  margin: 0;
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  color: #dc7381;
}
#tab-text #chatNewSheet {
  display: none;
}
#tab-text #chatNewSheet.on {
  display: flex;
}
#tab-text .chat-main > #chatNewSheet.on {
  flex: 0 0 auto;
  border-bottom: 1px solid #3d444c;
  background: #15181c;
}
#tab-text .chat-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
#tab-text .text-mask {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: #00000088;
}
#tab-text .text-mask[hidden] { display: none !important; }
#tab-text .text-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--phone-dock-clear);
  z-index: 81;
  width: min(360px, 86%);
  display: flex;
  flex-direction: column;
  background: #121416;
  border-left: 1px solid #5c656e;
  box-shadow: -16px 0 40px #000a;
  transform: translateX(100%);
  transition: transform 0.18s ease;
}
#tab-text .text-drawer.open {
  transform: none;
}
#tab-text .text-drawer[hidden] { display: none !important; }
#tab-text .text-drawer.open[hidden] { display: flex !important; }
#tab-text .text-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #3d444c;
  flex: 0 0 auto;
}
#tab-text .text-drawer-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
#tab-text .text-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px var(--phone-dock-clear);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#tab-text .text-drawer-body h3 {
  margin: 12px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3ad;
}
#tab-text .text-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 0.92rem;
}
#tab-text .text-drawer-body #btnTextAbout {
  margin: 0 0 14px;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid #c9a45a;
  border-radius: 14px;
  background: #161a12;
  color: #f2f5f8;
  font-weight: 650;
}
#tab-text .text-drawer-body #btnTextAbout .info-btn {
  display: inline-flex !important;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}
#tab-text .text-check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
}
#tab-text .attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  width: 100%;
  border-radius: 12px;
  color: #e6eef6;
  background: #1a1e24;
  border: 1px solid #3d444c;
}
#tab-text .attach-chip svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
#tab-text .media-sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  z-index: 32;
}
#tab-text .media-sheet[hidden] { display: none !important; }
#tab-text .media-sheet-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #5c656e;
  background: #15181c;
  box-shadow: 0 16px 36px #000c;
}
#tab-text .media-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
#tab-text .media-sheet-head h3 {
  margin: 0;
  font-size: 1rem;
}
#tab-text .media-sheet-head #mediaSheetX {
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}
#tab-text #mediaLive {
  display: block;
  width: 100%;
  max-height: 36vh;
  border-radius: 12px;
  background: #0b0d10;
  object-fit: cover;
}
#tab-text #mediaLive[hidden] { display: none !important; }
#tab-text .voice-meter {
  height: 72px;
  border-radius: 12px;
  background: #0b0d10;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tab-text .voice-meter i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e24b5e;
  box-shadow: 0 0 0 0 #e24b5e88;
  animation: voice-pulse 1.2s ease-out infinite;
}
@keyframes voice-pulse {
  0% { box-shadow: 0 0 0 0 #e24b5e88; }
  100% { box-shadow: 0 0 0 18px transparent; }
}
#tab-text .voice-meter[hidden] { display: none !important; }
#tab-text .media-sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}
#tab-text .media-sheet-actions button {
  margin: 0;
  min-height: 44px;
  width: 100%;
}
#tab-text .pic-row audio {
  width: 120px;
  height: 36px;
}
#tab-text .bubble-del {
  min-height: 32px;
  min-width: 44px;
  width: auto;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #d7b36a;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 650;
}
#tab-text .pic-row img,
#tab-text .pic-row video {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}
#dlModal.modal-backdrop {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 90;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
#dlModal.modal-backdrop:not(.on) {
  display: none !important;
}
#dlModal .modal {
  width: min(420px, 100%);
}
#dlModal #dlWhat {
  margin: 0 0 10px;
  color: #e8eef6;
  font-weight: 700;
}
#dlModal .dl-warn {
  margin: 0 0 16px;
  color: #c96b76;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}
#dlModal #btnDlOk {
  background: linear-gradient(180deg, #8f3d48, #6e2c35);
  border-color: #a85a64;
  color: #f6e4e6;
  font-weight: 750;
}
#dropModal.modal-backdrop {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 80;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
#dropModal.modal-backdrop:not(.on) {
  display: none !important;
}
#dropModal .modal {
  position: relative;
  width: min(400px, calc(100vw - 24px));
  max-height: min(88dvh, 640px);
  overflow: auto;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #2a3540 0%, #151a20 72%);
  border: 1px solid #9bb6c9aa;
  box-shadow: inset 0 1px 0 #ffffff55, 0 28px 70px #000c;
}
#dropModal .modal-head {
  position: relative;
  align-items: center;
}
#dropModal .modal-head h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 1.28rem;
  font-weight: 800;
}
#dropModal #dropBody {
  color: #e4eef6;
  font-size: 0.95rem;
  line-height: 1.45;
}
#dropModal #btnDropX {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 50%;
  box-sizing: border-box;
  color: #f4f8fc;
  background: #1c252e;
  border: 1px solid #9bb6c9;
  box-shadow: inset 0 1px 0 #ffffff33;
  font-size: 0;
  line-height: 0;
}
#dropModal #btnDropX svg {
  width: 16px;
  height: 16px;
  display: block;
}
#dropModal .dialog-icon,
#dropModal.drop-lock .dialog-icon,
#dropModal.drop-choose .dialog-icon {
  display: none !important;
}
#dropModal .modal-head,
#dropModal.drop-choose .modal-head,
#dropModal.drop-lock .modal-head {
  display: block;
  min-height: 44px;
  text-align: center;
}
#dropModal .modal-head h3,
#dropModal.drop-choose .modal-head h3,
#dropModal.drop-lock .modal-head h3 {
  margin: 0 48px;
  font-size: 1.28rem !important;
}
#dropModal #btnDropX,
#dropModal.drop-choose #btnDropX,
#dropModal.drop-lock #btnDropX {
  position: absolute;
  right: 0;
  top: -4px;
}
#dropModal #dropBody,
#dropModal.drop-choose #dropBody {
  text-align: center;
  margin: 10px 4px 18px;
}
#dropModal #dropPassRow label {
  display: block;
  margin: 12px 0 6px;
  color: #d7e3ee;
  font-size: 0.86rem;
}
#dropModal #dropPassRow .pass-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #6b737c55;
  background: #15181c;
}
#dropModal #dropPass {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 46px;
  padding: 0;
}
#dropModal #dropPassEye {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #9db4c9;
}
#dropModal #dropPassEye svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}
#dropModal #dropActions,
#dropModal #dropActions.choose3,
#dropModal #dropActions:not(.choose3) {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  grid-template-columns: none;
}
#dropModal.drop-lock #dropActions {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none;
}
#dropModal #dropActions button {
  width: 100%;
  min-height: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
}
#dropModal #dropActions.choose3 #btnDropOk {
  grid-column: auto;
}
#dropModal #btnDropCancel {
  color: #f7fbff !important;
  border: 1px solid #8aa3b6 !important;
  background: linear-gradient(180deg, #2c3640, #1c232a) !important;
  box-shadow: inset 0 1px 0 #ffffff22 !important;
}
#dropModal #btnDropMe {
  color: #1a1204 !important;
  border: 1px solid #ffe08a !important;
  background: linear-gradient(180deg, #ffe27a 0%, #f5c13a 45%, #e09a12 100%) !important;
  box-shadow: inset 0 1px 0 #fff6c8, 0 8px 18px #e09a1244 !important;
}
#dropModal #btnDropOk,
#dropModal.drop-lock #btnDropOk,
#dropModal.drop-choose #btnDropOk {
  color: #fff !important;
  border: 1px solid #ff8a96 !important;
  background: linear-gradient(180deg, #f05a6a 0%, #d12d42 52%, #a81b30 100%) !important;
  box-shadow: inset 0 1px 0 #ffc0c688, 0 8px 18px #d12d4244 !important;
}
#dropModal.drop-choose #btnDropOk svg { display: none; }
#tab-text .keep-tools,
#tab-text .keep-tools #btnDropChat {
  display: none !important;
}
#tab-text .timer-pick {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 11px;
}
#tab-text .timer-pick .exp-k {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0;
  letter-spacing: 0;
  color: #c8a15d;
}
#tab-text .timer-pick #textKeep {
  width: auto;
  min-width: 58px;
  max-width: 72px;
  padding: 0 1.6rem 0 6px;
}
#tab-text .flame,
.burn-line .flame {
  width: 22px;
  height: 28px;
  color: #ff9a2a;
  fill: currentColor;
  flex: 0 0 auto;
  transform-origin: 50% 88%;
}
#tab-text .flame .flame-outer,
.burn-line .flame .flame-outer { fill: #ff7a18; }
#tab-text .flame .flame-core,
.burn-line .flame .flame-core { fill: #ffe08a; }
.burn-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f0c070;
  font-size: 0.78rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
#tab-text .bubble .flame {
  width: 18px;
  height: 24px;
  transform-origin: 50% 92%;
  overflow: visible;
}
@keyframes flame-lick {
  0% {
    transform: translateX(0) translateY(calc(var(--flift, 2px) * -0.5)) scaleX(1) scaleY(1.06) rotate(calc(var(--fsway, 5deg) * -0.35));
    opacity: 0.96;
  }
  10% {
    transform: translateX(calc(var(--fx, 1.5px) * -1)) translateY(calc(var(--flift, 2px) * -1.05)) scaleX(1.04) scaleY(1.14) rotate(calc(var(--fsway, 5deg) * -1));
    opacity: 1;
  }
  22% {
    transform: translateX(var(--fx, 1.5px)) translateY(calc(var(--flift, 2px) * -0.75)) scaleX(0.98) scaleY(1.1) rotate(var(--fsway, 5deg));
    opacity: 1;
  }
  34% {
    transform: translateX(calc(var(--fx, 1.5px) * -0.55)) translateY(calc(var(--flift, 2px) * -1.15)) scaleX(1.03) scaleY(1.16) rotate(calc(var(--fsway, 5deg) * 0.45));
    opacity: 1;
  }
  46% {
    transform: translateX(calc(var(--fx, 1.5px) * 0.7)) translateY(calc(var(--flift, 2px) * -0.2)) scaleX(0.97) scaleY(0.9) rotate(calc(var(--fsway, 5deg) * 0.2));
    opacity: 0.82;
  }
  58% {
    transform: translateX(calc(var(--fx, 1.5px) * -0.25)) translateY(1.6px) scaleX(0.94) scaleY(var(--fdip, 0.48)) rotate(calc(var(--fsway, 5deg) * -0.12));
    opacity: var(--flow, 0.48);
  }
  70% {
    transform: translateX(calc(var(--fx, 1.5px) * 0.45)) translateY(calc(var(--flift, 2px) * -0.25)) scaleX(0.98) scaleY(0.86) rotate(calc(var(--fsway, 5deg) * 0.28));
    opacity: 0.86;
  }
  84% {
    transform: translateX(calc(var(--fx, 1.5px) * -0.85)) translateY(calc(var(--flift, 2px) * -1.05)) scaleX(1.05) scaleY(1.14) rotate(calc(var(--fsway, 5deg) * -0.7));
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(calc(var(--flift, 2px) * -0.5)) scaleX(1) scaleY(1.06) rotate(calc(var(--fsway, 5deg) * -0.35));
    opacity: 0.96;
  }
}
@keyframes flame-core-lick {
  0% { transform: translate(0, 0) scaleY(1.02); opacity: 0.92; }
  12% { transform: translate(calc(var(--fx, 1.5px) * -0.4), -1px) scaleY(1.1); opacity: 1; }
  34% { transform: translate(calc(var(--fx, 1.5px) * 0.35), -1.2px) scaleY(1.12); opacity: 1; }
  58% { transform: translate(0, 2.4px) scaleY(var(--fdip, 0.48)); opacity: var(--flow, 0.48); }
  84% { transform: translate(calc(var(--fx, 1.5px) * -0.3), -1px) scaleY(1.1); opacity: 1; }
  100% { transform: translate(0, 0) scaleY(1.02); opacity: 0.92; }
}
@media (prefers-reduced-motion: no-preference) {
  #tab-text .bubble .flame {
    filter: drop-shadow(0 0 4px #ff7a1088);
  }
  #tab-text .bubble .flame .flame-outer {
    transform-origin: 50% 92%;
    animation: flame-lick var(--fd, 6.4s) cubic-bezier(0.42, 0, 0.28, 1) infinite;
    animation-delay: var(--fdelay, 0s);
  }
  #tab-text .bubble .flame .flame-core {
    transform-origin: 50% 88%;
    animation: flame-core-lick var(--fc, 6.9s) cubic-bezier(0.42, 0, 0.28, 1) infinite;
    animation-delay: var(--fdelay2, -1.6s);
  }
}
#tab-text .reply-bar {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #5c656e;
  border-radius: 12px;
  background: #1a1e24;
  order: -1;
}
#tab-text .reply-bar[hidden] { display: none !important; }
#tab-text .reply-copy {
  min-width: 0;
  flex: 1;
  border-left: 3px solid #c9a45a;
  padding-left: 8px;
}
#tab-text .reply-copy strong,
#tab-text .reply-chip strong {
  display: block;
  font-size: 0.72rem;
  color: #e8c37a;
}
#tab-text .reply-copy span,
#tab-text .reply-chip span {
  display: block;
  font-size: 0.78rem;
  color: #c5ccd4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tab-text .reply-chip {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 8px;
  text-align: left;
  border-radius: 10px;
  border: 0;
  border-left: 3px solid #c9a45a;
  background: #0f1216;
  color: inherit;
}
#tab-text .chat-compose {
  flex-wrap: nowrap;
}
#tab-text .pic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #15181c;
}
#tab-text .pic-row-copy {
  min-width: 0;
  flex: 1;
}
#tab-text .pic-row-copy strong {
  display: block;
  font-size: 0.82rem;
}
#tab-text .pic-row-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}
.shot-wrap {
  position: relative;
  display: inline-block;
  margin-top: 0.35rem;
  max-width: min(260px, 100%);
}
.shot-wrap .shot {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
}
.shot-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #121416cc;
  color: #d7e3ee;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}
.shot-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.shot-bar button {
  margin: 0;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 0;
  background: #121416d8;
  color: #f2f6fa;
  font-size: 0.72rem;
  font-weight: 700;
}
.shot-wrap.clip::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #121416cc;
  border: 1px solid #e6eef6aa;
}
.shot-wrap.clip::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #f4f7fa;
}
#tab-text .compose-row #btnText {
  color: #0b1218;
  background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%);
  border: 1px solid #9aa8b6;
  box-shadow: inset 0 1px 0 #ffffffee, 0 4px 14px #0006;
}
#tab-text .compose-row #btnAttach {
  color: #e8eef6;
  background: #1a1e24;
  border: 1px solid #5c656e;
}
#btnText {
  min-height: 44px;
  color: #0b1218;
  background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%);
  border: 1px solid #9aa8b6;
  font-weight: 760;
  box-shadow: inset 0 1px 0 #ffffffee, 0 4px 14px #0006;
}
#tab-text .chat-thread {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: calc(100% - 8px);
  text-align: left;
  background: #15181c;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  margin: 0 4px 6px;
  padding: 8px;
  min-height: 52px;
}
#tab-text .thread-copy { min-width: 0; }
#tab-text .thread-who {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
#tab-text .thread-lock {
  width: 13px;
  height: 13px;
  color: #c9a45a;
  display: inline-flex !important;
  overflow: visible;
  white-space: nowrap;
}
#tab-text .thread-lock svg { width: 13px; height: 13px; display: block; }
#tab-text .thread-when-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
#tab-text .thread-when {
  color: #9db4c9;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}
#tab-text .chat-thread.has-unread .thread-who {
  font-weight: 800;
  color: #fff;
}
#tab-text .chat-thread.has-unread .thread-copy > span {
  color: #e8f0f6;
  font-weight: 650;
}
#tab-text .chat-thread.has-unread .thread-when {
  color: #ffd36a;
}
#tab-text .chat-thread.is-mute .thread-who {
  opacity: 0.78;
}
#tab-text .thread-label {
  padding: 10px 14px 4px;
  color: #c9a45a;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#tab-text .thread-pin {
  width: 16px;
  height: 16px;
  color: #ffd36a;
  display: inline-flex;
  flex: 0 0 16px;
}
#tab-text .thread-pin svg {
  width: 16px;
  height: 16px;
  display: block;
}
#tab-text .thread-marks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
#tab-text .chat-find {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #3d444c;
  background: #15181c;
  flex: 0 0 auto;
}
#tab-text .chat-find[hidden] { display: none !important; }
#tab-text .chat-find input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  font-size: 16px;
}
#tab-text .chat-find #chatFindX {
  width: auto;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
}
#tab-text #chatTitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}
#tab-text .chat-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  min-height: 44px;
  justify-content: center;
}
#tab-text .chat-people {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9db4c9;
  font-size: 0.78rem;
  font-weight: 550;
}
#tab-text .chat-people[hidden] { display: none !important; }
#tab-text .chat-roster {
  padding: 8px 12px 16px;
  border-bottom: 1px solid #3d444c;
  background: #15181c;
  overflow: auto;
  min-height: 0;
}
#tab-text.info-open .chat-roster {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(28px + var(--phone-dock-clear, 116px));
}
#tab-text.info-open .chat-stream,
#tab-text.info-open .chat-compose,
#tab-text.info-open .chat-find,
#tab-text.info-open .chat-pinbar {
  display: none !important;
}
#tab-text .chat-roster[hidden] { display: none !important; }
#tab-text .chat-pinbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid #3d444c;
  background: #1a1510;
  color: #f2e4c4;
  cursor: pointer;
}
#tab-text .chat-pinbar[hidden] { display: none !important; }
#tab-text .chat-pinbar strong {
  flex: 0 0 auto;
  color: #ffd36a;
  font-size: 0.78rem;
}
#tab-text .chat-pinbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
#tab-text .info-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 0 12px;
}
#tab-text .info-hero .info-close {
  align-self: flex-end;
  width: auto;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
}
#tab-text .info-av {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.4rem;
}
#tab-text .info-hero h3 {
  margin: 0;
  font-size: 1.15rem;
}
#tab-text .info-hero p,
#tab-text .info-facts,
#tab-text .info-people p {
  margin: 0;
  color: #9db4c9;
  font-size: 0.82rem;
}
#tab-text .info-facts { margin: 8px 0 12px; }
#tab-text .info-hard {
  color: #f2f5f8;
  font-weight: 700;
}
#tab-text .info-acts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#tab-text .info-acts button {
  margin: 0;
  min-height: 44px;
  width: 100%;
}
#tab-text .info-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 8px;
}
#tab-text .info-tabs button {
  margin: 0;
  min-height: 40px;
  width: 100%;
  padding: 0 6px;
  font-size: 0.78rem;
}
#tab-text .info-tabs button.on {
  color: #1a1204;
  background: #e8b24a;
  border-color: #e8b24a;
}
#tab-text .info-pane { padding: 4px 0 10px; }
#tab-text .info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#tab-text .info-cell {
  margin: 0;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #0f1216;
  border: 1px solid #3d444c;
}
#tab-text .info-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#tab-text .info-link,
#tab-text .info-file {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 6px;
  min-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-text .bubble-link {
  color: #8fd0ff;
  text-decoration: underline;
  word-break: break-all;
}
#tab-text .info-people {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #3d444c;
}
#tab-text .info-people h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}
#tab-text .chat-roster p {
  margin: 0 0 8px;
  color: #9db4c9;
  font-size: 0.82rem;
}
#tab-text .roster-add {
  width: 100%;
  min-height: 44px;
  margin: 8px 0 0;
}
#tab-text .roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
#tab-text .roster-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tab-text .bubble-who {
  display: block;
  margin: 0 0 4px;
  color: #e8c547;
  font-size: 0.75rem;
  font-weight: 700;
}
#tab-text .thread-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9db4c9;
  font-size: 0.82rem;
  font-weight: 450;
}
#tab-text .thread-av,
.face-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101e2d;
  border: 1px solid #c9a45a;
  color: #f2f5f8;
  font-weight: 750;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}
#tab-text .thread-av.group-av {
  overflow: visible;
  border: 0;
  background: transparent;
  border-radius: 0;
}
#tab-text .group-av-bit {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101e2d;
  border: 1px solid #15181c;
  color: #f2f5f8;
  font-size: 0.55rem;
  font-weight: 750;
}
#tab-text .group-av-bit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#tab-text .group-av-bit:nth-child(1) { left: 0; top: 16px; z-index: 1; }
#tab-text .group-av-bit:nth-child(2) { right: 0; top: 16px; z-index: 1; }
#tab-text .group-av-bit:nth-child(3) { left: 9px; top: 0; z-index: 2; }
#tab-text .chat-head .thread-av.group-av {
  width: 40px;
  height: 40px;
}
#tab-text .info-av.group-av {
  width: 72px !important;
  height: 72px !important;
}
#tab-text .info-av.group-av .group-av-bit {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}
#tab-text .info-av.group-av .group-av-bit:nth-child(1) { left: 0; top: 28px; }
#tab-text .info-av.group-av .group-av-bit:nth-child(2) { right: 0; top: 28px; }
#tab-text .info-av.group-av .group-av-bit:nth-child(3) { left: 16px; top: 0; }
#tab-text .thread-av img,
.face-av img,
#tab-text .bubble-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#tab-text .thread-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 4.6em;
  overflow: visible;
}
#tab-text .thread-count {
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8b24a;
  color: #1a1408;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.face-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.face-av {
  width: 64px;
  height: 64px;
  font-size: 1.3rem;
}
.face-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.face-tools button {
  width: auto;
  min-height: 44px;
}
.people-face {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}
.people-face .face-av {
  width: 32px;
  height: 32px;
}
.who-face {
  width: 44px;
  height: 44px;
  margin: 0 0 8px;
}
#tab-text .chat-thread.on {
  border-radius: 12px;
  outline: 1px solid #5c656e;
  background: #1a1e24;
  box-shadow: none;
}
#tab-text .bubble.in,
#tab-text .bubble.out {
  box-shadow: none;
  color: var(--text);
  max-width: min(82%, 340px);
  padding: 8px 10px 6px;
}
#tab-text .bubble.in {
  margin-right: auto;
  background: #15181c;
  border: 1px solid #2a3036;
  border-radius: 12px;
}
#tab-text .bubble.in::after,
#tab-text .bubble.out::after { content: none; }
#tab-text .bubble.out {
  margin-left: auto;
  background: #2a3038;
  border: 1px solid #5c656e;
  border-radius: 12px;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  border-radius: 12px;
  background: #121c28;
  border: 1px solid #c9a45a55;
}
.file-kind {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #8b2a2a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.file-copy { min-width: 0; flex: 1; }
.file-copy strong { display: block; font-size: 0.86rem; }
.file-copy span { color: var(--muted); font-size: 0.72rem; }
.file-dl {
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7e3ee;
}
.file-dl svg { width: 22px; height: 22px; display: block; margin: auto; }
.file-kind.zip { background: #2a4a8b; }
#tab-text .bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: nowrap;
}
#tab-text .bubble-acts {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 6px;
  bottom: 4px;
  z-index: 2;
}
#tab-text .bubble:hover .bubble-acts,
#tab-text .bubble:focus-within .bubble-acts,
#tab-text .bubble.show-acts .bubble-acts {
  opacity: 1;
  pointer-events: auto;
}
#tab-text .bubble-pin-mark {
  width: 14px;
  height: 14px;
  color: #ffd36a;
  display: inline-flex;
  flex: 0 0 14px;
}
#tab-text .bubble-pin-mark svg {
  width: 14px;
  height: 14px;
  display: block;
}
#tab-text .bubble-ico {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c9a45a;
  display: grid;
  place-items: center;
}
#tab-text .bubble-ico svg {
  width: 14px;
  height: 14px;
  display: block;
}
#tab-text .bubble-ico.on,
#tab-text .bubble.is-pinned .bubble-ico.on {
  color: #ffd36a;
  background: #ffd36a22;
}
#tab-text .bubble-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: auto;
}
#tab-text .bubble-time {
  color: #9db4c9;
  font-size: 0.7rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1;
}
#tab-text .bubble.out .bubble-time {
  color: #d5e4f2;
}
#tab-text .burn-line {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.68rem;
}
#tab-text .bubble .burn-line .flame {
  width: 11px;
  height: 14px;
}
#tab-text .bubble.is-pinned {
  outline: 1px solid #e8b24a66;
}
#tab-text .chat-day {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.v8-nav {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: 40;
  flex: 0 0 auto;
  width: 100%;
  max-width: 1440px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  overflow: visible;
  border-radius: 0;
  background: #121416;
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}
.v8-nav .nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 16px;
  gap: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #9aa3ad;
  font-size: 0.8rem;
  font-weight: 700;
}
.v8-nav .nav-item svg,
.v8-nav .nav-item img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}
.v8-nav .nav-item img { filter: grayscale(0.15); }
.v8-nav .tab-unread {
  display: none;
  position: absolute;
  top: 4px;
  right: 14%;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8b24a;
  box-shadow: 0 0 0 2px #101e2d;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #1a1408;
}
.v8-nav .nav-item.has-unread .tab-unread { display: flex; }
.v8-nav .nav-item.active {
  color: #0b1218;
  border: 1px solid #9aa8b6;
  background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%);
  box-shadow: inset 0 1px 0 #ffffffee, inset 0 -1px 0 #7f8c99;
}
.v8-nav .nav-item.active svg { color: #0b1218; }

#walletGate {
  width: min(440px, calc(100% - 32px));
  margin: 24px auto;
  border-radius: 24px;
  padding: 22px;
}

@media (min-width: 981px) {
  body:not(.need-app):not(.need-wallet) .v8-nav {
    display: grid !important;
    width: 100%;
    max-width: 1440px;
    grid-template-columns: repeat(4, 1fr);
  }
  .v8-nav .nav-item[data-go="wallets"] { display: flex !important; }
  #deskLayout[data-desk="wallets"] {
    grid-template-columns: minmax(0, 1fr);
  }
  #deskLayout[data-desk="wallets"] #walletMain { order: 1; }
}

@media (max-width: 980px) {
  body.need-app .door-side,
  body.need-wallet .door-side { display: none !important; }
  body.need-app,
  body.need-wallet {
    padding: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: auto !important;
  }
  body.need-app #appGate {
    width: min(440px, calc(100% - 16px)) !important;
    max-width: 440px !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 1 auto !important;
    margin: 0 auto !important;
    padding: 22px 22px 18px;
    border-radius: 28px;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }
  body.need-app #appGate h2 {
    display: block !important;
    text-align: center;
    margin: 0 0 12px;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }
  body.need-app #appGateScroll {
    overflow: visible;
    flex: none;
  }
  body.need-app #appGate .gate-mark {
    width: 88px;
    height: 88px;
    margin: 0 auto 10px;
  }
  body.need-app #appGateScroll {
    scrollbar-width: thin;
    scrollbar-color: #5c656e transparent;
  }
  body.need-app #appGate .recovery-warn {
    margin-bottom: 4px;
  }
  body:not(.need-app) {
    padding: max(8px, env(safe-area-inset-top, 0px)) 0 0;
  }
  body:not(.need-app) header {
    height: auto;
    min-height: 76px;
    padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 8px max(8px, env(safe-area-inset-left, 0px));
  }
  body:not(.need-app) .hdr-brand .mark,
  body.need-app .hdr-brand .mark {
    width: clamp(72px, 20vw, 92px);
    height: clamp(72px, 20vw, 92px);
  }
  body:not(.need-app):not(.need-wallet) #btnHdrRefresh {
    display: inline-flex !important;
  }
  body:not(.need-app):not(.need-wallet) header #btnInfoDesk {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #btnHdrRefresh span {
    display: none;
  }
  .v8-nav {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(4, 1fr);
    min-height: 80px;
    height: auto;
    bottom: auto;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
  .v8-nav .nav-item {
    min-height: 68px;
    font-size: 12px;
    gap: 5px;
  }
  .v8-nav .nav-item svg,
  .v8-nav .nav-item img {
    width: 30px;
    height: 30px;
  }
  #deskLayout {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
  }
  #deskLayout[data-desk="wallets"] #walletMain {
    display: flex;
    order: 1;
  }
  #deskLayout[data-desk="wallets"] #deskMain { display: none !important; }
  #walletSide,
  #deskLayout[data-desk="mine"] #walletSide,
  #deskLayout[data-desk="transfer"] #walletSide,
  #deskLayout[data-desk="text"] #walletSide {
    display: none !important;
  }
  #deskLayout[data-desk="wallets"] #walletSide { display: contents !important; }
  #walletCol,
  #walletMain,
  #deskMain { padding: 8px 10px 0; border-radius: 0; }
  #walletHeroActions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  #walletHeroActions .ghost {
    min-height: 42px;
    padding: 8px 4px;
    font-size: 12px;
  }
  .activity-card { display: none !important; }
  #deskLayout[data-desk="mine"] #walletCol,
  #deskLayout[data-desk="transfer"] #walletCol,
  #deskLayout[data-desk="text"] #walletCol,
  #deskLayout[data-desk="text"] #walletMain { display: none; }
  #deskLayout[data-desk="text"] #deskMain { grid-column: auto; }
  #tab-text .chat {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }
  #tab-text .chat-list,
  #tab-text .chat-main {
    grid-column: auto;
  }
  #tab-text:not(.thread-open) .chat-main { display: none !important; }
  #tab-text.thread-open .chat-list { display: none !important; }
  #tab-text.thread-open #btnChatBack { display: inline-flex; }
  #tab-text .chat-list,
  #tab-text .chat-main {
    min-height: 0;
    height: 100%;
    flex: 1;
    max-height: none;
  }
  #tab-text .chat-compose {
    position: relative;
    bottom: auto;
  }
  #tab-text .chat-list {
    padding-right: 0;
    border-right: 0;
  }
  #tab-text .chat-thread {
    width: calc(100% - 8px);
    min-height: 56px;
  }
  .xfer-metrics { grid-template-columns: 1fr; }
  #tab-transfer.on { grid-template-columns: 1fr; }
  #tab-transfer .xfer-form,
  #tab-transfer .xfer-side {
    padding: 14px 12px;
  }
  .mine-dash { grid-template-columns: 1fr 1fr; }
  .mine-actions {
    grid-template-columns: 1fr 1fr;
  }
  .mine-cta #btnCollect { width: 100%; }
}
@media (max-width: 980px) and (max-height: 740px) {
  body.need-app #appGate .gate-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto 4px;
  }
  body.need-app #appGate .info-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  body.need-app #appGate label { margin: 8px 0 4px; }
  body.need-app #appGate .tip { font-size: 0.76rem; }
}
@media (max-width: 699px) {
  #tab-text.on {
    height: 100%;
  }
  #tab-text .chat-list,
  #tab-text .chat-main {
    height: 100%;
    max-height: none;
  }
  #tab-text .chat {
    grid-template-columns: 1fr !important;
  }
  #tab-text:not(.thread-open) .chat-main { display: none !important; }
  #tab-text.thread-open .chat-list { display: none !important; }
  #tab-text.thread-open #btnChatBack { display: inline-flex; }
  #tab-text .compose-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }
  #dropModal .modal {
    padding: 16px 14px 14px;
  }
  #dropModal .modal-head h3 { font-size: 1.12rem; }
  #dropModal #dropActions button {
    min-height: 46px;
    height: 46px;
  }
  .mine-actions {
    grid-template-columns: 1fr;
  }
}

/* Wide canvas is three columns. Nav stays at the bottom on every width. */
@media (min-width: 981px) {
  body.need-app {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background:
      radial-gradient(820px 380px at 50% -8%, rgba(201, 164, 90, 0.14), transparent 58%),
      var(--bg);
  }
  body.need-app .door-side {
    display: none !important;
  }
  body.need-app #appGate {
    width: min(440px, 100%) !important;
    max-width: 440px;
    max-height: calc(100dvh - 56px);
    margin: 0 auto !important;
    padding: 22px 22px 18px;
  }
  body.need-app #appGate .side-head {
    display: block !important;
  }
  body.need-app #appGate .gate-mark {
    display: block !important;
    width: 88px;
    height: 88px;
    margin: 0 auto 10px;
  }
  body.need-app #appGate h2 {
    display: block !important;
    text-align: center;
    margin: 0 0 12px;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }
  body.need-app #appGate .info-btn {
    display: inline-flex !important;
  }
  body.need-app #appGate .field-ico {
    display: none;
  }
  body.need-app #appGate .pass-row .field-ico {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) {
    display: flex !important;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    padding: 0;
  }
  body:not(.need-app):not(.need-wallet) header {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 64px;
    padding: 8px 18px;
    border-bottom: 1px solid #3d444c;
  }
  body:not(.need-app):not(.need-wallet) .hdr-meta {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  body:not(.need-app):not(.need-wallet) .hdr-chip,
  body:not(.need-app):not(.need-wallet) .hdr-height {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #5c656e;
    background: #15181c;
    font-size: 0.78rem;
  }
  body:not(.need-app):not(.need-wallet) .look {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout {
    display: grid !important;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(230px, 270px);
    grid-template-areas: "side main act";
    gap: 12px;
    width: calc(100% - 24px);
    max-width: 1680px;
    margin: 10px auto 8px;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(230px, 270px);
    grid-template-areas: "side main act";
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"],
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"],
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
    grid-template-areas: "main act";
  }
  body:not(.need-app):not(.need-wallet) .v8-rail {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) .v8-nav {
    display: grid !important;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 40;
    width: calc(100% - 24px);
    max-width: 1680px;
    margin: 0 auto 12px;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    min-height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: #14181d;
    border: 1px solid #5c656e;
    box-shadow: 0 10px 28px #000a, inset 0 1px 0 #ffffff22;
  }
  body:not(.need-app):not(.need-wallet) #walletSide {
    display: contents !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] #walletSide,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #walletSide,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] #walletSide,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletSide {
    display: contents !important;
  }
  body:not(.need-app):not(.need-wallet) #walletCol {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    grid-area: side;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    scroll-padding-bottom: 28px;
    border-radius: 22px;
    padding: 14px 14px 36px;
    background: linear-gradient(180deg, #1a1e24, #101214);
    border: 1px solid #5c656e;
    box-shadow: 0 12px 28px #0007;
  }
  body:not(.need-app):not(.need-wallet) #walletSide .pass-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body:not(.need-app):not(.need-wallet) #walletSide .pass-row input {
    min-width: 0;
    flex: 1 1 auto;
  }
  body:not(.need-app):not(.need-wallet) #walletSide .pass-row .ghost {
    flex: 0 0 auto;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] #walletCol,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #walletCol,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] #walletCol {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletCol {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout.side-shut[data-desk="wallets"] {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
    grid-template-areas: "main act";
  }
  body:not(.need-app):not(.need-wallet) #deskLayout.side-shut #walletSide {
    display: contents !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout.side-shut[data-desk="wallets"] #walletCol {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout.side-shut[data-desk="wallets"] #walletMain {
    display: flex !important;
    grid-area: main;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout.side-shut[data-desk="wallets"] #deskMain {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #btnWalletMenu {
    display: inline-flex !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout.side-shut[data-desk="wallets"] #btnWalletMenu {
    display: inline-flex !important;
  }
  body:not(.need-app):not(.need-wallet) #walletCol .side-head {
    cursor: default;
    width: 100%;
    margin: 0;
  }
  body:not(.need-app):not(.need-wallet) #walletCol .side-head h2 {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
  }
  body:not(.need-app):not(.need-wallet) #walletMain {
    display: none;
    flex-direction: column;
    gap: 12px;
    grid-area: main;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    border-radius: 22px;
    padding: 14px 16px 18px;
    background: linear-gradient(180deg, #1a1e24, #101214);
    border: 1px solid #5c656e;
    box-shadow: 0 12px 28px #0007;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] #walletMain,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #walletMain,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] #walletMain {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletMain {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] #balHero,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #balHero,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] #balHero,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] .act-card,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] .act-card,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] .act-card {
    display: none;
  }
  body:not(.need-app):not(.need-wallet) #deskMain {
    display: flex !important;
    flex-direction: column;
    grid-column: auto !important;
    grid-area: main;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    border-radius: 22px;
    padding: 14px 16px 28px;
    background: linear-gradient(180deg, #1a1e24, #101214);
    border: 1px solid #5c656e;
    box-shadow: 0 12px 28px #0007;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #deskMain {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] #deskMain,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #deskMain,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] #deskMain {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) .activity-card {
    display: flex !important;
    flex-direction: column;
    grid-column: auto !important;
    grid-area: act;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(180deg, #1a1e24, #101214);
    border: 1px solid #5c656e;
    box-shadow: 0 12px 28px #0007;
  }
  body:not(.need-app):not(.need-wallet) .activity-card #log {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    max-height: none;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs,
  body:not(.need-app):not(.need-wallet) #deskMain .visual-tabs {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs[data-active="transfer"],
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs[data-active="text"],
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs[data-active="mining"],
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs[data-active="wallets"] {
    background-image: none !important;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 12px;
    background: transparent !important;
    color: #9aa3ad !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none !important;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab svg {
    display: block !important;
    width: 22px;
    height: 22px;
    color: inherit;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab.on {
    color: #0b1218 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%) !important;
    border: 1px solid #9aa8b6;
    box-shadow: inset 0 1px 0 #ffffffee, inset 0 -1px 0 #7f8c99 !important;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab-unread {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs .tab.has-unread .tab-unread {
    display: block !important;
    background: #e8b24a;
  }
  body:not(.need-app):not(.need-wallet) #feePanel {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #walletSide .side-head {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #walletCol .side-head {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine.on,
  body:not(.need-app):not(.need-wallet) #tab-transfer.on,
  body:not(.need-app):not(.need-wallet) #tab-text.on {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer.on {
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-form,
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-side {
    min-height: 0;
    overflow: auto;
  }
  body:not(.need-app):not(.need-wallet) #walletCol .tip,
  body:not(.need-app):not(.need-wallet) #connHint {
    font-size: 0.72rem;
    line-height: 1.3;
    margin: 0;
  }
  body:not(.need-app):not(.need-wallet) #btnDisconnect:empty {
    display: none;
  }
}

@media (max-width: 980px) {
  body:not(.need-app):not(.need-wallet) .card .tabs.visual-tabs,
  body:not(.need-app):not(.need-wallet) #deskMain .visual-tabs {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) .activity-card {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) {
    display: flex !important;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    --phone-dock-clear: calc(116px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.need-app):not(.need-wallet) .v8-nav {
    display: grid !important;
    position: fixed;
    left: 50%;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 60;
    width: min(520px, calc(100% - 18px));
    max-width: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    min-height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: #14181d;
    border: 1px solid #5c656e;
    box-shadow: 0 10px 28px #000a, inset 0 1px 0 #ffffff22;
  }
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item {
    min-height: 60px;
    border-radius: 999px;
    color: #9aa3ad;
    background: transparent;
    border: 0;
  }
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item svg {
    color: inherit;
  }
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item.active,
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item[data-go="transfer"].active,
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item[data-go="text"].active,
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item[data-go="wallets"].active,
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item[data-go="mine"].active,
  body:not(.need-app):not(.need-wallet) .v8-nav .nav-item[data-go="feed"].active {
    color: #0b1218;
    background: linear-gradient(180deg, #f8fafc 0%, #d5dde4 36%, #9aa8b6 70%, #c7d0d8 100%);
    border: 1px solid #9aa8b6;
    box-shadow: inset 0 1px 0 #ffffffee, inset 0 -1px 0 #7f8c99;
  }
  body:not(.need-app):not(.need-wallet) {
    overflow: hidden !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(8px, env(safe-area-inset-top, 0px)) 0 0 !important;
    padding-bottom: 0 !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 10px 0 !important;
    padding-bottom: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  body:not(.need-app):not(.need-wallet) #lookSwitch,
  body:not(.need-app):not(.need-wallet) #lookDark,
  body:not(.need-app):not(.need-wallet) #lookLight,
  body:not(.need-app):not(.need-wallet) #btnShowWallets,
  body:not(.need-app):not(.need-wallet) #btnWalletMenu,
  body:not(.need-app):not(.need-wallet) .look,
  body:not(.need-app):not(.need-wallet) .hdr-meta,
  body:not(.need-app):not(.need-wallet) .mobile-page-heading {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) header {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    z-index: 5;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: max(4px, env(safe-area-inset-top, 0px)) 10px 4px;
  }
  body:not(.need-app):not(.need-wallet) .hdr-brand .mark {
    width: 44px !important;
    height: 44px !important;
  }
  body:not(.need-app):not(.need-wallet) .hdr-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }
  body:not(.need-app):not(.need-wallet) #linkLamp {
    height: 44px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    gap: 6px;
    flex: 0 0 auto;
  }
  body:not(.need-app):not(.need-wallet) #linkLamp span {
    display: inline !important;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
  }
  body:not(.need-app):not(.need-wallet) #btnHdrRefresh,
  body:not(.need-app):not(.need-wallet) #btnLogout {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  body:not(.need-app):not(.need-wallet) header #btnInfoDesk {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #walletMain,
  body:not(.need-app):not(.need-wallet) #deskMain {
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 2px 0 !important;
    scroll-padding-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #deskMain {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
  body:not(.need-app):not(.need-wallet) #walletMain {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="mine"] #deskMain,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #deskMain,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="text"] #deskMain {
    display: flex !important;
  }
  body:not(.need-app):not(.need-wallet) #balHero {
    position: relative;
    z-index: 1;
    overflow: visible;
    height: auto !important;
    min-height: auto !important;
    flex: 0 0 auto !important;
    gap: 12px;
    padding: 16px;
  }
  body:not(.need-app):not(.need-wallet) #recvCard,
  body:not(.need-app):not(.need-wallet) #walletKeyCard,
  body:not(.need-app):not(.need-wallet) #passFold {
    position: relative;
    z-index: 0;
    margin-top: 10px;
  }
  body:not(.need-app):not(.need-wallet) .bal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 48px;
  }
  body:not(.need-app):not(.need-wallet) .bal-top > div {
    min-width: 0;
    flex: 1 1 auto;
  }
  body:not(.need-app):not(.need-wallet) #balHeroVal {
    display: block;
    margin-top: 4px;
    font-size: 1.8rem;
    line-height: 1.15;
  }
  body:not(.need-app):not(.need-wallet) #btnBalEye {
    position: static !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  body:not(.need-app):not(.need-wallet) #walletHeroActions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] .act-card {
    display: none;
  }
  body:not(.need-app):not(.need-wallet) html,
  body:not(.need-app):not(.need-wallet) {
    overflow-x: hidden;
    max-width: 100%;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout,
  body:not(.need-app):not(.need-wallet) #tab-mine,
  body:not(.need-app):not(.need-wallet) #tab-transfer,
  body:not(.need-app):not(.need-wallet) #tab-text,
  body:not(.need-app):not(.need-wallet) .mine-dash,
  body:not(.need-app):not(.need-wallet) .xfer-form,
  body:not(.need-app):not(.need-wallet) .xfer-side,
  body:not(.need-app):not(.need-wallet) .mine-tile {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body:not(.need-app):not(.need-wallet) .mine-dash {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    width: 100%;
  }
  body:not(.need-app):not(.need-wallet) .mine-tile {
    width: 100%;
    min-height: 56px;
    overflow: hidden;
  }
  body:not(.need-app):not(.need-wallet) .xfer-pair,
  body:not(.need-app):not(.need-wallet) #tab-mine .row,
  body:not(.need-app):not(.need-wallet) .hist-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  body:not(.need-app):not(.need-wallet) .xfer-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  body:not(.need-app):not(.need-wallet) .xfer-metrics .mine-tile:last-child {
    grid-column: 1 / -1;
  }
  body:not(.need-app):not(.need-wallet) .pct-row-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  body:not(.need-app):not(.need-wallet) #feePanel {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer.on {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: stretch !important;
    gap: 10px;
    overflow: visible !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-form,
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-side {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    position: static !important;
    inset: auto !important;
    isolation: isolate;
    z-index: 0;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-form {
    order: 1;
    padding-bottom: var(--phone-dock-clear) !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="transfer"] #deskMain {
    padding-bottom: 0 !important;
    overflow: auto !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-side {
    order: 2;
    padding-bottom: var(--phone-dock-clear) !important;
    border-bottom: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #1a1e24, #101214) !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer .xfer-side h2 {
    margin-top: 0 !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer .hist-list {
    flex: 0 0 auto !important;
    min-height: 48px;
    max-height: none !important;
    overflow: visible !important;
  }
  body:not(.need-app):not(.need-wallet) .xfer-lock-line {
    font-size: 0.75rem;
    line-height: 1.25;
    margin: 0 0 6px;
  }
  body:not(.need-app):not(.need-wallet) #tab-text .chat,
  body:not(.need-app):not(.need-wallet) #tab-text .chat-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none !important;
    gap: 0 !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-text .chat-threads {
    padding-bottom: 0;
  }
  body:not(.need-app):not(.need-wallet) #tab-text .chat-compose {
    margin-bottom: var(--phone-dock-clear);
    padding: 8px 12px 10px;
  }
  body:not(.need-app):not(.need-wallet) #tab-text.info-open .chat-roster {
    padding-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #tab-text .text-drawer-body {
    padding-bottom: calc(24px + var(--phone-dock-clear));
  }
  body:not(.need-app):not(.need-wallet) #tab-text .chat-list {
    padding-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #tab-mine {
    display: none;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine.on {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #tab-mine.on > #feePanel {
    margin-bottom: var(--phone-dock-clear);
    padding-bottom: 8px;
  }
  body:not(.need-app):not(.need-wallet) #mineFeed:empty {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #mineHero,
  body:not(.need-app):not(.need-wallet) .screenhead .eyebrow {
    display: none;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--phone-dock-clear) !important;
    scroll-padding-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletCol {
    display: contents !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletUnlock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    order: 0;
    flex: 0 0 auto;
    padding: 4px 2px 8px;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletUnlock label {
    margin: 0;
    font-size: 0.72rem;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletCol .tip,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #connHint,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletUnlock .tip {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletMain {
    order: 1;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 2px 10px !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletMain .act-card,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletKeyCard {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #recvCard {
    margin-top: 0;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletCol .fold,
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #passFold {
    order: 2;
    flex: 0 0 auto;
    margin: 0 0 8px;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #passFold {
    margin-bottom: 8px;
  }
  body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="wallets"] #walletCol #removeFold {
    margin-top: calc(24px + var(--phone-dock-clear));
    margin-bottom: var(--phone-dock-clear);
    scroll-margin-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #walletQuick {
    display: none !important;
  }
  body:not(.need-app):not(.need-wallet) #tab-text.on {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }
  body:not(.need-app):not(.need-wallet) #tab-transfer.on {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine.on {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding-bottom: var(--phone-dock-clear);
  }
  body:not(.need-app):not(.need-wallet) #tab-text .chat {
    flex: 1 1 auto;
    min-height: 0;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine .mine-dash:not(.hook-dash) .mine-tile:nth-child(n+5) {
    display: none;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine .hook-dash .mine-tile {
    display: flex;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine.on {
    gap: 8px;
  }
  body:not(.need-app):not(.need-wallet) #tab-mine.on > .mine-cta {
    order: 12;
  }
  .panel:not(.on) {
    display: none !important;
  }
}
}

body.on-feed header,
body.on-feed .mobile-page-heading,
body.on-feed .v8-rail,
body:not(.need-app):not(.need-wallet).on-feed header,
body:not(.need-app):not(.need-wallet).on-feed .mobile-page-heading,
body:not(.need-app):not(.need-wallet).on-feed .v8-rail {
  display: none !important;
}
#deskLayout[data-desk="feed"] #walletSide,
#deskLayout[data-desk="feed"] #walletMain,
#deskLayout[data-desk="feed"] #walletCol,
#deskLayout[data-desk="feed"] .activity-card,
body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="feed"] .activity-card,
body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="feed"] #walletMain,
body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="feed"] #walletCol,
body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="feed"] #walletSide {
  display: none !important;
}
#deskLayout[data-desk="feed"],
body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="feed"] {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
  min-height: 0;
  flex: 1 1 auto;
}
#deskLayout[data-desk="feed"] #deskMain,
body:not(.need-app):not(.need-wallet) #deskLayout[data-desk="feed"] #deskMain {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  grid-column: 1 / -1 !important;
  grid-area: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #07080c !important;
  box-shadow: none !important;
}
#tab-feed {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #07080c;
}
#tab-feed.on {
  display: flex !important;
  padding: 16px 16px var(--phone-dock-clear, 116px);
  overflow-x: hidden;
  overflow-y: auto;
}
#deskLayout[data-desk="feed"] #deskMain > h2,
#deskLayout[data-desk="feed"] .visual-tabs {
  display: none !important;
}
.f2147227549 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 16px;
  width: 343px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
  flex: 0 0 auto;
  font-family: "SF Pro Display", "SF Pro", system-ui, sans-serif;
}
.f2147227549 button {
  width: auto;
  min-height: 0;
  margin: 0;
}
.f2147227549 .f-post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 12px;
  width: 343px;
  flex: none;
  align-self: stretch;
}
.f2147227549 .f-post2 {
  opacity: 0.5;
  gap: 16px;
}
.f2147227549 .f-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  gap: 10px;
  width: 343px;
  min-height: 36px;
  align-self: stretch;
}
.f2147227549 .f-who {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 10px;
  min-width: 152px;
}
.f2147227549 .f-ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d9d9d9;
  flex: none;
}
.f2147227549 .f-who-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 6px;
}
.f2147227549 .f-name-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 6px;
  height: 16px;
}
.f2147227549 .f-name-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 4px;
  height: 16px;
}
.f2147227549 .f-name {
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  color: #ffffff;
  white-space: nowrap;
}
.f2147227549 .f-verified {
  width: 16px;
  height: 16px;
  flex: none;
}
.f2147227549 .f-time {
  width: auto;
  height: 12px;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  color: #7d7d86;
}
.f2147227549 .f-creator {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  width: 41px;
  height: 14px;
  line-height: 14px;
  overflow: hidden;
  background: rgba(215, 140, 255, 0.1);
  border-radius: 30px;
  font-family: "SF Pro", "SF Pro Display", system-ui, sans-serif;
  font-weight: 510;
  font-size: 8px;
  letter-spacing: -0.02em;
  color: #d78cff;
  box-sizing: border-box;
}
.f2147227549 .f-end {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 141px;
  height: 19px;
}
.f2147227549 .f-follow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  width: 51px;
  height: 19px;
  line-height: 19px;
  overflow: hidden;
  background: #484b53;
  border: 0;
  border-radius: 30px;
  font-family: "SF Pro", "SF Pro Display", system-ui, sans-serif;
  font-weight: 510;
  font-size: 10px;
  letter-spacing: -0.02em;
  color: #ffffff;
  box-sizing: border-box;
}
.f2147227549 .f-more {
  width: 24px;
  height: 14px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  padding: 0;
}
.f2147227549 .f-more span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #7b7e86;
}
.f2147227549 .f-photo {
  width: 343px;
  height: 170px;
  background: #d9d9d9;
  border-radius: 16px;
  align-self: stretch;
  flex: none;
}
.f2147227549 .f-cap-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 343px;
}
.f2147227549 .f-cap {
  width: 343px;
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  color: #ffffff;
  align-self: stretch;
}
.f2147227549 .f-edited {
  width: 27px;
  height: 12px;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  color: #7d7d86;
}
.f2147227549 .f-acts {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 57px;
  width: 343px;
  height: 20px;
  align-self: stretch;
}
.f2147227549 .f-acts-l {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 147px;
  height: 20px;
}
.f2147227549 .f-acts-r {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 14px;
  width: 89px;
  height: 20px;
}
.f2147227549 .f-act {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 2px;
  height: 20px;
  font-weight: 500;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: -0.02em;
  color: #cccccc;
}
.f2147227549 .f-act svg,
.f2147227549 .f-send {
  width: 20px;
  height: 20px;
  flex: none;
}
@media (max-width: 980px) {
  body:not(.need-app):not(.need-wallet).on-feed #deskLayout[data-desk="feed"] #deskMain {
    padding-bottom: var(--phone-dock-clear, 116px) !important;
  }
}

/* tup feed screens */
body.feed-on {
  overflow: hidden;
  height: 100dvh;
}
body.feed-on header,
body.feed-on .layout { display: none !important; }
#tab-feed {
  display: none;
  background: #050b11;
}
#tab-feed.on {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 40;
  flex-direction: column;
  padding: 0 !important;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.tup {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  min-height: min-content;
  height: auto;
  background: #050b11;
  color: #fff;
  font-family: "SF Pro Display", "SF Pro", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}
.tup button { width: auto; min-height: 0; margin: 0; background-color: transparent; font-weight: 400; font-size: inherit; }
.tup button:hover { background-color: transparent; }
.tup .f-verified { width: 16px; height: 16px; flex: none; display: block; }
.tup .f-photo { width: 343px; height: 170px; background: #d9d9d9; border-radius: 16px; }
.tup .f-name-row { height: auto; flex-wrap: wrap; align-items: center; }
.tup .f-head { width: 100%; }
.tup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 16px 8px;
  min-height: 76px;
  gap: 8px;
}
.tup-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.tup-logo { width: 20px; height: 20px; border-radius: 4px; background: #64d55f; }
.tup-title { margin: 0 auto; font-size: 16px; font-weight: 700; line-height: 19px; color: #fff; }
.tup-top-r { display: flex; align-items: center; gap: 12px; }
.tup-ico, .tup-back {
  width: 22px; height: 22px; border: 0; background: transparent;
  background-image: radial-gradient(circle at 30% 30%, #fff 1.5px, transparent 2px);
  border: 1.2px solid #fff; border-radius: 50%;
}
.tup-back { border-radius: 0; border: 0; background: none; position: relative; }
.tup-back:before { content: ""; position: absolute; inset: 5px 8px 5px 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.tup-me { width: 22px; height: 22px; border-radius: 50%; background: #d9d9d9; border: 0.5px solid #64d55f; position: relative; }
.tup-me:after { content: ""; position: absolute; width: 6px; height: 6px; right: 0; bottom: 0; background: #64d55f; border-radius: 50%; }
.tup-pub {
  padding: 8px 16px; height: 24px; border: 0; border-radius: 6px;
  background: rgba(125,125,134,0.7); color: #050b11; font-size: 12px; font-weight: 510;
}
.tup-pub.ready { background: linear-gradient(90deg, #9EA0A8 0%, #D7D7DB 49.85%, #9EA0A8 100%); }
.tup-tn { display: flex; width: 100%; }
.tup-tn button {
  flex: 1; height: 30px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: #ccc; font-size: 14px;
}
.tup-tn button.on { color: #64d55f; border-bottom-color: #64d55f; font-weight: 500; }
.tup-chips {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 8px;
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; flex: none;
  scrollbar-width: none;
}
.tup-chips::-webkit-scrollbar { display: none; }
.tup-chips button {
  flex: none; height: 24px; padding: 0 12px; border-radius: 30px;
  border: 1px solid #202428; background: transparent; color: #7b7e86; font-size: 12px; white-space: nowrap;
}
.tup-chips button.on { border-color: #64d55f; color: #64d55f; font-weight: 510; }
.tup-body { flex: none; overflow: visible; padding: 8px 16px var(--phone-dock-clear, 116px); }
.tup-view { display: none; flex-direction: column; gap: 16px; }
.tup-view.on { display: flex; }
.tup .f-post { width: 343px; max-width: 100%; }
.tup-vote {
  box-sizing: border-box; width: 343px; padding: 12px; gap: 12px;
  background: #131618; border: 1px solid #202428; border-radius: 16px;
  display: flex; flex-direction: column; align-items: flex-end;
}
.tup-vote-h { display: flex; gap: 8px; width: 100%; align-items: flex-start; border-bottom: 1px solid #202428; padding-bottom: 10px; }
.tup-vote-mark { width: 20px; height: 20px; border-radius: 4px; background: #64d55f; flex: none; }
.tup-vote-h strong { display: block; font-size: 14px; }
.tup-vote-h span, .tup-vote-t { font-size: 10px; color: #7d7d86; }
.tup-vote-q { display: flex; justify-content: space-between; width: 100%; font-size: 14px; color: #ccc; }
.tup-vote-q span:last-child { font-size: 12px; }
.tup-vote-bar { display: flex; justify-content: space-between; width: 100%; font-size: 12px; }
.tup-vote-bar span:first-child { color: #64d55f; }
.tup-vote-bar span:last-child { color: #ad2223; }
.tup-vote-track { width: 100%; height: 8px; background: #ad2223; border-radius: 6px; overflow: hidden; }
.tup-vote-track i { display: block; width: 0; height: 8px; background: #64d55f; border-radius: 6px; }
.tup-vote-meta { display: flex; justify-content: space-between; width: 100%; font-size: 12px; color: #ccc; }
.tup-vote-btn { padding: 10px 12px; min-height: 44px; background: #484b53; border: 0; border-radius: 30px; color: #fff; font-size: 12px; }
.tup-vboard { display: flex; flex-direction: column; gap: 16px; width: 343px; max-width: 100%; }
.tup-vhero {
  box-sizing: border-box; width: 100%; padding: 24px 16px; gap: 20px;
  background: #131618; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center;
}
.tup-vhero-h { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.tup-vhero-h strong { font-size: 18px; font-weight: 500; color: #fae8b9; letter-spacing: -0.02em; }
.tup-vhero-h span { font-size: 14px; color: #ccc; text-align: center; }
.tup-vglow {
  position: relative; width: 143px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.tup-vglow i {
  position: absolute; width: 121px; height: 121px; border-radius: 50%;
  background: #fffaa9; filter: blur(48px); pointer-events: none;
}
.tup-vglow.rec i { background: #ff7452; }
.tup-vglow.mig i { background: #028a9f; }
.tup-vglow.open i { background: #fffaa9; }
.tup-vglow.gen i { background: #d789fa; }
.tup-vglow b {
  position: relative; z-index: 1; font-size: 22px; font-weight: 600; color: #fae8b9;
}
.tup-vinfo {
  position: absolute; left: 16px; top: 16px; width: 32px; height: 32px;
  border: 0; background: transparent; color: #f57937; font-size: 18px;
}
.tup-vhero { position: relative; }
.tup-vbar { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.tup-vbar-row { display: flex; justify-content: space-between; font-size: 14px; color: #fff; }
.tup-vbar-row.dim { color: #7b7e86; }
.tup-vtrack {
  position: relative; width: 100%; height: 5px; border: 0.5px solid #484b53; border-radius: 6px;
}
.tup-vtrack i {
  display: block; width: 0; height: 5px; border-radius: 6px;
  background: linear-gradient(90deg, #e1403f 0%, #cf8243 100%);
}
.tup-vbody {
  box-sizing: border-box; width: 100%; padding: 10px; background: #131618; border-radius: 10px;
  font-size: 14px; line-height: 21px; color: #ccc;
}
.tup-vacts { display: flex; gap: 14px; width: 100%; }
.tup-vacts button, .tup-vshare {
  flex: 1; min-height: 40px; border-radius: 10px; font-size: 18px; font-weight: 700; color: #fff;
}
.tup-vyes { border: 0; background: linear-gradient(180deg, #922f30 0%, #431d1f 135%); }
.tup-vno { background: transparent; border: 1px solid #484b53; }
.tup-vshare {
  width: 100%; min-height: 40px; background: transparent; border: 1px solid #ccc;
  color: #ccc; font-size: 18px; font-weight: 500; border-radius: 10px;
}
.tup-vacts button.dim, .tup-vshare.dim { color: #7b7e86; border-color: #484b53; background: transparent; }
.tup-vdocs {
  box-sizing: border-box; width: 100%; padding: 10px; background: #131618; border-radius: 10px;
  display: flex; flex-direction: column; gap: 16px;
}
.tup-vdocs h3 { margin: 0; font-size: 16px; font-weight: 500; color: #ccc; }
.tup-vdocs p { margin: 0; font-size: 14px; line-height: 21px; color: #ccc; }
.tup-vpath {
  box-sizing: border-box; width: 100%; padding: 14px; background: #2f2e2e; border-radius: 10px;
  display: flex; flex-direction: column; gap: 14px;
}
.tup-vpath div { display: flex; justify-content: space-between; font-size: 14px; }
.tup-vpath span { color: #ccc; }
.tup-vpath b { color: #fff; font-weight: 400; text-align: right; }
.tup-vwarn {
  box-sizing: border-box; width: 100%; padding: 16px 12px; gap: 16px;
  background: #261414; border: 1px solid #351d18; border-radius: 20px;
  display: flex; align-items: flex-start; color: #fff; font-size: 14px; line-height: 21px;
}
.tup-vwarn strong { color: #fc713d; font-size: 16px; font-weight: 500; flex: none; }
.tup-vup {
  box-sizing: border-box; width: 100%; padding: 14px 12px; background: #131618;
  border: 1px solid #3b3b3b; border-radius: 14px; display: flex; flex-direction: column; gap: 10px;
}
.tup-vup-h { display: flex; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #3b3b3b; }
.tup-vup-h strong { display: block; font-size: 16px; }
.tup-vup-h span { font-size: 10px; color: #7d7d86; }
.tup-vup-row {
  width: 100%; text-align: left; background: transparent; border: 0; color: inherit;
  padding: 0 0 10px; border-bottom: 1px solid #3b3b3b;
  display: flex; flex-direction: column; gap: 4px;
}
.tup-vup-row:last-child { border: 0; padding-bottom: 0; }
.tup-vup-row strong { font-size: 14px; }
.tup-vup-row span { font-size: 12px; color: #7d7d86; }
.tup-vhist {
  box-sizing: border-box; width: 100%; padding: 16px; background: #131618;
  border: 1px solid #202428; border-radius: 20px; display: flex; flex-direction: column; gap: 14px;
}
.tup-vhist h3 { margin: 0; font-size: 16px; color: #ccc; }
.tup-vhist p { margin: 0; font-size: 14px; line-height: 21px; color: #ccc; }
.tup-vhist button {
  align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 20px;
  border: 0.5px solid #ccc; background: #131618; color: #ccc; font-size: 14px;
}
.tup-vflt { display: flex; flex-wrap: wrap; gap: 10px; }
.tup-vflt button {
  height: 32px; padding: 0 12px; border-radius: 5px; border: 0.5px solid #202428;
  background: transparent; color: #7b7e86; font-size: 12px;
}
.tup-vflt button.on { border-color: #64d55f; color: #64d55f; }
.tup-vtable {
  box-sizing: border-box; width: 100%; padding: 12px 10px; background: #131618;
  border: 1px solid #202428; border-radius: 16px; overflow-x: auto;
}
.tup-vtable table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tup-vtable th { text-align: left; color: #7b7e86; font-weight: 400; padding: 0 4px 10px; }
.tup-vtable td { padding: 10px 4px; border-top: 1px solid #202428; color: #fff; }
.tup-vtable td.ok { color: #64d55f; }
.tup-vtable em { display: block; font-style: normal; font-size: 10px; color: #ccc; }
.tup-vstat {
  box-sizing: border-box; width: 100%; padding: 16px 14px; background: #131618; border-radius: 14px;
  display: flex; flex-direction: column; gap: 14px; text-align: left; border: 0; color: inherit;
}
.tup-vstat h3 { margin: 0; font-size: 14px; font-weight: 500; }
.tup-vstat p { margin: 0; font-size: 12px; color: #ccc; }
.tup-vstat-row { display: flex; gap: 14px; }
.tup-vstat-row span {
  flex: 1; min-height: 56px; border: 1px solid #484b53; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px;
}
.tup-vstat-row b { font-size: 14px; font-weight: 700; }
.tup-vshare-line { font-size: 16px; color: #fff; margin: 0 0 12px; }
.tup-ico.search, .tup-ico.bell { position: relative; width: 22px; height: 22px; }
.tup-ico.search { border-radius: 50%; }
.tup-ico.search:after {
  content: ""; position: absolute; width: 6px; height: 2px; right: 2px; bottom: 3px;
  background: #fff; transform: rotate(45deg); border-radius: 1px;
}
.tup-ico.bell { border-radius: 8px 8px 4px 4px; }
.tup-vtools { display: flex; gap: 10px; width: 100%; align-items: center; }
.tup-vasset {
  flex: 1; min-height: 40px; display: flex; gap: 8px; align-items: center;
  padding: 0 10px; background: #131618; border: 1px solid #202428; border-radius: 12px; color: #fff;
}
.tup-vasset i { width: 20px; height: 20px; border-radius: 4px; background: #64d55f; flex: none; }
.tup-vasset b { display: block; font-size: 12px; font-weight: 600; text-align: left; }
.tup-vasset em { display: block; font-size: 10px; color: #7d7d86; font-style: normal; text-align: left; }
.tup-vwal, .tup-vshare-sm {
  height: 32px; padding: 0 12px; border-radius: 20px; border: 0.5px solid #ccc;
  background: transparent; color: #ccc; font-size: 12px; white-space: nowrap;
}
.tup-vnav {
  position: absolute; top: 108px; width: 38px; height: 38px;
  border: 0.5px solid #ccc; border-radius: 30px; background: transparent;
}
.tup-vnav.l { left: 8px; }
.tup-vnav.r { right: 8px; }
.tup-vnav.l:before, .tup-vnav.r:before {
  content: ""; position: absolute; inset: 12px 14px 12px 12px;
  border-left: 2px solid #ccc; border-bottom: 2px solid #ccc;
}
.tup-vnav.l:before { transform: rotate(45deg); }
.tup-vnav.r:before { inset: 12px 12px 12px 14px; transform: rotate(-135deg); }
.tup-vglow.mine { width: 127px; height: 127px; }
.tup-vglow.mine i { width: 96px; height: 96px; background: #64d55f; }
.tup-vwarn.tall { min-height: 97px; }
.tup-vnote-i {
  flex: none; width: 24px; height: 24px; border: 0; background: transparent;
  color: #fc713d; font-size: 14px;
}
.tup-vpill button { border-radius: 30px; }
.tup-vhist-h { display: flex; flex-direction: column; gap: 6px; }
.tup-vhist-h h3 { font-size: 18px; color: #fff; }
.tup-vhist-h p { font-size: 12px; color: #7b7e86; }
.tup-vfind {
  box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px;
  background: #131618; border: 1px solid #202428; border-radius: 10px;
  color: #fff; font-size: 16px;
}
.tup-vcta {
  display: block; width: 143px; min-height: 44px; margin: 8px auto 0;
  border: 0; border-radius: 10px; background: #484b53; color: #fff; font-size: 14px;
}
.tup-vmine { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tup-vmine-row {
  width: 100%; text-align: left; padding: 12px; background: #131618;
  border: 1px solid #3b3b3b; border-radius: 12px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.tup-vmine-row span, .tup-vmine-row em { font-size: 12px; color: #7d7d86; font-style: normal; }
.tup-vpath-block {
  padding: 14px; background: #2f2e2e; border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.tup-vpath-block strong { font-size: 14px; color: #fae8b9; }
.tup-vpath-block p { margin: 0; font-size: 14px; line-height: 21px; color: #ccc; }
.tup-vsnap, .tup-vtime {
  box-sizing: border-box; width: 100%; padding: 16px 14px; background: #131618;
  border-radius: 14px; display: flex; flex-direction: column; gap: 12px;
}
.tup-vsnap h3, .tup-vtime h3 { margin: 0; font-size: 16px; font-weight: 500; color: #ccc; }
.tup-vsnap p, .tup-vtime p { margin: 0; font-size: 14px; line-height: 21px; color: #ccc; }
#voteDetChips button.on { border-color: #ccc; color: #ccc; }
.tup-empty {
  box-sizing: border-box; width: 343px; max-width: 100%; padding: 16px 14px;
  background: #131618; border: 1px solid #202428; border-radius: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.tup-empty strong { font-size: 14px; }
.tup-empty p { margin: 0; font-size: 13px; color: #7b7e86; line-height: 18px; }
.tup-mkt-row {
  box-sizing: border-box; width: 343px; padding: 12px 14px;
  background: #131618; border: 1px solid #202428; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.tup-mkt-row strong { display: block; font-size: 14px; }
.tup-mkt-row span { font-size: 12px; color: #7b7e86; }
.tup-star {
  height: 44px; padding: 0 14px; border: 1px solid #202428; border-radius: 30px;
  background: transparent; color: #7b7e86; font-size: 12px;
}
.tup-ov-col {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tup-ov-col button {
  max-width: 260px;
}
.mkt-board { display: flex; flex-direction: column; gap: 16px; width: 343px; max-width: 100%; }
.mkt-board[hidden] { display: none !important; }
.tup-mkt-ov, .tup-mkt-banner, .tup-mkt-proj {
  box-sizing: border-box; width: 343px; max-width: 100%;
  background: #131618; border: 1px solid #202428; border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.tup-mkt-ov span, .tup-mkt-sec { font-size: 12px; color: #7b7e86; margin: 0; }
.tup-mkt-ov strong { font-size: 22px; }
.tup-mkt-ov em, .tup-mkt-stats em { font-style: normal; font-size: 11px; color: #7b7e86; }
.tup-mkt-banner { min-height: 120px; justify-content: flex-end; position: relative; }
.tup-mkt-banner .tup-hero-tag { position: relative; left: 0; top: 0; align-self: flex-start; }
.tup-mkt-banner p { margin: 0; font-size: 14px; color: #ccc; }
.tup-mkt-hscroll { display: flex; gap: 10px; overflow-x: auto; width: 343px; scrollbar-width: none; }
.tup-mkt-hscroll::-webkit-scrollbar { display: none; }
.tup-mkt-move {
  flex: none; width: 120px; padding: 10px; border: 1px solid #202428; border-radius: 12px; background: #131618;
}
.tup-mkt-move strong { display: block; font-size: 13px; }
.tup-mkt-move span { font-size: 11px; color: #7b7e86; }
.tup-mkt-table { display: flex; flex-direction: column; gap: 0; width: 343px; }
.tup-mkt-th, .tup-mkt-tr, .tup-mkt-th3, .tup-mkt-tr3 {
  display: grid; gap: 6px; align-items: center; width: 343px; box-sizing: border-box;
  padding: 10px 0; border-bottom: 1px solid #202428; font-size: 11px; color: #7b7e86;
}
.tup-mkt-th, .tup-mkt-tr { grid-template-columns: 40px minmax(70px,1.4fr) 54px 48px 40px 54px; }
.tup-mkt-th3, .tup-mkt-tr3 { grid-template-columns: 1.2fr 1fr 1fr; }
.tup-mkt-tr, .tup-mkt-tr3 { color: #ccc; font-size: 12px; }
.tup-mkt-asset { display: flex; flex-direction: column; }
.tup-mkt-asset i { width: 18px; height: 18px; border-radius: 50%; background: #2f3031; }
.tup-mkt-asset b { font-size: 12px; }
.tup-mkt-asset em { font-style: normal; font-size: 10px; color: #7b7e86; }
.tup-mkt-spark, .tup-mkt-health {
  display: block; height: 18px; background: #202428; border-radius: 4px; overflow: hidden;
}
.tup-mkt-spark i, .tup-mkt-health i { display: block; width: 0; height: 100%; background: #64d55f; }
.tup-mkt-spark.tall { width: 100%; height: 48px; }
.tup-mkt-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 343px;
}
.tup-mkt-stats div {
  background: #131618; border: 1px solid #202428; border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.tup-mkt-stats span { font-size: 11px; color: #7b7e86; }
.tup-mkt-stats strong { font-size: 16px; }
.tup-mkt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 343px; }
.tup-mkt-split div { background: #131618; border: 1px solid #202428; border-radius: 12px; padding: 12px; }
.tup-mkt-pie { width: 343px; height: 10px; border-radius: 6px; background: #202428; display: flex; overflow: hidden; }
.tup-mkt-pie i, .tup-mkt-pie b { width: 0; height: 10px; }
.tup-mkt-secrow { display: flex; justify-content: space-between; align-items: center; width: 343px; }
.tup-linkish { border: 0; background: transparent; color: #64d55f; font-size: 12px; min-height: 44px; }
.tup-mkt-proj-h { display: flex; gap: 8px; align-items: flex-start; }
.tup-mkt-proj-h div { flex: 1; }
.tup-mkt-proj p { margin: 0; font-size: 13px; color: #ccc; }
.tup-mkt-proj-m { display: flex; justify-content: space-between; font-size: 12px; color: #7b7e86; }
.tup-vote-mark.dim { background: #2f3031; }
.tup-mkt-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 343px; }
.tup-mkt-cmp p { margin: 0; font-size: 12px; color: #7b7e86; }
.tup-star.on { border-color: #64d55f; color: #64d55f; }
.tup-mkt-tr .tup-star { height: 32px; min-height: 32px; padding: 0 8px; }
#mktPrices, #mktProjects, #mktVotes, #mktWatch {
  display: flex; flex-direction: column; gap: 16px; width: 343px; max-width: 100%;
}
#mktPrices[hidden], #mktProjects[hidden], #mktVotes[hidden], #mktWatch[hidden] {
  display: none !important;
}
.tup-hero {
  position: relative; width: 343px; height: 170px; border-radius: 16px; background: #d9d9d9;
  overflow: hidden; color: #fff;
}
.tup-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.4)); }
.tup-hero-tag { position: absolute; left: 10px; top: 10px; z-index: 1; background: #990000; color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 4px; }
.tup-hero p { position: absolute; left: 12px; right: 12px; bottom: 28px; z-index: 1; margin: 0; font-size: 12px; font-weight: 500; }
.tup-hero-who { position: absolute; left: 12px; bottom: 8px; z-index: 1; display: flex; gap: 6px; align-items: center; font-size: 12px; color: #ccc; }
.tup-nt { background: rgba(255,221,85,.2); color: #ffdd55; font-size: 8px; padding: 2px 6px; border-radius: 30px; }
.tup-ncard { background: #131618; border: 1px solid #202428; border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; width: 343px; box-sizing: border-box; }
.tup-ncard-row { display: flex; gap: 12px; }
.tup-ncard p { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: #ccc; }
.tup-nthumb { width: 102px; height: 107px; background: #d9d9d9; border-radius: 8px; flex: none; }
.tup-nwho { display: flex; align-items: center; gap: 10px; }
.tup-nwho strong { display: block; font-size: 14px; }
.tup-ntag { background: rgba(255,221,85,.2); color: #ffdd55; font-size: 8px; padding: 4px 6px; border-radius: 30px; }
.tup-nacts { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #ccc; }
.f-ava.sm { width: 18px; height: 18px; }
.f-ava.md { width: 27px; height: 27px; }
.f-ava.xs { width: 16px; height: 16px; }
.tup-merge { position: relative; width: 343px; height: 340px; display: flex; flex-direction: column; isolation: isolate; }
.tup-merge.sm { height: 220px; }
.tup-mhalf {
  width: 343px; height: 170px; border: 0; background: #d9d9d9; border-radius: 16px 16px 0 0; position: relative;
}
.tup-mhalf.bot { border-radius: 0 0 16px 16px; }
.tup-mhalf.gray { background: #d9d9d9; }
.tup-mhalf.dash { border: 1px dashed #ccc; background: transparent; border-radius: 0 0 16px 16px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tup-mhalf.dash em { font-style: normal; color: #7b7e86; font-size: 12px; }
.tup-mlbl { position: absolute; right: 8px; top: 8px; background: rgba(5,11,17,.6); border-radius: 30px; padding: 4px 10px; font-size: 12px; }
.tup-mhalf.bot .tup-mlbl { top: auto; bottom: 8px; }
.tup-mlbl.abs { left: 16px; top: 104px; right: auto; }
.tup-mwho { position: absolute; left: 8px; bottom: 178px; display: flex; gap: 6px; align-items: center; font-size: 10px; z-index: 2; }
.tup-merge.empty .tup-mwho { position: relative; left: 10px; bottom: auto; top: 138px; }
.tup-pic { width: 54px; height: 34px; background: #ccc; border-radius: 4px; display: block; }
.tup-pic.sm { width: 34px; height: 22px; }
.tup-mchips { display: flex; flex-wrap: wrap; gap: 10px; }
.tup-mchips button, .tup-tag {
  height: 24px; padding: 0 12px; border-radius: 30px; border: 0.5px solid #3b3b3b; background: transparent; color: #7b7e86; font-size: 12px;
}
.tup-mchips button.on, .tup-tag.on { background: #272727; border: 0; color: #fff; }
.tup-you { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; }
.tup-you em { font-style: normal; font-weight: 400; font-size: 10px; }
.tup-ctx {
  width: 343px; max-width: 100%; min-height: 84px; box-sizing: border-box;
  background: #131618; border: 0; border-radius: 16px; color: #ccc; padding: 10px 12px; font-size: 12px; resize: vertical;
}
.tup-ctx.tall { min-height: 104px; border: 1px solid #484b53; border-radius: 8px; background: transparent; color: #7b7e86; }
.tup-cta {
  width: 343px; height: 45px; border-radius: 8px; border: 1px solid #a7a8ab;
  background: linear-gradient(90deg, #9EA0A8 0%, #D7D7DB 49.85%, #9EA0A8 100%);
  color: #050b11; font-size: 14px; font-weight: 500;
}
.tup-cta.dim, .tup-cta:disabled { background: rgba(125,125,134,.7); border: 0; color: rgba(5,11,17,.7); }
.tup-drop {
  width: 343px; height: 108px; border: 1px dashed #ccc; border-radius: 16px; background: transparent;
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px;
}
.tup-field {
  display: flex; align-items: center; gap: 10px; width: 343px; height: 40px; box-sizing: border-box;
  border: 1px solid #484b53; border-radius: 8px; padding: 0 16px; color: #7b7e86; background: transparent; font-size: 14px;
}
.tup-field.row { justify-content: space-between; }
.tup-field input { flex: 1; border: 0; background: transparent; color: #ccc; font-size: 14px; }
.tup-link { width: 18px; height: 18px; border: 1.5px solid #ccc; border-radius: 4px; }
.tup-warn { margin: 0; padding: 6px 8px; background: #1e1c15; color: #ffb73c; font-size: 10px; border-radius: 6px; }
.tup-thumbs { display: flex; gap: 16px; }
.tup-thumbs span, .tup-addm { width: 104px; height: 108px; border-radius: 16px; background: #d9d9d9; border: 0; }
.tup-addm { background: #131618; color: #ccc; font-size: 28px; }
.tup-addm:before { content: "+"; }
.tup-ndimg { width: 343px; height: 176px; background: #d9d9d9; border-radius: 8px; }
.tup-nbody { margin: 0; font-size: 14px; line-height: 21px; color: #ccc; }
.tup-view h2 { margin: 0; font-size: 16px; line-height: 24px; }
.tup-view h3 { margin: 0; font-size: 14px; }
.tup-sub { margin: 0; color: #7b7e86; font-size: 14px; }
.tup-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #ccc; }
.tup-full-img { width: 100%; height: 520px; background: #d9d9d9; border-radius: 10px; }
.tup-prog { display: flex; gap: 6px; }
.tup-prog i { flex: 1; height: 2px; background: #7d7d86; border-radius: 10px; }
.tup-prog i.full { background: #64d55f; }
.tup-prog i.part { background: linear-gradient(90deg, #64d55f 30%, #7d7d86 30%); }
.tup-vid { position: relative; height: 280px; background: #d9d9d9; border-radius: 10px 10px 0 0; }
.tup-vid.bot { border-radius: 0 0 10px 10px; }
.tup-play {
  position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 32px;
  background: rgba(26,26,26,.55); border: 1px solid rgba(0,0,0,.09);
}
.tup-play:before { content: ""; position: absolute; left: 8px; top: 6px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.tup-x { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #3b3b3b; }
.tup-plus {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 46px; background: #64d55f; z-index: 45;
}
.tup-plus:before { content: ""; position: absolute; inset: 11px 18px; background: #050b11; }
.tup-plus:after { content: ""; position: absolute; inset: 18px 11px; background: #050b11; }
#tab-feed button {
  width: auto;
  min-height: 0;
  margin: 0;
}
#tab-feed .tup-cta,
#tab-feed .tup-cta:hover {
  width: 343px;
  height: 45px;
  background: linear-gradient(90deg, #9EA0A8 0%, #D7D7DB 49.85%, #9EA0A8 100%);
}
#tab-feed .tup-cta.dim,
#tab-feed .tup-cta:disabled {
  background: rgba(125,125,134,.7);
  border: 0;
  color: rgba(5,11,17,.7);
}
#tab-feed .tup-vote-btn {
  min-height: 44px;
}
#tab-feed button.f-photo:hover,
#tab-feed button.tup-mhalf:hover {
  background-color: transparent;
  filter: none;
  opacity: 1;
}
#tab-feed .tup-sheet button:hover {
  background: #2f3031;
}
.tup-ov {
  position: fixed; inset: 0; background: rgba(0,0,0,.2); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 90px;
}
.tup-ov[hidden], .tup-sheet[hidden] { display: none !important; }
.tup-ov button {
  width: auto !important;
  max-width: 180px;
  background: rgba(26,26,26,.65); color: #fff; border: 0; border-radius: 20px;
  padding: 0 12px 0 0; height: 32px; display: flex; align-items: center; gap: 6px; font-size: 14px;
}
.tup-ov button:before {
  content: ""; width: 32px; height: 32px; border-radius: 50%; background: rgba(100,213,95,.2); border: 1px solid rgba(100,213,95,.2);
}
.tup-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(26,26,26,.8); border-radius: 32px 32px 0 0; padding: 26px 16px 40px;
  display: flex; flex-direction: column; gap: 12px; max-width: 375px; margin: 0 auto;
}
.tup-sheet button {
  display: flex; justify-content: space-between; align-items: center;
  background: #2f3031; color: #fff; border: 0; border-radius: 16px; padding: 12px; font-size: 14px; font-weight: 500;
}
.tup-sheet button.bad { color: #d20000; }
.tup-sheet h3 { margin: 0; text-align: center; font-size: 18px; }
.tup-sheet input {
  width: 100%; box-sizing: border-box; height: 44px; border: 0; border-radius: 16px;
  background: #2f3031; color: #ccc; padding: 0 12px; font-size: 14px;
}
.tup-share-ppl, .tup-share-apps { display: flex; justify-content: space-between; font-size: 12px; color: #ccc; text-align: center; }
[data-copy-link] { cursor: pointer; }
.tup-share-ppl span:before, .tup-share-apps span:before {
  content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 60px; background: #2f3031;
}
.tup-cmt { display: flex; gap: 8px; width: 100%; font-size: 12px; }
.tup-cmt p { margin: 0; }
.tup-cmt button { background: none; padding: 0; color: #ccc; font-size: 10px; justify-content: flex-start; }
.tup-cmt.nest { margin-left: 24px; }
.tup-cadd { display: flex; gap: 10px; align-items: center; }
.tup-cadd input { flex: 1; background: #2f3031; border: 0; border-radius: 16px; height: 36px; padding: 0 12px; color: #999; }
.f-act.on { color: #64d55f; }
.tup .f-photo { border: 0; display: block; }
.tup .f-photo,
.f2147227549 .f-photo,
.tup-full-img {
  background: #d9d9d9 url(/assets/feed-mtn.jpg) center / cover no-repeat;
}
.tup .f-post2 .f-photo {
  background-image: url(/assets/lab-cabin.jpg);
}
.tup-hero,
.tup-ndimg {
  background: #d9d9d9 url(/assets/feed-tree.jpg) center / cover no-repeat;
}
.tup-ncard .tup-nthumb,
.tup-thumbs span:first-child,
.tup-mhalf:not(.dash),
.tup-vid {
  background: #d9d9d9 url(/assets/feed-mtn.jpg) center / cover no-repeat;
}
.tup-ncard:nth-of-type(2) .tup-nthumb {
  background-image: url(/assets/feed-city.jpg);
  background-position: center bottom;
}
.tup-ncard:nth-of-type(3) .tup-nthumb,
.tup-thumbs span:nth-child(2),
.tup-mhalf.bot,
.tup-vid.bot {
  background-image: url(/assets/lab-cabin.jpg);
}
.tup .f-ava,
.f2147227549 .f-ava,
.tup-me {
  background: #d9d9d9 url(/assets/feed-ava-1.jpg) center / cover no-repeat;
}
.tup-you .f-ava,
.tup-cmt:nth-child(2) .f-ava {
  background-image: url(/assets/feed-ava-2.jpg);
}
.tup-nwho .f-ava,
.tup-cmt:nth-child(3) .f-ava,
.tup-share-ppl span:nth-child(2):before {
  background: #2f3031 url(/assets/feed-ava-3.jpg) center / cover no-repeat;
}
.tup-mhalf.dash {
  background: transparent;
}
@media (min-width: 760px) {
  #tab-feed.on { align-items: stretch; }
  .tup { min-height: min-content; }
}

body.web-desk .nav-item[data-go="mine"],
body.web-desk .tab[data-tab="mine"] {
  opacity: 0.35;
  filter: grayscale(1);
  pointer-events: none;
  cursor: default;
}
body.web-desk #tab-mine {
  display: none !important;
}
body.web-desk #btnCapsResign {
  display: none !important;
}
body.web-desk .v8-nav {
  grid-template-columns: repeat(4, 1fr);
}
#btnGetApp {
  display: none;
}
body.web-desk.need-app #btnGetApp:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 14px;
  text-decoration: none;
  opacity: 0.85;
}
#loginWalletNameTyped,
body.web-desk #loginWalletNameTyped {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
}
