.environment-banner { position: sticky; top: 0; z-index: 60; padding: max(8px, env(safe-area-inset-top)) 10px 8px; color: #5d3900; background: #ffc65c; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.staging-mode .fab { bottom: calc(22px + env(safe-area-inset-bottom)); }
:root {
  --ink: #102522;
  --muted: #70817d;
  --forest: #143d35;
  --forest-2: #1f5b4e;
  --mint: #d8eee5;
  --mint-soft: #edf7f2;
  --gold: #dfa84d;
  --cream: #f4f2ec;
  --paper: #fffefa;
  --line: #e4e6df;
  --danger: #b44545;
  --shadow: 0 12px 32px rgba(26, 55, 48, .10);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--forest); }
body { margin: 0; min-height: 100vh; background: var(--cream); -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(48, 136, 113, .22); outline-offset: 2px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.app-shell { width: 100%; max-width: 680px; min-height: 100vh; margin: 0 auto; background: var(--cream); overflow: hidden; position: relative; }
.hero { color: white; background:
  radial-gradient(circle at 85% 10%, rgba(119, 185, 161, .22), transparent 34%),
  linear-gradient(145deg, #102f2a 0%, #174a40 100%);
  padding: 0 20px 47px; border-radius: 0 0 32px 32px; position: relative;
}
.safe-top { height: max(16px, env(safe-area-inset-top)); }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 11px; align-items: center; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #f2ca82; }
.brand-mark svg { width: 27px; height: 27px; stroke-width: 1.7; }
.brand h1 { font-size: 19px; margin: 0; letter-spacing: .04em; font-weight: 720; }
.brand p { color: rgba(255,255,255,.56); margin: 3px 0 0; font-size: 10px; letter-spacing: .18em; }
.icon-button { border: 0; border-radius: 50%; width: 40px; height: 40px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.hero-button { color: rgba(255,255,255,.82); background: rgba(255,255,255,.09); }
.hero-button svg { width: 21px; }
.rate-panel { margin-top: 15px; padding: 19px 20px; min-height: 103px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.1); border-radius: 21px; background: rgba(255,255,255,.075); backdrop-filter: blur(12px); }
.eyebrow { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .035em; }
.status-dot { width: 7px; height: 7px; background: #83d7a9; border-radius: 50%; box-shadow: 0 0 0 4px rgba(131,215,169,.09); }
.status-dot.error { background: #efa6a6; }
.status-dot.loading { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.rate-main { margin-top: 7px; font-size: 25px; font-weight: 760; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.rate-sub { color: rgba(255,255,255,.49); font-size: 11px; margin-top: 4px; }
.refresh-button { border: 0; background: rgba(255,255,255,.10); width: 43px; height: 43px; border-radius: 50%; color: white; display: grid; place-items: center; cursor: pointer; }
.refresh-button svg { width: 20px; }
.refresh-button.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.month-switcher { height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; position: relative; }
.month-switcher button { border: 0; color: rgba(255,255,255,.8); background: transparent; height: 40px; cursor: pointer; display: grid; place-items: center; }
.month-switcher > button:not(.month-label) { width: 40px; border-radius: 50%; }
.month-switcher > button:not(.month-label):active { background: rgba(255,255,255,.09); }
.month-switcher svg { width: 18px; }
.month-switcher .month-label { display: flex; grid-auto-flow: column; padding: 0 10px; gap: 3px; font-size: 15px; font-weight: 650; min-width: 138px; }
.month-label svg { width: 14px; }
#monthInput { opacity: 0; position: absolute; left: 50%; top: 6px; width: 140px; height: 36px; transform: translateX(-50%); pointer-events: none; }
main { margin-top: -29px; padding: 0 16px calc(112px + env(safe-area-inset-bottom)); position: relative; }
.card { background: var(--paper); border: 1px solid rgba(19,61,53,.055); border-radius: 23px; box-shadow: var(--shadow); }
.budget-card { padding: 21px 20px 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-kicker { color: var(--muted); display: block; font-size: 12px; margin-bottom: 5px; }
.section-heading h2 { font-size: 23px; margin: 0; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.text-button { border: 0; border-radius: 18px; padding: 9px 13px; color: var(--forest-2); background: var(--mint-soft); font-weight: 650; font-size: 12px; cursor: pointer; }
.budget-track { height: 8px; background: #e9ebe5; border-radius: 999px; overflow: hidden; margin: 20px 0 13px; }
.budget-progress { height: 100%; width: 0; background: linear-gradient(90deg, #2a816a, #61b48e); border-radius: inherit; transition: width .45s ease; }
.budget-progress.warning { background: linear-gradient(90deg, #d59338, #ecb75e); }
.budget-progress.over { background: linear-gradient(90deg, #b44545, #da6d5d); }
.budget-row { display: flex; justify-content: space-between; gap: 16px; }
.budget-row div { display: grid; gap: 3px; }
.budget-row span { font-size: 11px; color: var(--muted); }
.budget-row strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.align-right { text-align: right; }
.over-budget-note { font-size: 11px; color: var(--danger); background: #fff0ed; border-radius: 10px; padding: 8px 10px; margin-top: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 11px; }
.stat-card { min-width: 0; background: rgba(255,254,250,.84); border: 1px solid rgba(19,61,53,.07); border-radius: 17px; padding: 14px 10px; display: flex; gap: 8px; align-items: center; }
.stat-card-button { width: 100%; color: inherit; text-align: left; cursor: pointer; }
.stat-card-button:active { transform: scale(.98); background: var(--mint-soft); }
.stat-card-button b { color: #a66a1f; font-size: 13px; line-height: 0; }
.stat-icon { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.stat-icon.cny { background: #e3f2e9; color: #28745f; }
.stat-icon.fee { background: #fbefda; color: #a66a1f; }
.stat-icon.count { background: #eae7f4; color: #655889; }
.stat-card div { min-width: 0; display: grid; gap: 2px; }
.stat-card small { white-space: nowrap; color: var(--muted); font-size: 9px; }
.stat-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.quick-add { width: 100%; min-height: 79px; border: 1px solid rgba(19,61,53,.07); background: var(--paper); border-radius: 20px; display: flex; align-items: center; text-align: left; gap: 13px; padding: 15px 16px; margin-top: 14px; box-shadow: 0 5px 20px rgba(26,55,48,.055); cursor: pointer; }
.quick-add:active { transform: scale(.99); }
.quick-add-icon { flex: 0 0 43px; height: 43px; background: var(--forest); border-radius: 14px; color: white; display: grid; place-items: center; }
.quick-add-icon svg { width: 21px; }
.quick-add > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; }
.quick-add strong { font-size: 14px; }
.quick-add small { color: var(--muted); font-size: 10px; }
.chevron { color: #9aa5a1; width: 18px; }
.backup-reminder { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 13px; border: 1px solid #d9e5df; border-radius: 16px; background: #f8fbf8; }
.backup-reminder.needs-backup { border-color: #edd9ae; background: #fff8e9; }
.backup-reminder-icon { flex: 0 0 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; color: #28745f; background: #dff0e9; font-size: 10px; font-weight: 750; }
.backup-reminder.needs-backup .backup-reminder-icon { color: #a66a1f; background: #fae8c4; }
.backup-reminder > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.backup-reminder strong { font-size: 11px; }
.backup-reminder small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.backup-reminder button { border: 0; border-radius: 999px; padding: 8px 10px; color: var(--forest-2); background: #e8f3ee; font-size: 9px; font-weight: 700; cursor: pointer; }
.backup-reminder.needs-backup button { color: #8c5d20; background: #f7e5be; }
.history-section { margin-top: 27px; }
.history-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 10px; }
.history-heading h2 { font-size: 16px; margin: 0; }
.history-heading span { color: var(--muted); font-size: 11px; }
.transaction-list { display: grid; gap: 9px; }
.transaction-item { width: 100%; border: 1px solid rgba(19,61,53,.065); background: var(--paper); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 41px minmax(0,1fr) auto; gap: 11px; align-items: center; text-align: left; cursor: pointer; }
.transaction-item:active { transform: scale(.994); }
.category-icon { width: 41px; height: 41px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; background: var(--mint-soft); }
.transaction-main { min-width: 0; }
.transaction-title { font-size: 13px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-meta { color: var(--muted); font-size: 10px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-amount { text-align: right; display: grid; gap: 4px; }
.transaction-amount strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.transaction-amount small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 31px 25px 23px; background: rgba(255,254,250,.48); border: 1px dashed #d8dcd4; border-radius: 22px; }
.empty-illustration { width: 70px; height: 57px; position: relative; margin: 0 auto 14px; }
.empty-illustration span, .empty-illustration i { position: absolute; display: grid; place-items: center; font-style: normal; font-weight: 760; box-shadow: 0 5px 12px rgba(20,61,53,.08); }
.empty-illustration span { width: 52px; height: 36px; border-radius: 10px; background: #dceee7; color: #347661; left: 1px; top: 12px; transform: rotate(-8deg); }
.empty-illustration i { width: 35px; height: 35px; border-radius: 50%; background: #fae7bd; color: #a36e27; right: 0; bottom: 2px; }
.empty-state h3 { font-size: 14px; margin: 0; }
.empty-state p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 7px auto 14px; max-width: 250px; }
.secondary-button { border: 0; color: var(--forest-2); background: var(--mint-soft); border-radius: 999px; padding: 9px 17px; font-size: 12px; font-weight: 650; cursor: pointer; }
.privacy-note { color: #909c98; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 9px; margin: 20px 0 0; }
.privacy-note svg { width: 13px; }
.fab { position: fixed; right: max(22px, calc((100vw - 640px) / 2)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 57px; height: 57px; border: 0; border-radius: 18px; background: var(--forest); color: white; box-shadow: 0 10px 24px rgba(20,61,53,.31); display: grid; place-items: center; z-index: 5; cursor: pointer; }
.fab svg { width: 26px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(7,24,21,.48); backdrop-filter: blur(3px); }
.bottom-sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; width: min(100%, 680px); margin: 0 auto; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -15px 50px rgba(0,0,0,.16); max-height: min(92vh, 900px); overflow: auto; padding: 8px 20px calc(19px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-handle { width: 42px; height: 4px; border-radius: 99px; background: #d7dcd8; margin: 0 auto 12px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sheet-header h2 { font-size: 21px; margin: 2px 0 0; }
.sheet-kicker { color: var(--forest-2); font-size: 10px; letter-spacing: .08em; font-weight: 700; }
.close-sheet { font-size: 28px; font-weight: 250; background: #f0f1ed; color: #61706c; line-height: 1; }
.field-label { color: #53635f; display: block; font-size: 11px; font-weight: 650; margin: 0 0 7px; }
.money-input, .field-control, .rate-input-wrap { min-height: 49px; border: 1px solid #dce1dc; border-radius: 14px; background: #fbfcf9; display: flex; align-items: center; transition: border .15s, box-shadow .15s; }
.money-input:focus-within, .rate-input-wrap:focus-within, .field-control:focus { border-color: #5f9d89; box-shadow: 0 0 0 3px rgba(95,157,137,.1); outline: 0; }
.money-input span { padding-left: 14px; color: var(--forest-2); font-weight: 700; }
.money-input input, .rate-input-wrap input { width: 100%; min-width: 0; border: 0; background: transparent; outline: 0; padding: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.money-input.large { min-height: 64px; }
.money-input.large input { font-size: 25px; font-weight: 720; }
.hero-input { min-height: 68px; background: var(--mint-soft); border-color: #c7dfd6; }
.hero-input span { font-size: 20px; padding-left: 17px; }
.hero-input input { font-size: 30px; font-weight: 740; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 7px 2px 16px; }
.sheet-actions { display: flex; align-items: center; gap: 9px; margin-top: 23px; }
.button { border: 0; min-height: 47px; padding: 0 20px; border-radius: 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.button.primary { color: white; background: var(--forest); flex: 1; }
.button.ghost { background: #eff1ed; color: #5e6d69; }
.button.soft { background: var(--mint-soft); color: var(--forest-2); }
.button.danger { background: #fff0ed; color: var(--danger); padding: 0 15px; }
.full-width { width: 100%; }
.action-spacer { flex: 1; }
.danger-link { display: block; margin: 18px auto 2px; border: 0; background: transparent; color: var(--danger); font-size: 11px; cursor: pointer; }
.inline-action { border: 0; background: transparent; color: var(--forest-2); padding: 6px 0; font-size: 11px; font-weight: 680; cursor: pointer; }
.form-row { display: grid; gap: 11px; }
.form-row.two-cols { grid-template-columns: 1fr 1fr; margin-bottom: 17px; }
.field-control { width: 100%; padding: 0 12px; color: var(--ink); font-size: 13px; appearance: none; }
select.field-control { background-image: linear-gradient(45deg, transparent 50%, #788681 50%), linear-gradient(135deg, #788681 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.conversion-line { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 3px 17px; }
.conversion-line span { color: var(--muted); font-size: 10px; }
.conversion-line strong { color: var(--forest-2); font-size: 18px; font-variant-numeric: tabular-nums; }
.rate-field-heading { display: flex; justify-content: space-between; align-items: center; }
.rate-field-heading button { border: 0; background: transparent; color: var(--forest-2); font-size: 10px; font-weight: 700; cursor: pointer; }
.rate-input-wrap { font-size: 13px; }
.rate-input-wrap span { color: var(--muted); padding-left: 13px; white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 20px 0 17px; }
.optional-heading h3 { font-size: 14px; margin: 0; }
.optional-heading p { color: var(--muted); font-size: 9px; margin: 3px 0 10px; }
.fee-row { display: grid; grid-template-columns: minmax(0,1fr) 118px; gap: 9px; }
.fee-row .money-input input { padding-left: 14px; }
.currency-select { border: 1px solid #dce1dc; border-radius: 14px; background: #fbfcf9; padding: 0 10px; font-size: 12px; color: var(--ink); }
.note-label { margin-top: 18px; }
.total-preview { background: #f0f6f2; border-radius: 15px; padding: 12px 14px; margin-top: 17px; display: grid; gap: 9px; }
.total-preview div { display: flex; align-items: center; justify-content: space-between; }
.total-preview span { color: var(--muted); font-size: 10px; }
.total-preview strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.data-group { border-top: 1px solid var(--line); padding: 18px 0; }
.data-group:first-of-type { border-top: 0; padding-top: 0; }
.data-group h3 { font-size: 14px; margin: 0 0 5px; }
.data-group > p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0 0 12px; }
.data-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.data-button { border: 1px solid #dfe4df; background: #fbfcf9; min-height: 68px; border-radius: 14px; padding: 10px; display: flex; align-items: center; text-align: left; gap: 9px; cursor: pointer; }
.data-button > span { flex: 0 0 31px; height: 31px; border-radius: 9px; background: var(--mint-soft); color: var(--forest-2); display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.data-button div { min-width: 0; display: grid; gap: 3px; }
.data-button strong { font-size: 10px; }
.data-button small { color: var(--muted); font-size: 8px; }
.danger-zone div { display: flex; gap: 16px; }
.danger-zone button { border: 0; padding: 4px 0; background: transparent; color: var(--danger); font-size: 10px; cursor: pointer; }
.about-rate { color: #8b9793; font-size: 9px; line-height: 1.5; padding: 8px 0 3px; }
.csv-location-tip { color: #667671 !important; background: #f3f6f2; border-radius: 12px; padding: 10px 11px; margin: 10px 0 5px !important; }
.csv-location-tip strong { color: var(--forest-2); }
.storage-status-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.storage-status-heading > div { min-width: 0; }
.storage-status-heading p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 4px 0 0; }
.storage-status-heading > span { flex: 0 0 auto; padding: 6px 9px; color: #28745f; background: #dff0e9; border-radius: 999px; font-size: 9px; font-weight: 700; }
.storage-status-heading > span.warning { color: var(--danger); background: #fff0ed; }
.storage-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.storage-status-grid div { min-width: 0; padding: 10px 8px; border: 1px solid #e3e7e2; border-radius: 12px; background: #fafbf8; display: grid; gap: 3px; }
.storage-status-grid small { color: var(--muted); font-size: 8px; }
.storage-status-grid strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.safe-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 10px; }
.safe-actions .button { padding: 0 10px; min-height: 42px; font-size: 10px; }
.import-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.last-backup-label { color: #899590; font-size: 9px; margin: 8px 0 0; }
.recovery-note { display: grid; gap: 4px; padding: 12px 13px; color: #3b5d54; background: #edf6f2; border-radius: 14px; }
.recovery-note strong { font-size: 11px; }
.recovery-note span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.recovery-section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 2px 9px; }
.recovery-section-heading h3 { margin: 0; font-size: 13px; }
.recovery-section-heading span { color: var(--muted); font-size: 9px; }
.recovery-list { display: grid; gap: 8px; }
.recovery-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e3e7e2; border-radius: 14px; background: #fbfcf9; }
.recovery-item > div { min-width: 0; flex: 1; display: grid; gap: 3px; }
.recovery-item strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recovery-item small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.recovery-item button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 7px 9px; color: var(--forest-2); background: #e8f3ee; font-size: 8px; font-weight: 700; cursor: pointer; }
.mini-empty { color: #94a09c; text-align: center; padding: 18px 10px; border: 1px dashed #d9ddd7; border-radius: 14px; font-size: 9px; }
.first-run-modal { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7,24,21,.72); backdrop-filter: blur(8px); }
.first-run-card { width: min(100%, 430px); padding: 25px 22px 21px; border-radius: 25px; background: var(--paper); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.first-run-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 15px; color: white; background: var(--forest); font-size: 22px; }
.first-run-card > small { color: var(--forest-2); font-size: 9px; letter-spacing: .05em; font-weight: 700; }
.first-run-card h2 { font-size: 21px; margin: 6px 0 10px; }
.first-run-card p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0; }
.first-run-card ul { color: #4f625d; font-size: 10px; line-height: 1.7; padding-left: 18px; margin: 14px 0 18px; }
.first-run-card .button.primary { display: block; }
.fee-summary-total { color: white; background: linear-gradient(145deg, #153e35, #276557); border-radius: 20px; padding: 20px; display: grid; gap: 5px; box-shadow: 0 10px 25px rgba(20,61,53,.17); }
.fee-summary-total > span { color: rgba(255,255,255,.68); font-size: 11px; }
.fee-summary-total > strong { font-size: 31px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fee-summary-total > small { color: rgba(255,255,255,.54); font-size: 9px; }
.fee-currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.fee-currency-grid article { min-width: 0; background: #f7f8f4; border: 1px solid #e5e7e1; border-radius: 16px; padding: 13px 11px; display: flex; align-items: center; gap: 9px; }
.fee-currency-grid article > div { min-width: 0; display: grid; gap: 3px; }
.fee-currency-grid small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.fee-currency-grid strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-currency-mark { flex: 0 0 31px; width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 760; }
.fee-currency-mark.cny { color: #a66a1f; background: #faecd2; }
.fee-currency-mark.huf { color: #28745f; background: #dff0e9; }
.fee-converted-note { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 8px 2px 20px; }
.fee-list-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 9px; }
.fee-list-heading h3 { margin: 0; font-size: 14px; }
.fee-list-heading span { color: var(--muted); font-size: 10px; }
.fee-summary-list { display: grid; gap: 8px; }
.fee-summary-item { width: 100%; border: 1px solid #e5e7e1; background: #fbfcf9; border-radius: 15px; padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; text-align: left; cursor: pointer; }
.fee-summary-item:active { transform: scale(.994); }
.fee-item-main { min-width: 0; display: grid; gap: 4px; }
.fee-item-main strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-item-main small { color: var(--muted); font-size: 9px; }
.fee-item-amount { text-align: right; display: grid; gap: 4px; }
.fee-item-amount strong { color: #a66a1f; font-size: 12px; font-variant-numeric: tabular-nums; }
.fee-item-amount small { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.fee-summary-empty { text-align: center; padding: 30px 15px; border: 1px dashed #d8dcd4; border-radius: 18px; }
.fee-summary-empty > span { width: 43px; height: 43px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; color: #a66a1f; background: #faecd2; font-weight: 750; }
.fee-summary-empty h3 { font-size: 13px; margin: 0; }
.fee-summary-empty p { color: var(--muted); font-size: 9px; margin: 6px 0 0; }
.toast { position: fixed; z-index: 50; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 12px); color: white; background: rgba(12,38,33,.93); border-radius: 999px; padding: 11px 17px; max-width: calc(100vw - 34px); font-size: 11px; box-shadow: 0 8px 28px rgba(0,0,0,.19); opacity: 0; pointer-events: none; transition: .2s ease; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.sheet-open { overflow: hidden; }
@media (min-width: 681px) {
  body { background: #dfe5df; }
  .app-shell { box-shadow: 0 0 70px rgba(18,51,44,.16); }
  .bottom-sheet { bottom: 18px; border-radius: 28px; max-height: calc(100vh - 36px); }
}
@media (max-width: 370px) {
  .hero { padding-left: 15px; padding-right: 15px; }
  main { padding-left: 11px; padding-right: 11px; }
  .stats-grid { gap: 6px; }
  .stat-card { padding: 12px 7px; gap: 5px; }
  .stat-icon { flex-basis: 25px; width: 25px; height: 25px; }
  .bottom-sheet { padding-left: 15px; padding-right: 15px; }
}
