:root {
  color-scheme: light;
  --background: #EFF5FC;
  --surface: #FFFFFF;
  --blue: #1677FF;
  --blue-hover: #095EDB;
  --blue-soft: #EAF3FF;
  --text: #101B35;
  --muted: #61718C;
  --border: #DDE8F5;
  --green: #10A779;
  --amber: #D28A14;
  --red: #D94343;
  --shadow: 0 8px 28px rgba(24, 66, 120, .06);
  --radius: 20px;
  --small-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: radial-gradient(ellipse 900px 440px at 50% 80px, rgba(255,255,255,.58), transparent 78%), var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg { vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: 22px; letter-spacing: -.3px; margin-bottom: 12px; }
h3 { font-size: 18px; }
p { margin-bottom: 16px; }
ul, ol { padding-left: 24px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1:focus { outline: none; }
h1:focus-visible { outline: none; }
[hidden] { display: none !important; }
#view-title { scroll-margin-top: 24px; }
.sr-only, .step-state {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; color: white; background: var(--blue); border-radius: 12px; }
.skip-link:focus { top: 16px; color: white; }

/* The shell stays quiet; each view has one clear reading surface. */
.site-header { background: rgba(255, 255, 255, .88); border-bottom: 1px solid rgba(221, 232, 245, .8); }
.header-inner { max-width: 1120px; min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 21px; font-weight: 750; letter-spacing: -.6px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid rgba(9,94,219,.1); border-radius: 9px; color: white; background: linear-gradient(145deg, #308AFF, #1677FF 68%); box-shadow: 0 3px 7px rgba(22,119,255,.13), inset 0 1px 0 rgba(255,255,255,.2); }
.brand-mark svg { width: 18px; height: 18px; }
.brand-label { white-space: nowrap; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-width: 0; }
.header-meta { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-meta:empty { display: none; }
.language-switch { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid #CEE0F7; border-radius: 12px; background: #F5F9FF; box-shadow: inset 0 1px 0 white; }
.language-option { display: inline-flex; align-items: center; justify-content: center; min-width: 61px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: #526B8D; background: transparent; font-size: 14px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.language-option:hover { color: var(--blue-hover); border-color: #C3DAFC; background: white; }
.language-option.is-active, .language-option[aria-pressed="true"] { color: white; border-color: #146CE6; background: var(--blue); box-shadow: 0 2px 5px rgba(22,119,255,.16); font-weight: 650; }
.language-option.is-active:hover, .language-option[aria-pressed="true"]:hover { color: white; border-color: var(--blue-hover); background: var(--blue-hover); }
.language-option:active { box-shadow: none; }
.language-option:focus-visible { outline-offset: 2px; }
.header-overview { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.header-overview:hover { color: var(--blue); }
.header-counter { color: var(--blue-hover); background: var(--blue-soft); border-radius: 8px; padding: 5px 12px; white-space: nowrap; font-size: 14px; font-weight: 550; }
#app { max-width: 1120px; margin: 30px auto 0; min-height: 60vh; }
.page { min-width: 0; }
.page > * + * { margin-top: 24px; }
.card { padding: 32px; background: var(--surface); border: 1px solid rgba(221, 232, 245, .85); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(24,66,120,.055), 0 1px 2px rgba(24,66,120,.025); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.button-label { min-width: 0; }
.button.primary { background: linear-gradient(180deg, #1677FF, #0F6FF3); color: white; border-color: rgba(9,94,219,.12); box-shadow: 0 5px 14px rgba(22,119,255,.17), inset 0 1px 0 rgba(255,255,255,.15); }
.button.primary:hover { color: white; background: linear-gradient(180deg, #106EF2, #095EDB); box-shadow: 0 7px 18px rgba(22,119,255,.22); transform: translateY(-1px); }
.button.primary:active { background: #074DAF; box-shadow: inset 0 2px 3px rgba(0,0,0,.08); transform: none; }
.button.secondary { color: var(--text); background: white; border-color: var(--border); box-shadow: 0 2px 3px rgba(24,66,120,.02); }
.button.secondary:hover { color: var(--blue-hover); background: #F8FBFF; border-color: #A1C9FF; }
.button.secondary:active { background: var(--blue-soft); }
.text-button, .button.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 0; background: transparent; border: 0; color: var(--blue); font-size: 14px; font-weight: 500; }
.text-button svg, .help-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.text-button:hover, .button.text-button:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 4px; }

/* A restrained illustration and layered blue light frame the first action. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr); align-items: center; gap: 30px; padding: 44px 40px; min-height: 348px; overflow: hidden; background: radial-gradient(ellipse at 83% 52%, #DCEEFF 0%, transparent 51%), linear-gradient(110deg, #FFFFFF 12%, #F9FCFF 59%, #EEF6FF 100%); }
.hero::before { content: ""; position: absolute; width: 72px; height: 3px; top: 0; left: 40px; border-radius: 0 0 5px 5px; background: var(--blue); }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; right: -220px; top: -270px; border: 1px solid rgba(22,119,255,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.15), 0 0 0 140px rgba(255,255,255,.12); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--blue-hover); font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.07); }
.hero-title { font-size: 42px; font-weight: 750; line-height: 1.3; letter-spacing: -1.2px; margin-bottom: 18px; }
html[lang="en"] .hero-title, html[lang="en"] .lesson-header h1 { text-wrap: balance; overflow-wrap: normal; word-break: normal; }
html[lang="en"] .hero-title { letter-spacing: -1.1px; line-height: 1.22; }
html[lang="en"] .lesson-header h1 { line-height: 1.28; }
.hero-subtitle { font-size: 20px; line-height: 1.6; margin-bottom: 9px; }
.hero-description { color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.hero-actions .primary { min-width: 206px; }
.hero-features { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 23px; padding-top: 16px; border-top: 1px solid rgba(174,203,242,.44); color: #627891; font-size: 14px; }
.hero-features > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; white-space: nowrap; }
.hero-features > span + span { border-left: 1px solid #DCE7F6; padding-left: 14px; }
.hero-features svg { flex: 0 0 auto; width: 16px; height: 16px; color: #5798EF; }
.resume-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.hero-copy > .text-button { margin-top: 0; }
.coin-scene { position: relative; display: grid; place-items: center; min-height: 265px; z-index: 1; }
.coin-scene::before { content: ""; position: absolute; width: 200px; height: 38px; bottom: 13px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(8, 114, 80, .11), transparent 69%); border-radius: 50%; }
.coin-orbit { position: absolute; left: 50%; top: 47%; width: 274px; height: 274px; border: 1px solid rgba(22,119,255,.095); border-radius: 50%; transform: translate(-50%, -50%); }
.coin-orbit::before { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(22,119,255,.075); border-radius: 50%; }
.coin-orbit::after { content: ""; position: absolute; right: 18px; top: 35px; width: 7px; height: 7px; background: #9CC6FF; border: 5px solid #EAF3FF; box-sizing: content-box; border-radius: 50%; }
.usdt-coin { position: relative; width: 216px; height: 216px; border: 5px solid #169B77; border-radius: 50%; background: radial-gradient(circle at 29% 20%, #87E6C7 0%, #41C7A1 37%, #20AC83 72%, #128F6C 100%); box-shadow: inset 1px 3px 7px rgba(255,255,255,.44), inset -4px -5px 8px rgba(1,94,68,.16), 7px 7px 0 #0F8665, 0 18px 24px rgba(6,102,75,.13); transform: perspective(600px) rotateY(-14deg) rotate(-12deg); }
.usdt-coin svg { display: block; width: 100%; height: 100%; }
.coin-caption { position: absolute; bottom: -7px; color: #758CA6; font-size: 14px; letter-spacing: 1px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.section-caption { margin: 0; color: var(--muted); font-size: 14px; }
.route-section, .quick-section { padding-top: 4px; }
.route-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: white; border: 1px solid var(--border); border-radius: 20px; padding: 0 10px; overflow: hidden; }
.route-grid::before { content: ""; position: absolute; top: 52px; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, #CFE2FB, #DDE8F5); }
.route-card { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 25px 10px 22px; color: var(--text); text-align: center; border: 0; background: transparent; transition: background-color .16s ease; }
.route-card:hover { color: var(--text); background: #F7FBFF; }
.route-card:active { background: var(--blue-soft); }
.route-card:focus-visible { outline-offset: -5px; border-radius: 12px; }
.route-icon, .quick-icon, .knowledge-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); background: var(--blue-soft); border-radius: 50%; }
.route-icon { position: relative; z-index: 1; width: 54px; height: 54px; margin-bottom: 17px; border: 4px solid white; }
.route-icon svg { width: 27px; height: 27px; }
.route-index { position: absolute; top: 64px; left: calc(50% + 12px); z-index: 2; display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid white; border-radius: 50%; color: var(--blue-hover); background: #DDEBFE; font-size: 14px; font-weight: 650; line-height: 1; }
.route-title { display: block; margin-bottom: 5px; font-size: 17px; font-weight: 650; }
.route-description { margin: 0; color: var(--muted); font-size: 14px; }
.route-status { display: flex; align-items: center; gap: 4px; margin-top: 7px; color: var(--green); font-size: 14px; }
.route-status svg { width: 15px; height: 15px; }
.route-card.is-read .route-index { background: #E5F7EF; color: #07835D; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-card { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 19px 15px; min-height: 90px; color: var(--text); background: white; border: 1px solid var(--border); border-radius: 14px; transition: background-color .16s ease, border-color .16s ease; }
.quick-card:hover { color: var(--text); background: #FBFDFF; border-color: #AECFFD; }
.quick-card:active { background: var(--blue-soft); }
.quick-icon { width: 38px; height: 38px; }
.quick-icon svg { width: 20px; height: 20px; }
.quick-label { flex: 1; font-size: 14px; font-weight: 550; line-height: 1.6; }
.quick-arrow { display: inline-flex; flex: 0 0 auto; color: #91A4BD; }
.quick-arrow svg { width: 16px; height: 16px; }
.overview-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.overview-tools > :last-child { color: var(--muted); }
.overview-tools > :last-child:hover { color: var(--blue-hover); }

/* Five compact nodes make the current place clear without adding a second card. */
.step-nav { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 15px 1px; gap: 12px; }
.step-nav::before { content: ""; position: absolute; height: 1px; left: 11%; right: 11%; top: 23px; background: #D1DFEF; }
.step-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; min-width: 0; min-height: 75px; padding: 7px 5px; border-radius: 10px; color: var(--muted); text-align: center; }
.step-link:hover { color: var(--blue-hover); }
.step-link:hover .step-number { border-color: #8DBBFA; background: white; }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid #CADAEF; border-radius: 50%; color: var(--muted); background: #F5F9FE; font-size: 14px; font-weight: 600; box-shadow: 0 0 0 5px var(--background); }
.step-number svg { width: 17px; height: 17px; }
.step-name { font-size: 14px; font-weight: 550; }
html[lang="en"] .step-name { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
html[lang="en"] .route-title, html[lang="en"] .route-description, html[lang="en"] .action-heading h2 { overflow-wrap: break-word; hyphens: auto; }
.step-link.is-read .step-number { color: #07835D; border-color: #BFDFD0; background: #E8F7EF; }
.step-link.is-current { color: var(--blue-hover); }
.step-link.is-current .step-number { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--background), 0 4px 10px rgba(22,119,255,.2); }
.step-link.is-current .step-name { font-weight: 700; }
.lesson-card { overflow-wrap: anywhere; }
.lesson-card > * + * { margin-top: 24px; }
.lesson-header { position: relative; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.lesson-intro { display: flex; align-items: flex-start; gap: 20px; }
.lesson-icon { flex: 0 0 auto; width: 66px; height: 66px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D4E6FF; border-radius: 18px; color: var(--blue); background: linear-gradient(145deg, #F7FBFF, #E6F0FF); margin-top: 4px; box-shadow: inset 0 1px 0 white; }
.lesson-icon svg { width: 30px; height: 30px; }
.lesson-title-group { flex: 1; min-width: 0; }
.lesson-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 9px; }
.lesson-kicker { margin: 0 0 9px; color: var(--blue); font-size: 16px; font-weight: 650; }
.lesson-meta-row .lesson-kicker { margin: 0; }
.lesson-progress-label { color: #8290A8; font-size: 14px; }
.lesson-progress-label::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 12px; vertical-align: -1px; background: #D6E0ED; }
.lesson-header h1 { margin-bottom: 12px; font-size: 32px; font-weight: 750; letter-spacing: -.8px; }
.lesson-subtitle { margin: 0; color: var(--muted); }
.route-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; padding: 13px 0; border-bottom: 1px solid #EDF2F8; font-size: 14px; }
.route-token { color: #506582; background: transparent; border-radius: 0; padding: 0; }
.route-arrow { display: inline-flex; align-items: center; color: #ABC0DA; }
.route-arrow svg { width: 15px; height: 15px; }
.branch-choice { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px; background: #F2F6FC; border-radius: 12px; }
.branch-option { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 250px; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; color: var(--muted); }
.branch-option.selected { background: white; color: var(--blue-hover); border-color: #E0E9F5; font-weight: 600; box-shadow: 0 2px 5px rgba(24,66,120,.04); }
.branch-option svg { width: 17px; height: 17px; flex: 0 0 auto; }
a.branch-option:hover { color: var(--blue-hover); background: #E8F1FF; }
.applicable-note, .external-note { color: var(--muted); font-size: 14px; }
.applicable-note p:last-child { margin-bottom: 0; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid transparent; border-left-width: 3px; border-radius: 10px; background: #F6F9FD; }
.notice.info { background: #F1F7FF; border-left-color: #72AEFF; }
.notice.warning { background: #FFF8E9; border-left-color: var(--amber); }
.notice.danger { background: #FFF3F3; border-left-color: var(--red); }
.notice.success { background: #EEFAF5; border-left-color: var(--green); }
.notice-icon { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; flex: 0 0 auto; margin-top: 3px; color: var(--blue); }
.notice-icon svg { width: 21px; height: 21px; }
.warning .notice-icon { color: var(--amber); }
.danger .notice-icon { color: var(--red); }
.success .notice-icon { color: var(--green); }
.notice-content { min-width: 0; margin: 0; }
.notice-content p:last-child { margin-bottom: 0; }
.overview-page > .notice { background: transparent; border: 0; padding: 3px 0; font-size: 14px; color: var(--muted); }
.overview-page > .notice .notice-icon { width: 19px; height: 19px; margin-top: 2px; }
.overview-page > .notice .notice-icon svg { width: 19px; height: 19px; }

/* Explanations are an ordered editorial column; official images have room to read. */
.tutorial-layout { min-width: 0; }
.tutorial-layout.operation-list { display: block; }
.operation-gallery-intro { margin-bottom: 2px; }
.operation-gallery-intro .lesson-visual-label { margin-bottom: 8px; }
.operation-gallery-intro .section-caption { max-width: 810px; margin: 0; }
.operation-row { min-width: 0; padding: 23px 0; }
.operation-row + .operation-row { border-top: 1px solid #EDF2F8; }
.operation-row.has-visual { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 24px; }
.operation-row:last-child { padding-bottom: 0; }
.operation-copy { min-width: 0; }
.operation-copy > .action-text { margin: 0 0 0 38px; }
.operation-copy > .button { margin: 16px 0 0 38px; padding: 10px 14px; font-size: 14px; min-height: 44px; }
.operation-copy > .external-note { margin: 7px 0 0 38px; }
.operation-visual { min-width: 0; }
.operation-visuals > .phone-figure:only-child { grid-column: 1 / -1; width: min(100%, 380px); justify-self: center; }
.operation-visuals > .phone-figure:only-child.is-wide { width: min(100%, 510px); }
.action-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 9px; }
.action-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; color: var(--blue-hover); background: var(--blue-soft); font-size: 14px; font-weight: 700; margin-top: 1px; }
.action-heading h2 { font-size: 18px; line-height: 1.55; margin: 0; letter-spacing: -.2px; }
.action-text { color: var(--muted); margin: 0 0 18px; }
.lesson-visual-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: #536B8C; font-size: 14px; font-weight: 550; letter-spacing: .2px; margin-bottom: 16px; }
.lesson-visual-label::before { content: ""; height: 13px; width: 3px; background: #85B8FF; border-radius: 2px; }
.operation-visuals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px 14px; }
.operation-visuals > .is-wide { grid-column: 1 / -1; }
.phone-figure { min-width: 0; margin: 0; text-align: center; }
.phone-preview { position: relative; display: block; width: 100%; max-width: 100%; padding: 4px 0; margin: 0 auto; background: transparent; border: 0; border-radius: 12px; color: var(--text); }
.phone-preview:hover .screenshot-mount { border-color: #B5D2FA; background: #ECF3FD; }
.phone-preview:active .screenshot-mount { background: #E5F0FF; }
.screenshot-mount { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 150px; padding: 14px; border: 1px solid #E1EAF5; border-radius: 14px; background: linear-gradient(145deg, #F6F9FD, #EDF3FB); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); transition: background-color .16s ease, border-color .16s ease; }
.screenshot-crop { position: relative; overflow: hidden; width: min(100%, calc(350px * var(--screenshot-ratio, .55))); margin: 0 auto; }
.real-screenshot { display: block; width: 100%; height: auto; max-height: none; max-width: 100%; margin: 0 auto; border: 0; border-radius: 0; }
.screenshot-crop > .real-screenshot[style*="absolute"] { max-width: none; max-height: none; margin: 0; }
.is-wide .screenshot-mount { padding: 18px; }
.is-wide .real-screenshot { max-height: none; }
.figure-caption { padding: 11px 0 0; font-size: 14px; }
.figure-label { display: block; color: #415877; font-size: 14px; font-weight: 600; line-height: 1.6; }
.operation-visuals.is-single .figure-label { display: none; }
.figure-disclaimer { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 4px; }
.figure-tools { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #EAF0F8; }
html[lang="en"] .figure-tools > * { white-space: nowrap; }
.figure-source { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; margin: 0; padding: 8px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; color: var(--blue); overflow-wrap: anywhere; }
.figure-source:hover { color: var(--blue-hover); background: #EFF6FF; border-color: #DBE9FC; }
.figure-source svg { width: 13px; height: 13px; flex: 0 0 auto; }
.zoom-hint { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 11px; margin: 0; border: 1px solid #DDE8F5; border-radius: 8px; color: var(--blue); background: #F7FAFF; font-size: 14px; line-height: 1.6; }
.zoom-hint:hover { color: var(--blue-hover); border-color: #AFCFFF; background: #EAF3FF; }
.zoom-hint:active { background: #DBEBFF; }
.zoom-hint svg { width: 14px; height: 14px; }
.figure-note { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.screenshot-unavailable { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; min-height: 230px; padding: 24px 16px; border: 1px solid var(--border); border-radius: 12px; background: #F4F7FC; color: var(--muted); font-size: 14px; text-align: center; }
.screenshot-unavailable svg { width: 25px; height: 25px; color: #93ABC8; }
.screenshot-unavailable strong { font-size: 16px; color: #546B8B; }
.phone-preview:disabled + .figure-caption .zoom-hint { display: none; }

.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.knowledge-card { position: relative; padding: 22px 0 24px 62px; border-bottom: 1px solid #EDF2F8; min-width: 0; }
.knowledge-card:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 10px; }
.knowledge-icon { position: absolute; top: 22px; left: 0; width: 44px; height: 44px; border-radius: 12px; }
.knowledge-icon svg { width: 23px; height: 23px; }
.knowledge-card h2 { font-size: 20px; margin-bottom: 10px; }
.knowledge-card p { color: var(--muted); margin: 0; }
.asset-review { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 28px; }
.asset-figure { padding: 22px; background: #F5F8FD; border: 1px solid #E5EDF7; border-radius: 16px; }
.verification-panel { padding: 26px; border: 1px solid #D1EEDF; border-radius: 16px; background: linear-gradient(140deg, #F2FCF7, #E9F8F1); }
.verification-panel h2 { color: #087A57; }
.verification-list { padding: 0; margin: 24px 0 0; list-style: none; }
.verification-list li { display: flex; align-items: flex-start; gap: 12px; }
.verification-list li + li { margin-top: 20px; }
.verification-list h3 { font-size: 18px; margin-bottom: 5px; }
.verification-list p { color: #567768; margin-bottom: 0; }
.check-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 23px; height: 23px; color: var(--green); margin-top: 3px; }
.check-icon svg { width: 23px; height: 23px; }
.scenario-section > * + * { margin-top: 14px; }
.scenario-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.scenario-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 11px 14px; color: var(--muted); border: 1px solid var(--border); background: white; border-radius: 11px; font-size: 16px; font-weight: 550; transition: background-color .16s ease, border-color .16s ease; }
.scenario-button svg { width: 21px; height: 21px; flex: 0 0 auto; }
.scenario-button:hover { color: var(--blue-hover); background: #F7FAFF; border-color: #ACCEFD; }
.scenario-button[aria-pressed="true"] { color: var(--blue-hover); border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 600; }
.scenario-copy { padding: 16px 18px; background: #F6F9FD; border-radius: 10px; }
.scenario-text { margin-bottom: 8px; }
.scenario-reminder { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.manual-checklist { padding: 24px; background: #F7FAFD; border: 1px solid #E5EDF7; border-radius: 14px; }
.manual-checklist h2 { margin-bottom: 7px; }
.manual-checklist .section-caption { margin-bottom: 12px; }
.manual-checklist label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 9px 0; cursor: pointer; }
.manual-checklist input { flex: 0 0 auto; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--blue); cursor: pointer; }
.manual-checklist .applicable-note { margin: 10px 0 0; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details, .internal-transfer { border-bottom: 1px solid var(--border); background: white; }
.internal-transfer { border-top: 1px solid var(--border); }
.faq-list summary, .sources summary, .internal-transfer summary { position: relative; display: block; cursor: pointer; min-height: 48px; padding: 17px 38px 17px 0; list-style: none; font-size: 16px; font-weight: 550; line-height: 1.6; }
.faq-list summary::-webkit-details-marker, .sources summary::-webkit-details-marker, .internal-transfer summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .sources summary::after, .internal-transfer summary::after { content: "+"; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: #899BB4; font-size: 23px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after, .sources details[open] summary::after, .internal-transfer[open] summary::after { content: "−"; }
.faq-list summary:hover, .internal-transfer summary:hover, .faq-list details[open] summary { color: var(--blue-hover); }
.faq-answer { padding: 0 32px 18px 0; margin: 0; color: var(--muted); }
.faq-answer p:last-child { margin: 0; }
.sources { padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.sources summary { display: inline-flex; min-height: 44px; padding: 9px 29px 9px 0; color: var(--muted); font-size: 14px; font-weight: 400; }
.sources summary::after { right: 6px; font-size: 20px; }
.source-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 17px; }
.source-links > span { color: #8493AA; margin-right: 2px; }
.source-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; overflow-wrap: anywhere; }
.source-links a svg { width: 13px; height: 13px; flex: 0 0 auto; }
.source-note { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.reading-actions { padding: 23px 25px 19px; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.reading-inner { max-width: 1120px; margin: 0 auto; }
.reading-buttons { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reading-buttons .primary { margin-left: auto; min-width: 320px; }
.reading-note { color: var(--muted); font-size: 14px; margin: 11px 0 0; text-align: right; }
.help-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; }
.page > .help-link { display: flex; margin-top: 8px; }
.help-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer { max-width: 1120px; margin: 26px auto 0; padding: 0 0 28px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer p { margin: 0; }
.storage-status { max-width: 1120px; margin: 12px auto; padding: 10px 14px; color: var(--muted); font-size: 14px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }

/* Images in the modal keep their proportions and can be scrolled to inspect. */
dialog { max-width: calc(100vw - 32px); padding: 0; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: white; box-shadow: 0 24px 80px rgba(10,28,58,.2); }
dialog::backdrop { background: rgba(16,27,53,.57); backdrop-filter: blur(4px); }
.preview-dialog { width: 1000px; max-height: calc(100dvh - 40px); }
.dialog-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.98); }
.dialog-top h2 { font-size: 18px; margin: 0; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: #F3F7FC; color: var(--text); border: 1px solid var(--border); border-radius: 10px; font-size: 24px; }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-close:hover { color: var(--blue-hover); background: var(--blue-soft); border-color: #ADCFFF; }
.dialog-close:active { background: #D9E9FF; }
.dialog-content { padding: 26px; text-align: center; background: #F5F8FD; }
.dialog-content img, .dialog-content .preview-image { width: auto; max-width: 100%; height: auto; max-height: none; margin: 0 auto; object-fit: contain; border-radius: 0; }
.dialog-content .screenshot-mount { padding: 18px; background: white; }
.dialog-content .screenshot-crop { width: 100%; height: auto; max-height: none; }
.dialog-content.is-portrait .screenshot-crop { width: min(480px, 100%); height: auto; max-height: none; }
.dialog-content .screenshot-crop > .real-screenshot { width: 100%; max-width: 100%; max-height: none; margin: 0; }
.dialog-content .screenshot-crop > .real-screenshot[style*="absolute"] { max-width: none; }
.dialog-caption { margin: 0; padding: 15px 20px; color: var(--muted); font-size: 14px; text-align: center; }
.confirm-dialog { width: 440px; padding: 28px; }
.confirm-dialog h2 { margin-bottom: 12px; }
.confirm-dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (min-width: 1184px) {
  .header-inner, #app, .site-footer, .storage-status { width: 1120px; }
}
@media (max-width: 1183px) {
  .header-inner, #app, .site-footer, .storage-status { margin-left: 32px; margin-right: 32px; }
  .hero { grid-template-columns: minmax(0, 1.7fr) minmax(200px, 1fr); gap: 16px; }
  .operation-row.has-visual { gap: 24px; }
  .operation-visuals { gap: 16px 12px; }
  .quick-card { padding: 17px 12px; gap: 9px; }
}
@media (max-width: 900px) {
  .hero { padding: 36px 32px; grid-template-columns: minmax(0, 1fr) 195px; }
  .hero::before { left: 32px; }
  .hero-subtitle { font-size: 18px; }
  .coin-scene { min-height: 225px; }
  .usdt-coin { width: 178px; height: 178px; }
  .coin-orbit { width: 214px; height: 214px; }
  .coin-caption { bottom: -3px; }
  .route-grid { padding: 0 4px; }
  .route-card { padding-left: 6px; padding-right: 6px; }
  .route-title { font-size: 16px; }
  .route-description { min-height: 47px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-row.has-visual { grid-template-columns: 1fr; gap: 21px; }
  .operation-visuals { gap: 20px; }
  .asset-review { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .verification-panel { padding: 20px; }
  .scenario-button { font-size: 14px; padding: 11px 9px; }
}
@media (max-width: 700px) {
  /* Keep focused content clear of the reading controls at the bottom. */
  html { scroll-padding-bottom: 160px; }
  #app a, #app button, #app input, #app summary { scroll-margin-bottom: 160px; }
  .header-inner, #app, .site-footer, .storage-status { margin-left: 16px; margin-right: 16px; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 68px; padding: 8px 0; column-gap: 12px; row-gap: 2px; }
  .header-tools { display: contents; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .language-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .brand { font-size: 20px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .header-meta { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; min-width: 0; min-height: 38px; gap: 11px; border-top: 1px solid #E7EEF8; padding-top: 2px; }
  .header-meta:empty { display: none; }
  .header-overview { min-height: 38px; }
  .header-counter { font-size: 14px; padding: 4px 8px; }
  #app { margin-top: 20px; }
  .page > * + * { margin-top: 20px; }
  .card { padding: 20px; }
  .hero { display: block; padding: 24px 20px 26px; min-height: 0; }
  .hero::before { left: 20px; width: 44px; }
  .hero-copy .eyebrow { min-height: 73px; padding: 2px 80px 0 0; align-items: flex-start; margin-bottom: 4px; line-height: 1.6; font-size: 14px; letter-spacing: .4px; }
  .hero-copy .eyebrow::before { flex: 0 0 auto; margin-top: 8px; }
  .hero-title { font-size: 30px; letter-spacing: -.8px; margin-bottom: 14px; }
  .hero-subtitle { font-size: 17px; line-height: 1.7; margin-bottom: 9px; }
  .hero-description { margin-bottom: 22px; }
  .hero-actions .primary { width: 100%; min-width: 0; }
  .hero-features { margin-top: 19px; padding-top: 14px; gap: 7px 10px; font-size: 14px; }
  .hero-features > span { gap: 5px; }
  .hero-features > span + span { border-left: 0; padding-left: 0; }
  .hero-features svg { width: 14px; height: 14px; }
  .coin-scene { position: absolute; top: 14px; right: 19px; width: 89px; min-height: 89px; height: 89px; }
  .coin-scene::before { width: 83px; height: 15px; bottom: -4px; }
  .usdt-coin { width: 78px; height: 78px; border-width: 2px; box-shadow: inset 1px 2px 5px rgba(255,255,255,.4), inset -2px -3px 5px rgba(1,94,68,.17), 3px 3px 0 #0F8665, 0 9px 12px rgba(6,102,75,.12); }
  .coin-orbit { width: 101px; height: 101px; }
  .coin-orbit::before { inset: 10px; }
  .coin-orbit::after { width: 4px; height: 4px; border-width: 3px; top: 11px; right: 9px; }
  .coin-caption { display: none; }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: 22px; }
  .route-grid { grid-template-columns: 1fr; padding: 0 15px; border-radius: 16px; }
  .route-grid::before { display: none; }
  .route-card { display: grid; grid-template-columns: 24px 38px minmax(0,1fr) auto; column-gap: 11px; padding: 15px 6px; text-align: left; align-items: center; }
  .route-card + .route-card { border-top: 1px solid #EDF2F8; }
  .route-card:hover { background: transparent; }
  .route-index { position: static; grid-column: 1; grid-row: 1 / 3; width: 24px; height: 24px; border: 0; background: #F0F5FC; color: var(--muted); }
  .route-icon { grid-column: 2; grid-row: 1 / 3; width: 38px; height: 38px; border: 0; margin: 0; }
  .route-icon svg { width: 21px; height: 21px; }
  .route-title { grid-column: 3; grid-row: 1; margin: 0; font-size: 16px; }
  .route-description { grid-column: 3; grid-row: 2; min-height: 0; font-size: 14px; }
  .route-status { grid-column: 4; grid-row: 1 / 3; margin: 0; font-size: 14px; }
  .quick-grid { gap: 10px; }
  .quick-card { flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 15px 13px; min-height: 110px; }
  .quick-icon { width: 32px; height: 32px; }
  .quick-icon svg { width: 18px; height: 18px; }
  .quick-arrow { margin: 9px 0 0 auto; }
  .quick-label { order: 2; flex: 1 0 100%; }
  .step-nav { gap: 2px; padding: 0; }
  .step-nav::before { left: 10%; right: 10%; top: 19px; }
  .step-link { min-height: 80px; padding: 4px 1px 0; gap: 7px; }
  .step-number { width: 30px; height: 30px; box-shadow: 0 0 0 4px var(--background); }
  .step-link.is-current .step-number { box-shadow: 0 0 0 4px var(--background), 0 3px 8px rgba(22,119,255,.18); }
  .step-name { font-size: 14px; line-height: 1.45; }
  .lesson-card > * + * { margin-top: 20px; }
  .lesson-header { padding-bottom: 20px; }
  .lesson-intro { gap: 13px; }
  .lesson-icon { width: 43px; height: 43px; border-radius: 12px; margin-top: 4px; }
  .lesson-icon svg { width: 23px; height: 23px; }
  .lesson-header h1 { font-size: 26px; letter-spacing: -.55px; margin-bottom: 11px; }
  .lesson-meta-row { gap: 8px; margin-bottom: 8px; }
  .lesson-kicker { font-size: 14px; }
  .lesson-progress-label { font-size: 14px; }
  .lesson-progress-label::before { margin-right: 8px; }
  .lesson-subtitle { font-size: 16px; }
  .lesson-intro .lesson-title-group { min-width: 0; }
  .lesson-intro { display: block; }
  .lesson-intro > .lesson-icon { float: right; margin: 0 0 10px 10px; }
  .route-summary { gap: 6px 8px; padding: 11px 0; }
  .route-token { font-size: 14px; }
  .branch-choice { gap: 4px; padding: 5px; }
  .branch-option { flex-basis: 100%; padding: 10px 8px; }
  .notice { gap: 10px; padding: 14px 13px; }
  .overview-page > .notice { padding: 0; }
  .overview-tools { gap: 10px; }
  .operation-gallery-intro { margin-bottom: 4px; }
  .operation-gallery-intro .lesson-visual-label { margin-bottom: 7px; }
  .operation-row, .operation-row + .operation-row { padding: 21px 0; }
  .operation-row.has-visual { grid-template-columns: 1fr; gap: 19px; }
  .operation-row:last-child { padding-bottom: 0; }
  .operation-copy > .action-text, .operation-copy > .external-note { margin-left: 0; }
  .operation-copy > .button { margin-left: 0; max-width: 100%; padding: 10px 12px; }
  .operation-visuals > .phone-figure:only-child, .operation-visuals > .phone-figure:only-child.is-wide { width: 100%; max-width: 100%; }
  .action-heading { gap: 10px; margin-bottom: 8px; }
  .action-heading h2 { font-size: 18px; }
  .action-number { width: 26px; height: 26px; border-radius: 7px; }
  .lesson-visual-label { margin-bottom: 14px; }
  .operation-visuals { grid-template-columns: 1fr; gap: 23px; }
  .operation-visuals > .is-wide { grid-column: auto; }
  .screenshot-mount { padding: 14px; min-height: 0; border-radius: 10px; }
  .screenshot-crop { width: min(100%, calc(420px * var(--screenshot-ratio, .55))); }
  .is-wide .screenshot-mount { padding: 10px; }
  .is-wide .real-screenshot { max-height: none; }
  .figure-caption { padding-top: 10px; }
  .figure-tools { gap: 8px; margin-top: 8px; padding-top: 7px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card { padding: 18px 0 20px 56px; }
  .knowledge-card:nth-last-child(-n+2) { border-bottom: 1px solid #EDF2F8; padding-bottom: 20px; }
  .knowledge-card:last-child { border-bottom: 0; padding-bottom: 4px; }
  .knowledge-icon { top: 18px; width: 40px; height: 40px; border-radius: 11px; }
  .knowledge-card h2 { font-size: 20px; }
  .asset-review { grid-template-columns: 1fr; gap: 20px; }
  .asset-figure { padding: 16px 12px; }
  .asset-figure .figure-tools > * { padding-left: 4px; padding-right: 4px; }
  .verification-panel { padding: 20px; }
  .verification-list { margin-top: 18px; }
  .scenario-selector { grid-template-columns: 1fr; gap: 8px; }
  .scenario-button { justify-content: flex-start; min-height: 48px; font-size: 16px; padding: 10px 14px; }
  .scenario-copy { padding: 15px; }
  .manual-checklist { padding: 20px 16px; }
  .manual-checklist label { gap: 10px; }
  .faq-list summary, .internal-transfer summary { padding: 16px 31px 16px 0; }
  .faq-answer { padding: 0 10px 17px 0; }
  .sources { padding-top: 17px; }
  .source-links { gap: 0 14px; }
  .reading-actions { position: sticky; bottom: 0; z-index: 10; margin-left: -4px; margin-right: -4px; padding: 14px 13px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -5px 24px rgba(24,66,120,.07); backdrop-filter: blur(12px); }
  .reading-buttons { gap: 9px; align-items: stretch; }
  .reading-buttons .button { min-height: 48px; font-size: 14px; padding: 10px 11px; }
  .reading-buttons .secondary { flex: 0 0 auto; }
  .reading-buttons .primary { flex: 1; min-width: 0; margin-left: 0; }
  .reading-buttons .primary .button-label { flex: 1; text-wrap: balance; }
  html[lang="en"] .reading-buttons .secondary { gap: 6px; padding-left: 10px; padding-right: 10px; }
  html[lang="en"] .reading-buttons .secondary svg { display: none; }
  html[lang="en"] .reading-note { line-height: 1.45; }
  .reading-note { font-size: 14px; line-height: 1.6; text-align: left; margin-top: 9px; }
  .site-footer { margin-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); text-align: left; }
  .preview-dialog { max-height: calc(100dvh - 24px); }
  .dialog-top { padding: 10px 14px; gap: 9px; }
  .dialog-top h2 { font-size: 16px; }
  .dialog-content { padding: 20px 12px; }
  .dialog-content .screenshot-mount { padding: 10px; }
  .dialog-caption { padding: 14px; }
  .confirm-dialog { padding: 22px; }
  .dialog-actions .button { flex: 1; }
}
@media (max-width: 360px) {
  .header-inner { column-gap: 8px; row-gap: 2px; }
  .header-meta { gap: 5px; }
  .brand { gap: 6px; font-size: 18px; }
  .brand-mark { width: 22px; height: 22px; border-radius: 7px; }
  .brand-mark svg { width: 14px; height: 14px; }
  .language-switch { padding: 3px; gap: 2px; }
  .language-option { min-width: 58px; padding-left: 9px; padding-right: 9px; }
  .header-counter { padding: 4px 5px; }
  .route-grid { padding: 0 12px; }
  .route-card { grid-template-columns: 23px 34px minmax(0,1fr) auto; column-gap: 8px; }
  .route-icon { width: 34px; height: 34px; }
  .route-icon svg { width: 19px; height: 19px; }
  .route-status { gap: 2px; }
  .route-status svg { width: 14px; height: 14px; }
  .quick-card { padding: 14px 11px; }
  .reading-buttons { gap: 7px; }
  .reading-buttons .button { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
