/* Task-first usability pass: clearer hierarchy without changing the mzz visual language. */

.rail-nav {
  gap: 17px;
}

.nav-group {
  gap: 4px;
}

.nav-group > small {
  margin: 0 12px 4px;
  color: #777781;
  font-size: 10px;
  letter-spacing: .16em;
}

.nav-link {
  min-height: 44px;
}

.nav-link span {
  line-height: 1.2;
}

.home-command-actions .solid-button,
.home-command-actions .outline-button {
  min-width: 158px;
}

.home-pulse > button {
  min-height: 138px;
  align-content: start;
}

.home-pulse > button > span {
  color: #a3a3ad;
  font-size: 13px;
}

.network-tools,
.resell-toolbar {
  align-items: end;
}

.network-tools select,
.resell-toolbar select {
  min-height: 50px;
}

.account-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: start;
  gap: 22px;
}

#profileSettings,
#appSettings {
  grid-column: auto;
  min-width: 0;
}

#profileSettings {
  padding: clamp(24px, 3vw, 42px);
}

#appSettings {
  position: sticky;
  top: 22px;
  padding: 28px;
}

#appSettings > .icon-tile,
#profileSettings > .icon-tile {
  margin-bottom: 18px;
}

#appSettings > h3,
#profileSettings > h3 {
  margin: 7px 0 8px;
}

#appSettings > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.setting-toggle {
  min-height: 70px;
  padding: 14px 0;
}

.settings-subsection {
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-contact-fields {
  border-radius: 18px;
  padding: 20px;
}

.profile-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px 0 2px;
  background: linear-gradient(180deg, transparent, var(--panel) 24%);
}

.emoji-pack-empty {
  max-width: 360px;
  padding: 20px;
}

.emoji-pack-empty strong {
  display: block;
  margin-bottom: 5px;
}

.emoji-pack-empty span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .account-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #appSettings {
    position: static;
    order: 2;
  }

  .home-pulse > button {
    min-height: 112px;
  }
}

@media (max-width: 700px) {
  #profileSettings,
  #appSettings {
    padding: 20px;
  }

  .home-command-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-command-actions .solid-button,
  .home-command-actions .outline-button {
    width: 100%;
    min-width: 0;
  }

  .profile-form-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    background: none;
  }

  .network-tools,
  .resell-toolbar {
    align-items: stretch;
  }
}
.dialog-form-error{margin:2px 0 0;padding:11px 13px;border:1px solid rgba(255,104,132,.28);border-radius:12px;background:rgba(255,75,110,.08);color:#ff9bab;font-size:.82rem;line-height:1.4}
/* Home recommendations are interactive without changing the existing visual language. */
.listing-card[data-listing-card] { cursor: pointer; }
.listing-card[data-listing-card]:focus-visible { outline: 2px solid rgba(141,121,255,.8); outline-offset: 3px; }
.listing-preview { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); gap: 24px; align-items: center; }
.listing-preview-media { aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.04); display: grid; place-items: center; }
.listing-preview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-preview-media span { color: var(--muted); }
.listing-preview-copy h2 { margin: 8px 0 8px; }
.listing-preview-copy p { color: var(--muted); margin: 0 0 18px; }
.listing-preview-copy > strong { display: block; font-size: 24px; margin-bottom: 20px; }
.listing-body { min-width: 0; }
.listing-add-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:38px; margin-top:15px; padding:0 13px; border:1px solid rgba(141,121,255,.44); border-radius:10px; background:rgba(141,121,255,.12); color:#c7bdff; font:inherit; font-size:13px; font-weight:700; cursor:pointer; transition:background .16s ease,color .16s ease,border-color .16s ease; }
.listing-add-button:hover { background:#8d79ff; border-color:#8d79ff; color:#fff; }
.listing-add-button:active { transform:translateY(1px); }
.marketplace-categories { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; padding-bottom:3px; }
.marketplace-categories::-webkit-scrollbar { display:none; }
@media (max-width:650px) {
  .listing-grid.wide { grid-template-columns:1fr; gap:14px; }
  .listing-card { min-width:0; }
  .listing-media { aspect-ratio: 16 / 10; }
  .listing-add-button { min-height:42px; }
}

/* Small, intentional depth cue for cards, inspired by the personal site. */
@media (hover: hover) and (pointer: fine) {
  .app-warp-card {
    --warp-x: 0;
    --warp-y: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease !important;
  }
  .app-warp-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(260px circle at var(--warp-xp, 50%) var(--warp-yp, 50%), rgba(255,255,255,.075), transparent 68%);
    transition: opacity .16s ease;
  }
  .app-warp-card:hover {
    transform: perspective(900px) rotateX(calc(var(--warp-y) * -3deg)) rotateY(calc(var(--warp-x) * 3deg)) translateY(-3px) scale(1.006) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 30px rgba(0,0,0,.34) !important;
  }
  .app-warp-card:hover::after { opacity: 1; }

  .listing-card[data-listing-card], .home-pulse > *, .home-balance {
    transform-style: preserve-3d;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease !important;
  }
  .listing-card[data-listing-card]:hover { transform: perspective(900px) rotateX(1deg) rotateY(-1deg) translateY(-3px) !important; }
  .home-pulse > *:hover, .home-balance:hover { transform: perspective(1100px) rotateX(.6deg) rotateY(-.6deg) translateY(-2px) !important; }
}

/* Touch devices get a short press response without interfering with scrolling. */
@media (hover: none) and (pointer: coarse) {
  .app-warp-card {
    --warp-x: 0;
    --warp-y: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease !important;
  }
  .app-warp-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(220px circle at var(--warp-xp, 50%) var(--warp-yp, 50%), rgba(255,255,255,.07), transparent 70%);
    transition: opacity .18s ease;
  }
  .app-warp-card.is-touch-warp {
    transform: perspective(900px) rotateX(calc(var(--warp-y) * -1.6deg)) rotateY(calc(var(--warp-x) * 1.6deg)) translateY(-1px) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 18px rgba(0,0,0,.25) !important;
  }
  .app-warp-card.is-touch-warp::after { opacity: 1; }
}

/* Keep one app mark in the rail on desktop. The compact mark belongs in the
   mobile top bar only; showing both creates a confusing duplicate header. */
.rail > .brand { display: inline-flex !important; align-items: center !important; gap: 9px !important; }
.mobile-brand { display: none !important; align-items: center !important; gap: 9px !important; }
.rail > .brand img, .mobile-brand img { display: block !important; width: 24px !important; height: 24px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.rail > .brand, .mobile-brand { border: 0 !important; box-shadow: none !important; }

/* A quiet, tactile warp on workspace surfaces. It stays still on touch
   devices and only bends cards a few degrees on a real pointer. */
@media (hover: hover) and (pointer: fine) {
  :where(.network-card, .storefront-card, .store-directory-card, .store-ops-card,
    .money-card, .account-card, .settings-card, .business-card, .distribution-row,
    .resell-empty, .resell-toolbar, .network-tools, .directory-tools) {
    transform-style: preserve-3d;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease !important;
  }
  :where(.network-card, .storefront-card, .store-directory-card, .store-ops-card,
    .money-card, .account-card, .settings-card, .business-card, .distribution-row,
    .resell-empty, .resell-toolbar, .network-tools, .directory-tools):hover {
    transform: perspective(1100px) rotateX(.55deg) rotateY(-.7deg) translateY(-2px) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.22) !important;
  }
}

/* Compact mobile dock with no dead space below labels. */
@media (max-width: 760px) {
  .mobile-brand { display: inline-flex !important; }
  .mobile-dock { height: 54px !important; padding: 3px !important; gap: 2px !important; }
  .mobile-dock button { min-height: 46px !important; padding: 2px 1px !important; gap: 1px !important; line-height: 1.05 !important; }
  .mobile-dock button .ui-icon { width: 18px !important; height: 18px !important; }
  .mobile-dock button span { margin: 0 !important; line-height: 1 !important; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important; }
  #mobileMenuClose { width: auto !important; height: auto !important; min-width: 32px !important; min-height: 32px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: inherit !important; }
  .listing-preview { grid-template-columns: 1fr; gap: 16px; }
  .listing-preview-media { max-height: 260px; }
}

/* Mobile dock stays a compact control bar instead of stretching with its
   parent.  The explicit row sizing also prevents Safari from expanding it
   when a label or notification badge changes. */
