@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --orange: #E8622C;
  --orange-dark: #C64A1B;
  --orange-tint: #FBEFE9;
  --ink: #1F2937;
  --paper: #FAF7F2;
  --card: #FFFFFF;
  --line: #E7E1D8;
  --gray: #6B7280;
  --gray-light: #8A8377;
  --green: #2F855A;
  --green-tint: #E8F5EE;
  --red: #C53030;
  --red-tint: #FCECEC;
  --fablab: #3B6FE0;
  --textile: #B2447A;
  --comm: #2F9E7B;
  --shell-max: 480px;
}

* { box-sizing: border-box; }

/* html/body verrouillés (hauteur fixe, pas de défilement) : sans ça, un clavier
   mobile qui s'ouvre pousse certains navigateurs à faire défiler TOUTE la page
   pour garder le champ de saisie visible, emportant l'en-tête avec elle. Tout
   le défilement doit rester dans les zones internes prévues (.chat-area, etc.). */
html {
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #EDE7DC;
  color: var(--ink);
}

a { text-decoration: none; color: inherit; }
input, textarea, button, select { font-family: 'Poppins', sans-serif; }
::placeholder { color: #B5AFA3; }

/* ---------- App shell ---------- */

.app-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  /* .app-shell lui-même ne doit JAMAIS défiler : sur iOS, quand un champ de
     saisie prend le focus, Safari/WebKit fait défiler le plus proche ancêtre
     "scrollable" pour garder le champ visible — et emporte avec lui .app-bar,
     son enfant en tête de colonne, hors de l'écran. Chaque page a désormais sa
     propre zone de défilement interne dédiée (.chat-area, .list-area, ou un
     wrapper flex:1;overflow-y:auto), donc .app-shell peut être verrouillé sans
     rien rendre inaccessible. */
  overflow: hidden;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
  /* Sur iOS, le clavier ne redimensionne pas fiablement le viewport utilisé par
     position:fixed — ces éléments (barre de saisie, barre du bas...) restent
     donc calés sur la pleine hauteur d'écran, sous le clavier. N'importe quel
     transform sur un ancêtre change ça : il devient le nouveau bloc de
     confinement pour ses descendants position:fixed, qui suivent alors SA
     hauteur au lieu de celle du viewport — sans risque ici puisque .app-shell
     ne défile lui-même jamais (voir overflow:hidden ci-dessus). Comme sa
     hauteur est déjà ajustée de façon fiable par le script visualViewport
     (voir footer.php), ses enfants fixes suivent l'ajustement avec elle.
     (translateZ(0) est un transform neutre visuellement, juste là pour cet effet.) */
  transform: translateZ(0);
}

.app-shell.has-bottom-nav { padding-bottom: 76px; }

/* ---------- App bar ---------- */

.app-bar {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 20px 20px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.app-bar.simple { align-items: center; padding: 14px 16px; }

.app-bar-title { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; }
.app-bar-subtitle { color: rgba(255,255,255,0.85); font-size: 12.5px; margin-top: 2px; }

.app-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 11px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; flex-shrink: 0;
}
.icon-btn svg { display: block; }

