* {
  box-sizing: border-box;
}
.price-section { margin: 28px 0; }
.price-section > h2 { margin-bottom: 3px; }
.price-section > p, .technical-card > small, .technical-card time,
.technical-meta, .technical-values dt, .technical-method { color: var(--muted); }
.price-section > p { margin: 0 0 16px; }
.technical-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.technical-card { min-width: 0; }
.technical-meta, .technical-quote { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.technical-meta, .technical-quote time { font-size: 12px; }
.technical-card h3 { margin: 10px 0 0; }
.technical-quote { margin-top: 12px; }
.technical-quote strong { font-size: 20px; }
.price-plot { display: block; width: 100%; height: auto; margin: 6px 0; }
.price-plot text { fill: var(--muted); font: 10px sans-serif; }
.price-plot circle { fill: var(--series0); }
.price-line { fill: none; stroke: var(--series0); stroke-width: 2.5; stroke-linejoin: round; }
.price-rule { stroke: var(--line); stroke-width: 1; }
.technical-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; padding: 9px 0; border-block: 1px solid var(--line); }
.technical-values dt { font-size: 12px; }
.technical-values dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.technical-card > p { margin: 4px 0 0; }
.technical-card .valuation-context { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.technical-method { margin-top: 10px; font-size: 13px; }
.technical-method summary { cursor: pointer; }
.investment-summary { margin: 6px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.investment-summary h4 { margin: 0; font-size: 16px; }
.summary-shortcut { display: inline-block; margin-top: 4px; font-size: 12px; }
.technical-card[id] { scroll-margin-top: 12px; }
.investment-summary p { margin: 4px 0 0; }
.plan-stance { color: var(--ink); }
.plan-levels { margin: 10px 0 0; display: grid; gap: 10px; }
.plan-levels dt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-weight: 600; }
.plan-levels strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-levels dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.indicator-details { padding-top: 9px; border-top: 1px solid var(--line); }
.indicator-details summary { cursor: pointer; font-size: 13px; color: var(--link); }
.chart-open { color: var(--link); background: transparent; border: 0; padding: 4px; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
#chart-dialog { width: min(980px, 96vw); max-width: 96vw; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); }
#chart-dialog::backdrop { background: rgb(10 15 24 / 65%); }
.chart-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
.chart-toolbar h3 { margin: 0 auto 0 0; }
.chart-toolbar form { margin: 0; }
#chart-frame iframe { width: 100%; height: min(68vh, 620px); display: block; border: 0; }
body {
  margin: 0;
  background: var(--page-wash), var(--bg);
  min-height: 100vh;
  color: var(--ink);
  font:
    15px/1.45 "Inter",
    "Segoe UI",
    Arial,
    "Microsoft JhengHei",
    "Microsoft YaHei",
    sans-serif;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.shell {
  width: min(1220px, calc(100% - 80px));
  margin: auto;
}
header {
  background: var(--sky);
  color: white;
  border-bottom: 1px solid var(--line);
}
.mast {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand i {
  color: currentColor;
  font: 29px/1 monospace;
}
.mastname {
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  padding-left: 22px;
  color: white;
}
.mastend {
  margin-left: auto;
  font:
    12px Consolas,
    monospace;
  color: var(--mast-ink);
}
.mastend b {
  margin: 0 8px;
  color: var(--mast-ink);
}
.tools,
.actions,
.panelhead,
.title,
.legend,
.switch,
footer {
  display: flex;
  align-items: center;
}
.tools,
.panelhead,
.title,
footer {
  justify-content: space-between;
}
.tools {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.tools label,
.snapshot,
small,
.panelhead p,
.title p,
#status,
footer,
.muted {
  color: var(--muted);
}
.tools select,
.snapshot select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 6px 9px;
  margin-left: 7px;
}
.actions {
  gap: 16px;
}
.auto {
  font-size: 13px;
}
.auto input {
  accent-color: var(--primary);
  vertical-align: middle;
}
.primary,
.download {
  background: var(--primary);
  color: var(--on-primary);
  border: 0;
  border-radius: 6px;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: 600;
}
.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary:hover,
.download:hover {
  background: var(--hover);
}
.title {
  align-items: flex-end;
  gap: 20px;
  margin-top: 26px;
}
.title h1 {
  font:
    normal clamp(32px, 4vw, 55px) / 1.06 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -2.7px;
  margin: 5px 0 2px;
}
.title p,
.panelhead p {
  margin: 4px 0 0;
}
.title .eyebrow,
.sectionmark {
  font:
    600 11px/1.3 Consolas,
    monospace;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--link);
}
.snapshot {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.snapshot select {
  margin: 0;
  padding: 6px;
}
.title p {
  font-size: 14px;
}
#status {
  margin: 12px 0;
  font:
    12px/1.45 Consolas,
    monospace;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--line);
  background: var(--stat-wash);
}
.stats > div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stats small,
.stat small {
  display: block;
  font-size: 12px;
}
.stats strong {
  display: block;
  font:
    600 clamp(17px, 2vw, 26px) / 1.3 "Segoe UI",
    sans-serif;
  margin-top: 3px;
  letter-spacing: -0.65px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(265px, 1fr);
  gap: 18px;
  margin: 18px 0;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 20px 22px;
}
.panelhead {
  align-items: flex-start;
  gap: 12px;
}
.panel h2 {
  font:
    600 19px/1.25 "Segoe UI",
    sans-serif;
  letter-spacing: -0.5px;
  margin: 0;
}
.panelhead p,
.panel p,
.retired {
  font-size: 13px;
}
.panel p {
  color: var(--muted);
}
.switch {
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}
.switch button {
  background: var(--paper);
  border: 0;
  border-radius: 2px;
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
  padding: 4px 8px;
}
.switch [aria-pressed="true"] {
  background: var(--soft);
  color: var(--link);
  font-weight: bold;
}
canvas {
  display: block;
  width: 100%;
  height: 205px;
  margin-top: 12px;
}
.legend {
  flex-wrap: wrap;
  gap: 12px;
  font:
    12px Consolas,
    monospace;
}
.legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.swatch {
  height: 3px;
  width: 14px;
}
.series0 {
  background: var(--series0);
}
.series1 {
  background: var(--series1);
}
.series2 {
  background: var(--series2);
}
.series3 {
  background: var(--series3);
}
.series4 {
  background: var(--series4);
}
.wireitem {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
}
.wireitem:first-child {
  margin-top: 13px;
}
.wireitem a,
.detail-links a {
  font-weight: 600;
}
.wireitem time,
.tabnum,
td:not(:first-child) {
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}
.wireitem time {
  color: var(--muted);
  font-size: 12px;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 0;
  text-align: right;
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
td,
th {
  padding: 9px 8px;
}
td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
td:first-child,
th:first-child {
  text-align: left;
}
tr:last-child td {
  border: 0;
}
td small {
  display: block;
  font:
    12px/1.4 "Segoe UI",
    sans-serif;
}
td button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
tr.selected {
  background: var(--soft);
}
.pos {
  color: var(--gain);
}
.neg {
  color: var(--loss);
}
.lower {
  grid-template-columns: 1fr 1fr;
}
.detail-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13px;
}
.vrow {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.vrow strong {
  font-family: Consolas, monospace;
}
.vrow select {
  max-width: 145px;
  padding: 3px;
  border: 1px solid var(--line);
}
.download {
  display: inline-block;
  font-size: 13px;
  margin-top: 12px;
}
.retired {
  color: var(--muted);
  margin: 12px 0;
}
footer {
  margin-top: 25px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  gap: 10px;
}
footer span {
  text-align: right;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .shell {
    width: calc(100% - 36px);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats > div {
    padding: 12px;
  }
  .title h1 {
    letter-spacing: -1.5px;
  }
  .feed #wire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .wireitem:first-child {
    margin: 0;
  }
  .feed .panelhead {
    margin-bottom: 12px;
  }
}
@media (max-width: 580px) {
  .shell {
    width: calc(100% - 24px);
  }
  .tools {
    align-items: flex-start;
    gap: 10px;
  }
  .tools > label {
    font-size: 0;
  }
  .tools select {
    margin: 0;
    font-size: 14px;
  }
  .actions {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 4px;
  }
  .title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
  }
  .snapshot {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .mast {
    gap: 12px;
  }
  .mastname {
    font-size: 12px;
    padding-left: 12px;
  }
  .mastend {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div:nth-child(2) {
    border: 0;
  }
  .stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .panel {
    padding: 16px 13px;
  }
  .grid {
    gap: 12px;
    margin: 12px 0;
  }
  .feed #wire {
    display: block;
  }
  .panelhead p {
    font-size: 12px;
  }
  .switch button {
    padding: 4px 6px;
  }
  .wireitem {
    padding: 7px 0;
  }
  footer {
    align-items: flex-start;
  }
  .title h1 {
    font-size: 35px;
  }
  .panel h2 {
    font-size: 17px;
  }
}
.ticker-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ticker-search label {
  font-weight: 650;
}
.ticker-search input {
  padding: 8px 11px;
  width: min(300px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.compare-panel {
  margin: 18px 0;
}
.compare-panel .download {
  margin-top: 0;
  white-space: nowrap;
}
.mastend[href] {
  color: var(--mast-ink);
}
@media (max-width: 580px) {
  .ticker-search {
    gap: 7px;
  }
  .ticker-search label {
    width: 100%;
  }
  .ticker-search input {
    flex: 1;
    min-width: 0;
    width: 140px;
  }
}
:root {
  color-scheme: light;
  --sky-1: #2a5ce6;
  --sky-2: #5b83eb;
  --sky-3: #8eaaf0;
  --sky-4: #ffffff;
  --sky: linear-gradient(
    107deg,
    var(--sky-1) 0%,
    var(--sky-2) 39%,
    var(--sky-3) 70%,
    var(--sky-4) 100%
  );
  --bg: #f5f8ff;
  --paper: #fff;
  --ink: #152446;
  --muted: #4c5e81;
  --line: #cbd7ed;
  --primary: var(--sky-1);
  --on-primary: white;
  --link: #204cbb;
  --hover: #1942b2;
  --mast-ink: #12234c;
  --soft: #eaf0ff;
  --focus: #163eb4;
  --gain: #166344;
  --loss: #a32e48;
  --series0: #2a5ce6;
  --series1: #965000;
  --series2: #116765;
  --series3: #91457c;
  --series4: #694c98;
  --page-wash: linear-gradient(155deg, #e4ecff 0%, #f5f8ff 32%, #fff 80%)
    no-repeat;
  --stat-wash: linear-gradient(100deg, #e1eaff, #f8faff);
}
:root[data-theme="night"] {
  color-scheme: dark;
  --sky: linear-gradient(
    107deg,
    #181818 0%,
    #1c1c1c 40%,
    #212121 72%,
    #303030 100%
  );
  --bg: #181818;
  --paper: #212121;
  --ink: #f9f9f9;
  --muted: #cdcdcd;
  --line: #414141;
  --primary: #f9f9f9;
  --on-primary: #181818;
  --link: #ededed;
  --hover: #cdcdcd;
  --mast-ink: white;
  --soft: #303030;
  --focus: #ededed;
  --gain: #8dddb5;
  --loss: #ffacb9;
  --series0: #90aeff;
  --series1: #ffbe73;
  --series2: #6cd8c6;
  --series3: #f1a3cf;
  --series4: #c5b0ff;
  --page-wash: linear-gradient(148deg, #212121 0%, #1c1c1c 40%, #181818 85%)
    no-repeat;
  --stat-wash: linear-gradient(100deg, #303030, #212121);
}
.preferences {
  display: flex;
  align-items: center;
  gap: 10px;
}
.preferences label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--mast-ink);
  font-size: 12px;
  font-weight: 600;
}
.preferences select {
  min-height: 35px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  max-width: 110px;
}
.sky-mark {
  display: inline-block;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  border: 1px solid #fff9;
  background: linear-gradient(
    155deg,
    #fff 0%,
    #fff 36%,
    #8eaaf0 37%,
    #8eaaf0 57%,
    #5b83eb 58%,
    #2a5ce6 100%
  );
}
.panel {
  box-shadow: 0 3px 16px rgba(28, 55, 115, 0.045);
}
input,
select {
  color: var(--ink);
  background-color: var(--paper);
}
:lang(zh) .title h1 {
  letter-spacing: 0;
  line-height: 1.25;
}
@media (max-width: 850px) {
  .preferences label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mastname {
    display: none;
  }
}
@media (max-width: 580px) {
  .mast {
    flex-wrap: wrap;
    gap: 5px 12px;
    padding: 9px 0;
  }
  .mast .mastend {
    margin-left: auto;
  }
  .mast .preferences {
    width: 100%;
    justify-content: flex-end;
  }
  .preferences label > span {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }
}
.desk-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.desk-nav a {
  display: block;
  padding: 6px 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 4px;
}
.desk-nav a:hover,
.desk-nav a[aria-current] {
  color: var(--ink);
  background: var(--soft);
}
.comparison-desk .title {
  margin-top: 30px;
}
.comparison-desk .ticker-search {
  margin-top: 13px;
  border-bottom: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px;
  gap: 8px;
}
.comparison-desk .ticker-search label {
  padding-left: 10px;
  font-size: 14px;
}
.comparison-desk .ticker-search input {
  flex: 1;
  min-width: 70px;
  width: auto;
  border-color: transparent;
}
.comparison-desk .ticker-search .primary {
  min-height: 39px;
}
.comparison-desk #status:empty {
  margin: 0;
}
.example-line {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 10px 0 4px;
  color: var(--muted);
  font-size: 12px;
}
.example-line a {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 9px;
  text-decoration: none;
  color: var(--muted);
  background: var(--paper);
}
.example-line a:hover,
.sector-tile:hover,
.history-line:hover {
  background: var(--soft);
}
.example-line b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.menu-heading,
.tile-head,
.tile-stats,
.history-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu-heading {
  margin: 24px 0 9px;
}
.menu-heading h2,
.tile-head h3 {
  margin: 0;
  font:
    600 19px/1.3 "Segoe UI",
    sans-serif;
  letter-spacing: -0.3px;
}
.desk-sectors,
.desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sector-tile {
  display: block;
  color: var(--ink);
  text-decoration: none;
  background: var(--stat-wash);
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tile-head span {
  font-size: 18px;
  color: var(--muted);
}
.ticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
  color: var(--muted);
  font:
    12px Consolas,
    monospace;
}
.tile-stats {
  justify-content: flex-start;
  gap: 10px;
}
.tile-stats b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.tile-stats span,
.sector-tile small,
.history-line small {
  font-size: 12px;
  color: var(--muted);
}
.desk-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  margin: 16px 0;
}
.history-line {
  padding: 11px 0;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.history-line:first-child {
  margin-top: 12px;
}
.history-line small {
  display: block;
  margin-top: 2px;
}
.history-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="night"] .sky-mark {
  background: linear-gradient(
    150deg,
    #f9f9f9 0% 36%,
    #afafaf 37% 57%,
    #5d5d5d 58%,
    #303030 100%
  );
}
@media (max-width: 850px) {
  .desk-grid {
    grid-template-columns: 1fr;
  }
  .desk-nav a {
    padding: 5px 7px;
  }
}
@media (max-width: 580px) {
  .desk-sectors {
    grid-template-columns: 1fr;
  }
  .comparison-desk .ticker-search label {
    width: auto;
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .example-line {
    gap: 6px;
  }
  .example-line > span {
    width: 100%;
  }
  .menu-heading {
    margin-top: 18px;
  }
  .desk-grid {
    gap: 10px;
  }
  .sector-tile {
    padding: 13px 15px;
  }
  .desk-nav a {
    font-size: 12px;
  }
}
.peer-editor { margin: 1rem 0; border-block: 1px solid var(--line); padding: .8rem 0; }
.peer-editor summary { cursor: pointer; font-weight: 650; }
.peer-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-top: .8rem; }
.peer-controls label { display: grid; gap: .3rem; min-width: 0; max-width: 100%; }
.peer-controls select { width: 100%; padding: .5rem; }
#peer-thesis, .valuation-context { max-width: 78ch; line-height: 1.55; }
#peer-feedback:empty, #peer-delta:empty { display: none; }
