:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: rgba(255, 255, 255, 0.82);
  --solid: #ffffff;
  --ink: #1d1d1f;
  --muted: #70737a;
  --faint: #9a9ca3;
  --line: rgba(29, 29, 31, 0.11);
  --soft-line: rgba(29, 29, 31, 0.075);
  --blue: #0a84ff;
  --blue-soft: rgba(10, 132, 255, 0.12);
  --red: #c7352f;
  --red-soft: rgba(199, 53, 47, 0.09);
  --green: #1f8f45;
  --green-soft: rgba(31, 143, 69, 0.10);
  --gold: #b3843f;
  --gold-soft: rgba(179, 132, 63, 0.12);
  --shadow: 0 34px 96px rgba(20, 29, 45, 0.11);
  --panel-shadow: 0 24px 72px rgba(20, 29, 45, 0.085);
  --page-width: 1220px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at top right, rgba(215, 227, 252, 0.34), rgba(215, 227, 252, 0) 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 48%, #eef0f3 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.5;
  animation: ambient-float 18s ease-in-out infinite;
}

body::before {
  top: 56px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: rgba(192, 216, 255, 0.28);
}

body::after {
  bottom: 8vh;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(248, 234, 210, 0.22);
  animation-delay: -8s;
}

button,
input {
  font: inherit;
}

main {
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

main,
.input-view,
.home-stage,
.search-form,
.home-insights,
.history-panel {
  max-width: 100%;
}

.input-view {
  min-height: 100svh;
  padding: 22px;
  position: relative;
}

.home-nav {
  width: min(var(--page-width), 100%);
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  color: #626874;
  font-size: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-glyph {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 239, 229, 0.92)),
    linear-gradient(135deg, rgba(179, 132, 63, 0.12), rgba(10, 132, 255, 0.06));
  border: 1px solid rgba(140, 106, 44, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(20, 29, 45, 0.08);
  position: relative;
  overflow: hidden;
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 44%);
  pointer-events: none;
}

.brand-glyph-image {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
}

.brand-copy small {
  display: block;
  color: var(--faint);
  font-size: 11px;
  line-height: 1;
}

.nav-rate-group {
  display: flex;
  gap: 7px;
  align-items: center;
}

.rate-short {
  display: none;
}

.mobile-rate-pill {
  display: none;
}

.rate-short,
.mobile-rate-pill {
  align-items: center;
}

.nav-rate-group span,
.mobile-rate-pill {
  border-radius: 999px;
  background: rgba(243, 245, 248, 0.9);
  color: #626874;
  padding: 7px 10px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.nav-rate-group span b {
  color: var(--ink);
  font-weight: 680;
}

.home-stage {
  width: min(980px, 100%);
  min-height: calc(100svh - 92px);
  display: grid;
  align-content: center;
  gap: 20px;
  margin: 0 auto;
  position: relative;
}

.home-stage::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 72px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.74) 0%, rgba(227,236,252,0.26) 44%, rgba(227,236,252,0) 72%);
  filter: blur(18px);
  pointer-events: none;
  animation: ambient-breathe 12s ease-in-out infinite;
}

.hero-copy {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
  animation: hero-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy p {
  margin: 0;
  color: #7a7d85;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  width: min(640px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: 62px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-weight: 740;
  text-wrap: balance;
}

.hero-copy span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 38rem;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.16);
  padding: 8px;
  position: relative;
  overflow: hidden;
  animation: hero-enter 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 90ms;
}

.search-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.64), rgba(255,255,255,0) 28%, rgba(255,255,255,0.36) 52%, rgba(255,255,255,0) 72%);
  transform: translateX(-35%);
  opacity: 0.7;
  pointer-events: none;
  animation: search-sheen 9s ease-in-out infinite;
}

.search-form:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 36px 92px rgba(20, 29, 45, 0.14);
}

.search-form input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 420;
}

.search-form button,
.topbar button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #198bff 0%, #0a84ff 54%, #0077ed 100%);
  color: #ffffff;
  font-weight: 680;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 14px 28px rgba(10, 132, 255, 0.24);
}

