:root {
  color-scheme: dark;
  --body: #090a12;
  --surface: #121723;
  --ink: #f4f6ff;
  --muted: #aeb7ca;
  --line: #2a3449;
  --cyan: #08e3e5;
  --pink: #ff258a;
  --radius: 20px;
  --panel: linear-gradient(145deg, #181b2a, #101620 70%);
  --claim-gradient: linear-gradient(104deg, #09e6e6, #99eeee 35%, #ff83b8 67%, #ff258a);
  scrollbar-color: #46536b var(--body);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  font-family: Inter, "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 0 37%, #300d285e, transparent 30rem),
    radial-gradient(ellipse at 100% 5%, #08444852, transparent 36rem),
    linear-gradient(165deg, #151020, var(--body) 37%, #0c1016);
  min-height: 100dvh;
}
:focus-visible { outline-color: var(--cyan); }
.wrap { max-width: 776px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.content { padding-top: 18px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.bar { background: #0e1019eb; border-color: #242b3b; padding-top: env(safe-area-inset-top); }
.top-row { min-height: 63px; gap: 9px; }
.front-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; letter-spacing: -.045em; font-weight: 800; }
.front-avatar { background: none; }
.front-avatar .brand-mark { inline-size: 34px; block-size: 34px; }
.language { gap: 6px; background: #171b27; color: var(--muted); border-color: var(--line); }
.language select { color: var(--ink); max-inline-size: 10rem; }
.language option { color: var(--ink); background: var(--surface); }

.home-stack { display: grid; gap: 14px; margin-top: 14px; }
.home-carousel { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #494159; border-radius: var(--radius); background: #141320; }
.home-slide { position: relative; display: grid; align-items: center; min-height: clamp(176px, 34vw, 270px); isolation: isolate; }
.home-slide[hidden] { display: none; }
.home-slide img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.home-slide.home-slide-managed:not(.with-caption)::after { content: none; }
.home-slide.home-slide-managed.with-caption::after { background: linear-gradient(0deg,#0c0d18d9,transparent 42%); }
.managed-banner-caption { position: absolute; inset-inline-start: 16px; inset-block-end: 13px; max-width: 58%; font-weight: 700; overflow-wrap: anywhere; }
.home-slide::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #111225f2, #111225b8 34%, #1511242a 66%, transparent); }
[dir="rtl"] .home-slide img { transform: scaleX(-1); }
[dir="rtl"] .home-slide::after { transform: scaleX(-1); }
.home-slide-copy { display: grid; justify-items: start; gap: 6px; width: min(64%, 435px); padding: 17px 20px 27px; }
.home-slide-copy > .icon { color: var(--cyan); }
.home-slide-copy h1 { font-size: clamp(1.45rem, 4.4vw, 2.65rem); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-slide-copy p { margin: 0; max-width: 38ch; color: #e0e5f2; font-size: clamp(.83rem, 2.6vw, .96rem); line-height: 1.42; }
.home-slide-copy .btn { min-height: 35px; margin-block-start: 3px; padding: 5px 10px; }
.carousel-controls { position: absolute; display: flex; inset-inline-end: 8px; inset-block-end: 7px; padding: 1px 3px; border-radius: 11px; background: #0a0d17cb; }
.carousel-dot { display: grid; place-items: center; width: 29px; height: 31px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; padding: 3px; }
.carousel-dot > span { width: 6px; height: 6px; border-radius: 5px; background: #9ba2b9; }
.carousel-dot[aria-pressed="true"] > span { width: 16px; background: var(--cyan); }
.carousel-dot:hover { background: #30384d; }

.front-panel, .wallet-tile { padding: clamp(12px, 3vw, 19px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.wallet-tile {
  display: grid; gap: 10px;
  background: linear-gradient(124deg, #122b32, #1a1b2b 47%, #30132b) padding-box,
    linear-gradient(110deg, #0e9d9b, #384053 48%, #a13d71) border-box;
  border-color: transparent;
}
.wallet-top { display: flex; justify-content: space-between; align-items: center; gap: 6px 9px; flex-wrap: wrap; color: #dbe1ee; }
.wallet-top > span, .money-metric > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wallet-top .icon, .money-metric .icon { color: var(--cyan); }
.wallet-top a { border: 1px solid #a0a8c349; border-radius: 10px; padding: 5px 9px; background: #ffffff0b; }
.wallet-tile a, .section-head a { color: #b4fcff; font-size: .86rem; }
.wallet-tile a:hover, .section-head a:hover { text-decoration: underline; }
.wallet-amount { justify-self: start; font-size: clamp(1.74rem, 6vw, 3rem); letter-spacing: -.055em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.wallet-earnings, .grab-metrics, .profile-total-assets { display: flex; align-items: baseline; gap: 0.5rem; margin-block: .15rem .7rem; font-size: .85rem; }
.profile-funds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wallet-earnings { border-top: 1px solid #ebedf638; padding-top: 10px; }
.money-metric { display: grid; gap: 4px; min-width: 0; }
.money-metric > span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.money-metric > strong { justify-self: start; font-size: clamp(1.28rem, 4vw, 1.93rem); letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.money-metric > small { color: var(--muted); font-size: .76rem; }
.wallet-earnings > .money-metric + .money-metric { border-inline-start: 1px solid #c3c9e134; padding-inline-start: 13px; }
.wallet-earnings .money-metric:nth-child(2) .icon { color: #f784ba; }

.claim-cta, .dispatch-control .primary {
  display: grid; gap: 2px; place-items: center; padding: 11px 13px; border: 1px solid #d7ffff80; border-radius: 999px;
  background: var(--claim-gradient); color: #11121a; box-shadow: -8px 0 22px #08e3e52d, 8px 0 23px #ff258a39;
  text-align: center;
}
.claim-cta strong, .section-head h2, .record-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.claim-cta strong { font-size: clamp(1.17rem, 4vw, 1.5rem); }
.claim-cta > span { font-size: .85rem; font-weight: 700; }
.claim-cta:hover, .dispatch-control .primary:not(:disabled):hover { filter: brightness(1.12); }
.home-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.shortcut { display: grid; justify-items: center; align-content: center; min-width: 0; gap: 5px; padding: 3px; border: 0; background: transparent; color: var(--ink); text-align: center; font-size: .85rem; font-weight: 650; overflow-wrap: anywhere; }
.shortcut:hover { color: var(--cyan); }
.shortcut-icon { display: grid; place-items: center; width: 44px; height: 39px; border: 1px solid #264650; border-radius: 13px; background: #122630; color: var(--cyan); }
.shortcut:nth-child(2) .shortcut-icon { color: #ff6ba8; border-color: #4c2845; background: #281a2e; }
.shortcut:nth-child(3) .shortcut-icon { color: #ffcb70; border-color: #4e4135; background: #292334; }
.shortcut:nth-child(4) .shortcut-icon { color: #cfaaff; border-color: #48385b; background: #211b35; }
.section-head { gap: 8px 11px; flex-wrap: wrap; }
.section-head h2, .task-progress h2 { font-size: 1.07rem; line-height: 1.45; overflow-wrap: anywhere; }
.section-head h2 .icon, .record-id .icon, .task-progress h2 .icon { color: var(--cyan); }
.empty-strip { margin: 0; padding: 10px 11px; border: 1px solid #313b4c; border-radius: 12px; color: var(--muted); background: #0e121b; font-size: .88rem; line-height: 1.55; }
.claim-example-label { padding: 4px 8px; border: 1px solid #56617a; border-radius: 7px; color: #e8edf9; font-size: .81rem; }
.claim-feed-window { overflow: hidden; border: 1px solid #313b4c; border-radius: 12px; background: #0e121b; }
.claim-feed-list { margin: 0; padding: 0; list-style: none; }
.claim-feed-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; }
.claim-feed-list li + li { border-top: 1px solid #293142; }
.claim-feed-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #a9ccd4; background: #1a2c3a; }
.claim-feed-user { min-width: 0; font-size: .87rem; overflow-wrap: anywhere; }
.claim-feed-list small { display: block; margin-top: 3px; color: var(--muted); font-size: .77rem; }
.claim-feed-commission { text-align: end; }
.claim-feed-commission strong { color: var(--cyan); font-size: .9rem; font-variant-numeric: tabular-nums; }

.grab-metrics > .money-metric { padding: clamp(11px, 3vw, 18px); border: 1px solid #25505b; border-radius: var(--radius); background: radial-gradient(ellipse at 100% 100%, #0d535e, transparent 58%), var(--panel); }
.grab-metrics > .money-metric:nth-child(2) { border-color: #4b3452; background: radial-gradient(ellipse at 100% 100%, #542347, transparent 56%), var(--panel); }
.grab-metrics > .money-metric:nth-child(2) .icon { color: #ff72ad; }
.featured-order, .grab-workspace, .grab-workspace + .claim-feed { margin-block-start: 13px; }
.hot-product-row { block-size: calc(1.55em + 22px); }
.hot-product-slide { display: grid; grid-template: 1.55em / 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.hot-product-slide[hidden] { display: none; }
.hot-product-thumb { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; overflow: hidden; background: #142830; color: var(--cyan); }
.hot-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hot-product-copy { display: grid; min-width: 0; line-height: 1; }
.hot-product-name, .hot-product-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-product-detail { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.hot-product-price { color: #ff86ba; }
.matched-order-id { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .85rem; }
.matched-order-id bdi { color: var(--ink); }
.matched-product { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #111824; }
.matched-product h3 { overflow-wrap: anywhere; }
.matched-product-image { flex: 0 0 80px; border-radius: 10px; object-fit: cover; }
.matched-product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lucky-badge { align-self: center; padding: 3px 8px; border: 1px solid #6c4b2e; border-radius: 7px; background: #39291c; color: #ffd488; font-size: .79rem; font-weight: 650; }
.match-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0; }
.match-metrics > div { padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px; background: #111824; }
.match-metrics dt { color: var(--muted); font-size: .84rem; }
.match-metrics dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.match-metrics:not(.match-funds) > div:last-child dd { color: var(--cyan); }
.match-funds { grid-template-columns: repeat(2,minmax(0,1fr)); }
.match-funds[hidden] { display: none; }
.match-dialog .lucky-congratulations { color: #ffdc93; padding: 10px; border: 1px solid #6c4b2e; border-radius: 10px; background: #302316; }
.match-dialog .dialog-body { gap: 9px; padding-block: 12px; }
.match-dialog .dialog-actions { flex-wrap: wrap; }
.match-dialog[data-action="submit-match"] .dialog-actions .btn { flex: 1; }
.task-progress { display: grid; gap: 8px; }
.task-progress-top, .task-progress h2 { display: flex; align-items: center; gap: 7px; }
.task-progress-top { justify-content: space-between; color: var(--muted); }
.task-progress h2 { color: var(--ink); }
.task-progress-top strong { white-space: nowrap; font-size: .86rem; }
.task-progress-top b { color: var(--cyan); font-size: 1.19rem; }
.task-progress progress { width: 100%; height: 7px; appearance: none; border: 0; border-radius: 6px; background: #353f52; accent-color: var(--cyan); }
.task-progress progress::-webkit-progress-bar { border-radius: 6px; background: #353f52; }
.task-progress progress::-webkit-progress-value { border-radius: 6px; background: var(--cyan); }
.dispatch-panel {
  width: 100%; max-width: none; margin-top: 13px; padding: clamp(14px, 4vw, 24px); gap: 9px;
  border-color: #26616a;
  background: radial-gradient(ellipse at 0 100%, #124453, transparent 54%), radial-gradient(ellipse at 100% 100%, #442038, transparent 47%), #10141e;
}
.dispatch-icon { background: linear-gradient(#141a27,#141a27) padding-box, linear-gradient(135deg,var(--cyan),var(--pink)) border-box; border: 2px solid transparent; border-radius: 50%; color: var(--cyan); box-shadow: 0 0 19px #08e3e529; width: 54px; height: 54px; }
.dispatch-panel p { max-width: 47ch; }
.dispatch-panel .btn { width: 100%; }
.dispatch-ready { position: relative; min-height: clamp(190px,40vw,223px); justify-content: center; }
.dispatch-ready::before, .dispatch-ready::after { content: ""; position: absolute; inset-block-start: 11px; inline-size: 17px; block-size: 17px; border-block-start: 2px solid var(--cyan); pointer-events: none; }
.dispatch-ready::before { inset-inline-start: 11px; border-inline-start: 2px solid var(--cyan); border-start-start-radius: 9px; }
.dispatch-ready::after { inset-inline-end: 11px; border-inline-end: 2px solid var(--cyan); border-start-end-radius: 9px; }
.dispatch-ready .dispatch-icon { width: 60px; height: 60px; }
.dispatch-control { margin-top: 11px; }
.dispatch-control .btn { width: 100%; min-height: 44px; }
.dispatch-control .claim-start { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 750; }
.dispatch-control .pending-order-link { width: max-content; display: flex; margin: 8px auto 0; }
.pending-order-actions { margin-top: 8px; text-align: end; }
.pending-order-actions summary { width: fit-content; margin-inline-start: auto; color: var(--muted); cursor: pointer; font-size: .84rem; }
.pending-order-actions > div { margin-top: 8px; }
.wallet-hold-note { margin-top: 8px; padding: 9px; border: 1px solid #5d492c; border-radius: 9px; color: #ffe0a3; }
.wallet-hold-note ul { margin: 4px 0 0; padding-inline-start: 18px; }
.invite-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.invite-code > div { display: grid; gap: 4px; }
.invite-code strong { font-variant-numeric: tabular-nums; }
.withdrawal-task-notice { margin-bottom: 9px; padding: 8px 10px; border-radius: 8px; color: #ffbecb !important; background: #442233; }
@media (max-width: 430px) {
  .front-tools .language select { max-inline-size: 6rem; }
}
.dispatch-panel .match-note { color: #c4fbfd; }
.match-status { display: grid; justify-items: center; gap: 12px; padding-block: 23px; }
.settlement-panel { display: grid; justify-items: center; gap: .35rem; padding: .4rem; }
.settlement-panel h2, .settlement-panel p { margin: 0; }
.settlement-panel > span:not(.settlement-check), .settlement-panel p { color: var(--muted); }
.settlement-panel strong { color: #80f4b6; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.2; }
.settlement-check { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #1b4437; color: #80f4b6; font-size: 1.5rem; font-weight: 700; }
.match-progress { width: clamp(140px,30vw,240px); height: 5px; overflow: hidden; background: #30394e; border-radius: 5px; }
.match-progress span { display: block; inline-size: 40%; height: 100%; background: linear-gradient(90deg,#2ce2d9,#bd55f4); }
@media (prefers-reduced-motion: no-preference) {
  .match-progress span {
    animation: match-sweep 1.05s ease-in-out infinite alternate;
  }
  .match-progress:dir(rtl) { --match-travel: -150%; }
  @keyframes match-sweep {
    from { transform: translateX(0); }
    to { transform: translateX(var(--match-travel, 150%)); }
  }
}
.match-spinner { inline-size: 42px; block-size: 42px; border: 3px solid #32445d; border-block-start-color: var(--cyan); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .match-spinner { animation: match-spin .8s linear infinite; }
  @keyframes match-spin { to { transform: rotate(1turn); } }
}

.page-title { margin: 0 0 13px; }
.page-title p { font-size: .93rem; }
.order-card, .empty, .meta-panel, .activity-list, .auth-card { background: var(--panel); border-color: var(--line); border-radius: var(--radius); }
.orders-grid { grid-template-columns: minmax(0, 1fr); }
.order-card { padding: 12px 14px; }
.order-card h3 { padding-block: 3px; }
.order-card-item { display: flex; gap: 12px; align-items: center; margin-block: 10px; min-width: 0; overflow-wrap: anywhere; }
.order-card-item small { color: var(--muted); }
.order-card-photo { display: grid; place-items: center; flex: none; inline-size: 64px; block-size: 64px; object-fit: cover; border-radius: 9px; background: #17323c; color: var(--cyan); }
.order-search { display: flex; gap: 8px; margin-block: 10px; }
.order-search input { flex: 1 1 auto; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); }
.rules-pending { margin-bottom: 12px; }
.rules-chapters { display: grid; gap: 12px; }
.rules-chapters h2 { font-size: 1rem; }
.rules-chapters p { margin-top: 7px; }
.order-foot > div { min-width: 0; overflow-wrap: anywhere; }
.empty { min-height: 100px; padding: 13px; }
.empty-icon { background: #123039; color: var(--cyan); }
.summary { margin-top: 19px; }
.primary, .hero-btn { background: var(--cyan); color: #06181e; }
.primary:hover, .hero-btn:hover { background: #88ffff; }
.secondary { background: #192234; border-color: #395567; color: #c7f7fb; }
.secondary:hover { background: #26384a; }
.assigned-price { background: #132932; color: #9cf9f7; }
.assigned-price strong { white-space: normal; overflow-wrap: anywhere; }
.workflow { color: var(--ink); background: #171d2a; }
.workflow > strong { color: var(--cyan); }
.tabs button { color: var(--muted); background: #151c28; min-height: 42px; border-radius: 10px; }
.tabs button[aria-pressed="true"], .tabs button:hover { color: #bafcff; background: #183239; border-color: #2a7780; }
.status-queued { background: #34364b; color: #e1e5fa; }
.status-assigned { background: #15343e; color: #9cf8ff; }
.status-active { background: #493821; color: #ffdfaa; }
.status-review { background: #333550; color: #d7daff; }
.status-revision { background: #472d3b; color: #ffc6da; }
.status-done { background: #193b34; color: #88f2cd; }
.revision-note { background: #402735; color: #ffc6da; }

.profile { color: var(--ink); min-height: 110px; background: radial-gradient(ellipse at 100% 95%, #54213e65, transparent 55%), radial-gradient(ellipse at 55% 0, #10414b, transparent 67%), #121724; border-color: #2d344b; }
.profile .brand-mark { inline-size: 61px; block-size: 61px; box-shadow: 0 0 0 3px #080b15, 0 0 0 5px #885480; }
.profile h2 { font-size: 1.37rem; }
.profile p { font-size: .9rem; }
.profile-identity-metrics { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-block-start: 8px; }
.profile-identity-metrics > div { display: grid; gap: 2px; text-align: start; }
.profile-identity-metrics span { color: var(--muted); font-size: .8rem; }
.profile-wallet { margin-bottom: 13px; }
.profile-funds .shortcut { min-height: 43px; grid-auto-flow: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 14px; background: #ff398b; color: #1b0714; }
.profile-funds .shortcut + .shortcut { border-color: var(--cyan); background: #141f2a; color: #aefeff; }
.profile-funds .shortcut .shortcut-icon { width: auto; height: auto; border: 0; background: transparent; color: inherit; }
.profile-menu { display: grid; margin-bottom: 13px; padding: 2px 11px; }
.profile-menu .shortcut { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 10px; min-height: 43px; padding: 6px 3px; text-align: start; }
.profile-menu .shortcut + .shortcut { border-top: 1px solid var(--line); }
.profile-menu .shortcut-icon { width: 33px; height: 30px; border-radius: 9px; }
.profile-menu .shortcut:nth-child(5) .shortcut-icon { color: #bda9ff; }
.profile-menu .shortcut:nth-child(6) .shortcut-icon { color: #a7efd3; }
.balance-panel strong { justify-self: start; font-size: 1.85rem; }

.nav-bar { background: #10131ded; border-top-color: #2b3546; padding-block-start: 4px; backdrop-filter: blur(14px); }
.nav-items { max-width: 620px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: end; }
.nav-items a { font-size: .76rem; min-height: 57px; gap: 6px; overflow-wrap: anywhere; padding-inline: 2px; }
.nav-items a > .icon { scale: 1.18; }
.nav-items a[aria-current], .nav-items a:hover { background: #14242e; color: #7bfbff; }
.nav-items a[href="#grab"] { align-self: start; margin-top: -16px; background: none; }
.nav-items a[href="#grab"] .icon { display: grid; place-items: center; width: 47px; height: 47px; scale: 1; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(145deg,#10252e,#2c1830) padding-box, linear-gradient(145deg,var(--cyan) 20%,var(--pink) 80%) border-box; box-shadow: 0 0 15px #ff258a35; color: #edfeff; }
.nav-items a[href="#grab"] .icon::before, .nav-items a[href="#grab"] .icon::after { background: none; transform: none; border: 2px solid; border-radius: 50%; }
.nav-items a[href="#grab"] .icon::before { inset: 10px; }
.nav-items a[href="#grab"] .icon::after { inset: 15px; box-shadow: inset 0 0 0 2px #1b1a2b, inset 0 0 0 5px currentColor; }
.nav-items [data-support-nav] .support-count { background: var(--pink); color: #121421; }

.support-page-title {
  display: flex; align-items: center; gap: 11px; min-height: 88px; padding: 12px 15px;
  border: 1px solid #37445a; border-radius: var(--radius);
  background: linear-gradient(90deg,#24142eed,#182334c4 52%,#0d28343b), url("/assets/banner-support.jpg") center 54% / cover;
}
[dir="rtl"] .support-page-title { background-position: center, 75% 54%; background-image: linear-gradient(270deg,#24142eed,#182334d6 60%,#0d283477), url("/assets/banner-support.jpg"); }
.support-page-title h1 { font-size: 1.32rem; }
.support-page-title p { color: #dfe3f1; margin-top: 2px; }
[data-surface="front"] .support-thread {
  --chat-panel: #111623;
  --chat-field: #1b2231;
  --chat-divider: #29354a;
  --chat-received: #21293a;
  --chat-sent: #78eef0;
  --chat-emphasis: #d0f6ff;
}
.front-support-thread .support-scroll { height: clamp(180px, 44dvh, 565px); }
.front-support-thread .support-load-state { margin: 16px auto 0; max-width: 34ch; text-align: center; }
.front-support-thread .support-agent-avatar, .support-page-title .support-agent-avatar { background: #391b35; border: 1px solid #db55a1; color: #ffcef0; }
.front-support-thread .support-message.mine { color: #07191c; }
.front-support-thread .support-message.mine :is(strong, time) { color: #154d55; }
.support-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 9px; }
.support-topics button, .support-attachment button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; color: #e9eef9; background: #1b2332; border: 1px solid #323f53; border-radius: 999px; padding: 5px 8px; font-size: .8rem; font-weight: 650; }
.support-topics button .icon, .support-attachment .icon { color: var(--cyan); }
.support-topics button:nth-child(2) .icon { color: #ffce76; }
.support-topics button:nth-child(3) .icon { color: #ff7db5; }
.support-topics button:hover { border-color: var(--cyan); }
.front-support-thread .support-compose { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center; padding-inline: 10px; }
.front-support-thread .support-compose label > span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.front-support-thread .support-compose textarea { resize: vertical; height: 45px; min-height: 45px; max-height: 145px; border-radius: 15px; font-size: 1rem; }
.front-support-thread .support-compose .primary { border-radius: 12px; }

.icon-trend::before { inset: 1px 0 2px; background: currentColor; clip-path: polygon(0 78%,34% 47%,53% 62%,84% 21%,66% 21%,66% 12%,100% 12%,100% 46%,91% 46%,91% 27%,55% 76%,34% 60%,6% 88%); }
.icon-calendar::before { inset: 2px 1px 1px; border: 1.5px solid; border-radius: 3px; }
.icon-calendar::after { inset: 6px 2px auto; border-top: 1.5px solid; }
.icon-upload::before { inset: 6px 1px 1px; border: 1.5px solid; border-top: 0; border-radius: 3px; }
.icon-upload::after { inset: 1px 4px 4px; background: currentColor; clip-path: polygon(50% 0,100% 39%,85% 53%,58% 31%,58% 100%,42% 100%,42% 31%,15% 53%,0 39%); }
.icon-lock::before { inset: 7px 2px 1px; border: 1.5px solid; border-radius: 2px; }
.icon-lock::after { inset: 1px 4px auto; height: 8px; border: 1.5px solid; border-bottom: 0; border-radius: 8px 8px 0 0; }
.invite-heading { display: flex; align-items: center; gap: .8rem; }
.invite-heading h1 { margin: 0; }
.invite-rewards { display: grid; gap: .9rem; justify-items: stretch; text-align: center; }
.invite-rewards h2, .invite-rewards p { margin: 0; }
.invite-gift { display: grid; place-items: center; margin: auto; width: 55px; height: 55px; border-radius: 15px; color: #fc84bc; background: #fc84bc20; }
.invite-gift .icon { width: 24px; height: 24px; }
.icon-gift::before { inset: 7px 1px 2px; border: 1.5px solid; border-radius: 3px; }
.icon-gift::after { inset: 2px 4px 9px; border: 1.5px solid; border-bottom: 0; border-radius: 55% 55% 0 0; }
.invite-totals { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.invite-totals > div { display: grid; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.invite-totals strong { font-size: 1.25rem; }
.invite-rules h2 { border-inline-start: 3px solid var(--cyan); padding-inline-start: .55rem; }
.invite-rules ol { display: grid; gap: 1rem; padding: 0; list-style: none; }
.invite-rules li { display: flex; gap: .8rem; align-items: flex-start; }
.invite-step-number { flex: none; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--line); font-size: .85rem; font-weight: 700; }
.invite-rules li p { color: var(--muted); margin: .3rem 0 0; }
.referral-history { margin-block-start: 1rem; }
.icon-group::before { width: 6px; height: 6px; left: 2px; border: 1.5px solid; border-radius: 50%; box-shadow: 7px 2px 0 -1px currentColor; }
.icon-group::after { inset: 8px 0 1px; border: 1.5px solid; border-radius: 8px 8px 3px 3px; }
.icon-signal::before { inset: 1px 0; background: currentColor; clip-path: polygon(0 100%,0 64%,22% 64%,22% 100%,37% 100%,37% 40%,59% 40%,59% 100%,76% 100%,76% 5%,98% 5%,98% 100%); }
.wallet-top .icon-wallet::after, .shortcut .icon-wallet::after, .money-metric .icon-wallet::after { background: #142732; }

.access-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(305px, 415px); gap: 16px; max-width: 740px; margin: 9px auto; align-items: stretch; }
.access-art { position: relative; min-height: 340px; display: grid; place-items: center; overflow: hidden; isolation: isolate; border: 1px solid #4f4869; border-radius: 24px; background: radial-gradient(ellipse at 28% 23%,#462540,transparent 78%),linear-gradient(155deg,#1e1634,#164046); }
.access-art .brand-mark { inline-size: 91px; block-size: 91px; border-radius: 3px; z-index: 1; box-shadow: 0 18px 42px #13112187; }
.access-orbit { position: absolute; inline-size: 45%; aspect-ratio: 1; border-radius: 32%; border: 1px solid #d8ccff50; rotate: -15deg; }
.access-orbit:nth-of-type(2) { scale: 1.33; rotate: -27deg; }
.access-orbit:nth-of-type(3) { scale: 1.66; rotate: -39deg; border-color: #b4f3db54; }
.auth-card { width: 100%; padding: 22px; margin: 0; box-shadow: 0 18px 45px #090b1466; }
.auth-title { text-align: start; }
.auth-title h1 { font-size: 1.66rem; }
.auth-tabs { background: #222539; }
.auth-tabs a[aria-current] { color: #c8fdff; background: #22454c; box-shadow: none; }
.fields input, .fields textarea, .fields select { color: var(--ink); background: #121927; border-color: #3b4862; }
.auth-fields .phone-fields { grid-template-columns: minmax(97px, 1fr) minmax(0, 2.25fr); }
.phone-fields :is(input, select) { min-height: 43px; }
.wallet-profile-balances.has-referrals { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:center; }
.wallet-home-balances { flex-wrap:wrap; }
.wallet-referral-metric { min-width:0; }
.wallet-referral-metric small { display:block; }
.wallet-referral-link { margin-bottom:12px; }
@media (max-width:430px) {
  .wallet-home-balances .wallet-referral-metric { min-width:0; }
  .wallet-profile-balances.has-referrals { gap:8px; }
  .wallet-profile-balances.has-referrals .wallet-amount { font-size:clamp(1.25rem,7vw,2rem); }
}
.auth-hint { margin-top: 0; }
.dialog-body p.error, .auth-fields .error { color: #ffb7c4; }
dialog { color: var(--ink); background: var(--surface); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: #080a14bc; }
.close { color: var(--ink); background: #292438; }
@media (max-width: 580px) {
  .access-layout { max-width: 440px; grid-template-columns: minmax(0,1fr); margin: 4px auto; }
  .access-art { display: none; }
  .auth-card { padding: 18px; }
  .front-brand { font-size: 1.24rem; }
  .wallet-top a { font-size: .82rem; }
}
@media (max-width: 370px) {
  .wrap { padding-inline: max(11px, env(safe-area-inset-left)) max(11px, env(safe-area-inset-right)); }
  .front-tools { gap: 4px; }
  .language select { max-inline-size: 7rem; }
  .home-slide-copy { width: 71%; padding-inline: 13px; }
  .home-shortcuts { gap: 2px; }
  .nav-items a, .support-topics button { font-size: .74rem; }
  .front-support-thread .support-compose .primary { padding-inline: 7px; }
}
@media (min-width: 580px) {
  [data-current-page="orders"] .orders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Customer order management */
.commerce-orders, .commerce-addresses { display: grid; gap: 12px; margin-block-start: 14px; }
.commerce-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #2a3548; border-radius: 16px; background: #151925; min-width: 0; }
.commerce-card p { margin: 0; overflow-wrap: anywhere; }
.commerce-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.commerce-heading h1 { margin: 0; }
.commerce-heading small, .commerce-product small, .commerce-fulfillment dt { color: #a6b2c5; }
.commerce-product { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding-block: 7px; }
.commerce-product h3 { margin: 0; overflow-wrap: anywhere; }
.commerce-product small { display: block; margin-block-start: 3px; }
.commerce-tabs { flex-wrap: wrap; justify-content: flex-start; }
.commerce-tabs button[aria-pressed="true"], .commerce-status { background: #4d3028; color: #ffc2a6; }
.commerce-status { display: inline-block; border-radius: 8px; padding: 4px 8px; font-size: .8rem; font-weight: 700; }
.order-scope-badge { justify-self: start; }
.commerce-fulfillment { padding: 12px; border-radius: 12px; background: #10141e; overflow-wrap: anywhere; }
.commerce-fulfillment dl { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 8px; }
.commerce-fulfillment dd { margin: 0; }
.commerce-fulfillment p { margin: 8px 0 0; }
.commerce-review img { inline-size: min(140px,100%); max-block-size: 150px; object-fit: contain; border-radius: 6px; margin-block-start: 8px; }
.commerce-form select { min-height: 42px; }
@media (max-width: 470px) {
  .commerce-card { padding: 11px; }
  .commerce-tabs button { padding-inline: 9px; }
  .commerce-product { grid-template-columns: auto minmax(0,1fr); }
  .commerce-product > strong { grid-column: 2; }
  .commerce-card footer .row-actions { flex-wrap: wrap; }
}