@media (hover: none) and (pointer: coarse) {
  .mobile-dock {
    box-sizing: border-box !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    align-items: center !important;
    grid-auto-rows: 52px !important;
    overflow: hidden !important;
    touch-action: manipulation;
  }
  .mobile-dock button {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    align-self: center !important;
  }
  .app-warp-card.is-touch-warp {
    transform: perspective(720px) rotateX(calc(var(--warp-y) * -3.8deg)) rotateY(calc(var(--warp-x) * 3.8deg)) translateY(-2px) scale(1.008) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 26px rgba(0,0,0,.36) !important;
  }
  .app-warp-card.is-touch-warp::after {
    opacity: 1 !important;
    background: radial-gradient(250px circle at var(--warp-xp, 50%) var(--warp-yp, 50%), rgba(169,156,255,.18), transparent 68%);
  }
  /* Keep mobile cards completely flat and stable. */
  .app-warp-card,
  .app-warp-card.is-touch-warp { transform:none !important; box-shadow:none !important; }
  .app-warp-card::after,
  .app-warp-card.is-touch-warp::after { opacity:0 !important; }
}
/* App bag: native app drawer, based on the storefront bag but scaled for the workspace. */
.top-actions{display:flex!important;align-items:center!important;gap:8px!important}
#topAvatar{display:none!important}
.app-bag-button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;border:1px solid var(--line,#2a2a31);border-radius:12px;background:var(--panel,#111116);color:var(--text,#f7f7fa);font:inherit;cursor:pointer}
.app-bag-button>.ui-icon{display:inline-block!important;width:17px!important;height:17px!important;flex:0 0 17px!important;background:none!important;-webkit-mask:none!important;mask:none!important}
.app-bag-button b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#8d7cff;color:#fff;font-size:11px}
.app-bag-scrim{position:fixed;z-index:89;inset:0;border:0;background:rgba(0,0,0,.62);backdrop-filter:blur(5px);opacity:0;transition:opacity .2s ease;cursor:default}.app-bag-scrim.open{opacity:1}
.app-bag-drawer{position:fixed;z-index:90;top:0;right:0;width:min(470px,100vw);height:100dvh;box-sizing:border-box;border-left:1px solid var(--line,#2a2a31);background:#0d0d11;color:var(--text,#f7f7fa);box-shadow:-28px 0 80px rgba(0,0,0,.42);transform:translateX(102%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}.app-bag-drawer.open{transform:translateX(0)}
.app-bag-drawer-shell{height:100%;display:flex;flex-direction:column;min-height:0}.app-bag-drawer-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px 25px 21px;border-bottom:1px solid var(--line,#2a2a31)}.app-bag-drawer-head h2{margin:5px 0 5px;font-size:28px;letter-spacing:-.055em}.app-bag-drawer-head p{margin:0;color:var(--muted,#9797a5);font-size:13px}.app-bag-drawer-close{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border:1px solid var(--line,#2a2a31);border-radius:50%;background:#18181e;color:var(--muted,#9797a5);font:inherit;font-size:25px;line-height:1;cursor:pointer}.app-bag-drawer-close:hover{color:var(--text,#f7f7fa);border-color:#4a4a55;background:#202027}
.app-bag-drawer-lines{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.app-bag-group{margin:18px 18px 0;border:1px solid var(--line,#2a2a31);border-radius:14px;overflow:hidden}.app-bag-group-head{min-height:58px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(141,124,255,.08)}.app-bag-group-head>div{display:grid;gap:3px;min-width:0}.app-bag-group-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-bag-group-head small{color:var(--muted,#9797a5);font-size:11px}.app-bag-group-checkout{border:0;background:transparent;color:#b5a9ff;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.app-bag-group-checkout:hover{color:#fff}.app-bag-group-checkout span{font-size:16px;vertical-align:-1px}
.app-bag-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line,#2a2a31)}
.app-bag-thumb{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:10px;overflow:hidden;background:#1b1b22;color:var(--muted,#9797a5)}
.app-bag-thumb img{width:100%;height:100%;object-fit:cover}.app-bag-item>div:nth-child(2){display:grid;gap:3px;min-width:0}.app-bag-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-bag-item small{color:var(--muted,#9797a5)}
.app-bag-remove{margin-left:auto;border:0;background:transparent;color:var(--muted,#9797a5);font-size:22px;cursor:pointer;padding:6px 8px}.app-bag-remove:hover{color:#f09aab}.app-bag-drawer-foot{flex:0 0 auto;padding:18px 20px calc(21px + env(safe-area-inset-bottom));border-top:1px solid var(--line,#2a2a31);background:#101015}.app-bag-drawer-foot>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.app-bag-drawer-foot span{color:var(--muted,#9797a5);font-size:12px}.app-bag-drawer-foot strong{font-size:25px;letter-spacing:-.05em}.app-bag-drawer-foot p{margin:5px 0 14px;color:var(--muted,#9797a5);font-size:11px;line-height:1.4}.app-bag-drawer-foot .outline-button,.app-bag-drawer-foot .solid-button{width:100%;min-height:43px}.app-bag-drawer-foot .solid-button+.outline-button{margin-top:9px}.app-bag-empty{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 28px;text-align:center}.app-bag-empty>[data-icon]{display:grid;place-items:center;flex:0 0 auto;width:56px;height:56px;margin:0 0 15px;border:1px solid var(--line,#2a2a31);border-radius:50%;color:#a99cff}.app-bag-empty h3{margin:0 0 8px;font-size:20px;line-height:1.2}.app-bag-empty p{max-width:290px;margin:0 0 24px;color:var(--muted,#9797a5);font-size:13px;line-height:1.5}.app-bag-empty .solid-button{display:flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;width:min(100%,300px);min-height:56px;padding:0 22px;white-space:normal;font-size:14px;line-height:1.2;text-align:center}
@media (max-width:650px){.app-bag-button span{display:none}.app-bag-button{padding:0 10px}.app-bag-scrim{z-index:129}.app-bag-drawer{z-index:130;width:100%}.app-bag-drawer-head{padding:22px 18px 18px}.app-bag-group{margin:14px 14px 0}.app-bag-drawer-foot{padding-inline:16px}}
.checkout-summary{display:flex;justify-content:space-between;align-items:center;margin:18px 0;padding:14px 0;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}
.app-checkout-payments{display:grid;gap:12px;max-height:min(52vh,520px);overflow:auto;margin:18px 0}
.app-checkout-payment{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.035)}
.app-checkout-payment h3{margin:4px 0 2px}.app-checkout-payment p{margin:0;color:var(--muted)}
.app-checkout-payment img{width:92px;height:92px;object-fit:contain;border-radius:8px;background:#fff;padding:4px;grid-row:1 / span 2;grid-column:2}
.app-checkout-address{grid-column:1 / -1;display:flex;gap:8px;align-items:center;min-width:0}.app-checkout-address code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;color:var(--text-muted)}
@media (max-width:640px){.app-checkout-payment{grid-template-columns:1fr}.app-checkout-payment img{grid-column:1;grid-row:auto}.app-checkout-address{flex-wrap:wrap}.app-checkout-address code{flex-basis:100%}}
@media (max-width:760px){#topAvatar{display:none!important}.top-actions{display:flex!important}}

/* Product previews keep both actions inside the viewport on phones. */
@media (max-width:760px){
  #appDialog{box-sizing:border-box!important;width:calc(100% - 24px)!important;max-width:560px!important;margin:auto!important;padding:18px!important;overflow-x:hidden!important}
  #appDialog .listing-preview{min-width:0!important;width:100%!important;gap:14px!important}
  #appDialog .listing-preview-media{width:100%!important;max-height:240px!important;min-width:0!important}
  #appDialog .listing-preview-media img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover}
  #appDialog .listing-preview-copy{min-width:0!important}
  #appDialog .listing-preview-copy .dialog-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
  #appDialog .listing-preview-copy .dialog-actions>*{width:100%!important;min-width:0!important;margin:0!important}
}
@media (max-width:430px){#appDialog .listing-preview-copy .dialog-actions{grid-template-columns:1fr!important}}

/* Direct-message actions are quiet until needed and never appear in support tickets. */
.reports-thread{border:1px solid rgba(235,76,76,.38)!important;background:linear-gradient(100deg,rgba(110,20,25,.3),rgba(24,12,15,.15))!important}.reports-thread.active,.reports-thread:hover{border-color:rgba(255,91,91,.8)!important;background:rgba(112,24,30,.38)!important}.reports-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#ff8b8b;background:rgba(145,25,31,.32);border:1px solid rgba(255,91,91,.55);font-weight:800}.reports-stream{padding:20px 24px}.report-card{max-width:min(680px,88%);margin:0 0 14px;padding:14px 16px;border:1px solid rgba(235,76,76,.5);border-radius:16px 16px 16px 5px;background:linear-gradient(135deg,rgba(105,20,26,.32),rgba(35,15,18,.55));box-shadow:0 10px 25px rgba(90,0,0,.12)}.report-card header{display:flex;justify-content:space-between;gap:12px;color:#ffb1b1}.report-card header time,.report-card small{color:#c88282;font-size:10px}.report-bubble{display:grid;gap:5px;margin:10px 0 4px;color:#ffe8e8;line-height:1.45}.report-bubble b{text-transform:capitalize}.report-bubble span{color:#f7caca}.reports-head .conversation-person strong{color:#ff9b9b}
.reports-thread{grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;padding:14px 16px!important}.reports-thread .thread-copy{min-width:0}.reports-thread .thread-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-thread .thread-copy strong{color:#ffb1b1}.reports-thread .thread-avatar{position:relative}.reports-thread .thread-unread-count{background:#a52d35!important;color:#fff!important}.report-card header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-card header time{flex:0 0 auto;white-space:nowrap}.ticket-composer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:end!important}.ticket-composer textarea{min-height:48px!important;resize:none!important}.ticket-composer .solid-button{min-height:48px!important;white-space:nowrap}
.reports-stream .report-card{display:block!important;max-width:min(720px,92%)!important;margin:0 0 16px!important;padding:14px 16px!important;border:1px solid rgba(255,86,101,.62)!important;border-radius:18px 18px 18px 6px!important;background:linear-gradient(135deg,rgba(111,23,31,.52),rgba(35,12,16,.86))!important;box-shadow:0 12px 28px rgba(70,0,8,.2)!important;color:#ffe9eb!important}.report-chat-row{display:flex;align-items:flex-start;gap:10px}.report-chat-avatar{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#ffd7da;background:#8f2634;border:1px solid rgba(255,145,155,.72);font-size:11px;font-weight:800}.report-chat-content{min-width:0;flex:1}.report-chat-content header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#ffb7bd}.report-chat-content header time{color:#dc8b93!important}.report-chat-bubble{display:grid;gap:4px;width:fit-content;max-width:100%;padding:10px 12px;border:1px solid rgba(255,115,128,.42);border-radius:14px 14px 14px 4px;background:rgba(131,24,37,.52);color:#fff1f2;line-height:1.4}.report-chat-bubble b{text-transform:capitalize}.report-chat-bubble span{color:#ffd1d5}.report-chat-content small{display:block;margin-top:7px;color:#dc8b93!important;font-size:10px}.admin-profile-link{display:inline-flex;text-decoration:none}

/* Report cards are flex items in the scroll stream.  Keep each card at its
   natural content height so report text and metadata are never clipped on
   compact/mobile layouts. */
.reports-stream .report-card{flex:0 0 auto!important;align-self:stretch!important;overflow:visible!important;box-sizing:border-box!important}
.message-unit{position:relative}

/* Keep reactions in the message's upper-left corner, with unsend separated on the right. */
.message-unit:has(.message-reaction){padding-top:30px}
.message-reaction{top:5px!important;left:8px!important;right:auto!important;bottom:auto!important;z-index:2}
.message-unit.mine .message-unsend{position:absolute;top:5px;right:8px;padding:3px 0}

.message-unsend{border:0;background:transparent;color:var(--muted,#9797a5);font:inherit;font-size:11px;padding:3px 0;cursor:pointer;opacity:0;transition:opacity .16s ease,color .16s ease}
.message-unit.mine:hover .message-unsend,.message-unit.mine:focus-within .message-unsend,.message-unit.mine.show-actions .message-unsend{opacity:1}
.message-unsend:hover{color:#f08b9a}
.message-unsent-placeholder{pointer-events:none;opacity:.72}
.message-unsent-bubble{font-style:italic;color:var(--muted,#9797a5)!important;background:transparent!important;border:1px dashed var(--line,#2a2a31)!important}
.stores-overview{margin:18px 0 20px;padding:20px;border:1px solid var(--line,#2a2a31);border-radius:18px;background:var(--panel,#111116)}
.stores-overview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.stores-overview-head h3{margin:4px 0}.stores-overview-head p{margin:0;color:var(--muted,#9797a5)}.stores-overview-metrics{display:flex;gap:20px}.stores-overview-metrics span{display:grid;gap:3px;text-align:right}.stores-overview-metrics b{font-size:18px}.stores-overview-metrics small{color:var(--muted,#9797a5);font-size:11px}.stores-overview canvas{display:block;width:100%;height:150px;margin-top:16px}
@media(max-width:760px){.mobile-menu-dialog{margin:auto!important;align-self:center!important;width:calc(100% - 24px)!important;max-height:82dvh!important}}

/* Notifications use the same native side-sheet language as the in-app bag,
   while keeping every row independently actionable. */
.notification-drawer{position:fixed;z-index:92;top:0;right:0;width:min(470px,100vw);height:100dvh;box-sizing:border-box;border-left:1px solid var(--line,#2a2a31);background:#0d0d11;color:var(--text,#f7f7fa);box-shadow:-28px 0 80px rgba(0,0,0,.42);transform:translateX(102%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
#notificationScrim{z-index:91}
.notification-drawer.open{transform:translateX(0)}
.notification-drawer-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.notification-drawer-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px 25px 21px;border-bottom:1px solid var(--line,#2a2a31)}
.notification-drawer-head h2{margin:5px 0 5px;font-size:28px;letter-spacing:-.055em}.notification-drawer-head p{margin:0;color:var(--muted,#9797a5);font-size:13px;line-height:1.45}
.notification-drawer-close{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border:1px solid var(--line,#2a2a31);border-radius:50%;background:#18181e;color:var(--muted,#9797a5);font:inherit;font-size:25px;line-height:1;cursor:pointer}.notification-drawer-close:hover{color:var(--text,#f7f7fa);border-color:#4a4a55;background:#202027}
.notification-drawer-toolbar{flex:0 0 auto;display:flex;justify-content:flex-end;padding:11px 18px;border-bottom:1px solid var(--line,#2a2a31)}.notification-drawer-toolbar button{min-height:34px;padding:0 10px;border:0;border-radius:9px;color:#b5a9ff;background:transparent;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.notification-drawer-toolbar button:hover{background:rgba(141,124,255,.1);color:#fff}.notification-drawer-toolbar button:disabled{opacity:.5;cursor:wait}
.notification-drawer-list{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:10px 12px calc(18px + env(safe-area-inset-bottom))}
.notification-feed-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;border-bottom:1px solid var(--line,#2a2a31)}.notification-feed-item.unread{background:linear-gradient(90deg,rgba(141,124,255,.1),transparent 72%)}.notification-feed-item.unread::before{content:"";position:absolute;left:1px;top:50%;width:5px;height:5px;border-radius:50%;background:#8d7cff;transform:translateY(-50%)}
.notification-feed-open{min-width:0;min-height:82px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:12px;padding:13px 8px 13px 14px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.notification-feed-open:hover{background:rgba(255,255,255,.025)}.notification-feed-open>i{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#b5a9ff;background:rgba(141,124,255,.11)}.notification-feed-open>i .ui-icon{width:17px;height:17px}.notification-feed-open>span{display:block;min-width:0}.notification-feed-open strong,.notification-feed-open small,.notification-feed-open time{display:block}.notification-feed-open strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.notification-feed-open small{margin-top:4px;color:var(--muted,#9797a5);font-size:11px;line-height:1.4}.notification-feed-open time{margin-top:5px;color:#6f6f7b;font-size:9px}
.notification-feed-delete{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#6f6f7b;font:inherit;font-size:20px;cursor:pointer}.notification-feed-delete:hover{color:#f09aab;background:rgba(240,92,119,.09)}.notification-feed-delete:disabled{opacity:.4}.notification-security-item{border-color:rgba(141,124,255,.28)!important;background:linear-gradient(90deg,rgba(141,124,255,.13),transparent 80%)!important}.notification-security-item .notification-feed-open>i{color:#c6bcff;background:rgba(141,124,255,.2)}
.notification-feed-empty{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;color:var(--muted,#9797a5)}.notification-feed-empty>i{width:54px;height:54px;display:grid;place-items:center;margin-bottom:15px;border-radius:50%;background:rgba(141,124,255,.1);color:#b5a9ff}.notification-feed-empty h3{margin:0 0 7px;color:var(--text,#f7f7fa);font-size:19px}.notification-feed-empty p{max-width:280px;margin:0;font-size:12px;line-height:1.5}
@media(max-width:650px){#notificationScrim{z-index:131}.notification-drawer{z-index:132;width:100%}.notification-drawer-head{padding:22px 18px 18px}.notification-drawer-list{padding-inline:8px}.notification-feed-open{min-height:76px}}
@media(max-width:560px){.stores-overview{padding:16px}.stores-overview-head{display:grid}.stores-overview-metrics{width:100%;justify-content:space-between}.stores-overview-metrics span{text-align:left}}
/* Mobile store directory: keep every store in the page flow. The app shell
   owns scrolling; cards must never be clipped by a nested viewport. */
@media (max-width: 760px) {
  .pull-refresh-bar { position: fixed; z-index: 120; top: max(6px, env(safe-area-inset-top)); left: 50%; width: min(220px, calc(100% - 48px)); height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(141,124,255,.3); border-radius: 999px; color: #bdb6ef; background: rgba(13,13,18,.94); box-shadow: 0 8px 28px rgba(0,0,0,.35); font-size: 10px; opacity: 0; transform: translate(-50%,-12px); pointer-events: none; transition: opacity .12s ease, transform .16s ease; }
  .pull-refresh-bar.is-visible { opacity: 1; transform: translate(-50%,0); }
  .pull-refresh-bar i { position: relative; width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#9b8dff calc(var(--pull-progress, 0) * 1turn), rgba(255,255,255,.14) 0); transition: background .08s linear; }
  .pull-refresh-bar i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0d0d12; }
  .pull-refresh-bar i b { position: relative; z-index: 1; color: #c9c2ff; font-size: 12px; font-weight: 500; line-height: 1; }
  .pull-refresh-bar span { white-space: nowrap; }
  .pull-refresh-bar.is-armed { border-color: rgba(155,141,255,.75); color: #f0edff; }
  .pull-refresh-bar.is-loading i::after { width: 100%; animation: pull-refresh-pulse .7s ease-in-out infinite alternate; }
  @keyframes pull-refresh-pulse { from { opacity: .6; } to { opacity: 1; } }
  .screen[data-screen="store"] { overflow: visible !important; }
  .screen[data-screen="store"] .store-ops-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    align-content: start;
    overflow: visible !important;
  }
  .screen[data-screen="store"] .business-card {
    width: 100%;
    min-height: 156px;
  }
}

.pull-refresh-bar { border-color: transparent !important; box-shadow: 0 8px 28px rgba(0,0,0,.35); }

/* Quiet close controls: keep the hit area, remove stark white square chrome. */
:where(.dialog-close, #closeSelection, #closeCanvasSettings, .ticket-close, .product-dialog-close, .support-dialog-close, #closeBag) {
  color: #b7b7c2 !important;
  background: #17171b !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
:where(.dialog-close, #closeSelection, #closeCanvasSettings, .ticket-close, .product-dialog-close, .support-dialog-close, #closeBag):hover,
:where(.dialog-close, #closeSelection, #closeCanvasSettings, .ticket-close, .product-dialog-close, .support-dialog-close, #closeBag):focus-visible {
  color: #fff !important;
  background: #24242b !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* Security setup is visible without blocking the rest of the workspace. */
.security-setup-banner{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 18px;padding:15px 17px;border:1px solid rgba(141,124,255,.3);border-radius:14px;background:linear-gradient(90deg,rgba(141,124,255,.12),rgba(141,124,255,.035));color:var(--text,#f7f7fa)}
.security-setup-banner[hidden]{display:none!important}.security-setup-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(141,124,255,.16);color:#b9aeff}.security-setup-banner>div:nth-child(2){min-width:0;display:grid;gap:4px}.security-setup-banner strong{font-size:14px}.security-setup-banner small{color:var(--muted,#9797a5);font-size:12px;line-height:1.45}.security-setup-actions{display:flex;align-items:center;gap:8px}.security-setup-actions button{min-height:40px;margin:0!important;white-space:nowrap}
.security-settings-card{align-self:start}.security-method-list{display:grid;border-top:1px solid var(--line,#2a2a31)}.security-method-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:72px;padding:12px 0;border-bottom:1px solid var(--line,#2a2a31)}.security-method-row>span{display:grid;gap:4px;min-width:0}.security-method-row strong{font-size:13px}.security-method-row small{color:var(--muted,#9797a5);font-size:11px}.security-method-row button{min-width:92px;min-height:38px;margin:0!important}.security-setup-panel:not(:empty){margin-top:16px}.security-setup-panel form{display:grid;gap:12px;margin-top:12px}.security-setup-panel .code-block{max-height:210px;overflow:auto;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
.linked-devices{margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#2a2a31)}.linked-device-list{display:grid;gap:4px;margin-top:10px}.linked-device-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0}.linked-device-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(141,124,255,.12);color:#b5a9ff}.linked-device-copy{display:grid;gap:3px;min-width:0}.linked-device-copy strong{font-size:12px}.linked-device-copy small{color:var(--muted,#9797a5);font-size:10px}.linked-device-action{min-height:34px!important;padding-inline:10px!important;font-size:10px!important}.linked-devices-empty{margin:10px 0 0;color:var(--muted,#9797a5);font-size:11px}
.active-sessions{margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#2a2a31)}.security-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.security-section-heading>span{display:grid;gap:4px}.security-section-heading strong{font-size:13px}.active-sessions .session-list{margin-top:10px}.active-sessions .session-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line,#2a2a31)}.active-sessions .session-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:rgba(141,124,255,.12);color:#b5a9ff}.active-sessions .session-icon svg{width:16px;height:16px}.active-sessions .session-copy{display:grid;gap:3px;min-width:0}.active-sessions .session-copy strong{font-size:12px}.active-sessions .session-copy small,.active-sessions .session-row time{color:var(--muted,#9797a5);font-size:10px}.active-sessions .session-row time{text-align:right}.active-sessions .session-ip{border:0;background:none;color:inherit;padding:0;text-decoration:underline dotted;cursor:pointer}@media(max-width:600px){.security-section-heading{align-items:flex-start;flex-direction:column}.active-sessions .session-row{grid-template-columns:32px minmax(0,1fr)}.active-sessions .session-row time{grid-column:2;text-align:left}}
.security-account-actions{margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#2a2a31)}.security-account-action-list{display:grid;margin-top:10px}.security-account-action-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:64px;padding:10px 0;border-bottom:1px solid var(--line,#2a2a31)}.security-account-action-row>span{display:grid;gap:4px;min-width:0}.security-account-action-row strong{font-size:12px}.security-account-action-row small{color:var(--muted,#9797a5);font-size:11px;overflow-wrap:anywhere}.security-account-action-row button{min-width:80px;min-height:36px;margin:0!important}.security-method-row #connectTelegram{background:#229ed9!important;border-color:#229ed9!important;color:#fff!important}.security-method-row #connectTelegram:hover{background:#1687bd!important;border-color:#1687bd!important;color:#fff!important}
.updates-thread{border:1px solid rgba(141,124,255,.6)!important;background:rgba(141,124,255,.08)!important}.updates-thread:hover,.updates-thread.active{border-color:#a99dff!important;background:rgba(141,124,255,.15)!important}.updates-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(141,124,255,.18);color:#c4baff;border:1px solid rgba(141,124,255,.6)}.updates-avatar .ui-icon{width:16px;height:16px}.updates-pinned{margin-left:6px;color:#b9aeff;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.updates-conversation-head{border-bottom-color:rgba(141,124,255,.35)!important}.updates-stream{padding:18px 20px 28px!important}.updates-item{position:relative;display:grid;justify-items:start;gap:7px;max-width:min(620px,92%);padding:14px 0;border-bottom:1px solid rgba(141,124,255,.18)}.updates-item .bubble{max-width:100%;white-space:pre-wrap}.updates-item small{color:var(--muted,#9797a5);font-size:10px}.updates-item-actions{display:flex;gap:10px}.updates-item-actions .message-unsend{position:static;opacity:1}.updates-media{display:block;max-width:min(460px,100%);max-height:360px;border-radius:12px;object-fit:contain;background:#111116}.updates-unsent{opacity:.65}.updates-composer{border-top:1px solid rgba(141,124,255,.35)!important}.updates-readonly-note{margin:0;padding:12px 20px;color:var(--muted,#9797a5);font-size:11px;text-align:center;border-top:1px solid rgba(141,124,255,.18)}
.message-body-editor{width:100%;min-width:0;min-height:42px;max-height:130px;overflow:auto;display:flex;align-items:center;padding:10px 12px;border:1px solid var(--line,#2a2a31);border-radius:12px;background:#111116;color:var(--text,#f7f7fa);font:inherit;font-size:13px;line-height:1.35;outline:0;white-space:pre-wrap;overflow-wrap:anywhere}.message-body-editor:empty::before{content:attr(data-placeholder);color:var(--muted,#9797a5);pointer-events:none}.inline-composer-emoji{display:inline-flex;vertical-align:middle;width:24px;height:24px;margin:0 2px;align-items:center;justify-content:center}.inline-composer-emoji .animated-emoji{width:24px;height:24px}.inline-message-emoji{display:inline-flex;vertical-align:-.32em;width:28px;height:28px;margin:0 2px;align-items:center;justify-content:center}.inline-message-emoji .animated-emoji{width:28px;height:28px}.message-reaction{position:absolute;right:0;bottom:-9px;display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:2px 7px;border:1px solid var(--line,#2a2a31);border-radius:999px;background:#17171c;color:#8d8d99;font:inherit;font-size:12px;cursor:pointer;opacity:.75}.message-unit.mine .message-reaction{right:auto;left:0}.message-reaction:hover,.message-reaction.active{color:#ff9ab0;border-color:rgba(255,139,166,.55);background:rgba(255,110,145,.1);opacity:1}.message-reaction span{font-size:10px;color:inherit}
.message-unit{position:relative}
.composer:not(.ticket-composer){grid-template-columns:44px minmax(0,1fr) auto!important}.composer:not(.ticket-composer) .composer-attach{grid-column:1}.composer:not(.ticket-composer) .composer-emoji{grid-column:1}.composer:not(.ticket-composer) .message-body-editor{grid-column:2}.composer:not(.ticket-composer)>.solid-button{grid-column:3}
@media(max-width:760px){.composer:not(.ticket-composer){grid-template-columns:40px minmax(0,1fr) auto!important;gap:8px!important}.composer:not(.ticket-composer) .composer-attach{width:40px!important;height:40px!important}.composer:not(.ticket-composer) .composer-emoji{width:40px!important;height:40px!important}.composer:not(.ticket-composer) .message-body-editor{min-height:40px;padding:8px 10px;font-size:16px}.composer:not(.ticket-composer)>.solid-button{height:40px!important;min-width:64px!important;padding:0 12px!important}}
.message-unit.is-new{animation:messageSend .32s cubic-bezier(.22,1,.36,1) both}
@keyframes messageSend{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}

/* Inline fallback icons must not inherit the old mask square from black_system. */
.ui-icon{background:transparent!important;-webkit-mask:none!important;mask:none!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
/* Hosted Lucide SVGs are loaded as images so they remain site-sourced.  Their
   default black stroke needs an explicit light treatment inside the dark app
   chrome; otherwise nav and utility icons disappear against the surface. */
.nav-link .ui-icon>img,
.mobile-dock .ui-icon>img,
.app-bag-button .ui-icon>img,
.notification-button .ui-icon>img,
.account-link .ui-icon>img,
.solid-button .ui-icon>img,
.outline-button .ui-icon>img,
.text-button .ui-icon>img{filter:brightness(0) invert(1)}
/* Badge and plan marks sit on the same dark surfaces but are not controls;
   keep their hosted Lucide artwork visible and let the surrounding colour
   treatment carry the tier accent. */
.storefront-title em .ui-icon>img,
.store-verified .ui-icon>img,
.profile-verified .ui-icon>img,
.profile-badge .ui-icon>img{filter:brightness(0) invert(1)}
.plan-tier-icon.premium .ui-icon>img{filter:brightness(0) saturate(100%) invert(73%) sepia(24%) saturate(1250%) hue-rotate(211deg) brightness(103%) contrast(101%)}
.plan-tier-icon.pro .ui-icon>img{filter:brightness(0) saturate(100%) invert(79%) sepia(38%) saturate(650%) hue-rotate(353deg) brightness(101%) contrast(96%)}
.store-tools-sector-grid button .ui-icon>img,
.home-pulse .ui-icon>img,
.developer-mark .ui-icon>img,
.feature-lock-icon .ui-icon>img{filter:brightness(0) invert(1)}
#appSupportBubble{display:none}
.app-support-entry{width:100%;min-height:62px;margin:10px 0 8px;padding:10px 12px;display:flex;align-items:center;gap:10px;border:1px solid rgba(141,124,255,.28);border-radius:13px;color:#f5f4f7;background:linear-gradient(100deg,rgba(111,95,231,.16),rgba(20,19,26,.8));font:inherit;text-align:left;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}.app-support-entry:hover{border-color:rgba(169,156,255,.72);background:linear-gradient(100deg,rgba(111,95,231,.23),rgba(20,19,26,.95));transform:translateY(-1px)}.app-support-entry-icon{width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border:1px solid rgba(169,156,255,.55);border-radius:10px;color:#c5bcff;background:rgba(141,124,255,.14)}.app-support-entry-icon .ui-icon{width:16px;height:16px}.app-support-entry-copy{min-width:0;display:grid;gap:3px;flex:1}.app-support-entry-copy strong{font-size:12px;letter-spacing:.01em}.app-support-entry-copy small{overflow:hidden;color:#96919f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.app-support-entry-arrow{color:#aaa1ff}.app-support-entry-arrow .ui-icon{width:15px;height:15px}
#appSupportPanel{position:fixed;right:24px;bottom:24px;z-index:81;width:min(380px,calc(100vw - 28px));height:min(570px,calc(100dvh - 42px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #37333f;border-radius:18px;color:#f5f4f7;background:#0d0d10;box-shadow:0 28px 90px rgba(0,0,0,.65)}#appSupportPanel[hidden]{display:none}#appSupportPanel header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #26252b;background:#121116}#appSupportPanel header small{display:block;color:#a7a1b3;font-size:9px;letter-spacing:.18em}#appSupportPanel header strong{display:block;margin-top:5px;font-size:19px}#appSupportPanel header button{width:32px;height:32px;border:0;border-radius:9px;color:#aaa6b4;background:#1d1b23;font-size:22px;cursor:pointer}.app-support-stream{flex:1;display:flex;flex-direction:column;gap:10px;padding:18px;overflow:auto}.app-support-msg{max-width:90%;padding:11px 13px;border:1px solid #292731;border-radius:15px 15px 15px 5px;color:#ddd9e5;background:#19181e;font-size:13px;line-height:1.5}.app-support-msg.mine{align-self:flex-end;border-color:#7868de;color:#fff;background:#6656d6;border-radius:15px 15px 5px 15px}.app-support-questions{display:grid;gap:7px}.app-support-questions button,.app-support-human{padding:10px 12px;border:1px solid #393641;border-radius:11px;color:#d8d3ec;background:#14131a;text-align:left;font:inherit;font-size:12px;cursor:pointer}.app-support-questions button:hover,.app-support-human:hover{border-color:#897cf2}.app-support-human{align-self:flex-start}.app-support-email{display:grid;gap:6px;color:#94909d;font-size:11px}.app-support-email input{padding:10px;border:1px solid #36333f;border-radius:9px;color:#fff;background:#111016}#appSupportPanel form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid #26252b;background:#111014}#appSupportPanel form input{min-width:0;height:42px;padding:0 12px;border:1px solid #302e38;border-radius:11px;color:#fff;background:#17161c}#appSupportPanel form button{height:42px;padding:0 14px;border:0;border-radius:11px;color:#fff;background:#7565e8;font:inherit;font-size:12px}#appSupportPanel form button:disabled{color:#6e6a74;background:#26242b}.app-support-inline{position:relative!important;inset:auto!important;z-index:1!important;width:100%!important;height:100%!important;min-height:100%;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#0d0d10!important}.app-support-inline header{flex:0 0 auto}.app-support-inline .app-support-stream{min-height:0}.app-support-inline form{flex:0 0 auto}.app-support-inline[hidden]{display:none!important}@media(max-width:650px){#appSupportPanel{right:14px;bottom:calc(14px + env(safe-area-inset-bottom));height:min(600px,calc(100dvh - 28px));width:calc(100vw - 28px)}}
.telegram-link-code{display:grid;gap:8px;margin:18px 0;padding:14px;border:1px solid var(--line,#2a2a31);border-radius:12px;background:rgba(255,255,255,.025)}.telegram-link-code span{color:var(--muted,#9797a5);font-size:11px}.telegram-link-code code{overflow-wrap:anywhere;color:#c4baff;font-size:12px}.telegram-connect-summary{display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px;border:1px solid rgba(141,124,255,.2);border-radius:12px;background:rgba(141,124,255,.07)}.telegram-connect-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:10px;color:#c8c0ff;background:rgba(141,124,255,.16)}.telegram-connect-summary div{display:grid;gap:3px;min-width:0}.telegram-connect-summary strong{font-size:12px}.telegram-connect-summary small{color:var(--muted,#9797a5);font-size:11px}.telegram-fallback{margin-top:12px;color:var(--muted,#9797a5);font-size:11px}.telegram-fallback summary{cursor:pointer}.telegram-fallback code{display:block;margin-top:8px;padding:8px;overflow-wrap:anywhere;color:#c4baff;font-size:11px;background:rgba(255,255,255,.025);border-radius:8px}.telegram-link-status{margin:14px 0 0;color:var(--muted,#9797a5);font-size:12px}.dialog-actions a.solid-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
#appDialog.app-checkout-dialog{max-height:min(88dvh,780px)!important;overflow-y:auto!important;overscroll-behavior:contain}

@media(max-width:760px){
  .security-setup-banner{grid-template-columns:40px minmax(0,1fr);margin-inline:0;padding:14px}.security-setup-icon{width:38px;height:38px}.security-setup-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.security-setup-actions button{width:100%;min-width:0}.security-method-row button{min-width:86px}
  #appDialog.app-checkout-dialog{max-height:calc(100dvh - 96px)!important;padding-bottom:calc(20px + env(safe-area-inset-bottom))!important}
}
@media(max-width:430px){.security-setup-actions{grid-template-columns:1fr}}
@media(max-width:430px){.linked-device-row{grid-template-columns:32px minmax(0,1fr)}.linked-device-action{grid-column:2;justify-self:start}}
@media(max-width:430px){.security-account-action-row{grid-template-columns:minmax(0,1fr) auto}.security-account-action-row button{min-width:72px}}

/* Composer and settings layout cleanup. Custom emoji controls are intentionally removed. */
.updates-composer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px auto !important;
  align-items: end !important;
  gap: 8px !important;
  min-width: 0;
  padding: 12px 18px !important;
}
.updates-composer textarea {
  grid-column: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 42px !important;
  resize: vertical;
}
.updates-composer .composer-attach {
  grid-column: 2 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  margin: 0 !important;
}
.updates-composer > button[type="submit"] {
  grid-column: 3 !important;
  min-height: 44px !important;
  margin: 0 !important;
  white-space: nowrap;
}
.account-grid,
.account-main,
.account-side,
.settings-card,
.settings-card form,
.security-method-row,
.security-account-action-row {
  min-width: 0;
  max-width: 100%;
}
.settings-card input,
.settings-card textarea,
.settings-card select {
  max-width: 100%;
}
@media (max-width: 760px) {
  .updates-composer {
    grid-template-columns: minmax(0, 1fr) 40px 78px !important;
    padding: 10px 12px !important;
  }
  .updates-composer .composer-attach {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  .updates-composer > button[type="submit"] {
    min-height: 40px !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
  }
  .settings-card,
  #profileSettings,
  #appSettings {
    overflow: hidden;
  }
  .security-method-row,
  .security-account-action-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
}
.app-settings-card .setting-toggle {
  padding-right: 12px;
}
.app-settings-card .setting-toggle > input[role="switch"] {
  flex: 0 0 auto;
  margin-left: 12px;
}

/* Telegram connection dialog: keep the summary copy stacked and readable. */
.telegram-connect-summary {
  align-items: flex-start !important;
  gap: 12px !important;
}
.telegram-connect-summary > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  line-height: 1.35;
}
.telegram-connect-summary > div strong,
.telegram-connect-summary > div small {
  display: block !important;
  white-space: normal !important;
}
.telegram-connect-summary > div small {
  max-width: 100%;
}
.telegram-connect-summary + .dialog-actions {
  margin-top: 14px;
}
.telegram-fallback {
  margin-top: 12px !important;
}

/* Security settings: keep linked devices as distinct, readable rows. */
.security-settings-card .linked-devices {
  display: block !important;
  width: 100%;
  min-width: 0;
  clear: both;
}
.security-settings-card .linked-device-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  width: 100%;
}
.security-settings-card .linked-device-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 58px !important;
  width: 100%;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--line, #2a2a31);
  box-sizing: border-box;
}
.security-settings-card .linked-device-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
  line-height: 1.3;
}
.security-settings-card .linked-device-copy strong,
.security-settings-card .linked-device-copy small {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.security-settings-card .linked-device-action {
  justify-self: end;
  white-space: nowrap;
}
.security-settings-card .security-account-actions {
  display: block !important;
  clear: both;
  margin-top: 22px !important;
  padding-top: 18px !important;
}
.security-settings-card .security-account-action-list {
  display: grid !important;
  width: 100%;
}
.security-settings-card .security-account-action-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 62px !important;
  padding: 11px 0 !important;
  box-sizing: border-box;
}
.money-share-button{margin-left:auto;min-height:32px;padding-inline:11px!important;white-space:nowrap}.money-snapshot-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:16px 0}.money-snapshot-options>label{min-width:0}.money-snapshot-options .media-upload-button{margin:0}.money-snapshot-preview{min-height:72px;display:grid;place-items:center;margin:12px 0;padding:14px;border:1px solid rgba(141,124,255,.3);border-radius:14px;background:linear-gradient(120deg,rgba(141,124,255,.12),rgba(255,255,255,.025))}.money-snapshot-preview>div{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}.money-snapshot-preview strong{font-size:20px}.money-snapshot-preview span{color:var(--muted);font-size:11px}.money-snapshot-preview b{color:#bdb4ff;font-size:13px}@media(max-width:600px){.money-snapshot-options{grid-template-columns:1fr}.money-snapshot-preview>div{align-items:flex-start;flex-direction:column}.money-share-button{margin-left:0}}
@media (max-width: 430px) {
  .security-settings-card .linked-device-row {
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }
  .security-settings-card .linked-device-action {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 6px !important;
  }
}

/* Updates publisher: avoid the generic message grid collapsing the editor. */
#updatesComposer {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
#updatesComposer > textarea {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-height: 140px;
  box-sizing: border-box;
}
#updatesComposer > .composer-attach {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}
#updatesComposer > button[type="submit"] {
  flex: 0 0 auto !important;
  min-height: 44px !important;
  white-space: nowrap;
}
.updates-item-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 32px;
  opacity: 1 !important;
  visibility: visible !important;
}
.updates-item-actions > button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px !important;
  padding: 5px 10px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 760px) {
  #updatesComposer { gap: 6px !important; padding: 10px 12px !important; }
  #updatesComposer > .composer-attach { flex-basis: 40px !important; width: 40px !important; height: 40px !important; min-width: 40px !important; }
  #updatesComposer > button[type="submit"] { min-height: 40px !important; padding-inline: 10px !important; }
}

/* Updates should read as a pinned channel without the label, with a clear purple treatment. */
.updates-thread,
.updates-thread.active {
  border: 1px solid rgba(141,124,255,.72) !important;
  background: linear-gradient(100deg, rgba(141,124,255,.22), rgba(141,124,255,.07)) !important;
  box-shadow: inset 0 0 0 1px rgba(141,124,255,.12), 0 8px 22px rgba(70,54,160,.12) !important;
}
.updates-thread:hover {
  border-color: #b5a9ff !important;
  background: linear-gradient(100deg, rgba(141,124,255,.3), rgba(141,124,255,.1)) !important;
}
.updates-conversation-head {
  background: linear-gradient(100deg, rgba(141,124,255,.1), transparent 68%) !important;
  border-bottom: 1px solid rgba(141,124,255,.35) !important;
}
#updatesComposer {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
}
#updatesComposer > textarea {
  display: block !important;
  flex: 1 1 0 !important;
  grid-column: auto !important;
}
#updatesComposer > .composer-attach,
#updatesComposer > button[type="submit"] {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  grid-column: auto !important;
}
.money-snapshot-preview{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:10px;min-height:210px;padding:10px;margin:12px 0;border:1px solid rgba(141,124,255,.3);border-radius:16px;background:linear-gradient(120deg,rgba(141,124,255,.12),rgba(255,255,255,.025));overflow:hidden}.snapshot-preview-stage{display:grid;gap:8px;min-width:0}.snapshot-preview-stage img{display:block;width:100%;max-height:210px;aspect-ratio:40/21;object-fit:contain;border-radius:10px;opacity:0;transform:translateX(8px) scale(.985);transition:opacity .22s ease,transform .22s ease;background:#11101a}.snapshot-preview-stage img.is-visible{opacity:1;transform:translateX(0) scale(1)}.snapshot-preview-stage>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.snapshot-preview-stage strong{font-size:16px}.snapshot-preview-stage span{color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snapshot-preview-stage b{color:#bdb4ff;font-size:12px;white-space:nowrap}.snapshot-nav{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(141,124,255,.35);border-radius:50%;background:rgba(20,18,30,.8);color:#fff;font-size:26px;line-height:1;cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease}.snapshot-nav:hover{background:#a99cff;color:#17131f;transform:scale(1.06)}
.money-snapshot-dialog{width:min(860px,calc(100% - 32px))!important;max-width:860px!important;padding:28px!important}.money-snapshot-dialog .money-snapshot-preview{min-height:410px;grid-template-columns:48px minmax(0,1fr) 48px;gap:16px;padding:16px}.money-snapshot-dialog .snapshot-preview-stage canvas{max-height:360px}.money-snapshot-dialog .snapshot-nav{width:42px;height:42px}.money-snapshot-dialog .snapshot-preview-stage>div{padding-inline:8px}.money-snapshot-dialog .snapshot-preview-stage strong{font-size:18px}.money-snapshot-dialog .snapshot-preview-stage span{font-size:11px}.money-snapshot-dialog .snapshot-preview-stage b{font-size:13px}@media(max-width:600px){.money-snapshot-dialog{width:calc(100% - 20px)!important;padding:18px!important}.money-snapshot-dialog .money-snapshot-preview{min-height:270px;grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;padding:8px}.money-snapshot-dialog .snapshot-preview-stage canvas{max-height:230px}.money-snapshot-dialog .snapshot-nav{width:32px;height:32px}.money-snapshot-dialog .snapshot-preview-stage>div{align-items:flex-start;flex-direction:column;gap:3px}}
.money-snapshot-dialog .snapshot-preview-stage canvas{display:block;width:100%;height:auto;aspect-ratio:40/21;object-fit:contain;border-radius:10px;opacity:0;transform:translateX(8px) scale(.985);transition:opacity .22s ease,transform .22s ease;background:#11101a}
.money-snapshot-dialog .snapshot-preview-stage canvas.is-visible{opacity:1;transform:translateX(0) scale(1)}
.money-snapshot-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.money-snapshot-options .media-upload-button{cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:42px}
.money-snapshot-options input[type=color]{width:100%;min-height:42px;padding:4px;border:1px solid rgba(141,124,255,.35);border-radius:10px;background:#111;color:#fff;cursor:pointer}
#moneySnapshotSummary{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;min-width:0;overflow:hidden}
#moneySnapshotSummary>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#moneySnapshotSummary span{grid-column:1/-1;max-width:100%}
#moneySnapshotSummary b{max-width:100%;text-align:right}
.money-snapshot-dialog .money-snapshot-preview{grid-template-columns:minmax(0,1fr)!important}
.money-snapshot-dialog .snapshot-preview-stage{display:grid!important;width:100%;min-width:0}
.message-reaction{opacity:0;pointer-events:none;transform:translateY(2px);transition:opacity .16s ease,transform .16s ease}
.message-unit:hover .message-reaction,.message-unit:focus-within .message-reaction,.message-reaction.active{opacity:.9;pointer-events:auto;transform:translateY(0)}
.money-performance-bar{height:5px;margin:14px 0 4px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.money-performance-bar>span{display:block;width:8%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c982,#8af2b8);box-shadow:0 0 12px rgba(34,201,130,.45);transition:width .35s ease,background .2s ease}
.money-performance-bar>span.is-negative{background:linear-gradient(90deg,#f06a76,#ffb1a8);box-shadow:0 0 12px rgba(240,106,118,.35)}

.global-warning-banner{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:120;width:min(720px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #d5a72c;border-radius:14px;background:#2c2308;color:#ffe9a3;box-shadow:0 16px 40px rgba(0,0,0,.35);font-weight:600;font-size:13px;line-height:1.4}
.profile-scam{display:inline-flex;width:16px;height:16px;margin-left:4px;color:#ff707c;vertical-align:-3px}
.profile-scam .ui-icon{width:16px;height:16px}
.profile-scam-warning{display:flex;align-items:baseline;gap:9px;margin-top:12px;padding:9px 11px;border:1px solid rgba(255,83,96,.58);border-radius:9px;background:rgba(127,22,32,.18);color:#ff7d87}.profile-scam-warning span,.thread-scam-label{font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.profile-scam-warning small{color:#e5a2a7;font-size:11px}.scam-thread{border-color:rgba(255,78,91,.62)!important;background:linear-gradient(100deg,rgba(111,18,28,.24),rgba(26,12,15,.16))!important}.scam-thread:hover,.scam-thread.active{border-color:#ff6873!important;background:rgba(110,20,29,.34)!important}.thread-scam-label{display:inline-flex;margin-left:8px;color:#ff6f7b;vertical-align:middle}
.account-wallet-warning{display:flex;align-items:flex-start;gap:10px;margin:16px 0;padding:12px 14px;border:1px solid rgba(255,78,91,.72);border-radius:12px;background:linear-gradient(100deg,rgba(113,20,31,.3),rgba(65,15,21,.16));color:#ff8d96}.account-wallet-warning-icon{display:grid;place-items:center;flex:0 0 auto;width:18px;height:18px;margin-top:1px}.account-wallet-warning-icon .ui-icon{width:18px;height:18px}.account-wallet-warning span:last-child{display:grid;gap:3px;min-width:0}.account-wallet-warning strong{font-size:11px;letter-spacing:.14em}.account-wallet-warning small{color:#f1b2b7;font-size:12px;line-height:1.4}
.profile-scam-warning{border-color:#ff3f4f!important;background:rgba(126,13,25,.42)!important;color:#ff626e!important;box-shadow:0 0 0 1px rgba(255,63,79,.16),0 8px 22px rgba(100,0,12,.2)}
.scam-thread{border:1px solid #ff3f4f!important;box-shadow:inset 0 0 0 1px rgba(255,63,79,.16),0 0 14px rgba(255,42,58,.12)!important}
.scam-thread:hover,.scam-thread.active{border-color:#ff6b76!important;background:rgba(126,18,30,.4)!important}
.scam-conversation-head{border-bottom-color:rgba(255,63,79,.58)!important;background:linear-gradient(100deg,rgba(126,13,25,.28),transparent 70%)!important}
.scam-conversation-stream{box-shadow:inset 1px 0 0 rgba(255,63,79,.42),inset -1px 0 0 rgba(255,63,79,.42)}
.scam-conversation-composer{border-top-color:rgba(255,63,79,.5)!important}
.storefront-card-scam{position:relative;border:1px solid #ff3f4f!important;box-shadow:inset 0 0 0 1px rgba(255,63,79,.16),0 0 18px rgba(255,42,58,.14)!important;background:linear-gradient(145deg,rgba(113,16,29,.24),rgba(19,12,16,.9))!important}
.storefront-card-scam:hover{border-color:#ff6b76!important;box-shadow:inset 0 0 0 1px rgba(255,107,118,.24),0 0 24px rgba(255,42,58,.2)!important}
.storefront-scam-warning{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;margin:10px 12px 0;padding:8px 10px;border:1px solid rgba(255,63,79,.74);border-radius:9px;background:rgba(126,13,25,.45);color:#ff818b;line-height:1.25}
.storefront-scam-warning strong{font-size:10px;letter-spacing:.14em}.storefront-scam-warning span{font-size:11px;color:#f0b0b5}
.thread-scam-label{display:inline-flex!important;align-items:center;margin-left:8px!important;padding:3px 8px!important;border:1px solid #ff3f4f!important;border-radius:999px!important;background:#c9253a!important;color:#fff!important;font-size:10px!important;font-weight:850!important;letter-spacing:.1em!important;line-height:1!important;vertical-align:middle!important}
.profile-scam,.profile-scam .ui-icon{color:#ff3f4f!important}.profile-scam .ui-icon{stroke:#ff3f4f!important}
.profile-popup-scam{border:1px solid #ff3f4f!important;box-shadow:0 0 0 1px rgba(255,63,79,.2),0 20px 60px rgba(90,0,12,.28)!important}
.profile-popup-scam .profile-scam-warning{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-top:12px!important;padding:10px 12px!important;border:1px solid #ff3f4f!important;background:rgba(126,13,25,.46)!important;color:#fff!important}
.profile-popup-scam .profile-scam-warning span{display:inline-flex!important;align-items:center!important;padding:3px 8px!important;border-radius:999px!important;background:#c9253a!important;color:#fff!important;line-height:1!important}
.profile-popup-scam .profile-scam-warning small{display:block!important;color:#ffc2c6!important}
.thread-name{display:inline-flex!important;align-items:center!important;gap:6px!important;min-width:0}
.thread-name .thread-scam-label{margin-left:0!important;flex:0 0 auto}
.thread-name .profile-scam{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:16px!important;height:16px!important;margin:0!important;vertical-align:middle!important;overflow:visible!important;color:#ff3f4f!important}
.thread-name .profile-scam .ui-icon{width:16px!important;height:16px!important;stroke:#ff3f4f!important}
.app-support-status{display:block;margin-top:7px;color:#8f899b;font-size:10px;font-weight:500;line-height:1.35}
@media(max-width:650px){.global-warning-banner{bottom:calc(64px + env(safe-area-inset-bottom) + 18px);width:calc(100vw - 28px);padding:11px 13px;font-size:12px}}
@media(max-width:650px){main{padding-bottom:150px!important}}

/* Keep the support shortcut compact so the inbox rows remain readable.  The
   support entry is a fifth grid row; without this explicit row it expands into
   the available space and pushes Reports text under the warning banner. */
.screen[data-screen="messages"] .thread-column{grid-template-rows:77px 64px 54px minmax(0,1fr)!important}
.screen[data-screen="messages"] .app-support-entry{height:62px!important;min-height:62px!important;max-height:62px!important;flex:0 0 62px!important;align-self:stretch!important;box-sizing:border-box!important;overflow:hidden!important;margin:10px 0 8px!important}
.screen[data-screen="messages"] .reports-thread{grid-template-rows:36px!important;height:64px!important;min-height:64px!important;padding:14px 16px!important;box-sizing:border-box!important}
.screen[data-screen="messages"] .reports-thread .thread-copy{min-width:0;min-height:36px;align-content:center}
.screen[data-screen="messages"] .reports-thread > :last-child{display:none!important}
@media(min-width:651px){.global-warning-banner{left:auto!important;right:24px!important;transform:none!important;width:min(520px,calc(100vw - 48px))!important}}

/* Store-owned support tickets live in the store operations area, separate from safety reports. */
.ticket-summary{display:flex;align-items:baseline;gap:8px;padding:14px 18px;border:1px solid rgba(141,124,255,.28);border-radius:14px;background:rgba(141,124,255,.08)}
.ticket-summary strong{font-size:24px}.ticket-summary span{color:var(--muted,#8e8b99);font-size:13px}
.store-ticket-row{width:100%;text-align:left;display:grid;grid-template-columns:42px minmax(0,1fr) auto auto 20px;align-items:center;gap:14px;margin:8px 0;padding:15px 16px;border:1px solid var(--line,#28262e);border-radius:14px;background:rgba(255,255,255,.025);color:inherit;cursor:pointer}
.store-ticket-row:hover{border-color:rgba(141,124,255,.65);background:rgba(141,124,255,.08)}
.store-ticket-row .thread-avatar{width:34px;height:34px}.ticket-status{font-size:12px;text-transform:capitalize;padding:5px 9px;border-radius:999px;background:rgba(141,124,255,.14);color:#b9afff}.ticket-status.closed{background:rgba(255,255,255,.08);color:var(--muted,#8e8b99)}
.ticket-detail{display:flex;flex-direction:column;min-height:420px}.ticket-detail-head{display:flex;align-items:flex-start;gap:16px;padding:8px 0 20px;border-bottom:1px solid var(--line,#28262e)}.ticket-detail-head>div{flex:1}.ticket-detail-head h3{margin:4px 0}.ticket-detail-head p{margin:0;color:var(--muted,#8e8b99)}
.ticket-message-stream{display:flex;flex-direction:column;gap:12px;flex:1;max-height:480px;overflow:auto;padding:20px 4px}.ticket-message{max-width:min(620px,82%);align-self:flex-start}.ticket-message.mine{align-self:flex-end;text-align:right}.ticket-message>div{display:inline-block;padding:11px 14px;border-radius:15px;background:rgba(255,255,255,.07);white-space:pre-wrap;line-height:1.45}.ticket-message.mine>div{background:#8068ed;color:#fff}.ticket-message small{display:block;margin-top:4px;color:var(--muted,#8e8b99);font-size:11px}.ticket-reply{display:flex;gap:10px;align-items:flex-end;padding-top:14px;border-top:1px solid var(--line,#28262e)}.ticket-reply textarea{flex:1;min-height:72px;resize:vertical}.ticket-reply button{flex:none}
@media(max-width:650px){.store-ticket-row{grid-template-columns:34px minmax(0,1fr) auto;gap:10px}.store-ticket-row time,.store-ticket-row>span:last-child{display:none}.ticket-detail-head{flex-wrap:wrap}.ticket-detail-head .ticket-status{margin-left:auto}.ticket-reply{flex-direction:column;align-items:stretch}.ticket-reply button{width:100%}}

/* Messages has two inbox modes; do not leave the removed third slot at the edge. */
.screen[data-screen="messages"] .inbox-switch{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important;width:auto!important}
.screen[data-screen="messages"] .inbox-switch button{width:100%!important;min-width:0!important}

.app-help-button{width:38px!important;height:38px!important;min-width:38px;padding:0!important;display:grid;place-items:center;border:1px solid rgba(141,124,255,.42)!important;border-radius:50%!important;background:rgba(141,124,255,.12)!important;color:#c9c2ff!important;font-size:18px!important;font-weight:750!important;line-height:1!important;cursor:pointer!important}
.app-help-button:hover{border-color:rgba(169,156,255,.9)!important;background:rgba(141,124,255,.22)!important}
.security-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.security-card-heading h3{margin:0!important}
.screen[data-screen="messages"] .app-support-entry{display:none!important}
.notification-drawer-actions{display:flex;align-items:center;gap:8px}
.notification-support-button{width:34px!important;height:34px!important;min-width:34px;padding:0!important;display:grid;place-items:center;border:1px solid rgba(255,255,255,.78)!important;border-radius:50%!important;background:#fff!important;color:#050505!important;font-size:17px!important;font-weight:800!important;line-height:1!important;cursor:pointer!important}
.notification-support-button:hover{background:#ededed!important;border-color:#fff!important}
@media(max-width:760px){body{padding-bottom:0!important}.profile-verified,.profile-scam{display:inline-flex;align-items:center;justify-content:center;vertical-align:-3px;margin-left:4px}.profile-verified .ui-icon,.profile-scam .ui-icon{width:16px!important;height:16px!important}.profile-scam{color:#ff707c!important}}
.message-reaction{opacity:.82!important;pointer-events:auto!important;transform:none!important;touch-action:manipulation;z-index:2}.message-reaction.active{opacity:1!important}

/* Reactions belong to the message bubble itself, never beneath/alongside it. */
.message-unit:has(.message-reaction){position:relative!important;padding-top:30px!important}
.message-unit .message-reaction,.message-unit.mine .message-reaction{position:absolute!important;top:4px!important;left:0!important;right:auto!important;bottom:auto!important;margin:0!important}
.message-unit.mine .message-unsend{position:absolute!important;top:4px!important;right:0!important;bottom:auto!important;margin:0!important}

/* Final scam-card edge: one border only, never an outer ring. */
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam:hover{border:2px solid #ff3f4f!important;border-radius:18px!important;outline:none!important;box-shadow:none!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam:hover{border:2px solid #ff3f4f!important;border-radius:18px!important;overflow:hidden!important;box-shadow:inset 0 0 0 2px #ff3f4f,0 0 0 2px #ff3f4f,0 12px 30px rgba(100,0,12,.2)!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam:hover{box-shadow:inset 0 0 0 1px rgba(255,63,79,.7),0 12px 30px rgba(100,0,12,.2)!important}
.storefront-card-scam,.storefront-card-scam:hover,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam:hover{border:2px solid #ff3f4f!important;border-radius:18px!important;box-shadow:none!important;outline:none!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam:hover{border:2px solid #ff3f4f!important;border-radius:18px!important;overflow:hidden!important;box-shadow:inset 0 0 0 2px #ff3f4f,0 0 0 2px #ff3f4f,0 12px 30px rgba(100,0,12,.2)!important}
.ticket-order-card{display:flex;align-items:center;gap:12px;width:min(460px,100%);margin:0 0 14px;padding:10px 12px;border:1px solid rgba(141,124,255,.38);border-radius:12px;background:rgba(141,124,255,.08);color:inherit;text-decoration:none}.ticket-order-card:hover{border-color:rgba(169,156,255,.8);background:rgba(141,124,255,.14)}.ticket-order-image{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;overflow:hidden;border-radius:8px;background:#17151f;color:#c9c2ff}.ticket-order-image img{width:100%;height:100%;object-fit:cover}.ticket-order-image .ui-icon{width:22px;height:22px}.ticket-order-card>span:last-child{display:grid;gap:3px;min-width:0}.ticket-order-card strong{font-size:13px}.ticket-order-card small{color:var(--muted,#8e8b99);font-size:11px}.ticket-order-card em{color:#b9afff;font-size:10px;font-style:normal}.ticket-order-card-minimal{padding:10px 12px}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam{border:2px solid #ff3f4f!important;border-radius:18px!important;box-shadow:0 0 0 2px rgba(255,63,79,.3),0 12px 30px rgba(100,0,12,.2)!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam,.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam:hover{border:2px solid #ff3f4f!important;border-radius:18px!important;overflow:hidden!important;box-shadow:inset 0 0 0 2px #ff3f4f,0 0 0 2px #ff3f4f,0 12px 30px rgba(100,0,12,.2)!important}

/* Scam status is carried by the warning row and badge only; keep the modal
   frame neutral so the warning does not overwhelm the profile content. */
.profile-popup-scam{border-color:var(--app-line,#2a2a31)!important;box-shadow:0 20px 60px rgba(0,0,0,.35)!important}
.profile-popup-identity h2{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.profile-popup-identity h2 .profile-verified,.profile-popup-identity h2 .profile-scam{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;margin:0;vertical-align:middle;flex:0 0 auto}
.profile-popup-identity h2 .profile-scam,.profile-popup-identity h2 .profile-scam .ui-icon{color:#ff3f4f!important;stroke:#ff3f4f!important}
.profile-popup-identity h2 .profile-scam .ui-icon,.profile-popup-identity h2 .profile-verified .ui-icon{width:1em!important;height:1em!important}
.storefront-card-scam .storefront-title{display:inline-flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}
.storefront-scam-pill{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:3px 7px!important;border:1px solid #ff3f4f!important;border-radius:999px!important;color:#fff!important;background:#c9253a!important;font-size:9px!important;font-weight:800!important;letter-spacing:.1em!important;line-height:1!important}
.storefront-scam-pill .ui-icon{width:13px!important;height:13px!important;stroke:#fff!important}
.storefront-card-scam{border:1px solid #ff3f4f!important;box-shadow:0 0 0 1px rgba(255,63,79,.16),0 12px 30px rgba(100,0,12,.16)!important}
.storefront-scam-warning{display:none!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam{border:1px solid #ff3f4f!important;outline:1px solid rgba(255,63,79,.32)!important;outline-offset:-1px!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam .storefront-scam-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;vertical-align:middle!important}
.message-unit.mine:hover .bubble{outline:1px solid #ff5d67!important;outline-offset:2px}
.message-unit:not(.mine):hover .bubble{outline:1px solid #5cc8ff!important;outline-offset:2px}
.message-unsend,.message-reply{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:26px!important;height:26px!important;padding:0!important;border:1px solid currentColor!important;border-radius:7px!important;background:transparent!important;opacity:0!important;pointer-events:none!important}
.message-unsend{left:-34px!important;right:auto!important;color:#ff5d67!important}
.message-reply{right:-34px!important;left:auto!important;color:#5cc8ff!important}
.message-unit.mine:hover .message-unsend,.message-unit.mine:focus-within .message-unsend,.message-unit.mine.show-actions .message-unsend,.message-unit:not(.mine):hover .message-reply,.message-unit:not(.mine):focus-within .message-reply{opacity:1!important;pointer-events:auto!important}
.message-unsend .ui-icon,.message-reply .ui-icon{width:15px!important;height:15px!important}
.message-unsent-placeholder{justify-items:start!important;opacity:.72!important}
.message-unsent-placeholder .message-unsent-bubble{margin:0!important}
.message-unsent-placeholder.is-new{animation:none!important}
.nav-link,.mobile-dock button,.notification-button{position:relative}

/* Support composer stays attached to the conversation on small screens. */
.conversation .ticket-composer{position:sticky!important;bottom:0!important;z-index:5!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:end!important;padding:12px 14px!important;margin:0!important;border-top:1px solid var(--line)!important;background:rgba(10,10,13,.95)!important;backdrop-filter:blur(14px)!important}
.conversation .ticket-composer textarea{width:100%!important;min-height:48px!important;box-sizing:border-box!important;resize:none!important}
.conversation .ticket-composer .solid-button{min-height:48px!important;white-space:nowrap!important}
.screen[data-screen="storefronts"] .storefront-card.storefront-card-scam{border:2px solid #ff3f4f!important;border-radius:18px!important;outline:none!important}
.screen[data-screen="messages"] .inbox-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:650px){.conversation .ticket-composer{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:10px!important}.conversation .ticket-composer textarea{min-height:44px!important;font-size:16px!important}.conversation .ticket-composer .solid-button{height:44px!important;min-height:44px!important;min-width:64px!important;padding:0 14px!important}}
.nav-alert,[data-notification-badge]{display:grid!important;place-items:center!important;min-width:18px!important;height:18px!important;padding:0 5px!important;border-radius:999px!important;background:#e24b58!important;color:#fff!important;font:700 10px/1 ui-sans-serif,system-ui,sans-serif!important;box-shadow:0 0 0 2px #0b0b0e!important}
.nav-alert[hidden],[data-notification-badge][hidden]{display:none!important}
#messageRequestCount{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:6px;padding:0 4px;border-radius:999px;background:#e24b58;color:#fff;font-size:10px;font-weight:700;vertical-align:middle}
#messageRequestCount[hidden]{display:none}

/* Keep the bubble's natural height; float the reaction from its top edge. */
.message-unit:has(.message-reaction){padding-top:0!important}
.storefront-card-scam{border:2px solid #ff3f4f!important;border-radius:18px!important;overflow:hidden!important;box-shadow:none!important}
.storefront-card-scam:hover{border:2px solid #ff3f4f!important;border-radius:18px!important;box-shadow:none!important}
.message-unit .bubble{padding-top:var(--bubble-padding-y,12px)!important}
.message-unit .bubble .message-reaction,.message-unit.mine .bubble .message-reaction{top:-12px!important;left:8px!important}

/* The restored backup used the same self-contained icon set; keep the bag
   glyph visible because the optional legacy mask asset is not shipped. */
.app-bag-button>.ui-icon{background:none!important;-webkit-mask:none!important;mask:none!important}

/* Storefronts directory polish: stronger hierarchy, clearer store identity and
   a more deliberate browse surface on both wide and narrow layouts. */
.screen[data-screen="storefronts"] .directory-hero{position:relative;overflow:hidden;border:1px solid rgba(141,124,255,.22);border-radius:24px;background:radial-gradient(520px 260px at 88% 12%,rgba(141,124,255,.26),transparent 68%),linear-gradient(145deg,#111018,#0a0a0d 72%)}
.screen[data-screen="storefronts"] .directory-hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 0 58%,rgba(255,255,255,.045) 70%,transparent 82%);mix-blend-mode:screen}
.screen[data-screen="storefronts"] .directory-hero-copy,.screen[data-screen="storefronts"] .directory-overview{position:relative;z-index:1}
.screen[data-screen="storefronts"] .directory-hero-button{box-shadow:0 12px 28px rgba(102,85,219,.25)}
.screen[data-screen="storefronts"] .directory-overview{background:rgba(7,7,10,.68);border-color:rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.screen[data-screen="storefronts"] .storefront-grid{align-items:stretch}
.screen[data-screen="storefronts"] .storefront-card{position:relative;isolation:isolate;border-color:rgba(255,255,255,.11);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012) 32%),#101014;box-shadow:0 12px 32px rgba(0,0,0,.16)}
.screen[data-screen="storefronts"] .storefront-card::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:radial-gradient(260px 120px at 10% 0%,rgba(141,124,255,.12),transparent 70%)}
.screen[data-screen="storefronts"] .storefront-card:hover{transform:translateY(-5px);border-color:rgba(169,156,255,.58);box-shadow:0 22px 48px rgba(0,0,0,.28),0 0 0 1px rgba(141,124,255,.14)}
.screen[data-screen="storefronts"] .storefront-art{background:radial-gradient(circle at 78% 18%,rgba(141,124,255,.28),transparent 36%),linear-gradient(145deg,#1b1922,#0b0b0f)}
.screen[data-screen="storefronts"] .storefront-art img{transition:transform .35s ease,filter .35s ease}
.screen[data-screen="storefronts"] .storefront-card:hover .storefront-art img{transform:scale(1.045);filter:saturate(1.08)}
.screen[data-screen="storefronts"] .storefront-title em{box-shadow:0 0 0 3px rgba(141,124,255,.12)}
.screen[data-screen="storefronts"] .storefront-stats span{background:rgba(255,255,255,.025)}
@media(max-width:760px){.screen[data-screen="storefronts"] .directory-hero{border-radius:18px}.screen[data-screen="storefronts"] .directory-overview{backdrop-filter:blur(10px)}.screen[data-screen="storefronts"] .storefront-body{padding:19px}.screen[data-screen="storefronts"] .storefront-title strong{font-size:19px}}
.store-tools-sector{margin:28px 0 34px;padding:24px;border:1px solid rgba(167,153,255,.2);border-radius:20px;background:linear-gradient(140deg,rgba(112,94,224,.13),rgba(255,255,255,.025))}.store-tools-sector .section-heading{margin:0 0 18px}.store-tools-sector .section-heading h2{margin:5px 0 6px}.store-tools-sector .section-heading p{margin:0;color:var(--muted,#8f8b98);font-size:13px}.store-tools-sector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.store-tools-sector-grid button{display:grid;gap:8px;min-height:116px;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:14px;color:var(--text,#fff);background:rgba(9,9,12,.52);text-align:left;cursor:pointer}.store-tools-sector-grid button:hover{border-color:#8d7cff;background:rgba(113,97,223,.12)}.store-tools-sector-grid button>span{width:28px;height:28px;color:#b7adff}.store-tools-sector-grid strong{font-size:13px}.store-tools-sector-grid small{color:var(--muted,#8f8b98);font-size:11px;line-height:1.4}@media(max-width:720px){.store-tools-sector{margin:22px 0;padding:18px}.store-tools-sector-grid{grid-template-columns:1fr}.store-tools-sector-grid button{min-height:88px}}
.plan-sector{margin:0 0 18px;padding:22px 24px;border:1px solid var(--app-line);border-radius:var(--app-radius);background:linear-gradient(120deg,rgba(141,124,255,.08),rgba(255,255,255,.018))}.plan-sector-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.plan-sector-head h2{margin:5px 0 0;font-size:22px;letter-spacing:-.04em}.plan-current{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid rgba(141,124,255,.45);border-radius:999px;color:#c9c1ff;font-size:11px;font-weight:700}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.plan-card{position:relative;min-width:0;padding:16px;border:1px solid var(--app-line);border-radius:13px;background:#0c0c0f;transition:border-color .18s ease,transform .18s ease}.plan-card:hover{border-color:rgba(141,124,255,.6);transform:translateY(-2px)}.plan-card.is-current{border-color:#8d7cff;box-shadow:0 0 0 1px rgba(141,124,255,.18)}.plan-card.is-pro{background:linear-gradient(145deg,rgba(141,124,255,.14),#0c0c0f 55%)}.plan-card h3{margin:0;font-size:17px}.plan-card-price{margin:8px 0 12px;font-size:25px;font-weight:700;letter-spacing:-.05em}.plan-card-price small{color:var(--muted);font-size:11px;font-weight:500;letter-spacing:0}.plan-card ul{display:grid;gap:6px;margin:0 0 14px;padding:0;list-style:none;color:var(--muted);font-size:11px;line-height:1.35}.plan-card li::before{content:'✓';margin-right:6px;color:#a99cff}.plan-card button{width:100%}.plan-card button[disabled]{opacity:.55;cursor:default}.plan-loading{padding:20px;color:var(--muted);font-size:12px}.money-performance-bar{display:none!important}@media(max-width:760px){.plan-sector{padding:17px}.plan-sector-head{align-items:flex-start;flex-direction:column;gap:10px}.plan-grid{grid-template-columns:1fr}.plan-card{padding:15px}}
.plan-card .kicker{display:flex;align-items:center;gap:7px;font-size:0}.plan-card .kicker::before{display:none}.plan-card .kicker::after{content:attr(data-plan-label);font-size:11px}.plan-card .kicker.plan-kicker-premium::before,.plan-card .kicker.plan-kicker-pro::before{display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;font:700 10px/1 Georgia,serif}.plan-card .kicker.plan-kicker-premium{color:#bdb1ff}.plan-card .kicker.plan-kicker-premium::before{content:"✦"}.plan-card .kicker.plan-kicker-pro{color:#e1b96d}.plan-card .kicker.plan-kicker-pro::before{content:"♛";border-color:#e1b96d}
.message-unit:has(.message-reaction){padding-top:0!important}
.message-unit .bubble{position:relative!important;padding-top:12px!important}
.message-unit .bubble-copy{display:block}
.message-unit .bubble{margin-bottom:10px!important}
.message-unit .bubble .message-reaction,.message-unit.mine .bubble .message-reaction{position:absolute!important;top:auto!important;left:8px!important;right:auto!important;bottom:-12px!important;margin:0!important}
.message-unit.mine .message-unsend{position:absolute!important;top:4px!important;right:0!important;bottom:auto!important;margin:0!important}

/* Final single-outline rule: keep scam storefront cards clean and avoid a duplicate ring. */
.screen[data-screen="storefronts"] .storefront-grid .storefront-card.storefront-card-scam,
.screen[data-screen="storefronts"] .storefront-grid .storefront-card.storefront-card-scam:hover {
  border:1px solid #ff4557!important;
  border-radius:20px!important;
  outline:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
  padding:0!important;
}

/* Override list-surface legacy card reset so the scam card keeps one visible border. */
html[data-surface-style="list"] .workspace .screen[data-screen="storefronts"] .storefront-grid .storefront-card.storefront-card-scam,
html[data-surface-style="list"] .workspace .screen[data-screen="storefronts"] .storefront-grid .storefront-card.storefront-card-scam:hover {
  border:1px solid #ff4557!important;
  border-color:#ff4557!important;
  border-radius:20px!important;
  outline:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
  padding:0!important;
}

html[data-surface-style="list"] .workspace .screen[data-screen="storefronts"] .storefront-grid .storefront-card.storefront-card-scam .storefront-art,
html[data-surface-style="list"] .workspace .screen[data-screen="storefronts"] .storefront-grid .storefront-card.storefront-card-scam:hover .storefront-art {
  border-radius:19px 19px 0 0!important;
}