.search-form button {
  height: 54px;
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 18px 34px rgba(10, 132, 255, 0.28);
}

.error-panel {
  color: var(--red);
  font-size: 13px;
}

.estimate-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: -8px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  animation: hero-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 150ms;
}

.estimate-tags-label {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
}

.estimate-chip,
.estimate-toggle {
  border: 1px solid rgba(29, 29, 31, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(20, 29, 45, 0.026);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.estimate-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.estimate-chip.is-extra {
  order: 10;
}

.estimate-tags.is-expanded::after {
  content: "";
  flex: 0 0 100%;
  order: 9;
}

.estimate-tags:not(.is-expanded) .is-extra {
  display: none;
}

.estimate-chip:hover,
.estimate-toggle:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(29, 29, 31, 0.07);
  transform: translateY(-1px);
}

.estimate-chip span {
  color: var(--muted);
  font-weight: 560;
}

.estimate-chip em {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
  font-weight: 620;
}

.estimate-toggle {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(10, 132, 255, 0.10);
}

.home-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.history-panel {
  display: grid;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(30px) saturate(1.08);
  overflow: hidden;
  position: relative;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  animation: panel-enter 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.history-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.82), rgba(255,255,255,0));
  pointer-events: none;
}

.history-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 84px rgba(20, 29, 45, 0.11);
}

.latest-panel,
.tracking-panel {
  grid-column: 1 / -1;
}

.latest-panel {
  animation-delay: 180ms;
}

.tracking-panel {
  animation-delay: 260ms;
}

.latest-panel .history-list,
.tracking-panel .history-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.latest-panel .history-row:nth-last-child(-n + 2),
.tracking-panel .history-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.latest-panel .history-row:nth-child(odd),
.tracking-panel .history-row:nth-child(odd) {
  border-right: 1px solid var(--soft-line);
}

.history-head {
  min-height: 92px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28));
}

.tracking-head {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 18px 20px 16px;
}

.tracking-title {
  min-width: 0;
}

.panel-kicker,
.tracking-title .panel-kicker {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
}

.tracking-title small {
  max-width: 100%;
}

.tracking-filters {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.filter-row {
  width: 100%;
  min-width: 0;
  display: block;
  padding-left: 0;
}

.filter-group {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-group + .filter-group {
  background: transparent;
}

.filter-chip {
  min-height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7b838f;
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  padding: 0 0 0 14px;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
  flex: 0 0 auto;
}

.filter-chip:hover {
  transform: none;
  color: #505965;
  opacity: 0.9;
}

.filter-chip.is-active {
  color: var(--blue);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(10, 132, 255, 0.14);
}

.history-head > span,
.history-head .panel-kicker,
.history-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.history-head strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 740;
}

.history-head small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.history-head .tracking-title span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

.title-with-icon,
.panel-kicker.title-with-icon,
.tracking-title .panel-kicker.title-with-icon,
.history-head .panel-kicker.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
}

.title-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9197a3;
  flex: 0 0 auto;
  line-height: 1;
  transform: translateY(-0.5px);
}

.title-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.panel-kicker.title-with-icon .title-icon,
.tracking-title .panel-kicker.title-with-icon .title-icon,
.history-head .panel-kicker.title-with-icon .title-icon {
  width: 14px;
  height: 14px;
}

.title-with-icon > span:last-child {
  line-height: 1.2;
}

.sheet-head h1.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sheet-head h1.title-with-icon .title-icon {
  width: 16px;
  height: 16px;
  color: #8f96a2;
}

.history-head .tracking-title small {
  margin-top: 6px;
}

.empty-row {
  grid-column: 1 / -1;
  cursor: default;
}

.empty-row:hover {
  background: transparent;
}

.history-list {
  display: grid;
}

.history-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto) 66px;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 13px 18px;
  text-align: left;
  transition: background 180ms ease, transform 180ms ease;
  animation: row-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row:hover {
  background: rgba(246, 248, 251, 0.86);
  transform: translateY(-1px);
}

.history-row:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.28);
  outline-offset: -3px;
}

.history-row strong {
  font-weight: 690;
  font-variant-numeric: tabular-nums;
}

