/* ArtisanNest user pages: original DOM and actions stay in control.
   All wood, foil and foliage effects here are CSS/SVG, never page screenshots. */

#s-home,
#s-reg,
#s-reset,
body.an-privacy-page {
  --an-emerald-950: #06170d;
  --an-emerald-900: #092313;
  --an-emerald-800: #10391b;
  --an-emerald-700: #174a21;
  --an-leaf: #7bc943;
  --an-leaf-bright: #9be15b;
  --an-cream: #fff3d4;
  --an-cream-muted: #e6d6b2;
  --an-gold: #e5bc63;
  --an-gold-light: #f5d992;
  --an-wood-dark: #311709;
  --an-wood-mid: #75401d;
  --an-wood-light: #a6662d;
  --an-wood-grain:
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(255, 226, 170, .10) 9px, transparent 11px 18px),
    repeating-linear-gradient(2deg, transparent 0 18px, rgba(31, 11, 4, .27) 19px, transparent 22px 34px);
  --an-wood:
    linear-gradient(176deg, rgba(255, 220, 148, .24), transparent 21%, transparent 78%, rgba(25, 9, 3, .40)),
    var(--an-wood-grain),
    linear-gradient(106deg, #452011 0%, #8c4e25 22%, #603016 46%, #a5622d 70%, #462011 100%);
  --an-wood-edge:
    inset 0 2px 2px rgba(255, 238, 189, .7),
    inset 0 -4px 6px rgba(26, 9, 3, .56),
    0 5px 13px rgba(0, 0, 0, .34);
  --an-logo-lockup: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1");
  --an-brand-mark: var(--an-logo-lockup);
}

/* HOME — preserve the live feed, wallet values, module order, and all handlers. */
#s-home.screen {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% -9%, rgba(91, 147, 51, .34), transparent 46%),
    radial-gradient(ellipse at 6% 62%, rgba(83, 131, 41, .14), transparent 30%),
    radial-gradient(ellipse at 96% 75%, rgba(81, 131, 40, .14), transparent 31%),
    linear-gradient(180deg, #0a2711 0%, #06190d 62%, #092212 100%) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-home.screen *,
#s-home.screen *::before,
#s-home.screen *::after {
  box-sizing: border-box;
}

#s-home .announce {
  color: #f9e7b9 !important;
  background:
    linear-gradient(90deg, rgba(11, 39, 16, .96), rgba(28, 76, 24, .9), rgba(11, 39, 16, .96)) !important;
  border-bottom: 1px solid rgba(229, 188, 99, .42);
}

#s-home .hdr {
  position: relative;
  z-index: 3;
  min-height: 72px;
  padding: 9px 13px !important;
  border-bottom: 1px solid rgba(235, 197, 112, .74);
  background:
    radial-gradient(ellipse at 50% 0, rgba(101, 148, 52, .24), transparent 65%),
    linear-gradient(180deg, #0b2f13, #06190c) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}

#s-home .hdr-brand-wrap {
  min-width: 0;
}

#s-home .hdr-brand-wrap::before {
  display: block;
  width: 25px;
  height: 24px;
  margin-bottom: 1px;
  background: var(--an-brand-mark) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .48));
}

#s-home .hdr-brand-title {
  color: var(--an-cream) !important;
  font-size: clamp(15px, 4.6vw, 19px) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: -.35px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .6);
}

#s-home .hdr-brand-title .artisan { color: #fff2d1 !important; }
#s-home .hdr-brand-title .nest { color: var(--an-leaf-bright) !important; }

#s-home .back-btn,
#s-home .hdr-btn {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(246, 211, 133, .72) !important;
  border-radius: 15px !important;
  color: var(--an-cream) !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .hdr-btn:focus-visible,
#s-home .back-btn:focus-visible,
#s-home .btn-row button:focus-visible,
#s-home .bni:focus-visible,
#s-home .widget:focus-visible,
#s-home .an-home-access-card:focus-visible {
  outline: 3px solid var(--an-gold-light) !important;
  outline-offset: 3px;
}

#s-home .badge {
  border: 1px solid rgba(255, 233, 173, .9);
  color: #fff6e4 !important;
  background: #d73b27 !important;
}

#s-home .currency-switch {
  min-height: 47px;
  border: 1.5px solid var(--an-gold) !important;
  border-radius: 23px !important;
  color: #fff0cc !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .currency-rate {
  color: #fff0cc !important;
}

#s-home #home-ticker-strip {
  border-top: 1px solid rgba(242, 205, 120, .35);
  border-bottom: 1px solid rgba(242, 205, 120, .35);
  color: #f4dcaa;
  background: rgba(5, 23, 11, .86);
}

#s-home #home-scroll {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1120px;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin-inline: auto !important;
  padding: 13px 12px 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 188, 99, .55) rgba(7, 28, 13, .55);
  background:
    radial-gradient(ellipse at 15% 16%, rgba(120, 168, 61, .10), transparent 34%),
    radial-gradient(ellipse at 91% 44%, rgba(120, 168, 61, .09), transparent 33%);
}

#s-home .home-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 13px !important;
  border: 1px solid rgba(229, 188, 99, .88) !important;
  border-radius: 23px !important;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 86% 8%, rgba(97, 152, 48, .20), transparent 40%),
    linear-gradient(135deg, rgba(18, 66, 27, .98), rgba(5, 28, 13, .98)) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 229, 155, .12), 0 7px 18px rgba(0, 0, 0, .28) !important;
}

#s-home .bal-card {
  border: 1px solid rgba(231, 192, 111, .78) !important;
  border-radius: 19px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(150deg, rgba(35, 94, 37, .98), rgba(7, 37, 17, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 237, 190, .24), 0 5px 12px rgba(0, 0, 0, .25) !important;
}

#s-home .bal-label,
#s-home .bal-card .bal-label {
  color: #f6deab !important;
}

#s-home .bal-row {
  border-color: rgba(244, 214, 151, .22) !important;
}

#s-home .bal-card button,
#s-home .home-top .btn-row button,
#s-home .dw-btn,
#s-home .btn-gw,
#s-home .w-btn {
  min-height: 43px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(247, 213, 136, .82) !important;
  border-radius: 17px !important;
  color: #fff2d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700;
}

#s-home .home-top .btn-row button:active,
#s-home .dw-btn:active,
#s-home .btn-gw:active,
#s-home .w-btn:active {
  transform: translateY(1px);
}

#s-home .home-top .btn-row button {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
}

#s-home .home-top .btn-row button::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  content: "";
  pointer-events: none;
}

#s-home .home-top > button {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(247, 213, 136, .86) !important;
  border-radius: 18px !important;
  color: #fff2d0 !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .home-top > button::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  content: "";
  pointer-events: none;
}

#s-home .dev-widget,
#s-home #ci-home-card,
#s-home #home-gw-card,
#s-home .an-home-access-card,
#s-home .widget,
#s-home #home-news,
#s-home #home-news-video-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 197, 113, .82) !important;
  border-radius: 20px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(27, 78, 29, .97), rgba(7, 31, 14, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 237, 188, .18), 0 6px 15px rgba(0, 0, 0, .3) !important;
}

#s-home .dev-widget::before,
#s-home #ci-home-card::before,
#s-home #home-gw-card::before,
#s-home .an-home-access-card::before,
#s-home .widget::before,
#s-home #home-news::before,
#s-home #home-news-video-wrap::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 221, 148, .22);
  border-radius: 15px;
  content: "";
  pointer-events: none;
}

#s-home .dev-widget,
#s-home #ci-home-card,
#s-home #home-gw-card,
#s-home .widget,
#s-home .an-home-access-card {
  padding: 13px !important;
}

#s-home .dw-title,
#s-home .gw-title,
#s-home .an-home-access-title,
#s-home .widget h2,
#s-home .widget h3 {
  color: #fff0ca !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
}

#s-home .dw-amt,
#s-home #home-gw-bal,
#s-home .gw-bal,
#s-home #h-pend,
#s-home #h-usdt,
#s-home #h-inr {
  color: #f7d85f !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .38);
}

#s-home .dw-sub,
#s-home .gw-sub,
#s-home .an-home-access-subtitle {
  color: var(--an-cream-muted) !important;
}

#s-home .w-title {
  color: #fff1cc !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
}

#s-home .w-sub,
#s-home .w-meta {
  color: var(--an-cream-muted) !important;
}

#s-home .w-badge {
  border: 1px solid rgba(247, 215, 139, .66);
  color: #fff0c8 !important;
  background: rgba(24, 76, 28, .92) !important;
}

#s-home .an-home-access-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px !important;
  margin-block: 12px !important;
}

#s-home .an-home-access-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#s-home .widget {
  min-height: 142px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#s-home .widget:active,
#s-home .an-home-access-card:active {
  transform: translateY(1px);
  border-color: var(--an-gold-light) !important;
}

#s-home .sec {
  display: flex !important;
  margin-block: 13px !important;
}

#s-home .sec > h2,
#s-home .sec > h3,
#s-home .sec-title {
  color: var(--an-leaf-bright) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-home .home-gw-card,
#s-home .gw-card {
  border-color: rgba(235, 196, 110, .85) !important;
}

#s-home .news-video-wrap,
#s-home .news-video-wrap video,
#s-home #home-news-vid {
  width: 100%;
  max-width: 100%;
  border-radius: 15px;
}

#s-home .news-video-ctrl {
  border: 1px solid rgba(245, 210, 134, .65);
  border-radius: 50%;
  color: var(--an-cream);
  background: rgba(5, 24, 11, .82);
}

#s-home .bnav {
  position: relative !important;
  z-index: 30 !important;
  display: flex !important;
  width: 100% !important;
  max-width: 1120px;
  min-height: 70px;
  margin-inline: auto !important;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  border: 1px solid rgba(246, 211, 127, .9) !important;
  border-bottom: 0 !important;
  border-radius: 21px 21px 0 0 !important;
  background: var(--an-wood) !important;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, .38), inset 0 2px rgba(255, 239, 197, .4) !important;
  backdrop-filter: blur(10px);
}

#s-home #bnav-bar {
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0;
  height: 2px !important;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #f8de91, #9ddc54, #f8de91) !important;
  box-shadow: 0 0 12px rgba(191, 230, 113, .65);
  transition: left .2s ease, width .2s ease;
  pointer-events: none;
}

#s-home .bni {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex: 1 1 0 !important;
  min-width: 0;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-inline-end: 1px solid rgba(255, 223, 157, .2);
  border-radius: 12px;
  color: rgba(255, 242, 212, .82) !important;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
}

#s-home .bni:last-child { border-inline-end: 0; }
#s-home .bni.active {
  color: #fff1c4 !important;
  background: rgba(13, 58, 21, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(249, 218, 146, .35), 0 0 12px rgba(186, 228, 94, .18);
}
#s-home .bni .ic { font-size: 21px !important; line-height: 1.05; }

@media (max-width: 359px) {
  #s-home #home-scroll { padding-inline: 8px !important; }
  #s-home .an-home-access-grid { grid-template-columns: 1fr; }
  #s-home .bni { font-size: 10.5px !important; }
  #s-home .bnav { min-height: 65px; padding-inline: 4px !important; }
}

@media (min-width: 620px) {
  #s-home #home-scroll {
    padding: 18px 20px 22px !important;
  }
  #s-home #ci-home-card,
  #s-home #dev-widget-wrap,
  #s-home #home-gw-card {
    width: 100%;
  }
  #s-home .an-home-access-grid { gap: 14px !important; }
  #s-home .widget { min-height: 160px; }
}

@media (min-width: 900px) {
  body:has(#s-home.active) .app {
    width: min(100%, 1280px) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
  }

  #s-home.screen {
    right: 0 !important;
    left: 0 !important;
    width: min(100vw, 1280px) !important;
    max-width: 1280px !important;
    transform: none !important;
  }

  #s-home #home-scroll {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: start;
    align-items: stretch;
    gap: 14px;
    padding: 20px 24px 24px !important;
  }

  #s-home #home-scroll > .home-top,
  #s-home #home-scroll > button,
  #s-home #home-scroll > .an-home-access-grid,
  #s-home #home-scroll > .sec,
  #s-home #home-scroll > #home-news,
  #s-home #home-scroll > #home-news-video-wrap {
    grid-column: 1 / -1;
    min-width: 0;
  }

  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap,
  #s-home #home-scroll > #home-gw-card {
    grid-column: span 6;
    align-self: stretch;
  }

  #s-home #home-scroll > .widget {
    grid-column: span 3;
    width: auto !important;
    min-width: 0 !important;
    min-height: 190px;
    margin: 0 !important;
  }

  #s-home #home-scroll > .widget .w-img {
    height: 190px !important;
  }

  #s-home #home-scroll > .widget .w-body {
    padding: 12px 12px 13px !important;
  }

  #s-home #home-scroll > .widget .w-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
  }

  #s-home #home-scroll > .sec .widget {
    min-height: 175px;
  }

  #s-home .bnav { border-radius: 22px 22px 0 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  #s-home .widget,
  #s-home .an-home-access-card,
  #s-home .bal-card button,
  #s-home .home-top .btn-row button {
    transition: none !important;
    animation: none !important;
  }
}

/* RESET SUPPORT — a dedicated screen with one external contact action. */
#s-reset.screen {
  position: fixed !important;
  z-index: 1000 !important;
  inset: 0 !important;
  display: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(95, 150, 50, .35), transparent 42%),
    linear-gradient(145deg, #092512 0%, #06170d 54%, #103319 100%) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-reset.screen.active { display: flex !important; }

#s-reset .an-reset-shell {
  position: relative;
  display: flex;
  width: min(100%, 640px);
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
}

#s-reset .an-reset-back {
  display: inline-flex;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(241, 205, 127, .78);
  border-radius: 18px;
  color: var(--an-cream);
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  font: 700 15px Georgia, "Times New Roman", serif;
  cursor: pointer;
}

#s-reset .an-reset-brand {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin: clamp(44px, 15vh, 116px) 0 29px;
  text-align: center;
}

#s-reset .an-reset-leaf {
  width: 64px;
  height: 64px;
  color: var(--an-leaf-bright);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .45));
}

#s-reset .an-reset-wordmark {
  color: #fff2d2;
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
  text-shadow: 0 2px 0 #15260d, 0 5px 15px rgba(0, 0, 0, .6);
}

#s-reset .an-reset-wordmark span { color: var(--an-leaf-bright); }
#s-reset .an-reset-wordmark .brand-artisan { color: #fff2d2; }

#s-reset .an-reset-subbrand {
  margin: 8px 0 0;
  color: #f1d9a4;
  font-size: 17px;
  font-weight: 600;
}

#s-reset .an-reset-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 13px;
  padding: clamp(20px, 6vw, 32px);
  border: 1.5px solid var(--an-gold);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 226, 151, .1), transparent 22%),
    linear-gradient(145deg, #143d1c, #081c0f);
  box-shadow: inset 0 0 0 4px rgba(255, 231, 167, .055), 0 12px 28px rgba(0, 0, 0, .34);
  text-align: center;
}

#s-reset .an-reset-card::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid rgba(244, 213, 143, .22);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

#s-reset .an-reset-title {
  margin: 0;
  color: #fff2d0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.15;
}

#s-reset .an-reset-copy {
  margin: 0;
  color: var(--an-cream-muted);
  font-size: 16px;
  line-height: 1.5;
}

#s-reset .an-reset-status {
  min-height: 22px;
  margin: 0;
  color: #e9d5a5;
  font-size: 14px;
  line-height: 1.45;
}

#s-reset .an-reset-contact {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 2px solid #e7c46b;
  border-radius: 23px;
  color: #fff0c4 !important;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge), 0 0 0 1px rgba(255, 226, 140, .22);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 700;
  text-decoration: none !important;
  text-shadow: 0 2px 2px rgba(34, 14, 4, .8);
  transition: filter .15s ease, transform .15s ease;
}

#s-reset .an-reset-contact svg { width: 27px; height: 27px; flex: 0 0 auto; }
#s-reset .an-reset-contact:hover { filter: brightness(1.08); }
#s-reset .an-reset-contact:active { transform: translateY(1px); }
#s-reset .an-reset-contact:focus-visible,
#s-reset .an-reset-back:focus-visible {
  outline: 3px solid #fff0a8;
  outline-offset: 3px;
}

#s-reset .an-reset-contact[aria-disabled="true"] {
  border-color: rgba(230, 202, 139, .45);
  color: rgba(255, 241, 210, .62) !important;
  filter: saturate(.45);
  cursor: not-allowed;
}

@media (min-width: 760px) {
  #s-reset .an-reset-shell { padding-inline: 28px; }
  #s-reset .an-reset-brand { margin-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  #s-reset .an-reset-contact { transition: none; }
}

/* PRIVACY — keep every policy paragraph; restyle only its existing wrappers. */
body.an-privacy-page {
  min-height: 100dvh;
  color: #fff0d0 !important;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(87, 141, 46, .26), transparent 45%),
    radial-gradient(ellipse at 4% 32%, rgba(91, 137, 47, .1), transparent 30%),
    linear-gradient(180deg, #0a2912, #06170c 68%, #092311) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body.an-privacy-page .header {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 48px) 17px 28px !important;
  border-bottom: 2px solid rgba(227, 193, 105, .88) !important;
  color: #fff1d1 !important;
  background:
    linear-gradient(145deg, rgba(15, 52, 22, .94), rgba(5, 25, 12, .96)) padding-box,
    var(--an-wood) border-box !important;
  border: 7px solid transparent !important;
  box-shadow: 0 7px 21px rgba(0, 0, 0, .34);
}

body.an-privacy-page .an-privacy-slideshow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1000px);
  height: clamp(160px, 28vh, 250px);
  margin: 0 auto 18px;
  border: 6px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(145deg, #092713, #061a0d) padding-box,
    var(--an-wood) border-box;
  box-shadow: var(--an-wood-edge);
}

body.an-privacy-page .an-privacy-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center 60%;
  background-size: cover;
  filter: brightness(1.24) saturate(1.12) contrast(1.04);
  animation: anPrivacyCraftFade 24s ease-in-out infinite both;
}

body.an-privacy-page .an-privacy-slide-1 { animation-delay: 0s; }
body.an-privacy-page .an-privacy-slide-2 { animation-delay: 6s; }
body.an-privacy-page .an-privacy-slide-3 { animation-delay: 12s; }
body.an-privacy-page .an-privacy-slide-4 { animation-delay: 18s; }

@keyframes anPrivacyCraftFade {
  0%, 100% { opacity: 0; }
  4%, 25% { opacity: 1; }
  29% { opacity: 0; }
}

body.an-privacy-page .an-privacy-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 7, .02), rgba(3, 15, 7, .06) 42%, rgba(3, 15, 7, .46));
  pointer-events: none;
}

body.an-privacy-page .an-privacy-caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 27px;
  left: 16px;
  color: #fff0ca;
  font-size: clamp(17px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .92);
  pointer-events: none;
}

body.an-privacy-page .an-privacy-caption::before {
  content: "Handcrafted traditions from around the world";
}

body.an-privacy-page .an-privacy-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}

body.an-privacy-page .an-privacy-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 239, 199, .85);
  border-radius: 50%;
  background: rgba(255, 239, 199, .42);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

@media (prefers-reduced-motion: reduce) {
  body.an-privacy-page .an-privacy-slide { animation: none; }
  body.an-privacy-page .an-privacy-slide-1 { opacity: 1; }
}

body.an-privacy-page .header::after {
  position: absolute;
  right: 8%;
  bottom: 5px;
  left: 8%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--an-leaf), transparent);
  content: "";
  opacity: .65;
}

body.an-privacy-page .header h1 {
  color: #fff0c8 !important;
  font-size: clamp(27px, 6vw, 40px) !important;
  font-weight: 700;
  letter-spacing: -.5px !important;
  text-shadow: 0 2px 0 #13240d, 0 5px 15px rgba(0, 0, 0, .6);
}

body.an-privacy-page .header h1::first-letter { color: #e4c368; }

body.an-privacy-page .header p {
  margin-top: 9px !important;
  color: #e8d6ad !important;
  font-size: 15px !important;
}

body.an-privacy-page .container {
  width: min(100%, 980px);
  margin: 0 auto !important;
  padding: clamp(17px, 4vw, 30px) clamp(13px, 4vw, 24px) 34px !important;
}

body.an-privacy-page .section {
  position: relative;
  overflow: hidden;
  margin: 0 0 17px !important;
  padding: clamp(18px, 4vw, 27px) !important;
  border: 6px solid transparent !important;
  border-radius: 22px !important;
  color: #f8ebd0 !important;
  background:
    linear-gradient(145deg, rgba(21, 64, 28, .96), rgba(7, 28, 14, .97)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 4px rgba(255, 225, 152, .04), 0 7px 17px rgba(0, 0, 0, .24) !important;
}

body.an-privacy-page .section h2,
body.an-privacy-page .section h3 {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(229, 188, 99, .35);
  color: #a5e274 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body.an-privacy-page .section p,
body.an-privacy-page .section li {
  color: #f4ead5 !important;
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.72;
}

body.an-privacy-page .highlight {
  margin-top: 15px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(224, 189, 104, .28);
  border-left: 3px solid var(--an-leaf) !important;
  border-radius: 0 13px 13px 0 !important;
  color: #f2e3bd !important;
  background: rgba(45, 91, 35, .31) !important;
}

body.an-privacy-page a {
  color: #a8e778 !important;
  text-underline-offset: 3px;
}

body.an-privacy-page a:focus-visible {
  outline: 2px solid var(--an-gold-light);
  outline-offset: 3px;
  border-radius: 3px;
}

body.an-privacy-page .footer {
  padding: 18px 10px max(22px, env(safe-area-inset-bottom, 0px));
  color: #d5c29b !important;
  text-align: center;
}

@media (min-width: 760px) {
  body.an-privacy-page .container { padding-top: 32px !important; }
  body.an-privacy-page .section { margin-bottom: 21px !important; }
}

/* Match the reference Home composition instead of merely recoloring old cards. */
#s-home .hdr {
  display: grid !important;
  grid-template-columns: 42px minmax(150px, 1fr) 34px auto !important;
  grid-template-areas: "back brand flag actions";
  align-items: center;
  gap: 8px;
  min-height: 166px !important;
  padding: 9px 12px 10px !important;
  border-bottom: 1px solid rgba(234, 196, 114, .8);
  background:
    radial-gradient(ellipse at 50% 0, rgba(118, 168, 59, .27), transparent 62%),
    linear-gradient(180deg, #103b19, #06190c) !important;
}

#s-home .hdr .back-btn { grid-area: back; }

#s-home .hdr-brand-wrap {
  display: flex !important;
  grid-area: brand;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

#s-home .hdr-brand-wrap::before {
  display: block;
  width: min(100%, 190px);
  height: 99px;
  margin: 0;
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}

#s-home .hdr-brand-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap !important;
}

#s-home .hdr-brand-wrap .currency-switch {
  min-height: 31px !important;
  padding: 4px 12px !important;
  border-radius: 18px !important;
  font-size: 12px !important;
}

#s-home .hdr-brand-wrap .currency-rate {
  font-size: 10px;
  line-height: 1.2;
}

#s-home .hdr-flag { grid-area: flag; align-self: start; }

#s-home .hdr-icons {
  grid-area: actions;
  display: flex !important;
  flex-direction: column;
  gap: 7px;
}

#s-home .hdr-icons .hdr-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 15px !important;
}

#s-home #home-scroll {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  gap: 11px;
  padding: 13px 12px 20px !important;
}

#s-home #home-scroll > .home-top { display: contents !important; }

#s-home #home-scroll > .home-top > .bal-card,
#s-home #home-scroll > .home-top > #home-vslide-wrap,
#s-home #home-scroll > .home-top > .btn-row,
#s-home #home-scroll > .home-top > button,
#s-home #home-scroll > .home-top > #pwa-install-btn,
#s-home #home-scroll > button[onclick*="s-gateway-payments"],
#s-home #home-scroll > .an-home-access-grid,
#s-home #home-scroll > #home-gw-card,
#s-home #home-scroll > .sec,
#s-home #home-scroll > .widget,
#s-home #home-scroll > #home-news-video-wrap,
#s-home #home-scroll > #home-news {
  grid-column: 1 / -1;
  min-width: 0;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] { order: 2; }
#s-home #home-scroll > .home-top > #pwa-install-btn { order: 3; }
#s-home #home-scroll > #ci-home-card,
#s-home #home-scroll > #dev-widget-wrap { order: 4; }
#s-home #home-scroll > .an-home-access-grid { order: 5; }
#s-home #home-scroll > #home-gw-card { order: 6; }
#s-home #home-scroll > button[onclick*="s-gateway-payments"] { order: 7; }
#s-home #home-scroll > .home-top > .btn-row { order: 8; }
#s-home #home-scroll > .home-top > button[onclick*="openWalletHistory"] { order: 1; }
#s-home #home-scroll > .home-top > .bal-card { order: 10; }
#s-home #home-scroll > .home-top > #home-vslide-wrap { order: 11; }
#s-home #home-scroll > .sec { order: 12; }
#s-home #home-scroll > .sec:has(> a) { order: 17; }
#s-home #home-scroll > .widget { order: 13; }
#s-home #home-scroll > #home-news-video-wrap { order: 18; }
#s-home #home-scroll > #home-news { order: 19; }

#s-home #home-scroll > #ci-home-card,
#s-home #home-scroll > #dev-widget-wrap {
  grid-column: span 1;
  min-width: 0;
  margin: 0 !important;
}

#s-home #home-scroll > #dev-widget-wrap .dev-widget {
  height: 100%;
  min-height: 100%;
}

#s-home .home-top > .bal-card {
  margin: 0 !important;
  padding: 15px !important;
  border: 2px solid rgba(239, 204, 126, .9) !important;
  border-radius: 23px !important;
  background:
    linear-gradient(145deg, rgba(31, 91, 36, .97), rgba(6, 34, 16, .98)) !important;
  box-shadow:
    inset 0 0 0 4px rgba(255, 230, 160, .08),
    0 7px 18px rgba(0, 0, 0, .34) !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"],
#s-home #home-scroll > .home-top > #pwa-install-btn,
#s-home #home-scroll > button[onclick*="s-gateway-payments"],
#s-home #home-scroll > .home-top > button[onclick*="openWalletHistory"] {
  min-height: 56px !important;
  margin: 0 !important;
  padding: 12px 17px !important;
  border: 2px solid rgba(247, 214, 141, .86) !important;
  border-radius: 23px !important;
  color: #fff1c8 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge), inset 0 0 0 3px rgba(255, 228, 160, .1) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  text-align: center;
}

#s-home #home-scroll > .home-top > .btn-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin: 0 !important;
}

#s-home #home-scroll > .home-top > .btn-row button {
  min-width: 0;
  min-height: 54px !important;
  border-radius: 22px !important;
  font-size: clamp(14px, 4vw, 18px) !important;
}

#s-home #home-scroll > .an-home-access-grid {
  margin: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

#s-home .an-home-access-card {
  display: flex !important;
  isolation: isolate;
  min-height: 112px;
  padding: 0 !important;
  border-width: 2px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 9, .9), rgba(4, 19, 9, .22) 52%, rgba(4, 19, 9, .05)),
    var(--an-wood) !important;
  color: #fff0c8 !important;
  text-decoration: none !important;
}

#s-home .an-home-access-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#s-home .an-home-access-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 74px 14px 18px;
  font-size: clamp(18px, 5vw, 24px) !important;
  text-shadow: 0 2px 5px #071108;
  text-decoration: none !important;
}

#s-home .an-home-access-card::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #fff0c8;
  content: "🎮";
  font-size: 42px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65));
  pointer-events: none;
}

#s-home .an-home-access-subtitle {
  margin-top: 4px;
  font-size: 13px;
}

#s-home #ci-home-card,
#s-home #dev-widget-wrap .dev-widget {
  border: 2px solid rgba(243, 207, 126, .9) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(26, 82, 31, .98), rgba(5, 29, 13, .98)) !important;
  box-shadow:
    inset 0 0 0 4px rgba(255, 229, 155, .07),
    0 6px 16px rgba(0, 0, 0, .35) !important;
}

#s-home #ci-home-card { min-height: 148px; }
#s-home #ci-home-card > div:first-child {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 5px 8px;
  height: 100%;
  min-height: 142px;
  padding: 15px 12px !important;
}
#s-home #ci-home-ic { font-size: 33px; }
#s-home #ci-home-ic { grid-column: 1; grid-row: 1 / 3; }
#s-home #ci-home-card > div:first-child > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
#s-home #ci-home-card > div:first-child > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  text-align: left !important;
}
#s-home #ci-home-title { white-space: nowrap; font-size: 12px !important; }
#s-home #ci-home-sub {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px !important;
  line-height: 1.25;
}
#s-home #ci-home-reward { font-size: 15px !important; }
#s-home #ci-home-badge { font-size: 9px !important; }
#s-home #dev-widget-wrap .dev-widget {
  display: flex !important;
  min-height: 148px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  padding: 15px 12px !important;
}
#s-home #dev-widget-wrap .dw-ic { font-size: 27px; }
#s-home #dev-widget-wrap .dw-info { width: 100%; }
#s-home #dev-widget-wrap .dw-title { font-size: 12px !important; line-height: 1.3; }
#s-home #dev-widget-wrap .dw-amt { font-size: clamp(17px, 5vw, 23px) !important; }
#s-home #dev-widget-wrap .dw-btn { min-height: 35px !important; align-self: stretch; }

#s-home .widget {
  min-height: 158px;
  border: 2px solid rgba(242, 205, 122, .86) !important;
  border-radius: 24px !important;
  box-shadow:
    inset 0 0 0 4px rgba(255, 228, 155, .09),
    0 7px 18px rgba(0, 0, 0, .32) !important;
}

#s-home .widget .w-img { height: 158px !important; }
#s-home .widget .w-overlay {
  background: linear-gradient(90deg, rgba(3, 16, 8, .9), rgba(5, 20, 9, .52) 58%, rgba(5, 20, 9, .16)) !important;
}
#s-home .widget .w-body { padding: 14px 15px !important; }
#s-home .widget .w-title { font-size: clamp(18px, 4.8vw, 24px) !important; }
#s-home .widget .w-sub { font-size: 13px !important; }

#s-home .sec {
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 14px !important;
  border: 1px solid rgba(240, 204, 126, .76);
  border-radius: 18px;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
}
#s-home .sec h3 { margin: 0 !important; }
#s-home .bnav {
  position: sticky !important;
  bottom: 0;
  margin-top: 0 !important;
  border-radius: 22px 22px 0 0 !important;
}

/* Country chooser: retain the searchable catalog, present it as its own page. */
#s-reg #cp-overlay.cp-open {
  position: fixed !important;
  z-index: 100000 !important;
  inset: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(126, 172, 61, .22), transparent 55%),
    linear-gradient(180deg, #0b2c14, #06170c 70%, #092211) !important;
  backdrop-filter: none !important;
}

#s-reg #cp-box {
  position: relative;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  flex-direction: column;
  overflow: hidden !important;
  padding: max(7px, env(safe-area-inset-top, 0px)) 10px max(8px, env(safe-area-inset-bottom, 0px)) !important;
  border: 6px double rgba(228, 190, 104, .92) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(39, 91, 35, .35), transparent 62%),
    var(--an-wood-grain),
    linear-gradient(145deg, #12351a, #06190d 65%, #103319) !important;
  box-shadow: inset 0 0 0 4px rgba(255, 232, 167, .08) !important;
}

#s-reg #cp-box::before {
  display: block;
  flex: 0 0 auto;
  width: min(76vw, 290px);
  height: clamp(118px, 25vh, 176px);
  margin: 4px auto 0;
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .43));
}

#s-reg #cp-hdr {
  position: relative;
  display: flex !important;
  flex: 0 0 auto;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  margin: 0 0 9px;
  padding: 8px 52px !important;
  border: 1px solid rgba(239, 202, 121, .58) !important;
  border-radius: 18px !important;
  background: rgba(7, 29, 14, .76);
  color: #fff0c9 !important;
  font-size: 19px !important;
}

#s-reg #cp-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 2px solid #e5bc63 !important;
  border-radius: 15px !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
}

#s-reg #cp-swrap { flex: 0 0 auto; padding: 0 0 10px !important; }
#s-reg #cp-search {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 2px solid #e0b65e !important;
  border-radius: 19px !important;
  color: #fff0d5 !important;
  background:
    var(--an-wood-grain),
    linear-gradient(105deg, #452011, #8a4b21 32%, #623116 62%, #a6622b 82%, #462011) !important;
  box-shadow: inset 0 2px 4px rgba(255, 232, 168, .25), 0 4px 9px rgba(0, 0, 0, .3) !important;
  font: 17px Georgia, "Times New Roman", serif !important;
}

#s-reg #cp-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  padding: 2px 0 max(12px, env(safe-area-inset-bottom, 0px)) !important;
}

#s-reg .cp-item {
  min-height: 54px !important;
  margin: 0 0 7px;
  padding: 8px 12px !important;
  border: 1px solid rgba(224, 187, 101, .46) !important;
  border-radius: 16px !important;
  color: #fff0d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 16px Georgia, "Times New Roman", serif !important;
}

#s-reg .cp-item:active,
#s-reg .cp-item.cp-sel {
  border-color: #f4d47f !important;
  background:
    linear-gradient(180deg, rgba(255, 222, 151, .13), transparent 42%),
    linear-gradient(100deg, rgba(99, 55, 25, .72), rgba(24, 73, 27, .92)) !important;
}

#s-reg .cp-item .cpi-flag { font-size: 24px; }
#s-reg .cp-item .cpi-dial { color: #f2d18a !important; font-size: 14px !important; }
#s-reg #cp-nores { color: #fff0d0 !important; font: 16px Georgia, "Times New Roman", serif; }

/* Reuse the Login/Register lockup on Reset and Privacy Policy. */
#s-reset .an-reset-brand {
  margin: clamp(24px, 9vh, 70px) 0 24px !important;
}

#s-reset .an-reset-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}

body.an-privacy-page .header h1.an-privacy-brand {
  display: flex !important;
  justify-content: center;
  margin: 0 auto 10px !important;
  font-size: 0 !important;
  line-height: 0;
}

body.an-privacy-page .an-privacy-brand img {
  display: block;
  width: min(78vw, 320px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}

.an-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (min-width: 900px) {
  #s-home .hdr { grid-template-columns: 44px minmax(160px, 1fr) 42px auto !important; }
  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap { grid-column: span 6; }
  #s-home #home-scroll > .home-top > .bal-card { grid-column: 1 / -1; }
  #s-home #home-scroll > .home-top > button,
  #s-home #home-scroll > .home-top > #pwa-install-btn,
  #s-home #home-scroll > button[onclick*="s-gateway-payments"],
  #s-home #home-scroll > .home-top > .btn-row,
  #s-home #home-scroll > .home-top > #home-vslide-wrap,
  #s-home #home-scroll > .home-top > button[onclick*="openWalletHistory"],
  #s-home #home-scroll > .an-home-access-grid,
  #s-home #home-scroll > #home-gw-card,
  #s-home #home-scroll > .sec,
  #s-home #home-scroll > #home-news-video-wrap,
  #s-home #home-scroll > #home-news {
    grid-column: 1 / -1;
  }
  #s-home #home-scroll > .widget { grid-column: span 6; }
  #s-reg #cp-box { width: min(100%, 900px) !important; margin-inline: auto; }
}

@media (max-width: 370px) {
  #s-home .hdr { grid-template-columns: 36px minmax(118px, 1fr) 30px auto !important; gap: 5px; padding-inline: 8px !important; }
  #s-home .hdr-brand-wrap::before { width: min(100%, 162px); height: 84px; }
  #s-home .hdr-icons .hdr-btn { min-width: 36px; min-height: 36px; }
  #s-home #home-scroll { gap: 8px; padding-inline: 8px !important; }
  #s-home #ci-home-card > div:first-child { flex-wrap: wrap; }
  #s-reg #cp-box { padding-inline: 7px !important; }
}

/* Compact the brand and separate wallet materials without changing live controls. */
#s-home .hdr {
  min-height: 138px !important;
  padding: 6px 12px 7px !important;
}

#s-home .hdr-brand-wrap::before {
  width: min(100%, 160px) !important;
  height: 84px !important;
  margin: 0 0 1px !important;
}

#s-home .hdr-brand-wrap .currency-switch {
  min-height: 27px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
}

#s-home .hdr-brand-wrap .currency-rate {
  font-size: 9px !important;
  line-height: 1.1 !important;
}

#s-home #home-scroll {
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#s-home .bal-card > div[style*="grid-template-columns"] {
  gap: 8px !important;
  margin-top: 10px !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
  display: flex;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 10px !important;
  border-width: 1px !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) {
  border-color: #d7bd83 !important;
  border-radius: 16px 16px 7px 16px !important;
  background: linear-gradient(145deg, #f1e6cc, #d8c79f) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .76), 0 3px 8px rgba(2, 19, 10, .2);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) {
  border-color: rgba(150, 201, 141, .62) !important;
  border-radius: 7px 16px 16px !important;
  background: linear-gradient(145deg, #174d35, #0e3828) !important;
  box-shadow: inset 0 1px rgba(227, 255, 224, .12);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) {
  border-color: rgba(151, 190, 191, .62) !important;
  border-radius: 16px 7px 16px !important;
  background:
    repeating-linear-gradient(135deg, rgba(228, 244, 232, .045) 0 5px, transparent 5px 11px),
    linear-gradient(145deg, #244b4a, #163937) !important;
  box-shadow: inset 0 1px rgba(232, 255, 248, .13);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
  border-color: rgba(223, 183, 99, .68) !important;
  border-radius: 16px 16px 16px 7px !important;
  background: linear-gradient(145deg, #705628, #493b20) !important;
  box-shadow: inset 0 1px rgba(255, 239, 187, .18);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) > div:first-child,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) > div:nth-child(2),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) > div:nth-child(3) > div:first-child,
#s-home #h-recharge {
  color: #3c563c !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) > div:first-child,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) > div:first-child,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) > div:first-child {
  color: #e8d39e !important;
}

#s-home #h-usdt { color: #f0d47f !important; }
#s-home #h-game { color: #b4ded0 !important; }
#s-home #h-pts { color: #ffdf80 !important; }

#s-home .bal-card > div[style*="grid-template-columns"] + div {
  min-height: 56px;
  border-color: rgba(235, 207, 148, .38) !important;
  border-radius: 12px 12px 6px 12px !important;
  background: rgba(4, 29, 19, .58) !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] {
  position: relative !important;
  min-height: 62px !important;
  padding: 10px 14px !important;
  border: 1px solid #dbc796 !important;
  border-radius: 18px 18px 7px 18px !important;
  color: #29442f !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .62), transparent 38%),
    repeating-linear-gradient(0deg, rgba(110, 91, 52, .04) 0 1px, transparent 1px 5px),
    #f3ead5 !important;
  box-shadow: inset 0 1px #fffdf4, 0 4px 11px rgba(1, 19, 11, .22) !important;
  font-size: clamp(13px, 3.7vw, 16px) !important;
  line-height: 1.2;
  text-shadow: none !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"]::before {
  display: none !important;
  content: none !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] span {
  color: #745c31 !important;
}

#s-home .bnav {
  z-index: 5;
  flex: 0 0 auto !important;
  padding-bottom: max(5px, env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 370px) {
  #s-home .hdr-brand-wrap::before {
    width: min(100%, 150px) !important;
    height: 79px !important;
  }

  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1),
  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2),
  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3),
  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
    min-height: 92px;
    padding: 8px !important;
  }
}

@media (min-width: 760px) {
  #s-home .hdr { min-height: 138px !important; }
}

/* Final user-app presentation layer. It changes visual structure only:
   keep the live PHP values, DOM IDs, actions, and screen visibility rules. */

#s-home,
#s-login,
#s-reg,
#s-reset,
#s-product,
#s-plandetail,
#s-finplans,
#s-tasks,
#s-me,
#s-checkin,
#s-team,
#s-invite,
#s-mydev,
#s-walhist,
#s-wdhist,
#s-gamewallet,
#s-notif,
#s-earnhist,
#s-incomehist,
#s-wdpass,
#s-bank,
#s-wdproof,
#s-giftcode,
#s-support,
body.an-privacy-page,
body:has(.wrap .payment-tabs),
body:has(.qr-frame) {
  --an-logo-lockup: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1");
  --an-emerald-950: #06170d;
  --an-emerald-900: #092313;
  --an-emerald-800: #10391b;
  --an-emerald-700: #174a21;
  --an-leaf: #7bc943;
  --an-leaf-bright: #9be15b;
  --an-cream: #fff3d4;
  --an-cream-muted: #e6d6b2;
  --an-gold: #e5bc63;
  --an-gold-light: #f5d992;
  --an-wood-dark: #311709;
  --an-wood-mid: #75401d;
  --an-wood-light: #a6662d;
  --an-wood-grain:
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(255, 226, 170, .10) 9px, transparent 11px 18px),
    repeating-linear-gradient(2deg, transparent 0 18px, rgba(31, 11, 4, .27) 19px, transparent 22px 34px);
  --an-wood:
    linear-gradient(176deg, rgba(255, 220, 148, .24), transparent 21%, transparent 78%, rgba(25, 9, 3, .40)),
    var(--an-wood-grain),
    linear-gradient(106deg, #452011 0%, #8c4e25 22%, #603016 46%, #a5622d 70%, #462011 100%);
  --an-wood-edge:
    inset 0 2px 2px rgba(255, 238, 189, .7),
    inset 0 -4px 6px rgba(26, 9, 3, .56),
    0 5px 13px rgba(0, 0, 0, .34);
}

#s-product.screen,
#s-plandetail.screen,
#s-finplans.screen,
#s-tasks.screen,
#s-me.screen,
#s-checkin.screen,
#s-team.screen,
#s-invite.screen,
#s-mydev.screen,
#s-walhist.screen,
#s-wdpass.screen,
#s-bank.screen,
#s-wdproof.screen,
#s-giftcode.screen,
#s-support.screen {
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(99, 153, 49, .24), transparent 46%),
    radial-gradient(ellipse at 3% 45%, rgba(105, 149, 55, .10), transparent 31%),
    linear-gradient(180deg, #0b2a13, #06170d 68%, #0a2512) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-product .hdr,
#s-me .hdr,
#s-plandetail .back-hdr,
#s-finplans .back-hdr,
#s-tasks .back-hdr,
#s-checkin .back-hdr,
#s-team .back-hdr,
#s-invite .back-hdr,
#s-mydev .back-hdr,
#s-walhist .back-hdr,
#s-wdpass .back-hdr,
#s-bank .back-hdr,
#s-wdproof .back-hdr,
#s-giftcode .back-hdr,
#s-support .back-hdr {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  min-height: 60px !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid rgba(237, 202, 126, .72) !important;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(116, 168, 63, .25), transparent 64%),
    linear-gradient(180deg, #10351a, #071b0e) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .27) !important;
}

#s-product .hdr-logo,
#s-me .hdr-logo,
#s-plandetail .back-title,
#s-finplans .back-title,
#s-tasks .back-title,
#s-checkin .back-title,
#s-team .back-title,
#s-invite .back-title,
#s-mydev .back-title,
#s-walhist .back-title,
#s-wdpass .back-title,
#s-bank .back-title,
#s-wdproof .back-title,
#s-giftcode .back-title,
#s-support .back-title {
  min-width: 0;
  color: #fff1ce !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 4vw, 19px) !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

#s-product .hdr-logo,
#s-me .hdr-logo {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

#s-product .hdr-logo::before,
#s-me .hdr-logo::before,
#s-plandetail .back-title::before,
#s-finplans .back-title::before,
#s-tasks .back-title::before,
#s-checkin .back-title::before,
#s-team .back-title::before,
#s-invite .back-title::before,
#s-mydev .back-title::before,
#s-walhist .back-title::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 57px;
  height: 26px;
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

#s-plandetail .back-title,
#s-finplans .back-title,
#s-tasks .back-title,
#s-checkin .back-title,
#s-team .back-title,
#s-invite .back-title,
#s-mydev .back-title,
#s-walhist .back-title {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#s-product .back-btn,
#s-me .back-btn,
#s-plandetail .back-btn,
#s-finplans .back-btn,
#s-tasks .back-btn,
#s-checkin .back-btn,
#s-team .back-btn,
#s-invite .back-btn,
#s-mydev .back-btn,
#s-walhist .back-btn {
  min-width: 40px !important;
  min-height: 40px !important;
  border: 1px solid rgba(245, 211, 135, .8) !important;
  border-radius: 14px !important;
  color: #fff0ca !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-product .scroll,
#s-plandetail .scroll,
#s-finplans .scroll,
#s-tasks .scroll,
#s-me .scroll,
#s-checkin .scroll,
#s-team .scroll,
#s-invite .scroll,
#s-mydev .scroll,
#s-walhist .scroll {
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 95% 8%, rgba(109, 157, 55, .09), transparent 28%),
    radial-gradient(ellipse at 2% 68%, rgba(89, 137, 48, .08), transparent 30%);
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#s-product .plan-type-tabs,
#s-tasks .task-stabs,
#s-team .team-tabs {
  position: relative;
  z-index: 2;
  display: flex !important;
  gap: 8px !important;
  padding: 10px 12px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(231, 196, 121, .35) !important;
  background: rgba(5, 25, 12, .62) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 188, 99, .5) transparent;
}

#s-product .ptab,
#s-tasks .task-stab,
#s-team .ttab {
  position: relative;
  flex: 1 0 auto !important;
  min-width: 76px;
  min-height: 43px;
  padding: 9px 11px !important;
  border: 1px solid rgba(225, 187, 103, .68) !important;
  border-radius: 16px !important;
  color: #f7e8c4 !important;
  background:
    linear-gradient(145deg, rgba(21, 68, 30, .98), rgba(7, 31, 14, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 237, 189, .15), 0 3px 8px rgba(0, 0, 0, .24);
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.18;
  white-space: nowrap;
}

#s-product .ptab.active,
#s-tasks .task-stab.active,
#s-team .ttab.active {
  border-color: #ffe39b !important;
  color: #293818 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .64), transparent 35%),
    linear-gradient(110deg, #f6e9c6, #dfca91) !important;
  box-shadow: inset 0 1px #fffdf2, 0 3px 10px rgba(0, 0, 0, .28) !important;
}

#s-product #plans-list,
#s-tasks #tasks-panel-regular,
#s-tasks #tasks-panel-milestone,
#s-tasks #tasks-panel-vipsalary,
#s-team #team-list,
#s-finplans #fin-list,
#s-finplans #my-inv-list {
  min-width: 0;
}

#s-product #plans-list {
  padding: 12px !important;
}

#s-product #plans-list > article,
#s-product #plans-list > section,
#s-product #plans-list > .node-card,
#s-product #plans-list > [class*="plan-card"],
#s-product #plans-list > [class*="product-card"],
#s-product #plans-list > div:not(.loader):not(.empty) {
  position: relative;
  min-width: 0;
  margin: 0 0 12px !important;
  padding: 13px !important;
  overflow: hidden;
  border: 1px solid rgba(237, 198, 112, .82) !important;
  border-radius: 19px !important;
  color: #fff0cd !important;
  background:
    linear-gradient(140deg, rgba(18, 74, 35, .97), rgba(7, 33, 16, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .16), 0 5px 12px rgba(0, 0, 0, .26) !important;
}

#s-product #plans-list img,
#s-plandetail .pd-content img {
  max-width: 100%;
  border-radius: 13px;
}

#s-plandetail #pd-content {
  padding: 12px !important;
}

#s-plandetail .pd-hero,
#s-plandetail .pd-info,
#s-plandetail .pd-buyers,
#s-plandetail .pd-desc {
  margin: 0 0 12px !important;
  padding: 13px !important;
  border: 1px solid rgba(232, 194, 111, .72) !important;
  border-radius: 18px !important;
  color: #fff0cf !important;
  background: linear-gradient(145deg, rgba(23, 76, 34, .96), rgba(7, 31, 15, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 235, 186, .13), 0 5px 12px rgba(0, 0, 0, .24);
}

#s-plandetail .pd-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
}

#s-plandetail .pd-cell {
  min-width: 0;
  padding: 10px !important;
  border: 1px solid rgba(226, 190, 111, .58) !important;
  border-radius: 14px !important;
  color: #fff1d2 !important;
  background: var(--an-wood) !important;
  box-shadow: inset 0 1px rgba(255, 236, 188, .22), 0 3px 7px rgba(0, 0, 0, .25);
}

#s-plandetail .btn-buy,
#s-finplans .btn-fin,
#s-finplans .btn-claim,
#s-tasks .btn-task,
#s-tasks .btn-ms,
#s-tasks .btn-ms-claim,
#s-tasks .btn-ms-done,
#s-tasks .btn-ms-lock,
#s-checkin .ci-claim-btn,
#s-invite .btn-copy {
  min-height: 43px;
  border: 1px solid rgba(255, 226, 151, .86) !important;
  border-radius: 17px !important;
  color: #fff2d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-finplans .scroll {
  padding: 10px 12px 28px !important;
}

#s-finplans #fin-plan-chart,
#s-finplans #fin-list,
#s-finplans #my-inv-list,
#s-finplans #fin-craft-gallery {
  margin: 0 0 13px !important;
  padding: 12px !important;
  border: 1px solid rgba(232, 196, 118, .72) !important;
  border-radius: 19px !important;
  color: #fff0cb !important;
  background:
    radial-gradient(ellipse at 88% 0, rgba(103, 157, 58, .16), transparent 42%),
    linear-gradient(145deg, rgba(20, 66, 32, .98), rgba(7, 28, 14, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .14), 0 5px 14px rgba(0, 0, 0, .25);
}

#s-finplans .fin-card,
#s-finplans .inv-card {
  position: relative;
  min-width: 0;
  margin: 9px 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(235, 194, 105, .72) !important;
  border-radius: 16px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(90deg, rgba(255, 248, 225, .055), transparent 42%),
    var(--an-wood) !important;
  box-shadow: inset 0 1px rgba(255, 235, 185, .22), 0 4px 9px rgba(0, 0, 0, .24);
}

#s-finplans .fin-card button,
#s-finplans .inv-card button {
  min-height: 38px;
  border: 1px solid rgba(255, 226, 151, .78);
  border-radius: 14px;
  color: #fff1ce;
  background: linear-gradient(140deg, #164726, #0a2b17);
  font: 700 13px Georgia, "Times New Roman", serif;
}

#s-tasks .task-stabs {
  overflow-x: auto;
}

#s-tasks .task-stab {
  white-space: normal;
}

#s-tasks .scroll {
  padding: 10px 12px 28px !important;
}

#s-tasks #tasks-panel-regular > *,
#s-tasks #tasks-list2 > article,
#s-tasks #tasks-list2 > section,
#s-tasks #tasks-list2 > div:not(.loader):not(.empty),
#s-tasks #ms-list > article,
#s-tasks #ms-list > section {
  min-width: 0;
  margin: 0 0 12px !important;
  padding: 13px !important;
  border: 1px solid rgba(234, 197, 115, .76) !important;
  border-radius: 18px !important;
  color: #fff1d0 !important;
  background:
    linear-gradient(135deg, rgba(255, 251, 236, .05), transparent 45%),
    linear-gradient(145deg, rgba(20, 75, 35, .98), rgba(7, 31, 15, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 239, 189, .14), 0 5px 12px rgba(0, 0, 0, .25);
}

#s-tasks .task-title,
#s-tasks .ms-title,
#s-tasks .ci-section-title {
  color: #f5d989 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-tasks .task-info,
#s-tasks .task-rew,
#s-tasks .ms-sub {
  color: #f4e7ca !important;
}

#s-tasks .ms-progress,
#s-tasks .ms-bar {
  overflow: hidden;
  border: 1px solid rgba(234, 201, 133, .45) !important;
  border-radius: 999px !important;
  background: rgba(3, 21, 10, .72) !important;
}

#s-tasks .ms-bar-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #65bb4d, #c3e974) !important;
  box-shadow: 0 0 9px rgba(161, 220, 89, .42);
}

#s-tasks .an-task-craft-card {
  margin: 12px 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(240, 203, 122, .73) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #12391d, #071b0e) !important;
  box-shadow: inset 0 1px rgba(255, 238, 190, .12), 0 5px 12px rgba(0, 0, 0, .24);
}

#s-tasks .an-task-craft-card img {
  width: 100%;
  border-radius: 13px;
  object-fit: cover;
}

#s-tasks .sf-media {
  margin: 11px 0 !important;
  padding: 13px !important;
  border: 1px dashed rgba(244, 208, 126, .82) !important;
  border-radius: 17px !important;
  color: #fff0cc !important;
  background:
    repeating-linear-gradient(135deg, rgba(255, 235, 190, .05) 0 5px, transparent 5px 12px),
    linear-gradient(145deg, #714426, #351c11) !important;
}

#s-tasks .sf-media input[type="file"] {
  width: 100%;
  max-width: 100%;
  color: #fff1d0 !important;
  accent-color: #8fbd58;
}

#s-tasks .sf-media button {
  min-height: 42px;
  border: 1px solid rgba(255, 225, 146, .82);
  border-radius: 14px;
  color: #fff1cb;
  background: linear-gradient(145deg, #1b6339, #0a321c);
  font: 700 14px Georgia, "Times New Roman", serif;
}

#s-tasks #vs-tasks-list > article,
#s-tasks #vs-tasks-list > section,
#s-tasks #vs-tasks-list > div:not(.loader):not(.empty) {
  margin: 0 0 11px !important;
  padding: 13px !important;
  border: 1px solid rgba(235, 197, 112, .74) !important;
  border-radius: 17px !important;
  color: #fff0ce !important;
  background: linear-gradient(145deg, #16462a, #082512) !important;
}

#s-tasks #tasks-panel-vipsalary .ci-hero,
#s-tasks #tasks-panel-vipsalary .ci-vip-card,
#s-tasks #tasks-panel-vipsalary .ci-info-card {
  border-color: rgba(237, 197, 111, .72) !important;
  background:
    radial-gradient(ellipse at 90% 2%, rgba(116, 164, 59, .17), transparent 45%),
    linear-gradient(145deg, #143b1f, #071b0e) !important;
  color: #fff0cb !important;
}

#s-checkin .ci-page {
  padding: 12px 12px 30px !important;
  color: #fff0cd !important;
  background: transparent !important;
}

#s-checkin .ci-hero,
#s-checkin .ci-status-card,
#s-checkin .ci-streak-card,
#s-checkin .ci-vip-card,
#s-checkin .ci-info-card {
  border: 1px solid rgba(234, 197, 113, .78) !important;
  border-radius: 20px !important;
  color: #fff0cc !important;
  background:
    radial-gradient(ellipse at 92% 0, rgba(101, 156, 57, .18), transparent 42%),
    linear-gradient(145deg, rgba(20, 66, 31, .98), rgba(6, 28, 13, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 238, 190, .14), 0 6px 15px rgba(0, 0, 0, .26) !important;
}

#s-checkin .ci-hero {
  min-height: 215px !important;
}

#s-checkin .ci-hero-content {
  min-height: 215px !important;
  padding: 17px !important;
}

#s-checkin .ci-kicker,
#s-checkin .ci-section-title,
#s-checkin .ci-reward-caption {
  color: #e9ca78 !important;
}

#s-checkin .ci-title,
#s-checkin .ci-reward-number,
#s-checkin #ci-countdown {
  color: #ffe27d !important;
}

#s-checkin .ci-vip-label,
#s-checkin .ci-vip-row {
  border-color: rgba(232, 196, 113, .48) !important;
  color: #f9ebc9 !important;
  background: rgba(7, 34, 17, .72) !important;
}

#s-checkin .ci-vip-row.active {
  border-color: #f0ce73 !important;
  background: linear-gradient(100deg, rgba(41, 105, 43, .84), rgba(103, 79, 29, .56)) !important;
}

#s-checkin .ci-claim-btn.ready {
  color: #fff1cc !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge), 0 0 12px rgba(238, 197, 92, .17) !important;
}

#s-team .scroll {
  padding: 12px 12px 28px !important;
}

#s-team .team-top {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  margin: 0 0 11px !important;
  padding: 10px !important;
  border: 1px solid rgba(232, 196, 115, .85) !important;
  border-radius: 18px !important;
  color: #30412a !important;
  background: linear-gradient(120deg, #f3e7c5, #d9c28b) !important;
  box-shadow: inset 0 1px #fff9e7, 0 5px 12px rgba(0, 0, 0, .23);
}

#s-team .team-stat {
  min-width: 0;
  padding: 9px 6px;
  border-inline-end: 1px solid rgba(116, 88, 39, .34);
}

#s-team .team-stat:last-child { border-inline-end: 0; }
#s-team .team-stat .tk { color: #566044 !important; font-size: 11px !important; }
#s-team .team-stat .tv { color: #285637 !important; font-size: clamp(19px, 5vw, 25px) !important; }

#s-team .team-tabs {
  overflow-x: auto;
  border: 1px solid rgba(233, 196, 115, .38) !important;
  border-radius: 17px;
}

#s-team .team-list {
  padding: 10px 0 0;
}

#s-team .member-card,
#s-team #team-list > article,
#s-team #team-list > section,
#s-team #team-list > div:not(.loader):not(.empty) {
  min-width: 0;
  margin: 0 0 11px !important;
  padding: 13px !important;
  border: 1px solid rgba(231, 193, 109, .82) !important;
  border-radius: 18px !important;
  color: #fff0ce !important;
  background:
    radial-gradient(ellipse at 100% 0, rgba(93, 150, 52, .16), transparent 44%),
    linear-gradient(145deg, #17472a, #082512) !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .13), 0 5px 12px rgba(0, 0, 0, .25);
}

#s-team .mc-date,
#s-team .mc-mob {
  color: #dfd2b1 !important;
}

#s-invite .scroll {
  padding: 12px 12px 30px !important;
}

#s-invite .ref-card {
  position: relative;
  margin: 0 0 13px !important;
  padding: 17px 14px !important;
  overflow: hidden;
  border: 2px solid rgba(244, 209, 131, .92) !important;
  border-radius: 24px 14px 22px 14px !important;
  color: #fff2d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge), inset 0 0 0 4px rgba(255, 234, 175, .08) !important;
}

#s-invite .ref-code {
  color: #ffe27a !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(26px, 7vw, 36px) !important;
  letter-spacing: 3px !important;
  text-shadow: 0 2px 4px rgba(36, 12, 3, .72);
}

#s-invite .ref-link-box {
  padding: 10px 12px !important;
  border: 1px solid rgba(196, 222, 162, .58);
  border-radius: 13px !important;
  color: #e8f2d5 !important;
  background: rgba(4, 31, 16, .85) !important;
  overflow-wrap: anywhere;
}

#s-invite .btn-copy {
  width: 100%;
  min-height: 47px;
  margin-top: 5px;
  color: #32240f !important;
  background: linear-gradient(180deg, #ffe58c, #e7ac32) !important;
  box-shadow: inset 0 1px #fff3c0, 0 4px 9px rgba(27, 13, 3, .35) !important;
}

#s-invite .an-team-poster {
  margin: 0 0 13px !important;
  border: 1px solid rgba(232, 196, 113, .68) !important;
  border-radius: 19px !important;
  background: linear-gradient(145deg, #133a1e, #071b0e) !important;
}

#s-invite .an-team-poster-rule,
#s-invite .an-team-charts [id^="inv-sec-"],
#s-invite .an-team-charts [id^="inv-rebate-now-"],
#s-invite .an-team-charts [id^="inv-potential-"],
#s-invite .an-team-charts #inv-comm-daily {
  border-color: rgba(232, 196, 113, .42) !important;
  border-radius: 15px !important;
  color: #f5e9cc !important;
  background: linear-gradient(145deg, rgba(20, 67, 33, .95), rgba(7, 28, 14, .97)) !important;
}

#s-me .scroll {
  padding: 12px 12px 28px !important;
}

#s-me .me-hero {
  margin: 0 0 12px !important;
  padding: 19px 14px !important;
  border: 1px solid rgba(238, 201, 120, .82) !important;
  border-radius: 21px !important;
  color: #fff2d2 !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(132, 174, 63, .22), transparent 56%),
    linear-gradient(145deg, #164626, #071d0e) !important;
  text-align: center;
}

#s-me .me-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px !important;
  margin: 0 0 12px !important;
}

#s-me .me-stat {
  min-width: 0;
  padding: 10px 5px !important;
  border: 1px solid rgba(231, 192, 111, .67) !important;
  border-radius: 15px !important;
  color: #33412e !important;
  background: linear-gradient(145deg, #f3e8cb, #d8c28d) !important;
}

#s-me .me-stat .mk { color: #5d634c !important; font-size: 10px !important; }
#s-me .me-stat .mv { color: #245837 !important; font-size: clamp(15px, 4vw, 20px) !important; overflow-wrap: anywhere; }

#s-me .me-menu {
  display: grid !important;
  gap: 8px !important;
}

#s-me .me-item {
  display: flex !important;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  border: 1px solid rgba(229, 191, 109, .56) !important;
  border-radius: 15px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(90deg, rgba(255, 248, 225, .06), transparent 55%),
    linear-gradient(145deg, #164328, #082313) !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .12), 0 3px 8px rgba(0, 0, 0, .22);
}

#s-me .me-item-ic { flex: 0 0 30px; color: #f0d482 !important; font-size: 20px !important; text-align: center; }
#s-me .me-item-lb { flex: 1 1 auto; min-width: 0; color: #fff0ca !important; font-size: 14px !important; }
#s-me .me-item-ar { color: #f2d58a !important; font-size: 12px !important; }

#s-walhist .walhist-tabs {
  border: 1px solid rgba(234, 196, 112, .48) !important;
  border-radius: 16px !important;
  background: rgba(5, 24, 11, .64) !important;
}

#s-walhist table,
#s-finplans table,
#s-tasks table,
#s-team table {
  border-color: rgba(234, 197, 115, .35) !important;
  color: #f8ecd0 !important;
}

#s-walhist th,
#s-finplans th,
#s-tasks th,
#s-team th {
  color: #fff0c8 !important;
  background: linear-gradient(180deg, #1c5931, #0a3018) !important;
}

#s-walhist td,
#s-finplans td,
#s-tasks td,
#s-team td {
  color: #243523 !important;
  background: linear-gradient(180deg, #f5efd9, #e7ddbd) !important;
}

/* Compact Home brand bar: same logo, about half the previous height. */
#s-home .hdr {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 26px 70px !important;
  grid-template-areas: "back brand flag actions";
  align-items: center;
  gap: 4px !important;
  min-height: 72px !important;
  padding: 3px 7px !important;
  border-bottom: 1px solid rgba(236, 199, 121, .74) !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(114, 164, 57, .23), transparent 63%),
    linear-gradient(180deg, #0e3518, #06180c) !important;
}

#s-home .hdr .back-btn {
  grid-area: back;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
}

#s-home .hdr-brand-wrap {
  display: flex !important;
  grid-area: brand;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
}

#s-home .hdr-brand-wrap::before {
  display: block !important;
  content: "" !important;
  width: min(100%, 126px) !important;
  height: 36px !important;
  margin: 0 !important;
  background: var(--an-logo-lockup) center / contain no-repeat !important;
}

#s-home .hdr-brand-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#s-home .hdr-brand-wrap .currency-switch {
  min-height: 21px !important;
  padding: 2px 9px !important;
  border-radius: 12px !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

#s-home .hdr-brand-wrap .currency-rate {
  margin: 0 !important;
  font-size: 8px !important;
  line-height: 1.05 !important;
}

#s-home .hdr-flag {
  grid-area: flag;
  align-self: center !important;
  font-size: 19px !important;
}

#s-home .hdr-icons {
  grid-area: actions;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end;
  gap: 4px !important;
}

#s-home .hdr-icons .hdr-btn {
  min-width: 31px !important;
  min-height: 31px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
}

#s-home #home-scroll {
  padding: 10px 10px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  gap: 9px !important;
}

#s-home #ci-home-card,
#s-home #dev-widget-wrap .dev-widget {
  min-height: 210px !important;
  height: 100%;
  border: 2px solid rgba(236, 199, 119, .92) !important;
  border-radius: 21px !important;
  box-shadow: inset 0 0 0 4px rgba(255, 237, 186, .08), 0 6px 15px rgba(0, 0, 0, .3) !important;
}

#s-home #ci-home-card {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 !important;
  border-color: #ddc58d !important;
  color: #263c2c !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .66), transparent 35%),
    repeating-linear-gradient(0deg, rgba(93, 75, 44, .035) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #f4ebd3, #d8c495) !important;
  box-shadow: inset 0 1px #fffdf5, 0 6px 15px rgba(0, 0, 0, .27) !important;
}

#s-home #ci-home-card::before {
  inset: 4px !important;
  border-color: rgba(133, 100, 45, .22) !important;
}

#s-home #ci-home-card > div:first-child {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 8px 9px !important;
  min-height: 166px;
  padding: 13px 10px !important;
  background: transparent !important;
}

#s-home #ci-home-ic {
  display: grid !important;
  width: 44px;
  height: 52px;
  grid-column: 1;
  grid-row: 1 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c9b77f;
  border-radius: 11px;
  color: #285a39 !important;
  background: linear-gradient(180deg, #df5a45 0 23%, #f5f0df 23% 100%);
  box-shadow: 0 3px 7px rgba(54, 39, 17, .2);
  font-size: 24px !important;
}

#s-home #ci-home-ic:empty::after {
  color: #315b3b;
  content: "TODAY";
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .3px;
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#s-home #ci-home-card > div:first-child > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  text-align: left !important;
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) > div:first-child {
  color: #274c32 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(12px, 3.4vw, 15px) !important;
  line-height: 1.2;
}

#s-home #ci-home-sub {
  display: -webkit-box;
  overflow: hidden;
  color: #66724f !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px !important;
  line-height: 1.3;
}

#s-home #ci-home-reward {
  color: #2d7141 !important;
  font-size: clamp(15px, 4.5vw, 19px) !important;
  line-height: 1.05;
}

#s-home #ci-home-badge {
  min-height: 31px;
  margin-top: 5px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(122, 78, 27, .45);
  border-radius: 13px !important;
  color: #fff1c7 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
  font-size: 10px !important;
  line-height: 1.2;
}

#s-home #ci-home-bar {
  height: 4px !important;
  background: linear-gradient(90deg, #c39235, #a4d25d, #2f7d47) !important;
}

#s-home #dev-widget-wrap {
  display: flex;
  min-width: 0;
  margin: 0 !important;
}

#s-home #dev-widget-wrap .dev-widget {
  position: relative;
  display: flex !important;
  min-width: 0;
  min-height: 210px !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 11px !important;
  color: #fff1ca !important;
  background:
    radial-gradient(ellipse at 82% 7%, rgba(104, 172, 72, .33), transparent 45%),
    linear-gradient(150deg, #13512e, #082a1b 70%, #071e14) !important;
}

#s-home #dev-widget-wrap .dw-ic {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(244, 211, 135, .62);
  border-radius: 13px;
  color: #f6da81 !important;
  background: rgba(3, 32, 19, .68);
  font-size: 27px !important;
}

#s-home #dev-widget-wrap .dw-info {
  width: 100%;
  min-width: 0;
}

#s-home #dev-widget-wrap .dw-title {
  color: #fff1ce !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  line-height: 1.3;
}

#s-home #dev-widget-wrap .dw-amt {
  margin-top: 4px;
  color: #f7d85f !important;
  font-size: clamp(19px, 5.4vw, 25px) !important;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#s-home #dev-widget-wrap .dw-sub {
  margin-top: 4px;
  color: rgba(245, 236, 204, .8) !important;
  font-size: 10px !important;
  line-height: 1.25;
}

#s-home #dev-widget-wrap .dw-btn {
  align-self: stretch;
  min-height: 36px !important;
  margin-top: 2px;
  border-radius: 14px !important;
  font-size: 12px !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
  min-height: 108px !important;
  border: 1px solid rgba(234, 202, 137, .72) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 4px 9px rgba(0, 0, 0, .2);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) {
  border-radius: 16px 16px 7px 16px !important;
  background: linear-gradient(145deg, #f3e9cf, #d9c79a) !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) {
  border-radius: 7px 16px 16px !important;
  background: linear-gradient(145deg, #174d35, #0e3828) !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) {
  border-radius: 16px 7px 16px !important;
  background:
    repeating-linear-gradient(135deg, rgba(228, 244, 232, .045) 0 5px, transparent 5px 11px),
    linear-gradient(145deg, #244b4a, #163937) !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
  border-radius: 16px 16px 16px 7px !important;
  background: linear-gradient(145deg, #705628, #493b20) !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) > div:first-child,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) > div:nth-child(2),
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) > div:nth-child(3) > div:first-child,
#s-home #h-recharge {
  color: #3c563c !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) > div:first-child,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) > div:first-child,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) > div:first-child {
  color: #e8d39e !important;
}

#s-home #h-usdt { color: #f0d47f !important; }
#s-home #h-game { color: #b4ded0 !important; }
#s-home #h-pts { color: #ffdf80 !important; }

#s-home .bal-card > div[style*="grid-template-columns"] > div button {
  min-height: 32px !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] + div {
  min-height: 58px;
  border-color: rgba(235, 207, 148, .42) !important;
  border-radius: 13px 13px 6px 13px !important;
  background: rgba(4, 29, 19, .62) !important;
}

#s-home .an-home-access-card {
  min-height: 74px !important;
  border-color: rgba(233, 197, 112, .78) !important;
  border-radius: 19px !important;
  background:
    linear-gradient(90deg, rgba(255, 249, 226, .12), transparent 44%),
    var(--an-wood) !important;
}

#s-home .an-home-access-title {
  min-height: 72px !important;
  padding: 10px 68px 10px 15px !important;
  color: #fff1cd !important;
  font-size: clamp(16px, 4.5vw, 22px) !important;
}

#s-home .an-home-access-subtitle {
  color: #f2dfb4 !important;
  font-size: 11px !important;
}

#s-home .btn-rch,
#s-home .btn-wd,
#s-home button[onclick*="openWalletHistory"],
#s-home #pwa-install-btn {
  min-height: 42px !important;
  border: 1px solid rgba(255, 226, 151, .82) !important;
  border-radius: 15px !important;
  color: #fff1ce !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-home #pwa-install-btn {
  width: 100%;
}

#s-home .bnav {
  min-height: 65px !important;
}

#s-home .bni .ic {
  font-size: 20px !important;
}

/* Country picker remains a searchable full-page surface with all countries. */
#s-reg #cp-overlay.cp-open {
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(121, 166, 60, .22), transparent 54%),
    linear-gradient(180deg, #0c2d15, #06170c 72%, #0b2612) !important;
}

#s-reg #cp-overlay.cp-open #cp-box {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  flex-direction: column;
  overflow: hidden !important;
  padding: max(6px, env(safe-area-inset-top, 0px)) 10px max(7px, env(safe-area-inset-bottom, 0px)) !important;
  border: 5px double rgba(231, 193, 106, .92) !important;
  border-radius: 0 !important;
  color: #fff0cc !important;
  background:
    radial-gradient(ellipse at 45% 42%, rgba(39, 91, 35, .32), transparent 62%),
    linear-gradient(145deg, #12351a, #06190d 68%, #103319) !important;
  box-shadow: inset 0 0 0 3px rgba(255, 232, 167, .07) !important;
}

#s-reg #cp-overlay.cp-open #cp-box::before {
  display: block;
  flex: 0 0 auto;
  width: min(56vw, 190px);
  height: 42px;
  margin: 2px auto 4px;
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .42));
}

#s-reg #cp-overlay.cp-open #cp-hdr {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px !important;
  justify-content: center !important;
  margin: 0 0 8px !important;
  padding: 7px 50px !important;
  border: 1px solid rgba(239, 202, 121, .62) !important;
  border-radius: 16px !important;
  color: #fff0c9 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 700 18px Georgia, "Times New Roman", serif !important;
}

#s-reg #cp-overlay.cp-open #cp-close {
  right: 6px !important;
  border: 1px solid #edc56b !important;
  border-radius: 13px !important;
  color: #fff1d0 !important;
  background: linear-gradient(145deg, #6f4326, #402214) !important;
}

#s-reg #cp-overlay.cp-open #cp-swrap {
  flex: 0 0 auto;
  padding: 0 0 8px !important;
}

#s-reg #cp-overlay.cp-open #cp-search {
  height: 49px !important;
  border: 2px solid #cda857 !important;
  border-radius: 15px !important;
  color: #fff0d5 !important;
  background:
    linear-gradient(180deg, rgba(255, 226, 158, .08), transparent 34%),
    linear-gradient(145deg, #102e18, #081e10) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .28) !important;
  font: 16px Georgia, "Times New Roman", serif !important;
}

#s-reg #cp-overlay.cp-open #cp-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  padding: 2px 0 max(10px, env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#s-reg #cp-overlay.cp-open .cp-item {
  min-height: 50px !important;
  margin: 0 0 6px !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(218, 184, 106, .4) !important;
  border-radius: 13px !important;
  color: #fff0d0 !important;
  background: linear-gradient(145deg, rgba(18, 66, 31, .94), rgba(7, 30, 15, .97)) !important;
  box-shadow: inset 0 1px rgba(255, 237, 188, .08);
  font: 15px Georgia, "Times New Roman", serif !important;
}

#s-reg #cp-overlay.cp-open .cp-item:active,
#s-reg #cp-overlay.cp-open .cp-item.cp-sel {
  border-color: #f2d37d !important;
  background:
    linear-gradient(180deg, rgba(255, 222, 151, .14), transparent 45%),
    linear-gradient(100deg, #77502a, #164322) !important;
}

#s-reg #cp-overlay.cp-open .cp-item .cpi-flag { font-size: 23px !important; }
#s-reg #cp-overlay.cp-open .cp-item .cpi-dial { color: #f3d58c !important; font-size: 13px !important; }

/* Keep the auth viewport filled while forms scroll above the keyboard. */
#s-login.screen.active,
#s-reg.screen.active {
  min-height: 100dvh !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(105, 146, 48, .24), transparent 46%),
    linear-gradient(180deg, #0d3014, #07190c) !important;
}

#s-login.screen.active .auth-wrap.an-wrap,
#s-reg.screen.active .auth-wrap.an-wrap {
  min-height: 100% !important;
  background:
    radial-gradient(ellipse at 14% 18%, rgba(122, 164, 51, .16), transparent 32%),
    radial-gradient(ellipse at 88% 52%, rgba(90, 138, 39, .13), transparent 38%),
    linear-gradient(145deg, #0e3013, #09210e 48%, #12350f) !important;
}

#s-login.screen.active .auth-body.an-body,
#s-reg.screen.active .auth-body.an-body {
  color: #fff0cb !important;
  background:
    radial-gradient(ellipse at 50% 5%, rgba(69, 119, 34, .2), transparent 48%),
    linear-gradient(180deg, rgba(6, 28, 12, .24), rgba(9, 35, 13, .18)) !important;
}

#s-login.screen.active .auth-logo.an-logo,
#s-reg.screen.active .auth-logo.an-logo {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#s-login.screen.active .auth-logo.an-logo::before,
#s-reg.screen.active .auth-logo.an-logo::before {
  display: block;
  width: min(70vw, 280px);
  height: clamp(58px, 15vw, 88px);
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .42));
}

#s-login.screen.active .auth-logo.an-logo .an-roof,
#s-reg.screen.active .auth-logo.an-logo .an-roof,
#s-login.screen.active .auth-logo.an-logo .an-swoosh,
#s-reg.screen.active .auth-logo.an-logo .an-swoosh {
  display: none !important;
}

#s-login.screen.active .auth-logo.an-logo .logo-txt,
#s-reg.screen.active .auth-logo.an-logo .logo-txt {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#s-login.screen.active .auth-logo.an-logo p,
#s-reg.screen.active .auth-logo.an-logo p {
  margin-top: 3px !important;
  color: #fff0cb !important;
}

/* Gateway payment pages are isolated in the payment iframe. */
body:has(.wrap .payment-tabs),
body:has(.qr-frame) {
  min-height: 100dvh;
  color: #fff0cd !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(106, 155, 56, .22), transparent 45%),
    linear-gradient(180deg, #0b2a13, #06170d 70%, #092311) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body:has(.wrap .payment-tabs) .wrap {
  max-width: 920px !important;
  padding: 10px 12px max(24px, env(safe-area-inset-bottom, 0px)) !important;
}

body:has(.wrap .payment-tabs) .top,
body:has(.qr-frame) .bar {
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(232, 196, 112, .76) !important;
  border-radius: 18px !important;
  color: #fff0ca !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

body:has(.wrap .payment-tabs) .brand,
body:has(.qr-frame) .brand {
  color: #fff0ca !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body:has(.wrap .payment-tabs) .brand::before,
body:has(.qr-frame) .brand::before {
  display: inline-block;
  width: 90px;
  height: 31px;
  margin-right: 8px;
  vertical-align: middle;
  background: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1") center / contain no-repeat;
  content: "";
}

body:has(.wrap .payment-tabs) .card,
body:has(.wrap .payment-tabs) .balance article,
body:has(.qr-frame) .panel {
  border: 1px solid rgba(232, 194, 111, .74) !important;
  border-radius: 18px !important;
  color: #fff0ce !important;
  background: linear-gradient(145deg, rgba(19, 66, 33, .97), rgba(6, 29, 14, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 238, 188, .13), 0 6px 14px rgba(0, 0, 0, .25) !important;
}

body:has(.wrap .payment-tabs) .payment-tabs button,
body:has(.wrap .payment-tabs) .amount-presets button,
body:has(.wrap .payment-tabs) .inr-plan-presets button,
body:has(.wrap .payment-tabs) .inr-method-card {
  min-height: 43px;
  border: 1px solid rgba(229, 191, 110, .68) !important;
  border-radius: 14px !important;
  color: #fff0cc !important;
  background: linear-gradient(145deg, #16472b, #092716) !important;
}

body:has(.wrap .payment-tabs) .payment-tabs button.active,
body:has(.wrap .payment-tabs) .inr-method-card.active,
body:has(.wrap .payment-tabs) .inr-plan-presets button.active {
  border-color: #ffe28c !important;
  color: #2f3b23 !important;
  background: linear-gradient(145deg, #f5e9c7, #d8c28b) !important;
}

body:has(.wrap .payment-tabs) .btn,
body:has(.wrap .payment-tabs) .top a,
body:has(.qr-frame) .button {
  min-height: 44px;
  border: 1px solid rgba(255, 225, 146, .84) !important;
  border-radius: 15px !important;
  color: #fff1ca !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body:has(.wrap .payment-tabs) input,
body:has(.wrap .payment-tabs) select,
body:has(.wrap .payment-tabs) textarea,
body:has(.qr-frame) input,
body:has(.qr-frame) textarea {
  min-height: 44px;
  border: 1px solid rgba(232, 194, 112, .64) !important;
  border-radius: 12px !important;
  color: #fff0d0 !important;
  background: #0a2413 !important;
}

body:has(.wrap .payment-tabs) .status,
body:has(.qr-frame) .payment-live,
body:has(.qr-frame) .warning {
  border-color: rgba(230, 192, 112, .58) !important;
  border-radius: 13px !important;
  color: #f7e8c6 !important;
  background: rgba(8, 39, 19, .82) !important;
}

body:has(.wrap .payment-tabs) .status.good,
body:has(.qr-frame) .payment-live.good {
  border-color: rgba(104, 204, 132, .65) !important;
  color: #c8f1ce !important;
}

body:has(.wrap .payment-tabs) .status.bad,
body:has(.qr-frame) .payment-live.bad {
  border-color: rgba(238, 138, 119, .66) !important;
  color: #ffd2c8 !important;
}

body:has(.qr-frame) {
  padding: 10px 12px max(20px, env(safe-area-inset-bottom, 0px));
}

body:has(.qr-frame) .qr-frame {
  width: min(100%, 380px) !important;
  margin: 13px auto !important;
  padding: 11px !important;
  border: 5px solid #e7c46b !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4) !important;
}

body:has(.qr-frame) .amount {
  border-color: rgba(94, 188, 112, .62) !important;
  border-radius: 15px !important;
  color: #fff0cf !important;
  background: linear-gradient(145deg, #13502d, #082617) !important;
}

body:has(.qr-frame) .amount strong { color: #62e789 !important; }
body:has(.qr-frame) .address { overflow-wrap: anywhere; }
body:has(.qr-frame) #receive-address { color: #fff0cf !important; }

@media (max-width: 370px) {
  #s-home .hdr {
    grid-template-columns: 31px minmax(0, 1fr) 22px 64px !important;
    gap: 3px !important;
    padding-inline: 5px !important;
  }

  #s-home .hdr-brand-wrap::before {
    width: min(100%, 112px) !important;
    height: 33px !important;
  }

  #s-home .hdr-icons .hdr-btn {
    min-width: 29px !important;
    min-height: 29px !important;
  }

  #s-home #home-scroll {
    gap: 7px !important;
    padding-inline: 7px !important;
  }

  #s-home #ci-home-card,
  #s-home #dev-widget-wrap .dev-widget {
    min-height: 195px !important;
  }

  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1),
  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2),
  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3),
  #s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
    min-height: 94px !important;
    padding: 8px !important;
  }

  #s-me .me-stats { gap: 4px !important; }
  #s-me .me-stat { padding-inline: 3px !important; }
}

@media (min-width: 760px) {
  #s-home .hdr {
    min-height: 76px !important;
  }

  #s-home .hdr-brand-wrap::before {
    width: min(100%, 140px) !important;
    height: 38px !important;
  }

  #s-home #home-scroll {
    max-width: 1080px;
    margin-inline: auto;
  }

  #s-home #ci-home-card,
  #s-home #dev-widget-wrap .dev-widget {
    min-height: 220px !important;
  }

  #s-product #plans-list,
  #s-finplans .scroll,
  #s-tasks .scroll,
  #s-team .scroll,
  #s-invite .scroll,
  #s-me .scroll {
    max-width: 1050px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #s-product *,
  #s-plandetail *,
  #s-finplans *,
  #s-tasks *,
  #s-me *,
  #s-checkin *,
  #s-team *,
  #s-invite *,
  #s-home * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Legacy payment confirmation flow inside the member app. */
#s-pay-detail .scroll {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 14px 14px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-pay-detail #pd-method-name,
#s-pay-detail #pd-instructions,
#s-pay-detail #pd-process {
  margin: 12px 0;
  padding: 15px;
  border: 1px solid rgba(223, 185, 104, .66);
  border-radius: 18px;
  color: #f9efda;
  background: linear-gradient(145deg, rgba(17, 73, 39, .96), rgba(7, 35, 21, .98));
  box-shadow: inset 0 1px rgba(255, 239, 194, .12), 0 8px 20px rgba(0, 0, 0, .18);
}

#s-pay-detail #pd-qr {
  display: block;
  width: min(74vw, 330px);
  height: auto;
  margin: 18px auto;
  padding: 10px;
  border: 5px solid #e8c870;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}

#s-pay-detail #pd-copy-hint {
  color: #f1d996;
  font-weight: 700;
}

#s-pay-detail #pd-addr {
  overflow-wrap: anywhere;
  padding: 13px;
  border: 1px dashed rgba(236, 200, 120, .76);
  border-radius: 13px;
  color: #fff0cf;
  background: rgba(5, 26, 16, .72);
  font: 600 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

#s-pay-detail .inp-field,
#s-pay-detail input[type="file"] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid rgba(229, 192, 112, .68) !important;
  border-radius: 14px !important;
  color: #fff0d1 !important;
  background: #0a2818 !important;
}

#s-pay-detail #pd-submit-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border: 1px solid #f0d48a !important;
  border-radius: 17px !important;
  color: #fff0ca !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 800 16px Georgia, "Times New Roman", serif !important;
}

#s-pay-detail #pd-process {
  line-height: 1.7;
}

/* World Culture keeps its existing country data and tabs, with the shared brand. */
body:has(#countryGrid) {
  min-height: 100vh;
  color: #f8efdc !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(42, 109, 54, .52), transparent 46%),
    linear-gradient(160deg, #061d12, #0b351f 55%, #061a10) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body:has(#countryGrid) .header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(221, 185, 107, .62);
  background: rgba(5, 33, 19, .96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
}

body:has(#countryGrid) .header .back-btn,
body:has(#countryGrid) .header .globe {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(229, 192, 112, .68);
  border-radius: 12px;
  color: #fff0ca;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  text-decoration: none;
}

body:has(#countryGrid) #headerTitle {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #fff0d0;
  font-size: clamp(15px, 4vw, 19px);
}

body:has(#countryGrid) #headerTitle::before {
  flex: 0 0 auto;
  width: 88px;
  height: 28px;
  background: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1") center / contain no-repeat;
  content: "";
}

body:has(#countryGrid) #listView,
body:has(#countryGrid) #detailView {
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 14px;
}

body:has(#countryGrid) .search-bar {
  margin: 6px 0 14px;
}

body:has(#countryGrid) .search-bar input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid rgba(226, 187, 105, .78) !important;
  border-radius: 15px !important;
  color: #fff1d2 !important;
  background: rgba(7, 35, 21, .95) !important;
  font: 16px Georgia, "Times New Roman", serif !important;
}

body:has(#countryGrid) .country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
}

body:has(#countryGrid) .c-card,
body:has(#countryGrid) .info-card {
  border: 1px solid rgba(221, 185, 107, .62) !important;
  border-radius: 17px !important;
  color: #f7edda !important;
  background: linear-gradient(145deg, rgba(24, 78, 42, .96), rgba(7, 37, 22, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 239, 194, .12), 0 7px 18px rgba(0, 0, 0, .2) !important;
}

body:has(#countryGrid) .c-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
}

body:has(#countryGrid) .c-card .flag,
body:has(#countryGrid) .detail-flag {
  font-size: 26px;
}

body:has(#countryGrid) .c-card .cname {
  color: #fff0d0;
  font-weight: 700;
}

body:has(#countryGrid) .detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid rgba(224, 190, 114, .68);
  border-radius: 19px;
  background: linear-gradient(145deg, #164b2c, #082818);
}

body:has(#countryGrid) .detail-name {
  color: #ffedbc;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
}

body:has(#countryGrid) .tabs {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}

body:has(#countryGrid) .tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 181, 104, .56);
  border-radius: 13px;
  color: #f3e5c4;
  background: rgba(8, 37, 22, .86);
}

body:has(#countryGrid) .tab.active {
  border-color: #f2d67c;
  color: #493717;
  background: linear-gradient(145deg, #f7e6b2, #d8b966);
  font-weight: 800;
}

body:has(#countryGrid) .info-card {
  margin: 10px 0;
  padding: 16px;
  line-height: 1.65;
}

body:has(#countryGrid) .info-card h2,
body:has(#countryGrid) .info-card h3 {
  color: #b5df87;
}

body:has(#countryGrid) .tag {
  border: 1px solid rgba(222, 187, 108, .5);
  border-radius: 999px;
  color: #ffedc1;
  background: rgba(7, 39, 22, .82);
}

body:has(#countryGrid) .photo-grid img {
  border: 2px solid rgba(229, 195, 117, .72);
  border-radius: 15px;
  object-fit: cover;
}

body:has(#countryGrid) .back-to-list {
  position: sticky;
  bottom: 12px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 16px;
  border: 1px solid #ecd18a;
  border-radius: 14px;
  color: #fff0cc;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
}

@media (min-width: 760px) {
  #s-pay-detail .scroll {
    padding-inline: 24px !important;
  }
}

/* Member reference match: distinct carved plaques, leafy panels and paper
   inserts. These selectors only skin existing live controls and containers. */
#s-product .hdr,
#s-me .hdr,
#s-plandetail .back-hdr,
#s-mydev .back-hdr,
#s-tasks .back-hdr {
  min-height: 54px !important;
  padding-block: 6px !important;
}

#s-product .scroll,
#s-plandetail .scroll,
#s-mydev .scroll,
#s-tasks .scroll,
#s-checkin .scroll,
#s-wdpass .scroll,
#s-bank .scroll,
#s-wdproof .scroll,
#s-giftcode .scroll,
#s-support .scroll {
  box-sizing: border-box;
  min-height: 0;
  padding: 10px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#s-product #plans-list,
#s-tasks .scroll {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-product #plans-list,
#s-plandetail #pd-content,
#s-mydev #mydev-list,
#s-tasks #tasks-panel-regular,
#s-tasks #tasks-panel-milestone,
#s-tasks #tasks-panel-vipsalary,
#s-wdpass .scroll,
#s-bank .scroll,
#s-wdproof .scroll,
#s-giftcode .scroll,
#s-support .scroll {
  width: min(100%, 760px);
  margin-inline: auto;
}

#s-product .my-nodes-header-btn {
  min-height: 39px;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 226, 151, .88) !important;
  border-radius: 13px !important;
  color: #fff0ca !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 700 13px Georgia, "Times New Roman", serif !important;
}

#s-product #plans-list > article,
#s-product #plans-list > section,
#s-product #plans-list > .node-card,
#s-product #plans-list > [class*="plan-card"],
#s-product #plans-list > [class*="product-card"],
#s-product #plans-list > div:not(.loader):not(.empty) {
  border: 5px solid transparent !important;
  border-radius: 21px !important;
  background:
    linear-gradient(145deg, #123c1d, #082512) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 233, 166, .12), 0 7px 17px rgba(0, 0, 0, .3) !important;
}

#s-product #plans-list > article > :is(h2, h3, .plan-name, .node-title),
#s-product #plans-list > section > :is(h2, h3, .plan-name, .node-title),
#s-product #plans-list > .node-card > :is(h2, h3, .plan-name, .node-title),
#s-product #plans-list > [class*="plan-card"] > :is(h2, h3, .plan-name, .node-title),
#s-product #plans-list > [class*="product-card"] > :is(h2, h3, .plan-name, .node-title) {
  padding: 9px 11px;
  border: 1px solid rgba(255, 224, 146, .78);
  border-radius: 13px;
  color: #fff0c9 !important;
  background: var(--an-wood);
  text-align: center;
}

#s-plandetail #pd-title {
  max-width: 760px;
  margin: 8px auto 4px !important;
  padding: 11px 14px !important;
  border: 2px solid rgba(255, 224, 146, .82) !important;
  border-radius: 16px !important;
  color: #fff0c9 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  text-align: center;
}

#s-plandetail .pd-hero {
  padding: 0 !important;
  overflow: hidden;
  border: 4px solid #dcb75d !important;
  border-radius: 20px !important;
  background: #092512 !important;
}

#s-plandetail .pd-hero img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

#s-plandetail .pd-info,
#s-plandetail .pd-buyers {
  border-radius: 13px !important;
  background: var(--an-wood) !important;
}

#s-plandetail .pd-grid {
  gap: 9px !important;
}

#s-plandetail .pd-cell {
  border-radius: 11px !important;
  background:
    linear-gradient(145deg, rgba(255, 227, 160, .12), transparent 55%),
    linear-gradient(145deg, #174426, #082514) !important;
}

#s-plandetail .pd-desc {
  border-color: #ddc98e !important;
  color: #31432a !important;
  background:
    repeating-linear-gradient(0deg, rgba(88, 71, 39, .035) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #f7edcf, #e7d6a7) !important;
  line-height: 1.55;
}

#s-plandetail .btn-buy {
  width: 100%;
  min-height: 54px;
  font-size: 17px !important;
}

#s-mydev #node-income-summary {
  margin: 0 0 13px !important;
  padding: 12px !important;
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  color: #31402b !important;
  background:
    linear-gradient(145deg, #f6edcf, #ddc895) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fff8e3, 0 6px 15px rgba(0, 0, 0, .28) !important;
}

#s-mydev #node-total-income,
#s-mydev #node-total-count {
  display: inline-flex;
  min-width: min(100%, 140px);
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  margin: 3px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(122, 85, 36, .4);
  border-radius: 13px;
  color: #245638 !important;
  background: rgba(255, 251, 232, .72);
}

#s-mydev #mydev-list > article,
#s-mydev #mydev-list > section,
#s-mydev #mydev-list > div:not(.loader):not(.empty) {
  margin: 0 0 12px !important;
  padding: 13px !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(145deg, #123b1e, #082311) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .27) !important;
}

#s-mydev #node-income-hist {
  margin-top: 13px;
  padding: 12px !important;
  border: 1px solid rgba(235, 199, 119, .74);
  border-radius: 17px;
  color: #fff0cb;
  background: linear-gradient(145deg, #12391e, #071d0e);
}

/* Regular tasks use a vivid green reward board; milestone cards turn to
   warm parchment, while their navigation and upload controls remain intact. */
#s-tasks #tasks-panel-regular #tasks-list2 > article,
#s-tasks #tasks-panel-regular #tasks-list2 > section,
#s-tasks #tasks-panel-regular #tasks-list2 > div:not(.loader):not(.empty) {
  border: 4px solid transparent !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, #17652d, #0c3d20) padding-box,
    var(--an-wood) border-box !important;
}

#s-tasks #tasks-panel-milestone #ms-count {
  margin: 0 0 12px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(240, 213, 145, .78) !important;
  border-radius: 999px !important;
  color: #fff2ce !important;
  background: linear-gradient(100deg, #15502c, #082716) !important;
  text-align: center;
}

#s-tasks #tasks-panel-milestone #ms-list > article,
#s-tasks #tasks-panel-milestone #ms-list > section,
#s-tasks #tasks-panel-milestone #ms-list > div:not(.loader):not(.empty) {
  margin: 0 0 10px !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  color: #293c2a !important;
  background:
    linear-gradient(145deg, #fff4d7, #e8d7a8) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf1, 0 5px 12px rgba(0, 0, 0, .28) !important;
}

#s-tasks #tasks-panel-milestone .ms-title,
#s-tasks #tasks-panel-milestone .ms-sub {
  color: #283d2b !important;
}

#s-tasks #tasks-panel-milestone .ms-title {
  font-size: clamp(15px, 4vw, 19px) !important;
}

#s-tasks #tasks-panel-milestone .btn-ms,
#s-tasks #tasks-panel-milestone .btn-ms-claim,
#s-tasks #tasks-panel-milestone .btn-ms-done,
#s-tasks #tasks-panel-milestone .btn-ms-lock {
  color: #342614 !important;
  background: linear-gradient(180deg, #ffe9a4, #e3b949) !important;
  box-shadow: inset 0 1px #fff7ce, 0 3px 7px rgba(78, 50, 11, .24) !important;
}

#s-tasks #task-craft-gallery {
  margin-top: 12px !important;
}

#s-tasks .sf-media {
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  background:
    repeating-linear-gradient(135deg, rgba(255, 235, 190, .08) 0 5px, transparent 5px 12px),
    linear-gradient(145deg, #62391f, #351b10) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 228, 154, .22), 0 5px 13px rgba(0, 0, 0, .3) !important;
}

#s-tasks #tasks-panel-vipsalary .ci-hero,
#s-tasks #tasks-panel-vipsalary .ci-vip-card {
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  background:
    linear-gradient(145deg, #135126, #082613) padding-box,
    var(--an-wood) border-box !important;
}

#s-tasks #vs-reset-time,
#s-tasks #vs-local-window,
#s-tasks #vs-local-tz,
#s-tasks #vs-countdown {
  color: #fff0c8 !important;
}

/* Account and payout forms: wood frames around cream writing surfaces. */
#s-wdpass,
#s-bank,
#s-wdproof,
#s-giftcode,
#s-support {
  color: #fff1d0 !important;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(95, 149, 50, .22), transparent 46%),
    linear-gradient(180deg, #0b2913, #06170d 70%, #092311) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-wdpass .back-hdr,
#s-bank .back-hdr,
#s-wdproof .back-hdr,
#s-giftcode .back-hdr,
#s-support .back-hdr {
  min-height: 54px !important;
  padding: 6px 11px !important;
  border-bottom: 1px solid rgba(237, 202, 126, .72) !important;
  background: linear-gradient(180deg, #10351a, #071b0e) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .27) !important;
}

#s-wdpass #wdpass-status-msg,
#s-bank #bank-wdpass-warn {
  margin: 0 0 12px !important;
  padding: 13px 14px !important;
  border: 5px solid transparent !important;
  border-radius: 18px !important;
  color: #2b412d !important;
  background:
    linear-gradient(145deg, #fff4d6, #e7d5a5) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf2, 0 5px 13px rgba(0, 0, 0, .25) !important;
  line-height: 1.45;
}

#s-wdpass #wdpass-cur-wrap {
  margin: 0 0 14px !important;
  padding: 13px !important;
  border: 1px solid rgba(234, 197, 113, .75) !important;
  border-radius: 17px !important;
  color: #fff0cc !important;
  background: linear-gradient(145deg, #154727, #082613) !important;
}

#s-wdpass #wdpass-cur,
#s-wdpass #wdpass-new,
#s-wdpass #wdpass-confirm,
#s-bank input,
#s-bank select,
#s-bank textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px !important;
  border: 1px solid #527746 !important;
  border-radius: 13px !important;
  color: #263b2c !important;
  background:
    repeating-linear-gradient(0deg, rgba(92, 73, 39, .025) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #fff4d6, #f0e3bf) !important;
  box-shadow: inset 0 2px 4px rgba(82, 59, 23, .1) !important;
}

#s-wdpass input::placeholder,
#s-bank input::placeholder,
#s-bank textarea::placeholder {
  color: #7d806c !important;
}

#s-wdpass .btn-sub,
#s-bank .btn-sub,
#s-wdproof .btn-sub,
#s-giftcode .btn-sub {
  display: block;
  width: 100%;
  min-height: 49px;
  margin: 12px 0 !important;
  padding: 11px 15px !important;
  border: 2px solid rgba(255, 231, 164, .88) !important;
  border-radius: 17px !important;
  color: #fff2ce !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 167, .2), transparent 38%),
    linear-gradient(145deg, #1a7738, #0a3d20) !important;
  box-shadow: inset 0 1px rgba(255, 255, 225, .35), 0 5px 12px rgba(0, 0, 0, .29) !important;
  font: 800 15px Georgia, "Times New Roman", serif !important;
}

#s-bank #bk-cards-wrap {
  display: grid;
  gap: 13px;
  min-width: 0;
}

#s-bank #bk-cards-wrap > article,
#s-bank #bk-cards-wrap > section,
#s-bank #bk-cards-wrap > div:not(.loader):not(.empty) {
  min-width: 0;
  margin: 0 !important;
  padding: 14px !important;
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  color: #2d402c !important;
  background:
    linear-gradient(145deg, #fff3d4, #e8d5a3) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf1, 0 6px 15px rgba(0, 0, 0, .27) !important;
}

#s-bank #bk-cards-wrap > article:nth-child(even),
#s-bank #bk-cards-wrap > section:nth-child(even),
#s-bank #bk-cards-wrap > div:nth-child(even) {
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #15502b, #082512) padding-box,
    var(--an-wood) border-box !important;
}

#s-bank #bk-cards-wrap button,
#s-bank #bk-cards-wrap .btn-sub {
  min-height: 42px;
  border: 1px solid #e7c56c !important;
  border-radius: 14px !important;
  color: #fff1ce !important;
  background: linear-gradient(145deg, #176c34, #0b3c20) !important;
}

#s-bank #bk-modal {
  z-index: 9900 !important;
  padding: 14px !important;
  background: rgba(3, 15, 7, .78) !important;
  backdrop-filter: blur(3px);
}

#s-bank #bk-modal-title,
#s-bank #bk-modal-body {
  width: min(100%, 560px);
  margin-inline: auto;
}

#s-bank #bk-modal-title {
  padding: 12px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 17px 17px 0 0 !important;
  color: #fff1d0 !important;
  background: var(--an-wood) !important;
}

#s-bank #bk-modal-body {
  padding: 16px !important;
  border: 4px solid transparent !important;
  border-radius: 0 0 18px 18px !important;
  color: #2e422f !important;
  background:
    linear-gradient(145deg, #fff4d8, #e7d6a8) padding-box,
    var(--an-wood) border-box !important;
}

#s-wdproof .wdp-hero {
  margin: 0 0 13px !important;
  padding: 15px !important;
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  color: #fff1d0 !important;
  background:
    linear-gradient(145deg, #15512a, #082512) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .29) !important;
}

#s-wdproof #wdp-ss1,
#s-wdproof #wdp-ss2 {
  display: block;
  width: 100%;
  min-height: 112px;
  margin: 10px 0 !important;
  padding: 13px !important;
  border: 3px dashed #8c6a2e !important;
  border-radius: 16px !important;
  color: #31432e !important;
  background:
    repeating-linear-gradient(0deg, rgba(92, 73, 39, .04) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff2cf, #e9d7a7) !important;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 236, .4);
}

#s-wdproof #wdp-ss1::file-selector-button,
#s-wdproof #wdp-ss2::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 7px 13px;
  border: 1px solid #d9b859;
  border-radius: 12px;
  color: #fff2d0;
  background: linear-gradient(145deg, #19753a, #0a3b1f);
  font: 700 13px Georgia, "Times New Roman", serif;
}

#s-wdproof #wdp-list {
  margin-top: 14px !important;
  padding: 12px !important;
  border: 1px solid rgba(232, 196, 115, .68) !important;
  border-radius: 17px !important;
  color: #fff0cb !important;
  background: linear-gradient(145deg, #12391e, #071c0e) !important;
}

#s-giftcode .gift-hero {
  margin: 0 0 13px !important;
  padding: 15px !important;
  border: 2px solid rgba(255, 224, 146, .86) !important;
  border-radius: 17px 22px 17px 22px !important;
  color: #fff0cb !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  text-align: center;
}

#s-giftcode .gift-input-wrap {
  margin: 0 0 13px !important;
  padding: 14px !important;
  border: 5px solid transparent !important;
  border-radius: 21px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #14532a, #082613) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .28) !important;
}

#s-giftcode #gift-code-inp {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 12px 15px !important;
  border: 2px solid #276b37 !important;
  border-radius: 14px !important;
  color: #263c2b !important;
  background: linear-gradient(145deg, #fff4d4, #ead7a6) !important;
  font: 700 18px Georgia, "Times New Roman", serif !important;
  letter-spacing: .08em;
}

#s-giftcode #gift-hist-list {
  margin-top: 15px !important;
  padding: 12px !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(145deg, #123a1f, #071d0e) padding-box,
    var(--an-wood) border-box !important;
}

#s-support #support-links-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 13px !important;
  border: 5px solid transparent !important;
  border-radius: 21px !important;
  color: #2d402c !important;
  background:
    linear-gradient(145deg, #fff2d1, #e9d5a3) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 7px 17px rgba(0, 0, 0, .3) !important;
}

#s-support #support-links-list > a,
#s-support #support-links-list > button,
#s-support #support-links-list > div:not(.loader):not(.empty) {
  display: flex;
  min-width: 0;
  min-height: 67px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px !important;
  border: 1px solid rgba(255, 233, 175, .78) !important;
  border-radius: 15px !important;
  color: #f8f0d7 !important;
  background: linear-gradient(145deg, #176c37, #0a3c22) !important;
  box-shadow: inset 0 1px rgba(255, 255, 225, .18), 0 3px 8px rgba(0, 0, 0, .2);
}

#s-support #support-links-list > :nth-child(4n + 2):not(.loader):not(.empty) {
  background: linear-gradient(145deg, #176995, #123c63) !important;
}

#s-support #support-links-list > :nth-child(4n + 3):not(.loader):not(.empty) {
  background: linear-gradient(145deg, #245f8a, #14385f) !important;
}

#s-support #support-links-list > :nth-child(4n + 4):not(.loader):not(.empty) {
  background: linear-gradient(145deg, #70468e, #3e285c) !important;
}

#s-support #support-craft-gallery {
  margin-top: 13px !important;
  padding: 12px !important;
  border: 1px solid rgba(234, 197, 115, .7) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #12391e, #071b0e) !important;
}

#s-product .bnav,
#s-tasks .bnav {
  position: fixed !important;
  z-index: 30 !important;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 760px) !important;
  min-height: 64px;
  margin-inline: auto !important;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  border: 1px solid rgba(246, 211, 127, .86) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  background: var(--an-wood) !important;
  box-shadow: 0 -5px 18px rgba(0, 0, 0, .35), inset 0 2px rgba(255, 239, 197, .35) !important;
}

@media (min-width: 760px) {
  #s-product #plans-list,
  #s-plandetail #pd-content,
  #s-mydev #mydev-list,
  #s-tasks #tasks-panel-regular,
  #s-tasks #tasks-panel-milestone,
  #s-tasks #tasks-panel-vipsalary,
  #s-wdpass .scroll,
  #s-bank .scroll,
  #s-wdproof .scroll,
  #s-giftcode .scroll,
  #s-support .scroll {
    padding-inline: 20px !important;
  }

  #s-support #support-links-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #s-wdproof .scroll,
  #s-wdpass .scroll,
  #s-giftcode .scroll {
    max-width: 700px;
  }
}

@media (max-width: 390px) {
  #s-product .scroll,
  #s-plandetail .scroll,
  #s-mydev .scroll,
  #s-tasks .scroll,
  #s-checkin .scroll,
  #s-wdpass .scroll,
  #s-bank .scroll,
  #s-wdproof .scroll,
  #s-giftcode .scroll,
  #s-support .scroll {
    padding-inline: 8px !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #s-product #plans-list,
  #s-tasks .scroll {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #s-plandetail .pd-grid {
    gap: 6px !important;
  }

  #s-plandetail .pd-cell {
    padding: 8px !important;
  }
}

/* Reference-driven structure for the remaining authenticated screens. */
#s-wdpass .back-title,
#s-bank .back-title,
#s-wdproof .back-title,
#s-giftcode .back-title,
#s-support .back-title {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

#s-wdpass .back-title::before,
#s-bank .back-title::before,
#s-wdproof .back-title::before,
#s-giftcode .back-title::before,
#s-support .back-title::before {
  content: "";
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 24px;
  background: var(--an-logo-lockup) center / contain no-repeat;
}

#s-plandetail .back-hdr,
#s-mydev .back-hdr,
#s-checkin .back-hdr,
#s-tasks .back-hdr,
#s-wdpass .back-hdr,
#s-bank .back-hdr,
#s-wdproof .back-hdr,
#s-giftcode .back-hdr,
#s-support .back-hdr {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  height: 60px !important;
  min-height: 60px !important;
  padding: 5px 12px !important;
}

#s-plandetail .back-title,
#s-mydev .back-title,
#s-checkin .back-title,
#s-tasks .back-title,
#s-wdpass .back-title,
#s-bank .back-title,
#s-wdproof .back-title,
#s-giftcode .back-title,
#s-support .back-title {
  flex: 1 1 auto;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap;
}

#s-product #plans-list > div:not(.loader):not(.empty) {
  padding: 10px !important;
  border-width: 5px !important;
}

#s-product #plans-list .pc-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(190px, 57vw, 290px);
  min-height: 190px;
  overflow: hidden;
  border: 3px solid var(--an-gold) !important;
  border-radius: 18px !important;
  background: #092713 !important;
  box-shadow: inset 0 0 0 2px rgba(255, 242, 204, .45), 0 5px 14px rgba(0, 0, 0, .4);
}

#s-product #plans-list .pc-img-wrap img,
#s-product #plans-list .an-plan-media-sequence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#s-product #plans-list .an-plan-media-sequence {
  min-height: 100%;
}

#s-product #plans-list .pc-img-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 12px 10px !important;
  color: var(--an-cream) !important;
  text-shadow: 0 2px 3px #000;
  background: linear-gradient(180deg, transparent, rgba(3, 16, 7, .88)) !important;
}

#s-product #plans-list .pc-vip-badge,
#s-product #plans-list .pc-lock-badge,
#s-product #plans-list .pc-live-badge {
  border: 2px solid var(--an-gold) !important;
  border-radius: 999px !important;
  box-shadow: var(--an-wood-edge), 0 2px 6px rgba(0, 0, 0, .45);
}

#s-product #plans-list .pc-vip-badge,
#s-product #plans-list .pc-lock-badge {
  background: var(--an-wood) !important;
  color: var(--an-cream) !important;
}

#s-product #plans-list .pc-live-badge {
  background: linear-gradient(135deg, #1f8b37, #075321) !important;
  color: #fff5cb !important;
}

#s-product #plans-list .pc-body {
  padding: 10px 2px 2px !important;
}

#s-product #plans-list .pc-name {
  padding: 9px 12px !important;
  border: 3px solid var(--an-gold) !important;
  border-radius: 13px !important;
  color: var(--an-cream) !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-product #plans-list .pc-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  margin-top: 10px !important;
}

#s-product #plans-list .pc-stat-cell {
  min-width: 0;
  padding: 10px !important;
  border: 1px solid rgba(157, 213, 94, .42) !important;
  border-radius: 12px !important;
  color: var(--an-cream) !important;
  background: linear-gradient(145deg, #15572b, #092c18) !important;
}

#s-product #plans-list .pc-stat-cell .sk {
  color: #b7d891 !important;
}

#s-product #plans-list .pc-stat-cell .sv {
  color: var(--an-gold-light) !important;
  font-weight: 900 !important;
}

#s-mydev #node-income-summary :not(#node-total-income):not(#node-total-count) {
  color: var(--an-cream-muted) !important;
}

#s-product #plans-list .pc-stat-cell .su {
  color: var(--an-cream-muted) !important;
}

#s-plandetail .pd-hero {
  overflow: hidden;
  border: 4px solid var(--an-gold) !important;
  border-radius: 20px !important;
  box-shadow: var(--an-wood-edge);
}

#s-plandetail .pd-info {
  margin-top: 10px !important;
  padding: 12px !important;
  border: 4px solid transparent !important;
  border-radius: 16px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(10, 75, 34, .98), rgba(4, 34, 18, .98)) padding-box,
    var(--an-wood) border-box !important;
}

#s-plandetail .pd-name {
  color: var(--an-cream) !important;
  font: 800 20px/1.2 Georgia, "Times New Roman", serif !important;
}

#s-plandetail .pd-grid {
  margin-top: 12px !important;
}

#s-plandetail .pd-cell {
  border: 1px solid rgba(229, 188, 99, .48) !important;
  color: var(--an-cream) !important;
  background: rgba(2, 28, 13, .58) !important;
}

#s-plandetail .pd-footer {
  position: sticky;
  bottom: 0;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 2px solid var(--an-gold) !important;
  background: rgba(5, 40, 20, .97) !important;
}

#s-plandetail .pd-price {
  color: var(--an-gold-light) !important;
  font-weight: 900 !important;
}

#s-plandetail .btn-purchase {
  border: 3px solid var(--an-gold-light) !important;
  border-radius: 999px !important;
  color: #fff4d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-mydev #node-income-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px !important;
  padding: 12px !important;
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(7, 75, 35, .97), rgba(4, 38, 19, .97)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge);
}

#s-mydev #node-total-income,
#s-mydev #node-total-count {
  display: flex !important;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 10px !important;
  border: 1px solid rgba(229, 188, 99, .42) !important;
  border-radius: 12px !important;
  color: var(--an-gold-light) !important;
  background: rgba(2, 29, 14, .7) !important;
  font-weight: 900 !important;
}

#s-mydev .mdev {
  margin: 12px 0 !important;
  padding: 12px !important;
  border: 5px solid transparent !important;
  border-radius: 19px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(11, 79, 39, .98), rgba(4, 37, 19, .98)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge), 0 8px 18px rgba(0, 0, 0, .27);
}

#s-mydev .mdev-hdr {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 9px 10px !important;
  border: 2px solid var(--an-gold) !important;
  border-radius: 13px !important;
  color: var(--an-cream) !important;
  background: var(--an-wood) !important;
}

#s-mydev .mdev-name {
  color: var(--an-cream) !important;
  font: 800 16px/1.25 Georgia, "Times New Roman", serif !important;
}

#s-mydev .mdev-status,
#s-mydev .mdev-pend {
  border: 1px solid rgba(245, 217, 146, .45) !important;
  border-radius: 999px !important;
  color: var(--an-gold-light) !important;
  background: rgba(12, 57, 27, .92) !important;
}

#s-mydev .mdev-prog {
  margin: 10px 0 !important;
  color: var(--an-cream-muted) !important;
}

#s-mydev .mdev-prog-bar {
  overflow: hidden;
  border: 1px solid rgba(245, 217, 146, .6) !important;
  border-radius: 999px !important;
  background: #14341c !important;
}

#s-mydev .mdev-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
}

#s-mydev .mdev-cell {
  min-width: 0;
  padding: 9px !important;
  border: 1px solid rgba(141, 202, 95, .38) !important;
  border-radius: 11px !important;
  color: var(--an-cream) !important;
  background: rgba(2, 32, 15, .55) !important;
}

#s-mydev .mdev-cell .mk {
  color: #b4d88a !important;
}

#s-mydev .mdev-cell .mv {
  color: var(--an-gold-light) !important;
  font-weight: 900 !important;
}

#s-mydev .btn-collect {
  border: 3px solid var(--an-gold-light) !important;
  border-radius: 999px !important;
  color: #fff3cf !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-checkin .ci-page {
  padding: 10px 12px 24px !important;
}

#s-checkin .ci-hero,
#s-checkin .ci-vip-card,
#s-checkin .ci-info-card {
  border: 5px solid transparent !important;
  border-radius: 19px !important;
  background:
    linear-gradient(145deg, rgba(8, 72, 33, .97), rgba(4, 34, 17, .98)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge);
}

#s-checkin .ci-reward-panel,
#s-checkin .ci-status-card,
#s-checkin .ci-streak-card {
  border: 1px solid rgba(240, 207, 124, .55) !important;
  border-radius: 14px !important;
  color: var(--an-cream) !important;
  background: rgba(2, 31, 15, .76) !important;
}

#s-checkin .ci-title,
#s-checkin .ci-reward-number {
  color: var(--an-gold-light) !important;
}

#s-checkin .ci-claim-btn {
  border: 3px solid var(--an-gold-light) !important;
  border-radius: 999px !important;
  color: #fff4d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-milestone .btn-ms {
  border: 2px solid var(--an-gold-light) !important;
  border-radius: 999px !important;
  color: #fff4d0 !important;
  background: var(--an-wood) !important;
}

#s-tasks #tasks-panel-milestone .btn-ms-claim {
  color: #fff4d0 !important;
  background: linear-gradient(135deg, #1b9438, #07501f) !important;
}

#s-tasks #tasks-panel-milestone .btn-ms-lock {
  color: #fff0cb !important;
  background: linear-gradient(135deg, #744322, #3e210f) !important;
}

#s-tasks #task-craft-gallery {
  margin-top: 13px !important;
  padding: 12px !important;
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(7, 67, 31, .96), rgba(3, 32, 15, .96)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge);
}

#s-tasks .an-task-craft {
  overflow: hidden;
  border: 3px solid var(--an-gold) !important;
  border-radius: 16px !important;
  background: #0c351c !important;
}

#s-tasks .an-task-craft-head {
  color: var(--an-gold-light) !important;
}

#s-tasks .an-task-craft-copy {
  color: var(--an-cream) !important;
}

#s-tasks .an-task-craft-caption {
  color: var(--an-cream-muted) !important;
}

#s-wdpass .scroll > div:first-child {
  box-sizing: border-box;
  margin: 12px !important;
  width: calc(100% - 24px);
}

#s-wdpass .scroll > div:first-child > .form-group {
  padding: 0 3px;
}

#s-wdpass .scroll > div:first-child > .btn-sub {
  width: 100%;
  min-height: 54px;
}

#s-bank #bk-cards-wrap > div:not(.loader):not(.empty) {
  overflow: hidden;
}

#s-bank #bk-cards-wrap > div:nth-child(2n):not(.loader):not(.empty) {
  color: #261a0a !important;
  background:
    linear-gradient(145deg, #fff1cd, #e7d09a) padding-box,
    var(--an-wood) border-box !important;
}

#s-bank #bk-cards-wrap > div:nth-child(3n):not(.loader):not(.empty) {
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(7, 68, 32, .98), rgba(3, 33, 16, .98)) padding-box,
    var(--an-wood) border-box !important;
}

#s-bank #bk-modal-body .form-group {
  margin: 12px 0 !important;
}

#s-bank #bk-modal-body .form-label {
  color: #244b25 !important;
}

#s-bank #bk-modal-body .inp-field {
  border: 2px solid #438447 !important;
  border-radius: 12px !important;
  color: #281d0c !important;
  background: #fff2d1 !important;
}

#s-bank #bk-modal-body .btn-sub {
  border: 2px solid var(--an-gold-light) !important;
  border-radius: 999px !important;
  color: #fff4d0 !important;
  background: linear-gradient(135deg, #1b9438, #07501f) !important;
}

#s-wdproof .wdp-hero {
  margin: 10px 12px 0 !important;
  padding: 15px !important;
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(7, 69, 32, .98), rgba(3, 33, 16, .98)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge);
}

#s-wdproof .wdp-title {
  color: var(--an-gold-light) !important;
  font: 900 22px/1.2 Georgia, "Times New Roman", serif !important;
}

#s-wdproof .scroll > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px !important;
  margin: 0 12px !important;
  padding: 12px !important;
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(5, 48, 23, .98), rgba(3, 30, 14, .98)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge);
}

#s-wdproof .scroll > div:nth-child(2) > .btn-sub {
  min-height: 54px;
}

#s-giftcode .gift-hero {
  margin: 10px 12px 13px !important;
  border-width: 4px !important;
  border-radius: 18px !important;
}

#s-giftcode .gift-title {
  color: var(--an-gold-light) !important;
  font: 900 23px/1.2 Georgia, "Times New Roman", serif !important;
}

#s-giftcode .scroll > div:nth-child(3) {
  padding: 0 12px !important;
}

#s-support #support-links-list > .support-btn:nth-child(odd):not(.loader):not(.empty) {
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(9, 76, 36, .98), rgba(3, 34, 16, .98)) padding-box,
    var(--an-wood) border-box !important;
}

#s-support #support-links-list > .support-btn:nth-child(even):not(.loader):not(.empty) {
  color: #2b1c0a !important;
  background:
    linear-gradient(145deg, #fff1cf, #e7d09b) padding-box,
    var(--an-wood) border-box !important;
}

#s-support .support-craft-image {
  border: 3px solid var(--an-gold) !important;
  border-radius: 13px !important;
}

#s-support .support-craft-caption,
#s-support .support-craft-copy {
  color: var(--an-cream) !important;
}

@media (max-width: 370px) {
  #s-wdproof .scroll > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
  }

  #s-wdproof .scroll > div:nth-child(2) > div:first-child,
  #s-wdproof .scroll > div:nth-child(2) > .btn-sub {
    grid-column: 1;
  }
}

#s-bank #bk-cards-wrap > div:first-child:not(.loader):not(.empty) {
  color: var(--an-cream) !important;
  background: var(--an-wood) !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
}

#s-wdproof .scroll > div:nth-child(2) > div:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  padding: 7px 8px 0 !important;
  color: var(--an-gold-light) !important;
}

#s-wdproof .scroll > div:nth-child(2) > #wdp-ss1 {
  grid-column: 1;
  grid-row: 3;
  margin: 0 !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  padding: 7px 8px 0 !important;
  color: var(--an-gold-light) !important;
}

#s-wdproof .scroll > div:nth-child(2) > #wdp-ss2 {
  grid-column: 2;
  grid-row: 3;
  margin: 0 !important;
}

#s-wdproof .scroll > div:nth-child(2) > .btn-sub {
  grid-column: 1 / -1;
  grid-row: 4;
}

@media (max-width: 370px) {
  #s-wdproof .scroll > div:nth-child(2) > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  #s-wdproof .scroll > div:nth-child(2) > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  #s-wdproof .scroll > div:nth-child(2) > #wdp-ss1 {
    grid-column: 1;
    grid-row: 3;
  }

  #s-wdproof .scroll > div:nth-child(2) > div:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }

  #s-wdproof .scroll > div:nth-child(2) > #wdp-ss2 {
    grid-column: 1;
    grid-row: 5;
  }

  #s-wdproof .scroll > div:nth-child(2) > .btn-sub {
    grid-column: 1;
    grid-row: 6;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Reference compositions: the wallet, history, network and task screens each
   get their own crafted surface language. These are drawn from CSS only; the
   existing PHP content, controls, and fixed navigation remain untouched.
   ────────────────────────────────────────────────────────────────────────── */

#s-home,
#s-wdhist,
#s-gamewallet,
#s-notif,
#s-earnhist,
#s-incomehist,
#s-team,
#s-support,
#s-tasks {
  --an-panel-ink: #102316;
  --an-paper: #f5e8c7;
  --an-paper-deep: #dfc892;
  --an-carve: #613316;
  --an-carve-light: #b87631;
  --an-jade: #0b5726;
  --an-jade-bright: #16833a;
}

/* The home screen is a compact, layered entry point, not a stack of generic
   dashboard tiles. Preserve the existing two-up wallet/check-in rhythm. */
#s-home .hdr {
  min-height: 68px !important;
  border-bottom: 2px solid #c9953d !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .38), inset 0 -1px rgba(255, 226, 156, .32) !important;
}

#s-home #home-scroll {
  align-content: start;
  padding: 10px 10px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-home #ci-home-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px 18px 24px 18px !important;
}

#s-home #ci-home-card::after {
  position: absolute;
  z-index: -1;
  right: -23px;
  bottom: -31px;
  width: 116px;
  height: 104px;
  border: 1px solid rgba(105, 130, 57, .21);
  border-radius: 70% 20% 70% 30%;
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(87, 110, 50, .08) 9px 10px);
  content: "";
  transform: rotate(-20deg);
}

#s-home #dev-widget-wrap .dev-widget {
  border-radius: 19px 24px 18px 24px !important;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(155, 202, 79, .16), transparent 43%),
    linear-gradient(150deg, #10451f 0%, #082415 70%, #173b1a) !important;
}

#s-home .bal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 198, 119, .88) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(115deg, rgba(255, 244, 210, .08), transparent 42%),
    linear-gradient(145deg, #164526, #082415) !important;
  box-shadow: inset 0 1px rgba(255, 240, 192, .18), 0 5px 13px rgba(0, 0, 0, .29) !important;
}

#s-home .an-home-access-card {
  border: 1px solid rgba(255, 226, 147, .92) !important;
  border-radius: 16px 22px 16px 22px !important;
  box-shadow: inset 0 1px rgba(255, 242, 201, .28), 0 4px 10px rgba(0, 0, 0, .3) !important;
}

#s-home .btn-rch,
#s-home .btn-wd,
#s-home button[onclick*="openWalletHistory"],
#s-home #pwa-install-btn {
  min-height: 43px;
  border-radius: 16px 11px 16px 11px !important;
  box-shadow: inset 0 1px rgba(255, 241, 196, .24), 0 4px 9px rgba(0, 0, 0, .3) !important;
}

/* Transaction history: narrow, individually framed ledger rows on a dark
   forest board, with the wallet filters kept as a distinct wooden rail. */
#s-wdhist {
  color: var(--an-paper) !important;
  background:
    radial-gradient(ellipse at 50% -14%, rgba(93, 153, 50, .25), transparent 44%),
    linear-gradient(180deg, #0d3519, #06170d 70%, #0b2814) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-wdhist .back-hdr,
#s-gamewallet .back-hdr,
#s-notif .back-hdr,
#s-earnhist .back-hdr,
#s-incomehist .back-hdr {
  min-height: 58px !important;
  padding: 7px 12px !important;
  border-bottom: 2px solid #ba8232 !important;
  background:
    linear-gradient(90deg, rgba(255, 220, 144, .08), transparent 35%),
    linear-gradient(180deg, #164a26, #082313) !important;
  box-shadow: 0 4px 13px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 229, 166, .18) !important;
}

#s-wdhist .scroll {
  padding: 11px 11px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 100% 30%, rgba(127, 170, 66, .11), transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 244, 212, .012) 35px 36px);
}

#s-wdhist .walhist-tabs,
#s-wdhist .hist-tabs,
#s-wdhist .wallet-tabs {
  display: flex;
  gap: 7px;
  padding: 8px !important;
  overflow-x: auto;
  border: 3px solid transparent !important;
  border-radius: 19px !important;
  background:
    linear-gradient(145deg, #103d20, #092515) padding-box,
    var(--an-wood) border-box !important;
  scrollbar-width: thin;
}

#s-wdhist .walhist-tabs > *,
#s-wdhist .hist-tabs > *,
#s-wdhist .wallet-tabs > * {
  flex: 1 0 auto;
  min-height: 41px;
  border: 1px solid rgba(235, 195, 99, .72) !important;
  border-radius: 999px !important;
  color: #fff0c8 !important;
  background: linear-gradient(145deg, #174d29, #092917) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

#s-wdhist #wdhist-list {
  display: grid;
  gap: 9px;
  padding: 10px 0 0 !important;
}

#s-wdhist #wdhist-list > article,
#s-wdhist #wdhist-list > section,
#s-wdhist #wdhist-list > div:not(.loader):not(.empty) {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 !important;
  padding: 10px !important;
  border: 4px solid transparent !important;
  border-radius: 15px 19px 15px 19px !important;
  color: #fff0ce !important;
  background:
    linear-gradient(145deg, #173c20, #092515) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 238, 189, .13), 0 4px 10px rgba(0, 0, 0, .28) !important;
}

#s-wdhist #wdhist-list img,
#s-wdhist #wdhist-list .icon,
#s-wdhist #wdhist-list [class*="icon"] {
  max-width: 46px;
  border-radius: 11px;
}

#s-wdhist #wdhist-list :is(strong, b, [class*="amount"], [class*="amt"]) {
  color: #82e36a !important;
}

/* Game wallet: a vibrant purple game-board balance above separate transfer
   and add-funds workbenches. */
#s-gamewallet {
  color: var(--an-paper) !important;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(103, 42, 144, .3), transparent 38%),
    radial-gradient(ellipse at 4% 60%, rgba(113, 166, 50, .16), transparent 33%),
    linear-gradient(180deg, #102d18, #07180e 70%, #123b1d) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-gamewallet .scroll {
  padding: 12px 12px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  -webkit-overflow-scrolling: touch;
}

#s-gamewallet .scroll > * {
  max-width: 720px;
  margin-inline: auto;
}

#s-gamewallet .scroll > div:first-child,
#s-gamewallet [class*="balance"],
#s-gamewallet [class*="hero"] {
  border-radius: 20px !important;
}

#s-gamewallet .scroll > div:first-child {
  border: 5px solid transparent !important;
  color: #e9ffcd !important;
  background:
    linear-gradient(145deg, #38105e, #761c91 58%, #321044) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 2px rgba(255, 242, 203, .26), 0 7px 15px rgba(0, 0, 0, .36) !important;
}

#s-gamewallet .scroll > div:nth-child(2),
#s-gamewallet .scroll > div:nth-child(3),
#s-gamewallet .scroll > div:nth-child(4) {
  margin-top: 12px !important;
  padding: 13px !important;
  border: 5px solid transparent !important;
  border-radius: 22px 17px 22px 17px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(145deg, #884318, #54280f 48%, #9c511d) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 188, .24), 0 6px 13px rgba(0, 0, 0, .31) !important;
}

#s-gamewallet input,
#s-gamewallet select {
  min-height: 47px;
  border: 2px solid #e1bc5f !important;
  border-radius: 14px !important;
  color: #fff1d0 !important;
  background: linear-gradient(145deg, #553014, #341d10) !important;
}

#s-gamewallet button {
  min-height: 43px;
  border: 2px solid #edcb6f !important;
  border-radius: 14px !important;
  color: #fff3d1 !important;
  background: linear-gradient(180deg, #1ab63e, #087329) !important;
  box-shadow: inset 0 1px rgba(255, 255, 220, .34), 0 4px 8px rgba(0, 0, 0, .32) !important;
}

/* Notifications intentionally turn into a bright parchment bulletin pinned
   to a leafy frame, unlike the dark ledger screens. */
#s-notif {
  color: #2c2619 !important;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(178, 203, 77, .33), transparent 45%),
    linear-gradient(180deg, #829e34, #526f25 46%, #24421c) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-notif .scroll {
  padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 0 50%, rgba(225, 231, 145, .2), transparent 27%),
    radial-gradient(ellipse at 100% 100%, rgba(221, 227, 135, .16), transparent 28%);
}

#s-notif #notif-list {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px !important;
  border: 5px solid transparent;
  border-radius: 20px 25px 18px 24px;
  background:
    linear-gradient(145deg, rgba(255, 240, 201, .76), rgba(229, 205, 151, .72)) padding-box,
    var(--an-wood) border-box;
  box-shadow: inset 0 1px #fff8e1, 0 7px 16px rgba(29, 40, 13, .34);
}

#s-notif #notif-list > article,
#s-notif #notif-list > section,
#s-notif #notif-list > div:not(.loader):not(.empty) {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  margin: 0 !important;
  padding: 11px !important;
  border: 1px solid #c9aa5e !important;
  border-radius: 17px 21px 17px 21px !important;
  color: #302619 !important;
  background:
    linear-gradient(145deg, #fff3d4, #f0ddb1) !important;
  box-shadow: inset 0 1px #fffdf3, 0 3px 7px rgba(77, 55, 18, .15) !important;
}

#s-notif #notif-list :is(small, time, [class*="date"], [class*="time"]) {
  color: #655536 !important;
}

/* Earnings ledger: green transaction board with a separate summary, filter
   shelf and shortcut bars. */
#s-earnhist {
  color: var(--an-paper) !important;
  background:
    radial-gradient(ellipse at 50% -9%, rgba(102, 167, 53, .24), transparent 42%),
    linear-gradient(180deg, #0c351a, #06180d 72%, #16401d) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-earnhist .scroll {
  padding: 11px 12px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-earnhist #earnhist-list {
  display: grid;
  gap: 8px;
  max-width: 850px;
  margin: 10px auto 0 !important;
  padding: 10px !important;
  border: 4px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #073018, #092817) padding-box,
    var(--an-wood) border-box;
  box-shadow: inset 0 1px rgba(255, 229, 163, .12), 0 6px 14px rgba(0, 0, 0, .3);
}

#s-earnhist #earnhist-list > article,
#s-earnhist #earnhist-list > section,
#s-earnhist #earnhist-list > div:not(.loader):not(.empty) {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(199, 220, 143, .5) !important;
  border-radius: 15px !important;
  color: #f8efd6 !important;
  background: linear-gradient(145deg, #143b1d, #092717) !important;
}

#s-earnhist #earnhist-list :is(strong, b, [class*="amount"], [class*="amt"]) {
  color: #71e89b !important;
  white-space: nowrap;
}

#s-earnhist #earnhist-list img,
#s-earnhist #earnhist-list [class*="icon"] {
  max-width: 46px;
  border-radius: 12px;
}

/* Income history reads as a single board: a rich green totals panel, carved
   filter rail, and discrete deep-green entry rows. */
#s-incomehist {
  color: var(--an-paper) !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(119, 170, 57, .2), transparent 42%),
    linear-gradient(180deg, #0d351a, #07190e 74%, #143d1d) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-incomehist .scroll {
  padding: 11px 12px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-incomehist #incomehist-summary {
  margin: 0 0 10px !important;
  padding: 14px !important;
  border: 4px solid transparent !important;
  border-radius: 21px 18px 23px 18px !important;
  color: #fff0ca !important;
  background:
    radial-gradient(ellipse at 93% 0, rgba(166, 209, 75, .17), transparent 42%),
    linear-gradient(145deg, #0b5b27, #063317) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 236, 183, .19), 0 6px 14px rgba(0, 0, 0, .29) !important;
}

#s-incomehist #incomehist-list {
  display: grid;
  gap: 8px;
  margin: 10px auto 0 !important;
  padding: 10px !important;
  border: 4px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #073017, #0b2c17) padding-box,
    var(--an-wood) border-box;
}

#s-incomehist #incomehist-list > article,
#s-incomehist #incomehist-list > section,
#s-incomehist #incomehist-list > div:not(.loader):not(.empty) {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 !important;
  padding: 11px !important;
  border: 1px solid rgba(204, 224, 148, .52) !important;
  border-radius: 16px 20px 16px 20px !important;
  color: #fff0d1 !important;
  background:
    linear-gradient(90deg, rgba(255, 244, 212, .035), transparent 48%),
    linear-gradient(145deg, #16451f, #0a2b17) !important;
}

#s-incomehist #incomehist-list :is(strong, b, [class*="amount"], [class*="amt"]) {
  color: #69ed9c !important;
  white-space: nowrap;
}

#s-incomehist #incomehist-list img,
#s-incomehist #incomehist-list [class*="icon"] {
  max-width: 48px;
  border-radius: 13px;
}

/* Network screen: a single carved stat banner, rounded level selectors and
   broad member cards echo the reference's treehouse/team-board composition. */
#s-team .scroll {
  padding: 11px 12px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-team .team-top {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 !important;
  padding: 9px !important;
  border: 4px solid transparent !important;
  border-radius: 18px 25px 18px 25px !important;
  background:
    linear-gradient(110deg, #74401f, #a45f29 50%, #603116) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge), inset 0 1px rgba(255, 238, 183, .2) !important;
}

#s-team .team-stat {
  padding: 8px 6px !important;
  border-inline-end-color: rgba(255, 226, 159, .42) !important;
  text-align: center;
}

#s-team .team-stat .tk {
  color: #fff0ca !important;
}

#s-team .team-stat .tv {
  color: #ffdf52 !important;
}

#s-team .team-tabs {
  margin-bottom: 12px;
  padding: 8px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  background:
    linear-gradient(145deg, #103d20, #082414) padding-box,
    var(--an-wood) border-box !important;
}

#s-team .ttab {
  min-height: 43px;
  border-radius: 999px !important;
}

#s-team .ttab.active {
  color: #34250c !important;
  background: linear-gradient(180deg, #fff085, #e8ad28) !important;
  box-shadow: inset 0 1px #fff8c2, 0 3px 8px rgba(0, 0, 0, .3) !important;
}

#s-team .member-card,
#s-team #team-list > article,
#s-team #team-list > section,
#s-team #team-list > div:not(.loader):not(.empty) {
  border: 4px solid transparent !important;
  border-radius: 21px 17px 22px 17px !important;
  background:
    linear-gradient(145deg, #075326, #0b3a20) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .14), 0 6px 13px rgba(0, 0, 0, .31) !important;
}

/* Support has a warm help-board surface, while the actual channel actions
   remain boldly distinguishable by their existing order and labels. */
#s-support {
  background:
    radial-gradient(ellipse at 50% 3%, rgba(173, 188, 75, .24), transparent 43%),
    linear-gradient(180deg, #5b792a, #24451e 58%, #102b17) !important;
}

#s-support .scroll {
  padding: 12px 12px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  border: 5px solid transparent;
  border-radius: 23px 26px 20px 24px;
  background:
    linear-gradient(145deg, rgba(255, 238, 196, .96), rgba(224, 199, 139, .96)) padding-box,
    var(--an-wood) border-box;
  box-shadow: inset 0 1px #fff8df, 0 7px 17px rgba(0, 0, 0, .3);
}

#s-support #support-links-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px !important;
  margin: 10px 0 !important;
  padding: 0 !important;
}

#s-support #support-links-list > a,
#s-support #support-links-list > button,
#s-support #support-links-list > div:not(.loader):not(.empty) {
  min-height: 75px;
  border: 4px solid transparent !important;
  border-radius: 17px 22px 17px 22px !important;
  box-shadow: inset 0 1px rgba(255, 242, 203, .24), 0 4px 9px rgba(54, 38, 13, .27) !important;
}

#s-support #support-links-list > :nth-child(4n + 1):not(.loader):not(.empty),
#s-support #support-links-list > :nth-child(4n + 2):not(.loader):not(.empty) {
  color: #fff1d1 !important;
  background:
    linear-gradient(145deg, #0e7c35, #075124) padding-box,
    var(--an-wood) border-box !important;
}

#s-support #support-links-list > :nth-child(4n + 3):not(.loader):not(.empty) {
  color: #e5f6ff !important;
  background:
    linear-gradient(145deg, #0874ad, #06406e) padding-box,
    var(--an-wood) border-box !important;
}

#s-support #support-links-list > :nth-child(4n + 4):not(.loader):not(.empty) {
  color: #fff0d3 !important;
  background:
    linear-gradient(145deg, #75389c, #43205e) padding-box,
    var(--an-wood) border-box !important;
}

/* Tasks: preserve the three-tab workflow, but make each mode visually read
   like its reference—green one-time selfie task, parchment milestones, and a
   dark VIP board with a separately carved locked claim row. */
#s-tasks .scroll {
  padding: 10px 12px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-tasks .task-stabs {
  position: sticky;
  top: 0;
  z-index: 3;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, #0a3219, #061b10) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
}

#s-tasks .task-stab {
  min-height: 44px;
  border-radius: 999px !important;
}

#s-tasks .task-stab.active {
  color: #34250b !important;
  background: linear-gradient(180deg, #fff08b, #e9b229) !important;
}

#s-tasks #tasks-panel-regular #tasks-list2 > article,
#s-tasks #tasks-panel-regular #tasks-list2 > section,
#s-tasks #tasks-panel-regular #tasks-list2 > div:not(.loader):not(.empty) {
  border: 4px solid transparent !important;
  border-radius: 21px 17px 22px 17px !important;
  background:
    linear-gradient(145deg, #08712e, #064521) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 246, 196, .15), 0 6px 13px rgba(0, 0, 0, .29) !important;
}

#s-tasks #tasks-panel-regular .sf-media,
#s-tasks #tasks-panel-milestone #task-craft-gallery,
#s-tasks #tasks-panel-regular .an-task-craft {
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  background:
    repeating-linear-gradient(135deg, rgba(255, 234, 181, .07) 0 5px, transparent 5px 12px),
    linear-gradient(145deg, #71401d, #351d10) padding-box,
    var(--an-wood) border-box !important;
}

#s-tasks #tasks-panel-milestone #ms-list > article,
#s-tasks #tasks-panel-milestone #ms-list > section,
#s-tasks #tasks-panel-milestone #ms-list > div:not(.loader):not(.empty) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, auto);
  align-items: center;
  gap: 8px 12px;
  padding: 12px !important;
  border-radius: 20px 17px 21px 17px !important;
  background:
    linear-gradient(145deg, #fff5d8, #e7d4a2) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf1, 0 5px 12px rgba(0, 0, 0, .25) !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-progress,
#s-tasks #tasks-panel-milestone #ms-list .ms-bar {
  border-color: rgba(96, 130, 50, .5) !important;
  background: #e4dfb2 !important;
}

#s-tasks #tasks-panel-vipsalary .ci-hero,
#s-tasks #tasks-panel-vipsalary .ci-vip-card,
#s-tasks #tasks-panel-vipsalary .ci-info-card {
  border: 4px solid transparent !important;
  border-radius: 22px 17px 22px 17px !important;
  background:
    radial-gradient(ellipse at 90% 0, rgba(169, 216, 64, .2), transparent 44%),
    linear-gradient(145deg, #08602a, #06351d) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 240, 189, .17), 0 6px 13px rgba(0, 0, 0, .3) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > article,
#s-tasks #tasks-panel-vipsalary #vs-tasks-list > section,
#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) {
  border: 4px solid transparent !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, #0d5a28, #07371d) padding-box,
    var(--an-wood) border-box !important;
}

#s-tasks #tasks-panel-vipsalary #vs-countdown {
  color: #ffe568 !important;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  #s-home #home-scroll,
  #s-wdhist .scroll,
  #s-gamewallet .scroll,
  #s-notif .scroll,
  #s-earnhist .scroll,
  #s-incomehist .scroll,
  #s-team .scroll,
  #s-support .scroll,
  #s-tasks .scroll {
    padding-right: max(18px, calc((100% - 900px) / 2));
    padding-left: max(18px, calc((100% - 900px) / 2));
  }

  #s-notif #notif-list {
    padding: 14px !important;
  }

  #s-earnhist #earnhist-list,
  #s-incomehist #incomehist-list,
  #s-team #team-list {
    max-width: 900px;
  }
}

@media (max-width: 480px) {
  #s-notif #notif-list {
    padding: 8px !important;
  }

  #s-support #support-links-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #s-wdhist #wdhist-list > article,
  #s-wdhist #wdhist-list > section,
  #s-wdhist #wdhist-list > div:not(.loader):not(.empty),
  #s-earnhist #earnhist-list > article,
  #s-earnhist #earnhist-list > section,
  #s-earnhist #earnhist-list > div:not(.loader):not(.empty),
  #s-incomehist #incomehist-list > article,
  #s-incomehist #incomehist-list > section,
  #s-incomehist #incomehist-list > div:not(.loader):not(.empty) {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  #s-wdhist #wdhist-list :is(strong, b, [class*="amount"], [class*="amt"]),
  #s-earnhist #earnhist-list :is(strong, b, [class*="amount"], [class*="amt"]),
  #s-incomehist #incomehist-list :is(strong, b, [class*="amount"], [class*="amt"]) {
    grid-column: 2;
  }
}

/* The four-wallet history reference is the #s-walhist screen. Keep the
   separate standalone #s-wdhist list rules above scoped to that screen only. */
#s-walhist {
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(98, 153, 49, .24), transparent 45%),
    linear-gradient(180deg, #0d3519, #06170d 70%, #0b2914) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-walhist .hdr {
  position: relative;
  z-index: 3;
  display: flex !important;
  min-height: 62px !important;
  align-items: center;
  gap: 9px;
  padding: 7px 10px !important;
  border-bottom: 2px solid #c18b38 !important;
  background:
    linear-gradient(90deg, rgba(255, 225, 159, .1), transparent 44%),
    linear-gradient(180deg, #164a26, #082313) !important;
  box-shadow: 0 4px 13px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 231, 177, .18) !important;
}

#s-walhist #walhist-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff0cb !important;
  font: 800 clamp(16px, 4.2vw, 21px)/1.2 Georgia, "Times New Roman", serif !important;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

#s-walhist .scroll {
  padding: 10px 11px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 100% 18%, rgba(119, 164, 57, .1), transparent 33%),
    radial-gradient(ellipse at 0 78%, rgba(111, 151, 52, .08), transparent 30%);
  -webkit-overflow-scrolling: touch;
}

#s-walhist #walhist-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px !important;
  margin: 0 0 10px !important;
  padding: 8px !important;
  border: 4px solid transparent !important;
  border-radius: 20px 16px 20px 16px !important;
  background:
    linear-gradient(145deg, #103d20, #082414) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 240, 190, .15), 0 5px 12px rgba(0, 0, 0, .27) !important;
}

#s-walhist #walhist-tabs > button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px !important;
  border: 1px solid rgba(234, 193, 98, .76) !important;
  border-radius: 999px !important;
  color: #fff0cc !important;
  background: linear-gradient(145deg, #174a28, #092716) !important;
  font: 800 13px/1.15 Georgia, "Times New Roman", serif !important;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(255, 239, 186, .12), 0 2px 5px rgba(0, 0, 0, .24);
}

#s-walhist #walhist-tabs > button.active,
#s-walhist #walhist-tabs > button[aria-pressed="true"] {
  color: #37270c !important;
  border-color: #ffe78e !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .54), transparent 45%),
    linear-gradient(180deg, #ffeb78, #e8aa25) !important;
  box-shadow: inset 0 1px #fff8ce, 0 3px 8px rgba(0, 0, 0, .3) !important;
}

#s-walhist #walhist-list {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto !important;
  padding: 0 !important;
}

#s-walhist #walhist-list > article,
#s-walhist #walhist-list > section,
#s-walhist #walhist-list > div:not(.loader):not(.empty) {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 !important;
  padding: 10px !important;
  border: 4px solid transparent !important;
  border-radius: 15px 19px 15px 19px !important;
  color: #fff0cf !important;
  background:
    linear-gradient(145deg, #173b20, #092515) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 189, .13), 0 4px 10px rgba(0, 0, 0, .27) !important;
}

#s-walhist #walhist-list :is(img, .icon, [class*="icon"]) {
  max-width: 48px;
  border-radius: 11px;
}

#s-walhist #walhist-list :is(strong, b, [class*="amount"], [class*="amt"]) {
  color: #82e56d !important;
}

/* Each task mode retains the same controls but gains a recognizable tab
   identity and corresponding panel surface. */
#s-tasks .task-stabs > .task-stab:nth-child(1).active {
  color: #33230c !important;
  background: linear-gradient(180deg, #fff096, #e8ad29) !important;
}

#s-tasks .task-stabs > .task-stab:nth-child(2).active {
  color: #263719 !important;
  background: linear-gradient(180deg, #d9ef9a, #82b94b) !important;
}

#s-tasks .task-stabs > .task-stab:nth-child(3).active {
  color: #3b2309 !important;
  background: linear-gradient(180deg, #ffe6a0, #cf8e26) !important;
}

#s-tasks #tasks-panel-regular {
  border-top: 3px solid rgba(105, 220, 103, .78);
}

#s-tasks #tasks-panel-milestone {
  border-top: 3px solid rgba(238, 206, 118, .9);
}

#s-tasks #tasks-panel-vipsalary {
  border-top: 3px solid rgba(247, 216, 92, .92);
}

#s-tasks #tasks-panel-milestone #task-craft-gallery {
  margin: 12px 0 !important;
  padding: 12px !important;
  border: 4px solid transparent !important;
  border-radius: 19px 15px 20px 15px !important;
  background:
    linear-gradient(145deg, #fff3d2, #e5d09d) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf1, 0 5px 12px rgba(0, 0, 0, .25) !important;
}

#s-tasks #tasks-panel-milestone #task-craft-gallery :is(img, video) {
  max-width: 100%;
  border-radius: 13px;
}

@media (max-width: 420px) {
  #s-walhist #walhist-tabs {
    gap: 5px !important;
    padding: 6px !important;
  }

  #s-walhist #walhist-tabs > button {
    min-height: 39px;
    padding: 6px 4px !important;
    font-size: 11px !important;
  }

  #s-walhist #walhist-list > article,
  #s-walhist #walhist-list > section,
  #s-walhist #walhist-list > div:not(.loader):not(.empty) {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  #s-walhist #walhist-list :is(strong, b, [class*="amount"], [class*="amt"]) {
    grid-column: 2;
  }
}

/* Shared compact ArtisanNest lockup for authenticated screen headers. */
#s-walhist #walhist-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

#s-walhist #walhist-title::before,
#s-gamewallet .back-title::before,
#s-notif .back-title::before,
#s-earnhist .back-title::before,
#s-incomehist .back-title::before {
  content: "";
  display: block;
  flex: 0 0 68px;
  width: 68px;
  height: 26px;
  background: var(--an-logo-lockup) center / contain no-repeat;
}

#s-gamewallet .back-title,
#s-notif .back-title,
#s-earnhist .back-title,
#s-incomehist .back-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Re-compose Home from its existing live controls to match the supplied
   mobile hierarchy: wallets, invite/install, two-up check-in and nodes,
   games, then money actions. No actions or balance fields are removed. */
#s-home #home-scroll {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: min-content;
  align-content: start;
  gap: 9px !important;
  padding: 9px 10px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 4% 18%, rgba(106, 171, 63, .18), transparent 34%),
    radial-gradient(ellipse at 96% 54%, rgba(97, 156, 51, .15), transparent 36%),
    linear-gradient(180deg, #17431f 0%, #0b3019 52%, #123b1c 100%) !important;
}

#s-home {
  background:
    radial-gradient(ellipse at 8% 42%, rgba(137, 184, 62, .15), transparent 36%),
    radial-gradient(ellipse at 94% 80%, rgba(103, 157, 54, .14), transparent 36%),
    linear-gradient(180deg, #194721, #0a2a16 62%, #17401d) !important;
}

#s-home #home-scroll > * {
  grid-column: 1 / -1;
  min-width: 0;
}

#s-home #home-scroll > .home-top {
  display: contents !important;
}

#s-home .home-top > * {
  grid-column: 1 / -1;
  min-width: 0;
}

#s-home #home-scroll > button[onclick*="loadAnGatewayUser"] {
  order: 0;
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 4px solid transparent !important;
  border-radius: 18px 14px 18px 14px !important;
  color: #302311 !important;
  background:
    linear-gradient(145deg, #fff3d0, #e3c67f) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home #home-scroll > button[onclick*="loadAnGatewayUser"] span:last-child {
  color: #50391a !important;
}

#s-home .home-top > .bal-card {
  order: 1;
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 12px !important;
  border: 4px solid transparent !important;
  border-radius: 21px 16px 22px 16px !important;
  background:
    linear-gradient(145deg, #0d4c26, #082716) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .bal-card > .bal-row {
  min-height: 28px;
  color: #fff1c8 !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] {
  gap: 8px !important;
  margin-top: 9px !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div {
  display: flex !important;
  min-width: 0;
  min-height: 102px;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px !important;
  border: 2px solid transparent !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 4px 9px rgba(0, 0, 0, .22);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) {
  border-radius: 17px 11px 17px 11px !important;
  background:
    linear-gradient(145deg, #fff1c5, #e5c77d) padding-box,
    linear-gradient(145deg, #fff0b5, #a56b25) border-box !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) div,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) span {
  color: #3b2a15 !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) {
  border-radius: 11px 17px 11px 17px !important;
  background:
    radial-gradient(ellipse at 100% 0, rgba(133, 207, 83, .2), transparent 48%),
    linear-gradient(145deg, #12562a, #082a18) padding-box,
    linear-gradient(145deg, #d6bd69, #69451d) border-box !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) {
  border-radius: 11px 17px 11px 17px !important;
  background:
    linear-gradient(145deg, #48215e, #201331) padding-box,
    linear-gradient(145deg, #e5c278, #71441f) border-box !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) {
  border-radius: 17px 11px 17px 11px !important;
  background:
    var(--an-wood) padding-box,
    linear-gradient(145deg, #ffe6a0, #9d6525) border-box !important;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) div,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(2) span,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) div,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(3) span,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) div,
#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(4) span {
  color: #fff0c8 !important;
}

#s-home .bal-card #h-recharge,
#s-home .bal-card #h-usdt,
#s-home .bal-card #h-game,
#s-home .bal-card #h-pts {
  font-size: clamp(14px, 3.8vw, 18px) !important;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#s-home .bal-card > div[style*="grid-template-columns"] > div button {
  min-height: 29px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(255, 226, 147, .8) !important;
  border-radius: 999px !important;
  color: #fff1c9 !important;
  background: var(--an-wood) !important;
  font-size: 10px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
}

#s-home .bal-card > div[style*="grid-template-columns"] > div:nth-child(1) button {
  color: #38260f !important;
  background: linear-gradient(180deg, #fff4cd, #d8aa4d) !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] {
  order: 2;
  min-height: 58px;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 23px 16px 23px 16px !important;
  color: #26391c !important;
  background:
    linear-gradient(105deg, #fff5d7, #e8d08d) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .home-top > #pwa-install-btn {
  order: 3;
  min-height: 48px;
  margin: 0 !important;
  border: 4px solid transparent !important;
  border-radius: 18px 13px 18px 13px !important;
  color: #fff0ce !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home #ci-home-card {
  order: 4;
  grid-column: 1 !important;
  min-height: 170px;
  margin: 0 !important;
  border: 4px solid transparent !important;
  border-radius: 20px 14px 20px 14px !important;
  background:
    linear-gradient(145deg, #075527, #062e1b) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home #ci-home-card > div:first-child {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: minmax(66px, 1fr) auto;
  align-items: center;
  gap: 7px 8px;
  min-height: 158px;
  padding: 10px !important;
}

#s-home #ci-home-ic {
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  max-width: 42px;
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) > div:first-child {
  font-size: 12px !important;
  line-height: 1.15;
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) > div:last-child {
  font-size: 9px !important;
  line-height: 1.25;
}

#s-home #ci-home-card > div:first-child > div:nth-child(3) {
  display: flex !important;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  text-align: left !important;
}

#s-home #ci-home-card #ci-home-reward {
  font-size: 14px !important;
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) > div,
#s-home #ci-home-card #ci-home-sub,
#s-home #ci-home-card #ci-home-reward,
#s-home #ci-home-card #ci-home-badge {
  color: #fff0c8 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}

#s-home #ci-home-card > div:first-child > div:nth-child(2) {
  padding: 0 !important;
  border-radius: 0;
  background: transparent;
  color: #fff0c8 !important;
  opacity: 1 !important;
  filter: none !important;
}

#s-home #home-scroll #ci-home-card > div:first-child > div:nth-child(2) > div:first-child,
#s-home #home-scroll #ci-home-card #ci-home-sub {
  color: #fff0c8 !important;
  -webkit-text-fill-color: #fff0c8 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8) !important;
}

#s-home #ci-home-card #ci-home-badge {
  border: 1px solid rgba(245, 217, 146, .75);
  background: var(--an-wood);
}

#s-home #dev-widget-wrap {
  order: 5;
  grid-column: 2 !important;
  min-width: 0;
}

#s-home #dev-widget-wrap .dev-widget {
  display: flex !important;
  min-height: 170px;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px !important;
  border: 4px solid transparent !important;
  border-radius: 14px 20px 14px 20px !important;
  background:
    radial-gradient(ellipse at 90% 8%, rgba(130, 205, 70, .22), transparent 42%),
    linear-gradient(145deg, #104d27, #062a19) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home #dev-widget-wrap .dw-ic {
  font-size: 25px !important;
  line-height: 1;
}

#s-home #dev-widget-wrap .dw-info {
  width: 100%;
  min-width: 0;
}

#s-home #dev-widget-wrap .dw-title {
  font-size: 11px !important;
  line-height: 1.22;
}

#s-home #dev-widget-wrap .dw-amt {
  margin: 5px 0 !important;
  font-size: clamp(16px, 4.4vw, 21px) !important;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#s-home #dev-widget-wrap .dw-sub {
  font-size: 9px !important;
  line-height: 1.25;
}

#s-home #dev-widget-wrap .dw-btn {
  align-self: stretch;
  min-height: 34px;
  margin: auto 0 0 !important;
  border: 2px solid #f0cd79 !important;
  border-radius: 999px !important;
  color: #fff1cc !important;
  background: var(--an-wood) !important;
}

#s-home .an-home-access-grid {
  order: 6;
  display: grid !important;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) !important;
}

#s-home .home-top > #home-vslide-wrap {
  order: 7;
}

#s-home .home-top > .btn-row {
  order: 8;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  padding: 5px !important;
  border: 4px solid transparent !important;
  border-radius: 20px !important;
  background: var(--an-wood) padding-box, linear-gradient(145deg, #ffe7a0, #84501e) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .home-top > .btn-row > button {
  min-width: 0;
  min-height: 42px !important;
  margin: 0 !important;
  border: 2px solid rgba(255, 226, 147, .8) !important;
  border-radius: 14px !important;
  color: #fff0cc !important;
  background: linear-gradient(145deg, #15582a, #092d1a) !important;
  box-shadow: inset 0 1px rgba(255, 244, 204, .2), 0 3px 6px rgba(0, 0, 0, .25);
}

#s-home .home-top > button[onclick*="openWalletHistory"] {
  order: 9;
  min-height: 46px !important;
  margin: 0 !important;
  border: 4px solid transparent !important;
  border-radius: 17px 13px 17px 13px !important;
  color: #fff0c9 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home #home-gw-card {
  order: 10;
  grid-column: 1 / -1;
}

#s-home #home-scroll > .sec:nth-child(7) {
  order: 11;
}

#s-home #home-scroll > .widget {
  order: 12;
}

#s-home #home-scroll > .sec:nth-child(12) {
  order: 13;
}

#s-home #home-news-video-wrap {
  order: 14;
}

#s-home #home-news {
  order: 15;
}

@media (max-width: 370px) {
  #s-home #home-scroll {
    grid-template-columns: minmax(0, 1fr);
  }

  #s-home #ci-home-card,
  #s-home #dev-widget-wrap {
    grid-column: 1 !important;
  }

  #s-home #ci-home-card,
  #s-home #dev-widget-wrap .dev-widget {
    min-height: 145px;
  }
}

/* Keep notification parchment compact and readable instead of stretching
   three entries to fill the entire scroll viewport. */
#s-notif #notif-list {
  align-content: start;
  grid-auto-rows: max-content;
}

#s-notif #notif-list > article,
#s-notif #notif-list > section,
#s-notif #notif-list > div:not(.loader):not(.empty) {
  min-height: 0 !important;
  height: auto !important;
}

#s-notif .notif-title {
  color: #2d2417 !important;
}

#s-notif .notif-content {
  color: #40351f !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

#s-notif .notif-date {
  color: #675637 !important;
}

#s-notif .back-title {
  color: #fff0c9 !important;
}

/* Game wallet panels use a purple balance sign, carved transfer board,
   and clear green actions rather than generic dark cards. */
#s-gamewallet .scroll > div:first-child {
  margin: 10px 12px 8px !important;
  border: 4px solid transparent !important;
  border-radius: 22px 16px 22px 16px !important;
  background:
    linear-gradient(145deg, #4b1b71, #1e1034) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-gamewallet .scroll > div:nth-child(2) {
  margin: 6px 12px 12px !important;
  padding: 9px !important;
  border: 4px solid transparent !important;
  border-radius: 23px 17px 23px 17px !important;
  background: var(--an-wood) padding-box, linear-gradient(145deg, #ffe5a0, #89511f) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-gamewallet .scroll > div:nth-child(2) > div:first-child {
  padding: 14px !important;
  border: 2px solid #d5b665 !important;
  border-radius: 16px !important;
  color: #2e281c !important;
  background: linear-gradient(145deg, #fff2d0, #e8d09a) !important;
}

#s-gamewallet .scroll > div:nth-child(2) > div:first-child :is(div, label, strong, span) {
  color: #352a19 !important;
}

#s-gamewallet .scroll > div:nth-child(2) > div:nth-child(2) {
  border: 2px solid #cb9a45 !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, #6d3c1c, #321b10) !important;
  box-shadow: inset 0 1px rgba(255, 230, 168, .18), 0 4px 8px rgba(0, 0, 0, .25);
}

#s-gamewallet .scroll > div:nth-child(2) > div:nth-child(3) {
  border: 2px solid #bd8b39 !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #124a28, #082b19) !important;
}

#s-gamewallet .scroll input.inp-field {
  min-height: 44px;
  border: 2px solid #d1a74e !important;
  border-radius: 13px !important;
  color: #fff3d8 !important;
  background: linear-gradient(145deg, #553015, #321b0d) !important;
}

#s-gamewallet .scroll button {
  min-height: 40px;
  border: 2px solid #efcc75 !important;
  border-radius: 15px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 3px 7px rgba(0, 0, 0, .25);
}

#s-support #support-links-list a {
  text-decoration: none !important;
}

/* Milestone rewards follow the reference's icon / progress / reward layout. */
#s-tasks #tasks-panel-milestone #ms-list > .ms-card {
  grid-template-columns: 42px minmax(0, 1fr) minmax(96px, auto) !important;
  gap: 8px !important;
}

#s-tasks #tasks-panel-milestone #ms-list > .ms-card::before {
  content: "👥";
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #dcba59;
  border-radius: 50%;
  color: #fff5dc;
  background: linear-gradient(145deg, #0e6630, #063a20);
  font-size: 19px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .26), 0 3px 7px rgba(0, 0, 0, .2);
}

#s-tasks #tasks-panel-milestone #ms-list .ms-progress {
  grid-column: 2;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-bar {
  height: 10px !important;
  border: 1px solid #67933a !important;
  border-radius: 999px !important;
  background: #cdd89b !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-bar-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #139641, #85c63e) !important;
}

#s-tasks #tasks-panel-milestone #ms-list > .ms-card > div:nth-child(2) {
  grid-column: 3;
  min-width: 0;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-reward {
  color: #146c2b !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

#s-tasks #tstab-milestone.active {
  color: #37220b !important;
  background: linear-gradient(180deg, #fff0bd, #e7b848) !important;
  box-shadow: inset 0 1px #fff9d8, 0 3px 8px rgba(0, 0, 0, .3) !important;
}

@media (max-width: 380px) {
  #s-tasks #tasks-panel-milestone #ms-list > .ms-card {
    grid-template-columns: 34px minmax(0, 1fr) 86px !important;
    gap: 6px !important;
    padding: 9px !important;
  }

  #s-tasks #tasks-panel-milestone #ms-list > .ms-card::before {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  #s-tasks #tasks-panel-milestone #ms-list .ms-reward {
    font-size: 17px !important;
  }
}

#s-tasks #tasks-panel-milestone #task-craft-gallery[data-pending="true"] {
  display: none !important;
}

#s-tasks #tasks-panel-milestone #ms-list[aria-busy="true"] {
  min-height: 104px;
}

#s-tasks #tasks-panel-milestone .an-ms-error {
  margin: 12px 0;
  padding: 16px;
  border: 2px solid #d8b44d;
  border-radius: 16px;
  color: #fff3d0;
  background: linear-gradient(145deg, #123e22, #092a18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 5px 14px rgba(0, 0, 0, .24);
  text-align: center;
}

#s-tasks #tasks-panel-milestone .an-ms-error p {
  margin: 0 0 12px;
  color: inherit;
  line-height: 1.45;
}

#s-tasks #tasks-panel-milestone .an-ms-retry {
  min-height: 42px;
  padding: 8px 24px;
  border: 2px solid #f0d078;
  border-radius: 999px;
  color: #fff2d1;
  background: var(--an-wood);
  font: inherit;
  font-weight: 800;
  box-shadow: var(--an-wood-edge);
  cursor: pointer;
}

/* Node catalog: keep the existing category and purchase behavior, but match
   the reference's carved tabs, framed product photos, and clear stat blocks. */
#s-product .plan-type-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px !important;
  margin: 0 !important;
  padding: 9px 11px 10px !important;
  border: 4px solid transparent !important;
  border-radius: 0 0 18px 18px !important;
  background:
    linear-gradient(145deg, #103b1e, #082313) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 239, 187, .17), 0 5px 12px rgba(0, 0, 0, .3) !important;
}

#s-product .ptab {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 43px !important;
  padding: 7px 5px !important;
  border: 3px solid transparent !important;
  border-radius: 999px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(145deg, #583018, #34190d) padding-box,
    linear-gradient(145deg, #f0d27b, #91541f) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 186, .2), 0 3px 7px rgba(0, 0, 0, .28) !important;
  font-size: clamp(11px, 3.2vw, 14px) !important;
  text-align: center;
}

#s-product .ptab.active,
#s-product .ptab[aria-pressed="true"] {
  color: #fff7d9 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .19), transparent 44%),
    linear-gradient(145deg, #16853c, #075325) padding-box,
    linear-gradient(145deg, #fff0a3, #d6a63c) border-box !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .38), 0 0 0 2px rgba(118, 201, 73, .22), 0 4px 9px rgba(0, 0, 0, .3) !important;
}

#s-product .ptab:focus-visible,
#s-walhist #walhist-tabs > button:focus-visible,
#s-wdhist .walhist-tabs > *:focus-visible {
  outline: 3px solid #fff1a4 !important;
  outline-offset: 2px;
}

#s-product #plans-list {
  display: grid !important;
  gap: 12px !important;
  padding: 11px 11px calc(108px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-product #plans-list > .plan-card {
  padding: 8px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 18px 23px 18px !important;
  background:
    linear-gradient(145deg, #0c3519, #06180d) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 229, 156, .12), 0 7px 17px rgba(0, 0, 0, .34) !important;
}

#s-product #plans-list .pc-img-wrap {
  height: clamp(150px, 43vw, 275px) !important;
  min-height: 0 !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, #0b2d16, #06160b) padding-box,
    linear-gradient(145deg, #ffe694, #a86623, #f1d273) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 242, 205, .2), 0 5px 12px rgba(0, 0, 0, .4) !important;
}

#s-product #plans-list .pc-img-wrap :is(img, video),
#s-product #plans-list .an-plan-media-sequence :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#s-product #plans-list .pc-img-overlay {
  padding: 28px 12px 9px !important;
  color: #fff2d2 !important;
  background: linear-gradient(180deg, transparent 8%, rgba(20, 9, 3, .83)) !important;
}

#s-product #plans-list .pc-body {
  display: grid;
  gap: 9px;
  padding: 10px 1px 2px !important;
}

#s-product #plans-list .pc-name {
  display: grid;
  min-height: 58px;
  place-items: center;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 3px solid transparent !important;
  border-radius: 14px 18px 14px 18px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #5b3218, #30170b) padding-box,
    linear-gradient(145deg, #ffe593, #a86225, #f2cf70) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  font-size: clamp(17px, 4.6vw, 23px) !important;
  line-height: 1.2 !important;
  text-align: center;
}

#s-product #plans-list .pc-stats-grid {
  gap: 8px !important;
  margin: 0 !important;
}

#s-product #plans-list .pc-stat-cell {
  min-height: 80px;
  padding: 10px 11px !important;
  border: 2px solid rgba(225, 185, 91, .9) !important;
  border-radius: 13px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), transparent 50%),
    linear-gradient(145deg, #102c16, #07190d) !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .13), 0 3px 8px rgba(0, 0, 0, .24) !important;
}

#s-product #plans-list .pc-stat-cell .sk {
  color: #e5d3a8 !important;
  font-size: 11px !important;
  letter-spacing: .04em;
}

#s-product #plans-list .pc-stat-cell .sv {
  color: #ffd96b !important;
  font-size: clamp(18px, 5vw, 24px) !important;
  line-height: 1.12;
}

#s-product #plans-list .pc-stat-cell .su {
  color: #fff0d0 !important;
  font-size: 11px !important;
}

#s-product #plans-list .pc-vip-badge,
#s-product #plans-list .pc-lock-badge,
#s-product #plans-list .pc-live-badge {
  min-height: 30px;
  padding: 4px 10px !important;
  border: 2px solid #f4d37c !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-product #plans-list .btn-buy {
  width: 100%;
  min-height: 53px !important;
  margin-top: 2px !important;
  padding: 9px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  color: #fff1ce !important;
  background:
    linear-gradient(145deg, #60351b, #34190c) padding-box,
    linear-gradient(145deg, #fff0a0, #b36b26, #f0ca69) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 800 clamp(15px, 4.2vw, 19px)/1.2 Georgia, "Times New Roman", serif !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

#s-product #plans-list .btn-buy:disabled {
  cursor: not-allowed;
  filter: saturate(.86);
}

#s-product #plans-list .unlock-msg {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  margin: 10px 0 13px !important;
  padding: 10px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 17px 21px 17px 21px !important;
  color: #fff0cc !important;
  background:
    linear-gradient(145deg, #4e2b16, #2e160b) padding-box,
    linear-gradient(145deg, #ffe796, #9a5b21, #e8c05d) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-product #plans-list .unlock-msg .ei {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0 !important;
  color: #ffd45d !important;
  font-size: 30px !important;
}

#s-product #plans-list .unlock-msg p {
  margin: 0 !important;
  color: #fff0cc !important;
  text-align: left;
}

#s-product #plans-list .unlock-msg p:first-of-type {
  color: #ffe078 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

#s-product #plans-list .unlock-msg p:last-of-type {
  color: #f2e3c3 !important;
  font-size: 12px !important;
  line-height: 1.35;
}

/* Product detail uses the same wood title and metric language as its listing. */
#s-plandetail .pd-hero {
  height: clamp(160px, 48vw, 300px);
  max-height: none !important;
  aspect-ratio: 2.25 / 1;
  border: 5px solid transparent !important;
  border-radius: 21px !important;
  background:
    linear-gradient(145deg, #0c3219, #06170c) padding-box,
    var(--an-wood) border-box !important;
}

#s-plandetail .pd-hero :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#s-plandetail .pd-name {
  display: block;
  min-height: 58px;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  border: 4px solid transparent !important;
  border-radius: 15px 19px 15px 19px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #5b3218, #30170b) padding-box,
    linear-gradient(145deg, #ffe593, #a86225, #f2cf70) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-plandetail .pd-info {
  border: 4px solid transparent !important;
  color: #fff0cc !important;
  background:
    linear-gradient(145deg, #0b3a1c, #061d10) padding-box,
    var(--an-wood) border-box !important;
}

#s-plandetail .pd-buyers {
  color: #eadbb9 !important;
}

#s-plandetail .pd-grid .pd-cell .dk {
  color: #f0d9a7 !important;
}

#s-plandetail .pd-grid .pd-cell .dv {
  color: #ffe078 !important;
}

#s-plandetail .pd-grid .pd-cell {
  min-height: 82px;
  border: 2px solid rgba(228, 187, 91, .9) !important;
  border-radius: 13px !important;
  color: #fff0cc !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 48%),
    linear-gradient(145deg, #60351b, #34190c) !important;
  box-shadow: inset 0 1px rgba(255, 239, 188, .14), 0 3px 8px rgba(0, 0, 0, .24) !important;
}

#s-plandetail .pd-footer {
  border-top: 4px solid transparent !important;
  background:
    linear-gradient(145deg, #4d2a15, #2a150a) padding-box,
    linear-gradient(145deg, #ffe390, #9b5c23, #ebc66a) border-box !important;
}

#s-plandetail .pd-price {
  color: #ffe078 !important;
}

#s-plandetail .pd-desc {
  border: 2px solid rgba(231, 192, 106, .88) !important;
  border-radius: 15px !important;
  color: #fff0cc !important;
  background:
    repeating-linear-gradient(0deg, rgba(255, 241, 207, .025) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #14391d, #082313) !important;
}

#s-plandetail .btn-purchase {
  min-height: 56px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  color: #fff1ce !important;
  background:
    linear-gradient(145deg, #60351b, #34190c) padding-box,
    linear-gradient(145deg, #fff0a0, #b36b26, #f0ca69) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 800 17px/1.2 Georgia, "Times New Roman", serif !important;
}

/* Every wallet history tab shares the reference's wooden transaction rows. */
#s-walhist .hdr,
#s-wdhist .hdr {
  height: 56px !important;
  min-height: 56px !important;
  padding: 5px 12px !important;
  border: 4px solid transparent !important;
  border-bottom-width: 4px !important;
  background:
    linear-gradient(145deg, #14371d, #092414) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .32) !important;
}

#s-walhist .hdr-logo,
#s-wdhist .hdr-logo {
  color: #fff0cb !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 4vw, 19px) !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px #170d06;
}

#s-walhist #walhist-tabs,
#s-wdhist .walhist-tabs,
#s-wdhist .hist-tabs,
#s-wdhist .wallet-tabs {
  border: 4px solid transparent !important;
  border-radius: 19px 16px 19px 16px !important;
  background:
    linear-gradient(145deg, #381d0e, #221107) padding-box,
    linear-gradient(145deg, #ffe694, #a46123, #e4bd5c) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-walhist #walhist-tabs > button,
#s-wdhist .walhist-tabs > *,
#s-wdhist .hist-tabs > *,
#s-wdhist .wallet-tabs > * {
  color: #fff1ce !important;
  border: 2px solid rgba(244, 208, 119, .88) !important;
  background:
    linear-gradient(145deg, #60351b, #34190c) !important;
  box-shadow: inset 0 1px rgba(255, 239, 187, .16), 0 3px 7px rgba(0, 0, 0, .28) !important;
}

#s-walhist #walhist-tabs > button.active,
#s-walhist #walhist-tabs > button[aria-pressed="true"],
#s-walhist #walhist-tabs > button[style*="linear-gradient"],
#s-wdhist .walhist-tabs > .active,
#s-wdhist .hist-tabs > .active,
#s-wdhist .wallet-tabs > .active {
  color: #fff7dc !important;
  border-color: #fff0a2 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 44%),
    linear-gradient(145deg, #188642, #075126) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), 0 3px 8px rgba(0, 0, 0, .3) !important;
}

#s-walhist #walhist-list > .hist-item {
  grid-template-columns: 48px minmax(0, 1fr) minmax(112px, auto) !important;
  min-height: 88px;
  padding: 9px !important;
  border: 4px solid transparent !important;
  border-radius: 16px 20px 16px 20px !important;
  color: #fff1d3 !important;
  background:
    linear-gradient(145deg, #512d17, #2f180b) padding-box,
    linear-gradient(145deg, #ffe591, #9d5a21, #e9c460) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 185, .18), 0 5px 11px rgba(0, 0, 0, .32) !important;
}

#s-walhist #walhist-list > article,
#s-walhist #walhist-list > section,
#s-walhist #walhist-list > div:not(.loader):not(.empty) {
  border: 4px solid transparent !important;
  border-radius: 16px 20px 16px 20px !important;
  color: #fff1d3 !important;
  background:
    linear-gradient(145deg, #512d17, #2f180b) padding-box,
    linear-gradient(145deg, #ffe591, #9d5a21, #e9c460) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 185, .18), 0 5px 11px rgba(0, 0, 0, .32) !important;
}

#s-walhist #walhist-list .hist-ic {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid #d6c596;
  border-radius: 10px;
  color: #18813b;
  background: linear-gradient(145deg, #fffdf1, #dce8c5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .26);
}

#s-walhist #walhist-list .hist-info {
  min-width: 0;
}

#s-walhist #walhist-list .hist-desc {
  color: #fff1d3 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#s-walhist #walhist-list .hist-date {
  margin-top: 3px;
  color: #ead9b4 !important;
  font-size: 11px !important;
  line-height: 1.25;
}

#s-walhist #walhist-list .hist-right {
  min-width: 0;
  text-align: right;
}

#s-walhist #walhist-list .hist-amt {
  font-size: clamp(13px, 3.6vw, 17px) !important;
  font-weight: 900 !important;
  line-height: 1.2;
  white-space: nowrap;
}

#s-wdhist #wdhist-list > article,
#s-wdhist #wdhist-list > section,
#s-wdhist #wdhist-list > div:not(.loader):not(.empty) {
  border: 4px solid transparent !important;
  border-radius: 16px 20px 16px 20px !important;
  color: #fff1d3 !important;
  background:
    linear-gradient(145deg, #512d17, #2f180b) padding-box,
    linear-gradient(145deg, #ffe591, #9d5a21, #e9c460) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 185, .18), 0 5px 11px rgba(0, 0, 0, .32) !important;
}

@media (max-width: 420px) {
  #s-product #plans-list {
    padding-inline: 9px !important;
  }

  #s-product #plans-list .pc-img-wrap {
    height: clamp(150px, 42vw, 220px) !important;
  }

  #s-product #plans-list .pc-stat-cell {
    min-height: 74px;
    padding: 8px !important;
  }

  #s-walhist #walhist-list > .hist-item {
    grid-template-columns: 42px minmax(0, 1fr) minmax(101px, auto) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  #s-walhist #walhist-list .hist-ic {
    width: 37px;
    height: 37px;
  }
}

@media (max-width: 360px) {
  #s-product .plan-type-tabs {
    gap: 5px !important;
    padding-inline: 7px !important;
  }

  #s-product .ptab {
    font-size: 10px !important;
  }

  #s-walhist #walhist-list > .hist-item {
    grid-template-columns: 36px minmax(0, 1fr) minmax(91px, auto) !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  #s-walhist #walhist-list .hist-ic {
    width: 32px;
    height: 32px;
  }

  #s-walhist #walhist-list .hist-desc {
    font-size: 12px !important;
  }
}

/* Keep the grain texture visible on the carved surfaces rather than using
   plain brown fills; green remains the distinct active/metric surface. */
#s-product .ptab:not(.active):not([aria-pressed="true"]) {
  background: var(--an-wood) border-box !important;
}

#s-product #plans-list .pc-name,
#s-product #plans-list .btn-buy,
#s-product #plans-list .unlock-msg {
  background: var(--an-wood) border-box !important;
}

#s-plandetail .pd-name,
#s-plandetail .pd-grid .pd-cell,
#s-plandetail .pd-footer,
#s-plandetail .btn-purchase {
  background: var(--an-wood) border-box !important;
}

#s-walhist #walhist-tabs > button:not(.active):not([style*="linear-gradient"]),
#s-wdhist .walhist-tabs > *:not(.active),
#s-wdhist .hist-tabs > *:not(.active),
#s-wdhist .wallet-tabs > *:not(.active) {
  background: var(--an-wood) border-box !important;
}

#s-walhist #walhist-list > article,
#s-walhist #walhist-list > section,
#s-walhist #walhist-list > div:not(.loader):not(.empty),
#s-wdhist #wdhist-list > article,
#s-wdhist #wdhist-list > section,
#s-wdhist #wdhist-list > div:not(.loader):not(.empty) {
  background: var(--an-wood) border-box !important;
}

#s-product #plans-list .pc-name,
#s-product #plans-list .btn-buy,
#s-product #plans-list .unlock-msg,
#s-plandetail .pd-name,
#s-plandetail .btn-purchase {
  border-color: #e5bc63 !important;
}

#s-plandetail .pd-footer {
  border: 4px solid #e5bc63 !important;
}

#s-walhist #walhist-list > article,
#s-walhist #walhist-list > section,
#s-walhist #walhist-list > div:not(.loader):not(.empty),
#s-wdhist #wdhist-list > article,
#s-wdhist #wdhist-list > section,
#s-wdhist #wdhist-list > div:not(.loader):not(.empty) {
  border: 4px solid #e5bc63 !important;
}

/* Task screens: code-built wood, leaf and parchment layouts. */
#s-tasks {
  --task-wood: linear-gradient(180deg, #874014 0%, #542408 19%, #9d4d16 38%, #5d290c 56%, #a8581b 78%, #542308 100%);
  --task-green: linear-gradient(145deg, #0a5b2d 0%, #06421f 48%, #082f1b 100%);
  --task-gold: #f4cf72;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(35, 126, 55, .36), transparent 58%),
    linear-gradient(180deg, #071d12, #092817 52%, #071b11) !important;
}

#s-tasks .back-hdr {
  height: 56px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  flex: 0 0 58px !important;
  padding: 5px 10px !important;
  border-bottom: 1px solid rgba(233, 195, 94, .55) !important;
  background: linear-gradient(180deg, #0d4b28, #082617) !important;
}

#s-tasks .back-title {
  font-size: clamp(15px, 4.2vw, 19px) !important;
  line-height: 1.1 !important;
}

#s-tasks .scroll {
  padding: 8px 10px 116px !important;
}

#s-tasks .task-stabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 3px 0 14px !important;
  padding: 7px !important;
  overflow: visible !important;
  border: 3px solid #a96a30 !important;
  border-radius: 19px !important;
  background: var(--task-wood) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 155, .75), 0 5px 12px rgba(0, 0, 0, .35) !important;
}

#s-tasks .task-stab {
  display: flex !important;
  min-width: 0 !important;
  min-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 7px 5px !important;
  border: 2px solid #9b642c !important;
  border-radius: 15px !important;
  background: var(--task-green) !important;
  color: #fff1c7 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(10px, 3.15vw, 14px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  text-align: center !important;
  white-space: normal !important;
  box-shadow: inset 0 1px 0 rgba(255, 234, 166, .27) !important;
}

#s-tasks .task-stabs:has(#tstab-regular.active) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 7px !important;
}

#s-tasks .task-stabs:has(#tstab-regular.active) .task-stab {
  min-height: 45px !important;
  justify-content: center !important;
  padding: 7px 5px !important;
  border-radius: 15px !important;
  font-size: clamp(10px, 3.15vw, 14px) !important;
  text-align: center !important;
}

#s-tasks .task-stab.active,
#s-tasks .task-stabs:has(#tstab-regular.active) #tstab-regular.active {
  border-color: #ffe18a !important;
  background: linear-gradient(180deg, #ffe58a, #d99a22 52%, #f3c844) !important;
  color: #2b210d !important;
  box-shadow: inset 0 1px 0 #fff3c5, 0 0 0 2px rgba(255, 215, 102, .26), 0 3px 9px rgba(0, 0, 0, .36) !important;
}

#s-tasks #tasks-panel-regular,
#s-tasks #tasks-panel-milestone,
#s-tasks #tasks-panel-vipsalary {
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  padding: 0 0 12px !important;
  background: transparent !important;
}

#s-tasks #tasks-panel-regular #tasks-list2 {
  display: grid !important;
  gap: 13px !important;
}

#s-tasks #tasks-panel-regular .sf-sec {
  position: relative !important;
  margin: 8px 0 13px !important;
  overflow: hidden !important;
  border: 4px solid #98602b !important;
  border-radius: 23px !important;
  background: var(--task-green) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 218, 121, .75), 0 7px 16px rgba(0, 0, 0, .36) !important;
}

#s-tasks #tasks-panel-regular .sf-sec-top {
  min-height: 62px !important;
  padding: 11px 15px 8px !important;
  border-bottom: 1px solid rgba(244, 207, 114, .4) !important;
  background: linear-gradient(90deg, rgba(3, 47, 23, .9), rgba(17, 91, 43, .72), rgba(3, 47, 23, .9)) !important;
}

#s-tasks #tasks-panel-regular .sf-sec-top > div:first-child > div:first-child {
  color: #fff0b9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-regular .sf-sec-top > div:first-child > div:nth-child(2) {
  color: #d8e8cc !important;
  font-size: 11px !important;
}

#s-tasks #tasks-panel-regular .sf-stat {
  border: 1px solid rgba(224, 193, 105, .5) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(12, 75, 37, .96), rgba(5, 46, 25, .96)) !important;
}

#s-tasks #tasks-panel-regular .sf-stat-l {
  color: #e6d59a !important;
}

#s-tasks #tasks-panel-regular .sf-title {
  color: #fff4d2 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(16px, 4.4vw, 20px) !important;
}

#s-tasks #tasks-panel-regular .sf-rew,
#s-tasks #tasks-panel-regular .sf-stat-n {
  color: #ffe45f !important;
}

#s-tasks #tasks-panel-regular .sf-badge,
#s-tasks #tasks-panel-regular .sf-live {
  border: 1px solid #e5c76b !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #0b6b31, #07451f) !important;
  color: #dcffbe !important;
}

#s-tasks #tasks-panel-regular .sf-desc {
  margin: 10px 0 !important;
  padding: 12px !important;
  border: 2px solid #d9b65f !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #fff0c6, #f0d997) !important;
  color: #2f2815 !important;
  line-height: 1.5 !important;
}

#s-tasks #tasks-panel-regular .sf-media {
  min-height: 148px !important;
  max-height: none !important;
  margin: 9px 0 12px !important;
  padding: 13px !important;
  border: 4px solid #d4a448 !important;
  border-radius: 19px !important;
  background: var(--task-wood) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 226, 145, .62) !important;
}

#s-tasks #tasks-panel-regular .sf-media :is(button, label, .sf-upload) {
  border: 2px solid #f7d66f !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffdf73, #c77d19) !important;
  color: #2a1a08 !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-regular .sf-upload input,
#s-tasks #tasks-panel-regular .sf-media input[type="file"] {
  max-width: 100% !important;
  color: #fff1ca !important;
}

#s-tasks #tasks-panel-regular :is(.sf-sub-btn, .sf-claim-btn, .btn-task) {
  min-height: 48px !important;
  border: 3px solid #e9c66d !important;
  border-radius: 999px !important;
  background: var(--task-wood) !important;
  color: #fff2c9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 190, .55), 0 4px 8px rgba(0, 0, 0, .25) !important;
}

#s-tasks #tasks-panel-regular .sf-ticker-wrap {
  border-top-color: rgba(244, 207, 114, .4) !important;
}

#s-tasks #tasks-panel-regular .sf-ti {
  color: #eee0b4 !important;
}

#s-tasks #tasks-panel-milestone #ms-count {
  display: block !important;
  width: fit-content !important;
  margin: 10px auto 12px !important;
  padding: 9px 20px !important;
  border: 2px solid #efcf71 !important;
  border-radius: 999px !important;
  background: var(--task-green) !important;
  color: #fff1bf !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3) !important;
}

#s-tasks #tasks-panel-milestone #ms-list {
  display: grid !important;
  gap: 10px !important;
}

#s-tasks #tasks-panel-milestone #ms-list > .ms-card {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) minmax(100px, 138px) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 105px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 4px solid #a76d2d !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #fff3cd, #f2d99b 55%, #ffeec0) !important;
  color: #201b10 !important;
  box-shadow: inset 0 0 0 2px #fff8dc, 0 5px 12px rgba(0, 0, 0, .34) !important;
}

#s-tasks #tasks-panel-milestone #ms-list > .ms-card::before {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  place-items: center !important;
  border: 3px solid #e4c261 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 28%, #20a34c, #075326 72%) !important;
  color: #fff4d2 !important;
  font-size: 22px !important;
  box-shadow: 0 2px 8px rgba(35, 67, 22, .38) !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-progress {
  min-width: 0 !important;
  color: #231d10 !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-title {
  color: #302211 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 4vw, 19px) !important;
  line-height: 1.15 !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-sub {
  color: #4c4029 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 13px !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-bar {
  height: 9px !important;
  margin: 8px 0 0 !important;
  border: 1px solid #6b963e !important;
  border-radius: 999px !important;
  background: #d1db9b !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-bar-fill {
  border-radius: inherit !important;
  background: linear-gradient(90deg, #218f37, #a8c956) !important;
}

#s-tasks #tasks-panel-milestone #ms-list > .ms-card > div:nth-child(2) {
  display: grid !important;
  justify-items: stretch !important;
  gap: 6px !important;
  min-width: 0 !important;
}

#s-tasks #tasks-panel-milestone #ms-list .ms-reward {
  color: #12602c !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

#s-tasks #tasks-panel-milestone #ms-list .btn-ms {
  min-height: 37px !important;
  border: 2px solid #e3b843 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffdc62, #d38a19) !important;
  color: #291c08 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-milestone #ms-list .btn-ms-done {
  background: linear-gradient(180deg, #67c943, #198037) !important;
  color: #fff !important;
}

#s-tasks #tasks-panel-milestone #ms-list[aria-busy="true"] .an-ms-poster {
  display: none !important;
}

#s-tasks #tasks-panel-milestone .an-ms-error {
  border: 3px solid #a76d2d !important;
  border-radius: 18px !important;
  background: #fff0c5 !important;
  color: #35250e !important;
}

#s-tasks #tasks-panel-milestone .an-ms-retry {
  border: 2px solid #e8c56a !important;
  border-radius: 999px !important;
  background: var(--task-wood) !important;
  color: #fff2c9 !important;
}

#s-tasks #tasks-panel-vipsalary .task-title,
#s-tasks #tasks-panel-vipsalary .ci-section-title {
  color: #ffe27b !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 18px !important;
}

#s-tasks #tasks-panel-vipsalary :is(#vs-reset-time, #vs-local-window, #vs-local-tz, #vs-countdown) {
  color: #fff0b9 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-countdown {
  color: #ffe34c !important;
  font-size: clamp(26px, 7vw, 36px) !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .5) !important;
}

#s-tasks #tasks-panel-vipsalary .ci-vip-card,
#s-tasks #tasks-panel-vipsalary .ci-info-card {
  border: 3px solid #a96b2e !important;
  border-radius: 22px !important;
  background: var(--task-green) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 120, .65), 0 6px 13px rgba(0, 0, 0, .32) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list {
  display: grid !important;
  gap: 13px !important;
  margin-top: 11px !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) {
  position: relative !important;
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 15px 14px !important;
  overflow: hidden !important;
  border: 4px solid #a96a2d !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, #0b6832 0%, #075127 48%, #063c20 100%) !important;
  color: #f8f0d5 !important;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 120, .68), 0 6px 14px rgba(0, 0, 0, .35) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty)::before {
  position: absolute !important;
  inset: 0 0 auto !important;
  height: 34px !important;
  border-bottom: 1px solid rgba(255, 222, 119, .38) !important;
  background: linear-gradient(90deg, rgba(3, 40, 20, .78), rgba(16, 93, 43, .72), rgba(3, 40, 20, .78)) !important;
  content: "" !important;
  pointer-events: none !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > * {
  position: relative !important;
  z-index: 1 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list :is(button, .btn-task) {
  min-height: 42px !important;
  border: 3px solid #e7c56d !important;
  border-radius: 999px !important;
  background: var(--task-wood) !important;
  color: #fff1c6 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list .btn-task.done {
  background: linear-gradient(180deg, #65c741, #167636) !important;
  color: #fff !important;
}

@media (max-width: 390px) {
  #s-tasks .task-stab {
    min-height: 46px !important;
    font-size: 10px !important;
  }

  #s-tasks #tasks-panel-milestone #ms-list > .ms-card {
    grid-template-columns: 40px minmax(0, 1fr) 92px !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  #s-tasks #tasks-panel-milestone #ms-list > .ms-card::before {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  #s-tasks #tasks-panel-milestone #ms-list .ms-reward {
    font-size: 19px !important;
  }

  #s-tasks #tasks-panel-milestone #ms-list .btn-ms {
    padding: 6px 4px !important;
    font-size: 10px !important;
  }
}

#s-tasks #tasks-panel-regular .sf-card {
  margin: 0 !important;
  overflow: hidden !important;
  border: 4px solid #a66b2d !important;
  border-radius: 23px !important;
  background: linear-gradient(145deg, #0c652f, #06401f 72%) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 120, .7), 0 7px 16px rgba(0, 0, 0, .38) !important;
}

#s-tasks #tasks-panel-regular .sf-body {
  padding: 14px !important;
}

#s-tasks #tasks-panel-regular .sf-hdr {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  margin-bottom: 12px !important;
}

#s-tasks #tasks-panel-regular .sf-ic {
  width: 46px !important;
  height: 46px !important;
  border: 2px solid #edc75e !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 25%, #159b48, #063c20 75%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35) !important;
}

#s-tasks #tasks-panel-regular .sf-badge {
  padding: 6px 9px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

#s-tasks #tasks-panel-regular .sf-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 10px 12px !important;
}

#s-tasks #tasks-panel-regular .sf-stat {
  min-width: 0 !important;
  padding: 8px 5px !important;
}

#s-tasks #tasks-panel-regular .sf-media {
  display: block !important;
}

#s-tasks #tasks-panel-regular .sf-upload {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-height: 112px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px !important;
  border: 2px dashed #ffe18a !important;
  border-radius: 13px !important;
  background: rgba(46, 21, 7, .22) !important;
  color: #fff2c9 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px !important;
  text-align: center !important;
}

#s-tasks #tasks-panel-regular .sf-upload input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

#s-tasks #tasks-panel-regular .sf-media .sf-upload {
  border: 2px dashed #ffe18a !important;
  background: linear-gradient(180deg, #79390f, #4e2108) !important;
  color: #fff2c9 !important;
}

#s-tasks #tasks-panel-milestone::before {
  display: none !important;
  content: none !important;
}

#s-tasks #tasks-panel-milestone > div:first-child {
  margin: 0 !important;
  padding: 13px !important;
  border: 4px solid #a76b2d !important;
  border-radius: 25px !important;
  background: linear-gradient(145deg, #0a5d2d, #06391e) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 120, .68), 0 7px 15px rgba(0, 0, 0, .35) !important;
}

#s-tasks #tasks-panel-milestone > div:first-child > div:first-child {
  margin: 0 0 10px !important;
  padding: 11px 8px !important;
  border: 3px solid #e3c166 !important;
  border-radius: 999px !important;
  background: var(--task-wood) !important;
  color: #fff0bd !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-shadow: 0 2px 2px #3a1d08 !important;
}

#s-tasks #tasks-panel-milestone > div:first-child > div:nth-child(2) {
  margin: 0 0 9px !important;
  padding: 11px 13px !important;
  border: 3px solid #b47a30 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #fff1c6, #edd48e) !important;
  color: #30200d !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

#s-tasks #tasks-panel-milestone > div:first-child > div:nth-child(3) {
  width: fit-content !important;
  margin: 0 auto 11px !important;
  padding: 8px 16px !important;
  border: 2px solid #e6c56b !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #0a5b2d, #06381e) !important;
  color: #fff0bc !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#s-tasks #tasks-panel-milestone #ms-count {
  display: inline !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #ffe34f !important;
  font-family: inherit !important;
  font-size: 19px !important;
  box-shadow: none !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child {
  position: relative !important;
  margin: 0 0 13px !important;
  padding: 13px !important;
  border: 4px solid #a76b2d !important;
  border-radius: 23px !important;
  background: linear-gradient(145deg, #0b6531, #063d20) !important;
  color: #fff0bf !important;
  box-shadow: inset 0 0 0 2px rgba(255, 219, 113, .7), 0 6px 13px rgba(0, 0, 0, .32) !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 3px solid #e5c166 !important;
  border-radius: 16px !important;
  background: var(--task-wood) !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:first-child > div:first-child > div:nth-child(2) {
  color: #ffe37b !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:first-child > div:first-child > div:first-child {
  color: #b8f28b !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:first-child > div:first-child > div:nth-child(3) {
  color: #f4e8c4 !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) minmax(110px, .7fr) !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 9px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(237, 203, 104, .45) !important;
  border-radius: 14px !important;
  background: rgba(0, 0, 0, .22) !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:nth-child(3) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:nth-child(3) > span {
  display: grid !important;
  place-items: center !important;
  min-height: 38px !important;
  padding: 5px 6px !important;
  border: 1px solid rgba(240, 204, 102, .55) !important;
  border-radius: 999px !important;
  background: rgba(3, 41, 20, .72) !important;
  color: #f7e7b7 !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:nth-child(2) > div:nth-child(2) {
  min-width: 0 !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > div:nth-child(2) > div:nth-child(3) {
  min-width: 0 !important;
  padding-left: 8px !important;
  border-left: 1px solid rgba(237, 203, 104, .45) !important;
  text-align: right !important;
}

#s-tasks #tasks-panel-vipsalary #vs-reset-time {
  color: #ffe477 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-vipsalary > div:first-child > button {
  padding: 8px 11px !important;
  border: 2px solid #e6c46b !important;
  border-radius: 999px !important;
  background: var(--task-wood) !important;
  color: #fff0c4 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(105px, .85fr) !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 9px !important;
  padding: 9px 10px !important;
  border: 2px solid #e3bf62 !important;
  border-radius: 15px !important;
  background: var(--task-wood) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:first-child > div:first-child > div:first-child {
  color: #fff1c8 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:first-child > div:first-child > div:nth-child(2) {
  color: #ffe467 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:first-child > div:first-child > div:nth-child(3) {
  color: #e8dbb3 !important;
  font-size: 10px !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:first-child > div:nth-child(2) {
  color: #fff0bf !important;
  font-size: 12px !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list [id^="vs-cd-"] {
  color: #ffe34f !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .45) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(2) {
  margin: 0 0 9px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(237, 204, 115, .38) !important;
  border-radius: 13px !important;
  background: rgba(3, 44, 21, .44) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(2) > div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
  color: #ffe8a0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(2) > div:nth-child(2) {
  height: 9px !important;
  border: 1px solid rgba(255, 224, 132, .5) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, .3) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(2) > div:nth-child(2) > div {
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #20a34b, #a7d954) !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(3) {
  margin-bottom: 9px !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(3) > div {
  border-color: rgba(238, 202, 100, .5) !important;
  border-radius: 999px !important;
  background: rgba(3, 44, 21, .65) !important;
  color: #f2e2b3 !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(3) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

#s-tasks #tasks-panel-vipsalary #vs-tasks-list > div:not(.loader):not(.empty) > div:nth-child(3) > div {
  display: grid !important;
  place-items: center !important;
  min-height: 38px !important;
  padding: 5px 7px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

#s-tasks #tasks-panel-milestone #task-craft-gallery:empty {
  display: none !important;
}

/* Home reference correction: limit changes to Invite Partner, Daily Check-in,
   and My Nodes. Keep every other Home control and section untouched. */
#s-home #home-scroll > .home-top > button[onclick*="s-invite"] {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: 42px minmax(0, 1fr) minmax(84px, .34fr);
  grid-template-rows: 1fr;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  min-height: 94px !important;
  padding: 10px 12px !important;
  overflow: hidden;
  border: 4px solid transparent !important;
  border-radius: 23px 17px 23px 17px !important;
  color: #254019 !important;
  background:
    linear-gradient(105deg, #fff5d9 0%, #f2e2b6 48%, #ead18f 72%, #fff0c9 100%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(14px, 3.7vw, 18px) !important;
  font-weight: 800 !important;
  line-height: 1.15;
  text-align: left !important;
  text-wrap: balance;
  white-space: normal !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-icon {
  position: relative;
  display: grid !important;
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(26, 91, 43, .8);
  border-radius: 50%;
  color: #174a28;
  background:
    radial-gradient(circle at 35% 28%, #fff9d8, #e8d89e 62%, #c2a453);
  box-shadow: inset 0 1px #fff9dc, 0 2px 5px rgba(60, 43, 12, .25);
  font-size: 27px;
  line-height: 1;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #fff2c6;
  border-radius: 50%;
  color: #fff8dc;
  background: #17743a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  content: "+";
  font: 900 13px/1 Arial, sans-serif;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
  gap: 2px;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-heading {
  color: #254019 !important;
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-reward {
  color: #17672f !important;
  font-size: clamp(22px, 5.8vw, 29px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.025em;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-breakdown {
  display: grid !important;
  grid-column: 3;
  grid-row: 1;
  min-height: 52px;
  place-items: center;
  padding-left: 8px;
  border-left: 2px solid rgba(115, 76, 29, .48);
  color: #3d2b17 !important;
  font-size: clamp(10px, 2.7vw, 14px) !important;
  font-weight: 800 !important;
  line-height: 1.22;
  text-align: center;
}

#s-home #home-scroll > #ci-home-card {
  grid-column: span 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  align-self: stretch;
}

#s-home #home-scroll > #ci-home-card {
  position: relative;
  box-sizing: border-box;
  order: 4 !important;
  min-height: 198px !important;
  padding: 0 !important;
  border: 4px solid transparent !important;
  border-radius: 23px 16px 23px 16px !important;
  background:
    radial-gradient(ellipse at 100% 0, rgba(121, 190, 74, .24), transparent 47%),
    linear-gradient(145deg, #0a6330, #06351f 72%, #052a19) padding-box,
    var(--an-wood) border-box !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 234, 171, .16),
    inset 0 8px 20px rgba(255, 255, 255, .035),
    var(--an-wood-edge) !important;
}

#s-home #home-scroll > #ci-home-card > div:first-child {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  grid-template-rows: minmax(96px, 1fr) auto !important;
  gap: 8px !important;
  min-height: 186px !important;
  padding: 12px 11px !important;
}

#s-home #home-scroll > #ci-home-card #ci-home-ic {
  display: grid !important;
  box-sizing: border-box;
  width: 58px !important;
  max-width: 58px !important;
  min-height: 70px;
  place-items: center;
  border: 1px solid rgba(255, 226, 150, .68);
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .15), transparent 48%),
    linear-gradient(145deg, rgba(255, 218, 107, .18), rgba(1, 34, 17, .54));
  box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 3px 8px rgba(0, 0, 0, .22);
}

#s-home #home-scroll > #ci-home-card .ci-cal-box {
  display: flex;
  width: 52px;
  min-height: 61px;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #fff4d7;
  border-radius: 11px;
  color: #17321e;
  background: linear-gradient(180deg, #fff 0%, #f6f1df 100%);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .3);
  text-align: center;
}

#s-home #home-scroll > #ci-home-card .ci-cal-month {
  min-height: 17px;
  padding: 2px 3px 1px;
  color: #fff !important;
  background: linear-gradient(180deg, #ed5548, #ba2e27);
  font: 800 10px/1.3 Arial, sans-serif;
  text-transform: uppercase;
}

#s-home #home-scroll > #ci-home-card .ci-cal-day {
  flex: 1;
  color: #18341f !important;
  font: 900 27px/.98 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px #fff;
}

#s-home #home-scroll > #ci-home-card #ci-home-ic > * {
  max-width: 100%;
}

#s-home #home-scroll > #ci-home-card > div:first-child > div:nth-child(2) > div:first-child {
  font-size: clamp(11px, 2.8vw, 14px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-wrap: balance;
}

#s-home #home-scroll > #ci-home-card > div:first-child > div:nth-child(2) > div:last-child {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: clamp(9px, 2.6vw, 11px) !important;
  line-height: 1.35 !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
}

#s-home #home-scroll > #ci-home-card > div:first-child > div:nth-child(3) {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
}

#s-home #home-scroll > #ci-home-card #ci-home-reward {
  color: #fff0c8 !important;
  font-size: clamp(10px, 2.8vw, 16px) !important;
  font-weight: 900 !important;
  line-height: 1.12;
  white-space: nowrap;
}

#s-home #home-scroll > #ci-home-card #ci-home-badge {
  display: inline-flex !important;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px !important;
  border: 2px solid rgba(255, 226, 151, .9) !important;
  border-radius: 16px !important;
  flex-shrink: 0;
  color: #fff1ca !important;
  background: var(--an-wood) !important;
  box-shadow: inset 0 1px rgba(255, 245, 210, .28), 0 3px 6px rgba(0, 0, 0, .3);
  font-size: clamp(8px, 2.2vw, 11px) !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

#s-home #home-scroll > #dev-widget-wrap {
  order: 5 !important;
  min-height: 198px !important;
}

#s-home #home-scroll > #dev-widget-wrap .dev-widget {
  box-sizing: border-box;
  position: relative;
  display: grid !important;
  width: 100% !important;
  min-height: 198px !important;
  height: 100%;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 9px;
  padding: 12px !important;
  overflow: hidden;
  border: 4px solid transparent !important;
  border-radius: 16px 22px 16px 22px !important;
  background:
    radial-gradient(ellipse at 88% 0, rgba(137, 205, 81, .23), transparent 48%),
    linear-gradient(145deg, #0e5a2b, #07361f 68%, #052a19) padding-box,
    var(--an-wood) border-box !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 234, 171, .15),
    inset 0 8px 20px rgba(255, 255, 255, .035),
    var(--an-wood-edge) !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-ic {
  position: relative;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(255, 226, 151, .9);
  border-radius: 50%;
  color: transparent !important;
  background:
    radial-gradient(circle at 30% 22%, #fff3bf 0%, #edce63 29%, #bd872b 62%, #664015 100%);
  box-shadow: inset 0 2px rgba(255, 255, 255, .58), 0 3px 8px rgba(0, 0, 0, .3);
  font-size: 0 !important;
  line-height: 1;
}

#s-home #home-scroll > #dev-widget-wrap .dw-ic::before {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 13px;
  color: #17612e;
  content: "🌱";
  font: 24px/1 Arial, sans-serif;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .42));
}

#s-home #home-scroll > #dev-widget-wrap .dw-ic::after {
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #f8df8b;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff2a8, #d18d20 68%, #73440d);
  box-shadow: -5px 4px 0 -1px #c48722, -5px 4px 0 1px #704417;
  content: "";
}

#s-home #home-scroll > #dev-widget-wrap .dw-info {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  padding: 2px 0 0 !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-title {
  color: #fff0c8 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-amt {
  margin: 6px 0 !important;
  color: #ffe25a !important;
  font-size: clamp(20px, 5vw, 27px) !important;
  font-weight: 900 !important;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

#s-home #home-scroll > #dev-widget-wrap .dw-sub {
  color: rgba(255, 244, 215, .86) !important;
  font-size: 10px !important;
  line-height: 1.32;
}

#s-home #home-scroll > #dev-widget-wrap .dw-btn {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  width: min(100%, 148px) !important;
  min-width: 70px;
  min-height: 38px !important;
  margin: 0 !important;
  border: 2px solid rgba(255, 226, 151, .92) !important;
  border-radius: 16px !important;
  color: #fff1cc !important;
  background: var(--an-wood) !important;
  box-shadow: inset 0 1px rgba(255, 245, 210, .28), 0 3px 6px rgba(0, 0, 0, .3);
  font: 800 clamp(11px, 3vw, 14px) Georgia, "Times New Roman", serif !important;
  white-space: nowrap;
}

#s-home #home-scroll > #dev-widget-wrap .dw-btn::after {
  content: " ›";
}

@media (max-width: 370px) {
  #s-home #home-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap {
    grid-column: span 1 !important;
  }
}

/* Node catalog: style the actual nested card grid, not its wrapper. */
#s-product #plans-list::before {
  content: "🔒  Coming Soon";
  display: flex;
  width: min(82%, 350px);
  min-height: 43px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 0 auto 2px;
  padding: 7px 18px;
  border: 4px solid transparent;
  border-radius: 999px;
  color: #fff0c7;
  background:
    linear-gradient(145deg, #60351b, #34190c) padding-box,
    linear-gradient(145deg, #fff0a0, #a86225, #f0ca69) border-box;
  box-shadow: var(--an-wood-edge), inset 0 1px rgba(255, 244, 202, .22);
  font: 800 clamp(15px, 4.2vw, 19px)/1.15 Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 1px 2px #170d06;
}

#s-product #plans-list {
  align-content: start !important;
  grid-auto-rows: max-content !important;
}

#s-product #plans-list > .loader {
  display: flex !important;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 16px !important;
  border: 4px solid transparent !important;
  border-radius: 17px 21px 17px 21px !important;
  color: #fff0c9 !important;
  background:
    linear-gradient(145deg, #10391d, #071d10) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  font-size: 14px !important;
}

#s-product #plans-list > .loader::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 10px;
  border: 2px solid rgba(255, 235, 171, .4);
  border-top-color: #ffe28a;
  border-radius: 50%;
  animation: an-node-loader-spin .8s linear infinite;
}

@keyframes an-node-loader-spin {
  to { transform: rotate(360deg); }
}

#s-product #plans-list > div.plans-grid:not(.loader):not(.empty) {
  display: flex !important;
  flex-direction: column !important;
  gap: 13px !important;
  min-width: 0;
  height: max-content !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
  overflow: visible !important;
  align-self: start !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#s-product #plans-list > .plans-grid > .plan-card {
  position: relative;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-self: stretch;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px !important;
  overflow: hidden;
  border: 5px solid transparent !important;
  border-radius: 23px 18px 23px 18px !important;
  background:
    linear-gradient(145deg, #0c3519, #06180d) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 229, 156, .15), 0 7px 17px rgba(0, 0, 0, .34) !important;
}

#s-product #plans-list > .plans-grid > .plan-card:active {
  transform: scale(.992);
}

#s-product #plans-list .pc-img-wrap {
  flex: 0 0 auto !important;
  height: clamp(174px, 53vw, 286px) !important;
  min-height: 174px !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, #0b2d16, #06160b) padding-box,
    linear-gradient(145deg, #ffe694, #a86623, #f1d273) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 242, 205, .2), 0 5px 12px rgba(0, 0, 0, .4) !important;
}

#s-product #plans-list .pc-body {
  display: grid;
  flex: 0 0 auto !important;
  gap: 9px;
  padding: 10px 2px 2px !important;
}

#s-product #plans-list .pc-name {
  display: grid;
  min-height: 58px;
  place-items: center;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 4px solid #e5bc63 !important;
  border-radius: 15px 19px 15px 19px !important;
  color: #fff0ca !important;
  background: var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 800 clamp(17px, 4.6vw, 23px)/1.2 Georgia, "Times New Roman", serif !important;
  text-align: center;
}

#s-product #plans-list .pc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  margin: 0 !important;
}

#s-product #plans-list .pc-stat-cell {
  min-width: 0;
  min-height: 78px;
  padding: 9px 11px !important;
  border: 2px solid rgba(225, 185, 91, .9) !important;
  border-radius: 13px !important;
  color: #fff0cb !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), transparent 50%),
    linear-gradient(145deg, #102c16, #07190d) !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .13), 0 3px 8px rgba(0, 0, 0, .24) !important;
}

#s-product #plans-list .pc-stat-cell .sk {
  color: #e5d3a8 !important;
  font-size: 10px !important;
  letter-spacing: .04em;
}

#s-product #plans-list .pc-stat-cell .sv {
  color: #ffd96b !important;
  font-size: clamp(18px, 5vw, 24px) !important;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

#s-product #plans-list .pc-stat-cell .su {
  color: #fff0d0 !important;
  font-size: 10px !important;
}

#s-product #plans-list .btn-buy:not(:disabled) {
  width: 100%;
  min-height: 53px !important;
  margin-top: 2px !important;
  padding: 9px 14px !important;
  border: 4px solid #ffe08a !important;
  border-radius: 999px !important;
  color: #08210e !important;
  background:
    linear-gradient(180deg, #8df04d, #2fc741 52%, #128c3c) padding-box,
    linear-gradient(145deg, #fff0a0, #a86225, #f0ca69) border-box !important;
  box-shadow: 0 0 0 2px rgba(127, 223, 67, .2), 0 4px 10px rgba(0, 0, 0, .35) !important;
  font: 900 clamp(15px, 4.2vw, 19px)/1.2 Georgia, "Times New Roman", serif !important;
}

#s-product #plans-list .btn-buy:disabled {
  background: var(--an-wood) border-box !important;
}

#s-product #plans-list .an-node-media-count::after {
  content: " " attr(data-live-count);
}

#s-product #plans-list .an-node-media-unavailable {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #fff0c9;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(48, 120, 54, .5), transparent 55%),
    linear-gradient(145deg, #10391d, #07190d);
  font: 800 14px Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

#s-product #plans-list .an-node-load-error,
#s-plandetail #pd-content .an-node-load-error {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  padding: 14px !important;
  border: 4px solid transparent !important;
  border-radius: 18px 22px 18px 22px !important;
  color: #fff0cc !important;
  background:
    linear-gradient(145deg, #10391d, #071d10) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge), 0 5px 12px rgba(0, 0, 0, .32) !important;
}

#s-product #plans-list .an-node-load-error-icon,
#s-plandetail #pd-content .an-node-load-error-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 28px;
}

#s-product #plans-list .an-node-load-error-copy,
#s-plandetail #pd-content .an-node-load-error-copy {
  min-width: 0;
}

#s-product #plans-list .an-node-load-error-copy strong,
#s-plandetail #pd-content .an-node-load-error-copy strong {
  color: #ffe078;
  font: 800 16px Georgia, "Times New Roman", serif;
}

#s-product #plans-list .an-node-load-error-copy p,
#s-plandetail #pd-content .an-node-load-error-copy p {
  margin: 5px 0 0;
  color: #f2e3c3;
  font-size: 12px;
  line-height: 1.4;
}

#s-product #plans-list .an-node-load-retry,
#s-plandetail #pd-content .an-node-load-retry {
  grid-column: 2;
  justify-self: start;
  min-height: 40px;
  padding: 7px 20px;
  border: 3px solid transparent;
  border-radius: 999px;
  color: #fff0cc;
  background:
    linear-gradient(145deg, #60351b, #34190c) padding-box,
    linear-gradient(145deg, #fff0a0, #a86225, #f0ca69) border-box;
  box-shadow: var(--an-wood-edge);
  font: 800 14px Georgia, "Times New Roman", serif;
  cursor: pointer;
}

#s-plandetail #pd-content .an-plan-media-unavailable {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  color: #fff0c9;
  background: linear-gradient(145deg, #10391d, #07190d);
  font: 800 14px Georgia, "Times New Roman", serif;
  text-align: center;
}

@media (max-width: 420px) {
  #s-product #plans-list > .plans-grid > .plan-card {
    padding: 7px !important;
  }

  #s-product #plans-list .pc-img-wrap {
    height: clamp(174px, 53vw, 235px) !important;
  }

  #s-product #plans-list .pc-stat-cell {
    min-height: 72px;
    padding: 8px !important;
  }
}


/* ArtisanNest reference-page composition layer
   Load after user-pages-app.css. Presentation only; no copy, DOM, state, or actions. */

:root {
  --an-wood:
    linear-gradient(176deg, rgba(255, 220, 148, .24), transparent 21%, transparent 78%, rgba(25, 9, 3, .4)),
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(255, 226, 170, .1) 9px, transparent 11px 18px),
    repeating-linear-gradient(2deg, transparent 0 18px, rgba(31, 11, 4, .27) 19px, transparent 22px 34px),
    linear-gradient(106deg, #452011 0%, #8c4e25 22%, #603016 46%, #a5622d 70%, #462011 100%);
  --an-wood-edge:
    inset 0 2px 2px rgba(255, 238, 189, .7),
    inset 0 -4px 6px rgba(26, 9, 3, .56),
    0 5px 13px rgba(0, 0, 0, .34);
  --an-leaf-vine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 160'%3E%3Cpath d='M7 153C33 128 16 102 42 81S22 38 43 7' fill='none' stroke='%23754b20' stroke-width='3'/%3E%3Cpath d='M21 135C6 130 3 121 7 114c11-1 18 6 14 21zm10-25c16-7 21-17 17-25-13 1-19 9-17 25zm-6-27C9 80 4 70 8 64c11 0 17 7 17 19zm14-28c12-8 14-17 10-24-12 2-16 10-10 24zM30 29C17 29 11 21 14 14c9 0 15 5 16 15z' fill='%232a8a37' stroke='%23b7d35a' stroke-width='1.4'/%3E%3C/svg%3E");
}

#s-wdproof,
#s-giftcode,
#s-wdpass,
#s-support,
#s-me,
#s-walhist,
#s-gamewallet {
  --an-ref-leaf: #8cce3f;
  --an-ref-leaf-light: #c4e975;
  --an-ref-paper: #f8edc9;
  --an-ref-paper-shadow: #ddc68f;
  --an-ref-wood-line: rgba(255, 224, 151, .86);
  --an-ref-panel: linear-gradient(145deg, #15532a, #072613 76%);
  background:
    radial-gradient(ellipse at 8% 13%, rgba(104, 167, 52, .2), transparent 29%),
    radial-gradient(ellipse at 94% 68%, rgba(78, 145, 44, .18), transparent 27%),
    radial-gradient(ellipse at 50% 0, rgba(183, 214, 80, .15), transparent 32%),
    linear-gradient(180deg, #143719 0%, #092311 34%, #06180d 100%) !important;
}

#s-wdproof .scroll,
#s-giftcode .scroll,
#s-wdpass .scroll,
#s-support .scroll,
#s-me .scroll,
#s-walhist .scroll,
#s-gamewallet .scroll {
  position: relative;
  isolation: isolate;
  padding-top: 13px !important;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 0 2%, rgba(191, 224, 92, .07), transparent 27%),
    radial-gradient(ellipse at 100% 40%, rgba(191, 224, 92, .06), transparent 25%);
}

#s-wdproof .back-hdr,
#s-giftcode .back-hdr,
#s-wdpass .back-hdr,
#s-support .back-hdr,
#s-walhist .hdr {
  min-height: 58px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(22, 66, 28, .97), rgba(5, 26, 13, .99)) padding-box,
    linear-gradient(90deg, transparent, #d7ad52 18%, #fff0ab 50%, #a66a28 82%, transparent) border-box !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .36) !important;
}

#s-wdproof .back-title,
#s-giftcode .back-title,
#s-wdpass .back-title,
#s-support .back-title,
#s-walhist .hdr-logo {
  color: #fff1ce !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(16px, 4.5vw, 21px) !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  text-shadow: 0 2px 3px rgba(20, 8, 2, .75);
}

#s-wdproof .back-btn,
#s-giftcode .back-btn,
#s-wdpass .back-btn,
#s-support .back-btn,
#s-walhist .back-btn {
  min-width: 42px !important;
  min-height: 42px !important;
  border: 2px solid #dfbd67 !important;
  border-radius: 50% !important;
  color: #fff2d2 !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 165, .16), transparent 50%),
    var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

/* Withdrawal proof: instructional green sign, paired upload bays, single
   oversized action. Existing upload inputs and submit handlers stay intact. */
#s-wdproof .wdp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 1px 0 13px !important;
  padding: 17px 15px 16px !important;
  border: 5px solid transparent !important;
  border-radius: 22px 16px 22px 16px !important;
  color: #fff2d0 !important;
  background:
    linear-gradient(115deg, rgba(91, 150, 43, .19), transparent 55%),
    linear-gradient(145deg, #176330, #07351d 72%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 234, 171, .1), 0 7px 16px rgba(0, 0, 0, .34) !important;
  text-align: center;
}

#s-wdproof .wdp-hero::before {
  position: absolute;
  z-index: -1;
  top: 9px;
  right: 10px;
  width: 60px;
  height: 50px;
  border-radius: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M8 15h12l5-7h15l5 7h11a5 5 0 0 1 5 5v23a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5V20a5 5 0 0 1 5-5Z' fill='%230b3820' stroke='%23f0cf72' stroke-width='3'/%3E%3Ccircle cx='33' cy='31' r='12' fill='%231d7040' stroke='%23fff0b1' stroke-width='3'/%3E%3Ccircle cx='33' cy='31' r='5' fill='%23a9d94d'/%3E%3Cpath d='M48 22h7' stroke='%23f2d67c' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  opacity: .9;
}

#s-wdproof .wdp-hero > :is(h1, h2, h3, strong, b):first-child {
  display: block;
  margin: 0 48px 8px 0;
  padding: 7px 10px;
  border: 1px solid rgba(248, 217, 131, .72);
  border-radius: 12px;
  color: #fff1bf !important;
  background: linear-gradient(90deg, rgba(4, 36, 18, .4), rgba(95, 150, 47, .25));
  font-size: clamp(17px, 4.5vw, 23px);
}

#s-wdproof .wdp-hero :is(p, li) {
  color: #fff2d6 !important;
  font-size: 13px;
  line-height: 1.48;
}

#s-wdproof .wdp-hero :is(strong, b) {
  color: #ffdf56 !important;
}

#s-wdproof #wdp-ss1,
#s-wdproof #wdp-ss2 {
  min-height: 132px;
  padding: 12px 9px !important;
  border: 2px dashed #8c6b2b !important;
  border-radius: 19px !important;
  color: #483817 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 245, .5), transparent 45%),
    repeating-linear-gradient(0deg, rgba(115, 88, 43, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff5d7, #e8d6a5) !important;
  box-shadow: inset 0 0 0 4px rgba(255, 254, 234, .45), 0 4px 9px rgba(0, 0, 0, .23) !important;
}

#s-wdproof #wdp-ss1::file-selector-button,
#s-wdproof #wdp-ss2::file-selector-button {
  display: block;
  min-height: 39px;
  margin: 7px auto 8px;
  padding: 7px 13px;
  border: 2px solid #b5df69;
  border-radius: 999px;
  color: #fff5d8;
  background: linear-gradient(180deg, #2a9a3f, #08702f 75%, #075024);
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), 0 3px 6px rgba(0, 0, 0, .28);
  font: 800 13px Georgia, "Times New Roman", serif;
}

#s-wdproof .btn-sub {
  min-height: 58px !important;
  margin-top: 9px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  color: #39210b !important;
  background:
    linear-gradient(180deg, #ffe57b, #eaa82e 80%, #c8781e) padding-box,
    linear-gradient(145deg, #fff2a5, #a35a16, #f4cd60) border-box !important;
  box-shadow: inset 0 2px #fff7bd, 0 5px 11px rgba(0, 0, 0, .35) !important;
  font-size: clamp(17px, 4.8vw, 22px) !important;
  text-shadow: 0 1px rgba(255, 255, 255, .3);
}

#s-wdproof #wdp-list {
  border: 4px solid transparent !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, #123d20, #071e0f) padding-box,
    var(--an-wood) border-box !important;
}

/* Gift code: carved title plaque, deep green entry panel, parchment-like
   code field and a distinct claims ledger. */
#s-giftcode .gift-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 12px !important;
  padding: 15px 62px 14px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 17px 24px 17px 24px !important;
  color: #fff2d5 !important;
  background:
    linear-gradient(95deg, rgba(24, 9, 2, .28), transparent 58%),
    var(--an-wood) padding-box,
    linear-gradient(145deg, #ffe78d, #a45b20, #e6c05d) border-box !important;
  box-shadow: var(--an-wood-edge), inset 0 0 0 2px rgba(255, 231, 164, .1) !important;
  text-align: left;
}

#s-giftcode .gift-hero::after {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 16h34v26H7z' fill='%23e64527' stroke='%23ffdd61' stroke-width='3'/%3E%3Cpath d='M5 11h38v10H5z' fill='%23f1bd27' stroke='%23fff1ad' stroke-width='2'/%3E%3Cpath d='M20 11c-7-1-10-9-4-9 5 0 7 6 8 9m4 0c1-7 7-10 9-6 2 4-3 6-7 6' fill='none' stroke='%23d83125' stroke-width='4'/%3E%3Cpath d='M24 12v30' stroke='%23fff0ac' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35));
}

#s-giftcode .gift-hero :is(h1, h2, h3, strong):first-child {
  display: block;
  margin: 0 0 4px;
  color: #fff4da !important;
  font-size: clamp(20px, 5vw, 27px);
  text-shadow: 0 2px 3px rgba(0, 0, 0, .75);
}

#s-giftcode .gift-hero .gift-title {
  display: block;
  margin: 0 0 4px !important;
  color: #fff4da !important;
  font: 900 clamp(20px, 5vw, 27px)/1.16 Georgia, "Times New Roman", serif !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .75);
}

#s-giftcode .gift-hero :is(p, small) {
  margin: 0;
  color: #fff0ca !important;
  font-size: 12px;
}

#s-giftcode .gift-input-wrap {
  position: relative;
  margin-bottom: 14px !important;
  padding: 17px 14px !important;
  border: 5px solid transparent !important;
  border-radius: 23px !important;
  color: #fff3d5 !important;
  background:
    radial-gradient(ellipse at 95% 0, rgba(134, 201, 55, .18), transparent 42%),
    linear-gradient(145deg, #11622a, #04321a) padding-box,
    linear-gradient(145deg, #ffe56e, #bd6b1c, #f3cc4f) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 239, 166, .1), 0 7px 16px rgba(0, 0, 0, .3) !important;
}

#s-giftcode .gift-input-wrap :is(label, .label, strong) {
  color: #fff3ce !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

#s-giftcode #gift-code-inp {
  min-height: 58px;
  border: 2px solid #b7e151 !important;
  border-radius: 15px !important;
  color: #fff0bb !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .23), rgba(3, 35, 16, .55)),
    #06431f !important;
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .36), 0 0 0 2px rgba(0, 0, 0, .2) !important;
  font: 800 clamp(17px, 5vw, 24px) Georgia, "Times New Roman", serif !important;
  letter-spacing: .13em !important;
  text-align: center;
}

#s-giftcode #gift-code-inp::placeholder {
  color: #e0d6ab !important;
  opacity: .95;
}

#s-giftcode .gift-input-wrap button:not(.btn-sub) {
  min-height: 42px;
  border: 2px solid #f1cf78 !important;
  border-radius: 14px !important;
  color: #fff1cd !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-giftcode .btn-sub {
  min-height: 52px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  color: #3a240f !important;
  background:
    linear-gradient(180deg, #ffe67d, #e6a329) padding-box,
    linear-gradient(145deg, #fff2a5, #aa5e19, #f1cc62) border-box !important;
  box-shadow: inset 0 1px #fff6c9, 0 5px 10px rgba(0, 0, 0, .3) !important;
  font-size: 16px !important;
}

#s-giftcode #gift-hist-list {
  position: relative;
  margin-top: 18px !important;
  padding: 14px !important;
  border: 5px solid transparent !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, #0f4825, #062413) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .27) !important;
}

/* Withdraw password: pale timber writing board with clear field groupings
   followed by the darker security-notes plank. */
#s-wdpass #wdpass-status-msg {
  position: relative;
  margin: 0 0 13px !important;
  padding: 14px 12px !important;
  border: 5px solid transparent !important;
  border-radius: 22px !important;
  color: #24432a !important;
  background:
    repeating-linear-gradient(0deg, rgba(124, 89, 40, .045) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff5d7, #e9d3a0) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffef1, 0 7px 16px rgba(0, 0, 0, .3) !important;
  text-align: center;
}

#s-wdpass #wdpass-status-msg:has(+ form),
#s-wdpass #wdpass-status-msg:has(+ div) {
  margin-top: 5px !important;
}

#s-wdpass .scroll > div:first-child {
  box-sizing: border-box;
  width: calc(100% - 24px);
  margin: 8px 12px 15px !important;
  padding: 16px 13px 13px !important;
  border: 5px solid transparent !important;
  border-radius: 22px !important;
  color: #243c2b !important;
  background:
    repeating-linear-gradient(0deg, rgba(123, 89, 40, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff4d5, #e9d6a8) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffef0, 0 7px 17px rgba(0, 0, 0, .32) !important;
}

#s-wdpass .scroll > div:first-child > div:first-child {
  margin: 0 0 14px !important;
  padding: 12px !important;
  border: 3px solid #d9bd63 !important;
  border-radius: 16px !important;
  color: #fff3d0 !important;
  background: linear-gradient(145deg, #17813b, #075125) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 4px 9px rgba(0, 0, 0, .2) !important;
}

#s-wdpass .scroll > div:first-child > div:last-child {
  margin-top: 16px !important;
  padding: 14px !important;
  border: 4px solid transparent !important;
  border-radius: 16px !important;
  color: #fff0ca !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-wdpass .scroll > div:first-child > div:last-child b {
  color: #ffe36f !important;
}

#s-wdpass #wdpass-cur-wrap {
  padding: 11px !important;
  border: 1px solid rgba(198, 158, 76, .42) !important;
  border-radius: 15px !important;
  color: #3b472f !important;
  background: rgba(255, 250, 228, .56) !important;
}

#s-wdpass .scroll :is(label, .field-label, .form-label) {
  display: block;
  margin: 10px 0 5px;
  color: #29291c !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

#s-wdpass #wdpass-cur,
#s-wdpass #wdpass-new,
#s-wdpass #wdpass-confirm {
  min-height: 52px;
  border: 2px solid #3f733a !important;
  border-radius: 15px !important;
  color: #28392c !important;
  background:
    repeating-linear-gradient(0deg, rgba(92, 73, 39, .025) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff4d1, #eddfb8) !important;
  box-shadow: inset 0 2px 4px rgba(82, 59, 23, .1) !important;
  font-size: 16px !important;
}

#s-wdpass .btn-sub {
  min-height: 56px !important;
  margin-top: 13px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  color: #fff6d8 !important;
  background:
    linear-gradient(180deg, #30aa35, #08792c 72%, #075126) padding-box,
    linear-gradient(145deg, #e6f679, #9a5c1d, #f2d76e) border-box !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 5px 10px rgba(0, 0, 0, .3) !important;
  font-size: 17px !important;
}

/* Customer support: carved green title zone, warm help board, two-up channels
   when enough room exists. Existing individual channel colors are preserved. */
#s-support #support-links-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  padding: 14px !important;
  border: 5px solid transparent !important;
  border-radius: 24px !important;
  background:
    repeating-linear-gradient(0deg, rgba(124, 89, 40, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff4d4, #ead6a5) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf0, 0 7px 17px rgba(0, 0, 0, .3) !important;
}

#s-support .scroll > div:first-child {
  margin: 0 12px 12px !important;
  padding: 13px 12px !important;
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  color: #fff0c8 !important;
  background:
    linear-gradient(145deg, #15512a, #082613) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-support .scroll > div:first-child > div:nth-child(2) {
  color: #fff0c8 !important;
  font: 900 21px/1.18 Georgia, "Times New Roman", serif !important;
}

#s-support .scroll > div:first-child > div:nth-child(3) {
  color: #f0e4c1 !important;
}

#s-support #support-links-list > a,
#s-support #support-links-list > button,
#s-support #support-links-list > div:not(.loader):not(.empty) {
  min-height: 82px;
  padding: 10px 9px !important;
  border: 2px solid rgba(255, 229, 147, .91) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 4px 8px rgba(0, 0, 0, .23) !important;
}

#s-support #support-links-list :is(strong, b, .support-title) {
  display: block;
  color: #d9f58d !important;
  font-size: clamp(11px, 3vw, 14px);
  line-height: 1.2;
}

#s-support #support-links-list :is(small, p, .support-subtitle) {
  margin: 3px 0 0 !important;
  color: #fff4d7 !important;
  font-size: 10px !important;
  line-height: 1.25;
}

#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(-n + 3) {
  color: #fff1d1 !important;
  background: linear-gradient(145deg, #0e7c35, #075124) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(4),
#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(5) {
  color: #e8f6ff !important;
  background: linear-gradient(145deg, #0874ad, #06406e) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(6) {
  color: #fff0d3 !important;
  background: linear-gradient(145deg, #75389c, #43205e) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > .support-btn:nth-child(1):not(.loader):not(.empty),
#s-support #support-links-list > .support-btn:nth-child(2):not(.loader):not(.empty),
#s-support #support-links-list > .support-btn:nth-child(3):not(.loader):not(.empty) {
  color: #fff1d1 !important;
  background: linear-gradient(145deg, #0e7c35, #075124) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > .support-btn:nth-child(4):not(.loader):not(.empty),
#s-support #support-links-list > .support-btn:nth-child(5):not(.loader):not(.empty) {
  color: #e8f6ff !important;
  background: linear-gradient(145deg, #0874ad, #06406e) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > .support-btn:nth-child(6):not(.loader):not(.empty) {
  color: #fff0d3 !important;
  background: linear-gradient(145deg, #75389c, #43205e) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(4) strong,
#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(5) strong {
  color: #8de4ff !important;
}

#s-support #support-links-list .support-btn-name,
#s-support #support-links-list .support-btn-sub {
  display: block !important;
}

#s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)):nth-child(6) strong {
  color: #f2c4ff !important;
}

#s-support #support-craft-gallery {
  border: 4px solid transparent !important;
  border-radius: 21px !important;
  background:
    linear-gradient(145deg, #123d20, #071d0f) padding-box,
    var(--an-wood) border-box !important;
}

/* Mine: warm profile plaque and a clearly separated list of account actions. */
#s-me .me-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 13px !important;
  padding: 22px 15px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 16px 23px 16px !important;
  color: #30412c !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .6), transparent 53%),
    repeating-linear-gradient(0deg, rgba(104, 80, 40, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff2d0, #ddc58c) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf0, 0 7px 15px rgba(0, 0, 0, .28) !important;
}

#s-me .me-stats {
  gap: 8px !important;
  margin-bottom: 14px !important;
}

#s-me .me-stat {
  min-height: 75px;
  padding: 11px 6px !important;
  border: 3px solid transparent !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, #fff4d5, #e1cc98) padding-box,
    linear-gradient(145deg, #fff0ae, #986027, #e8c15c) border-box !important;
  box-shadow: inset 0 1px #fffef4, 0 4px 9px rgba(0, 0, 0, .24) !important;
}

#s-me .me-stat .mk {
  color: #6b5b38 !important;
  font-size: 10px !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}

#s-me .me-stat .mv {
  color: #235836 !important;
  font-size: clamp(15px, 4.2vw, 21px) !important;
  font-weight: 900 !important;
}

#s-me .me-menu { gap: 9px !important; }

#s-me .me-item {
  min-height: 57px;
  padding: 9px 13px !important;
  border: 3px solid transparent !important;
  border-radius: 15px 20px 15px 20px !important;
  background:
    linear-gradient(145deg, #174a29, #082615) padding-box,
    linear-gradient(145deg, #ffe7a1, #9b5a20, #e7c265) border-box !important;
  box-shadow: inset 0 1px rgba(255, 241, 197, .16), 0 4px 9px rgba(0, 0, 0, .27) !important;
}

#s-me .me-item-ic {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 226, 146, .58);
  border-radius: 10px;
  color: #ffdf82 !important;
  background: linear-gradient(145deg, #286c36, #0b3a20);
}

#s-me .me-item-lb { font-weight: 750; }

#s-me .me-item-ar {
  font-size: 0 !important;
}

#s-me .me-item-ar::after {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #f4d986;
  border-right: 2px solid #f4d986;
  content: "";
  transform: rotate(45deg);
}

/* All-wallet ledger: compact wooden tabs and repeated receipt plaques with
   chart-mark icons drawn as SVG rather than adding icon characters. */
#s-walhist #walhist-tabs {
  display: flex !important;
  gap: 7px !important;
  margin: 8px 0 12px !important;
  padding: 6px !important;
  overflow-x: auto;
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  background:
    linear-gradient(145deg, #321a0d, #1b1009) padding-box,
    linear-gradient(145deg, #ffe9a0, #90511c, #e2bd5b) border-box !important;
}

#s-walhist #walhist-tabs > button {
  min-height: 42px;
  flex: 1 0 auto;
  padding: 8px 10px !important;
  border: 2px solid rgba(244, 208, 119, .88) !important;
  border-radius: 999px !important;
  color: #fff2d1 !important;
  background: var(--an-wood) !important;
  font: 800 12px Georgia, "Times New Roman", serif !important;
  white-space: nowrap;
}

#s-walhist #walhist-tabs > button:is(.active, [aria-pressed="true"], [style*="linear-gradient"]) {
  color: #fff7dc !important;
  background: linear-gradient(180deg, #238b3c, #075225) !important;
}

#s-walhist #walhist-list {
  display: grid;
  gap: 9px;
  padding: 0 0 15px;
}

#s-walhist #walhist-list > .hist-item,
#s-walhist #walhist-list > article,
#s-walhist #walhist-list > section,
#s-walhist #walhist-list > div:not(.loader):not(.empty) {
  grid-template-columns: 46px minmax(0, 1fr) minmax(96px, auto) !important;
  gap: 8px !important;
  min-height: 82px;
  padding: 9px !important;
  border: 4px solid transparent !important;
  border-radius: 17px 21px 17px 21px !important;
  color: #fff2d5 !important;
  background:
    linear-gradient(100deg, rgba(255, 242, 200, .055), transparent 55%),
    var(--an-wood) padding-box,
    linear-gradient(145deg, #ffe89b, #9a5920, #e9c55f) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 185, .2), 0 5px 10px rgba(0, 0, 0, .3) !important;
}

#s-walhist #walhist-list .hist-ic {
  color: transparent !important;
  font-size: 0 !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='4' y='4' width='40' height='40' rx='7' fill='%23fff9e9' stroke='%23c7b680' stroke-width='2'/%3E%3Cpath d='M12 35V14m0 21h25M16 30l7-8 6 4 8-11' fill='none' stroke='%232d9a43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m32 15 5 0 0 5' fill='none' stroke='%23de4b37' stroke-width='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    #f8efd7 !important;
}

#s-walhist #walhist-list .hist-desc {
  color: #fff2d7 !important;
  font-size: clamp(12px, 3.3vw, 15px) !important;
}

#s-walhist #walhist-list .hist-date {
  color: #e8d7b2 !important;
}

#s-walhist #walhist-list .hist-amt {
  color: #9ae352 !important;
  font-size: clamp(14px, 3.7vw, 18px) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

#s-wdproof .scroll > div:nth-child(2) {
  border: 5px solid transparent !important;
  border-radius: 20px !important;
  color: #302719 !important;
  background:
    repeating-linear-gradient(0deg, rgba(120, 86, 38, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff5d9, #e7d1a0) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffef2, 0 7px 17px rgba(0, 0, 0, .3) !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child {
  padding: 11px 12px !important;
  border-bottom: 1px dashed rgba(93, 119, 54, .55) !important;
  border-radius: 12px !important;
  color: #342d1d !important;
  background: rgba(255, 249, 225, .68) !important;
  line-height: 1.55 !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child b {
  color: #1d6a32 !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:nth-child(2),
#s-wdproof .scroll > div:nth-child(2) > div:nth-child(4) {
  padding: 8px !important;
  border: 1px solid #b2d56a !important;
  border-radius: 999px !important;
  color: #fff4d2 !important;
  background: linear-gradient(145deg, #147239, #084d25) !important;
  font: 800 11px/1.25 Georgia, "Times New Roman", serif !important;
}

#s-giftcode .scroll > div:nth-child(3) {
  margin: 2px 12px 14px !important;
  padding: 0 !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child {
  position: relative;
  overflow: hidden;
  padding: 15px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 20px 16px 20px 16px !important;
  color: #fff0c9 !important;
  background:
    radial-gradient(ellipse at 100% 0, rgba(162, 213, 65, .18), transparent 39%),
    linear-gradient(145deg, #15542a, #082513) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
  line-height: 1.75 !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child b:first-child {
  color: #ffe36f !important;
  font: 900 18px/1.2 Georgia, "Times New Roman", serif !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child b:not(:first-child) {
  color: #fff4d3 !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child br {
  line-height: 1.8;
}

/* Game-wallet transfer: purple balance badge remains the one distinguishing
   accent; the money-entry board and controls use the same hand-built wood. */
#s-gamewallet .scroll > div:first-child {
  position: relative;
  overflow: hidden;
  margin: 11px 12px 10px !important;
  padding: 18px 15px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 24px 17px !important;
  background:
    radial-gradient(ellipse at 86% 5%, rgba(193, 133, 246, .3), transparent 44%),
    linear-gradient(145deg, #552b79, #25133b) padding-box,
    linear-gradient(145deg, #ffe89a, #94541e, #e7c360) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(255, 231, 160, .1), 0 7px 17px rgba(0, 0, 0, .34) !important;
}

#s-gamewallet .scroll > div:first-child::after {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 66px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 38'%3E%3Crect x='3' y='5' width='58' height='28' rx='7' fill='%23d6b44e' stroke='%23fff0a5' stroke-width='2'/%3E%3Cpath d='M9 10h46v17H9z' fill='%232e1749'/%3E%3Cpath d='M39 16h14v8H39z' rx='3' fill='%23d1b5e4'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  opacity: .78;
  pointer-events: none;
}

#s-gamewallet .scroll > div:nth-child(2) {
  padding: 10px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 24px 17px !important;
  background:
    var(--an-wood) padding-box,
    linear-gradient(145deg, #ffe99b, #94541d, #e6c15e) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-gamewallet .scroll > div:nth-child(2) > div:first-child {
  padding: 15px !important;
  border: 2px solid #b8964a !important;
  border-radius: 17px !important;
  background:
    repeating-linear-gradient(0deg, rgba(110, 84, 42, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff5d8, #e8d6a8) !important;
  box-shadow: inset 0 1px #fffef2, 0 4px 8px rgba(0, 0, 0, .2) !important;
}

#s-gamewallet .scroll > div:nth-child(2) > div:nth-child(2) {
  min-height: 48px;
  border: 2px solid #d6ac58 !important;
  border-radius: 15px !important;
  background: var(--an-wood) !important;
}

#s-gamewallet .scroll > div:nth-child(2) > div:nth-child(3) {
  min-height: 48px;
  border: 2px solid #b8dc68 !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #1c7a38, #0a3d20) !important;
}

#s-gamewallet .scroll input.inp-field {
  min-height: 50px;
  border: 2px solid #c9a653 !important;
  border-radius: 14px !important;
  color: #fff2d4 !important;
  background: linear-gradient(145deg, #4b2a16, #271409) !important;
}

#s-gamewallet .scroll button {
  min-height: 44px;
  border: 2px solid #f0cf7b !important;
  border-radius: 15px !important;
  color: #fff2d1 !important;
  background: linear-gradient(145deg, #218443, #0a4828) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 4px 8px rgba(0, 0, 0, .25) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

/* Home reference cards: the invite strip reads as a cream/gold callout;
   check-in and nodes are side-by-side reward tiles on phones where possible. */
#s-home #home-scroll > .home-top > button[onclick*="s-invite"] {
  position: relative;
  min-height: 94px !important;
  padding: 14px 14px 14px 76px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 24px 17px !important;
  color: #273c2a !important;
  background:
    radial-gradient(ellipse at 0 50%, rgba(134, 181, 57, .2), transparent 42%),
    repeating-linear-gradient(0deg, rgba(100, 76, 37, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff5d7, #e1ca91) padding-box,
    linear-gradient(145deg, #fff0a6, #a26726, #e5c466) border-box !important;
  box-shadow: inset 0 1px #fffef2, 0 6px 14px rgba(0, 0, 0, .29) !important;
  text-align: left !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"]::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(113, 94, 48, .42);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='17' cy='15' r='8' fill='%231e512d'/%3E%3Ccircle cx='32' cy='17' r='7' fill='%232f6633'/%3E%3Cpath d='M3 39c1-9 6-14 14-14s13 5 14 14H3Zm23 0c0-6-1-10-4-13 9-4 19 2 21 13H26Z' fill='%231f552d'/%3E%3Ccircle cx='37' cy='37' r='9' fill='%23f5d767' stroke='%23fff5ce' stroke-width='2'/%3E%3Cpath d='M37 32v10m-5-5h10' stroke='%23396327' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat,
    linear-gradient(145deg, #f6e7ba, #d0b676);
  content: "";
  transform: translateY(-50%);
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-icon {
  display: none !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-copy {
  min-width: 0;
  color: #30422c !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-heading {
  display: block;
  color: #30281a !important;
  font-size: clamp(13px, 3.6vw, 16px) !important;
  line-height: 1.2;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-reward {
  display: block;
  color: #205b31 !important;
  font-size: clamp(22px, 6vw, 31px) !important;
  line-height: 1.08;
  text-shadow: 0 1px rgba(255, 255, 255, .55);
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] .an-home-invite-breakdown {
  display: inline-block;
  margin-top: 5px;
  padding-left: 9px;
  border-left: 2px solid rgba(113, 79, 30, .4);
  color: #40351f !important;
  font-size: 10px !important;
}

#s-home #home-scroll > #ci-home-card,
#s-home #home-scroll > #dev-widget-wrap {
  min-height: 0 !important;
  border: 4px solid transparent !important;
  border-radius: 23px 16px 23px 16px !important;
  background:
    linear-gradient(145deg, #0d4724, #062613) padding-box,
    linear-gradient(145deg, #fff0a0, #9e6024, #e7c65c) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home #home-scroll > #ci-home-card {
  min-height: 187px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 !important;
  background:
    radial-gradient(ellipse at 88% 0, rgba(144, 192, 64, .15), transparent 42%),
    linear-gradient(145deg, #104327, #062512) padding-box,
    linear-gradient(145deg, #fff0a0, #9e6024, #e7c65c) border-box !important;
}

#s-home #home-scroll > #ci-home-card > div:first-child {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 8px 8px !important;
  min-height: 155px;
  padding: 13px 11px !important;
  background: transparent !important;
}

#s-home #home-scroll > #ci-home-card #ci-home-ic {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid !important;
  width: 52px !important;
  height: 57px !important;
  place-items: center;
  border: 2px solid #dfc46d !important;
  border-radius: 13px !important;
  color: #fff3d2 !important;
  background:
    linear-gradient(180deg, #d74935 0 22%, #fff4d8 22% 100%) !important;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .28);
  font-size: 0 !important;
  filter: none !important;
}

#s-home #home-scroll > #ci-home-card .ci-cal-box {
  width: 48px !important;
  min-height: 57px !important;
  border: 1px solid #e6d39a !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #fff 0%, #f5efdd 100%) !important;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .28);
}

#s-home #home-scroll > #ci-home-card .ci-cal-month {
  min-height: 16px;
  padding: 2px 3px;
  color: #fff !important;
  background: linear-gradient(180deg, #e34a3d, #b72c26);
  font: 800 9px/1.2 Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

#s-home #home-scroll > #ci-home-card .ci-cal-day {
  display: grid;
  flex: 1;
  place-items: center;
  color: #244c30 !important;
  font: 900 24px/.95 Georgia, "Times New Roman", serif;
  text-align: center;
}

#s-home #home-scroll > #ci-home-card > div:first-child > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  padding: 0 !important;
  background: transparent !important;
}

#s-home #home-scroll > #ci-home-card > div:first-child > div:nth-child(2) > div:first-child {
  color: #fff0c7 !important;
  font: 800 clamp(13px, 3.5vw, 16px)/1.18 Georgia, "Times New Roman", serif !important;
}

#s-home #home-scroll > #ci-home-card #ci-home-sub {
  color: #e5d7b2 !important;
  font-size: 10px !important;
  line-height: 1.25;
}

#s-home #home-scroll > #ci-home-card > div:first-child > div:nth-child(3) {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 223, 142, .25);
  text-align: left !important;
}

#s-home #home-scroll > #ci-home-card #ci-home-reward {
  color: #ffe27b !important;
  font-size: clamp(15px, 4vw, 19px) !important;
}

#s-home #home-scroll > #ci-home-card #ci-home-badge {
  min-height: 32px;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 2px solid #e9c769 !important;
  border-radius: 999px !important;
  color: #fff3d5 !important;
  background: var(--an-wood) !important;
  font-size: 10px !important;
  white-space: nowrap;
}

#s-home #home-scroll > #dev-widget-wrap {
  padding: 4px !important;
}

#s-home #home-scroll > #dev-widget-wrap .dev-widget {
  position: relative;
  min-height: 179px !important;
  padding: 12px 12px 11px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background:
    radial-gradient(ellipse at 90% 2%, rgba(123, 194, 56, .23), transparent 44%),
    linear-gradient(145deg, #0d5129, #062818) !important;
  box-shadow: none !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-ic {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 48px;
  height: 57px;
  border: 1px solid rgba(245, 213, 133, .65);
  border-radius: 13px;
  color: transparent !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 57'%3E%3Crect x='4' y='3' width='39' height='50' rx='7' fill='%23a96a28' stroke='%23f6d779' stroke-width='2'/%3E%3Crect x='8' y='7' width='31' height='42' rx='5' fill='%232b6d36'/%3E%3Cpath d='M13 27c7-12 17-12 23 0-6 11-16 11-23 0Z' fill='%2398d249' stroke='%23f2df8c' stroke-width='2'/%3E%3Cpath d='M24 17c-4 6-4 14 0 21 4-7 4-15 0-21Z' fill='%23e3bd57'/%3E%3C/svg%3E") center / contain no-repeat;
  font-size: 0 !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-info {
  padding-left: 57px;
}

#s-home #home-scroll > #dev-widget-wrap .dw-title {
  min-height: 43px;
  color: #fff0c8 !important;
  font: 700 clamp(12px, 3.1vw, 15px)/1.24 Georgia, "Times New Roman", serif !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-amt {
  margin: 3px 0 !important;
  color: #ffe277 !important;
  font-size: clamp(19px, 5vw, 25px) !important;
  line-height: 1.05;
}

#s-home #home-scroll > #dev-widget-wrap .dw-sub {
  color: #f1e4c4 !important;
  font-size: 10px !important;
}

#s-home #home-scroll > #dev-widget-wrap .dw-btn {
  width: 100%;
  min-height: 34px !important;
  margin-top: auto !important;
  border: 2px solid #e9c66b !important;
  border-radius: 999px !important;
  color: #fff0c8 !important;
  background: var(--an-wood) !important;
}

@media (max-width: 359px) {
  #s-support #support-links-list { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (min-width: 400px) and (max-width: 759px) {
  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }

  #s-home #home-scroll > #ci-home-card { grid-column: 1 !important; }
  #s-home #home-scroll > #dev-widget-wrap { grid-column: 2 !important; }
}

@media (min-width: 620px) {
  #s-wdproof .scroll:has(#wdp-ss1, #wdp-ss2) > :is(div, section):has(> #wdp-ss1, > #wdp-ss2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 390px) {
  #s-walhist #walhist-list > .hist-item,
  #s-walhist #walhist-list > article,
  #s-walhist #walhist-list > section,
  #s-walhist #walhist-list > div:not(.loader):not(.empty) {
    grid-template-columns: 38px minmax(0, 1fr) minmax(83px, auto) !important;
    gap: 6px !important;
    padding: 7px !important;
  }

  #s-walhist #walhist-list .hist-ic { width: 35px; height: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  #s-wdproof *,
  #s-giftcode *,
  #s-wdpass *,
  #s-support *,
  #s-me *,
  #s-walhist *,
  #s-gamewallet *,
  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Consistent carved-plank headers and forest paper for the remaining user
   routes. Existing content, input names, links, and handlers stay untouched. */
#s-work,
#s-news,
#s-terms,
#s-refund,
#s-finhist,
#s-vip-salary-history,
#s-teamern,
#s-ranking,
#s-ranks,
#s-gateway-payments,
#s-recharge,
#s-withdraw,
#s-newsdet,
#s-commhist,
#s-rebatehist,
#s-cbhist,
#s-dephist,
#s-editprofile,
#s-chat,
#s-pts-convert {
  color: #fff0ca !important;
  background:
    radial-gradient(ellipse at 7% 12%, rgba(133, 184, 54, .2), transparent 28%),
    radial-gradient(ellipse at 93% 77%, rgba(100, 157, 48, .16), transparent 29%),
    linear-gradient(180deg, #174322, #082513 66%, #0b2c17) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-work .hdr,
#s-news .hdr,
#s-terms .back-hdr,
#s-refund .back-hdr,
#s-finhist .back-hdr,
#s-vip-salary-history .back-hdr,
#s-teamern .back-hdr,
#s-ranking .back-hdr,
#s-ranks .back-hdr,
#s-gateway-payments .back-hdr,
#s-recharge .back-hdr,
#s-withdraw .back-hdr,
#s-newsdet .back-hdr,
#s-commhist .back-hdr,
#s-rebatehist .back-hdr,
#s-cbhist .back-hdr,
#s-dephist .back-hdr,
#s-editprofile .back-hdr,
#s-chat .back-hdr,
#s-pts-convert .back-hdr {
  min-height: 58px !important;
  padding: 7px 12px !important;
  border-bottom: 3px solid #d3a94f !important;
  color: #fff2d2 !important;
  background:
    linear-gradient(90deg, rgba(255, 228, 158, .12), transparent 48%),
    linear-gradient(180deg, #20552b, #092713) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 244, 208, .14) !important;
}

#s-work .hdr-logo,
#s-news .hdr-logo,
#s-terms .back-title,
#s-refund .back-title,
#s-finhist .back-title,
#s-vip-salary-history .back-title,
#s-teamern .back-title,
#s-ranking .back-title,
#s-ranks .back-title,
#s-gateway-payments .back-title,
#s-recharge .back-title,
#s-withdraw .back-title,
#s-newsdet .back-title,
#s-commhist .back-title,
#s-rebatehist .back-title,
#s-cbhist .back-title,
#s-dephist .back-title,
#s-editprofile .back-title,
#s-chat .back-title,
#s-pts-convert .back-title {
  color: #fff0c8 !important;
  font: 800 clamp(15px, 4.3vw, 21px)/1.2 Georgia, "Times New Roman", serif !important;
  text-shadow: 0 2px 3px rgba(15, 7, 2, .75);
}

#s-work #tasks-list,
#s-news #news-list,
#s-terms .scroll,
#s-refund .scroll,
#s-finhist .scroll,
#s-vip-salary-history .scroll,
#s-teamern .scroll,
#s-ranking .scroll,
#s-ranks #ranks-list,
#s-newsdet .scroll,
#s-commhist .scroll,
#s-rebatehist .scroll,
#s-cbhist .scroll,
#s-dephist .scroll,
#s-editprofile .scroll,
#s-chat .scroll,
#s-pts-convert .scroll {
  padding: 12px 12px calc(34px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 0 15%, rgba(179, 215, 87, .055), transparent 27%),
    radial-gradient(ellipse at 100% 65%, rgba(179, 215, 87, .045), transparent 25%);
}

/* Policy pages retain their paragraphs but present as readable parchment
   sheets in a wood frame. */
#s-terms .scroll > div > div,
#s-refund .scroll > div > div {
  margin: 0 0 12px !important;
  padding: 16px !important;
  border: 4px solid transparent !important;
  border-radius: 18px 14px 18px 14px !important;
  color: #302719 !important;
  background:
    repeating-linear-gradient(0deg, rgba(120, 86, 38, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff5d9, #e7d1a0) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffef2, 0 5px 12px rgba(0, 0, 0, .28) !important;
}

#s-terms h2,
#s-refund h2 {
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(94, 112, 50, .35) !important;
  color: #1c6b31 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-terms p,
#s-refund p,
#s-terms li,
#s-refund li {
  color: #382d1c !important;
  line-height: 1.65 !important;
}

/* Ledger rows across the account's income, team, commission, rebate,
   cashback, deposit, and salary histories. */
#s-finhist #finhist-summary,
#s-finhist #finhist-list,
#s-vip-salary-history #vsh-list,
#s-teamern #teamern-list,
#s-ranking #daily-ranking-wrap,
#s-ranks #ranks-list,
#s-commhist #commhist-list,
#s-rebatehist #rebatehist-list,
#s-cbhist #cbhist-list,
#s-dephist #dephist-list {
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 4px solid transparent !important;
  border-radius: 19px !important;
  color: #fff0cc !important;
  background:
    linear-gradient(145deg, #124323, #082514) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-finhist #finhist-list,
#s-vip-salary-history #vsh-list,
#s-teamern #teamern-list,
#s-ranking #daily-ranking-wrap,
#s-ranks #ranks-list,
#s-commhist #commhist-list,
#s-rebatehist #rebatehist-list,
#s-cbhist #cbhist-list,
#s-dephist #dephist-list {
  display: grid;
  align-content: start;
  gap: 9px;
}

#s-finhist #finhist-list > :is(article, section, div:not(.loader):not(.empty)),
#s-vip-salary-history #vsh-list > :is(article, section, div:not(.loader):not(.empty)),
#s-teamern #teamern-list > :is(article, section, div:not(.loader):not(.empty)),
#s-ranking #daily-ranking-wrap > :is(article, section, div:not(.loader):not(.empty)),
#s-ranks #ranks-list > :is(article, section, div:not(.loader):not(.empty)),
#s-commhist #commhist-list > :is(article, section, div:not(.loader):not(.empty)),
#s-rebatehist #rebatehist-list > :is(article, section, div:not(.loader):not(.empty)),
#s-cbhist #cbhist-list > :is(article, section, div:not(.loader):not(.empty)),
#s-dephist #dephist-list > :is(article, section, div:not(.loader):not(.empty)),
#s-work #tasks-list > :is(article, section, div:not(.loader):not(.empty)),
#s-news #news-list > :is(article, section, div:not(.loader):not(.empty)) {
  min-width: 0;
  margin: 0 !important;
  padding: 12px !important;
  border: 3px solid transparent !important;
  border-radius: 16px 20px 16px 20px !important;
  color: #fff0ce !important;
  background:
    linear-gradient(145deg, #154528, #092714) padding-box,
    linear-gradient(145deg, #ffe49a, #95541e, #e4bf5d) border-box !important;
  box-shadow: inset 0 1px rgba(255, 238, 190, .14), 0 4px 9px rgba(0, 0, 0, .27) !important;
}

#s-finhist .team-tabs,
#s-teamern .team-tabs,
#s-ranking .team-tabs,
#s-ranks .team-tabs,
#s-commhist .team-tabs,
#s-rebatehist .team-tabs,
#s-cbhist .team-tabs,
#s-dephist .team-tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 11px !important;
  padding: 6px !important;
  overflow-x: auto;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, #28170c, #170e08) padding-box,
    linear-gradient(145deg, #ffe99f, #95531d, #e4bf5d) border-box !important;
}

#s-finhist .team-tabs > *,
#s-teamern .team-tabs > *,
#s-ranking .team-tabs > *,
#s-ranks .team-tabs > *,
#s-commhist .team-tabs > *,
#s-rebatehist .team-tabs > *,
#s-cbhist .team-tabs > *,
#s-dephist .team-tabs > * {
  min-height: 39px;
  flex: 1 0 auto;
  padding: 8px 10px !important;
  border: 1px solid rgba(241, 207, 122, .8) !important;
  border-radius: 999px !important;
  color: #fff0c9 !important;
  background: linear-gradient(145deg, #164628, #082714) !important;
  font: 800 12px Georgia, "Times New Roman", serif !important;
}

/* Keep iframe-backed recharge/withdraw screens framed in the same portal. */
#s-gateway-payments iframe,
#s-recharge iframe,
#s-withdraw iframe {
  border: 4px solid transparent !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, #0c3c20, #061d10) padding-box,
    var(--an-wood) border-box !important;
}

/* Forms and chat keep their native inputs and actions; only their surfaces
   and focus states change. */
#s-editprofile .form-group,
#s-pts-convert .pts-rate-box,
#s-pts-convert #pts-chart-section,
#s-chat .chat-head,
#s-chat #chat-msgs,
#s-chat #chat-blocked-notice {
  border: 3px solid transparent !important;
  border-radius: 17px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #154527, #082514) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-editprofile input,
#s-editprofile select,
#s-editprofile textarea,
#s-pts-convert input,
#s-chat .chat-inp {
  min-height: 46px;
  border: 2px solid #b7dc68 !important;
  border-radius: 13px !important;
  color: #fff2d1 !important;
  background: linear-gradient(145deg, #183b21, #0b2414) !important;
}

#s-editprofile :is(label, .form-label),
#s-pts-convert .pts-rate-val,
#s-pts-convert #cv-pts-bal {
  color: #ffe28a !important;
}

#s-editprofile :is(input, select, textarea):focus,
#s-pts-convert input:focus,
#s-chat .chat-inp:focus {
  outline: 2px solid #f3d579 !important;
  outline-offset: 2px;
}

/* Standalone games: keep the existing game scenes, rules, wallet amounts,
   animations, and controls while applying the same forest/wood frame. */
body:has(#screen-select) {
  --an-game-forest: #0a2916;
  --an-game-green: #14502a;
  --an-game-gold: #f0cf72;
  --an-game-cream: #fff0ca;
  --bg: #092414;
  --card: #10391f;
  --card2: #164628;
  --gold: #f0cf72;
  --gold2: #dfaa3e;
  --green: #7ec54a;
  --border: #9c7136;
  --text: #fff0ca;
  --muted: #d0c19a;
  color: var(--an-game-cream) !important;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(142, 189, 60, .22), transparent 27%),
    radial-gradient(ellipse at 92% 78%, rgba(102, 159, 48, .2), transparent 29%),
    linear-gradient(180deg, #1a4b25, #071c10 67%, #12391c) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body:has(#screen-select) :is(#screen-loading, #screen-lock, #screen-setgamepass, #screen-maint, #screen-select, #screen-mode, #screen-stake, #screen-toss-pick, #screen-toss, #screen-result, #screen-waiting, #screen-history, #screen-wallet) {
  color: var(--an-game-cream) !important;
  background:
    radial-gradient(ellipse at 96% 8%, rgba(153, 203, 72, .12), transparent 30%),
    linear-gradient(180deg, #164123, #082414 72%, #0c3019) !important;
}

body:has(#screen-select) :is(.hdr, .bottom-nav, .chat-head) {
  border-color: #d5a94d !important;
  color: var(--an-game-cream) !important;
  background:
    linear-gradient(90deg, rgba(255, 225, 157, .12), transparent 48%),
    linear-gradient(180deg, #22572e, #0a2916) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 244, 208, .13) !important;
}

body:has(#screen-select) :is(.hdr-logo, .sec-title, .lock-title, .chat-head, #mode-char-name) {
  color: #fff0c7 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  text-shadow: 0 2px 3px rgba(16, 7, 2, .72);
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #fff0c7 !important;
}

body:has(#screen-select) .sec-title {
  padding: 10px 13px !important;
  border: 3px solid transparent !important;
  border-radius: 14px 19px 14px 19px !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

body:has(#screen-select) :is(.content, .lock-wrap, .mode-cards, .lock-form, #char-grid, #hist-list) {
  color: var(--an-game-cream) !important;
}

body:has(#screen-select) .content {
  position: relative;
  isolation: isolate;
}

body:has(#screen-select) .content::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: var(--an-leaf-vine), var(--an-leaf-vine);
  background-repeat: repeat-y, repeat-y;
  background-position: left top, right 30px;
  background-size: 38px 145px, 38px 145px;
  content: "";
  opacity: .23;
}

body:has(#screen-select) .content > * {
  position: relative;
  z-index: 1;
}

body:has(#screen-select) :is(.char-card, .mode-card, .lock-form, #hist-list > *, #screen-wallet .content > *) {
  border: 3px solid transparent !important;
  border-radius: 17px 21px 17px 21px !important;
  color: var(--an-game-cream) !important;
  background:
    linear-gradient(145deg, #174629, #092715) padding-box,
    linear-gradient(145deg, #ffe99d, #98581f, #e6c361) border-box !important;
  box-shadow: inset 0 1px rgba(255, 239, 189, .15), 0 5px 11px rgba(0, 0, 0, .3) !important;
}

body:has(#screen-select) :is(.btn, .btn-gold, .nav-item, .lock-btn, #screen-wallet button) {
  min-height: 42px;
  border: 2px solid #e8c76c !important;
  border-radius: 14px !important;
  color: #fff2d2 !important;
  background: linear-gradient(145deg, #176231, #082d19) !important;
  box-shadow: inset 0 1px rgba(255, 246, 214, .23), 0 4px 8px rgba(0, 0, 0, .28) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
}

body:has(#screen-select) :is(.btn-gold, #lock-btn, #screen-setgamepass .btn) {
  color: #38240c !important;
  background: linear-gradient(180deg, #ffe77d, #e7a42a 82%, #bf741c) !important;
}

body:has(#screen-select) :is(input, select, textarea) {
  min-height: 45px;
  border: 2px solid #c6a04e !important;
  border-radius: 13px !important;
  color: #fff1cf !important;
  background: linear-gradient(145deg, #17381f, #0a2414) !important;
}

body:has(#screen-select) :is(input, select, textarea)::placeholder {
  color: #d8c89d !important;
  opacity: .9;
}

body:has(#screen-select) .inp-wrap {
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:has(#screen-select) :is(.nav-item.active, .nav-item[aria-current="page"]) {
  border-color: #fff1ae !important;
  background: linear-gradient(180deg, #dfa93b, #97601f) !important;
}

body:has(#screen-select) #screen-wallet .tabs {
  gap: 5px !important;
  padding: 6px !important;
  border: 3px solid transparent !important;
  border-radius: 15px !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

body:has(#screen-select) #screen-wallet .tab {
  flex: 1 0 auto;
  padding: 10px 12px !important;
  border: 1px solid #b78b43 !important;
  border-radius: 999px !important;
  color: #fff0ca !important;
  background: linear-gradient(145deg, #16482a, #092817) !important;
}

body:has(#screen-select) #screen-wallet .tab.active {
  color: #3c2a0d !important;
  background: linear-gradient(180deg, #ffe783, #dea02b) !important;
}

body:has(#screen-select) :is(#chat-panel, .chat-panel) {
  border: 4px solid transparent !important;
  border-radius: 20px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #123e22, #071d10) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .42) !important;
}

@media (max-width: 420px) {
  #s-support #support-links-list {
    gap: 7px !important;
    padding: 9px !important;
  }

  #s-support #support-links-list > :is(a, button, div:not(.loader):not(.empty)) {
    min-height: 76px;
    padding: 8px 7px !important;
  }

  #s-finhist #finhist-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px !important;
  }
}

@media (max-width: 540px) {
  #s-support #support-links-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Hand-drawn leaf vines frame the scrollable content without replacing the
   supplied photos, covering controls, or changing click targets. */
#s-wdproof .scroll,
#s-giftcode .scroll,
#s-wdpass .scroll,
#s-support .scroll,
#s-me .scroll,
#s-walhist .scroll,
#s-wdhist .scroll,
#s-finhist .scroll,
#s-vip-salary-history .scroll,
#s-teamern .scroll,
#s-ranking .scroll,
#s-ranks .scroll,
#s-commhist .scroll,
#s-rebatehist .scroll,
#s-cbhist .scroll,
#s-dephist .scroll,
#s-gamewallet .scroll {
  position: relative;
  isolation: isolate;
}

#s-wdproof .scroll::before,
#s-giftcode .scroll::before,
#s-wdpass .scroll::before,
#s-support .scroll::before,
#s-me .scroll::before,
#s-walhist .scroll::before,
#s-wdhist .scroll::before,
#s-finhist .scroll::before,
#s-vip-salary-history .scroll::before,
#s-teamern .scroll::before,
#s-ranking .scroll::before,
#s-ranks .scroll::before,
#s-commhist .scroll::before,
#s-rebatehist .scroll::before,
#s-cbhist .scroll::before,
#s-dephist .scroll::before,
#s-gamewallet .scroll::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: var(--an-leaf-vine) left top / 46px 170px repeat-y;
  content: "";
  opacity: .3;
}

#s-wdproof .scroll::after,
#s-giftcode .scroll::after,
#s-wdpass .scroll::after,
#s-support .scroll::after,
#s-me .scroll::after,
#s-walhist .scroll::after,
#s-wdhist .scroll::after,
#s-finhist .scroll::after,
#s-vip-salary-history .scroll::after,
#s-teamern .scroll::after,
#s-ranking .scroll::after,
#s-ranks .scroll::after,
#s-commhist .scroll::after,
#s-rebatehist .scroll::after,
#s-cbhist .scroll::after,
#s-dephist .scroll::after,
#s-gamewallet .scroll::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: var(--an-leaf-vine) right 30px / 46px 170px repeat-y;
  content: "";
  opacity: .27;
}

#s-wdproof .scroll > *,
#s-giftcode .scroll > *,
#s-wdpass .scroll > *,
#s-support .scroll > *,
#s-me .scroll > *,
#s-walhist .scroll > *,
#s-wdhist .scroll > *,
#s-finhist .scroll > *,
#s-vip-salary-history .scroll > *,
#s-teamern .scroll > *,
#s-ranking .scroll > *,
#s-ranks .scroll > *,
#s-commhist .scroll > *,
#s-rebatehist .scroll > *,
#s-cbhist .scroll > *,
#s-dephist .scroll > *,
#s-gamewallet .scroll > * {
  position: relative;
  z-index: 1;
}

/* The product list already renders its own full-size poster per plan. The
   supplementary generated poster strip is not part of the reference page and
   was displacing the actual plans on narrow screens. */
#s-product .an-plan-gallery {
  display: none !important;
}

#s-product .an-node-load-error,
#s-product .an-node-image-fallback,
#s-product .node-load-error {
  margin: 10px 0 !important;
  padding: 14px !important;
  border: 3px solid transparent !important;
  border-radius: 16px !important;
  color: #fff0c8 !important;
  background:
    linear-gradient(145deg, #164528, #092714) padding-box,
    linear-gradient(145deg, #ffe49a, #98531e, #e2bd5b) border-box !important;
  box-shadow: inset 0 1px rgba(255, 240, 196, .15), 0 4px 10px rgba(0, 0, 0, .28) !important;
}

/* Keep the three requested Home reference cards in the real two-column
   composition even when the live markup wraps them in .home-top. That wrapper
   uses display:contents, so these become the same #home-scroll grid items. */
#s-home #home-scroll #ci-home-card {
  grid-column: 1 !important;
  grid-row: auto !important;
  order: 4 !important;
  width: 100% !important;
  min-width: 0 !important;
  align-self: stretch !important;
}

#s-home #home-scroll #dev-widget-wrap {
  grid-column: 2 !important;
  grid-row: auto !important;
  order: 5 !important;
  width: 100% !important;
  min-width: 0 !important;
  align-self: stretch !important;
}

#s-home #home-scroll #dev-widget-wrap .dev-widget {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  min-height: 198px !important;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] {
  grid-column: 1 / -1 !important;
  order: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 370px) {
  #s-home #home-scroll #ci-home-card {
    grid-column: 1 !important;
  }

  #s-home #home-scroll #dev-widget-wrap {
    grid-column: 2 !important;
  }
}

/* Home screenshot correction: keep text compact inside the three reference
   cards so narrow phones do not stretch the cards or break amounts by letter. */
#s-home #home-scroll .home-top > button[onclick*="s-invite"] {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) minmax(76px, .38fr) !important;
  grid-template-rows: minmax(60px, auto) !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 88px !important;
  padding: 9px 11px !important;
  text-align: left !important;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"]::before {
  display: none !important;
  content: none !important;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-icon {
  position: relative;
  display: grid !important;
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='24' cy='20' r='10' fill='%231b512b'/%3E%3Ccircle cx='43' cy='23' r='8' fill='%23265e31'/%3E%3Cpath d='M3 52c1-13 8-21 21-21s20 8 21 21H3zm34 0c1-9-1-15-6-19 13-5 26 3 29 19H37z' fill='%231b512b'/%3E%3C/svg%3E") center / contain no-repeat;
  font-size: 0 !important;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-icon::after {
  right: -5px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border: 1px solid #fff4ce;
  color: #fff;
  background: #19743b;
  content: "+";
  font: 900 13px/1 Arial, sans-serif;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-heading {
  font-size: clamp(11px, 3.2vw, 14px) !important;
  line-height: 1.14 !important;
  white-space: normal !important;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-reward {
  font-size: clamp(19px, 5vw, 25px) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-breakdown {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  margin: 0 !important;
  padding-left: 6px;
  font-size: clamp(9px, 2.5vw, 11px) !important;
  line-height: 1.2 !important;
  text-align: center;
}

#s-home #home-scroll #ci-home-card {
  min-height: 178px !important;
}

#s-home #home-scroll #ci-home-card > div:first-child {
  grid-template-columns: 48px minmax(0, 1fr) !important;
  grid-template-rows: minmax(78px, 1fr) auto !important;
  gap: 6px !important;
  min-height: 158px !important;
  padding: 9px !important;
}

#s-home #home-scroll #ci-home-card #ci-home-ic {
  width: 46px !important;
  max-width: 46px !important;
  min-height: 58px !important;
}

#s-home #home-scroll #ci-home-card > div:first-child > div:nth-child(2) > div:first-child {
  font-size: clamp(10px, 2.9vw, 12px) !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
}

#s-home #home-scroll #ci-home-card #ci-home-sub {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: 8px !important;
  line-height: 1.16 !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
}

#s-home #home-scroll #ci-home-card #ci-home-reward {
  font-size: clamp(11px, 3.2vw, 14px) !important;
  white-space: nowrap !important;
}

#s-home #home-scroll #ci-home-card #ci-home-badge {
  min-height: 30px !important;
  padding: 4px 6px !important;
  font-size: 9px !important;
}

#s-home #home-scroll #dev-widget-wrap .dev-widget {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 6px !important;
  min-height: 178px !important;
  padding: 9px !important;
}

#s-home #home-scroll #dev-widget-wrap .dw-ic {
  width: 44px !important;
  height: 48px !important;
}

#s-home #home-scroll #dev-widget-wrap .dw-info {
  min-width: 0 !important;
  padding: 1px 0 0 !important;
}

#s-home #home-scroll #dev-widget-wrap .dw-title {
  font-size: clamp(10px, 2.8vw, 12px) !important;
  line-height: 1.14 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

#s-home #home-scroll #dev-widget-wrap .dw-amt {
  margin: 4px 0 !important;
  font-size: clamp(14px, 3.8vw, 18px) !important;
  line-height: 1.12 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal !important;
}

#s-home #home-scroll #dev-widget-wrap .dw-sub {
  font-size: 9px !important;
  line-height: 1.2 !important;
  overflow-wrap: normal !important;
}

#s-home #home-scroll #dev-widget-wrap .dw-btn {
  grid-column: 2;
  grid-row: 2;
  min-height: 32px !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
}

/* Match the supplied phone composition: compact horizontal check-in and node
   tiles, serif headline lettering, and small leaf accents within the frames. */
@media (max-width: 600px) {
  #s-home #home-scroll .home-top > button[onclick*="s-invite"] {
    position: relative;
    grid-template-columns: 48px minmax(0, 1fr) minmax(72px, .34fr) !important;
    grid-template-rows: minmax(58px, auto) !important;
    gap: 5px !important;
    min-height: 82px !important;
    padding: 7px 9px !important;
  }

  #s-home #home-scroll .home-top > button[onclick*="s-invite"]::before {
    position: absolute;
    inset: 3px auto 3px 0;
    display: block !important;
    width: 24px;
    background: var(--an-leaf-vine) left center / contain no-repeat;
    content: "" !important;
    opacity: .75;
    pointer-events: none;
  }

  #s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-icon {
    z-index: 1;
    width: 44px;
    height: 44px;
  }

  #s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-copy,
  #s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-breakdown {
    position: relative;
    z-index: 1;
  }

  #s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-heading {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(11px, 3vw, 13px) !important;
  }

  #s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-reward {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(18px, 4.8vw, 23px) !important;
  }

  #s-home #home-scroll .home-top > button[onclick*="s-invite"] .an-home-invite-breakdown {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 9px !important;
  }

  #s-home #home-scroll #ci-home-card {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 156px !important;
    max-height: none !important;
    overflow: hidden !important;
    box-shadow: var(--an-wood-edge) !important;
  }

  #s-home #home-scroll #ci-home-card::before,
  #s-home #home-scroll #ci-home-card::after {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: auto;
    width: 23px;
    height: 72px;
    border: 0;
    border-radius: 0;
    background: var(--an-leaf-vine) center / contain no-repeat;
    content: "";
    opacity: .82;
    pointer-events: none;
    transform: none;
  }

  #s-home #home-scroll #ci-home-card::before { left: 1px; }
  #s-home #home-scroll #ci-home-card::after {
    right: 1px;
    left: auto;
    transform: scaleX(-1);
  }

  #s-home #home-scroll #ci-home-card > div:first-child {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-content: stretch !important;
    align-items: center !important;
    gap: 4px 6px !important;
    width: 100%;
    height: auto !important;
    min-height: 146px !important;
    max-height: none !important;
    padding: 9px 8px !important;
  }

  #s-home #home-scroll #ci-home-card #ci-home-ic {
    grid-column: 1;
    grid-row: 1;
    width: 46px !important;
    max-width: 46px !important;
    min-height: 56px !important;
    align-self: center;
  }

  #s-home #home-scroll #ci-home-card > div:first-child > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
  }

  #s-home #home-scroll #ci-home-card > div:first-child > div:nth-child(2) > div:first-child {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 11px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #s-home #home-scroll #ci-home-card #ci-home-sub {
    display: block !important;
    font-size: 8px !important;
    line-height: 1.12 !important;
    overflow: visible !important;
  }

  #s-home #home-scroll #ci-home-card > div:first-child > div:nth-child(3) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 28px;
    min-width: 0;
    width: 100%;
    gap: 4px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  #s-home #home-scroll #ci-home-card #ci-home-reward {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(10px, 2.6vw, 13px) !important;
    text-overflow: clip;
    white-space: nowrap;
  }

  #s-home #home-scroll #ci-home-card #ci-home-badge {
    min-height: 27px !important;
    max-width: 100%;
    padding: 3px 5px !important;
    font-size: clamp(8px, 2vw, 9px) !important;
  }

  #s-home #home-scroll #dev-widget-wrap {
    position: relative !important;
    isolation: isolate;
    box-sizing: border-box !important;
    height: 156px !important;
    min-height: 156px !important;
    max-height: 156px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  #s-home #home-scroll #dev-widget-wrap::before,
  #s-home #home-scroll #dev-widget-wrap::after {
    position: absolute;
    z-index: 0;
    top: 4px;
    width: 22px;
    height: 66px;
    background: var(--an-leaf-vine) center / contain no-repeat;
    content: "";
    opacity: .72;
    pointer-events: none;
  }

  #s-home #home-scroll #dev-widget-wrap::before { left: 4px; }
  #s-home #home-scroll #dev-widget-wrap::after {
    right: 4px;
    transform: scaleX(-1);
  }

  #s-home #home-scroll #dev-widget-wrap .dev-widget {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 9px !important;
    overflow: hidden !important;
    border: 4px solid transparent !important;
    border-radius: 20px !important;
    background:
      radial-gradient(ellipse at 88% 0, rgba(137, 205, 81, .23), transparent 48%),
      linear-gradient(145deg, #0e5a2b, #07361f 68%, #052a19) padding-box,
      var(--an-wood) border-box !important;
    box-shadow: var(--an-wood-edge) !important;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-ic {
    position: absolute;
    top: 9px;
    left: 7px;
    width: 40px !important;
    height: 46px !important;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-ic::before {
    top: 6px;
    left: 10px;
    font-size: 21px;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-info {
    position: absolute;
    top: 7px;
    right: 7px;
    bottom: 42px;
    left: 50px;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-title {
    min-height: 0 !important;
    color: #fff0c8 !important;
    font: 700 10px/1.18 Georgia, "Times New Roman", serif !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-amt {
    max-width: 100%;
    margin: 2px 0 !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    line-height: 1.02 !important;
    overflow-wrap: anywhere;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-sub {
    font-size: 8px !important;
    line-height: 1.12 !important;
  }

  #s-home #home-scroll #dev-widget-wrap .dw-btn {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 6px;
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    font: 800 11px Georgia, "Times New Roman", serif !important;
    text-align: center;
  }
}

/* Screenshot-matched compositions for the three requested account pages.
   Keep their existing handlers, fields, records, and support destinations. */
#s-wdproof .back-hdr,
#s-giftcode .back-hdr,
#s-support .back-hdr {
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  min-height: 76px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 54px !important;
  border: 4px solid transparent !important;
  border-bottom-width: 5px !important;
  border-radius: 0 0 19px 19px !important;
  background:
    linear-gradient(180deg, rgba(255, 232, 181, .1), transparent 36%),
    var(--an-wood) padding-box,
    linear-gradient(90deg, #6b3a16, #f2d57f 28%, #9a6429 52%, #f1d77e 76%, #603114) border-box !important;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .42) !important;
}

#s-wdproof .back-title,
#s-giftcode .back-title,
#s-support .back-title {
  display: block !important;
  flex: 0 1 clamp(148px, 54vw, 218px) !important;
  width: clamp(148px, 54vw, 218px) !important;
  min-width: 0 !important;
  height: 59px !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  background: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1") center / contain no-repeat !important;
}

#s-wdproof .back-btn,
#s-giftcode .back-btn,
#s-support .back-btn {
  position: absolute !important;
  z-index: 2;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%);
}

#s-wdproof .scroll,
#s-giftcode .scroll,
#s-support .scroll {
  padding: 12px 12px calc(34px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 6% 5%, rgba(174, 216, 69, .12), transparent 28%),
    radial-gradient(ellipse at 95% 45%, rgba(131, 191, 56, .1), transparent 27%) !important;
}

/* Withdrawal proof: reward sign, parchment instructions, paired upload bays. */
#s-wdproof .wdp-hero {
  display: grid !important;
  grid-template-columns: clamp(68px, 21vw, 104px) minmax(0, 1fr) !important;
  grid-template-areas:
    "camera title"
    "camera copy" !important;
  align-items: center !important;
  column-gap: 9px !important;
  min-height: 122px !important;
  margin: 2px 2px 13px !important;
  padding: 12px 11px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 24px 17px !important;
  color: #fff3d1 !important;
  text-align: left !important;
  background:
    radial-gradient(ellipse at 10% 0, rgba(171, 224, 69, .28), transparent 40%),
    radial-gradient(ellipse at 92% 100%, rgba(94, 173, 37, .18), transparent 42%),
    linear-gradient(145deg, #137336, #06421e 68%, #082c16) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge), inset 0 0 20px rgba(146, 218, 54, .12) !important;
}

#s-wdproof .wdp-hero::before {
  display: none !important;
}

#s-wdproof .wdp-icon {
  grid-area: camera !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-height: 78px !important;
  margin: 0 !important;
  font-size: clamp(45px, 15vw, 70px) !important;
  line-height: 1 !important;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .6)) !important;
}

#s-wdproof .wdp-title {
  grid-area: title !important;
  align-self: end !important;
  margin: 0 0 4px !important;
  color: #ffed83 !important;
  font: 900 clamp(17px, 5vw, 25px)/1.12 Arial, sans-serif !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .7) !important;
}

#s-wdproof .wdp-sub {
  grid-area: copy !important;
  align-self: start !important;
  color: #fff5d8 !important;
  font: 700 clamp(10px, 3vw, 13px)/1.35 Arial, sans-serif !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7) !important;
}

#s-wdproof .scroll > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto auto auto auto !important;
  gap: 8px !important;
  margin: 0 2px 13px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child {
  position: relative !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: 178px !important;
  margin: 0 0 2px !important;
  padding: 43px 13px 12px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 16px 24px 16px !important;
  color: #2e2617 !important;
  font: 700 clamp(11px, 3.15vw, 14px)/1.42 Arial, sans-serif !important;
  background:
    repeating-linear-gradient(0deg, rgba(120, 86, 38, .04) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #fff8df, #efdcae) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf2, 0 6px 12px rgba(0, 0, 0, .28) !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child > b {
  position: absolute !important;
  top: 7px !important;
  left: 50% !important;
  width: max-content !important;
  max-width: calc(100% - 24px) !important;
  transform: translateX(-50%) !important;
  padding: 6px 16px !important;
  border: 2px solid #efc453 !important;
  border-radius: 999px !important;
  color: #2d1c08 !important;
  font: 900 clamp(16px, 4.5vw, 22px)/1.1 Georgia, "Times New Roman", serif !important;
  background: linear-gradient(180deg, #ffe58a, #d89526) !important;
  box-shadow: 0 3px 6px rgba(54, 29, 5, .35) !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:nth-child(2),
#s-wdproof .scroll > div:nth-child(2) > div:nth-child(4) {
  grid-row: 2 !important;
  align-self: end !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 5px 7px !important;
  border: 2px solid #b5d85f !important;
  border-bottom: 0 !important;
  border-radius: 15px 15px 0 0 !important;
  color: #fff4d4 !important;
  font: 800 clamp(9px, 2.7vw, 12px)/1.2 Georgia, "Times New Roman", serif !important;
  text-align: center !important;
  background: linear-gradient(145deg, #147239, #075126) !important;
}

#s-wdproof .scroll > div:nth-child(2) > #wdp-ss1,
#s-wdproof .scroll > div:nth-child(2) > #wdp-ss2 {
  grid-row: 3 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 88px !important;
  margin: 0 !important;
  padding: 7px 5px !important;
  border: 2px solid #c89b42 !important;
  border-top: 0 !important;
  border-radius: 0 0 15px 15px !important;
  color: #382710 !important;
  font: 700 9px/1.35 Arial, sans-serif !important;
  background:
    repeating-linear-gradient(0deg, rgba(120, 86, 38, .035) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fff4d5, #ead29d) !important;
}

#s-wdproof .scroll > div:nth-child(2) > #wdp-ss1::file-selector-button,
#s-wdproof .scroll > div:nth-child(2) > #wdp-ss2::file-selector-button {
  display: block;
  max-width: 100%;
  margin: 0 auto 7px;
  padding: 7px 8px;
  border: 2px solid #c9e974;
  border-radius: 999px;
  color: #fff;
  font: 800 10px/1.1 Arial, sans-serif;
  background: linear-gradient(180deg, #35a82d, #087126);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}

#s-wdproof .scroll > div:nth-child(2) > .btn-sub {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
  min-height: 58px !important;
  margin: 2px 0 0 !important;
  border: 4px solid #f3d777 !important;
  border-radius: 999px !important;
  color: #351c08 !important;
  font: 900 clamp(17px, 5vw, 24px)/1.1 Georgia, "Times New Roman", serif !important;
  background:
    linear-gradient(180deg, rgba(255, 231, 152, .45), transparent 45%),
    var(--an-wood) !important;
  box-shadow: var(--an-wood-edge), 0 0 0 2px #704018 !important;
}

#s-wdproof .scroll > .sec {
  margin: 8px 2px 0 !important;
  padding: 11px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  color: #fff0ca !important;
  background: var(--an-wood) padding-box, linear-gradient(135deg, #f6db7c, #87491f) border-box !important;
}

/* Gift code: wood title plaque, green code-entry board, wood redemption action. */
#s-giftcode .gift-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 63px !important;
  grid-template-areas: "title gift" "copy gift" !important;
  align-items: center !important;
  column-gap: 8px !important;
  min-height: 96px !important;
  margin: 2px 2px 13px !important;
  padding: 12px 13px !important;
  border: 5px solid transparent !important;
  border-radius: 22px 16px 22px 16px !important;
  color: #fff2d0 !important;
  text-align: left !important;
  background:
    radial-gradient(ellipse at 90% 50%, rgba(255, 210, 48, .35), transparent 36%),
    var(--an-wood) padding-box,
    linear-gradient(135deg, #f1d479, #70411b, #f0d176) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-giftcode .gift-icon {
  grid-area: gift !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  font-size: clamp(43px, 14vw, 62px) !important;
  line-height: 1 !important;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)) !important;
}

#s-giftcode .gift-title {
  grid-area: title !important;
  align-self: end !important;
  margin: 0 0 3px !important;
  color: #fff2d0 !important;
  font: italic 900 clamp(19px, 5.5vw, 27px)/1.1 Georgia, "Times New Roman", serif !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .8) !important;
}

#s-giftcode .gift-sub {
  grid-area: copy !important;
  align-self: start !important;
  color: #fff0c7 !important;
  font: italic 700 clamp(10px, 3vw, 13px)/1.3 Georgia, "Times New Roman", serif !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7) !important;
}

#s-giftcode .gift-input-wrap {
  margin: 0 2px 13px !important;
  padding: 13px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 17px 23px 17px !important;
  color: #fff1d0 !important;
  background:
    radial-gradient(ellipse at 100% 0, rgba(150, 220, 53, .22), transparent 42%),
    linear-gradient(145deg, #11652d, #063819 72%, #092b16) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-giftcode .gift-input-wrap > div:first-child {
  margin: 0 0 7px !important;
  color: #fff1c9 !important;
  font: 900 15px/1.2 Arial, sans-serif !important;
  letter-spacing: .04em !important;
}

#s-giftcode .gift-input-wrap > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#s-giftcode #gift-code-inp {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 51px !important;
  padding: 9px 10px !important;
  border: 3px solid #9fd83f !important;
  border-radius: 13px !important;
  color: #fff5d8 !important;
  font: 900 clamp(15px, 4.8vw, 22px)/1.1 Arial, sans-serif !important;
  letter-spacing: .12em !important;
  text-align: center !important;
  background: linear-gradient(145deg, #073a1b, #031f10) !important;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .55), 0 0 8px rgba(154, 225, 46, .2) !important;
}

#s-giftcode .gift-input-wrap > div:nth-child(2) > button {
  min-width: 85px !important;
  min-height: 51px !important;
  padding: 8px 10px !important;
  border: 3px solid #e3b957 !important;
  border-radius: 14px !important;
  color: #fff1d0 !important;
  font: 800 13px Georgia, "Times New Roman", serif !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-giftcode .gift-input-wrap > .btn-sub {
  min-height: 55px !important;
  margin: 11px 0 0 !important;
  border: 4px solid #f5d66e !important;
  border-radius: 999px !important;
  color: #3d2208 !important;
  font: 900 clamp(16px, 4.7vw, 22px)/1.15 Georgia, "Times New Roman", serif !important;
  background:
    linear-gradient(180deg, rgba(255, 248, 167, .5), transparent 47%),
    linear-gradient(135deg, #ffd849, #d58a11 48%, #ffe980) !important;
  box-shadow: var(--an-wood-edge), inset 0 1px #fff8bb !important;
}

#s-giftcode .scroll > div:nth-child(3) {
  margin: 0 2px 12px !important;
  padding: 0 !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child {
  margin: 0 !important;
  padding: 14px 13px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 17px 23px 17px !important;
  color: #fff5d7 !important;
  font: 600 clamp(11px, 3.1vw, 14px)/1.52 Arial, sans-serif !important;
  background:
    radial-gradient(ellipse at 6% 0, rgba(133, 206, 54, .2), transparent 39%),
    linear-gradient(145deg, #0d6330, #063819 70%, #092a16) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child > b:first-child {
  display: block !important;
  margin: 0 0 7px !important;
  color: #ffe55f !important;
  font: 900 19px/1.15 Arial, sans-serif !important;
}

#s-giftcode .scroll > .sec {
  margin: 8px 2px 0 !important;
  padding: 11px 14px !important;
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  color: #fff0ca !important;
  background: var(--an-wood) padding-box, linear-gradient(135deg, #f6db7c, #87491f) border-box !important;
}

#s-giftcode #gift-hist-list {
  padding: 0 3px 12px !important;
}

/* Support: one parchment help board and the reference's two-column channels. */
#s-support .scroll > div:first-child {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  align-items: center !important;
  gap: 4px 9px !important;
  margin: 10px 12px 0 !important;
  padding: 12px 12px 10px !important;
  border: 5px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: 23px 23px 0 0 !important;
  color: #21451d !important;
  background:
    repeating-linear-gradient(0deg, rgba(120, 86, 38, .035) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #fff7dc, #ead5a2) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 1px #fffdf2 !important;
}

#s-support .scroll > div:first-child::before {
  content: "🎧  Customer Support";
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: block !important;
  margin: -12px -12px 5px !important;
  padding: 10px 8px !important;
  border: 3px solid #efd16a !important;
  border-radius: 999px !important;
  color: #fff6d5 !important;
  font: 900 clamp(17px, 5vw, 23px)/1.15 Arial, sans-serif !important;
  text-align: center !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(145deg, #147c36, #075222) !important;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .25) !important;
}

#s-support .scroll > div:first-child > div:first-child {
  grid-column: 1 !important;
  grid-row: 2 / 4 !important;
  align-self: center !important;
  margin: 0 !important;
  font-size: 40px !important;
  line-height: 1 !important;
  text-align: center !important;
}

#s-support .scroll > div:first-child > div:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: end !important;
  color: #18542a !important;
  font: 900 clamp(17px, 5vw, 23px)/1.1 Arial, sans-serif !important;
}

#s-support .scroll > div:first-child > div:nth-child(3) {
  grid-column: 2 !important;
  grid-row: 3 !important;
  align-self: start !important;
  color: #342b1d !important;
  font: 700 clamp(10px, 3vw, 13px)/1.25 Arial, sans-serif !important;
}

#s-support #support-links-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 12px 14px !important;
  padding: 10px 10px 13px !important;
  border: 5px solid transparent !important;
  border-top: 0 !important;
  border-radius: 0 0 23px 23px !important;
  background:
    repeating-linear-gradient(0deg, rgba(120, 86, 38, .035) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #fff7dc, #ead5a2) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 -1px #fffdf2, 0 6px 13px rgba(0, 0, 0, .28) !important;
}

#s-support #support-links-list > .support-btn {
  box-sizing: border-box !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 78px !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 7px !important;
  border: 2px solid #f0d77b !important;
  border-radius: 15px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 3px 6px rgba(0, 0, 0, .22) !important;
}

#s-support #support-links-list .support-btn-ic {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(255, 230, 157, .72) !important;
  border-radius: 12px !important;
  font-size: 20px !important;
  background: rgba(0, 0, 0, .2) !important;
}

#s-support #support-links-list .support-btn-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#s-support #support-links-list .support-btn-name {
  overflow-wrap: anywhere !important;
  font-size: clamp(10px, 2.9vw, 13px) !important;
  line-height: 1.12 !important;
}

#s-support #support-links-list .support-btn-sub {
  overflow-wrap: anywhere !important;
  margin-top: 3px !important;
  font-size: clamp(8px, 2.3vw, 10px) !important;
  line-height: 1.18 !important;
}

#s-support #support-links-list > .support-btn::after {
  flex: 0 0 auto;
  content: "›";
  color: #fff4d3;
  font: 900 22px/1 Arial, sans-serif;
}

#s-support #support-links-list > .support-btn:nth-child(4),
#s-support #support-links-list > .support-btn:nth-child(5) {
  background: linear-gradient(145deg, #0874ad, #06406e) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-links-list > .support-btn:nth-child(6) {
  background: linear-gradient(145deg, #75389c, #43205e) padding-box, var(--an-wood) border-box !important;
}

#s-support #support-craft-gallery {
  margin: 12px !important;
}

@media (max-width: 370px) {
  #s-wdproof .scroll > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #s-wdproof .scroll > div:nth-child(2) > div:first-child,
  #s-wdproof .scroll > div:nth-child(2) > .btn-sub {
    grid-column: 1 / -1 !important;
  }

  #s-wdproof .scroll > div:nth-child(2) > div:nth-child(4),
  #s-wdproof .scroll > div:nth-child(2) > #wdp-ss2 {
    grid-column: 2 !important;
  }

  #s-wdproof .scroll > div:nth-child(2) > div:nth-child(2),
  #s-wdproof .scroll > div:nth-child(2) > #wdp-ss1 {
    grid-column: 1 !important;
  }

  #s-support #support-links-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding-inline: 7px !important;
  }

  #s-support #support-links-list > .support-btn {
    gap: 5px !important;
    padding: 6px 5px !important;
  }

  #s-support #support-links-list .support-btn-ic {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 17px !important;
  }
}

@media (max-width: 330px) {
  #s-support .scroll > div:first-child {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 4px 6px !important;
  }

  #s-support #support-links-list .support-btn-name {
    font-size: 9px !important;
  }
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child::after {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  display: grid !important;
  width: 49px !important;
  height: 49px !important;
  place-items: center !important;
  border: 4px solid #fff0a4 !important;
  border-radius: 50% !important;
  color: #12612b !important;
  content: "₮" !important;
  font: 900 31px/1 Arial, sans-serif !important;
  background: radial-gradient(circle at 32% 25%, #fff29a, #e8b727 58%, #a56312) !important;
  box-shadow: inset 0 1px 3px #fff8ca, 0 3px 7px rgba(0, 0, 0, .35) !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child > .an-wdp-steps {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 0 61px 0 0 !important;
  list-style: none !important;
  counter-reset: wd-step !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child > .an-wdp-steps > li {
  position: relative !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 4px 0 4px 30px !important;
  border-bottom: 1px dashed rgba(102, 122, 56, .36) !important;
  color: #302719 !important;
  font: 700 clamp(10px, 2.9vw, 13px)/1.3 Arial, sans-serif !important;
  counter-increment: wd-step !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child > .an-wdp-steps > li:last-child {
  border-bottom: 0 !important;
}

#s-wdproof .scroll > div:nth-child(2) > div:first-child > .an-wdp-steps > li::before {
  position: absolute !important;
  top: 2px !important;
  left: 0 !important;
  display: grid !important;
  width: 23px !important;
  height: 23px !important;
  place-items: center !important;
  border: 2px solid #e3c65b !important;
  border-radius: 50% !important;
  color: #fff9dc !important;
  content: counter(wd-step) !important;
  font: 900 12px/1 Arial, sans-serif !important;
  background: linear-gradient(145deg, #17853a, #075322) !important;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .25) !important;
}

/* The original title already renders a small logo pseudo-element. Hide that
   duplicate and keep the single wood-sign logo used by the reference. */
#s-giftcode .back-hdr {
  min-height: 76px !important;
  height: 76px !important;
  justify-content: center !important;
  padding: 7px 54px !important;
  border: 4px solid transparent !important;
  border-bottom-width: 5px !important;
  border-radius: 0 0 19px 19px !important;
  background:
    linear-gradient(180deg, rgba(255, 232, 181, .1), transparent 36%),
    var(--an-wood) padding-box,
    linear-gradient(90deg, #6b3a16, #f2d57f 28%, #9a6429 52%, #f1d77e 76%, #603114) border-box !important;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .42) !important;
}

#s-giftcode .back-title {
  position: relative !important;
  display: block !important;
  flex: 0 1 clamp(148px, 54vw, 218px) !important;
  width: clamp(148px, 54vw, 218px) !important;
  min-width: 0 !important;
  height: 59px !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  background: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1") center / contain no-repeat !important;
}

#s-giftcode .back-title::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

#s-giftcode .back-btn {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  min-width: 40px !important;
  min-height: 40px !important;
}

#s-giftcode .gift-input-wrap > .btn-sub {
  border-color: #a65d17 !important;
  background:
    repeating-linear-gradient(176deg, transparent 0 7px, rgba(111, 58, 13, .17) 8px, transparent 10px 17px),
    repeating-linear-gradient(2deg, transparent 0 16px, rgba(255, 244, 177, .42) 17px, transparent 20px 30px),
    linear-gradient(180deg, #ffe98c 0%, #f6c447 44%, #db941b 52%, #f8d05a 100%) !important;
  box-shadow: inset 0 2px 2px #fff5b4, inset 0 -4px 5px rgba(117, 64, 15, .35), 0 5px 10px rgba(0, 0, 0, .3) !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child {
  font-size: clamp(12px, 3.3vw, 15px) !important;
  line-height: 1.55 !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child > b:first-child {
  font-size: clamp(19px, 5vw, 24px) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4) !important;
}

#s-giftcode .scroll > .sec h3 {
  font-size: clamp(17px, 4.6vw, 22px) !important;
}

/* Finish Gift Code as a hanging garden sign and tighten the tall input bay. */
#s-giftcode .back-hdr {
  overflow: visible !important;
  min-height: 84px !important;
  height: 84px !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 164, .16), transparent 35%),
    var(--an-wood) padding-box,
    linear-gradient(90deg, #673615, #f1d27a 24%, #875020 52%, #f2d67d 78%, #603013) border-box !important;
}

#s-giftcode .back-hdr::before,
#s-giftcode .back-hdr::after {
  position: absolute;
  top: -2px;
  z-index: 1;
  width: 5px;
  height: 23px;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, #d6a452 0 2px, #75401a 2px 4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  content: "";
  pointer-events: none;
}

#s-giftcode .back-hdr::before {
  left: 25%;
}

#s-giftcode .back-hdr::after {
  right: 25%;
}

#s-giftcode .back-title {
  flex-basis: min(246px, 70vw) !important;
  width: min(246px, 70vw) !important;
  height: 65px !important;
  background-size: contain !important;
}

#s-giftcode.screen {
  background:
    radial-gradient(ellipse at 12% 14%, rgba(178, 214, 83, .25), transparent 33%),
    radial-gradient(ellipse at 88% 40%, rgba(96, 173, 48, .2), transparent 31%),
    linear-gradient(180deg, #173e20 0%, #0b2a14 50%, #0b3018 100%) !important;
}

#s-giftcode .gift-hero {
  min-height: 91px !important;
  padding: 10px 13px !important;
  border-radius: 26px 17px 24px 18px !important;
  background:
    radial-gradient(ellipse at 87% 48%, rgba(255, 205, 53, .4), transparent 37%),
    repeating-linear-gradient(177deg, transparent 0 9px, rgba(255, 224, 160, .09) 10px, transparent 12px 22px),
    var(--an-wood) padding-box,
    linear-gradient(135deg, #fff0a3, #87501f 45%, #f3d778) border-box !important;
}

#s-giftcode .gift-icon {
  font-size: clamp(45px, 13vw, 58px) !important;
}

#s-giftcode .gift-input-wrap {
  padding: 11px 12px 12px !important;
  border-radius: 26px 18px 24px 18px !important;
  box-shadow: 0 0 15px rgba(117, 205, 54, .2), var(--an-wood-edge) !important;
}

#s-giftcode #gift-code-inp,
#s-giftcode .gift-input-wrap > div:nth-child(2) > button {
  box-sizing: border-box !important;
  height: 56px !important;
  min-height: 56px !important;
}

#s-giftcode .gift-input-wrap > .btn-sub {
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  margin-top: 9px !important;
  background:
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(105, 53, 10, .2) 9px, transparent 11px 19px),
    repeating-linear-gradient(2deg, transparent 0 17px, rgba(255, 242, 166, .36) 18px, transparent 21px 31px),
    linear-gradient(180deg, #ffe78a 0%, #f0bb37 45%, #cf8316 53%, #f3c94e 100%) !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 25px 18px 24px 18px !important;
  background:
    radial-gradient(ellipse at 0 0, rgba(191, 230, 80, .24), transparent 34%),
    radial-gradient(ellipse at 100% 100%, rgba(99, 194, 49, .19), transparent 37%),
    linear-gradient(145deg, #0d6931, #06391a 72%, #0b4b22) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 0 12px rgba(108, 197, 52, .14), var(--an-wood-edge) !important;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child::before,
#s-giftcode .scroll > div:nth-child(3) > div:first-child::after {
  position: absolute;
  z-index: 0;
  width: 30px;
  height: 45px;
  background: var(--an-leaf-vine) center / contain no-repeat;
  content: "";
  opacity: .65;
  pointer-events: none;
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child::before {
  top: -4px;
  right: -4px;
  transform: rotate(30deg);
}

#s-giftcode .scroll > div:nth-child(3) > div:first-child::after {
  bottom: -5px;
  left: -5px;
  transform: rotate(210deg);
}

#s-giftcode .scroll > .sec {
  padding: 12px 14px !important;
  border-radius: 20px 16px 20px 16px !important;
  text-align: center !important;
}

#s-giftcode .scroll > .sec h3 {
  justify-content: center !important;
  text-align: center !important;
}

#s-giftcode #gift-hist-list {
  position: relative;
  padding-bottom: 62px !important;
}

#s-giftcode #gift-hist-list::after {
  position: absolute;
  right: -12px;
  bottom: 0;
  left: -12px;
  height: 53px;
  border-top: 4px solid #e7c86b;
  background:
    repeating-linear-gradient(176deg, transparent 0 9px, rgba(255, 226, 170, .12) 10px, transparent 12px 21px),
    repeating-linear-gradient(2deg, transparent 0 16px, rgba(31, 11, 4, .28) 17px, transparent 20px 31px),
    linear-gradient(106deg, #452011, #8c4e25 23%, #603016 47%, #a5622d 72%, #462011);
  box-shadow: inset 0 3px 4px rgba(255, 238, 189, .35), 0 -4px 9px rgba(0, 0, 0, .3);
  content: "";
  pointer-events: none;
}

/* All existing claim, upgrade, and notice calls share #toast; keep their
   messages and timing, but replace the old navy pill with one wood plaque. */
#toast.toast {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  width: max-content !important;
  max-width: min(92vw, 440px) !important;
  min-width: min(220px, calc(100vw - 32px)) !important;
  min-height: 50px !important;
  padding: 12px 29px !important;
  border: 4px solid transparent !important;
  border-radius: 21px 16px 23px 16px !important;
  color: #fff2d0 !important;
  font: 800 14px/1.35 Georgia, "Times New Roman", serif !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-shadow: 0 1px 2px rgba(27, 12, 3, .8) !important;
  background:
    linear-gradient(180deg, rgba(255, 229, 160, .2), transparent 42%),
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(255, 226, 170, .11) 9px, transparent 11px 19px),
    repeating-linear-gradient(2deg, transparent 0 18px, rgba(31, 11, 4, .24) 19px, transparent 22px 34px),
    linear-gradient(106deg, #452011 0%, #8c4e25 22%, #603016 46%, #a5622d 70%, #462011 100%) padding-box,
    linear-gradient(135deg, #fff1a5, #b47b2a 30%, #f5df8c 56%, #92511d) border-box !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 238, 189, .72),
    inset 0 -4px 6px rgba(26, 9, 3, .56),
    0 7px 17px rgba(0, 0, 0, .42) !important;
  backdrop-filter: none !important;
  transform: translate(-50%, 8px) !important;
  transition: opacity .24s ease, transform .24s ease !important;
}

#toast.toast::before,
#toast.toast::after {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 19px;
  border: 1px solid rgba(224, 229, 117, .8);
  background: linear-gradient(135deg, #a8df4e, #2f8a30 70%, #165d22);
  content: "";
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
  pointer-events: none;
}

#toast.toast::before {
  left: 8px;
  border-radius: 100% 0 100% 0;
  transform: translateY(-50%) rotate(-24deg);
}

#toast.toast::after {
  right: 8px;
  border-radius: 0 100% 0 100%;
  transform: translateY(-50%) rotate(24deg);
}

#toast.toast.show {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

/* Invite Partners: use the same forest, carved-wood, and gold language as Home. */
#s-invite .back-hdr {
  border-bottom: 4px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(255, 232, 181, .12), transparent 34%),
    var(--an-wood) padding-box,
    linear-gradient(90deg, #684019, #f1d27a 24%, #875020 52%, #f2d67d 78%, #603013) border-box !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 246, 207, .24) !important;
}

#s-invite .back-title {
  color: #fff1ce !important;
  text-shadow: 0 2px 3px rgba(25, 10, 2, .8) !important;
}

#s-invite .scroll {
  position: relative !important;
  isolation: isolate !important;
  overflow-x: hidden !important;
  padding: 12px 10px calc(36px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse at 10% 5%, rgba(174, 213, 77, .18), transparent 30%),
    radial-gradient(ellipse at 93% 48%, rgba(103, 171, 54, .15), transparent 29%),
    linear-gradient(180deg, #123719, #082311 56%, #10351b) !important;
}

#s-invite .scroll::before,
#s-invite .scroll::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--an-leaf-vine) left top / 42px 155px repeat-y;
  content: "";
  opacity: .42;
  pointer-events: none;
}

#s-invite .scroll::after {
  background-position: right 22px top;
  transform: scaleX(-1);
}

#s-invite .scroll > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

#s-invite .ref-card {
  margin: 0 2px 14px !important;
  padding: 15px 13px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 23px 16px !important;
  background:
    radial-gradient(ellipse at 0 0, rgba(176, 223, 79, .17), transparent 42%),
    linear-gradient(145deg, #10582a, #062a14 75%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge), 0 0 12px rgba(126, 202, 55, .13) !important;
}

#s-invite .ref-card > div:first-child,
#s-invite .ref-card > div:nth-of-type(2) {
  color: #f8e8bd !important;
}

#s-invite .ref-code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #ffe17b !important;
  font-size: clamp(23px, 7vw, 34px) !important;
  letter-spacing: .12em !important;
}

#s-invite .ref-link-box {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  border: 2px solid rgba(231, 197, 111, .65) !important;
  color: #fff3d2 !important;
  background: linear-gradient(145deg, #062b15, #0b4923) !important;
}

#s-invite .btn-copy {
  border: 3px solid #f3d77c !important;
  border-radius: 16px !important;
  color: #fff0cb !important;
  background:
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(255, 226, 170, .12) 9px, transparent 11px 18px),
    var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .an-team-poster {
  margin: 0 2px 14px !important;
  padding: 8px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 24px 17px !important;
  background:
    linear-gradient(145deg, #0d562a, #062513) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .an-team-poster img {
  border: 2px solid #e8c766 !important;
  border-radius: 15px !important;
  background: #0c351b !important;
}

#s-invite .an-team-poster-rule {
  margin: 9px 0 0 !important;
  padding: 10px 11px !important;
  border: 2px solid #d7b766 !important;
  border-radius: 14px !important;
  color: #3d321d !important;
  background:
    repeating-linear-gradient(0deg, rgba(126, 91, 38, .035) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #fff4d5, #e8d3a0) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

#s-invite .an-team-poster-rule strong {
  color: #1e5b2e !important;
}

#s-invite .scroll > div:nth-child(3) > div {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

#s-invite .scroll > div:nth-child(3) > div > div {
  position: relative !important;
  min-width: 0 !important;
  padding: 12px 10px !important;
  border: 4px solid transparent !important;
  border-radius: 20px 15px 21px 15px !important;
  color: #fff1cd !important;
  background:
    radial-gradient(ellipse at 10% 0, rgba(173, 224, 76, .18), transparent 44%),
    linear-gradient(145deg, #0c5a2a, #062a14 72%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite #inv-rebate-rows,
#s-invite #inv-comm-rows {
  min-width: 0 !important;
  color: #fff0c9 !important;
}

#s-invite .scroll > div:nth-child(4) > div,
#s-invite .scroll > div:last-child > div {
  box-sizing: border-box !important;
  width: 100% !important;
  border: 5px solid transparent !important;
  border-radius: 23px 17px 24px 17px !important;
  color: #fff0ca !important;
  background:
    radial-gradient(ellipse at 5% 0, rgba(173, 224, 76, .17), transparent 40%),
    linear-gradient(145deg, #0d4e27, #062512 73%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .scroll > div:nth-child(4) {
  padding-inline: 8px !important;
}

#s-invite .scroll > div:nth-child(4) > div {
  padding-inline: 8px !important;
}

#s-invite #inv-chart-wrap,
#s-invite .an-team-charts,
#s-invite .an-team-chart-card {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

#s-invite .an-team-charts {
  padding-inline: 6px !important;
}

#s-invite .scroll > div:nth-child(4) > div > div:first-child,
#s-invite .scroll > div:last-child > div > div:first-child {
  color: #ffe48d !important;
}

#s-invite .scroll > div:nth-child(4) button {
  min-height: 36px !important;
  border: 2px solid #e3c36e !important;
  border-radius: 13px !important;
  color: #fff0ca !important;
  background: var(--an-wood) !important;
}

#s-invite .scroll > div:last-child > div > div[style*="display:grid"] > div {
  min-width: 0 !important;
  color: #fff0ca !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}

#s-invite .an-team-charts {
  display: grid !important;
  gap: 12px !important;
  max-width: 100% !important;
  padding: 10px 10px 22px !important;
  color: #fff3d1 !important;
}

#s-invite .an-team-chart-card,
#s-invite .an-team-charts [id^="inv-sec-"],
#s-invite .an-team-charts [id^="inv-rebate-now-"],
#s-invite .an-team-charts [id^="inv-potential-"],
#s-invite .an-team-charts #inv-comm-daily {
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
  padding: 13px 10px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 17px 23px 17px !important;
  color: #fff1ce !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(143, 204, 63, .2), transparent 43%),
    linear-gradient(145deg, #104b25, #062512 72%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .an-team-chart-kicker {
  color: #f1d47d !important;
  font-size: 9px !important;
}

#s-invite .an-team-chart-title {
  color: #fff1c8 !important;
  font-size: clamp(15px, 4.5vw, 19px) !important;
  overflow-wrap: anywhere !important;
}

#s-invite .an-team-chart-note,
#s-invite .an-team-chart-rule,
#s-invite .an-team-node-cap {
  color: #efe2bd !important;
  font-size: clamp(10px, 2.9vw, 12px) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

#s-invite .an-team-chart-rule,
#s-invite .an-team-node-tables > div {
  border: 2px solid rgba(221, 190, 105, .7) !important;
  border-radius: 15px !important;
  color: #fff0c8 !important;
  background:
    linear-gradient(145deg, rgba(20, 82, 40, .97), rgba(7, 37, 19, .98)) !important;
}

#s-invite .an-team-chart-table-scroll {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
  border: 3px solid #c79b48 !important;
  border-radius: 14px !important;
  background: var(--an-wood) !important;
  scrollbar-width: thin;
}

#s-invite .an-team-charts .an-team-chart-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 2px !important;
  font-size: clamp(9px, 2.7vw, 11px) !important;
}

#s-invite .an-team-charts .an-team-chart-table th,
#s-invite .an-team-charts .an-team-chart-table td {
  box-sizing: border-box !important;
  padding: 6px 2px !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.2 !important;
}

#s-invite .an-team-charts .an-team-chart-table thead th {
  color: #fff2cb !important;
  font-size: clamp(8px, 2.35vw, 10px) !important;
  background: linear-gradient(180deg, #246d39, #10401f) !important;
  border: 1px solid rgba(239, 206, 124, .72) !important;
}

#s-invite .an-team-charts .an-team-chart-table tbody td {
  color: #2b281b !important;
  font-size: clamp(9px, 2.65vw, 11px) !important;
  font-weight: 800 !important;
  background: linear-gradient(180deg, #fff4d8, #e7d19e) !important;
  border-bottom: 1px solid rgba(105, 74, 24, .28) !important;
}

#s-invite .an-team-charts .an-team-chart-table tbody .an-team-plan-price {
  color: #fff0be !important;
  background: linear-gradient(145deg, #246535, #0b351b) !important;
}

#s-invite .an-team-node-showcase {
  box-sizing: border-box !important;
  margin: 10px 2px 22px !important;
  padding: 12px !important;
  border: 5px solid transparent !important;
  border-radius: 24px 17px 25px 17px !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(151, 210, 66, .19), transparent 42%),
    linear-gradient(145deg, #0d4b25, #062512 73%) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .an-team-node-showcase-head strong {
  color: #ffe38a !important;
  font-size: clamp(13px, 3.8vw, 16px) !important;
}

#s-invite .an-team-node-showcase-head span,
#s-invite .an-team-node-showcase-head .an-team-node-showcase-count {
  color: #fff0ca !important;
  overflow-wrap: anywhere !important;
}

#s-invite .an-team-node-stage {
  border: 4px solid #d9b65e !important;
  border-radius: 20px !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(112, 176, 53, .22), transparent 53%),
    linear-gradient(145deg, #0b3a1d, #061d10) !important;
  box-shadow: inset 0 0 20px rgba(5, 14, 7, .7), 0 5px 13px rgba(0, 0, 0, .28) !important;
}

#s-invite .an-team-node-slide,
#s-invite .an-team-node-data {
  color: #fff0cc !important;
  background: linear-gradient(145deg, #0b3a1e, #062411) !important;
}

#s-invite .an-team-node-data h4 {
  color: #ffe48d !important;
  font-size: clamp(13px, 3.7vw, 16px) !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

#s-invite .an-team-node-tables > div {
  padding: 8px !important;
  overflow-x: auto !important;
}

#s-invite .an-team-node-tables b {
  color: #ffe391 !important;
  font-size: clamp(9px, 2.5vw, 11px) !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

#s-invite .an-team-node-tables table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  color: #fff0c8 !important;
}

#s-invite .an-team-node-tables th,
#s-invite .an-team-node-tables td {
  padding: 5px 2px !important;
  font-size: clamp(9px, 2.5vw, 11px) !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

#s-invite .an-team-node-arrow,
#s-invite .an-team-node-controls > button {
  border: 2px solid #f0d27a !important;
  color: #fff1cb !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .an-team-node-dots button.active {
  background: #f3d277 !important;
}

@media (max-width: 380px) {
  #s-invite .scroll > div:nth-child(3) > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #s-invite .an-team-chart-card,
  #s-invite .an-team-charts [id^="inv-sec-"],
  #s-invite .an-team-charts [id^="inv-rebate-now-"],
  #s-invite .an-team-charts [id^="inv-potential-"],
  #s-invite .an-team-charts #inv-comm-daily {
    padding-inline: 8px !important;
  }

  #s-invite .an-team-chart-table-scroll {
    position: relative;
    padding-bottom: 18px;
  }

  #s-invite .an-team-chart-table-scroll::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    color: #ffe18a;
    content: "Swipe sideways to view every column";
    font-size: 9px;
    line-height: 14px;
    text-align: center;
  }

  #s-invite .an-team-charts .an-team-chart-table {
    min-width: 430px !important;
    table-layout: auto !important;
  }

  #s-invite .an-team-charts .an-team-chart-table tbody td {
    white-space: nowrap !important;
    font-size: 10px !important;
  }

  #s-invite .an-team-charts .an-team-chart-table thead th {
    font-size: 9px !important;
  }
}

/* Withdraw Proof keeps one compact logo and restores the page title text. */
#s-wdproof .back-title {
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  max-width: calc(100% - 82px) !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  color: #fff1ce !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(13px, 3.8vw, 17px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 4px rgba(25, 10, 2, .8) !important;
  white-space: nowrap !important;
  background: none !important;
}

#s-wdproof .back-title::before {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 22px !important;
  background: var(--an-logo-lockup) center / contain no-repeat !important;
  content: "" !important;
}

/* Me page: transaction-history wood plaques with leafy accents. */
#s-me .scroll {
  padding: 14px 12px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
}

#s-me .me-hero {
  margin-bottom: 12px !important;
  padding: 17px 13px !important;
  border: 5px solid transparent !important;
  border-radius: 20px 16px 20px 16px !important;
  color: #fff0cc !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(112, 176, 72, .2), transparent 48%),
    linear-gradient(145deg, rgba(99, 55, 25, .72), rgba(17, 67, 40, .94) 36%, #0a2c1c) padding-box,
    linear-gradient(145deg, #ffdf8a, #74451d 36%, #f0cf70 72%, #70401b) border-box !important;
  box-shadow: inset 0 0 0 2px rgba(82, 47, 24, .76), inset 0 1px rgba(255, 237, 185, .2), 0 6px 14px rgba(0, 0, 0, .3) !important;
}

#s-me .me-name {
  color: #fff1cf !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-me .me-rank {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(240, 207, 127, .58) !important;
  border-radius: 999px !important;
  color: #f4d98e !important;
  background: rgba(5, 30, 18, .58) !important;
}

#s-me .me-stats {
  gap: 7px !important;
  margin: 0 0 13px !important;
}

#s-me .me-stat {
  min-width: 0 !important;
  min-height: 72px !important;
  padding: 9px 5px !important;
  border: 4px solid transparent !important;
  border-radius: 15px 18px 15px 18px !important;
  background:
    linear-gradient(145deg, #fff3d0, #dec58a) padding-box,
    linear-gradient(145deg, #ffe5a0, #75451d 35%, #e4bd5e 70%, #8a521f) border-box !important;
  box-shadow: inset 0 1px #fffdf3, 0 4px 9px rgba(0, 0, 0, .27) !important;
}

#s-me .me-stat .mk {
  color: #695431 !important;
  font: 800 9px/1.15 Inter, sans-serif !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

#s-me .me-stat .mv {
  overflow: hidden !important;
  color: #1d5933 !important;
  font: 900 clamp(12px, 3.8vw, 16px)/1.15 Inter, sans-serif !important;
  letter-spacing: -.035em !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#s-me .me-menu {
  display: grid !important;
  gap: 8px !important;
  margin: 12px 0 18px !important;
}

#s-me .me-item {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 59px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 11px !important;
  overflow: hidden !important;
  border: 4px solid transparent !important;
  border-radius: 16px 21px 16px 21px !important;
  color: #fff1d1 !important;
  background:
    linear-gradient(100deg, rgba(44, 19, 7, .1), rgba(6, 33, 19, .22) 58%, rgba(9, 37, 22, .31)),
    var(--an-wood) padding-box,
    linear-gradient(145deg, #ffe69c, #6f401b 34%, #e8c463 72%, #75431b) border-box !important;
  box-shadow: inset 0 1px rgba(255, 239, 190, .22), inset 0 -3px 5px rgba(25, 10, 3, .38), 0 4px 9px rgba(0, 0, 0, .3) !important;
  -webkit-tap-highlight-color: transparent;
}

#s-me .me-item::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 5px;
  width: 25px;
  height: 42px;
  transform: translateY(-50%);
  opacity: .2;
  background: var(--an-leaf-vine) center / contain no-repeat;
  content: "";
  pointer-events: none;
}

#s-me .me-item > * {
  position: relative;
  z-index: 1;
}

#s-me .me-item:active {
  filter: brightness(1.08);
}

#s-me .me-item-ic {
  display: grid !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 2px solid #d9b864 !important;
  border-radius: 12px !important;
  color: #ffe18b !important;
  background: linear-gradient(145deg, #24633a, #082c1b) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 2px 5px rgba(0, 0, 0, .32) !important;
  font-size: 19px !important;
  line-height: 1 !important;
}

#s-me .me-item-lb {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #fff1d1 !important;
  font: 800 clamp(13px, 3.8vw, 15px)/1.24 Inter, sans-serif !important;
  overflow-wrap: anywhere !important;
  text-shadow: 0 1px 2px rgba(20, 8, 2, .75) !important;
}

#s-me .me-item-ar {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: 20px !important;
  min-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  border-radius: 999px !important;
  color: #f3d47e !important;
  background: transparent !important;
  font: 800 21px/1 Inter, sans-serif !important;
  white-space: nowrap !important;
}

#s-me .me-item-ar::after {
  display: none !important;
  content: none !important;
}

#s-me .me-item-ar[style] {
  min-width: 0 !important;
  min-height: 22px !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(255, 222, 137, .65) !important;
  color: #fff2d2 !important;
  background: linear-gradient(145deg, #845328, #5e361b) !important;
  box-shadow: inset 0 1px rgba(255, 239, 184, .18) !important;
  font: 800 9px/1.1 Inter, sans-serif !important;
}

#s-me > .bnav {
  min-height: 70px !important;
  padding: 6px 7px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  border: 4px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: 19px 19px 0 0 !important;
  background:
    linear-gradient(180deg, rgba(24, 17, 11, .12), rgba(24, 17, 11, .38)),
    var(--an-wood) padding-box,
    linear-gradient(90deg, #67401e, #f0d078 24%, #98602b 50%, #f1d57e 76%, #603719) border-box !important;
  box-shadow: 0 -5px 18px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 241, 202, .26) !important;
}

#s-me .bni {
  min-width: 0 !important;
  min-height: 50px !important;
  border-radius: 12px !important;
}

#s-me .bni.active {
  border: 1px solid rgba(244, 215, 145, .58) !important;
  background: linear-gradient(145deg, rgba(18, 74, 41, .98), rgba(7, 39, 23, .96)) !important;
  box-shadow: inset 0 1px rgba(255, 249, 221, .17), 0 2px 6px rgba(0, 0, 0, .24) !important;
}

#s-me .bni .lb {
  color: #fff0cf !important;
  font: 700 10px/1.1 Inter, sans-serif !important;
}

@media (max-width: 360px) {
  #s-me .scroll {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  #s-me .me-stat .mv {
    font-size: 11px !important;
    letter-spacing: -.045em !important;
  }

  #s-me .me-item {
    gap: 8px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  #s-me .me-item-ic {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
  }

  #s-me .me-item-lb {
    font-size: 13px !important;
  }
}

/* Daily Check-in: turn the VIP schedule into a paired-branch reward tree.
   Presentation only; keep the existing check-in data, state, and handlers. */
#s-checkin {
  background:
    radial-gradient(ellipse at 89% 13%, rgba(169, 190, 115, .15), transparent 22%),
    radial-gradient(ellipse at 5% 69%, rgba(141, 93, 53, .16), transparent 25%),
    linear-gradient(180deg, #203c28, #10251b 58%, #14281e) !important;
}

#s-checkin > .scroll {
  background:
    var(--an-leaf-vine) left 5px top 7px / 34px 120px repeat-y,
    var(--an-leaf-vine) right 5px top 70px / 34px 120px repeat-y,
    radial-gradient(ellipse at 96% 13%, rgba(153, 177, 105, .12), transparent 23%),
    radial-gradient(ellipse at 0 53%, rgba(145, 93, 51, .16), transparent 28%),
    linear-gradient(180deg, #183523, #0d2419 65%, #152a1f) !important;
}

#s-checkin .ci-page {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding: 13px 12px 32px !important;
  background: none !important;
}

#s-checkin .ci-hero {
  min-height: 0 !important;
  overflow: hidden !important;
  border: 3px solid #805a37 !important;
  border-radius: 22px 22px 15px 15px !important;
  background:
    linear-gradient(90deg, rgba(121, 78, 44, .9), transparent 6%, transparent 94%, rgba(121, 78, 44, .9)),
    repeating-linear-gradient(2deg, rgba(238, 194, 129, .045) 0 2px, transparent 2px 9px),
    radial-gradient(ellipse at 88% 10%, rgba(180, 201, 126, .22), transparent 34%),
    linear-gradient(145deg, #40513a, #263e30 58%, #293a2d) !important;
  box-shadow:
    0 12px 24px rgba(4, 13, 9, .4),
    inset 0 0 0 2px rgba(237, 198, 142, .3),
    inset 0 0 0 7px rgba(68, 46, 29, .55) !important;
}

#s-checkin .ci-hero::before {
  top: 2px !important;
  right: 5px !important;
  color: rgba(207, 220, 153, .22) !important;
  content: "❧" !important;
  font-size: 156px !important;
  transform: rotate(14deg) !important;
}

#s-checkin .ci-hero::after {
  z-index: -1;
  border-color: rgba(239, 208, 160, .25) !important;
  border-radius: 14px !important;
}

#s-checkin .ci-hero-content {
  min-height: 224px !important;
  padding: 19px 18px 17px !important;
}

#s-checkin .ci-kicker {
  color: #e8d19d !important;
}

#s-checkin .ci-vip-label {
  border-color: rgba(240, 207, 150, .72) !important;
  color: #f5dfb1 !important;
  background: rgba(39, 49, 34, .9) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1) !important;
}

#s-checkin .ci-title {
  color: #fff0d1 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(21px, 7vw, 27px) !important;
  letter-spacing: -.55px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .58) !important;
}

#s-checkin .ci-reward-panel {
  border-color: rgba(239, 207, 153, .4) !important;
}

#s-checkin .ci-reward-caption {
  color: #e8ddc2 !important;
}

#s-checkin .ci-reward-number {
  color: #f5d58e !important;
  font-family: Georgia, "Times New Roman", serif !important;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .45) !important;
}

#s-checkin .ci-plan-caption {
  color: #e3dfc9 !important;
}

#s-checkin .ci-status-card,
#s-checkin .ci-streak-card,
#s-checkin .ci-vip-card,
#s-checkin .ci-info-card {
  position: relative;
  border: 2px solid #795639 !important;
  background:
    repeating-linear-gradient(1deg, rgba(233, 187, 123, .045) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #3b4a36, #293f31 68%, #2b3b2e) !important;
  box-shadow:
    0 8px 18px rgba(4, 13, 9, .3),
    inset 0 0 0 2px rgba(216, 175, 117, .17),
    inset 0 1px rgba(247, 227, 179, .11) !important;
}

#s-checkin .ci-status-card {
  border-radius: 16px 16px 22px 22px !important;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(177, 195, 123, .16), transparent 33%),
    repeating-linear-gradient(1deg, rgba(233, 187, 123, .04) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #394b39, #293d30) !important;
}

#s-checkin .ci-status-card #ci-status-text {
  color: #f2e8d0 !important;
}

#s-checkin .ci-status-card #ci-countdown {
  color: #f0d28f !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-checkin .ci-status-card #ci-countdown-label {
  color: #d4c9ad !important;
}

#s-checkin .ci-section-title {
  color: #f2d69d !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-checkin .ci-streak-card {
  overflow: hidden !important;
  background:
    radial-gradient(ellipse at 96% 0%, rgba(175, 194, 124, .2), transparent 33%),
    repeating-linear-gradient(2deg, rgba(235, 191, 129, .055) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #5b4931, #354936 42%, #2c4031) !important;
}

#s-checkin .ci-streak-card::after {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(210, 221, 156, .28);
  content: "❧";
  font-size: 43px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(20deg);
}

#s-checkin .ci-day-dot.done {
  color: #293629 !important;
  background:
    radial-gradient(ellipse at 29% 20%, rgba(255, 255, 255, .3), transparent 40%),
    linear-gradient(145deg, #cbd49a, #879c5e) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), 0 3px 8px rgba(7, 18, 11, .3) !important;
}

#s-checkin .ci-day-dot.today {
  border: 2px solid #e2c581 !important;
  color: #fff0cf !important;
  background:
    radial-gradient(ellipse at 29% 20%, rgba(255, 255, 255, .22), transparent 42%),
    linear-gradient(145deg, #85613b, #4e3825) !important;
  box-shadow: 0 0 0 3px rgba(226, 197, 129, .12), 0 3px 8px rgba(7, 18, 11, .3) !important;
}

#s-checkin .ci-day-dot.future {
  border-color: rgba(236, 210, 159, .46) !important;
  color: #eadbb9 !important;
  background: rgba(113, 78, 48, .34) !important;
}

#s-checkin #ci-streak-row > div > div:last-child {
  color: #e1d3b4 !important;
}

#s-checkin .ci-streak-card #ci-streak-label {
  color: #e9e0c9 !important;
}

#s-checkin .ci-claim-btn {
  border: 2px solid #d9b77c !important;
  border-radius: 17px 17px 24px 24px !important;
  color: #fff0cc !important;
  background:
    repeating-linear-gradient(3deg, rgba(255, 230, 185, .1) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #a57544, #674326 52%, #49341f) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  box-shadow:
    inset 0 2px rgba(255, 232, 189, .38),
    inset 0 -4px rgba(38, 24, 14, .35),
    0 5px 12px rgba(3, 11, 7, .34) !important;
}

#s-checkin .ci-claim-btn.done {
  color: #fff0cc !important;
  opacity: 1 !important;
}

#s-checkin .ci-vip-card {
  overflow: hidden !important;
  padding: 17px 12px !important;
  border: 3px solid #835a36 !important;
  border-radius: 22px 22px 28px 28px !important;
  background:
    radial-gradient(ellipse at 9% 0%, rgba(198, 178, 111, .18), transparent 25%),
    repeating-linear-gradient(2deg, rgba(233, 187, 123, .045) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #354936, #263c30 56%, #2b3b2e) !important;
  box-shadow: 0 9px 19px rgba(4, 13, 9, .36), inset 0 0 0 3px rgba(205, 162, 101, .22) !important;
}

#s-checkin .ci-vip-card > .ci-section-title {
  margin: 0 0 15px !important;
  color: #f4dba4 !important;
}

#s-checkin #ci-vip-table {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 11px 14px !important;
  padding: 7px 2px 8px !important;
}

#s-checkin #ci-vip-table::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  border: 1px solid #d0a16b;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 226, 173, .13) 0 2px, transparent 2px 13px),
    linear-gradient(90deg, #553720, #a67545 38%, #704a2d 72%, #4a301d);
  box-shadow: inset 2px 0 rgba(247, 218, 166, .28), 0 0 8px rgba(7, 17, 10, .35);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

#s-checkin .ci-vip-row {
  position: relative !important;
  z-index: 1;
  display: flex !important;
  min-width: 0 !important;
  min-height: 77px !important;
  box-sizing: border-box !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 8px 8px 10px !important;
  border: 1px solid #d0a16b !important;
  border-radius: 15px 10px 14px 9px !important;
  background:
    radial-gradient(ellipse at 94% 11%, rgba(221, 220, 163, .24), transparent 24%),
    repeating-linear-gradient(3deg, rgba(255, 222, 171, .1) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, #b28653 0%, #93683f 42%, #69482d 100%) !important;
  box-shadow:
    inset 0 1px rgba(255, 231, 190, .32),
    inset 0 -3px rgba(43, 27, 16, .35),
    0 4px 7px rgba(6, 16, 9, .3) !important;
  transition: transform .2s, opacity .2s;
}

#s-checkin .ci-vip-row:nth-child(odd) {
  border-radius: 15px 10px 14px 9px !important;
}

#s-checkin .ci-vip-row:nth-child(even) {
  border-radius: 10px 15px 9px 14px !important;
}

#s-checkin .ci-vip-row::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  width: 18px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #d7aa6e, #765033);
  box-shadow: 0 1px 2px rgba(13, 20, 11, .4);
  content: "";
  transform: translateY(-50%);
}

#s-checkin .ci-vip-row:nth-child(odd)::before {
  right: -17px;
}

#s-checkin .ci-vip-row:nth-child(even)::before {
  left: -17px;
}

#s-checkin .ci-vip-row::after {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  width: 13px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #d5dfa2, #82945b);
  box-shadow: 4px 2px 0 -2px #a8b879;
  content: "";
  opacity: .9;
  pointer-events: none;
  transform: rotate(-23deg);
}

#s-checkin .ci-vip-row > div:first-child {
  min-width: 0 !important;
  align-items: center !important;
  gap: 5px !important;
}

#s-checkin .ci-vip-row > div:first-child > div:first-child {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  background-color: rgba(63, 43, 25, .92) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
}

#s-checkin .ci-vip-row > div:first-child > div:last-child {
  color: #fff0d2 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

#s-checkin .ci-vip-row > div:first-child > div:last-child span {
  border: 1px solid rgba(243, 214, 157, .45) !important;
  color: #fff0d2 !important;
  background: rgba(69, 49, 27, .9) !important;
}

#s-checkin .ci-vip-row > div:last-child {
  flex: 0 0 auto !important;
  color: #fff1cb !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(45, 24, 10, .65) !important;
  white-space: nowrap !important;
}

#s-checkin .ci-vip-row.active {
  border-color: #f0d18e !important;
  background:
    radial-gradient(ellipse at 94% 11%, rgba(213, 222, 159, .31), transparent 24%),
    repeating-linear-gradient(3deg, rgba(255, 222, 171, .1) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, #b0824b, #6b492b) !important;
  box-shadow:
    inset 0 1px rgba(255, 231, 190, .4),
    0 0 0 2px rgba(239, 208, 141, .15),
    0 4px 10px rgba(4, 13, 9, .28) !important;
}

#s-checkin .ci-vip-row.disabled {
  opacity: .8 !important;
}

#s-checkin .ci-info-card {
  border-radius: 21px 21px 25px 25px !important;
  color: #f0e2c3 !important;
  background:
    radial-gradient(ellipse at 91% 8%, rgba(189, 204, 132, .22), transparent 28%),
    repeating-linear-gradient(1deg, rgba(255, 225, 169, .05) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #705035, #43533a 18%, #304333 78%, #67462e) !important;
  line-height: 1.9 !important;
}

#s-checkin .ci-info-card b {
  color: #f4d999 !important;
}

@media (max-width: 360px) {
  #s-checkin .ci-page {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  #s-checkin .ci-hero-content {
    padding-right: 13px !important;
    padding-left: 13px !important;
  }

  #s-checkin .ci-hero-heading {
    gap: 8px !important;
  }

  #s-checkin .ci-hero-mark {
    font-size: 31px !important;
  }

  #s-checkin .ci-title {
    font-size: 21px !important;
  }

  #s-checkin .ci-vip-card {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  #s-checkin #ci-vip-table {
    column-gap: 12px !important;
    padding-right: 1px !important;
    padding-left: 1px !important;
  }

  #s-checkin #ci-vip-table::before {
    width: 10px;
  }

  #s-checkin .ci-vip-row {
    min-height: 74px !important;
    gap: 3px !important;
    padding: 7px 6px 9px !important;
  }

  #s-checkin .ci-vip-row > div:first-child {
    gap: 4px !important;
  }

  #s-checkin .ci-vip-row > div:first-child > div:first-child {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
    font-size: 11px !important;
  }

  #s-checkin .ci-vip-row > div:first-child > div:last-child,
  #s-checkin .ci-vip-row > div:last-child {
    font-size: 11px !important;
  }

  #s-checkin .ci-vip-row:nth-child(odd)::before {
    right: -14px;
    width: 15px;
  }

  #s-checkin .ci-vip-row:nth-child(even)::before {
    left: -14px;
    width: 15px;
  }

  #s-checkin .ci-vip-row::after {
    width: 11px;
    height: 7px;
  }

  #s-checkin .ci-day-dot {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    font-size: 12px !important;
  }

  #s-checkin #ci-streak-row {
    gap: 3px !important;
  }
}

/* Final reference pass for Invite, Income History, My Nodes and node plans.
   The live markup, account values, routes, and click handlers remain untouched. */
#s-invite,
#s-incomehist,
#s-mydev,
#s-product,
#s-plandetail {
  --an-growth-wood:
    repeating-linear-gradient(2deg, transparent 0 9px, rgba(232, 255, 201, .11) 10px, transparent 12px 20px),
    repeating-linear-gradient(178deg, transparent 0 17px, rgba(0, 42, 15, .19) 18px, transparent 21px 32px),
    linear-gradient(180deg, #73c84a 0%, #3d9c35 34%, #18702c 69%, #0a441e 100%);
  --an-board-green:
    radial-gradient(ellipse at 50% 0, rgba(122, 193, 71, .16), transparent 48%),
    linear-gradient(145deg, #104522, #072512 78%);
}

/* Invite: a small single brand lockup, wood referral plaque, paired rate
   boards, and the existing live plan tables. */
#s-invite .back-hdr {
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  min-height: 66px !important;
  padding: 6px 11px !important;
  border: 3px solid transparent !important;
  border-radius: 0 0 15px 15px;
  background:
    linear-gradient(145deg, rgba(255, 231, 169, .14), transparent 45%),
    var(--an-wood) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .36) !important;
}

#s-invite .back-btn {
  flex: 0 0 42px;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border: 2px solid #e9c46f !important;
  border-radius: 14px !important;
  color: #fff2d2 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .back-title {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 7px;
  margin: 0 !important;
  color: #fff0c8 !important;
  font: 0/1 Georgia, "Times New Roman", serif !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

#s-invite .back-title::before {
  content: "" !important;
  display: block !important;
  flex: 0 1 clamp(74px, 27vw, 128px) !important;
  width: clamp(74px, 27vw, 128px) !important;
  height: 34px !important;
  max-width: 38%;
  background: var(--an-logo-lockup) center / contain no-repeat !important;
}

#s-invite .back-title::after {
  content: "Invite Partners";
  flex: 0 1 auto;
  color: #fff0c8;
  font: 800 clamp(12px, 3.5vw, 16px)/1.15 Georgia, "Times New Roman", serif;
  text-shadow: 0 2px 3px rgba(25, 10, 2, .8);
  overflow-wrap: anywhere;
}

#s-invite .scroll {
  box-sizing: border-box;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 12px 12px calc(32px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
}

#s-invite .ref-card {
  position: relative;
  isolation: isolate;
  margin: 0 0 12px !important;
  padding: 16px 13px 15px !important;
  overflow: hidden;
  border: 5px solid transparent !important;
  border-radius: 22px 15px 22px 15px !important;
  color: #fff2d2 !important;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 231, 165, .08), transparent 35%),
    var(--an-wood) padding-box,
    linear-gradient(145deg, #f4d987, #87511f, #e9c367) border-box !important;
  box-shadow: var(--an-wood-edge), inset 0 0 0 2px rgba(255, 235, 177, .11) !important;
}

#s-invite .ref-card > div:first-child {
  margin-bottom: 4px !important;
  color: #fff0c8 !important;
  font: 700 14px/1.25 Georgia, "Times New Roman", serif !important;
}

#s-invite .ref-code {
  color: #ffe47c !important;
  font: 900 clamp(27px, 8.5vw, 43px)/1.12 Georgia, "Times New Roman", serif !important;
  letter-spacing: clamp(1px, .8vw, 4px) !important;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 4px rgba(32, 11, 3, .8);
}

#s-invite .ref-link-box {
  box-sizing: border-box;
  max-width: 100%;
  padding: 10px 11px !important;
  border: 2px solid rgba(172, 218, 113, .78) !important;
  border-radius: 13px !important;
  color: #f1f3d7 !important;
  font-size: clamp(10px, 2.9vw, 13px) !important;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal !important;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(220, 255, 187, .06) 8px, transparent 10px),
    linear-gradient(145deg, #073919, #062810) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .42);
}

#s-invite .btn-copy {
  display: block;
  width: min(100%, 390px);
  min-height: 46px;
  margin: 10px auto 0 !important;
  border: 3px solid #ffe19a !important;
  border-radius: 999px !important;
  color: #35200a !important;
  font: 800 15px/1.2 Georgia, "Times New Roman", serif !important;
  background: var(--an-growth-wood) !important;
  box-shadow: inset 0 2px rgba(255, 255, 223, .54), 0 4px 9px rgba(27, 13, 3, .4) !important;
}

#s-invite .an-team-poster {
  margin: 0 0 12px !important;
  overflow: hidden;
  border: 4px solid transparent !important;
  border-radius: 20px 13px 20px 13px !important;
  background:
    linear-gradient(145deg, #113e1e, #061c0e) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

/* Keep the live incentive poster asset, but show only its title strip:
   detailed rates and tables below remain live and must not be duplicated. */
#s-invite .an-team-poster > img {
  display: block;
  width: 150% !important;
  max-width: none !important;
  height: clamp(44px, 12vw, 50px);
  max-height: none;
  margin: 0 0 0 -25%;
  object-fit: cover;
  object-position: center 14%;
  transform: none;
  border: 0 !important;
  border-radius: 0 !important;
}

#s-invite .an-team-poster-rule {
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 0 !important;
  border-top: 2px solid rgba(235, 198, 116, .75) !important;
  border-radius: 0 !important;
  color: #42331c !important;
  font-size: 12px;
  line-height: 1.5;
  background:
    repeating-linear-gradient(0deg, rgba(81, 63, 34, .04) 0 1px, transparent 2px 6px),
    linear-gradient(145deg, #f6ebc9, #dfc78e) !important;
}

#s-invite .an-team-poster-rule strong {
  display: block;
  margin-bottom: 4px;
  color: #15532b !important;
  font-size: 13px;
}

#s-invite .scroll > div:nth-child(3) {
  padding: 0 0 7px !important;
}

#s-invite .scroll > div:nth-child(3) > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#s-invite .scroll > div:nth-child(3) > div > div {
  box-sizing: border-box;
  min-width: 0;
  padding: 11px 9px !important;
  border: 4px solid transparent !important;
  border-radius: 19px 13px 19px 13px !important;
  background:
    linear-gradient(145deg, #125126, #082b16) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .scroll > div:nth-child(3) > div > div > div:first-child {
  min-height: 40px;
  margin-bottom: 8px !important;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(231, 201, 128, .32);
}

#s-invite #inv-rebate-rows > div,
#s-invite #inv-comm-rows > div {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  min-height: 31px;
  margin: 5px 0 !important;
  padding: 5px 6px !important;
  border: 1px solid rgba(221, 197, 124, .47);
  border-radius: 10px;
  color: #f8edcf !important;
  font-size: 10px !important;
  line-height: 1.25;
  background: rgba(3, 33, 16, .72) !important;
}

#s-invite #inv-rebate-rows > div > :last-child,
#s-invite #inv-comm-rows > div > :last-child {
  flex: 0 0 auto;
  color: #b8ef64 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#s-invite #inv-chart-wrap {
  min-width: 0;
  overflow: hidden;
}

#s-invite .an-team-charts {
  display: grid;
  gap: 11px;
  min-width: 0;
}

#s-invite .an-team-charts [id^="inv-sec-"],
#s-invite .an-team-charts [id^="inv-rebate-now-"],
#s-invite .an-team-charts [id^="inv-potential-"],
#s-invite .an-team-charts #inv-comm-daily,
#s-invite .an-team-node-showcase {
  box-sizing: border-box;
  min-width: 0;
  border: 4px solid transparent !important;
  border-radius: 20px 13px 20px 13px !important;
  color: #f7edce !important;
  background:
    linear-gradient(145deg, #104522, #062411) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-invite .an-team-charts table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
}

#s-invite .an-team-charts th,
#s-invite .an-team-charts td {
  box-sizing: border-box;
  padding: 6px 3px !important;
  border: 1px solid rgba(240, 211, 141, .48);
  border-radius: 5px;
  font-size: clamp(9px, 2.75vw, 12px) !important;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

#s-invite .an-team-charts th {
  color: #fff0c6 !important;
  background: linear-gradient(145deg, #18512a, #082c17) !important;
}

#s-invite .an-team-charts td {
  color: #2c2110 !important;
  font-weight: 800;
  background:
    repeating-linear-gradient(0deg, rgba(87, 61, 24, .035) 0 1px, transparent 2px 6px),
    linear-gradient(145deg, #fff0c7, #ddc48a) !important;
}

#s-invite .an-team-node-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#s-invite .an-team-node-tables > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(230, 198, 123, .56);
  border-radius: 12px;
  background: rgba(3, 32, 15, .72);
}

#s-invite .an-team-node-tables > div > b {
  display: block;
  min-height: 2.4em;
  color: #ffe29a;
  font-size: 10px;
  line-height: 1.25;
}

#s-invite .an-team-node-slide > img {
  display: block;
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border: 2px solid #e1bc69;
  border-radius: 13px;
}

#s-invite .an-team-node-data > h4 {
  color: #ffe398;
  font-size: clamp(13px, 3.7vw, 17px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Income History: carved title, six intact filters, compact summary tiles,
   and ledger rows whose amount never gets squeezed into a vertical column. */
#s-incomehist .back-hdr {
  min-height: 60px !important;
  padding: 5px 11px !important;
  border-bottom: 3px solid transparent !important;
  background:
    linear-gradient(180deg, #153d1c, #071e10) padding-box,
    var(--an-wood) border-box !important;
}

#s-incomehist .back-btn {
  flex: 0 0 42px;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border: 2px solid #e7c36f !important;
  border-radius: 14px !important;
  color: #fff2d2 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-incomehist .back-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff0c8 !important;
  font: 0/1 Georgia, "Times New Roman", serif !important;
}

#s-incomehist .back-title::before {
  flex: 0 1 clamp(58px, 21vw, 82px) !important;
  width: clamp(58px, 21vw, 82px) !important;
  height: 26px !important;
  max-width: 30%;
}

#s-incomehist .scroll {
  box-sizing: border-box;
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 10px 11px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 3% 8%, rgba(117, 180, 56, .12), transparent 28%),
    radial-gradient(ellipse at 98% 56%, rgba(117, 180, 56, .1), transparent 26%);
}

#s-incomehist #incomehist-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 0 0 9px !important;
  padding: 10px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 15px 23px 15px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #104622, #062411) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-incomehist #incomehist-summary::before {
  content: "📊 Income History";
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  margin: 0 0 2px;
  padding: 5px 10px;
  border: 2px solid #f0d284;
  border-radius: 15px;
  color: #fff0c8;
  font: 800 clamp(16px, 4.6vw, 22px)/1.2 Georgia, "Times New Roman", serif;
  text-align: center;
  background: var(--an-wood);
  box-shadow: inset 0 1px rgba(255, 238, 182, .45), 0 3px 7px rgba(0, 0, 0, .28);
}

#s-incomehist #incomehist-summary > div {
  box-sizing: border-box;
  min-width: 0;
  min-height: 75px;
  padding: 9px 8px !important;
  border: 2px solid rgba(231, 196, 118, .67) !important;
  border-radius: 13px !important;
  color: #f7edcf !important;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 229, 164, .08), transparent 52%),
    linear-gradient(145deg, #145027, #092c17) !important;
}

#s-incomehist .team-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 0 10px !important;
  padding: 9px !important;
  border: 5px solid transparent;
  border-radius: 20px 14px 20px 14px;
  background:
    linear-gradient(145deg, #7e491f, #4a2411) padding-box,
    var(--an-wood) border-box;
  box-shadow: var(--an-wood-edge);
}

#s-incomehist .team-tabs .ttab {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 37px;
  margin: 0 !important;
  padding: 6px 3px !important;
  border: 1px solid rgba(236, 206, 135, .66) !important;
  border-radius: 11px !important;
  color: #fff0cc !important;
  font: 700 clamp(9px, 2.75vw, 12px)/1.15 Georgia, "Times New Roman", serif !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  background: linear-gradient(145deg, #174b27, #092a15) !important;
}

#s-incomehist .team-tabs .ttab.active {
  color: #35200a !important;
  border-color: #fff0ad !important;
  background: var(--an-growth-wood) !important;
  box-shadow: inset 0 1px rgba(255, 255, 224, .57), 0 2px 4px rgba(0, 0, 0, .24) !important;
}

#s-incomehist #incomehist-list {
  display: grid;
  gap: 9px;
  width: 100%;
  max-width: 870px;
  margin: 0 auto !important;
  padding: 10px !important;
  border: 5px solid transparent !important;
  border-radius: 23px 15px 23px 15px !important;
  background:
    linear-gradient(145deg, #104522, #062411) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-incomehist #incomehist-list > .hist-item {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 !important;
  padding: 10px !important;
  border: 3px solid transparent !important;
  border-radius: 17px 12px 17px 12px !important;
  color: #fff0d1 !important;
  background:
    linear-gradient(145deg, #135027, #092b16) padding-box,
    linear-gradient(145deg, #efcf7b, #8c521f, #e9c368) border-box !important;
  box-shadow: inset 0 1px rgba(255, 238, 182, .12), 0 3px 7px rgba(0, 0, 0, .24) !important;
}

#s-incomehist #incomehist-list .hist-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(243, 211, 137, .78);
  border-radius: 12px;
  background: var(--an-wood);
}

#s-incomehist #incomehist-list .hist-info,
#s-incomehist #incomehist-list .hist-right {
  min-width: 0;
}

#s-incomehist #incomehist-list .hist-desc {
  color: #fff0c8 !important;
  font-size: clamp(12px, 3.3vw, 15px) !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#s-incomehist #incomehist-list .hist-date {
  margin-top: 4px;
  color: #e3d5ad !important;
  font-size: 11px !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#s-incomehist #incomehist-list .hist-amt {
  color: #73ed9b !important;
  font-size: clamp(12px, 3.4vw, 15px) !important;
  font-weight: 900 !important;
  line-height: 1.25;
  text-align: right;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* My Nodes: keep the collect control in its own full-width row inside each
   card; use real wood metric tiles, not a fixed or floating action. */
#s-mydev .back-hdr {
  min-height: 60px !important;
  padding: 5px 11px !important;
  border-bottom: 3px solid transparent !important;
  background:
    linear-gradient(180deg, #153d1c, #071e10) padding-box,
    var(--an-wood) border-box !important;
}

#s-mydev .back-btn {
  flex: 0 0 42px;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border: 2px solid #e7c36f !important;
  border-radius: 14px !important;
  color: #fff2d2 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-mydev .back-title {
  min-width: 0;
  color: #fff0c8 !important;
  font: 800 clamp(14px, 4vw, 19px)/1.2 Georgia, "Times New Roman", serif !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

#s-mydev .scroll {
  box-sizing: border-box;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 10px 12px calc(98px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
}

#s-mydev #node-income-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 5px solid transparent !important;
  border-radius: 21px 14px 21px 14px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #104522, #062411) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-mydev #node-income-summary > div:first-child {
  grid-column: 1 / -1;
  margin: 0 0 2px !important;
  padding: 8px 9px !important;
  border: 2px solid rgba(242, 211, 133, .75);
  border-radius: 12px;
  color: #fff0c8 !important;
  font: 800 12px/1.25 Georgia, "Times New Roman", serif !important;
  text-align: center;
  background: var(--an-wood);
}

#s-mydev #node-income-summary > div:nth-child(2) {
  display: grid !important;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

#s-mydev #node-income-summary > div:nth-child(2) > div {
  min-width: 0;
  padding: 8px 6px !important;
  border: 3px solid transparent !important;
  border-radius: 13px !important;
  background:
    linear-gradient(145deg, #135128, #092b16) padding-box,
    var(--an-wood) border-box !important;
}

#s-mydev #node-total-income,
#s-mydev #node-total-count {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffe695 !important;
  font-size: clamp(13px, 3.7vw, 17px) !important;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  background: transparent !important;
}

#s-mydev .back-title,
#s-plandetail .back-title {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

#s-mydev .back-title::before,
#s-plandetail .back-title::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 62px;
  width: 62px;
  height: 25px;
  background: var(--an-logo-lockup) center / contain no-repeat !important;
}

#s-plandetail .back-title {
  font: 0/1 Georgia, "Times New Roman", serif !important;
}

#s-plandetail .back-title::after {
  content: "Node Details";
  color: #fff0c8;
  font: 800 clamp(13px, 3.8vw, 17px)/1.2 Georgia, "Times New Roman", serif;
}

#s-mydev #mydev-list {
  width: 100%;
  max-width: 790px;
  margin-inline: auto;
}

#s-mydev #mydev-list > .sec {
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  border: 3px solid transparent !important;
  border-radius: 15px !important;
  color: #fff0c8 !important;
  background:
    linear-gradient(145deg, #145027, #082b16) padding-box,
    var(--an-wood) border-box !important;
}

#s-mydev .mdev {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 !important;
  padding: 11px !important;
  overflow: hidden;
  border: 5px solid transparent !important;
  border-radius: 22px 15px 22px 15px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #104522, #062411) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge), 0 7px 16px rgba(0, 0, 0, .28) !important;
}

#s-mydev .mdev > [style*="height:190px"] {
  margin: -11px -11px 10px !important;
  border-bottom: 4px solid #dcb65d;
}

#s-mydev .mdev-hdr {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px 9px;
  min-width: 0;
  padding: 9px !important;
  border: 3px solid transparent !important;
  border-radius: 15px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #164d27, #082b16) padding-box,
    var(--an-wood) border-box !important;
}

#s-mydev .mdev-ic {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #efd187;
  border-radius: 12px;
  background: var(--an-wood);
}

#s-mydev .mdev-hdr > div:nth-child(2) {
  grid-row: 1;
  grid-column: 2;
  min-width: 0;
}

#s-mydev .mdev-name {
  color: #fff0c8 !important;
  font: 800 clamp(14px, 3.8vw, 18px)/1.25 Georgia, "Times New Roman", serif !important;
  overflow-wrap: anywhere;
}

#s-mydev .mdev-status,
#s-mydev .mdev-pend {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid rgba(236, 207, 133, .68) !important;
  border-radius: 999px !important;
  color: #ffebac !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
  background: rgba(5, 39, 19, .94) !important;
}

#s-mydev .mdev-hdr > .mdev-pend {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
  min-width: 0;
  padding: 5px 9px !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  text-align: right;
}

#s-mydev .mdev-prog {
  margin: 10px 1px !important;
  color: #e6d8b2 !important;
}

#s-mydev .mdev-prog-bar {
  height: 9px !important;
  border: 1px solid #e6c36f !important;
  border-radius: 99px !important;
  background: var(--an-growth-wood) !important;
  box-shadow: inset 0 1px rgba(255, 255, 220, .45);
}

#s-mydev .mdev-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  min-width: 0;
}

#s-mydev .mdev-cell {
  box-sizing: border-box;
  min-width: 0;
  padding: 9px 8px !important;
  border: 3px solid transparent !important;
  border-radius: 13px !important;
  color: #fff1cd !important;
  background:
    linear-gradient(145deg, #805020, #49220f) padding-box,
    linear-gradient(145deg, #ffe296, #985721, #f4ce70) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 183, .23), 0 3px 6px rgba(0, 0, 0, .23) !important;
}

#s-mydev .mdev-cell .mk {
  color: #f6d990 !important;
  font-size: 10px !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#s-mydev .mdev-cell .mv {
  margin-top: 4px;
  color: #fff0ba !important;
  font-size: clamp(13px, 3.6vw, 17px) !important;
  font-weight: 900 !important;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

#s-mydev .mdev-cell[style*="grid-column:1/-1"] {
  grid-column: 1 / -1 !important;
}

#s-mydev .btn-collect {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  min-height: 49px;
  margin: 10px 0 0 !important;
  padding: 9px 12px !important;
  border: 4px solid transparent !important;
  border-radius: 999px !important;
  color: #fff4d0 !important;
  font: 800 clamp(13px, 3.7vw, 16px)/1.2 Georgia, "Times New Roman", serif !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  background:
    linear-gradient(145deg, #145b29, #075024) padding-box,
    var(--an-growth-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 255, 220, .4), 0 4px 8px rgba(0, 0, 0, .28) !important;
}

#s-mydev .btn-collect:disabled {
  color: #fff0cf !important;
  background: var(--an-wood) !important;
  opacity: .88;
}

#s-mydev #node-income-hist {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 12px !important;
  padding: 10px !important;
  border: 5px solid transparent !important;
  border-radius: 20px 14px 20px 14px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #104522, #062411) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-mydev #node-income-hist .hist-item {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px !important;
  border: 3px solid transparent !important;
  border-radius: 14px !important;
  background:
    linear-gradient(145deg, #145027, #092b16) padding-box,
    var(--an-wood) border-box !important;
}

/* Product values are individual wood tiles. Only an enabled purchase action
   receives the fresh-green cut-wood treatment; disabled states stay disabled. */
#s-product #plans-list .pc-name {
  min-width: 0;
  color: #fff0c8 !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#s-product #plans-list .pc-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

#s-product #plans-list .pc-stat-cell {
  box-sizing: border-box;
  min-width: 0;
  padding: 9px 8px !important;
  border: 3px solid transparent !important;
  border-radius: 13px !important;
  background:
    linear-gradient(145deg, #805020, #49220f) padding-box,
    linear-gradient(145deg, #ffe296, #985721, #f4ce70) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 183, .22), 0 3px 6px rgba(0, 0, 0, .23) !important;
}

#s-product #plans-list .pc-stat-cell .sk {
  color: #f6d990 !important;
  font-size: 9px !important;
  line-height: 1.25;
}

#s-product #plans-list .pc-stat-cell .sv {
  color: #fff0ba !important;
  font-size: clamp(14px, 3.8vw, 18px) !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

#s-product #plans-list .pc-stat-cell .su {
  color: #f2d48e !important;
  font-size: 9px !important;
}

#s-product #plans-list .btn-buy:not(:disabled),
#s-plandetail .btn-purchase:not(:disabled) {
  border: 4px solid transparent !important;
  border-radius: 18px !important;
  color: #fff8dc !important;
  font-weight: 900 !important;
  background:
    linear-gradient(145deg, #176532, #075024) padding-box,
    var(--an-growth-wood) border-box !important;
  box-shadow: inset 0 1px rgba(255, 255, 220, .46), 0 5px 11px rgba(0, 0, 0, .3) !important;
}

#s-product #plans-list .btn-buy:disabled,
#s-plandetail .btn-purchase:disabled {
  border: 3px solid #d8b263 !important;
  color: #f3e1b8 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-plandetail .pd-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#s-plandetail .pd-grid .pd-cell {
  box-sizing: border-box;
  min-width: 0;
  padding: 10px 9px !important;
  border: 3px solid transparent !important;
  border-radius: 14px !important;
  color: #fff0ca !important;
  background:
    linear-gradient(145deg, #805020, #49220f) padding-box,
    linear-gradient(145deg, #ffe296, #985721, #f4ce70) border-box !important;
  box-shadow: inset 0 1px rgba(255, 237, 183, .22), 0 3px 6px rgba(0, 0, 0, .23) !important;
}

#s-plandetail .pd-grid .pd-cell .dk {
  color: #f6d990 !important;
  font-size: 10px !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#s-plandetail .pd-grid .pd-cell .dv {
  margin-top: 4px;
  color: #fff0ba !important;
  font-size: clamp(13px, 3.6vw, 17px) !important;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: normal !important;
}

#s-plandetail .pd-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: center;
  padding: 12px !important;
  border: 5px solid transparent !important;
  border-radius: 19px 14px 19px 14px !important;
  background:
    linear-gradient(145deg, #542912, #341609) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-plandetail .pd-footer .pd-price {
  min-width: 0;
  color: #ffe38e !important;
  font-size: clamp(17px, 4.8vw, 24px) !important;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#s-plandetail .pd-footer .pd-price:empty {
  display: none;
}

#s-plandetail .pd-footer .btn-purchase {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 50px;
}

@media (max-width: 420px) {
  #s-invite .an-team-node-tables {
    grid-template-columns: minmax(0, 1fr);
  }

  #s-invite .an-team-node-tables > div > b {
    min-height: 0;
  }

  #s-incomehist #incomehist-list > .hist-item {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 6px 8px;
  }

  #s-incomehist #incomehist-list .hist-ic {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 36px;
    height: 36px;
  }

  #s-incomehist #incomehist-list .hist-info {
    grid-row: 1;
    grid-column: 2;
  }

  #s-incomehist #incomehist-list .hist-right {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
  }

  #s-incomehist #incomehist-list .hist-amt {
    text-align: left;
  }

  #s-mydev #node-income-hist .hist-item {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 6px 8px;
  }

  #s-mydev #node-income-hist .hist-ic {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  #s-mydev #node-income-hist .hist-info {
    grid-row: 1;
    grid-column: 2;
  }

  #s-mydev #node-income-hist .hist-right {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
  }

  #s-mydev #node-income-hist .hist-amt {
    text-align: left;
  }

  #s-mydev .mdev-grid {
    gap: 6px !important;
  }

  #s-mydev .mdev-cell {
    padding: 8px 7px !important;
  }

  #s-plandetail .pd-footer {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 560px) {
  #s-mydev .mdev-hdr {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  #s-mydev .mdev-ic {
    grid-row: 1;
  }

  #s-mydev .mdev-hdr > .mdev-pend {
    grid-row: 1;
    grid-column: 3;
  }
}
