/* MINE UI kit. Original, dependency-free styles. Tokens are intentionally shared. */
:root {
  --paper: #f4f5ef;
  --surface: #fdfefb;
  --ink: #233e34;
  --text: #283a32;
  --muted: #626e64;
  --line: #dce1d5;
  --control-line: #87977a;
  --soft: #edf0e7;
  --accent: #d5e8a2;
  --accent-ink: #263b22;
  --receipt: #233f35;
  --receipt-muted: #b9c9bb;
  --error: #a33d2e;
  --warning: #775016;
  --warning-bg: #faf1dd;
  --focus: #557632;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scrollbar-gutter: stable; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, summary, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, select { touch-action: manipulation; }
button { border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
input:disabled, select:disabled { cursor: not-allowed; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 600; }
button, a, summary { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.transaction-receipt :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-small { width: 16px; height: 16px; flex-basis: 16px; }
.shell-width { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 12px; padding: 12px 18px; background: var(--ink); color: white; z-index: 100; transform: translateY(-150%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 720; letter-spacing: -.7px; text-decoration: none; min-height: 44px; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); fill: currentColor; }
.environment { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #eef1e7; color: #556546; border: 1px solid #dce3cf; border-radius: 5px; padding: 4px 8px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.environment-dot { width: 5px; height: 5px; border-radius: 1px; background: #7e8e50; flex: 0 0 5px; }
.environment-live { background: #e1f1e7; color: #25513b; }
.environment-live .environment-dot { background: #2b7950; border-radius: 50%; }
.header-controls { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.network-control { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; font-size: 12px; font-weight: 600; }
.network-dot { height: 7px; width: 7px; border: 1.5px solid #637a3c; transform: rotate(45deg); }
.language-control { display: flex; align-items: center; gap: 2px; color: #899084; font-size: 12px; white-space: nowrap; }
.language-control button { min-height: 44px; min-width: 44px; padding: 0 5px; color: #6c7468; }
.language-control button[aria-pressed="true"] { color: var(--ink); font-weight: 650; }
.language-control button:hover { color: var(--ink); }
.language-control button[lang="zh-CN"] { min-width: 60px; }
.button { min-height: 48px; padding: 12px 18px; border-radius: 6px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; line-height: 1.35; text-decoration: none; border: 1px solid transparent; }
.button-wallet { min-height: 44px; color: var(--ink); border: 1px solid #bdc9b5; padding: 10px 14px; background: transparent; }
.button-wallet:hover { background: var(--soft); border-color: #9caf91; }
.button-primary { width: 100%; background: var(--accent); color: var(--accent-ink); font-size: 14px; justify-content: space-between; min-height: 50px; }
.button-primary:hover:not(:disabled) { background: #e1efbb; }
.button-primary:active:not(:disabled), .button-dark:active:not(:disabled) { transform: translateY(1px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover:not(:disabled) { background: #355346; }
.button-outline { border-color: #bcc8b6; background: var(--surface); color: var(--ink); }
.button-outline:hover:not(:disabled) { background: var(--soft); }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0; font-size: 12px; font-weight: 550; text-align: left; line-height: 1.5; }
.text-button:hover { color: #647d36; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.primary-nav { display: flex; gap: 32px; }
.primary-nav button { position: relative; padding: 13px 0 17px; font-size: 13px; color: #697365; min-height: 51px; min-width: 44px; }
.primary-nav button[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.primary-nav button[aria-selected="true"]::after { position: absolute; content: ""; left: 0; bottom: -1px; height: 3px; right: 0; background: var(--ink); border-radius: 2px 2px 0 0; }
.primary-nav button:hover { color: var(--ink); }
.nav-caption { color: #626e5a; font-size: 11px; }
.demo-notice { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 10px; color: #626e5a; font-size: 11px; }
.demo-notice .icon { color: #7b896e; }
.workspace { width: min(1056px, calc(100% - 96px)); margin: 31px auto 0; min-height: 560px; }
.workspace:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
h1 { font-size: 29px; line-height: 1.25; letter-spacing: -.95px; color: var(--ink); font-weight: 550; }
.page-heading p { color: var(--muted); margin-top: 9px; font-size: 13px; }
.heading-link { align-self: flex-end; padding-bottom: 2px; flex-shrink: 0; }
.transaction-sheet { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); background: var(--surface); border: 1px solid #d6ddce; border-radius: var(--radius); overflow: hidden; }
.configuration { padding: 29px 34px 25px; min-width: 0; display: flex; flex-direction: column; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font-size: 14px; font-weight: 650; letter-spacing: -.1px; }
.quiet-tag { background: var(--soft); border-radius: 4px; font-size: 10px; color: #63705a; padding: 4px 7px; line-height: 1.4; font-weight: 500; white-space: nowrap; }
.field-group { padding: 18px 0 19px; border-bottom: 1px solid #e4e8de; }
.field-group-last { border-bottom: 0; padding-bottom: 17px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.field-top label { font-size: 13px; font-weight: 600; }
.field-limit { font-size: 10px; color: #626e5a; white-space: nowrap; }
.field-control-line { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.field-description { font-size: 11px; color: var(--muted); line-height: 1.65; max-width: 185px; }
.stepper { display: flex; align-items: center; width: 190px; flex: 0 0 190px; height: 46px; border: 1px solid var(--control-line); border-radius: 6px; background: #fff; overflow: visible; }
.stepper:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.stepper button { height: 44px; width: 44px; min-width: 44px; padding: 0; display: flex; align-items: center; justify-content: center; color: #7c8770; border-radius: 5px; }
.stepper button:hover { background: var(--soft); color: var(--ink); }
.stepper input { width: 100%; min-width: 0; height: 40px; border: 0; background: transparent; text-align: center; padding: 0; color: var(--ink); font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-radius: 2px; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-unit { font-size: 10px; color: #65735c; padding: 0 3px 0 2px; }
.presets { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.presets button { border-radius: 5px; color: #626e5a; font-size: 10px; min-height: 44px; min-width: 44px; padding: 6px 11px; border: 1px solid transparent; }
.presets button:hover { background: var(--soft); }
.presets button[aria-pressed="true"] { color: #314b27; background: #edf3df; border-color: #7e8d71; font-weight: 600; }
.field-error { color: var(--error); font-size: 11px; margin-top: 6px; }
.field-error:empty { display: none; }
input[aria-invalid="true"] { color: var(--error); }
.stepper:has(input[aria-invalid="true"]), .amount-control:has(input[aria-invalid="true"]) { border-color: var(--error); }
.signature-note { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 17px; border-top: 1px solid #e4e8de; color: #66755b; font-size: 11px; }
.signature-note .icon { color: #73855d; }
.transaction-receipt { background: var(--receipt); color: #f4f6eb; padding: 29px 30px 24px; display: flex; flex-direction: column; min-width: 0; }
.receipt-top { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.receipt-top h2 { font-size: 13px; font-weight: 500; color: #d6dfd2; }
.receipt-example { font-size: 10px; color: #bdceae; border: 1px solid #496050; border-radius: 4px; padding: 2px 6px; }
.receipt-metric { padding-bottom: 22px; }
.metric-label { display: block; font-size: 11px; color: var(--receipt-muted); margin-bottom: 8px; }
.metric-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; line-height: 1.12; font-size: 37px; font-weight: 450; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value output { min-width: 0; }
.metric-value .is-unavailable, .date-value.is-unavailable { font-size: 20px; letter-spacing: -.3px; line-height: 1.4; }
.metric-unit { font-size: 14px; letter-spacing: -.2px; font-weight: 450; }
.secondary-value { display: block; color: #b8c8b5; font-size: 11px; margin-top: 10px; }
.fee-warning { color: #d5e0cb; font-size: 10px; margin-top: 8px; }
.output-metric { padding-top: 21px; padding-bottom: 22px; border-top: 1px solid #466050; }
.output-metric .metric-value { color: var(--accent); }
.maturity-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 10px; color: #becdb8; margin-top: 13px; }
.maturity-line output { color: #e3eade; margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.receipt-disclosure { margin-top: -5px; border-top: 1px solid #466050; }
.receipt-disclosure summary { display: flex; align-items: center; justify-content: space-between; min-height: 43px; color: #cedcc3; font-size: 11px; }
.receipt-disclosure[open] summary .icon { transform: rotate(180deg); }
.receipt-disclosure p { color: #bdcdb5; font-size: 11px; margin: 0 0 16px; line-height: 1.7; }
.receipt-action { margin-top: auto; padding-top: 13px; }
.receipt-footnote { text-align: center; color: #b7c7b1; font-size: 10px; margin-top: 12px; line-height: 1.65; max-width: 330px; margin-inline: auto; }
.status-message { font-size: 12px; line-height: 1.6; border-left: 3px solid #7c9354; padding: 10px 12px; background: #edf2e5; color: #3f5531; margin-top: 14px; overflow-wrap: anywhere; }
.status-message:empty { display: none; }
.status-message[data-state="signature-rejected"], .status-message[data-state="unavailable"], .status-message[data-state="partial"], .status-message[data-state="wrong-network"] { background: var(--warning-bg); color: var(--warning); border-color: #b78c3d; }
.transaction-receipt .status-message { background: #344f3f; color: #e0ebd4; border-color: var(--accent); }
.transaction-receipt .status-message[data-state="signature-rejected"], .transaction-receipt .status-message[data-state="unavailable"], .transaction-receipt .status-message[data-state="partial"], .transaction-receipt .status-message[data-state="wrong-network"] { background: #4a4a32; color: #f4e4bb; border-color: #d5bd79; }
.sale-disclosure { border: 1px solid #d8dfd0; border-radius: 8px; margin-top: 18px; background: #f9faf6; }
.sale-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 22px; min-height: 60px; }
.disclosure-title { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 550; }
.disclosure-title .icon { color: #70825a; }
.disclosure-end { display: inline-flex; align-items: center; gap: 20px; }
.optional-label { font-size: 10px; color: #626e5a; }
.sale-disclosure[open] > summary .disclosure-end .icon { transform: rotate(45deg); }
.sale-content { padding: 2px 24px 22px; border-top: 1px solid var(--line); }
.sale-intro { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-block: 19px; }
.sale-intro p { max-width: 590px; font-size: 12px; color: var(--muted); }
.sale-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 45px; padding-bottom: 10px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { font-size: 11px; margin-bottom: 9px; padding: 0; }
.segmented-control { display: inline-flex; background: #eef1e8; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.segmented-control label { position: relative; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; width: 100%; height: 100%; top: 0; left: 0; margin: 0; cursor: pointer; }
.segmented-control span { display: flex; min-height: 38px; min-width: 69px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.segmented-control input:checked + span { background: #fff; border-color: var(--control-line); font-weight: 600; }
.segmented-control input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.small-copy { color: var(--muted); font-size: 11px; margin-top: 8px; }
.sale-results { margin: 0; align-self: center; }
.sale-results > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 8px; }
.sale-results dt { font-size: 11px; color: var(--muted); }
.sale-results dd { font-size: 14px; font-weight: 550; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sale-results > div + div { border-top: 1px solid var(--line); }
.sale-results > div + div dd { font-size: 11px; font-weight: 400; }
.inline-disclosure { font-size: 11px; color: var(--muted); margin-top: 8px; }
.inline-disclosure summary { min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.inline-disclosure p { max-width: 690px; }
.below-form { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 15px; color: #626e5a; font-size: 10px; }
.below-form .text-button { font-size: 11px; color: #536b3b; flex-shrink: 0; }
.amount-control { display: flex; align-items: center; justify-content: space-between; padding: 5px 16px; height: 60px; border: 1px solid var(--control-line); border-radius: 6px; margin: 12px 0 10px; background: white; }
.amount-control input { min-width: 0; width: 100%; border: 0; height: 46px; padding: 0; background: transparent; font-size: 25px; font-variant-numeric: tabular-nums; color: var(--ink); -moz-appearance: textfield; }
.amount-control span { font-size: 12px; color: #5f7152; }
.amount-control:focus-within { box-shadow: 0 0 0 1px var(--focus); border-color: var(--focus); }
.amount-control input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.stake-configuration .field-description { max-width: 230px; }
.plain-note { display: flex; gap: 12px; margin-top: auto; padding: 25px 0 3px; color: #68765b; }
.plain-note .icon { margin-top: 1px; color: #728457; }
.plain-note strong { font-size: 11px; color: #4b603c; font-weight: 600; }
.plain-note p { font-size: 11px; line-height: 1.65; margin-top: 5px; }
.stake-date { padding-top: 22px; border-top: 1px solid #466050; }
.date-value { display: block; font-size: 26px; letter-spacing: -.5px; font-weight: 450; margin-top: 10px; color: var(--accent); }
.receipt-info { display: flex; gap: 9px; color: #bdcdb5; font-size: 10px; line-height: 1.75; padding: 16px 0; border-top: 1px solid #466050; }
.receipt-info .icon { margin-top: 1px; }
.positions-surface { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.positions-tab-bar { display: flex; gap: 28px; padding: 0 30px; border-bottom: 1px solid var(--line); }
.positions-tab-bar button { display: flex; gap: 8px; align-items: center; min-height: 60px; padding: 0 2px; position: relative; color: var(--muted); font-size: 13px; }
.positions-tab-bar button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.positions-tab-bar button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 28px 66px; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; color: #627b4a; background: #eef3e4; border: 1px solid #e1e8d5; border-radius: 14px; margin-bottom: 24px; }
.empty-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2 { font-size: 21px; font-weight: 500; letter-spacing: -.4px; }
.empty-state > p { max-width: 440px; font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 10px; }
.empty-state .button { margin-top: 23px; }
.empty-caption { color: #626e5a; font-size: 10px; margin-top: 13px; }
.positions-status { margin: 22px 30px; }
.position-section-intro { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 28px 30px 15px; }
.position-section-intro h2 { font-size: 13px; }
.position-section-intro > span { color: #626e5a; font-size: 10px; }
.position-list { padding: 0 30px; }
.position-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 24px 0; }
.position-row-main { min-width: 0; }
.position-id { font-size: 13px; font-weight: 600; }
.position-row-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.position-badge, .state-badge { display: inline-flex; font-size: 10px; color: #526d3d; padding: 3px 7px; background: #edf3e5; border: 1px solid #d6e2c9; border-radius: 4px; vertical-align: middle; }
.position-badge[data-state="locked"], .state-badge[data-state="locked"] { color: #696a55; background: #f0f0e9; border-color: #deded1; }
.position-meta { color: var(--muted); font-size: 11px; margin-top: 7px; line-height: 1.65; }
.position-amount { font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 500; }
.position-amount small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.position-amount > span { font-size: 11px; margin-left: 5px; }
.position-amount > strong { font-weight: 550; }
.position-actions .button { min-width: 126px; }
.position-note { border-top: 1px solid var(--line); margin: 0 30px; padding: 18px 0 23px; font-size: 11px; color: var(--muted); }
.reward-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 30px 0; padding: 22px 24px; background: #eef3e5; border: 1px solid #dce6ce; border-radius: 8px; }
.reward-strip .metric-label { color: #596f46; margin-bottom: 5px; }
.reward-value { font-size: 28px; line-height: 1.2; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.reward-value > span { font-size: 12px; margin-left: 7px; }
.reward-strip p { font-size: 10px; color: #627454; margin-top: 8px; }
.guide-view { max-width: 850px; margin-inline: auto; }
.guide-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 36px; }
.guide-section { padding: 31px 0 25px; border-bottom: 1px solid var(--line); }
.guide-section-last { border-bottom: 0; }
.guide-section-header { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.guide-number { font-family: var(--mono); font-size: 11px; color: #626e5a; }
.guide-section-header h2 { font-size: 17px; font-weight: 550; letter-spacing: -.25px; }
.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list li { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.flow-list li:not(:last-child)::after { content: ""; position: absolute; width: 1px; background: #dbe4cf; top: 29px; bottom: 3px; left: 13px; }
.flow-step { width: 27px; height: 27px; flex: 0 0 27px; display: flex; justify-content: center; align-items: center; font-size: 11px; background: #eff3e6; border: 1px solid #dbe5cb; border-radius: 50%; color: #4b6634; }
.flow-list h3 { font-size: 12px; padding-top: 2px; }
.flow-list p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 6px; max-width: 660px; }
.guide-detail { border-top: 1px solid #e4e9dc; margin-left: 43px; }
.guide-detail summary { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; font-weight: 550; padding-block: 10px; }
.guide-detail summary::after { content: "+"; font-size: 17px; font-weight: 400; color: #7a8a67; }
.guide-detail[open] summary::after { content: "−"; }
.guide-detail p { color: var(--muted); font-size: 12px; line-height: 1.8; padding-bottom: 13px; }
.guide-body-copy { font-size: 12px; color: var(--muted); line-height: 1.85; margin-left: 29px; margin-bottom: 20px; }
.guide-section:not(:first-child) .guide-detail { margin-left: 29px; }
.fee-ribbon { height: 7px; display: flex; gap: 3px; margin-left: 29px; margin-bottom: 24px; border-radius: 2px; overflow: hidden; }
.fee-ribbon span:nth-child(1) { background: #304e3c; }
.fee-ribbon span:nth-child(2) { background: #8caa64; }
.fee-ribbon span:nth-child(3) { background: #c6d1b4; }
.fee-ribbon span:nth-child(4) { background: #e0e5d7; }
.fee-destinations { margin: 0 0 0 29px; }
.fee-destinations > div { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 14px 0; border-bottom: 1px solid #e5e9df; align-items: center; }
.fee-destinations > div:last-child { border-bottom: 0; }
.fee-destinations dt { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 550; }
.fee-percent { font-size: 25px; line-height: 1; width: 65px; flex: 0 0 65px; letter-spacing: -.7px; font-weight: 450; font-variant-numeric: tabular-nums; }
.fee-percent > span { font-size: 12px; margin-left: 2px; }
.fee-destinations dd { font-size: 11px; line-height: 1.7; margin: 0; color: var(--muted); }
.environment-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 8px; }
.environment-specimens p { font-size: 11px; margin-top: 10px; }
.guide-end { display: flex; justify-content: flex-end; padding-top: 22px; }
.site-footer { margin-top: 56px; padding-bottom: 28px; }
.footer-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 10px; color: #626e5a; border-top: 1px solid #dbe1d1; padding-top: 20px; }
.footer-brand { display: inline-flex; gap: 13px; align-items: center; color: #5b6c4f; font-weight: 600; }
.footer-brand > span:not(.footer-divider) { font-weight: 400; color: #626e5a; }
.footer-divider { color: #b1bba5; font-weight: 400; }
.prototype-controls { margin-top: 14px; font-size: 11px; }
.prototype-controls > summary { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: #626e5a; }
.prototype-controls > summary .icon:last-child { margin-left: 2px; }
.prototype-controls[open] > summary .icon:last-child { transform: rotate(180deg); }
.prototype-inner { background: #eef1e7; border: 1px solid #d9e0cf; padding: 24px; border-radius: 8px; margin-top: 4px; color: #5e6d52; }
.prototype-inner > p { max-width: 700px; }
.demo-controls-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin: 19px 0; }
.demo-state-field { min-width: 220px; }
.demo-state-field label { display: block; font-weight: 550; margin-bottom: 6px; }
.demo-state-field select { min-height: 48px; width: 100%; border: 1px solid var(--control-line); border-radius: 6px; padding: 10px 38px 10px 12px; background: var(--surface); color: var(--ink); }
.checkbox-label { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.checkbox-label input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.fixture-copy { border-top: 1px solid #d7dfcc; margin-top: 15px; padding-top: 18px; max-width: 820px; }
.fixture-copy h3 { font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.fixture-copy p + p { margin-top: 8px; }
dialog { border: 1px solid #d4dccb; border-radius: 12px; background: var(--surface); color: var(--text); width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px 28px 26px; box-shadow: 0 20px 80px #182d2526; }
dialog::backdrop { background: rgb(25 41 32 / .46); }
dialog[open] { animation: dialog-in 140ms ease-out; }
.review-dialog[open] { display: flex; flex-direction: column; }
.review-dialog > * { flex-shrink: 0; }
.review-dialog .review-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding-right: 5px; }
body:has(dialog[open]) { overflow: hidden; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dialog-kind { display: flex; align-items: center; gap: 8px; color: #626e5a; font-size: 11px; }
.icon-button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; margin: -7px -12px -7px 0; }
.icon-button:hover { background: var(--soft); }
dialog h2 { font-size: 23px; font-weight: 550; letter-spacing: -.6px; line-height: 1.3; }
.dialog-demo-note { background: #eef3e4; color: #596e45; padding: 10px 12px; border-radius: 5px; font-size: 11px; margin-top: 16px; }
.review-body { margin-top: 20px; }
.review-lines, .review-summary { margin: 0; }
.review-lines > div, .review-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-lines dt, .review-summary dt { font-size: 12px; color: var(--muted); }
.review-lines dd, .review-summary dd { margin: 0; font-size: 13px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.review-note { font-size: 11px; line-height: 1.75; color: var(--muted); padding: 13px 0 0; }
.review-note + .review-note { padding-top: 8px; }
.review-status { padding: 12px 14px; border-radius: 6px; background: #edf3e4; border: 1px solid #d6e2c6; margin-top: 18px; font-size: 12px; line-height: 1.65; color: #466136; overflow-wrap: anywhere; }
.review-status[data-state="pending"], .review-status[data-state="signature-requested"], .review-status[data-state="partial"], .review-status[data-state="signature-rejected"] { background: #faf2de; border-color: #e7d7b2; color: #7a5821; }
.dialog-actions { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-top: 22px; }
.dialog-actions .text-button { justify-content: center; min-height: 44px; }
.wallet-dialog > p:not(.dialog-demo-note) { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.wallet-demo-note { display: flex; gap: 12px; padding: 16px 0 0; font-size: 11px; color: #62784b; line-height: 1.8; }
.wallet-demo-note .icon { margin-top: 2px; }
.order-list { padding: 0; margin: 16px 0 0; list-style: none; max-height: 220px; overflow: auto; }
.order-list li { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 11px; }
.order-list li span:last-child { text-align: right; color: #6c795f; }
.button-secondary { border-color: #bdcbb2; background: #f0f4e8; color: #3e5830; }
.button-secondary:hover:not(:disabled) { background: #e6edd8; }
.position-identity { min-width: 0; }
.position-values { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.position-value { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.position-values .position-meta { margin-top: 0; }
.position-row > .button { min-width: 126px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 7px; border-radius: 4px; border: 1px solid #d4dfc8; background: #edf3e5; color: #516c3d; }
.status-pill.is-locked { border-color: #deded1; background: #f0f0e9; color: #696a55; }
.status-pill.is-pending { border-color: #e3d4ad; background: #fbf2dc; color: #7b5820; }
.position-identity .status-pill { margin-top: 7px; }
.review-notes { padding-top: 12px; }
.review-notes p { font-size: 11px; line-height: 1.75; color: var(--muted); margin-top: 8px; }
.order-row .status-pill { white-space: nowrap; flex-shrink: 0; }
.noscript-note { padding: 20px; background: #f6e5c5; color: #6f4814; text-align: center; }
:lang(zh-CN) { font-family: var(--font); }
html:lang(zh-CN) h1 { letter-spacing: -.6px; font-weight: 550; }
html:lang(zh-CN) .field-description, html:lang(zh-CN) .receipt-footnote { line-height: 1.9; }
@media (min-width: 1280px) {
  .workspace { margin-top: 37px; }
  .transaction-sheet { min-height: 518px; }
}
@media (max-width: 1000px) {
  .shell-width, .workspace { width: calc(100% - 64px); }
  .header-top { gap: 17px; }
  .header-controls { gap: 14px; }
  .configuration { padding-inline: 26px; }
  .transaction-receipt { padding-inline: 26px; }
  .field-control-line { gap: 12px; flex-wrap: wrap; }
  .field-control-line .field-description { max-width: none; flex: 1 1 100%; }
  .stepper { width: 100%; flex: 1 1 100%; }
  .presets { justify-content: flex-start; }
  .presets button { flex: 1; padding-inline: 6px; }
  .field-group { padding-block: 16px; }
  .receipt-top { margin-bottom: 28px; }
  .receipt-metric { padding-bottom: 29px; }
  .output-metric { padding-top: 27px; }
  .metric-value { font-size: 33px; }
  .maturity-line output { margin-left: 0; flex: 1 1 100%; padding-left: 22px; }
  .page-heading h1 { font-size: 27px; }
  .position-row { gap: 18px; }
  .position-section-intro { align-items: flex-start; }
}
@media (max-width: 760px) {
  html { scrollbar-gutter: auto; }
  .shell-width, .workspace { width: calc(100% - 40px); }
  .header-top { min-height: 86px; gap: 12px; flex-wrap: wrap; padding-block: 15px 12px; }
  .brand { font-size: 22px; }
  .header-top > .environment { margin-left: auto; font-size: 10px; }
  .header-controls { width: 100%; margin-left: 0; gap: 10px; justify-content: space-between; }
  .network-control { margin-right: auto; }
  .button-wallet { min-height: 44px; padding: 9px 12px; font-size: 12px; }
  .button-wallet .icon { width: 17px; height: 17px; flex-basis: 17px; }
  .language-control { gap: 0; font-size: 11px; }
  .language-control button[lang="zh-CN"] { min-width: 56px; }
  .nav-row { gap: 0; }
  .primary-nav { width: 100%; gap: 0; justify-content: space-between; }
  .primary-nav button { padding: 13px 6px 16px; min-width: 53px; font-size: 13px; }
  .nav-caption { display: none; }
  .demo-notice { align-items: flex-start; padding-block: 13px; font-size: 10px; line-height: 1.6; }
  .demo-notice .icon { margin-top: 1px; }
  .workspace { margin-top: 19px; }
  .page-heading { display: block; margin-bottom: 21px; }
  .page-heading h1 { font-size: 26px; letter-spacing: -.8px; }
  .page-heading p { font-size: 12px; line-height: 1.7; margin-top: 8px; }
  .heading-link { display: none; }
  .page-heading > .quiet-tag { margin-top: 13px; display: inline-flex; }
  .transaction-sheet { grid-template-columns: 1fr; border-radius: 10px; }
  .configuration { padding: 22px 23px 24px; }
  .section-heading { margin-bottom: 11px; }
  .section-heading h2 { font-size: 14px; }
  .field-group { padding: 17px 0 18px; }
  .field-top { margin-bottom: 9px; }
  .field-top label { font-size: 13px; }
  .field-control-line { gap: 12px; display: grid; grid-template-columns: minmax(0,1fr) 152px; }
  .field-control-line .field-description { grid-column: 1; max-width: none; }
  .field-description { font-size: 11px; }
  .stepper { height: 48px; width: 152px; grid-column: 2; }
  .stepper button { width: 46px; min-width: 46px; height: 46px; }
  .stepper input { font-size: 18px; height: 44px; }
  .input-unit { font-size: 11px; }
  .presets { gap: 4px; margin-top: 5px; }
  .presets button { min-height: 44px; font-size: 10px; padding: 5px; }
  .signature-note { padding-top: 16px; }
  .transaction-receipt { padding: 23px 24px 25px; }
  .receipt-top { margin-bottom: 23px; }
  .receipt-top h2 { font-size: 13px; }
  .metric-value { font-size: 36px; }
  .metric-unit { font-size: 14px; }
  .receipt-metric { padding-bottom: 22px; }
  .output-metric { padding-top: 22px; }
  .maturity-line output { margin-left: auto; flex: 0 1 auto; padding-left: 0; }
  .metric-label { font-size: 11px; }
  .receipt-footnote { font-size: 10px; }
  .sale-disclosure { margin-top: 15px; }
  .sale-disclosure > summary { padding: 16px 18px; }
  .disclosure-title { font-size: 11px; gap: 9px; }
  .optional-label { display: none; }
  .disclosure-end { gap: 0; }
  .sale-content { padding: 0 19px 18px; }
  .sale-intro { display: block; margin-top: 18px; }
  .sale-intro p { font-size: 11px; margin-bottom: 12px; }
  .sale-layout { grid-template-columns: 1fr; gap: 18px; }
  .segmented-control { display: flex; }
  .segmented-control label { flex: 1; }
  .segmented-control span { min-width: 0; min-height: 44px; }
  .sale-results dd { font-size: 12px; }
  .sale-results > div { gap: 12px; }
  .below-form { flex-direction: column; gap: 0; align-items: flex-start; margin-top: 14px; font-size: 10px; }
  .below-form .text-button { min-height: 44px; }
  .stake-configuration .field-description { max-width: none; }
  .plain-note { padding-top: 16px; }
  .date-value { font-size: 28px; }
  .positions-tab-bar { padding-inline: 23px; }
  .empty-state { padding: 40px 24px 44px; }
  .empty-state h2 { font-size: 20px; }
  .empty-state > p { font-size: 12px; }
  .empty-state .button { width: 100%; }
  .empty-caption { font-size: 10px; }
  .position-section-intro { display: block; padding: 24px 20px 13px; }
  .position-section-intro > span { display: block; margin-top: 6px; }
  .position-list { padding-inline: 20px; }
  .position-row { grid-template-columns: 1fr auto; gap: 17px; }
  .position-actions { grid-column: 1 / -1; }
  .position-actions .button { width: 100%; }
  .position-row > .button { grid-column: 1 / -1; width: 100%; }
  .position-values { align-items: flex-end; text-align: right; }
  .position-value { font-size: 17px; }
  .position-amount { font-size: 17px; text-align: right; }
  .position-meta { font-size: 10px; }
  .position-note { margin-inline: 20px; font-size: 10px; }
  .positions-status { margin-inline: 20px; }
  .reward-strip { margin: 20px 20px 0; padding: 20px; flex-direction: column; align-items: stretch; gap: 18px; }
  .reward-strip .button { width: 100%; }
  .guide-sheet { padding: 0 22px; }
  .guide-section { padding-block: 25px 20px; }
  .guide-section-header { gap: 11px; align-items: baseline; margin-bottom: 21px; }
  .guide-section-header h2 { font-size: 16px; line-height: 1.5; }
  .flow-list li { gap: 12px; }
  .flow-list p, .guide-body-copy { font-size: 11px; }
  .guide-detail { margin-left: 0; }
  .guide-body-copy, .guide-section:not(:first-child) .guide-detail, .fee-ribbon, .fee-destinations { margin-left: 0; }
  .guide-detail summary { font-size: 11px; }
  .guide-detail p { font-size: 11px; }
  .fee-destinations > div { grid-template-columns: 1fr; gap: 10px; padding-block: 16px; }
  .fee-destinations dt { gap: 12px; }
  .fee-percent { font-size: 25px; width: 55px; flex-basis: 55px; }
  .fee-destinations dd { font-size: 11px; padding-left: 67px; }
  .environment-specimens { grid-template-columns: 1fr; gap: 12px; }
  .guide-end .button { width: 100%; }
  .site-footer { margin-top: 36px; padding-bottom: 25px; }
  .footer-line { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 9px; padding-top: 18px; }
  .footer-brand { gap: 11px; }
  .prototype-controls { margin-top: 11px; font-size: 10px; }
  .prototype-inner { padding: 18px; }
  .demo-state-field { min-width: 0; width: 100%; }
  .demo-controls-row { gap: 11px; }
  .demo-controls-row .button { flex: 1; }
  .demo-controls-row .text-button { padding-inline: 10px; }
  dialog { padding: 20px; width: calc(100% - 28px); max-height: calc(100dvh - 28px); }
  dialog h2 { font-size: 22px; }
  .review-lines > div, .review-summary > div { gap: 14px; }
  .review-lines dt, .review-summary dt { font-size: 11px; }
  .review-lines dd, .review-summary dd { font-size: 12px; max-width: 60%; overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
  .shell-width, .workspace { width: calc(100% - 28px); }
  .header-controls { gap: 5px; }
  .network-control { font-size: 10px; gap: 4px; padding: 0; }
  .language-control button { min-width: 44px; padding: 0 3px; }
  .language-control button[lang="zh-CN"] { min-width: 56px; }
  .button-wallet { padding: 8px 9px; font-size: 11px; gap: 6px; }
  .button-wallet .icon { display: none; }
  .configuration { padding-inline: 19px; }
  .transaction-receipt { padding-inline: 20px; }
  .section-heading { gap: 8px; }
  .quiet-tag { font-size: 9px; }
  .page-heading h1 { font-size: 24px; }
  .field-limit { font-size: 9px; }
  .field-control-line { grid-template-columns: minmax(0,1fr) 142px; gap: 9px; }
  .stepper { width: 142px; }
  .stepper button { width: 44px; min-width: 44px; }
  .input-unit { font-size: 9px; padding-right: 0; }
  .metric-value { font-size: 33px; }
  .maturity-line { font-size: 9px; }
  .maturity-line output { font-size: 10px; }
  .guide-sheet { padding-inline: 17px; }
  .disclosure-title { font-size: 11px; }
  .disclosure-title > .icon { display: none; }
  .sale-results dt { font-size: 10px; }
  .sale-results dd { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