.history-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.history-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.history-copy strong,
.history-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.history-meta-line {
  color: #7f8590;
  font-size: 12px;
  line-height: 1.42;
}

.row-price {
  text-align: right;
  display: grid;
  align-content: center;
  gap: 3px;
}

.row-price span {
  color: #9096a0;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.row-price strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
  margin-top: 0;
}

.history-row em {
  justify-self: end;
  border-radius: 999px;
  background: rgba(240, 242, 246, 0.94);
  color: #626874;
  font-size: 12px;
  font-style: normal;
  font-weight: 660;
  padding: 5px 8px;
  white-space: nowrap;
}

.history-row em.is-expensive {
  background: var(--red-soft);
  color: var(--red);
}

.history-row em.is-fair {
  background: var(--green-soft);
  color: var(--green);
}

.history-row em.is-sold {
  background: var(--green-soft);
  color: var(--green);
}

.history-row em.is-watch {
  background: var(--blue-soft);
  color: var(--blue);
}

.history-row em.is-listed {
  background: var(--blue-soft);
  color: var(--blue);
}

.recommendation-state {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 5px;
}

.recommendation-state b {
  border-radius: 999px;
  background: rgba(31, 143, 69, 0.09);
  color: var(--green);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.recommendation-state small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: 0;
  opacity: 0.82;
  white-space: nowrap;
}

.recommendation-state small.tone-positive {
  color: rgba(31, 143, 69, 0.88);
}

.recommendation-state small.tone-negative {
  color: rgba(199, 53, 47, 0.82);
}

.row-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  padding: 6px 9px;
  text-decoration: none;
}

.row-actions a:hover {
  background: rgba(10, 132, 255, 0.16);
}

.account-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(236, 240, 247, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(30, 37, 52, 0.08);
  color: #53607a;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.account-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  animation: avatar-fade-in 420ms ease both;
}

.account-avatar.has-image {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(30, 37, 52, 0.06);
}

.account-avatar::before,
.account-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
  opacity: 0.92;
}

.account-avatar::before {
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.account-avatar::after {
  top: 18px;
  width: 20px;
  height: 10px;
  border-radius: 11px 11px 8px 8px;
}

.account-avatar.has-image::before,
.account-avatar.has-image::after {
  display: none;
}

.account-avatar.tone-0 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(236, 241, 255, 0.98), rgba(221, 230, 252, 0.98));
  color: #4d62c6;
}

.account-avatar.tone-1 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(232, 245, 255, 0.98), rgba(216, 236, 255, 0.98));
  color: #3177c9;
}

.account-avatar.tone-2 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(234, 247, 240, 0.98), rgba(220, 241, 229, 0.98));
  color: #2c8165;
}

.account-avatar.tone-3 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(249, 242, 227, 0.98), rgba(244, 233, 210, 0.98));
  color: #9c6b1a;
}

.account-avatar.tone-4 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(250, 238, 241, 0.98), rgba(245, 225, 232, 0.98));
  color: #ad5670;
}

.account-avatar.tone-5 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(240, 241, 246, 0.98), rgba(227, 230, 238, 0.98));
  color: #596175;
}

.account-avatar.is-large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.account-avatar.is-large::before {
  top: 9px;
  width: 14px;
  height: 14px;
}

.account-avatar.is-large::after {
  top: 23px;
  width: 22px;
  height: 11px;
  border-radius: 12px 12px 9px 9px;
}

