:root {
  --page: #041d33;
  --page-deep: #021425;
  --bar: #0b3557;
  --bar-dark: #082b49;
  --card: #356493;
  --card-hover: #4173a4;
  --line: #0a2741;
  --text: #f4f8ff;
  --muted: #bdd0df;
  --aqua: #65f2e4;
  --blue: #4875ff;
  --green: #2fb853;
  --green-dark: #209443;
  --red: #ef4e55;
  --white: #fff;
  --ink: #183142;
  --font: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--page-deep);
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  background:
    radial-gradient(ellipse 32% 54% at -8% 15%, rgba(23, 85, 113, 0.52), transparent 68%),
    radial-gradient(ellipse 28% 42% at 95% 38%, rgba(53, 18, 255, 0.82), transparent 65%),
    radial-gradient(ellipse 20% 28% at 55% 6%, rgba(39, 19, 220, 0.66), transparent 72%),
    linear-gradient(145deg, #03192c 0%, #05233b 48%, #020e21 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}

.topbar {
  height: 54px;
  background: rgba(49, 99, 143, 0.95);
  border-bottom: 4px solid rgba(1, 19, 37, 0.9);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.topbar-inner {
  max-width: 1020px;
  height: 50px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.logo {
  justify-self: start;
  font: 900 18px var(--font);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 0 #05203a;
}
.logo b {
  color: var(--aqua);
}
.logo span {
  color: #fff;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.data-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d9e6f0;
  font-size: 10px;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24db64;
  box-shadow: 0 0 7px #24db64;
}
.data-status.is-offline .status-dot {
  background: #ff6978;
  box-shadow: 0 0 7px #ff6978;
}
.account-trigger {
  min-width: 78px;
  height: 34px;
  padding: 0 10px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #153d5f;
  border-radius: 17px;
  background: #173f63;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.account-trigger:hover,
.account-trigger.is-authenticated {
  background: #0c2c48;
  color: var(--aqua);
}
.account-avatar {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  border-radius: 50%;
  background: #65f2e4;
  color: #092b45;
  font: 900 10px var(--font);
  text-transform: uppercase;
}
.account-avatar.large {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  font-size: 17px;
}

.page-shell {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 52px;
}
.notice-bar,
.section-bar,
.panel-title {
  background: rgba(9, 52, 86, 0.94);
  border: 2px solid rgba(2, 21, 38, 0.92);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  border-radius: 5px;
}
.notice-bar {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: #f2f7fb;
  font-weight: 700;
}
.notice-bar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex: none;
}

.search-section h1 {
  font: 900 25px var(--font);
  margin: 21px 0 11px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.38);
}
.search-wrap {
  position: relative;
  z-index: 15;
}
.search-bar {
  height: 52px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 3px solid #071f35;
  border-radius: 6px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.33);
  overflow: hidden;
}
.search-icon {
  width: 19px;
  height: 19px;
  margin: 0 11px 0 14px;
  fill: none;
  stroke: #46657b;
  stroke-width: 2;
  stroke-linecap: round;
}
.search-bar input {
  height: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #163047;
  background: #fff;
  font-size: 15px;
  padding: 0;
}
.search-bar input::placeholder {
  color: #8498a7;
}
.kbd-hint {
  color: #8fa0ad;
  border: 1px solid #ced8df;
  border-radius: 3px;
  font: bold 10px Arial;
  padding: 2px 6px;
  margin-right: 9px;
}
.search-go {
  height: 100%;
  border: 0;
  border-left: 2px solid #071f35;
  background: #3c6da0;
  color: white;
  font-weight: 800;
  padding: 0 20px;
}
.search-go:hover:not(:disabled) {
  background: #497bae;
}
.autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  padding: 5px;
  background: #0b3353;
  border: 2px solid #04192b;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.autocomplete-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #17466d;
  background: #356493;
  color: white;
  text-align: left;
}
.autocomplete-item:first-child {
  border-radius: 3px 3px 0 0;
}
.autocomplete-item:last-child {
  border-bottom: 0;
  border-radius: 0 0 3px 3px;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: #4678a9;
}
.ac-main {
  min-width: 0;
}
.ac-name {
  display: block;
  font: bold 14px var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-meta {
  display: block;
  color: #d6e1ea;
  font-size: 10px;
  margin-top: 2px;
}
.ac-price {
  font-weight: 800;
}
.ac-price small {
  font-size: 9px;
  color: #d6e1ea;
  margin-left: 2px;
}
.autocomplete-empty {
  padding: 16px;
  color: #d5e1ea;
  text-align: center;
}
.quick-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 11px 2px 24px;
  color: #abc0d1;
  font-size: 11px;
}
.try-link {
  border: 0;
  border-bottom: 1px solid #6f91ab;
  background: transparent;
  color: #fff;
  padding: 2px 1px;
}
.try-link:hover {
  color: var(--aqua);
  border-color: var(--aqua);
}

