/* =========================================================
   Franc-ly — estilos (móvil primero)
   Paleta "verde alpino": el verde de tu Excel como ancla.
   ========================================================= */
:root {
  --bg: #EAF0ED;
  --surface: #FFFFFF;
  --surface-2: #F4F7F5;
  --ink: #12211D;
  --muted: #5E6E69;
  --line: #DAE2DE;
  --brand: #1F5E46;
  --brand-2: #2C7A5C;
  --brand-soft: #DCEDE4;
  --on-brand: #F2FAF6;
  --income: #1F7A4D;
  --expense: #12211D;
  --savings: #2F5FC4;
  --savings-soft: #E1E9FA;
  --warn: #C98410;
  --warn-soft: #FBEFD6;
  --over: #C23E2C;
  --over-soft: #FBE3DF;
  --r-sheet: 26px;
  --r-card: 20px;
  --r-ctrl: 14px;
  --shadow: 0 1px 2px rgba(18, 33, 29, .06), 0 8px 24px -12px rgba(18, 33, 29, .18);
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1412;
    --surface: #15201D;
    --surface-2: #1B2824;
    --ink: #E7EFEB;
    --muted: #93A49E;
    --line: #26352F;
    --brand: #2E8A64;
    --brand-2: #3AA176;
    --brand-soft: #18342A;
    --on-brand: #F2FAF6;
    --income: #4CC48A;
    --expense: #E7EFEB;
    --savings: #7FA3F0;
    --savings-soft: #1A2742;
    --warn: #E9B048;
    --warn-soft: #3A2E14;
    --over: #F07A68;
    --over-soft: #3C1D18;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2.5px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- Layout ---------- */
.app { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 10px) 0 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; }
.month-switch { display: flex; align-items: center; gap: 4px; flex: 1; }
.month-switch h1 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin: 0 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 18px; flex: none;
}
.icon-btn:disabled { opacity: .35; box-shadow: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 700; font-size: 14px;
}
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }

