:root {
  color-scheme: light;
  --ink: #18372f;
  --ink-soft: #37534b;
  --muted: #5f6f68;
  --paper: #ffffff;
  --canvas: #f5f4ef;
  --line: #e1e6df;
  --green: #23624f;
  --green-dark: #17483a;
  --green-pale: #e9f2ed;
  --copper: #b66f4f;
  --copper-pale: #fbefe8;
  --blue-pale: #eef3f6;
  --shadow: 0 18px 45px rgba(24, 55, 47, .07);
  --chart-value: #23624f;
  --chart-cost: #b66f4f;
  --chart-grid: #d5ddd8;
  --chart-ink: #18372f;
  --bench-cdi: #3d6f8a;
  --bench-ipca: #8a6230;
  --bench-ibov: #6d5478;
  --bench-ifix: #3f6b62;
  --bench-spx: #2f4d73;
  --slice-1: #23624f;
  --slice-2: #b66f4f;
  --slice-3: #3d6f8a;
  --slice-4: #c4a15a;
  --slice-5: #6e7f78;
  --up: #1d6b3a;
  --down: #8b452f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); min-width: 320px; }
button, input, select { font: inherit; }
button, select, input { color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #bf724e; outline-offset: 3px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 20; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: white; color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.site-frame { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(5vw, 24px); background: var(--ink); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; font-size: 1.05rem; }
.brand-mark { display: block; width: 36px; height: 36px; min-width: 36px; min-height: 36px; max-width: none; object-fit: contain; object-position: center; flex: 0 0 36px; }
.brand-lettering { display: block; width: auto; height: 24px; min-width: 0; object-fit: contain; object-position: left center; }
.brand-lettering:not([src]), .brand-lettering[src=""] { display: none; }
.brand { gap: 11px; }
.brand-name { display: none; font-weight: 750; letter-spacing: -.02em; font-size: 1.35rem; color: #fff; }
.landing-header .brand-name { display: none; }
body.show-landing .topbar, body.show-landing .site-footer { display: none; }
body.show-landing { background: #000; }
body.show-landing .app-shell { width: 100%; max-width: none; padding: 0; background: transparent; }
body.show-landing .app-shell > .landing-block,
body.show-landing .app-shell > .landing-block-dark,
body.show-landing .app-shell > .app-section,
body.show-landing .app-shell > .landing-footer { width: calc(100% - 96px); max-width: none; margin-left: auto; margin-right: auto; }
.landing-stage { position: relative; background-color: #000; background-image: radial-gradient(ellipse 42% 38% at 12% 100%, rgba(132, 202, 151, .28), rgba(0, 32, 9, .12) 40%, transparent 70%); color: #fff; padding: 0 0 72px; overflow: hidden; }
.landing-stage h1, .landing-stage .eyebrow { color: #fff; }
.landing-stage .welcome-description { color: #cfcfcf; }
.landing-stage .access-card, .landing-stage .access-card h2 { color: var(--ink); }
.landing-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: transparent; color: #fff; }
.landing-stage [id], .app-shell [id] { scroll-margin-top: 100px; }
.landing-header.is-stuck { background: rgba(0, 0, 0, .65); backdrop-filter: blur(12px); }
.landing-bar { display: flex; align-items: center; gap: 28px; max-width: none; height: 80px; min-height: 80px; margin: 0 auto; padding: 0 48px; background: rgba(0, 0, 0, .40); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.landing-header.is-stuck .landing-bar { background: rgba(0, 0, 0, .65); border-bottom: 1px solid rgba(255, 255, 255, .10); }
.landing-header .brand { color: #fff; justify-self: start; gap: 12px; }
.landing-nav { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 26px; margin: 0 auto 0 0; }
.landing-nav a, .landing-nav span { color: #a7a7a7; text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap; }
.landing-nav a:hover, .landing-nav a:focus { color: #fff; }
.landing-access { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 10px; }
.mobile-menu-button, .mobile-menu-overlay, .mobile-hero-cta { display: none; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 49px; min-height: 49px; padding: 0 24px; border: 0; border-radius: 40px; background: #fff; color: #000; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; }
.pill-light { width: 149px; background: #fff; color: #000; }
.pill-green { min-width: 180px; background: #7de494; color: #000; }
.landing-access .pill-green { width: 213px; }
.pill-dark { min-width: 173px; background: rgba(37, 37, 37, .1); color: #fff; border: 1px solid rgba(156, 156, 156, .36); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.demo-teaser { margin: 14px 0 0; color: #a7a7a7; font-size: .88rem; }
.demo-teaser .text-button { color: #7de494; }
.landing-block { margin: 36px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; }
.landing-block h2 { margin: 0 0 8px; font-size: 1.4rem; }
.landing-block-dark { border-color: rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .04); color: #fff; }
.landing-block-dark h2 { color: #fff; }
.landing-block-dark p { color: #a7a7a7; line-height: 1.6; }
.feature-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 22px; color: #cfcfcf; line-height: 1.5; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #7de494; }
.app-block { display: block; }
.store-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.store-badge { min-width: 132px; min-height: 42px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 750; }
.store-badge-alt { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.faq-section { width: calc(100% - 96px); margin: 0 auto; padding: 80px 0; color: #fff; }
.faq-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.faq-intro p { max-width: 360px; margin: 0 0 28px; color: #a7a7a7; font-size: 1.05rem; line-height: 1.6; }
.faq-contact { display: inline-flex; align-items: center; gap: 10px; height: 49px; padding: 0 24px; border: 0; border-radius: 40px; background: #7de494; color: #000; font-size: .95rem; font-weight: 600; }
.faq-contact:disabled { opacity: .55; cursor: not-allowed; }
.faq-contact-hint { display: block; margin-top: 10px; color: #a7a7a7; font-size: .82rem; }
.faq-list { display: grid; gap: 12px; margin: 0; }
.faq-item { border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 0; background: transparent; color: #fff; font-size: 1.05rem; font-weight: 600; text-align: left; cursor: pointer; }
.faq-question::after { content: "+"; flex: 0 0 24px; text-align: center; color: #7de494; font-size: 1.4rem; font-weight: 400; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-question:hover, .faq-question:focus { color: #7de494; }
.faq-answer { margin: 0; padding: 0 22px 20px; color: #a7a7a7; line-height: 1.6; }
.faq-answer[hidden] { display: none; }
.landing-footer { display: grid; gap: 10px; margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--ink); color: #e7f0eb; }
.landing-footer a { color: inherit; }
.unavailable-mark { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #8b452f; color: #fff; font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
#news-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
#news-form input { min-height: 40px; }
.hero-blank { min-height: 180px; }
.hero-media-wrap { min-width: 0; }
.hero-media { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.app-section { width: calc(100% - 96px); margin: 48px auto; padding: 48px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; color: #fff; }
.app-section-copy h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; }
.app-section-copy p { color: #a7a7a7; line-height: 1.6; max-width: 480px; }
.app-section-media { min-width: 0; }
.app-section-image { width: 100%; height: auto; aspect-ratio: 9 / 19; object-fit: cover; border-radius: 24px; max-width: 280px; margin: 0 auto; display: block; }
.brand-subtitle { margin-left: 6px; color: #b8cbc2; font-weight: 450; font-size: .77rem; letter-spacing: .02em; }
.theme-switch { position: relative; display: inline-flex; align-items: center; width: 44px; height: 24px; cursor: pointer; }
.theme-switch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.theme-switch-track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: transparent; border: 2px solid var(--ink); transition: background .2s ease, border-color .2s ease; }
.theme-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .2s ease, background .2s ease; }
.theme-switch input:checked + .theme-switch-track { background: #17483a; border-color: #17483a; }
.theme-switch input:checked + .theme-switch-track::after { transform: translateX(20px); background: #fff; }
.theme-switch input:focus-visible + .theme-switch-track { outline: 3px solid #bf724e; outline-offset: 3px; }
html:not([data-theme="dark"]) .theme-switch-track { border-color: var(--ink); }
html[data-theme="dark"] .theme-switch-track { border-color: #e7f2ec; }
html[data-theme="dark"] .theme-switch-track::after { background: #e7f2ec; }
.landing-header .theme-switch-track { border-color: #e7f2ec; }
.landing-header .theme-switch-track::after { background: #e7f2ec; }
.landing-header .theme-switch input:checked + .theme-switch-track { border-color: #e7f2ec; }
.landing-header .theme-switch input:checked + .theme-switch-track::after { background: #e7f2ec; }
html:not([data-theme="dark"]) .menu-button { border-color: var(--ink); color: var(--ink); }
.theme-switch input:disabled + .theme-switch-track { opacity: .5; cursor: not-allowed; }
.demo-banner { display: none; }
.demo-dot { display: none; }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 47px 0 70px; flex: 1; }
body:not(.show-landing) .app-shell { width: 100%; max-width: none; margin: 0; padding: 24px; }
.account-menu { position: fixed; top: 18px; right: 18px; z-index: 40; }
.account-menu-bar { display: flex; align-items: center; gap: 10px; }
.notification-bell { position: relative; }
.notification-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #7de494; color: #000; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.notification-panel { position: absolute; top: 50px; right: 8px; width: min(320px, calc(100vw - 36px)); max-height: min(70vh, 480px); overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); z-index: 45; }
.notification-panel[hidden] { display: none; }
.notification-panel h2 { margin: 0 0 8px; font-size: 1rem; }
.notification-error { margin: 0 0 8px; color: var(--workspace-loss, var(--down)); font-size: .82rem; }
.menu-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #b8cbc2; border-radius: 10px; background: transparent; color: #fff; }
.menu-button:hover { background: rgba(255,255,255,.08); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.account-panel { position: absolute; top: 50px; right: 0; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.account-panel[hidden] { display: none; }
.menu-section { margin: 0; padding: 12px; }
.menu-section + .menu-section { border-top: 1px solid var(--line); }
.menu-section h2, .menu-section h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -.03em; }
.menu-section .note-panel, .menu-section .relationship-panel { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.menu-section .login-form, .menu-section .switch-row { display: grid; gap: 8px; }
.menu-section select, .menu-section input { width: 100%; max-width: 100%; }
.menu-section-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-subtitle { margin: 16px 0 6px; font-size: .86rem; letter-spacing: -.02em; }
.menu-note { margin: 0 0 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.menu-form { display: grid; gap: 8px; margin-bottom: 10px; }
.menu-form label { font-size: .78rem; font-weight: 700; color: var(--ink); }
.menu-form input, .menu-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #ccd7cf; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.menu-form textarea { min-height: 72px; resize: vertical; }
.menu-choice-row { display: grid; gap: 8px; margin-bottom: 12px; }
.menu-list { display: grid; gap: 4px; }
.menu-list-item { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer; }
.menu-list-item:hover, .menu-list-item:focus-visible { background: #f4f7f4; color: #10241c; }
.menu-list-item-danger { color: #8b452f; }
.menu-list-item-danger:hover, .menu-list-item-danger:focus-visible { color: #8b452f; }

.workspace { min-width: 0; }
.site-footer { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 max(5vw, 24px); border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 29px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.06; letter-spacing: -.055em; }
.page-description { max-width: 670px; margin: 13px 0 0; color: var(--muted); line-height: 1.55; }
.profile-switch { width: min(290px, 100%); padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.76); }
.profile-switch label, .edit-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.switch-row { display: flex; align-items: center; gap: 8px; }
select, input[type="number"] { min-height: 40px; padding: 8px 10px; border: 1px solid #ccd7cf; border-radius: 8px; background: #fff; }
.profile-switch select { flex: 1; min-width: 0; }
.exit-button { display: block; margin: 6px 0 0 auto; }
.notice-line { margin: -10px 0 18px; color: #65776e; font-size: .82rem; }
.relationship-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 18px 0 37px; padding: 22px 24px; border: 1px solid #d9e6dd; border-left: 4px solid var(--green); border-radius: 13px; background: var(--green-pale); }
.relationship-panel:has(+ .invite-panel) { margin-bottom: 12px; }
.invite-controls { display: grid; justify-items: start; gap: 7px; min-width: 0; max-width: 100%; }
.invite-controls label { font-size: .86rem; font-weight: 700; }
.invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.invite-actions input { width: 8rem; max-width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.invite-panel p.invite-error { font-weight: 700; }
.client-list h2 { margin: 0; font-size: 1.12rem; }
.client-list { display: grid; gap: 12px; margin: 8px 0 22px; }
.client-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; max-width: 100%; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.client-card > div:first-child { flex: 1 1 180px; min-width: 0; }
.client-card h3 { margin: 0 0 4px; font-size: 1rem; }
.client-card p { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.4; }
.client-card-actions { display: flex; flex: 1 1 160px; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; }
.client-card .button { max-width: 100%; white-space: normal; text-align: center; }
.relationship-panel h2, .message-panel h2 { margin: 0 0 7px; font-size: 1.12rem; letter-spacing: -.02em; }
.relationship-panel p:not(.eyebrow), .message-panel p:not(.eyebrow) { margin: 0; max-width: 630px; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.button-row { display: flex; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 16px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font-size: .86rem; font-weight: 700; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.button-quiet { border-color: transparent; background: transparent; color: var(--ink-soft); }
.button-quiet:hover { background: #edf1ee; color: var(--ink); }
.button-outline { border-color: #b3c8bb; background: #fff; color: var(--green-dark); }
.button-outline:hover { background: #f6faf7; }
.button-danger-quiet { border-color: #e5c9bd; background: white; color: #8b452f; }
.button-danger-quiet:hover { background: var(--copper-pale); }
.button-small { min-height: 36px; padding: 0 11px; font-size: .79rem; }
.status-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 10px; border-radius: 999px; font-size: .71rem; font-weight: 800; letter-spacing: .02em; }
.status-active { background: #d8eee1; color: #205b3d; }
.status-pending { background: #fff0d7; color: #7a5518; }
.status-muted { background: #e8ebe8; color: #58655e; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 26px 0 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.03em; }
.section-count { color: var(--muted); font-size: .78rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.portfolio-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 7px 20px rgba(24, 55, 47, .035); }
.wallet-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.wallet-tabs button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 750; }
.wallet-tabs button[aria-selected="true"] { border-color: transparent; background: var(--green); color: #f4fbf7; }
.notifications-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notification-item { padding: 10px 12px; border-radius: 8px; font-size: .86rem; line-height: 1.4; }
.notification-income { display: grid; gap: 4px; width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--copper-pale); color: var(--ink); text-align: left; cursor: pointer; }
.notification-income small { color: var(--copper); font-weight: 750; }
.notification-income:hover { border-color: var(--copper); }
.notification-income:focus-visible { outline: 2px solid var(--copper); outline-offset: -3px; }
.note-panel, .income-form { min-width: 0; margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.income-form { margin: 0 21px 14px; padding: 0; border: 0; background: transparent; }
.note-controls { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.note-controls label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: .75rem; font-weight: 700; }
.note-controls input, .note-controls select { max-width: 100%; min-width: 0; }
.note-hint { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }
.note-panel .table-wrap { margin-top: 12px; }
.foreign-panel { margin-bottom: 14px; }
section.foreign-panel { padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.foreign-flow { display: grid; gap: 12px; }
.foreign-flow :is(h2, h3, p), .foreign-panel > [role="status"] { margin: 0; }
.foreign-panel > button + [role="status"] { margin-top: 8px; }
.foreign-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.foreign-heading h2 { font-size: 1.12rem; }
.foreign-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 0; padding: 0; min-inline-size: 0; border: 0; }
.foreign-fields label { display: grid; flex: 1 1 135px; gap: 4px; min-width: 0; font-size: .82rem; font-weight: 700; }
.foreign-fields input, .foreign-fields select { min-width: 0; width: 100%; min-height: 43px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.foreign-results { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foreign-results li { max-width: 100%; }
.foreign-results button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.foreign-results button[aria-pressed="true"] { border-color: var(--green); }
#foreign-operation { padding-top: 14px; border-top: 1px solid var(--line); }
.finance-link { width: fit-content; color: var(--green-dark); font-size: .86rem; text-underline-offset: 3px; }
.portfolio-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 21px 12px; }
.portfolio-heading .eyebrow { margin-bottom: 5px; font-size: .62rem; }
.portfolio-heading h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.03em; }
.portfolio-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #dce6df; border-radius: 12px; background: #f5f8f4; color: var(--green); font-size: .69rem; font-weight: 850; }
.portfolio-note { margin: 0 21px 13px; color: var(--muted); font-size: .73rem; }
.table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf0ec; font-size: .82rem; vertical-align: top; }
th:first-child, td:first-child { padding-left: 21px; }
th:last-child, td:last-child { padding-right: 21px; }
thead th { color: var(--muted); font-size: .66rem; font-weight: 750; }
.asset-name { display: block; color: var(--ink); font-size: .8rem; font-weight: 700; }
.asset-code { display: block; margin-top: 4px; color: #76847d; font-size: .7rem; font-weight: 500; }
.price-demo { display: block; white-space: nowrap; font-weight: 700; }
.price-caption { display: block; margin-top: 4px; color: var(--copper); font-size: .65rem; }
.actions-cell { text-align: right; }
.text-button { padding: 5px 7px; border: 0; background: none; color: var(--green); font-size: .78rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--green-dark); }
.message-panel { margin: 25px auto; padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.message-panel h2 { margin-top: 10px; font-size: 1.35rem; }
.message-panel .button { margin-top: 20px; }
.privacy-callout { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid #dce6e0; border-radius: 10px; background: #f6f8f5; }
.privacy-callout > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e0ece5; color: var(--green); font-size: 1.1rem; }
.privacy-callout strong, .privacy-callout small { display: block; }
.privacy-callout strong { font-size: .81rem; }
.privacy-callout small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.error-panel { max-width: 480px; border-color: #efd7ce; background: #fffaf7; }
.error-panel [role="alert"] { color: #8a452f; }
.message-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--copper-pale); color: #904e35; font-weight: 900; }
.loading-panel { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.loading-panel h1 { margin: 18px 0 8px; font-size: 1.45rem; letter-spacing: -.03em; }
.loading-panel p { margin: 0; }
.spinner { width: 30px; height: 30px; border: 3px solid #d9e6dd; border-top-color: var(--green); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.edit-form { min-width: 200px; margin-top: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf8; text-align: left; }
.edit-row { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-row input { width: 78px; min-height: 36px; }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; width: calc(100% - 96px); max-width: none; margin: 0 auto; padding: 156px 0 0; text-align: left; }
.welcome-copy { max-width: 720px; }
.login-stage { display: flex; align-items: center; justify-content: flex-start; min-height: 100vh; width: min(520px, calc(100% - 48px)); margin: 0 auto; padding: 140px 0 80px; }
.login-card { width: 100%; padding: 40px; border-radius: 20px; background: #0d1512; color: #fff; border: 1px solid rgba(125, 228, 148, .22); box-shadow: var(--shadow); }
.login-card h1 { font-size: 2rem; color: #fff; }
.login-description { margin: 14px 0 24px; color: #a7a7a7; }
.login-card .login-form { display: grid; gap: 16px; }
.register-field { display: grid; gap: 6px; }
.password-hint { margin: 0; color: #ff4d4d; font-size: .82rem; font-weight: 700; line-height: 1.35; }
.password-control { position: relative; }
.password-control input { padding-right: 48px; }
.login-card .password-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #5c5c5c; justify-self: auto; }
.login-card .password-toggle svg { width: 22px; height: 22px; }
.login-card .password-toggle[aria-pressed="true"] { color: #10241c; background: #d9f5e3; }
.login-card .field-error { margin: 0; color: #ffd0c8; font-size: .82rem; font-weight: 700; }
.login-card .login-form label { font-size: .78rem; font-weight: 700; color: var(--ink); }
.login-card .login-form input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: #fff; color: #000; }
.login-card .login-form input:disabled { background: #f5f5f5; color: var(--muted); cursor: not-allowed; }
.login-card .login-form button { justify-self: start; }
.register-role { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; border: 0; }
.register-role legend { width: 100%; margin-bottom: 6px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.register-role label { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--ink-soft); }
.register-role input { width: auto; min-height: 0; }
.terms-label { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--ink-soft); }
.login-card .login-form .terms-label input { width: auto; min-height: 0; height: auto; margin-top: 3px; flex: 0 0 auto; }
.terms-label > span { line-height: 1.45; }
.terms-label .text-button { white-space: nowrap; }
.login-card .account-created { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #d9f5e3; color: #10241c; font-weight: 700; }
.login-error { margin: 14px 0 0; color: #8b3527; font-weight: 700; }
.login-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13); color: #a7a7a7; font-size: .86rem; }
.login-note .text-button { font-size: inherit; color: #7de494; }
.welcome-copy { text-align: left; min-width: 0; }
.welcome-demo { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.welcome-demo-stage { animation: demo-loop 9s ease-in-out infinite; }
.demo-row { animation: demo-row 7.2s ease-in-out infinite; }
@keyframes demo-loop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes demo-row { 0%, 100% { background: transparent; } 35% { background: var(--green-pale); } 70% { background: transparent; } }
.welcome-copy h1 { max-width: 100%; font-size: 46px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.welcome-description { max-width: 520px; margin: 18px 0 22px; color: #cfcfcf; font-size: 1.05rem; line-height: 1.65; }
.promise-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.promise-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .88rem; }
.promise-list li span { color: var(--copper); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.access-card { padding: 28px; border: 1px solid #dce5dd; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.card-symbol { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px; border-radius: 12px; background: var(--green-pale); color: var(--green); font-size: 1.3rem; }
.access-card h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; }
.muted { margin: 10px 0 20px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.profile-choice { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; transition: border .15s ease, background .15s ease; }
.profile-choice:hover { border-color: #9db8a6; background: #f9fbf8; }
.profile-choice strong, .profile-choice small { display: block; }
.profile-choice strong { font-size: .87rem; }
.profile-choice small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.avatar { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: .76rem; font-weight: 850; }
.avatar-client { background: #e9eee5; color: #48634c; }
.avatar-consultant { background: #f5e7de; color: #8b5038; }
.choice-arrow { margin-left: auto; color: var(--green); font-size: 1.15rem; }
.card-footnote { display: flex; gap: 8px; margin: 19px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.45; }
.lock-mark { flex: 0 0 17px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--blue-pale); color: #526d7d; font-size: .68rem; font-weight: 900; }
.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; }
.portfolio-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 20px 21px 0; }
.portfolio-toolbar h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.portfolio-filter { min-width: min(100%, 240px); }
.portfolio-filter label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.portfolio-filter select { width: 100%; }
.ticker-button { display: inline-block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--green); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ticker-button:hover { color: var(--green-dark); }
.variation-up { color: var(--up); font-weight: 750; }
.variation-down { color: var(--down); font-weight: 750; }
.variation-flat { color: var(--muted); font-weight: 650; }
.asset-page { padding: 8px 0 12px; }
.asset-page h2 { margin: 8px 21px 0; font-size: 2rem; letter-spacing: -.04em; }
.asset-page .eyebrow, .asset-page .page-description, .asset-page .text-button { margin-left: 21px; margin-right: 21px; }
.asset-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 21px; }
.asset-facts div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.asset-facts dt { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.asset-facts dd { margin: 6px 0 0; font-size: .92rem; font-weight: 700; }
.chart-block { container-type: inline-size; padding: 8px 21px 18px; border-top: 1px solid var(--line); }
.chart-block h4 { margin: 12px 0 4px; font-size: .98rem; letter-spacing: -.02em; }
.chart-meta, .chart-note, .chart-empty { margin: 4px 0 10px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.chart-layout { display: grid; grid-template-columns: 140px minmax(0, max-content); justify-content: start; gap: 16px; align-items: center; margin-bottom: 8px; }
.pie-chart { width: 140px; height: 140px; }
.pie-slice { transform-origin: 60px 60px; animation: pie-enter 250ms ease-out both; cursor: pointer; transition: transform 150ms ease-out; }
.pie-slice:hover { transform: scale(1.03) translate(2px, -2px); }
@keyframes pie-enter { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.line-chart { width: 100%; height: auto; color: var(--chart-ink); }
.legend { display: grid; justify-items: start; gap: 7px; margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 8px; width: fit-content; max-width: 100%; color: var(--ink-soft); font-size: .78rem; overflow-wrap: anywhere; }
.legend-inline { margin: 8px 0 10px; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; }
.benchmark-picker { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.benchmark-picker legend { padding: 0 4px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.benchmark-picker label { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; }
.benchmark-picker input { width: 1rem; height: 1rem; accent-color: var(--green); }
.chart-credit { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
caption { caption-side: top; padding: 8px 21px 0; color: var(--muted); font-size: .75rem; text-align: left; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7f2ec;
  --ink-soft: #c5d6ce;
  --muted: #9eb0a8;
  --paper: #1c2b26;
  --canvas: #121a17;
  --line: #31423c;
  --green: #9ed8c0;
  --green-dark: #d7f3e6;
  --green-pale: #243832;
  --copper: #e0a88a;
  --copper-pale: #3a2a24;
  --blue-pale: #243038;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
  --chart-value: #9ed8c0;
  --chart-cost: #e0a88a;
  --chart-grid: #3c5148;
  --chart-ink: #e7f2ec;
  --bench-cdi: #9ec4d6;
  --bench-ipca: #e2c48a;
  --bench-ibov: #d2b4d8;
  --bench-ifix: #9ed0c4;
  --bench-spx: #b7c6e4;
  --slice-1: #7dceB0;
  --slice-2: #e0a88a;
  --slice-3: #8eb4c9;
  --slice-4: #d7c08a;
  --slice-5: #9aa79f;
  --up: #8fd7a8;
  --down: #f0b2a0;
}
html[data-theme="dark"] .topbar { background: #0e1714; }
html[data-theme="dark"] .account-panel { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .button:not(.button-quiet):not(.button-outline):not(.button-danger-quiet) { color: #10241c; }
html[data-theme="dark"] .demo-banner { display: none; }
html[data-theme="dark"] .note-panel,
html[data-theme="dark"] .wallet-tabs button,
html[data-theme="dark"] .message-panel,
html[data-theme="dark"] .access-card,
html[data-theme="dark"] .profile-switch,
html[data-theme="dark"] .profile-choice,
html[data-theme="dark"] .edit-form,
html[data-theme="dark"] select,
html[data-theme="dark"] input,
html[data-theme="dark"] .button-outline,
html[data-theme="dark"] .button-danger-quiet { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .wallet-tabs button[aria-selected="true"] { background: var(--green); color: #10241c; }
html[data-theme="dark"] .relationship-panel { background: #1e332c; }
html[data-theme="dark"] .client-card { background: var(--paper); }
html[data-theme="dark"] .button-quiet:hover,
html[data-theme="dark"] .profile-choice:hover,
html[data-theme="dark"] .button-outline:hover { background: #2a3b34; }
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .table-wrap { border-color: var(--line); }
html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .portfolio-icon { background: #24332d; }
@container (max-width: 520px) {
  .chart-layout { grid-template-columns: 1fr; }
  .pie-chart { width: 120px; height: 120px; }
}
@media (max-width: 800px) {
  .app-shell { width: min(1120px, calc(100% - 32px)); padding-top: 31px; }
  .account-menu { right: 12px; top: 12px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 26px; width: calc(100% - 36px); margin-top: 0; padding: 132px 0 24px; text-align: center; }
  .welcome-copy { max-width: none; }
  .welcome-copy .eyebrow { margin-bottom: 12px; }
  .welcome-copy h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.35rem, 8vw, 3.35rem); line-height: 1.08; }
  .welcome-description { max-width: 34ch; margin: 18px auto 24px; font-size: 1rem; line-height: 1.55; }
  .mobile-hero-cta { display: grid; gap: 12px; margin-top: 24px; }
  .mobile-hero-cta .pill { width: 100%; min-height: 54px; font-size: 1rem; }
  .mobile-hero-cta .pill-dark { background: transparent; border: 1px solid rgba(255,255,255,.28); color: #fff; }
  .demo-teaser { margin-top: 18px; }
  .hero-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(125,228,148,.18); border-radius: 18px; }
  .faq-section { width: calc(100% - 32px); padding: 56px 0; }
  .app-section { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .faq-intro p { max-width: none; margin-bottom: 20px; }
  .login-stage { width: calc(100% - 32px); padding: 230px 0 60px; }
  .login-card { padding: 28px; }
  .landing-header { margin-inline: 0; }
  .landing-bar { position: relative; width: calc(100% - 32px); height: 64px; min-height: 64px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin: 12px auto 0; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(0,0,0,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .landing-header.is-stuck .landing-bar { background: rgba(0,0,0,.82); }
  .landing-header .brand { gap: 8px; }
  .landing-header .brand-mark { width: 30px; height: 30px; min-width: 30px; min-height: 30px; flex-basis: 30px; }
  .landing-header .brand-lettering { height: 19px; }
  .landing-nav, .landing-access { display: none; }
  .mobile-menu-button { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
  .mobile-menu-bars, .mobile-menu-bars::before, .mobile-menu-bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
  .mobile-menu-bars { position: relative; }
  .mobile-menu-bars::before, .mobile-menu-bars::after { position: absolute; left: 0; }
  .mobile-menu-bars::before { top: -7px; }
  .mobile-menu-bars::after { top: 7px; }
  .mobile-menu-overlay:not([hidden]) { position: fixed; inset: 12px; z-index: 50; isolation: isolate; display: flex; flex-direction: column; padding: 24px 22px 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; background: rgba(0,0,0,.38); color: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.48); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mobile-menu-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(0,0,0,.30); }
  .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mobile-menu-top .brand { gap: 8px; }
  .mobile-menu-top .brand-mark { width: 34px; height: 34px; min-width: 34px; min-height: 34px; flex-basis: 34px; }
  .mobile-menu-top .brand-lettering { height: 21px; }
  .mobile-menu-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
  .mobile-menu-links { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 4vh, 32px); padding: 24px 0; }
  .mobile-menu-links a { color: #f3f3f3; font-size: clamp(1.35rem, 5.8vw, 1.8rem); line-height: 1.15; text-align: center; text-decoration: none; }
  .landing-stage [id], .app-shell [id] { scroll-margin-top: 88px; }
  #faq-title { scroll-margin-top: 84px; }
  .landing-stage .welcome-copy .eyebrow { scroll-margin-top: 84px; }
  .mobile-menu-actions { display: grid; gap: 12px; margin-top: auto; }
  .mobile-menu-actions .pill { width: 100%; min-height: 56px; font-size: 1rem; }
  .hero-blank { min-height: 48px; }
  .brand-mark { width: 36px; height: 36px; min-width: 36px; min-height: 36px; flex: 0 0 36px; }
  .brand-lettering { height: 20px; }
  .page-heading { flex-direction: column; }
  .profile-switch { width: 100%; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .chart-layout, .asset-facts { grid-template-columns: 1fr; }
  .pie-chart { width: 120px; height: 120px; }
  .relationship-panel, .client-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .client-card { padding: 14px; }
  .client-card-actions { justify-content: flex-start; }
  .topbar { height: 65px; padding-inline: 17px; }
  .brand-subtitle { display: none; }
  .landing-bar { gap: 16px; }
  .app-shell { width: calc(100% - 28px); padding-top: 25px; }
  h1 { font-size: 2.25rem; }
  .welcome-copy h1 { font-size: 28px; }
  .access-card, .message-panel { padding: 21px; }
  .relationship-panel { padding: 18px; }
  .button-row { width: 100%; flex-wrap: wrap; }
  .section-heading, .portfolio-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .asset-facts { grid-template-columns: 1fr 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 17px; }
  th, td { padding: 10px 9px; font-size: .76rem; }
  th:first-child, td:first-child { padding-left: 12px; }
  th:last-child, td:last-child { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 800px) { .notification-panel { position: fixed; right: 8px; left: 8px; width: auto; } }

html:not([data-theme="dark"]) .landing-header .theme-switch-track { border-color: #e7f2ec; }

html[data-theme="dark"] .theme-switch input:checked + .theme-switch-track { background: #17483a; border-color: #e7f2ec; }

input, select, textarea { color: #000; }
input::placeholder, textarea::placeholder { color: #555; }

/* Authenticated workspace */
body.show-app {
  --workspace-header: var(--paper);
  --workspace-nav-ink: #425c53;
  --workspace-control-line: #789289;
  --portfolio-surface: #f8fbf9;
  --portfolio-card: var(--paper);
  --workspace-emphasis: var(--ink);
  --workspace-subtle: var(--muted);
  --workspace-accent: #1d6b3a;
  --workspace-active: #e2f2e7;
  --workspace-active-ink: #1e6739;
  --workspace-loss: #9b3035;
  --workspace-axis: #496157;
  --workspace-focus: #1e694f;
  --workspace-notice: #875035;
  --portfolio-slice-1: #247744;
  --portfolio-slice-2: #63a87a;
  --portfolio-slice-3: #266b83;
  --portfolio-slice-4: #8063a5;
  --portfolio-slice-5: #956337;
  background: var(--canvas);
  color: var(--ink);
}
html[data-theme="dark"] body.show-app {
  --workspace-header: #07110c;
  --workspace-nav-ink: #c5d3cc;
  --workspace-control-line: #50665c;
  --portfolio-surface: #101d17;
  --portfolio-card: #141c19;
  --workspace-emphasis: #f4fff8;
  --workspace-subtle: #9eb2a8;
  --workspace-accent: #7de494;
  --workspace-active: #143d28;
  --workspace-active-ink: #7de494;
  --workspace-loss: #ff8d8d;
  --workspace-axis: #b5c8bf;
  --workspace-focus: #98edaa;
  --workspace-notice: #e2a17f;
  --portfolio-slice-1: #3ddc6a;
  --portfolio-slice-2: #8dffb8;
  --portfolio-slice-3: #1f8f4e;
  --portfolio-slice-4: #c6f5d8;
  --portfolio-slice-5: #145c38;
}
body.show-app .site-frame { background: var(--canvas); }
body.show-app .app-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.app-header { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); min-height: 72px; padding: 10px max(24px, 4.2vw); border-bottom: 1px solid var(--line); background: var(--workspace-header); color: var(--ink); }
@media (min-width: 981px) {
  .app-header { position: static; }
}
.app-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.app-brand .brand-mark { width: 36px; height: 36px; min-width: 36px; min-height: 36px; flex-basis: 36px; }
.app-brand .brand-lettering { height: 22px; }
.app-brand .brand-name { display: none; color: var(--ink); }
html:not([data-theme="dark"]) .app-brand .brand-lettering { filter: brightness(0) saturate(100%) invert(18%) sepia(15%) saturate(1452%) hue-rotate(114deg); }
.app-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 34px); min-width: 0; }
.app-nav a, .app-nav button, .app-nav-coming { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 3px; border: 0; background: transparent; color: var(--workspace-nav-ink); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.app-nav :is(a, button):is(:hover, [aria-current="page"]) { color: var(--workspace-accent); }
.app-nav-coming { color: var(--workspace-subtle); cursor: not-allowed; }
.app-nav-coming small { color: var(--workspace-accent); font-size: .62rem; font-weight: 750; }
.app-nav [aria-current="page"]::after { position: absolute; right: 0; bottom: -11px; left: 0; height: 2px; border-radius: 2px; background: var(--workspace-accent); content: ""; }
.app-header .account-menu { position: relative; top: auto; right: auto; z-index: 40; flex: 0 0 auto; margin-left: 0; }
.app-header .account-menu-bar { gap: 9px; }
.app-header .menu-button { border-color: var(--workspace-control-line); border-radius: 50%; color: var(--ink); }
.app-header .menu-button:is(:hover, [aria-expanded="true"]),
.app-header .menu-list-item:is(:hover, :focus-visible) { background: var(--workspace-active); color: var(--workspace-active-ink); }
.app-header .menu-list-item-danger,
.app-header .menu-list-item-danger:is(:hover, :focus-visible) { color: var(--workspace-loss); }
body.show-app :focus-visible,
body.show-app .theme-switch input:focus-visible + .theme-switch-track { outline-color: var(--workspace-focus); }
body.show-app .skip-link { background: var(--paper); }
body.show-app .notification-count { background: var(--workspace-active-ink); color: var(--workspace-header); }
body.show-app .notification-income small { color: var(--workspace-notice); }
.app-header .account-panel { top: calc(100% + 12px); right: 0; }
.app-header .theme-switch-track { border-color: var(--workspace-control-line); }
.app-header .theme-switch-track::after { background: var(--ink); }
.demo-environment-note { max-width: 1440px; margin: 15px auto 0; padding: 0 max(24px, 4.2vw); color: var(--workspace-accent); font-size: .76rem; font-weight: 750; letter-spacing: .04em; }
.app-content { width: min(1440px, 100%); margin: 0 auto; padding: 30px max(24px, 4.2vw) 70px; }
.app-content .page-heading { margin-bottom: 18px; }
.app-content .page-heading h1 { font-size: clamp(1.9rem, 3.2vw, 2.55rem); letter-spacing: -.04em; }
.app-content .page-description { margin-top: 8px; }
.app-content .notice-line { margin: 0 0 17px; }
.workspace-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 14px; margin: 0 0 20px; }
.workspace-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-card { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 8px; min-height: 82px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.metric-card span { color: var(--muted); font-size: .72rem; font-weight: 650; }
.metric-card strong { color: var(--ink); font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1; }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.shortcut-card { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 6px; min-height: 82px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); text-align: left; }
.shortcut-card > span { font-size: .82rem; font-weight: 700; }
.shortcut-card small { color: var(--green); font-size: .68rem; font-weight: 750; }
.shortcut-card:disabled { cursor: not-allowed; opacity: .82; }
.wallet-screen { display: grid; gap: 14px; }
.wallet-card { min-width: 0; overflow-wrap: anywhere; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.wallet-card h2 { margin: 0; font-size: 1.05rem; }
.wallet-positions { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.wallet-form { display: grid; gap: 8px; min-width: 0; margin-top: 8px; }
.wallet-screen > .button { justify-self: start; }
.wallet-screen > .wallet-form { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.wallet-form > input, .wallet-rename input { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--workspace-control-line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.wallet-form fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wallet-check { display: flex; align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
.wallet-check input { flex: 0 0 auto; inline-size: 17px; block-size: 17px; accent-color: var(--workspace-accent); }
.wallet-rename { display: flex; gap: 8px; align-items: center; }
.wallet-rename input { flex: 1; }
body.show-app:has(.desk-board) .app-content { padding-top: 12px; }
body.show-app:has(.desk-board) .page-heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body.show-app:has(.desk-board) .notice-line,
body.show-app:has(.desk-board) .workspace-overview { display: none; }
.app-content .portfolio-toolbar { align-items: center; padding: 12px 16px 0; }
.app-content .portfolio-toolbar h2 { font-size: 1.05rem; }
.app-content .portfolio-card > .portfolio-note { margin: 6px 16px 0; }
#panel-income .portfolio-card > .portfolio-note { margin-bottom: 12px; }
.app-content .portfolio-card { border-color: var(--line); background: var(--portfolio-surface); color: var(--ink); }
.app-content .portfolio-card .eyebrow,
.app-content .portfolio-card h2,
.app-content .portfolio-card .portfolio-note,
.app-content .portfolio-card .portfolio-filter label,
.app-content .portfolio-card th,
.app-content .portfolio-card td { color: var(--ink); }
.app-content .portfolio-card .portfolio-note,
.app-content .portfolio-card .portfolio-filter label { color: var(--workspace-subtle); }
.app-content .portfolio-card th,
.app-content .portfolio-card td { border-bottom-color: var(--line); }
.app-content .portfolio-card .portfolio-filter select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--workspace-control-line); border-radius: 10px; background: var(--portfolio-card); color: var(--ink); }
.app-content .portfolio-card .table-wrap { border-top-color: var(--line); }
.desk-board { display: grid; grid-template-columns: minmax(210px, 26%) minmax(0, 1fr); gap: 16px; margin: 6px 12px 12px; padding: 4px; }
.desk-side { display: grid; align-content: start; gap: 4px; min-width: 0; }
.desk-side :is(p, button) { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; font-size: .84rem; font-weight: 700; line-height: 16px; white-space: nowrap; }
.desk-side-link { background: transparent; color: var(--ink); }
.desk-side-link:is(:hover, [aria-current="page"]) { background: var(--workspace-active); color: var(--workspace-active-ink); }
.desk-side-soon { justify-content: flex-start; color: var(--workspace-subtle); font-weight: 600; }
.desk-side-soon span { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; height: 16px; white-space: nowrap; }
.desk-side-soon small { flex: 0 0 auto; margin-left: 12px; color: var(--workspace-accent); font-size: .62rem; font-weight: 750; line-height: 16px; white-space: nowrap; }
.desk-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.desk-main { min-width: 0; }
.desk-top { display: block; }
.desk-balance-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.desk-kicker { margin: 0; color: var(--workspace-subtle); font-size: .78rem; }
.desk-balance { margin: 4px 0 0; color: var(--workspace-emphasis); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.desk-change { margin: 8px 0 0; font-size: .92rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.desk-change-up { color: var(--workspace-accent); }
.desk-change-down { color: var(--workspace-loss); }
.desk-note, .desk-empty { margin: 8px 0 0; color: var(--workspace-subtle); font-size: .75rem; }
.desk-ranges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.desk-ranges button { min-height: 32px; padding: 0 8px; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; color: var(--workspace-subtle); font: inherit; font-size: .75rem; font-weight: 750; }
.desk-ranges button[aria-pressed="true"] { background: var(--workspace-accent); color: var(--workspace-header); }
.desk-chart { margin-top: 8px; }
.desk-spark { display: block; width: 100%; height: 280px; }
.desk-spark text { fill: var(--workspace-axis); font-size: 12px; }
.desk-spark-area { fill: var(--chart-value); fill-opacity: 0.28; }
.desk-chart .benchmark-picker { margin: 0 0 8px; border-color: var(--line); }
.desk-chart .benchmark-picker legend,
.desk-chart .benchmark-picker small,
.desk-chart .chart-credit { color: var(--workspace-subtle); }
.desk-chart .benchmark-picker input:disabled + .swatch { opacity: .45; }
.desk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 14px; margin-top: 8px; }
.desk-card { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--portfolio-card); }
.desk-card h3 { margin: 0; color: var(--workspace-emphasis); font-size: 1rem; }
.desk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.desk-see-all { padding: 0; border: 0; background: none; color: var(--workspace-accent); font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.desk-allocation-body { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.desk-donut { width: 88px; height: 88px; flex: 0 0 88px; }
.desk-legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.desk-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--ink); font-size: .82rem; }
.desk-legend i { width: 10px; height: 10px; border-radius: 50%; }
.desk-legend strong { color: var(--workspace-emphasis); font-variant-numeric: tabular-nums; }
.desk-positions { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.desk-positions li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.desk-position-name { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.desk-position-sold { color: var(--workspace-subtle); font-size: .75rem; }
.desk-position-value { color: var(--workspace-emphasis); font-weight: 750; font-variant-numeric: tabular-nums; }
.desk-board .ticker-button { margin: 0; color: var(--workspace-emphasis); text-decoration: none; overflow-wrap: anywhere; }
.desk-board .ticker-button:hover, .desk-see-all:hover { text-decoration: underline; }
.desk-ranges button:not([aria-pressed="true"]):hover { background: var(--workspace-active); color: var(--workspace-active-ink); }
.desk-spark-mobile { display: none; }
.income-bar { fill: var(--chart-value); }
.received-card .desk-board { padding-block: 16px; }
.received-card h2 { margin: 0; font-size: clamp(1.35rem, 2.9vw, 2rem); }
.received-positions li > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.received-positions li > span:first-child > span, .received-positions time { color: var(--workspace-subtle); font-size: .82rem; }
#panel-income { margin-top: 16px; }
#panel-income .income-form { margin-top: 12px; }
.income-form :is(input, select) { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--workspace-control-line); border-radius: 8px; }
.income-form .note-controls > label { flex: 1 1 115px; }
.income-form .button { min-height: 44px; }
#positions-detail { scroll-margin-block: 80px; }
#panel-positions .foreign-panel { margin: 14px 16px; }
.app-content .variation-up { color: var(--workspace-accent); }
.app-content .variation-down { color: var(--workspace-loss); }
.app-content .portfolio-card { border-radius: 18px; }
.app-content .client-list { margin-top: 24px; }
.app-content .client-list h2 { font-size: 1.15rem; }
.mobile-workspace-nav { display: none; }
.auth-account-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.auth-signout { flex: 0 0 auto; }
.auth-session-card { max-width: 760px; margin: 24px 0; padding: clamp(22px, 4vw, 38px); }
.auth-session-card h1 { margin-bottom: 14px; }
.auth-session-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.auth-session-facts div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.auth-session-facts dt { color: var(--muted); font-size: .72rem; font-weight: 750; }
.auth-session-facts dd { margin: 6px 0 0; color: var(--ink); font-weight: 700; }
.auth-session-note { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.auth-session-support { max-width: 960px; }
.support-directory { margin-top: 28px; }
.support-directory h2 { margin-bottom: 8px; }
.support-account, .support-block { margin-top: 16px; }
.support-account { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.support-account h3, .support-block h3, .support-block h4 { margin: 0 0 8px; font-size: 1rem; }
.support-meta { margin: 0; color: var(--muted); }
.support-form { display: grid; gap: 8px; margin-top: 8px; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.support-form label { display: grid; gap: 4px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.support-form input, .support-form select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #000; }
.support-form .button, .support-account > .button { justify-self: start; }
.support-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

html[data-theme="dark"] {
  --ink: #eff7f2;
  --ink-soft: #c0d0c7;
  --muted: #94a99e;
  --paper: #101d17;
  --canvas: #07110c;
  --line: #263a30;
  --green: #7de494;
  --green-dark: #174a34;
  --green-pale: #142b20;
  --copper: #e2a17f;
  --copper-pale: #33241e;
  --blue-pale: #182932;
  --shadow: 0 18px 48px rgba(0,0,0,.3);
  --chart-value: #7de494;
  --chart-grid: #263a30;
  --chart-ink: #eff7f2;
  --bench-cdi: #8ccce0;
  --bench-ipca: #e7c784;
  --bench-ibov: #c0a2d6;
  --bench-ifix: #89cbb9;
  --bench-spx: #c5d4ea;
  --slice-1: #7de494;
  --slice-2: #65a9e8;
  --slice-3: #f0c653;
  --slice-4: #bd83eb;
  --slice-5: #8fa39a;
}
html[data-theme="dark"] body.show-app { color: var(--ink); background: var(--canvas); }
html[data-theme="dark"] body.show-app .site-frame { background: radial-gradient(ellipse at 50% -20%, rgba(125, 228, 148, .09), transparent 50%), var(--canvas); }
html[data-theme="dark"] .client-card,
html[data-theme="dark"] .message-panel,
html[data-theme="dark"] .workspace .relationship-panel,
html[data-theme="dark"] .app-content .profile-switch { border-color: var(--line); background: var(--paper); }
html[data-theme="dark"] .portfolio-card { box-shadow: 0 12px 36px rgba(0,0,0,.18); }
html[data-theme="dark"] .app-content .button:hover { background: var(--green-dark); color: #fff; }
html[data-theme="dark"] .app-content .button-quiet { color: var(--ink-soft); }
html[data-theme="dark"] .app-content .button-quiet:hover { color: var(--ink); }
html[data-theme="dark"] .app-content th,
html[data-theme="dark"] .app-content td { border-color: var(--line); }
html[data-theme="dark"] .app-content .table-wrap { border-color: var(--line); }
html[data-theme="dark"] .app-content .portfolio-note,
html[data-theme="dark"] .app-content .chart-meta,
html[data-theme="dark"] .app-content .chart-note { color: var(--muted); }
body.show-app :is(.app-content, .account-panel) :is(select, textarea, input:not([type="checkbox"]):not([type="file"])) {
  background: var(--portfolio-card);
  border-color: var(--workspace-control-line);
  color: var(--ink);
}
body.show-app :is(.app-content, .account-panel) :is(input, textarea)::placeholder { color: var(--workspace-subtle); }
body.show-app .asset-code,
body.show-app .notice-line { color: var(--workspace-subtle); }
body.show-app .edit-form { background: var(--portfolio-card); }

@media (max-width: 980px) {
  .app-header { gap: 18px; padding-inline: 22px; }
  .app-nav { gap: 14px; }
  .app-nav a, .app-nav button, .app-nav-coming { font-size: .8rem; }
  .app-content { padding-inline: 22px; }
  .workspace-overview { grid-template-columns: 1fr; }
  .desk-board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .desk-side { display: flex; gap: 8px; }
  .desk-side .desk-side-soon { display: none; }
  .desk-side-link { min-height: 44px; }
  .demo-environment-note { padding-inline: 22px; }
}
@media (max-width: 700px) {
  .app-header { min-height: 64px; gap: 8px; padding: 8px 14px; }
  .app-brand { gap: 6px; }
  .app-brand .brand-mark { width: 30px; height: 30px; min-width: 30px; min-height: 30px; flex-basis: 30px; }
  .app-brand .brand-lettering { height: 18px; }
  .app-nav { display: none; }
  .app-header .account-menu { margin-left: auto; }
  .app-header .account-menu-bar { gap: 7px; }
  .auth-account-actions { gap: 6px; }
  .auth-session-facts { grid-template-columns: 1fr; }
  .app-content { padding: 22px 16px calc(94px + env(safe-area-inset-bottom)); }
  .demo-environment-note { margin-top: 12px; padding-inline: 16px; }
  .app-content .page-heading { margin-bottom: 14px; }
  .app-content .page-heading h1 { font-size: 1.8rem; }
  .workspace-overview { gap: 10px; margin-bottom: 15px; }
  .workspace-metrics { gap: 8px; }
  .metric-card { min-height: 66px; padding: 10px 12px; border-radius: 12px; }
  .metric-card strong { font-size: 1.2rem; }
  .workspace-shortcuts { gap: 7px; }
  .shortcut-card { min-height: 64px; padding: 9px; border-radius: 11px; }
  .shortcut-card > span { font-size: .74rem; }
  .app-content .portfolio-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .desk-side { display: none; }
  .desk-board { margin: 8px; padding: 4px; }
  .desk-split { grid-template-columns: minmax(0, 1fr); }
  .desk-ranges { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desk-ranges button { padding-inline: 4px; min-height: 44px; }
  .desk-spark-wide { display: none; }
  .desk-spark-mobile { display: block; height: auto; }
  .desk-chart .benchmark-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; min-width: 0; padding: 4px 8px; }
  .desk-chart .benchmark-picker label { display: grid; grid-template-columns: 16px 8px minmax(0, 1fr); align-content: center; gap: 2px 3px; min-height: 44px; font-size: .75rem; }
  .desk-chart .benchmark-picker input, .desk-chart .benchmark-picker .swatch { margin: 0; }
  .desk-chart .benchmark-label { white-space: normal; line-height: 1.15; }
  .desk-chart .benchmark-picker .swatch { width: 8px; height: 8px; }
  .desk-chart .benchmark-picker small { grid-column: 1 / -1; }
  .desk-positions li { min-height: 44px; gap: 6px; white-space: normal; }
  .desk-positions .ticker-button, .desk-see-all { min-height: 44px; }
  .desk-position-name { flex-wrap: wrap; gap: 4px; }
  .desk-position-value, .received-positions time { white-space: nowrap; }
  .wallet-form .button-row { flex-wrap: wrap; }
  .wallet-rename button { min-height: 44px; }
  .app-header .theme-switch { height: 44px; }
  .app-header .menu-button { width: 44px; height: 44px; }
  body.show-app .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .portfolio-filter { width: 100%; }
  .mobile-workspace-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 34; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--workspace-header); color: var(--workspace-nav-ink); box-shadow: 0 -8px 28px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
  .mobile-workspace-nav a,
  .mobile-workspace-nav button,
  .mobile-nav-disabled { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 2px; border: 0; background: transparent; color: inherit; font: inherit; font-size: .66rem; line-height: 1.1; text-decoration: none; }
  .mobile-workspace-nav.has-income { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-workspace-nav [aria-current="page"] { border-radius: 9px; background: var(--workspace-active); color: var(--workspace-active-ink); font-weight: 750; }
  .mobile-workspace-nav a > span:first-child,
  .mobile-workspace-nav button > span:first-child,
  .mobile-nav-disabled > span:first-child { font-size: 1rem; line-height: 1; }
  .mobile-workspace-nav small { color: var(--workspace-subtle); font-size: .56rem; }
  .mobile-nav-disabled { color: var(--workspace-subtle); }
}
@media (max-width: 380px) {
  .app-header { padding-inline: 10px; }
  .app-brand .brand-lettering { height: 16px; }
  .app-header .account-menu-bar { gap: 5px; }
  .app-content { padding-inline: 12px; }
  .demo-environment-note { padding-inline: 12px; }
}
