@import url("./flatpickr.min.1b34a425.css");

@font-face {
  font-family: 'D-DIN-PRO-JIN10-SemiBold';
  src: url("https://jfonts.jin10.com/assets/fonts/newsite/Open_Sans/static/D-DIN-PRO-JIN10-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: D-DIN-PRO-JIN10;
  font-display: swap;
  src: url("https://jfonts.jin10.com/assets/fonts/newsite/Open_Sans/static/D-DIN-PRO-JIN10-SemiBold.ttf") format('truetype');
}

:root {
  color-scheme: light;
  --page-bg: #f3f3f3;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #e5edf6;
  --line-strong: #dbe4ef;
  --text: #102039;
  --muted: #61738e;
  --subtle: #8a98aa;
  --blue: #5a82e6;
  --blue-deep: #315fd6;
  --calendar-selected: #5a82e6;
  --calendar-today: #f3f7ff;
  --red: #d54941;
  --green: #10a874;
  --pink: #ef4266;
  --shadow: 0 14px 34px rgba(31, 56, 92, 0.08);
  --num-font: "D-DIN-PRO-JIN10-SemiBold", "D-DIN-PRO-JIN10", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: rgba(0, 0, 0, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-shell {
  width: min(100%, 414px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  overflow: hidden;
}

.app-navbar {
  position: relative;
  z-index: 20;
}

.home-shell {
  padding: 44px 16px 24px;
}

.auth-shell {
  padding: 22px 16px 24px;
}

.mobile-shell.home-shell.is-app,
.mobile-shell.auth-shell.is-app {
  padding-top: calc(var(--native-navbar-height, 0px) + 22px);
}

.mobile-shell.detail-shell.is-app {
  padding-top: var(--native-navbar-height, 0px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
}

.brand-logo {
  width: 96px;
  height: auto;
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 162px;
  gap: 0;
  align-items: center;
  padding: 0 0 14px;
}

.hero h1 {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.9);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
}

.date-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.date-display {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
}

.date-picker-input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.flatpickr-calendar.position_tracking {
  width: 286px;
  padding: 12px 12px 14px;
  border: 1px solid #e3ebf8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 35, 58, 0.14);
}

.flatpickr-calendar.position_tracking.arrowTop::before,
.flatpickr-calendar.position_tracking.arrowTop::after,
.flatpickr-calendar.position_tracking.arrowBottom::before,
.flatpickr-calendar.position_tracking.arrowBottom::after {
  display: none;
}

.flatpickr-calendar.position_tracking .flatpickr-months {
  align-items: center;
}

.flatpickr-calendar.position_tracking .flatpickr-month {
  height: 32px;
  color: var(--text);
}

.flatpickr-calendar.position_tracking .flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  left: 0;
  height: 32px;
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: var(--text);
  font-family: var(--num-font);
  font-size: 14px;
}
.flatpickr-calendar.position_tracking .flatpickr-current-month input.cur-year,
.flatpickr-calendar.position_tracking .flatpickr-current-month .cur-month {
  color: var(--text);
  font-family: var(--num-font);
  font-size: 16px;
  font-weight: 700;
}

.flatpickr-calendar.position_tracking .flatpickr-current-month .numInputWrapper {
  width: 62px;
}

.flatpickr-calendar.position_tracking .flatpickr-prev-month,
.flatpickr-calendar.position_tracking .flatpickr-next-month {
  top: 12px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 8px;
  color: #8b98aa;
}

.flatpickr-calendar.position_tracking .flatpickr-prev-month:hover,
.flatpickr-calendar.position_tracking .flatpickr-next-month:hover {
  background: #f3f7ff;
  color: var(--blue);
}

.flatpickr-calendar.position_tracking .flatpickr-weekdays {
  height: 30px;
  margin-top: 8px;
}

.flatpickr-calendar.position_tracking span.flatpickr-weekday {
  color: #98a4b5;
  font-size: 12px;
  font-weight: 600;
}

.flatpickr-calendar.position_tracking .flatpickr-days {
  width: 262px;
}

.flatpickr-calendar.position_tracking .dayContainer {
  width: 262px;
  min-width: 262px;
  max-width: 262px;
}

.flatpickr-calendar.position_tracking .flatpickr-day {
  max-width: 34px;
  height: 34px;
  margin: 2px 1.7px;
  border: 0;
  border-radius: 100%;
  color: #c8d0dc;
  font-family: var(--num-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
}

.flatpickr-calendar.position_tracking .flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay) {
  color: rgba(0, 0, 0, 0.5);
}

.flatpickr-calendar.position_tracking .flatpickr-day:hover,
.flatpickr-calendar.position_tracking .flatpickr-day:focus {
  background: #eef4ff;
  color: var(--blue);
}

.flatpickr-calendar.position_tracking .flatpickr-day.today:not(.selected):not(.flatpickr-disabled) {
  background: var(--calendar-today) !important;
  color: var(--blue);
}

.flatpickr-calendar.position_tracking .flatpickr-day.today:not(.selected):not(.flatpickr-disabled):hover,
.flatpickr-calendar.position_tracking .flatpickr-day.today:not(.selected):not(.flatpickr-disabled):focus {
  background: #ffe7a3 !important;
  color: #7a4d00 !important;
}

.flatpickr-calendar.position_tracking .flatpickr-day.selected,
.flatpickr-calendar.position_tracking .flatpickr-day.selected:hover,
.flatpickr-calendar.position_tracking .flatpickr-day.selected:focus,
.flatpickr-calendar.position_tracking .flatpickr-day.today.selected,
.flatpickr-calendar.position_tracking .flatpickr-day.today.selected:hover,
.flatpickr-calendar.position_tracking .flatpickr-day.today.selected:focus {
  background: var(--calendar-selected) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(16, 32, 57, 0.28);
}

.local-icon {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.update-time {
  margin: 8px 0 0;
  color: #999999;
  font-size: 12px;
}

.hero-art {
  height: 162px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-art img {
  display: block;
  width: 162px;
  height: 162px;
  object-fit: contain;
}

[hidden] {
  display: none !important;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -6px 16px;
  padding: 0 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 0;
  height: 40px;
  background: #f3f3f3;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a98aa;
}

.search-input,
.product-search-input {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding: 0 12px 0 38px;
  color: var(--text);
  font-size: 16px;
}

.product-search-input {
  border: 0;
  outline: 0;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-search-input::placeholder,
.search-input:empty {
  color: #a5a5a5;
}

.active-product-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e8edf4;
  background: #f8fafc;
  color: #526070;
  font-size: 13px;
}

.clear-product-filter {
  border: 0;
  background: transparent;
  color: #1e63ff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.clear-product-filter:active {
  color: #174ec8;
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #8090a5;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  margin: 18px -10px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

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

.filter-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 74px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
}

.filter-tab.is-active {
  color: var(--blue);
}

.filter-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(16, 24, 40, 0);
  transition: background 0.18s ease;
}

.sheet-mask.is-open {
  background: rgba(16, 24, 40, 0.34);
}

.species-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 31;
  width: min(100%, 414px);
  max-height: 78vh;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  box-shadow: 0 -16px 38px rgba(22, 35, 58, 0.18);
  transform: translate(-50%, 100%);
  transition: transform 0.2s ease;
}

.species-sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.sheet-head h2 {
  grid-column: 2;
  margin: 0;
  color: #111111;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.sheet-close {
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #8b98aa;
}

.sheet-close .local-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.species-search {
  position: relative;
  margin: 12px 16px 0;
  height: 40px;
  border-radius: 8px;
  background: #f5f7fa;
}

.species-search .search-icon {
  left: 12px;
  top: 10px;
}

.species-search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.species-search-input::placeholder {
  color: #9aa7b8;
}

.species-options {
  display: grid;
  gap: 10px;
  max-height: calc(78vh - 104px);
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.species-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #25364f;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

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

.species-option em {
  flex: 0 0 auto;
  color: #8b98aa;
  font-family: var(--num-font);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.species-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: #8b98aa;
  font-size: 14px;
}

.species-option.is-active {
  background: #eef4ff;
  color: var(--blue);
  font-weight: 700;
}

.species-option.is-active em {
  color: var(--blue);
}

.card-list {
  display: grid;
  gap: 10px;
  margin: 0 -6px;
}

.position-card {
  width: 100%;
  padding: 14px 16px 12px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(22, 35, 58, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.18s ease;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.card-title h2 {
  margin: 0 0 5px;
  color: rgba(0, 0, 0, 0.9);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.card-title p,
.price-block span,
.metric-label {
  margin: 0;
  color: #777777;
  font-size: 12px;
}

.price-block {
  text-align: right;
  white-space: nowrap;
}

.price-block strong {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 32px;
}

.date-display,
.price-block strong,
.metric-value,
.contract-name-line span,
.contract-meta,
.detail-stats-grid strong,
.formula-help-button,
.bar-row em,
.rank-table td:nth-child(2),
.rank-table td:nth-child(3),
.rank-table td:first-child b,
.trend-chart text {
  font-family: var(--num-font);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid #e7e7e7;
  border-left: 1px solid #e7e7e7;
}

.metric {
  min-height: 48px;
  padding: 9px 8px 7px;
  border-right: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

.metric-value {
  display: block;
  margin-top: 5px;
  color: #101010;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.card-highlight {
  display: -webkit-box;
  margin: 13px 0 0;
  overflow: hidden;
  color: #777777;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 2px;
  background: #eaf6f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.tag.is-red {
  background: #fff0f1;
  color: var(--red);
}

.tag.is-green {
  background: #eaf6f1;
  color: var(--green);
}

.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 26px;
  padding: 0;
  background: transparent;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.load-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 12px);
  height: 42px;
  margin: 2px 6px 0;
  border: 1px solid #dbe4ef;
  border-radius: 4px;
  background: #f8fbff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.auth-panel {
  min-height: calc(100vh - 46px);
  display: flex;
  flex-direction: column;
}

.auth-card {
  display: grid;
  gap: 14px;
  margin: auto 0;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
}

.auth-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.auth-action-button {
  justify-self: center;
  min-width: 132px;
  height: 42px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.disclaimer {
  margin-top: 18px;
  padding: 14px 0 6px;
  color: #777777;
  font-size: 12px;
  line-height: 1.75;
  border-top: 1px solid #eeeeee;
}

.disclaimer p {
  margin: 0 0 6px;
}

.detail-nav-spacer {
  height: 48px;
}

.detail-content {
  padding: 16px 16px 28px;
  background: var(--surface);
}

.contract-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contract-name-line h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  line-height: 34px;
}

.contract-name-line span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  background: #edf4ff;
  color: #667895;
  font-size: 12px;
  font-weight: 900;
}

.contract-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.formula-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.scope-note {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7faff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.scope-note span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f0ff;
  color: var(--blue);
  font-weight: 900;
}

.scope-note p {
  margin: 0;
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.detail-stats-grid > div {
  min-height: 69px;
  padding: 12px 8px 9px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.detail-stats-grid > div:last-child {
  border-right: 0;
}

.detail-stats-grid span {
  display: block;
  color: #8392a8;
  font-size: 12px;
  font-weight: 700;
}

.detail-stats-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-stats-grid small {
  margin-left: 1px;
  font-size: 10px;
}

.insight-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(239, 66, 102, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0f3, #f8fbff);
}

.insight-panel.is-down {
  border-color: rgba(16, 168, 116, 0.2);
  background: linear-gradient(135deg, #edf9f4, #f8fbff);
}

.insight-panel p {
  margin: 0;
  color: #17304b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.58;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.insight-tags span,
.section-title span,
.section-headline span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.quick-read-grid,
.trend-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.quick-read-card {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-title,
.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title strong,
.section-headline h3,
.observation-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.quick-read-card p {
  margin: 0 0 14px;
  color: #53677f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.bar-list {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  color: #273a56;
  font-size: 12px;
  font-weight: 900;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.bar-fill {
  display: block;
  width: var(--bar-width);
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: var(--green);
}

.bar-row em {
  font-style: normal;
  text-align: right;
}

.section-with-divider {
  margin: 8px -16px 0;
  padding: 22px 16px 0;
  border-top: 8px solid #f3f3f3;
}

.rank-stack {
  display: grid;
  gap: 12px;
}

.rank-table-card,
.trend-card,
.observation-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.rank-table-card h4 {
  margin: 0;
  padding: 13px 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}

.rank-scroll {
  overflow-x: visible;
}

.rank-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.rank-table th:nth-child(1),
.rank-table td:nth-child(1) {
  width: 31%;
}

.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
  width: 25%;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
  width: 20%;
}

.rank-table th:nth-child(4),
.rank-table td:nth-child(4) {
  width: 24%;
}

.rank-table th {
  padding: 9px 5px;
  background: #f3f7fc;
  color: #7d8ca0;
  font-weight: 900;
  text-align: right;
}

.rank-table th:first-child,
.rank-table td:first-child {
  text-align: left;
}

.rank-table td {
  padding: 10px 5px;
  color: #243653;
  font-weight: 800;
  text-align: right;
  border-top: 1px solid #eef3f8;
  white-space: nowrap;
}

.rank-table td:first-child b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue);
  font-size: 11px;
}

.note-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.trend-card {
  padding: 14px 12px 10px;
}

.trend-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.trend-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trend-chart {
  width: 100%;
  height: 188px;
  margin-top: 8px;
  display: block;
}

.trend-chart text {
  fill: #8a98aa;
  font-size: 10px;
  font-weight: 700;
}

.trend-chart .trend-axis-label {
  fill: #667895;
  font-size: 9px;
}

.trend-point {
  outline: none;
}

.trend-hit-area {
  cursor: pointer;
}

.trend-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.trend-tooltip rect {
  fill: rgba(16, 32, 57, 0.92);
}

.trend-tooltip text {
  fill: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

.trend-point:hover .trend-tooltip,
.trend-point:focus .trend-tooltip {
  opacity: 1;
}

.observation-card {
  margin-top: 18px;
  padding: 16px;
}

.observation-card ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #40556f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 36px 18px;
  color: #7c899b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.is-up,
.positive {
  color: var(--red) !important;
}

.is-down,
.negative {
  color: var(--green) !important;
}

.is-flat {
  color: var(--subtle) !important;
}

.green-bar {
  background: var(--green);
}

.red-bar {
  background: var(--red);
}

.bar-empty {
  padding: 8px 0 2px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.skeleton-line,
.skeleton-art,
.skeleton-search {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #eef2f7;
}

.skeleton-line::after,
.skeleton-art::after,
.skeleton-search::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.sk-logo {
  width: 96px;
  height: 18px;
}

.sk-title {
  width: 220px;
  height: 32px;
  margin-bottom: 14px;
}

.sk-date {
  width: 142px;
  height: 32px;
}

.sk-time {
  width: 220px;
  height: 17px;
  margin-top: 8px;
}

.skeleton-art {
  width: 162px;
  height: 162px;
  margin-left: auto;
  border-radius: 50%;
}

.skeleton-search {
  height: 40px;
}

.sk-tab {
  flex: 0 0 auto;
  width: 84px;
  height: 32px;
  margin-top: 0;
}

.sk-tab.is-wide {
  width: 74px;
}

.skeleton-card {
  min-height: 301px;
  pointer-events: none;
}

.skeleton-card .metric {
  min-height: 57px;
}

.sk-card-name {
  width: 135px;
  height: 28px;
  margin-bottom: 5px;
}

.sk-card-code {
  width: 135px;
  height: 17px;
}

.sk-price {
  width: 82px;
  height: 32px;
}

.sk-metric-label {
  width: 44px;
  height: 12px;
}

.sk-metric-value {
  width: 82px;
  height: 16px;
  margin-top: 9px;
}

.sk-highlight {
  width: 100%;
  height: 19px;
  margin-top: 13px;
}

.sk-highlight.short {
  width: 68%;
  margin-top: 8px;
}

.sk-tag {
  width: 58px;
  height: 22px;
}

.sk-tag.short {
  width: 66px;
}

.sk-detail-button {
  width: 44px;
  height: 18px;
}

.sk-detail-name {
  width: 112px;
  height: 32px;
}

.sk-detail-meta {
  width: 226px;
  height: 14px;
  margin-top: 8px;
}

.sk-stat-label {
  width: 54px;
  height: 12px;
  margin: 0 auto;
}

.sk-stat-value {
  width: 72px;
  height: 17px;
  margin: 8px auto 0;
}

.sk-insight {
  width: 100%;
  height: 15px;
}

.sk-insight.short {
  width: 72%;
  margin-top: 9px;
}

.sk-section-title {
  width: 126px;
  height: 20px;
  margin-bottom: 14px;
}

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

@media (min-width: 768px) {
  body {
    padding: 0 0 32px;
  }

  .mobile-shell {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), var(--shadow);
  }
}

@media (max-width: 360px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .hero-art,
  .hero-art img {
    width: 132px;
    height: 132px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .bar-row {
    grid-template-columns: 66px minmax(0, 1fr) 64px;
  }
}
