/* Buzzin — interface V0 (d'après les maquettes) */
:root {
  --bg: #FBF4EA; --card: #FFFFFF; --ink: #33261F; --muted: #7A6A5E; --line: #EFE3D3; --line2: #EADBC6;
  --honey: #F4B23E; --honey-soft: #FCE7BF; --honey-ink: #6B4E16; --honey-text: #C08A2A;
  --peach: #F9D9C7; --sage: #DCE8D5; --sage-ink: #2F5A28; --lilac: #E6DFF3; --sky: #D8E7F2;
  --danger: #B3261E;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
body { min-height: 100dvh; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; color: var(--ink); }
svg { display: block; }

/* ---------- Écrans ---------- */
.screen { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.pad { padding: calc(var(--safe-top) + 28px) 24px calc(var(--safe-bottom) + 28px); gap: 24px; }
.app { height: 100dvh; min-height: 0; }
.tab-panels { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tab { min-height: 100%; display: flex; flex-direction: column; }
.pad-tab { padding: calc(var(--safe-top) + 28px) 20px 20px; gap: 20px; }

/* ---------- Utilitaires ---------- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap14 { gap: 14px; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.muted { color: var(--muted); }
.bold { font-weight: 700; }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- Typo ---------- */
.display { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -1px; }
.display.small { font-size: 30px; }
.title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -1px; }
.title.small { font-size: 26px; }
.lead { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.4; }
.lead.small { font-size: 16px; }
.section { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .8px; color: var(--muted); }
.step-lbl { font-size: 14px; font-weight: 800; color: var(--honey-text); }
.hint { margin: -14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Marque & accueil ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--honey); display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.5px; }
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 220px; }
.demo-card { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 12px 30px rgba(120, 80, 30, .12); display: flex; flex-direction: column; gap: 14px; transform: rotate(-2deg); }
.demo-head { display: flex; align-items: center; gap: 12px; }
.demo-head strong { font-size: 17px; }
.demo-head .muted { font-size: 14px; }
.demo-code { background: var(--honey-soft); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.demo-code .lbl { font-size: 12px; font-weight: 800; color: var(--honey-ink); }
.demo-code .val { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 2px; }
.demo-code .val.small { letter-spacing: 0; }
.demo-bubble { align-self: flex-end; background: var(--ink); color: var(--bg); border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-size: 14px; font-weight: 700; transform: rotate(1.5deg); }
.banner { background: var(--honey-soft); color: var(--honey-ink); border-radius: 16px; padding: 12px 14px; font-weight: 700; font-size: 15px; }

/* ---------- Boutons ---------- */
.btn { height: 56px; border-radius: 18px; border: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; flex-shrink: 0; }
.btn:disabled { opacity: .55; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; border: 2px solid var(--line2); color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn.honey { background: var(--honey); }
.icon-btn.big { width: 48px; height: 48px; border-radius: 16px; }
.chip-btn { height: 44px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--card); font-size: 15px; font-weight: 800; }
.link-btn { background: none; border: 0; padding: 10px; font-weight: 700; color: var(--muted); font-size: 15px; }
.link-btn.danger { color: var(--danger); }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-lbl { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .5px; }
.input { height: 56px; width: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 0 18px; font-weight: 700; font-size: 17px; outline: 0; }
.input:focus, textarea.input:focus { border-color: var(--honey); }
textarea.input { height: auto; min-height: 96px; padding: 14px 18px; resize: none; line-height: 1.4; }
.input-at { display: flex; align-items: center; height: 60px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 0 18px; gap: 4px; }
.input-at:focus-within { border-color: var(--honey); }
.input-at .at { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--honey-text); }
.input-at input { border: 0; outline: 0; background: transparent; font-family: var(--display); font-weight: 600; font-size: 22px; width: 100%; }
.note { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: #5E5047; }
.note.plain { background: none; padding: 0; }
.note svg { flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--honey); }
.search { display: flex; align-items: center; gap: 10px; height: 52px; background: var(--card); border-radius: 16px; padding: 0 16px; color: var(--muted); margin: 0; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }

