@font-face {
  font-family: "ArkPixel";
  src: url("./assets/office/fonts/ark-pixel-12px-proportional-zh_cn.ttf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #071110;
  --pine: #102b27;
  --pine-soft: #163a34;
  --mineral: #243e58;
  --blue-gray: #607d79;
  --mist: #d8e0d8;
  --mist-soft: #aebdb7;
  --gold: #c7a86b;
  --gold-bright: #dfc58e;
  --jade: #75b8a5;
  --jade-soft: #9ed1c3;
  --cinnabar: #b96858;
  --panel: rgba(7, 20, 19, 0.84);
  --panel-strong: rgba(6, 16, 16, 0.94);
  --panel-soft: rgba(11, 29, 27, 0.78);
  --line: rgba(199, 168, 107, 0.2);
  --line-soft: rgba(216, 224, 216, 0.11);
  --shadow: 0 24px 80px rgba(2, 8, 8, 0.44);
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "IBM Plex Mono", monospace;
  --pixel: "ArkPixel", "PingFang SC", sans-serif;
  --rail-width: 170px;
  --topbar-height: 70px;
  --scene-dimming: 0.64;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(199, 168, 107, 0.36) rgba(7, 17, 16, 0.72);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--mist);
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--panel-strong);
  transform: translateY(-150%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scene,
.scene__image,
.scene__dimming,
.scene__grain,
.scene__character,
.scene__content-protection {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: -2;
  overflow: hidden;
  background: #071110;
}

.scene__image {
  z-index: 0;
  background-image: url("./assets/cultivation-desktop/bamboo-rain.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  transition: opacity 0.42s ease, filter 0.42s ease;
}

body[data-scene="cloud-city"] .scene__image {
  background-position: center;
}

body[data-scene="lantern-market"] .scene__image {
  background-position: center;
}

.scene__dimming {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 12, 12, 0.38) 0%, rgba(3, 12, 12, 0.14) 66%, rgba(3, 12, 12, 0.04) 100%),
    rgba(3, 12, 12, var(--scene-dimming));
  transition: background 0.22s ease;
}

.scene__grain {
  z-index: 2;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.16) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1) 0 0.5px, transparent 0.75px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.scene__character {
  z-index: 2;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scene__character img {
  position: absolute;
  right: clamp(-28px, 1.4vw, 28px);
  bottom: -3.5vh;
  width: auto;
  height: min(88vh, 990px);
  max-width: 48vw;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(0.84) brightness(0.78) contrast(1.04) drop-shadow(-22px 18px 28px rgba(1, 7, 7, 0.64));
  opacity: 0.92;
  transition: opacity 0.22s ease, filter 0.35s ease, transform 0.35s ease;
}

body[data-character="han-li"] .scene__character img {
  right: clamp(-58px, -1vw, -14px);
  height: min(90vh, 1010px);
}

body[data-character="reference-heroine"] .scene__character img {
  mix-blend-mode: normal;
  opacity: 0.92;
  filter: saturate(0.82) brightness(0.78) contrast(1.05) drop-shadow(-22px 18px 28px rgba(1, 7, 7, 0.58));
}

body[data-character="none"] .scene__character {
  opacity: 0;
}

.scene__content-protection {
  z-index: 3;
  background:
    radial-gradient(ellipse 70% 95% at 34% 46%, rgba(4, 14, 14, 0.73) 0%, rgba(4, 14, 14, 0.55) 48%, transparent 78%),
    linear-gradient(90deg, rgba(3, 12, 12, 0.66) 0 var(--rail-width), rgba(3, 12, 12, 0.18) var(--rail-width), transparent 76%);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  border-right: 1px solid rgba(199, 168, 107, 0.16);
  background:
    linear-gradient(180deg, rgba(5, 16, 16, 0.9), rgba(4, 13, 13, 0.96)),
    rgba(4, 13, 13, 0.92);
  box-shadow: 18px 0 60px rgba(1, 7, 7, 0.2);
  backdrop-filter: blur(18px);
}

.rail::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -1px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(199, 168, 107, 0.42), transparent);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 8px 6px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.rail__seal {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(199, 168, 107, 0.54);
  background:
    linear-gradient(135deg, rgba(199, 168, 107, 0.18), rgba(16, 43, 39, 0.1)),
    #0b2220;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: inset 0 0 18px rgba(199, 168, 107, 0.08);
  overflow: hidden;
}

.rail__seal img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: 50% 4%;
  transform: rotate(-45deg) scale(1.08);
  filter: saturate(0.72) brightness(0.78);
}

