/* Budget Famille – styles. Les couleurs sont des variables : le mode sombre ne fait que les remplacer. */
:root {
  --bg: #F4F6F7; --card: #FFFFFF; --text: #0F172A; --muted: #5B6472; --soft-text: #334155;
  --line: #EEF1F3; --border: #DDE3E6; --track: #E6EBEC; --chip: #EEF1F3; --field: #FFFFFF;
  --primary: #0E6E6B; --primary-ink: #0A5452; --primary-soft: #E3F1F0; --on-primary: #FFFFFF; --hero-sub: #D5EEEC;
  --green: #15803D; --green-ink: #14532D; --green-soft: #E5F4EA;
  --orange: #C2410C; --orange-ink: #7C2D12; --orange-soft: #FFF4EB; --orange-border: #F9D9BF;
  --red: #B42318; --red-ink: #7A1C14; --red-soft: #FDECEC; --red-border: #F5C2C0;
  --info-soft: #E8EEFC; --info-ink: #1E3A8A; --teal-soft: #E2F3F7; --teal-ink: #155E75;
  --shadow: 0 1px 2px rgba(15,23,42,0.05), 0 6px 16px rgba(15,23,42,0.04);
  --tab: #FFFFFF; --overlay: rgba(15,23,42,0.45);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B1416; --card: #142123; --text: #E8EFF0; --muted: #9DAAAE; --soft-text: #C5D0D3;
  --line: #20302F; --border: #2C3D3F; --track: #24363A; --chip: #22322F; --field: #0F1B1D;
  --primary: #2BA39E; --primary-ink: #8ADAD5; --primary-soft: #16393A; --on-primary: #041312; --hero-sub: #D5EEEC;
  --green: #4ADE80; --green-ink: #A7F3C0; --green-soft: #12301F;
  --orange: #FB923C; --orange-ink: #FED7AA; --orange-soft: #3A2414; --orange-border: #5C3A1E;
  --red: #F87171; --red-ink: #FECACA; --red-soft: #3A1717; --red-border: #5E2424;
  --info-soft: #1A2647; --info-ink: #BFD0FF; --teal-soft: #11313A; --teal-ink: #A5E3F2;
  --shadow: 0 1px 2px rgba(0,0,0,0.3);
  --tab: #101B1D; --overlay: rgba(0,0,0,0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, select { font: inherit; color: var(--text); }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
h3 { margin: 0; }
p { margin: 0; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- utilitaires ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font-size: 18px; font-weight: 700; }
.strong, strong { font-weight: 600; }
.regular { font-weight: 500; }
.pos { color: var(--green); }
.warn-text { color: var(--orange); font-weight: 600; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; align-items: center; }
.stack-xs, .stack-sm, .stack, .stack-lg { display: flex; flex-direction: column; }
.stack-xs { gap: 6px; } .stack-sm { gap: 10px; } .stack { gap: 16px; } .stack-lg { gap: 22px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-between.top { align-items: flex-start; }
.row-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.grid2, .grid3 { display: grid; gap: 10px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.error { color: var(--red); font-size: 14px; min-height: 1em; }
.overline { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 4px; }
.code { font-size: 18px; letter-spacing: 0.1em; color: var(--primary); }
.big-number { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.big-number small { font-size: 15px; font-weight: 500; color: var(--muted); }

/* ---------- structure ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.content { padding: calc(20px + env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom)); }
.local-banner { background: var(--orange-soft); color: var(--orange-ink); font-size: 12px; font-weight: 600; text-align: center; padding: calc(4px + env(safe-area-inset-top)) 8px 4px; }
.local-banner + .content { padding-top: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.avatars { display: flex; padding-top: 4px; }
.avatars .avatar + .avatar { margin-left: -10px; }
.avatar { border-radius: 50%; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; border: 2px solid var(--bg); }
.subheader { display: flex; align-items: center; gap: 2px; margin: -10px 0 -4px -12px; color: var(--primary); font-weight: 500; }

/* ---------- cartes et listes ---------- */
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.card-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.card-btn.pad { padding: 16px; }
.card-btn.stack-sm { flex-direction: column; align-items: stretch; }
.card-btn .line-text, .line-text, .card-btn > span.grow, .row > span.grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-btn > svg, .line-btn > svg { color: var(--muted); flex-shrink: 0; }
.notice { border: 1px dashed var(--orange-border); }
.list { padding: 2px 16px; }
.line { display: flex; align-items: center; gap: 12px; padding: 13px 0; width: 100%; text-align: left; }
.line.divided { border-bottom: 1px solid var(--line); }
.line.col { flex-direction: column; align-items: stretch; gap: 8px; }
.line.col .row { width: 100%; }
.line > svg { color: var(--primary); flex-shrink: 0; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.group-head { padding: 0 4px; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.section-label { display: flex; align-items: center; gap: 8px; color: var(--primary); padding: 0 4px; }
.section-label h2 { color: var(--text); font-size: 16px; }
.link { color: var(--primary); font-weight: 500; font-size: 14px; min-height: 44px; padding: 0 4px; }

.bubble { --c: #475569; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #FFFFFF); }
[data-theme="dark"] .bubble { color: #FFFFFF; background: color-mix(in srgb, var(--c) 75%, #000000); }
.bubble.done { width: 40px; height: 40px; background: var(--green-soft); color: var(--green); }

.chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: var(--chip); color: var(--soft-text); }
.chip-warn { background: var(--orange-soft); color: var(--orange-ink); }
.chip-danger { background: var(--red-soft); color: var(--red-ink); }
.chip-ok { background: var(--green-soft); color: var(--green-ink); }
.chip-info { background: var(--info-soft); color: var(--info-ink); }
.chip-primary { background: var(--primary-soft); color: var(--primary-ink); }
.tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--teal-soft); color: var(--teal-ink); text-transform: uppercase; letter-spacing: 0.03em; }

.bar { display: block; width: 100%; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; transition: width .3s; }

/* ---------- carte principale ---------- */
.hero { background: var(--primary); color: #FFFFFF; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(14,110,107,0.22); }
[data-theme="dark"] .hero { background: #0E5E5B; }
.hero-blue { background: #0E7490 !important; box-shadow: 0 8px 24px rgba(14,116,144,0.22); }
.hero-sub { color: var(--hero-sub); font-size: 14px; }
.hero-big { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.hero-big small { font-size: 17px; font-weight: 600; }
.hero-bar { height: 10px; background: rgba(255,255,255,0.22); }
.hero-bar > span { background: #FFFFFF; }
.hero-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--hero-sub); }
.hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-tiles > div { background: rgba(255,255,255,0.12); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.hero-tiles span { font-size: 12px; color: var(--hero-sub); }
.hero-tiles strong { font-size: 16px; }
.hero .line-text .small { color: rgba(255,255,255,0.9); }

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 12px 14px; border: 1px solid; }
.alert > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.alert strong { font-size: 14px; }
.alert-warn { background: var(--orange-soft); border-color: var(--orange-border); color: var(--orange-ink); }
.alert-warn > svg { color: var(--orange); flex-shrink: 0; }
.alert-danger { background: var(--red-soft); border-color: var(--red-border); color: var(--red-ink); }
.alert-danger > svg { color: var(--red); flex-shrink: 0; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 600; text-align: center; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 16px; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 4px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:disabled { background: var(--track); color: var(--muted); }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-ghost { color: var(--muted); }
.btn-tile { background: var(--card); border: 1px solid var(--border); color: var(--primary); min-height: 52px; font-size: 16px; }
.btn-tile.ok { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.btn-danger { background: var(--red); color: #FFFFFF; width: 100%; }
.btn-ghost-danger { color: var(--red); width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.icon-btn.primary { color: var(--primary); }
.icon-btn.on-dark { color: #FFFFFF; }
.icon-btn:disabled { opacity: 0.35; }

/* ---------- contrôles ---------- */
.segmented { display: grid; gap: 4px; background: var(--track); padding: 4px; border-radius: 14px; }
.segmented button { min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; color: var(--muted); }
.segmented button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 500; background: var(--card); color: var(--soft-text); border: 1px solid var(--border); }
.pill.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.toggle { width: 52px; height: 32px; border-radius: 99px; padding: 3px; display: flex; background: #B8C2C7; flex-shrink: 0; transition: background .2s; }
[data-theme="dark"] .toggle { background: #3A4B4E; }
.toggle span { width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(15,23,42,0.25); transition: transform .2s; }
.toggle.on { background: var(--primary); }
.toggle.on span { transform: translateX(20px); }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toggle-row small { color: var(--muted); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--soft-text); }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.4; }
.field input, .field select { height: 46px; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; font-size: 16px; background: var(--field); outline: none; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus { border-color: var(--primary); }
.select-inline { height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); padding: 0 8px; font-size: 15px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; height: 46px; color: var(--muted); }
.search input { border: none; outline: none; flex: 1; font-size: 16px; background: transparent; min-width: 0; }
.swatches, .icon-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px var(--card); }
.swatch.on { border-color: var(--text); }
.icon-pick { padding: 3px; border-radius: 12px; border: 2px solid transparent; }
.icon-pick.on { border-color: var(--primary); }
.period-nav { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 4px; }
.period-nav > div { display: flex; flex-direction: column; align-items: center; }

/* ---------- empty state, notes ---------- */
.empty { padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.note-primary { background: var(--primary-soft); color: var(--primary-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; text-align: center; width: 100%; }
.note-ok { background: var(--green-soft); color: var(--green-ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* ---------- assurance ---------- */
.claim { text-align: left; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps3 > span { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.steps3 i { height: 5px; border-radius: 99px; display: block; }
.timeline { display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 14px; }
.step strong { padding-top: 5px; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 2px solid var(--border); color: var(--muted); background: var(--card); }
.step-dot.current { border-color: var(--primary); color: var(--primary); }
.step-dot.done { border-color: var(--green); background: var(--green); color: #FFFFFF; }

/* ---------- épargne ---------- */
.ring { position: relative; width: 150px; height: 150px; }
.ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring strong { font-size: 30px; font-weight: 700; }

/* ---------- rapports ---------- */
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.donut > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.legend { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; min-width: 0; }
.legend > div { display: flex; align-items: center; gap: 8px; }
.legend i, .legend-inline i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.legend-inline { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend-inline span { display: flex; align-items: center; gap: 5px; }
.inc { background: #9FD2CE; } .out { background: var(--primary); }
.bars6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; }
.bars6 > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars-pair { display: flex; align-items: flex-end; gap: 3px; height: 124px; }
.bars-pair span { width: 12px; border-radius: 4px 4px 0 0; min-height: 2px; }

/* ---------- barre d'onglets ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 480px; margin: 0 auto; background: var(--tab); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
.tab { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; position: relative; text-align: center; }
.tab.on { color: var(--primary); font-weight: 700; }
.badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: #FFFFFF; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tab-plus { display: flex; justify-content: center; }
.tab-plus button { width: 60px; height: 60px; margin-top: -22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(14,110,107,0.4); border: 4px solid var(--bg); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 40; max-width: 448px; margin: 0 auto; background: #0F172A; color: #FFFFFF; border-radius: 14px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(15,23,42,0.3); animation: rise .2s ease-out; }
[data-theme="dark"] .toast { background: #E8EFF0; color: #0B1416; }
.toast span { flex: 1; font-size: 14px; padding: 8px 0; }
.toast button { min-height: 40px; padding: 0 12px; border-radius: 10px; color: #7DD3CF; font-size: 14px; font-weight: 700; }
[data-theme="dark"] .toast button { color: #0A5452; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- feuilles ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; flex-direction: column; justify-content: flex-end; animation: fade .15s; }
.sheet { background: var(--card); border-radius: 26px 26px 0 0; max-height: 94vh; max-height: 94dvh; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; animation: up .22s ease-out; }
.sheet-head { padding: 8px 12px 0; display: flex; flex-direction: column; }
.sheet-handle { align-self: center; width: 40px; height: 5px; border-radius: 99px; background: var(--border); margin-bottom: 4px; }
.sheet-title { display: flex; align-items: center; gap: 4px; }
.sheet-title h2 { flex: 1; text-align: center; font-size: 16px; }
.sheet-body { padding: 8px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@keyframes up { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.amount-display { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.amount-display span { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.amount-display small { font-size: 18px; font-weight: 600; color: var(--muted); }
.amount-display.empty span { color: var(--muted); opacity: 0.6; }
.amount-display.in span { color: var(--green); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cat-cell { min-height: 62px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 2px solid var(--line); background: var(--card); padding: 4px 2px; }
.cat-cell span:last-child { font-size: 11px; font-weight: 500; color: var(--soft-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cat-cell.on { border-color: var(--primary); background: var(--primary-soft); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.keypad button { min-height: 46px; border-radius: 12px; background: var(--bg); font-size: 21px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.keypad button:active { background: var(--track); }

/* ---------- accueil, verrouillage ---------- */
.splash, .lock, .onboarding { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.splash { align-items: center; justify-content: center; text-align: center; }
.splash img, .onb-brand img, .lock img { border-radius: 18px; }
.onb-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin: 24px 0 16px; }
.lock { align-items: center; text-align: center; gap: 10px; }
.lock h1 { font-size: 22px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 12px 0 4px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--primary); display: block; }
.pin-dots i.on { background: var(--primary); }
.pin-pad { width: 100%; max-width: 300px; gap: 12px; margin-top: 8px; }
.pin-pad button { min-height: 64px; border-radius: 50%; font-size: 26px; background: var(--card); box-shadow: var(--shadow); width: 64px; justify-self: center; }

@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px var(--line); }
}

/* ---------- impression (rapport PDF) ---------- */
@media print {
  .tabbar, .toast, .subheader, .no-print, .local-banner, .period-nav button { display: none !important; }
  .content { padding: 0; }
  .card, .hero { box-shadow: none; border: 1px solid #DDE3E6; }
  body { background: #FFFFFF; }
}
