:root {
  --paper: #f6f7f2;
  --ink: #142e28;
  --muted: #546963;
  --accent: #175943;
  --lime: #d8ef8d;
  --line: #d7dfd5;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font: 15px/1.55 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #569425; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; padding: 10px 16px; background: white; }
.frame { width: min(1248px, 92%); margin: 0 auto; }
.site-header { background: #fcfdf9; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 35px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; line-height: 1.1; }
.brand small, .footer small { display: block; margin-top: 5px; font: 650 9px/1 var(--mono); letter-spacing: .13em; }
.header-inner nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; margin-left: auto; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
.header-inner nav a:hover, .footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.login { display: inline-flex; align-items: center; gap: 16px; justify-content: center; min-height: 44px; border-radius: 8px; background: var(--ink); padding: 0 17px; color: white; font-size: 14px; font-weight: 650; }
.login span { color: var(--lime); font-size: 19px; }
.login:hover { background: #235543; }
.context-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 16px; }
.context { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; color: var(--muted); }
.context i { width: 8px; height: 8px; border-radius: 50%; background: #4d8660; }
.context b { font-weight: 400; color: #a7b6ac; }
.context strong { font-weight: 600; color: var(--ink); }
.markets { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: #e9ede5; }
.markets button { min-height: 36px; padding: 4px 14px; font-size: 14px; font-weight: 650; color: var(--muted); border: 1px solid transparent; border-radius: 6px; background: transparent; }
.markets button small { font: 11px var(--mono); }
.markets button[aria-pressed="true"] { color: #fff; background: var(--accent); }
.markets button[aria-pressed="true"] small { color: var(--lime); }
.markets button:hover:not([aria-pressed="true"]) { background: #fbfcf8; }
.brief-cover { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; column-gap: clamp(22px, 5vw, 85px); color: #f9faf5; border-radius: 16px; padding: 30px clamp(24px, 3.2vw, 50px); background: linear-gradient(108deg, #142e28 30%, #214a3e 100%); }
.kicker { margin: 0; font: 650 11px/1.2 var(--mono); letter-spacing: .14em; }
.cover-kicker { color: var(--lime); display: flex; align-items: center; gap: 9px; }
.cover-kicker i { width: 22px; height: 2px; background: currentColor; }
.cover-copy h1 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.2; margin: 11px 0 9px; }
.cover-copy p { font-size: 14px; max-width: 32em; margin: 0; color: #c9d8d0; line-height: 1.75; }
.scope { display: flex; gap: clamp(16px, 2.5vw, 40px); margin-top: 20px; }
.scope > * { display: flex; flex-direction: column; gap: 3px; padding-right: clamp(16px, 2.5vw, 40px); border-right: 1px solid #4c685a; }
.scope > *:last-child { border: 0; padding-right: 0; }
.scope a { min-height: 44px; justify-content: center; }
.scope a:focus-visible { outline-color: var(--lime); }
.scope a small b { color: var(--lime); }
.scope a:hover small { text-decoration: underline; text-underline-offset: 3px; }
.scope span { font: 550 clamp(21px, 2vw, 29px)/1 var(--mono); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.scope small { font-size: 11px; color: #c6d7cd; }
.scope span small { color: #edf3ed; font: 500 12px system-ui,sans-serif; }
.cover-chart { background: #ffffff06; border: 1px solid #6c917c70; border-radius: 11px; padding: 16px 20px 13px; min-width: 0; }
.chart-head, .chart-quote { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chart-head { color: #d1ded3; font-size: 11px; }
.chart-head .kicker { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .06em; }
.chart-head i { background: var(--lime); width: 8px; height: 8px; border-radius: 2px; }
.chart-quote { margin: 5px 0 8px; font: 600 23px var(--mono); letter-spacing: -.035em; }
.chart-quote span { font-size: 18px; }
.chart-quote small { font-size: 11px; color: #d1ded3; }
.chart-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.chart-area svg { width: 100%; height: 82px; overflow: visible; }
.grid-line { fill: none; stroke: #7c9b88; stroke-opacity: .48; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--lime); stroke-width: 2.3px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--lime); }
.y-labels, .axis-dates { color: #cfddd3; font: 10px/1 var(--mono); }
.y-labels { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.axis-dates { display: flex; justify-content: space-between; margin: 9px 0 0; }
.chart-blank { min-height: 152px; display: grid; place-content: center; gap: 9px; text-align: center; color: #cbdacf; }
.preview-note { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.preview-note svg { width: 17px; height: 17px; flex: none; }
.preview-note a { color: var(--accent); font-weight: 650; padding: 5px 0; }
.preview-note a:hover { text-decoration: underline; }
.report-section { margin-top: 32px; scroll-margin-top: 16px; }
.section-head, .section-title, .edition { display: flex; align-items: center; }
.section-head { justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { gap: 12px; }
.section-no { display: grid; place-items: center; width: 37px; height: 39px; align-self: stretch; color: var(--accent); background: #e2ecd7; border-radius: 7px; font: 600 15px var(--mono); }
.section-title .kicker { color: var(--muted); font-size: 10px; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; margin: 3px 0 0; }
.edition { gap: 8px; font: 12px/1.5 var(--mono); color: var(--muted); }
.edition-tag { border-radius: 4px; padding: 2px 7px; color: #3d6253; background: #e3ece4; font: 600 11px/1.5 system-ui,sans-serif; }
.edition-tag.historic { color: #785519; background: #f4e7c8; }
.report-body { background: #fdfefa; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: middle; padding: 13px 16px; border-bottom: 1px solid #e2e8de; }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); background: #edf1e9; padding-top: 9px; padding-bottom: 9px; }
tbody th { font-weight: inherit; }
th:first-child, td:first-child { padding-left: 23px; }
.rank { width: 7%; color: #5b6e63; font: 13px var(--mono); }
.rank span { display: inline-grid; min-width: 23px; place-content: center; padding: 2px; border: 1px solid #dce4d7; border-radius: 4px; background: #f5f7f1; }
tbody tr:first-child .rank span { color: #304a21; background: #e3eecb; border-color: #d6e5bb; }
tbody tr:hover { background: #f4f7f0; }
.security b { font: 700 16px/1.35 var(--mono); letter-spacing: -.03em; }
.security small, .number-cell small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.picks .symbol-cell { width: 23%; }
.score-cell { width: 12%; }
.score-cell strong { display: inline-block; border-radius: 5px; padding: 3px 8px; font: 650 14px var(--mono); background: #e8efdf; color: #345331; }
.reasons-cell ul { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 16px; margin: 0; padding: 0; }
.reasons-cell li { font-size: 13px; color: #43594f; }
.reasons-cell li::before { content: '·'; color: #698b65; font-weight: 700; margin-right: 5px; }
.number-cell { font: 500 14px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.number-cell b { font-weight: 650; }
.strength { display: block; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.no-estimate { font: 12px/1.5 system-ui,sans-serif; color: var(--muted); }
.positive { color: #196342; }
.negative { color: #a74436; }
.spark { display: block; width: 96px; height: 28px; }
.spark polyline { fill: none; stroke: #397658; stroke-width: 1.9; stroke-linejoin: round; }
.report-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 22px; color: var(--muted); font-size: 12px; }
.report-foot b { color: var(--ink); }
.state { margin: 0; padding: 35px 23px; color: var(--muted); text-align: center; }
#load-error { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 28px 0; padding: 18px; background: #f8f0e2; border: 1px solid #d5c1a3; border-radius: 10px; }
#load-error button { background: #fffdf6; border: 1px solid #a99778; border-radius: 6px; padding: 7px 12px; color: var(--ink); }
.footer { display: flex; gap: 20px; align-items: center; margin: 36px auto 0; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer strong { display: flex; gap: 7px; align-items: center; color: var(--ink); font-size: 15px; }
.footer small { margin: 0; color: var(--muted); }
.footer a { margin-left: auto; }
@media (max-width: 840px) {
  .frame { width: 94%; }
  .brief-cover { column-gap: 24px; padding: 24px; }
  .cover-chart { padding: 13px; }
  th, td { padding: 12px; }
  th:first-child, td:first-child { padding-left: 15px; }
  .reasons-cell ul { display: block; }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; justify-content: space-between; gap: 10px; }
  .header-inner nav { display: none; }
  .brand { font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
  .login { min-height: 42px; padding: 0 12px; gap: 8px; }
  .context-bar { padding: 13px 0; flex-wrap: wrap; }
  .markets button { padding: 4px 10px; }
  .brief-cover { grid-template-columns: 1fr; gap: 18px; padding: 21px; border-radius: 12px; }
  .cover-copy h1 { font-size: clamp(28px, 7.5vw, 35px); }
  .cover-copy p { font-size: 13px; }
  .scope { margin-top: 15px; gap: 24px; }
  .scope > * { padding-right: 24px; }
  .chart-area svg { height: 62px; }
  .chart-blank { min-height: 90px; }
  .chart-quote { margin: 3px 0 6px; }
  .preview-note { align-items: baseline; flex-wrap: wrap; gap: 2px 6px; line-height: 1.65; font-size: 12px; }
  .preview-note svg { align-self: flex-start; margin-top: 3px; }
  .preview-note a { padding: 0; }
  .report-section { margin-top: 25px; }
  .section-title { gap: 8px; }
  .section-no { width: 29px; height: 34px; font-size: 12px; }
  h2 { font-size: 20px; }
  .section-title .kicker { font-size: 9px; }
  .edition { gap: 5px; font-size: 11px; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; align-items: start; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
  tbody th, tbody td, tbody th:first-child, tbody td:first-child { border: 0; padding: 0; min-width: 0; width: auto; }
  .picks tr { grid-template-columns: 24px minmax(0,1fr) max-content; }
  .picks .symbol-cell { width: auto; }
  .picks .score-cell { width: auto; white-space: nowrap; text-align: right; }
  .score-cell::before, .number-cell::before, .spark-cell::before { content: attr(data-label); display: block; color: var(--muted); font: 11px/1.4 system-ui,sans-serif; }
  .score-cell::before { display: inline-block; margin-right: 5px; }
  .rank { grid-area: 1/1; }
  .reasons-cell { grid-column: 2/-1; }
  .reasons-cell ul { display: flex; gap: 2px 10px; }
  .forecasts tr { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 6px; }
  .forecasts .symbol-cell { grid-area: 1/1/2/3; align-self: center; padding-left: 31px; }
  .forecasts .rank { align-self: center; }
  .forecasts .number-cell { grid-row: 2; font-size: 14px; }
  .forecasts .spark-cell { grid-area: 1/3; justify-self: end; }
  .forecasts .spark-cell::before { text-align: right; font-size: 10px; }
  .forecasts .spark { width: 76px; height: 24px; }
  .report-foot { padding: 11px 14px; display: grid; gap: 3px; }
  .footer { gap: 10px; flex-wrap: wrap; margin-top: 26px; }
  .footer small { display: none; }
}
@media (max-width: 380px) {
  .context { gap: 5px; font-size: 12px; }
  .scope { gap: 14px; }
  .scope > * { padding-right: 14px; }
  .edition { flex-direction: column; align-items: flex-end; gap: 3px; }
  .score-cell::before { display: block; }
}
@media (pointer: coarse) {
  .markets button, .login { min-height: 44px; }
  .footer a, .preview-note a { display: inline-flex; min-height: 44px; align-items: center; }
  .preview-note { align-items: center; }
  .preview-note svg { align-self: center; margin: 0; }
}
