/* L'ancien chat reste dans le fichier pour compatibilité des anciennes données, mais son écran n'est plus utilisé. */
#familyNotesOverlayV1{position:fixed;inset:0;z-index:1800;display:none;align-items:flex-end;justify-content:center;background:rgba(13,16,28,.38);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);padding:10px 10px max(10px,env(safe-area-inset-bottom))}
#familyNotesOverlayV1.show{display:flex}
.familyNotesPanelV1{width:min(100%,480px);height:min(86dvh,760px);max-height:calc(100dvh - max(16px,env(safe-area-inset-top)));min-height:420px;background:var(--bg,#f6f7fb);color:var(--text);border:1px solid var(--border);border-radius:28px;box-shadow:0 28px 85px rgba(19,22,38,.26);overflow:hidden;display:flex;flex-direction:column}
.familyNotesHeaderV1{flex:0 0 auto;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;padding:11px 13px 10px;background:color-mix(in srgb,var(--bg,#f6f7fb) 92%,transparent);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.familyNotesHeaderV1>button{width:42px;height:42px;border:1px solid var(--border);border-radius:14px;background:var(--surface,#fff);color:var(--text);font-size:19px;display:grid;place-items:center;cursor:pointer}.familyNotesHeaderV1>button.add{background:linear-gradient(145deg,#795cff,#6548df);border:0;color:#fff;font-size:24px;box-shadow:0 8px 20px rgba(105,76,223,.22)}
.familyNotesHeaderV1>div{text-align:center;min-width:0}.familyNotesHeaderV1 b{display:block;font-size:17px;letter-spacing:-.25px}.familyNotesHeaderV1 small{display:block;color:var(--muted);font-size:10.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.familyNotesBodyV1{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:12px 13px 18px;overscroll-behavior:contain}
.familyNotesIntroV1{display:flex;align-items:center;gap:9px;padding:10px 11px;margin-bottom:10px;border:1px solid #ded8ff;background:linear-gradient(135deg,#f7f4ff,#fff);border-radius:17px;color:#5e50a7}.familyNotesIntroV1>span:first-child{font-size:18px}.familyNotesIntroV1>span:nth-child(2){flex:1;min-width:0}.familyNotesIntroV1 b{display:block;font-size:10.8px}.familyNotesIntroV1 small{display:block;font-size:9px;line-height:1.4;margin-top:2px;color:#766d9e}.familyNotesIntroV1 em{font-style:normal;font-size:9px;font-weight:900;color:#6c52db;white-space:nowrap}
.familyNoteComposerV1{display:none;margin-bottom:12px;border:1px solid #d9d2ff;background:linear-gradient(145deg,#fbf9ff,#f3f0ff);border-radius:21px;padding:12px;box-shadow:0 12px 28px rgba(80,61,164,.08)}.familyNoteComposerV1.show{display:block;animation:familyNoteInV1 .15s ease}@keyframes familyNoteInV1{from{opacity:.4;transform:translateY(-4px)}to{opacity:1;transform:none}}
.familyNoteComposerTopV1{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.familyNoteComposerTopV1 b{font-size:12px}.familyNoteComposerTopV1 button{border:0;background:transparent;color:var(--muted);font-size:18px;padding:2px 4px}
#familyNoteInputV1{width:100%;min-height:82px;max-height:150px;resize:vertical;border:1px solid rgba(129,107,220,.20);border-radius:16px;background:rgba(255,255,255,.88);color:var(--text);padding:11px 12px;font:inherit;font-size:15px;line-height:1.42;outline:none;-webkit-text-size-adjust:100%}#familyNoteInputV1:focus{border-color:#9e8aec;box-shadow:0 0 0 3px rgba(115,87,255,.08)}
.familyNoteOptionsLabelV1{font-size:8.5px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.35px;margin:9px 1px 6px}
.familyNoteEmojiRowV1,.familyNoteDurationRowV1,.familyNoteThemeRowV1{display:flex;gap:6px;overflow:auto;scrollbar-width:none;padding:1px 0}.familyNoteEmojiRowV1::-webkit-scrollbar,.familyNoteDurationRowV1::-webkit-scrollbar,.familyNoteThemeRowV1::-webkit-scrollbar{display:none}
.familyNoteEmojiV1{flex:0 0 auto;width:36px;height:36px;border:1px solid var(--border);border-radius:12px;background:#fff;font-size:18px}.familyNoteEmojiV1.on{border-color:#8d73ee;box-shadow:0 0 0 2px rgba(115,87,255,.10);background:#f1edff}
.familyNoteDurationV1{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted);padding:7px 9px;font-size:9px;font-weight:900;white-space:nowrap}.familyNoteDurationV1.on{background:#6d53df;border-color:#6d53df;color:#fff}
.familyNoteThemeV1{flex:0 0 auto;width:31px;height:31px;border:2px solid rgba(255,255,255,.9);border-radius:10px;box-shadow:0 0 0 1px rgba(60,63,82,.12)}.familyNoteThemeV1.on{box-shadow:0 0 0 2px #7457e8}.familyNoteThemeV1[data-theme="lavender"]{background:#eee9ff}.familyNoteThemeV1[data-theme="sun"]{background:#fff1bd}.familyNoteThemeV1[data-theme="mint"]{background:#dff6e9}.familyNoteThemeV1[data-theme="peach"]{background:#ffe5d8}.familyNoteThemeV1[data-theme="sky"]{background:#dfeeff}.familyNoteThemeV1[data-theme="rose"]{background:#ffe2eb}
.familyNotePublishV1{width:100%;margin-top:11px;border:0;border-radius:15px;background:linear-gradient(145deg,#7758ef,#6548db);color:#fff;padding:12px 14px;font-size:12px;font-weight:950;box-shadow:0 9px 22px rgba(104,76,220,.20)}.familyNotePublishV1:disabled{opacity:.45;box-shadow:none}
.familyNotesListV1{display:grid;gap:10px}.familyNoteCardV1{position:relative;border:1px solid rgba(78,80,104,.08);border-radius:20px;padding:13px 13px 11px;box-shadow:0 10px 24px rgba(45,49,76,.06);overflow:hidden;transform:translateZ(0)}.familyNoteCardV1::before{content:'';position:absolute;top:-3px;left:50%;width:46px;height:12px;border-radius:2px;background:rgba(255,255,255,.48);transform:translateX(-50%) rotate(-1deg);box-shadow:0 1px 1px rgba(80,80,90,.05)}
.familyNoteCardV1[data-theme="lavender"]{background:linear-gradient(145deg,#f1edff,#e9e2ff)}.familyNoteCardV1[data-theme="sun"]{background:linear-gradient(145deg,#fff4c9,#ffedaa)}.familyNoteCardV1[data-theme="mint"]{background:linear-gradient(145deg,#e8f8ef,#d8f1e5)}.familyNoteCardV1[data-theme="peach"]{background:linear-gradient(145deg,#ffede3,#ffded0)}.familyNoteCardV1[data-theme="sky"]{background:linear-gradient(145deg,#e9f3ff,#d9eaff)}.familyNoteCardV1[data-theme="rose"]{background:linear-gradient(145deg,#ffedf3,#ffdde8)}
.familyNoteTopV1{display:flex;align-items:flex-start;gap:9px;margin-top:3px}.familyNoteEmojiBigV1{width:38px;height:38px;border-radius:13px;background:rgba(255,255,255,.58);display:grid;place-items:center;font-size:20px;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.38)}.familyNoteMainV1{flex:1;min-width:0}.familyNoteAuthorV1{display:flex;align-items:center;gap:6px;min-width:0}.familyNoteAuthorV1 b{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.familyNoteAuthorV1 span{font-size:8.5px;color:#6e6a79;white-space:nowrap}.familyNoteDeleteV1{border:0;background:rgba(255,255,255,.42);color:#77717e;width:28px;height:28px;border-radius:10px;font-size:13px;display:grid;place-items:center;flex:0 0 auto}.familyNoteTextV1{margin-top:5px;font-size:14px;line-height:1.42;white-space:pre-wrap;word-break:break-word;color:#292735;font-weight:650}.familyNoteFootV1{display:flex;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap}.familyNoteExpiryV1{display:inline-flex;align-items:center;gap:4px;background:rgba(255,255,255,.48);border-radius:999px;padding:5px 7px;font-size:8px;font-weight:900;color:#655f73}.familyNoteExpiryV1.pinned{color:#654bd0}.familyNoteReactV1{border:0;border-radius:999px;background:rgba(255,255,255,.46);color:#5d5968;padding:5px 7px;font-size:9px;font-weight:900}.familyNoteReactV1.on{background:rgba(255,255,255,.78);color:#654bd0}.familyNoteNewV1{margin-left:auto;background:#6f53df;color:#fff;border-radius:999px;padding:4px 7px;font-size:7.5px;font-weight:950}
.familyNotesEmptyV1{text-align:center;padding:38px 18px;color:var(--muted);font-size:11px;line-height:1.55}.familyNotesEmptyV1>span{display:block;font-size:34px;margin-bottom:8px}.familyNotesEmptyV1 b{display:block;color:var(--text);font-size:13px;margin-bottom:3px}
/* Remplacement visuel de la carte Discussion existante, sans modifier la disposition Family. */
#familySheetBody .familyChatLaunchV20::before{content:'📝'!important;background:linear-gradient(145deg,#f1edff,#fff0c9)!important;background-image:none!important;display:grid!important;place-items:center!important;font-size:20px!important}
#familySheetBody .familyChatLaunchV20{touch-action:manipulation}
html[data-theme="dark"] #familySheetBody .familyChatLaunchV20::before{background:linear-gradient(145deg,#30284e,#40331e)!important}
html[data-theme="dark"] .familyNotesPanelV1{background:#111722;border-color:#2b3547}html[data-theme="dark"] .familyNotesHeaderV1{background:rgba(17,23,34,.94);border-color:#2b3547}html[data-theme="dark"] .familyNotesHeaderV1>button{background:#171e2a;border-color:#303a4c;color:#f1f3f8}html[data-theme="dark"] .familyNotesIntroV1{background:linear-gradient(135deg,#211d38,#171d28);border-color:#3d3564;color:#b9acf0}html[data-theme="dark"] .familyNotesIntroV1 small{color:#a9a1c3}html[data-theme="dark"] .familyNoteComposerV1{background:linear-gradient(145deg,#1b1830,#171d28);border-color:#3c3460}html[data-theme="dark"] #familyNoteInputV1,html[data-theme="dark"] .familyNoteEmojiV1,html[data-theme="dark"] .familyNoteDurationV1{background:#171e2a;border-color:#303a4c;color:#f1f3f8}
html[data-theme="dark"] .familyNoteCardV1{border-color:rgba(255,255,255,.05)}html[data-theme="dark"] .familyNoteCardV1[data-theme="lavender"]{background:linear-gradient(145deg,#30294e,#27223f)}html[data-theme="dark"] .familyNoteCardV1[data-theme="sun"]{background:linear-gradient(145deg,#473b22,#3d321d)}html[data-theme="dark"] .familyNoteCardV1[data-theme="mint"]{background:linear-gradient(145deg,#203d32,#1b332b)}html[data-theme="dark"] .familyNoteCardV1[data-theme="peach"]{background:linear-gradient(145deg,#4a3027,#3e2922)}html[data-theme="dark"] .familyNoteCardV1[data-theme="sky"]{background:linear-gradient(145deg,#23364d,#1d2e43)}html[data-theme="dark"] .familyNoteCardV1[data-theme="rose"]{background:linear-gradient(145deg,#472a36,#3a2430)}html[data-theme="dark"] .familyNoteTextV1{color:#f3f3f7}html[data-theme="dark"] .familyNoteAuthorV1 span{color:#b0aab8}html[data-theme="dark"] .familyNoteExpiryV1,html[data-theme="dark"] .familyNoteReactV1,html[data-theme="dark"] .familyNoteDeleteV1{background:rgba(255,255,255,.10);color:#d7d3dd}
@media(max-width:390px){#familyNotesOverlayV1{padding-left:6px;padding-right:6px}.familyNotesPanelV1{border-radius:24px}.familyNotesBodyV1{padding-left:10px;padding-right:10px}.familyNoteTextV1{font-size:13.5px}}