.rail__brand-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rail__brand-copy strong {
  color: #f2eee3;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.rail__brand-copy small {
  color: var(--mist-soft);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.rail__nav {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9dafaa;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.rail__link .rail__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail__link small {
  margin-left: auto;
  color: #52645f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.rail__link:hover,
.rail__link.is-active {
  border-color: rgba(199, 168, 107, 0.16);
  color: #ece8dc;
  background: linear-gradient(90deg, rgba(199, 168, 107, 0.12), rgba(117, 184, 165, 0.04));
}

.rail__link.is-active::before {
  content: "";
  position: absolute;
  left: -13px;
  width: 2px;
  height: 22px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(199, 168, 107, 0.52);
}

.rail__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(216, 224, 216, 0.1);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
}

.rail__footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 15px 8px 2px;
  border-top: 1px solid var(--line-soft);
  color: #7e928d;
  font-size: 11px;
}

.rail__footer a {
  color: #b8c6c2;
}

.rail__footer a:hover {
  color: var(--gold-bright);
}

.rail__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.rail__modes span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(216, 224, 216, 0.1);
  border-radius: 999px;
  color: #8ea09b;
  font-size: 8px;
}

.rail__identity {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.rail__identity-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(199, 168, 107, 0.32);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 8px;
}

.rail__identity > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rail__identity strong {
  overflow: hidden;
  color: #d8ddd6;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail__identity small {
  color: #667a74;
  font-size: 8px;
}

.workspace {
  grid-column: 2;
  width: 100%;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  min-height: var(--topbar-height);
  padding: 10px 22px 10px 26px;
  border-bottom: 1px solid rgba(216, 224, 216, 0.1);
  background: linear-gradient(180deg, rgba(5, 15, 15, 0.86), rgba(5, 15, 15, 0.68));
  backdrop-filter: blur(18px) saturate(110%);
}

.topbar__mobile-brand {
  display: none;
}

.topbar__greeting {
  display: grid;
  gap: 4px;
}

.eyebrow,
.panel__kicker {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar__greeting strong {
  color: #efeee8;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.time-block,
.market-state {
  display: grid;
  gap: 2px;
}

.time-block {
  text-align: right;
}

.time-block strong {
  color: #f1eee5;
  font-family: var(--mono);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.time-block span,
.market-state span {
  color: #859994;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.market-state strong {
  color: #c9d4d0;
  font-size: 12px;
  font-weight: 500;
}

.topbar__divider {
  width: 1px;
  height: 30px;
  background: var(--line-soft);
}

.status-chip,
.provenance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(117, 184, 165, 0.22);
  border-radius: 999px;
  color: var(--jade-soft);
  background: rgba(117, 184, 165, 0.09);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-chip::before,
.provenance::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-chip[data-state="loading"],
.provenance[data-state="loading"] {
  color: var(--gold-bright);
  border-color: rgba(199, 168, 107, 0.22);
  background: rgba(199, 168, 107, 0.08);
}

.status-chip[data-state="cache"],
.provenance[data-state="cache"] {
  color: #c6b997;
  border-color: rgba(198, 185, 151, 0.24);
  background: rgba(198, 185, 151, 0.08);
}

.status-chip[data-state="example"],
.provenance[data-state="example"],
.status-chip[data-state="mixed"],
.provenance[data-state="mixed"] {
  color: #e3c09b;
  border-color: rgba(185, 104, 88, 0.34);
  background: rgba(185, 104, 88, 0.14);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.scene-button,
.drawer-close,
.upload-button,
.remove-button {
  border: 1px solid var(--line);
  background: rgba(7, 22, 21, 0.72);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.icon-button:hover,
.scene-button:hover,
.upload-button:hover,
.remove-button:hover {
  border-color: rgba(199, 168, 107, 0.5);
  background: rgba(16, 43, 39, 0.9);
  transform: translateY(-1px);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #bdcbc7;
  font-size: 11px;
}

.icon-button > span:first-child {
  color: var(--gold);
  font-size: 16px;
}

.icon-button.is-loading > span:first-child {
  animation: spin 0.8s linear infinite;
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.export-button {
  border-color: rgba(199, 168, 107, 0.28);
  color: #d6c69e;
}

.scene-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #aabbb6;
  font-size: 10px;
}

.scene-button strong {
  color: #ece7da;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  width: min(1500px, 100%);
  min-width: 0;
  padding: 18px 22px 30px 26px;
}

.panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(18, 46, 41, 0.18), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px) saturate(112%);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  pointer-events: none;
}

.panel::before {
  top: 7px;
  left: 7px;
  border-top: 1px solid rgba(199, 168, 107, 0.35);
  border-left: 1px solid rgba(199, 168, 107, 0.35);
}

.panel::after {
  right: 7px;
  bottom: 7px;
  border-right: 1px solid rgba(199, 168, 107, 0.28);
  border-bottom: 1px solid rgba(199, 168, 107, 0.28);
}

.panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel__head h1,
.panel__head h2,
.scene-drawer__head h2 {
  margin: 5px 0 0;
  color: #efece3;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.panel__head h1 {
  font-size: clamp(24px, 3vw, 36px);
}

.panel__head h2,
.scene-drawer__head h2 {
  font-size: 21px;
}

.panel__head--compact {
  align-items: center;
}

.panel__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  color: #778d87;
  font-size: 10px;
}

.panel__foot a {
  color: #b9c7c2;
}

.panel__foot a:hover {
  color: var(--gold-bright);
}

.briefing {
  grid-column: 1 / span 7;
  min-height: 252px;
  padding: 24px 25px 18px;
}

.briefing::after {
  width: 45%;
  height: 1px;
  right: 24px;
  bottom: 30px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(199, 168, 107, 0.22));
}

.briefing__lead {
  position: relative;
  z-index: 1;
  max-width: 720px;
  min-height: 50px;
  margin: 18px 0;
  color: #c5d0cc;
  font-family: var(--serif);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.75;
  letter-spacing: 0.035em;
}

.briefing__metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}

