@layer feature-layout;
@layer feature-layout {
: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-card-hero {
  height: 96px;
}
.skeleton-card-listing {
  height: 80px;
}
.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;
}

}
@layer feature-layout {
/* Emerald game panels keep account controls in the market’s visual language. */
.account-site {
  background:
    url("/_releases/3aea3df4b649949c74784efc046265d1161c0260/static/emerald-city.svg") center 66px / 1200px 240px repeat-x,
    linear-gradient(180deg, #d8f3e1 0, #a2d4b5 620px, #6eae8b 1200px);
  background-attachment: scroll;
  background-color: #a2d4b5;
  color: #f4fff6;
  min-height: 100dvh;
  padding-bottom: 0;
  font-size: 16px;
  line-height: 1.55;
}
.account-site [hidden] {
  display: none !important;
}
.account-site .topbar {
  position: static;
}
.account-site .topbar-inner {
  display: flex;
  gap: 20px;
}
.account-site .market-link {
  margin-left: auto;
  color: #f4fff6;
  font-size: 16px;
}
.account-trigger {
  text-decoration: none;
}
.account-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
}
.account-layout.is-guest {
  display: block;
  max-width: 540px;
}
.account-content {
  min-width: 0;
  grid-column: 2;
}
.page-heading {
  margin-bottom: 24px;
}
.page-heading h1 {
  color: #123e27;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  margin: 0;
}
.account-nav {
  display: grid;
  gap: 6px;
}
.account-nav a {
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #17462d;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}
.account-nav a:hover {
  background: #c2dfcb;
}
.account-nav a[aria-current="page"] {
  background: #185c36;
  border-color: #0b3920;
  color: white;
  box-shadow: 0 3px 0 #a4c5ae;
}
.account-site #account-logout {
  margin: 16px 0;
  color: #244d35;
}
.account-panel,
.account-guest {
  background:
    linear-gradient(135deg, #ffffff06 0 20%, transparent 20% 80%, #031e160d 80%),
    linear-gradient(180deg, #286d43, #195638);
  border: 3px solid #0b3422;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow:
    0 6px 0 #0c3825,
    0 9px 0 #507b5666,
    0 16px 24px #173c3226,
    inset 0 2px 0 #baff915e,
    inset 2px 0 0 #8db86b33,
    inset 0 -3px 0 #072b244d;
}
.account-site h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 20px;
}
.account-site p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.account-site .account-form {
  display: grid;
  gap: 20px;
  margin: 0;
}
.account-site .account-form label,
.account-site .item-search-field > label {
  display: grid;
  gap: 8px;
  color: #f4fff6;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.account-site input:not([type="checkbox"]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 2px solid #7fad90;
  border-radius: 7px;
  background: #fafffb;
  color: #143822;
  font:
    400 17px/1.4 system-ui,
    sans-serif;
  box-shadow: none;
  scroll-margin-block: 24px;
}
.account-site input::placeholder {
  color: #5b7062;
  opacity: 1;
}
.account-site input:focus {
  border-color: #c6fc88;
  outline: 3px solid #c6fc8855;
  outline-offset: 1px;
  box-shadow: none;
}
.account-site input[readonly] {
  background: #deeee3;
}
.account-site .account-form small,
.account-site .field-help {
  color: #d4e7d9;
  font:
    400 15px/1.5 system-ui,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.account-site .account-form > p {
  margin: -8px 0 0;
}
.account-site .password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.account-site .password-field input {
  padding-right: 13px;
}
.account-site .password-toggle {
  min-height: 48px;
  min-width: 66px;
  padding: 0 10px;
  border: 2px solid #7fad90;
  border-radius: 5px;
  background: #e2f1e6;
  color: #174b2d;
  font:
    700 15px/1 system-ui,
    sans-serif;
  cursor: pointer;
}
.account-site .password-toggle:hover {
  background: #cce7d5;
}
.account-site .account-tabs {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 26px;
  border: 0;
  background: transparent;
}
.account-tabs a {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  font-size: 16px;
  color: #d6ebdc;
  border-bottom: 3px solid #447c5b;
  text-decoration: none;
  font-weight: 800;
}
.account-tabs a.is-active {
  color: #d3ffa9;
  border-color: #baff91;
}
.account-site .account-submit,
.account-site .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 2px solid #a3d278;
  border-radius: 7px;
  background: #c1f493;
  color: #173b22;
  text-decoration: none;
  font:
    800 16px/1.35 system-ui,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 0 #0a3020;
}
.account-site .account-submit:hover {
  background: #d6ffb3;
}
.account-site .secondary-button,
.account-site .account-submit.secondary {
  border-color: #739f84;
  background: #225f40;
  color: #f5fff7;
}
.account-site button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.account-site .account-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #dbffbd;
  font:
    700 16px/1.4 system-ui,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.account-site .account-forgot {
  justify-self: end;
  margin: -12px 0 -4px;
}
.account-site .account-consent {
  display: block !important;
  color: #e1eee5 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6;
  padding: 8px 0;
  cursor: pointer;
}
.account-consent input {
  width: 22px;
  height: 22px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: #baff91;
}
.account-consent a {
  color: #dbffbd;
  text-decoration: underline;
}
.account-site .account-error {
  color: #7c1e1e;
  background: #fff0ed;
  border: 1px solid #e2a79e;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
}
.account-site .success-message {
  background: #e3f7d7;
  color: #22552a;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 16px;
}
.account-site .success-message:empty {
  display: none;
}
.account-site .account-verification {
  text-align: left;
  padding: 0;
}
.account-site .account-verification > .account-submit {
  width: 100%;
  margin-top: 20px;
}
.account-site .account-verification > .account-link-button {
  display: flex;
  margin: 12px auto 0;
}
.account-site .verification-code-input {
  font-size: 22px !important;
  letter-spacing: 0.2em;
  text-align: left;
}
.profile-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.profile-heading h2 {
  margin-bottom: 8px;
}
.account-site .account-avatar.large {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  font-size: 30px;
  flex-shrink: 0;
}
.profile-details {
  margin: 24px 0;
}
.profile-details > div {
  padding: 16px 0;
  border-top: 1px solid #48795b;
}
.profile-details dt {
  color: #cde2d4;
  font-size: 15px;
  margin-bottom: 5px;
}
.profile-details dd {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.plan-badge,
.status-badge {
  display: inline-block;
  color: #d0ffa8;
  font-size: 15px;
  font-weight: 800;
}
.verified-label {
  color: #d0ffa8;
  font-size: 14px;
  margin-left: 10px;
}
.account-site summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-size: 16px;
}
.account-site details[open] summary {
  margin-bottom: 16px;
}
.account-site .danger-panel {
  margin-top: 24px;
  background: #f8f2ed;
  color: #5c2727;
  border-color: #cbaaaa;
}
.account-site .danger-panel label {
  color: #5c2727;
}
.account-site .account-submit.danger {
  background: #8b3333;
  border-color: #a54d4d;
  color: #fff;
}
.account-footer {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.account-footer a {
  color: #28543a;
  min-height: 44px;
  align-content: center;
  font-size: 15px;
  text-decoration: underline;
}
.account-site :focus-visible {
  outline: 3px solid #ffd570;
  outline-offset: 3px;
}
.account-site #account-loading {
  color: #1d4c31;
}
@media (max-width: 700px) {
  .account-layout {
    display: block;
    padding: 24px 16px 40px;
  }
  .account-layout.is-guest {
    padding-top: 28px;
  }
  .account-nav {
    display: flex;
    gap: 4px;
  }
  .account-nav a {
    padding: 10px 4px;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .account-site #account-sidebar {
    margin-bottom: 26px;
  }
  .account-site #account-logout {
    display: flex;
    margin: 8px 0 0 auto;
  }
  .account-panel,
  .account-guest {
    padding: 22px 18px;
    border-radius: 10px;
  }
  .account-site .topbar-inner {
    padding-inline: 16px;
    gap: 10px;
  }
  .account-site .market-link {
    display: none;
  }
  .account-site .account-trigger {
    margin-left: auto;
    min-height: 44px;
  }
  .account-site .account-label {
    max-width: 120px;
  }
  .account-site .logo {
    font-size: 20px;
  }
  .account-site .account-form {
    gap: 22px;
  }
  .account-site .toast {
    bottom: 20px;
    max-width: calc(100% - 32px);
    font-size: 16px;
  }
}

.account-site .form-field {
  display: grid;
  gap: 8px;
}
.account-site .account-consent input {
  width: 22px;
  min-width: 22px;
  height: 22px;
}
.account-site .account-loading {
  color: #1d4c31;
}
.account-site .account-verification > p {
  margin-inline: 0;
  font-size: 16px;
  line-height: 1.6;
}
.account-site input[aria-invalid="true"] {
  border-color: #b44738;
  outline-color: #ffbbad;
}
.account-site .profile-heading > div {
  min-width: 0;
}
.account-site .account-tabs a {
  font-family: var(--body);
  font-size: 16px;
}
.account-site .account-error button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid #ad675b;
  border-radius: 5px;
  background: #fff8f5;
  color: #742c22;
  font-weight: 700;
}
.account-footer {
  flex-wrap: wrap;
  gap: 12px 20px;
}
.account-site .account-footer #account-logout {
  margin: 0;
  font-size: 15px;
}
@media (max-width: 700px) {
  .account-site .account-trigger {
    min-width: 82px;
  }
  .account-site .account-trigger > span:last-child {
    display: block;
    max-width: 90px;
  }
  .account-site .account-nav {
    padding: 4px;
    border: 1px solid #a5c7af;
    border-radius: 9px;
    background: #cde3d4;
  }
  .account-site .account-nav a {
    font-size: 14px;
    min-height: 48px;
  }
  .account-site #account-sidebar {
    margin-bottom: 18px;
  }
  .account-site .page-heading {
    margin-bottom: 20px;
  }
  .account-site .account-layout {
    padding-top: 24px;
  }
  .account-site .account-tabs {
    gap: 4px;
  }
  .account-site .account-tabs a {
    padding-inline: 2px;
  }
}

