:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #263d35;
  background: #f7f8f3;
  font-synthesis: none;
  line-height: 1.65;
  font-size: 14px;
  --forest: #183e37;
  --muted: #77827a;
  --line: #e3e7df;
  --lime: #e5eeb0;
  --red: #ba5c4b;
  --green: #367f6a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
select,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8ba55c;
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
button {
  border: 0;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
p {
  color: var(--muted);
}
.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 36px 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #f0f3eb;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.8px;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: #7b877a;
  font-weight: 400;
  margin-top: 5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  color: #e5eeb0;
  background: var(--forest);
  width: 39px;
  height: 43px;
  border-radius: 12px;
  font-size: 21px;
  letter-spacing: -11px;
  padding-right: 9px;
  transform: rotate(-2deg);
}
.nav-label {
  color: #919b90;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 50px 13px 16px;
}
nav {
  display: grid;
  gap: 7px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  font-size: 13px;
  border-radius: 7px;
  color: #68766b;
  white-space: nowrap;
}
.nav-link > span {
  font-size: 21px;
  width: 21px;
  text-align: center;
  line-height: 1;
}
.nav-link.active {
  color: #264e40;
  background: #dfe7d6;
  font-weight: 600;
}
.nav-link:hover {
  background: #e5ebe0;
}
.nav-link i {
  font-size: 9px;
  border: 1px solid #d4ddd0;
  padding: 0 4px;
  border-radius: 4px;
  font-style: normal;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 48px 10px 0;
}
.sidebar-bottom b {
  font-weight: 500;
  font-size: 16px;
}
.sidebar-bottom p {
  font-size: 12px;
  margin-top: 13px;
  line-height: 1.9;
}
.seed-icon {
  color: #6e8662;
  font-size: 36px;
  margin-bottom: 13px;
}
.version {
  display: block;
  font-size: 10px;
  color: #939d8c;
  border-top: 1px solid #dce3d5;
  padding-top: 16px;
  margin-top: 38px;
}
main {
  padding: 0 46px;
  min-width: 0;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8a948a;
}
.topbar strong {
  font-weight: 500;
  color: #596d5b;
  margin-left: 7px;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.local-badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d9669;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 35px 0 29px;
}
.eyebrow {
  display: block;
  color: #82917d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 12px;
}
.heading-dot {
  color: #92a77c;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border: 1px solid #dce3d4;
  color: #6d8062;
  border-radius: 5px;
  font-size: 10px;
  padding: 4px 9px;
  font-weight: 500;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  background: var(--forest);
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  min-height: 305px;
}
.hero-copy {
  padding: 32px 34px;
  min-width: 0;
}
.pill.light {
  border-color: #607569;
  color: #d7e1ca;
  font-size: 10px;
}
.hero-copy h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.2px;
  margin-top: 17px;
}
.hero-copy p {
  color: #b7c8b9;
  font-size: 12px;
  margin: 13px 0 22px;
}
.hero-copy small {
  display: block;
  font-size: 9px;
  color: #a7baa8;
  margin-top: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 43px;
  padding: 10px 19px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  text-align: center;
  line-height: 1.5;
}
.button span {
  margin-left: auto;
}
.button.primary {
  background: var(--forest);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #28584c;
}
.button.lime {
  background: var(--lime);
  color: #2d4436;
  gap: 35px;
}
.button.lime:hover {
  background: #f0f4ce;
}
.button.secondary {
  border: 1px solid #dbe2d4;
  background: #fff;
  color: #365341;
}
.button.secondary:hover {
  background: #f0f4e9;
}
.button.sell {
  background: #ad5948;
  color: #fff;
}
.hero-chart {
  padding: 30px 28px 25px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-chart svg {
  background: #f6f8f0;
  border-radius: 7px;
  opacity: 0.93;
}
.hero-chart-top {
  display: flex;
  justify-content: space-between;
  color: #b4c5b4;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 0 1px 13px;
}
.chart-caption {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 10px;
  color: #8a9687;
  padding: 13px 0 0;
}
.chart-caption > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-chart .chart-caption {
  color: #b7c8b9;
  font-size: 8px;
  gap: 12px;
}
.chart-caption .muted {
  margin-left: auto;
  font-size: 8px;
  white-space: nowrap;
}
.legend {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  display: inline-block;
}
.red {
  background: #c66052;
}
.green {
  background: #478678;
}
.gold {
  background: #bf9e58;
}
.chart-label {
  font-size: 11px;
  fill: #899487;
  font-family: inherit;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 27px;
  margin-bottom: 30px;
}
.stat-strip > div {
  padding: 0 23px;
  border-right: 1px solid var(--line);
}
.stat-strip > div:first-child {
  padding-left: 0;
}
.stat-strip > div:last-child {
  border-right: 0;
}
.stat-strip span,
.position-stats span,
.review-stats span {
  display: block;
  font-size: 11px;
  color: #84907d;
}
.stat-strip strong {
  font-size: 25px;
  font-weight: 500;
  margin-top: 5px;
  display: block;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.stat-strip strong small {
  font-size: 10px;
  color: #8c9785;
}
.stat-strip .text-stat {
  font-size: 18px;
  padding-top: 8px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-title h2 {
  font-size: 17px;
  font-weight: 600;
}
.section-title > span {
  font-size: 10px;
  color: #8e9888;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  background: #fcfdf9;
}
.case-number {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: #98a385;
}
.case-number > span {
  font-size: 17px;
  line-height: 1;
}
.case-card h3 {
  margin: 17px 0 9px;
  font-size: 17px;
}
.case-card p {
  font-size: 11px;
  line-height: 1.85;
  min-height: 40px;
}
.text-button {
  background: none;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #536f49;
  font-size: 11px;
}
.text-button:hover {
  color: #183e37;
}
.case-card .text-button {
  margin-top: 12px;
  width: 100%;
  justify-content: space-between;
  font-size: 10px;
}
.bottom-note {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 25px 0 0;
}
.bottom-note > span {
  font-size: 30px;
  color: #90a078;
  line-height: 1;
}
.bottom-note h3 {
  font-size: 12px;
}
.bottom-note p {
  font-size: 10px;
  margin-top: 4px;
}
.bottom-note > a {
  font-size: 10px;
  color: #617455;
  margin-left: auto;
  white-space: nowrap;
}
footer {
  font-size: 9px;
  color: #929b8b;
  text-align: center;
  padding: 36px 0 20px;
}
.panel {
  background: #fdfefb;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
  min-width: 0;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #dae3c6;
  background: #f0f5e3;
  border-radius: 6px;
  margin-top: 18px;
  font-size: 12px;
  color: #496138;
}
.notice.warning {
  background: #fff4dd;
  border-color: #ecd2a7;
  color: #775c2a;
}
.muted {
  color: var(--muted);
}
.compact h1 {
  font-size: 29px;
}
.training-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  font-size: 10px;
  color: #85907f;
}
.training-progress b {
  color: #425a3b;
  margin-left: 9px;
}
.training-progress > span {
  white-space: nowrap;
}
progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  background: #e4e9df;
  border-radius: 5px;
}
progress::-webkit-progress-bar {
  background: #e4e9df;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #81975f;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #81975f;
  border-radius: 5px;
}
.train-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 18px;
  align-items: start;
}
.chart-panel {
  padding: 23px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 16px;
}
.panel-heading .muted {
  font-size: 10px;
}
.panel-heading p {
  font-size: 10px;
  margin-top: 5px;
}
.ohlc {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #8c9686;
  margin: 20px 0 5px;
}
.ohlc b {
  color: #4f6250;
  font-weight: 500;
  margin-left: 4px;
}
.chart-panel svg,
.small-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.position-stats {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 18px;
}
.position-stats span {
  font-size: 9px;
}
.position-stats b {
  font-size: 17px;
  font-weight: 550;
  display: block;
  margin-top: 5px;
}
.execution {
  color: #7d8974;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 18px;
  border-radius: 5px;
  background: #f1f5ea;
  padding: 10px 12px;
}
.decision-panel {
  padding: 24px 22px;
}
.decision-panel h2 {
  font-size: 18px;
}
.decision-panel > p {
  font-size: 11px;
  margin: 10px 0 18px;
}
.position-label {
  font-size: 10px;
  border-radius: 4px;
  padding: 9px 12px;
  background: #f1f4eb;
  color: #7b896f;
  margin-bottom: 20px;
}
.position-label.owned {
  background: #e6eddd;
  color: #536843;
}
.decision-panel label {
  font-size: 11px;
  display: block;
  margin-bottom: 9px;
}
select,
textarea {
  border: 1px solid #dbe2d5;
  background: #fff;
  color: #42513e;
  border-radius: 5px;
  padding: 11px 12px;
  width: 100%;
  font-size: 12px;
  min-height: 43px;
}
select {
  padding-right: 25px;
}
.decision-panel .button {
  width: 100%;
  margin-top: 13px;
}
.decision-hint {
  display: block;
  font-size: 9px;
  color: #919b89;
  line-height: 1.9;
  margin-top: 13px;
}
.plan {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
}
.plan > b {
  font-size: 11px;
}
.plan p {
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.95;
}
.plan > span {
  font-size: 10px;
  display: block;
  margin-top: 10px;
}
.rules {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 11px;
  background: #fafcf6;
  color: #79846f;
}
.rules summary {
  cursor: pointer;
  color: #536548;
  font-size: 11px;
  min-height: 22px;
}
.rules p {
  font-size: 11px;
  margin-top: 11px;
}
.empty {
  padding: 70px 25px;
  text-align: center;
  margin-top: 25px;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  font-size: 12px;
  margin: 14px auto 24px;
  max-width: 430px;
}
.empty-symbol {
  font-size: 40px;
  color: #94a37c;
  display: block;
  margin-bottom: 12px;
}
.history-list {
  display: grid;
  gap: 13px;
}
.history-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
}
.history-icon {
  border-radius: 50%;
  background: #e9efdf;
  color: #819764;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.history-card .muted {
  font-size: 10px;
}
.history-card h3 {
  font-size: 16px;
  margin: 4px 0 7px;
}
.history-result {
  margin-left: auto;
  text-align: right;
}
.history-result span,
.history-result small {
  display: block;
  font-size: 10px;
  color: #8a9481;
}
.history-result b {
  display: block;
  font-size: 21px;
  font-weight: 550;
}
.up {
  color: var(--red);
}
.down {
  color: var(--green);
}
.review-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.review-stats .panel {
  padding: 20px;
}
.review-stats strong {
  display: block;
  font-size: 25px;
  margin: 9px 0;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.review-stats strong em {
  font-size: 12px;
  font-style: normal;
  color: #7b8b6f;
}
.review-stats small {
  font-size: 9px;
  color: #85927a;
  display: block;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.review-evidence .panel-heading {
  padding-bottom: 20px;
}
.review-side {
  display: grid;
  gap: 18px;
}
.review-side h3 {
  font-size: 13px;
}
.review-side p {
  font-size: 10px;
  line-height: 1.9;
}
.evidence-card {
  border-top: 1px solid var(--line);
  padding: 20px 0 18px;
}
.evidence-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.evidence-step {
  font-size: 11px;
  color: #92a178;
  letter-spacing: 1px;
}
.evidence-card .muted {
  font-size: 10px;
  margin-left: auto;
}
.evidence-card h3 {
  font-size: 13px;
  margin: 11px 0 8px;
}
.evidence-card p {
  font-size: 12px;
  color: #65745f;
  line-height: 1.95;
}
.evidence-card small {
  color: #8e9785;
  font-size: 10px;
  display: block;
  margin-top: 9px;
}
.fact-status {
  display: inline-block;
  font-size: 9px;
  color: #668151;
  background: #eef4e7;
  padding: 3px 7px;
  border-radius: 3px;
  margin-top: 12px;
}
.fact-status.attention {
  background: #fbf0dc;
  color: #93703b;
}
.next-practice {
  background: #eff3e7;
  padding: 20px;
  border-radius: 6px;
  margin-top: 10px;
}
.next-practice b {
  font-size: 13px;
}
.next-practice p {
  font-size: 11px;
  margin: 8px 0 15px;
  line-height: 1.9;
}
.empty-inline {
  padding: 24px 0;
}
.empty-inline p {
  font-size: 12px;
  margin-top: 10px;
}
.small-chart {
  padding: 20px;
}
.small-chart svg {
  margin: 14px 0;
}
dl {
  margin: 17px 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0e8;
  font-size: 11px;
}
dt {
  color: #819075;
}
dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
  margin-top: 15px;
}
th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 500;
  color: #567049;
}
.result-page {
  text-align: center;
  max-width: 670px;
  margin: 46px auto 0;
  padding: 44px;
}
.result-symbol {
  font-size: 56px;
  color: #a3b77c;
  display: block;
  line-height: 1.2;
  margin: 12px 0 17px;
}
.result-page h1 {
  font-size: 31px;
}
.result-page > p {
  font-size: 11px;
  margin: 14px 0;
  line-height: 1.95;
}
.result-return {
  display: block;
  font-size: 49px;
  line-height: 1.25;
  font-weight: 500;
  margin: 27px 0 6px;
  letter-spacing: -2px;
}
.result-page > span:not(.eyebrow):not(.result-symbol) {
  font-size: 11px;
  color: #859078;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 25px 0 20px;
}
.result-grid span {
  font-size: 10px;
  color: #86947a;
  display: block;
}
.result-grid b {
  font-size: 17px;
  font-weight: 500;
  margin-top: 5px;
  display: block;
}
.result-page > .button {
  display: flex;
  max-width: 300px;
  margin: 24px auto 10px;
}
.concept-hero {
  padding: 44px 0 35px;
}
.concept-hero .eyebrow {
  margin-top: 26px;
}
.concept-hero h1 {
  font-size: 43px;
  line-height: 1.4;
}
.concept-hero > p {
  margin: 18px 0 23px;
  font-size: 13px;
  line-height: 1.9;
}
.concept-hero small {
  display: block;
  font-size: 10px;
  color: #8f9984;
  margin-top: 13px;
}
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.concept-grid h2 {
  margin: 12px 0 13px;
}
.concept-grid p {
  font-size: 12px;
}
.concept-grid small {
  font-size: 10px;
  color: #8c977f;
  display: block;
  line-height: 1.9;
}
.formula {
  font-family: monospace;
  font-size: 12px;
  color: #708251;
  background: #f0f4e7;
  border-radius: 5px;
  padding: 15px;
  margin: 18px 0;
}
.concept-list > div {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.concept-list > div > b {
  font-size: 12px;
}
.concept-list > div > p {
  font-size: 11px;
  margin-top: 7px;
}
.concept-list .concept-boundary {
  font-size: 10px;
  color: #80906f;
  background: #f1f5e9;
  border: 0;
  padding: 15px;
  border-radius: 5px;
  margin-top: 8px;
}
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
}
.feedback-layout > aside {
  display: grid;
  gap: 18px;
  align-content: start;
}
.feedback-form {
  padding: 30px;
}
.feedback-form h2 {
  margin-bottom: 23px;
}
.feedback-form > label {
  display: block;
  font-size: 12px;
  margin: 22px 0 10px;
}
.feedback-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.feedback-form legend {
  font-size: 12px;
  margin-bottom: 9px;
}
.feedback-form fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.feedback-form input {
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
}
.feedback-form .button {
  width: 100%;
  margin-top: 22px;
}
.feedback-form small {
  font-size: 10px;
  display: block;
  color: #8b967e;
  margin-top: 13px;
}
.feedback-layout aside h3 {
  font-size: 14px;
}
.feedback-layout aside p {
  font-size: 11px;
  line-height: 1.9;
}
.feedback-layout aside .button {
  width: 100%;
  margin-top: 18px;
}
.data-note p {
  margin-top: 10px;
}
.data-note .text-button {
  margin-top: 12px;
}
.danger {
  color: #a36855;
}
.data-note p:last-child {
  font-size: 9px;
}
@media (min-width: 1600px) {
  main {
    padding: 0 66px;
  }
  .home-hero {
    min-height: 335px;
  }
  .hero-copy {
    padding: 38px 40px;
  }
  .hero-copy h2 {
    font-size: 34px;
  }
  .hero-chart {
    padding-right: 42px;
  }
  .case-card {
    padding: 24px 26px;
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 14px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 34px;
    height: 38px;
  }
  main {
    padding: 0 28px;
  }
  .home-hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding: 27px;
  }
  .hero-copy h2 {
    font-size: 25px;
  }
  .hero-chart {
    padding-right: 22px;
  }
  .train-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 13px;
  }
  .decision-panel {
    padding: 20px 17px;
  }
  .chart-panel {
    padding: 18px;
  }
  .ohlc {
    gap: 10px;
    font-size: 9px;
  }
  .position-stats b {
    font-size: 14px;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 15px;
  }
  .review-stats {
    gap: 10px;
  }
  .review-stats .panel {
    padding: 16px;
  }
  .review-stats strong {
    font-size: 23px;
  }
  .bottom-note > a {
    white-space: normal;
    max-width: 110px;
  }
  .stat-strip > div {
    padding: 0 14px;
  }
  .case-card {
    padding: 18px;
  }
  .case-card h3 {
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    display: inline;
    margin-left: 12px;
    letter-spacing: 1px;
    font-size: 10px;
  }
  .brand-mark {
    width: 31px;
    height: 34px;
    border-radius: 9px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    margin-top: 17px;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .nav-link {
    font-size: 11px;
    padding: 9px 13px;
    gap: 8px;
  }
  .nav-link > span {
    font-size: 18px;
    width: 17px;
  }
  .nav-link i {
    font-size: 8px;
  }
  .topbar {
    height: 56px;
  }
  .page-heading {
    padding: 27px 0 24px;
  }
  main {
    padding: 0 24px;
  }
  .train-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .review-stats strong {
    font-size: 22px;
  }
  .review-stats small {
    line-height: 1.7;
  }
  .hero-chart {
    padding-left: 0;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .feedback-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }
}
@media (max-width: 680px) {
  .sidebar {
    padding: 15px 18px 0;
  }
  .sidebar nav {
    gap: 3px;
    margin-top: 15px;
  }
  .nav-link {
    font-size: 10px;
    padding: 9px 9px;
    gap: 6px;
  }
  .nav-link i {
    display: none;
  }
  .nav-link > span {
    font-size: 17px;
  }
  main {
    padding: 0 18px;
  }
  .local-badge {
    font-size: 8px;
  }
  .topbar {
    font-size: 9px;
    height: 48px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    padding: 26px 0 22px;
  }
  .page-heading h1 {
    font-size: 26px;
    letter-spacing: -0.7px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.9;
    max-width: 300px;
  }
  .page-heading > .pill {
    font-size: 8px;
    padding: 3px 5px;
    margin-top: 25px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 9px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 9px;
  }
  .hero-copy {
    padding: 26px 26px 20px;
  }
  .hero-copy h2 {
    font-size: 29px;
    margin-top: 14px;
  }
  .hero-copy p {
    font-size: 11px;
    margin: 12px 0 19px;
  }
  .hero-copy small {
    font-size: 8px;
    margin-top: 10px;
  }
  .hero-chart {
    padding: 0 24px 23px;
  }
  .hero-chart-top {
    font-size: 8px;
    padding-bottom: 9px;
  }
  .hero-chart svg {
    max-height: 135px;
  }
  .hero-chart .chart-caption {
    font-size: 8px;
    padding-top: 9px;
  }
  .stat-strip {
    padding: 20px 0;
    margin-bottom: 25px;
    grid-template-columns: 1fr 1fr;
    row-gap: 17px;
  }
  .stat-strip > div {
    padding: 0 18px;
  }
  .stat-strip > div:nth-child(2) {
    border: 0;
  }
  .stat-strip > div:nth-child(3) {
    padding-left: 0;
  }
  .stat-strip span {
    font-size: 10px;
  }
  .stat-strip strong {
    font-size: 24px;
  }
  .stat-strip .text-stat {
    padding-top: 5px;
    font-size: 18px;
  }
  .section-title {
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 10px;
  }
  .section-title h2 {
    font-size: 15px;
    white-space: nowrap;
  }
  .section-title > span {
    font-size: 8px;
    margin-top: 4px;
    text-align: right;
  }
  .case-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .case-card {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
  }
  .case-number {
    grid-column: 1/-1;
    font-size: 9px;
  }
  .case-card h3 {
    font-size: 17px;
    margin: 10px 0 5px;
    grid-column: 1/-1;
  }
  .case-card p {
    font-size: 10px;
    min-height: 0;
    max-width: 185px;
    align-self: center;
  }
  .case-card .text-button {
    font-size: 9px;
    margin-top: 0;
    gap: 15px;
  }
  .bottom-note {
    align-items: flex-start;
    margin-top: 23px;
    padding-top: 21px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .bottom-note > span {
    font-size: 26px;
  }
  .bottom-note > div {
    flex: 1;
    min-width: 0;
  }
  .bottom-note h3 {
    font-size: 11px;
  }
  .bottom-note p {
    font-size: 9px;
    line-height: 1.9;
  }
  .bottom-note > a {
    margin-left: 38px;
    max-width: none;
    font-size: 9px;
  }
  footer {
    font-size: 8px;
    padding: 29px 0 18px;
  }
  .train-layout,
  .review-layout,
  .concept-grid,
  .feedback-layout {
    grid-template-columns: 1fr;
  }
  .compact {
    flex-wrap: wrap;
    padding-bottom: 17px;
  }
  .compact h1 {
    font-size: 27px;
  }
  .compact > .text-button {
    padding: 0;
    font-size: 9px;
    margin-left: auto;
  }
  .training-progress {
    gap: 10px;
    font-size: 9px;
    margin-bottom: 15px;
  }
  .training-progress > span:last-child {
    font-size: 8px;
  }
  .chart-panel {
    padding: 17px 14px;
  }
  .chart-panel .panel-heading h2 {
    font-size: 14px;
  }
  .ohlc {
    gap: 14px;
    font-size: 9px;
    margin-top: 15px;
  }
  .chart-panel > svg {
    margin-top: 5px;
  }
  .chart-caption {
    font-size: 9px;
    gap: 15px;
    padding-top: 8px;
  }
  .position-stats {
    margin-top: 16px;
    padding-top: 15px;
    gap: 9px;
  }
  .position-stats b {
    font-size: 16px;
  }
  .execution {
    font-size: 9px;
    margin-top: 15px;
  }
  .decision-panel {
    padding: 21px;
  }
  .decision-panel > p {
    margin: 7px 0 15px;
  }
  .position-label {
    margin-bottom: 16px;
  }
  .decision-panel .button {
    min-height: 47px;
  }
  .plan {
    margin-top: 17px;
    padding-top: 14px;
  }
  .plan p {
    font-size: 10px;
  }
  .rules {
    padding: 13px 15px;
    margin-top: 16px;
  }
  .rules summary {
    font-size: 10px;
  }
  .rules p {
    font-size: 10px;
    line-height: 1.9;
  }
  .history-card {
    gap: 13px;
    padding: 17px;
    flex-wrap: wrap;
  }
  .history-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .history-card h3 {
    font-size: 14px;
  }
  .history-card .pill {
    font-size: 9px;
  }
  .history-card .muted {
    font-size: 9px;
  }
  .history-result {
    flex: 1;
    margin-left: 0;
    text-align: right;
  }
  .history-result b {
    font-size: 19px;
  }
  .history-result span,
  .history-result small {
    font-size: 9px;
  }
  .history-card > a {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 0;
  }
  .history-card > div:nth-child(2) {
    max-width: 180px;
  }
  .review-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .review-stats .panel {
    padding: 17px;
  }
  .review-stats span {
    font-size: 10px;
  }
  .review-stats strong {
    font-size: 24px;
  }
  .review-stats small {
    font-size: 8px;
  }
  .page-heading > .button {
    font-size: 9px;
    min-height: 37px;
    padding: 8px 10px;
    white-space: nowrap;
    align-self: flex-end;
  }
  .review-evidence {
    padding: 21px;
  }
  .review-evidence .panel-heading h2 {
    font-size: 15px;
  }
  .review-evidence .pill {
    font-size: 8px;
  }
  .evidence-card > div {
    gap: 7px;
  }
  .evidence-card .muted {
    font-size: 9px;
  }
  .evidence-card p {
    font-size: 11px;
  }
  .evidence-card small {
    font-size: 9px;
    line-height: 1.9;
  }
  .review-side {
    grid-template-columns: 1fr;
  }
  .result-page {
    padding: 30px 20px;
    margin-top: 26px;
  }
  .result-page h1 {
    font-size: 28px;
  }
  .result-return {
    font-size: 46px;
  }
  .result-grid span {
    font-size: 9px;
  }
  .result-grid b {
    font-size: 16px;
  }
  .result-page > .button {
    min-height: 47px;
  }
  .concept-hero {
    padding: 30px 0;
  }
  .concept-hero h1 {
    font-size: 32px;
  }
  .concept-hero > p {
    font-size: 11px;
  }
  .concept-hero small {
    font-size: 9px;
    line-height: 1.9;
  }
  .concept-grid .panel {
    padding: 23px;
  }
  .concept-grid h2 {
    font-size: 18px;
  }
  .concept-grid p {
    font-size: 11px;
  }
  .concept-grid dd {
    font-size: 10px;
  }
  .feedback-form {
    padding: 23px;
  }
  .feedback-form h2 {
    font-size: 19px;
  }
  .feedback-form > label,
  .feedback-form legend {
    font-size: 11px;
    line-height: 1.9;
  }
  .feedback-form fieldset label {
    font-size: 11px;
  }
  .feedback-form textarea {
    font-size: 11px;
  }
  .notice {
    font-size: 10px;
  }
  .empty {
    padding: 50px 22px;
  }
  .empty h2 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 680px) {
  body[data-page="train"] .sidebar {
    padding-top: 8px;
  }
  body[data-page="train"] .brand {
    display: none;
  }
  body[data-page="train"] .sidebar nav {
    margin-top: 0;
    padding-bottom: 8px;
  }
  body[data-page="train"] .topbar {
    display: none;
  }
  body[data-page="train"] .compact {
    padding: 16px 0 12px;
    gap: 5px;
    align-items: center;
  }
  body[data-page="train"] .compact .eyebrow {
    display: none;
  }
  body[data-page="train"] .compact h1 {
    font-size: 22px;
  }
  body[data-page="train"] .compact p {
    font-size: 9px;
    margin-top: 4px;
  }
  body[data-page="train"] .compact > .text-button {
    font-size: 8px;
    max-width: 85px;
    text-align: right;
    line-height: 1.8;
  }
  body[data-page="train"] .training-progress {
    margin-bottom: 11px;
  }
  body[data-page="train"] .chart-panel {
    padding: 13px;
  }
  body[data-page="train"] .chart-panel .panel-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  body[data-page="train"] .chart-panel .panel-heading h2 {
    font-size: 13px;
  }
  body[data-page="train"] .chart-panel .panel-heading .muted {
    font-size: 9px;
  }
  body[data-page="train"] .chart-panel .pill {
    font-size: 8px;
    padding: 3px 6px;
  }
  body[data-page="train"] .ohlc {
    margin-top: 12px;
    font-size: 8px;
  }
  body[data-page="train"] .position-stats {
    margin-top: 11px;
    padding-top: 11px;
  }
  body[data-page="train"] .position-stats b {
    font-size: 14px;
  }
  body[data-page="train"] .position-stats span {
    font-size: 8px;
  }
  body[data-page="train"] .execution {
    margin-top: 11px;
    font-size: 8px;
    padding: 8px 10px;
  }
  body[data-page="train"] .train-layout {
    gap: 11px;
  }
  body[data-page="train"] .decision-panel {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
  body[data-page="train"] .decision-panel > .eyebrow,
  body[data-page="train"] .decision-panel > p,
  body[data-page="train"] .decision-panel > .plan {
    display: none;
  }
  body[data-page="train"] .decision-panel h2 {
    grid-column: 1/-1;
    font-size: 15px;
  }
  body[data-page="train"] .decision-panel > .position-label {
    grid-column: 1/-1;
    margin: 8px 0 10px;
    padding: 5px 8px;
    font-size: 9px;
  }
  body[data-page="train"] .decision-panel > label {
    grid-column: 1/-1;
    margin-bottom: 7px;
    font-size: 10px;
  }
  body[data-page="train"] .decision-panel > select {
    grid-column: 1/-1;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 11px;
  }
  body[data-page="train"] .decision-panel > .button {
    min-height: 44px;
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 11px;
    gap: 8px;
  }
  body[data-page="train"] .decision-panel > .decision-hint {
    grid-column: 1/-1;
    font-size: 8px;
    margin-top: 9px;
  }
  body[data-page="train"] .rules {
    margin-top: 12px;
  }
  body[data-page="train"] footer {
    padding-top: 20px;
  }
}
.research-panel {
  margin-bottom: 22px;
}
.research-panel h2 {
  font-size: 19px;
}
.research-panel p {
  font-size: 12px;
  line-height: 1.95;
  margin-top: 11px;
  max-width: 850px;
}
.research-panel small {
  display: block;
  color: #819075;
  font-size: 10px;
  line-height: 1.9;
  margin-top: 14px;
}
.research-panel form {
  margin-top: 18px;
  max-width: 620px;
}
.research-panel form > label:not(.study-consent) {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.research-panel .study-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.9;
  margin: 18px 0;
}
.research-panel input[type="checkbox"] {
  accent-color: var(--forest);
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
}
.research-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
}
@media (max-width: 680px) {
  .research-panel {
    padding: 22px;
  }
  .research-panel h2 {
    font-size: 17px;
  }
  .research-panel p,
  .research-panel .study-consent {
    font-size: 11px;
  }
  .research-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .research-actions > .text-button {
    justify-content: center;
  }
}

.training-guide {
  padding: 18px 24px;
  margin-bottom: 22px;
}
.training-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.training-guide ol {
  padding-left: 23px;
  margin: 14px 0 10px;
  color: var(--muted);
}
.training-guide li + li { margin-top: 8px; }
.training-guide b { color: var(--forest); }
.training-guide > p { font-size: 12px; }
.replay-panel { margin-bottom: 26px; }
#replay-title { scroll-margin-top: 24px; }
.replay-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 20px 0;
}
.replay-controls > div { flex: 1; }
.replay-controls label { display: block; font-size: 12px; margin-bottom: 4px; }
.replay-controls select { width: 100%; min-height: 44px; }
.replay-content { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 26px; }
.replay-chart { min-width: 0; }
.replay-chart svg { display: block; width: 100%; height: auto; }
.replay-facts { padding: 12px 0; }
.replay-facts p { margin: 8px 0; }
.replay-facts small { color: var(--muted); display: block; }
.evidence-card .replay-link { display: block; margin: 12px 0; }
@media (max-width: 900px) {
  .replay-content { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 680px) {
  .training-guide { padding: 14px 16px; margin: 12px 0; }
  .replay-panel { padding: 18px 16px; }
  .replay-panel .panel-heading { align-items: start; gap: 10px; }
  .replay-panel .panel-heading h2 { font-size: 18px; }
  .replay-controls { flex-wrap: wrap; gap: 8px; }
  .replay-controls > div { flex-basis: 100%; order: -1; }
  .replay-controls > button { flex: 1; min-height: 44px; }
  .replay-facts { padding: 0; }
  .replay-chart .chart-caption { flex-wrap: wrap; }
}