.briefing-metric {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(216, 224, 216, 0.08);
  border-radius: 8px;
  background: rgba(3, 13, 13, 0.27);
}

.briefing-metric span {
  color: #758b86;
  font-size: 10px;
}

.briefing-metric strong {
  overflow: hidden;
  color: #e5e4dc;
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenic-note {
  grid-column: 8 / span 5;
  align-self: end;
  display: grid;
  justify-items: end;
  gap: 5px;
  min-height: 252px;
  padding: 0 10px 18px;
  color: rgba(216, 224, 216, 0.55);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.scenic-note span {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.scenic-note strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.watchlist {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  padding: 21px 22px 17px;
}

.news {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  padding: 21px 22px 17px;
}

.watchlist .panel__foot,
.news .panel__foot {
  margin-top: auto;
}

.prediction {
  grid-column: 1 / -1;
  padding: 20px 22px 18px;
}

.breadth-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 0.7fr)) minmax(112px, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.breadth-summary__item,
.breadth-summary__coverage {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid rgba(216, 224, 216, 0.08);
  border-radius: 8px;
  background: rgba(3, 13, 13, 0.26);
}

.breadth-summary__item span,
.breadth-summary__coverage span {
  color: #687e78;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.breadth-summary__item strong,
.breadth-summary__coverage strong {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.breadth-summary__item--up strong { color: var(--jade-soft); }
.breadth-summary__item--down strong { color: #d78b7b; }
.breadth-summary__coverage strong { color: #c4cec8; }

.breadth-bar {
  display: flex;
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 224, 216, 0.08);
}

.breadth-bar i {
  display: block;
  width: 0;
  transition: width 240ms ease;
}

.breadth-bar__up { background: var(--jade-soft); }
.breadth-bar__down { background: #c8786a; }

.market-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0 10px;
  padding: 3px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(216, 224, 216, 0.08);
  border-radius: 8px;
  background: rgba(3, 13, 13, 0.3);
}

.market-tab {
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #718681;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.market-tab:hover,
.market-tab.is-active {
  color: #e4e3dc;
  background: rgba(117, 184, 165, 0.11);
}

.quotes-table {
  min-width: 0;
}

.quotes-table__head,
.quote-row {
  display: grid;
  grid-template-columns: 40px minmax(96px, 1.3fr) 72px 70px 72px 94px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quotes-table__head {
  padding: 7px 10px;
  color: #627771;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.quotes-table__head span:not(:first-child) {
  text-align: right;
}

.quotes-table__head span:nth-child(2) {
  text-align: left;
}

.quotes-table__body {
  display: grid;
  max-height: 430px;
  overflow-y: auto;
  scrollbar-color: rgba(117, 184, 165, 0.28) transparent;
}

.quote-row {
  min-height: 49px;
  padding: 8px 10px;
  border-top: 1px solid rgba(216, 224, 216, 0.075);
}

.quote-row[hidden] {
  display: none;
}

.quote-symbol {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.quote-symbol strong {
  overflow: hidden;
  color: #e4e6df;
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-symbol span {
  overflow: hidden;
  color: #758a85;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-price,
.quote-change {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.quote-price {
  color: #d8ddd6;
}

.quote-change.is-up {
  color: var(--jade-soft);
}

.quote-change.is-down {
  color: #d78b7b;
}

.quote-change.is-flat {
  color: #93a39f;
}

.market-badge {
  justify-self: end;
  min-width: 36px;
  padding: 4px 5px;
  border: 1px solid rgba(199, 168, 107, 0.16);
  border-radius: 999px;
  color: #8fa19c;
  font-size: 9px;
  text-align: center;
}

.quote-rank,
.quote-metric {
  text-align: right;
  color: #aab8b3;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.quote-rank {
  justify-self: start;
  min-width: 34px;
  color: var(--gold);
  text-align: left;
}

.quote-rank.is-top {
  font-weight: 700;
  color: #dfc17e;
}

.quote-metric.is-accent {
  color: #cbb174;
}

.news-list {
  display: grid;
  flex: 1;
  max-height: 490px;
  margin: 13px 0 10px;
  overflow-y: auto;
  scrollbar-color: rgba(117, 184, 165, 0.28) transparent;
}

body.is-exporting .topbar {
  position: relative;
  top: auto;
}

body.is-exporting .toast,
body.is-exporting .drawer-backdrop,
body.is-exporting .scene-drawer,
body.is-exporting [data-export-ignore="true"] {
  display: none !important;
}

.news-tabs {
  margin: 12px 0 2px;
}

.news-item {
  display: grid;
  gap: 5px;
  padding: 12px 3px;
  border-top: 1px solid rgba(216, 224, 216, 0.075);
}

.news-item:first-child {
  border-top: 0;
}

.news-item__title {
  display: -webkit-box;
  overflow: hidden;
  color: #dce0da;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-item__title:hover {
  color: var(--gold-bright);
}

.news-item__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #879a95;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #667b75;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.news-item__meta span + span::before {
  content: "·";
  margin-right: 5px;
  color: rgba(199, 168, 107, 0.52);
}

.news-item__kind {
  padding: 1px 5px;
  border: 1px solid rgba(199, 168, 107, 0.2);
  border-radius: 999px;
  color: #b9a477;
}

.news-item__meta .news-item__kind::before,
.news-item__meta .news-item__kind + span::before {
  content: none;
  margin: 0;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0 14px;
}

.prediction-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 156px;
  align-content: space-between;
  gap: 13px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 216, 0.09);
  border-radius: 9px;
  color: inherit;
  background:
    radial-gradient(circle at 88% 10%, rgba(117, 184, 165, 0.12), transparent 38%),
    rgba(3, 13, 13, 0.3);
}

.prediction-card:hover {
  border-color: rgba(199, 168, 107, 0.34);
}

.prediction-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prediction-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: #dce1da;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prediction-card__probability {
  flex: 0 0 auto;
  color: var(--jade-soft);
  font-family: var(--mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.prediction-card__question {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #7f948e;
  font-size: 9px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prediction-card__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(185, 104, 88, 0.2);
}

.prediction-card__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--jade));
}

.prediction-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #627771;
  font-family: var(--mono);
  font-size: 8px;
}

.pulse__summary {
  color: #a7b8b3;
  font-family: var(--serif);
  font-size: 13px;
}

.pulse__content {
  display: grid;
  grid-template-columns: 130px minmax(300px, 1.2fr) minmax(240px, 0.8fr);
  align-items: center;
  gap: 26px;
  margin-top: 14px;
}

.pulse__dial {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--cinnabar), var(--gold) 31%, var(--jade) 68%, rgba(117, 184, 165, 0.12) 68% 100%);
  box-shadow: 0 0 28px rgba(117, 184, 165, 0.09);
}

.pulse__dial::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0a1c1a;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.38);
}

.pulse__dial::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  width: 1px;
  height: 48px;
  background: var(--gold-bright);
  transform: translateX(-50%) rotate(var(--pulse-angle));
  transform-origin: 50% 48px;
  box-shadow: 0 0 7px var(--gold);
  transition: transform 0.5s ease;
}