.report-view {
  width: min(980px, calc(100vw - 44px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 0 34px;
  animation: report-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.report-view.is-loading {
  cursor: progress;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  color: #626874;
  padding: 0 0 12px;
}

.topbar button {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 42px;
  border-radius: 999px;
  padding: 0 17px;
  background: rgba(244, 246, 249, 0.92);
  color: var(--blue);
  font-size: 15px;
  font-weight: 720;
  box-shadow: none;
}

.top-title {
  grid-column: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.top-title-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.top-title-copy span,
.top-meta {
  color: var(--muted);
  font-size: 13px;
}

.top-title-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.top-meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.top-meta span {
  border-radius: 999px;
  background: rgba(240, 242, 246, 0.94);
  color: #626874;
  padding: 6px 9px;
}

.original-account-button {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 680;
}

.summary-strip,
.sheet {
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 64px rgba(20, 29, 45, 0.08);
  backdrop-filter: blur(28px) saturate(1.08);
}

.summary-strip {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  overflow: hidden;
}

.judgement {
  display: grid;
  align-content: center;
  min-height: 92px;
  border-right: 1px solid var(--soft-line);
  padding: 14px 16px;
}

.judgement span,
.summary-strip dt {
  color: var(--muted);
  font-size: 12px;
}

.judgement strong {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 32px;
  line-height: 1;
  font-weight: 760;
  text-shadow: 0 10px 24px rgba(199, 53, 47, 0.12);
}

.summary-strip dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.summary-strip dl div {
  min-height: 92px;
  border-right: 1px solid var(--soft-line);
  padding: 14px 16px;
}

.summary-strip dl div:last-child {
  border-right: 0;
}

.summary-strip dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-strip dl div:nth-child(2) dd {
  color: var(--green);
}

.summary-support {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 112px 210px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--soft-line);
  padding: 12px 16px;
}

.summary-support span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-support strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.detail-original-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
}

.summary-support p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  margin-top: 12px;
}

.sheet {
  overflow: hidden;
}

.asset-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.08);
}

.asset-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-title {
  width: min(184px, 60%);
  height: 16px;
}

.skeleton-pill {
  width: 68px;
  height: 24px;
}

.skeleton-sub {
  width: 44px;
  height: 13px;
  margin-top: 6px;
}

.skeleton-detail {
  width: min(320px, 82%);
  height: 14px;
  margin-top: 11px;
}

.skeleton-level {
  width: 42px;
  height: 14px;
}

.skeleton-badge {
  width: 54px;
  height: 26px;
}

.skeleton-money {
  width: 74px;
  height: 16px;
}

.skeleton-money.is-short {
  width: 62px;
}

.skeleton-direct {
  width: min(220px, 80%);
  height: 15px;
}

.asset-row--loading td,
.direct-row--loading td {
  background: rgba(255, 255, 255, 0.72);
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sheet-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(180deg, rgba(251, 252, 254, 0.74), rgba(248, 249, 251, 0.5));
  padding: 13px 16px;
}

.sheet-head h1 {
  margin: 0;
  font-size: 15px;
}

