/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.18_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.18_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f4f7ff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(28, 82, 248, 0.16);
  --line-soft: rgba(28, 82, 248, 0.09);
  --text: #10203f;
  --muted: #5d6f90;
  --weak: #90a0bd;
  --primary: #1c52f8;
  --primary-soft: rgba(28, 82, 248, 0.1);
  --accent: #0fa;
  --accent-soft: rgba(0, 255, 170, 0.12);
  --green: #0fa;
  --red: #e0445d;
  --gold: #1c52f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.boot-screen,
.stage {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(120, 242, 166, 0.12), transparent 24%),
    radial-gradient(circle at 90% 78%, rgba(242, 212, 138, 0.1), transparent 26%),
    #070707;
  overflow: hidden;
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 74%);
          mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  height: calc(100dvh - 36px);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(145deg, rgba(24, 24, 26, 0.94), rgba(6, 6, 7, 0.96));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.56);
}

.detail-content-scroll {
  height: calc(100% - 72px);
  padding-top: 0;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 7, 0.62);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.loading-overlay-full {
  position: fixed;
  z-index: 40;
}

.loading-card {
  display: grid;
  justify-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-width: 142px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(18, 18, 20, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.loading-card svg {
  color: var(--gold);
}

.loading-card strong {
  font-size: 24px;
  line-height: 1;
}

.loading-card span {
  color: var(--muted);
  font-size: 12px;
}

.detail-page-header {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 16px 16px 12px;
}

.detail-page-header span {
  color: var(--gold);
  font-size: 12px;
}

.detail-page-header h2 {
  margin: 6px 0 0;
  font-size: 24px;
}

.detail-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-back svg {
  transform: rotate(180deg);
}

.detail-screen {
  padding-bottom: 12px;
}

.detail-hero {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.detail-hero .detail-copy {
  margin: 0;
}

.detail-hero .detail-copy h3 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.content-scroll {
  height: calc(100% - 144px);
  overflow-y: auto;
  padding: 0 14px 98px;
  scrollbar-width: none;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 12px;
}

.eyebrow {
  display: block;
  color: var(--weak);
  font-size: 12px;
  letter-spacing: 0;
}

.topbar h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}

.topbar-title-row h2 {
  margin: 0;
}

.join-group-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(28, 82, 248, 0.16);
  border-radius: 999px;
  background: rgba(28, 82, 248, 0.07);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  animation: joinGroupBreath 2.4s ease-in-out infinite;
}

.join-group-action::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(28, 82, 248, 0.14);
  opacity: 0;
  transform: scale(0.92);
  animation: joinGroupHalo 2.4s ease-in-out infinite;
}

.join-group-action svg {
  color: var(--primary);
}

@keyframes joinGroupBreath {
  0%,
  100% {
    background: rgba(28, 82, 248, 0.07);
    border-color: rgba(28, 82, 248, 0.16);
  }
  50% {
    background: rgba(28, 82, 248, 0.13);
    border-color: rgba(28, 82, 248, 0.32);
  }
}

@keyframes joinGroupHalo {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-actions button,
.sheet-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions .refresh-action {
  display: inline-flex;
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  gap: 6px;
}

.refresh-action span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(242, 212, 138, 0.16);
  border-radius: 16px;
  background: rgba(242, 212, 138, 0.06);
  color: rgba(242, 212, 138, 0.9);
  font-size: 12px;
  white-space: nowrap;
}

.announcement span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cache-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px 14px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 82, 248, 0.18);
  border-radius: 14px;
  background: rgba(28, 82, 248, 0.06);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.auto-refresh-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px 14px 14px;
  padding: 9px 12px;
  border: 1px solid rgba(28, 82, 248, 0.2);
  border-radius: 14px;
  background: rgba(28, 82, 248, 0.08);
  color: #1740c8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.detail-auto-refresh-notice {
  margin-top: 0;
}

.detail-auto-refresh-notice + .detail-content-scroll {
  height: calc(100% - 124px);
}

.error-banner,
.login-error,
.detail-error {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 127, 143, 0.24);
  border-radius: 14px;
  background: rgba(255, 127, 143, 0.08);
  color: var(--red);
  font-size: 12px;
}

.login-error {
  margin: 0;
}

.detail-error {
  margin: 14px 0 0;
}

.screen {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.version-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  min-height: 156px;
  padding: 20px;
}

