@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f3eee7;--surface:#fffdfa;--surface-2:#eee5db;--ink:#292724;--muted:#827a71;--accent:#a85f49;--accent-soft:#ead5c9;--accent-strong:#854632;--line:#e5dbd0;--shadow:0 12px 34px rgba(49,39,31,.055);--radius:16px}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Manrope','DM Sans',Arial,sans-serif;font-size:14px;transition:background .2s,color .2s}
.app-shell{max-width:1180px;margin:auto;padding:0 32px 105px}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:13px;align-items:center;color:inherit;text-decoration:none}
.brand-mark{width:52px;height:52px;color:var(--accent);display:grid;place-items:center;flex:none}
.brand-mark svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.brand strong{display:block;font-family:'Manrope',sans-serif;font-size:17px;font-weight:800;letter-spacing:-.5px}
.brand small{display:block;color:var(--muted);font-size:10px;margin-top:3px;letter-spacing:.2px}
.top-actions{display:flex;align-items:center;gap:18px}
.today-label{font-size:11px;color:var(--muted);text-transform:capitalize}
.avatar{border:1px solid var(--line);border-radius:12px;width:39px;height:39px;background:var(--surface);color:var(--accent);font-size:17px;cursor:pointer}
.welcome{margin:32px 0 22px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:32px 38px;min-height:166px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden}
.eyebrow{font-size:9px;letter-spacing:1.7px;color:var(--accent);font-weight:800;margin:0 0 10px}
.welcome h1{font:800 34px 'Manrope',sans-serif;letter-spacing:-1.2px;margin:0 0 8px;color:var(--ink)}
.welcome-sub{margin:0;color:var(--muted);font-size:12px}
.welcome-signature{width:180px;min-width:180px;height:100px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;color:var(--accent);padding-right:4px}
.signature-rule{display:block;width:58px;height:1px;background:var(--accent);opacity:.65;margin-bottom:9px}
.welcome-signature strong{font:500 42px/1 Georgia,serif;letter-spacing:3px}
.welcome-signature small{font-size:7px;letter-spacing:2px;color:var(--muted);margin-top:8px}
.welcome{background:linear-gradient(105deg,var(--surface-2) 0%,var(--surface-2) 68%,color-mix(in srgb,var(--surface) 60%,var(--surface-2)) 100%)}
.quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:17px 19px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}
.stat-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:17px;background:var(--accent-soft);color:var(--accent)}
.stat-card small{display:block;color:var(--muted);font-size:10px}
.stat-card strong{display:block;font:800 21px 'Manrope',sans-serif;margin:3px 0;letter-spacing:-.5px}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin:38px 0 17px}
.section-heading h2{font:800 23px 'Manrope',sans-serif;letter-spacing:-.7px;margin:0}
.primary-button{border:0;background:var(--accent);color:#fff;border-radius:10px;padding:12px 17px;font:700 11px 'Manrope';cursor:pointer;box-shadow:0 5px 14px color-mix(in srgb,var(--accent) 18%,transparent)}
.primary-button:hover{background:var(--accent-strong)}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.module-card{display:flex;align-items:center;text-align:left;gap:14px;padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;color:var(--ink);transition:.18s;min-height:84px}
.module-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--accent)}
.module-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;flex:none;background:var(--surface-2);color:var(--ink)}
.module-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.module-card strong{display:block;font:700 13px 'Manrope',sans-serif}
.module-card small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.module-card b{margin-left:auto;color:var(--accent);font-size:16px;font-weight:500}
.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:23px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.panel-head{display:flex;justify-content:space-between;align-items:center}
.panel h3{font:700 16px 'Manrope',sans-serif;margin:0}
.text-button{background:none;border:0;color:var(--accent);font-size:10px;font-weight:700;cursor:pointer}
.empty-state{color:var(--muted);font-size:11px;padding:21px 4px 7px}
.footer-note{text-align:center;color:var(--muted);font-size:9px;letter-spacing:1.5px;margin:30px 0}
.footer-note span{color:var(--accent)}
.bottom-nav{display:none}
dialog{border:1px solid var(--line);border-radius:20px;padding:25px;width:min(560px,calc(100% - 28px));background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #30251c30}
dialog::backdrop{background:#24211f80;backdrop-filter:blur(3px)}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}
.dialog-head h2{font:800 23px 'Manrope',sans-serif;letter-spacing:-.6px;margin:0}
.close-button{border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:10px;width:32px;height:32px;font-size:20px;cursor:pointer}
label{display:block;font-size:11px;font-weight:700;color:var(--muted);margin:13px 0}
input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:var(--surface);color:var(--ink);font:12px 'Manrope';outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--accent)}
textarea{resize:vertical}
.full{width:100%;margin-top:12px}
.muted{font-size:11px;color:var(--muted)}
.entry-list{display:grid;gap:8px}
.entry-item{border:1px solid var(--line);border-radius:12px;padding:13px;display:flex;align-items:center;gap:10px;background:var(--surface)}
.entry-item .entry-copy{flex:1;min-width:0}
.entry-item strong{display:block;font-size:12px}
.entry-item small{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.entry-item button{border:0;background:var(--surface-2);color:var(--accent);border-radius:8px;padding:7px 9px;cursor:pointer}
.entry-item.done strong{text-decoration:line-through;color:var(--muted)}
.entry-item input[type=checkbox]{width:17px;margin:0;accent-color:var(--accent)}
.view-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.view-tools button,.soft-button{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;padding:9px 12px;color:var(--accent-strong);font-size:10px;font-weight:700;cursor:pointer}
.calc-box,.budget-card{background:var(--surface-2);border-radius:12px;padding:14px;margin-top:12px}
.calc-box input{max-width:160px}
.calc-result{font:800 21px 'Manrope';margin-top:9px}
.budget-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
.budget-card small{display:block;color:var(--muted);font-size:10px}
.budget-card strong{display:block;font:800 17px 'Manrope';margin-top:5px;color:var(--accent)}
.budget-month-label{font-size:11px;color:var(--muted);margin:0 0 9px}
#entryFilter{width:auto;margin:0;min-width:135px}
.entry-item .edit-entry,.entry-item .download-entry{background:var(--surface-2);color:var(--accent)}
.entry-item .delete-entry{background:#f5e9e7;color:#a65f58}
.entry-item .entry-copy small{line-height:1.45}
.module-toggle{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}
.module-toggle input{width:17px;margin:0;accent-color:var(--accent)}
.settings-actions{display:grid;gap:9px;margin:15px 0}
.settings-actions button,.import-label{width:100%;text-align:center;display:block}
.import-label{cursor:pointer}
.danger-button{border:1px solid #e5c6c2;background:#fbefed;color:#a65f58;border-radius:9px;padding:10px 12px;font:700 10px 'Manrope';cursor:pointer}
.view-tools select{margin:0;width:auto}
.note-box{padding:13px;background:var(--surface-2);border-radius:11px;color:var(--muted);font-size:10px;line-height:1.6;margin:14px 0}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theme-settings{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin:18px 0}
.theme-settings>strong{font-size:12px}
.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.theme-option{margin:10px 0 0;padding:9px;border:1px solid var(--line);border-radius:11px;cursor:pointer}
.theme-option input{width:auto;display:inline-block;margin:0 5px 0 0;accent-color:var(--accent)}
.theme-option b{font-size:9px;display:inline}
.theme-swatch{height:35px;border-radius:7px;display:flex;overflow:hidden;margin-bottom:8px}
.theme-swatch i{flex:1}
.swatch-terracotta i:nth-child(1){background:#f3eee7}
.swatch-terracotta i:nth-child(2){background:#a85f49}
.swatch-terracotta i:nth-child(3){background:#e7d2c5}
.swatch-sage i:nth-child(1){background:#eef0e9}
.swatch-sage i:nth-child(2){background:#6e8069}
.swatch-sage i:nth-child(3){background:#e5e9df}
.swatch-rose i:nth-child(1){background:#fffefe}
.swatch-rose i:nth-child(2){background:#b77d89}
.swatch-rose i:nth-child(3){background:#f1e6e7}

/* Module landing pages: each tab presents its available actions first */
.module-intro{color:var(--muted);font-size:11px;margin:-8px 0 17px}
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:18px}
.feature-tile{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface);text-align:left;cursor:pointer;color:var(--ink);min-height:72px}
.feature-tile:hover{border-color:var(--accent);background:var(--surface-2)}
.feature-tile strong{display:block;font-size:11px;margin-bottom:5px}
.feature-tile small{font-size:9px;color:var(--muted)}
.subsection-title{font:800 13px 'Manrope';margin:18px 0 10px}
.calendar-head{display:flex;align-items:center;justify-content:space-between;margin:15px 0}
.calendar-head strong{font:800 15px 'Manrope'}
.calendar-head button{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 11px;color:var(--accent);cursor:pointer}
.calendar-day-list{margin-top:15px}
.calendar-day-list h4{font-size:11px;margin:0 0 9px}
.settings-modules{margin:16px 0}
.bottom-nav button{font-family:'Manrope'}
.app-shell{padding:0 15px 94px}
.topbar{height:69px}
.brand strong{font-size:15px}
.brand small{font-size:9px}
.today-label{display:none}
.welcome{margin-top:22px;padding:24px 20px;min-height:145px}
.welcome h1{font-size:27px}
.welcome-sub{max-width:250px;line-height:1.5;font-size:11px}
.welcome-signature{width:105px;min-width:105px;height:86px;padding-right:0}
.welcome-signature strong{font-size:32px}
.welcome-signature small{font-size:6px;letter-spacing:1.3px}
.signature-rule{width:42px;margin-bottom:7px}
.quick-stats{gap:8px}
.stat-card{padding:12px 9px;gap:8px;border-radius:12px}
.stat-icon{width:32px;height:32px;font-size:15px}
.stat-card small{font-size:8px}
.stat-card strong{font-size:16px}
.section-heading{margin-top:28px}
.section-heading h2{font-size:19px}
.section-heading .eyebrow{font-size:8px}
.primary-button{padding:10px 12px;font-size:10px}
.module-grid{grid-template-columns:1fr 1fr;gap:8px}
.module-card{padding:12px 10px;gap:9px;min-height:75px}
.module-icon{width:34px;height:34px;border-radius:10px;font-size:16px}
.module-card strong{font-size:11px}
.module-card small{font-size:8px;line-height:1.35}
.module-card b{font-size:15px}
.lower-grid{grid-template-columns:1fr;gap:10px;margin-top:16px}
.panel{padding:15px}
.panel h3{font-size:15px}
.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;background:var(--surface);border-top:1px solid var(--line);height:66px;justify-content:space-around;align-items:center;padding:0 8px env(safe-area-inset-bottom)}
.bottom-nav button{border:0;background:none;color:var(--muted);font-size:9px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:54px;cursor:pointer}
.bottom-nav button span{font-size:18px}
.bottom-nav button.active{color:var(--accent)}
.bottom-nav .nav-add{width:42px;height:42px;border-radius:12px;background:var(--accent);color:white;font-size:23px;display:grid;place-items:center}
.footer-note{font-size:8px}
.budget-cards{grid-template-columns:1fr 1fr}
.budget-card:last-child{grid-column:span 2}
.entry-item{padding:10px;gap:7px}
.entry-item .entry-copy strong{font-size:11px}
.form-row{grid-template-columns:1fr 1fr}
.theme-options{grid-template-columns:1fr}
.theme-option{display:grid;grid-template-columns:95px 1fr;align-items:center;gap:10px}
.theme-swatch{margin:0}
.feature-grid{gap:7px}
.feature-tile{padding:11px;min-height:66px}
.app-shell{padding-left:11px;padding-right:11px}
.module-grid{gap:7px}
.module-card{min-width:0}
.module-card small{overflow-wrap:anywhere}
.entry-item{flex-wrap:wrap}

[hidden]{display:none!important}
dialog{max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}
dialog form{padding-bottom:2px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}


/* Recurring income and expense controls */
.recurrence-panel{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:12px 14px;margin:12px 0}
.recurrence-panel .recurrence-check{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:11px;margin:0 0 8px}
.recurrence-check input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.recurrence-panel .form-row{margin-top:4px}
.recurrence-panel .muted{display:block;line-height:1.5}
.entry-status{font-weight:800;color:var(--accent)!important}
.entry-item .settle-entry{font-size:9px;font-weight:800;white-space:nowrap}
.budget-month-tools{align-items:center;justify-content:space-between}
.budget-month-tools select{max-width:180px}


/* Profils familiaux et attribution des informations */
.family-manager{margin:18px 0;padding:16px;border:1px solid var(--line,rgba(80,70,60,.14));border-radius:18px;background:var(--surface,rgba(255,255,255,.42))}
.member-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;align-items:end;margin:14px 0}
.member-form label{display:grid;gap:6px;font-size:.88rem}
.member-form input,.member-form select{width:100%;min-width:0}
.member-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.member-chip{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line,rgba(80,70,60,.14));border-radius:999px;background:var(--surface,white);font-size:.9rem}
.member-chip small{opacity:.7}
.member-chip button{border:0;background:transparent;font-size:1.15rem;cursor:pointer;padding:0 2px}
.member-dot{width:10px;height:10px;border-radius:50%;flex:none}
#entryMembers{min-height:76px}
#entryMembers option{padding:5px}


/* V7 — identité visuelle : working girl, professionnelle et cocooning */
:root{--radius:20px;--shadow:0 14px 38px rgba(54,43,35,.065)}

body{background:radial-gradient(ellipse at 12% 0%,color-mix(in srgb,var(--accent-soft) 28%,transparent),transparent 34%),var(--bg);letter-spacing:-.08px}

.app-shell{max-width:1240px}

.topbar{height:88px;border-bottom-color:color-mix(in srgb,var(--line) 75%,transparent)}

.brand-mark{width:46px;height:46px;border-radius:15px;background:var(--surface);box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 9%,transparent);font-size:11px;letter-spacing:1.5px}

.brand strong{font-size:18px;letter-spacing:-.65px}

.brand small{font-size:10px;letter-spacing:.35px}

.avatar{border-radius:14px;box-shadow:0 4px 14px rgba(40,30,20,.04)}

.welcome{min-height:190px;margin:35px 0 24px;padding:38px 42px;border-radius:24px;box-shadow:inset 0 1px rgba(255,255,255,.5),0 12px 30px rgba(45,35,25,.035)}

.welcome h1{font-size:38px;letter-spacing:-1.5px}

.welcome-sub{font-size:13px;letter-spacing:.05px}

.welcome-signature{border-left:1px solid color-mix(in srgb,var(--accent) 22%,transparent);padding-left:28px;padding-right:6px}

.quick-stats{gap:15px}

.stat-card{border-radius:18px;padding:19px 21px;box-shadow:0 8px 24px rgba(45,35,25,.035)}

.stat-icon{border-radius:14px;width:43px;height:43px}

.stat-card strong{font-size:23px}

.section-heading{margin:42px 0 19px}

.section-heading h2{font-size:25px;letter-spacing:-.9px}

.module-grid{gap:14px}

.module-card{min-height:94px;padding:19px;border-radius:18px;box-shadow:0 5px 18px rgba(45,35,25,.025)}

.module-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(45,35,25,.075)}

.module-icon{width:45px;height:45px;border-radius:15px;font-size:19px}

.module-card strong{font-size:13px;letter-spacing:-.15px}

.module-card small{font-size:10px;line-height:1.5}

.lower-grid{gap:16px;margin-top:26px}

.panel{padding:23px;border-radius:20px;box-shadow:0 7px 22px rgba(45,35,25,.03)}

.panel h3{font-size:17px}

.primary-button{border-radius:12px;padding:13px 18px;letter-spacing:.1px}

.primary-button:focus-visible,.module-card:focus-visible{outline-offset:3px}

.entry-item,.feature-tile,.family-manager{border-radius:16px}

.feature-tile{padding:16px;min-height:82px;box-shadow:0 4px 14px rgba(45,35,25,.025)}

.feature-tile strong{font-size:12px}

.feature-tile small{font-size:10px;line-height:1.45}

dialog{border-radius:24px;padding:28px;box-shadow:0 28px 90px rgba(30,25,22,.22)}

.dialog-head h2{font-size:25px}

input,select,textarea{border-radius:12px;padding:12px 13px;font-size:12px}

input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}

.bottom-nav{box-shadow:0 -8px 26px rgba(40,32,25,.06);backdrop-filter:blur(18px)}

.footer-note{letter-spacing:1.7px}

.theme-option{border-radius:14px;padding:11px;transition:border-color .18s,background .18s}

.theme-option:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent-soft) 35%,var(--surface))}

.member-chip{padding:9px 12px;border-radius:13px}

 .app-shell{padding-left:16px;padding-right:16px}

 .welcome{min-height:154px;padding:25px 21px;border-radius:20px}

 .welcome h1{font-size:29px}

 .welcome-signature{width:95px;min-width:95px;padding-left:12px;height:82px}

 .quick-stats{gap:8px}

 .stat-card{padding:12px 9px;border-radius:15px}

 .module-card{min-height:83px;padding:12px 10px;border-radius:15px}

 .panel{border-radius:17px}

 dialog{padding:21px;border-radius:21px}
.module-card,.primary-button,.theme-option{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}


/* Budget : séparation claire des flux entrants et sortants */
.budget-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin:4px 0 18px}
.budget-column{min-width:0;background:var(--surface-2);border:1px solid var(--line);border-radius:15px;padding:14px}
.budget-column-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.budget-column-head h3{font:800 14px 'Manrope';margin:0}
.budget-column-head span{font-size:10px;color:var(--muted)}
.budget-column .entry-item{align-items:center}
.money-status{display:flex;align-items:center;gap:5px;margin:0;white-space:nowrap;font-size:9px;color:var(--muted);cursor:pointer}
.money-status input[type=checkbox]{display:inline-block;width:16px;height:16px;margin:0;accent-color:var(--accent);flex:none}
.money-status span{font-size:9px;font-weight:700}
.budget-list-tools{align-items:center;margin-top:18px}
.budget-list-tools .subsection-title{margin-right:auto}
.budget-help{line-height:1.55}
.budget-columns{grid-template-columns:1fr;gap:10px}
.budget-column{padding:11px}
.budget-column-head h3{font-size:13px}
.money-status span{font-size:8px}
.budget-list-tools .subsection-title{width:100%}



