/* Tradetopia v2 visual theme. This file layers presentation over style.css. */

:root {
  --page: #07180c;
  --page-deep: #030d06;
  --bar: #174f28;
  --bar-dark: #0d351b;
  --card: #2c7040;
  --card-hover: #35834a;
  --line: #082a14;
  --text: #f5fff3;
  --muted: #bed6bd;
  --aqua: #baff91;
  --blue: #62bd5e;
  --green: #39c75a;
  --green-dark: #209542;
  --ink: #17311d;
  --sky: #d7f3f3;
  --sky-deep: #93d5ca;
  --gold: #f1cf68;
  --flower-pink: #f08daf;
  --flower-lilac: #b798e8;
}

html {
  overflow-x: hidden;
  background: var(--page-deep);
}

body {
  background:
    radial-gradient(ellipse at 13% 9%, rgba(255, 255, 255, 0.7) 0 7rem, transparent 7.2rem),
    radial-gradient(ellipse at 86% 20%, rgba(255, 255, 255, 0.46) 0 9rem, transparent 9.2rem),
    linear-gradient(180deg, var(--sky) 0, var(--sky-deep) 34rem, #347d4d 70rem, #07180c 110rem);
  background-attachment: fixed;
}

/* App chrome */
.topbar {
  border-bottom-color: #063611;
  background:
    linear-gradient(rgba(3, 34, 10, 0.04), rgba(3, 29, 9, 0.3)),
    radial-gradient(ellipse at 12% 75%, rgba(93, 158, 77, 0.58) 0 24%, transparent 27%),
    radial-gradient(ellipse at 68% 18%, rgba(73, 142, 66, 0.5) 0 27%, transparent 30%),
    radial-gradient(ellipse at 42% 66%, rgba(33, 111, 49, 0.72) 0 31%, transparent 34%),
    linear-gradient(135deg, #226b35, #0e4a24 60%, #0a3c1d);
  background-size:
    auto,
    86px 48px,
    104px 54px,
    72px 44px,
    auto;
  box-shadow:
    inset 0 1px 0 rgba(167, 244, 103, 0.42),
    0 2px 0 #06270d,
    0 8px 22px rgba(0, 0, 0, 0.2);
}

.topbar-inner {
  position: relative;
}
.logo {
  padding: 5px 8px;
  border: 1px solid rgba(182, 255, 129, 0.24);
  border-radius: 5px;
  background: rgba(3, 38, 11, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(210, 255, 177, 0.12),
    0 2px 0 rgba(3, 31, 9, 0.42);
  text-shadow: 0 2px 0 #06280e;
}
.logo b {
  color: #c8ff8b;
}
.data-status {
  color: #f1ffe9;
  text-shadow: 0 1px 2px #073313;
}
.account-trigger {
  border: 2px solid #073912;
  border-radius: 6px;
  background:
    linear-gradient(rgba(5, 50, 15, 0.16), rgba(4, 40, 12, 0.44)),
    radial-gradient(ellipse at 20% 35%, rgba(105, 167, 81, 0.48) 0 24%, transparent 29%),
    radial-gradient(ellipse at 75% 70%, rgba(41, 119, 51, 0.7) 0 31%, transparent 35%),
    linear-gradient(135deg, #216a34, #0b401e);
  background-size:
    auto,
    46px 34px,
    54px 38px,
    auto;
  box-shadow:
    inset 0 1px 0 rgba(191, 255, 137, 0.35),
    0 2px 0 rgba(3, 26, 8, 0.58);
  text-shadow: 0 1px 2px #05280d;
}
.account-trigger:hover,
.account-trigger.is-authenticated {
  background:
    linear-gradient(rgba(24, 111, 35, 0.06), rgba(4, 38, 11, 0.3)),
    radial-gradient(ellipse at 20% 35%, rgba(117, 180, 90, 0.55) 0 24%, transparent 29%),
    radial-gradient(ellipse at 75% 70%, rgba(47, 132, 58, 0.74) 0 31%, transparent 35%),
    linear-gradient(135deg, #28783c, #0d4a23);
  background-size:
    auto,
    46px 34px,
    54px 38px,
    auto;
  color: #d8ffac;
}
.account-avatar {
  border: 1px solid #397d28;
  border-radius: 4px;
  background: #c8ff8b;
  color: #123a1d;
  box-shadow: inset 0 -2px 0 rgba(36, 102, 25, 0.25);
}

/* Emerald City market system */
.notice-bar,
.section-bar,
.panel-title {
  border-color: #0a361d;
  background: linear-gradient(135deg, rgba(21, 94, 51, 0.98), rgba(13, 65, 35, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(241, 207, 104, 0.45),
    0 3px 0 rgba(0, 0, 0, 0.24);
}
.section-bar > span,
.item-nav > span {
  color: #b7d0b5;
}
.section-action {
  color: #d2e2cf;
}

.market-overview {
  border-color: rgba(89, 64, 17, 0.72);
  background:
    url("/_releases/6d5e8c8c439bcae5ab10b99d0aa04357143305cf/static/emerald-garden.svg?v=1") right -48px center / 148px auto no-repeat,
    linear-gradient(120deg, #0d5631, #1f7748);
  box-shadow:
    inset 0 1px 0 rgba(255, 225, 126, 0.6),
    0 4px 12px rgba(5, 38, 18, 0.28);
}
.market-overview div {
  border-left-color: rgba(220, 244, 215, 0.2);
}
.market-overview span {
  color: #cde5c9;
}

.quote-head {
  background: #104829;
  border-color: rgba(9, 48, 25, 0.92);
  color: #d1e5cf;
}
.quote-row,
.item-card,
.item-hero,
.listing-card,
.account-identity {
  border-color: #0a3b21;
  background: linear-gradient(135deg, rgba(43, 124, 74, 0.98), rgba(29, 95, 56, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(225, 247, 220, 0.15),
    0 3px 0 rgba(0, 0, 0, 0.25);
}
.quote-row:hover,
.item-card:hover,
.listing-card:hover {
  background: linear-gradient(135deg, #388e57, #287044);
}
.q-shouts,
.q-price small,
.activity-time,
.item-cat,
.item-price small,
.item-hero-meta,
.listing-time,
.listing-meta {
  color: #d5e7d3;
}
.tick {
  border-color: rgba(211, 238, 203, 0.72);
  background: #104829;
  color: #baff91;
}
.load-btn,
.back-btn {
  border-color: rgba(115, 80, 17, 0.75);
  background: linear-gradient(#3b8a53, #2c7043);
}
.load-btn:hover,
.back-btn:hover {
  background: linear-gradient(#4a9b61, #367f4d);
}
.site-footer {
  padding: 14px;
  border-color: rgba(241, 207, 104, 0.38);
  border-radius: 9px;
  background: rgba(5, 45, 23, 0.48);
  color: #c6dcc3;
}
.site-footer a {
  color: #eff9ec;
}

.skeleton-row,
.skeleton-card {
  background: #285f39;
}
.skeleton-row {
  border-color: #092d15;
}
.market-controls,
.tool-panel,
.listing-toolbar {
  border-color: #0a361d;
  background: linear-gradient(135deg, #195a32, #124727);
}
.market-search,
.market-filter-row select,
.calculator-body input,
.listing-toolbar select,
.listing-toolbar input {
  border-color: #0b3a1c;
}
.market-filter-row label,
.calculator-body label,
.listing-toolbar label,
.calc-result span {
  color: #bed6bd;
}
.item-hero-price i {
  color: #153c20;
}
.fav-btn {
  border-color: #0b381b;
  background: #174c29;
  color: #dcebd9;
}
.fav-btn:hover,
.fav-btn.is-fav {
  background: #0c351a;
  color: #baff91;
}
.fav-btn:focus-visible {
  outline-color: #baff91;
}
.market-info,
.chart-panel,
.tool-panel,
.listings-panel {
  border-color: #082a15;
}
.stat-card {
  border-top-color: #124f2d;
  background: linear-gradient(135deg, #2b7f4b, #20653b);
}
.stat-sub {
  color: #d8ecd4;
}
.chart-box,
.chart-canvas {
  background: #fbfffe;
}
.seg button {
  border-color: #387047;
  background: #0d371d;
  color: #c0d5be;
}
.seg button.is-active {
  border-color: #85b78b;
  background: #4a8c59;
}
.lg-key i {
  background: #24733b;
}
.lg-key.vol i {
  background: #8cb596;
}
.calc-result small,
.item-info-body,
.info-properties {
  color: #b9d4b7;
}
.info-type {
  background: #347846;
}
.listing-panel {
  background: #123e22;
}
.listing-feed {
  background: rgba(2, 25, 8, 0.68);
}
.listing-msg {
  border-left-color: #80b987;
  background: #205e35;
}
.mini-btn {
  border-color: #164d27;
  background: #28693b;
}
.mini-btn:hover {
  background: #164e29;
}
.empty-state {
  color: #c1d6bf;
}
.accuracy-note {
  color: #9fb99e;
}
/* Account and watchlist use the same green system. */
.account-dialog {
  border-color: #061f0e;
  background: #123e22;
}
.account-dialog::backdrop {
  background: rgba(1, 14, 5, 0.76);
}
.account-head {
  border-color: #061f0e;
  background: #0c321a;
}
.dialog-close {
  background: #2c7040;
}
.dialog-close:hover {
  background: #3d8650;
}
.account-tabs {
  border-color: #082a15;
  background: #0b3019;
}
.account-tabs button {
  color: #a9c8a7;
}
.account-tabs button.is-active {
  background: #2c7040;
}
.account-intro,
.account-form > label:not(.show-password),
.show-password {
  color: #c8dcc6;
}
.account-form input:not([type="checkbox"]) {
  border-color: #0b381b;
}
.account-form input:focus {
  border-color: #76be72;
  box-shadow: 0 0 0 2px rgba(113, 188, 109, 0.2);
}
.account-form small,
.account-fineprint {
  color: #9ebd9c;
}
.account-submit.secondary {
  border-color: #174b27;
  background: #2c6e3f;
}
.account-submit.secondary:hover:not(:disabled) {
  background: #39834c;
}
.account-identity {
  border-color: #082a15;
}
.account-identity span:not(.account-avatar) {
  color: #d4e4d1;
}
.access-chip.muted {
  background: #52775a;
}
.permission-summary {
  border-color: #082a15;
  background: #164b29;
}
.permission-summary p {
  color: #bfd7bd;
}
.verification-icon {
  border-color: #397a49;
  background: #164b29;
  color: #baff91;
}
.account-verification p {
  color: #c8dcc6;
}
.account-link-button {
  color: #bcdab9;
}
.account-link-button:hover {
  color: #fff;
}
.access-chip.verified {
  background: #dff7dc;
  color: #15552a;
}
.toast {
  border-color: #071f0f;
  background: #2c7040;
}

.mobile-nav {
  background: #0d351b;
  border-top-color: #347246;
}
.mobile-nav button {
  color: #91b294;
}
.mobile-nav button.is-active {
  color: #c3ff9b;
  background: #174a28;
}

/* Shared product rhythm: readable type, full touch targets, and consistent chrome. */
html {
  scroll-padding-block: 80px 100px;
}
body {
  font-size: 16px;
  line-height: 1.5;
}
:focus-visible {
  outline: 3px solid #ffd570;
  outline-offset: 3px;
}
main:focus,
h1[tabindex]:focus {
  outline: none;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
input,
select {
  font-size: 16px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  transform: translateY(-180%);
  border: 2px solid #174d29;
  border-radius: 8px;
  background: #f5ffdf;
  color: #123e27;
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
}
.noscript-note {
  margin: 24px;
  padding: 20px;
  background: #f5ffdf;
  color: #123e27;
}
.noscript-note a {
  text-decoration: underline;
}
.topbar {
  height: 68px;
}
.topbar-inner {
  height: 64px;
  padding-inline: 20px;
}
.logo {
  font-size: 23px;
  padding: 7px 10px;
}
.account-trigger {
  width: auto;
  min-width: 90px;
  height: 44px;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  font-size: 14px;
}
.account-trigger > span:last-child {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: 15px;
}
.data-status {
  font-size: 12px;
}
.page-shell {
  width: min(960px, calc(100% - 40px));
}
.section-bar {
  min-height: 52px;
  gap: 12px;
  padding: 12px 16px;
}
.section-bar h2,
.market-heading h1 {
  font: 900 20px/1.3 var(--font);
}
.section-bar > span {
  font-size: 12px;
}
.section-action {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
}
.back-btn,
.load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font: 800 14px/1.4 var(--font);
}
.panel-foot {
  padding: 12px;
}
.quote-head,
.quote-row {
  grid-template-columns: minmax(0, 1fr) 90px 115px 90px;
  gap: 12px;
  padding-inline: 16px;
}
.quote-head {
  min-height: 36px;
  font-size: 11px;
}
.quote-row {
  min-height: 76px;
}
.q-item {
  gap: 12px;
}
.q-name {
  font: 800 16px/1.35 var(--font);
  white-space: normal;
  overflow-wrap: anywhere;
}
.q-price {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.q-price small {
  font-size: 11px;
  margin-left: 4px;
}
.q-shouts,
.activity-time {
  font-size: 12px;
}
.tick {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.item-name {
  font-size: 16px;
  white-space: normal;
}
.item-price {
  font-size: 20px;
}
.item-price small,
.item-cat {
  font-size: 12px;
}
.site-footer {
  gap: 12px;
  font-size: 12px;
  line-height: 1.8;
}
.site-footer a {
  display: inline-block;
  padding-block: 6px;
}

/* Market directory and item detail. */
.market-controls {
  padding: 16px;
  gap: 14px;
  border-radius: 8px;
}
.market-search {
  height: 48px;
  border-radius: 6px;
}
.market-filter-row {
  gap: 12px;
}
.market-filter-row label,
.listing-toolbar label,
.calculator-body label {
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.market-filter-row select,
.listing-toolbar select,
.listing-toolbar input {
  height: 44px;
  padding-inline: 10px;
  font-size: 16px;
  border-radius: 6px;
}
#market-reset {
  justify-self: start;
  padding-left: 0;
  color: #e0ffcb;
}
.market-filter-disclosure > summary {
  display: none;
  min-height: 44px;
  align-content: center;
  color: #e3f7d7;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.market-filter-disclosure[open] .market-filter-row {
  margin-block: 8px;
}
.directory-bar {
  margin-top: 24px;
}
.item-nav {
  margin-bottom: 16px;
}
.item-nav > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #17482c;
}
.notice-bar {
  padding: 12px 14px;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.item-notice {
  margin-bottom: 16px;
}
.item-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 16px;
}
.item-sidebar {
  gap: 16px;
}
.item-hero {
  padding: 18px 14px;
  gap: 12px;
  align-items: flex-start;
  border-radius: 8px;
}
.item-hero-main h1 {
  font: 900 23px/1.3 var(--font);
  white-space: normal;
  overflow-wrap: anywhere;
}
.item-hero .tick.lg {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}
.item-hero-price {
  font-size: 26px;
  line-height: 1.4;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.item-hero-price small {
  font-size: 14px;
}
.item-hero-price .trend {
  font-size: 11px;
  padding: 3px 5px;
}
.item-price-caption {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #e0efd6;
}
.item-hero-meta {
  font-size: 12px;
  gap: 4px 6px;
  line-height: 1.6;
}
.fav-btn {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 6px;
}
.fav-btn svg {
  width: 22px;
  height: 22px;
}
.market-info,
.chart-panel,
.tool-panel,
.listings-panel {
  border-radius: 8px;
}
.panel-title {
  margin: 0;
  min-height: 50px;
  padding: 12px 14px;
  font: 900 17px/1.3 var(--font);
}
.panel-title h2 {
  margin: 0;
  font: inherit;
}
.stat-card {
  padding: 12px 14px;
}
.stat-label {
  font-size: 13px;
  color: #e6f8dc;
}
.stat-value {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.stat-value small {
  font-size: 12px;
}
.stat-sub {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}
.seg {
  gap: 4px;
}
.seg button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 5px;
  font: 800 12px/1 var(--body);
}
.seg button.is-active {
  background: #c1f493;
  border-color: #a3d278;
  color: #163c23;
}
.chart-title {
  flex-wrap: wrap;
}
.chart-box {
  padding: 14px 10px;
}
.chart-canvas {
  height: 280px;
}
.chart-canvas[aria-busy="true"] {
  opacity: 0.5;
}
.chart-legend {
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: #3f604b;
}
.chart-explorer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #d6e5d9;
  color: #264f34;
  font-size: 12px;
}
.chart-explorer input {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: #216437;
}
.chart-readout {
  min-height: 40px;
  margin: 2px 4px 0;
  color: #214c32;
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.chart-readout:empty {
  display: none;
}
.chart-empty {
  padding: 20px;
  text-align: center;
  font-size: 15px;
  gap: 12px;
  align-content: center;
}
.chart-empty button {
  min-height: 44px;
  font-size: 15px;
  color: #1a6336;
}
.item-tools-grid {
  gap: 16px;
  margin-top: 20px;
}
.calculator-body {
  gap: 16px;
  padding: 16px;
  align-items: center;
}
.calculator-body input {
  min-height: 48px;
  font-size: 18px;
  border-radius: 6px;
}
.calc-result {
  min-width: 0;
}
.calc-result span {
  font-size: 11px;
}
.calc-result strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.calc-result small {
  font-size: 12px;
}
.item-info-body {
  font-size: 14px;
  line-height: 1.65;
  padding: 16px;
}
.item-info-body a {
  padding-block: 10px;
}
.info-type {
  font-size: 11px;
}
.listings-panel {
  margin-top: 24px;
}
.listing-title {
  gap: 12px;
  flex-wrap: wrap;
}
.listing-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.listing-toolbar label {
  min-width: 0;
}
.listing-toolbar input,
.listing-toolbar select {
  width: 100%;
  min-width: 0;
}
.listing-toolbar .listing-meta {
  grid-column: 1/-1;
  font-size: 13px;
}
.listing-feed {
  padding: 10px;
  gap: 10px;
}
.listing-card {
  padding: 14px;
  gap: 10px;
  border-radius: 7px;
}
.listing-head {
  flex-wrap: wrap;
  gap: 8px;
}
.listing-tag {
  padding: 4px 8px;
  font-size: 11px;
}
.listing-price {
  font-size: 19px;
}
.listing-price small,
.listing-time,
.listing-meta {
  font-size: 12px;
}
.listing-meta {
  overflow-wrap: anywhere;
}
.listing-msg {
  font-size: 14px;
  line-height: 1.65;
  padding: 12px;
}
.listing-msg.is-collapsed {
  max-height: 116px;
}
.listing-actions {
  gap: 8px;
}
.mini-btn {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 5px;
}
.accuracy-note {
  font-size: 13px;
  line-height: 1.7;
  color: #e1efda;
}
.empty-state {
  padding: 32px 20px;
}
.empty-state strong {
  font-size: 18px;
}
.empty-state p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.empty-state .load-btn {
  margin-top: 16px;
}
.item-page.has-error .market-info,
.item-page.has-error .chart-panel,
.item-page.has-error .item-tools-grid,
.item-page.has-error .listings-panel,
.item-page.has-error .accuracy-note {
  display: none;
}
.item-page.has-error .item-layout {
  display: block;
}
.item-page.has-error .item-hero {
  justify-content: center;
}

/* Global feedback. */
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 24px;
  border-radius: 6px;
}
.toast {
  width: max-content;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.legal-page p {
  font-size: 16px;
}
.legal-page h2 {
  font-size: 20px;
}
.legal-page > .back-btn {
  color: #f5fff3;
  text-decoration: none;
}

@media (max-width: 800px) {
  .item-layout {
    grid-template-columns: 1fr;
  }
  .item-sidebar {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    border-top: 1px solid #124f2d;
  }
  .item-hero-main h1 {
    font-size: 25px;
  }
  .item-tools-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  body,
  body.account-site {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .topbar-inner {
    padding-inline: 14px;
  }
  .page-shell {
    width: calc(100% - 28px);
  }
  .logo {
    font-size: 21px;
  }
  .account-trigger {
    min-width: 82px;
  }
  .account-trigger > span:last-child {
    max-width: 95px;
  }
  .data-status {
    display: none;
  }
  .market-filter-disclosure > summary {
    display: list-item;
  }
  .mobile-nav {
    position: fixed;
    z-index: 45;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(70px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 2px solid #447d4d;
    box-shadow: 0 -4px 18px #061f1633;
  }
  .mobile-nav :is(a, button) {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #c3d7c6;
    font: 700 11px/1.3 var(--body);
  }
  .mobile-nav .is-active,
  .mobile-nav [aria-current="page"] {
    color: #d2ffa9;
    background: #1c4e2d;
    box-shadow: inset 0 3px #baff91;
  }
  .mobile-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body:has(input:not([type="range"]):not([type="checkbox"]):focus, select:focus, textarea:focus)
    .mobile-nav {
    display: none;
  }
  .toast,
  .account-site .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  body:has(input:focus, select:focus) .toast {
    bottom: 16px;
  }
  .quote-head,
  .quote-row {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 3px 12px;
    padding: 12px;
  }
  .quote-head {
    padding-block: 8px;
  }
  .quote-head > :last-child,
  .quote-head .h-shouts,
  .q-shouts {
    display: none;
  }
  .q-item {
    grid-row: 1/3;
  }
  .q-price {
    grid-column: 2;
    align-self: end;
  }
  .q-trend {
    grid-column: 2;
    align-self: start;
  }
  .q-name {
    font-size: 15px;
  }
  .activity-time {
    font-size: 12px;
  }
  .section-bar > span {
    display: block;
  }
  .section-bar {
    flex-wrap: wrap;
  }
  .section-bar h2,
  .market-heading h1 {
    font-size: 18px;
  }
  .item-nav > span {
    display: none;
  }
  .item-layout {
    display: grid;
    gap: 16px;
  }
  .item-sidebar {
    margin-bottom: 0;
  }
  .item-hero {
    gap: 10px;
    padding: 16px 12px;
    flex-wrap: wrap;
  }
  .item-hero-main h1 {
    font-size: 23px;
  }
  .item-hero .tick.lg {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .item-hero-meta {
    font-size: 12px;
  }
  .item-price-caption {
    font-size: 12px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-card {
    padding: 12px;
  }
  .chart-title,
  .listing-title {
    flex-direction: row;
    align-items: center;
  }
  .chart-title .seg,
  .listing-title .seg {
    flex: 1 0 100%;
  }
  .seg button {
    flex: 1;
  }
  .listing-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  .listing-toolbar label:first-child {
    grid-column: 1/-1;
  }
  .listing-time {
    font-size: 12px;
  }
  .listing-feed {
    padding: 8px;
  }
  .listing-card {
    padding: 12px;
  }
  .listing-actions .mini-btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 359px) {
  .logo {
    font-size: 18px;
    padding-inline: 6px;
  }
  .account-trigger {
    min-width: 76px;
    padding-inline: 5px;
  }
  .item-hero .tick.lg {
    display: none;
  }
  .item-hero-price {
    font-size: 24px;
  }
  .calculator-body {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Account collections are first-class destinations on every screen. */
.desktop-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.desktop-nav a {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  color: #edffda;
  font: 800 15px/1.5 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  border-color: #94c77c;
  background: #082d1c;
  box-shadow: inset 0 2px 2px #00170c55;
}
.topbar-inner {
  gap: 20px;
}
.header-actions {
  margin-left: 0;
}
#back-home {
  min-height: 44px;
}
@media (max-width: 700px) {
  .desktop-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}