.hero-panel p,
.compare-panel p,
.version-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel strong,
.value-plate strong,
.portfolio-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.hero-panel span,
.portfolio-card span,
.value-plate span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.orbital-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.metric {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.metric svg {
  color: var(--gold);
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.metric b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.section-title i {
  width: 4px;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(var(--gold), rgba(255, 255, 255, 0.28));
}

.section-title h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.card-list,
.trade-feed,
.rank-list,
.notice-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.collection-row,
.rank-row,
.trade-row {
  display: grid;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
}

.collection-row {
  grid-template-columns: 46px 1fr auto auto;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  text-align: left;
}

.collection-row b,
.rank-row b {
  display: block;
  font-size: 14px;
}

.collection-row span,
.rank-row small,
.card-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.collection-row strong {
  font-size: 14px;
}

.up {
  color: var(--red);
}

.down {
  color: var(--green);
}

.flat {
  color: var(--weak);
}

.trade-row {
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  font-size: 12px;
}

.trade-row small {
  color: var(--weak);
}

.debug-panel {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(242, 212, 138, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.debug-panel code,
.debug-panel span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.debug-panel code {
  color: rgba(242, 212, 138, 0.9);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--weak);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--weak);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
}

.chips button.active,
.mode-switch button.active {
  background: rgba(255, 255, 255, 0.9);
  color: #070707;
}

.market-grid,
.owned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.collection-card,
.owned-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.card-image-wrap,
.art-thumb {
  height: 132px;
  border-bottom: 1px solid var(--line-soft);
}

.art-thumb {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.card-image-wrap {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-art {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
}

.card-copy,
.owned-card {
  padding: 12px;
}

.card-copy b,
.owned-grid b {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.card-copy div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-copy em {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-style: normal;
}

.owned-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.value-plate,
.portfolio-card,
.compare-panel {
  padding: 18px;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 76px;
  margin-top: 20px;
}

.sparkline i {
  flex: 1 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(var(--green), rgba(121, 242, 166, 0.08));
}

.rank-row {
  grid-template-columns: 32px 46px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  text-align: left;
}

.rank-row > span {
  color: var(--weak);
  font-size: 13px;
}

.rank-row strong {
  font-size: 13px;
}

.compare-panel h3,
.version-card h3 {
  margin: 0;
  font-size: 24px;
}

.compare-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
}

.compare-summary-card {
  position: relative;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.compare-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.compare-summary-card span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.compare-summary-card strong {
  font-size: 28px;
  line-height: 1;
}

.compare-summary-card small {
  color: var(--weak);
  font-size: 11px;
}

.compare-summary-card.up strong {
  color: var(--red);
}

.compare-summary-card.down strong {
  color: var(--green);
}

.compare-summary-card.flat strong {
  color: var(--weak);
}

.compare-summary-card.up::before {
  background: linear-gradient(90deg, rgba(255, 127, 143, 0.45), var(--red));
}

.compare-summary-card.down::before {
  background: linear-gradient(90deg, rgba(121, 242, 166, 0.45), var(--green));
}

.compare-summary-card.flat::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), var(--weak));
}

.compare-bars {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 18px;
}

.compare-bars div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 56px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.compare-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
}

.compare-bars span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-bars i {
  height: 8px;
  min-width: 12px;
  border-radius: 999px;
}

.bar-up {
  background: linear-gradient(90deg, rgba(255, 127, 143, 0.2), var(--red));
}

.bar-down {
  background: linear-gradient(90deg, rgba(121, 242, 166, 0.2), var(--green));
}

.bar-flat {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), var(--weak));
}

.version-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.version-card svg {
  color: var(--gold);
}

.notice-card {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  color: inherit;
}

.notice-card:hover {
  border-color: rgba(242, 212, 138, 0.36);
  background: rgba(242, 212, 138, 0.08);
}

.notice-list span {
  color: var(--gold);
  font-size: 12px;
}

.notice-list h4 {
  margin: 8px 0 10px;
  font-size: 15px;
}

.notice-list p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.notice-list time {
  color: var(--weak);
  font-size: 12px;
}

.notice-load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  color: var(--weak);
  font-size: 12px;
}

.notice-detail-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
}

.notice-detail-head span {
  color: var(--gold);
  font-size: 12px;
}

.notice-detail-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.notice-detail-card {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.notice-detail-card > span {
  color: var(--gold);
  font-size: 12px;
}

.notice-detail-card h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}

.notice-detail-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--weak);
  font-size: 12px;
}

.notice-content {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.8;
}

.notice-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.portfolio-card em {
  display: block;
  margin-top: 12px;
  font-style: normal;
}

.bottom-nav {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 4px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    rgba(7, 7, 8, 0.78);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(22px);
          backdrop-filter: blur(22px);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  height: 54px;
  border-radius: 18px;
  color: var(--weak);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.bottom-nav button span {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.bottom-nav button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 234, 234, 0.92));
  color: #090909;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.bottom-nav button.active svg {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

.bottom-nav button.active span {
  font-weight: 700;
}

.login-stage {
  align-items: center;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  padding: 26px 22px 22px;
  text-align: left;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f5f8ff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(28, 82, 248, 0.06);
}

.login-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.login-copy {
  min-width: 0;
}

.login-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 6px;
  gap: 6px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.mode-switch button {
  height: 42px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.field-stack {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 18px;
  text-align: left;
}

.field-stack label span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.field-stack .field-label-row {
  display: block;
}

.field-label-row button {
  margin-left: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.field-stack input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: var(--text);
}

.field-stack input::placeholder {
  color: var(--weak);
}

.login-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.login-security {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(28, 82, 248, 0.14);
  border-radius: 14px;
  background: rgba(28, 82, 248, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.login-security svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--primary);
}

.login-error {
  margin-top: 2px;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: 17px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(28, 82, 248, 0.18);
}

.primary-action:hover {
  background: #1748dd;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 18px 14px;
  border: 1px dashed var(--line-soft);
  border-radius: 16px;
  color: var(--weak);
  text-align: center;
  font-size: 12px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.detail-sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: 86dvh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #111113;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.detail-art,
.detail-art-wrap {
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.detail-art-wrap {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.detail-art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  margin: 16px 0;
}

.detail-copy span {
  color: var(--gold);
  font-size: 12px;
}

.detail-copy h3 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.detail-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.detail-price strong {
  font-size: 34px;
}

.trend-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.trend-head span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.trend-head small {
  color: var(--weak);
  font-size: 11px;
}

.trend-chart {
  height: 168px;
}

.trend-chart svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.trend-tooltip {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(28, 82, 248, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(24, 36, 64, 0.08);
}

.trend-tooltip span {
  color: var(--weak);
  font-size: 11px;
}

.trend-tooltip strong {
  color: var(--primary);
  font-size: 13px;
}

.mini-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.mini-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.mini-row b {
  color: var(--gold);
}

.mini-row span {
  color: var(--muted);
}

.mini-row em {
  color: var(--weak);
  font-style: normal;
}

.ai-panel {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(242, 212, 138, 0.16);
  border-radius: 18px;
  background: rgba(242, 212, 138, 0.06);
}

.ai-panel svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.ai-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.prism-a {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.9), transparent 10%),
    radial-gradient(circle at 78% 24%, rgba(121, 242, 166, 0.72), transparent 28%),
    linear-gradient(135deg, #16211f, #111112 48%, #d3b261);
}

.prism-b {
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.35), transparent 12%),
    linear-gradient(150deg, #1d1d23, #09090a 46%, #4f5668);
}

.prism-c {
  background:
    radial-gradient(circle at 64% 32%, rgba(242, 212, 138, 0.84), transparent 18%),
    linear-gradient(135deg, #173421, #0b1110 45%, #6a9f6f);
}

.prism-d {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 127, 143, 0.86), transparent 16%),
    linear-gradient(135deg, #2d151a, #0b0b0c 52%, #604a51);
}

.prism-e {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.72), transparent 12%),
    linear-gradient(140deg, #32312e, #111 42%, #bfc1bd);
}

.prism-f {
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.58), transparent 14%),
    radial-gradient(circle at 74% 70%, rgba(121, 242, 166, 0.38), transparent 26%),
    linear-gradient(150deg, #10201d, #070707 50%, #345c56);
}