.sheet-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-head {
  min-height: 40px;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.main-sheet table {
  min-width: 760px;
  table-layout: fixed;
}

.main-sheet th:nth-child(1),
.main-sheet td:nth-child(1) {
  width: 48%;
}

.main-sheet th:nth-child(2),
.main-sheet td:nth-child(2) {
  width: 11%;
}

.main-sheet th:nth-child(3),
.main-sheet td:nth-child(3) {
  width: 13%;
}

.main-sheet th:nth-child(4),
.main-sheet td:nth-child(4) {
  width: 14%;
}

.main-sheet th:nth-child(5),
.main-sheet td:nth-child(5) {
  width: 14%;
}

th,
td {
  height: 35px;
  border-bottom: 1px solid var(--soft-line);
  padding: 5px 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.25;
}

th {
  background: rgba(246, 247, 249, 0.9);
  color: var(--muted);
  font-weight: 650;
}

td {
  background: rgba(255, 255, 255, 0.66);
}

tbody tr:hover td {
  background: rgba(249, 249, 251, 0.92);
}

.asset-row--equipment td {
  background: rgba(248, 245, 238, 0.72);
}

.asset-row--spirit td {
  background: rgba(244, 247, 252, 0.78);
}

.asset-row--pet td {
  background: rgba(246, 250, 246, 0.78);
}

.asset-row--star td {
  background: rgba(247, 244, 251, 0.8);
}

.asset-row--equipment:hover td {
  background: rgba(246, 241, 231, 0.9);
}

.asset-row--spirit:hover td {
  background: rgba(239, 244, 251, 0.92);
}

.asset-row--pet:hover td {
  background: rgba(241, 248, 241, 0.92);
}

.asset-row--star:hover td {
  background: rgba(243, 239, 250, 0.94);
}

.asset-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-name {
  font-weight: 680;
}

.asset-title-aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.asset-inline-level {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.asset-sub,
.source-note {
  margin-top: 1px;
  color: var(--faint);
  font-size: 11px;
}

.asset-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.asset-detail-line,
.asset-detail-sub {
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.asset-detail-sub {
  color: var(--muted);
}

.asset-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.asset-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 680;
  line-height: 1;
}

.asset-pill.is-default,
.asset-pill.is-info {
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}

.asset-pill.is-accent {
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue);
}

.asset-pill.is-danger {
  background: rgba(210, 59, 49, 0.12);
  color: var(--red);
}

.asset-pill.is-warning {
  background: rgba(255, 159, 10, 0.14);
  color: #c56b00;
}

.asset-pill.is-stunt {
  background: rgba(255, 159, 10, 0.16);
  color: #b66200;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.08);
}

.asset-pill.is-effect {
  background: rgba(210, 59, 49, 0.12);
  color: #bf3b31;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(210, 59, 49, 0.08);
}

.asset-pill.is-suit {
  background: rgba(74, 112, 187, 0.10);
  color: #446ba9;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(74, 112, 187, 0.06);
}

.asset-pill.is-star-key {
  background: rgba(118, 89, 173, 0.12);
  color: #7048a6;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(118, 89, 173, 0.08);
}

.type-badge {
  display: inline-grid;
  min-width: 34px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.type-badge--equipment {
  background: rgba(170, 129, 54, 0.12);
  color: #8c6421;
}

.type-badge--spirit {
  background: rgba(74, 112, 187, 0.11);
  color: #446ba9;
}

.type-badge--pet {
  background: rgba(58, 141, 87, 0.11);
  color: #2c7a4c;
}

.type-badge--star {
  background: rgba(118, 89, 173, 0.12);
  color: #7550aa;
}

.money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.money.value {
  color: var(--green);
  font-weight: 720;
}

@keyframes ambient-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -10px, 0) scale(1.05);
  }
}