.pulse__dial-center {
  position: absolute;
  z-index: 3;
  inset: 25px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  text-align: center;
}

.pulse__dial-center strong {
  color: #e7e5dc;
  font-family: var(--mono);
  font-size: 19px;
}

.pulse__dial-center span {
  color: #728781;
  font-size: 8px;
  white-space: nowrap;
}

.pulse__markets {
  display: grid;
  gap: 9px;
}

.market-pulse-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
}

.market-pulse-row > span,
.market-pulse-row > strong {
  font-size: 10px;
}

.market-pulse-row > span {
  color: #91a39e;
}

.market-pulse-row > strong {
  color: #bfc9c5;
  font-family: var(--mono);
  font-weight: 500;
  text-align: right;
}

.market-pulse-track {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(185, 104, 88, 0.22);
}

.market-pulse-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--jade));
  box-shadow: 0 0 10px rgba(117, 184, 165, 0.25);
}

.pulse__note {
  padding-left: 24px;
  border-left: 1px solid var(--line-soft);
}

.pulse__note span {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.pulse__note p {
  margin: 7px 0 0;
  color: #7f938e;
  font-size: 10px;
  line-height: 1.65;
}

.drawer-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  border: 0;
  background: rgba(1, 7, 7, 0.42);
  backdrop-filter: blur(2px);
  cursor: default;
}