html,
body {
  color-scheme: light;
  background:
    radial-gradient(circle at 18% 8%, rgba(28, 82, 248, 0.12), transparent 20%),
    radial-gradient(circle at 82% 0%, rgba(28, 82, 248, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
}

.boot-screen,
.stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 82, 248, 0.12), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(28, 82, 248, 0.08), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(28, 82, 248, 0.06), transparent 26%),
    var(--bg);
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(28, 82, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 82, 248, 0.05) 1px, transparent 1px);
}

.phone-shell {
  border-color: rgba(28, 82, 248, 0.14);
  background:
    linear-gradient(180deg, rgba(28, 82, 248, 0.05), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 24px 90px rgba(28, 82, 248, 0.12);
}

.loading-overlay {
  background: rgba(244, 247, 255, 0.76);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.loading-card {
  border-color: rgba(28, 82, 248, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(28, 82, 248, 0.12);
}

.loading-card svg {
  color: var(--primary);
}

.loading-card span {
  color: var(--muted);
}

.detail-page-header span,
.notice-detail-head span,
.detail-copy span,
.notice-list span,
.mini-row b,
.trend-head span,
.metric svg,
.section-title i,
.version-card svg,
.loading-card svg {
  color: var(--primary);
}

.detail-back,
.header-actions button,
.sheet-close,
.search-box,
.chips button,
.mode-switch,
.field-stack input,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.bottom-nav,
.login-card,
.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.version-card {
  border-color: rgba(28, 82, 248, 0.12);
}

.detail-back,
.header-actions button,
.sheet-close,
.search-box,
.chips button,
.mode-switch,
.field-stack input,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.login-card {
  background: rgba(255, 255, 255, 0.96);
}

.topbar h2,
.hero-panel strong,
.value-plate strong,
.portfolio-card strong,
.compare-panel h3,
.version-card h3,
.detail-page-header h2,
.detail-hero .detail-copy h3,
.notice-detail-head h3 {
  color: var(--text);
}

.section-title h3,
.hero-panel p,
.compare-panel p,
.version-card p,
.hero-panel span,
.portfolio-card span,
.value-plate span,
.announcement,
.notice-list p,
.notice-list time,
.notice-detail-card time,
.notice-content,
.ai-panel p,
.debug-panel,
.debug-panel code,
.trade-row small,
.rank-row small,
.card-copy span,
.owned-card span,
.mini-row span,
.mini-row em,
.trend-head small,
.empty-state,
.login-subtitle,
.login-error,
.error-banner,
.detail-error {
  color: var(--muted);
}

.announcement {
  border-color: rgba(28, 82, 248, 0.16);
  background: rgba(28, 82, 248, 0.06);
}

.error-banner,
.login-error,
.detail-error {
  border-color: rgba(224, 68, 93, 0.18);
  background: rgba(224, 68, 93, 0.08);
  color: var(--red);
}

.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.version-card,
.login-card {
  background:
    linear-gradient(180deg, rgba(28, 82, 248, 0.06), transparent 28%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(28, 82, 248, 0.08);
}

.orbital-badge,
.metric,
.card-image-wrap,
.art-thumb,
.mini-art,
.compare-thumb,
.detail-art-wrap {
  border-color: rgba(28, 82, 248, 0.14);
  background: rgba(28, 82, 248, 0.04);
}

.metric,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.mode-switch,
.field-stack input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chips button,
.mode-switch button {
  color: var(--muted);
}

.chips button.active,
.mode-switch button.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(28, 82, 248, 0.16);
}

.search-box input,
.field-stack input {
  color: var(--text);
}

.search-box input::placeholder,
.field-stack input::placeholder {
  color: var(--weak);
}

.metric b,
.collection-row b,
.rank-row b,
.card-copy b,
.owned-grid b,
.detail-price strong,
.compare-summary-card strong {
  color: var(--text);
}

.card-copy em,
.trade-row em,
.collection-row em,
.rank-row strong {
  color: var(--primary);
}

.sparkline i {
  background: linear-gradient(180deg, rgba(28, 82, 248, 0.92), rgba(28, 82, 248, 0.12));
}

.compare-summary-card {
  background:
    radial-gradient(circle at top right, rgba(28, 82, 248, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.96);
}

.compare-summary-card::before {
  background: rgba(28, 82, 248, 0.12);
}

.compare-summary-card.up::before {
  background: linear-gradient(90deg, rgba(224, 68, 93, 0.45), var(--red));
}

.compare-summary-card.down::before {
  background: linear-gradient(90deg, rgba(15, 159, 110, 0.45), var(--green));
}

.compare-summary-card.flat::before {
  background: linear-gradient(90deg, rgba(28, 82, 248, 0.18), rgba(28, 82, 248, 0.4));
}

.compare-summary-card.up strong {
  color: var(--red);
}

.compare-summary-card.down strong {
  color: var(--green);
}

.compare-summary-card.flat strong {
  color: var(--primary);
}

.compare-bars i {
  background: linear-gradient(90deg, rgba(28, 82, 248, 0.12), var(--primary));
}

.compare-bars .bar-up {
  background: linear-gradient(90deg, rgba(224, 68, 93, 0.2), var(--red));
}

.compare-bars .bar-down {
  background: linear-gradient(90deg, rgba(15, 159, 110, 0.2), var(--green));
}

.compare-bars .bar-flat {
  background: linear-gradient(90deg, rgba(28, 82, 248, 0.08), var(--weak));
}

.bottom-nav {
  border-color: rgba(28, 82, 248, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.98)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 40px rgba(28, 82, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.bottom-nav button {
  color: var(--weak);
}

.bottom-nav button.active {
  background: linear-gradient(180deg, rgba(28, 82, 248, 0.14), rgba(28, 82, 248, 0.08));
  color: var(--primary);
  box-shadow:
    0 10px 20px rgba(28, 82, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.bottom-nav button.active svg {
  filter: none;
}

.primary-action {
  background: linear-gradient(135deg, #1c52f8, #4f7bf9);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(28, 82, 248, 0.24);
}

.mode-switch {
  background: rgba(28, 82, 248, 0.05);
}

.field-stack input {
  background: rgba(255, 255, 255, 0.96);
}

.detail-sheet {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(28, 82, 248, 0.12);
}

.sheet-backdrop {
  background: rgba(16, 32, 63, 0.22);
}

.notice-card:hover {
  border-color: rgba(28, 82, 248, 0.28);
  background: rgba(28, 82, 248, 0.06);
}

.notice-load-more {
  color: var(--weak);
}

.mini-row {
  background: rgba(28, 82, 248, 0.04);
}

.ai-panel {
  border-color: rgba(28, 82, 248, 0.16);
  background: rgba(28, 82, 248, 0.05);
}

.debug-panel {
  border-color: rgba(28, 82, 248, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.debug-panel code {
  color: var(--primary);
}

@media (max-width: 520px) {
  .stage {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .content-scroll {
    height: calc(100dvh - 144px);
  }
}

html,
body {
  color-scheme: light;
  background:
    radial-gradient(circle at 18% 8%, rgba(28, 82, 248, 0.12), transparent 20%),
    radial-gradient(circle at 82% 0%, rgba(0, 255, 170, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
}

.boot-screen,
.stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 82, 248, 0.1), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(0, 255, 170, 0.06), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(28, 82, 248, 0.05), transparent 26%),
    var(--bg);
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(28, 82, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 82, 248, 0.035) 1px, transparent 1px);
}

.phone-shell {
  border-color: rgba(28, 82, 248, 0.14);
  background:
    linear-gradient(180deg, rgba(28, 82, 248, 0.04), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.97));
  box-shadow: 0 24px 90px rgba(28, 82, 248, 0.12);
}

.loading-overlay {
  background: rgba(244, 247, 255, 0.78);
}

.loading-card {
  border-color: rgba(28, 82, 248, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 4px rgba(28, 82, 248, 0.06);
}

.loading-card svg {
  color: var(--primary);
}

.announcement {
  border-color: rgba(28, 82, 248, 0.14);
  background:
    linear-gradient(90deg, rgba(28, 82, 248, 0.06), rgba(0, 255, 170, 0.05)),
    rgba(255, 255, 255, 0.98);
  color: var(--primary);
}

.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.version-card,
.login-card {
  background:
    radial-gradient(circle at top right, rgba(28, 82, 248, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.98));
  box-shadow: 0 1px 2px rgba(28, 82, 248, 0.04);
}

.orbital-badge,
.metric,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.search-box,
.chips button,
.mode-switch,
.field-stack input,
.bottom-nav {
  background: rgba(255, 255, 255, 0.96);
}

.orbital-badge {
  background:
    linear-gradient(145deg, rgba(28, 82, 248, 0.08), rgba(0, 255, 170, 0.06)),
    rgba(255, 255, 255, 0.96);
}

.metric {
  background:
    linear-gradient(180deg, rgba(28, 82, 248, 0.03), transparent 44%),
    rgba(255, 255, 255, 0.97);
}

.metric svg,
.section-title i,
.detail-page-header span,
.notice-detail-head span,
.detail-copy span,
.notice-list span,
.mini-row b,
.ai-panel svg,
.loading-card svg {
  color: var(--primary);
}

.section-title i {
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.search-box,
.field-stack input,
.bottom-nav,
.header-actions button,
.sheet-close,
.detail-back,
.chips button,
.mode-switch {
  border-color: rgba(28, 82, 248, 0.12);
}

.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row {
  background:
    linear-gradient(180deg, rgba(28, 82, 248, 0.02), transparent 42%),
    rgba(255, 255, 255, 0.98);
}

.chips button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.chips button.active,
.mode-switch button.active {
  background: linear-gradient(135deg, var(--primary), #4f7bf9 55%, var(--accent));
  color: #fff;
}

.primary-action {
  background: linear-gradient(135deg, var(--primary), #4f7bf9 56%, var(--accent));
  color: #fff;
  box-shadow: 0 16px 34px rgba(28, 82, 248, 0.22);
}

.sparkline i {
  background: linear-gradient(180deg, var(--primary), rgba(0, 255, 170, 0.2));
}

.compare-summary-card {
  background:
    radial-gradient(circle at top right, rgba(28, 82, 248, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.97);
}

.compare-summary-card::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.bar-flat {
  background: linear-gradient(90deg, rgba(28, 82, 248, 0.08), rgba(0, 255, 170, 0.55));
}

.notice-card:hover {
  border-color: rgba(28, 82, 248, 0.26);
  box-shadow: 0 8px 24px rgba(28, 82, 248, 0.08);
}

.notice-list time,
.notice-detail-card time,
.notice-content,
.debug-panel,
.debug-panel code,
.mini-row span,
.mini-row em,
.trend-head small,
.login-subtitle,
.empty-state {
  color: var(--muted);
}

.notice-content {
  color: var(--text);
}

.notice-detail-card,
.detail-sheet {
  background: rgba(255, 255, 255, 0.98);
}

.detail-art-wrap {
  background:
    linear-gradient(135deg, rgba(28, 82, 248, 0.06), rgba(0, 255, 170, 0.06)),
    rgba(255, 255, 255, 0.96);
}

.ai-panel {
  border-color: rgba(28, 82, 248, 0.14);
  background:
    linear-gradient(135deg, rgba(28, 82, 248, 0.05), rgba(0, 255, 170, 0.05)),
    rgba(255, 255, 255, 0.97);
}

.ai-panel svg {
  color: var(--accent);
}

.debug-panel {
  border-color: rgba(28, 82, 248, 0.12);
}

.debug-panel code {
  color: var(--primary);
}

.detail-back,
.header-actions button,
.sheet-close {
  box-shadow: 0 1px 4px rgba(28, 82, 248, 0.06);
}

.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.login-card,
.collection-card,
.owned-card,
.notice-card,
.rank-row,
.trade-row,
.metric {
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.value-plate::before,
.portfolio-card::before,
.compare-panel::before,
.login-card::before {
  content: none;
}

.hero-panel::after,
.value-plate::after,
.portfolio-card::after,
.compare-panel::after,
.login-card::after {
  content: none;
}

.metric::before,
.collection-card::before,
.owned-card::before,
.notice-card::before {
  content: none;
}

.rank-row::before,
.trade-row::before,
.mini-row::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
}

.rank-row {
  grid-template-columns: 8px 32px 46px 1fr auto;
}

.trade-row {
  grid-template-columns: 8px 1fr auto auto auto;
}

.rank-row > span {
  color: var(--primary);
  font-weight: 800;
}

.collection-card:hover,
.owned-card:hover,
.notice-card:hover,
.collection-row:hover,
.rank-row:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 82, 248, 0.26);
  box-shadow: 0 1px 4px rgba(28, 82, 248, 0.05);
}

.collection-card,
.owned-card,
.notice-card,
.collection-row,
.rank-row {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.search-box:focus-within,
.field-stack input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(28, 82, 248, 0.08);
}

.bottom-nav button.active {
  border: 0;
}

.bottom-nav button.active::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -1px;
  border-radius: 999px;
  background: var(--accent);
}

.card-image-wrap,
.detail-art-wrap,
.art-thumb {
  box-shadow: none;
}

.mini-row {
  position: relative;
  grid-template-columns: 8px 82px 1fr auto;
}

.up,
.card-copy em.up,
.trade-row em.up,
.collection-row em.up,
.compare-summary-card.up strong {
  color: var(--red);
}

.down,
.card-copy em.down,
.trade-row em.down,
.collection-row em.down,
.compare-summary-card.down strong {
  color: var(--green);
}

.flat,
.card-copy em.flat,
.trade-row em.flat,
.collection-row em.flat,
.compare-summary-card.flat strong {
  color: var(--weak);
}

.bar-up,
.compare-bars .bar-up,
.compare-summary-card.up::before {
  background: var(--red);
}

.bar-down,
.compare-bars .bar-down,
.compare-summary-card.down::before {
  background: var(--green);
}

.bar-flat,
.compare-bars .bar-flat,
.compare-summary-card.flat::before {
  background: var(--weak);
}

.overview-spotlight,
.portfolio-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(86, 124, 255, 0.24), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(0, 255, 170, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(24, 28, 40, 0.88), rgba(10, 12, 18, 0.72));
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.overview-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 156px;
  padding: 20px;
}

.overview-spotlight-copy,
.portfolio-spotlight {
  color: rgba(255, 255, 255, 0.9);
}

.overview-spotlight-copy,
.overview-spotlight-toggle,
.portfolio-spotlight-head,
.portfolio-spotlight strong,
.portfolio-spotlight-stats {
  position: relative;
  z-index: 1;
}

.overview-spotlight::before,
.portfolio-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%);
  pointer-events: none;
}

.overview-spotlight p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.overview-spotlight strong,
.portfolio-spotlight strong {
  display: block;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.overview-spotlight span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.overview-spotlight-toggle {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.overview-spotlight-toggle:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
}

.portfolio-spotlight {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  padding: 18px;
}

.portfolio-spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-spotlight-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-spotlight-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.portfolio-spotlight-toggle:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
}

.portfolio-spotlight strong {
  font-size: 42px;
}

.portfolio-spotlight-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.portfolio-spotlight-stats div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.portfolio-spotlight-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.portfolio-spotlight-stats b {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .overview-spotlight {
    min-height: 144px;
    padding: 16px;
  }

  .overview-spotlight strong,
  .portfolio-spotlight strong {
    font-size: 34px;
  }

  .overview-spotlight-toggle {
    width: 58px;
    height: 58px;
  }

  .portfolio-spotlight {
    padding: 16px;
  }
}

.login-stage {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #f4f7ff !important;
}

.login-stage .login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  grid-gap: 0;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 100dvh;
  padding: clamp(38px, 6vw, 72px) clamp(28px, 7vw, 92px);
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-brand {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-width: 560px;
  margin: 0;
  justify-items: center;
  text-align: center;
}

.login-stage .login-kicker {
  margin-bottom: 4px;
  font-size: 12px;
}

.login-stage .login-card h1 {
  max-width: 560px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.04;
}

.login-stage .login-subtitle {
  max-width: 420px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.login-stage .login-highlights {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 460px;
  margin: 0;
}

.login-stage .login-highlights span {
  min-height: 32px;
  width: auto;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.66);
}

.login-stage .login-contact {
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 220px;
  margin: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.74);
}

.login-stage .login-form-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(34px, 5vw, 64px);
  border: 0;
  border-left: 1px solid rgba(28, 82, 248, 0.1);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-form-head {
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .login-stage .login-card {
    grid-template-columns: 1fr;
  }

  .login-stage .login-hero-block {
    min-height: auto;
    gap: 16px;
    padding: 34px 22px 18px;
  }

  .login-stage .login-card h1 {
    font-size: 32px;
  }

  .login-stage .login-subtitle {
    margin-top: 8px;
  }

  .login-stage .login-form-block {
    min-height: auto;
    padding: 10px 22px 92px;
    border-left: 0;
  }
}

.metric-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric-head span {
  flex: 1 1;
  min-width: 0;
  margin-top: 0;
}

.visibility-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(28, 82, 248, 0.14);
  background: rgba(28, 82, 248, 0.06);
  color: var(--primary);
}

.visibility-toggle:hover {
  border-color: rgba(28, 82, 248, 0.28);
  background: rgba(28, 82, 248, 0.1);
}

.hero-panel .visibility-toggle {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.metric-visibility-toggle {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.owned-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.owned-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(28, 82, 248, 0.12);
  border-radius: 16px;
  background: #fff;
}

.owned-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(28, 82, 248, 0.1);
  border-radius: 14px;
  object-fit: cover;
}

.owned-main {
  min-width: 0;
}

.owned-main b {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-main span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.owned-meta {
  display: grid;
  justify-items: end;
  grid-gap: 4px;
  gap: 4px;
  white-space: nowrap;
}

.owned-meta span {
  color: var(--muted);
  font-size: 11px;
}

.owned-meta i {
  margin-left: 5px;
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.owned-meta strong {
  color: var(--primary);
  font-size: 13px;
}

.owned-meta button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.cost-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 18, 36, 0.42);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.cost-dialog {
  width: min(100%, 430px);
  padding: 16px;
  border: 1px solid rgba(28, 82, 248, 0.14);
  border-radius: 24px;
  background: #fff;
}

.cost-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cost-dialog-head span,
.cost-dialog-summary span,
.cost-dialog-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cost-dialog-head h3 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.cost-dialog-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(28, 82, 248, 0.12);
  border-radius: 12px;
  color: var(--primary);
  transform: rotate(90deg);
}

.cost-dialog-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-top: 16px;
}

.cost-dialog-summary div {
  padding: 11px;
  border: 1px solid rgba(28, 82, 248, 0.1);
  border-radius: 14px;
  background: rgba(28, 82, 248, 0.04);
}

.cost-dialog-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
}

.cost-dialog-field {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 16px;
}

.cost-dialog-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(28, 82, 248, 0.16);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  font: inherit;
}

.cost-dialog-field input:focus {
  border-color: rgba(28, 82, 248, 0.5);
  box-shadow: 0 0 0 4px rgba(28, 82, 248, 0.08);
}

.cost-dialog-error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
}

.cost-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 16px;
}

.cost-dialog-actions button {
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
}

.cost-dialog-clear {
  border: 1px solid rgba(28, 82, 248, 0.12);
  color: var(--muted);
}

.cost-dialog-save {
  background: var(--primary);
  color: #fff;
}

.login-stage {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #f4f7ff !important;
}

.login-stage .login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  grid-gap: 0;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 100dvh;
  padding: clamp(38px, 6vw, 72px) clamp(28px, 7vw, 92px);
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-brand {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-width: 560px;
  margin: 0;
}

.login-stage .login-kicker {
  margin-bottom: 4px;
  font-size: 12px;
}

.login-stage .login-card h1 {
  max-width: 560px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.04;
}

.login-stage .login-subtitle {
  max-width: 420px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.login-stage .login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 460px;
  margin: 0;
}

.login-stage .login-highlights span {
  min-height: 32px;
  width: auto;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.66);
}

