:root {
  --ls-bg: #e4e7df;
  --ls-panel: #f5f5ef;
  --ls-panel-2: #e9ede5;
  --ls-line: rgba(86, 113, 45, .34);
  --ls-line-soft: rgba(41, 55, 45, .16);
  --ls-lime: #86a93e;
  --ls-lime-2: #6c9b4a;
  --ls-cyan: #4ee9ff;
  --ls-violet: #9a6cff;
  --ls-red: #ff4967;
  --ls-text: #202721;
  --ls-muted: #69736a;
  --ls-shadow: 0 22px 58px rgba(33, 43, 36, .16);
}

* { box-sizing: border-box; }
html { background: var(--ls-bg); color-scheme: light; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(120, 148, 169, .16), transparent 29rem),
    radial-gradient(circle at 8% 36%, rgba(134, 169, 62, .11), transparent 25rem),
    var(--ls-bg) !important;
  color: var(--ls-text) !important;
  font-family: Inter, Arial, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .11;
  background-image: linear-gradient(rgba(28,42,32,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(28,42,32,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
::selection { color: #090b09; background: var(--ls-lime); }

#ls-loader {
  position: fixed; inset: 0; z-index: 100000; display: grid; place-content: center; gap: 16px;
  background: #e4e7df; transition: opacity .35s ease, visibility .35s ease;
}
#ls-loader.is-done { opacity: 0; visibility: hidden; }
.ls-loader-mark { font-size: 38px; font-weight: 950; font-style: italic; letter-spacing: -.12em; color: var(--ls-lime); }
.ls-loader-line { width: 82px; height: 2px; background: linear-gradient(90deg, transparent, var(--ls-lime), transparent); animation: lsPulse .7s ease-in-out infinite alternate; }
@keyframes lsPulse { to { opacity: .25; transform: scaleX(.65); } }

.ls-header {
  position: sticky; top: 0; z-index: 9990; border-bottom: 1px solid var(--ls-line-soft);
  background: rgba(27, 32, 29, .93); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.ls-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--ls-lime), transparent); opacity: .45; }
.ls-header-inner { max-width: 1480px; min-height: 72px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 30px; }
.ls-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.ls-brand img { width: 46px !important; height: 46px !important; max-width: none !important; flex: 0 0 46px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(207,255,62,.18)); }
.ls-brand-copy { display: flex; flex-direction: column; }
.ls-brand-copy strong { font-size: 19px; font-weight: 950; font-style: italic; letter-spacing: .06em; line-height: 1; }
.ls-brand-copy small { color: var(--ls-muted); font-size: 8px; font-weight: 750; letter-spacing: .2em; margin-top: 5px; }
.ls-main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.ls-nav-link { position: relative; display: flex; align-items: center; padding: 0 13px; color: #c0c7c0; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; transition: color .2s ease; }
.ls-nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; background: var(--ls-lime); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.ls-nav-link:hover, .ls-nav-link.is-active { color: #fff; }
.ls-nav-link:hover::after, .ls-nav-link.is-active::after { transform: scaleX(1); }
.ls-header-tools { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.ls-balance { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 12px; border: 1px solid var(--ls-line-soft); border-radius: 3px; color: var(--ls-muted); text-decoration: none; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ls-balance strong { color: var(--ls-lime); font-size: 13px; letter-spacing: 0; }
.ls-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ls-lime-2); box-shadow: 0 0 10px var(--ls-lime-2); }
.ls-icon-button, .ls-profile { height: 39px; border: 1px solid var(--ls-line-soft); border-radius: 3px; background: rgba(255,255,255,.035); color: #fff; }
.ls-icon-button { position: relative; width: 42px; display: grid; place-items: center; cursor: pointer; }
.ls-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ls-cart-badge { position: absolute; right: -5px; top: -5px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; background: var(--ls-red); color: #fff; font-size: 9px; font-weight: 900; box-shadow: 0 0 0 3px #090b09; }
.ls-cart-wrap { position: relative; }
.ls-cart-popup { position: absolute; right: 0; top: calc(100% + 13px); width: min(340px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--ls-line); border-radius: 5px; background: rgba(34,40,36,.98); box-shadow: var(--ls-shadow); }
.ls-cart-title, .ls-cart-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ls-line-soft); font-size: 11px; letter-spacing: .12em; }
.ls-cart-title span, .ls-cart-total strong { color: var(--ls-lime); }
.ls-cart-title b { color: var(--ls-muted); font-size: 9px; }
.ls-cart-items { max-height: 270px; overflow-y: auto; padding: 5px 16px; }
.ls-cart-empty { padding: 28px 0; color: var(--ls-muted); text-align: center; font-size: 12px; }
.ls-cart-total { border-top: 1px solid var(--ls-line-soft); border-bottom: 0; }
.ls-cart-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 16px 16px; }
.ls-profile { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 5px; text-decoration: none; }
.ls-profile > span { width: 29px; height: 29px; display: grid; place-items: center; color: #10130e; background: var(--ls-lime); font-size: 11px; font-weight: 950; clip-path: polygon(18% 0,100% 0,100% 82%,82% 100%,0 100%,0 18%); }
.ls-profile b { max-width: 86px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: .08em; }
.ls-subnav { min-height: 30px; max-width: 1480px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: flex-end; gap: 21px; color: #aab3ab; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ls-subnav span { margin-right: auto; color: #aeb7ae; }
.ls-subnav i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--ls-lime-2); box-shadow: 0 0 8px var(--ls-lime-2); }
.ls-subnav a { text-decoration: none; transition: color .2s; }
.ls-subnav a:hover { color: #fff; }
.ls-mobile-toggle { display: none; margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--ls-line-soft); background: transparent; }
.ls-mobile-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: #fff; }

main.content-wrapper { min-height: calc(100vh - 154px); padding: 0 !important; background: transparent !important; }
.ls-shell { max-width: 1480px; margin: 0 auto; padding: 30px 28px 68px; }
.ls-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ls-lime); font-size: 9px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.ls-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.ls-display { margin: 14px 0 16px; font-size: clamp(42px, 7vw, 94px); line-height: .85; font-weight: 950; font-style: italic; letter-spacing: -.065em; text-transform: uppercase; }
.ls-display em { display: block; color: var(--ls-lime); font-style: normal; -webkit-text-stroke: 1px rgba(0,0,0,.18); text-shadow: 0 8px 34px rgba(169,255,0,.16); }
.ls-hero { position: relative; min-height: 600px; overflow: hidden; border: 1px solid var(--ls-line-soft); border-radius: 6px; background: #242a26; box-shadow: var(--ls-shadow); isolation: isolate; }
.ls-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('/brand/ls-grid-hero-v1.webp') center/cover no-repeat; filter: brightness(1.14) saturate(.88); }
.ls-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,25,22,.90) 0%, rgba(20,25,22,.70) 36%, rgba(20,25,22,.10) 74%), linear-gradient(0deg, rgba(20,25,22,.68), transparent 52%); }
.ls-hero-grid { min-height: 600px; display: grid; grid-template-columns: minmax(0, 700px) 1fr; align-items: center; padding: clamp(30px, 6vw, 84px); }
.ls-hero-copy { max-width: 700px; }
.ls-hero-copy > p { max-width: 570px; margin: 0; color: #d2d8d1; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.7; }
.ls-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.ls-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.ls-btn:hover { transform: translateY(-2px); }
.ls-btn-primary { color: #0a0d08; background: var(--ls-lime); }
.ls-btn-primary:hover { background: #e0ff7b; }
.ls-btn-ghost { color: #f4f6f2; border-color: rgba(255,255,255,.28); background: rgba(35,42,37,.78); }
.ls-btn-ghost:hover { border-color: var(--ls-lime); }
.ls-hero-coordinates { position: absolute; right: 24px; bottom: 18px; color: rgba(255,255,255,.52); font: 700 8px/1.5 monospace; letter-spacing: .14em; text-align: right; }

.ls-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: -1px 28px 0; position: relative; z-index: 3; border: 1px solid var(--ls-line-soft); background: rgba(37,44,39,.96); box-shadow: 0 14px 32px rgba(0,0,0,.17); }
.ls-stat { position: relative; min-height: 102px; padding: 22px 25px; border-right: 1px solid var(--ls-line-soft); }
.ls-stat:last-child { border-right: 0; }
.ls-stat span { display: block; color: var(--ls-muted); font-size: 8px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.ls-stat strong { display: block; margin-top: 5px; color: #fff; font-size: clamp(25px, 3vw, 38px); line-height: 1; letter-spacing: -.05em; }
.ls-stat i { position: absolute; right: 16px; top: 18px; color: var(--ls-lime); font: normal 8px monospace; }
.ls-section { margin-top: 66px; }
.ls-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ls-section-heading h2 { margin: 7px 0 0; font-size: clamp(25px, 3.5vw, 43px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.ls-section-heading p { max-width: 450px; margin: 0; color: var(--ls-muted); font-size: 12px; line-height: 1.65; }
.ls-quick-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.ls-quick-card { position: relative; min-height: 210px; overflow: hidden; padding: 26px; border: 1px solid var(--ls-line-soft); border-radius: 4px; background: linear-gradient(145deg, rgba(48,57,50,.98), rgba(34,40,36,.98)); text-decoration: none; transition: border-color .2s, transform .2s; }
.ls-quick-card:hover { transform: translateY(-3px); border-color: var(--ls-line); }
.ls-quick-card::after { content: attr(data-code); position: absolute; right: 15px; bottom: 6px; color: rgba(255,255,255,.035); font-size: 66px; font-weight: 950; font-style: italic; }
.ls-quick-card:first-child { background: linear-gradient(125deg, rgba(183,223,85,.18), rgba(35,42,37,.98) 64%); }
.ls-quick-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ls-lime); border: 1px solid var(--ls-line); background: rgba(196,255,49,.04); font-size: 18px; }
.ls-quick-card h3 { margin: 36px 0 7px; font-size: 19px; letter-spacing: -.03em; text-transform: uppercase; }
.ls-quick-card p { max-width: 390px; margin: 0; color: var(--ls-muted); font-size: 11px; line-height: 1.6; }
.ls-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ls-data-card { position: relative; overflow: hidden; min-height: 250px; padding: 23px; border: 1px solid var(--ls-line-soft); border-radius: 4px; background: rgba(42,50,44,.96); }
.ls-data-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--ls-lime), transparent 65%); opacity: .6; }
.ls-card-kicker { display: flex; justify-content: space-between; gap: 12px; color: var(--ls-muted); font: 800 8px monospace; letter-spacing: .12em; text-transform: uppercase; }
.ls-data-card h3 { margin: 19px 0 5px; font-size: 19px; }
.ls-data-card > p { margin: 0 0 22px; color: var(--ls-muted); font-size: 10px; }
.ls-meter { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 11px; margin-top: 12px; color: #aab2a8; font-size: 9px; text-transform: uppercase; }
.ls-meter-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.ls-meter-track i { display: block; height: 100%; background: var(--ls-lime); }
.ls-data-footer { position: absolute; left: 23px; right: 23px; bottom: 20px; display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--ls-line-soft); color: var(--ls-muted); font-size: 9px; }
.ls-data-footer strong { color: #fff; font-size: 14px; }
.ls-empty { grid-column: 1 / -1; padding: 52px 20px; border: 1px dashed var(--ls-line); color: var(--ls-muted); text-align: center; font-size: 12px; }
.ls-seller-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ls-seller { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 92px; padding: 16px; border: 1px solid var(--ls-line-soft); background: rgba(42,50,44,.94); text-decoration: none; }
.ls-seller-rank { width: 42px; height: 48px; display: grid; place-items: center; color: var(--ls-lime); background: #242a26; border: 1px solid var(--ls-line); font-size: 18px; font-weight: 950; font-style: italic; clip-path: polygon(15% 0,100% 0,100% 85%,85% 100%,0 100%,0 15%); }
.ls-seller h3 { margin: 0; font-size: 13px; }
.ls-seller p { margin: 5px 0 0; color: var(--ls-muted); font-size: 9px; }
.ls-seller-score { color: var(--ls-lime); font-size: 12px; font-weight: 900; }
.ls-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ls-news-item { padding: 24px; border: 1px solid var(--ls-line-soft); background: rgba(39,46,41,.94); }
.ls-news-item time { color: var(--ls-lime); font: 800 8px monospace; letter-spacing: .12em; }
.ls-news-item h3 { margin: 14px 0 8px; font-size: 16px; }
.ls-news-item div { color: var(--ls-muted); font-size: 11px; line-height: 1.7; }

.ls-page-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.ls-page-intro h1 { margin: 8px 0 0; font-size: clamp(32px, 5vw, 58px); line-height: .95; font-weight: 950; font-style: italic; letter-spacing: -.055em; text-transform: uppercase; }
.ls-page-intro p { max-width: 470px; margin: 0; color: var(--ls-muted); font-size: 11px; line-height: 1.65; }
.ls-market-page { max-width: 1480px !important; margin-inline: auto !important; padding: 32px 28px 70px; }
.ls-market-page > section:first-of-type { overflow: visible; border: 1px solid var(--ls-line-soft); border-radius: 5px !important; background: #111411 !important; box-shadow: var(--ls-shadow); }
.ls-market-page > section:first-of-type > div:first-child { border-bottom: 1px solid var(--ls-line-soft); border-radius: 5px 5px 0 0 !important; background: #181c18 !important; box-shadow: none !important; }
.ls-market-page > section:first-of-type > div:first-child .subtitle { color: #fff !important; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ls-market-page #filterPanel, .ls-market-page #filterForm { background: #111411 !important; }
.ls-market-page #filterForm label { color: #9da69c !important; font-size: 9px !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; }
.ls-market-page .input-element,
.ls-market-page .textarea-element,
.ls-market-page .custom-field-element,
.ls-market-page .cc-search,
.ls-market-page input[type="text"],
.ls-market-page input[type="number"],
.ls-market-page input[type="date"],
.ls-market-page textarea,
.ls-market-page select { border: 1px solid rgba(255,255,255,.11) !important; border-radius: 3px !important; background: #090b09 !important; color: #f2f5ef !important; box-shadow: none !important; }
.ls-market-page .cc-panel { border: 1px solid var(--ls-line) !important; border-radius: 4px !important; background: #171b17 !important; box-shadow: 0 20px 45px rgba(0,0,0,.5) !important; }
.ls-market-page .cc-option:hover, .ls-market-page .cc-star-opt:hover { background: rgba(207,255,62,.08) !important; }
.ls-market-page #filterForm > div > .col-span-full { border-top: 1px solid var(--ls-line-soft); border-radius: 0 !important; background: #151915 !important; }
.ls-market-page #toggleFiltersBtn { border: 1px solid var(--ls-line-soft) !important; border-radius: 2px !important; background: #090b09 !important; box-shadow: none !important; }
.ls-market-page #filterBtnText { color: #d7ddd4 !important; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ls-market-page .toggle-widget + span, .ls-market-page .toggle-label { border-radius: 2px !important; }
.ls-market-page > .shadow-secondary { margin-top: 18px !important; border: 1px solid var(--ls-line-soft); border-radius: 4px !important; background: #171b17 !important; box-shadow: none !important; }
.ls-market-page > .shadow-secondary .subtitle { color: #fff !important; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ls-market-page .cards-result-table-grid { border-color: var(--ls-line-soft) !important; background: #151915 !important; }
.ls-market-page .cards-result-table-grid:nth-child(even) { background: #101310 !important; }
.ls-market-page .cards-result-table-grid:hover { border-color: var(--ls-line) !important; background: #1b211a !important; }
.ls-market-page #addToCartBtn svg { color: #0a0d08 !important; }
.ls-market-page #cartTotal { border-color: rgba(0,0,0,.25) !important; color: #0a0d08 !important; }

.ls-footer { border-top: 1px solid var(--ls-line-soft); background: #060706; }
.ls-footer-inner { min-height: 88px; max-width: 1480px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; gap: 28px; color: var(--ls-muted); }
.ls-footer-brand { display: flex; align-items: center; gap: 11px; }
.ls-footer-brand img { width: 38px !important; height: 38px !important; max-width: none !important; flex: 0 0 38px; object-fit: contain; }
.ls-footer-brand div { display: flex; flex-direction: column; }
.ls-footer-brand strong { color: #fff; font-size: 12px; letter-spacing: .11em; }
.ls-footer-brand span { margin-top: 4px; font-size: 8px; letter-spacing: .08em; }
.ls-footer nav { display: flex; gap: 18px; margin-left: auto; }
.ls-footer nav a { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.ls-footer nav a:hover { color: var(--ls-lime); }
.ls-footer p { max-width: 250px; margin: 0; font-size: 8px; line-height: 1.5; text-align: right; }

/* Common legacy page conversion */
main.content-wrapper > :not(.ls-shell) { max-width: 1480px; margin-inline: auto; }
main.content-wrapper > div:not(.ls-shell):not(.ls-market-page) { width: 100%; padding: 30px 28px 70px; }
main.content-wrapper section, main.content-wrapper form, main.content-wrapper table, main.content-wrapper [class*="rounded-"] { color: var(--ls-text); }
.bg-background-light, .dark\:bg-background-dark, .bg-background-card, .dark\:bg-background-card { background-color: var(--ls-panel) !important; }
.text-text-primary, .dark\:text-white { color: var(--ls-text) !important; }
.text-text-secondary, .text-\[\#7D8AA9\], .dark\:text-\[\#D9E0EF\] { color: var(--ls-muted) !important; }
.bg-blue-primary { background: #171b17 !important; color: #fff !important; }
.btn-primary, button.bg-blue-primary, a.bg-blue-primary { background: var(--ls-lime) !important; color: #0a0d08 !important; }
.btn-primary, .btn-secondary { border-radius: 2px !important; font-weight: 900 !important; letter-spacing: .08em; text-transform: uppercase; }
.btn-secondary { background: transparent !important; border: 1px solid rgba(255,255,255,.18) !important; color: #fff !important; }
.input-element, input, select, textarea { color: #fff; }
.input-element { background: rgba(8,11,9,.9) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 3px !important; }
.input-element:focus { border-color: var(--ls-lime) !important; box-shadow: 0 0 0 3px rgba(207,255,62,.08) !important; }

/* Normalize the inherited blue component library across the remaining routes. */
main.content-wrapper [class*="dark:bg-[#5C6989]"],
main.content-wrapper [class*="bg-[#5C6989]"] { background-color: #171b17 !important; }
main.content-wrapper [class*="dark:bg-[#545D74]"],
main.content-wrapper [class*="bg-[#545D74]"] { background-color: #111411 !important; }
main.content-wrapper [class*="dark:bg-[#464F67]"],
main.content-wrapper [class*="bg-[#464F67]"] { background-color: #0c0f0d !important; }
main.content-wrapper [class*="dark:bg-[#66708D]"],
main.content-wrapper [class*="bg-[#66708D]"] { background-color: #151915 !important; }
main.content-wrapper [class*="dark:bg-[#7681A1]"],
main.content-wrapper [class*="bg-[#7681A1]"] { background-color: #101310 !important; }
main.content-wrapper [class*="dark:bg-[#3F4C73]"],
main.content-wrapper [class*="bg-[#3F4C73]"] { background-color: #1b211a !important; }
main.content-wrapper [class*="bg-[#DFE7FA]"],
main.content-wrapper [class*="bg-[#F8FAFF]"],
main.content-wrapper [class*="bg-[#EFF4FF]"] { background-color: #131713 !important; }
main.content-wrapper [class*="border-[#616B89]"],
main.content-wrapper [class*="border-[#495470]"],
main.content-wrapper [class*="border-[#C5D4F5]"],
main.content-wrapper [class*="border-[#B4BED4]"] { border-color: var(--ls-line-soft) !important; }
main.content-wrapper [class*="text-blue-primary"],
main.content-wrapper [class*="dark:text-[#84A9FF]"],
main.content-wrapper [class*="text-[#225BE6]"] { color: var(--ls-lime) !important; }
main.content-wrapper [class*="text-[#487FFF]"] { color: #243016 !important; }
main.content-wrapper .shadow-secondary, main.content-wrapper .shadow-primary { box-shadow: none !important; }
main.content-wrapper input, main.content-wrapper textarea, main.content-wrapper select { border-color: rgba(255,255,255,.11) !important; background-color: #090b09 !important; color: #fff !important; }
main.content-wrapper table, main.content-wrapper section { border-color: var(--ls-line-soft) !important; }
main.content-wrapper [style*="background:#5084FF"], main.content-wrapper [style*="background: #5084FF"] { background: #121612 !important; }
main.content-wrapper [style*="background:#6795FF"], main.content-wrapper [style*="background: #6795FF"] { background: #171b17 !important; }
main.content-wrapper [style*="background:#648BE6"], main.content-wrapper [style*="background: #648BE6"] { background: #0e110f !important; }
main.content-wrapper [style*="background:#8EADF8"], main.content-wrapper [style*="background: #8EADF8"] { background: #263120 !important; }
main.content-wrapper [style*="background:#91B2FF"], main.content-wrapper [style*="background: #91B2FF"] { background: #25301d !important; }
main.content-wrapper [style*="background:#4A546D"], main.content-wrapper [style*="background: #4A546D"] { background: #181c18 !important; }
main.content-wrapper [style*="background:#3D4456"], main.content-wrapper [style*="background: #3D4456"] { background: #111411 !important; }

.ls-modal-backdrop { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; padding: 18px; background: rgba(1,3,2,.82); backdrop-filter: blur(12px); }
.ls-modal { width: min(520px, 100%); padding: 30px; border: 1px solid var(--ls-line); border-radius: 5px; background: #101310; box-shadow: var(--ls-shadow); }
.ls-modal h2 { margin: 10px 0; font-size: 26px; text-transform: uppercase; }
.ls-modal p { color: var(--ls-muted); font-size: 12px; line-height: 1.65; }
.ls-secret { display: block; margin: 16px 0; padding: 14px; border: 1px dashed var(--ls-line); color: var(--ls-lime); background: #090b09; word-break: break-all; font: 12px monospace; }

.ls-auth { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; background: #080a09; }
.ls-auth-visual { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(34px, 6vw, 78px); background: url('/brand/ls-grid-hero-v1.webp') 58% center/cover no-repeat; isolation: isolate; }
.ls-auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4,6,5,.96), rgba(4,6,5,.08) 72%), linear-gradient(90deg, rgba(4,6,5,.3), rgba(4,6,5,.1)); }
.ls-auth-tagline { max-width: 650px; }
.ls-auth-tagline h1 { margin: 14px 0 0; max-width: 600px; font-size: clamp(45px, 6.5vw, 92px); font-weight: 950; font-style: italic; letter-spacing: -.07em; line-height: .87; text-transform: uppercase; }
.ls-auth-tagline h1 span { color: var(--ls-lime); }
.ls-auth-panel { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 44px; border-left: 1px solid var(--ls-line-soft); background: radial-gradient(circle at top right, rgba(138,83,255,.13), transparent 32rem), #0b0d0c; }
.ls-auth-card { width: min(470px, 100%); }
.ls-auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 48px; text-decoration: none; }
.ls-auth-brand img { width: 48px !important; height: 48px !important; max-width: none !important; flex: 0 0 48px; object-fit: contain; }
.ls-auth-brand strong { display: block; font-size: 16px; letter-spacing: .12em; }
.ls-auth-brand small { display: block; margin-top: 4px; color: var(--ls-muted); font-size: 8px; letter-spacing: .17em; }
.ls-auth-card h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; text-transform: uppercase; }
.ls-auth-lead { margin: 9px 0 27px; color: var(--ls-muted); font-size: 12px; line-height: 1.6; }
.ls-auth-form { display: grid; gap: 14px; }
.ls-field { position: relative; }
.ls-field label { display: block; margin-bottom: 7px; color: #b7beb5; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.ls-field input { width: 100%; height: 49px; padding: 0 14px; outline: none; border: 1px solid rgba(255,255,255,.12); border-radius: 2px; background: rgba(5,7,6,.76); color: #fff; transition: border-color .2s, box-shadow .2s; }
.ls-field input:focus { border-color: var(--ls-lime); box-shadow: 0 0 0 3px rgba(207,255,62,.07); }
.ls-captcha-row { display: grid; grid-template-columns: 1fr 154px; gap: 8px; }
.ls-captcha { height: 49px; display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #e4e8dd; cursor: pointer; }
.ls-captcha img { width: 100%; height: 100%; object-fit: contain; }
.ls-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 6px; }
.ls-auth-error { padding: 12px 14px; border: 1px solid rgba(255,73,103,.36); background: rgba(255,73,103,.09); color: #ff9bab; font-size: 11px; line-height: 1.5; }
.ls-check { display: flex; align-items: flex-start; gap: 9px; color: var(--ls-muted); font-size: 10px; line-height: 1.5; }
.ls-check input { margin-top: 2px; accent-color: var(--ls-lime); }
.ls-check a { color: var(--ls-lime); }
.ls-auth-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ls-line-soft); color: #6f776e; font-size: 9px; line-height: 1.7; }
.ls-terms { position: fixed; inset: 0; z-index: 99999; display: none; place-items: center; padding: 18px; background: rgba(2,3,2,.86); backdrop-filter: blur(9px); }
.ls-terms-card { width: min(760px, 100%); max-height: 85vh; overflow: auto; padding: 27px; border: 1px solid var(--ls-line); background: #111411; box-shadow: var(--ls-shadow); }
.ls-terms-card h3 { margin: 0 0 14px; font-size: 24px; }
.ls-terms-card p, .ls-terms-card li { color: var(--ls-muted); font-size: 11px; line-height: 1.7; }

@media (max-width: 1120px) {
  .ls-header-inner { gap: 15px; padding-inline: 18px; }
  .ls-brand-copy small, .ls-balance > span:not(.ls-status-dot), .ls-profile b { display: none; }
  .ls-nav-link { padding-inline: 9px; }
  .ls-subnav { padding-inline: 18px; }
  .ls-quick-grid { grid-template-columns: 1fr 1fr; }
  .ls-quick-card:first-child { grid-column: 1 / -1; }
  .ls-data-grid, .ls-seller-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ls-header-inner { min-height: 64px; }
  .ls-mobile-toggle { display: block; }
  .ls-main-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; align-self: auto; padding: 10px 18px 18px; border-bottom: 1px solid var(--ls-line); background: rgba(7,9,8,.98); }
  .ls-main-nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ls-nav-link { min-height: 43px; padding: 0 12px; border: 1px solid var(--ls-line-soft); }
  .ls-header-tools { margin-left: 0; }
  .ls-balance { display: none; }
  .ls-subnav { display: none; }
  .ls-shell { padding: 20px 14px 52px; }
  main.content-wrapper > div:not(.ls-shell):not(.ls-market-page) { padding: 20px 8px 52px; }
  .ls-hero, .ls-hero-grid { min-height: 560px; }
  .ls-hero-grid { display: flex; align-items: flex-end; padding: 28px 22px 60px; }
  .ls-hero::after { background: linear-gradient(0deg, rgba(5,7,6,.99) 5%, rgba(5,7,6,.55) 70%, rgba(5,7,6,.2)); }
  .ls-display { font-size: clamp(45px, 15vw, 78px); }
  .ls-stat-strip { grid-template-columns: 1fr 1fr; margin-inline: 10px; }
  .ls-stat { min-height: 86px; padding: 18px; }
  .ls-stat:nth-child(2) { border-right: 0; }
  .ls-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ls-line-soft); }
  .ls-section { margin-top: 48px; }
  .ls-section-heading { align-items: start; flex-direction: column; }
  .ls-page-intro { align-items: start; flex-direction: column; }
  .ls-market-page { padding: 24px 8px 52px; }
  .ls-quick-grid, .ls-data-grid, .ls-seller-list, .ls-news-grid { grid-template-columns: 1fr; }
  .ls-quick-card:first-child { grid-column: auto; }
  .ls-footer-inner { align-items: flex-start; flex-direction: column; }
  .ls-footer nav { margin-left: 0; flex-wrap: wrap; }
  .ls-footer p { text-align: left; }
  .ls-auth { grid-template-columns: 1fr; }
  .ls-auth-visual { min-height: 42vh; padding: 28px; }
  .ls-auth-tagline h1 { font-size: clamp(45px, 14vw, 78px); }
  .ls-auth-panel { min-height: auto; padding: 34px 20px 50px; border-left: 0; border-top: 1px solid var(--ls-line-soft); }
  .ls-auth-brand { margin-bottom: 32px; }
}
@media (max-width: 480px) {
  .ls-brand-copy { display: none; }
  .ls-header-inner { gap: 8px; padding-inline: 12px; }
  .ls-header-tools { gap: 6px; }
  .ls-profile { padding-right: 5px; }
  .ls-profile b { display: none; }
  .ls-captcha-row { grid-template-columns: 1fr 118px; }
  .ls-auth-actions { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* REALMFORGE V4 — bright original epic-fantasy system                       */
/* The existing class contract stays intact; layout, rhythm and surfaces do. */
/* ========================================================================== */
:root {
  --rf-ink: #14283a;
  --rf-blue: #1d4e79;
  --rf-blue-bright: #2b6fa3;
  --rf-blue-deep: #102a43;
  --rf-gold: #c89a3d;
  --rf-gold-light: #efd58a;
  --rf-parchment: #f6eed9;
  --rf-paper: #fffaf0;
  --rf-paper-deep: #e9dcc0;
  --rf-wood: #65452e;
  --rf-green: #4f704b;
  --rf-muted: #6f6c63;
  --rf-line: rgba(104, 73, 37, .24);
  --rf-shadow: 0 18px 45px rgba(37, 42, 42, .14);
}

html { background: #e8dfcd; }
body {
  color: var(--rf-ink) !important;
  background:
    radial-gradient(circle at 10% 8%, rgba(255,255,255,.8), transparent 28rem),
    repeating-linear-gradient(105deg, rgba(96,74,44,.018) 0 1px, transparent 1px 7px),
    #e8dfcd !important;
}
body::before {
  background:
    radial-gradient(circle at 78% 22%, rgba(43,111,163,.10), transparent 31rem),
    radial-gradient(circle at 12% 78%, rgba(200,154,61,.09), transparent 30rem) !important;
  opacity: 1 !important;
}
h1, h2, h3, .ls-display, .ls-brand-copy strong, .ls-auth-brand strong,
.ls-route-visual__copy h1, .ls-search-stage__copy h1 {
  font-family: Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.035em;
}
.ls-eyebrow {
  color: var(--rf-gold) !important;
  letter-spacing: .16em !important;
}

/* Header becomes a guild bar, not the previous black utility strip. */
body .ls-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 2px solid var(--rf-gold);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, #1d4668, #132f49) !important;
  box-shadow: 0 9px 28px rgba(16,42,67,.24) !important;
}
body .ls-header-inner { min-height: 74px; }
body .ls-brand img { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.22)); }
body .ls-brand-copy strong { color: #fff5d8 !important; font-size: 18px; letter-spacing: .035em; }
body .ls-brand-copy small { color: #d6c38f !important; letter-spacing: .12em; }
body .ls-main-nav { gap: 2px; }
body .ls-nav-link {
  position: relative;
  padding: 27px 13px 25px;
  color: #dce9f2 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  letter-spacing: .025em;
}
body .ls-nav-link::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 15px;
  width: 5px; height: 5px;
  border: 1px solid var(--rf-gold-light);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform .2s ease;
}
body .ls-nav-link:hover,
body .ls-nav-link.is-active { color: #fff1bd !important; background: rgba(255,255,255,.05) !important; }
body .ls-nav-link:hover::before,
body .ls-nav-link.is-active::before { transform: translateX(-50%) rotate(45deg) scale(1); }
body .ls-balance {
  border: 1px solid rgba(239,213,138,.35) !important;
  border-radius: 4px !important;
  background: rgba(7,25,39,.26) !important;
  color: #dfeaf0 !important;
}
body .ls-balance strong { color: #ffe5a0 !important; }
body .ls-status-dot { background: #82d07c !important; box-shadow: 0 0 0 4px rgba(130,208,124,.14); }
body .ls-icon-button,
body .ls-profile > span { border-color: rgba(239,213,138,.35) !important; background: rgba(7,25,39,.26) !important; color: #fff1c4 !important; }
body .ls-profile b { color: #f4ebd7 !important; }
body .ls-subnav {
  border-top: 1px solid rgba(239,213,138,.18) !important;
  background: #0e273c !important;
  color: #c8d6df !important;
}
body .ls-subnav a { color: #c8d6df !important; }
body .ls-subnav a:hover { color: #ffe5a0 !important; }
body .ls-cart-popup {
  border: 1px solid rgba(239,213,138,.38) !important;
  border-radius: 5px !important;
  background: #132f49 !important;
  box-shadow: 0 24px 60px rgba(8,23,35,.35) !important;
}

/* Loader rune. */
body #ls-loader { background: #f2e9d5 !important; }
body .ls-loader-mark { color: var(--rf-blue) !important; border-color: var(--rf-gold) !important; font-family: Georgia, serif; }
body .ls-loader-line { background: linear-gradient(90deg, var(--rf-blue), var(--rf-gold)) !important; }

/* Home is a layered campaign page with illustrated chapter breaks. */
body .ls-shell { max-width: 1480px; }
body .ls-hero {
  min-height: clamp(580px, 73vh, 820px) !important;
  margin-top: 18px;
  border: 1px solid rgba(200,154,61,.6) !important;
  border-radius: 3px 3px 42px 3px !important;
  background-image:
    linear-gradient(90deg, rgba(10,31,48,.92) 0%, rgba(10,31,48,.72) 34%, rgba(10,31,48,.12) 64%, rgba(10,31,48,.04) 100%),
    url('/brand/realmforge-hero-v2.webp') !important;
  background-position: center !important;
  box-shadow: var(--rf-shadow) !important;
}
body .ls-hero::before {
  background: linear-gradient(180deg, transparent 65%, rgba(13,39,59,.43)) !important;
}
body .ls-hero::after {
  content: '✦';
  position: absolute;
  left: 38px; bottom: 34px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(239,213,138,.72);
  color: #ffe7a6;
  transform: rotate(45deg);
}
body .ls-hero::after { line-height: 1; }
body .ls-hero-grid { max-width: 1260px; }
body .ls-hero-copy { max-width: 650px; }
body .ls-hero-copy .ls-eyebrow { color: #f5d884 !important; }
body .ls-display { color: #fff8e6 !important; font-size: clamp(66px, 7vw, 118px) !important; line-height: .84 !important; text-transform: none !important; }
body .ls-display em { color: #efd07a !important; font-style: italic !important; font-weight: 500; }
body .ls-hero-copy > p { max-width: 540px; color: #e6edf0 !important; font-size: 15px !important; line-height: 1.8; }
body .ls-btn { border-radius: 3px !important; letter-spacing: .04em; }
body .ls-btn-primary,
body main.content-wrapper .btn-primary,
body main.content-wrapper button.bg-blue-primary,
body main.content-wrapper a.bg-blue-primary {
  border: 1px solid #e4c270 !important;
  background: linear-gradient(180deg, #e0b95c, #b98228) !important;
  color: #1d2d35 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 7px 18px rgba(84,58,25,.18) !important;
}
body .ls-btn-primary:hover,
body main.content-wrapper .btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
body .ls-hero .ls-btn-ghost { border-color: rgba(255,242,201,.48) !important; background: rgba(13,39,59,.45) !important; color: #fff5d5 !important; }
body .ls-hero-coordinates { color: #f7e5b5 !important; }
body .ls-stat-strip {
  margin-top: 12px;
  border: 1px solid var(--rf-line) !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, #fffaf0, #eee2c8) !important;
  box-shadow: 0 10px 32px rgba(57,48,34,.1) !important;
}
body .ls-stat { border-color: rgba(120,87,45,.18) !important; }
body .ls-stat span { color: #777064 !important; }
body .ls-stat strong { color: var(--rf-blue) !important; font-family: Georgia, serif; }
body .ls-stat i { color: rgba(200,154,61,.45) !important; font-family: Georgia, serif; }
body .ls-section { margin-top: 70px !important; }
body .ls-section-heading { align-items: end; border-bottom: 1px solid var(--rf-line); padding-bottom: 18px; }
body .ls-section-heading h2 { color: var(--rf-blue-deep) !important; font-size: clamp(38px, 4vw, 64px) !important; text-transform: none !important; }
body .ls-section-heading > p { color: var(--rf-muted) !important; }
body .ls-quick-grid { grid-template-columns: 1.15fr .85fr .85fr !important; gap: 14px !important; }
body .ls-quick-card {
  min-height: 280px;
  padding: 32px !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: 3px 3px 28px 3px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(239,228,203,.96)),
    var(--rf-paper) !important;
  box-shadow: 0 14px 36px rgba(54,48,38,.09) !important;
}
body .ls-quick-card:first-child {
  color: #fff !important;
  background:
    linear-gradient(120deg, rgba(17,48,73,.92), rgba(17,48,73,.52)),
    url('/brand/realmforge-bazaar-v1.webp') center / cover !important;
}
body .ls-quick-card::after { color: rgba(29,78,121,.17) !important; font-family: Georgia, serif; }
body .ls-quick-card:first-child::after { color: rgba(255,230,155,.35) !important; }
body .ls-quick-card h3 { color: var(--rf-blue-deep) !important; font-size: 30px !important; }
body .ls-quick-card p { color: var(--rf-muted) !important; }
body .ls-quick-card:first-child h3,
body .ls-quick-card:first-child p { color: #fff !important; }
body .ls-quick-icon { color: var(--rf-gold) !important; font-size: 28px; }
body .ls-data-grid { grid-template-columns: repeat(12, 1fr) !important; gap: 14px !important; }
body .ls-data-card { grid-column: span 4; border: 1px solid var(--rf-line) !important; border-radius: 3px 3px 24px 3px !important; background: #fffaf0 !important; }
body .ls-data-card:nth-child(1) { grid-column: span 6; }
body .ls-data-card:nth-child(2) { grid-column: span 6; }
body .ls-data-card h3 { color: var(--rf-blue-deep) !important; }
body .ls-data-card p, body .ls-meter { color: var(--rf-muted) !important; }
body .ls-meter-track { background: #e4dac3 !important; }
body .ls-meter-track i { background: linear-gradient(90deg, var(--rf-blue), var(--rf-gold)) !important; }
body .ls-data-footer { border-color: var(--rf-line) !important; }
body .ls-data-footer strong { color: var(--rf-blue) !important; }
body .ls-seller-list, body .ls-news-grid { gap: 10px !important; }
body .ls-seller, body .ls-news-item, body .ls-empty {
  border: 1px solid var(--rf-line) !important;
  border-radius: 3px !important;
  background: rgba(255,250,240,.92) !important;
  color: var(--rf-ink) !important;
}
body .ls-seller-rank { color: var(--rf-gold) !important; font-family: Georgia, serif; }
body .ls-seller h3, body .ls-news-item h3 { color: var(--rf-blue-deep) !important; }
body .ls-seller p, body .ls-news-item div { color: var(--rf-muted) !important; }
body .ls-seller-score { color: var(--rf-blue) !important; }

/* Route chapters use distinct artwork and large illuminated manuscript type. */
body .ls-route-visual {
  min-height: 390px;
  border: 1px solid rgba(200,154,61,.6) !important;
  border-radius: 3px 3px 34px 3px !important;
  box-shadow: var(--rf-shadow) !important;
}
body .ls-scene-archive .ls-route-visual { background-image: linear-gradient(90deg,rgba(16,35,52,.90),rgba(16,35,52,.58) 42%,rgba(16,35,52,.08) 74%),url('/brand/realmforge-archive-v1.webp') !important; }
body .ls-scene-vault .ls-route-visual,
body .ls-scene-comms .ls-route-visual { background-image: linear-gradient(90deg,rgba(16,43,65,.90),rgba(16,43,65,.53) 43%,rgba(16,43,65,.05) 76%),url('/brand/realmforge-citadel-v1.webp') !important; }
body .ls-scene-market .ls-route-visual { background-image: linear-gradient(90deg,rgba(16,43,65,.90),rgba(16,43,65,.56) 43%,rgba(16,43,65,.05) 76%),url('/brand/realmforge-bazaar-v1.webp') !important; }
body .ls-route-visual__copy h1 { color: #fff5dc !important; text-transform: none !important; font-size: clamp(52px, 6vw, 92px) !important; }
body .ls-route-visual__copy p { color: #e6edf0 !important; line-height: 1.7; }
body .ls-route-visual__index { color: rgba(255,238,185,.8) !important; }
body .ls-route-visual__index b { color: rgba(255,255,255,.18) !important; font-family: Georgia, serif; }

body .rf-chapter-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  width: min(100% - 32px, 1480px);
  margin: 14px auto 0;
  align-items: start;
}
body .rf-chapter-nav {
  position: sticky;
  top: 124px;
  min-height: 360px;
  padding: 26px 18px 22px;
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: 3px 3px 20px 3px;
  background:
    linear-gradient(180deg,rgba(255,250,240,.97),rgba(233,220,192,.96)),
    #fffaf0;
  box-shadow: 0 12px 30px rgba(54,48,38,.09);
}
body .rf-chapter-nav::after {
  content: '✦';
  position: absolute;
  right: -22px; bottom: -22px;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border: 1px solid rgba(200,154,61,.32);
  color: rgba(200,154,61,.48);
  font-size: 21px;
  transform: rotate(45deg);
}
body .rf-chapter-nav > b { display: block; margin: 8px 0 22px; color: var(--rf-blue-deep); font: 24px/1.05 Georgia,serif; }
body .rf-chapter-nav nav { display: grid; gap: 4px; }
body .rf-chapter-nav a { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; padding: 10px 8px; border-bottom: 1px solid rgba(104,73,37,.13); color: #635d53; font-size: 11px; }
body .rf-chapter-nav a i { color: #b17e2e; font: 10px Georgia,serif; }
body .rf-chapter-nav a:hover,
body .rf-chapter-nav a.is-current { background: rgba(29,78,121,.08); color: var(--rf-blue); }
body .rf-chapter-nav a.is-current span { font-weight: 800; }
body .rf-chapter-nav > small { position: absolute; left: 18px; bottom: 18px; color: #9b8c70; font-size: 7px; letter-spacing: .12em; }
body .rf-chapter-content { min-width: 0; }
body .rf-chapter-content > div:first-child { margin-top: 0 !important; }

/* Bazaar — illustrated intro plus a genuinely new two-column quest board. */
body .ls-market-page { max-width: 1500px; margin-inline: auto; }
body .ls-market-page > section.ls-search-stage {
  min-height: 500px;
  border: 1px solid rgba(200,154,61,.6) !important;
  border-radius: 3px 3px 36px 3px !important;
  background-image:
    linear-gradient(90deg, rgba(12,38,58,.94) 0%, rgba(12,38,58,.70) 39%, rgba(12,38,58,.11) 72%),
    url('/brand/realmforge-bazaar-v1.webp') !important;
  background-position: center !important;
  box-shadow: var(--rf-shadow) !important;
}
body .ls-search-stage__copy h1 { color: #fff8e7 !important; font-size: clamp(64px, 7vw, 108px) !important; text-transform: none !important; }
body .ls-search-stage__copy h1 em { color: #efd07a !important; }
body .ls-search-stage__copy > p { color: #e5edf2 !important; line-height: 1.75; }
body .ls-search-stage__signals { border-color: rgba(239,213,138,.28) !important; background: rgba(7,29,45,.5) !important; }
body .ls-search-stage__signals span { color: #dde9ef !important; }
body .ls-search-stage__signals b { color: #f2d88d !important; }
body .ls-search-stage__stamp { color: #f4df9e !important; }
body .ls-search-stage__stamp b { color: rgba(255,255,255,.18) !important; font-family: Georgia, serif; }
body .ls-market-page .ls-search-console {
  margin-top: 16px;
  overflow: visible;
  border: 1px solid var(--rf-line) !important;
  border-radius: 4px !important;
  background: #e7dcc4 !important;
  box-shadow: var(--rf-shadow) !important;
}
body .ls-market-page .ls-search-console__head {
  min-height: 62px;
  border-bottom: 1px solid rgba(200,154,61,.52) !important;
  border-radius: 3px 3px 0 0 !important;
  background: linear-gradient(180deg,#214f74,#153650) !important;
  color: #fff4d4 !important;
}
body .ls-market-page .ls-search-console__head .subtitle { color: #fff4d4 !important; font-family: Georgia, serif; font-size: 20px; }
body .ls-market-page .ls-search-console__head svg { color: #e9cb78 !important; }
body .ls-market-page #toggleFiltersBtn { border-color: rgba(239,213,138,.35) !important; border-radius: 3px !important; background: rgba(7,28,43,.34) !important; }
body .ls-market-page #toggleFiltersBtn span { color: #f5e8c4 !important; }
body .ls-market-page #filterPanel:not(.hidden) {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: stretch;
  overflow: visible !important;
  background: #efe5cf !important;
}
body .ls-market-page #filterPanel > form { min-width: 0; padding-top: 18px !important; }
body .rf-filter-guide {
  position: relative;
  padding: 34px 24px 28px;
  overflow: hidden;
  border-right: 1px solid rgba(200,154,61,.48);
  background:
    linear-gradient(rgba(18,52,78,.86),rgba(18,52,78,.94)),
    url('/brand/realmforge-archive-v1.webp') 72% center / cover;
  color: #e9eff3;
}
body .rf-filter-guide::before, body .rf-filter-guide::after {
  content: '';
  position: absolute;
  width: 72px; height: 72px;
  border: 1px solid rgba(239,213,138,.25);
  transform: rotate(45deg);
}
body .rf-filter-guide::before { top: -37px; left: -37px; }
body .rf-filter-guide::after { right: -38px; bottom: -38px; }
body .rf-filter-guide .rf-roman { display: block; margin-bottom: 22px; color: rgba(239,213,138,.32); font: 74px/.8 Georgia,serif; }
body .rf-filter-guide h2 { margin: 8px 0 12px; color: #fff4d7; font-size: 35px; line-height: 1; }
body .rf-filter-guide > p { color: #cbd8df; font-size: 12px; line-height: 1.75; }
body .rf-filter-guide ol { display: grid; gap: 19px; margin: 34px 0; padding: 0; list-style: none; }
body .rf-filter-guide li { display: grid; grid-template-columns: 29px 1fr; gap: 12px; align-items: start; }
body .rf-filter-guide li > b { position: relative; display: grid; place-items: center; width: 27px; height: 27px; color: #efd58a; font: 12px Georgia,serif; }
body .rf-filter-guide li > b::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(239,213,138,.5); transform: rotate(45deg); }
body .rf-filter-guide li span { color: #b8c9d2; font-size: 10px; line-height: 1.5; }
body .rf-filter-guide li strong { display: block; color: #fff2cf; font: 16px Georgia,serif; }
body .rf-guide-seal { position: absolute; left: 24px; right: 24px; bottom: 25px; padding-top: 16px; border-top: 1px solid rgba(239,213,138,.28); }
body .rf-guide-seal span, body .rf-guide-seal b { display: block; color: #dcc57e; font-size: 8px; letter-spacing: .17em; }
body .rf-guide-seal b { margin-top: 4px; color: #fff3d2; }
body .rf-filter-chapter {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 13px 0 4px !important;
  padding: 12px 3px 9px !important;
  border: 0 !important;
  border-top: 1px solid rgba(104,73,37,.23) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body .rf-filter-chapter:first-child { margin-top: 0 !important; border-top: 0 !important; }
body .rf-filter-chapter > span { position: relative; display: grid; place-items: center; width: 30px; height: 30px; color: var(--rf-blue); font: 13px Georgia,serif; }
body .rf-filter-chapter > span::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--rf-gold); transform: rotate(45deg); }
body .rf-filter-chapter > div { display: block; }
body .rf-filter-chapter b { display: block; color: var(--rf-blue-deep); font: 18px/1.1 Georgia,serif; }
body .rf-filter-chapter small { display: block; margin-top: 2px; color: #807766; font-size: 9px; letter-spacing: .04em; }
body .ls-market-page #filterForm label { color: #514b41 !important; font-family: Georgia, serif; font-size: 12px !important; }
body .ls-market-page .input-element,
body .ls-market-page .textarea-element,
body .ls-market-page .custom-field-element,
body .ls-market-page input,
body .ls-market-page textarea,
body .ls-market-page select {
  border: 1px solid rgba(104,73,37,.24) !important;
  border-radius: 3px !important;
  background: rgba(255,250,240,.94) !important;
  color: #24394a !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55) !important;
}
body .ls-market-page .cc-panel {
  border: 1px solid rgba(104,73,37,.35) !important;
  border-radius: 3px !important;
  background: #fff9ec !important;
  box-shadow: 0 22px 50px rgba(35,39,40,.2) !important;
}
body .ls-market-page .cc-option:hover,
body .ls-market-page .cc-star-opt:hover { background: #e9dfc8 !important; }
body .ls-market-page #filterForm .bg-background-light {
  border-color: rgba(104,73,37,.22) !important;
  border-radius: 3px !important;
  background: rgba(255,250,240,.92) !important;
}
body .ls-market-page #filterForm > div > .col-span-full:last-child {
  margin: 16px -16px -18px !important;
  padding: 15px 16px !important;
  border-top: 1px solid rgba(200,154,61,.42) !important;
  border-radius: 0 !important;
  background: rgba(210,192,153,.34) !important;
}
body .ls-market-page .btn-secondary { border-color: rgba(104,73,37,.32) !important; border-radius: 3px !important; background: #fff9ec !important; color: #263c4d !important; }
body .ls-market-page [class*="bg-[#7CA3FF]"] { border-color: #346889 !important; background: #346889 !important; }
body .ls-market-page [class*="bg-[#919BB8]"] { border-color: #75553a !important; background: #75553a !important; }
body .ls-market-page > .shadow-secondary {
  border: 1px solid var(--rf-line) !important;
  border-radius: 4px 4px 0 0 !important;
  background: #fff9ec !important;
}
body .ls-market-page > .shadow-secondary .subtitle { color: var(--rf-blue-deep) !important; font-family: Georgia,serif; font-size: 16px; }
body .ls-market-page .rounded-b-2xl > .cards-result-table-grid { background: #153650 !important; }
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid {
  border-color: rgba(104,73,37,.18) !important;
  border-radius: 2px !important;
  background: #fff9ec !important;
  color: var(--rf-ink) !important;
}
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid:nth-child(even) { background: #f1e7d1 !important; }
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid:hover { border-color: var(--rf-gold) !important; background: #fff3d5 !important; }

/* Existing inner routes become parchment chapters instead of cloned panels. */
body main.content-wrapper > div:not(.ls-shell):not(.ls-market-page) {
  position: relative;
  margin-top: 16px;
  padding: 16px;
  color: var(--rf-ink) !important;
}
body main.content-wrapper .bg-background-light,
body main.content-wrapper .dark\:bg-background-dark,
body main.content-wrapper .bg-background-card,
body main.content-wrapper .dark\:bg-background-card,
body main.content-wrapper [class*="bg-[#DFE7FA]"],
body main.content-wrapper [class*="bg-[#F8FAFF]"],
body main.content-wrapper [class*="bg-[#EFF4FF]"] { background-color: #fff9ec !important; }
body main.content-wrapper .rounded-2xl,
body main.content-wrapper .rounded-xl,
body main.content-wrapper .rounded-lg { border-radius: 3px !important; }
body main.content-wrapper .text-text-primary,
body main.content-wrapper .dark\:text-white { color: var(--rf-ink) !important; }
body main.content-wrapper .text-text-secondary,
body main.content-wrapper .text-\[\#7D8AA9\] { color: var(--rf-muted) !important; }
body main.content-wrapper .bg-blue-primary { background: var(--rf-blue) !important; color: #fff !important; }
body main.content-wrapper input,
body main.content-wrapper textarea,
body main.content-wrapper select,
body main.content-wrapper .input-element,
body main.content-wrapper .custom-field-element { border-color: var(--rf-line) !important; border-radius: 3px !important; background: #fffbf3 !important; color: var(--rf-ink) !important; }

/* Authentication becomes a bright guild-gate composition. */
body .ls-auth { background: #e8deca !important; }
body .ls-auth-visual {
  background-image:
    linear-gradient(180deg,rgba(17,48,72,.06),rgba(17,48,72,.63)),
    url('/brand/realmforge-citadel-v1.webp') !important;
  background-position: 64% center !important;
}
body .ls-auth-visual::after { background: linear-gradient(0deg,rgba(13,39,59,.55),transparent 70%) !important; }
body .ls-auth-tagline h1 { color: #fff7df !important; font-size: clamp(58px,6vw,98px) !important; text-transform: none !important; }
body .ls-auth-tagline h1 span { color: #efd07a !important; }
body .ls-auth-panel { background: radial-gradient(circle at top right,rgba(43,111,163,.14),transparent 27rem),#f7efdd !important; }
body .ls-auth-card { color: var(--rf-ink) !important; }
body .ls-auth-brand img { width: 58px; height: 58px; }
body .ls-auth-brand strong { color: var(--rf-blue-deep) !important; font-size: 19px; }
body .ls-auth-brand small { color: #88744e !important; }
body .ls-auth-card h2 { color: var(--rf-blue-deep) !important; font-size: 40px; }
body .ls-auth-lead { color: var(--rf-muted) !important; }
body .ls-auth-card .ls-field label { color: #665d4f !important; font-family: Georgia,serif; }
body .ls-auth-card .ls-field input { border-color: var(--rf-line) !important; border-radius: 3px !important; background: #fffaf0 !important; color: var(--rf-ink) !important; }
body .ls-captcha { border-radius: 3px !important; background: #d9ccb0 !important; }
body .ls-auth-note { border-color: rgba(104,73,37,.18) !important; background: rgba(210,192,153,.22) !important; color: #796f61 !important; }

body .ls-footer {
  margin-top: 76px;
  border-top: 3px solid var(--rf-gold);
  background: linear-gradient(180deg,#173b59,#102a43) !important;
  color: #dce8ef !important;
}
body .ls-footer-brand strong { color: #fff1c7 !important; font-family: Georgia,serif; }
body .ls-footer-inner { color: #bfced7 !important; }
body .ls-footer a { color: #d7e3e9 !important; }

@media (max-width: 1120px) {
  body .ls-market-page #filterPanel:not(.hidden) { grid-template-columns: 220px minmax(0,1fr); }
  body .rf-filter-guide { padding-inline: 18px; }
  body .ls-data-card, body .ls-data-card:nth-child(1), body .ls-data-card:nth-child(2) { grid-column: span 6; }
}
@media (max-width: 800px) {
  body .ls-main-nav { background: #102a43 !important; border-top: 1px solid rgba(239,213,138,.2); }
  body .ls-nav-link { padding: 15px 18px; }
  body .ls-nav-link::before { display: none; }
  body .ls-mobile-toggle span { background: #f5deb0 !important; }
  body .ls-hero { min-height: 590px !important; margin: 10px 8px 0; padding: 30px 20px !important; background-position: 63% center !important; }
  body .ls-display { font-size: clamp(54px,16vw,82px) !important; }
  body .ls-hero-copy > p { max-width: 88%; }
  body .ls-quick-grid { grid-template-columns: 1fr !important; }
  body .ls-quick-card { min-height: 220px; }
  body .ls-data-card, body .ls-data-card:nth-child(1), body .ls-data-card:nth-child(2) { grid-column: span 12; }
  body .ls-market-page > section.ls-search-stage { min-height: 500px; background-position: 61% center !important; }
  body .ls-market-page #filterPanel:not(.hidden) { grid-template-columns: 1fr; }
  body .rf-filter-guide { min-height: 265px; border-right: 0; border-bottom: 1px solid rgba(200,154,61,.48); background-position: center 38%; }
  body .rf-filter-guide ol { grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0 0; }
  body .rf-filter-guide > p { max-width: 560px; }
  body .rf-guide-seal { display: none; }
  body .rf-chapter-layout { grid-template-columns: 1fr; width: calc(100% - 16px); }
  body .rf-chapter-nav { position: relative; top: auto; min-height: 0; padding: 15px; border-radius: 3px; }
  body .rf-chapter-nav > b { margin: 5px 0 12px; font-size: 20px; }
  body .rf-chapter-nav nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
  body .rf-chapter-nav a { flex: 0 0 auto; grid-template-columns: auto 1fr; border: 1px solid rgba(104,73,37,.16); padding: 8px 11px; }
  body .rf-chapter-nav > small, body .rf-chapter-nav::after { display: none; }
}
@media (max-width: 540px) {
  body .ls-brand-copy small { display: none; }
  body .ls-brand-copy strong { font-size: 15px; }
  body .ls-hero { min-height: 620px !important; background-position: 69% center !important; }
  body .ls-hero-copy > p { max-width: 100%; }
  body .ls-hero-coordinates { display: none; }
  body .ls-stat-strip { grid-template-columns: 1fr 1fr !important; }
  body .ls-stat:nth-child(2) { border-right: 0 !important; }
  body .ls-section { margin-top: 50px !important; }
  body .ls-section-heading h2 { font-size: 38px !important; }
  body .ls-market-page > section.ls-search-stage { min-height: 540px; background-position: 66% center !important; }
  body .ls-search-stage__copy h1 { font-size: 62px !important; }
  body .rf-filter-guide { min-height: 330px; }
  body .rf-filter-guide ol { grid-template-columns: 1fr; }
  body .rf-filter-chapter small { display: none; }
  body main.content-wrapper > div:not(.ls-shell):not(.ls-market-page) { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ========================================================================== */
/* LS GRID visual system v2 — bright coastal crime-world, no inherited skin. */
/* ========================================================================== */

body .ls-header { background: rgba(35, 45, 38, .96); box-shadow: 0 10px 30px rgba(27, 36, 30, .13); }
body .ls-header, body .ls-header a, body .ls-header button { color: #f5f7f2; }
body .ls-subnav { color: #c5cec5; }
body .ls-subnav span { color: #d2d9d1; }
body .ls-icon-button,
body .ls-profile,
body .ls-balance { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.055); }
body .ls-cart-popup { color: #f6f7f4; background: rgba(42, 52, 44, .99); }

body .ls-route-visual {
  position: relative;
  min-height: 310px;
  max-width: 1480px;
  margin: 30px auto 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 30px 70px rgba(35, 47, 38, .18);
  isolation: isolate;
}
body .ls-route-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25,34,29,.9) 0%, rgba(25,34,29,.58) 42%, rgba(25,34,29,.04) 78%), linear-gradient(0deg, rgba(25,34,29,.45), transparent 68%);
}
body.ls-scene-archive .ls-route-visual { background-image: url('/brand/ls-grid-archive-v1.webp'); }
body.ls-scene-vault .ls-route-visual { background-image: url('/brand/ls-grid-vault-lounge-v1.webp'); }
body.ls-scene-comms .ls-route-visual { background-image: url('/brand/ls-grid-comms-rooftop-v1.webp'); background-position: center 47%; }
body.ls-scene-market .ls-route-visual { background-image: url('/brand/ls-grid-market-city-v1.webp'); }
.ls-route-visual__copy { max-width: 590px; }
.ls-route-visual__copy h1 { margin: 10px 0 12px; max-width: 560px; color: #fff !important; text-shadow: 0 12px 32px rgba(0,0,0,.28); font-size: clamp(37px, 5.6vw, 76px); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; font-weight: 950; font-style: italic; }
.ls-route-visual__copy p { max-width: 500px; margin: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.65; }
.ls-route-visual__index { position: absolute; top: 22px; right: 24px; display: flex; align-items: baseline; gap: 10px; color: rgba(255,255,255,.75); font: 800 10px monospace; letter-spacing: .2em; }
.ls-route-visual__index b { color: #d8ef8c; font-size: 28px; font-style: italic; letter-spacing: -.08em; }

/* Marketplace search is a purpose-built composition, not the legacy card UI. */
body .ls-market-page { padding-top: 30px; }
body .ls-market-page > section.ls-search-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden !important;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5.5vw, 74px);
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 10px !important;
  color: #fff;
  background: url('/brand/ls-grid-market-city-v1.webp') center/cover no-repeat !important;
  box-shadow: 0 30px 70px rgba(35,47,38,.18) !important;
  isolation: isolate;
}
body .ls-market-page > section.ls-search-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22,31,27,.92), rgba(22,31,27,.56) 43%, rgba(22,31,27,.08) 79%), linear-gradient(0deg, rgba(22,31,27,.48), transparent 58%);
}
body .ls-search-stage > .ls-search-stage__copy:first-child { max-width: 690px; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.ls-search-stage__copy h1 { margin: 12px 0 15px; font-size: clamp(48px, 7vw, 96px); line-height: .83; letter-spacing: -.07em; text-transform: uppercase; font-weight: 950; font-style: italic; }
.ls-search-stage__copy h1 em { color: #d8ef8c; font-style: normal; }
.ls-search-stage__copy > p { max-width: 590px; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(13px, 1.4vw, 16px); line-height: 1.65; }
.ls-search-stage__signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ls-search-stage__signals span { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(32,43,36,.56); backdrop-filter: blur(10px); color: rgba(255,255,255,.76); font: 800 9px monospace; letter-spacing: .08em; text-transform: uppercase; }
.ls-search-stage__signals b { color: #fff; }
.ls-search-stage__signals i { width: 7px; height: 7px; border-radius: 50%; background: #9fd46b; box-shadow: 0 0 10px #9fd46b; }
.ls-search-stage__stamp { position: absolute; right: 26px; top: 22px; display: flex; align-items: baseline; gap: 10px; font: 850 10px monospace; letter-spacing: .18em; color: rgba(255,255,255,.72); }
.ls-search-stage__stamp b { color: #d8ef8c; font-size: 31px; font-style: italic; letter-spacing: -.08em; }

body .ls-market-page > section.ls-search-console {
  margin-top: 14px;
  overflow: visible;
  border: 1px solid rgba(46,64,51,.22);
  border-radius: 10px !important;
  background: #e8ebe4 !important;
  box-shadow: 0 22px 52px rgba(34,46,38,.12);
}
body main.content-wrapper .ls-market-page .ls-search-console .ls-search-console__head {
  min-height: 64px;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px 9px 0 0 !important;
  background: #334339 !important;
}
body main.content-wrapper .ls-market-page .ls-search-console .ls-search-console__head .subtitle { color: #f4f6f1 !important; font-size: 12px; letter-spacing: .16em; }
body main.content-wrapper .ls-market-page .ls-search-console .ls-search-console__head svg { color: #d8ef8c !important; }
body .ls-market-page #toggleFiltersBtn { min-height: 40px; border: 1px solid rgba(255,255,255,.2) !important; background: rgba(255,255,255,.08) !important; }
body .ls-market-page #filterBtnText { color: #f4f6f1 !important; }
body .ls-market-page .ls-search-console__body,
body .ls-market-page .ls-search-console__body #filterForm { background: #e8ebe4 !important; }
body .ls-market-page #filterForm { padding: 20px 10px 0; }
body .ls-market-page #filterForm > .grid { gap: 12px !important; }
body .ls-market-page #filterForm label { color: #536158 !important; font-size: 9px !important; letter-spacing: .11em; }
body .ls-market-page .input-element,
body .ls-market-page .textarea-element,
body .ls-market-page .custom-field-element,
body .ls-market-page .cc-search,
body .ls-market-page input[type="text"],
body .ls-market-page input[type="number"],
body .ls-market-page input[type="date"],
body .ls-market-page textarea,
body .ls-market-page select {
  min-height: 46px;
  border: 1px solid rgba(51,67,56,.19) !important;
  border-radius: 5px !important;
  background: #fafbf7 !important;
  color: #202721 !important;
  box-shadow: 0 8px 22px rgba(35,47,38,.055) !important;
}
body .ls-market-page textarea { min-height: 132px; }
body .ls-market-page input::placeholder,
body .ls-market-page textarea::placeholder { color: #8a948b !important; opacity: 1; }
body .ls-market-page .input-element:focus,
body .ls-market-page textarea:focus,
body .ls-market-page input:focus { border-color: #779a39 !important; box-shadow: 0 0 0 3px rgba(119,154,57,.12) !important; outline: none; }
body .ls-market-page .cc-panel { border: 1px solid rgba(67,92,49,.26) !important; background: #f7f8f3 !important; box-shadow: 0 24px 48px rgba(35,47,38,.18) !important; }
body .ls-market-page .cc-panel,
body .ls-market-page .cc-panel * { color: #344038; }
body .ls-market-page .cc-option:hover,
body .ls-market-page .cc-star-opt:hover { background: #e3ead7 !important; }
body .ls-market-page #filterForm > div > .col-span-full { margin: 8px -10px 0; padding: 16px 18px; border-top: 1px solid rgba(46,64,51,.15); border-radius: 0 0 9px 9px !important; background: #dce2d8 !important; }
body .ls-market-page #filterForm .bg-background-light { border-color: rgba(51,67,56,.17) !important; background: #f8f9f4 !important; color: #28312b !important; }
body .ls-market-page #filterForm .text-text-primary,
body .ls-market-page #filterForm .dark\:text-white { color: #28312b !important; }
body .ls-market-page .btn-primary { background: #86a93e !important; color: #172014 !important; }
body .ls-market-page .btn-secondary { border-color: rgba(37,50,41,.25) !important; background: #f6f7f2 !important; color: #2d3830 !important; }
body .ls-market-page [class*="bg-[#7CA3FF]"] { background: #58705e !important; border-color: #58705e !important; }
body .ls-market-page [class*="bg-[#919BB8]"] { background: #718078 !important; border-color: #718078 !important; }
body .ls-market-page [class*="bg-[#A3BFFF]"] { background: #c8d3c1 !important; }
body .ls-market-page [class*="bg-[#D0DEFF]"] { background: #eef2e9 !important; }
body .ls-market-page .toggle-label.bg-\[\#7BA2FE\] { background: #73836f !important; }

body .ls-market-page > .shadow-secondary { margin-top: 16px !important; border: 1px solid rgba(46,64,51,.18); border-radius: 9px 9px 0 0 !important; background: #f6f7f2 !important; }
body .ls-market-page > .shadow-secondary .subtitle { color: #253029 !important; }
body .ls-market-page .custom-field-element { background: #f8f9f5 !important; color: #253029 !important; }
body .ls-market-page .rounded-b-2xl > .cards-result-table-grid { background: #334339 !important; color: #fff !important; }
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid { border-color: rgba(48,66,54,.16) !important; background: #f8f9f4 !important; color: #253029 !important; }
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid:nth-child(even) { background: #e9ede5 !important; }
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid:hover { border-color: rgba(105,139,49,.55) !important; background: #eef3e7 !important; }
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid .dark\:text-white,
body .ls-market-page .rounded-b-2xl > .grid > .cards-result-table-grid .text-text-secondary { color: #253029 !important; }

/* Legacy pages are normalized into warm, readable surfaces. */
body main.content-wrapper > div:not(.ls-shell):not(.ls-market-page) { color: #202721; }
body main.content-wrapper .bg-background-light,
body main.content-wrapper .dark\:bg-background-dark,
body main.content-wrapper .bg-background-card,
body main.content-wrapper .dark\:bg-background-card { background-color: #f5f5ef !important; }
body main.content-wrapper .text-text-primary,
body main.content-wrapper .dark\:text-white { color: #202721 !important; }
body main.content-wrapper .text-text-secondary,
body main.content-wrapper .text-\[\#7D8AA9\],
body main.content-wrapper .dark\:text-\[\#D9E0EF\] { color: #69736a !important; }
body main.content-wrapper .bg-blue-primary { background: #394b3f !important; color: #f7f8f4 !important; }
body main.content-wrapper .btn-primary,
body main.content-wrapper button.bg-blue-primary,
body main.content-wrapper a.bg-blue-primary { background: #86a93e !important; color: #172014 !important; }
body main.content-wrapper .btn-secondary { border-color: rgba(35,48,39,.24) !important; background: #f7f8f3 !important; color: #253029 !important; }
body main.content-wrapper [class*="dark:bg-[#5C6989]"],
body main.content-wrapper [class*="bg-[#5C6989]"] { background-color: #e2e7de !important; }
body main.content-wrapper [class*="dark:bg-[#545D74]"],
body main.content-wrapper [class*="bg-[#545D74]"] { background-color: #edf0e9 !important; }
body main.content-wrapper [class*="dark:bg-[#464F67]"],
body main.content-wrapper [class*="bg-[#464F67]"] { background-color: #dce3d9 !important; }
body main.content-wrapper [class*="dark:bg-[#66708D]"],
body main.content-wrapper [class*="bg-[#66708D]"] { background-color: #f7f8f3 !important; }
body main.content-wrapper [class*="dark:bg-[#7681A1]"],
body main.content-wrapper [class*="bg-[#7681A1]"] { background-color: #e8ece4 !important; }
body main.content-wrapper [class*="dark:bg-[#3F4C73]"],
body main.content-wrapper [class*="bg-[#3F4C73]"] { background-color: #dce6d4 !important; }
body main.content-wrapper [class*="bg-[#DFE7FA]"],
body main.content-wrapper [class*="bg-[#F8FAFF]"],
body main.content-wrapper [class*="bg-[#EFF4FF]"] { background-color: #f6f7f2 !important; }
body main.content-wrapper input,
body main.content-wrapper textarea,
body main.content-wrapper select { border-color: rgba(48,64,52,.19) !important; background-color: #fbfcf8 !important; color: #202721 !important; }
body main.content-wrapper .input-element,
body main.content-wrapper .custom-field-element { border-color: rgba(48,64,52,.19) !important; background-color: #fbfcf8 !important; color: #202721 !important; }
body main.content-wrapper [class*="bg-[#5084FF]"] { background-color: #647b68 !important; }
body main.content-wrapper [class*="dark:bg-[#3E465C]"],
body main.content-wrapper [class*="bg-[#3E465C]"] { background-color: #e3e8de !important; color: #354038 !important; }
body main.content-wrapper [style*="background:#5084FF"],
body main.content-wrapper [style*="background: #5084FF"] { background: #d6ded3 !important; }
body main.content-wrapper [style*="background:#6795FF"],
body main.content-wrapper [style*="background: #6795FF"] { background: #607665 !important; }
body main.content-wrapper [style*="background:#648BE6"],
body main.content-wrapper [style*="background: #648BE6"] { background: #4d6353 !important; }
body main.content-wrapper [style*="background:#8EADF8"],
body main.content-wrapper [style*="background: #8EADF8"] { background: #78945a !important; }
body main.content-wrapper [style*="background:#91B2FF"],
body main.content-wrapper [style*="background: #91B2FF"] { background: #819483 !important; }
body main.content-wrapper [style*="background:#4A546D"],
body main.content-wrapper [style*="background: #4A546D"] { background: #495b4e !important; }
body main.content-wrapper [style*="background:#3D4456"],
body main.content-wrapper [style*="background: #3D4456"] { background: #354139 !important; }

body .ls-footer { background: #303b33; color: #e7ece5; }
body .ls-footer-brand strong { color: #fff; }
body .ls-footer-inner { color: #bec8be; }
body .ls-auth { background: #dfe3da; }
body .ls-auth-visual { background-image: url('/brand/ls-grid-comms-rooftop-v1.webp'); background-position: center; }
body .ls-auth-visual::after { background: linear-gradient(0deg, rgba(31,42,35,.88), rgba(31,42,35,.08) 76%), linear-gradient(90deg, rgba(31,42,35,.34), rgba(31,42,35,.06)); }
body .ls-auth-panel { background: radial-gradient(circle at top right, rgba(134,169,62,.18), transparent 28rem), #f0f2ec; }
body .ls-auth-card { color: #202721; }
body .ls-auth-card .ls-field label { color: #5d685f; }
body .ls-auth-card .ls-field input { border-color: rgba(46,62,50,.2); background: #fbfcf8; color: #202721; }

@media (max-width: 800px) {
  body .ls-main-nav { background: rgba(35,45,38,.99); }
  body .ls-route-visual { min-height: 255px; margin: 16px 8px 0; padding: 24px 20px 28px; border-radius: 8px; }
  .ls-route-visual__copy h1 { font-size: clamp(35px, 12vw, 58px); }
  .ls-route-visual__copy p { max-width: 84%; font-size: 11px; }
  body .ls-market-page > section.ls-search-stage { min-height: 440px; padding: 28px 20px; background-position: 63% center !important; }
  .ls-search-stage__copy h1 { font-size: clamp(48px, 16vw, 76px); }
  .ls-search-stage__copy > p { max-width: 86%; font-size: 12px; }
  .ls-search-stage__signals span { font-size: 8px; }
  body .ls-market-page .ls-search-console__head { align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .ls-route-visual__index,
  .ls-search-stage__stamp { right: 15px; top: 14px; }
  .ls-route-visual__copy p { max-width: 100%; }
  body .ls-market-page > section.ls-search-stage { min-height: 470px; }
  .ls-search-stage__copy > p { max-width: 100%; }
  .ls-search-stage__signals { gap: 5px; margin-top: 20px; }
}

/* ========================================================================== */
/* REALMFORGE V5 — compact editorial scale and purpose-built inner chapters.   */
/* ========================================================================== */
:root {
  --rf-ink: #202821;
  --rf-muted: #667168;
  --rf-paper: #f5f4ed;
  --rf-panel: #fbfbf7;
  --rf-line: rgba(42, 58, 47, .16);
  --rf-forest: #33463a;
  --rf-forest-soft: #526b58;
  --rf-lime: #9cc45a;
  --rf-gold: #c69a46;
}

body .ls-route-visual {
  min-height: 248px;
  max-width: 1320px;
  margin-top: 22px;
  padding: clamp(26px, 4vw, 48px);
}
body .ls-route-visual__copy { max-width: 550px; }
body .ls-route-visual__copy h1 {
  max-width: 520px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 55px);
  line-height: .98;
  letter-spacing: -.045em;
  font-style: normal;
}
body .ls-route-visual__copy p { max-width: 470px; }
body .rf-chapter-layout {
  width: min(calc(100% - 32px), 1320px);
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
}
body .rf-chapter-nav { min-height: 350px; }
body .rf-chapter-content { min-width: 0; }

body .ls-market-page { max-width: 1320px; }
body .ls-market-page > section.ls-search-stage {
  min-height: 350px;
  padding: clamp(28px, 4.6vw, 58px);
}
body .ls-search-stage > .ls-search-stage__copy:first-child { max-width: 565px; }
body .ls-search-stage__copy h1 {
  max-width: 520px;
  margin: 10px 0 13px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: .92;
  letter-spacing: -.05em;
  font-style: normal;
  text-transform: none;
}
body .ls-search-stage__copy h1 em { color: #d8ef8c; font-style: normal; }

.rf-page { display: grid; gap: 16px; color: var(--rf-ink); }
.rf-page *, .rf-page *::before, .rf-page *::after { box-sizing: border-box; }
.rf-page a { text-decoration: none; }
.rf-kicker { color: #8b6a2d; font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.rf-text-link { color: var(--rf-forest); font-size: 12px; font-weight: 800; }
.rf-board-count { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid var(--rf-line); border-radius: 999px; color: var(--rf-muted); background: rgba(255,255,255,.55); font-size: 10px; font-weight: 800; }
.rf-action-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 4px; background: var(--rf-forest); color: #fff !important; font-size: 11px; font-weight: 850; letter-spacing: .04em; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.rf-action-button:hover { background: #415b49; transform: translateY(-1px); }
.rf-alert { padding: 12px 14px; border-radius: 4px; font-size: 11px; font-weight: 750; }
.rf-alert.is-error { border: 1px solid rgba(164,61,61,.28); background: #f8e9e6; color: #8e3b37; }
.rf-alert.is-success { border: 1px solid rgba(76,120,59,.28); background: #ebf3e6; color: #456e39; }

/* Archive */
.rf-archive-intro { min-height: 238px; display: grid; grid-template-columns: 190px minmax(0,1fr) minmax(290px, .82fr); overflow: hidden; border: 1px solid var(--rf-line); border-radius: 8px; background: var(--rf-panel); box-shadow: 0 20px 44px rgba(35,47,38,.08); }
.rf-archive-intro__art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; background: linear-gradient(0deg, rgba(30,41,34,.82), rgba(30,41,34,.08)), url('/brand/ls-grid-archive-v1.webp') 54% center/cover; }
.rf-archive-intro__art span { font: 900 52px/.8 Georgia,serif; letter-spacing: -.08em; }
.rf-archive-intro__art b { margin-top: 9px; font: 800 8px monospace; letter-spacing: .18em; }
.rf-archive-intro__copy { display: flex; flex-direction: column; justify-content: center; padding: 28px 34px; }
.rf-archive-intro__copy h2, .rf-guild-intro h2, .rf-support-head h2 { margin: 6px 0 8px; color: var(--rf-ink); font: 700 clamp(29px,3.4vw,44px)/1 Georgia,serif; letter-spacing: -.035em; }
.rf-archive-intro__copy p, .rf-guild-intro p, .rf-support-head p { max-width: 560px; margin: 0; color: var(--rf-muted); font-size: 12px; line-height: 1.7; }
.rf-inline-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--rf-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.rf-inline-meta b { color: var(--rf-ink); }
.rf-featured-vault { display: flex; flex-direction: column; justify-content: center; padding: 28px; border-left: 1px solid var(--rf-line); color: var(--rf-ink); background: linear-gradient(145deg, rgba(198,154,70,.13), transparent 60%); }
.rf-featured-vault strong { margin: 7px 0 4px; font: 700 22px/1.1 Georgia,serif; }
.rf-featured-vault > small { color: var(--rf-muted); font-size: 10px; }
.rf-featured-vault__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.rf-featured-vault__stats span { display: grid; gap: 3px; color: var(--rf-muted); font-size: 8px; text-transform: uppercase; }
.rf-featured-vault__stats b { color: var(--rf-ink); font-size: 13px; text-transform: none; }
.rf-featured-vault > i { color: #785922; font-size: 10px; font-style: normal; font-weight: 850; }
.rf-segment-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 6px; border: 1px solid var(--rf-line); border-radius: 7px; background: #e4e8df; }
.rf-segment-nav a { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 4px; color: var(--rf-muted); }
.rf-segment-nav a span { width: 24px; color: #8b6a2d; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.rf-segment-nav a b { font-size: 10px; }
.rf-segment-nav a:hover, .rf-segment-nav a.is-current { color: var(--rf-ink); background: var(--rf-panel); box-shadow: 0 7px 18px rgba(38,50,41,.08); }
.rf-collection-board { overflow: hidden; border: 1px solid var(--rf-line); border-radius: 8px; background: var(--rf-paper); }
.rf-board-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--rf-line); }
.rf-board-head h3 { margin: 4px 0 0; color: var(--rf-ink); font: 700 21px/1.1 Georgia,serif; }
.rf-vault-grid { display: grid; gap: 1px; background: var(--rf-line); }
.rf-vault-card { position: relative; display: grid; grid-template-columns: 50px minmax(230px,1fr) minmax(320px,.9fr) 38px; align-items: center; gap: 15px; padding: 18px 18px 18px 14px; background: var(--rf-panel); transition: background .18s ease; }
.rf-vault-card:hover { background: #f0f3eb; }
.rf-vault-card.is-hot { box-shadow: inset 3px 0 var(--rf-gold); }
.rf-vault-card__number { color: #a4957a; font: 700 13px Georgia,serif; }
.rf-vault-card__tags { min-height: 15px; display: flex; gap: 5px; }
.rf-vault-card__tags span { padding: 3px 6px; border: 1px solid rgba(139,106,45,.25); color: #7d5f29; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.rf-vault-card__main h4 { margin: 6px 0 3px; font: 700 17px/1.1 Georgia,serif; }
.rf-vault-card__main h4 a, .rf-vault-card__main p a { color: var(--rf-ink); }
.rf-vault-card__main p { margin: 0; color: var(--rf-muted); font-size: 9px; }
.rf-stock-line { height: 3px; margin: 12px 0 5px; overflow: hidden; background: #dfe4da; }
.rf-stock-line i { display: block; height: 100%; background: var(--rf-lime); }
.rf-vault-card__main > small { color: var(--rf-muted); font-size: 8px; }
.rf-vault-card__metrics { display: grid; grid-template-columns: .9fr .65fr 1.1fr; gap: 10px; }
.rf-vault-card__metrics span { min-width: 0; display: grid; gap: 4px; }
.rf-vault-card__metrics small { color: var(--rf-muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.rf-vault-card__metrics b { overflow: hidden; color: var(--rf-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rf-round-link { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rf-line); border-radius: 50%; color: var(--rf-forest); background: #fff; font-size: 15px; }

/* Guild standings and profile */
.rf-guild-intro, .rf-support-head { min-height: 142px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--rf-line); border-radius: 8px; background: linear-gradient(120deg, #f9f8f1, #e6ebdf); }
.rf-sort-nav { display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid var(--rf-line); border-radius: 6px; background: #e5e9e1; }
.rf-sort-nav > span { padding: 0 12px; color: var(--rf-muted); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.rf-sort-nav a { min-height: 35px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 3px; color: var(--rf-muted); font-size: 9px; font-weight: 800; }
.rf-sort-nav a.is-current, .rf-sort-nav a:hover { color: var(--rf-ink); background: var(--rf-panel); }
.rf-guild-list { display: grid; gap: 6px; }
.rf-guild-row { display: grid; grid-template-columns: 50px 42px minmax(170px,1fr) repeat(3,82px) minmax(145px,.8fr) 28px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rf-line); border-radius: 6px; color: var(--rf-ink); background: var(--rf-panel); transition: transform .18s ease, border .18s ease; }
.rf-guild-row:hover { border-color: rgba(92,123,70,.42); transform: translateX(2px); }
.rf-guild-row.is-podium { background: linear-gradient(90deg, rgba(198,154,70,.12), #fbfbf7 25%); }
.rf-guild-rank { display: grid; gap: 1px; }
.rf-guild-rank small, .rf-guild-stat small { color: var(--rf-muted); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.rf-guild-rank b { color: #8b6a2d; font: 700 18px Georgia,serif; }
.rf-guild-sigil { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #f4f1e7; background: var(--rf-forest); font: 700 17px Georgia,serif; }
.rf-guild-identity { min-width: 0; display: grid; gap: 3px; }
.rf-guild-identity strong { overflow: hidden; font: 700 15px Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.rf-guild-identity small { color: var(--rf-muted); font-size: 8px; }
.rf-guild-stat { display: grid; gap: 4px; }
.rf-guild-stat b { font-size: 11px; }
.rf-rate i { height: 3px; overflow: hidden; background: #dce2d7; }
.rf-rate i em { display: block; height: 100%; background: var(--rf-lime); }
.rf-row-arrow { color: #7d8a7e; font-size: 15px; }
.rf-seller-profile { display: grid; grid-template-columns: 100px minmax(200px,1fr) 130px; gap: 22px; padding: 24px; border: 1px solid var(--rf-line); border-radius: 8px; background: var(--rf-panel); }
.rf-seller-profile__sigil { width: 96px; height: 96px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: #fff; background: var(--rf-forest); box-shadow: inset 0 0 0 7px rgba(255,255,255,.08); }
.rf-seller-profile__sigil span { font: 700 34px Georgia,serif; }
.rf-seller-profile__sigil small { font-size: 7px; letter-spacing: .14em; text-transform: uppercase; }
.rf-seller-profile__copy { align-self: center; }
.rf-seller-profile__copy h2 { margin: 6px 0; font: 700 34px/1 Georgia,serif; letter-spacing: -.03em; }
.rf-seller-profile__copy p { margin: 0; color: var(--rf-muted); font-size: 10px; }
.rf-seller-profile__score { align-self: center; display: grid; text-align: right; }
.rf-seller-profile__score small, .rf-seller-profile__score span { color: var(--rf-muted); font-size: 8px; text-transform: uppercase; }
.rf-seller-profile__score b { color: #8b6a2d; font: 700 36px Georgia,serif; }
.rf-seller-profile__metrics { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--rf-line); padding-top: 17px; }
.rf-seller-profile__metrics span { display: grid; gap: 4px; border-right: 1px solid var(--rf-line); text-align: center; }
.rf-seller-profile__metrics span:last-child { border-right: 0; }
.rf-seller-profile__metrics small { color: var(--rf-muted); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.rf-seller-profile__metrics b { font-size: 15px; }
.rf-review-ledger { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(320px,1.15fr) minmax(180px,.65fr); gap: 20px; align-items: center; padding: 20px 22px; border: 1px solid var(--rf-line); border-radius: 7px; background: linear-gradient(120deg,#f8f7f0,#e8ece4); }
.rf-review-ledger > header { display: grid; gap: 11px; }
.rf-review-ledger > header h3 { margin: 5px 0 0; font: 700 22px/1 Georgia,serif; }
.rf-review-ledger > header p { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.rf-review-ledger > header p b { color: #8b6a2d; font: 700 24px Georgia,serif; }
.rf-review-ledger > header p span { color: var(--rf-muted); font-size: 8px; }
.rf-preview-note { display: inline-flex; width: fit-content; margin-top: 7px; padding: 5px 7px; border: 1px solid rgba(139,106,45,.24); border-radius: 3px; color: #806b45; background: rgba(198,154,70,.08); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rf-review-ledger__scores { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 18px; }
.rf-review-ledger__scores > span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; }
.rf-review-ledger__scores small, .rf-review-ledger__distribution small { color: var(--rf-muted); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.rf-review-ledger__scores b { font-size: 10px; }
.rf-review-ledger__scores i, .rf-review-ledger__distribution i { grid-column: 1/-1; height: 4px; overflow: hidden; border-radius: 4px; background: #d7ddd2; }
.rf-review-ledger__scores em, .rf-review-ledger__distribution em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8ea860,var(--rf-lime)); }
.rf-review-ledger__distribution { display: grid; gap: 6px; }
.rf-review-ledger__distribution > span { display: grid; grid-template-columns: 38px 1fr 27px; align-items: center; gap: 7px; }
.rf-review-ledger__distribution i { grid-column: auto; height: 3px; }
.rf-review-ledger__distribution b { color: var(--rf-muted); font-size: 7px; text-align: right; }
.rf-rune-strip { display: grid; gap: 9px; padding: 14px 16px; border: 1px solid var(--rf-line); border-radius: 6px; background: #e6eae1; }
.rf-rune-strip > div { display: flex; gap: 5px; overflow-x: auto; }
.rf-rune-strip a { min-width: 105px; display: grid; gap: 2px; padding: 9px 10px; border-radius: 3px; color: var(--rf-ink); background: var(--rf-panel); }
.rf-rune-strip b { font: 700 12px monospace; }
.rf-rune-strip small { color: var(--rf-muted); font-size: 7px; }
.rf-two-column { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; align-items: start; }
.rf-column-main, .rf-review-compose, .rf-review-wall { overflow: hidden; border: 1px solid var(--rf-line); border-radius: 7px; background: var(--rf-panel); }
.rf-mini-vaults { display: grid; gap: 1px; background: var(--rf-line); }
.rf-mini-vaults > a { display: grid; grid-template-columns: minmax(0,1fr) 70px 24px; align-items: center; gap: 12px; padding: 13px 16px; color: var(--rf-ink); background: var(--rf-panel); }
.rf-mini-vaults > a:hover { background: #eff3ea; }
.rf-mini-vaults span { display: grid; gap: 3px; }
.rf-mini-vaults strong { font: 700 13px Georgia,serif; }
.rf-mini-vaults small { color: var(--rf-muted); font-size: 8px; }
.rf-mini-vaults i { font-style: normal; }
.rf-review-compose { padding: 20px; }
.rf-review-compose h3 { margin: 5px 0; font: 700 22px Georgia,serif; }
.rf-review-compose > p { margin: 0 0 14px; color: var(--rf-muted); font-size: 9px; line-height: 1.5; }
.rf-review-compose form { display: grid; gap: 10px; }
.rf-review-compose label { display: grid; gap: 5px; color: var(--rf-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.rf-review-compose select, .rf-review-compose textarea { width: 100%; min-height: 39px; padding: 10px; border: 1px solid var(--rf-line); border-radius: 3px; background: #fff; color: var(--rf-ink); font: 10px sans-serif; text-transform: none; }
.rf-review-wall > div { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--rf-line); }
.rf-review-wall article { padding: 16px; background: var(--rf-panel); }
.rf-review-wall article header { display: flex; justify-content: space-between; gap: 12px; }
.rf-review-wall article header span { display: grid; }
.rf-review-wall article header small, .rf-review-wall article > small { color: var(--rf-muted); font-size: 8px; }
.rf-review-wall article header strong { color: #8b6a2d; font: 700 12px Georgia,serif; }
.rf-review-card__scores { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px 12px; margin-top: 12px; padding: 9px 0; border-top: 1px solid var(--rf-line); border-bottom: 1px solid var(--rf-line); }
.rf-review-card__scores span { display: flex; justify-content: space-between; gap: 8px; color: var(--rf-muted); font-size: 7px; text-transform: uppercase; }
.rf-review-card__scores b { color: var(--rf-ink); font-size: 8px; }
.rf-review-wall article p { margin: 12px 0; color: #485248; font-size: 10px; line-height: 1.6; }

/* Support */
.rf-support-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.rf-support-nav a { min-height: 58px; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--rf-line); border-radius: 5px; color: var(--rf-muted); background: #e6e9e1; }
.rf-support-nav a.is-current, .rf-support-nav a:hover { color: var(--rf-ink); background: var(--rf-panel); box-shadow: 0 8px 20px rgba(35,47,38,.08); }
.rf-support-nav i { color: #8b6a2d; font: 700 10px Georgia,serif; }
.rf-support-nav span { display: grid; gap: 2px; }
.rf-support-nav b { font-size: 10px; }
.rf-support-nav small { font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.rf-ticket-list { display: grid; gap: 6px; }
.rf-ticket-row { display: grid; grid-template-columns: 66px minmax(220px,1fr) 100px 110px 88px 22px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rf-line); border-radius: 5px; color: var(--rf-ink); background: var(--rf-panel); }
.rf-ticket-row:hover { background: #eff3ea; }
.rf-ticket-mark { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 6px; }
.rf-ticket-mark i { color: #a6926e; font: 700 8px Georgia,serif; }
.rf-ticket-mark b { font-size: 10px; }
.rf-ticket-copy { min-width: 0; display: grid; gap: 3px; }
.rf-ticket-copy strong { overflow: hidden; font: 700 13px Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.rf-ticket-copy small { overflow: hidden; color: var(--rf-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.rf-ticket-time { display: grid; gap: 3px; }
.rf-ticket-time small { color: var(--rf-muted); font-size: 7px; text-transform: uppercase; }
.rf-ticket-time b { font-size: 8px; }
.rf-status { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #e6e8e2; color: #5e675f; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.rf-status.is-open { background: #e6f0d9; color: #4f762d; }
.rf-status.is-in_progress { background: #f4ead5; color: #8a6428; }
.rf-status.is-resolved, .rf-status.is-closed { background: #e3e7e1; color: #68716a; }
.rf-form-stage { display: grid; grid-template-columns: minmax(230px,.72fr) minmax(0,1.28fr); overflow: hidden; border: 1px solid var(--rf-line); border-radius: 8px; background: var(--rf-panel); }
.rf-form-stage__aside { min-height: 560px; padding: 32px; color: #edf1eb; background: linear-gradient(0deg, rgba(34,47,39,.94), rgba(34,47,39,.62)), url('/brand/ls-grid-comms-rooftop-v1.webp') center/cover; }
.rf-form-stage__aside h2, .rf-form-stage__aside h3 { max-width: 380px; margin: 10px 0 14px; color: #fff; font: 700 clamp(28px,3.2vw,43px)/1.03 Georgia,serif; letter-spacing: -.03em; }
.rf-form-stage__aside h3 { font-size: 28px; }
.rf-form-stage__aside p { max-width: 420px; margin: 0; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.7; }
.rf-form-stage__aside ol, .rf-form-stage__aside ul { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.rf-form-stage__aside li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.84); font-size: 9px; }
.rf-form-stage__aside li b { color: #d8ef8c; font: 700 9px Georgia,serif; }
.rf-form-card { display: grid; gap: 15px; align-content: center; padding: 30px; background: var(--rf-panel); }
.rf-form-card > header h3 { margin: 5px 0 0; font: 700 25px Georgia,serif; }
.rf-form-card label { display: grid; gap: 6px; }
.rf-form-card label > span { color: var(--rf-muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.rf-form-card label > span small { color: #9aa299; font-size: 7px; }
.rf-form-card input:not([type=checkbox]), .rf-form-card select, .rf-form-card textarea, .rf-reply-box textarea { width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid var(--rf-line) !important; border-radius: 3px !important; outline: none; color: var(--rf-ink) !important; background: #fff !important; font: 11px sans-serif; }
.rf-form-card textarea, .rf-reply-box textarea { resize: vertical; line-height: 1.55; }
.rf-form-card input:focus, .rf-form-card select:focus, .rf-form-card textarea:focus, .rf-reply-box textarea:focus { border-color: #829d58 !important; box-shadow: 0 0 0 3px rgba(130,157,88,.12); }
.rf-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.rf-form-span { grid-column: 1/-1; }
.rf-captcha-row { display: grid; grid-template-columns: 1fr 155px; align-items: end; gap: 10px; }
.rf-captcha { height: 45px; overflow: hidden; padding: 0; border: 1px solid var(--rf-line); border-radius: 3px; background: #f1f3ed; cursor: pointer; }
.rf-captcha img { width: 100%; height: 100%; object-fit: cover; }
.rf-consent { grid-template-columns: 18px 1fr; align-items: center; }
.rf-consent input { width: 16px; height: 16px; }
.rf-consent span { text-transform: none !important; letter-spacing: 0 !important; }
.rf-ticket-detail-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 20px; padding: 22px; border: 1px solid var(--rf-line); border-radius: 7px; background: var(--rf-panel); }
.rf-ticket-detail-head h2 { margin: 6px 0; font: 700 28px Georgia,serif; }
.rf-ticket-detail-head p { max-width: 720px; margin: 0; color: var(--rf-muted); font-size: 10px; line-height: 1.6; }
.rf-ticket-detail-head > small { color: var(--rf-muted); font-size: 8px; }
.rf-thread { overflow: hidden; border: 1px solid var(--rf-line); border-radius: 7px; background: var(--rf-panel); }
.rf-thread > header { padding: 16px 20px; border-bottom: 1px solid var(--rf-line); }
.rf-thread > header h3 { margin: 4px 0 0; font: 700 19px Georgia,serif; }
.rf-message { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rf-line); }
.rf-message__avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--rf-forest-soft); font: 700 13px Georgia,serif; }
.rf-message.is-council .rf-message__avatar { color: #3c321f; background: #d8c48f; }
.rf-message header { display: flex; justify-content: space-between; gap: 12px; }
.rf-message header b { font-size: 10px; }
.rf-message header small { color: var(--rf-muted); font-size: 8px; }
.rf-message p { margin: 8px 0 0; color: #4f5950; font-size: 10px; line-height: 1.65; }
.rf-reply-box { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding: 18px; border: 1px solid var(--rf-line); border-radius: 7px; background: var(--rf-panel); }
.rf-reply-box label { display: grid; gap: 6px; }
.rf-reply-box label > span { color: var(--rf-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.rf-faq-layout { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; align-items: start; }
.rf-faq-group { overflow: hidden; border: 1px solid var(--rf-line); border-radius: 7px; background: var(--rf-panel); }
.rf-faq-group > header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rf-line); }
.rf-faq-group > header > i { color: #8b6a2d; font: 700 18px Georgia,serif; }
.rf-faq-group h3 { margin: 3px 0 0; font: 700 19px Georgia,serif; }
.rf-faq-item { border-bottom: 1px solid var(--rf-line); }
.rf-faq-item:last-child { border-bottom: 0; }
.rf-faq-item summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; cursor: pointer; list-style: none; }
.rf-faq-item summary::-webkit-details-marker { display: none; }
.rf-faq-item summary span { font-size: 10px; font-weight: 750; }
.rf-faq-item summary i { color: #8b6a2d; font: 400 18px sans-serif; }
.rf-faq-item[open] summary i { transform: rotate(45deg); }
.rf-faq-item > div { padding: 0 16px 15px; color: var(--rf-muted); font-size: 10px; line-height: 1.65; }
.rf-rulebook { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 14px; align-items: start; }
.rf-rulebook > aside { position: sticky; top: 92px; padding: 20px; border: 1px solid var(--rf-line); border-radius: 7px; background: #e5e9df; }
.rf-rulebook > aside h3 { margin: 6px 0; font: 700 22px Georgia,serif; }
.rf-rulebook > aside p { margin: 0; color: var(--rf-muted); font-size: 9px; line-height: 1.6; }
.rf-rulebook > div { display: grid; gap: 7px; }
.rf-rule { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--rf-line); border-radius: 6px; background: var(--rf-panel); }
.rf-rule > i { color: #a08045; font: 700 14px Georgia,serif; }
.rf-rule h3 { margin: 0 0 8px; font: 700 16px Georgia,serif; }
.rf-rule div div { color: var(--rf-muted); font-size: 10px; line-height: 1.7; }

/* Alliance */
.rf-alliance-intro { min-height: 270px; display: grid; grid-template-columns: minmax(0,1fr) 260px; overflow: hidden; border: 1px solid var(--rf-line); border-radius: 8px; color: #fff; background: linear-gradient(90deg, rgba(31,44,36,.97), rgba(31,44,36,.72)), url('/brand/ls-grid-market-city-v1.webp') center/cover; }
.rf-alliance-intro__copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.rf-alliance-intro__copy h2 { max-width: 640px; margin: 9px 0 12px; color: #fff; font: 700 clamp(31px,4vw,50px)/1 Georgia,serif; letter-spacing: -.04em; }
.rf-alliance-intro__copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.7; }
.rf-alliance-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rf-alliance-benefits span { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.78); font-size: 8px; text-transform: uppercase; }
.rf-alliance-benefits b { color: #d8ef8c; font: 700 8px Georgia,serif; }
.rf-alliance-seal { display: grid; place-content: center; text-align: center; border-left: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.045); }
.rf-alliance-seal span { font: 700 74px/.8 Georgia,serif; letter-spacing: -.08em; }
.rf-alliance-seal b { margin-top: 16px; color: #d8ef8c; font: 800 9px monospace; letter-spacing: .2em; }
.rf-alliance-seal small { margin-top: 7px; color: rgba(255,255,255,.48); font-size: 6px; letter-spacing: .1em; }

.rf-empty-state { min-height: 190px; display: grid; place-content: center; gap: 5px; padding: 30px; text-align: center; background: var(--rf-panel); }
.rf-empty-state > span { color: #a98b55; font-size: 26px; }
.rf-empty-state h3 { margin: 0; font: 700 19px Georgia,serif; }
.rf-empty-state p { max-width: 390px; margin: 0; color: var(--rf-muted); font-size: 9px; line-height: 1.5; }
.rf-pagination { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px; border: 1px solid var(--rf-line); border-radius: 6px; background: #e6e9e1; color: var(--rf-muted); font-size: 9px; }
.rf-pagination a { color: var(--rf-forest); font-weight: 850; }
.rf-pagination b { color: var(--rf-ink); }

@media (max-width: 1050px) {
  .rf-archive-intro { grid-template-columns: 150px minmax(0,1fr); }
  .rf-featured-vault { grid-column: 1/-1; border-top: 1px solid var(--rf-line); border-left: 0; }
  .rf-featured-vault__stats { max-width: 420px; }
  .rf-vault-card { grid-template-columns: 38px minmax(210px,1fr) minmax(250px,.8fr) 32px; }
  .rf-guild-row { grid-template-columns: 42px 38px minmax(160px,1fr) repeat(2,72px) minmax(130px,.8fr) 24px; }
  .rf-guild-row .rf-guild-stat:nth-of-type(6) { display: none; }
}

@media (max-width: 800px) {
  body .rf-chapter-layout { width: calc(100% - 16px); grid-template-columns: 1fr; }
  body .ls-route-visual { min-height: 215px; padding: 22px 20px; }
  body .ls-route-visual__copy h1 { font-size: clamp(31px, 10vw, 46px); }
  body .ls-market-page > section.ls-search-stage { min-height: 350px; padding: 28px 20px; }
  body .ls-search-stage__copy h1 { font-size: clamp(38px, 12vw, 55px); }
  .rf-archive-intro { grid-template-columns: 120px 1fr; }
  .rf-archive-intro__copy { padding: 24px; }
  .rf-archive-intro__art { padding: 14px; }
  .rf-archive-intro__art span { font-size: 40px; }
  .rf-segment-nav { grid-template-columns: repeat(2,1fr); }
  .rf-vault-card { grid-template-columns: 32px minmax(0,1fr) 32px; }
  .rf-vault-card__metrics { grid-column: 2/3; }
  .rf-guild-row { grid-template-columns: 34px 36px minmax(0,1fr) 90px 22px; }
  .rf-guild-row .rf-guild-stat { display: none; }
  .rf-guild-row .rf-rate { display: grid; }
  .rf-review-ledger { grid-template-columns: minmax(200px,.7fr) 1fr; }
  .rf-review-ledger__distribution { grid-column: 1/-1; grid-template-columns: repeat(5,1fr); }
  .rf-review-ledger__distribution > span { grid-template-columns: 34px 1fr 25px; }
  .rf-two-column, .rf-form-stage, .rf-rulebook { grid-template-columns: 1fr; }
  .rf-review-compose { order: -1; }
  .rf-rulebook > aside { position: relative; top: auto; }
  .rf-support-nav { grid-template-columns: repeat(2,1fr); }
  .rf-ticket-row { grid-template-columns: 58px minmax(0,1fr) 80px 22px; }
  .rf-ticket-time { display: none; }
  .rf-form-stage__aside { min-height: 330px; }
  .rf-faq-layout { grid-template-columns: 1fr; }
  .rf-alliance-intro { grid-template-columns: 1fr; }
  .rf-alliance-seal { min-height: 150px; border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .rf-alliance-seal span { font-size: 56px; }
}

@media (max-width: 520px) {
  .rf-page { gap: 10px; }
  .rf-archive-intro { grid-template-columns: 1fr; }
  .rf-archive-intro__art { min-height: 150px; }
  .rf-featured-vault { padding: 22px; }
  .rf-segment-nav { display: flex; overflow-x: auto; }
  .rf-segment-nav a { min-width: 140px; }
  .rf-board-head { min-height: 62px; padding: 13px 14px; }
  .rf-vault-card { grid-template-columns: 28px minmax(0,1fr) 28px; gap: 8px; padding: 14px 10px; }
  .rf-vault-card__metrics { grid-template-columns: repeat(2,1fr); }
  .rf-vault-card__metrics span:last-child { grid-column: 1/-1; }
  .rf-guild-intro, .rf-support-head { min-height: 170px; display: grid; align-content: end; padding: 20px; }
  .rf-sort-nav { overflow-x: auto; }
  .rf-sort-nav a { white-space: nowrap; }
  .rf-guild-row { grid-template-columns: 28px 34px minmax(0,1fr) 20px; gap: 8px; padding: 12px 10px; }
  .rf-guild-row .rf-rate { display: none; }
  .rf-seller-profile { grid-template-columns: 72px minmax(0,1fr); padding: 17px; }
  .rf-seller-profile__sigil { width: 70px; height: 70px; }
  .rf-seller-profile__score { grid-column: 1/-1; text-align: left; }
  .rf-seller-profile__metrics { grid-template-columns: repeat(2,1fr); gap: 12px 0; }
  .rf-seller-profile__metrics span:nth-child(2) { border-right: 0; }
  .rf-review-ledger { grid-template-columns: 1fr; padding: 17px; }
  .rf-review-ledger__distribution { grid-column: auto; grid-template-columns: 1fr; }
  .rf-review-wall > div { grid-template-columns: 1fr; }
  .rf-support-nav { display: flex; overflow-x: auto; }
  .rf-support-nav a { min-width: 145px; }
  .rf-ticket-row { grid-template-columns: 50px minmax(0,1fr) 20px; }
  .rf-ticket-row .rf-status { grid-column: 2/3; justify-self: start; }
  .rf-form-stage__aside { min-height: 290px; padding: 24px; }
  .rf-form-card { padding: 20px; }
  .rf-form-grid, .rf-captcha-row { grid-template-columns: 1fr; }
  .rf-form-span { grid-column: auto; }
  .rf-captcha { width: 155px; }
  .rf-reply-box { grid-template-columns: 1fr; }
  .rf-ticket-detail-head { grid-template-columns: 1fr; }
  .rf-alliance-intro__copy { padding: 24px; }
}

/* ========================================================================== */
/* REALMFORGE V7 — treasury, account chamber and compact registry             */
/* ========================================================================== */

/* The regenerated art is already composed for a shallow banner. */
body .ls-hero {
  min-height: 360px !important;
  background-image:
    linear-gradient(90deg, rgba(9,30,48,.94) 0%, rgba(9,30,48,.73) 34%, rgba(9,30,48,.10) 65%, rgba(9,30,48,.02) 100%),
    url('/brand/realmforge-hero-v2.webp') !important;
  background-position: center center !important;
  background-size: cover !important;
}
body .ls-hero-grid {
  min-height: 360px !important;
  padding: 31px 42px !important;
}
body .ls-display { font-size: clamp(45px, 4.1vw, 68px) !important; }
body .ls-hero-copy > p { max-width: 470px; }

/* Keep the 18-column relic registry inside the content shell. */
@media (min-width: 1440px) {
  body .ls-market-page .cards-result-table-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns:
      minmax(128px,1.25fr) 70px 43px 45px 88px 62px 68px minmax(88px,.85fr)
      57px 67px 66px 74px 58px 62px 43px 61px 42px 38px !important;
  }
  body .ls-market-page .cards-result-table-grid > * { min-width: 0; }
  body .rf-relic-row .table-item-with-border { padding-inline: 5px !important; }
  body .rf-relic-row .table-item-with-border > span,
  body .rf-relic-row .table-item-with-border > a { overflow-wrap: anywhere; }
  body .rf-vendor-medallion { min-width: 62px; padding: 6px 4px !important; }
  body .rf-extra-wrap .extra-badge { min-height: 26px; padding-inline: 7px !important; }
  body .rf-cart-cell button { width: 34px; height: 34px; }
  body .rf-select-control { width: 28px !important; height: 28px !important; }
}

/* Treasury */
.rf-treasury-page { display: grid; gap: 16px; padding: 18px 8px 42px; }
.rf-treasury-hero {
  position: relative;
  min-height: 238px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 34px 38px;
  border: 1px solid rgba(211,174,87,.62);
  border-radius: 8px 8px 28px 8px;
  color: #fff8e6;
  background:
    linear-gradient(90deg, rgba(14,42,57,.97), rgba(24,61,68,.82) 55%, rgba(33,65,56,.58)),
    url('/brand/realmforge-citadel-v1.webp') 62% 48%/cover;
  box-shadow: 0 20px 48px rgba(30,47,40,.16);
}
.rf-treasury-hero::after {
  content: '';
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(244,219,153,.18);
  border-radius: 3px 3px 20px 3px;
}
.rf-kicker { color: #c9973e; font: 800 8px/1.25 monospace; letter-spacing: .18em; text-transform: uppercase; }
.rf-treasury-hero .rf-kicker { color: #f4d277; }
.rf-treasury-hero__copy { position: relative; z-index: 1; max-width: 620px; }
.rf-treasury-hero__copy h1 { margin: 8px 0 11px; color: #fff8e6; font: 700 clamp(42px,4.4vw,63px)/.88 Georgia,serif; letter-spacing: -.05em; }
.rf-treasury-hero__copy h1 em { color: #e7c365; font-weight: 500; }
.rf-treasury-hero__copy p { max-width: 510px; margin: 0; color: #d8e4dc; font-size: 12px; line-height: 1.65; }
.rf-treasury-rules { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.rf-treasury-rules span { min-height: 29px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid rgba(242,216,146,.26); color: #dfe9e2; background: rgba(10,29,29,.32); font: 700 8px monospace; letter-spacing: .05em; text-transform: uppercase; }
.rf-treasury-rules b { color: #f3d37c; }
.rf-treasury-balance { position: relative; z-index: 1; min-height: 155px; display: flex; flex-direction: column; justify-content: center; padding: 23px 24px 20px 82px; border: 1px solid rgba(237,208,130,.53); background: linear-gradient(145deg, rgba(252,246,225,.98), rgba(221,208,170,.95)); color: #263a31; box-shadow: 0 17px 38px rgba(7,27,24,.22), inset 0 1px #fff; }
.rf-treasury-balance__seal { position: absolute; left: 22px; top: 24px; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #ad8232; color: #f9e9b8; background: #2b4638; font: 700 13px Georgia,serif; transform: rotate(45deg); }
.rf-treasury-balance__seal::first-line { transform: rotate(-45deg); }
.rf-treasury-balance small { color: #69776d; font: 800 8px monospace; letter-spacing: .12em; text-transform: uppercase; }
.rf-treasury-balance strong { margin: 7px 0 3px; color: #243b30; font: 700 clamp(28px,3vw,42px)/1 Georgia,serif; }
.rf-treasury-balance strong sup { margin-right: 3px; color: #a77d2e; font-size: .5em; }
.rf-treasury-balance > span:last-child { color: #77837a; font-size: 9px; }
.rf-treasury-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(290px,.72fr); gap: 16px; align-items: stretch; }
.rf-treasury-panel, .rf-ledger-section { padding: 24px; border: 1px solid rgba(74,91,78,.2); border-radius: 8px; background: rgba(251,249,240,.94); box-shadow: 0 15px 34px rgba(47,56,49,.07); }
.rf-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.rf-panel-heading h2 { margin-top: 4px; color: #263a31; font: 700 clamp(24px,2.5vw,34px)/1 Georgia,serif; letter-spacing: -.03em; }
.rf-panel-heading__note { color: #89938b; font: 700 8px monospace; letter-spacing: .08em; text-transform: uppercase; }
.rf-currency-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rf-currency-card { position: relative; min-height: 126px; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: 1fr auto; gap: 9px 13px; justify-content: initial; text-align: left; padding: 17px; overflow: hidden; border: 1px solid rgba(76,93,80,.18); border-radius: 6px; color: #26382f; background: linear-gradient(145deg,#fffef9,#eef1e8); box-shadow: inset 0 1px #fff; }
.rf-currency-card::after { content: ''; position: absolute; right: -28px; top: -40px; width: 100px; height: 100px; border: 1px solid rgba(190,151,69,.14); transform: rotate(45deg); }
.rf-currency-card:hover { border-color: #b98c38; background: #fff9e8; box-shadow: 0 10px 23px rgba(69,58,35,.1); transform: translateY(-2px); }
.rf-currency-card__icon { width: 48px; height: 48px; display: grid; place-items: center; padding: 3px; border: 1px solid rgba(171,130,48,.28); border-radius: 50%; background: #fff; }
.rf-currency-card__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-currency-card__copy strong { color: #26382f; font: 700 17px Georgia,serif; }
.rf-currency-card__copy small { color: #7c887e; font: 700 8px monospace; letter-spacing: .07em; text-transform: uppercase; }
.rf-currency-card__copy .crypto-rate { margin-top: 5px; color: #567145; font-size: 9px; }
.rf-currency-card__action { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(72,90,76,.12); color: #52665a; font: 800 8px monospace; letter-spacing: .1em; text-transform: uppercase; }
.rf-currency-card__action b { color: #b58735; font-size: 15px; }
.rf-treasury-guide { padding: 27px; border: 1px solid rgba(216,176,84,.5); border-radius: 8px 8px 28px 8px; color: #e8efe8; background: linear-gradient(155deg,#30493b,#1f352c); box-shadow: 0 16px 36px rgba(36,51,42,.14); }
.rf-treasury-guide .rf-kicker { color: #e6c36e; }
.rf-treasury-guide h2 { margin: 8px 0 12px; color: #fff4d4; font: 700 34px/.95 Georgia,serif; letter-spacing: -.04em; }
.rf-treasury-guide > p { color: #bdc9c0; font-size: 11px; line-height: 1.65; }
.rf-treasury-guide ol { display: grid; gap: 8px; margin: 24px 0; }
.rf-treasury-guide li { min-height: 48px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(241,212,134,.15); background: rgba(255,255,255,.035); }
.rf-treasury-guide li b { color: #e6c36e; font: 700 9px monospace; }
.rf-treasury-guide li span { color: #dbe4dc; font-size: 10px; }
.rf-treasury-guide__note { display: flex; gap: 9px; padding-top: 15px; border-top: 1px solid rgba(238,209,133,.18); color: #b7c3ba; font-size: 9px; line-height: 1.5; }
.rf-treasury-guide__note span { color: #e5c36d; }
.rf-ledger-section { min-width: 0; }
.rf-ledger-count { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d2ad59; border-radius: 50%; color: #f2d583; background: #2b4538; font: 800 10px monospace; }
.rf-pending-list { display: grid; gap: 8px; }
.rf-pending-card { display: grid; grid-template-columns: 12px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgba(195,147,58,.38); background: #fff9e9; }
.rf-pending-card__pulse { width: 8px; height: 8px; border-radius: 50%; background: #c99436; box-shadow: 0 0 0 5px rgba(201,148,54,.13); }
.rf-pending-card__main { min-width: 0; display: grid; gap: 4px; }
.rf-pending-card__main strong { color: #33483b; font: 700 12px Georgia,serif; }
.rf-pending-card__main span { overflow: hidden; color: #748078; font: 8px monospace; text-overflow: ellipsis; white-space: nowrap; }
.rf-pending-card__amount { display: grid; gap: 3px; text-align: right; }
.rf-pending-card__amount strong { color: #314538; font: 700 15px Georgia,serif; }
.rf-pending-card__amount small { color: #88928b; font: 700 7px monospace; }
.rf-pending-card button { min-height: 30px; padding: 0 11px; border: 1px solid #a77d31; color: #fff2c9; background: #344c3e; font: 800 8px monospace; text-transform: uppercase; }
.rf-ledger-table { overflow: hidden; border: 1px solid rgba(69,86,73,.18); border-radius: 6px; }
.rf-ledger-table__head, .rf-ledger-row { display: grid; grid-template-columns: 90px 70px 90px 55px minmax(120px,.8fr) minmax(140px,1fr); gap: 10px; align-items: center; }
.rf-ledger-table__head { min-height: 42px; padding: 0 14px; color: #f7e8bd; background: #2d4438; font: 800 7px monospace; letter-spacing: .1em; text-transform: uppercase; }
.rf-ledger-row { min-height: 58px; padding: 10px 14px; border-top: 1px solid rgba(69,86,73,.12); color: #66736a; background: #fffef9; font-size: 10px; }
.rf-ledger-row:nth-child(odd) { background: #f2f3eb; }
.rf-ledger-row strong { color: #314438; font: 700 12px Georgia,serif; }
.rf-ledger-row__mono { overflow: hidden; font: 8px monospace; text-overflow: ellipsis; white-space: nowrap; }
.rf-ledger-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed rgba(94,111,97,.28); color: #7c887e; background: #f6f5ed; text-align: center; }
.rf-ledger-empty span { color: #bd913e; font-size: 23px; }
.rf-ledger-empty strong { margin: 7px 0 3px; color: #34483b; font: 700 17px Georgia,serif; }
.rf-ledger-empty p { font-size: 9px; }

/* Premium invoice modals and compact logo QR. */
.rf-payment-backdrop { backdrop-filter: blur(8px); }
.rf-payment-modal { border: 1px solid rgba(207,168,78,.65); border-radius: 8px 8px 24px 8px !important; background: #fbf8ed !important; box-shadow: 0 30px 80px rgba(18,31,26,.36) !important; }
.rf-payment-modal h3 { color: #293d32 !important; font-family: Georgia,serif; letter-spacing: -.02em; }
.rf-payment-modal .bg-\[\#EEF2FF\], .rf-payment-modal .dark\:bg-\[\#3D4863\] { background: #eef0e8 !important; }
.rf-payment-modal .text-\[\#4E5974\], .rf-payment-modal .text-\[\#7D8AA9\], .rf-payment-modal .dark\:text-\[\#B0BFDA\] { color: #68776d !important; }
.rf-payment-modal input { color: #2e4336 !important; }
.rf-qr-row { align-items: center; }
.rf-qr-frame { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-color: #c9a24c !important; background: #fffdf7 !important; box-shadow: inset 0 0 0 4px #f3ead1, 0 8px 20px rgba(56,50,35,.1); }
.rf-qr-frame > #modalAddr_qr { width: 112px !important; height: 112px !important; object-fit: contain; }
.rf-qr-coin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; display: grid; place-items: center; padding: 4px; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(23,33,29,.22); transform: translate(-50%,-50%); }
.rf-qr-coin img { width: 18px !important; height: 18px !important; object-fit: contain; }

/* Account chamber */
.rf-account-page { display: grid; gap: 14px; padding: 18px 8px 42px; }
.rf-account-hero { min-height: 215px; display: grid; grid-template-columns: minmax(0,1fr) 285px; align-items: center; gap: 24px; padding: 30px 34px; overflow: hidden; border: 1px solid rgba(210,172,82,.58); border-radius: 8px 8px 28px 8px; color: #fff; background: linear-gradient(90deg,rgba(24,49,39,.96),rgba(27,57,47,.79) 60%,rgba(24,52,43,.42)),url('/brand/realmforge-citadel-v1.webp') 58% 46%/cover; box-shadow: 0 18px 44px rgba(34,47,39,.13); }
.rf-account-identity { display: flex; align-items: center; gap: 23px; }
.rf-account-avatar { position: relative; flex: 0 0 94px; height: 112px; display: grid; place-items: center; border: 1px solid #d0a84c; border-radius: 48px 48px 8px 8px; background: linear-gradient(145deg,#f5df9f,#a87c2d); box-shadow: inset 0 0 0 6px rgba(255,250,230,.48), 0 13px 28px rgba(12,28,23,.28); }
.rf-account-avatar b { color: #274238; font: 700 46px Georgia,serif; }
.rf-account-avatar i { position: absolute; bottom: -7px; min-width: 36px; padding: 4px 7px; border: 1px solid #d5b35b; color: #f8e9b7; background: #293f34; font: 700 8px monospace; text-align: center; }
.rf-account-identity h1 { margin: 7px 0 6px; color: #fff5d8; font: 700 clamp(34px,4vw,54px)/.95 Georgia,serif; letter-spacing: -.04em; }
.rf-account-identity p { max-width: 500px; margin: 0; color: #cad7cf; font-size: 11px; line-height: 1.65; }
.rf-account-hero .rf-kicker { color: #e6c46d; }
.rf-account-balance { min-height: 122px; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; border: 1px solid rgba(227,195,112,.5); color: #263c31; background: linear-gradient(145deg,#fffaf0,#e8dfc8); text-decoration: none; box-shadow: 0 12px 30px rgba(13,30,24,.2); }
.rf-account-balance small { color: #758078; font: 800 8px monospace; letter-spacing: .11em; text-transform: uppercase; }
.rf-account-balance strong { margin: 5px 0; font: 700 35px Georgia,serif; }
.rf-account-balance span { color: #9b752e; font: 800 8px monospace; letter-spacing: .08em; text-transform: uppercase; }
.rf-account-metrics { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(67,84,71,.2); background: #f6f4ea; box-shadow: 0 10px 25px rgba(39,49,41,.05); }
.rf-account-metrics article { position: relative; min-height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 17px 20px; border-right: 1px solid rgba(67,84,71,.14); }
.rf-account-metrics article:last-child { border-right: 0; }
.rf-account-metrics article > span { position: absolute; right: 12px; top: 10px; color: rgba(166,125,44,.28); font: 700 13px Georgia,serif; }
.rf-account-metrics small { color: #7d887f; font: 800 7px monospace; letter-spacing: .1em; text-transform: uppercase; }
.rf-account-metrics strong { margin-top: 5px; color: #2d4236; font: 700 21px Georgia,serif; }
.rf-account-workspace { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 14px; align-items: start; }
.rf-account-nav { padding: 23px; border: 1px solid rgba(69,87,73,.2); border-radius: 7px; background: #f3f1e7; }
.rf-account-nav h2 { margin: 5px 0 19px; color: #293e33; font: 700 30px Georgia,serif; }
.rf-account-nav nav { display: grid; gap: 6px; }
.rf-account-nav nav a { min-height: 64px; display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(69,87,73,.13); color: #6c786f; background: #e8eae2; text-decoration: none; }
.rf-account-nav nav a b { color: #aa8135; font: 800 8px monospace; }
.rf-account-nav nav a span { display: grid; gap: 2px; font: 700 11px Georgia,serif; }
.rf-account-nav nav a small { color: #8a948c; font: 500 7px monospace; }
.rf-account-nav nav a.is-active { border-color: #b68a38; color: #fff0bd; background: #30483a; box-shadow: 0 7px 15px rgba(35,50,41,.12); }
.rf-account-nav nav a.is-active small { color: #c1cdc4; }
.rf-account-nav__seal { display: flex; gap: 9px; margin-top: 21px; padding-top: 16px; border-top: 1px solid rgba(69,87,73,.15); color: #7e8981; font-size: 8px; line-height: 1.5; }
.rf-account-nav__seal span { color: #b58937; }
.rf-account-content { min-height: 470px; overflow: hidden; border: 1px solid rgba(69,87,73,.2); border-radius: 7px 7px 24px 7px; background: rgba(252,250,242,.96); box-shadow: 0 16px 38px rgba(42,51,44,.07); }
.rf-account-content > header { padding: 27px 30px 20px; border-bottom: 1px solid rgba(69,87,73,.13); }
.rf-account-content > header h2 { margin: 5px 0 6px; color: #293e33; font: 700 clamp(28px,3vw,38px)/1 Georgia,serif; letter-spacing: -.03em; }
.rf-account-content > header p { color: #7e8981; font-size: 10px; }
.rf-account-form { display: grid; gap: 16px; padding: 23px 30px 0; }
.rf-account-form label { display: grid; gap: 7px; color: #34493c; font: 700 11px Georgia,serif; }
.rf-account-form label > span { padding-left: 2px; }
.rf-account-form input { width: 100%; min-height: 51px; padding: 0 16px; border: 1px solid rgba(71,90,75,.24); border-radius: 3px; outline: none; color: #304438; background: #f0f2eb; font: 600 11px sans-serif; box-shadow: inset 0 1px #fff; }
.rf-account-form input:focus { border-color: #af8538; background: #fffdf6; box-shadow: 0 0 0 3px rgba(178,136,57,.1); }
.rf-account-form label small { color: #89938b; font: 500 8px sans-serif; }
.rf-account-form__split { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.rf-account-form footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 6px -30px 0; padding: 13px 30px; border-top: 1px solid rgba(69,87,73,.14); background: #e7e9e1; }
.rf-account-form footer span { color: #7d887f; font-size: 8px; }
.rf-account-form footer button { min-height: 43px; padding: 0 20px; border: 1px solid #d2ad5a; color: #fff1c2; background: linear-gradient(#3f5949,#2e4638); font: 800 9px monospace; letter-spacing: .07em; text-transform: uppercase; }
.rf-account-form footer button:hover { background: #496553; transform: translateY(-1px); }
.rf-account-message { padding: 11px 13px; border: 1px solid; font-size: 9px; }
.rf-account-message.is-success { border-color: #84a16f; color: #47673e; background: #e8f0df; }
.rf-account-message.is-error { border-color: #bf7272; color: #914848; background: #f4e4df; }
.rf-security-notice { display: flex; gap: 13px; padding: 15px; border: 1px solid rgba(183,139,56,.35); color: #5d675f; background: #fff7e3; }
.rf-security-notice > span { color: #b08332; }
.rf-security-notice strong { color: #35493c; font: 700 13px Georgia,serif; }
.rf-security-notice p { margin-top: 3px; font-size: 9px; }
.rf-captcha-field { display: grid; grid-template-columns: 1fr 175px; gap: 8px; }
.rf-captcha-field button { height: 51px; overflow: hidden; border: 1px solid rgba(71,90,75,.24); background: #e7ebe3; }
.rf-captcha-field img { width: 100%; height: 100%; object-fit: contain; }

/* Dashboard keeps the useful four-channel Walmart information model, not its look. */
.rf-dashboard-section { margin-top: 28px; }
.rf-dashboard-board { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.rf-dashboard-column { min-width: 0; overflow: hidden; border: 1px solid rgba(70,88,74,.2); border-radius: 6px 6px 18px 6px; background: #f7f5ec; box-shadow: 0 13px 28px rgba(38,50,42,.065); }
.rf-dashboard-column > header { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border-bottom: 1px solid rgba(221,185,98,.42); color: #f6e9c1; background: linear-gradient(145deg,#344e40,#253c31); }
.rf-dashboard-column > header > span { display: flex; justify-content: space-between; align-items: center; }
.rf-dashboard-column > header b { color: #e7c66d; font: 700 16px Georgia,serif; }
.rf-dashboard-column > header small { color: #aebeb3; font: 800 7px monospace; letter-spacing: .09em; text-transform: uppercase; }
.rf-dashboard-column > header h3 { font: 700 19px/1 Georgia,serif; letter-spacing: -.02em; }
.rf-dashboard-column > div { display: grid; gap: 1px; background: rgba(75,92,78,.14); }
.rf-dashboard-vault { min-height: 90px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; grid-template-rows: 1fr auto; gap: 5px 9px; align-items: center; padding: 12px; color: #304238; background: #fffdf7; text-decoration: none; transition: background .18s,transform .18s; }
.rf-dashboard-vault:nth-child(even) { background: #eef0e8; }
.rf-dashboard-vault:hover { z-index: 1; color: #23392d; background: #fff5d8; box-shadow: 0 7px 17px rgba(66,55,34,.09); transform: translateY(-1px); }
.rf-dashboard-vault__index { grid-row: 1/3; color: #b38837; font: 800 8px monospace; }
.rf-dashboard-vault__copy { min-width: 0; display: grid; gap: 3px; }
.rf-dashboard-vault__copy strong { overflow: hidden; font: 700 11px Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.rf-dashboard-vault__copy small { overflow: hidden; color: #879188; font: 500 7px monospace; text-overflow: ellipsis; white-space: nowrap; }
.rf-dashboard-vault__meta, .rf-dashboard-vault__price { display: grid; gap: 2px; text-align: right; }
.rf-dashboard-vault__meta b, .rf-dashboard-vault__price b { color: #526b47; font: 700 10px Georgia,serif; }
.rf-dashboard-vault__meta small, .rf-dashboard-vault__price small { color: #929a93; font: 700 6px monospace; text-transform: uppercase; }
.rf-dashboard-vault__price { grid-column: 2/4; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
.rf-dashboard-vault__price small { text-align: right; }
.rf-dashboard-column__empty { min-height: 271px; display: grid; place-items: center; padding: 20px; color: #8b948c; background: #f2f2ea; font-size: 9px; text-align: center; }
.rf-dashboard-column__more { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; color: #8a6728; background: #ece6d5; font: 800 7px monospace; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.rf-dashboard-column__more span { font-size: 14px; }

@media (max-width: 980px) {
  .rf-treasury-hero, .rf-account-hero { grid-template-columns: 1fr; }
  .rf-treasury-balance, .rf-account-balance { width: min(420px,100%); }
  .rf-treasury-grid, .rf-account-workspace { grid-template-columns: 1fr; }
  .rf-treasury-guide { border-radius: 8px; }
  .rf-account-nav nav { grid-template-columns: repeat(3,1fr); }
  .rf-account-nav__seal { display: none; }
  .rf-dashboard-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  body .ls-hero { min-height: 410px !important; background-position: 61% center !important; }
  body .ls-hero-grid { min-height: 410px !important; }
  .rf-treasury-page, .rf-account-page { padding-inline: 6px; }
  .rf-treasury-hero, .rf-account-hero { padding: 27px 22px; }
  .rf-account-metrics { grid-template-columns: repeat(2,1fr); }
  .rf-account-metrics article:nth-child(2) { border-right: 0; }
  .rf-account-metrics article:nth-child(-n+2) { border-bottom: 1px solid rgba(67,84,71,.14); }
  .rf-ledger-table__head { display: none; }
  .rf-ledger-row { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .rf-ledger-row > span, .rf-ledger-row > strong { display: grid; gap: 3px; }
  .rf-ledger-row > *::before { content: attr(data-label); color: #939c95; font: 700 7px monospace; letter-spacing: .08em; text-transform: uppercase; }
}

@media (max-width: 600px) {
  body .ls-hero { min-height: 430px !important; background-position: 58% center !important; }
  body .ls-hero-grid { min-height: 430px !important; padding: 24px 19px 42px !important; }
  .rf-currency-grid, .rf-account-nav nav, .rf-account-form__split { grid-template-columns: 1fr; }
  .rf-treasury-panel, .rf-ledger-section, .rf-account-content > header { padding-inline: 18px; }
  .rf-account-form { padding-inline: 18px; }
  .rf-account-form footer { margin-inline: -18px; padding-inline: 18px; align-items: stretch; flex-direction: column; }
  .rf-account-identity { align-items: flex-start; }
  .rf-account-avatar { flex-basis: 68px; height: 84px; }
  .rf-account-avatar b { font-size: 33px; }
  .rf-pending-card { grid-template-columns: 12px minmax(0,1fr) auto; }
  .rf-pending-card__amount { grid-column: 2; text-align: left; }
  .rf-pending-card button { grid-row: 1/3; grid-column: 3; }
  .rf-captcha-field { grid-template-columns: 1fr; }
  .rf-qr-row { align-items: flex-start; flex-direction: column; }
  .rf-dashboard-board { grid-template-columns: 1fr; }
}

/* Login typography follows the compact V5 scale as well. */
body .ls-auth-tagline { max-width: 510px; }
body .ls-auth-tagline h1 {
  max-width: 500px;
  font-size: clamp(42px, 5vw, 70px) !important;
  line-height: .94;
  letter-spacing: -.045em;
  font-style: normal;
}
body .ls-auth-card h2 { font-size: clamp(29px, 3vw, 36px); }

@media (max-width: 800px) {
  body .ls-auth-tagline h1 { font-size: clamp(38px, 11vw, 58px) !important; }
}

/* ========================================================================== */
/* REALMFORGE V6 — compact key art and premium relic registry                 */
/* ========================================================================== */

/* The landing artwork now behaves like a compact campaign cover. */
body .ls-hero {
  min-height: 410px !important;
  background-position: center 42% !important;
}
body .ls-hero-grid {
  min-height: 410px !important;
  padding: clamp(28px, 3.2vw, 46px) !important;
}
body .ls-hero-copy { max-width: 590px; }
body .ls-display {
  margin: 9px 0 12px;
  font-size: clamp(48px, 4.6vw, 76px) !important;
  line-height: .87 !important;
  letter-spacing: -.05em;
}
body .ls-hero-copy > p {
  max-width: 500px;
  font-size: 13px !important;
  line-height: 1.55;
}
body .ls-hero-actions { margin-top: 18px; }
body .ls-hero .ls-btn { min-height: 43px; padding: 0 19px; font-size: 10px; }
body .ls-hero-coordinates { right: 18px; bottom: 14px; }

/* Remove all remaining modern-city artwork from the fantasy routes. */
body.ls-scene-archive .ls-route-visual,
body.ls-scene-vault .ls-route-visual {
  background-image:
    linear-gradient(90deg, rgba(21,31,27,.94), rgba(21,31,27,.61) 43%, rgba(21,31,27,.08) 78%),
    url('/brand/realmforge-archive-v1.webp') !important;
  background-position: 68% center !important;
}
body.ls-scene-comms .ls-route-visual {
  background-image:
    linear-gradient(90deg, rgba(21,31,27,.94), rgba(21,31,27,.58) 43%, rgba(21,31,27,.06) 78%),
    url('/brand/realmforge-citadel-v1.webp') !important;
  background-position: 64% center !important;
}
body.ls-scene-market .ls-route-visual {
  background-image:
    linear-gradient(90deg, rgba(21,31,27,.94), rgba(21,31,27,.57) 43%, rgba(21,31,27,.06) 78%),
    url('/brand/realmforge-bazaar-v1.webp') !important;
  background-position: 62% center !important;
}
body .ls-route-visual {
  min-height: 205px;
  padding: 24px 32px;
}
body .ls-route-visual__copy h1 {
  max-width: 470px;
  margin: 6px 0 8px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: .94;
}
body .ls-route-visual__copy p { max-width: 455px; font-size: 11px; line-height: 1.55; }

/* Marketplace cover: correct fantasy bazaar art and roughly half the old scale. */
body .ls-market-page { padding-top: 18px; }
body .ls-market-page > section.ls-search-stage {
  min-height: 242px !important;
  padding: 26px 36px !important;
  border: 1px solid rgba(214,177,92,.62) !important;
  border-radius: 8px 8px 28px 8px !important;
  background-image:
    linear-gradient(90deg, rgba(20,31,26,.96) 0%, rgba(20,31,26,.76) 38%, rgba(20,31,26,.17) 70%, rgba(20,31,26,.03) 100%),
    url('/brand/realmforge-bazaar-v1.webp') !important;
  background-position: 62% 48% !important;
  background-size: cover !important;
  box-shadow: 0 18px 44px rgba(34,44,37,.16) !important;
}
body .ls-market-page > section.ls-search-stage::before {
  background: linear-gradient(0deg, rgba(21,31,26,.44), transparent 62%);
}
body .ls-search-stage > .ls-search-stage__copy:first-child { max-width: 540px; }
body .ls-search-stage__copy h1 {
  max-width: 510px;
  margin: 7px 0 9px;
  font-size: clamp(38px, 3.8vw, 54px) !important;
  line-height: .91;
  letter-spacing: -.045em;
}
body .ls-search-stage__copy > p { max-width: 440px; font-size: 11px; line-height: 1.5; }
body .ls-search-stage__signals { gap: 6px; margin-top: 14px; }
body .ls-search-stage__signals span { min-height: 28px; padding: 0 9px; font-size: 7px; }
body .ls-search-stage__stamp { right: 18px; top: 15px; font-size: 8px; }
body .ls-search-stage__stamp b { font-size: 23px; }

/* The archive and council reuse the dedicated generated fantasy artwork. */
.rf-archive-intro__art {
  background:
    linear-gradient(0deg, rgba(27,38,31,.88), rgba(27,38,31,.12)),
    url('/brand/realmforge-archive-v1.webp') 70% center/cover !important;
}
.rf-form-stage__aside {
  background:
    linear-gradient(0deg, rgba(27,38,31,.94), rgba(27,38,31,.54)),
    url('/brand/realmforge-citadel-v1.webp') 62% center/cover !important;
}
.rf-alliance-intro {
  background:
    linear-gradient(90deg, rgba(26,39,31,.97), rgba(26,39,31,.72) 58%, rgba(26,39,31,.22)),
    url('/brand/realmforge-hero-v1.webp') 58% 42%/cover !important;
}
body .ls-auth-visual {
  background-image:
    linear-gradient(180deg,rgba(17,48,72,.06),rgba(17,48,72,.63)),
    url('/brand/realmforge-citadel-v1.webp') !important;
  background-position: 64% center !important;
}

/* Premium parchment-and-forged-metal registry. */
body .ls-market-page > .rf-registry-toolbar {
  min-height: 60px;
  margin-top: 14px !important;
  padding: 6px 8px 6px 20px !important;
  border: 1px solid rgba(93,70,34,.22) !important;
  border-bottom-color: rgba(198,154,70,.62) !important;
  border-radius: 9px 9px 0 0 !important;
  background: linear-gradient(180deg, #fffdf6, #eee5d2) !important;
  box-shadow: 0 12px 30px rgba(40,48,41,.09) !important;
}
body .rf-registry-toolbar .subtitle {
  color: #29382f !important;
  font: 700 15px/1.2 Georgia, serif;
  letter-spacing: -.015em;
}
body .rf-registry-toolbar .custom-field-element {
  min-height: 44px;
  border-color: rgba(93,70,34,.2) !important;
  background: rgba(255,255,255,.65) !important;
  font-size: 10px;
}
body .rf-registry-toolbar #addToCartBtn {
  min-height: 44px;
  border: 1px solid #d7b45f !important;
  background: linear-gradient(180deg, #47604f, #2f4438) !important;
  color: #fff7df !important;
  box-shadow: inset 0 1px rgba(255,255,255,.17), 0 7px 18px rgba(43,58,48,.18) !important;
}
body .rf-registry-toolbar #cartTotal {
  border-color: rgba(242,211,134,.45) !important;
  color: #ffe8a9 !important;
  background: rgba(16,29,22,.22);
}
body .ls-market-page .rf-registry-head {
  min-height: 52px;
  margin: 0 0 5px !important;
  border: 1px solid rgba(219,182,94,.45) !important;
  border-radius: 7px 7px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent),
    #263d31 !important;
  box-shadow: 0 9px 20px rgba(35,48,40,.12);
}
body .ls-market-page .rf-registry-head > div {
  color: #f8edcf !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .085em;
}
body .ls-market-page .rounded-b-2xl > .grid > .rf-relic-row {
  position: relative;
  min-height: 118px;
  margin-bottom: 4px;
  border: 1px solid rgba(76,93,79,.17) !important;
  border-radius: 7px !important;
  background: linear-gradient(100deg, #fcfbf5, #f2f3eb) !important;
  box-shadow: 0 7px 18px rgba(39,49,42,.045);
}
body .ls-market-page .rounded-b-2xl > .grid > .rf-relic-row:nth-child(even) {
  background: linear-gradient(100deg, #f3f1e7, #e9eee5) !important;
}
body .ls-market-page .rounded-b-2xl > .grid > .rf-relic-row:hover {
  border-color: rgba(183,139,58,.7) !important;
  background: #fff8e7 !important;
  box-shadow: 0 12px 26px rgba(66,59,39,.09);
  transform: translateY(-1px);
}
body .rf-relic-row::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#d9bb70, #7f9d59);
}
body .rf-relic-row .table-item-with-border {
  min-height: 100%;
  padding-block: 12px;
  border-color: rgba(70,87,74,.16) !important;
}
body .rf-relic-row .text-text-primary,
body .rf-relic-row .text-text-secondary,
body .rf-relic-row .dark\:text-white { color: #29362e !important; }
body .rf-relic-row a { color: #58763e !important; }
body .rf-vendor-medallion {
  min-width: 72px;
  padding: 7px 6px !important;
  border: 1px solid rgba(219,182,94,.68) !important;
  border-radius: 6px !important;
  background: linear-gradient(145deg, #344b3d, #1f3027) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 6px 14px rgba(33,48,39,.18) !important;
}
body .rf-network-glyph {
  border: 1px solid rgba(239,214,151,.32);
  background: rgba(246,236,207,.9) !important;
  color: #314037 !important;
}
body .rf-alert-title { color: #f4d788 !important; font: 700 9px Georgia,serif; }
body .rf-alert-note { color: rgba(242,238,222,.66) !important; font-size: 7px; }
body .rf-vendor-standard > .rf-network-glyph {
  width: 38px;
  height: 25px;
  box-shadow: 0 4px 10px rgba(44,58,48,.1);
}
body .rf-extra-wrap .extra-badge {
  min-height: 28px;
  padding: 0 9px !important;
  border: 1px solid #dfc278;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #b88b39, #806025) !important;
  color: #fff6d9 !important;
  box-shadow: 0 5px 13px rgba(112,82,31,.2) !important;
  font: 800 8px/1 monospace !important;
  letter-spacing: .04em;
}
body .rf-extra-wrap:hover .extra-badge {
  background: linear-gradient(180deg, #c9a14e, #8e6a2b) !important;
  color: #fff9e9 !important;
  box-shadow: 0 7px 16px rgba(112,82,31,.26) !important;
}
body .rf-extra-wrap .extra-tooltip {
  border-color: rgba(219,182,94,.6) !important;
  border-radius: 6px !important;
  background: #263a2f !important;
  color: #fff1c9 !important;
}
body .rf-ref-cell > div {
  min-width: 27px;
  min-height: 27px;
  border: 1px solid rgba(101,136,70,.32);
  background: #dce8cf !important;
  color: #50763c !important;
  box-shadow: inset 0 1px rgba(255,255,255,.7);
}
body .rf-ref-cell > .rf-status-no {
  border-color: rgba(141,75,75,.28);
  background: #f1dcdc !important;
  color: #8d4b4b !important;
}
body .rf-price-cell > span > span {
  color: #6d8d3c;
  font: 700 15px Georgia,serif;
}
body .rf-cart-cell button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200,154,70,.66);
  border-radius: 50%;
  color: #f9e8b7;
  background: linear-gradient(180deg, #45604e, #2b4034);
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 6px 13px rgba(37,54,43,.16);
}
body .rf-cart-cell button:hover {
  color: #fff5d4;
  background: linear-gradient(180deg, #58735f, #344b3d);
  transform: translateY(-1px);
}
body .rf-select-control {
  width: 30px !important;
  height: 30px !important;
  padding: 4px !important;
  border: 1px solid rgba(163,124,52,.65) !important;
  border-radius: 7px !important;
  background: #faf5e7 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 4px 10px rgba(61,55,40,.08);
}
body .rf-select-control > span {
  width: 17px;
  height: 17px;
  border-color: rgba(117,102,68,.38) !important;
  border-radius: 4px !important;
  background: #f4edda;
}
body .rf-select-control:has(input:checked) {
  border-color: #506a50 !important;
  background: #334a3b !important;
}
body .rf-select-control:has(input:checked) > span {
  border-color: #f1d58d !important;
  background: #c79a43 !important;
  box-shadow: inset 0 0 0 3px #334a3b;
}

@media (max-width: 800px) {
  body .ls-hero { min-height: 445px !important; background-position: 66% center !important; }
  body .ls-hero-grid { min-height: 445px !important; padding: 28px 21px 52px !important; align-items: end; }
  body .ls-display { font-size: clamp(45px, 12vw, 61px) !important; }
  body .ls-hero-copy > p { max-width: 88%; }
  body .ls-route-visual { min-height: 205px; padding: 22px 20px; }
  body .ls-market-page > section.ls-search-stage { min-height: 300px !important; padding: 24px 20px !important; background-position: 70% center !important; }
  body .ls-search-stage__copy h1 { font-size: clamp(39px, 11vw, 50px) !important; }
  body .ls-search-stage__copy > p { max-width: 82%; }
  body .rf-registry-toolbar { padding: 12px !important; }
  body .ls-market-page .rounded-b-2xl > .grid > .rf-relic-row { min-height: 0; padding: 16px 14px; }
}

@media (max-width: 520px) {
  body .ls-hero { min-height: 470px !important; }
  body .ls-hero-grid { min-height: 470px !important; }
  body .ls-market-page > section.ls-search-stage { min-height: 320px !important; }
  body .ls-search-stage__copy > p { max-width: 100%; }
}

/* V7 final cascade: placed after the legacy V6 registry rules on purpose. */
body .ls-hero {
  min-height: 360px !important;
  background-image:
    linear-gradient(90deg, rgba(9,30,48,.94) 0%, rgba(9,30,48,.73) 34%, rgba(9,30,48,.10) 65%, rgba(9,30,48,.02) 100%),
    url('/brand/realmforge-hero-v2.webp') !important;
  background-position: center center !important;
  background-size: cover !important;
}
body .ls-hero-grid { min-height: 360px !important; padding: 31px 42px !important; }
body .ls-display { font-size: clamp(45px,4.1vw,68px) !important; }

@media (min-width: 1440px) {
  body .ls-market-page .cards-result-table-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns:
      minmax(128px,1.25fr) 70px 43px 45px 88px 62px 68px minmax(88px,.85fr)
      57px 67px 66px 74px 58px 62px 43px 61px 42px 38px !important;
  }
  body .ls-market-page .cards-result-table-grid > * { min-width: 0; }
  body .rf-relic-row .table-item-with-border { padding-inline: 5px !important; }
  body .rf-vendor-medallion { min-width: 62px !important; padding: 6px 4px !important; }
  body .rf-extra-wrap .extra-badge { min-height: 26px; padding-inline: 7px !important; }
  body .rf-cart-cell button { width: 34px; height: 34px; }
  body .rf-select-control { width: 28px !important; height: 28px !important; }
}

@media (max-width: 800px) {
  body .ls-hero { min-height: 410px !important; background-position: 61% center !important; }
  body .ls-hero-grid { min-height: 410px !important; padding: 24px 20px 45px !important; }
}

@media (max-width: 520px) {
  body .ls-hero { min-height: 430px !important; background-position: 58% center !important; }
  body .ls-hero-grid { min-height: 430px !important; }
}

/* V8: purchase records, checker score and explicit account/payment UI. */
.rf-min-deposit-banner {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #c89a42;
  border-radius: 8px;
  color: #f9f3e4;
  background: linear-gradient(100deg,#263e33,#345444);
  box-shadow: 0 12px 28px rgba(30,52,42,.12);
}
.rf-min-deposit-banner > span { font: 800 9px/1 monospace; letter-spacing: .14em; }
.rf-min-deposit-banner > strong { color: #f1c95f; font: 700 28px/1 Georgia,serif; }
.rf-min-deposit-banner > p { margin: 0; color: #dce7df; font-size: 11px; line-height: 1.5; }

.rf-profile-score {
  display: grid;
  grid-template-columns: 190px minmax(180px,1fr) minmax(290px,auto);
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border: 1px solid rgba(67,84,71,.22);
  border-top: 0;
  background: #fbfaf3;
}
.rf-profile-score__main h2 { margin: 3px 0; color: #284235; font: 700 34px/1 Georgia,serif; }
.rf-profile-score__main p { margin: 0; color: #738077; font-size: 10px; }
.rf-profile-score__bar { position: relative; height: 10px; border-radius: 99px; background: #e3e5dc; }
.rf-profile-score__bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg,#c29236,#557750); }
.rf-profile-score__bar b { position: absolute; top: -5px; width: 2px; height: 20px; background: #9b523f; }
.rf-profile-score dl { display: grid; grid-template-columns: repeat(3,auto); gap: 22px; margin: 0; }
.rf-profile-score dl div { display: grid; gap: 3px; }
.rf-profile-score dt { color: #839087; font: 800 7px monospace; letter-spacing: .12em; text-transform: uppercase; }
.rf-profile-score dd { margin: 0; color: #293d32; font: 700 15px Georgia,serif; }
.rf-profile-score.is-blocked { border-color: rgba(151,67,48,.38); background: #fff4ee; }

.rf-purchases-page { display: grid; gap: 14px; }
.rf-purchases-hero {
  min-height: 172px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 245px;
  align-items: center;
  gap: 24px;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid #b9974f;
  border-radius: 8px 8px 24px;
  color: #fff;
  background: linear-gradient(90deg,rgba(26,51,41,.98),rgba(32,66,53,.82)),url('/brand/realmforge-citadel-v1.webp') center/cover;
}
.rf-purchases-hero h1 { margin: 6px 0 7px; color: #fff8e8; font: 700 clamp(30px,4vw,48px)/1 Georgia,serif; }
.rf-purchases-hero p { max-width: 680px; margin: 0; color: #dce5df; font-size: 11px; line-height: 1.65; }
.rf-purchases-hero__action { position: relative; display: grid; gap: 4px; padding: 18px 46px 18px 18px; border: 1px solid rgba(238,204,123,.58); border-radius: 7px; color: #fff; background: rgba(10,29,23,.38); }
.rf-purchases-hero__action small { color: #e0bd69; font: 800 7px monospace; letter-spacing: .13em; text-transform: uppercase; }
.rf-purchases-hero__action strong { font: 700 16px Georgia,serif; }
.rf-purchases-hero__action > span { position: absolute; right: 17px; top: 50%; color: #e1bd66; font-size: 24px; transform: translateY(-50%); }

.rf-checker-score {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 19px 22px;
  border: 1px solid #d2d5c9;
  border-radius: 8px;
  background: rgba(252,251,244,.95);
  box-shadow: 0 12px 30px rgba(43,55,46,.06);
}
.rf-checker-score__seal { width: 78px; height: 78px; display: grid; place-content: center; text-align: center; border: 1px solid #bb8f39; border-radius: 50%; color: #2b4437; background: radial-gradient(circle,#fffef7 55%,#eee3c8); }
.rf-checker-score__seal span { font: 700 28px/1 Georgia,serif; }
.rf-checker-score__seal small { margin-top: 3px; color: #8d7f61; font: 700 7px monospace; }
.rf-checker-score__copy h2 { margin: 3px 0 5px; color: #253e32; font: 700 24px/1.1 Georgia,serif; }
.rf-checker-score__copy p { margin: 0 0 13px; color: #78857b; font-size: 9px; }
.rf-checker-score__bar { position: relative; height: 8px; border-radius: 10px; background: #e2e6dc; }
.rf-checker-score__bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg,#bd8730,#4f7555); transition: width .3s ease; }
.rf-checker-score__bar > b { position: absolute; top: -4px; width: 2px; height: 16px; background: #9a493a; }
.rf-checker-score__bar > b span { position: absolute; left: 5px; bottom: 11px; width: max-content; color: #9a493a; font: 700 7px monospace; }
.rf-checker-score dl { display: grid; grid-template-columns: repeat(3,72px); gap: 8px; margin: 0; }
.rf-checker-score dl div { padding: 11px 8px; border-left: 1px solid #dedbcf; text-align: center; }
.rf-checker-score dt { color: #8b958d; font: 800 7px monospace; letter-spacing: .1em; text-transform: uppercase; }
.rf-checker-score dd { margin: 4px 0 0; color: #2f4438; font: 700 20px Georgia,serif; }
.rf-checker-score.is-blocked { border-color: #c88876; background: #fff3ee; }
.rf-checker-score.is-blocked .rf-checker-score__seal { border-color: #ae624c; color: #934b39; background: #fff7f3; }

.rf-purchases-command { overflow: hidden; border: 1px solid #d4d5ca; border-radius: 8px; background: #fbfaf3; }
.rf-purchases-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid #d5d4c7; background: #eff0e8; }
.rf-purchases-tabs a { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; min-height: 61px; padding: 10px 16px; border-right: 1px solid #d5d4c7; color: #647268; }
.rf-purchases-tabs a:last-child { border-right: 0; }
.rf-purchases-tabs a > b { color: #b08a43; font: 700 10px Georgia,serif; }
.rf-purchases-tabs a > span { display: grid; gap: 2px; font: 700 13px Georgia,serif; }
.rf-purchases-tabs small { color: #8b958d; font: 700 7px monospace; letter-spacing: .08em; text-transform: uppercase; }
.rf-purchases-tabs a.is-active { color: #fff; background: #2f493c; }
.rf-purchases-tabs a.is-active small { color: #d5e1d9; }

.rf-purchases-toolbar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #e0ded3; }
.rf-purchases-toolbar__count { display: grid; gap: 1px; margin-right: auto; }
.rf-purchases-toolbar__count small { color: #8a948d; font: 800 7px monospace; letter-spacing: .1em; text-transform: uppercase; }
.rf-purchases-toolbar__count strong { color: #2d4437; font: 700 20px Georgia,serif; }
.rf-purchases-toolbar button, .rf-purchases-filter > button { padding: 9px 13px; border: 1px solid #aab4aa; border-radius: 5px; color: #2f483b; background: #f6f5ed; font: 800 8px monospace; letter-spacing: .04em; text-transform: uppercase; }
.rf-purchases-toolbar button:hover, .rf-purchases-filter > button:hover { border-color: #476b56; background: #edf2eb; }
.rf-purchases-toolbar button.is-danger { border-color: #c7a195; color: #954f3e; }
.rf-purchases-toolbar button.is-gold { border-color: #c49840; color: #735817; background: #f8efd8; }
.rf-record-select { display: inline-flex; align-items: center; gap: 7px; color: #6f7d73; font: 700 8px monospace; text-transform: uppercase; cursor: pointer; }
.rf-record-select input { position: absolute; opacity: 0; pointer-events: none; }
.rf-record-select > span { width: 17px; height: 17px; display: block; border: 1px solid #9da99f; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 3px #fff; }
.rf-record-select.is-checked > span { background: #bd9140; }
.rf-record-select--all { padding: 7px 9px; border: 1px solid #d6d6ca; border-radius: 5px; }

.rf-purchases-filter { display: grid; grid-template-columns: minmax(145px,1fr) 135px 135px auto auto; align-items: end; gap: 10px; padding: 13px 14px; }
.rf-purchases-filter > div:first-child { display: grid; gap: 3px; }
.rf-purchases-filter > div:first-child strong { color: #30473b; font: 700 14px Georgia,serif; }
.rf-purchases-filter label { display: grid; gap: 4px; color: #7c887f; font: 800 7px monospace; text-transform: uppercase; }
.rf-purchases-filter input { min-height: 36px; padding: 7px 9px; border: 1px solid #ccd1c9; border-radius: 5px; color: #35483d; background: #fff; font-size: 10px; }
.rf-purchases-filter__quick { display: flex; gap: 4px; }
.rf-purchases-filter__quick a { padding: 9px 10px; border: 1px solid #d4d5ca; border-radius: 4px; color: #6c786f; font: 700 8px monospace; }
.rf-purchases-filter__quick a.is-active { color: #fff; background: #385544; }

.rf-record-stack { display: grid; gap: 9px; }
.rf-purchase-record { overflow: hidden; border: 1px solid #cfd3ca; border-radius: 8px; background: rgba(251,250,243,.97); box-shadow: 0 10px 24px rgba(39,51,42,.05); transition: opacity .2s ease,transform .2s ease; }
.rf-purchase-record:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(39,51,42,.09); }
.rf-purchase-record.is-approved { border-left: 4px solid #5e895e; }
.rf-purchase-record.is-declined { border-left: 4px solid #ad5e49; }
.rf-purchase-record.is-closed { opacity: .35; pointer-events: none; }
.rf-purchase-record > header { display: grid; grid-template-columns: 22px 45px minmax(180px,1fr) auto 90px; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #dfddd2; background: #f0f1e9; }
.rf-record-index { display: grid; gap: 1px; }
.rf-record-index small, .rf-purchase-record > header time { color: #8d978f; font: 800 7px monospace; letter-spacing: .08em; }
.rf-record-index strong { color: #a9823d; font: 700 14px Georgia,serif; }
.rf-record-title { min-width: 0; display: grid; gap: 2px; }
.rf-record-title span { overflow: hidden; color: #273e32; font: 700 14px Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.rf-record-title strong { color: #78857b; font-size: 8px; }
.rf-record-statuses { display: flex; flex-wrap: wrap; gap: 4px; }
.rf-record-statuses span, .rf-record-result, .rf-record-opened { padding: 5px 8px; border-radius: 99px; font: 800 7px monospace; letter-spacing: .05em; text-transform: uppercase; }
.rf-record-statuses .is-sealed { color: #55675c; background: #dde3dc; }
.rf-record-statuses .is-approved, .rf-record-result.is-approved, .rf-record-opened { color: #315739; background: #d9ead9; }
.rf-record-statuses .is-declined, .rf-record-result.is-declined { color: #864637; background: #f1dcd6; }
.rf-record-statuses .is-refunded { color: #61417b; background: #e8dff0; }
.rf-record-statuses .is-ref { color: #775912; background: #f3e6bd; }

.rf-purchase-record__body { display: grid; grid-template-columns: 1.3fr .95fr .95fr .9fr; }
.rf-purchase-record__body > section { min-width: 0; min-height: 154px; padding: 16px; border-right: 1px solid #e2e0d5; }
.rf-purchase-record__body > section:last-child { border-right: 0; }
.rf-record-token { color: #f7f1de; background: radial-gradient(circle at 85% 15%,rgba(223,177,74,.28),transparent 33%),linear-gradient(135deg,#263f34,#182e26); }
.rf-record-token__brand { display: flex; align-items: center; gap: 8px; }
.rf-record-token__brand small { padding: 5px 8px; border: 1px solid rgba(230,192,105,.55); border-radius: 4px; color: #efd17e; font: 800 8px monospace; }
.rf-record-token__brand strong { color: #c7d4cb; font: 700 8px monospace; text-transform: uppercase; }
.rf-record-token__number { position: relative; display: grid; gap: 4px; margin-top: 22px; }
.rf-record-token__number small, .rf-record-token__meta small, .rf-record-facts small { color: #a9b9ae; font: 800 7px monospace; letter-spacing: .08em; text-transform: uppercase; }
.rf-record-token__number strong { overflow-wrap: anywhere; font: 700 15px/1.25 monospace; letter-spacing: .04em; }
.rf-record-token__number button { position: absolute; right: 0; top: 0; border: 0; color: #e3bd66; background: none; font: 800 7px monospace; text-transform: uppercase; }
.rf-record-token__meta { display: grid; grid-template-columns: 1fr .75fr; gap: 10px; margin-top: 16px; }
.rf-record-token__meta span { display: grid; gap: 3px; }
.rf-record-token__meta b { font-size: 9px; }
.rf-record-facts { display: flex; flex-direction: column; }
.rf-record-facts > h3 { margin: 9px 0 14px; color: #293f34; font: 700 16px/1.15 Georgia,serif; }
.rf-record-facts > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.rf-record-facts > div span { display: grid; gap: 3px; }
.rf-record-facts b { overflow-wrap: anywhere; color: #415449; font-size: 9px; text-transform: capitalize; }
.rf-record-facts > p { margin: auto 0 0; color: #6d7a71; font-size: 8px; line-height: 1.55; overflow-wrap: anywhere; }
.rf-record-facts--holder > p { margin-top: 4px; }

.rf-purchase-record > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #dfddd2; background: #f5f4ec; }
.rf-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf-record-actions button { min-height: 31px; padding: 7px 11px; border: 1px solid #aeb7af; border-radius: 5px; color: #344a3d; background: #fff; font: 800 7px monospace; letter-spacing: .04em; text-transform: uppercase; }
.rf-record-actions button.is-primary { border-color: #385b47; color: #fff; background: #385b47; }
.rf-record-actions button.is-check { border-color: #bd913d; color: #6c5014; background: #f3e4b9; }
.rf-record-actions button.is-delete { border-color: transparent; color: #92503f; background: transparent; }
.rf-record-actions button.is-disabled { border-color: #d2d3cb; color: #929890; background: #e8e9e3; cursor: not-allowed; }
.rf-record-actions button.is-running { color: #fff; background: #34463c; }
.rf-record-timer { display: grid; gap: 2px; text-align: right; }
.rf-record-timer small { color: #949d96; font: 800 7px monospace; letter-spacing: .08em; }
.rf-record-timer strong { color: #9d7834; font: 700 14px monospace; }
.rf-record-empty { padding: 45px 24px; border: 1px solid #d2d4cb; border-radius: 8px; text-align: center; background: #faf9f2; }
.rf-record-empty > span { color: #bd9447; font-size: 30px; }
.rf-record-empty h2 { margin: 8px 0 5px; color: #2e4538; font: 700 23px Georgia,serif; }
.rf-record-empty p { color: #7d897f; font-size: 10px; }
.rf-record-empty a { display: inline-block; margin-top: 8px; padding: 9px 13px; border-radius: 4px; color: #fff; background: #365541; font: 800 8px monospace; text-transform: uppercase; }
.rf-record-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.rf-record-pagination > a:last-child { justify-self: end; }
.rf-record-pagination a { padding: 8px 10px; border: 1px solid #d0d3ca; border-radius: 4px; color: #55665b; font: 800 8px monospace; }
.rf-record-pagination > div { display: flex; gap: 4px; }
.rf-record-pagination a.is-active { color: #fff; background: #385645; }
.rf-record-toast { position: fixed; top: 18px; right: 18px; z-index: 500; padding: 11px 16px; border-radius: 5px; color: #fff; background: #3d634b; box-shadow: 0 15px 40px rgba(0,0,0,.2); opacity: 0; transform: translateY(-8px); transition: .2s ease; font-size: 10px; }
.rf-record-toast.is-visible { opacity: 1; transform: none; }
.rf-record-toast.is-error { background: #96503e; }
.rf-record-toast.is-warning { background: #9a762c; }

.rf-support-head h1 { margin: 5px 0 7px; color: #2d4437; font: 700 31px/1 Georgia,serif; }
.rf-support-head .rf-action-button { white-space: nowrap; }
.rf-empty-state .rf-action-button { display: inline-block; margin-top: 8px; }

@media (max-width: 1050px) {
  .rf-purchase-record__body { grid-template-columns: 1.2fr 1fr; }
  .rf-purchase-record__body > section:nth-child(2) { border-right: 0; }
  .rf-purchase-record__body > section:nth-child(-n+2) { border-bottom: 1px solid #e2e0d5; }
  .rf-checker-score { grid-template-columns: 82px 1fr; }
  .rf-checker-score dl { grid-column: 1/-1; grid-template-columns: repeat(3,1fr); }
  .rf-purchases-filter { grid-template-columns: 1fr 135px 135px auto; }
  .rf-purchases-filter__quick { grid-column: 1/-1; }
  .rf-profile-score { grid-template-columns: 160px 1fr; }
  .rf-profile-score dl { grid-column: 1/-1; }
}

@media (max-width: 720px) {
  .rf-min-deposit-banner { grid-template-columns: auto 1fr; }
  .rf-min-deposit-banner p { grid-column: 1/-1; }
  .rf-purchases-hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .rf-checker-score { grid-template-columns: 66px 1fr; gap: 14px; padding: 15px; }
  .rf-checker-score__seal { width: 62px; height: 62px; }
  .rf-checker-score__seal span { font-size: 22px; }
  .rf-purchases-tabs { grid-template-columns: 1fr; }
  .rf-purchases-tabs a { border-right: 0; border-bottom: 1px solid #d5d4c7; }
  .rf-purchases-toolbar { flex-wrap: wrap; }
  .rf-purchases-toolbar__count { flex: 1 0 100%; }
  .rf-purchases-filter { grid-template-columns: 1fr 1fr; align-items: end; }
  .rf-purchases-filter > div:first-child, .rf-purchases-filter__quick { grid-column: 1/-1; }
  .rf-purchases-filter > button { width: 100%; }
  .rf-purchase-record > header { grid-template-columns: 22px 36px minmax(0,1fr); }
  .rf-record-statuses { grid-column: 3; }
  .rf-purchase-record > header time { display: none; }
  .rf-purchase-record__body { grid-template-columns: 1fr; }
  .rf-purchase-record__body > section { min-height: 0; border-right: 0; border-bottom: 1px solid #e2e0d5; }
  .rf-purchase-record__body > section:last-child { border-bottom: 0; }
  .rf-purchase-record > footer { align-items: flex-start; }
  .rf-profile-score { grid-template-columns: 1fr; }
  .rf-profile-score dl { grid-template-columns: 1fr 1fr; }
}

/* V8 — clear database registry, referrals and release notices. */
.rf-database-page, .rf-referral-page { display: grid; gap: 14px; }
.rf-database-hero, .rf-referral-hero { min-height: 210px; display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: stretch; gap: 22px; padding: 26px 28px; overflow: hidden; border: 1px solid #b7964c; border-radius: 8px 8px 24px; color: #fff; background: linear-gradient(90deg,rgba(26,50,40,.98),rgba(31,66,52,.84)),url('/brand/realmforge-archive-v1.webp') center/cover; }
.rf-database-hero__copy h1, .rf-referral-hero h1 { margin: 7px 0 9px; color: #fff8e8; font: 700 clamp(31px,4vw,49px)/.98 Georgia,serif; }
.rf-database-hero__copy h1 em, .rf-referral-hero h1 em { color: #e7c46e; font-style: normal; }
.rf-database-hero__copy > p, .rf-referral-hero > div > p { max-width: 690px; margin: 0; color: #d9e4dc; font-size: 10px; line-height: 1.65; }
.rf-database-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.rf-database-legend span { padding: 7px 9px; border: 1px solid rgba(235,207,139,.26); border-radius: 4px; color: #d9e3dc; background: rgba(10,28,22,.28); font: 700 7px monospace; text-transform: uppercase; }
.rf-database-legend b { color: #edce7e; }
.rf-database-feature { align-self: center; display: grid; gap: 7px; padding: 19px; border: 1px solid rgba(238,202,116,.56); border-radius: 8px; color: #fff; background: rgba(11,29,24,.58); backdrop-filter: blur(5px); }
.rf-database-feature h2 { margin: 0; color: #fff8e8; font: 700 20px/1.15 Georgia,serif; }
.rf-database-feature p { margin: 0; color: #cbd8d0; font-size: 8px; }
.rf-database-feature dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 7px 0 2px; }
.rf-database-feature dl div { padding: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.rf-database-feature dt { color: #b8c8be; font: 700 6px monospace; text-transform: uppercase; }
.rf-database-feature dd { margin: 3px 0 0; color: #efd17e; font: 700 14px Georgia,serif; }
.rf-database-feature__action { color: #f0ce77; font: 800 8px monospace; text-transform: uppercase; }
.rf-database-summary, .rf-referral-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.rf-database-summary article, .rf-referral-stats article { min-height: 74px; display: grid; align-content: center; gap: 3px; padding: 13px 16px; border: 1px solid #d0d3c8; border-radius: 6px; background: #faf9f2; }
.rf-database-summary small, .rf-referral-stats small { color: #879188; font: 800 7px monospace; text-transform: uppercase; }
.rf-database-summary strong, .rf-referral-stats strong { color: #2c4437; font: 700 22px Georgia,serif; }
.rf-referral-stats article > span { color: #8a938c; font-size: 7px; }
.rf-referral-stats article.is-gold { border-color: #bc9445; background: #f7edcf; }
.rf-database-tabs { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid #cfd2c7; border-radius: 7px; background: #e9ece4; }
.rf-database-tabs a { min-height: 59px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 10px 13px; border-right: 1px solid #cfd2c7; color: #5e6d63; }
.rf-database-tabs a:last-child { border-right: 0; }
.rf-database-tabs i { color: #ae873c; font: 700 10px Georgia,serif; }
.rf-database-tabs span { display: grid; gap: 2px; }
.rf-database-tabs strong { font: 700 13px Georgia,serif; }
.rf-database-tabs small { color: #8b958d; font: 700 7px monospace; }
.rf-database-tabs a.is-current { color: #fff; background: #304c3e; }
.rf-database-tabs a.is-current i, .rf-database-tabs a.is-current small { color: #e6c46f; }
.rf-database-registry { overflow: hidden; border: 1px solid #d0d2c8; border-radius: 8px; background: #fbfaf3; }
.rf-database-registry__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border-bottom: 1px solid #d6d6cc; }
.rf-database-registry__head h2 { margin: 3px 0; color: #2a4235; font: 700 21px Georgia,serif; }
.rf-database-registry__head p { margin: 0; color: #89938b; font-size: 8px; }
.rf-database-registry__head > span { color: #728076; font: 700 8px monospace; text-transform: uppercase; }
.rf-database-table__columns, .rf-database-row { display: grid; grid-template-columns: minmax(240px,1.7fr) 125px 75px 105px 80px 94px 70px; align-items: center; gap: 10px; }
.rf-database-table__columns { min-height: 37px; padding: 0 14px; color: #e9d495; background: #2c4437; font: 800 6px monospace; letter-spacing: .09em; text-transform: uppercase; }
.rf-database-row { min-height: 92px; padding: 12px 14px; border-top: 1px solid #deddd3; color: #657269; background: #fffef9; }
.rf-database-row:nth-child(odd) { background: #f3f3eb; }
.rf-database-row.is-featured { box-shadow: inset 4px 0 #bc9140; }
.rf-database-name { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: start; gap: 10px; }
.rf-database-index { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #c6a35a; border-radius: 50%; color: #74591c; background: #f5eacb; font: 800 7px monospace; }
.rf-database-name h3 { margin: 0; overflow: hidden; font: 700 14px Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.rf-database-name h3 a { color: #263f32; }
.rf-database-name p { margin: 4px 0 0; color: #879189; font-size: 7px; }
.rf-database-name p a { color: #4a6a56; font-weight: 800; }
.rf-database-flags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.rf-database-flags span { padding: 3px 5px; border-radius: 99px; color: #6b5117; background: #eee0b7; font: 800 6px monospace; text-transform: uppercase; }
.rf-database-stock, .rf-database-metric, .rf-database-regions, .rf-database-row time { display: grid; gap: 3px; }
.rf-database-stock strong, .rf-database-metric strong, .rf-database-regions strong, .rf-database-row time strong { color: #30483a; font: 700 13px Georgia,serif; }
.rf-database-stock span, .rf-database-metric span, .rf-database-regions span, .rf-database-row time span { overflow: hidden; color: #8b948d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.rf-database-stock > i { width: 100%; height: 4px; overflow: hidden; border-radius: 5px; background: #dde1da; }
.rf-database-stock > i b { display: block; height: 100%; background: #5c815e; }
.rf-database-open { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #456653; border-radius: 4px; color: #fff; background: #345440; font: 800 7px monospace; text-transform: uppercase; }

.rf-referral-hero { background-image: linear-gradient(90deg,rgba(26,50,40,.98),rgba(31,66,52,.84)),url('/brand/realmforge-citadel-v1.webp'); }
.rf-referral-rate { align-self: center; justify-self: end; width: 190px; height: 150px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(239,204,119,.6); border-radius: 50%; background: radial-gradient(circle,rgba(67,99,75,.92),rgba(12,32,25,.9)); }
.rf-referral-rate > span, .rf-referral-rate small { color: #cfddd3; font: 800 7px monospace; text-transform: uppercase; }
.rf-referral-rate strong { margin: 3px 0; color: #f0d07d; font: 700 50px/1 Georgia,serif; }
.rf-referral-rate sup { font-size: 20px; }
.rf-referral-link-panel { display: grid; grid-template-columns: minmax(220px,.9fr) minmax(300px,1.2fr) auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid #d1d3c8; border-radius: 7px; background: #faf9f2; }
.rf-referral-link-panel h2 { margin: 3px 0; color: #2e4639; font: 700 18px Georgia,serif; }
.rf-referral-link-panel p { margin: 0; color: #879087; font-size: 8px; }
.rf-referral-link { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.rf-referral-link input { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #bfc5bc; border-right: 0; border-radius: 5px 0 0 5px; color: #3c5145; background: #fff; font: 9px monospace; }
.rf-referral-link button { padding: 0 13px; border: 1px solid #3e614c; border-radius: 0 5px 5px 0; color: #fff; background: #3e614c; font: 800 7px monospace; text-transform: uppercase; }
.rf-referral-link-panel > code { padding: 8px; border: 1px dashed #b89a5d; color: #795e21; background: #f4ead0; font-size: 8px; }
.rf-referral-grid { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 10px; }
.rf-referral-steps, .rf-referral-roster { padding: 19px; border: 1px solid #d0d3c8; border-radius: 7px; background: #faf9f2; }
.rf-referral-steps h2, .rf-referral-roster h2 { margin: 3px 0 0; color: #2f463a; font: 700 20px Georgia,serif; }
.rf-referral-steps ol { display: grid; gap: 0; margin: 17px 0 0; padding: 0; list-style: none; }
.rf-referral-steps li { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid #dedfd6; }
.rf-referral-steps li > b { color: #ae873c; font: 700 11px Georgia,serif; }
.rf-referral-steps li div { display: grid; gap: 3px; }
.rf-referral-steps li strong { color: #334a3e; font-size: 9px; }
.rf-referral-steps li span { color: #869088; font-size: 8px; line-height: 1.45; }
.rf-referral-warning { display: flex; gap: 9px; padding: 11px; border: 1px solid #d7b09e; color: #744c40; background: #fff1eb; font-size: 8px; line-height: 1.5; }
.rf-referral-warning p { margin: 0; }
.rf-referral-roster > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rf-referral-table { overflow: hidden; border: 1px solid #d9d9cf; border-radius: 5px; }
.rf-referral-table__head, .rf-referral-table article { display: grid; grid-template-columns: minmax(110px,1fr) 85px 60px 85px 85px; align-items: center; gap: 8px; padding: 0 11px; }
.rf-referral-table__head { min-height: 35px; color: #e7d18e; background: #2f483b; font: 800 6px monospace; text-transform: uppercase; }
.rf-referral-table article { min-height: 49px; border-top: 1px solid #deded4; color: #758078; background: #fffef9; font-size: 8px; }
.rf-referral-table article:nth-child(odd) { background: #f2f3eb; }
.rf-referral-table article strong { color: #32493c; font: 700 10px Georgia,serif; }
.ls-referral-invite { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(198,159,78,.5); border-radius: 6px; color: #e8cc87; background: rgba(177,134,50,.11); }
.ls-referral-invite div { display: grid; gap: 2px; }
.ls-referral-invite strong { color: inherit; font-size: 10px; }
.ls-referral-invite small { color: #bfcbbf; font-size: 8px; }
.ls-turnstile { min-width: 0; }
.ls-turnstile .cf-turnstile { width: 100%; min-height: 65px; overflow: hidden; border-radius: 5px; }

.rf-domain-notice { position: relative; z-index: 30; display: none; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 10px max(18px,calc((100vw - 1320px)/2)); border-bottom: 1px solid #c69b45; color: #f9edca; background: linear-gradient(90deg,#263f33,#3d624d); }
.rf-domain-notice.is-visible { display: grid; }
.rf-domain-notice > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d6b360; border-radius: 50%; color: #e7c66e; }
.rf-domain-notice strong { display: block; color: #fff8e8; font: 700 11px Georgia,serif; }
.rf-domain-notice p { margin: 2px 0 0; color: #cbd9cf; font-size: 8px; }
.rf-domain-notice a { color: #efd27f; font-weight: 800; }
.rf-domain-notice button { border: 0; color: #e9d7a6; background: transparent; font-size: 20px; cursor: pointer; }

@media (max-width: 1080px) {
  .rf-database-table__columns { display: none; }
  .rf-database-row { grid-template-columns: minmax(230px,1.6fr) 120px 75px 90px; }
  .rf-database-row > *::before { content: attr(data-label); color: #929b94; font: 700 6px monospace; text-transform: uppercase; }
  .rf-database-name::before { display: none; }
  .rf-database-row time, .rf-database-open { grid-column: auto; }
  .rf-database-open { min-height: 34px; }
}

@media (max-width: 760px) {
  .rf-database-hero, .rf-referral-hero { grid-template-columns: 1fr; padding: 21px 19px; }
  .rf-database-summary, .rf-referral-stats { grid-template-columns: 1fr 1fr; }
  .rf-database-tabs { grid-template-columns: 1fr 1fr; }
  .rf-database-tabs a:nth-child(2) { border-right: 0; }
  .rf-database-tabs a:nth-child(-n+2) { border-bottom: 1px solid #cfd2c7; }
  .rf-database-feature { width: 100%; }
  .rf-database-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .rf-database-name { grid-column: 1/-1; }
  .rf-database-open { grid-column: 2; }
  .rf-referral-rate { justify-self: start; width: 130px; height: 130px; }
  .rf-referral-rate strong { font-size: 40px; }
  .rf-referral-link-panel, .rf-referral-grid { grid-template-columns: 1fr; }
  .rf-referral-link-panel > code { justify-self: start; }
  .rf-referral-table__head { display: none; }
  .rf-referral-table article { grid-template-columns: 1fr 1fr; gap: 11px; padding-block: 11px; }
  .rf-referral-table article > * { display: grid; gap: 2px; }
  .rf-referral-table article > *::before { content: attr(data-label); color: #929b94; font: 700 6px monospace; text-transform: uppercase; }
  .rf-domain-notice { grid-template-columns: auto 1fr auto; padding-inline: 13px; }
}