.app-bar.light { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.app-bar.light .icon-btn { background: #F3EFE8; }
.app-bar.light .app-bar-title { color: var(--ink); font-size: 15.5px; font-weight: 600; }

.back-btn {
  width: 34px; height: 34px; border-radius: 10px; background: #F3EFE8;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Hero (registration / login intro) ---------- */

.hero {
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--orange), var(--orange-dark));
  padding: 34px 24px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-badge {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.hero-title { color: #fff; font-size: 19px; font-weight: 700; text-align: center; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 12.5px; text-align: center; }

/* ---------- Sheet (white rounded content area under a hero) ---------- */

.sheet {
  flex: 1;
  overflow-y: auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  margin-top: -14px;
  padding: 24px 20px 110px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- Form fields ---------- */

.field-label {
  display: block; font-size: 11.5px; font-weight: 600; color: var(--gray-light);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px;
}
.field-input, .field-textarea {
  width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: #FAFAF8; font-size: 15px; color: var(--ink);
  outline: none;
}
.field-input:focus, .field-textarea:focus { border-color: var(--orange); background: #fff; }
.field-textarea { resize: vertical; }
.field-hint { font-size: 11.5px; color: #9AA0A6; margin-top: 6px; }
.field-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

/* ---------- Discipline chip picker (radio + label, no JS) ---------- */

.chip-list { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.chip-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
}
.chip-radio:focus-visible + .chip-card { outline: 2px solid var(--orange); outline-offset: 2px; }
.chip-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.chip-body { flex: 1; }
.chip-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.chip-desc { font-size: 11.5px; color: var(--gray-light); }
.chip-check { display: none; flex-shrink: 0; }

.chip-radio:checked + .chip-card { background: var(--orange-tint); }
.chip-radio:checked + .chip-card .chip-check { display: block; }
.chip-radio.fablab:checked + .chip-card { border-color: var(--fablab); }
.chip-radio.fablab:checked + .chip-card .chip-check { stroke: var(--fablab); }
.chip-radio.textile:checked + .chip-card { border-color: var(--textile); }
.chip-radio.textile:checked + .chip-card .chip-check { stroke: var(--textile); }
.chip-radio.comm:checked + .chip-card { border-color: var(--comm); }
.chip-radio.comm:checked + .chip-card .chip-check { stroke: var(--comm); }

/* ---------- Bottom CTA bar ---------- */
/* Same fixed-layer + centered-inner trick as .fab-layer, so the CTA stays pinned
   to the viewport bottom (within the app-shell's column) regardless of scroll. */

.cta-bar { position: fixed; inset: 0; pointer-events: none; z-index: 15; display: flex; align-items: flex-end; justify-content: center; }
.cta-bar-inner {
  max-width: var(--shell-max); width: 100%; pointer-events: auto; box-sizing: border-box;
  padding: 16px 20px 24px; background: linear-gradient(to top, var(--card) 70%, rgba(255,255,255,0));
}
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; font-weight: 600; font-size: 15px;
  padding: 15px; border-radius: 15px; border: none; width: 100%; cursor: pointer;
  box-shadow: 0 10px 22px rgba(232,98,44,0.3);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-danger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 600; font-size: 15px;
  padding: 15px; border-radius: 15px; border: none; width: 100%; cursor: pointer;
  box-shadow: 0 10px 22px rgba(197,48,48,0.25);
}
.btn-danger:hover { background: #A52626; }
.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--orange); font-weight: 600; font-size: 14px;
  padding: 13px; border-radius: 14px; border: 1.5px solid var(--orange); cursor: pointer;
}
.btn-outline:hover { background: var(--orange-tint); }
.btn-ghost {
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light); font-weight: 500; font-size: 14px; padding: 10px;
  background: none; border: none; cursor: pointer;
}

/* ---------- Flash messages ---------- */

.flash {
  padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 4px;
}
.flash.success { background: var(--green-tint); color: var(--green); border: 1px solid #BFE6D1; }
.flash.error { background: var(--red-tint); color: var(--red); border: 1px solid #F3C6C6; }

/* ---------- Stat pills row ---------- */

.stat-pills { flex-shrink: 0; display: flex; gap: 8px; padding: 14px 20px; overflow-x: auto; }
.stat-pill {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line);
}
.stat-pill-dot { width: 8px; height: 8px; border-radius: 50%; }
.stat-pill-count { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.stat-pill-label { font-size: 12.5px; color: var(--gray); }
.stat-pill.active .stat-pill-label { color: var(--ink); font-weight: 600; }

/* ---------- Member list ---------- */

.list-area { flex: 1; overflow-y: auto; }
.section-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: #F3EFE8;
}
.section-header-label {
  font-size: 11.5px; font-weight: 700; color: #6B5F4E; text-transform: uppercase; letter-spacing: 0.05em;
}
.member-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 20px;
  background: var(--card); border-bottom: 1px solid #F0ECE4;
}
.member-row:active { background: var(--paper); }
.avatar {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: #fff; font-size: 14px; font-weight: 600;
}
.avatar.lg { width: 76px; height: 76px; font-size: 24px; background: #fff !important; }
.avatar.sm { width: 36px; height: 36px; font-size: 12px; }

/* ---------- Présence (en ligne / vu à...) ---------- */

.presence-dot {
  position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px;
  border-radius: 50%; background: #C9C2B4; border: 2px solid #fff;
}
.presence-dot.online { background: var(--green); }
.presence-label { font-size: 11.5px; color: var(--gray-light); margin-top: 1px; }
.member-info { flex: 1; min-width: 0; }
.member-name {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.member-subtitle {
  font-size: 12px; color: var(--gray-light); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chevron { flex-shrink: 0; }
.empty { padding: 32px 20px; text-align: center; color: var(--gray); font-size: 13.5px; }

/* ---------- FAB ---------- */
/* Fixed full-viewport layer, centered inner column matching .app-shell's width,
   so the FAB stays pinned to that column's edge regardless of scroll or viewport width. */

.fab-layer { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.fab-layer-inner { max-width: var(--shell-max); margin: 0 auto; height: 100%; position: relative; }
.fab {
  position: absolute; right: 20px; bottom: 92px; pointer-events: auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(232,98,44,0.4);
}

/* ---------- Bottom nav ---------- */

.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: var(--shell-max); height: 76px; background: #fff;
  border-top: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-around; padding-bottom: 14px; z-index: 10;
}
.nav-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #9AA0A6; background: none; border: none; cursor: pointer;
}
.nav-tab.active { color: var(--orange); }
.nav-tab span { font-size: 10.5px; }
.nav-tab.active span { font-weight: 600; }

/* ---------- Profile / fiche membre ---------- */

.profile-hero {
  padding: 28px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.profile-name { color: #fff; font-size: 18px; font-weight: 700; text-align: center; }
.profile-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.profile-badge {
  background: rgba(255,255,255,0.2); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 20px;
}
.action-row { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 4px; margin-top: -22px; }
.action-btn {
  width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); cursor: pointer; font: inherit;
}
.action-btn-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.role-details summary {
  list-style: none; cursor: pointer;
}
.role-details summary::-webkit-details-marker { display: none; }
.role-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; margin-top: 8px;
}
.role-option {
  display: block; width: 100%; text-align: left; border: none; background: none;
  display: flex; align-items: center; justify-content: space-between; padding: 11px 10px;
  border-radius: 10px; font-size: 13.5px; color: var(--ink); cursor: pointer; font-family: inherit;
}
.role-option:hover { background: var(--paper); }
.role-option.current { background: var(--orange-tint); font-weight: 700; }
.role-option[disabled] { color: #C9C2B4; cursor: not-allowed; }
.role-option-count { font-size: 11.5px; color: #9AA0A6; }

.info-list { padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.info-row {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 4px;
  border-bottom: 1px solid #EFEAE2;
}
.info-label { font-size: 12.5px; color: var(--gray-light); }
.info-value { font-size: 14px; color: var(--ink); font-weight: 500; text-align: right; }

.checkbox-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #EFEAE2;
}
.checkbox-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); flex-shrink: 0; }
.checkbox-row span { font-size: 14px; color: var(--ink); }

.visibilite-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; background: var(--paper); color: var(--gray-light); flex-shrink: 0;
}

.info-compact { padding: 4px 4px 14px; border-bottom: 1px solid #EFEAE2; margin-bottom: 12px; }
.info-compact-line { font-size: 14.5px; color: var(--ink); font-weight: 600; padding: 3px 0; }
.info-compact-line.muted { color: var(--gray-light); font-weight: 400; font-size: 13px; }

/* Form's own display:flex must not win over [hidden] — an inline style would
   have outranked the UA [hidden] rule, so the flex layout lives in a class
   that yields to a same-element [hidden] via specificity instead. */
.edit-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.edit-form[hidden] { display: none; }

.text-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  margin-bottom: 12px;
}
.text-card-label {
  font-size: 11.5px; font-weight: 700; color: var(--gray-light); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 6px;
}
.text-card-body { font-size: 13.5px; color: var(--ink); line-height: 1.5; white-space: pre-line; }

/* ---------- Conversation (bulles + barre de composition) ---------- */

.chat-area { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 90px; display: flex; flex-direction: column; gap: 3px; box-sizing: border-box; max-width: 100%; }
.bubble-row { display: flex; max-width: 100%; }
.bubble-row.sent { justify-content: flex-end; }
.bubble-row.received { justify-content: flex-start; }
.bubble {
  /* display:flow-root (plutôt qu'un bloc simple) fait que la bulle englobe
     correctement l'heure flottante ci-dessous sans jamais s'élargir au-delà
     du texte réel : la couleur de fond épouse le contenu, jamais plus grande
     que lui. */
  display: flow-root;
  max-width: min(78%, 100% - 12px); box-sizing: border-box; padding: 9px 13px; border-radius: 16px;
  font-size: 14px; line-height: 1.4; word-break: break-word; margin: 3px 0;
}
.bubble.sent { background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.bubble.received { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-text { white-space: pre-wrap; }
.bubble-time {
  float: right; margin: 2px 0 0 8px; font-size: 10px; opacity: 0.7;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.bubble-status { display: inline-flex; color: rgba(255,255,255,0.7); }
.bubble-status.lu { color: #BFE0FF; }
.bubble-sender { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.bubble-image {
  display: block; width: 100%; max-width: 240px; border-radius: 12px; margin-bottom: 4px; cursor: pointer;
}
.bubble.has-image { padding: 5px; }
.bubble.has-image .bubble-text { display: inline-block; padding: 0 4px 2px; }
.bubble.has-image .bubble-time { margin-right: 4px; }

.composer-bar { position: fixed; inset: 0; pointer-events: none; z-index: 15; display: flex; align-items: flex-end; justify-content: center; }
.composer-bar-inner {
  max-width: var(--shell-max); width: 100%; pointer-events: auto; box-sizing: border-box;
  display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line);
}
.composer-input {
  flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: 22px;
  padding: 11px 16px; font-size: 14.5px; color: var(--ink); outline: none; resize: none; max-height: 90px;
}
.composer-input:focus { border-color: var(--orange); background: #fff; }
.composer-send {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.composer-send:disabled { background: #E9C9B8; cursor: default; }
.composer-attach-btn {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.composer-preview {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 0;
}
.composer-preview[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1;
}
.composer-preview img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line);
}
.composer-preview button {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(31,41,55,0.55); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Non-lu (liste de discussions) ---------- */

.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.member-subtitle.unread { color: var(--ink); font-weight: 600; }

/* ---------- Paramètres (photo de profil / couverture) ---------- */

.settings-cover {
  position: relative; height: 150px; flex-shrink: 0;
}
.settings-avatar-wrap {
  position: absolute; left: 20px; bottom: -38px; width: 84px; height: 84px;
}
.settings-avatar-wrap .avatar { width: 84px; height: 84px; font-size: 28px; border: 4px solid #fff; }
.photo-edit-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(31,41,55,0.55); cursor: pointer;
}
.cover-edit-btn { bottom: 10px; right: 14px; width: 36px; height: 36px; }
.avatar-edit-btn { bottom: -2px; right: -2px; width: 28px; height: 28px; background: var(--orange); border: 2px solid #fff; }

/* ---------- QR page ---------- */

.qr-wrap {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; gap: 22px;
}
.qr-card {
  background: var(--card); border-radius: 24px; padding: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center;
}
.qr-card img { width: 220px; height: 220px; display: block; }
.qr-url { font-size: 14px; color: var(--ink); font-weight: 600; text-align: center; }
.qr-hint { font-size: 12.5px; color: var(--gray-light); margin-top: 4px; text-align: center; }

/* ---------- Toast ("Bientôt disponible") ---------- */

.toast-layer { position: fixed; inset: 0; pointer-events: none; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.toast-layer-inner { max-width: var(--shell-max); width: 100%; display: flex; justify-content: center; padding-bottom: 92px; }
.toast {
  pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  padding: 10px 18px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
.toast.visible { opacity: 1; transform: translateY(0); }

/* ---------- Bannière d'installation (PWA) ---------- */

.install-banner-layer { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.install-banner {
  pointer-events: auto; max-width: var(--shell-max); width: 100%; box-sizing: border-box;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  transform: translateY(-100%); transition: transform 0.25s ease;
}
.install-banner.visible { transform: translateY(0); }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.install-banner-text { flex: 1; min-width: 0; }
.install-banner-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.install-banner-sub { font-size: 11.5px; color: var(--gray-light); margin-top: 1px; }
.install-banner-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.install-banner-btn { background: var(--orange); color: #fff; border: none; padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.install-banner-close { background: none; border: none; color: var(--gray-light); cursor: pointer; padding: 6px; display: flex; }

/* ---------- Print ---------- */

@media print {
  .bottom-nav, .fab-layer, .app-bar-actions, .sticky-cta { display: none !important; }
  .app-shell, .list-area, .sheet { height: auto !important; overflow: visible !important; }
  .app-shell { box-shadow: none; }
}