.scene-drawer {
  position: fixed;
  z-index: 21;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(390px, calc(100vw - 20px));
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(199, 168, 107, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(199, 168, 107, 0.08), transparent 30%),
    rgba(5, 16, 16, 0.97);
  box-shadow: -30px 0 100px rgba(1, 7, 7, 0.58);
  backdrop-filter: blur(28px);
}

.scene-drawer[hidden],
.drawer-backdrop[hidden],
.scene-option[hidden],
.remove-button[hidden],
.toast[hidden] {
  display: none !important;
}

.scene-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #aebcb7;
  font-size: 20px;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--gold-bright);
  border-color: rgba(199, 168, 107, 0.45);
}

.scene-drawer__intro {
  margin: 17px 0 18px;
  color: #81958f;
  font-size: 11px;
  line-height: 1.65;
}

.character-picker {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.character-picker__head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.character-picker__head strong {
  color: #d9ddd5;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.character-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.character-option {
  position: relative;
  display: grid;
  min-width: 0;
  height: 116px;
  align-content: end;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(216, 224, 216, 0.09);
  border-radius: 9px;
  color: inherit;
  background: linear-gradient(180deg, rgba(16, 43, 39, 0.34), rgba(4, 14, 14, 0.9));
  cursor: pointer;
  text-align: left;
}

.character-option:hover,
.character-option.is-active {
  border-color: rgba(199, 168, 107, 0.46);
  background: linear-gradient(180deg, rgba(31, 67, 59, 0.52), rgba(8, 25, 23, 0.94));
}

.character-option.is-active {
  box-shadow: inset 0 -3px 0 var(--gold);
}

.character-option img {
  position: absolute;
  top: -18px;
  right: -9px;
  width: 82px;
  height: 110px;
  object-fit: contain;
  object-position: top right;
  filter: saturate(0.82) brightness(0.86);
  opacity: 0.78;
}

.character-option[data-character-option="reference-heroine"] img {
  mix-blend-mode: normal;
  filter: saturate(0.82) brightness(0.82);
  opacity: 0.92;
}

.character-option > span:last-child {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.character-option strong {
  color: #e3e2da;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.character-option small {
  overflow: hidden;
  color: #718681;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-option--none {
  place-content: end stretch;
}

.character-option__empty {
  position: absolute;
  top: 18px;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(199, 168, 107, 0.28);
  border-radius: 50%;
  color: rgba(199, 168, 107, 0.58);
  font-family: var(--serif);
  transform: translateX(-50%);
}

.scene-options {
  display: grid;
  gap: 8px;
}

.scene-option {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 5px;
  border: 1px solid rgba(216, 224, 216, 0.09);
  border-radius: 9px;
  color: inherit;
  background: rgba(4, 14, 14, 0.38);
  cursor: pointer;
  text-align: left;
}

.scene-option:hover,
.scene-option.is-active {
  border-color: rgba(199, 168, 107, 0.4);
  background: rgba(16, 43, 39, 0.62);
}

.scene-option.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.scene-option__preview {
  width: 86px;
  height: 52px;
  border-radius: 6px;
  background-color: #0a1b1a;
  background-position: center;
  background-size: cover;
}

.scene-option__preview--bamboo {
  background-image: url("./assets/cultivation-desktop/bamboo-rain.webp");
}

.scene-option__preview--cloud {
  background-image: url("./assets/cultivation-desktop/cloud-city.webp");
}

.scene-option__preview--lantern {
  background-image: url("./assets/cultivation-desktop/lantern-market.webp");
}

.scene-option > span:last-child {
  display: grid;
  gap: 4px;
}

.scene-option strong {
  color: #e3e2da;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.scene-option small {
  color: #718681;
  font-size: 9px;
}

.scene-controls {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line-soft);
}

.range-control {
  display: grid;
  gap: 10px;
}

.range-control > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #c5cfcb;
  font-size: 11px;
}