.login-stage .login-contact {
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 220px;
  margin: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.74);
}

.login-stage .login-form-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(34px, 5vw, 64px);
  border: 0;
  border-left: 1px solid rgba(28, 82, 248, 0.1);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-form-head {
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .login-stage .login-card {
    grid-template-columns: 1fr;
  }

  .login-stage .login-hero-block {
    min-height: auto;
    gap: 16px;
    padding: 34px 22px 18px;
  }

  .login-stage .login-card h1 {
    font-size: 32px;
  }

  .login-stage .login-subtitle {
    margin-top: 8px;
  }

  .login-stage .login-form-block {
    min-height: auto;
    padding: 10px 22px 92px;
    border-left: 0;
  }
}

.login-stage .login-card {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-hero-block,
.login-stage .login-form-block {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-form-block {
  border-left: 1px solid rgba(28, 82, 248, 0.1);
}

@media (max-width: 860px) {
  .login-stage .login-form-block {
    border-left: 0;
  }
}

.login-stage {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #f4f7ff;
}

.login-stage .ambient-grid {
  opacity: 0.56;
}

.login-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-hero-block {
  min-height: 100dvh;
  padding: clamp(34px, 6vw, 72px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 255, 0.92)),
    #f4f7ff;
}

.login-copy {
  max-width: 520px;
}

.login-card h1 {
  max-width: 520px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.login-subtitle {
  max-width: 420px;
  font-size: 15px;
}

.login-highlights {
  max-width: 460px;
}

.login-highlights span {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.72);
}

.login-contact {
  justify-content: flex-start;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 220px;
  padding: 0 16px;
}

.login-form-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(30px, 5vw, 68px);
  border-left: 1px solid rgba(28, 82, 248, 0.12);
  background: #fff;
}

