:root {
  --ink: #0b1320;
  --ink-soft: #182436;
  --lime: #b8f04a;
  --lime-soft: #eafbc8;
  --coral: #ff7a59;
  --cream: #f7f8f3;
  --white: #fff;
  --text: #121927;
  --muted: #6d7582;
  --line: #e7e9e2;
  --success: #20a66a;
  --shadow: 0 24px 65px rgba(11, 19, 32, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(184, 240, 74, .13), transparent 22rem),
    #eef0eb;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 242px minmax(390px, 520px) 300px;
  justify-content: center;
  gap: 28px;
  padding: 28px;
}
.sidebar, .progress-panel {
  position: sticky;
  top: 28px;
  align-self: start;
  border: 1px solid rgba(11,19,32,.06);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 15px 45px rgba(11,19,32,.06);
}
.brand, .mini-brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 46px; height: 46px; border-radius: 15px; }
.brand strong, .mini-brand strong { display: block; font-size: 25px; letter-spacing: -1.2px; font-weight: 900; }
.brand span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; font-weight: 650; }
.sidebar-label { margin: 34px 0 11px; color: #9aa097; font-size: 9px; font-weight: 900; letter-spacing: 1.4px; }
.side-nav { display: grid; gap: 7px; }
.nav-button {
  border: 0; background: transparent; color: var(--muted); border-radius: 13px;
  text-align: left; padding: 11px 12px; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; gap: 10px;
}
.nav-button span { width: 24px; height: 24px; display: grid; place-items: center; font-size: 17px; }
.nav-button:hover, .nav-button.active { background: var(--ink); color: var(--white); }
.nav-button.active span { color: var(--lime); }
.privacy-mini { margin-top: 30px; padding: 14px; border-radius: 16px; display: flex; gap: 10px; background: var(--lime-soft); }
.privacy-mini > span { color: #58761e; }
.privacy-mini strong { font-size: 11px; }
.privacy-mini p { margin: 3px 0 0; color: #607041; font-size: 9px; line-height: 1.4; }

.app-shell {
  position: relative;
  min-height: calc(100vh - 56px);
  background: var(--cream);
  border: 8px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-topbar { height: 66px; padding: 16px 20px 10px; display: flex; align-items: center; justify-content: space-between; }
.mini-brand img { width: 32px; height: 32px; border-radius: 10px; }
.mini-brand strong { font-size: 19px; }
.avatar { width: 34px; height: 34px; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.screen { display: none; padding: 16px 20px 108px; animation: appear .2s ease; }
.screen.active { display: block; }
@keyframes appear { from { opacity: .4; transform: translateY(4px); } }
.eyebrow { margin: 5px 0 0; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.screen h1 { margin: 3px 0 0; color: var(--ink); font-size: 29px; line-height: 1.2; letter-spacing: -1.2px; font-weight: 900; }
.lead, .screen-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.demo-banner { width: 100%; margin: 18px 0 12px; padding: 10px 12px; border: 1px solid #f4dcad; border-radius: 12px; background: #fff7e7; color: #825d19; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; }
.install-card { position: relative; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 11px; margin: 0 0 12px; padding: 11px 10px; border: 1px solid #d8eeb0; border-radius: 16px; background: var(--lime-soft); }
.install-card[hidden] { display: none; }
.install-card img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 5px 12px rgba(11,19,32,.16); }
.install-card strong { display: block; color: var(--ink); font-size: 10px; }
.install-card p { margin: 3px 0 0; color: #53653a; font-size: 8.5px; line-height: 1.45; }
.install-card p span { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 6px; background: rgba(255,255,255,.7); color: #2267b3; font-weight: 900; }
.install-card button { align-self: start; border: 0; padding: 0; color: #617043; background: none; font-size: 19px; line-height: 1; }
.balance-card { padding: 20px; border-radius: 24px; background: var(--ink); color: white; box-shadow: 0 15px 30px rgba(11,19,32,.16); }
.balance-heading { display: flex; align-items: center; justify-content: space-between; color: #9ba7b7; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.local-badge { color: var(--lime); background: #243142; border-radius: 99px; padding: 5px 8px; letter-spacing: 0; }
.balance-number { display: block; margin-top: 8px; font-size: 34px; letter-spacing: -1.7px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #2b3746; }
.metric { display: flex; align-items: center; gap: 9px; }
.metric i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; font-style: normal; }
.metric-in { color: var(--success); background: #183c35; }
.metric-out { color: var(--coral); background: #3b2a2b; }
.metric span { color: #96a2b1; display: block; font-size: 9px; }
.metric strong { display: block; margin-top: 2px; font-size: 12px; }
.ai-cta { width: 100%; border: 0; margin-top: 13px; padding: 13px; border-radius: 17px; background: var(--lime); color: var(--ink); display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 10px; text-align: left; }
.ai-spark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.48); font-size: 20px; }
.ai-cta strong { display: block; font-size: 12px; }
.ai-cta small { display: block; margin-top: 3px; color: #415320; font-size: 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.section-heading button { border: 0; background: none; color: var(--muted); font-size: 10px; font-weight: 700; }
.transaction-list { border: 1px solid var(--line); border-radius: 17px; padding: 3px 13px; background: var(--white); }
.transaction { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; min-height: 62px; border-bottom: 1px solid #f0f1ec; }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; font-size: 17px; }
.transaction strong { font-size: 12px; }
.transaction small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.transaction .amount { font-size: 11px; font-weight: 850; }
.transaction .income { color: var(--success); }
.empty-list { padding: 28px 10px; color: var(--muted); text-align: center; font-size: 11px; }

.screen-title { margin: 4px 0 20px; }
.screen-title > small { display: block; }
.add-title { display: flex; align-items: center; gap: 11px; }
.add-title h1 { font-size: 23px; }
.title-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--lime); font-size: 20px; }
.assistant-bubble { max-width: 90%; padding: 13px 15px; border-radius: 4px 17px 17px 17px; background: var(--ink); color: var(--white); }
.assistant-bubble small { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.4px; }
.assistant-bubble p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; }
.example-row { display: flex; overflow-x: auto; gap: 7px; padding: 12px 0; scrollbar-width: none; }
.example-row button { white-space: nowrap; border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: 99px; padding: 8px 11px; font-size: 9px; }
.composer { min-height: 112px; border: 1.5px solid #d9dcd3; border-radius: 17px; padding: 12px; background: var(--white); }
.composer textarea { width: 100%; min-height: 62px; resize: none; border: 0; outline: 0; color: var(--text); font-size: 13px; line-height: 1.45; }
.composer button { float: right; width: 36px; height: 36px; border: 0; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 20px; }
.parse-card { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 21px; background: white; }
.parse-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.parse-heading small { color: var(--muted); display: block; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.parse-heading strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; }
.parse-heading > span { padding: 5px 7px; border-radius: 99px; background: var(--lime-soft); color: #506d17; font-size: 8px; font-weight: 900; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 14px 0; border-radius: 10px; background: var(--cream); }
.segmented button { border: 0; border-radius: 8px; padding: 8px; background: none; color: var(--muted); font-size: 10px; font-weight: 700; }
.segmented button.active { background: var(--ink); color: white; }
.parse-card label { display: block; color: var(--muted); margin-top: 12px; font-size: 8px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.parse-card input, .parse-card select { width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: var(--text); background: white; font-size: 11px; font-weight: 650; text-transform: none; }
.amount-input { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.amount-input span { color: var(--ink); font-size: 22px; font-weight: 900; }
.amount-input input { border: 0; margin: 0; font-size: 25px; font-weight: 900; outline: 0; }
.primary-button { width: 100%; border: 0; border-radius: 14px; margin-top: 15px; padding: 12px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 900; }
.success-toast { margin-top: 12px; padding: 11px; border-radius: 12px; background: #eaf8f1; color: #176544; font-size: 10px; font-weight: 750; }

.movement-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: 22px; background: var(--ink); color: white; }
.movement-summary > div small { display: block; color: #98a5b5; font-size: 8px; font-weight: 900; letter-spacing: 1.1px; }
.movement-summary > div strong { display: block; margin-top: 6px; color: #ff9a82; font-size: 23px; letter-spacing: -1px; }
.movement-summary > span { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--ink-soft); }
.movement-summary > span b { font-size: 18px; }
.movement-summary > span small { color: #98a5b5; font-size: 7px; margin-top: -8px; }
.filters { display: flex; gap: 7px; margin: 15px 0; }
.filters button { border: 1px solid var(--line); border-radius: 99px; padding: 8px 13px; background: white; color: var(--muted); font-size: 9px; font-weight: 800; }
.filters button.active { border-color: var(--lime); color: var(--ink); background: var(--lime); }

.analysis-hero { display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 22px; padding: 19px; background: white; }
.donut { width: 145px; height: 145px; flex: 0 0 145px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--coral) 0 36%, #5aa9e6 36% 58%, #f0b34a 58% 76%, #ec6f91 76% 88%, #a879e8 88%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 19px; border-radius: 50%; background: white; }
.donut > div { position: relative; z-index: 1; text-align: center; }
.donut small { display: block; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.donut strong { display: block; margin-top: 3px; font-size: 15px; }
.legend { flex: 1; display: grid; gap: 9px; }
.legend-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.legend-row i { width: 8px; height: 8px; border-radius: 50%; }
.legend-row b { color: var(--text); }
.category-bars { display: grid; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.category-label { display: flex; justify-content: space-between; font-size: 10px; font-weight: 750; }
.bar-track { height: 6px; margin-top: 6px; border-radius: 4px; background: #eef0ea; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; }
.insight-card { display: flex; gap: 11px; padding: 13px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.insight-card.lime { border-color: #d7efa8; background: var(--lime-soft); }
.insight-card > span { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.7); }
.insight-card strong { font-size: 11px; }
.insight-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.trend-section-heading { align-items: end; }
.trend-section-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.trend-section-heading > b { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 99px; color: var(--success); background: #eaf8f1; font-size: 7px; letter-spacing: .7px; }
.trend-section-heading > b i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.trend-card { overflow: hidden; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.trend-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.trend-heading small, .trend-heading strong, .trend-heading span { display: block; }
.trend-heading small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.trend-heading strong { margin-top: 3px; color: var(--ink); font-size: 22px; letter-spacing: -1px; }
.trend-heading span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.trend-heading > b { padding: 6px 8px; border-radius: 99px; color: var(--success); background: #eaf8f1; font-size: 8px; }
.trend-heading > b.negative { color: #dd5a4a; background: #fff0eb; }
.trend-chart { display: block; width: calc(100% + 10px); height: 175px; margin: 2px -5px 0; }
.trend-grid line { stroke: #d9e0d2; stroke-width: 1; stroke-dasharray: 4 7; }
.trend-area { fill: url("#trend-area-gradient"); }
.trend-line { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.trend-dot { fill: var(--ink); stroke: var(--lime); stroke-width: 4; }
.trend-dates { display: flex; justify-content: space-between; margin-top: -17px; padding: 0 3px; color: var(--muted); font-size: 8px; font-weight: 650; }

.import-card { padding: 18px; border-radius: 23px; background: var(--ink); color: white; }
.import-heading { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.import-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 22px; font-weight: 900; }
.import-heading strong, .import-heading small { display: block; }
.import-heading strong { font-size: 15px; }
.import-heading small { color: #99a6b6; margin-top: 3px; font-size: 8px; }
.import-heading b { max-width: 79px; color: var(--lime); padding: 5px 7px; border-radius: 99px; background: var(--ink-soft); font-size: 7px; line-height: 1.35; text-align: center; letter-spacing: .6px; }
.import-card > p { color: #d4dce5; margin: 15px 0; font-size: 10px; line-height: 1.55; }
.formats-label { display: block; color: #8390a1; font-size: 7px; font-weight: 900; letter-spacing: 1.1px; }
.import-options { display: grid; gap: 10px; padding: 0; margin: 10px 0 0; list-style: none; }
.import-options li { display: grid; grid-template-columns: 20px 32px 1fr; align-items: center; gap: 8px; }
.import-options li > b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #aab5c2; background: var(--ink-soft); font-size: 8px; }
.import-options li > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--lime); background: #202d3e; font-size: 15px; font-style: normal; }
.import-options strong, .import-options small { display: block; }
.import-options strong { color: white; font-size: 9px; }
.import-options small { margin-top: 2px; color: #d4dce5; font-size: 7.5px; line-height: 1.4; }
.local-processing { display: flex; align-items: start; gap: 8px; padding: 10px; margin-top: 14px; border-radius: 11px; color: var(--ink); background: var(--lime-soft); }
.local-processing > span { font-size: 16px; }
.local-processing strong, .local-processing small { display: block; }
.local-processing strong { font-size: 9px; }
.local-processing small { margin-top: 2px; color: #53653a; font-size: 7.5px; line-height: 1.4; }
.import-card > button { width: 100%; border: 0; border-radius: 14px; margin-top: 14px; padding: 11px; color: var(--ink); background: var(--lime); font-size: 10px; font-weight: 900; }
.wallet-list { border: 1px solid var(--line); border-radius: 17px; padding: 0 13px; background: white; }
.wallet-list > div { min-height: 60px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #f0f1ec; }
.wallet-list > div:last-child { border-bottom: 0; }
.wallet-list i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-style: normal; font-weight: 900; }
.wallet-list span strong, .wallet-list span small { display: block; }
.wallet-list span strong { font-size: 11px; }
.wallet-list span small { color: var(--muted); margin-top: 3px; font-size: 8px; }
.wallet-list b { color: var(--success); }
.yape { color: #742284; background: #f4e8f7; }
.plin { color: #10a9ac; background: #e4f7f6; }
.dale { color: #76a600; background: #f0f8d9; }
.privacy-card { margin-top: 15px; padding: 14px; border-radius: 15px; background: var(--lime-soft); }
.privacy-card strong { font-size: 11px; }
.privacy-card p { margin: 4px 0 0; color: #607041; font-size: 9px; line-height: 1.5; }
.danger-button { width: 100%; margin-top: 10px; padding: 13px; display: flex; align-items: center; gap: 10px; text-align: left; color: #c8493c; border: 1px solid #f1c9c4; border-radius: 15px; background: #fff7f5; }
.danger-button > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: #ffe8e4; font-size: 16px; }
.danger-button strong, .danger-button small { display: block; }
.danger-button strong { font-size: 10px; }
.danger-button small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.danger-button:disabled { cursor: not-allowed; opacity: .45; }

.bottom-nav { position: absolute; inset: auto 0 0; z-index: 5; height: 78px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px 10px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.bottom-nav button { border: 0; background: none; color: #939990; font-size: 7px; font-weight: 750; display: grid; justify-items: center; gap: 3px; }
.bottom-nav button span { font-size: 18px; }
.bottom-nav button.active { color: var(--ink); }
.bottom-nav button.active span { color: var(--ink); }
.bottom-nav .bottom-add span { width: 44px; height: 44px; margin-top: -25px; border-radius: 15px; display: grid; place-items: center; color: var(--ink); background: var(--lime); box-shadow: 0 8px 16px rgba(11,19,32,.18); font-size: 25px; }

.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 99px; background: #eaf8f1; color: #176544; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(32,166,106,.12); }
.progress-panel h2 { margin: 18px 0 5px; font-size: 22px; letter-spacing: -.7px; }
.progress-panel > p { color: var(--muted); margin: 0; font-size: 10px; line-height: 1.55; }
.progress-track { height: 8px; margin-top: 19px; border-radius: 99px; overflow: hidden; background: #e3e6df; }
.progress-track div { width: 95%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lime), #8fc926); }
.progress-copy { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; }
.progress-copy strong { font-size: 18px; }
.progress-copy span { color: var(--muted); font-size: 8px; }
.checklist { display: grid; gap: 17px; margin-top: 25px; }
.checklist > div { display: grid; grid-template-columns: 27px 1fr; gap: 9px; align-items: center; }
.checklist > div > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: #eceee9; font-size: 10px; }
.checklist .done > b { color: #176544; background: #eaf8f1; }
.checklist .doing > b { color: #72530f; background: #fff4d5; font-size: 20px; }
.checklist strong, .checklist small { display: block; }
.checklist strong { font-size: 10px; }
.checklist small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.note { margin-top: 25px; padding: 13px; border-radius: 14px; background: var(--ink); color: white; }
.note strong { color: var(--lime); font-size: 9px; }
.note p { margin: 5px 0 0; color: #cbd4df; font-size: 8px; line-height: 1.55; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(11,19,32,.64); backdrop-filter: blur(6px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(380px, 100%); padding: 28px; border-radius: 24px; background: white; text-align: center; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 22px; }
.modal-icon { width: 55px; height: 55px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--lime); font-size: 25px; }
.modal h3 { margin: 15px 0 7px; font-size: 20px; }
.modal p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal-steps { display: grid; gap: 11px; padding: 0; margin: 18px 0; list-style: none; text-align: left; }
.modal-steps li { display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 10px; }
.modal-steps li > b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--lime-soft); font-size: 10px; }
.modal-steps strong, .modal-steps small { display: block; }
.modal-steps strong { font-size: 10px; }
.modal-steps small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: 210px minmax(380px, 520px); }
  .progress-panel { display: none; }
}
@media (max-width: 760px) {
  .workspace { display: block; padding: 0; }
  .sidebar { display: none; }
  .app-shell { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; }
  .app-topbar { height: calc(66px + env(safe-area-inset-top)); padding-top: calc(16px + env(safe-area-inset-top)); }
  .screen { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .bottom-nav { height: calc(78px + env(safe-area-inset-bottom)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

@media (display-mode: standalone) {
  body { background: var(--cream); overscroll-behavior-y: none; }
  .workspace { display: block; padding: 0; }
  .sidebar, .progress-panel { display: none; }
  .app-shell { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}
