/* BizPilot — application */

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

.ic { width: 22px; height: 22px; flex: none; }

/* ---------- Structure ---------- */
.app { min-height: 100vh; min-height: 100dvh; }

.side { display: none; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;
  background: rgba(246, 247, 251, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .logo__mark { width: 30px; height: 30px; }
.top__shop { font-family: var(--font-display); font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__sync { font-size: .8rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: .3rem; }
.top__sync .ic { width: 16px; height: 16px; }

.main { padding: 1rem 1rem calc(96px + env(safe-area-inset-bottom)); outline: none; min-width: 0; overflow-x: clip; }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .3rem 0; color: var(--ink-3); text-decoration: none; font-size: .72rem; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.tabs a[aria-current="page"] { color: var(--blue); }
.tabs__sell { position: relative; }
.tabs__fab {
  display: grid; place-items: center; width: 50px; height: 50px; margin-top: -24px;
  border-radius: 50%; background: var(--blue); color: #fff;
  box-shadow: 0 6px 16px -4px rgba(31, 59, 179, .55), 0 0 0 4px #fff;
}
.tabs__fab .ic { width: 26px; height: 26px; }
.tabs a.tabs__sell[aria-current="page"] { color: var(--blue); }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .top, .tabs { display: none; }
  .side {
    align-self: start;
    display: flex; flex-direction: column; gap: 1.1rem;
    position: sticky; top: 0; height: 100vh;
    padding: 1.4rem 1rem; background: #fff; border-right: 1px solid var(--line);
  }
  .side .logo { padding: 0 .5rem; }
  .side__sell { margin: .4rem 0 .2rem; }
  .side__nav { display: flex; flex-direction: column; gap: 2px; }
  .side__nav a {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem;
    border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem;
  }
  .side__nav a:hover { background: var(--paper); color: var(--ink); }
  .side__nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
  .side__foot { margin-top: auto; font-size: .82rem; color: var(--ink-3); padding: 0 .5rem; }
  .main { padding: 2rem 2.5rem 3rem; }
}

/* ---------- Pages ---------- */
.page { max-width: 1040px; margin: 0 auto; }
.page--narrow { max-width: 680px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(1.55rem, 4.6vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--ink-2); margin-top: .2rem; }
.page-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.back .ic { width: 18px; height: 18px; }

.section { margin-top: 1.6rem; }
.section > h2 { font-size: 1.08rem; font-weight: 750; margin-bottom: .7rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section > h2 a { font-size: .88rem; font-weight: 600; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.card + .card { margin-top: .75rem; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* Bandeau démo */
.demo-band {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  margin: 0 auto 1rem; max-width: 1040px;
  padding: .45rem .5rem .45rem .9rem; border-radius: 12px; background: var(--saffron-soft); border: 1px solid #f3d38c;
  font-size: .92rem;
}

/* ---------- Accueil : les six questions ---------- */
.hello { margin-bottom: 1rem; }
.hello h1 { font-family: var(--font-display); font-size: clamp(1.55rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; }
.hello p { color: var(--ink-2); }

.qgrid { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .q { min-height: 158px; } }
@media (min-width: 1200px) { .qgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.q { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem 1.05rem; text-decoration: none; color: inherit; }
a.q:hover { border-color: var(--line-strong); }
.q__ask { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.q__answer { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; line-height: 1.1; margin-top: .35rem; }
.q__answer small { font-family: var(--font-ui); font-size: .95rem; font-weight: 650; letter-spacing: 0; color: var(--ink-2); margin-left: .25rem; }
.q__detail { font-size: .88rem; color: var(--ink-2); margin-top: .25rem; }
.q__list { list-style: none; margin: .65rem 0 0; padding: 0; border-top: 1px dashed var(--line-strong); }
.q__list li { display: flex; justify-content: space-between; gap: .75rem; padding: .42rem 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.q__list li:last-child { border-bottom: 0; }
.q__list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q__list li b { font-weight: 650; white-space: nowrap; }
.q--sales .q__answer { color: var(--ink); }
.q--profit .q__answer { color: var(--green); }
.q--profit.is-neg .q__answer { color: var(--red); }
.q--stock .q__answer { color: var(--red); }
.q--orders .q__answer { color: var(--blue); }
.q.is-ok .q__answer { color: var(--green); }

.delta { display: inline-flex; align-items: center; gap: .2rem; font-weight: 650; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* Graphique 7 jours */
.chart { position: relative; }
.chart__legend { display: flex; gap: 1rem; font-size: .86rem; color: var(--ink-2); margin-bottom: .6rem; flex-wrap: wrap; }
.chart__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar { transition: opacity .15s; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .col.is-dim .bar { opacity: .35; }
.chart .axis { font-size: 11px; fill: var(--ink-3); font-family: var(--font-ui); }
.chart .axis.is-today { fill: var(--ink); font-weight: 700; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart__tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--ink); color: #fff; border-radius: 10px; padding: .5rem .7rem; font-size: .82rem; line-height: 1.35;
  white-space: nowrap; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .12s;
}
.chart__tip.is-on { opacity: 1; }
.chart__tip b { font-weight: 700; }

/* ---------- Listes ---------- */
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: .8rem; padding: .78rem 1rem;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0;
  cursor: pointer;
}
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover { background: #fafbfd; }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__sub { display: block; font-size: .85rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.row__chips { margin-top: .3rem; }
.row__chips:empty { display: none; }
.row__amount { font-weight: 700; white-space: nowrap; }
.row__end .row__sub { white-space: normal; max-width: 6.5rem; line-height: 1.25; }

.avatar {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); font-size: 1.35rem; overflow: hidden; color: var(--ink-2); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--round { border-radius: 50%; font-size: .95rem; background: var(--blue-soft); color: var(--blue); }

.daylabel { font-size: .82rem; font-weight: 700; color: var(--ink-3); padding: .9rem .2rem .35rem; }

.empty { text-align: center; padding: 2.2rem 1.2rem; background: #fff; border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.empty h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.empty p { color: var(--ink-2); margin-bottom: 1rem; }

/* Puces / statuts */
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: var(--paper); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent;
}
.chip--blue { background: var(--blue-soft); color: var(--blue); }
.chip--green { background: var(--green-soft); color: var(--green); }
.chip--red { background: var(--red-soft); color: var(--red); }
.chip--saffron { background: var(--saffron-soft); color: #8a5a00; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }

/* Filtres segmentés */
.seg { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; margin-bottom: .9rem; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a {
  flex: none; padding: .48rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2); font-weight: 650; font-size: .9rem; cursor: pointer; text-decoration: none;
}
.seg [aria-pressed="true"], .seg [aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg .count { opacity: .7; margin-left: .2rem; }

.searchbox { position: relative; margin-bottom: .75rem; }
.searchbox .ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 20px; height: 20px; }
.searchbox input { padding-left: 2.6rem; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.field > span, .field > label, .legend { font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: .8rem; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 11px;
  background: #fff; font-size: 1rem; transition: border-color .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .75rem; }
@media (max-width: 420px) { .grid3 { grid-template-columns: 1fr 1fr; } }

.money-input { position: relative; }
.money-input input { padding-right: 4rem !important; }
.money-input::after { content: "FCFA"; position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); font-size: .82rem; font-weight: 700; color: var(--ink-3); pointer-events: none; }

.pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label {
  padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff;
  font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none;
}
.pick input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; }
.pick input:focus-visible + label { box-shadow: var(--focus); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s; }
.toggle input:checked { background: var(--green); }
.toggle input:checked::after { transform: translateX(18px); }

.kind { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.kind input { position: absolute; opacity: 0; }
.kind label { display: block; padding: .8rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; }
.kind label b { display: block; font-size: 1rem; }
.kind label span { font-size: .82rem; color: var(--ink-3); }
.kind input:checked + label { border-color: var(--blue); background: var(--blue-soft); }
.kind input:focus-visible + label { box-shadow: var(--focus); }

/* Vente : sélection des produits */
.prodpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; max-height: 300px; overflow-y: auto; padding: 2px; }
.prodpick button {
  display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; text-align: left;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.prodpick button:hover { border-color: var(--blue); }
.prodpick button[disabled] { opacity: .45; cursor: not-allowed; }
.prodpick .avatar { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 9px; }
.prodpick b { display: block; font-size: .86rem; line-height: 1.2; font-weight: 650; }
.prodpick small { font-size: .78rem; color: var(--ink-3); }

.cart { margin-top: .8rem; }
.cartline { display: grid; grid-template-columns: 1fr auto; gap: .4rem .75rem; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--line-strong); }
.cartline__name { font-weight: 650; }
.cartline__price { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink-3); }
.cartline__price input { width: 96px; min-height: 34px; padding: .2rem .5rem; border: 1.5px solid var(--line-strong); border-radius: 8px; font-size: .92rem; }
.cartline__total { font-weight: 700; text-align: right; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button { width: 36px; height: 36px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover { background: var(--paper); }
.stepper .ic { width: 18px; height: 18px; }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; }

.totals { margin-top: 1rem; }
.totals div { display: flex; justify-content: space-between; padding: .3rem 0; color: var(--ink-2); }
.totals .grand { font-size: 1.3rem; font-weight: 800; color: var(--ink); border-top: 1.5px solid var(--ink); margin-top: .35rem; padding-top: .55rem; font-family: var(--font-display); letter-spacing: -.01em; }
.totals .margin { color: var(--green); font-weight: 650; }

.sticky-actions {
  position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(20,26,51,.35);
}
.sticky-actions__total { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-actions__total small { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.sticky-actions__total b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.page--bar { padding-bottom: 76px; }
body[data-route="nouvelle"] .tabs { display: none; }
body[data-route="nouvelle"] .sticky-actions { bottom: 0; padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
body[data-route="nouvelle"] .main { padding-bottom: 1rem; }
@media (min-width: 960px) {
  .sticky-actions { position: static; padding: 0; background: none; border: 0; box-shadow: none; margin-top: .75rem; }
  .sticky-actions__total { display: none; }
  .sticky-actions .btn { width: 100%; }
  .page--bar { padding-bottom: 0; }
}

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } .form-grid > .col-side { position: sticky; top: 1.5rem; } }

/* Détail d'une vente */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.detail-head h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: 1rem 0 .4rem; }
.steps button {
  padding: .55rem .3rem; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff;
  font-weight: 650; font-size: .82rem; cursor: pointer; color: var(--ink-2);
}
.steps button.is-done { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }
.steps button.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .94rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--paper); color: var(--ink); }

/* Barres de répartition (dépenses) */
.bars { display: grid; gap: .55rem; }
.bars div { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; font-size: .9rem; }
.bars i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; display: block; }
.bars i::before { content: ""; display: block; height: 100%; width: var(--w); background: var(--saffron); border-radius: 4px; }

.note { font-size: .86rem; color: var(--ink-2); background: var(--blue-soft); border-radius: 12px; padding: .75rem .9rem; margin-top: .9rem; }

/* Rapport du jour : une page de cahier */
.datebar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.datebar input { max-width: 190px; }
.report {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.2rem 1.4rem 2.6rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #e6ebf7 31px 32px);
  background-position: 0 14px;
}
.report::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.6rem; width: 2px; background: var(--margin-red); opacity: .55; }
.report h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 32px; }
.report h3 { font-size: .98rem; font-weight: 750; line-height: 32px; margin-top: .75rem; }
.report .line { display: flex; justify-content: space-between; gap: 1rem; line-height: 32px; min-height: 32px; }
.report .line b { font-weight: 700; white-space: nowrap; }
.report .line.big { font-size: 1.15rem; }
.report .line.big b { font-family: var(--font-display); font-weight: 800; }

/* Menu « Plus » */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.menu-grid a { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 650; }
.menu-grid a .ic { color: var(--blue); width: 26px; height: 26px; }
.menu-grid a small { color: var(--ink-3); font-weight: 500; font-size: .82rem; }

/* Catalogue (gestion) */
.linkbox { display: flex; gap: .5rem; align-items: stretch; }
.linkbox input { flex: 1; min-width: 0; font-size: .86rem !important; color: var(--ink-2); }

/* ---------- Feuille modale ---------- */
.sheet { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; margin: 0; }
.sheet::backdrop { background: rgba(20, 26, 51, .45); }
.sheet__inner {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: var(--paper); border-radius: 20px 20px 0 0; padding: 0 1rem calc(1.2rem + env(safe-area-inset-bottom));
  animation: sheet-up .22s ease-out;
}
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 .7rem; background: var(--paper); }
.sheet__head h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
@keyframes sheet-up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
  .sheet__inner { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); border-radius: 20px; max-height: 88vh; padding: 0 1.4rem 1.4rem; animation: none; }
}

/* ---------- Accueil sans boutique ---------- */
.welcome { max-width: 520px; margin: 2vh auto 0; }
.welcome__mark { width: 64px; height: 64px; margin-bottom: 1rem; }
.welcome h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.welcome > p { color: var(--ink-2); margin: .5rem 0 1.4rem; font-size: 1.05rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: .88rem; margin: 1.1rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
body.no-shop .tabs, body.no-shop .top__sync { display: none; }
body.no-shop .main { padding-bottom: 2rem; }
@media (min-width: 960px) { body.no-shop { display: block; } body.no-shop .side { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .94rem;
  box-shadow: var(--shadow-2); transition: opacity .2s, transform .2s; max-width: calc(100vw - 2rem); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { background: var(--red); }
@media (min-width: 960px) { .toast { bottom: 2rem; } }

/* ---------- Impression du rapport ---------- */
@media print {
  .side, .top, .tabs, .no-print, .demo-band, .datebar, .page-head__actions { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .report { border: 0; }
  body { background: #fff; }
}

.grid-home { display: grid; gap: 0 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .grid-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
