@font-face {
  font-family: "Market Icons";
  src: url("/static/market-icons.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #596172;
  --line: #e8e0d1;
  --panel: #fffdf9;
  --paper: #f8f6f0;
  --navy: #16253d;
  --navy-light: #263954;
  --accent: #805616;
  --gold: #d2a64e;
  --gold-soft: #f7edda;
  --up: #137354;
  --down: #ac443e;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}

:root[lang="zh-CN"] { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
:root[lang="zh-HK"] { font-family: "Microsoft JhengHei", "PingFang HK", "PingFang TC", "Noto Sans CJK HK", sans-serif; }
:root[lang="en-US"] { font-family: "Segoe UI", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
:is(button, a, input, select):focus-visible { outline: 2px solid #9a6a23; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { display: inline-block; font: normal 1em/1 "Market Icons"; vertical-align: -.05em; }
.icon-home::before { content: "\f423"; }
.icon-market::before { content: "\f17c"; }
.icon-trade::before { content: "\f12b"; }
.icon-person::before { content: "\f4e1"; }
.icon-search::before { content: "\f52a"; }
.icon-wallet::before { content: "\f615"; }
.icon-star::before { content: "\f588"; }
.icon-list::before { content: "\f478"; }
.icon-info::before { content: "\f431"; }
.icon-check::before { content: "\f26b"; }
.icon-error::before { content: "\f623"; }

.frame { width: min(1110px, calc(100% - 48px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #fffdf8; }
.topbar-inner { display: flex; align-items: center; min-height: 68px; gap: 24px; }
.site-language { flex: none; max-width: 8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 5px; font-size: .8125rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 22px; letter-spacing: -.055em; font-weight: 750; }
.brand-light { color: #765222; font-weight: 650; }
.brand-mark { display: inline-flex; align-items: end; justify-content: center; gap: 3px; width: 36px; height: 36px; padding: 9px 7px; border-radius: 11px; background: var(--navy); }
.brand-mark i { height: 7px; width: 4px; border-radius: 1px; background: #dcba73; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 16px; }
.nav { display: flex; gap: 5px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 8px; color: var(--muted); font-size: .875rem; font-weight: 620; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--gold-soft); color: var(--accent); }
.top-search { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; padding: 7px 10px 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #faf8f4; }
.top-search .icon { color: var(--muted); }
.top-search input { min-width: 0; width: 158px; border: 0; padding: 2px; background: transparent; font-size: .875rem; }
.top-search input::placeholder, .input::placeholder { color: var(--muted); }
kbd { padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; font-size: .75rem; }
.avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--panel); }
.avatar:hover { background: var(--gold-soft); }
.main { padding: 29px 0 36px; }
.main:focus { outline: 0; }

.intro { margin-bottom: 20px; }
.intro h1 { font-size: clamp(1.55rem, 3vw, 2.12rem); letter-spacing: -.04em; line-height: 1.2; }
.intro p { margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 18px #55462608; }
.padded { padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-head h2 { font-size: 1rem; font-weight: 750; line-height: 1.35; }
.padded .panel-head h2 { position: relative; padding-left: 10px; }
.padded .panel-head h2::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 3px; border-radius: 2px; background: var(--gold); }
.muted, small { color: var(--muted); }
.quiet-link { padding-block: 3px; color: var(--accent); font-weight: 650; font-size: .875rem; white-space: nowrap; }
.quiet-link:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.025em; white-space: nowrap; }
.positive { color: var(--up); }
.negative { color: var(--down); }
.notice, .quote-time { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.notice { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; color: #704a17; background: #f7eedb; border: 1px solid #ecddbe; border-radius: 9px; margin-bottom: 14px; }
.dashboard-grid + .notice { margin: 14px 0 0; }
.section-stack { display: grid; gap: 15px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr); grid-template-areas:
  "spotlight shortcuts"
  "indices balance"
  "news news"
  "stocks stocks"; gap: 15px; align-items: start; }
.spotlight { grid-area: spotlight; position: relative; min-height: 204px; padding: 16px 20px 15px; border: 1px solid #233754; background: radial-gradient(ellipse at 92% 8%, #364a65, var(--navy) 67%); color: #fdf9ef; overflow: hidden; isolation: isolate; }
.spotlight::before, .spotlight::after { position: absolute; z-index: -1; content: ""; border: 1px solid #e5bf7261; border-radius: 50%; opacity: .32; pointer-events: none; }
.spotlight::before { width: 370px; height: 370px; top: -86px; right: -128px; }
.spotlight::after { width: 271px; height: 271px; top: -37px; right: -79px; }
.spotlight .panel-head { margin-bottom: 14px; }
.spotlight .panel-head h2 { color: #e7d7b1; font-size: .875rem; font-weight: 620; }
.spotlight-body h3 { font-size: 1.22rem; }
.spotlight-price { display: flex; align-items: baseline; gap: 13px; margin: 5px 0; }
.spotlight-price > strong { font-size: clamp(2rem, 5vw, 2.72rem); font-weight: 730; line-height: 1.05; }
.spotlight-price .positive { color: #91e2bd; }
.spotlight-price .negative { color: #ffaaa0; }
.spotlight-body p { color: #bdc6d5; font-size: .8125rem; }
.spotlight-link { display: inline-block; margin-top: 14px; color: #f8d999; font-size: .875rem; font-weight: 630; }
.spotlight-link:hover { text-decoration: underline; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #f4eee3; border-radius: 8px; }
.segmented button { padding: 5px 9px; color: var(--muted); border: 0; background: transparent; border-radius: 5px; white-space: nowrap; font-size: .875rem; font-weight: 640; }
.segmented button[aria-pressed="true"] { color: var(--accent); background: #fffdf8; box-shadow: 0 1px 3px #56432722; }
.spotlight .segmented { background: #ffffff14; }
.spotlight .segmented button { color: #e5e9f0; }
.spotlight .segmented button[aria-pressed="true"] { background: #eed29a; color: #4c3718; }

.quick-panel { grid-area: shortcuts; align-self: stretch; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-grid a { display: flex; align-items: center; min-width: 0; gap: 9px; padding: 9px; background: #fbf8f0; border: 1px solid #f0e6d4; border-radius: 10px; font-size: .875rem; font-weight: 650; }
.quick-grid a:hover { border-color: #d4b375; background: #f7eedc; }
.quick-icon, .ticker-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.quick-icon { border-radius: 50%; }
.quick-icon.blue { background: var(--navy); color: #fff8e8; }
.quick-icon.gold { background: #e9cf98; color: #5d4015; }
.ticker-icon.blue { background: #e8eef5; color: #28456a; }
.ticker-icon.violet { background: #eee9f2; color: #594571; }
.ticker-icon.amber { background: #f7ead1; color: #7e5419; }
.dashboard-indices { grid-area: indices; }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.index-card { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 10px; border: 1px solid #ecdfc6; border-radius: 10px; background: linear-gradient(155deg, #fffefb, #f8efdd); }
.index-card:hover { border-color: #cba966; }
.index-card h3 { font-size: .875rem; line-height: 1.35; }
.index-card small { color: #76572c; font-size: .75rem; }
.index-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.index-value strong { font-size: clamp(1rem, 2.5vw, 1.4rem); }
.index-value span { font-size: .75rem; font-weight: 650; }
.dashboard-stocks { grid-area: stocks; }
.dashboard-news { grid-area: news; }
.dashboard-wallet { grid-area: balance; }
.wallet { padding: 18px; }
.wallet-list { display: grid; gap: 11px; }
.wallet-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.wallet-list > div + div { padding-top: 10px; border-top: 1px solid var(--line); }
.wallet-list span, .wallet-note { font-size: .8125rem; color: var(--muted); }
.wallet-list strong { font-size: 1.13rem; }
.wallet-note { margin-top: 12px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
td, th { padding: 9px; }
th { background: #f7f2e8; color: var(--muted); font-weight: 640; white-space: nowrap; }
td { border-bottom: 1px solid #f1ebdf; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbf8f1; }
td:first-child, th:first-child { border-radius: 6px 0 0 6px; }
td:last-child, th:last-child { border-radius: 0 6px 6px 0; }
.ticker { display: inline-flex; align-items: center; gap: 8px; }
.ticker strong, .ticker small { display: block; }
.ticker strong { white-space: nowrap; font-size: .875rem; font-weight: 670; }
:lang(en-US) .ticker strong { white-space: normal; }
.ticker:hover strong { color: var(--accent); }
.ticker small { margin-top: 2px; font-size: .75rem; }

.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters { justify-content: space-between; margin-bottom: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; border: 1px solid #ecd9b4; border-radius: 8px; background: var(--gold-soft); color: var(--accent); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.button:hover { background: #f0e0c0; }
.button.primary { background: var(--navy); border-color: var(--navy); color: #fff9eb; }
.button.primary:hover { background: var(--navy-light); }
.input { display: block; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #dcd0b8; border-radius: 8px; background: #fffdf9; }
.field { display: grid; gap: 6px; font-size: .875rem; font-weight: 650; }
.field .input { width: 100%; }
.section-form { display: grid; gap: 12px; }
.section-form p { line-height: 1.55; }
.form-error { color: var(--down); font-size: .875rem; }
.form-error:empty { display: none; }
.small-type { font-size: .875rem; }
.empty, .loading { padding: 23px 10px; text-align: center; color: var(--muted); font-size: .875rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(265px, 1fr); gap: 15px; align-items: start; }
.back { display: inline-block; margin-bottom: 12px; }
.hero-quote { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.hero-quote strong { font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.05; }
.chart { display: block; width: 100%; }
.detail-chart { height: 295px; margin-top: 8px; }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.account-metrics > div { padding: 10px; background: #f7f1e6; border-radius: 8px; }
.account-metrics dt { color: var(--muted); font-size: .875rem; }
.account-metrics dd { margin-top: 5px; font-weight: 730; font-size: clamp(.875rem, 2vw, 1.15rem); overflow-wrap: anywhere; }
.detail-metrics { margin: 14px 0 16px; }
.receipt { display: grid; gap: 5px; padding: 11px; background: #f7f1e6; border-radius: 8px; }
.receipt strong { display: flex; gap: 6px; align-items: baseline; }
.receipt p { font-size: .875rem; }
.receipt-id small, small.receipt-id { overflow-wrap: anywhere; white-space: normal; font-family: Consolas, monospace; }
.toast { position: fixed; z-index: 15; bottom: 22px; right: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 10px 14px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .875rem; box-shadow: 0 5px 20px #16244939; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.member-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member-links a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 11px 5px; border-radius: 9px; text-align: center; font-size: .875rem; font-weight: 650; }
.member-links a:hover { background: var(--gold-soft); }
.member-links .quick-icon { flex: none; }
.member-logout { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.profile-panel { max-width: 640px; }
.profile-summary { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.profile-summary dl { display: grid; gap: 7px; }
.profile-summary dl div { display: flex; justify-content: space-between; gap: 10px; }
.profile-summary dt { color: var(--muted); }
.profile-summary dd { overflow-wrap: anywhere; text-align: end; }
.profile-summary p { margin-top: 8px; }
.brand-mark.brand-image { object-fit: cover; }
.member-heading { display: flex; align-items: center; gap: 8px; }
.member-heading img { border-radius: 50%; object-fit: cover; }
.member-updates { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.member-updates ul { padding-inline-start: 1.2em; margin-bottom: 0; }
.bank-page { max-width: 1000px; }
.bank-toolbar { margin-bottom: 0; }
.bank-toolbar h1 { font-size: clamp(1.4rem, 4vw, 1.85rem); }
.bank-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bank-card { min-width: 0; background: linear-gradient(150deg, #fffdf9 50%, #f7efdc); border-color: #ded1b6; }
.bank-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; }
.bank-card h3 { font-size: 1.02rem; overflow-wrap: anywhere; }
.bank-number { margin: 18px 0; font-size: 1.3rem; font-weight: 650; letter-spacing: .13em; font-variant-numeric: tabular-nums; }
.bank-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bank-card-meta dt { color: var(--muted); font-size: .8125rem; margin-bottom: 3px; }
.bank-card-meta dd { overflow-wrap: anywhere; }
.bank-card-note { margin-top: 12px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.bank-card-action { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bank-card-action .form-error:empty { display: none; }
.bank-empty { display: grid; justify-items: center; text-align: center; gap: 9px; padding: 30px 15px; }
.bank-empty h3 { font-size: 1rem; }
.bank-form-panel { max-width: 650px; }
.bank-form-panel > .muted { margin-bottom: 14px; }
.bank-form-panel .section-form .button { justify-self: start; }
.portal-status.disabled { background: #ede9e6; color: #594f4c; }
.identity-view { max-width: 920px; }
.identity-form { display: grid; gap: 16px; }
.identity-heading h2 { margin-bottom: 5px; }
.identity-heading p { color: var(--muted); font-size: .9375rem; }
.document-row { display: grid; grid-template-columns: 133px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; }
.document-row + .document-row { border-top: 1px solid var(--line); }
.document-row h3 { font-size: 1rem; }
.document-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.6; border: 1px solid #decaa0; background: #fbf3e3; border-radius: 9px; overflow: hidden; }
.document-art img { position: absolute; inset: 0; width: 100%; height: 100%; background: #f6f1e6; object-fit: contain; }
.document-art img:not([src]) { display: none; }
.document-sketch { display: flex; align-items: center; gap: 8px; width: 82%; height: 69%; color: var(--accent); }
.document-sketch .icon { width: 34%; padding: 4px 0; text-align: center; border-radius: 4px; background: #ead9b6; font-size: 1.4rem; }
.document-sketch span { flex: 1; height: 60%; background: repeating-linear-gradient(180deg, #c9b387 0 3px, transparent 3px 9px); border-radius: 3px; }
.document-art-back { background: #f3f1ec; border-color: #ddd6c9; }
.document-art-back .document-sketch { padding-top: 6px; border-top: 10px solid var(--navy-light); border-radius: 3px; }
.document-art-back .document-sketch .icon { display: none; }
.document-guide { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.document-guide li { padding: 8px 0; }
.document-guide li + li { border-top: 1px solid var(--line); }
.identity-form .form-error:empty { display: none; }
.portal-auth .portal-form { max-width: 420px; }
.portal-auth .portal-form, .portal-card .portal-form { margin-top: 12px; }
.portal-copy { color: var(--ink); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-card .small-type { margin-top: 8px; }
.portal-card a { display: inline-block; margin-top: 5px; }
.portal-status { display: inline-block; padding: 3px 7px; border-radius: 6px; white-space: nowrap; font-size: .8125rem; background: #f4efe5; color: var(--muted); }
.portal-status.pending { background: #f9efd9; color: #805616; }
.portal-status.approved { background: #e9f4ed; color: var(--up); }
.portal-status.rejected { background: #faeae6; color: var(--down); }
.news-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.news-filters a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: .875rem; font-weight: 630; }
.news-filters a:hover, .news-filters a[aria-current="page"] { background: var(--gold-soft); color: var(--accent); }
.news-list article { min-width: 0; }
.news-list article + article { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 0; }
.news-row:hover h3 { color: var(--accent); }
.news-row-copy { min-width: 0; }
.news-row h3, .news-row p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.news-row h3 { margin-top: 6px; font-size: 1rem; line-height: 1.45; }
.news-row p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.news-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; color: var(--muted); font-size: .8125rem; }
.news-meta time { font-variant-numeric: tabular-nums; }
.news-tags { color: var(--accent); font-weight: 650; }
.news-visual { display: block; width: 152px; height: 90px; object-fit: cover; background: var(--line); border-radius: 9px; }
.news-pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.news-pager span { color: var(--muted); font-size: .875rem; }
.news-details { max-width: 820px; margin-inline: auto; }
.news-details h1 { font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.38; margin-bottom: 10px; overflow-wrap: anywhere; }
.news-cover { margin: 16px 0 0; }
.news-cover .news-visual { width: 100%; height: auto; aspect-ratio: 16 / 8; }
.news-cover figcaption { margin-top: 5px; color: var(--muted); font-size: .8125rem; }
.news-details .portal-copy { margin-top: 15px; }
.news-details .button.primary { margin-top: 16px; }
.news-symbols { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.news-symbols strong { font-size: .875rem; margin-right: 3px; }

@media (min-width: 701px) {
  .home-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .home-news-list article, .home-news-list article + article { border: 1px solid var(--line); border-radius: 11px; }
  .home-news-list .news-row { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 0; height: 100%; }
  .home-news-list .news-row-copy { padding: 11px 12px 13px; }
  .home-news-list .news-visual { grid-row: 1; width: 100%; height: auto; aspect-ratio: 2.4; border-radius: 10px 10px 0 0; }
  .home-news-list h3 { font-size: .9375rem; -webkit-line-clamp: 3; }
}

@media (max-width: 880px) {
  .topbar-inner { gap: 14px; }
  .nav a { padding-inline: 8px; }
  .top-search input { width: 123px; }
}

@media (min-width: 701px) and (max-width: 830px) {
  .topbar-inner { gap: 9px; }
  .nav a .icon { display: none; }
  .top-search input { width: 95px; }
  .top-search kbd { display: none; }
}

@media (max-width: 700px) {
  .frame { width: calc(100% - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
  .topbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 0; gap: 9px 12px; padding: calc(10px + env(safe-area-inset-top)) 0 11px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 34px; height: 34px; }
  .avatar { grid-area: 1 / 3; width: 35px; height: 35px; }
  .top-search { grid-column: 1 / -1; padding: 8px 12px; margin-left: 0; }
  .top-search input { width: 100%; font-size: 1rem; }
  .top-search kbd { display: none; }
  .nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0;
    padding: 3px env(safe-area-inset-right) max(5px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
    background: #fffdf9; border-top: 1px solid var(--line); box-shadow: 0 -5px 18px #5c4d2d0a; }
  .nav a { display: grid; place-items: center; flex: 1 1 20%; min-width: 0; min-height: 48px; gap: 3px; padding: 5px 4px; font-size: .875rem; border-radius: 0; }
  .nav a .icon { font-size: 1.13rem; }
  .nav a[aria-current="page"] { background: transparent; color: var(--accent); }
  .nav a[aria-current="page"] .icon { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
  .main { padding: 17px 0 calc(76px + env(safe-area-inset-bottom)); }
  .intro { margin-bottom: 12px; }
  .intro p { margin-top: 4px; }
  .dashboard-grid { grid-template-columns: 1fr; grid-template-areas: "spotlight" "shortcuts" "indices" "news" "stocks" "balance"; gap: 11px; }
  .spotlight { min-height: 172px; padding: 13px 14px; }
  .spotlight .panel-head { margin-bottom: 12px; }
  :lang(en-US) .spotlight .panel-head { flex-wrap: wrap; gap: 6px 10px; }
  .padded, .wallet { padding: 13px; }
  .panel-head { margin-bottom: 10px; }
  .quick-grid a { padding: 6px 8px; }
  .quick-icon { width: 29px; height: 29px; }
  .index-grid { gap: 6px; }
  .index-card { padding: 7px; }
  .index-card h3 { font-size: .8125rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 11px; }
  .portal-grid { grid-template-columns: 1fr; }
  .bank-card-grid { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 78px minmax(0, 1fr) auto; padding: 13px; gap: 9px; }
  .document-row .button { padding-inline: 8px; }
  .document-sketch .icon { font-size: 1rem; }
  .detail-chart { height: 220px; }
  .news-visual { width: clamp(80px, 26vw, 112px); height: 68px; border-radius: 8px; }
  .news-row { gap: 10px; padding: 11px 0; }
  .news-row h3 { font-size: .9375rem; }
  .news-filters a { padding: 7px 9px; }
  td, th { padding-inline: 6px; }
  .ticker { gap: 5px; }
  .ticker-icon { width: 25px; height: 25px; }
  .account-metrics { gap: 6px; }
  .toast { bottom: calc(61px + env(safe-area-inset-bottom)); right: 14px; }
}