.login-form-head {
  max-width: 420px;
}

.login-form-head strong {
  font-size: 28px;
}

.mode-switch,
.login-note,
.login-security,
.field-stack {
  max-width: 420px;
}

@media (max-width: 860px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-hero-block {
    min-height: auto;
    padding: 34px 22px 20px;
  }

  .login-card h1 {
    font-size: 32px;
  }

  .login-form-block {
    min-height: auto;
    padding: 18px 22px 96px;
    border-left: 0;
    background: transparent;
  }

  .mode-switch,
  .login-note,
  .login-security,
  .field-stack,
  .login-form-head {
    max-width: none;
  }
}

.login-stage {
  min-height: 100dvh;
  padding: 22px;
  background: #f4f7ff;
}

.login-stage .ambient-grid {
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(28, 82, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 82, 248, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 92%);
          mask-image: linear-gradient(180deg, black, transparent 92%);
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-gap: 20px;
  gap: 20px;
  width: min(100%, 760px);
  padding: 18px;
  border: 1px solid rgba(28, 82, 248, 0.14);
  border-radius: 30px;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(28, 82, 248, 0.1) !important;
}

.login-hero-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  padding: 22px;
  border: 1px solid rgba(28, 82, 248, 0.12);
  border-radius: 24px;
  background: #f7f9ff;
}