.range-control output {
  color: var(--gold-bright);
  font-family: var(--mono);
}

.range-control input {
  width: 100%;
  accent-color: var(--gold);
}

.range-control small,
.upload-note {
  color: #6d827c;
  font-size: 9px;
  line-height: 1.55;
}

.upload-control {
  display: flex;
  gap: 8px;
}

.upload-button,
.remove-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 10px;
}

.upload-button {
  color: #dedbd1;
}

.remove-button {
  color: #d19a8e;
}

.upload-note {
  margin: -8px 0 0;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid rgba(199, 168, 107, 0.3);
  border-radius: 9px;
  color: #e1dfd7;
  background: rgba(5, 16, 16, 0.96);
  box-shadow: var(--shadow);
  font-size: 11px;
}

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

/* Reference-proportioned 16:9 game desktop. Data lists scroll inside the frame. */
@media (min-width: 1280px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .scene__image {
    background-position: center center;
    transform: scale(1.002);
  }

  .scene__dimming {
    background:
      linear-gradient(90deg, rgba(2, 10, 10, 0.48) 0%, rgba(2, 10, 10, 0.27) 60%, rgba(2, 10, 10, 0.08) 100%),
      rgba(3, 12, 12, var(--scene-dimming));
  }

  .scene__content-protection {
    background:
      radial-gradient(ellipse 59% 92% at 35% 46%, rgba(3, 13, 13, 0.72) 0%, rgba(3, 13, 13, 0.46) 52%, transparent 81%),
      linear-gradient(90deg, rgba(2, 10, 10, 0.78) 0 var(--rail-width), rgba(2, 10, 10, 0.12) var(--rail-width), transparent 76%);
  }

  .scene__character img {
    right: -12px;
    bottom: -38px;
    height: min(calc(100dvh - 52px), 1020px);
    max-width: none;
    opacity: 0.94;
    filter: saturate(0.76) brightness(0.68) contrast(1.06) drop-shadow(-24px 18px 32px rgba(1, 7, 7, 0.72));
  }

  body[data-character="han-li"] .scene__character img {
    right: -30px;
    bottom: -35px;
    height: min(calc(100dvh - 46px), 1030px);
  }

  .app-shell {
    height: 100dvh;
    min-height: 0;
  }

  .rail {
    padding: 11px 11px 12px;
    backdrop-filter: blur(14px);
  }

  .rail__brand {
    min-height: 61px;
    gap: 10px;
    padding: 5px 5px 11px;
  }

  .rail__seal {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .rail__brand-copy strong {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .rail__brand-copy small {
    font-size: 9px;
  }

  .rail__nav {
    gap: 2px;
    margin-top: 13px;
  }

  .rail__link {
    min-height: 39px;
    gap: 9px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 11px;
  }

  .rail__link.is-active::before {
    left: -12px;
    height: 18px;
  }

  .rail__icon {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    font-size: 10px;
  }

  .rail__footer {
    gap: 8px;
    padding: 10px 3px 0;
  }

  .workspace {
    height: 100dvh;
    overflow: hidden;
  }

  .topbar {
    position: relative;
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    padding: 8px 18px 8px 40px;
    background: linear-gradient(180deg, rgba(4, 14, 14, 0.93), rgba(4, 14, 14, 0.82));
    backdrop-filter: blur(14px) saturate(105%);
  }

  .topbar__greeting {
    gap: 2px;
  }

  .topbar__greeting strong {
    font-size: 20px;
  }

  .eyebrow,
  .panel__kicker {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .time-block strong {
    font-size: 18px;
  }

  .time-block span,
  .market-state span {
    font-size: 8px;
  }

  .market-state strong {
    font-size: 10px;
  }

  .status-chip,
  .provenance {
    min-height: 21px;
    padding: 0 7px;
    font-size: 8px;
  }

  .icon-button,
  .scene-button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 9px;
  }

  .scene-button strong {
    font-size: 10px;
  }

  .dashboard {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 154px minmax(0, 1fr);
    gap: 8px;
    width: min(810px, calc(100vw - var(--rail-width) - 410px));
    height: calc(100dvh - var(--topbar-height));
    padding: 22px 0 82px 40px;
  }

  .panel {
    height: 100%;
    border-radius: 9px;
    background:
      linear-gradient(145deg, rgba(20, 54, 47, 0.16), transparent 46%),
      rgba(5, 20, 19, 0.73);
    box-shadow: 0 18px 48px rgba(1, 7, 7, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(15px) saturate(108%);
  }

  .panel::before,
  .panel::after {
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
  }

  .panel::after {
    inset: auto 6px 6px auto;
  }

  .panel__head {
    gap: 8px;
  }

  .panel__head h1,
  .panel__head h2 {
    margin-top: 3px;
    letter-spacing: 0.07em;
  }

  .panel__head h1 {
    font-size: 20px;
  }

  .panel__head h2 {
    font-size: 16px;
  }

  .briefing {
    grid-column: 1 / span 7;
    grid-row: 1;
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 13px 14px 10px;
  }

  .briefing__lead {
    display: -webkit-box;
    min-height: 0;
    margin: 7px 0 8px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .briefing__metrics {
    gap: 5px;
    margin: auto 0 0;
  }

  .briefing-metric {
    gap: 3px;
    min-height: 36px;
    padding: 5px 7px;
    border-radius: 5px;
  }

  .briefing-metric span {
    font-size: 7px;
  }

  .briefing-metric strong {
    font-size: 10px;
  }

  .briefing .panel__foot {
    display: none;
  }

  .scenic-note {
    display: none;
  }

  .prediction {
    grid-column: 8 / -1;
    grid-row: 1;
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 13px 13px 10px;
  }

  .prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
    gap: 5px;
    min-height: 0;
    margin: 7px 0 0;
  }

  .prediction-card {
    min-height: 0;
    gap: 4px;
    padding: 7px;
    border-radius: 5px;
  }

  .prediction-card__top {
    align-items: center;
    gap: 5px;
  }

  .prediction-card__title {
    font-family: var(--sans);
    font-size: 8px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .prediction-card__probability {
    font-size: 13px;
  }

  .prediction-card__question,
  .prediction-card__meta {
    display: none;
  }

  .prediction-card__bar {
    height: 2px;
  }

  .prediction .panel__foot {
    display: none;
  }

  .watchlist,
  .news {
    grid-row: 2;
    min-height: 0;
    padding: 13px 14px 10px;
  }

  .watchlist {
    grid-column: 1 / span 7;
  }

  .news {
    grid-column: 8 / -1;
  }

  .breadth-summary {
    grid-template-columns: repeat(2, minmax(52px, 0.65fr)) minmax(82px, 1fr);
    gap: 5px;
    margin-top: 8px;
  }

  .breadth-summary__item,
  .breadth-summary__coverage {
    gap: 2px;
    min-height: 36px;
    padding: 5px 7px;
    border-radius: 5px;
  }

  .breadth-summary__item span,
  .breadth-summary__coverage span {
    font-size: 7px;
  }

  .breadth-summary__item strong,
  .breadth-summary__coverage strong {
    font-size: 11px;
  }

  .breadth-bar {
    height: 3px;
  }

  .market-tabs {
    gap: 2px;
    margin: 7px 0 5px;
    padding: 2px;
    border-radius: 5px;
  }

  .market-tab {
    min-height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 8px;
  }

  .quotes-table {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }

  .quotes-table__head,
  .quote-row {
    grid-template-columns: 26px minmax(74px, 1fr) 50px 48px 56px 68px;
    gap: 5px;
  }

  .quotes-table__head {
    padding: 5px 4px;
    font-size: 7px;
  }

  .quotes-table__body {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .quote-row {
    min-height: 35px;
    padding: 5px 4px;
  }

  .quote-symbol {
    gap: 1px;
  }

  .quote-symbol strong {
    font-size: 10px;
  }

  .quote-symbol span {
    font-size: 7px;
  }

  .quote-price,
  .quote-change,
  .quote-rank,
  .quote-metric {
    font-size: 9px;
  }

  .panel__foot {
    gap: 8px;
    padding-top: 6px;
    font-size: 7px;
  }

  .panel__foot span,
  .panel__foot a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .news-tabs {
    margin-top: 7px;
  }

  .news-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    margin: 3px 0 5px;
  }

  .news-item {
    gap: 3px;
    padding: 8px 2px;
  }

  .news-item__title {
    font-size: 10px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .news-item__summary {
    font-size: 8px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
  }

  .news-item__meta {
    gap: 4px;
    font-size: 7px;
  }

  body.is-exporting {
    overflow: visible;
  }

  body.is-exporting .workspace,
  body.is-exporting .app-shell {
    height: 100dvh;
    overflow: visible;
  }
}

@media (max-width: 1120px) {
  :root {
    --rail-width: 72px;
  }

  .rail {
    width: var(--rail-width);
    padding-inline: 9px;
  }

  .rail__brand {
    justify-content: center;
    padding-inline: 0;
  }

  .rail__seal {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .rail__brand-copy,
  .rail__label,
  .rail__link small,
  .rail__footer {
    display: none;
  }

  .rail__link {
    justify-content: center;
    padding: 0;
  }

  .pulse__content {
    grid-template-columns: 120px minmax(240px, 1fr);
  }

  .pulse__note {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --rail-width: 0px;
    --topbar-height: auto;
  }

  .scene__content-protection {
    background:
      radial-gradient(ellipse 100% 88% at 50% 45%, rgba(4, 14, 14, 0.7) 0%, rgba(4, 14, 14, 0.5) 68%, transparent 100%),
      linear-gradient(180deg, rgba(3, 12, 12, 0.45), rgba(3, 12, 12, 0.12));
  }

  .scene__image,
  body[data-scene="cloud-city"] .scene__image,
  body[data-scene="lantern-market"] .scene__image {
    background-position: right center;
  }

  .scene__character img {
    right: -24vw;
    bottom: 4vh;
    height: min(72vh, 720px);
    max-width: 84vw;
    opacity: 0.48;
    filter: saturate(0.72) brightness(0.6) drop-shadow(-14px 12px 20px rgba(1, 7, 7, 0.58));
  }

  body[data-character="han-li"] .scene__character img {
    right: -30vw;
    height: min(74vh, 740px);
  }

  .app-shell {
    display: block;
  }

  .rail {
    display: none;
  }

  .workspace {
    width: 100%;
  }

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

  .topbar__mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .topbar__mobile-brand span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(199, 168, 107, 0.4);
    color: var(--gold-bright);
    font-family: var(--mono);
    font-size: 9px;
  }

  .topbar__mobile-brand strong {
    color: #e9e6dc;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 500;
  }

  .topbar__greeting {
    display: none;
  }

  .topbar__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    order: 3;
    padding-top: 7px;
    border-top: 1px solid var(--line-soft);
  }

  .market-state,
  .topbar__divider {
    display: none;
  }

  .time-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .time-block strong {
    font-size: 14px;
  }

  .topbar__actions {
    justify-self: end;
  }

  .button-label,
  .scene-button > span:first-child {
    display: none;
  }

  .dashboard {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 10px 24px;
  }

  .briefing,
  .watchlist,
  .news,
  .prediction {
    grid-column: 1;
  }

  .scenic-note {
    grid-column: 1;
    grid-row: 2;
    min-height: 24vh;
    padding-right: 8px;
  }

  .watchlist {
    grid-row: 3;
  }

  .news {
    grid-row: 4;
  }

  .prediction {
    grid-row: 5;
  }

  .pulse__content {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .breadth-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .breadth-summary__coverage {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 42px;
  }

  .topbar__actions {
    gap: 5px;
  }

  .icon-button,
  .scene-button {
    min-height: 34px;
    padding-inline: 10px;
  }

  .scene-button strong {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel {
    border-radius: 10px;
  }

  .briefing,
  .watchlist,
  .news,
  .prediction {
    padding: 18px 15px 14px;
  }

  .briefing {
    min-height: 0;
  }

  .briefing__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .briefing-metric:last-child {
    grid-column: 1 / -1;
  }

  .briefing__lead {
    min-height: 0;
    margin-block: 15px;
    font-size: 15px;
  }

  .panel__head h1 {
    font-size: 26px;
  }

  .panel__head h2 {
    font-size: 19px;
  }

  .quotes-table__head,
  .quote-row {
    grid-template-columns: minmax(105px, 1fr) 76px 72px 38px;
    gap: 7px;
  }

  .quotes-table__head,
  .quote-row {
    padding-inline: 2px;
  }

  .market-tabs {
    width: 100%;
  }

  .market-tab {
    flex: 1;
    padding-inline: 5px;
  }

  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .prediction-card {
    min-height: 142px;
  }

  .pulse__content {
    grid-template-columns: 1fr;
  }

  .pulse__dial {
    margin: 0 auto;
  }

  .pulse__note {
    grid-column: auto;
  }

  .panel__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .scene-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