@keyframes ambient-breathe {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes row-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avatar-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes report-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes search-sheen {
  0%, 100% {
    transform: translateX(-38%);
    opacity: 0.34;
  }
  50% {
    transform: translateX(36%);
    opacity: 0.65;
  }
}

.mini-table th,
.mini-table td {
  height: 34px;
}

.mini-table td:last-child,
.mini-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mini-table td:first-child {
  color: var(--muted);
}

@media (max-width: 980px) {
  .home-insights,
  .history-panel,
  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .history-panel > *,
  .summary-strip dl div {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .summary-strip dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 56%, #eef0f3 100%);
  }

  body::before,
  body::after {
    display: none;
  }

  .input-view {
    min-height: 100svh;
    padding: 16px;
    overflow-x: hidden;
  }

  .home-nav {
    width: min(100%, 360px);
    height: 34px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    justify-content: stretch;
    margin-left: 0;
    margin-right: auto;
    font-size: 14px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .brand-glyph-image {
    width: 17px;
    height: 17px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .nav-rate-group {
    display: none;
  }

  .home-nav::after {
    content: none;
    display: none;
  }

  .mobile-rate-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    z-index: 2;
    border-radius: 999px;
    background: rgba(240, 242, 246, 0.96);
    color: #626874;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-rate-group {
    display: none;
    justify-content: flex-end;
    min-width: 0;
    position: fixed;
    top: 22px;
    right: 16px;
    z-index: 2;
  }

  .nav-rate-group span:not(.rate-short) {
    display: none;
  }

  .nav-rate-group .rate-short {
    display: inline-flex;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .home-stage {
    width: min(100%, 360px);
    max-width: min(100%, 360px);
    margin-left: 0;
    margin-right: auto;
    min-height: auto;
    align-content: start;
    gap: 18px;
    padding-top: 42px;
  }

  .home-stage::before {
    top: 58px;
    right: 14px;
    width: 150px;
    height: 150px;
    filter: blur(16px);
  }

  .hero-copy {
    gap: 7px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 21rem;
    font-size: 34px;
    line-height: 1.14;
    word-break: break-word;
  }

  .hero-copy span {
    max-width: 20rem;
    font-size: 15px;
    line-height: 1.45;
  }

  .search-form {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 22px;
    padding: 7px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
  }

  .search-form input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 48px;
    border-radius: 15px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-form button {
    flex: 0 0 88px;
    min-width: 0;
    height: 48px;
    border-radius: 15px;
    font-size: 15px;
  }

  .history-panel {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 24px;
    width: 100%;
    max-width: 100%;
  }

  .home-insights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .latest-panel .history-list,
  .tracking-panel .history-list {
    grid-template-columns: 1fr;
  }

  .latest-panel .history-row:nth-child(odd),
  .tracking-panel .history-row:nth-child(odd) {
    border-right: 0;
  }

  .latest-panel .history-row:nth-last-child(2),
  .tracking-panel .history-row:nth-last-child(2) {
    border-bottom: 1px solid var(--soft-line);
  }

  .history-head,
  .history-row {
    padding: 14px 16px;
  }

  .history-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .tracking-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .tracking-filters {
    justify-items: start;
    gap: 6px;
  }

  .filter-row {
    width: 100%;
  }

  .filter-group {
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    border-radius: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .history-head strong {
    margin-top: 0;
    color: var(--ink);
    font-size: 23px;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .history-row > div {
    min-width: 0;
  }

  .history-main {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
  }

  .account-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .account-avatar::before {
    top: 7px;
    width: 10px;
    height: 10px;
  }

  .account-avatar::after {
    top: 18px;
    width: 17px;
    height: 8px;
  }

  .row-price {
    display: none;
  }

  .recommendation-row .row-price {
    display: grid;
    justify-items: end;
  }

  .recommendation-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .recommendation-row .row-price span {
    display: none;
  }

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

  .history-row em {
    display: inline-flex;
  }

  .report-view {
    width: min(100vw - 32px, 420px);
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding-bottom: 10px;
  }

  .topbar button {
    grid-column: 2;
    grid-row: 1;
    height: 38px;
    padding: 0 14px;
  }

  .top-title {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .top-title-copy {
    gap: 2px;
  }

  .top-title .account-avatar.is-large {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .top-title .account-avatar.is-large::before {
    top: 9px;
    width: 12px;
    height: 12px;
  }

  .top-title .account-avatar.is-large::after {
    top: 22px;
    width: 19px;
    height: 9px;
  }

  .asset-title-row {
    gap: 5px;
  }

  .top-title-copy span {
    white-space: normal;
    line-height: 1.35;
  }

  .top-meta {
    grid-column: 1 / -1;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .top-meta span,
  .original-account-button {
    padding: 6px 8px;
  }

  .summary-strip {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 0;
  }

  .summary-strip,
  .sheet {
    border-radius: 22px;
  }

  .judgement {
    min-height: 72px;
    display: grid;
    align-content: center;
    border-right: 1px solid var(--soft-line);
    border-bottom: 0;
    padding: 12px;
  }

  .judgement strong {
    margin-top: 7px;
    font-size: 25px;
  }

  .summary-strip dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip dl div {
    min-height: 72px;
    padding: 12px 8px;
  }

  .summary-strip dd {
    font-size: clamp(18px, 5.2vw, 22px);
    white-space: nowrap;
    word-break: keep-all;
  }

  .summary-support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .summary-support p {
    grid-column: 1 / -1;
  }

  .detail-original-button {
    width: max-content;
  }

  .sheet-head {
    align-items: flex-start;
    min-height: 46px;
    padding: 10px 12px;
  }

  .sheet-head p {
    max-width: 16rem;
    line-height: 1.35;
  }

  .main-sheet table {
    min-width: 720px;
  }

  th,
  td {
    height: 33px;
    padding: 5px 7px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    max-width: 19rem;
    font-size: 32px;
  }

  .search-form {
    gap: 5px;
  }

  .search-form button {
    flex-basis: 78px;
    font-size: 14px;
  }
}