.login-brand {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin: 0;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-color: rgba(28, 82, 248, 0.16);
  border-radius: 20px;
  background: #fff;
}

.login-card h1 {
  max-width: 260px;
  font-size: 31px;
  letter-spacing: 0;
}

.login-kicker {
  color: var(--primary);
  font-size: 11px;
}

.login-subtitle {
  max-width: 250px;
  color: var(--muted);
}

.login-highlights {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  margin-top: 24px;
}

.login-highlights span {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(28, 82, 248, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #27416f;
  font-size: 12px;
  font-weight: 700;
}

.login-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  border: 1px solid rgba(28, 82, 248, 0.18);
  border-radius: 16px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.login-form-block {
  padding: 16px 4px 4px;
}

.login-form-head {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  margin-bottom: 16px;
}

.login-form-head span {
  color: var(--weak);
  font-size: 12px;
  font-weight: 700;
}

.login-form-head strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.mode-switch {
  border-radius: 16px;
  background: #f5f7fd !important;
}

.mode-switch button.active {
  background: rgba(28, 82, 248, 0.1);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(28, 82, 248, 0.12);
}

.login-note {
  padding: 10px 12px;
  border: 1px solid rgba(28, 82, 248, 0.1);
  border-radius: 14px;
  background: #f8faff;
}

.login-security {
  border-color: rgba(15, 166, 122, 0.18);
  background: #f4fffb;
}

.field-stack input:focus {
  border-color: rgba(28, 82, 248, 0.5);
  box-shadow: 0 0 0 4px rgba(28, 82, 248, 0.08);
}

.login-card .primary-action {
  margin-top: 2px;
  box-shadow: 0 12px 24px rgba(28, 82, 248, 0.16) !important;
}

@media (max-width: 720px) {
  .login-card {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    padding: 14px;
    border-radius: 26px;
  }

  .login-hero-block {
    min-height: auto;
    padding: 18px;
  }

  .login-brand {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .login-card h1 {
    font-size: 24px;
  }

  .login-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .login-highlights span {
    justify-content: center;
    width: 100%;
    padding: 0 8px;
    font-size: 11px;
  }

  .login-form-block {
    padding: 4px;
  }
}

.ambient-grid {
  background-image: none !important;
}

.phone-shell,
.value-plate,
.compare-panel,
.version-card,
.login-card,
.loading-card,
.detail-sheet,
.primary-action,
.bottom-nav {
  box-shadow: 0 1px 3px rgba(28, 82, 248, 0.04) !important;
}

.metric,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.search-box,
.chips button,
.mode-switch,
.field-stack input,
.header-actions button,
.sheet-close,
.detail-back {
  box-shadow: none !important;
}

.hero-panel::before,
.hero-panel::after,
.value-plate::before,
.value-plate::after,
.portfolio-card::before,
.portfolio-card::after,
.compare-panel::before,
.compare-panel::after,
.login-card::before,
.login-card::after,
.metric::before,
.collection-card::before,
.owned-card::before,
.notice-card::before {
  content: none !important;
  display: none !important;
}


.boot-screen,
.stage,
html,
body {
  background: var(--bg) !important;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(28, 82, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 82, 248, 0.03) 1px, transparent 1px);
}

.phone-shell,
.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.version-card,
.login-card,
.loading-card,
.detail-sheet,
.notice-detail-card,
.trend-card,
.ai-panel,
.debug-panel,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.mini-row,
.metric,
.search-box,
.chips button,
.mode-switch,
.field-stack input,
.bottom-nav {
  background: #fff !important;
}

.hero-panel,
.value-plate,
.portfolio-card,
.compare-panel,
.version-card,
.login-card {
  box-shadow: 0 1px 2px rgba(28, 82, 248, 0.04);
}

.phone-shell {
  border-color: rgba(28, 82, 248, 0.14);
  box-shadow: 0 8px 24px rgba(28, 82, 248, 0.04);
}

.loading-overlay {
  background: rgba(244, 247, 255, 0.94);
}

.loading-card {
  box-shadow: 0 1px 4px rgba(28, 82, 248, 0.06);
}

.announcement {
  background: #fff !important;
}

.orbital-badge {
  background: #f5f8ff !important;
}

.metric,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel {
  box-shadow: none;
}

.metric,
.collection-row,
.rank-row,
.trade-row,
.collection-card,
.owned-card,
.notice-card,
.notice-detail-card,
.trend-card,
.mini-row,
.ai-panel,
.debug-panel,
.search-box,
.chips button,
.mode-switch,
.field-stack input,
.bottom-nav,
.header-actions button,
.sheet-close,
.detail-back {
  border-color: rgba(28, 82, 248, 0.12);
}

.hero-panel::after,
.value-plate::after,
.portfolio-card::after,
.compare-panel::after,
.login-card::after {
  content: none;
}

.metric::before,
.collection-card::before,
.owned-card::before,
.notice-card::before {
  content: none;
}

.rank-row::before,
.trade-row::before,
.mini-row::before,
.bottom-nav button.active::after {
  background: var(--accent);
  box-shadow: none;
}

.section-title i,
.metric svg,
.detail-page-header span,
.notice-detail-head span,
.detail-copy span,
.notice-list span,
.mini-row b,
.ai-panel svg,
.loading-card svg {
  color: var(--primary);
  background: none;
}

.chips button.active,
.primary-action,
.bottom-nav button.active {
  background: var(--primary) !important;
  color: #fff !important;
}

.bottom-nav button.active {
  border: 0 !important;
  background-clip: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.sparkline i {
  background: var(--primary);
}

.compare-summary-card::before,
.compare-summary-card.up::before,
.compare-summary-card.down::before,
.compare-summary-card.flat::before,
.bar-up,
.bar-down,
.bar-flat,
.compare-bars .bar-up,
.compare-bars .bar-down,
.compare-bars .bar-flat {
  background: var(--primary);
}

.compare-summary-card.up strong,
.card-copy em.up,
.trade-row em.up,
.collection-row em.up,
.up {
  color: var(--red);
}

.compare-summary-card.down strong,
.card-copy em.down,
.trade-row em.down,
.collection-row em.down,
.down {
  color: var(--green);
}

.compare-summary-card.flat strong,
.card-copy em.flat,
.trade-row em.flat,
.collection-row em.flat,
.flat,
.mini-row span,
.mini-row em,
.trend-head small,
.login-subtitle,
.empty-state,
.notice-list time,
.notice-detail-card time,
.notice-content,
.debug-panel,
.debug-panel code {
  color: var(--muted);
}

.notice-content {
  color: var(--text);
}

.detail-art-wrap,
.card-image-wrap,
.art-thumb,
.mini-art,
.compare-thumb {
  box-shadow: none;
}

.prism-a {
  background: #eaf0ff;
}

.prism-b {
  background: #eef2f8;
}

.prism-c {
  background: #e8fff7;
}

.prism-d {
  background: #fff0f3;
}

.prism-e {
  background: #f5f8ff;
}

.prism-f {
  background: #eaf7ff;
}

.bar-up,
.compare-bars .bar-up,
.compare-summary-card.up::before {
  background: var(--red);
}

.bar-down,
.compare-bars .bar-down,
.compare-summary-card.down::before {
  background: var(--green);
}

.bar-flat,
.compare-bars .bar-flat,
.compare-summary-card.flat::before {
  background: var(--weak);
}

.login-stage {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #f4f7ff !important;
}

.login-stage .login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  grid-gap: 0;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 100dvh;
  padding: clamp(38px, 6vw, 72px) clamp(28px, 7vw, 92px);
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-brand {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-width: 560px;
  margin: 0;
}

.login-stage .login-kicker {
  margin-bottom: 4px;
  font-size: 12px;
}

.login-stage .login-card h1 {
  max-width: 560px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.04;
}

.login-stage .login-subtitle {
  max-width: 420px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.login-stage .login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 460px;
  margin: 0;
}

.login-stage .login-highlights span {
  min-height: 32px;
  width: auto;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.66);
}

.login-stage .login-contact {
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 220px;
  margin: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.74);
}

.login-stage .login-form-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(34px, 5vw, 64px);
  border: 0;
  border-left: 1px solid rgba(28, 82, 248, 0.1);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.login-stage .login-form-head {
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .login-stage .login-card {
    grid-template-columns: 1fr;
  }

  .login-stage .login-hero-block {
    min-height: auto;
    gap: 16px;
    padding: 34px 22px 18px;
  }

  .login-stage .login-card h1 {
    font-size: 32px;
  }

  .login-stage .login-subtitle {
    margin-top: 8px;
  }

  .login-stage .login-form-block {
    min-height: auto;
    padding: 10px 22px 92px;
    border-left: 0;
  }
}