/* ---------- Tuiles, cartes, avatars ---------- */
.tile { width: 48px; height: 48px; border-radius: 16px; background: var(--honey-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile.xl { width: 60px; height: 60px; border-radius: 20px; }
.tile.peach { width: 44px; height: 44px; border-radius: 14px; background: var(--peach); }
.card { background: var(--card); border-radius: 22px; padding: 16px; }
.place-card { text-align: left; border: 0; background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 18px rgba(120, 80, 30, .08); width: 100%; }
.place-card .head { display: flex; align-items: center; gap: 12px; width: 100%; }
.place-card .names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.place-card strong { font-size: 18px; }
.place-card .addr-line { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-card.shared { background: var(--ink); color: var(--bg); box-shadow: none; }
.place-card.shared .addr-line { color: #E2D3C3; }
.place-card.locked { opacity: .7; }
.badge { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--honey-soft); color: var(--honey-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.code-chip { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.info-chip { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 15px; }
.owner-line { display: flex; align-items: center; gap: 8px; background: rgba(244, 178, 62, .18); color: #F8C978; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 800; }
.empty-card { border: 2px dashed var(--line2); background: transparent; border-radius: 22px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 100%; }
.empty-card strong { font-size: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; background: var(--honey-soft); }
.avatars { display: flex; }
.avatars .avatar { width: 36px; height: 36px; font-size: 14px; border: 3px solid var(--bg); }
.avatars .avatar + .avatar { margin-left: -10px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.big-name { font-family: var(--display); font-size: 24px; }

/* ---------- Fiche ---------- */
.fiche-head { display: flex; align-items: center; gap: 14px; }
.addr { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
.code-card { text-align: left; border: 0; background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.code-card.first { background: var(--honey); }
.code-card .lbl { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.code-card.first .lbl { color: var(--ink); }
.code-card .val { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 3px; overflow-wrap: anywhere; }
.info-tile { background: var(--card); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-tile.wide { grid-column: span 2; }
.info-tile .lbl { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .6px; }
.info-tile strong { font-size: 17px; overflow-wrap: anywhere; }
.info-tile p { margin: 0; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.metro { display: flex; align-items: center; gap: 12px; }
.metro .ico { width: 36px; height: 36px; border-radius: 12px; background: var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Assistant ---------- */
.progress { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line2); }
.progress span.on { background: var(--honey); }
.wiz-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.code-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 8px 8px 8px 12px; }
.code-row:focus-within { border-color: var(--honey); }
.code-row .code-lbl { width: 96px; flex-shrink: 0; border: 0; outline: 0; font-size: 13px; font-weight: 800; color: var(--honey-ink); background: var(--honey-soft); border-radius: 999px; padding: 8px 12px; }
.code-row .code-val { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 3px; }
.code-row .rm { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { height: 44px; padding: 0 16px; border-radius: 999px; border: 2px dashed #E3CFB4; background: transparent; font-size: 15px; font-weight: 800; }
.suggest button.solid { border-style: solid; background: var(--card); }

/* ---------- Contacts ---------- */
.request { background: var(--honey-soft); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.request .who { display: flex; align-items: center; gap: 12px; }
.request .avatar { background: var(--card); }
.request small { color: var(--honey-ink); font-size: 14px; }
.request .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.request .actions button { height: 44px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 800; }
.request .yes { background: var(--ink); color: var(--bg); }
.request .no { background: var(--card); }
.list-card { background: var(--card); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: none; text-align: left; width: 100%; }
.contact-row + .contact-row { border-top: 1px solid #F3EADF; }
.contact-row .names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-row strong { font-size: 16px; }
.contact-row small { font-size: 14px; color: var(--muted); }
.result { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 14px; }
.result .names { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.result button { height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--honey); font-weight: 800; font-size: 14px; }

/* ---------- Barre d'onglets ---------- */
.tabbar { flex-shrink: 0; background: var(--card); border-top: 1px solid var(--line); padding: 8px 24px calc(var(--safe-bottom) + 10px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabbtn { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.tabbtn .pill { padding: 4px 18px; border-radius: 999px; display: flex; }
.tabbtn.active { color: var(--ink); font-weight: 800; }
.tabbtn.active .pill { background: var(--honey-soft); }
.dot { position: absolute; top: 2px; right: calc(50% - 26px); width: 10px; height: 10px; border-radius: 50%; background: var(--danger); border: 2px solid var(--card); }

/* ---------- Feuille du bas & toast ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(51, 38, 31, .35); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 20px calc(var(--safe-bottom) + 20px); z-index: 21; display: flex; flex-direction: column; gap: 16px; max-height: 80dvh; overflow-y: auto; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); align-self: center; }
.share-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 14px; border: 2px solid transparent; width: 100%; text-align: left; }
.share-row.on { border-color: var(--honey); }
.share-row .names { flex: 1; display: flex; flex-direction: column; }
.share-row .state { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--bg); }
.share-row.on .state { background: var(--honey); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 96px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 15px; z-index: 30; max-width: calc(100% - 40px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- Améliorations : photo, carte, adresses, billes, accès ---------- */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--line); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn { position: relative; border: 0; background: none; padding: 0; border-radius: 50%; }
.avatar-edit { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.map-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--line); display: flex; flex-direction: column; }
.map-card .osm { width: 100%; height: 170px; border: 0; display: block; }
.map-card.small .osm { height: 140px; }
.map-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--card); }
.map-link { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; }
.map-link + .map-link { border-left: 1px solid var(--line); }
.sugg-list { background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 24px rgba(120, 80, 30, .12); margin-top: -4px; }
.sugg { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 12px 14px; font-size: 15px; font-weight: 700; min-height: 48px; }
.sugg + .sugg { border-top: 1px solid #F3EADF; }
.sugg svg { flex-shrink: 0; color: var(--honey-text); }
.addr-status { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.addr-status.ok { color: var(--sage-ink); font-weight: 800; }
.ball { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; flex-shrink: 0; position: relative; }
.ball.rer { border-radius: 9px; }
.ball.bis::after { content: 'bis'; position: absolute; right: -4px; bottom: -4px; font-size: 8px; background: var(--card); color: var(--ink); border-radius: 6px; padding: 1px 3px; }
.ball.sm { width: 22px; height: 22px; font-size: 11px; }
.ball.sm.rer { border-radius: 7px; }
.balls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 2px; }
.chips .balls { margin: 0; }
.line-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pick { height: 44px; border-radius: 14px; border: 2px solid transparent; background: var(--card); display: flex; align-items: center; justify-content: center; opacity: .45; padding: 0; }
.pick.on { opacity: 1; border-color: var(--ink); }
.mini-btn { height: 36px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--bg); font-weight: 800; font-size: 14px; color: var(--danger); flex-shrink: 0; }
.mini-btn:disabled { opacity: .5; }
.info-tile.as-btn { border: 0; text-align: left; font: inherit; color: inherit; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .3px; }

/* ---------- Stations proches, Street View ---------- */
.nowrap { white-space: nowrap; }
.station-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 0; }
.station-row + .station-row { border-top: 1px solid #F3EADF; }
.station-row .balls { margin: 0; flex-wrap: nowrap; }
.station-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; opacity: .5; font-size: 15px; }
.station-pick.on { opacity: 1; border-color: var(--honey); }
.station-pick .balls { margin: 0; flex-wrap: nowrap; }
.map-frame { display: flex; }
.map-frame .osm { flex: 1; }
.segbar { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; background: rgba(255,255,255,.92); border-radius: 12px; padding: 3px; gap: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.seg { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--muted); }
.seg.on { background: var(--ink); color: var(--bg); }
.map-links.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.map-links.three .map-link { font-size: 14px; }

/* ---------- Profil : identifiants ---------- */
.id-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; margin-top: 4px; }
.id-lbl { font-size: 13px; font-weight: 800; color: var(--muted); }
.id-hint { font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.id-hint.empty { color: var(--muted); font-weight: 600; }

/* ---------- Contacts : croix de suppression ---------- */
.x-btn { flex-shrink: 0; min-width: 40px; height: 40px; border-radius: 12px; border: 0; background: #FBE4E1; color: var(--danger); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; padding: 0 10px; transition: background .15s; }
.x-btn.armed { background: var(--danger); color: #fff; }
.x-btn:disabled { opacity: .5; }

/* ---------- Badges tram / train / bus ---------- */
.ball.tag { width: auto; min-width: 30px; padding: 0 7px; border-radius: 8px; font-size: 13px; gap: 3px; }
.ball.tag.sm { min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; border-radius: 6px; }
.ball.tag .tag-pre { font-size: 8px; font-weight: 800; opacity: .7; letter-spacing: .3px; }
.station-row .balls, .station-pick .balls { flex-wrap: wrap; max-width: 150px; }

/* ---------- Notifications & signalements ---------- */
.bell { position: relative; }
.bell .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; text-align: left; width: 100%; }
.notif-row + .notif-row { border-top: 1px solid #F3EADF; }
.notif-row .names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.notif-row strong { font-size: 15px; font-weight: 700; }
.notif-row.unread strong { font-weight: 800; }
.notif-row.unread { background: #FFF8EC; }
.notif-row small { font-size: 13px; color: var(--muted); }
.badge.alert { background: #FBE4E1; color: var(--danger); display: inline-flex; align-items: center; gap: 4px; }
.badge.new { background: var(--honey); color: var(--ink); }
.report-card { background: #FFF1EE; border: 2px solid #F6CFC8; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.report-card .flag { width: 32px; height: 32px; border-radius: 10px; background: #FBE4E1; color: var(--danger); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report-card strong { font-size: 15px; }
.report-msg { margin: 0; font-size: 15px; line-height: 1.4; font-style: italic; }
.mini-btn.ok { color: var(--sage-ink); background: var(--sage); }
.mini-btn.neutral { color: var(--ink); background: var(--card); }
.suggest button.picked { background: var(--honey); border-color: var(--honey); }

/* ---------- Logo abeille ---------- */
.brand-logo { width: 40px; height: 40px; border-radius: 12px; display: block; flex-shrink: 0; }

/* ---------- Synchronisation des appareils ---------- */
.addr-line.wrap { white-space: normal; }
.lock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn.honeyb { background: var(--honey); color: var(--ink); }
.place-card.shared .mini-btn.neutral { background: rgba(255,255,255,.12); color: var(--bg); }
.qr-box { background: #fff; border-radius: 20px; padding: 16px; display: flex; justify-content: center; }
.qr-box svg { width: 100%; max-width: 260px; height: auto; display: block; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.device-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.device-row + .device-row { border-top: 1px solid #F3EADF; }
.device-row .names { display: flex; flex-direction: column; }
.device-row small { color: var(--muted); font-size: 13px; }
.dev-ico { width: 36px; height: 36px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scan-box { background: #000; border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Partagés avec moi : recherche & retrait ---------- */
#shared-search::-webkit-search-cancel-button { cursor: pointer; }
#btn-leave.armed { background: var(--danger); color: #fff; border-radius: 14px; }

/* ---------- Déconnexion en haut du profil ---------- */
.icon-btn.logout { color: var(--danger); }

/* ---------- Suppression du compte ---------- */
.danger-zone { border: 2px solid #F6CFC8; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:disabled { opacity: .45; }
.sheet-text { margin: 0; font-size: 15px; line-height: 1.45; }

/* ---------- Groupes de contacts ---------- */
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-row::-webkit-scrollbar { display: none; }
.gchip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 800; color: var(--ink); }
.gchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gchip.add { border-style: dashed; background: transparent; }
.gchip.big { height: 46px; font-size: 15px; }
.gchip.big.on { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.gdot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.gcount { font-size: 12px; opacity: .6; }
.gchips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.group-tools { display: flex; gap: 8px; }
.group-tools .mini-btn.armed { background: var(--danger); color: #fff; }
.row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 0; color: inherit; }
.row-main:disabled { opacity: 1; }
.gtags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gtag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: var(--ink); }

/* Partagés avec moi : regroupés par propriétaire, favoris */
.owner-group { background: var(--ink); color: var(--bg); border-radius: 22px; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 6px; }
.owner-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 6px; }
.owner-head strong { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-count { font-size: 13px; font-weight: 800; color: #E2D3C3; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 10px; }
.sp-rows { display: flex; flex-direction: column; }
.sp-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); padding: 8px 0; }
.sp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; text-align: left; padding: 2px; font: inherit; }
.sp-main .tile { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink); background: var(--honey); }
.sp-main .names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sp-main strong { font-size: 16px; }
.sp-main .addr-line { font-size: 13px; color: #E2D3C3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-main .addr-line.wrap { white-space: normal; }
.sp-row.locked .sp-main { opacity: .75; }
.sp-row .mini-btn.neutral { background: rgba(255,255,255,.12); color: var(--bg); }
.star { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: transparent; color: #8C7B6C; display: grid; place-items: center; }
.star.on { color: var(--honey); }
.star.on svg, .gchip .star-ico svg { fill: currentColor; }
.gchip .star-ico { display: inline-flex; color: var(--honey); }
.gchip.on .star-ico { color: var(--honey); }

/* « Mes lieux » repliable */
.section-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 4px 2px; color: var(--muted); cursor: pointer; }
.section-toggle #my-count { font-weight: 700; }
.section-toggle .chev { display: inline-flex; transition: transform .2s; }
.section-toggle.collapsed .chev { transform: rotate(-90deg); }

/* Avatar en haut de « Mes lieux » */
.hello-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.me-avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; box-shadow: 0 4px 12px rgba(120, 80, 30, .12); }

/* Retirer un appareil */
.device-row .dev-remove { margin-left: auto; }
.device-row .dev-remove.armed { background: var(--danger, #C2412D); color: #fff; }