.market-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: 14px;
  border: 2px solid #061f36;
  border-radius: 5px;
  background: #0d3c62;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.market-overview div {
  min-width: 0;
  padding: 11px 14px;
  border-left: 1px solid #28577c;
}
.market-overview div:first-child {
  border-left: 0;
}
.market-overview strong {
  display: block;
  color: #fff;
  font: 900 16px var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-overview span {
  display: block;
  margin-top: 2px;
  color: #9ebbd0;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.market-group,
.recent-section {
  margin-top: 18px;
}
.section-bar {
  min-height: 43px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-bar h2 {
  margin: 0;
  font: 900 17px var(--font);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.section-bar > span {
  color: #a9c0d3;
  font-size: 10px;
}
.section-action {
  border: 0;
  background: transparent;
  color: #c9d8e4;
  font-size: 11px;
}
.section-action:hover {
  color: white;
}
.item-stack {
  margin-top: 6px;
}
.quote-head,
.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 0.55fr 0.7fr 0.65fr;
  align-items: center;
  gap: 10px;
}
.quote-head {
  height: 34px;
  padding: 0 14px;
  background: #173f63;
  border: 2px solid #061e33;
  color: #b9ccdc;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.quote-head button {
  border: 0;
  background: transparent;
  color: inherit;
  text-transform: inherit;
  font: inherit;
  text-align: right;
  padding: 0;
}
.quote-head button:hover {
  color: white;
}
.quote-head .r,
.quote-row > .r {
  text-align: right;
}
.tri {
  color: var(--aqua);
}
.quote-row {
  width: 100%;
  min-height: 67px;
  margin: 0 0 6px;
  padding: 8px 14px;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: rgba(53, 100, 147, 0.97);
  color: #fff;
  text-align: left;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  transition:
    background 0.1s,
    transform 0.1s;
}
.quote-row:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
}
a.quote-row {
  text-decoration: none;
}
.quote-row:after {
  content: "⋮";
  display: none;
}
.q-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.q-name {
  font: 900 16px var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}
.q-shouts {
  color: #d8e4ed;
  font-size: 11px;
  text-align: right;
}
.q-price {
  font-weight: 800;
  text-align: right;
}
.q-price small {
  font-size: 9px;
  color: #dbe5ed;
  margin-left: 2px;
}
.q-trend {
  text-align: right;
}
.activity-time {
  font-size: 10px;
  color: #d7e2ea;
  white-space: nowrap;
}
.tick {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  background: #153b5d;
  border: 2px solid #80a6c7;
  border-radius: 5px;
  color: var(--aqua);
  font: 900 11px var(--font);
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.tick.lg {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  font-size: 15px;
}
.tick img {
  display: block;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  image-rendering: pixelated;
}
.tick img[hidden],
.tick-fallback[hidden] {
  display: none;
}
.trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
}
.trend.up {
  background: #1bc950;
  color: #052e18;
}
.trend.down {
  background: #9d2735;
  color: white;
}
.trend.flat {
  background: #365747;
  color: #fff;
}
.panel-foot {
  padding: 8px;
  text-align: center;
}
.load-btn,
.back-btn {
  border: 2px solid #08233c;
  border-radius: 4px;
  background: #386998;
  color: white;
  font-weight: 800;
  font-size: 11px;
  padding: 8px 14px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.load-btn:hover,
.back-btn:hover {
  background: #477aa9;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.item-card {
  min-width: 0;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: #356493;
  color: #fff;
  text-align: left;
  padding: 10px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.item-card:hover {
  background: #4173a4;
}
.item-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.item-meta {
  min-width: 0;
}
.item-name {
  display: block;
  font: 900 13px var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-cat {
  display: block;
  color: #d1dee8;
  font-size: 9px;
  margin-top: 2px;
}
.item-price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 800;
}
.item-price small {
  font-size: 9px;
  color: #d6e2eb;
}
.section-bar.daily-quest-header {
  background: rgba(9, 52, 86, 0.94);
  border-color: rgba(2, 21, 38, 0.92);
}
.daily-quest-header > span {
  color: #a9c0d3;
}
.daily-quest-reset {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.daily-quest-reset strong {
  color: var(--aqua);
  font: 900 12px var(--font);
  font-variant-numeric: tabular-nums;
}
.daily-quest-card {
  margin-top: 6px;
}
.daily-quest-panel {
  padding: 12px;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: linear-gradient(115deg, #3d72a5, #315c8b);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.daily-quest-intro {
  margin-bottom: 9px;
}
.daily-quest-intro strong {
  display: block;
  font: 900 14px var(--font);
}
.daily-quest-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.daily-quest-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 2px solid #173e60;
  border-radius: 5px;
  background: #234f78;
  color: white;
  text-align: left;
}
.daily-quest-item:hover {
  background: #2d608d;
}
.daily-quest-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.daily-quest-item-copy strong {
  overflow: hidden;
  font: 900 14px var(--font);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-quest-item-copy small,
.daily-quest-quantity small {
  color: #c7d9e6;
  font-size: 8px;
}
.daily-quest-quantity {
  display: grid;
  text-align: right;
}
.daily-quest-quantity strong {
  font: 900 17px var(--font);
}
.daily-quest-arrow {
  color: #9ec3dc;
  font: 900 22px var(--font);
}
.daily-quest-message {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: #234f78;
  color: white;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.daily-quest-message-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  border: 2px solid #6f9fc1;
  border-radius: 50%;
  color: var(--aqua);
  font: 900 20px var(--font);
}
.daily-quest-message strong {
  display: block;
  font: 900 14px var(--font);
}
.daily-quest-message p {
  margin: 4px 0 0;
  color: #c8dae6;
  font-size: 9px;
}
.site-footer {
  margin-top: 34px;
  padding: 15px 2px 0;
  border-top: 2px solid rgba(121, 160, 190, 0.45);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9bb3c6;
  font-size: 10px;
}
.site-footer a {
  color: #cce0ee;
  text-decoration: underline;
}
.site-footer a:hover {
  color: white;
}

.skeleton-row,
.skeleton-card,
.skeleton-chart {
  position: relative;
  overflow: hidden;
  background: #2d587f;
}
.skeleton-row {
  height: 67px;
  margin-bottom: 6px;
  border: 2px solid #08233c;
  border-radius: 5px;
}
.skeleton-card {
  height: 85px;
}
.skeleton-chart {
  height: 330px;
  background: #e5ebef;
}
.skeleton-row:after,
.skeleton-card:after,
.skeleton-chart:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.item-page {
  padding-top: 14px;
}
.item-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.item-nav > span {
  font-size: 10px;
  color: #a9bfd0;
}
.item-notice {
  margin-bottom: 8px;
}
.item-layout {
  display: grid;
  grid-template-columns: 34% minmax(0, 66%);
  gap: 9px;
  align-items: start;
}
.item-sidebar {
  display: grid;
  gap: 7px;
}
.market-page {
  padding-top: 14px;
}
.market-heading {
  margin-bottom: 8px;
}
.market-heading h1 {
  margin: 0;
  font: 900 18px var(--font);
}
.market-controls {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 2px solid #061f36;
  border-radius: 5px;
  background: #17486f;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}
.market-search {
  height: 42px;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #08233c;
  border-radius: 4px;
}
.market-search svg {
  width: 18px;
  height: 18px;
  margin: 0 10px;
  fill: none;
  stroke: #46657b;
  stroke-width: 2;
}
.market-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 10px 0 0;
  color: #173047;
  background: white;
}
.market-filter-row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1fr;
  gap: 7px;
}
.market-filter-row label {
  display: grid;
  gap: 3px;
  color: #bdd1df;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.market-filter-row select {
  min-width: 0;
  width: 100%;
  height: 34px;
  border: 2px solid #08233c;
  border-radius: 4px;
  background: #f7fafc;
  color: #173047;
  padding: 0 7px;
  font-size: 10px;
}
.directory-bar {
  margin-top: 14px;
}
.item-hero {
  min-height: 75px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #356493;
  border: 2px solid #08233c;
  border-radius: 5px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.item-hero-main {
  min-width: 0;
  flex: 1;
}
.item-hero-main h1 {
  margin: 0;
  font: 900 17px var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.item-hero-price {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.item-hero-price i {
  font-style: normal;
  color: #17344d;
}
.item-hero-price .trend {
  min-width: 0;
  padding: 2px 4px;
  font-size: 8px;
}
.item-hero-price small {
  font-size: 8px;
}
.item-hero-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: #d6e1e9;
  font-size: 8px;
}
.item-hero-meta b {
  color: #fff;
}
.fav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid #0a2943;
  border-radius: 5px;
  background: #174367;
  color: #d9e7f1;
  padding: 0;
}
.fav-btn svg {
  display: block;
  width: 17px;
  height: 17px;
}
.fav-btn:hover,
.fav-btn.is-fav {
  background: #0c2c48;
  color: #64f1e4;
}
.fav-btn:focus-visible {
  outline: 2px solid #64f1e4;
  outline-offset: 2px;
}
.market-info {
  overflow: hidden;
  border: 2px solid #08233c;
  border-radius: 5px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.panel-title {
  min-height: 39px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  font: 900 14px var(--font);
  border-radius: 3px 3px 0 0;
  box-shadow: none;
}
.stats-row {
  display: grid;
}
.stat-card {
  min-height: 52px;
  padding: 8px 10px;
  background: #2eb852;
  border-top: 2px solid #15863a;
  color: white;
}
.stat-card:first-child {
  border-top: 0;
}
.stat-label {
  font-weight: 900;
  font-size: 10px;
  text-transform: none;
}
.stat-value {
  margin-top: 2px;
  font: 900 14px var(--font);
}
.stat-value small {
  font: 700 9px Arial;
}
.stat-value.pos {
  color: #fff;
}
.stat-value.neg {
  color: #fff;
}
.stat-sub {
  color: #e5ffec;
  font-size: 8.5px;
  margin-top: 1px;
}
.chart-panel {
  overflow: hidden;
  border: 2px solid #08233c;
  border-radius: 5px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  background: white;
}
.chart-title {
  justify-content: space-between;
  gap: 10px;
}
.seg {
  display: flex;
  align-items: center;
  gap: 2px;
}
.seg button {
  border: 1px solid #315978;
  border-radius: 3px;
  background: #0a2e4c;
  color: #bcd0df;
  padding: 4px 7px;
  font: bold 8px Arial;
}
.seg button:hover {
  color: white;
}
.seg button.is-active {
  background: #5c88b1;
  color: white;
  border-color: #7ca4c5;
}
.chart-box {
  background: white;
  padding: 10px;
}
.chart-canvas {
  height: 330px;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.chart-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: #5e7280;
  font-size: 11px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 5px 3px 0;
  color: #627681;
  font-size: 8.5px;
}
.lg-key {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lg-key i {
  width: 13px;
  height: 2px;
  background: #0b456a;
}
.lg-key.vol i {
  width: 7px;
  height: 7px;
  background: #86a9be;
}
.chart-legend #chart-note {
  margin-left: auto;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.item-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}
.tool-panel {
  overflow: hidden;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: #17486f;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.calculator-body {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  align-items: end;
  padding: 12px;
}
.calculator-body label {
  display: grid;
  gap: 4px;
  color: #bdd1df;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.calculator-body input {
  width: 100%;
  height: 39px;
  border: 2px solid #08233c;
  border-radius: 4px;
  background: white;
  color: #173047;
  padding: 0 9px;
  font-weight: 800;
}
.calc-result {
  display: grid;
  gap: 2px;
}
.calc-result span {
  color: #bcd0df;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.calc-result strong {
  font: 900 18px var(--font);
  color: #fff;
}
.calc-result small {
  color: #acd0e2;
  font-size: 8px;
}
.item-info-body {
  min-height: 92px;
  padding: 12px;
  color: #dce8ef;
  font-size: 10px;
  line-height: 1.45;
}
.item-info-body p {
  margin: 5px 0;
}
.item-info-body a {
  display: inline-block;
  margin-top: 6px;
  color: var(--aqua);
  font-weight: 800;
}
.info-type {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 3px;
  background: #356493;
  color: white;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.info-properties {
  color: #a8c5d8;
}
.listings-panel {
  margin-top: 10px;
  overflow: hidden;
  border: 2px solid #08233c;
  border-radius: 5px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  background: #0b3557;
}
.listing-title {
  justify-content: space-between;
}
.listing-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 10px;
  background: #17486f;
  border-top: 2px solid #08233c;
  border-bottom: 2px solid #08233c;
}
.listing-toolbar label {
  display: grid;
  gap: 3px;
  color: #bcd0df;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.listing-toolbar select,
.listing-toolbar input {
  height: 30px;
  min-width: 130px;
  border: 2px solid #082b48;
  border-radius: 3px;
  background: #f8fbfd;
  color: #173047;
  padding: 0 7px;
  font-size: 10px;
  outline: 0;
}
.listing-toolbar select:focus,
.listing-toolbar input:focus {
  border-color: var(--aqua);
}
.listing-meta {
  margin-left: auto;
  padding-bottom: 6px;
  color: #c2d5e3;
  font-size: 9px;
}
.listing-feed {
  display: grid;
  gap: 6px;
  padding: 6px;
  background: rgba(2, 21, 37, 0.65);
}
.listing-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: #356493;
  border: 2px solid #08233c;
  border-radius: 4px;
  color: white;
}
.listing-card:hover {
  background: #3e6f9d;
}
.listing-head {
  display: flex;
  align-items: center;
  gap: 7px;
}
.listing-tag {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 900;
}
.listing-tag.sell {
  background: #23bd51;
  color: #062c16;
}
.listing-tag.buy {
  background: #60c9ff;
  color: #08263a;
}
.listing-price {
  font-weight: 900;
}
.listing-price small {
  font-size: 8px;
  color: #d8e4ec;
}
.listing-time {
  margin-left: auto;
  color: #d3e0e8;
  font-size: 9px;
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: #d7e3eb;
  font-size: 9px;
  padding: 0;
  margin: 0;
}
.listing-msg {
  padding: 7px 9px;
  border-left: 3px solid #73a7ca;
  background: #234f77;
  color: #f1f6fa;
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.listing-msg.is-collapsed {
  max-height: 78px;
  overflow: hidden;
  mask-image: linear-gradient(#000 58%, transparent);
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
}
.listing-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.mini-btn {
  border: 1px solid #143c5d;
  border-radius: 3px;
  background: #204d73;
  color: #e9f3f8;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 800;
}
.mini-btn:hover {
  background: #123b5e;
  color: white;
}
.empty-state {
  padding: 28px 15px;
  text-align: center;
  color: #c4d6e2;
}
.empty-state strong {
  display: block;
  color: white;
}
.empty-state p {
  margin: 4px 0 0;
  font-size: 10px;
}
.accuracy-note {
  color: #9eb7c9;
  font-size: 9px;
  text-align: center;
  margin: 12px 0 30px;
}
.account-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 3px solid #061e33;
  border-radius: 7px;
  background: #0b3557;
  color: white;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.58);
}
.account-dialog::backdrop {
  background: rgba(0, 10, 22, 0.74);
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 2px solid #061e33;
  background: #0a2e4c;
}
.account-head h2 {
  margin: 1px 0 0;
  font: 900 17px var(--font);
}
.account-kicker {
  color: var(--aqua);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dialog-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 3px;
  background: #356493;
  color: white;
  font-size: 19px;
}
.dialog-close:hover {
  background: #497baa;
}
.account-guest,
.account-member {
  padding: 14px;
}
.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: #082b49;
}
.account-tabs button {
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #9ebbd0;
  font-size: 10px;
  font-weight: 900;
}
.account-tabs button.is-active {
  background: #356493;
  color: #fff;
}
.account-form {
  display: grid;
  gap: 10px;
}
.account-intro {
  margin: 0 0 2px;
  color: #c2d5e3;
  font-size: 10px;
  line-height: 1.45;
}
.account-form > label:not(.show-password) {
  display: grid;
  gap: 4px;
  color: #d9e6ef;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.account-form input:not([type="checkbox"]) {
  width: 100%;
  height: 41px;
  padding: 0 10px;
  border: 2px solid #08233c;
  border-radius: 4px;
  background: #fff;
  color: #173047;
  outline: 0;
  text-transform: none;
}
.account-form input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 2px rgba(101, 242, 228, 0.18);
}
.account-form small {
  color: #9db8cc;
  font-size: 8px;
  font-weight: 400;
  text-transform: none;
}
.show-password {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c7d8e4;
  font-size: 9px;
}
.show-password input {
  accent-color: #2fba58;
}
.account-error {
  padding: 8px 9px;
  border: 1px solid #ff8990;
  border-radius: 4px;
  background: #7d2c33;
  color: #fff;
  font-size: 9px;
  line-height: 1.4;
}
.account-submit {
  width: 100%;
  min-height: 41px;
  border: 2px solid #0d5229;
  border-radius: 4px;
  background: #28b955;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.account-submit:hover:not(:disabled) {
  background: #32c761;
}
.account-submit.secondary {
  margin-top: 14px;
  border-color: #153d5f;
  background: #315f88;
}
.account-submit.secondary:hover:not(:disabled) {
  background: #3c709e;
}
.account-fineprint {
  margin: 0;
  color: #93aec1;
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: #356493;
}
.account-identity div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.account-identity strong {
  font: 900 16px var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-identity span:not(.account-avatar) {
  color: #d6e3ec;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-access {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.access-chip {
  padding: 5px 8px;
  border-radius: 4px;
  background: #21bc53;
  color: #062d17;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.access-chip.muted {
  background: #547b9d;
  color: #fff;
}
.permission-summary {
  padding: 11px;
  border: 2px solid #08233c;
  border-radius: 5px;
  background: #123f64;
}
.permission-summary h3 {
  margin: 0;
  font: 900 12px var(--font);
}
.permission-summary p {
  margin: 5px 0 0;
  color: #bfd3e1;
  font-size: 9px;
  line-height: 1.45;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  transform: translate(-50%, 7px);
  padding: 9px 13px;
  border: 2px solid #071e33;
  border-radius: 4px;
  background: #356493;
  color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  font-size: 10px;
  opacity: 0;
  transition: 0.15s;
  pointer-events: none;
}
.toast:not([hidden]) {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #b73b43;
}
.mobile-nav {
  display: none;
}
.flash-up {
  animation: flash-up 0.7s ease;
}
.flash-down {
  animation: flash-down 0.7s ease;
}
@keyframes flash-up {
  0% {
    background: #19cf50;
  }
  to {
    background: transparent;
  }
}
@keyframes flash-down {
  0% {
    background: #ea4b53;
  }
  to {
    background: transparent;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }
  .data-status #status-text {
    display: none;
  }
  .page-shell {
    width: min(100% - 18px, 960px);
  }
  .item-layout {
    grid-template-columns: 1fr;
  }
  .item-sidebar {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-canvas {
    height: 285px;
  }
}
@media (max-width: 520px) {
  body {
    padding-bottom: 64px;
  }
  .logo {
    font-size: 14px;
  }
  .topbar-inner {
    padding: 0 8px;
  }
  .data-status {
    display: none;
  }
  .header-actions {
    gap: 4px;
  }
  .account-trigger {
    min-width: 34px;
    width: 34px;
    padding: 0;
  }
  .account-trigger > span:last-child {
    display: none;
  }
  .page-shell {
    width: calc(100% - 12px);
    padding-top: 10px;
    padding-bottom: 26px;
  }
  .notice-bar {
    font-size: 11px;
  }
  .search-section h1 {
    font-size: 21px;
  }
  .search-bar {
    height: 47px;
  }
  .search-go {
    padding: 0 12px;
    font-size: 11px;
  }
  .kbd-hint {
    display: none;
  }
  .quick-row {
    margin-bottom: 14px;
  }
  .market-overview div {
    padding: 10px 7px;
    text-align: center;
  }
  .market-overview strong {
    font-size: 13px;
  }
  .market-overview span {
    font-size: 7px;
  }
  .section-bar > span {
    display: none;
  }
  .section-bar > .daily-quest-reset {
    display: inline-flex;
  }
  .daily-quest-items {
    grid-template-columns: 1fr;
  }
  .daily-quest-panel {
    padding: 9px;
  }
  .daily-quest-item {
    padding: 9px;
  }
  .quote-head,
  .quote-row {
    grid-template-columns: minmax(0, 1.45fr) 0.65fr 0.6fr;
    padding-left: 9px;
    padding-right: 9px;
  }
  .quote-head .h-shouts,
  .q-shouts {
    display: none;
  }
  .q-name {
    font-size: 13px;
  }
  .tick {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .q-price {
    font-size: 11px;
  }
  .activity-time {
    font-size: 8px;
  }
  .recent-section .card-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 1px 5px;
  }
  .recent-section .item-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .item-layout {
    display: block;
  }
  .item-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }
  .item-nav > span {
    display: none;
  }
  .item-hero-main h1 {
    font-size: 15px;
  }
  .chart-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-title {
    font-size: 13px;
  }
  .chart-canvas {
    height: 250px;
  }
  .chart-legend #chart-note {
    display: none;
  }
  .item-tools-grid {
    grid-template-columns: 1fr;
  }
  .calculator-body {
    grid-template-columns: 0.75fr 1.25fr;
  }
  .listing-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .listing-toolbar label {
    flex: 1;
  }
  .listing-toolbar select,
  .listing-toolbar input {
    width: 100%;
    min-width: 110px;
  }
  .listing-meta {
    width: 100%;
    padding: 0;
  }
  .market-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .market-filter-row label:last-child {
    grid-column: 1/-1;
  }
  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #082b49;
    border-top: 2px solid #315f86;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.35);
  }
  .mobile-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #8faec4;
    font-size: 8px;
    font-weight: 800;
  }
  .mobile-nav button.is-active {
    color: #6df1e4;
    background: #0d3658;
  }
  .mobile-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .toast {
    bottom: 70px;
  }
}

.account-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.45;
  text-transform: none !important;
}
.account-consent input {
  width: auto !important;
  margin-top: 2px;
}
.account-consent a {
  color: #116b50;
  text-decoration: underline;
}
.account-danger {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #d9b9b9;
}
.account-danger h3 {
  margin: 0 0 6px;
  color: #8a1f2c;
}
.account-danger p {
  margin: 0 0 10px;
  color: #704b50;
  font-size: 11px;
  line-height: 1.5;
}
.account-submit.danger {
  background: #a62838;
  border-color: #6f1420;
  color: #fff;
}
.account-submit.danger:hover {
  background: #871c29;
}
.legal-page {
  padding-top: 28px;
  padding-bottom: 60px;
}
.legal-page article {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 28px 32px;
  border: 2px solid #0b3a1c;
  border-radius: 6px;
  background: #f9fff8;
  color: #173523;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
.legal-page h1 {
  margin: 0 0 16px;
  font-size: 28px;
}
.legal-page h2 {
  margin: 26px 0 8px;
  font-size: 16px;
  color: #145127;
}
.legal-page p {
  font-size: 13px;
  line-height: 1.7;
}
.legal-page a {
  color: #0b6942;
  text-decoration: underline;
}
.legal-kicker {
  margin: 0 0 5px !important;
  color: #5e7965;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
}
@media (max-width: 520px) {
  .legal-page article {
    padding: 20px 16px;
  }
  .legal-page h1 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skeleton-row:after,
  .skeleton-card:after,
  .skeleton-chart:after {
    animation: none;
  }
  .quote-row {
    transition: none;
  }
}

.account-verification {
  display: grid;
  gap: 12px;
  padding: 8px 2px 2px;
  text-align: center;
}
.account-verification[hidden] {
  display: none;
}
.verification-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 2px;
  border: 2px solid #286286;
  border-radius: 50%;
  background: #17496f;
  color: #8fded8;
}
.verification-icon.is-success {
  border-color: #239b4b;
  background: #174d2a;
  color: #baff91;
}
.verification-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-verification h3 {
  margin: 0;
  font: 900 18px var(--font);
}
.account-verification p {
  margin: 0 8px 5px;
  color: #c2d5e3;
  font-size: 10px;
  line-height: 1.6;
}
.verification-code-form,
.password-reset-complete-form {
  width: 100%;
  padding-top: 3px;
  text-align: left;
}
.verification-code-form[hidden],
.password-reset-complete-form[hidden],
#password-reset-request-form[hidden],
#password-reset-identifier-field[hidden],
#password-reset-code-field[hidden] {
  display: none;
}
.account-form input.verification-code-input {
  text-align: center;
  font: 900 20px var(--font);
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.account-verification .account-submit.secondary {
  margin-top: 0;
}
.account-link-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #9fc8df;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-link-button:hover {
  color: #fff;
}
.account-link-button.account-forgot {
  justify-self: end;
  margin-top: -7px;
  padding-right: 0;
}
.account-access {
  flex-wrap: wrap;
}
.access-chip.verified {
  background: #dff7dc;
  color: #15552a;
}
