/* Sous le Sapin v1.4 — carnet permanent. Independently namespaced CSS. */
#slp-family-root[hidden] { display: none !important; }
body.slp-family-visible #root { visibility: hidden; }
body.slp-family-visible { overflow: hidden; }
#slp-family-root { position: fixed; inset: 0; z-index: 10040; overflow: auto; color: #183b32; background: radial-gradient(ellipse 780px 450px at 85% 0%, #dbe9d8 0%, transparent 75%), radial-gradient(ellipse 650px 580px at -10% 90%, #fbf0df 0%, transparent 73%), #f8f5ef; font: 400 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#slp-family-root *, #slp-family-root *::before, #slp-family-root *::after { box-sizing: border-box; }
#slp-family-root button, #slp-family-root input, #slp-family-root textarea { font: inherit; }
#slp-family-root button { cursor: pointer; }
#slp-family-root button:disabled { opacity: .55; cursor: not-allowed; }
#slp-family-root button:focus-visible, #slp-family-root input:focus-visible, #slp-family-root textarea:focus-visible { outline: 3px solid #d8b36c; outline-offset: 3px; }
.slp-family-page { min-height: 100%; padding: 28px max(18px, env(safe-area-inset-left)) calc(35px + env(safe-area-inset-bottom)); }
.slp-family-wrap { max-width: 1120px; margin-inline: auto; }
.slp-family-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.slp-family-head { display: flex; align-items: center; gap: 18px; }
.slp-family-logo { flex: none; display: grid; place-items: center; width: 66px; height: 66px; background: #153f30; border-radius: 20px; box-shadow: 0 10px 25px #133c3020; font-size: 34px; }
.slp-family-eyebrow { display: block; color: #527463; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
#slp-family-root h1 { font-family: Georgia, serif; font-size: clamp(26px,4vw,38px); font-weight: 600; line-height: 1.15; margin: 5px 0 8px; color: #194531; }
#slp-family-root h2 { font-family: Georgia, serif; font-size: clamp(21px,2.3vw,26px); line-height: 1.2; margin: 0; color: #204636; }
#slp-family-root h3 { font-size: 16px; margin: 0; }
#slp-family-root p { margin: 0; }
.slp-family-head p { color: #63756a; max-width: 700px; }
.slp-family-icon-button { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: #fff9; color: #163f2e; font-size: 27px !important; border: 1px solid #d5dfd4; border-radius: 14px; }
.slp-family-card { border: 1px solid #dce2d8; background: #ffffffcf; border-radius: 26px; padding: 25px; box-shadow: 0 12px 50px #17412c0c; backdrop-filter: blur(16px); min-width: 0; }
.slp-family-card + .slp-family-card { margin-top: 16px; }
.slp-family-two-col { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 18px; align-items: start; }
.slp-family-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 27px 30px; color: #fff; background: radial-gradient(ellipse at 94% 10%, #315d47,transparent 70%), #153e30; border: 1px solid #2f5e47; border-radius: 27px; margin: 0 0 20px; }
.slp-family-welcome .slp-family-eyebrow { color: #b7d3bd; }
.slp-family-welcome h2 { color: #fff !important; margin: 7px 0 8px !important; }
.slp-family-welcome p { max-width: 600px; color: #e2ebe4; }
.slp-family-button { appearance: none; border: 1px solid #21503a; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #215941; color: white; border-radius: 14px; min-height: 43px; padding: 10px 17px; font-weight: 680 !important; text-align: center; text-decoration: none; white-space: normal; }
.slp-family-button:hover:not(:disabled) { filter: brightness(1.06); }
.slp-family-button.secondary { color: #214b38; background: #eef4eb; border-color: #c9d9c9; }
.slp-family-button.gold { color: #263c2c; background: #efc77a; border-color: #e3b45c; }
.slp-family-button.danger { color: #fff; background: #a64343; border-color: #963a3a; }
.slp-family-button.small { min-height: 34px; padding: 6px 12px; border-radius: 11px; font-size: 13px; }
.slp-family-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; flex-wrap: wrap; margin-bottom: 16px; }
.slp-family-heading.more { margin-top: 23px; }
.slp-family-tag { display: inline-block; padding: 3px 9px; color: #2a6550; background: #e5f0e8; border: 1px solid #d7e8db; border-radius: 999px; font-size: 11px; font-weight: 750; vertical-align: middle; white-space: nowrap; }
.slp-family-members { display: grid; gap: 9px; }
.slp-family-member { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #e1e8df; border-radius: 15px; background: #fafcf8; }
.slp-family-member.always { margin-bottom: 13px; }
.slp-family-avatar { flex: none; display: grid; place-items: center; height: 39px; width: 39px; border-radius: 13px; background: #e5ede3; color: #2b5c44; font-weight: 800; font-size: 12px; }
.slp-family-member-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.slp-family-member-info strong { font-size: 14px; font-weight: 740; color: #193f30; overflow-wrap: anywhere; }
.slp-family-member-info span { display: block; color: #6a7b6e; overflow-wrap: anywhere; font-size: 13px; }
.slp-family-text-btn { border: 0; background: none; color: #2b6f52; font-size: 13px !important; font-weight: 700 !important; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
.slp-family-events { display: grid; gap: 11px; }
.slp-family-event { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px; border-radius: 15px; background: #f8faf6; border: 1px solid #e2e9df; }
.slp-family-event > div { min-width: 0; flex: 1; display: grid; gap: 3px; }
.slp-family-event strong { overflow-wrap: anywhere; }
.slp-family-event-year { color: #547d5c; font-size: 12px; font-weight: 800; }
.slp-family-event small { color: #6c796c; }
.slp-family-empty { text-align: center; padding: 25px 8px; color: #69796d; }
.slp-family-empty > span { font-size: 35px; }
.slp-family-empty h3 { color: #315a44; margin: 7px 0 !important; }
.slp-family-button-list { display: grid; gap: 10px; margin-top: 20px; }
.slp-family-form { display: grid; gap: 16px; }
.slp-family-form label:not(.slp-family-checkbox):not(.slp-family-picker-row) { display: grid; gap: 7px; color: #28513c; font-size: 13px; font-weight: 700; }
.slp-family-form input:not([type=checkbox]), .slp-family-form textarea { width: 100%; min-width: 0; border: 1px solid #ccd8cb; border-radius: 12px; padding: 11px 13px; background: #fff; color: #183c2e; font-size: 15px; font-weight: 450; }
.slp-family-form textarea { resize: vertical; }
.slp-family-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.slp-family-checkbox { display: flex; align-items: flex-start; gap: 11px; color: #315640; font-size: 14px; font-weight: 550; line-height: 1.5; }
.slp-family-checkbox input, .slp-family-picker-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: #246248; flex: none; }
.slp-family-checkbox small { display: block; font-size: 12px; color: #6a7e70; margin-top: 3px; font-weight: 450; }
.slp-family-help, .slp-family-muted { color: #647969; font-size: 13px; line-height: 1.6; }
.slp-family-help { margin-top: 10px !important; }
.slp-family-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.slp-family-select-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #647868; font-size: 13px; margin-bottom: 10px; }
.slp-family-select-top div { display: flex; gap: 9px; }
.slp-family-member-picker { max-height: 335px; overflow: auto; display: grid; gap: 6px; }
.slp-family-picker-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: #fafcf9; border: 1px solid #e0e8df; border-radius: 12px; cursor: pointer; }
.slp-family-picker-row:hover { background: #eff5ed; }
.slp-family-new-person { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.15fr) auto; gap: 7px; align-items: center; margin-top: 8px; }
.slp-family-new-person button { border: 1px solid #d2dacf; border-radius: 10px; background: #f4f6f2; color: #af4141; height: 40px; width: 38px; font-size: 22px !important; }
.slp-family-rule { height: 1px; width: 100%; border: 0; background: #e0e8e0; margin: 4px 0; }
.slp-family-notice { background: #edf6ef; color: #285840; border: 1px solid #d1e6d6; padding: 12px 17px; border-radius: 13px; margin: 16px 0; overflow-wrap: anywhere; }
.slp-family-notice.error { background: #fff0ee; color: #9d3535; border-color: #e7bdb7; }
.slp-family-success { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 38px 25px; }
.slp-family-check { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 100%; background: #ddf1e0; color: #1c6a44; font-size: 32px; }
.slp-family-success .slp-family-actions { justify-content: center; }
#slp-family-root footer { text-align: center; color: #809184; font-size: 12px; padding: 35px 0 10px; }
/* Existing React site buttons inserted by the companion script. */
.site-header .slp-family-entry { white-space: nowrap; background: #edf3ea; color: #215139; border: 1px solid #c9dbc7; padding-inline: 14px; }
.welcome-hero .slp-family-home { white-space: normal; }
.settings-grid .slp-family-settings { margin-bottom: 12px; }
@media (max-width: 810px) { .slp-family-two-col { grid-template-columns: 1fr; } .slp-family-page { padding-top: 20px; } .slp-family-welcome { padding: 22px; } .slp-family-top { margin-bottom: 20px; } }
@media (max-width: 520px) { .slp-family-form-two { grid-template-columns: 1fr; } .slp-family-card { padding: 17px; border-radius: 18px; } .slp-family-page { padding-inline: 13px; } .slp-family-head { gap: 10px; } .slp-family-logo { width: 46px; height: 46px; border-radius: 13px; font-size: 25px; } .slp-family-eyebrow { font-size: 9px; } .slp-family-head p { font-size: 13px; } .slp-family-icon-button { width: 36px; height: 36px; } .slp-family-button { flex: 1 1 auto; } .slp-family-welcome .slp-family-button { width: 100%; } .slp-family-new-person { grid-template-columns: 1fr 1fr auto; } .slp-family-new-person input { padding: 9px !important; } .site-header .slp-family-entry { font-size: 11px !important; padding: 6px 8px !important; min-height: 32px; } }
.slp-family-member-info .slp-family-tag { display: inline-block; width: auto; margin-left: 5px; color: #2a6550; }
