/* 《一手苹果》学习站。纸面、发货单、印刷海报的样子；颜色跟着品种换。 */
@font-face { font-family: "YS Display"; src: url("fonts/display.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "YS Text"; src: url("fonts/text-500.woff") format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "YS Text"; src: url("fonts/text-700.woff") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "YS Hand"; src: url("fonts/hand.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --paper: #fbf1dc; --paper-2: #f6e6c3; --card: #fffaf0; --ink: #1d2550; --ink-2: #4b5179; --rule: rgba(29, 37, 80, .18);
  --gold: #f4b62f; --stamp: #cf3a2c; --up: #2f8a4c; --down: #cf3a2c;
  --accent: #d9402e; --accent-deep: #a82a1c; --accent-soft: #fde0d4; --leaf: #3f8f4f; --leaf-soft: #dfeccb; --stripe: #d9402e;
  --display: "YS Display", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --text: "YS Text", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --hand: "YS Hand", "LXGW WenKai", "Kaiti SC", serif;
  --shadow: 0 1px 0 rgba(29, 37, 80, .08), 0 18px 40px -18px rgba(29, 37, 80, .35);
  --r: 14px;
}
html[data-product="sugar"] {
  --accent: #2e7fd6; --accent-deep: #1b4f9c; --accent-soft: #dcecfb; --leaf: #1b4f9c; --leaf-soft: #e3effa; --stripe: #2e7fd6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-weight: 500; font-size: 17px; line-height: 1.85;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29, 37, 80, .055) 1px, transparent 1.2px), radial-gradient(rgba(244, 182, 47, .09) 1px, transparent 1.4px);
  background-size: 22px 22px, 31px 31px; background-position: 0 0, 11px 17px;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; background: var(--paper-2); }
img.is-missing { visibility: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
#app:focus { outline: none; }
html.is-switching body { transition: background-color .4s; }
html.is-switching * { transition: background-color .4s, color .4s, border-color .4s, fill .4s, stroke .4s; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 241, 220, .9); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .04em; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 900; }
.mark { width: 26px; height: 26px; flex: none; color: var(--ink); }
.switch { display: inline-flex; padding: 3px; gap: 3px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; }
.switch-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px 3px 8px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.switch-btn .mark { width: 22px; height: 22px; }
.switch-btn.is-on { background: var(--ink); color: #fff; }
.switch-btn.is-on .mark { color: #fff; }
.switch-btn:not(.is-on):hover { background: var(--paper-2); }
.top-nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; font-weight: 700; }
.top-nav a { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.top-nav a[aria-current="page"] { border-color: var(--accent); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: 0 4px 0 var(--ink); }
.btn-main { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; }
.btn-stamp { background: var(--stamp); color: #fff; }
.link-btn { border: 0; background: none; padding: 4px 6px; font-size: 14px; font-weight: 700; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 首屏 */
.hero { padding: 44px 0 30px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 8.3vw, 120px); line-height: 1.04; letter-spacing: .01em; margin: 18px 0 10px; white-space: nowrap; }
.hero-word { position: relative; display: inline-block; color: var(--accent); }
.hero-word svg { position: absolute; left: -2%; right: -2%; bottom: -.06em; width: 104%; height: .16em; stroke: var(--gold); stroke-width: 9; z-index: -1; }
.hero-sub { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.4; }
.hero-lead { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { font-size: 14px; color: var(--ink-2); max-width: 16em; line-height: 1.6; }
.hero-art { position: relative; transform: rotate(1.2deg); }
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 10px 12px 0 var(--ink); }
.hero-art figcaption { position: absolute; left: -14px; bottom: 26px; transform: rotate(-4deg); background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 14px; font-family: var(--hand); font-size: 19px; box-shadow: 4px 4px 0 var(--ink); }

/* 小节标题 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.sec-head h2 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; }
.sec-head p { font-size: 15px; color: var(--ink-2); }
.sheet, .lessons, .sources { padding: 44px 0; }

/* 发货单 */
.ticket { position: relative; max-width: 980px; margin: 8px auto 0; padding: 14px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 10px 12px 0 var(--ink); transform: rotate(-.7deg);
  background: repeating-linear-gradient(135deg, var(--stripe) 0 14px, var(--card) 14px 28px); }
.ticket-body { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 22px 26px 16px;
  background-image: linear-gradient(rgba(29, 37, 80, .05) 1px, transparent 1px); background-size: 100% 34px; }
.ticket-body::before, .ticket-body::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ticket-body::before { left: -15px; } .ticket-body::after { right: -15px; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 3px double var(--ink); }
.ticket-kicker { font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--leaf); }
.ticket-title { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; letter-spacing: .12em; color: var(--accent); }
.ticket-no { text-align: right; }
.ticket-no dt { font-size: 13px; letter-spacing: .2em; color: var(--ink-2); }
.ticket-no dd { font-family: var(--hand); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; color: var(--accent-deep); border-bottom: 2px solid var(--accent); padding: 0 4px; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.cell { position: relative; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); min-height: 168px; }
.cell:nth-child(3n) { border-right: 0; }
.cell:nth-child(n+4) { border-bottom: 0; }
.cell-in { display: flex; flex-direction: column; height: 100%; padding: 16px 18px 18px; text-decoration: none; }
.cell-n { font-family: var(--display); font-weight: 900; font-size: 14px; color: var(--ink-2); letter-spacing: .1em; }
.cell-k { font-weight: 700; font-size: 15px; letter-spacing: .3em; margin-top: 2px; }
.cell-v { font-family: var(--hand); font-weight: 500; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; margin-top: 6px; color: var(--ink); }
.cell-v.is-empty { color: rgba(29, 37, 80, .28); border-bottom: 2px dashed rgba(29, 37, 80, .28); align-self: flex-start; padding-right: 28px; }
.cell-note { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; max-width: 19em; }
.cell.is-link:not(.is-filled) { background: var(--leaf-soft); }
.cell.is-link .cell-in:hover { background: rgba(244, 182, 47, .22); }
.cell.is-link:not(.is-filled) .cell-note { color: var(--leaf); font-weight: 700; }
.stamp { position: absolute; right: 12px; top: 12px; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--stamp); color: var(--stamp); display: grid; place-items: center; transform: rotate(-14deg); font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .08em; opacity: .9;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 5px var(--stamp); }
.stamp i { font-style: normal; }
.stamp.is-fresh { animation: thud .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes thud { 0% { transform: rotate(-30deg) scale(2.6); opacity: 0; } 60% { transform: rotate(-12deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); opacity: .9; } }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding-top: 12px; border-top: 3px double var(--ink); font-size: 13px; letter-spacing: .12em; color: var(--ink-2); }
.barcode { width: 150px; height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); }

/* 课程列表 */
.lesson-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lesson > a, .lesson > div { display: flex; flex-direction: column; height: 100%; padding: 18px 20px 20px; border: 2px dashed rgba(29, 37, 80, .35); border-radius: var(--r); text-decoration: none; background: rgba(255, 250, 240, .55); }
.lesson-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); margin-bottom: 14px; }
.lesson:not(.is-open) .lesson-art { border-color: rgba(29, 37, 80, .35); }
.lesson-n { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: .16em; color: var(--ink-2); }
.lesson-t { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.4; margin-top: 4px; }
.lesson-d { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-top: 6px; flex: 1; }
.lesson-wait { margin-top: 14px; font-size: 13px; letter-spacing: .1em; color: rgba(29, 37, 80, .5); }
.lesson.is-open > a { border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 7px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.lesson.is-open > a:hover { transform: translate(-2px, -2px); box-shadow: 8px 9px 0 var(--ink); }
.lesson.is-open .lesson-n { color: var(--accent); }
.lesson-go { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.lesson-go svg { width: 18px; height: 18px; }
.lesson.is-extra { grid-column: 1 / -1; }
.lesson.is-extra > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.lesson.is-extra .lesson-t { margin: 0; } .lesson.is-extra .lesson-d { margin: 0; } .lesson.is-extra .lesson-wait { margin: 0 0 0 auto; }

/* 数字出处 */
.source-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.source-list li { padding: 18px 20px; border-radius: var(--r); background: var(--paper-2); border-left: 8px solid var(--accent); }
.source-list li:nth-child(2) { border-color: var(--gold); } .source-list li:nth-child(3) { border-color: var(--leaf); }
.source-list b { display: block; font-size: 17px; }
.source-list span { display: block; font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-top: 4px; }

.foot { margin-top: 30px; padding: 26px 0 40px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--ink-2); }

/* 课程页 */
.l-wrap { width: min(820px, 100% - 40px); }
.l-head { padding: 34px 0 6px; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.back svg { width: 18px; height: 18px; }
.l-title { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7.6vw, 86px); line-height: 1.12; margin: 14px 0 16px; }
.l-lead { font-size: 20px; line-height: 1.85; }
.l-sec { padding: 26px 0; }
.l-h { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; margin-bottom: 16px; }
.l-h::before { content: ""; width: 14px; height: 30px; border-radius: 4px; background: var(--accent); flex: none; }
.l-p { margin: 14px 0; }
.l-art { margin: 22px 0 0; }
.l-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid var(--ink); border-radius: 0 0 16px 16px; overflow: hidden; box-shadow: 8px 10px 0 var(--ink); }
.plate { padding: 14px 18px 16px; border-right: 3px solid var(--ink); display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.plate:last-child { border-right: 0; }
.plate span { grid-column: 1 / -1; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.plate b { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4.2vw, 42px); line-height: 1.2; }
.plate i { font-style: normal; font-size: 15px; font-weight: 700; }
.plate-a { background: var(--gold); } .plate-b { background: var(--accent); color: #fff; } .plate-c { background: var(--leaf); color: #fff; }

/* 实验的公共样子 */
.lab { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 22px; box-shadow: 8px 10px 0 var(--ink); }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 16px; }
.lab-note, .lab-src { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.lab-src { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--rule); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg-btn { min-width: 64px; min-height: 46px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font-weight: 700; cursor: pointer; }
.seg-btn.is-on { background: var(--ink); color: #fff; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); }
.readout > div { padding: 10px 14px 12px; border-right: 2px solid var(--ink); }
.readout > div:last-child { border-right: 0; }
.readout dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.readout dd { font-family: var(--display); font-weight: 900; font-size: clamp(18px, 2.7vw, 26px); line-height: 1.35; }
.up { color: var(--up); } .down { color: var(--down); }

/* 十吨是多少 */
.lab-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.pack-big { font-family: var(--display); font-weight: 900; font-size: 22px; }
.pack-big b { font-size: clamp(44px, 7vw, 68px); line-height: 1.1; color: var(--accent); }
.pack-say { font-family: var(--hand); font-size: 20px; }
.pack-yard { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.pack-yard[data-lots="2"], .pack-yard[data-lots="3"], .pack-yard[data-lots="4"], .pack-yard[data-lots="5"] { grid-template-columns: repeat(2, 1fr); }
.pack-yard[data-lots="3"] .pallet:first-child, .pack-yard[data-lots="5"] .pallet:first-child { grid-column: 1 / -1; }
.pallet { padding: 10px 10px 6px; border-radius: 10px; background: var(--paper-2); border-bottom: 8px solid #b98a3e; }
.pallet img { width: 100%; background: transparent; image-rendering: auto; }
.pallet figcaption { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--ink-2); margin-top: 4px; }
.pallet.is-new { animation: drop .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes drop { from { transform: translateY(-26px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* 复刻卡 */
.replay { position: relative; display: grid; gap: 14px; padding-right: 0; }
.replay-art { position: absolute; right: -8px; top: -70px; width: 190px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); transform: rotate(5deg); box-shadow: 5px 6px 0 var(--ink); z-index: 1; }
.chat { max-width: 78%; }
.chat-who { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--ink-2); margin-left: 6px; }
.chat-say { display: inline-block; margin-top: 4px; padding: 12px 20px; border-radius: 22px 22px 22px 6px; background: var(--ink); color: #fff; font-size: 19px; font-weight: 700; }
.receipt { position: relative; margin-left: auto; width: min(100%, 620px); background: #fff; border: 2px solid var(--ink); border-radius: 6px 6px 0 0; padding: 18px 22px 26px; box-shadow: 8px 10px 0 var(--ink);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 10px 0, #000 9px, transparent 9.5px) bottom left / 20px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 10px 0, #000 9px, transparent 9.5px) bottom left / 20px 10px repeat-x; }
.receipt-head { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--ink-2); padding-bottom: 8px; border-bottom: 2px dashed var(--rule); }
.receipt ol { counter-reset: r; margin-top: 6px; }
.receipt li { counter-increment: r; position: relative; padding: 9px 0 9px 38px; border-bottom: 1px dashed var(--rule); font-family: var(--hand); font-size: 19px; line-height: 1.6; }
.receipt li::before { content: counter(r); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 14px; }
.receipt-foot { margin-top: 12px; font-size: 12px; letter-spacing: .18em; color: var(--ink-2); }
.receipt-wait { padding: 18px 20px; border: 2px dashed var(--rule); border-radius: 12px; color: var(--ink-2); }

/* 价格动一下 */
.price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-top label { font-weight: 700; }
.price-top output { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 6vw, 54px); line-height: 1.1; color: var(--accent-deep); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 6px 0 0; background: transparent; cursor: pointer; --pos: 50%; }
.range::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--gold) var(--pos), #fff var(--pos)); }
.range::-moz-range-track { height: 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; margin-top: -14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.range::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); }
.range-ends { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.price-say { margin-top: 16px; font-family: var(--hand); font-size: 20px; line-height: 1.7; min-height: 3.4em; }
.jar { position: relative; display: flex; height: 54px; margin-top: 6px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(207, 58, 44, .16) 0 8px, rgba(207, 58, 44, .04) 8px 16px); width: 50%; }
.jar-base { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 14px; font-size: 14px; font-weight: 700; letter-spacing: .2em; z-index: 2; pointer-events: none; }
.jar-fill { height: 100%; background: var(--gold); transition: width .12s; border-right: 3px solid var(--ink); margin-right: -3px; }
.jar { overflow: visible; }
.jar-gain { position: absolute; left: 100%; top: -3px; bottom: -3px; width: 0; max-width: 100%; background: var(--up); border: 0 solid var(--ink); border-radius: 0 12px 12px 0; transition: width .12s; }
.jar-gain.is-up { border-width: 3px 3px 3px 0; }

/* 真实的三十天 */
.days-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.days-hint { font-size: 14px; color: var(--ink-2); }
.chart { border-radius: 10px; cursor: crosshair; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: auto; stroke: none; overflow: visible; }
.chart text { font-family: var(--text); font-size: 12px; fill: var(--ink-2); }
.chart .cap { font-weight: 700; fill: var(--ink); font-size: 13px; }
.chart .tick line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; }
.chart .tick text { text-anchor: end; }
.chart .area { fill: var(--accent-soft); opacity: .7; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 3; }
.chart .zero { stroke: var(--ink); stroke-width: 2; }
.chart .bar.up { fill: var(--up); } .chart .bar.down { fill: var(--down); }
.chart .before { fill: rgba(29, 37, 80, .06); }
.chart .open line { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 5; }
.chart .open circle { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.chart .open text { fill: var(--accent-deep); font-weight: 700; font-size: 13px; }
.chart .half circle { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.chart .half line { stroke: var(--gold); stroke-width: 2.5; }
.chart .hover line { stroke: var(--ink); stroke-width: 1.5; }
.chart .hover circle { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.days-say { margin-top: 10px; font-family: var(--hand); font-size: 19px; line-height: 1.7; min-height: 3.4em; }

/* 手算题 */
.quiz { display: grid; gap: 16px; }
.q { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 20px; }
.q-t b { display: inline-block; margin-right: 12px; padding: 0 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; letter-spacing: .1em; }
.q-in { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.q-in input { width: min(260px, 100%); min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-family: var(--hand); font-size: 24px; color: var(--ink); }
.q-in span { font-weight: 700; }
.q-fb { min-height: 1.6em; margin-top: 8px; font-size: 15px; font-weight: 700; }
.q-how { display: none; font-size: 15px; color: var(--ink-2); padding-top: 8px; border-top: 2px dashed var(--rule); }
.q.is-right { border-color: var(--up); box-shadow: inset 8px 0 0 var(--up); } .q.is-right .q-fb { color: var(--up); }
.q.is-wrong { border-color: var(--down); box-shadow: inset 8px 0 0 var(--down); } .q.is-wrong .q-fb { color: var(--down); }
.q.is-wrong .q-how, .q.is-right .q-how { display: block; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 换品种 */
.swap-card { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 12px 20px 12px 12px; border: 3px solid var(--ink); border-radius: 18px; background: var(--card); text-decoration: none; box-shadow: 8px 10px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.swap-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 12px 0 var(--ink); }
.swap-card img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); flex: none; }
.swap-card span { flex: 1; display: grid; }
.swap-card b { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.4; }
.swap-card em { font-style: normal; font-size: 15px; color: var(--ink-2); }
.swap-card > svg { width: 30px; height: 30px; flex: none; }

/* 窄屏 */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 26px; }
  .hero-title { font-size: clamp(64px, 20vw, 150px); }
  .lesson-list { grid-template-columns: repeat(2, 1fr); }
  .source-list { grid-template-columns: 1fr; }
  .replay-art { position: static; width: 150px; margin-left: auto; transform: rotate(3deg); order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .l-wrap { width: calc(100% - 32px); }
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 0; }
  .top-nav { margin-left: auto; gap: 14px; font-size: 14px; }
  .brand { font-size: 18px; }
  .switch-btn { padding: 2px 12px 2px 6px; font-size: 14px; }
  .hero-art { transform: none; } .hero-art img { box-shadow: 6px 7px 0 var(--ink); }
  .hero-art figcaption { left: 10px; bottom: 12px; font-size: 16px; }
  .ticket { transform: none; padding: 10px; box-shadow: 6px 7px 0 var(--ink); }
  .ticket-body { padding: 16px 14px 12px; }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .cell { min-height: 150px; border-right: 2px solid var(--rule) !important; border-bottom: 2px solid var(--rule) !important; }
  .cell:nth-child(2n) { border-right: 0 !important; } .cell:nth-child(n+5) { border-bottom: 0 !important; }
  .cell-in { padding: 12px 10px 14px; }
  .stamp { width: 48px; height: 48px; font-size: 13px; right: 6px; top: 8px; }
  .barcode { width: 96px; }
  .lesson-list { grid-template-columns: 1fr; }
  .lesson.is-extra > div { flex-direction: column; } .lesson.is-extra .lesson-wait { margin: 10px 0 0; }
  .lab { padding: 16px 14px; box-shadow: 5px 6px 0 var(--ink); }
  .plates { grid-template-columns: 1fr; box-shadow: 5px 6px 0 var(--ink); }
  .plate { border-right: 0; border-bottom: 3px solid var(--ink); } .plate:last-child { border-bottom: 0; }
  .readout { grid-template-columns: 1fr; } .readout > div { border-right: 0; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .readout > div:last-child { border-bottom: 0; }
  .pack-yard[data-lots] { grid-template-columns: 1fr !important; }
  .jar { width: 60%; }
  .chat { max-width: 100%; } .chat-say { font-size: 17px; }
  .receipt { box-shadow: 5px 6px 0 var(--ink); padding: 14px 16px 22px; } .receipt li { font-size: 17px; }
  .swap-card { flex-wrap: wrap; } .swap-card img { width: 120px; } .swap-card b { font-size: 19px; }
  .l-lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 顶栏里的课号 */
.nav-l { font-size: 13px; color: var(--ink-2); margin-right: -6px; }
.top-nav { align-items: center; }
.top-nav .nav-n { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; padding: 0; margin-left: -12px; font-family: var(--display); font-weight: 900; font-size: 15px; background: var(--card); }
.top-nav .nav-n[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--ink); }

/* 课末的上一课下一课 */
.l-nav { padding: 12px 0 30px; }
.l-nav-in { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ln { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 3px solid var(--ink); border-radius: 16px; background: var(--card); text-decoration: none; box-shadow: 6px 7px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
a.ln:hover { transform: translate(-2px, -2px); box-shadow: 8px 9px 0 var(--ink); }
.ln svg { width: 26px; height: 26px; flex: none; }
.ln span { display: grid; flex: 1; }
.ln em { font-style: normal; font-size: 13px; letter-spacing: .16em; color: var(--ink-2); }
.ln b { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1.4; }
.ln-next { background: var(--accent); color: #fff; } .ln-next em { color: rgba(255, 255, 255, .85); }
.ln-next span { text-align: left; }
.ln-wait { border-style: dashed; box-shadow: none; background: transparent; color: var(--ink-2); }

/* 第一课：合约架 */
.chain-hint { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.chain { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 250px; padding: 0 2px; border-bottom: 3px solid var(--ink); }
.chain-bar { display: grid; grid-template-rows: 24px 1fr auto; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.chain-tag { font-family: var(--display); font-weight: 900; font-size: 13px; color: var(--accent-deep); letter-spacing: .1em; }
.chain-col { position: relative; display: block; }
.chain-col i { position: absolute; left: 12%; right: 12%; bottom: 0; border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--paper-2); transition: background .15s; }
.chain-bar.is-main .chain-col i { background: var(--gold); }
.chain-bar.is-on .chain-col i { background: var(--accent); }
.chain-bar:hover .chain-col i { filter: brightness(.96); }
.chain-mo { font-size: 12px; line-height: 1.35; padding: 6px 0 4px; color: var(--ink-2); font-weight: 700; }
.chain-bar.is-on .chain-mo { color: var(--ink); }
.readout-4 { grid-template-columns: 1fr 1.4fr 1fr 1fr; }

/* 第一课：说得含糊的时候 */
.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-chip { min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-family: var(--hand); font-size: 21px; cursor: pointer; }
.ask-chip.is-on { background: var(--ink); color: #fff; }
.ask-out { margin-top: 18px; display: grid; gap: 12px; min-height: 190px; align-content: start; }
.ask-card { margin-left: auto; width: min(100%, 560px); padding: 14px 20px 16px; border: 2px solid var(--ink); border-radius: 22px 22px 6px 22px; background: #fff; box-shadow: 6px 7px 0 var(--ink); }
.ask-card b { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 19px; padding: 0 10px; border-radius: 6px; background: var(--leaf-soft); }
.ask-card.ask-ask b { background: var(--gold); }
.ask-card p { margin-top: 6px; font-family: var(--hand); font-size: 19px; line-height: 1.65; }

/* 第二课：乘一下 */
.scale-big { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.scale-big b { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 9vw, 88px); line-height: 1.1; color: var(--accent-deep); }
.scale-big span { font-weight: 700; font-size: 20px; }
.scale-say { font-family: var(--hand); font-size: 20px; line-height: 1.7; min-height: 1.7em; }
.scale-bar { height: 22px; margin-top: 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.scale-bar i { display: block; height: 100%; background: var(--gold); border-right: 2px solid var(--ink); transition: width .35s cubic-bezier(.2, .9, .3, 1); }

/* 第二课：报价板 */
.board { display: grid; grid-template-columns: 1fr auto 1fr; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; }
.board > div { padding: 16px 18px; display: grid; gap: 2px; }
.board span { font-size: 14px; font-weight: 700; letter-spacing: .2em; }
.board b { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 6vw, 52px); line-height: 1.15; }
.board em { font-style: normal; font-size: 14px; }
.board-bid { background: var(--leaf-soft); }
.board-ask { background: var(--accent-soft); text-align: right; }
.board-mid { background: var(--ink); color: #fff; text-align: center; min-width: 150px; }

/* 第二课：跳一下 */
.tick-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.tick-mid { text-align: center; display: grid; }
.tick-mid span { font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: .1em; }
.tick-mid b { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 7vw, 56px); line-height: 1.15; color: var(--accent-deep); }
.lab-tick .scale-say { margin-top: 12px; text-align: center; }

/* 选择题 */
.q-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.q-opts button { min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 700; font-size: 17px; cursor: pointer; }
.q-opts button.is-on { background: var(--ink); color: #fff; }

@media (max-width: 640px) {
  .l-nav-in { grid-template-columns: 1fr; }
  .chain { height: 210px; gap: 4px; }
  .chain-mo { font-size: 11px; }
  .readout-4 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .board-mid { grid-column: 1 / -1; grid-row: 1; }
  .tick-row { grid-template-columns: 1fr 1fr; }
  .tick-mid { grid-column: 1 / -1; grid-row: 1; }
  .ask-chip { font-size: 19px; padding: 0 16px; }
  .top-nav .nav-n { width: 28px; height: 28px; margin-left: -6px; }
  .nav-l { display: none; }
}

/* 加映：在 Qube 里查三十天的行情 */
.top-nav .nav-x { padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 14px; }
.top-nav .nav-x[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--ink); }
.lesson.is-extra > a { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.lesson.is-extra .lesson-go { margin: 0 0 0 auto; align-self: center; }
.replay.is-long .chat { max-width: 92%; }
.replay.is-long .chat-say { font-size: 17px; font-weight: 500; line-height: 1.75; padding: 14px 20px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.duo-card { padding: 18px 22px 20px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); box-shadow: 6px 7px 0 var(--ink); }
.duo-card + .duo-card { background: #fff; }
.duo-k { display: inline-block; padding: 0 10px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.duo-card + .duo-card .duo-k { background: var(--ink); }
.duo-card h3 { margin-top: 8px; font-family: var(--display); font-weight: 900; font-size: 21px; line-height: 1.4; }
.duo-card ul { margin-top: 8px; }
.duo-card li { position: relative; padding: 5px 0 5px 20px; font-size: 16px; line-height: 1.65; border-bottom: 1px dashed var(--rule); }
.duo-card li:last-child { border-bottom: 0; }
.duo-card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.parts { font-family: var(--hand); font-size: 22px; line-height: 2.15; }
.part { padding: 5px 2px; border-bottom: 3px dashed var(--rule); cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 4px; transition: background .12s; }
.part:hover { background: var(--accent-soft); }
.part.is-on { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.part:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.parts-note { margin-top: 16px; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 6px 18px 18px 18px; background: #fff; font-size: 17px; line-height: 1.75; min-height: 5.2em; }
.five-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.five-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; flex: none; }
.lg-rng { width: 9px; height: 18px; border-radius: 5px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.lg-line { width: 22px; height: 3px; background: var(--ink); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.lab-five .chart { cursor: pointer; }
.chart .rng { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.chart .rng.is-on { fill: var(--accent); }
.chart .cl { fill: #fff; stroke: var(--ink); stroke-width: 1.8; }
.chart .pick line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .pick circle { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.chart .pick text { fill: var(--ink); font-weight: 700; font-size: 13px; }
.readout-5 { grid-template-columns: repeat(5, 1fr); }
.readout .is-key { background: var(--gold); }
@media (max-width: 640px) {
  .top-nav .nav-x { padding: 1px 10px; font-size: 13px; }
  .lesson.is-extra > a { flex-direction: column; } .lesson.is-extra .lesson-go { margin: 12px 0 0; align-self: flex-start; }
  .replay.is-long .chat { max-width: 100%; } .replay.is-long .chat-say { font-size: 16px; }
  .duo { grid-template-columns: 1fr; }
  .parts { font-size: 19px; line-height: 2.1; }
  .parts-note { font-size: 16px; min-height: 6.6em; }
  .readout-5 { grid-template-columns: 1fr; }
  .lab-five .chart text { font-size: 19px; } .lab-five .chart .pick text { font-size: 20px; }
  .lab-five .chart .cl { r: 4.4px; stroke-width: 2.4; } .lab-five .chart .line { stroke-width: 4; }
  .lab-five .days-hint { font-size: 13px; }
}

/* 第四课：确认那一下 */
.quad-pick { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.quad-card { margin: 18px 0 0; width: 100%; border-radius: 18px; }
.quad-card b { font-size: 21px; }
.quad-tag { display: inline-block; margin-top: 12px; padding: 1px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.check-rows { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.check-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-bottom: 2px dashed var(--rule); background: none; font: inherit; text-align: left; cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-row span { font-size: 14px; font-weight: 700; color: var(--ink-2); flex: none; }
.check-row b { font-family: var(--display); font-weight: 900; font-size: 19px; text-align: right; }
.check-row:hover { background: var(--accent-soft); }
.check-row.is-on { background: var(--ink); color: #fff; } .check-row.is-on span { color: rgba(255, 255, 255, .8); }
.lab-check .parts-note { min-height: 4.4em; }
.timer-face { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 20px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); }
.timer-face span { font-weight: 700; }
.timer-face b { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 7vw, 54px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer-face.is-live { background: var(--leaf-soft); } .timer-face.is-dead { background: #eee6d6; color: var(--ink-2); } .timer-face.is-dead b { text-decoration: line-through; }
.lab-timer .scale-say { margin-top: 12px; }
@media (max-width: 640px) { .check-row b { font-size: 17px; } .top-nav { gap: 12px; } }

/* 第五课：发出去以后 */
.trail { margin-top: 6px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: 6px 7px 0 var(--ink); overflow: hidden; }
.trail + .receipt, .l-p + .trail, .trail + .trail { margin-top: 22px; }
.trail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 20px; background: var(--ink); color: #fff; }
.trail-head b { font-family: var(--display); font-weight: 900; font-size: 21px; }
.trail-head span { font-size: 15px; font-weight: 700; }
.trail-steps li { display: grid; grid-template-columns: 92px 104px 1fr; gap: 6px 14px; align-items: baseline; padding: 12px 20px; border-bottom: 2px dashed var(--rule); }
.trail-steps li:last-child { border-bottom: 0; }
.trail-steps time { font-weight: 700; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trail-steps b { justify-self: start; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 14px; line-height: 1.7; white-space: nowrap; }
.trail-steps .is-key b { background: var(--gold); }
.trail-steps span { font-size: 16px; line-height: 1.7; }
.limit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.ladder { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.ladder li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px; border-bottom: 1px dashed var(--rule); font-size: 13px; }
.ladder li:last-child { border-bottom: 0; }
.ladder li.is-sell { background: var(--accent-soft); } .ladder li.is-buy { background: var(--paper-2); }
.ladder b { font-family: var(--display); font-weight: 900; font-size: 18px; min-width: 62px; }
.ladder em { font-style: normal; color: var(--ink-2); font-weight: 700; }
.ladder i { margin-left: auto; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); font-style: normal; font-weight: 700; white-space: nowrap; }
.ladder li.is-me { outline: 3px solid var(--ink); outline-offset: -3px; }
.limit-side { display: grid; gap: 14px; }
.limit-side .tick-mid { text-align: left; }
.limit-card { margin: 0; width: 100%; border-radius: 18px; min-height: 9.5em; }
.limit-card b { font-size: 20px; background: var(--gold); }
.lab-fates .parts-note { min-height: 4.6em; }

/* 第六课：收盘以后 */
.lab-ledger .chart { cursor: pointer; margin-top: 8px; }
.lab-ledger .lab-actions { margin-top: 12px; }
.chart .seen { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.chart .seen.is-short { fill: var(--down); }
.purse { display: grid; gap: 8px; margin-top: 14px; }
.purse-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.purse-track { height: 22px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.purse-track i { display: block; height: 100%; border-right: 2px solid var(--ink); transition: width .3s cubic-bezier(.2, .9, .3, 1); }
.purse-eq { background: var(--gold); } .purse-eq.is-short { background: var(--down); }
.purse-mg { background: var(--ink); }
.ledger-wrap { margin-top: 16px; max-height: 262px; overflow: auto; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.ledger { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ledger th { position: sticky; top: 0; padding: 8px 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger td { padding: 7px 12px; border-bottom: 1px dashed var(--rule); text-align: right; white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.up { color: var(--up); font-weight: 700; } .ledger td.down { color: var(--down); font-weight: 700; }
.ledger tr.is-short td { background: #fde4df; }
.ledger tr.is-empty td { text-align: center; color: var(--ink-2); padding: 16px; }
@media (max-width: 640px) {
  .trail-steps li { grid-template-columns: auto 1fr; } .trail-steps span { grid-column: 1 / -1; }
  .limit-grid { grid-template-columns: 1fr; }
  .purse-row { grid-template-columns: 1fr; gap: 2px; }
  .ledger { font-size: 14px; } .ledger th, .ledger td { padding: 7px 8px; }
  .lab-ledger .chart text { font-size: 19px; }
  .top-nav { gap: 10px; } .top-nav .nav-n { width: 26px; height: 26px; font-size: 13px; }
}
.chart .pick.is-short circle { fill: var(--down); }