/* MPU — trois identités visuelles sélectionnables */
body[data-theme="soft-minimal"]{--bg:#f5f1ea;--surface:#fffdf9;--surface-2:#ece5da;--ink:#302d29;--muted:#81796f;--accent:#9b7964;--accent-soft:#e8d9ca;--accent-strong:#765b49;--line:#e5ddd2;--shadow:0 12px 34px rgba(54,43,33,.055);--radius:17px;font-family:'DM Sans',sans-serif}

body[data-theme="modern-editorial"]{--bg:#f1f0ed;--surface:#fff;--surface-2:#e8e8e6;--ink:#111;--muted:#666;--accent:#000;--accent-soft:#dededc;--accent-strong:#000;--line:#d1d1cf;--shadow:0 14px 32px rgba(0,0,0,.09);--radius:6px;font-family:'DM Sans',sans-serif}

body[data-theme="soft-blush"]{--bg:#fbf5f5;--surface:#fffdfd;--surface-2:#f3e6e8;--ink:#382d30;--muted:#8c7b80;--accent:#bd8793;--accent-soft:#f0dce1;--accent-strong:#925e6b;--line:#ecdee1;--shadow:0 12px 34px rgba(77,47,56,.055);--radius:18px;font-family:'DM Sans',sans-serif}

/* Soft Minimal: espaces généreux, contours doux et palette naturelle */
body[data-theme="soft-minimal"] .welcome{background:linear-gradient(110deg,#ece5da 0%,#f2ece3 72%,#f8f4ed 100%)}

body[data-theme="soft-minimal"] .brand-mark{border-radius:14px}

body[data-theme="soft-minimal"] .module-card,body[data-theme="soft-minimal"] .panel,body[data-theme="soft-minimal"] .stat-card{border-radius:17px}

/* Modern Editorial: composition plus graphique, typographie éditoriale et contraste */
body[data-theme="modern-editorial"] .brand strong,body[data-theme="modern-editorial"] .welcome h1,body[data-theme="modern-editorial"] .section-heading h2,body[data-theme="modern-editorial"] .dialog-head h2,body[data-theme="modern-editorial"] .panel h3,body[data-theme="modern-editorial"] .calendar-head strong{font-family:Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.35px}

body[data-theme="modern-editorial"] .welcome{background:linear-gradient(110deg,#e7e7e5 0%,#f5f5f3 100%);border-radius:5px;border-left:4px solid #000}

body[data-theme="modern-editorial"] .brand-mark{border-radius:4px;border-width:1px}

body[data-theme="modern-editorial"] .module-card,body[data-theme="modern-editorial"] .panel,body[data-theme="modern-editorial"] .stat-card{border-radius:7px;box-shadow:none}

body[data-theme="modern-editorial"] .module-icon{border-radius:5px}

body[data-theme="modern-editorial"] .primary-button{border-radius:4px;letter-spacing:.5px;text-transform:uppercase}

body[data-theme="modern-editorial"] .eyebrow{letter-spacing:2.2px}

body[data-theme="modern-editorial"] .welcome-signature strong{font-family:Georgia,serif;font-style:italic;letter-spacing:1px}

/* Soft Blush: nuances poudrées, arrondis et détails délicats */
body[data-theme="soft-blush"] .welcome{background:linear-gradient(110deg,#f2e4e6 0%,#f8eff0 70%,#fff8f8 100%)}

body[data-theme="soft-blush"] .brand-mark,body[data-theme="soft-blush"] .module-icon,body[data-theme="soft-blush"] .stat-icon{border-radius:50%}

body[data-theme="soft-blush"] .module-card,body[data-theme="soft-blush"] .panel,body[data-theme="soft-blush"] .stat-card{border-radius:19px}

body[data-theme="soft-blush"] .primary-button{border-radius:999px}

.theme-option small{display:block;color:var(--muted);font-size:9px;font-weight:500;margin-top:5px}

.swatch-minimal i:nth-child(1){background:#f5f1ea}
.swatch-minimal i:nth-child(2){background:#9b7964}
.swatch-minimal i:nth-child(3){background:#ece5da}

.swatch-editorial i:nth-child(1){background:#f1f0ed}
.swatch-editorial i:nth-child(2){background:#000}
.swatch-editorial i:nth-child(3){background:#d1d1cf}

.swatch-blush i:nth-child(1){background:#fbf5f5}
.swatch-blush i:nth-child(2){background:#bd8793}
.swatch-blush i:nth-child(3){background:#f3e6e8}


/* V14 — réglages visuels des trois thèmes uniquement */
.theme-options{align-items:stretch}

.theme-option{display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:12px;min-height:100px;background:var(--surface)}

.theme-option input{grid-column:1;grid-row:1;align-self:start;margin:2px 0 0}

.theme-option .theme-swatch{grid-column:2;grid-row:1;height:42px;margin:0 0 8px}

.theme-option .theme-copy{grid-column:1 / -1;grid-row:2;display:block}

.theme-option b{display:block;font-size:11px;letter-spacing:.1px}

.theme-option small{font-size:9px;line-height:1.45}

.theme-option:has(input:checked){box-shadow:0 0 0 1px var(--accent);}

body[data-theme="soft-minimal"] .theme-option:has(input:checked){background:#f5f1ea}

body[data-theme="modern-editorial"] .theme-option{border-radius:5px}

body[data-theme="modern-editorial"] .theme-option:has(input:checked){background:#f1f0ed}

body[data-theme="soft-blush"] .theme-option:has(input:checked){background:#fbf5f5}
.theme-option{grid-template-columns:95px 1fr;grid-template-rows:auto;min-height:68px}
.theme-option input{grid-column:1;grid-row:1}
.theme-option .theme-swatch{grid-column:1;grid-row:1;margin-left:22px;height:35px}
.theme-option .theme-copy{grid-column:2;grid-row:1}
.theme-option b{font-size:10px}


/* MPU V20 — iconographie professionnelle cohérente */
.bottom-nav button span svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.module-card b{font-size:0}
.module-card b:after{content:"↗";font-size:15px}

.entry-item .delete-entry{min-width:32px;min-height:32px;display:inline-grid;place-items:center;font-size:18px}

.brand-mark{background:var(--surface);border:1px solid var(--accent);border-radius:14px;box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 10%,transparent)}

.brand-mark svg{width:36px;height:36px}

.module-card{box-shadow:var(--shadow)}

.module-icon{border:1px solid color-mix(in srgb,var(--accent) 12%,transparent)}


/* MPU V23 — grille d'accueil complète et harmonisée */
.module-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}

.module-card{min-height:112px;align-items:center;padding:18px 16px}

.module-icon{width:48px;height:48px;flex:none}

.module-icon svg{width:27px;height:27px;stroke:var(--accent-strong);stroke-width:1.65}

.module-card strong{font-size:13px}

.module-card small{font-size:9px;line-height:1.4}
.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.module-card{min-height:82px;padding:11px 9px;gap:8px}
.module-icon{width:36px;height:36px;border-radius:10px}
.module-icon svg{width:22px;height:22px}
.module-card strong{font-size:10px}
.module-card small{font-size:8px}

/* Agenda MPU : calendrier agrandi et libellés plus lisibles */
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:stretch;width:100%}
.calendar-grid .weekday{display:flex;align-items:center;justify-content:center;min-height:34px;color:var(--muted);font-size:12px;font-weight:800}
.calendar-grid .calendar-cell{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;min-width:0;min-height:148px;padding:9px 7px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;overflow:hidden}
.calendar-grid .calendar-cell:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.calendar-grid .calendar-cell.outside{opacity:.42}
.calendar-grid .calendar-cell.selected{background:var(--accent);border-color:var(--accent);color:#fff}
.calendar-grid .calendar-number{display:block;flex:0 0 auto;text-align:center;font-size:16px;font-weight:800;line-height:21px}
.calendar-grid .calendar-event-chip{display:block;flex:0 0 auto;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:6px 6px;border-radius:6px;background:var(--accent-soft,var(--surface-2));color:var(--accent-strong,var(--accent));font-size:12px;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere}
.calendar-grid .calendar-event-chip strong{display:block;font-size:12px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.calendar-grid .calendar-event-chip small{display:block;margin-top:3px;font-size:11px;line-height:1.25;color:inherit;opacity:.9}
.calendar-grid .calendar-cell.selected .calendar-event-chip{background:rgba(255,255,255,.2);color:#fff}
.calendar-grid .calendar-more{display:block;flex:0 0 auto;text-align:center;font-size:11px;color:var(--muted)}
.calendar-grid .calendar-cell.selected .calendar-more{color:#fff}
@media(max-width:720px){.calendar-grid{gap:4px}.calendar-grid .weekday{min-height:30px;font-size:10px}.calendar-grid .calendar-cell{min-height:116px;padding:6px 3px;gap:4px;border-radius:8px}.calendar-grid .calendar-number{font-size:14px;line-height:18px}.calendar-grid .calendar-event-chip{padding:5px 3px;font-size:10px;line-height:1.25}.calendar-grid .calendar-event-chip strong{font-size:10px}.calendar-grid .calendar-event-chip small{font-size:10px}.calendar-grid .calendar-more{font-size:10px}}

/* V33 — typographie plus confortable dans toute l’interface */
body{font-size:16px}
.eyebrow,.section-heading .eyebrow{font-size:10px;letter-spacing:1.8px}
.section-heading h2{font-size:29px;line-height:1.2}
.module-card{min-height:108px;padding:21px;gap:15px}
.module-card strong{font-size:16px;line-height:1.35}
.module-card small{font-size:13px;line-height:1.45;margin-top:6px}
.module-icon{width:50px;height:50px}
.module-icon svg{width:27px;height:27px}
.module-card b{font-size:18px}
.primary-button{font-size:13px;padding:14px 20px}
.module-intro{font-size:14px;line-height:1.55}
.feature-tile strong{font-size:14px;line-height:1.4}
.feature-tile small{font-size:12px;line-height:1.45}
.subsection-title{font-size:16px}
.panel h3{font-size:19px}
.text-button,.view-tools button,.soft-button{font-size:12px}
.entry-item strong{font-size:14px}
.entry-item small{font-size:12px}
label{font-size:13px}
input,select,textarea{font-size:14px}
.muted,.module-toggle{font-size:13px}
.empty-state{font-size:13px}
.footer-note{font-size:10px}
@media(max-width:700px){
 .section-heading h2{font-size:23px}
 .module-card{min-height:90px;padding:14px 12px;gap:10px}
 .module-card strong{font-size:14px}
 .module-card small{font-size:11px}
 .module-icon{width:40px;height:40px}
 .primary-button{font-size:12px}
 .feature-tile strong{font-size:13px}
 .feature-tile small{font-size:11px}
}


/* Authentification — inscription et connexion */
[hidden]{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:28px 16px;background:radial-gradient(circle at 15% 10%,rgba(234,213,201,.55),transparent 34%),var(--bg)}
.auth-card{width:min(100%,470px);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:var(--shadow)}
.auth-brand{margin-bottom:32px}.auth-eyebrow{margin-bottom:8px}.auth-card h1{font:800 28px 'Manrope',sans-serif;letter-spacing:-.8px;margin:0 0 8px}.auth-intro{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 24px}.auth-form{display:grid;gap:15px}.auth-form label{display:grid;gap:7px;font-weight:700}.auth-form input{width:100%;min-height:46px;padding:12px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:500 14px 'Manrope',sans-serif}.auth-form input:focus{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);border-color:var(--accent)}.auth-form .full{width:100%;margin-top:5px;min-height:48px}.auth-switch{text-align:center;font-size:12px;color:var(--muted);margin:22px 0 0}.auth-switch button,.auth-link{border:0;background:none;color:var(--accent-strong);font:800 12px 'Manrope',sans-serif;cursor:pointer;padding:4px}.auth-link{justify-self:center;margin-top:-5px}.auth-message{display:none;margin:16px 0 0;padding:12px;border-radius:10px;background:var(--surface-2);color:var(--ink);font-size:12px;line-height:1.55}.auth-message.visible{display:block}.auth-message.error{background:#f8e8e5;color:#8a3428}.auth-privacy{border-top:1px solid var(--line);padding-top:16px;margin:22px 0 0;text-align:center;color:var(--muted);font-size:10px;line-height:1.5}.auth-logout{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:10px;padding:9px 12px;font:700 11px 'Manrope',sans-serif;cursor:pointer}
@media(max-width:520px){.auth-card{padding:25px 20px}.auth-card h1{font-size:25px}.auth-brand{margin-bottom:26px}.auth-logout{font-size:10px;padding:8px}}

/* MPU — espace de connexion beige / lin, direction visuelle validée */
.auth-screen{min-height:100svh;display:grid;place-items:center;padding:34px 18px;background:radial-gradient(ellipse at 50% 0%,#fffdfa 0%,#f8f2eb 55%,#eee5dc 100%)}
.auth-card{width:min(100%,470px);padding:42px 44px 30px;background:rgba(255,253,250,.82);border:1px solid rgba(255,255,255,.92);border-radius:25px;box-shadow:0 18px 55px rgba(83,67,53,.09);backdrop-filter:blur(8px)}
.auth-logo{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:#252b2d;margin:0 auto 30px;width:max-content;max-width:100%}
.auth-logo-line{display:flex;align-items:center;justify-content:center;gap:12px}
.auth-logo-name{font:400 76px/.88 Georgia,'Times New Roman',serif;letter-spacing:-5px;color:#252b2d}
.planner-mark{width:54px;height:54px;fill:none;stroke:#9b7958;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;transform:rotate(7deg)}
.auth-logo-subtitle{font:600 10px/1.5 'Manrope',sans-serif;letter-spacing:4px;color:#4e5050;margin-top:10px}
.auth-heading{text-align:center;margin:0 auto 27px;max-width:340px}
.auth-eyebrow{font-size:9px;letter-spacing:2.5px;color:#9b8069;font-weight:700;margin:0 0 11px;text-align:center}
.auth-card h1{font:400 30px/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.5px;margin:0 0 9px;color:#292724;text-align:center}
.auth-intro{font:400 13px/1.6 'DM Sans',sans-serif;color:#77716a;margin:0 auto;max-width:300px}
.auth-form{display:grid;gap:13px}
.auth-field{display:grid;gap:0;margin:0;color:#77716a;font:500 0/0 'DM Sans',sans-serif}
.auth-field input{width:100%;min-height:49px;margin:0;padding:13px 17px;border:1px solid #ded5cc;border-radius:999px;background:rgba(255,255,255,.52);color:#292724;font:400 13px 'DM Sans',sans-serif;box-shadow:inset 0 1px 2px rgba(75,60,48,.025)}
.auth-field input::placeholder{color:#8d857d;opacity:1}
.auth-field input:focus{outline:2px solid rgba(174,145,117,.22);border-color:#b69a80}
.auth-primary{width:100%;min-height:51px;margin-top:7px;padding:12px 22px;border:0;border-radius:999px;background:linear-gradient(100deg,#c6a987,#b99570);color:#fff;font:600 13px 'DM Sans',sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:15px;box-shadow:0 5px 13px rgba(125,96,68,.12)}
.auth-primary span{font-size:20px;line-height:1;font-weight:400}
.auth-primary:disabled{opacity:.65;cursor:wait}
.auth-switch{text-align:center;font:400 11px 'DM Sans',sans-serif;color:#716b64;margin:23px 0 0}
.auth-switch button,.auth-link{border:0;background:none;color:#98734f;font:600 11px 'DM Sans',sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px}
.auth-forgot{justify-self:end;margin:-7px 5px 0}
.auth-message{display:none;margin:15px 0 0;padding:11px 13px;border-radius:12px;background:#f2ebe3;color:#5d5146;font:400 11px/1.55 'DM Sans',sans-serif}
.auth-message.visible{display:block}.auth-message.error{background:#f8e8e5;color:#8a3428}
.auth-privacy{margin:19px 0 0;text-align:center;color:#a39a90;font:400 9px 'DM Sans',sans-serif}
@media(max-width:520px){.auth-screen{padding:20px 14px}.auth-card{padding:32px 23px 25px;border-radius:22px}.auth-logo{margin-bottom:27px}.auth-logo-name{font-size:68px}.auth-card h1{font-size:27px}}

/* MPU — identité visuelle finale : Cocooning, Working Luxe, Pink Edition */
body[data-theme="soft-minimal"]{
 --bg:#f4f0e9;--surface:#fffdf9;--surface-2:#eae3d9;--ink:#34312d;--muted:#82796f;
 --accent:#a58b77;--accent-soft:#e9ddd1;--accent-strong:#806b5a;--line:#e4dbd0;
 --shadow:0 10px 28px rgba(65,53,42,.055);--radius:17px
}
body[data-theme="soft-minimal"] .welcome{background:linear-gradient(110deg,#e9e1d7 0%,#f1ebe3 72%,#faf7f1 100%)}
body[data-theme="soft-minimal"] .module-icon{background:#f1ebe3;color:#756657;border:1px solid #e5dbcf;border-radius:13px}
body[data-theme="soft-minimal"] .brand-mark{color:#927b68}

/* Working Luxe : bleu nuit, ivoire et champagne — univers volontairement distinct */
body[data-theme="modern-editorial"]{
 --bg:#eef1f4;--surface:#fbfcfd;--surface-2:#e2e8ee;--ink:#1b2b3d;--muted:#687787;
 --accent:#243b55;--accent-soft:#dce4ec;--accent-strong:#17283d;--line:#d6dee6;
 --shadow:0 12px 30px rgba(23,40,61,.09);--radius:13px
}
body[data-theme="modern-editorial"] .topbar{border-bottom-color:#d3dce5}
body[data-theme="modern-editorial"] .brand-mark{color:#243b55}
body[data-theme="modern-editorial"] .welcome{background:linear-gradient(112deg,#1b2e45 0%,#263d56 72%,#344c64 100%);border:1px solid #40566d;border-left:0;border-radius:14px;color:#fff}
body[data-theme="modern-editorial"] .welcome h1,body[data-theme="modern-editorial"] .welcome .welcome-sub,body[data-theme="modern-editorial"] .welcome-signature{color:#f8f7f3}
body[data-theme="modern-editorial"] .welcome .eyebrow,body[data-theme="modern-editorial"] .welcome-signature small{color:#d4c5a7}
body[data-theme="modern-editorial"] .signature-rule{background:#c8b58f}
body[data-theme="modern-editorial"] .module-card,body[data-theme="modern-editorial"] .panel,body[data-theme="modern-editorial"] .stat-card{border-radius:13px;box-shadow:0 7px 22px rgba(23,40,61,.055)}
body[data-theme="modern-editorial"] .module-icon{background:#e7edf2;color:#263d56;border:1px solid #d7e0e8;border-radius:11px}
body[data-theme="modern-editorial"] .primary-button,body[data-theme="modern-editorial"] .nav-add{background:#243b55;color:#fff;border-radius:9px;text-transform:none;letter-spacing:0}
body[data-theme="modern-editorial"] .eyebrow{color:#71869a}
body[data-theme="modern-editorial"] .stat-icon{background:#e7edf2;color:#314b65}
body[data-theme="modern-editorial"] .theme-option:has(input:checked){background:#edf1f5}

/* Pink Edition — Business & Élégance : rose poudré adulte, sans motifs floraux */
body[data-theme="soft-blush"]{
 --bg:#f7f1f1;--surface:#fffdfd;--surface-2:#f0e3e5;--ink:#3a3033;--muted:#897b7e;
 --accent:#bd8792;--accent-soft:#f0dce0;--accent-strong:#965f6c;--line:#eadcdf;
 --shadow:0 10px 30px rgba(91,57,65,.06);--radius:17px
}
body[data-theme="soft-blush"] .welcome{background:linear-gradient(110deg,#ead6da 0%,#f3e5e7 68%,#fbf5f5 100%)}
body[data-theme="soft-blush"] .module-icon{background:#f5e9eb;color:#986b75;border:1px solid #ead9dd;border-radius:13px}
body[data-theme="soft-blush"] .brand-mark{color:#a97580}
body[data-theme="soft-blush"] .primary-button,body[data-theme="soft-blush"] .nav-add{background:#b87986;color:#fff;border-radius:999px}
body[data-theme="soft-blush"] .theme-option:has(input:checked){background:#fbf1f2}

/* Écran de connexion / inscription : beige lin, très épuré et neutre */
.auth-screen{background:#f3eee7!important;padding:28px 18px!important}
.auth-card{width:min(100%,440px)!important;padding:38px 40px 30px!important;background:#fbf9f5!important;border:1px solid #eee7de!important;border-radius:24px!important;box-shadow:0 14px 42px rgba(62,51,42,.07)!important;backdrop-filter:none!important}
.auth-logo{margin-bottom:27px!important}
.auth-logo-name{color:#34312d!important;font-size:72px!important}
.auth-logo-subtitle{color:#777067!important;letter-spacing:3.5px!important}
.auth-logo .planner-mark{width:48px;height:48px;fill:none;stroke:#927b68;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.auth-heading{margin-bottom:23px!important}
.auth-eyebrow{color:#988675!important;letter-spacing:1.8px!important}
.auth-card h1{font-size:29px!important;color:#34312d!important}
.auth-intro{color:#777067!important}
.auth-field input{background:#fffdfa!important;border-color:#e4dcd2!important;border-radius:999px!important;box-shadow:none!important}
.auth-field input:focus{outline:2px solid rgba(165,139,119,.18)!important;border-color:#b5a18e!important}
.auth-primary{background:#a58b77!important;color:#fff!important;box-shadow:none!important;border-radius:999px!important}
.auth-primary:hover{background:#806b5a!important}
.auth-switch button,.auth-link{color:#806b5a!important}
.auth-privacy{color:#a29a91!important}
@media(max-width:520px){.auth-card{padding:32px 23px 26px!important}.auth-logo-name{font-size:64px!important}}


/* MPU V37 — identités visuelles fidèles aux trois maquettes validées */
body[data-theme="soft-minimal"]{
 --bg:#f4f0e9;--surface:#fffdfa;--surface-2:#eee8df;--ink:#302e2b;--muted:#817b74;
 --accent:#b18e79;--accent-soft:#eadbd0;--accent-strong:#92725f;--line:#e8ded5;
 --shadow:0 12px 34px rgba(61,48,39,.055);--radius:18px;
}
body[data-theme="soft-minimal"] .welcome{background:linear-gradient(112deg,#e9e0d7 0%,#f1eae2 68%,#faf6f0 100%)}
body[data-theme="soft-minimal"] .brand-mark{background:#fffdfa;border:1px solid #e6d9cf;border-radius:14px}
body[data-theme="soft-minimal"] .module-icon{background:#f2e9e1;color:#9b7865}
body[data-theme="soft-minimal"] .stat-icon{background:#efe3d9;color:#a17e69}
body[data-theme="soft-minimal"] .primary-button,.theme-option input:checked + .theme-swatch{background-color:var(--accent)}

/* Working Luxe : bleu nuit profond, ivoire et champagne — sans noir/gris */
body[data-theme="modern-editorial"]{
 --bg:#101f31;--surface:#1b3047;--surface-2:#233a52;--ink:#f7f3ea;--muted:#c0c9d2;
 --accent:#d5b779;--accent-soft:#35475a;--accent-strong:#e7ca91;--line:#385069;
 --shadow:0 14px 34px rgba(0,0,0,.22);--radius:13px;color-scheme:dark;
}
body[data-theme="modern-editorial"] .topbar{border-bottom-color:#344a60}
body[data-theme="modern-editorial"] .brand-mark{background:#1b3047;border:1px solid #52677b;color:#e0c58d;border-radius:9px}
body[data-theme="modern-editorial"] .welcome{background:linear-gradient(112deg,#172b42 0%,#203951 72%,#2b4055 100%);border:1px solid #40566c;border-left:4px solid #d5b779;border-radius:12px}
body[data-theme="modern-editorial"] .welcome-signature{color:#e1c58b;border-left-color:#8c7956}
body[data-theme="modern-editorial"] .stat-card{background:#1b3047;border-color:#3b5269;box-shadow:0 8px 24px rgba(0,0,0,.16)}
body[data-theme="modern-editorial"] .stat-icon{background:#34465a;color:#e2c68e}
body[data-theme="modern-editorial"] .module-card,body[data-theme="modern-editorial"] .panel{background:#1b3047;border-color:#3b5269;color:#f7f3ea;box-shadow:0 6px 18px rgba(0,0,0,.12)}
body[data-theme="modern-editorial"] .module-icon{background:#2c4259;color:#e1c58b;border:1px solid #465b70}
body[data-theme="modern-editorial"] .primary-button{background:#d5b779;color:#17283d;border-radius:8px;text-transform:none;letter-spacing:0}
body[data-theme="modern-editorial"] .primary-button:hover{background:#e7ca91}
body[data-theme="modern-editorial"] .bottom-nav{background:#172b40;border-top-color:#3a5067}
body[data-theme="modern-editorial"] .bottom-nav button{color:#c2cbd3}
body[data-theme="modern-editorial"] .bottom-nav button.active{color:#e3c78f}
body[data-theme="modern-editorial"] .bottom-nav .nav-add{background:#d5b779;color:#17283d}
body[data-theme="modern-editorial"] dialog{background:#1b3047;color:#f7f3ea;border-color:#465b70}
body[data-theme="modern-editorial"] dialog input,body[data-theme="modern-editorial"] dialog select,body[data-theme="modern-editorial"] dialog textarea{background:#14263a;color:#f7f3ea;border-color:#465b70;color-scheme:dark}
body[data-theme="modern-editorial"] .close-button,body[data-theme="modern-editorial"] .avatar{background:#243a51;color:#e1c58b;border-color:#465b70}
body[data-theme="modern-editorial"] .theme-option{background:#20364d;border-color:#52677b}
body[data-theme="modern-editorial"] .theme-option:has(input:checked){background:#2c4054;border-color:#d5b779}
body[data-theme="modern-editorial"] .empty-state{color:#c0c9d2}

/* Pink Edition : rose poudré précis, nude et crème */
body[data-theme="soft-blush"]{
 --bg:#faf1f1;--surface:#fffdfd;--surface-2:#f2e3e6;--ink:#382d32;--muted:#8b777e;
 --accent:#c27f8e;--accent-soft:#f0dce1;--accent-strong:#a76575;--line:#ead8dd;
 --shadow:0 12px 34px rgba(91,52,64,.07);--radius:19px;
}
body[data-theme="soft-blush"] .welcome{background:linear-gradient(110deg,#efdde1 0%,#f7eaed 70%,#fff7f7 100%)}
body[data-theme="soft-blush"] .brand-mark{background:#fffafa;border:1px solid #e8cfd6;color:#bd7c8b}
body[data-theme="soft-blush"] .module-icon{background:#f5e7ea;color:#a76575}
body[data-theme="soft-blush"] .stat-icon{background:#f1dfe4;color:#b87585}
body[data-theme="soft-blush"] .primary-button{background:#bd7d8c;color:#fff;border-radius:999px}
body[data-theme="soft-blush"] .primary-button:hover{background:#a76575}
body[data-theme="soft-blush"] .bottom-nav{background:#fffdfd}

/* Pastilles de sélection cohérentes avec les univers définitifs */
.swatch-minimal i:nth-child(1){background:#f4f0e9}.swatch-minimal i:nth-child(2){background:#b18e79}.swatch-minimal i:nth-child(3){background:#eee8df}
.swatch-editorial i:nth-child(1){background:#101f31}.swatch-editorial i:nth-child(2){background:#d5b779}.swatch-editorial i:nth-child(3){background:#f7f3ea}
.swatch-blush i:nth-child(1){background:#faf1f1}.swatch-blush i:nth-child(2){background:#c27f8e}.swatch-blush i:nth-child(3){background:#f2e3e6}
body[data-theme="modern-editorial"] .theme-option small{color:#c0c9d2}
@media(max-width:640px){body[data-theme="modern-editorial"] .welcome{border-left-width:3px}}

/* MPU V38 — finition premium des univers Cocooning chic et Pink Edition */
/* Les deux thèmes reçoivent le même niveau de détail que Working Luxe,
   tout en conservant leurs palettes validées et une interface sobre. */

/* Cocooning chic — lin, ivoire et nude : chaleureux, texturé, lumineux */
body[data-theme="soft-minimal"] .topbar{
  border-bottom:1px solid #e2d7ca;
  background:linear-gradient(180deg,rgba(255,253,249,.96),rgba(248,244,237,.88));
}
body[data-theme="soft-minimal"] .brand-mark{
  box-shadow:0 5px 15px rgba(112,87,66,.10),inset 0 1px rgba(255,255,255,.9);
}
body[data-theme="soft-minimal"] .welcome{
  position:relative;isolation:isolate;border:1px solid #e2d5c8;
  box-shadow:inset 0 1px rgba(255,255,255,.85),0 12px 28px rgba(91,70,51,.07);
}
body[data-theme="soft-minimal"] .welcome:after{
  content:"";position:absolute;z-index:-1;right:0;top:0;bottom:0;width:34%;
  background:linear-gradient(135deg,transparent 15%,rgba(255,255,255,.22) 15.5%,transparent 16%,transparent 48%,rgba(255,255,255,.16) 48.5%,transparent 49%);
  opacity:.65;pointer-events:none;
}
body[data-theme="soft-minimal"] .welcome-signature{
  border-left:1px solid rgba(151,119,91,.28);
  background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,.30));
}
body[data-theme="soft-minimal"] .welcome-signature strong{color:#92745f;letter-spacing:4px}
body[data-theme="soft-minimal"] .signature-rule{background:#b89a80;width:64px;height:2px}
body[data-theme="soft-minimal"] .stat-card,
body[data-theme="soft-minimal"] .module-card,
body[data-theme="soft-minimal"] .panel{
  background:linear-gradient(145deg,#fffefa 0%,#fbf7f0 100%);
  border:1px solid #e5dbd0;
  box-shadow:0 7px 20px rgba(89,68,48,.055),inset 0 1px rgba(255,255,255,.95);
}
body[data-theme="soft-minimal"] .stat-card{position:relative;overflow:hidden}
body[data-theme="soft-minimal"] .stat-card:before{
  content:"";position:absolute;left:0;top:15px;bottom:15px;width:3px;border-radius:0 3px 3px 0;background:#c4a78f;
}
body[data-theme="soft-minimal"] .stat-icon,
body[data-theme="soft-minimal"] .module-icon{
  background:linear-gradient(145deg,#f6eee5,#e9ddd0);color:#92745f;
  border:1px solid #e4d6c8;box-shadow:inset 0 1px rgba(255,255,255,.9);
}
body[data-theme="soft-minimal"] .module-card{min-height:91px;padding:19px;gap:16px}
body[data-theme="soft-minimal"] .module-card:hover{
  transform:translateY(-3px);border-color:#c9ad96;
  box-shadow:0 13px 26px rgba(100,75,53,.10);
}
body[data-theme="soft-minimal"] .module-card strong{letter-spacing:-.2px}
body[data-theme="soft-minimal"] .section-heading{padding-bottom:10px;border-bottom:1px solid #e6dcd1}
body[data-theme="soft-minimal"] .section-heading h2,
body[data-theme="soft-minimal"] .panel h3,
body[data-theme="soft-minimal"] .calendar-head strong{
  font-family:Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.25px;
}
body[data-theme="soft-minimal"] .eyebrow{color:#a1826a;letter-spacing:2px}
body[data-theme="soft-minimal"] .primary-button,
body[data-theme="soft-minimal"] .nav-add{
  background:linear-gradient(135deg,#b99a80,#94745e);color:#fff;
  border:1px solid rgba(125,93,69,.25);border-radius:11px;
  box-shadow:0 6px 15px rgba(125,93,69,.20),inset 0 1px rgba(255,255,255,.25);
}
body[data-theme="soft-minimal"] .primary-button:hover,
body[data-theme="soft-minimal"] .nav-add:hover{background:linear-gradient(135deg,#c5a88f,#9e7e67)}
body[data-theme="soft-minimal"] .bottom-nav{
  background:rgba(255,253,249,.97);border-top:1px solid #e3d8cc;
  box-shadow:0 -7px 24px rgba(83,63,45,.055);backdrop-filter:blur(12px);
}
body[data-theme="soft-minimal"] .bottom-nav button.active{color:#98775f}
body[data-theme="soft-minimal"] dialog{
  background:linear-gradient(145deg,#fffefa,#f8f2e9);border:1px solid #dfd1c3;
  box-shadow:0 26px 80px rgba(67,49,34,.22);
}
body[data-theme="soft-minimal"] dialog input,
body[data-theme="soft-minimal"] dialog select,
body[data-theme="soft-minimal"] dialog textarea{
  background:#fffdfa!important;border-color:#e3d8cd!important;color:#34312d!important;
}
body[data-theme="soft-minimal"] .calendar-grid .calendar-cell{border-radius:10px;background:#fffefa}
body[data-theme="soft-minimal"] .calendar-grid .calendar-cell.selected{background:#a88a73;border-color:#a88a73}

/* Pink Edition — Business & Élégance : rose poudré, crème, détails éditoriaux */
body[data-theme="soft-blush"] .topbar{
  border-bottom:1px solid #e8d3d9;
  background:linear-gradient(180deg,rgba(255,253,253,.97),rgba(250,241,243,.91));
}
body[data-theme="soft-blush"] .brand-mark{
  box-shadow:0 5px 17px rgba(164,99,116,.13),inset 0 1px rgba(255,255,255,.95);
}
body[data-theme="soft-blush"] .welcome{
  position:relative;isolation:isolate;border:1px solid #e6cbd2;
  box-shadow:inset 0 1px rgba(255,255,255,.82),0 13px 30px rgba(142,82,99,.09);
}
body[data-theme="soft-blush"] .welcome:after{
  content:"";position:absolute;z-index:-1;right:0;top:0;bottom:0;width:32%;
  background:linear-gradient(135deg,transparent 0 48%,rgba(255,255,255,.26) 48.5% 49%,transparent 49.5%);
  pointer-events:none;
}
body[data-theme="soft-blush"] .welcome-signature{
  border-left:1px solid rgba(176,112,128,.30);
  background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,.32));
}
body[data-theme="soft-blush"] .welcome-signature strong{color:#b87585;letter-spacing:4px}
body[data-theme="soft-blush"] .signature-rule{background:#c58b98;width:64px;height:2px}
body[data-theme="soft-blush"] .stat-card,
body[data-theme="soft-blush"] .module-card,
body[data-theme="soft-blush"] .panel{
  background:linear-gradient(145deg,#fffefe 0%,#fff9fa 100%);
  border:1px solid #ead6dc;
  box-shadow:0 8px 22px rgba(143,83,99,.065),inset 0 1px rgba(255,255,255,.98);
}
body[data-theme="soft-blush"] .stat-card{position:relative;overflow:hidden}
body[data-theme="soft-blush"] .stat-card:before{
  content:"";position:absolute;left:0;top:15px;bottom:15px;width:3px;border-radius:0 3px 3px 0;background:#c98c9a;
}
body[data-theme="soft-blush"] .stat-icon,
body[data-theme="soft-blush"] .module-icon{
  background:linear-gradient(145deg,#faeef1,#f0dce1);color:#a76575;
  border:1px solid #ebd2d9;box-shadow:inset 0 1px rgba(255,255,255,.95);
}
body[data-theme="soft-blush"] .module-card{min-height:91px;padding:19px;gap:16px}
body[data-theme="soft-blush"] .module-card:hover{
  transform:translateY(-3px);border-color:#d3a2ad;
  box-shadow:0 13px 27px rgba(143,83,99,.12);
}
body[data-theme="soft-blush"] .module-card strong{letter-spacing:-.2px}
body[data-theme="soft-blush"] .section-heading{padding-bottom:10px;border-bottom:1px solid #ead8dd}
body[data-theme="soft-blush"] .section-heading h2,
body[data-theme="soft-blush"] .panel h3,
body[data-theme="soft-blush"] .calendar-head strong{
  font-family:Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.25px;
}
body[data-theme="soft-blush"] .eyebrow{color:#bd7e8d;letter-spacing:2px}
body[data-theme="soft-blush"] .primary-button,
body[data-theme="soft-blush"] .nav-add{
  background:linear-gradient(135deg,#c88997,#ad6d7d);color:#fff;
  border:1px solid rgba(151,83,101,.18);border-radius:999px;
  box-shadow:0 6px 16px rgba(165,94,112,.22),inset 0 1px rgba(255,255,255,.23);
}
body[data-theme="soft-blush"] .primary-button:hover,
body[data-theme="soft-blush"] .nav-add:hover{background:linear-gradient(135deg,#d194a1,#b77786)}
body[data-theme="soft-blush"] .bottom-nav{
  background:rgba(255,253,253,.97);border-top:1px solid #ead6dc;
  box-shadow:0 -7px 24px rgba(143,83,99,.07);backdrop-filter:blur(12px);
}
body[data-theme="soft-blush"] .bottom-nav button.active{color:#b87585}
body[data-theme="soft-blush"] dialog{
  background:linear-gradient(145deg,#fffefe,#fbf0f2);border:1px solid #e7cfd6;
  box-shadow:0 26px 80px rgba(83,43,55,.22);
}
body[data-theme="soft-blush"] dialog input,
body[data-theme="soft-blush"] dialog select,
body[data-theme="soft-blush"] dialog textarea{
  background:#fffdfd!important;border-color:#ead6dc!important;color:#382d32!important;
}
body[data-theme="soft-blush"] .calendar-grid .calendar-cell{border-radius:12px;background:#fffdfd}
body[data-theme="soft-blush"] .calendar-grid .calendar-cell.selected{background:#bd7d8c;border-color:#bd7d8c}

/* Détails partagés : cohérence des états interactifs et des petits écrans */
body[data-theme="soft-minimal"] .calendar-head button,
body[data-theme="soft-blush"] .calendar-head button{border-radius:10px;box-shadow:0 2px 7px rgba(50,35,25,.045)}
body[data-theme="soft-minimal"] input:focus,
body[data-theme="soft-minimal"] select:focus,
body[data-theme="soft-minimal"] textarea:focus{box-shadow:0 0 0 3px rgba(165,139,119,.14)}
body[data-theme="soft-blush"] input:focus,
body[data-theme="soft-blush"] select:focus,
body[data-theme="soft-blush"] textarea:focus{box-shadow:0 0 0 3px rgba(194,127,142,.15)}
@media(max-width:700px){
 body[data-theme="soft-minimal"] .welcome,body[data-theme="soft-blush"] .welcome{padding:23px 18px;min-height:150px}
 body[data-theme="soft-minimal"] .welcome-signature,body[data-theme="soft-blush"] .welcome-signature{width:88px;min-width:88px;padding-left:12px}
 body[data-theme="soft-minimal"] .welcome-signature strong,body[data-theme="soft-blush"] .welcome-signature strong{font-size:29px}
 body[data-theme="soft-minimal"] .module-card,body[data-theme="soft-blush"] .module-card{padding:14px;min-height:78px}
}

/* MPU V39 — accents champagne doré pour les univers Cocooning et Pink */
:root{--mpu-champagne:#c6a66d;--mpu-champagne-light:#ead9b4;--mpu-champagne-deep:#9d7c45}
/* Cocooning chic : ivoire et lin relevés de champagne doux */
body[data-theme="soft-minimal"] .brand-mark{border-color:#d8c49d;color:#a98750}
body[data-theme="soft-minimal"] .welcome{border-color:#d8c49d;box-shadow:inset 0 1px rgba(255,255,255,.9),0 12px 30px rgba(157,124,69,.10)}
body[data-theme="soft-minimal"] .welcome-signature{border-left-color:rgba(198,166,109,.48)}
body[data-theme="soft-minimal"] .welcome-signature strong,
body[data-theme="soft-minimal"] .eyebrow{color:#a98750}
body[data-theme="soft-minimal"] .signature-rule{background:linear-gradient(90deg,#b18e55,#e4d2a9)}
body[data-theme="soft-minimal"] .stat-card:before{background:linear-gradient(180deg,#e4d2a9,#b18e55)}
body[data-theme="soft-minimal"] .stat-icon,
body[data-theme="soft-minimal"] .module-icon{border-color:#e5d5b5;color:#a98750}
body[data-theme="soft-minimal"] .module-card:hover{border-color:#c6a66d;box-shadow:0 13px 28px rgba(157,124,69,.13)}
body[data-theme="soft-minimal"] .section-heading{border-bottom-color:#e8ddc8}
body[data-theme="soft-minimal"] .primary-button,
body[data-theme="soft-minimal"] .nav-add{background:linear-gradient(135deg,#d5bd8d 0%,#b18e55 58%,#9d7c45 100%);border-color:#b18e55;box-shadow:0 6px 16px rgba(157,124,69,.22),inset 0 1px rgba(255,255,255,.38)}
body[data-theme="soft-minimal"] .primary-button:hover,
body[data-theme="soft-minimal"] .nav-add:hover{background:linear-gradient(135deg,#e0cca2,#b9945d)}
body[data-theme="soft-minimal"] .bottom-nav{border-top-color:#e2d2b2}
body[data-theme="soft-minimal"] .bottom-nav button.active{color:#a98750}
body[data-theme="soft-minimal"] .calendar-grid .calendar-cell.selected{background:linear-gradient(135deg,#cbb27f,#a98750);border-color:#a98750}
body[data-theme="soft-minimal"] input:focus,
body[data-theme="soft-minimal"] select:focus,
body[data-theme="soft-minimal"] textarea:focus{border-color:#c6a66d!important;box-shadow:0 0 0 3px rgba(198,166,109,.20)}
/* Pink Edition : rose poudré associé à un champagne lumineux, jamais jaune vif */
body[data-theme="soft-blush"] .brand-mark{border-color:#dfc99f;color:#ad8950;box-shadow:0 5px 16px rgba(173,137,80,.10),inset 0 1px rgba(255,255,255,.95)}
body[data-theme="soft-blush"] .welcome{border-color:#dfc99f;box-shadow:inset 0 1px rgba(255,255,255,.92),0 12px 30px rgba(173,137,80,.10)}
body[data-theme="soft-blush"] .welcome-signature{border-left-color:rgba(198,166,109,.48)}
body[data-theme="soft-blush"] .welcome-signature strong,
body[data-theme="soft-blush"] .eyebrow{color:#ad8950}
body[data-theme="soft-blush"] .signature-rule{background:linear-gradient(90deg,#c6a66d,#ead9b4)}
body[data-theme="soft-blush"] .stat-card:before{background:linear-gradient(180deg,#ead9b4,#c6a66d)}
body[data-theme="soft-blush"] .stat-card,
body[data-theme="soft-blush"] .module-card,
body[data-theme="soft-blush"] .panel{border-color:#eadbc1}
body[data-theme="soft-blush"] .stat-icon,
body[data-theme="soft-blush"] .module-icon{border:1px solid #eadbc1;color:#ad8950}
body[data-theme="soft-blush"] .module-card:hover{border-color:#c6a66d;box-shadow:0 13px 28px rgba(173,137,80,.13)}
body[data-theme="soft-blush"] .section-heading{border-bottom-color:#eadbc9}
body[data-theme="soft-blush"] .primary-button,
body[data-theme="soft-blush"] .nav-add{background:linear-gradient(135deg,#d8b985 0%,#bd9a61 58%,#a98750 100%);color:#fff;border:1px solid #b8955c;border-radius:12px;box-shadow:0 6px 16px rgba(173,137,80,.20),inset 0 1px rgba(255,255,255,.35)}
body[data-theme="soft-blush"] .primary-button:hover,
body[data-theme="soft-blush"] .nav-add:hover{background:linear-gradient(135deg,#e2c99d,#bd9a61)}
body[data-theme="soft-blush"] .bottom-nav{border-top-color:#eadbc1}
body[data-theme="soft-blush"] .bottom-nav button.active{color:#ad8950}
body[data-theme="soft-blush"] .calendar-grid .calendar-cell.selected{background:linear-gradient(135deg,#d5b77f,#ad8950);border-color:#ad8950}
body[data-theme="soft-blush"] input:focus,
body[data-theme="soft-blush"] select:focus,
body[data-theme="soft-blush"] textarea:focus{border-color:#c6a66d!important;box-shadow:0 0 0 3px rgba(198,166,109,.20)}

/* MPU V40 — accueil d'authentification : luxe discret, papeterie premium */
.auth-screen{
 min-height:100svh;display:grid;place-items:center;padding:34px 18px 46px;overflow:hidden;
 background:radial-gradient(ellipse at 50% 8%,rgba(255,255,255,.96) 0%,rgba(250,245,237,.92) 42%,transparent 72%),
 linear-gradient(135deg,#eee5d9 0%,#f8f3eb 42%,#e9dfd2 100%);position:relative;
}
.auth-screen:before,.auth-screen:after{content:"";position:absolute;pointer-events:none;border:1px solid rgba(177,143,91,.34);border-radius:50%;transform:rotate(-18deg)}
.auth-screen:before{width:118vw;height:38vw;min-height:300px;top:-24vw;left:-10vw;box-shadow:0 1px 0 rgba(255,255,255,.72),0 0 34px rgba(194,164,117,.08)}
.auth-screen:after{width:110vw;height:32vw;min-height:250px;bottom:-23vw;right:-14vw;border-color:rgba(177,143,91,.23)}
.auth-wrap{width:min(100%,590px);position:relative;z-index:1}
.auth-branding{text-align:center;margin:0 auto 24px}
.auth-logo{display:flex;flex-direction:column;align-items:center;gap:7px;text-decoration:none;color:#493a2b}
.auth-planner-emblem{width:58px;height:58px;display:grid;place-items:center;color:#a47f4c;position:relative}
.auth-planner-emblem:before{content:"";position:absolute;inset:5px;border:1px solid rgba(164,127,76,.35);border-radius:15px;transform:rotate(-5deg)}
.auth-planner-emblem svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(255,255,255,.9))}
.auth-logo-name{font:400 clamp(34px,6vw,48px)/1.05 Georgia,'Times New Roman',serif;letter-spacing:-1.4px;color:#55402d}
.auth-logo-subtitle{font:600 9px/1.6 'DM Sans',sans-serif;letter-spacing:3px;color:#927a5d}
.auth-card{width:100%;padding:35px 42px 27px;background:linear-gradient(145deg,rgba(255,253,249,.96),rgba(248,242,233,.96));border:1px solid rgba(183,151,105,.58);border-radius:25px;box-shadow:0 18px 48px rgba(87,68,46,.11),inset 0 1px 0 rgba(255,255,255,.96);backdrop-filter:blur(8px);position:relative}
.auth-card:before{content:"";position:absolute;inset:5px;border:1px solid rgba(255,255,255,.72);border-radius:20px;pointer-events:none}
.auth-heading{text-align:center;margin:0 auto 25px;max-width:440px;position:relative}
.auth-eyebrow{margin:0 0 9px;color:#a18155;font:700 9px/1.5 'DM Sans',sans-serif;letter-spacing:2.4px}
.auth-card h1{font:400 clamp(29px,5vw,36px)/1.16 Georgia,'Times New Roman',serif;letter-spacing:-.5px;margin:0 0 8px;color:#563e28;text-align:center}
.auth-intro{color:#756a5e;font:400 13px/1.6 'DM Sans',sans-serif;margin:0 auto;max-width:380px}
.auth-form{display:grid;gap:12px;position:relative}
.auth-field{display:grid;gap:7px;margin:0;color:#716456;font:600 11px/1.4 'DM Sans',sans-serif;letter-spacing:.15px}
.auth-field input{width:100%;min-height:49px;margin:0;padding:12px 16px;border:1px solid #d9cbb8;border-radius:12px;background:rgba(255,255,255,.78);color:#3c332a;font:400 13px 'DM Sans',sans-serif;box-shadow:inset 0 1px 2px rgba(80,60,40,.025),0 2px 5px rgba(80,60,40,.025);transition:border-color .18s,box-shadow .18s}
.auth-field input::placeholder{color:#a59a8d;opacity:1}
.auth-field input:focus{outline:0;border-color:#b99a6d;box-shadow:0 0 0 3px rgba(185,154,109,.16),0 2px 7px rgba(80,60,40,.04)}
.auth-primary{width:100%;min-height:51px;margin-top:8px;padding:12px 22px;border:1px solid #a98651;border-radius:13px;background:linear-gradient(110deg,#b99868 0%,#d0b783 48%,#ad8955 100%);color:#fffdf8;font:600 13px 'DM Sans',sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:15px;box-shadow:0 5px 13px rgba(123,91,51,.16),inset 0 1px 0 rgba(255,255,255,.45);text-shadow:0 1px 1px rgba(80,57,30,.12);transition:filter .18s,transform .18s}
.auth-primary:hover{filter:brightness(1.045);transform:translateY(-1px)}.auth-primary span{font-size:20px;line-height:1;font-weight:400}.auth-primary:disabled{opacity:.65;cursor:wait;transform:none}
.auth-login-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:1px}
.auth-remember{display:flex;align-items:center;gap:7px;color:#746858;font:500 11px 'DM Sans',sans-serif}.auth-remember input{accent-color:#a98651;width:14px;height:14px}
.auth-switch{text-align:center;font:400 11px 'DM Sans',sans-serif;color:#786d60;margin:21px 0 0;position:relative}
.auth-switch button,.auth-link{border:0;background:none;color:#8e6d42;font:700 11px 'DM Sans',sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px}
.auth-link{justify-self:end;margin:0}.auth-message{display:none;margin:14px 0 0;padding:11px 13px;border:1px solid #e3d5c2;border-radius:11px;background:#f5eee4;color:#5d5143;font:400 11px/1.55 'DM Sans',sans-serif;position:relative}.auth-message.visible{display:block}.auth-message.error{background:#f8e8e5;color:#8a3428;border-color:#e8c7c0}
.auth-divider{display:flex;align-items:center;gap:13px;margin:23px 0 17px;color:#a18a6c;font:600 8px 'DM Sans',sans-serif;letter-spacing:1.8px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#cbb58f)}.auth-divider:after{background:linear-gradient(90deg,#cbb58f,transparent)}
.auth-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:0;position:relative}
.auth-benefit{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:0 9px;color:#665746;font:500 10px/1.45 'DM Sans',sans-serif}.auth-benefit+.auth-benefit{border-left:1px solid rgba(187,158,117,.45)}
.auth-benefit-icon{width:39px;height:39px;display:grid;place-items:center;border:1px solid #dfcfb6;border-radius:12px;background:linear-gradient(145deg,#fffdf8,#f1e6d5);color:#9b794b;box-shadow:0 3px 8px rgba(95,72,42,.08),inset 0 1px rgba(255,255,255,.95)}.auth-benefit-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.auth-privacy{border-top:1px solid rgba(187,158,117,.35);padding-top:13px;margin:18px 0 0;text-align:center;color:#958777;font:400 9px/1.5 'DM Sans',sans-serif}
@media(max-width:560px){.auth-screen{padding:22px 13px 30px}.auth-branding{margin-bottom:17px}.auth-planner-emblem{width:49px;height:49px}.auth-planner-emblem svg{width:42px;height:42px}.auth-logo-name{font-size:35px}.auth-logo-subtitle{font-size:8px;letter-spacing:2px}.auth-card{padding:28px 21px 22px;border-radius:21px}.auth-card:before{inset:4px;border-radius:17px}.auth-heading{margin-bottom:21px}.auth-card h1{font-size:29px}.auth-benefit{font-size:9px;padding:0 5px}.auth-benefit-icon{width:36px;height:36px}.auth-login-options{align-items:flex-start}.auth-remember,.auth-link{font-size:10px}}
@media(min-width:900px){.auth-wrap{width:min(100%,620px)}.auth-card{padding:38px 50px 29px}}


/* MPU V41 — page de connexion définitive : maquette verticale validée */
.auth-screen{
 min-height:100svh!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;
 padding:34px 16px 48px!important;overflow-x:hidden!important;overflow-y:auto!important;
 background:
  radial-gradient(ellipse at 50% 8%,rgba(255,255,255,.96) 0%,rgba(250,244,236,.88) 44%,transparent 72%),
  linear-gradient(135deg,#eee4d8 0%,#faf5ee 48%,#e9ded1 100%)!important;
 position:relative!important;
}
.auth-screen:before{
 content:""!important;position:absolute!important;pointer-events:none!important;
 width:min(760px,94vw)!important;height:300px!important;top:-190px!important;left:-180px!important;
 border:1px solid rgba(178,139,82,.22)!important;border-radius:50%!important;transform:rotate(-22deg)!important;
}
.auth-screen:after{
 content:""!important;position:absolute!important;pointer-events:none!important;
 width:min(700px,90vw)!important;height:260px!important;bottom:-190px!important;right:-210px!important;
 border:1px solid rgba(178,139,82,.18)!important;border-radius:50%!important;transform:rotate(-22deg)!important;
}
.auth-wrap{width:min(100%,570px)!important;position:relative!important;z-index:1!important}
.auth-branding{text-align:center!important;margin:0 auto 18px!important}
.auth-logo{display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;text-decoration:none!important;color:#513c24!important}
.auth-planner-emblem{width:62px!important;height:62px!important;display:grid!important;place-items:center!important;color:#a77b3e!important;position:relative!important}
.auth-planner-emblem:before{content:none!important}
.auth-planner-emblem svg{width:58px!important;height:58px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.3!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 1px 1px rgba(139,99,43,.13))}
.auth-logo-name{font:italic 500 clamp(34px,6vw,47px)/1.05 Georgia,'Times New Roman',serif!important;letter-spacing:-1.5px!important;color:#654a29!important}
.auth-logo-subtitle{font:600 9px/1.4 'DM Sans',sans-serif!important;letter-spacing:2.3px!important;color:#8c704a!important;margin-top:3px!important}
.auth-card{
 width:100%!important;max-width:570px!important;padding:28px 34px 25px!important;
 background:linear-gradient(155deg,rgba(255,252,247,.97),rgba(247,237,225,.96))!important;
 border:1px solid rgba(174,132,72,.78)!important;border-radius:27px!important;
 box-shadow:0 16px 42px rgba(88,65,39,.13),inset 0 0 0 4px rgba(255,255,255,.54)!important;
 backdrop-filter:none!important;position:relative!important;overflow:hidden!important;
}
.auth-card:before{
 content:""!important;position:absolute!important;inset:6px!important;border:1px solid rgba(190,157,108,.19)!important;
 border-radius:21px!important;pointer-events:none!important;
}
.auth-heading,.auth-form,.auth-divider,.auth-signup-teaser,.auth-message,.auth-switch,.auth-privacy{position:relative!important;z-index:1!important}
.auth-heading{text-align:center!important;margin:0 0 18px!important}
.auth-eyebrow{display:none!important}
.auth-card h1{font:500 34px/1.12 Georgia,'Times New Roman',serif!important;letter-spacing:-.7px!important;color:#604522!important;margin:0 0 5px!important}
.auth-intro{font:500 13px/1.5 'DM Sans',sans-serif!important;color:#37322d!important;margin:0!important}
.auth-form{display:grid!important;gap:10px!important}
.auth-field{display:block!important;position:relative!important;margin:0!important;color:#6a5337!important;font:500 12px 'DM Sans',sans-serif!important}
.auth-field>span:not(.field-icon){display:block!important;margin:0 0 5px!important}
.auth-field input{
 width:100%!important;min-height:47px!important;padding:12px 16px!important;
 border:1px solid #d9c7ad!important;border-radius:13px!important;
 background:linear-gradient(180deg,#fffaf3,#f8eee2)!important;color:#40362a!important;
 box-shadow:0 3px 7px rgba(94,68,37,.09),inset 0 1px 0 rgba(255,255,255,.9)!important;
 font:500 13px 'DM Sans',sans-serif!important;
}
.auth-field-icon input{padding-left:49px!important}
.auth-field-icon .field-icon{position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%)!important;color:#876337!important;font:22px Georgia,serif!important;z-index:2!important}
.auth-field input::placeholder{color:#655c51!important;opacity:1!important}
.auth-field input:focus{outline:2px solid rgba(178,139,82,.20)!important;border-color:#b18a53!important}
.auth-login-options{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 2px 1px!important}
.auth-remember{display:flex!important;align-items:center!important;gap:7px!important;color:#554b3e!important;font:500 11px 'DM Sans',sans-serif!important}
.auth-remember input{width:14px!important;height:14px!important;accent-color:#a77b3e!important}
.auth-link,.auth-switch button{color:#876334!important;font:600 11px 'DM Sans',sans-serif!important}
.auth-forgot{margin:0!important;padding:3px!important}
.auth-primary{
 min-height:49px!important;margin:2px 4px 0!important;width:calc(100% - 8px)!important;
 border:1px solid #9b7138!important;border-radius:999px!important;
 background:linear-gradient(180deg,#c49a5d 0%,#a87938 52%,#80551f 100%)!important;
 color:#fffdf8!important;font:600 14px 'DM Sans',sans-serif!important;
 box-shadow:0 4px 9px rgba(91,61,26,.22),inset 0 1px 1px rgba(255,255,255,.42)!important;
}
.auth-primary:hover{filter:brightness(1.04)!important}
.auth-divider{display:flex!important;align-items:center!important;gap:12px!important;margin:17px 0 12px!important;color:#8d6b3e!important;font:700 11px 'DM Sans',sans-serif!important}
.auth-divider:before,.auth-divider:after{content:""!important;height:1px!important;flex:1!important;background:linear-gradient(90deg,transparent,#b89562)!important}
.auth-divider:after{background:linear-gradient(90deg,#b89562,transparent)!important}
.auth-divider span{padding:4px 13px!important;border:1px solid #e1cfb4!important;border-radius:999px!important;background:#fffaf3!important}
.auth-signup-teaser{text-align:center!important}
.auth-signup-teaser h2{font:500 29px/1.15 Georgia,'Times New Roman',serif!important;color:#604522!important;margin:0 0 4px!important}
.auth-signup-teaser>p{font:500 12px/1.5 'DM Sans',sans-serif!important;color:#37322d!important;margin:0 0 12px!important}
.auth-benefits{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:0!important;margin:5px 0 15px!important}
.auth-benefit{display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;text-align:center!important;padding:0 8px!important;color:#554631!important;font:500 10px/1.4 'DM Sans',sans-serif!important}
.auth-benefit+.auth-benefit{border-left:1px solid rgba(174,132,72,.35)!important}
.auth-benefit-icon{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;border:1px solid #dfc9a8!important;border-radius:12px!important;background:linear-gradient(145deg,#fffaf1,#efdfc8)!important;color:#936a32!important;box-shadow:0 3px 7px rgba(96,68,32,.11)!important}
.auth-benefit-icon svg{width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.auth-secondary{
 width:100%!important;min-height:47px!important;border:1px solid #b58b4f!important;border-radius:999px!important;
 background:linear-gradient(180deg,#fffaf2,#f2e5d2)!important;color:#705128!important;
 font:600 13px 'DM Sans',sans-serif!important;box-shadow:0 3px 8px rgba(91,61,26,.10),inset 0 1px 0 white!important;
}
.auth-secondary:hover{background:#f5e8d5!important}
.auth-message{margin:12px 0 0!important;font-size:12px!important}
.auth-switch{text-align:center!important;font:400 11px 'DM Sans',sans-serif!important;color:#716657!important;margin:15px 0 0!important}
.auth-privacy{margin:11px 0 0!important;text-align:center!important;color:#968875!important;font:400 9px/1.4 'DM Sans',sans-serif!important}
@media(max-width:560px){
 .auth-screen{padding:19px 12px 28px!important}
 .auth-branding{margin-bottom:13px!important}
 .auth-planner-emblem,.auth-planner-emblem svg{width:49px!important;height:49px!important}
 .auth-logo-name{font-size:34px!important}
 .auth-logo-subtitle{font-size:7px!important;letter-spacing:1.7px!important}
 .auth-card{padding:24px 19px 21px!important;border-radius:23px!important}
 .auth-card h1{font-size:30px!important}
 .auth-signup-teaser h2{font-size:26px!important}
 .auth-benefit{font-size:9px!important;padding:0 4px!important}
 .auth-benefit-icon{width:37px!important;height:37px!important}
}

.auth-screen[data-mode="login"] .auth-switch{display:none!important}
.auth-screen[data-mode="signup"] .auth-divider,
.auth-screen[data-mode="signup"] .auth-signup-teaser{display:none!important}


/* V42 — bascule nette entre authentification et espace personnel */
#authScreen[hidden], #appShell[hidden] { display: none !important; }
body.mpu-authenticated #authScreen { display: none !important; }
body.mpu-authenticated #appShell { display: block !important; }

/* V43 — gestion du foyer et des autorisations */
.collaboration-dialog{width:min(760px,calc(100% - 28px));max-height:min(88vh,900px);overflow:auto}
.collab-section{border-top:1px solid var(--line,#e8dfd5);padding:18px 0;margin-top:12px}
.collab-section h3{margin:0 0 12px;font-size:1.02rem}
.collab-invite-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.collab-invite-form label{margin:0}
.collab-help{font-size:.86rem;line-height:1.5;margin:10px 0 0}
.collab-result,.collab-card,.collab-empty{background:var(--surface-soft,#f7f3ee);border:1px solid var(--line,#e8dfd5);border-radius:14px;padding:14px;margin-top:12px}
.collab-result p{margin:7px 0 10px;font-size:.9rem}
.collab-link-row{display:flex;gap:8px}
.collab-link-row input{min-width:0;flex:1;font-size:.8rem}
.collab-link-row button{border:0;border-radius:9px;padding:0 14px;background:var(--ink,#27384a);color:white}
.collab-card{margin:0 0 12px;background:var(--surface,#fff)}
.collab-card-head,.collab-incoming-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.collab-card-head strong,.collab-incoming-row strong{display:block}
.collab-card-head small,.collab-incoming-row small{display:block;color:var(--muted,#777);font-size:.82rem;margin-top:3px}
.collab-card>p{font-size:.86rem;margin:12px 0}
.collab-module-list{display:grid;gap:7px}
.collab-module-row{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line,#eee7df)}
.collab-module-row label{display:flex;align-items:center;gap:9px;margin:0;font-size:.9rem}
.collab-module-row select{margin:0;padding:8px;font-size:.84rem}
.collab-module-row select:disabled{opacity:.45}
.danger-link{border:0;background:transparent;color:#a34d4d;text-decoration:underline;font-size:.84rem}
.collab-incoming-row{padding:10px 0;border-bottom:1px solid var(--line,#eee7df)}
.permission-pill{font-size:.78rem;border-radius:30px;background:var(--surface-soft,#f7f3ee);padding:6px 9px;white-space:nowrap}
.collab-pending{margin-top:14px}
.collab-pending h4{margin:0 0 6px;font-size:.9rem}
.collab-empty{font-size:.9rem;line-height:1.55}
@media(max-width:560px){.collab-invite-form{grid-template-columns:1fr}.collab-invite-form button{width:100%}.collab-module-row{grid-template-columns:minmax(0,1fr) 128px}.collab-link-row{flex-direction:column}.collab-link-row button{padding:10px}}


/* Évite le flash de l'écran de connexion pendant la restauration de session. */
body.auth-checking #authScreen { visibility: hidden !important; }
body.auth-checking::before {
  content: "Chargement de votre espace…";
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #f7eee7; color: #806c57; font: 500 14px/1.4 system-ui, sans-serif;
  z-index: 99999;
}

/* V44 — repères visuels des éléments provenant d'un partage familial */
.shared-entry-label{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:4px 8px;border-radius:999px;background:rgba(112,137,112,.12);color:#61745f;font-size:.72rem;font-weight:600;}

/* V46 — accès au partage familial depuis la rubrique Famille */
.family-sharing-entry{margin-top:18px;padding:20px;border:1px solid var(--line, #e8dfdc);border-radius:18px;background:var(--card, #fff)}
.family-sharing-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.family-sharing-head>div{flex:1;min-width:220px}
.family-sharing-head .subsection-title{margin:0 0 6px}
.family-sharing-head .muted{margin:0}
@media(max-width:600px){.family-sharing-head{align-items:stretch}.family-sharing-head .primary-button{width:100%}}

/* MyORDEA V47 — identité validée : logo 3, sans monogramme M ni décor superflu */
.auth-branding{margin:0 auto 20px!important;text-align:center!important}
.auth-logo{display:block!important;width:min(100%,390px)!important;margin:0 auto!important}
.auth-brand-logo{display:block;width:100%;height:auto;max-height:190px;object-fit:contain;margin:0 auto}
@media(max-width:560px){.auth-branding{margin-bottom:14px!important}.auth-logo{width:min(100%,330px)!important}.auth-brand-logo{max-height:155px}}


/* MyORDEA V48 — identité premium : logo intégré et agenda couture */
.auth-branding{margin:0 auto 28px!important}
.auth-logo{width:min(100%,500px)!important;max-width:500px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.auth-brand-logo{width:100%;max-height:245px!important;object-fit:contain;background:transparent!important;mix-blend-mode:normal;filter:drop-shadow(0 8px 13px rgba(105,77,42,.08))}
@media(max-width:560px){.auth-branding{margin-bottom:18px!important}.auth-logo{width:min(100%,390px)!important}.auth-brand-logo{max-height:190px!important}}
/* Le calendrier garde les mêmes codes luxe quel que soit le thème choisi. */
.calendar-head{margin:22px 0 16px;padding:15px 18px;border:1px solid #e4d4b8;border-radius:16px;background:linear-gradient(135deg,#fffdf9 0%,#f6efe4 100%);box-shadow:0 8px 22px rgba(92,69,39,.055)}
.calendar-head strong{font:600 clamp(18px,2.5vw,23px) Georgia,'Times New Roman',serif!important;letter-spacing:.15px;color:#57432d}
.calendar-head button{width:38px;height:38px;padding:0!important;border:1px solid #e0cfad!important;border-radius:50%!important;background:linear-gradient(145deg,#fffefa,#f1e6d4)!important;color:#9b794b!important;font-size:22px;box-shadow:0 3px 9px rgba(91,68,39,.07)!important}
.calendar-grid{gap:8px!important;padding:12px;border:1px solid #e9decb;border-radius:18px;background:linear-gradient(145deg,#fffefa,#f8f3eb);box-shadow:0 10px 26px rgba(75,57,36,.045)}
.calendar-grid .weekday{min-height:32px;color:#987d56!important;font:700 10px 'Manrope','DM Sans',sans-serif;letter-spacing:1.25px;text-transform:uppercase}
.calendar-grid .calendar-cell{min-height:126px!important;padding:9px 7px!important;border:1px solid #e9dfd1!important;border-radius:12px!important;background:rgba(255,255,255,.82)!important;color:#4b4034!important;box-shadow:inset 0 1px rgba(255,255,255,.95);transition:border-color .18s,box-shadow .18s,transform .18s}
.calendar-grid .calendar-cell:hover{border-color:#c9ad7d!important;box-shadow:0 5px 13px rgba(112,83,44,.08);transform:translateY(-1px)}
.calendar-grid .calendar-cell.outside{opacity:.32}
.calendar-grid .calendar-number{font:600 15px Georgia,'Times New Roman',serif!important;color:#594630}
.calendar-grid .calendar-cell.selected{background:linear-gradient(145deg,#cdb17d,#a9844e)!important;border-color:#a9844e!important;color:#fff!important;box-shadow:0 5px 14px rgba(151,116,62,.22)!important}
.calendar-grid .calendar-cell.selected .calendar-number{color:#fff!important}
.calendar-grid .calendar-event-chip{padding:6px!important;border:1px solid rgba(198,166,109,.28);border-radius:7px!important;background:#f3eadb!important;color:#725a38!important;font-size:10px!important;line-height:1.3!important}
.calendar-grid .calendar-event-chip strong{font-size:10px!important;font-weight:700!important}
.calendar-grid .calendar-event-chip small{font-size:9px!important}
.calendar-grid .calendar-cell.selected .calendar-event-chip{background:rgba(255,255,255,.2)!important;border-color:rgba(255,255,255,.28);color:#fff!important}
.calendar-grid .calendar-more{color:#9a8059!important;font-size:10px!important}
.calendar-day-list{margin-top:22px!important;padding:18px 20px;border:1px solid #e8ddcb;border-radius:16px;background:linear-gradient(145deg,#fffefa,#f8f3eb)}
.calendar-day-list h4{font:600 16px Georgia,'Times New Roman',serif!important;color:#604a31!important;letter-spacing:.1px}
@media(max-width:720px){.calendar-grid{gap:4px!important;padding:7px!important}.calendar-grid .calendar-cell{min-height:100px!important;padding:6px 3px!important;border-radius:8px!important}.calendar-grid .calendar-event-chip{padding:4px 3px!important}}


/* MyORDEA V49 — finition luxe et suppression des séparateurs */
.auth-screen{
  background:
    radial-gradient(ellipse at 50% 0%, rgba(194,151,91,.10), transparent 48%),
    linear-gradient(145deg,#fbf8f2 0%,#f6f0e7 52%,#fcfaf6 100%) !important;
  padding:clamp(24px,5vh,54px) 18px !important;
}
.auth-wrap{width:min(100%,620px)!important;margin:auto!important}
.auth-branding{margin:0 auto 24px!important;text-align:center!important}
.auth-logo{
  display:block!important;width:min(100%,430px)!important;max-width:430px!important;
  margin:0 auto!important;padding:0!important;background:transparent!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
}
.auth-brand-logo{
  display:block!important;width:100%!important;height:auto!important;max-height:260px!important;
  object-fit:contain!important;margin:0 auto!important;background:transparent!important;
  mix-blend-mode:multiply;
}
.auth-card{
  width:100%!important;max-width:620px!important;
  background:rgba(255,253,248,.82)!important;
  border:1px solid rgba(174,128,65,.48)!important;
  border-radius:30px!important;padding:clamp(28px,5vw,48px)!important;
  box-shadow:0 22px 60px rgba(75,49,24,.09),inset 0 1px 0 rgba(255,255,255,.95)!important;
  position:relative;
}
.auth-card:before{
  content:"";position:absolute;inset:7px;border:1px solid rgba(190,151,99,.18);
  border-radius:24px;pointer-events:none;
}
.auth-card h1{
  font:500 clamp(32px,4vw,40px)/1.15 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.7px!important;color:#54351f!important;text-align:center!important;
}
.auth-intro{color:#89745e!important;text-align:center!important;font-size:14px!important;letter-spacing:.15px}
.auth-heading{margin-bottom:30px!important}
.auth-form{gap:16px!important}
.auth-form label{color:#6e5135!important;font-weight:600!important}
.auth-form input{
  background:#fffdf9!important;border:1px solid #dfc9a8!important;border-radius:14px!important;
  min-height:54px!important;box-shadow:inset 0 1px 2px rgba(73,48,24,.025),0 4px 12px rgba(73,48,24,.035)!important;
}
.auth-form input:focus{outline:2px solid rgba(173,126,60,.22)!important;border-color:#b78b50!important}
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus{
  -webkit-text-fill-color:#49331f!important;
  -webkit-box-shadow:0 0 0 1000px #fffdf9 inset!important;
  box-shadow:0 0 0 1000px #fffdf9 inset!important;
  transition:background-color 99999s ease-out 0s;
}
.auth-form .full,.auth-form button.full{
  min-height:56px!important;border-radius:999px!important;
  background:linear-gradient(180deg,#c59a5b 0%,#a97835 55%,#80521f 100%)!important;
  border:1px solid #a8793d!important;color:#fff!important;
  box-shadow:0 9px 20px rgba(111,73,29,.20),inset 0 1px 0 rgba(255,255,255,.35)!important;
  letter-spacing:.2px!important;
}
.auth-link,.auth-switch button{color:#94682f!important}
.auth-screen .auth-card:after{content:none!important}

/* Retrait de la signature encadrée et des traits au milieu du bandeau */
.welcome{position:relative!important}
.welcome-signature{display:none!important}
.signature-rule{display:none!important}
@media(max-width:560px){
 .auth-brand-logo{max-height:210px!important}
 .auth-branding{margin-bottom:18px!important}
 .auth-card{border-radius:24px!important;padding:28px 22px!important}
 .auth-card:before{inset:6px;border-radius:19px}
}


/* MyORDEA V50 — connexion éditoriale luxe et en-tête épuré */
:root{--ordea-ivory:#f8f1e9;--ordea-linen:#eee3d6;--ordea-brown:#4d3524;--ordea-gold:#b58a4d;--ordea-gold-soft:#d9c19b}
/* Connexion : on conserve strictement le fichier logo validé, et on harmonise son environnement. */
.auth-screen{
 min-height:100svh!important;display:grid!important;place-items:center!important;
 padding:clamp(26px,5vh,56px) 18px!important;
 background:radial-gradient(ellipse at 50% 5%,#fbf4ed 0%,#f8efe6 46%,#f3e9de 100%)!important;
}
.auth-screen:before,.auth-screen:after{content:none!important;display:none!important}
.auth-wrap{width:min(100%,540px)!important;margin:auto!important;z-index:1!important}
.auth-branding{margin:0 auto 14px!important;text-align:center!important}
.auth-logo{display:block!important;width:min(100%,360px)!important;max-width:360px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.auth-brand-logo{display:block!important;width:100%!important;height:auto!important;max-height:225px!important;object-fit:contain!important;margin:0 auto!important;filter:none!important;mix-blend-mode:multiply!important}
.auth-card{max-width:540px!important;padding:clamp(28px,4.2vw,42px)!important;border:1px solid rgba(181,138,77,.32)!important;border-radius:26px!important;background:rgba(255,252,247,.91)!important;box-shadow:0 18px 48px rgba(77,53,36,.075),inset 0 1px 0 #fff!important}
.auth-card:before{inset:6px!important;border:1px solid rgba(181,138,77,.12)!important;border-radius:20px!important}
.auth-card h1{font:500 clamp(32px,4vw,38px)/1.18 Georgia,'Times New Roman',serif!important;color:var(--ordea-brown)!important;letter-spacing:-.45px!important}
.auth-intro{font-size:13px!important;color:#8a7561!important;letter-spacing:.25px!important}
.auth-heading{margin-bottom:25px!important}
.auth-form{gap:13px!important}
.auth-form label{color:#72583c!important}
.auth-form input{min-height:52px!important;border:1px solid #e3d3bc!important;border-radius:12px!important;background:#fffdfa!important;box-shadow:0 3px 10px rgba(77,53,36,.035)!important}
.auth-form input:focus{outline:2px solid rgba(181,138,77,.16)!important;border-color:#b58a4d!important}
.auth-form input:-webkit-autofill,.auth-form input:-webkit-autofill:hover,.auth-form input:-webkit-autofill:focus{-webkit-text-fill-color:#49331f!important;-webkit-box-shadow:0 0 0 1000px #fffdfa inset!important;box-shadow:0 0 0 1000px #fffdfa inset!important}
.auth-primary,.auth-form .full,.auth-form button.full{min-height:54px!important;border-radius:999px!important;background:linear-gradient(180deg,#c9a66f 0%,#ae8348 58%,#8e642f 100%)!important;border:1px solid #a77c42!important;color:#fff!important;box-shadow:0 7px 17px rgba(111,73,29,.16),inset 0 1px 0 rgba(255,255,255,.36)!important;font-weight:650!important;letter-spacing:.2px!important}
.auth-link,.auth-switch button{color:#8d6939!important}
.auth-privacy{color:#9b8977!important;font-size:11px!important;letter-spacing:.15px!important}
@media(max-width:560px){.auth-logo{width:min(100%,310px)!important}.auth-brand-logo{max-height:190px!important}.auth-card{padding:27px 20px!important;border-radius:22px!important}.auth-card:before{border-radius:16px!important}}
/* En-tête d'application : une seule occurrence de MyORDEA, plus de signature répétée dans le bandeau. */
.topbar{
 height:76px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 padding:0 clamp(18px,3vw,34px)!important;margin:0!important;
 border:1px solid rgba(181,138,77,.18)!important;border-top:0!important;border-radius:0 0 18px 18px!important;
 background:rgba(255,252,247,.82)!important;box-shadow:0 7px 22px rgba(77,53,36,.035)!important;
}
.brand{gap:12px!important}
.brand-mark{width:44px!important;height:44px!important;border:1px solid #ddc8a6!important;border-radius:13px!important;background:linear-gradient(145deg,#fffefa,#f4eadc)!important;box-shadow:0 4px 12px rgba(77,53,36,.045)!important}
.brand-mark svg{width:31px!important;height:31px!important;color:#a77d43!important}
.brand strong{font:600 16px 'Manrope',sans-serif!important;letter-spacing:-.35px!important;color:#493626!important}
.brand small{font-size:9px!important;letter-spacing:1.25px!important;color:#9a8468!important;text-transform:uppercase!important}
.top-actions{gap:12px!important}
.avatar,.auth-logout{border:1px solid #e6d9c7!important;border-radius:12px!important;background:#fffdfa!important;color:#826442!important;box-shadow:0 3px 10px rgba(77,53,36,.035)!important}
.auth-logout{padding:10px 15px!important;font-size:12px!important}
.welcome{margin:28px 0 22px!important;min-height:150px!important;padding:30px 34px!important;border:1px solid rgba(181,138,77,.32)!important;border-radius:20px!important;background:linear-gradient(110deg,#f0e6da 0%,#f8f2e9 100%)!important;box-shadow:0 12px 28px rgba(77,53,36,.045)!important}
.welcome:before,.welcome:after{content:none!important;display:none!important}
.welcome-signature{display:none!important}
@media(max-width:600px){.topbar{height:68px!important;padding:0 13px!important;border-radius:0 0 14px 14px!important}.brand-mark{width:39px!important;height:39px!important}.brand small{font-size:8px!important;letter-spacing:.8px!important}.top-actions{gap:7px!important}.welcome{padding:23px 19px!important;margin-top:20px!important}}

/* V51 — Harmonisation des deux bandeaux, structure commune aux trois thèmes.
   Le sélecteur de thème reste exclusivement dans Paramètres. */
.app-shell{max-width:1240px;padding-left:clamp(14px,3vw,34px);padding-right:clamp(14px,3vw,34px)}
.topbar{
  min-height:82px!important;height:auto!important;padding:12px clamp(16px,2.8vw,32px)!important;
  margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:18px!important;border:1px solid var(--line)!important;border-top:0!important;
  border-radius:0 0 20px 20px!important;background:var(--surface)!important;
  box-shadow:0 8px 24px color-mix(in srgb,var(--ink) 5%,transparent)!important;
  position:relative;isolation:isolate;overflow:hidden;
}
.topbar:after{content:"";position:absolute;z-index:-1;right:18%;top:-75px;width:42%;height:150px;border-radius:50%;background:radial-gradient(ellipse, color-mix(in srgb,var(--accent-soft) 58%,transparent),transparent 70%);pointer-events:none}
.brand{gap:13px!important;min-width:0;position:relative;z-index:1}
.brand-mark{width:48px!important;height:48px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--surface-2)!important;color:var(--accent)!important;box-shadow:inset 0 1px rgba(255,255,255,.8)!important}
.brand-mark svg{width:31px!important;height:31px!important;color:var(--accent)!important}
.brand strong{font:700 17px 'Manrope',sans-serif!important;letter-spacing:-.45px!important;color:var(--ink)!important}
.brand small{font-size:9px!important;letter-spacing:1.45px!important;color:var(--muted)!important;text-transform:uppercase!important}
.top-actions{gap:11px!important;position:relative;z-index:1}
.avatar,.auth-logout{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;color:var(--accent-strong)!important;box-shadow:0 3px 10px color-mix(in srgb,var(--ink) 4%,transparent)!important}
.auth-logout{padding:10px 16px!important;font-size:11px!important;font-weight:700!important}
.welcome{
  margin:16px 0 22px!important;min-height:164px!important;padding:30px clamp(20px,4vw,48px)!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  border:1px solid var(--line)!important;border-radius:20px!important;
  background:linear-gradient(135deg,var(--surface-2) 0%,var(--surface) 58%,color-mix(in srgb,var(--surface-2) 62%,var(--surface)) 100%)!important;
  box-shadow:0 10px 26px color-mix(in srgb,var(--ink) 5%,transparent),inset 0 1px rgba(255,255,255,.8)!important;
  position:relative!important;overflow:hidden!important;
}
.welcome:before{content:""!important;display:block!important;position:absolute!important;inset:9px!important;border:1px solid color-mix(in srgb,var(--accent) 16%,transparent)!important;border-radius:14px!important;pointer-events:none!important}
.welcome:after{content:""!important;display:block!important;position:absolute!important;width:42%;height:1px;bottom:0;left:29%;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.45;pointer-events:none}
.welcome>div{position:relative;z-index:1;width:100%}
.welcome .eyebrow{font-size:10px!important;letter-spacing:2.2px!important;color:var(--accent)!important;margin:0 0 11px!important}
.welcome h1{font:600 clamp(30px,4vw,42px)/1.15 Georgia,'Times New Roman',serif!important;letter-spacing:-.7px!important;color:var(--ink)!important;margin:0 0 8px!important}
.welcome h1:after{content:"";display:block;width:108px;height:2px;margin:12px auto 0;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.8}
.welcome-sub{font-size:13px!important;line-height:1.55!important;color:var(--muted)!important;max-width:560px;margin:0 auto!important}
.welcome-signature{display:none!important}

/* Cocooning chic — beige, lin, ivoire, doré doux */
body[data-theme="soft-minimal"]{--bg:#f5f0e8;--surface:#fffdf9;--surface-2:#eee5d9;--ink:#352e28;--muted:#82776d;--accent:#b18e55;--accent-soft:#ead9bb;--accent-strong:#80613b;--line:#e5d7c4;--shadow:0 12px 30px rgba(91,69,43,.06)}
body[data-theme="soft-minimal"] .topbar{border-color:#e5d7c4!important}
body[data-theme="soft-minimal"] .welcome{border-color:#dfcba9!important}

/* Working Luxe — bleu nuit, ivoire, champagne */
body[data-theme="modern-editorial"]{--bg:#edf0f3;--surface:#fffefa;--surface-2:#e4e9ef;--ink:#17283d;--muted:#687789;--accent:#b99b63;--accent-soft:#e9dfc9;--accent-strong:#17283d;--line:#d5dce4;--shadow:0 12px 30px rgba(23,40,61,.08)}
body[data-theme="modern-editorial"] .topbar{border-color:#d5dce4!important;background:linear-gradient(105deg,#fffefa,#f4f5f5)!important;border-radius:0 0 8px 8px!important}
body[data-theme="modern-editorial"] .brand-mark{border-radius:8px!important;background:#e8edf2!important}
body[data-theme="modern-editorial"] .welcome{border-radius:9px!important;border-left:4px solid var(--accent)!important;background:linear-gradient(110deg,#17283d 0%,#243b55 100%)!important;border-color:#344b63!important}
body[data-theme="modern-editorial"] .welcome .eyebrow{color:#d7c49c!important}
body[data-theme="modern-editorial"] .welcome h1{color:#fffefa!important}
body[data-theme="modern-editorial"] .welcome-sub{color:#e0e5eb!important}
body[data-theme="modern-editorial"] .welcome:before{border-color:rgba(215,196,156,.24)!important;border-radius:5px!important}
body[data-theme="modern-editorial"] .welcome h1:after{background:linear-gradient(90deg,transparent,#d7c49c,transparent)!important}
body[data-theme="modern-editorial"] .welcome:after{background:linear-gradient(90deg,transparent,#d7c49c,transparent)!important}

/* Pink Edition — rose poudré, nude, crème */
body[data-theme="soft-blush"]{--bg:#faf3f3;--surface:#fffdfd;--surface-2:#f2e4e7;--ink:#49363b;--muted:#8d777e;--accent:#bd8793;--accent-soft:#f0dce1;--accent-strong:#925e6b;--line:#ead7dc;--shadow:0 12px 30px rgba(91,55,66,.06)}
body[data-theme="soft-blush"] .topbar{border-color:#ead7dc!important;background:linear-gradient(105deg,#fffdfd,#fbf3f4)!important}
body[data-theme="soft-blush"] .brand-mark{border-radius:50%!important;background:#f8ecef!important}
body[data-theme="soft-blush"] .welcome{border-color:#e8cbd2!important;background:linear-gradient(135deg,#f4e5e8 0%,#fffafa 62%,#f8edef 100%)!important}
body[data-theme="soft-blush"] .welcome:before{border-color:rgba(189,135,147,.22)!important}
body[data-theme="soft-blush"] .welcome h1:after{background:linear-gradient(90deg,transparent,#bd8793,transparent)!important}

@media(max-width:600px){
 .app-shell{padding-left:12px!important;padding-right:12px!important}
 .topbar{min-height:68px!important;padding:9px 12px!important;border-radius:0 0 15px 15px!important;gap:8px!important}
 .brand{gap:8px!important}.brand-mark{width:39px!important;height:39px!important;border-radius:11px!important}.brand-mark svg{width:26px!important;height:26px!important}
 .brand strong{font-size:14px!important}.brand small{font-size:7px!important;letter-spacing:.8px!important}
 .top-actions{gap:6px!important}.avatar{width:36px!important;height:36px!important}.auth-logout{padding:9px 10px!important;font-size:10px!important}
 .welcome{margin:13px 0 18px!important;min-height:145px!important;padding:25px 16px!important;border-radius:16px!important}
 .welcome:before{inset:6px!important;border-radius:11px!important}.welcome .eyebrow{font-size:8px!important;letter-spacing:1.5px!important}.welcome h1{font-size:29px!important}.welcome-sub{font-size:11px!important}
}
/* Palette des trois choix affichés dans Paramètres — alignée sur les univers validés */
.swatch-minimal i:nth-child(1){background:#f3eee5!important}
.swatch-minimal i:nth-child(2){background:#b99a83!important}
.swatch-minimal i:nth-child(3){background:#e8dfd2!important}
.swatch-editorial i:nth-child(1){background:#101f31!important}
.swatch-editorial i:nth-child(2){background:#d5b779!important}
.swatch-editorial i:nth-child(3){background:#f7f3ea!important}
.swatch-blush i:nth-child(1){background:#faf1f1!important}
.swatch-blush i:nth-child(2){background:#c27f8e!important}
.swatch-blush i:nth-child(3){background:#f2e3e6!important}


/* V52 — signature MyORDEA et finitions Working Luxe */
.brand{display:flex!important;align-items:center!important;gap:0!important;min-width:0!important}
.brand-logo-image{display:block!important;width:112px!important;height:84px!important;max-height:84px!important;object-fit:contain!important;object-position:left center!important;border:0!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:600px){.brand-logo-image{width:88px!important;height:66px!important;max-height:66px!important}}

/* Working Luxe : cartes bleu nuit, textes ivoire, champagne réservé aux icônes et petits repères. */
body[data-theme="modern-editorial"] .stat-card,
body[data-theme="modern-editorial"] .module-card,
body[data-theme="modern-editorial"] .panel{
 background:linear-gradient(112deg,#172d43 0%,#1d354d 100%)!important;
 border:1px solid #344d64!important;
 color:#f7f4ed!important;
 box-shadow:0 8px 22px rgba(14,31,48,.13)!important;
}
body[data-theme="modern-editorial"] .stat-card small,
body[data-theme="modern-editorial"] .module-card small,
body[data-theme="modern-editorial"] .panel .muted{color:#c5ced7!important}
body[data-theme="modern-editorial"] .stat-card strong,
body[data-theme="modern-editorial"] .module-card strong,
body[data-theme="modern-editorial"] .panel h3{color:#fbf8f1!important}
body[data-theme="modern-editorial"] .stat-icon,
body[data-theme="modern-editorial"] .module-icon{color:#d6bd8b!important}
body[data-theme="modern-editorial"] .module-card b{color:#cbb486!important}
body[data-theme="modern-editorial"] .module-card:hover{border-color:#53677a!important;box-shadow:0 12px 26px rgba(14,31,48,.18)!important}
body[data-theme="modern-editorial"] .module-icon{background:#2b4359!important;border:1px solid #40596f!important}
body[data-theme="modern-editorial"] .stat-icon{background:#2b4359!important}
body[data-theme="modern-editorial"] .topbar{background:linear-gradient(105deg,#fffefa,#f4f1eb)!important}


/* V53 — Working Luxe : icônes blanches et titres champagne discrets */
body[data-theme="modern-editorial"] .module-icon,
body[data-theme="modern-editorial"] .stat-icon{
  color:#fff!important;
}
body[data-theme="modern-editorial"] .module-icon svg,
body[data-theme="modern-editorial"] .stat-icon svg{
  stroke:#fff!important;
}
body[data-theme="modern-editorial"] .module-card strong{
  color:#d8c59f!important;
}
body[data-theme="modern-editorial"] .module-card small{
  color:#f1eee7!important;
}
body[data-theme="modern-editorial"] .module-card b{
  color:#d8c59f!important;
}


/* V54 — fonctions d'ergonomie validées, couleurs héritées des thèmes existants */
.notification-button{position:relative;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:38px;height:38px;border-radius:12px;cursor:pointer;font-size:18px}
.notification-button svg,.sync-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.sync-button{position:relative;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:38px;height:38px;border-radius:12px;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.sync-button[data-state="success"]{color:#389b59;border-color:#b9dfc5}
.sync-button[data-state="pending"]{color:#c18a36;border-color:#ead6b2}
.sync-button[data-state="conflict"],.sync-button[data-state="error"]{color:#c34d4d;border-color:#efc5c5}
.sync-button[data-state="syncing"] svg{animation:myordea-sync-spin 1s linear infinite}
.sync-button:disabled{cursor:wait;opacity:.8}
@keyframes myordea-sync-spin{to{transform:rotate(360deg)}}
.notification-count{position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:var(--accent);color:white;font:700 10px/17px 'Manrope',sans-serif}
.quick-add-dialog,.notification-dialog{width:min(480px,calc(100% - 28px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);padding:22px;box-shadow:var(--shadow)}
.quick-add-dialog::backdrop,.notification-dialog::backdrop{background:rgba(20,25,32,.38);backdrop-filter:blur(3px)}
.quick-add-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-add-options button{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);color:var(--ink);font:700 13px 'Manrope',sans-serif;cursor:pointer}.quick-add-options button:hover{border-color:var(--accent)}
.weekly-review{margin-top:18px}.weekly-period{font-size:11px;color:var(--muted)}.weekly-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.weekly-metric{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.weekly-metric small{display:block;color:var(--muted);font-size:10px}.weekly-metric strong{display:block;margin-top:5px;font:700 17px 'Manrope',sans-serif;color:var(--ink)}
.notification-list{display:grid;gap:8px}.notification-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.notification-symbol{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent)}.notification-row div{min-width:0;flex:1}.notification-row strong,.notification-row small{display:block}.notification-row small{margin-top:4px;color:var(--muted);font-size:10px}
.document-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.document-groups{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.document-group{min-width:0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.document-group h3{display:flex;justify-content:space-between;margin:0 0 10px;font-size:13px}.document-group h3 small{color:var(--muted)}.document-entry .entry-item{border-top:1px solid var(--line);padding:9px 0}
@media(max-width:700px){.weekly-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.document-groups{grid-template-columns:1fr}.document-actions{grid-template-columns:1fr}.weekly-period{max-width:45%;text-align:right}}
@media(max-width:560px){.notification-button,.sync-button{width:34px;height:34px}.quick-add-options{grid-template-columns:1fr 1fr}.quick-add-dialog,.notification-dialog{padding:17px}.weekly-metric strong{font-size:15px}.weekly-review{padding:15px}.top-actions{min-width:0}}
\n\n/* MYORDEA V55 — direction visuelle de la maquette validée */
:root{--bg:#f8f4ef;--surface:#fffdf9;--surface-2:#f4e9dd;--ink:#39271f;--muted:#88786c;--accent:#b7863d;--accent-soft:#f2e4ce;--accent-strong:#91652b;--line:#ead9c6;--shadow:0 8px 22px rgba(92,61,35,.09);--radius:19px}
body{background:linear-gradient(180deg,#fbf8f4 0%,#f5eee6 100%);font-family:'DM Sans','Manrope',Arial,sans-serif;color:var(--ink)}
.app-shell{max-width:1320px;padding:0 28px 110px}
.topbar{height:76px;border-bottom:1px solid #eadbc9}
.brand-logo-image{max-height:58px;max-width:230px;object-fit:contain}
.welcome{margin:22px 0 18px;min-height:130px;padding:25px 30px;border:1px solid #ead7c0;border-radius:20px;background:linear-gradient(112deg,#f7ecdf 0%,#fffaf3 66%,#f1e2d0 100%);box-shadow:0 5px 18px rgba(95,63,38,.06)}
.welcome h1,.section-heading h2,.panel h3,.weekly-review h3,.dialog-head h2{font-family:Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.35px;color:#4b3023}
.welcome h1{font-size:clamp(27px,3vw,38px)}
.welcome .eyebrow,.section-heading .eyebrow{color:#a77937;letter-spacing:1.45px}
.quick-stats{gap:14px}
.stat-card{border:1px solid #ead9c7;border-radius:17px;background:linear-gradient(145deg,#fffefa,#f9f0e6);box-shadow:0 5px 15px rgba(94,62,38,.055);padding:16px 18px}
.stat-icon{border-radius:12px;background:#f2e3cc;color:#9b6e30}
.section-heading{margin:28px 0 15px;align-items:center}
.section-heading h2{font-size:25px}
.primary-button,.auth-primary{background:linear-gradient(110deg,#bd9149,#9e6f2e);box-shadow:0 4px 12px rgba(150,102,42,.2);border-radius:12px}
.primary-button:hover{background:linear-gradient(110deg,#a97c37,#875b25)}
.module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.module-card{min-height:96px;padding:17px 18px;border:1px solid #ead9c7;border-radius:17px;background:linear-gradient(145deg,#fffefa,#faf1e8);box-shadow:0 5px 14px rgba(94,62,38,.055);gap:14px}
.module-card:hover{transform:translateY(-2px);border-color:#d5b47f;box-shadow:0 9px 20px rgba(94,62,38,.1)}
.module-icon{background:#f3e5d2;color:#a87835;border-radius:13px}
.module-card strong{font-family:Georgia,'Times New Roman',serif;font-size:16px;color:#4a3023}
.module-card small{color:#89786a}
.module-card>b{color:#b18443;font-size:22px}
.lower-grid{gap:14px;margin-top:16px}
.panel,.weekly-review{border:1px solid #ead9c7;border-radius:19px;background:linear-gradient(145deg,#fffefa,#faf2e9);box-shadow:0 6px 17px rgba(94,62,38,.06)}
.panel{padding:19px}
.panel h3,.weekly-review h3{font-size:20px}
.panel-head{margin-bottom:13px}
.weekly-review{margin-top:16px;padding:20px}
.weekly-metric{border:1px solid #ead9c7;border-radius:13px;background:#fffaf4;padding:13px}
.bottom-nav{border:1px solid #e8d7c4;background:rgba(255,252,247,.96);box-shadow:0 8px 26px rgba(70,49,31,.14);backdrop-filter:blur(14px)}
.bottom-nav button{color:#76675b}
.bottom-nav button.active{color:#9c6d2e}
.bottom-nav .nav-add{background:linear-gradient(130deg,#c49a55,#9d6c2d);box-shadow:0 5px 14px rgba(150,102,42,.28)}
dialog{border:1px solid #e6d2bb;border-radius:22px;box-shadow:0 22px 65px rgba(59,40,25,.22)}
.dialog-head{border-bottom:1px solid #eee0d0;padding-bottom:13px;margin-bottom:16px}
.dialog-head h2{font-size:25px}
input,select,textarea{border-color:#e5d4c1;border-radius:11px;background:#fffdfa}
input:focus,select:focus,textarea:focus{border-color:#bd9149;box-shadow:0 0 0 3px rgba(189,145,73,.15);outline:0}
.entry-item{border-color:#ecdfd1;border-radius:13px;background:#fffdfa}
.feature-tile{border:1px solid #ead9c7;border-radius:14px;background:#fffaf4}
.notification-button,.sync-button,.avatar{border-color:#e6d5c2;background:#fffaf4;color:#9a6c31}
.footer-note{color:#9a8978}
@media(max-width:900px){.app-shell{padding:0 18px 105px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome{padding:22px;min-height:118px}.quick-stats{gap:9px}.stat-card{padding:13px}}
@media(max-width:600px){.app-shell{padding:0 13px 100px}.topbar{height:65px}.brand-logo-image{max-width:170px;max-height:48px}.today-label{display:none}.welcome{margin:15px 0 13px;padding:19px 17px;min-height:0;border-radius:16px}.welcome h1{font-size:27px}.welcome-signature{display:none}.quick-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat-card{padding:10px 8px;gap:7px;min-width:0;border-radius:13px}.stat-icon{width:30px;height:30px;font-size:14px}.stat-card small{font-size:9px}.stat-card strong{font-size:15px;overflow-wrap:anywhere}.section-heading{margin:22px 0 12px;gap:8px}.section-heading h2{font-size:20px}.section-heading .primary-button{padding:10px 12px}.module-grid{grid-template-columns:1fr;gap:9px}.module-card{min-height:72px;padding:12px 13px;border-radius:14px}.module-icon{width:39px;height:39px}.module-card strong{font-size:15px}.lower-grid{grid-template-columns:1fr;gap:10px}.panel,.weekly-review{padding:15px;border-radius:15px}.weekly-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bottom-nav{left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));border-radius:18px;padding:5px 7px}.bottom-nav button{font-size:10px}.bottom-nav .nav-add{width:46px;height:46px}}

/* MYORDEA V56 — refonte de navigation et corrections de lisibilité Working Luxe */
#appShell{display:grid!important;grid-template-columns:204px minmax(0,1fr);column-gap:26px;max-width:1440px;padding:0 28px 70px}
#appShell[hidden]{display:none!important}
#appShell>.topbar{grid-column:1/-1;grid-row:1}
#appShell>.side-navigation{grid-column:1;grid-row:2;align-self:stretch;position:sticky;top:18px;height:calc(100vh - 112px);min-height:520px;padding:17px 12px 14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:5px}
#appShell>main{grid-column:2;grid-row:2;min-width:0;padding-bottom:24px}
.side-navigation-label{margin:2px 9px 10px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:1.5px}
.side-nav-item{width:100%;display:flex;align-items:center;gap:11px;padding:11px 12px;border:0;border-radius:11px;background:transparent;color:var(--ink);font:600 12px 'Manrope',sans-serif;text-align:left;cursor:pointer;transition:background .16s,color .16s}
.side-nav-item span{width:20px;display:inline-grid;place-items:center;font-size:16px;color:var(--accent-strong)}
.side-nav-item:hover,.side-nav-item.active{background:var(--surface-2);color:var(--ink)}
.side-nav-item.active{font-weight:800;box-shadow:inset 3px 0 var(--accent)}
.side-navigation-bottom{margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
.floating-add{position:fixed;right:30px;bottom:28px;z-index:30;width:58px;height:58px;border:0;border-radius:50%;background:linear-gradient(140deg,#d8bd83,#b48a4d);color:#17283d;font:400 31px/1 'Manrope',sans-serif;box-shadow:0 9px 24px rgba(20,36,53,.24);cursor:pointer}
.floating-add:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,36,53,.28)}

/* Les formulaires et pages internes gardent un contraste net dans les trois thèmes. */
.view-dialog .dialog-head h2,dialog .dialog-head h2,.subsection-title,.family-manager h3,.document-group h3,.budget-column-head h3,.calendar-head strong{color:var(--ink)}
.member-chip{background:var(--surface-2);color:var(--ink)}
.member-chip strong,.member-chip small,.member-chip button{color:var(--ink)}
.family-manager,.family-sharing-entry,.document-group,.budget-column,.feature-tile,.entry-item{color:var(--ink)}
.entry-item strong,.feature-tile strong,.document-group h3,.budget-column-head h3{color:var(--ink)}

/* Working Luxe : titres ivoire sur bleu nuit, noms bleu nuit sur surfaces claires. */
body[data-theme="modern-editorial"] .welcome h1,
body[data-theme="modern-editorial"] .section-heading h2,
body[data-theme="modern-editorial"] .panel h3,
body[data-theme="modern-editorial"] .weekly-review h3,
body[data-theme="modern-editorial"] .dialog-head h2,
body[data-theme="modern-editorial"] .subsection-title,
body[data-theme="modern-editorial"] .family-manager h3,
body[data-theme="modern-editorial"] .document-group h3,
body[data-theme="modern-editorial"] .budget-column-head h3,
body[data-theme="modern-editorial"] .calendar-head strong{color:#f7f3ea!important}
body[data-theme="modern-editorial"] .module-intro,
body[data-theme="modern-editorial"] .muted,
body[data-theme="modern-editorial"] .module-intro p{color:#c5ced7!important}
body[data-theme="modern-editorial"] .member-chip,
body[data-theme="modern-editorial"] .family-manager,
body[data-theme="modern-editorial"] .family-sharing-entry,
body[data-theme="modern-editorial"] .document-group,
body[data-theme="modern-editorial"] .feature-tile,
body[data-theme="modern-editorial"] .entry-item,
body[data-theme="modern-editorial"] .budget-column,
body[data-theme="modern-editorial"] .budget-card,
body[data-theme="modern-editorial"] .calc-box{background:#f3f0e9!important;border-color:#d9cfbd!important;color:#20344a!important}
body[data-theme="modern-editorial"] .member-chip strong,
body[data-theme="modern-editorial"] .member-chip small,
body[data-theme="modern-editorial"] .member-chip button,
body[data-theme="modern-editorial"] .feature-tile strong,
body[data-theme="modern-editorial"] .entry-item strong,
body[data-theme="modern-editorial"] .document-group h3,
body[data-theme="modern-editorial"] .budget-column-head h3,
body[data-theme="modern-editorial"] .budget-card strong,
body[data-theme="modern-editorial"] .family-manager h3,
body[data-theme="modern-editorial"] .family-sharing-entry h3{color:#20344a!important}
body[data-theme="modern-editorial"] .member-chip small,
body[data-theme="modern-editorial"] .feature-tile small,
body[data-theme="modern-editorial"] .entry-item small,
body[data-theme="modern-editorial"] .document-group .muted,
body[data-theme="modern-editorial"] .budget-card small{color:#58697a!important}
body[data-theme="modern-editorial"] .dialog-head .eyebrow{color:#d5b779!important}
body[data-theme="modern-editorial"] .side-navigation{background:#1b3047!important;border-color:#3b5269!important}
body[data-theme="modern-editorial"] .side-navigation-label{color:#c5ced7!important}
body[data-theme="modern-editorial"] .side-nav-item{color:#f7f3ea!important}
body[data-theme="modern-editorial"] .side-nav-item span{color:#d5b779!important}
body[data-theme="modern-editorial"] .side-nav-item:hover,
body[data-theme="modern-editorial"] .side-nav-item.active{background:#2b4359!important;color:#fffefa!important}
body[data-theme="modern-editorial"] .side-navigation-bottom{border-color:#3b5269!important}
body[data-theme="modern-editorial"] .floating-add{background:linear-gradient(140deg,#e3ca96,#c7a66b)!important;color:#17283d!important}

/* Paramètres Working Luxe : panneau bleu nuit, actions ivoire lisibles. */
body[data-theme="modern-editorial"] #settingsDialog{background:#1b3047!important;color:#f7f3ea!important;border-color:#465b70!important}
body[data-theme="modern-editorial"] #settingsDialog .dialog-head h2,
body[data-theme="modern-editorial"] #settingsDialog>label,
body[data-theme="modern-editorial"] #settingsDialog .theme-settings>strong{color:#f7f3ea!important}
body[data-theme="modern-editorial"] #settingsDialog .muted,
body[data-theme="modern-editorial"] #settingsDialog .note-box{color:#c5ced7!important}
body[data-theme="modern-editorial"] #settingsDialog .settings-actions .soft-button,
body[data-theme="modern-editorial"] #settingsDialog .import-label{background:#e4e9ef!important;color:#20344a!important;border:1px solid #d3dce5!important;border-radius:11px!important;font-weight:800!important}
body[data-theme="modern-editorial"] #settingsDialog .danger-button{background:#fbefed!important;color:#a7473f!important;border-color:#e5c6c2!important}
body[data-theme="modern-editorial"] #settingsDialog .note-box{background:#e4e9ef!important;color:#52677d!important}
body[data-theme="modern-editorial"] #settingsDialog .theme-option{background:#233a52!important;color:#f7f3ea!important}
body[data-theme="modern-editorial"] #settingsDialog .theme-option b{color:#f7f3ea!important}
body[data-theme="modern-editorial"] #settingsDialog .theme-option small{color:#c5ced7!important}
body[data-theme="modern-editorial"] #settingsDialog input:not([type=radio]){background:#14263a!important;color:#f7f3ea!important}

@media(max-width:760px){
 #appShell{display:block!important;padding:0 13px 104px!important}
 #appShell>.side-navigation{display:none!important}
 #appShell>.topbar{display:flex!important}
 #appShell>main{padding-bottom:20px}
 .floating-add{display:none!important}
 .bottom-nav{display:flex!important}
}
@media(min-width:761px){.bottom-nav{display:none!important}}
@media(max-width:600px){
 .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .module-card{min-height:78px!important;padding:11px!important;gap:9px!important}
 .module-icon{width:35px!important;height:35px!important}
 .module-card strong{font-size:12px!important}
 .module-card small{font-size:9px!important}
 .quick-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .stat-card{min-width:0!important}
 .theme-options{grid-template-columns:1fr!important}
}

@media(min-width:761px){body.mpu-authenticated #appShell{display:grid!important}}
@media(max-width:760px){body.mpu-authenticated #appShell{display:block!important}}

/* Accès Paramètres unique sur ordinateur (menu latéral), roue conservée sur mobile. */
@media(min-width:761px){#appShell .top-actions .avatar{display:none!important}}
@media(max-width:760px){#appShell .top-actions .avatar{display:inline-grid!important;place-items:center}}

/* V56.1 — navigation par pages dans la zone principale, sans fenêtre modale */
.view-page{
  display:block;
  width:100%;
  min-width:0;
  min-height:calc(100vh - 150px);
  margin:0;
  padding:clamp(18px,2.4vw,34px);
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--surface);
  color:var(--ink);
  box-shadow:var(--shadow);
  overflow:visible;
}
.view-page[hidden]{display:none!important}
.view-page .page-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:0 0 22px;
  padding:0 0 18px;
  border-bottom:1px solid var(--line);
}
.view-page .page-heading h1{
  margin:0;
  color:var(--ink);
  font-family:var(--display-font,Georgia,serif);
  font-size:clamp(1.7rem,3vw,2.35rem);
}
.view-page .module-intro{margin:0 0 22px;color:var(--muted);line-height:1.6}
.view-page .view-tools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.view-page .entry-list,.view-page .family-manager,.view-page .document-groups{width:100%;min-width:0}
@media(max-width:760px){
  .view-page{min-height:calc(100dvh - 150px);padding:16px;border-radius:18px}
  .view-page .page-heading{margin-bottom:16px;padding-bottom:14px}
  .view-page .view-tools>*{flex:1 1 auto}
}

/* V56.2 — gestion documentaire, sans changement de direction visuelle */
.document-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,.7fr) auto;gap:9px;margin:14px 0}
.document-toolbar input,.document-toolbar select,.document-item-tools select{min-width:0;width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font:500 12px inherit}
.document-folder-manager{padding:13px 14px;margin:12px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.document-folder-manager h3{margin:0 0 8px;font-size:13px;color:var(--ink)}
.document-folder-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:12px;color:var(--ink)}
.document-folder-row>span:last-child{display:flex;flex-wrap:wrap;gap:5px}
.document-folder-row button,.document-item-tools select{border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);padding:6px 8px;font:600 10px inherit;cursor:pointer}
.document-item-tools{display:flex;justify-content:flex-end;margin:0 0 8px 38px}
.document-item-tools select{max-width:220px}
.favorite-document,.preview-document{border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);padding:5px 8px;cursor:pointer}
.favorite-document.is-favorite{color:#b7863d}
.pdf-preview-dialog{width:min(900px,calc(100% - 24px));height:min(85vh,850px);max-height:90vh;border:1px solid var(--line);border-radius:18px;padding:16px;background:var(--surface);color:var(--ink)}
.pdf-preview-dialog iframe{width:100%;height:calc(100% - 48px);border:0;border-radius:10px;background:white}
@media(max-width:700px){.document-toolbar{grid-template-columns:1fr}.document-folder-row{align-items:flex-start;flex-direction:column}.document-folder-row>span:last-child{width:100%}.document-folder-row button{padding:7px 9px}.document-item-tools{margin-left:0}}

/* V56.6 — ajustement mobile : échelle naturelle et icônes à gauche des libellés */
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  #appShell{width:100%;max-width:100%;min-width:0;margin:0;padding-left:12px!important;padding-right:12px!important}
  #appShell>main{width:100%;max-width:100%;min-width:0}
  #appShell .topbar{width:100%;min-width:0;gap:8px}
  #appShell .brand{min-width:0;flex:1}
  #appShell .brand-logo-image{width:auto;max-width:min(145px,42vw);height:auto;max-height:42px;object-fit:contain}
  #appShell .top-actions{flex-shrink:0}
  #appShell .view-page{padding:16px!important;border-radius:17px!important;min-height:0}
  #appShell .page-heading h1{font-size:clamp(22px,6vw,28px)!important;line-height:1.15}
  #appShell input,#appShell select,#appShell textarea{max-width:100%;min-width:0}
  #appShell .bottom-nav{left:8px;right:8px;bottom:max(7px,env(safe-area-inset-bottom));height:auto;min-height:58px;padding:6px 5px;display:flex;align-items:center;justify-content:space-around;gap:2px;box-sizing:border-box}
  #appShell .bottom-nav button:not(.nav-add){flex:1 1 0;min-width:0;min-height:42px;padding:5px 2px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;font-size:clamp(9px,2.7vw,11px);white-space:nowrap}
  #appShell .bottom-nav button:not(.nav-add) span{flex:0 0 18px;width:18px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:17px}
  #appShell .bottom-nav button:not(.nav-add) span svg{width:17px;height:17px}
  #appShell .bottom-nav .nav-add{flex:0 0 39px;width:39px;height:39px;min-width:39px;margin:0 2px;font-size:22px}
}
@media(max-width:380px){
  #appShell{padding-left:9px!important;padding-right:9px!important}
  #appShell .bottom-nav{left:5px;right:5px}
  #appShell .bottom-nav button:not(.nav-add){gap:3px;font-size:9px}
  #appShell .bottom-nav button:not(.nav-add) span{flex-basis:16px;width:16px}
}

/* V56.8 — véritable navigation mobile latérale (rail gauche), contenu pleine largeur utile */
@media(max-width:760px){
  #appShell{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0 10px 28px 0!important;box-sizing:border-box!important;overflow-x:hidden!important}
  #appShell>.topbar{display:flex!important;width:100%!important;min-height:64px!important;height:64px!important;padding:0 10px 0 12px!important;box-sizing:border-box!important;grid-column:auto!important;grid-row:auto!important}
  #appShell>.side-navigation{display:flex!important;position:fixed!important;z-index:40!important;left:0!important;top:72px!important;bottom:0!important;width:56px!important;height:auto!important;min-height:0!important;padding:12px 5px max(12px,env(safe-area-inset-bottom))!important;gap:7px!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;border-radius:0 16px 16px 0!important;background:#1b3047!important;border:1px solid #3b5269!important;box-shadow:0 5px 18px rgba(20,36,53,.16)!important}
  #appShell .side-navigation-label{display:none!important}
  #appShell .side-nav-item{width:44px!important;min-width:44px!important;height:45px!important;min-height:45px!important;padding:0 4px!important;margin:0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;overflow:hidden!important;border-radius:11px!important;background:transparent!important;color:#f7f3ea!important;font-size:0!important;line-height:0!important;white-space:nowrap!important}
  #appShell .side-nav-item span{display:inline-flex!important;flex:0 0 22px!important;width:22px!important;height:24px!important;align-items:center!important;justify-content:center!important;color:#d5b779!important;font-size:20px!important;line-height:1!important}
  #appShell .side-nav-item.active{background:#2b4359!important;box-shadow:inset 3px 0 #d5b779!important}
  #appShell .side-navigation-bottom{margin-top:auto!important;width:100%!important;padding-top:7px!important;border-top:1px solid #3b5269!important}
  #appShell>main{display:block!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0 0 0 68px!important;padding:0 0 24px!important;box-sizing:border-box!important}
  #appShell .view-page{width:100%!important;max-width:100%!important;min-width:0!important;padding:14px!important;box-sizing:border-box!important}
  #appShell .welcome{margin:12px 0!important;padding:17px 13px!important;min-width:0!important}
  #appShell .welcome h1{font-size:clamp(21px,5.6vw,27px)!important;overflow-wrap:anywhere!important}
  #appShell .quick-stats{grid-template-columns:1fr!important;gap:7px!important}
  #appShell .stat-card{display:flex!important;align-items:center!important;padding:9px 10px!important}
  #appShell .lower-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  #appShell .panel,#appShell .weekly-review{padding:12px!important;min-width:0!important}
  #appShell .bottom-nav{display:none!important}
  #appShell .floating-add{display:grid!important;place-items:center!important;right:14px!important;bottom:14px!important;width:48px!important;height:48px!important;font-size:26px!important;z-index:35!important}
  #appShell .top-actions{gap:5px!important;min-width:0!important}
  #appShell .auth-logout{padding:8px 9px!important;font-size:10px!important}
  #appShell .brand-logo-image{max-width:min(135px,38vw)!important;max-height:40px!important}
  #appShell .module-grid{grid-template-columns:1fr!important}
  #appShell .document-toolbar{grid-template-columns:1fr!important}
  #appShell .document-toolbar>*{width:100%!important;min-width:0!important}
  #appShell table{display:block!important;max-width:100%!important;overflow-x:auto!important}
}
@media(max-width:380px){
  #appShell>.side-navigation{left:0!important;top:72px!important;width:52px!important;padding-left:3px!important;padding-right:3px!important}
  #appShell .side-nav-item{width:42px!important;min-width:42px!important}
  #appShell>main{margin-left:61px!important}
  #appShell>.topbar{padding-left:8px!important}
}

/* V60 — listes de tâches multiples dans Notes */
.todo-manager{margin:22px 0 26px}.todo-manager-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.todo-manager-head .muted{margin:5px 0 0}.todo-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.todo-list-card{min-width:0;padding:17px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.todo-list-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid var(--line)}.todo-list-title h3{margin:0 0 4px;font-size:17px}.todo-list-title small{color:var(--muted)}.todo-list-actions{display:flex;gap:5px}.todo-list-actions button,.todo-task button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:4px 7px}.todo-task-list{display:grid;gap:9px;padding:14px 0}.todo-task{display:flex;align-items:center;gap:9px;min-width:0}.todo-task input{width:17px;height:17px;accent-color:var(--accent);flex:0 0 auto}.todo-task span{flex:1;overflow-wrap:anywhere}.todo-task.is-done span{text-decoration:line-through;color:var(--muted)}.todo-add-task{display:flex;gap:7px}.todo-add-task input{flex:1;min-width:0}.todo-add-task button{width:38px;border:0;border-radius:10px;background:var(--accent);color:white;font-size:20px}.notes-quick-action{margin-top:18px}
@media(max-width:760px){.todo-manager-head{align-items:flex-start;flex-direction:column}.todo-list-grid{grid-template-columns:minmax(0,1fr)}.todo-list-card{padding:14px}}

/* Gestion des conflits multi-appareils : reprend les composants visuels existants. */
.sync-conflict-dialog{width:min(620px,calc(100% - 28px));max-width:620px;border:1px solid var(--border);border-radius:18px;padding:22px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0002}
.sync-conflict-dialog::backdrop{background:#17171770;backdrop-filter:blur(3px)}
.sync-conflict-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.sync-conflict-choice{padding:15px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2)}
.sync-conflict-choice p{min-height:48px;color:var(--muted);font-size:12px;line-height:1.5}
.sync-conflict-choice button{width:100%;white-space:normal}
.sync-conflict-dialog button:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.sync-conflict-choices{grid-template-columns:1fr}.sync-conflict-choice p{min-height:0}}

/* V69 — validation explicite des autorisations de partage */
.collab-card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line,#eee7df)}
.collab-card-actions small{color:var(--muted,#777);font-size:.8rem;line-height:1.4}
.collab-card-actions button{white-space:nowrap}
@media(max-width:560px){.collab-card-actions{align-items:stretch;flex-direction:column}.collab-card-actions button{width:100%}}

/* V70 — partage familial intégré directement à Ma famille */
.family-sharing-entry{margin-top:22px}
.family-sharing-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.collab-section{border-top:1px solid var(--line,#e8dfd5);padding:18px 0;margin-top:12px}
.collab-section h3{margin:0 0 12px;font-size:1.02rem}
.collab-invite-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.collab-invite-form label{margin:0}
.collab-help{font-size:.86rem;line-height:1.5;margin:10px 0 0}
.collab-result,.collab-card,.collab-empty{background:var(--surface-soft,#f7f3ee);border:1px solid var(--line,#e8dfd5);border-radius:14px;padding:14px;margin-top:12px}
.collab-card{margin:0 0 14px;background:var(--surface,#fff)}
.collab-card-head,.collab-incoming-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.collab-member-identity{display:flex;align-items:center;gap:11px}
.collab-member-identity strong,.collab-member-identity small{display:block}
.collab-member-identity small,.collab-incoming-row small{color:var(--muted,#777);font-size:.82rem;margin-top:3px}
.collab-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface-soft,#f7f3ee);border:1px solid var(--line,#e8dfd5);font-weight:700;color:var(--ink,#27384a)}
.collab-instruction{font-size:.88rem;margin:12px 0}
.collab-module-table{border:1px solid var(--line,#e8dfd5);border-radius:12px;overflow:hidden}
.collab-table-head,.collab-module-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,1fr);align-items:center;gap:14px;padding:10px 14px}
.collab-table-head{background:var(--surface-soft,#f7f3ee);font-size:.78rem;font-weight:700;color:var(--muted,#777)}
.collab-module-row{border-top:1px solid var(--line,#eee7df);min-height:44px}
.collab-module-name{display:flex;align-items:center;gap:10px;margin:0;font-size:.9rem}
.collab-module-name input{margin:0}
.collab-module-right{font-size:.84rem;color:var(--muted,#777)}
.collab-card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line,#eee7df)}
.collab-card-actions small{color:var(--muted,#777);font-size:.8rem;line-height:1.4}
.collab-incoming-row{padding:10px 0;border-bottom:1px solid var(--line,#eee7df)}
.collab-incoming-row strong{display:block}
.permission-pill{font-size:.78rem;border-radius:30px;background:var(--surface-soft,#f7f3ee);padding:6px 9px;white-space:nowrap}
.collab-pending{margin-top:14px}.collab-pending h4{margin:0 0 6px;font-size:.9rem}
.collab-empty{font-size:.9rem;line-height:1.55}
.danger-link{border:0;background:transparent;color:#a34d4d;text-decoration:underline;font-size:.84rem}
@media(max-width:620px){.collab-invite-form{grid-template-columns:1fr}.collab-invite-form button{width:100%}.collab-table-head,.collab-module-row{grid-template-columns:minmax(0,1fr) minmax(115px,.9fr);gap:8px;padding:9px}.collab-module-right{font-size:.76rem}.collab-card-actions{align-items:stretch;flex-direction:column}.collab-card-actions button{width:100%}.family-sharing-head{align-items:flex-start;flex-direction:column}}