/* Raised account tabs echo the bevelled blocks and warm highlights of the site. */
.account-site h1,
.account-site h2,
.account-site h3 {
  font-family: var(--font);
}
.account-site .page-heading h1 {
  text-shadow: 0 2px 0 #efffd299;
}
.account-site .account-nav {
  padding: 8px;
  gap: 12px;
  border: 2px solid #497756;
  border-radius: 12px;
  background: #6da47c;
  box-shadow:
    inset 0 2px 3px #284c3d55,
    0 3px 0 #36553c;
}
.account-site .account-nav a,
.account-site .account-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid #103c26;
  border-radius: 7px;
  color: #ebffdc;
  background: linear-gradient(#397b48, #245c37);
  box-shadow:
    inset 0 2px 0 #c5ff9660,
    inset 0 -2px 0 #072f2366,
    0 4px 0 #173c29;
  font-family: var(--font);
  transition: background 0.15s;
}
.account-site .account-nav a[aria-current="page"],
.account-site .account-tabs a.is-active {
  color: #143824;
  background: linear-gradient(#d7f19d, #a5d975);
  border-color: #214d2f;
  box-shadow:
    inset 0 2px 0 #f5ffc4,
    inset 0 -2px 0 #79a853,
    0 4px 0 #173c29;
}
.account-site .account-nav a:hover,
.account-site .account-tabs a:hover {
  filter: brightness(1.08);
}
.account-site .account-tabs {
  gap: 10px;
  margin-bottom: 28px;
}
.account-site .account-submit,
.account-site .secondary-button {
  font-family: var(--font);
  box-shadow:
    inset 0 2px 0 #efffd94d,
    inset 0 -2px 0 #0b312533,
    0 4px 0 #0a3020;
}
.account-site .account-submit:active,
.account-site .secondary-button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 2px #153f3655,
    0 2px 0 #0a3020;
}
.account-site .account-error,
.account-site .success-message {
  box-shadow: 0 3px 0 #25433033;
}
.account-site .profile-heading {
  padding-bottom: 20px;
  border-bottom: 2px solid #6d9c5955;
}
.account-site .profile-details {
  margin-top: 0;
}
.account-site .account-avatar.large {
  box-shadow:
    inset 0 2px 0 #c9f595,
    0 4px 0 #0a3020;
  border: 2px solid #102f20;
}
@media (min-width: 701px) {
  .account-nav {
    position: sticky;
    top: 24px;
  }
}
@media (max-width: 700px) {
  .account-site {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    background-size:
      900px 180px,
      auto;
  }
  .account-site .account-nav {
    gap: 10px;
    padding: 8px;
  }
  .account-site .account-nav a {
    font-size: 16px;
  }
  .account-site .toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

}
@layer feature-layout {
.activity-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px clamp(20px, 3vw, 48px) 64px;
  font-size: 14px;
}
.activity-layout *,
.activity-layout *::before,
.activity-layout *::after {
  box-sizing: border-box;
}
.activity-layout .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.activity-layout [hidden] {
  display: none !important;
}
.activity-layout a {
  color: var(--text);
  text-underline-offset: 3px;
}
.activity-layout a:hover {
  color: var(--primary, #32e7b7);
}
.activity-layout h1 {
  margin: 0 0 6px;
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.activity-layout h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.activity-layout p {
  line-height: 1.55;
}
.activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.activity-heading p {
  margin: 0;
  color: var(--muted);
}
.activity-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font-size: 13px;
}
.activity-coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  text-decoration: none;
}
.activity-coverage-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55deb0;
}
.activity-coverage-badge[data-partial="true"]::before {
  background: #e5c784;
}
.activity-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.activity-panel {
  border: 1px solid var(--panel-rim, var(--line));
  border-radius: 14px;
  background: var(--panel-face, var(--surface));
  box-shadow: var(--panel-elevation, 0 6px 20px #031d3026);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.activity-panel {
  padding: 24px;
}
.activity-layout button,
.activity-layout input,
.activity-layout select {
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  color: var(--text);
  background: var(--control-face);
}
.activity-layout input,
.activity-layout select {
  min-width: 0;
}
.activity-layout button {
  cursor: pointer;
  font-weight: 700;
}
.activity-layout button:hover {
  background: var(--control-hover);
}
.activity-layout button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.activity-layout .activity-primary {
  background: #32e7b7;
  color: #062f2a;
  border-color: #32e7b7;
}
.activity-layout :focus-visible {
  outline: 2px solid #24d8c0;
  outline-offset: 4px;
}
.activity-layout label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.activity-layout svg {
  flex-shrink: 0;
}
.activity-filter-bar {
  padding: 0;
}
.activity-quick-filters {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 1fr auto;
  align-items: end;
  gap: 18px;
}
.activity-quick-filters label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.activity-quick-filters select {
  width: 100%;
  font-size: 13px;
}
#activity-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border-color: transparent;
  white-space: nowrap;
}
#activity-filter-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
#activity-filter-toggle[aria-expanded="true"] {
  background: var(--control-face);
}
.activity-filter-fields {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr auto;
  align-items: end;
  gap: 16px;
  padding: 18px 0 4px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.activity-filter-fields input,
.activity-filter-fields select {
  width: 100%;
}
.activity-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin: 2px 2px 6px;
}
.activity-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-status[data-error="true"] {
  color: #ffbbc3;
}
.activity-kpis {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.85fr 0.85fr;
  overflow: hidden;
  padding: 12px 0;
  background: var(--panel-face, var(--surface));
  border-radius: 12px;
  border: 1px solid var(--line);
}
.activity-kpi {
  padding: 0 26px;
  min-width: 0;
}
.activity-kpi + .activity-kpi {
  border-left: 1px solid var(--line);
}
.activity-kpi-label {
  font-size: 13px;
  color: var(--muted);
}
.activity-kpi strong {
  display: block;
  font-size: 29px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 6px 0;
}
.activity-kpi-primary strong {
  font-size: 32px;
}
.activity-kpi small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.activity-view-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 18px;
}
.activity-layout .activity-view-tabs button {
  position: relative;
  padding: 10px 2px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.activity-view-tabs button[aria-selected="true"] {
  color: var(--text);
}
.activity-view-tabs button[aria-selected="true"]::after {
  position: absolute;
  content: "";
  height: 3px;
  background: #32e7b7;
  border-radius: 3px 3px 0 0;
  bottom: -1px;
  left: 0;
  right: 0;
}
.activity-muted,
.activity-context {
  color: var(--muted);
  font-size: 12px;
}
.activity-trends,
.activity-comparisons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.activity-trends > *,
.activity-comparisons > * {
  min-width: 0;
}
.activity-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.activity-section-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.activity-section-heading p {
  margin: 6px 0 0;
}
#activity-interval {
  display: inline-block;
  margin-top: 4px;
}
.activity-chart {
  margin: 18px 0 10px;
  border-radius: 10px;
  background: #091e30;
  overflow: hidden;
  min-height: 180px;
}
.activity-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
}
.activity-chart text {
  fill: #b9d1df;
  font:
    12px "Nunito Sans",
    sans-serif;
}
.activity-chart .grid {
  stroke: #2b4b60;
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.activity-chart .posts-line {
  stroke: #32e7b7;
  fill: none;
  stroke-width: 2.5;
}
.activity-chart .accounts-line {
  stroke: #e5c784;
  fill: none;
  stroke-width: 2.5;
}
.activity-chart circle {
  fill: #091e30;
}
.activity-chart .selected-point {
  stroke-width: 4;
  r: 4px;
}
.activity-chart-empty {
  min-height: 220px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #b9d1df;
}
.activity-chart-inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.activity-chart-inspector output {
  display: grid;
  gap: 2px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
}
.activity-chart-inspector strong {
  font-size: 13px;
  color: var(--text);
}
.activity-layout .activity-chart-inspector input {
  min-height: 44px;
  max-width: 170px;
  width: 32%;
  padding: 0;
  border: 0;
  accent-color: #32e7b7;
  background: transparent;
}
.activity-layout summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-size: 13px;
}
.activity-chart-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.activity-chart-details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.activity-chart-details summary {
  color: var(--muted);
}
.activity-leaders-panel {
  display: flex;
  flex-direction: column;
}
.activity-leaders-panel > p {
  margin: 6px 0 14px;
}
.activity-leader {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.activity-leader-position {
  color: var(--muted);
  font-size: 11px;
}
.activity-leader a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
  padding: 4px 0;
}
.activity-leader strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.activity-leader-bar {
  height: 4px;
  margin: 5px 0 4px;
  background: #0e324a88;
  border-radius: 4px;
  overflow: hidden;
}
.activity-leader-bar i {
  display: block;
  height: 100%;
  background: #55deb0;
  border-radius: inherit;
}
.activity-layout .activity-text-button {
  text-align: left;
  min-height: 44px;
  background: transparent;
  padding: 10px 0;
  border: 0;
  font-size: 13px;
  color: #7debd5;
}
#activity-leaders-more {
  padding: 0;
}
.activity-connections-preview {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.activity-connections-intro h2 {
  font-size: 22px;
}
.activity-connections-intro p {
  margin: 10px 0;
}
.activity-network {
  overflow: auto;
  border-radius: 10px;
}
.activity-network svg {
  display: block;
  width: 100%;
  height: auto;
}
.activity-network .edge {
  stroke: #6097ad;
  stroke-width: 1.5;
  fill: none;
}
.activity-network rect {
  fill: #194d68;
  stroke: #6c9db36b;
}
.activity-network a:hover rect,
.activity-network a:focus rect {
  stroke: #32e7b7;
  stroke-width: 2;
  fill: #215b75;
}
.activity-network text {
  fill: #f0f8fc;
  font:
    12px "Nunito Sans",
    sans-serif;
  text-anchor: middle;
}
.activity-network .node-type {
  fill: #bad5e2;
  font-size: 11px;
}
.activity-network .root rect {
  fill: #15616b;
  stroke: #55deb0;
}
#activity-view-connections > .activity-panel {
  margin-bottom: 20px;
}
.activity-patterns {
  padding: 0 24px;
  margin-bottom: 20px;
}
.activity-pattern-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(220px, 1fr);
  gap: 28px;
  padding: 8px 0;
}
.activity-pattern-grid > * {
  min-width: 0;
}
.activity-pattern-grid h2 {
  font-size: 16px;
}
.activity-scroll {
  overflow-x: auto;
}
.activity-layout table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.activity-layout th,
.activity-layout td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.activity-layout th:first-child,
.activity-layout td:first-child {
  text-align: left;
}
.activity-layout th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.activity-layout td a {
  display: inline-block;
  min-height: 40px;
  padding: 11px 0;
  font-weight: 700;
  text-decoration: none;
}
.activity-layout tbody tr:hover {
  background: #3f8eb31a;
}
.activity-bar-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 12px;
  padding: 14px 0;
  margin: 10px 0;
  border-bottom: 3px solid #0e324a66;
  font-size: 12px;
}
.activity-bar-row::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -3px;
  height: 3px;
  width: var(--activity-share, 0%);
  background: #55deb0;
}
.activity-explorer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.activity-explorer-heading p {
  margin: 5px 0 0;
}
.activity-rank-control {
  grid-template-columns: auto 155px;
  align-items: center;
  gap: 10px !important;
}
.activity-rank-control select {
  font-size: 13px;
}
.activity-entity-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 16px 0;
  margin: 6px 0 0;
  border-bottom: 1px solid var(--line);
}
.activity-layout .activity-entity-tabs button {
  flex-shrink: 0;
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  color: var(--muted);
}
.activity-entity-tabs button[aria-selected="true"] {
  color: #a1f3e4;
  background: #11797538;
  border-color: #66c7bb50;
}
.activity-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  max-width: 580px;
}
.activity-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.activity-search input[type="search"] {
  min-width: 0;
  flex: 1;
  width: 100%;
  background: var(--input-surface);
}
.activity-search button {
  font-size: 13px;
}
.activity-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-search-results a {
  padding: 10px 12px;
  background: var(--control-face);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
#activity-rankings th:nth-child(2),
#activity-rankings td:nth-child(2) {
  text-align: left;
}
#activity-rankings th:first-child,
#activity-rankings td:first-child {
  width: 35px;
  padding-left: 4px;
  padding-right: 4px;
}
.activity-row-number {
  color: var(--muted);
  font-size: 11px;
}
.activity-table-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-table-empty {
  text-align: center;
  padding: 50px 20px;
}
.activity-table-empty p {
  color: var(--muted);
}
.activity-data-notes {
  padding: 0 4px;
  font-size: 12px;
  color: var(--muted);
}
.activity-data-notes > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.activity-data-notes > summary > span:first-child {
  color: var(--text);
  font-weight: 700;
}
.activity-data-notes > summary > span:first-child::before {
  content: "+ ";
}
.activity-data-notes[open] > summary > span:first-child::before {
  content: "− ";
}
.activity-data-notes ul {
  padding-left: 20px;
  line-height: 1.7;
}
.activity-definitions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.activity-evidence {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.activity-evidence h3 {
  font-size: 16px;
}
.activity-evidence ul {
  padding-left: 20px;
  line-height: 1.7;
}
.activity-evidence code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .activity-quick-filters {
    grid-template-columns: 1fr 1.1fr 1fr auto;
    gap: 10px;
  }
  .activity-quick-filters label {
    grid-template-columns: 1fr;
  }
  .activity-panel {
    padding: 20px;
  }
  .activity-patterns {
    padding: 0 20px;
  }
  .activity-connections-preview {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
  }
  .activity-kpi {
    padding: 0 20px;
  }
}
@media (max-width: 800px) {
  .activity-layout {
    padding: 24px 20px 48px;
  }
  .activity-heading {
    align-items: flex-start;
  }
  .activity-heading-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .activity-quick-filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #activity-filter-toggle {
    align-self: end;
    justify-content: flex-start;
  }
  .activity-filter-fields {
    grid-template-columns: 1fr 1fr;
  }
  .activity-layout input,
  .activity-layout select {
    font-size: 16px;
  }
  .activity-kpis {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .activity-kpi {
    padding: 18px 20px;
  }
  .activity-kpi:nth-child(3) {
    border-left: 0;
  }
  .activity-kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .activity-kpi-primary strong {
    font-size: 32px;
  }
  .activity-kpi:not(.activity-kpi-primary) strong {
    font-size: 24px;
  }
  .activity-leaders-panel {
    display: block;
  }
  .activity-leader {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }
  .activity-connections-preview {
    grid-template-columns: 1fr;
  }
  .activity-connections-intro h2 {
    font-size: 20px;
  }
  .activity-connections-intro p {
    margin: 6px 0;
  }
  .activity-pattern-grid {
    grid-template-columns: 1fr;
  }
  .activity-rank-control {
    grid-template-columns: 1fr;
  }
  .activity-explorer-heading {
    align-items: flex-start;
  }
  .activity-data-notes > summary {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 440px) {
  .activity-layout {
    padding: 22px 16px 40px;
  }
  .activity-heading {
    display: block;
    margin-bottom: 16px;
  }
  .activity-heading-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
  }

  .activity-filter-fields {
    grid-template-columns: 1fr;
  }
  .activity-kpi {
    padding: 16px;
  }
  .activity-kpi-label {
    font-size: 12px;
  }
  .activity-kpi-primary strong {
    font-size: 29px;
  }
  .activity-view-tabs {
    gap: 22px;
    margin: 18px 0;
  }
  .activity-view-tabs button {
    font-size: 13px;
  }
  .activity-panel {
    padding: 16px;
  }
  .activity-patterns {
    padding: 0 16px;
  }
  .activity-chart-inspector output {
    font-size: 11px;
  }
  .activity-chart-inspector {
    gap: 8px;
  }
  .activity-explorer-heading {
    flex-direction: column;
    gap: 12px;
  }
  .activity-rank-control {
    grid-template-columns: auto 1fr;
    width: 100%;
  }
  .activity-definitions {
    grid-template-columns: 1fr;
  }
  .activity-layout td,
  .activity-layout th {
    padding: 8px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .activity-panel,
  .activity-kpis,
  .activity-filter-bar {
    background: var(--surface-alt);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@supports not (backdrop-filter: blur(12px)) {
  .activity-panel,
  .activity-kpis,
  .activity-filter-bar {
    background: var(--surface-alt);
  }
}

/* Data first: compact controls, paired trends, and direct exploration. */
.activity-layout .activity-quick-filters label {
  display: block;
  font-size: 0;
}
.activity-quick-filters select {
  background: transparent;
  border-color: var(--line);
}
.activity-quick-filters select:focus {
  background: var(--control-face);
}
.activity-heading .activity-search-trigger {
  background: transparent;
  border-color: var(--line);
  font-size: 13px;
  min-height: 40px;
}
.activity-search-trigger kbd {
  margin-left: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  font: inherit;
}
#activity-results[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.activity-trend-notes {
  margin: -12px 2px 24px;
  font-size: 11px;
  color: var(--muted);
}
.activity-trend-notes > p {
  margin: 0;
}
.activity-trend-notes .activity-chart-details {
  margin-top: 4px;
  border-top: 0;
}
.activity-trend-notes summary {
  min-height: 32px;
  padding: 6px 0;
}
.activity-chart-interval {
  font-size: 11px;
  color: var(--muted);
}
.activity-layout .activity-leader {
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  padding: 10px 8px;
  margin: 0 -8px;
  color: var(--text);
}
.activity-layout .activity-leader:hover {
  background: #6cb8d31a;
}
.activity-leader-name {
  display: block;
  font-weight: 700;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.activity-leader strong {
  min-width: 50px;
  text-align: right;
}
.activity-leader strong small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.activity-leader-bar {
  height: 7px;
  margin-top: 8px;
}
#activity-worlds .activity-leader-bar i {
  background: #81b6ec;
}
.activity-leaders-panel .activity-section-heading {
  align-items: flex-start;
  min-height: 44px;
}
#activity-world-kind {
  font-size: 12px;
  min-height: 36px;
  padding: 5px 8px;
}
.activity-connections-intro label {
  margin-top: 16px;
}
.activity-connections-intro select {
  max-width: 100%;
}
.activity-network:not(.activity-network-preview) svg {
  max-width: 1100px;
  margin: auto;
}
.activity-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 0;
  font-size: 12px;
}
.activity-trail a {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
  background: var(--control-face);
}
.activity-trail a[aria-current="page"] {
  color: #a1f3e4;
  background: #11797538;
}
#activity-rankings tbody tr:has(a) {
  cursor: pointer;
}
.activity-entity-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt, #123b53);
  color: var(--text);
  box-shadow: 0 24px 80px #001a2db3;
}
.activity-entity-dialog::backdrop {
  background: #031d30a6;
  backdrop-filter: blur(5px);
}
.activity-quick-search {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 20px;
}
.activity-quick-results {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}
.activity-quick-results a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--control-face);
}
.activity-quick-results a:hover {
  background: var(--control-hover);
}
@media (max-width: 1100px) {
  .activity-trends {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-pattern-grid,
  .activity-connections-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-connections-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 24px;
  }
  .activity-connections-intro .activity-eyebrow,
  .activity-connections-intro h2,
  .activity-connections-intro p {
    grid-column: 1;
  }
  .activity-connections-intro label {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin-top: 0;
  }
}
@media (max-width: 800px) {
  .activity-layout {
    padding-top: 16px;
  }
  .activity-comparisons {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-heading {
    margin-bottom: 10px;
  }
  .activity-heading p {
    display: none;
  }
  .activity-quick-filters {
    gap: 8px;
  }
  .activity-layout .activity-quick-filters select {
    font-size: 14px;
  }
  .activity-kpi {
    padding: 12px 16px;
  }
  .activity-kpi:not(.activity-kpi-primary) {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .activity-kpi:not(.activity-kpi-primary) strong {
    margin: 0;
    font-size: 18px;
  }
  .activity-kpi:not(.activity-kpi-primary) small {
    display: none;
  }
  .activity-kpis {
    padding: 0;
  }
  .activity-entity-dialog {
    padding: 18px;
  }
  .activity-quick-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .activity-quick-search label:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .activity-connections-intro {
    display: block;
  }
  .activity-connections-intro label {
    margin-top: 12px;
  }
  .activity-kpi:not(.activity-kpi-primary) {
    gap: 6px;
    padding: 10px;
  }
}

.activity-layout .activity-quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.activity-quick-filters #activity-filter-toggle {
  margin-left: auto;
}
.activity-quick-filters select {
  width: auto;
  min-width: 180px;
}
.activity-quick-filters label:nth-child(2) select {
  min-width: 220px;
}
#activity-direct-connections[data-poster="false"] > summary {
  display: none;
}
#activity-direct-connections > summary {
  font-weight: 700;
  font-size: 16px;
}
#activity-direct-connections[open][data-poster="true"] > summary {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.activity-evidence-network .column-label {
  font-size: 11px;
  fill: #9dc4d8;
  letter-spacing: 1px;
}
.activity-evidence-network .shared-bridge rect {
  fill: #245578;
  stroke: #81b6ec;
}
.activity-evidence-network .shared-poster rect {
  fill: #645338;
  stroke: #e5c784;
}
.activity-evidence-network .shared-edge {
  stroke: #b0c3cb;
}
.activity-evidence-network .edge-muted {
  opacity: 0.12;
}
.activity-evidence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.activity-evidence-heading h3 {
  margin: 0;
}
.activity-evidence-heading h3 small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.activity-evidence-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-evidence-metrics span {
  font-size: 11px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.activity-sample-notes {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-shared-paths {
  display: none;
}
@media (max-width: 800px) {
  .activity-layout .activity-quick-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .activity-quick-filters select,
  .activity-quick-filters label:nth-child(2) select {
    width: 100%;
    min-width: 0;
  }
  .activity-quick-filters #activity-filter-toggle {
    margin-left: 0;
  }
  .activity-evidence-network svg {
    display: none;
  }
  .activity-shared-paths {
    display: grid;
    gap: 8px;
  }
  .activity-shared-paths > p {
    color: var(--muted);
    font-size: 12px;
  }
  .activity-shared-path {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .activity-shared-path > span:first-child {
    color: #b8d7f5;
    overflow-wrap: anywhere;
  }
  .activity-shared-path a {
    color: #ead3a7;
  }
  .activity-shared-path small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11px;
  }
}

.activity-heading {
  min-height: 44px;
}

/* Research keeps the established panel material and exposes decisions before charts. */
.activity-research-intro {
  margin-bottom: 16px;
}
.activity-research-intro h2 {
  font-size: clamp(22px, 3vw, 30px);
}
.activity-research-intro > p {
  max-width: 78ch;
}
.activity-research-filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(180px, 1.5fr) minmax(130px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.activity-research-filters label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.activity-research-filters :is(input, select, button) {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}
.activity-research-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.activity-research-actions :is(a, button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
[data-research-results] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.activity-research-card {
  min-width: 0;
}
.activity-research-card h3 {
  margin: 0 0 20px;
}
.activity-research-card h3 button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 19px;
  font-weight: 800;
}
.activity-research-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.activity-research-metrics > div {
  display: grid;
  align-content: start;
  gap: 5px;
}
.activity-research-metrics strong {
  font-size: 32px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.activity-research-metrics small {
  color: var(--muted);
}
.activity-research-concentration {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.activity-research-notice {
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
}
.activity-research-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.activity-trader-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.5fr) auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.activity-trader-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.activity-trader-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-research-traders],
[data-research-evidence],
[data-research-plans] {
  margin-top: 20px;
}
.activity-source-card {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.activity-source-heading {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.activity-source-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
}
.activity-source-facets a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 950px) {
  .activity-research-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .activity-view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-research-results],
  .activity-research-filters {
    grid-template-columns: 1fr;
  }
  .activity-trader-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .activity-trader-row button {
    justify-self: start;
  }
  .activity-research-paging span {
    width: 100%;
    order: -1;
  }
}
[data-research-results][data-exact] {
  grid-template-columns: 1fr;
}
[data-research-results][data-exact] .activity-research-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
[data-research-results][data-exact] .activity-research-concentration {
  border-top: 0;
  padding-top: 0;
}
[data-research-related] {
  margin-top: 20px;
}
@media (max-width: 950px) {
  [data-research-results][data-exact] .activity-research-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

}