.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.section-head h2 { font-size: 17px; font-weight: 700; margin: 0; }
.section-head .link { background: none; border: none; color: var(--brand-2); font-weight: 600; font-size: 14px; padding: 4px; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 6px;
  border-radius: 28px;
  padding: 22px 20px 20px;
  color: var(--on-brand);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(160deg, var(--brand-2), var(--brand) 60%, #164634);
  box-shadow: 0 18px 40px -22px rgba(31, 94, 70, .8);
  position: relative; overflow: hidden;
}
.hero-label { font-size: 15px; opacity: .85; margin: 0; }
.hero-amount { font-size: clamp(40px, 12vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 6px 0 8px; }
.hero-amount .cents { font-size: .45em; font-weight: 700; letter-spacing: 0; opacity: .75; margin-left: 2px; }
.hero-amount.over { color: #FFD2CA; }
.hero-sub { margin: 0; font-size: 15px; opacity: .92; }
.hero-strip { display: flex; gap: 3px; height: 10px; margin-top: 18px; }
.hero-strip span { border-radius: 4px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; min-width: 6px; }
.hero-strip span i { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 4px; }
.hero-strip span.warn i { background: #FFD27A; }
.hero-strip span.over i { background: #FF9C8C; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.hero-stats div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px; }
.hero-stats small { display: block; font-size: 12px; opacity: .8; }
.hero-stats b { font-size: 15px; font-weight: 700; }

/* ---------- Alerts ---------- */
.alerts { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.alerts::-webkit-scrollbar { display: none; }
.alert-chip {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--warn-soft); color: var(--warn); border: none;
}
.alert-chip.over { background: var(--over-soft); color: var(--over); }

/* ---------- Pockets ---------- */
.pocket { display: grid; grid-template-columns: 42px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border: none; background: none; width: 100%; text-align: left; }
.pocket + .pocket { border-top: 1px solid var(--line); }
.pocket .emo { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; }
.pocket .name { font-weight: 650; font-size: 15px; }
.pocket .left { font-weight: 700; font-size: 15px; text-align: right; }
.pocket .left.over { color: var(--over); }
.pocket .meta { grid-column: 2 / 4; display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand-2); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar i.warn { background: var(--warn); }
.bar i.over { background: var(--over); }
.bar i.sav { background: var(--savings); }
.pocket .meta small { color: var(--muted); font-size: 12.5px; white-space: nowrap; min-width: 118px; text-align: right; }

/* ---------- Savings ---------- */
.savings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.goal { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 14px; border: none; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.goal .emo { font-size: 22px; }
.goal .name { font-weight: 650; font-size: 14px; color: var(--muted); }
.goal .bal { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--savings); }
.goal small { font-size: 12px; color: var(--muted); }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; position: absolute; top: 12px; right: 12px;
  background: conic-gradient(var(--savings) calc(var(--p) * 1%), var(--savings-soft) 0); display: grid; place-items: center; }
.ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; z-index: 1; font-size: 11px; font-weight: 700; }
.goal { position: relative; }

/* ---------- Fixed list ---------- */
.fixed-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.fixed-row + .fixed-row { border-top: 1px solid var(--line); }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-size: 13px; color: transparent; }
.check.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.fixed-row .name { flex: 1; font-size: 15px; }
.fixed-row .amt { font-weight: 600; font-size: 14.5px; }

/* ---------- Summary ---------- */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 14px; }
.stat small { color: var(--muted); font-size: 13px; display: block; }
.stat b { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.stat.inc b { color: var(--income); }
.stat.sav b { color: var(--savings); }
.stat.neg b { color: var(--over); }

/* ---------- Movements ---------- */
.search { display: flex; gap: 8px; margin-top: 4px; }
.search input { flex: 1; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 4px; padding: 0 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.day-head { font-size: 13px; font-weight: 650; color: var(--muted); margin: 18px 4px 8px; display: flex; justify-content: space-between; }
.mov { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: none; width: 100%; text-align: left; }
.mov + .mov { border-top: 1px solid var(--line); }
.mov .emo { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 19px; flex: none; }
.mov .body { flex: 1; min-width: 0; }
.mov .title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mov .sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.mov .amt { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.mov .amt.income { color: var(--income); }
.mov .amt.savings { color: var(--savings); }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.list-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }

/* ---------- Bottom nav + FAB ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center; }
.nav-btn { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.nav-btn svg { width: 24px; height: 24px; }
.nav-btn[aria-current="page"] { color: var(--brand-2); }
.fab {
  justify-self: center; width: 60px; height: 60px; border-radius: 20px; border: none;
  background: linear-gradient(160deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(31, 94, 70, .7);
  display: grid; place-items: center; margin-top: -26px;
  transition: transform .15s ease;
}
.fab:active { transform: scale(.94); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=search], input[type=number], input:not([type]), select, textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--r-ctrl);
  border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; outline: none;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); }
.btn { border: none; border-radius: 16px; padding: 15px 18px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); width: 100%; }
.btn-primary:disabled { opacity: .5; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--over-soft); color: var(--over); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; border: none; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 13px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 16px; gap: 4px; }
.seg button { border: none; background: none; padding: 10px 6px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button[aria-pressed="true"][data-kind="income"] { color: var(--income); }
.seg button[aria-pressed="true"][data-kind="savings"] { color: var(--savings); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.switch input { width: 46px; height: 28px; appearance: none; -webkit-appearance: none; background: var(--line); border-radius: 999px; position: relative; transition: background .2s; flex: none; padding: 0; border: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--brand-2); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(8, 16, 13, .45); z-index: 50; opacity: 0; transition: opacity .22s ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 10px 18px calc(20px + var(--safe-b));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.25,1);
  max-width: 600px; margin: 0 auto;
}
.sheet.open { transform: none; }
.sheet-backdrop.open { opacity: 1; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 19px; font-weight: 750; margin: 0; }
.amount-input { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px 10px; border-bottom: 2px solid var(--line); }
.amount-input:focus-within { border-color: var(--brand-2); }
.amount-input span { font-size: 20px; font-weight: 700; color: var(--muted); }
.amount-input input { border: none; padding: 0; font-size: 44px; font-weight: 800; letter-spacing: -.03em; background: transparent; border-radius: 0; min-width: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cat-opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.cat-opt .e { font-size: 22px; }
.cat-opt { overflow-wrap: anywhere; font-size: 12px; letter-spacing: -.01em; }
.more-cats { margin-top: 10px; width: 100%; justify-content: center; }
.cat-opt[aria-pressed="true"] { border-color: var(--brand-2); background: var(--brand-soft); }
.cat-opt small { color: var(--muted); font-weight: 500; font-size: 11px; }
.who { display: flex; gap: 8px; }
.who button { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 9px 10px; font-weight: 600; font-size: 14px; }
.who button[aria-pressed="true"] { border-color: var(--ink); }
.receipt-box { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 12px; }
.receipt-box img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.receipt-box .grow { flex: 1; font-size: 14px; }
.receipt-full { border-radius: 16px; width: 100%; }

/* ---------- Toast ---------- */
.toast-zone { position: fixed; left: 0; right: 0; top: calc(var(--safe-t) + 10px); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); max-width: 520px; animation: toast-in .25s ease; }
.toast.warn { background: var(--warn); color: #1d1405; }
.toast.over { background: var(--over); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Reports ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.donut-center { font-size: 13px; }
.leg-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; }
.leg-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-row b { font-weight: 650; }
.month-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.month-table th { text-align: right; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 0 0 8px; }
.month-table th:first-child, .month-table td:first-child { text-align: left; }
.month-table td { text-align: right; padding: 9px 0; border-top: 1px solid var(--line); }
.month-table td:first-child { font-weight: 600; }
.month-table .pos { color: var(--income); font-weight: 650; }
.month-table .neg { color: var(--over); font-weight: 650; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.person + .person { border-top: 1px solid var(--line); }
.person .grow { flex: 1; }
.person .grow b { display: block; }
.person .grow small { color: var(--muted); }
.person .nums { text-align: right; font-size: 13.5px; }
.highlights { display: grid; gap: 10px; }
.highlight { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.highlight span { color: var(--muted); }
.highlight b { text-align: right; }
.table-scroll { overflow-x: auto; }

/* ---------- Settings ---------- */
.set-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; width: 100%; background: none; border: none; text-align: left; font-size: 15px; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row .e { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; flex: none; }
.set-row .grow { flex: 1; min-width: 0; }
.set-row .grow small { display: block; color: var(--muted); font-size: 12.5px; }
.set-row .chev { color: var(--muted); }
.budget-row { display: grid; grid-template-columns: 30px 1fr 120px; gap: 10px; align-items: center; padding: 6px 0; }
.budget-row input { text-align: right; padding: 10px 12px; font-weight: 600; }
.budget-total { display: flex; justify-content: space-between; padding: 12px 0 2px; border-top: 1px solid var(--line); margin-top: 8px; font-weight: 700; }
.group-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.error-box { background: var(--over-soft); color: var(--over); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin: 0; }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.auth-card { width: 100%; max-width: 400px; }
.auth h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 6px; }
.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: url("icons/icon-192.png") center/cover no-repeat;
  box-shadow: 0 14px 30px -14px rgba(31, 94, 70, .8);
}
.setup fieldset { background: var(--surface); padding: 16px; border-radius: var(--r-card); box-shadow: var(--shadow); }

.loading { min-height: 60dvh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (min-width: 640px) {
  .sheet { bottom: 24px; border-radius: var(--r-sheet); }
}
