@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');
:root{--bg:#FFFFFF;--panel:#F6F3FA;--border:#E4DDEE;--text:#16101F;--muted:#5B5070;--lime:#047857;--green:#3EE6A8;--orange:#E08A00;--red:#E0287D;--mint:#3EE6A8;--pink:#FF5FA2;--yellow:#FFD166;--night:#16101F;--night-2:#2A2040;--night-text:#F3EEFA;--night-muted:#C2B8D4;--night-line:#4A3E62}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Manrope,sans-serif;font-size:14px;line-height:1.5}button,a,input,select{font:inherit}button{cursor:pointer}button{color:inherit;background:none;border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.4}button:not(:disabled){transition:background .18s,transform .18s,border-color .18s}button:hover:not(:disabled){filter:brightness(1.12)}.topbar{height:92px;border-bottom:1px solid var(--border);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:13px;font-family:Manrope,sans-serif;font-size:13px;font-weight:800;letter-spacing:2.5px;line-height:1.5}.brandmark{font-size:45px;letter-spacing:-8px;line-height:1;color:var(--lime);font-weight:500;width:48px;position:relative}.brandmark span{font-size:38px;position:absolute;left:33px;top:4px}.brand-sub{display:block;font-size:10px;letter-spacing:5px;color:var(--muted)}nav{display:flex;align-items:center;gap:32px;height:100%}.nav{height:100%;font-size:13px;color:var(--muted);position:relative}.nav.active{color:var(--text)}.nav.active:after{content:'';position:absolute;bottom:-1px;height:2px;left:0;right:0;background:var(--lime)}.topright{display:flex;align-items:center;gap:20px}.demo-tag{font-size:11px;letter-spacing:1.5px;border:1px solid var(--border);padding:6px 10px;border-radius:5px;color:var(--muted)}.icon-button{width:36px;height:36px;border:1px solid var(--border);border-radius:50%;font-size:18px}.shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:244px minmax(400px,1fr) 230px;gap:32px;padding:34px 36px}.sidebar{border-right:1px solid var(--border);padding-right:27px}.identity{text-align:center;padding-bottom:28px}.portrait{width:83px;height:83px;margin:0 auto 18px;background:#16101F;border-radius:24px;position:relative;box-shadow:0 0 0 5px #EFEAF6}.portrait svg{width:100%;height:100%;border-radius:24px}.portrait>span{position:absolute;right:-7px;bottom:-3px;font-size:22px;line-height:27px;background:var(--panel);width:32px;border-radius:50%}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.8px;color:var(--muted)}h1{font-family:Unbounded,sans-serif;font-size:20px;letter-spacing:-.7px;margin:7px 0 3px}h2{font-family:Manrope,sans-serif;font-size:30px;font-weight:500;letter-spacing:-1.3px;margin:6px 0 0;line-height:1.25}.muted{color:var(--muted);font-size:12px}.identity-tags{display:flex;justify-content:center;gap:5px;margin-top:15px}.identity-tags span{font-size:10px;background:#EFEAF6;padding:4px 8px;border-radius:5px;color:#5B5070}.section-label{font-size:11px;letter-spacing:1.2px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;font-weight:600}.section-label>span{font-size:10px;color:#5B5070}.stats{border-top:1px solid var(--border);padding-top:24px}.stat{margin-top:19px}.stat-line{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px}.stat-line>span:first-child{color:#5B5070;display:flex;align-items:center;gap:7px}.stat-symbol{font-size:13px;width:16px}.bar{height:4px;background:#EFEAF6;border-radius:9px;overflow:hidden}.bar>i{display:block;height:100%;border-radius:9px;transition:width .6s}.wallet{margin-top:29px;padding-top:24px;border-top:1px solid var(--border)}.wallet>strong{display:block;font-family:Manrope,sans-serif;font-size:27px;font-weight:500;letter-spacing:-1px;margin:9px 0 18px}.wallet-line{display:flex;justify-content:space-between;margin:9px 0;font-size:10px;color:var(--muted)}.wallet-line span+span{color:var(--text)}.shop-open{border:1px solid #CDBFE3;padding:11px 12px;width:100%;margin-top:13px;border-radius:7px;display:flex;justify-content:space-between;font-size:11px;color:var(--lime)}.sidebar-foot{font-size:11px;color:#5B5070;margin-top:29px;display:flex;align-items:flex-start;gap:7px;line-height:1.6}.live-dot{display:inline-block;background:var(--green);width:5px;height:5px;border-radius:50%;margin-top:5px;flex-shrink:0}.content{min-width:0}.page-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:26px}.text-button{font-size:10px;color:var(--muted);white-space:nowrap}.world{height:267px;border-radius:12px;overflow:hidden;position:relative;background:#16101F}.city{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.world-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(22,16,31,.82),transparent 72%)}.world-top{position:absolute;z-index:2;top:18px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center}.location-chip{font-size:10px;backdrop-filter:blur(8px);background:#EFEAF649;border:1px solid #CDBFE333;color:#16101F;padding:5px 9px;border-radius:6px}.world-date{font-size:11px;letter-spacing:2px;color:#5B5070}.world-bottom{position:absolute;bottom:24px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:flex-end;gap:18px}.world-caption{font-family:Manrope,sans-serif;font-size:19px;letter-spacing:-.5px;font-weight:500;margin-bottom:5px;color:#16101F}.world-bottom>div>div+div{font-size:10px;color:#16101F}.age-display{display:flex;align-items:baseline;gap:7px;flex-shrink:0}.age-display strong{font-size:55px;line-height:1;font-family:Manrope,sans-serif;font-weight:400;letter-spacing:-3px;color:#16101F}.age-display>span{font-size:11px;letter-spacing:2px;color:#16101F}.timebar{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:14px 0 19px;border-bottom:1px solid var(--border);margin-bottom:25px}.time-left{display:flex;align-items:center;gap:9px}.time-button{width:26px;height:26px;border:1px solid var(--border);border-radius:6px;font-size:10px;color:var(--lime)}#timeStatus{font-size:11px;color:var(--muted)}.speeds{display:flex;gap:3px}.speeds button{padding:4px 7px;color:var(--muted);font-size:10px;border-radius:4px}.speeds button.selected{background:#EFEAF6;color:var(--lime)}.next-button{font-size:10px;color:#5B5070}.next-button>span{margin-left:10px}.decision{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:24px;position:relative;overflow:hidden}.decision:before{content:'';position:absolute;width:3px;left:0;top:26px;height:38px;background:var(--lime);border-radius:2px}.decision-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:1.4px}.decision-meta .event-label{color:var(--lime);display:flex;align-items:center;gap:7px}.decision-meta .event-label:before{content:'';height:5px;width:5px;background:var(--lime);border-radius:50%}.decision h3{font-family:Manrope,sans-serif;font-weight:500;font-size:25px;line-height:1.3;letter-spacing:-.8px;margin:17px 0 11px}.decision p{font-size:12px;line-height:1.85;color:#C2B8D4;margin:0 0 20px;max-width:650px}.choice{width:100%;border:1px solid #4A3E62;border-radius:7px;margin-top:8px;padding:12px 14px;display:flex;text-align:left;align-items:center;gap:13px;background:#2A2040}.choice:first-child{background:#3EE6A8;color:#0B1F17;border-color:#3EE6A8}.choice-number{border:1px solid #4A3E625c;border-radius:5px;width:23px;height:23px;flex-shrink:0;display:grid;place-items:center;font-size:10px}.choice-body{flex:1}.choice-title{display:block;font-size:12px;font-weight:550}.choice-hint{display:block;font-size:10px;opacity:.65;margin-top:3px}.choice-arrow{font-size:16px;opacity:.65}.decision-note{margin-top:16px;display:flex;justify-content:space-between;gap:10px;color:#C2B8D4;font-size:11px}.outcome{padding:14px;background:#2A2040;border:1px solid #4A3E62;border-radius:8px;margin:17px 0}.outcome strong{color:var(--lime);font-size:12px}.outcome p{margin:5px 0 0;color:#F3EEFA}.effect-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.effect-tags span{font-size:11px;padding:4px 8px;border-radius:4px;background:#2A2040;color:#3EE6A8}.effect-tags span.negative{background:#2A2040;color:#F3EEFA}.primary{background:var(--lime);color:#16101F;border-radius:7px;padding:11px 18px;font-size:12px}.timeline-head{display:flex;align-items:center;justify-content:space-between;margin:27px 0 17px}.timeline-head h3{font-size:14px;font-weight:500;margin:0}.timeline-head>span{font-size:11px;color:var(--muted)}.timeline-row{display:flex;gap:15px;position:relative;padding-bottom:21px}.timeline-row:before{content:'';position:absolute;left:41px;top:15px;bottom:0;width:1px;background:var(--border)}.timeline-row:last-child:before{display:none}.timeline-age{font-size:10px;color:#5B5070;min-width:31px;padding-top:1px}.timeline-dot{width:7px;height:7px;border-radius:50%;background:#EFEAF6;flex-shrink:0;margin-top:6px}.timeline-copy{flex:1}.timeline-copy strong{font-size:11px;font-weight:500}.timeline-copy p{font-size:10px;color:var(--muted);margin:4px 0}.timeline-copy em{font-size:11px;color:#5B5070;font-style:normal}.rightbar{padding-top:4px}.chapter{padding:20px;background:#F6F3FA;border:1px solid var(--border);border-radius:10px}.chapter-number{font-family:Manrope,sans-serif;font-size:38px;color:var(--lime);margin:18px 0 8px;letter-spacing:-2px}.chapter-number>span{font-size:12px;letter-spacing:0;color:#5B5070}.chapter h3{font-size:14px;font-weight:500;letter-spacing:-.3px;margin:0 0 8px}.chapter p{font-size:10px;line-height:1.9;color:var(--muted);margin:0}.life-track{display:flex;gap:3px;margin-top:22px}.life-track i{height:24px;flex:1;background:#EFEAF6;border-radius:3px}.life-track i.filled{background:var(--lime)}.track-labels{display:flex;justify-content:space-between;font-size:10px;color:#5B5070;margin-top:7px}.close-people{padding-top:28px}.close-people .section-label{margin-bottom:17px}.section-label button{color:var(--muted);font-size:15px}.person-small{display:flex;align-items:center;gap:10px;margin:16px 0}.person-avatar{width:32px;height:32px;background:#EFEAF6;border-radius:50%;display:grid;place-items:center;color:#16101F;font-size:11px}.person-info{flex:1;font-size:11px}.person-info>span{display:block;font-size:11px;color:var(--muted);margin-top:2px}.relation-dot{width:5px;height:5px;border-radius:50%;background:var(--green)}.echo{margin-top:28px;border-top:1px solid var(--border);padding-top:20px}.echo-icon{font-size:28px;color:var(--green);margin-bottom:9px}.echo p{font-size:12px;color:#5B5070;line-height:1.85;margin-top:10px}.prototype-note{font-size:11px;line-height:1.8;color:#5B5070;margin-top:28px}.content-footer{display:flex;gap:16px;justify-content:space-between;border-top:1px solid var(--border);padding:22px 0 10px;margin-top:25px;font-size:10px;color:#5B5070}.content-footer>span:first-child{letter-spacing:1px}.content-footer button{font-size:10px;color:#5B5070}.hidden{display:none!important}.panel-view{min-height:400px}.panel-view h3{font-size:22px;font-weight:500}.panel-view>p{color:var(--muted);font-size:12px}.person-card,.asset-card{padding:20px;margin:12px 0;border:1px solid var(--border);border-radius:10px;background:var(--panel)}.person-card-top{display:flex;align-items:center;gap:13px}.person-card-top .person-avatar{width:42px;height:42px}.person-card p,.asset-card p{font-size:12px;color:var(--muted)}.small-button{border:1px solid var(--border);border-radius:5px;padding:7px 12px;font-size:11px;margin-right:7px;margin-top:7px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#3EE6A8;color:#0B1F17;box-shadow:0 10px 50px #16101F24;border-radius:8px;padding:13px 22px;font-size:12px;z-index:100;transition:.25s;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{background:#F6F3FA;color:var(--text);border:1px solid #CDBFE3;border-radius:14px;max-width:640px;width:calc(100% - 32px);max-height:85vh;padding:27px;box-shadow:0 25px 100px #16101F24}dialog::backdrop{background:#16101F99;backdrop-filter:blur(5px)}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.modal-header h2{font-size:25px;margin-top:6px}.modal-header .icon-button{flex-shrink:0}#modalBody>p{font-size:12px;color:var(--muted);line-height:1.9}.shop-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.shop-tabs button{border:1px solid var(--border);border-radius:5px;padding:7px 10px;font-size:11px}.shop-tabs button.selected{color:var(--lime);border-color:#CDBFE3}.shop-item{display:flex;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid var(--border)}.shop-item .item-icon{font-size:24px;width:35px;flex-shrink:0}.shop-item>div:nth-child(2){flex:1}.shop-item strong{font-size:12px;font-weight:500}.shop-item p{font-size:10px;color:var(--muted);margin:4px 0}.shop-item button{font-size:11px;padding:8px 12px;border:1px solid #CDBFE3;border-radius:5px;color:var(--lime);white-space:nowrap}.shop-balance{border:1px solid var(--border);padding:13px 16px;border-radius:7px;display:flex;justify-content:space-between;margin-bottom:16px;font-size:12px}.field{display:block;margin:18px 0;font-size:12px;color:#5B5070}.field select{display:block;width:100%;background:#F6F3FA;border:1px solid #E4DDEE;color:var(--text);border-radius:6px;padding:11px;margin-top:7px}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.summary-grid>div{padding:15px;background:#EFEAF6;border-radius:8px}.summary-grid strong{font-size:22px;display:block;color:var(--lime)}.summary-grid span{font-size:10px;color:var(--muted)}.birth-select{margin-top:18px;display:flex;gap:8px;align-items:center}.birth-select select{background:#F6F3FA;color:#16101F;border:1px solid #E4DDEE;padding:8px;border-radius:5px;font-size:11px;max-width:100%}.fade-in{animation:appear .35s ease}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){.shell{gap:40px;grid-template-columns:260px minmax(400px,1fr) 248px}.world{height:300px}}@media(max-width:1180px){.shell{grid-template-columns:205px minmax(350px,1fr);gap:27px;padding:25px}.rightbar{display:none}.topbar{padding:0 25px}.sidebar{padding-right:22px}.demo-tag{display:none}}@media(max-width:760px){.topbar{height:75px;padding:0 18px;gap:12px}.brand{font-size:10px;letter-spacing:1.5px;gap:8px}.brand-sub{font-size:10px;letter-spacing:3px}.brandmark{width:35px;font-size:35px}.brandmark span{left:25px;top:1px}.topright{gap:0}nav{gap:15px}.nav{font-size:10px}.shell{display:block;padding:22px 17px}.sidebar{border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:25px}.identity{padding:0;text-align:left;position:relative;min-height:140px}.portrait{width:44px;height:44px;border-radius:13px;margin:0 0 13px}.portrait svg{border-radius:13px}.portrait>span{font-size:15px;width:23px;line-height:23px;right:-8px;bottom:-4px}.identity .eyebrow{font-size:10px}h1{font-size:17px;margin-top:4px}.identity-tags{justify-content:flex-start;margin-top:8px}.identity-tags span{font-size:10px}.stats{padding:0;border:0}.stats>.section-label{font-size:10px}.stat{margin-top:10px}.stat-line{font-size:11px;margin-bottom:4px}.stat-symbol{font-size:10px}.wallet{margin:0;padding:14px;border:1px solid var(--border);border-radius:9px;grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:7px 16px}.wallet>.section-label{font-size:10px;width:100%}.wallet>.section-label>span{display:none}.wallet>strong{font-size:21px;margin:0;flex:1}.wallet-line{display:none}.wallet .shop-open{width:auto;padding:8px 11px;margin:0;gap:15px;font-size:10px}.sidebar-foot{display:none}.page-heading{margin-bottom:18px}.page-heading h2{font-size:24px;letter-spacing:-.8px}.page-heading .eyebrow{font-size:10px}.text-button{font-size:11px}.world{height:235px}.world-bottom{left:18px;right:18px;bottom:20px}.world-caption{font-size:16px;max-width:240px}.world-bottom>div>div+div{font-size:11px;max-width:230px}.age-display strong{font-size:43px}.world-top{left:17px;right:17px}.timebar{gap:4px}.time-left{gap:6px}#timeStatus{font-size:10px}.speeds button{padding:4px 6px;font-size:11px}.next-button{font-size:11px}.next-button>span{margin-left:3px}.decision{padding:20px 17px}.decision h3{font-size:23px}.decision p{font-size:12px}.choice{padding:12px 10px;gap:9px}.choice-title{font-size:12px}.choice-hint{font-size:11px}.decision-note{font-size:10px}.timeline-head>span{font-size:10px}.content-footer{flex-wrap:wrap;gap:10px}.content-footer>span:nth-child(2){display:none}.modal-header h2{font-size:22px}dialog{padding:21px}.shop-item{gap:8px}.shop-item button{font-size:10px;padding:7px}.shop-item .item-icon{font-size:19px;width:25px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* The journal is the permanent game surface. Decisions live above it. */
#eventDialog{padding:0;width:min(620px,calc(100% - 28px));max-height:90dvh;overflow:auto;border-color:#4A3E62;background:#16101F}
#eventDialog::backdrop{background:#16101Fb8;backdrop-filter:blur(3px)}
#eventDialog .decision{border:0;border-radius:0;padding:26px 28px 25px;background:transparent}
#eventDialog .decision:before{top:28px}
.event-dialog-top{padding:15px 23px;border-bottom:1px solid #4A3E62;display:flex;justify-content:space-between;gap:15px;align-items:center;background:#2A2040}
.event-dialog-top>span{font-size:10px;letter-spacing:1.6px;color:#C2B8D4}
.event-dialog-top button{font-size:10px;color:#F3EEFA;border:1px solid #4A3E62;border-radius:5px;padding:5px 8px}
.live-notice{border:1px solid #E4DDEE;border-radius:7px;background:#EFEAF6;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;font-size:10px;color:#5B5070;margin-bottom:25px}
.live-notice button{font-size:10px;color:var(--lime);white-space:nowrap}
.live-notice:empty{display:none}
.timeline-head{margin-top:0;align-items:flex-end}.timeline-head h3{font-family:Manrope,sans-serif;font-size:22px;letter-spacing:-.6px;margin-top:7px}
.timeline-head .eyebrow{font-size:10px;letter-spacing:1.3px}.journal-caption{display:flex;align-items:center;gap:7px;margin:-3px 0 22px;font-size:11px;color:#5B5070}
.timeline{border:1px solid var(--border);background:#F6F3FA;border-radius:10px;padding:24px 21px 7px;max-height:570px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#CDBFE3 transparent}
.timeline-row{padding-bottom:23px}.timeline-copy strong{font-size:12px}.timeline-copy p{font-size:11px;line-height:1.8}.timeline-copy em{font-size:10px;letter-spacing:.5px}.timeline-row:first-child .timeline-dot{background:var(--lime);box-shadow:0 0 0 4px #3EE6A812}
#lifeSummary{margin-bottom:28px}
@media(max-width:760px){#eventDialog .decision{padding:23px 20px}.event-dialog-top{padding:13px 17px}.event-dialog-top>span{font-size:10px;letter-spacing:1px}.event-dialog-top button{font-size:11px}.live-notice{font-size:11px;padding:11px}.live-notice button{font-size:11px}.timeline{padding:20px 15px 5px;max-height:520px}.timeline-head h3{font-size:20px}.timeline-head .eyebrow{font-size:10px}.timebar{margin-bottom:18px}}

.birth-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}.birth-facts>div{padding:10px;background:#EFEAF6;border-radius:6px}.birth-facts span{font-size:10px;letter-spacing:1.2px;color:#5B5070;display:block;margin-bottom:5px}.birth-facts strong{font-size:11px;font-weight:500;color:#16101F;line-height:1.7;display:block}@media(max-width:500px){.birth-facts{gap:7px}.birth-facts strong{font-size:10px}.birth-facts>div{padding:9px}}

.profile-button{width:100%;font-size:10px;color:#5B5070;border:1px solid var(--border);padding:9px;border-radius:5px;margin:-9px 0 23px;text-align:center}@media(max-width:760px){.profile-button{grid-column:1/-1;order:2;margin:0;font-size:10px}.wallet{order:3}.sidebar .stats{order:1}}

.country-insight{border:1px solid #CDBFE3;border-radius:9px;padding:17px 20px;background:linear-gradient(125deg,#EFEAF6,#F6F3FA);margin-bottom:20px}.country-insight-head{display:flex;justify-content:space-between;gap:15px;font-size:10px;letter-spacing:1.1px;color:#5B5070}.country-insight-head span+span{font-size:10px;letter-spacing:0}.country-insight h3{font-size:16px;font-weight:500;margin:10px 0 7px;letter-spacing:-.3px}.country-insight p{color:#5B5070;font-size:11px;line-height:1.9;margin:0}.country-insight-foot{display:flex;justify-content:space-between;gap:12px;font-size:10px;margin-top:12px;color:#5B5070}.country-insight-foot a{color:#047857;text-decoration:underline;text-underline-offset:3px}.timeline-source{display:inline-block;margin-left:9px;color:#047857;font-size:11px;text-decoration:underline;text-underline-offset:3px}.source-note{display:block;font-size:10px;color:#5B5070;line-height:1.7;margin-top:5px}@media(max-width:760px){.timebar{flex-wrap:wrap}.time-left{flex:1}.speeds{gap:1px}.speeds button{padding:4px 5px}.next-button{margin-left:auto}.country-insight{padding:15px}.country-insight-foot{flex-wrap:wrap}.country-insight-head{font-size:10px}}
/* Expanded life actions */
.priority-panel{border:1px solid var(--line,#E4DDEE);border-radius:14px;padding:18px;margin:18px 0;background:#F6F3FA}.priority-options,.option-grid{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.priority-options button,.option-grid button,.travel-option{border:1px solid #CDBFE3;border-radius:9px;background:#EFEAF6;color:#16101F;padding:12px;cursor:pointer}.priority-options .selected{background:#16101F;color:#FFFFFF}.priority-panel small,.shop-item small{display:block;color:#5B5070;line-height:1.5}.shop-tabs{flex-wrap:wrap;overflow:visible}.travel-option{display:block;width:100%;text-align:left;margin:10px 0}.travel-option:disabled{opacity:.4;cursor:not-allowed}fieldset{border:1px solid #E4DDEE;border-radius:12px;margin:16px 0;padding:16px}legend{color:#047857;padding:0 8px}.radio-row{display:flex;align-items:center;gap:10px;padding:9px 0;line-height:1.4}.radio-row input{width:18px;height:18px;accent-color:#5B5070}.shop-item{grid-template-columns:26px minmax(0,1fr) auto}.shop-item strong{overflow-wrap:anywhere}#modal{max-height:88dvh}.priority-panel:empty{display:none}@media(max-width:600px){.shop-item{gap:9px;padding:14px 0}.shop-item>button{padding:10px;font-size:12px}.shop-balance{gap:12px;flex-wrap:wrap}.shop-tabs button{padding:9px;font-size:12px}.priority-options button{font-size:12px;padding:10px}}


/* ===== Identité « Ville claire » — Mille choix, une vie ===== */
body{font-size:15px;-webkit-font-smoothing:antialiased}
h2,.decision h3,.timeline-head h3,.chapter-number,.age-display strong,.wallet>strong,.summary-grid strong,.modal-header h2,.world-caption{font-family:Unbounded,sans-serif;letter-spacing:-.02em}
h2{font-weight:700;font-size:32px}
.decision h3{font-weight:700;font-size:26px;line-height:1.2}
.topbar{border-bottom:1px solid var(--border);background:#fff}
.brand{gap:12px;font-family:Unbounded,sans-serif;font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--text)}
.brand-sub{font-family:Manrope,sans-serif;font-size:11px;letter-spacing:.2em;font-weight:700;color:var(--muted);text-transform:uppercase}
.brandmark{width:44px;height:44px;flex-shrink:0;letter-spacing:0;font-size:0}
.brandmark svg{width:44px;height:44px;display:block}
.nav{font-size:14px;font-weight:600}
.nav.active:after{height:3px;border-radius:3px;background:var(--mint)}
.demo-tag{font-size:11px;font-weight:700;letter-spacing:.08em;background:var(--yellow);color:var(--night);border-color:var(--yellow)}
.eyebrow,.section-label{font-size:11px;letter-spacing:.14em;font-weight:700}
.section-label>span{font-size:11px;color:var(--muted)}
.muted{font-size:13px}
h1{font-size:21px;font-weight:700}
.identity-tags span{font-size:12px;font-weight:600;background:#EFEAF6;color:var(--text);border-radius:999px;padding:5px 10px}
.portrait{background:#EADCF7;box-shadow:0 0 0 4px #fff,0 0 0 6px var(--border)}
.portrait>span{background:#fff}
.stat-line{font-size:13px}
.stat-line>span:first-child{color:var(--text)}
.stat-line>span:last-child{font-family:'Space Mono',monospace}
.bar{height:8px;background:#EFEAF6}
.wallet-line{font-size:13px}
.wallet>strong{font-weight:700;font-size:28px}
.shop-open,.profile-button{font-size:13px;font-weight:700;min-height:44px;align-items:center;border-radius:12px}
.shop-open{background:var(--night);color:#fff;border-color:var(--night)}
.profile-button{color:var(--text);border-color:var(--border)}
.sidebar-foot,.prototype-note,.content-footer,.content-footer button{font-size:12px;color:var(--muted)}
.text-button{font-size:13px;font-weight:700;color:var(--text)}
.world{border-radius:22px;background:#EADCF7}
.location-chip{font-size:12px;font-weight:600;background:#16101Fa6;border-color:#ffffff33;color:#fff;border-radius:999px;padding:6px 12px}
.world-date{font-family:'Space Mono',monospace;font-size:13px;color:var(--night);background:#ffffffcc;border-radius:999px;padding:4px 10px}
.world-caption{font-size:20px;font-weight:700;color:#fff}
.world-bottom>div>div+div{font-size:13px;color:#F3EEFA}
.age-display strong{font-weight:700;color:#fff}
.age-display>span{font-size:12px;color:#fff;font-weight:700}
.time-button{width:40px;height:40px;border-radius:12px;font-size:13px;background:var(--night);color:var(--mint);border-color:var(--night)}
#timeStatus{font-size:13px}
.speeds button{padding:8px 11px;font-size:13px;font-weight:700;border-radius:999px;font-family:'Space Mono',monospace}
.speeds button.selected{background:var(--mint);color:var(--night)}
.next-button{font-size:13px;font-weight:700;color:var(--text);border:1px solid var(--border);border-radius:999px;padding:9px 14px}
.live-notice{font-size:13px;border-radius:14px;background:#F6F3FA;border-color:var(--border);color:var(--text)}
.live-notice button{font-size:13px;font-weight:700;color:var(--lime)}
.country-insight{background:#F6F3FA;border-color:var(--border);border-radius:18px}
.country-insight-head{font-size:11px;font-weight:700;color:var(--muted)}
.country-insight h3{font-size:18px;font-weight:700}
.country-insight p{font-size:14px;color:var(--muted)}
.country-insight-foot{font-size:12px}
.country-insight-foot a,.timeline-source{color:var(--lime);font-weight:700}
.timeline{background:#fff;border-radius:18px}
.timeline-head h3{font-size:24px;font-weight:700}
.timeline-head>span,.journal-caption{font-size:12px}
.timeline-age{font-family:'Space Mono',monospace;font-size:12px;color:var(--muted)}
.timeline-dot{background:#CDBFE3}
.timeline-row:first-child .timeline-dot{background:var(--pink);box-shadow:0 0 0 4px #FF5FA233}
.timeline-copy strong{font-size:14px;font-weight:700}
.timeline-copy p{font-size:13px}
.timeline-copy em{font-size:11px;color:var(--lime);font-weight:700}
.source-note{font-size:11px}
.chapter{background:var(--night);color:var(--night-text);border:0;border-radius:20px}
.chapter .section-label,.chapter p,.track-labels{color:var(--night-muted)}
.chapter p{font-size:13px}
.chapter-number{color:var(--mint)}
.chapter-number>span{color:var(--night-muted)}
.life-track i{background:#2A2040}
.life-track i.filled{background:var(--mint)}
.track-labels{font-size:11px}
.person-avatar{background:#EADCF7;color:var(--night);font-weight:700}
.person-info{font-size:14px}
.person-info>span{font-size:12px}
.echo-icon{color:var(--pink)}
.echo p{font-size:14px;color:var(--text)}
/* Moments de décision : mode nuit */
#eventDialog{background:var(--night);border:1px solid var(--night-line);border-radius:24px;color:var(--night-text)}
.event-dialog-top{background:#1F1730;border-bottom-color:var(--night-line)}
.event-dialog-top>span{font-size:11px;font-weight:700;color:var(--night-muted)}
.event-dialog-top button{font-size:13px;color:var(--night-text);border-color:var(--night-line);border-radius:999px;padding:7px 12px}
.decision{border-radius:22px}
.decision:before{width:4px;background:var(--pink)}
.decision-meta{font-size:11px;font-weight:700}
.decision-meta .event-label{color:var(--mint)}
.decision-meta .event-label:before{background:var(--mint)}
.decision p{font-size:15px;line-height:1.7;color:var(--night-muted)}
.choice{background:#2A2040;border-color:var(--night-line);border-radius:16px;padding:14px 16px;min-height:56px;color:var(--night-text)}
.choice:first-child{background:var(--mint);border-color:var(--mint);color:var(--night)}
.choice:hover:not(:disabled){filter:none;border-color:var(--mint)}
.choice-number{font-family:'Space Mono',monospace;font-size:12px;border-color:currentColor;border-radius:8px;width:28px;height:28px;opacity:.8}
.choice-title{font-size:16px;font-weight:700}
.choice-hint{font-size:13px;opacity:.8}
.decision-note{font-size:12px;color:var(--night-muted)}
.outcome{background:#2A2040;border-color:var(--night-line);border-radius:14px}
.outcome strong{color:var(--mint);font-size:15px}
.outcome p{color:var(--night-text);font-size:14px}
.effect-tags span{font-size:12px;font-weight:700;background:#3EE6A82e;color:var(--mint);border-radius:999px;padding:5px 10px}
.effect-tags span.negative{background:#FF5FA22e;color:#FF9CC6}
#eventDialog .primary,.decision .primary{background:var(--mint);color:var(--night)}
.birth-facts>div{background:#2A2040;border-radius:12px}
.birth-facts span{font-size:11px;color:var(--night-muted);font-weight:700}
.birth-facts strong{font-size:14px;color:var(--night-text)}
#lifeSummary.decision{background:var(--night);color:var(--night-text)}
.summary-grid>div{background:#2A2040;border-radius:14px}
.summary-grid strong{color:var(--mint)}
.summary-grid span{font-size:12px;color:var(--night-muted)}
/* Fenêtres claires (boutique, profil) */
dialog{border-radius:24px;box-shadow:0 30px 90px #16101F33}
.modal-header .icon-button{width:44px;height:44px}
#modalBody>p{font-size:14px}
.primary{background:var(--night);color:#fff;border-radius:12px;padding:12px 20px;font-size:14px;font-weight:700;min-height:44px}
.small-button{font-size:13px;font-weight:700;border-radius:999px;padding:9px 14px;min-height:40px}
.shop-tabs button{font-size:13px;font-weight:700;border-radius:999px;padding:9px 14px}
.shop-tabs button.selected{background:var(--night);color:#fff;border-color:var(--night)}
.shop-item strong{font-size:15px;font-weight:700}
.shop-item p,.priority-panel small,.shop-item small{font-size:13px}
.shop-item button{font-size:13px;font-weight:700;border-radius:999px;color:var(--night);background:var(--mint);border-color:var(--mint)}
.shop-balance{font-size:14px;border-radius:14px}
.priority-panel{background:#F6F3FA;border-color:var(--border);border-radius:18px}
.priority-options button,.option-grid button,.travel-option{background:#fff;border-color:var(--border);color:var(--text);border-radius:14px;font-weight:600}
.priority-options .selected{background:var(--night);color:#fff;border-color:var(--night)}
.field{font-size:14px;color:var(--text)}
.field select,.birth-select select{background:#fff;color:var(--text);border-color:#CDBFE3;border-radius:10px;font-size:14px}
.person-card,.asset-card{border-radius:18px;background:#fff}
.person-card p,.asset-card p{font-size:14px}
.toast{background:var(--night);color:#fff;border-radius:999px;font-size:14px;font-weight:600}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--pink)}
@media(max-width:760px){.brand{font-size:12px}.brand-sub{font-size:11px}.brandmark,.brandmark svg{width:34px;height:34px}.nav{font-size:12px}h2,.page-heading h2{font-size:22px}.decision h3{font-size:21px}.speeds button{padding:6px 8px;font-size:11px}.choice-title{font-size:15px}}
.nav,.brand,.identity-tags span{white-space:nowrap}
.timeline-age{min-width:52px}
.timeline-row:before{left:62px}
#eventDialog .birth-facts{border-top-color:var(--night-line)}
@media(max-width:760px){.topbar{gap:8px;padding:0 14px}.brand>span:last-child{display:none}nav{gap:14px}.nav{font-size:13px}.identity-tags{flex-wrap:wrap}.speeds button{padding:6px 7px}}
/* Tirage et comparaison */
#drawOverlay{position:fixed;inset:0;z-index:200;background:var(--night);color:var(--night-text);display:none;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px}
#drawOverlay.show{display:flex}
.draw-label{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--night-muted)}
.draw-name{font-family:Unbounded,sans-serif;font-size:clamp(34px,7vw,72px);font-weight:700;letter-spacing:-.02em}
#drawOverlay.done .draw-name{color:var(--mint)}
.draw-odds{font-family:'Space Mono',monospace;font-size:15px;color:var(--night-muted)}
.birth-odds{display:flex;gap:16px;align-items:center;margin-top:14px;padding:14px 16px;border-radius:14px;background:#2A2040}
.birth-odds strong{font-family:Unbounded,sans-serif;font-size:22px;color:var(--mint);white-space:nowrap}
.birth-odds span{font-size:14px;line-height:1.5;color:var(--night-text)}
.compare{width:100%;border-collapse:collapse;margin-top:16px;font-size:14px}
.compare th,.compare td{padding:9px 8px;border-bottom:1px solid var(--night-line);text-align:left}
.compare thead th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--night-muted);font-weight:700}
.compare td{font-family:'Space Mono',monospace;font-size:13px}
.compare tbody th{font-weight:600;color:var(--night-text)}
.home-select{display:block;margin-top:14px;font-size:13px;color:var(--night-muted)}
.home-select select{display:block;width:100%;margin-top:6px;background:#2A2040;color:var(--night-text);border:1px solid var(--night-line);border-radius:10px;padding:10px;font-size:14px}
.money-note{font-size:12px;color:var(--night-muted);margin:10px 0 0}
@media(max-width:600px){.birth-odds{flex-direction:column;align-items:flex-start;gap:6px}.compare{font-size:12px}.compare td{font-size:12px}}
#ledger{margin:14px 0 6px;padding:12px 0 0;border-top:1px dashed var(--border)}
.ledger-head{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.ledger-head strong{font-family:'Space Mono',monospace;font-size:14px;letter-spacing:0;color:var(--lime)}
.ledger-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5;color:var(--muted);margin:3px 0}
.ledger-line span:last-child{font-family:'Space Mono',monospace;color:var(--text);white-space:nowrap}
#ledger .neg{color:#C0186A}
.credit-note{font-size:13px;line-height:1.5;color:var(--muted);background:#F6F3FA;border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin:10px 0}
.credit-note strong{color:var(--text)}
.budget-bar{display:flex;height:10px;border-radius:99px;overflow:hidden;margin:10px 0 6px;background:#EFEAF6}
.budget-bar i{display:block;height:100%}
.budget-legend{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:var(--muted);margin-bottom:6px}
.budget-legend span{display:inline-flex;align-items:center;gap:5px}
.budget-legend b{width:9px;height:9px;border-radius:3px;display:inline-block}
/* ---------- Statuts ---------- */
.status-note{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 14px;font-size:13px}
.status-note>span{font-weight:700;margin-right:4px}
.status-chip{display:inline-block;padding:4px 10px;border-radius:999px;background:#F1EEFF;color:#16101F;border:1px solid #DCD5FF;font-size:12px;font-weight:600}
.status-chip.locked{background:#F6F6F8;color:#8A8796;border-style:dashed;font-weight:500}
.status-grid{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 14px}
.link-btn{background:none;border:0;color:#5B3DF5;text-decoration:underline;cursor:pointer;font-size:13px;padding:4px}
.status-line span:last-child{text-align:right;font-weight:600}
/* ---------- Style de vie ---------- */
.style-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}
.style-pill{padding:10px 16px;border-radius:999px;border:1px solid #DCD5FF;background:#fff;color:#16101F;font-weight:600;cursor:pointer}
.style-pill.selected{background:#16101F;color:#fff;border-color:#16101F}
.status-line{align-items:flex-start;gap:10px}
.status-line span:last-child{white-space:normal;font-family:inherit;font-size:12px;line-height:1.4;max-width:62%}
/* ---------- Biographie et carte à partager ---------- */
.bio-box{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.15)}
.bio-box h4{margin:22px 0 8px;font-size:15px}
.bio-box p{margin:6px 0;line-height:1.55}
.share-card{background:#fff;color:#16101F;border-radius:22px;padding:28px 30px;max-width:420px;border-top:8px solid #3EE6A8;box-shadow:0 10px 30px rgba(22,16,31,.18)}
.share-n{font-size:72px;font-weight:800;line-height:1}
.share-sub{font-size:28px;font-weight:700;margin-top:4px}.share-sub span{color:#FF5FA2}
.share-name{font-size:22px;font-weight:700;margin-top:18px}
.share-card p{color:#4B4560;margin-top:6px}
.share-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
/* ---------- Boutique « Dépenser et investir » ---------- */
.bhead{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}
.bhead div{background:#F6F4FC;border-radius:14px;padding:12px 14px}.bhead span{display:block;font-size:12px;color:#6B6680}.bhead strong{font-size:18px}
.bsec{margin:18px 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#6B6680}
.bcard{border:1px solid #E7E3F2;border-radius:16px;padding:14px 16px;margin:10px 0;background:#fff}
.bcard-h strong{display:block;font-size:15px}.bcard-h span{display:block;font-size:13px;color:#6B6680;margin-top:2px}
.bcard-o{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bopt{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #DCD5FF;background:#F8F6FF;border-radius:12px;padding:8px 12px;cursor:pointer;font-weight:600;color:#16101F;min-width:150px}
.bopt b{color:#0E8F63;font-weight:700}.bopt:hover:not([disabled]){border-color:#3EE6A8;background:#EFFFF8}
.bopt[disabled]{opacity:.45;cursor:not-allowed}
.bmore{width:100%;margin:12px 0;padding:12px;border-radius:12px;border:1px dashed #BDB3EE;background:#fff;font-weight:700;cursor:pointer}
.bfoot{display:flex;flex-direction:column;gap:4px;margin-top:14px;border-top:1px solid #E7E3F2;padding-top:10px}
.bopt b{white-space:nowrap}
@media (max-width:560px){.bopt{width:100%}.bhead{grid-template-columns:1fr 1fr 1fr;gap:6px}.bhead strong{font-size:15px}}
/* ---------- Fiche d'identité ---------- */
.idcard{margin:16px 0 6px;border:1px solid #E7E3F2;border-radius:14px;padding:12px 14px;background:#FCFBFF}
.idcard-h{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#6B6680;margin-bottom:8px;font-weight:700}
.idrow{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:4px 0;border-top:1px dashed #EEEAF7}
.idrow:first-of-type{border-top:0}.idrow span{color:#6B6680;flex-shrink:0}.idrow b{text-align:right;font-weight:600;color:#16101F}
.lang-switch{display:inline-flex;border:1px solid var(--line,#d8dee4);border-radius:999px;overflow:hidden;margin-right:8px}
.lang-switch button{border:0;background:transparent;padding:4px 10px;font:600 12px/1.4 inherit;letter-spacing:.04em;cursor:pointer;color:inherit}
.lang-switch button.on{background:#0B1F17;color:#fff;cursor:default}
.lang-switch button:not(.on):hover{background:rgba(62,230,168,.18)}
@media(max-width:760px){.topbar{height:auto;flex-wrap:wrap;row-gap:4px;padding:10px 14px 0}.topbar nav{order:3;width:100%;display:flex;justify-content:space-between;overflow-x:auto}.topbar nav .nav{flex:1 0 auto;padding-bottom:12px}.topright{margin-left:auto}.lang-switch{margin-right:6px}.lang-switch button{padding:3px 8px;font-size:11px}}
.idcard .idrow>*{min-width:0;overflow-wrap:anywhere}
.idcard .idrow>*{overflow-wrap:break-word}
@media(max-width:760px){.idcard .idrow{display:block}.idcard .idrow>*{display:block;text-align:left}.idcard .idrow>*:last-child{margin-top:2px}}
.shop-quick{display:none}
@media(max-width:760px){
.topbar{position:sticky;top:0;z-index:40}
.shop-quick{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;margin-right:auto;margin-left:10px;padding:6px 12px;border:0;border-radius:12px;background:var(--night,#160F1E);color:#fff;font:700 12.5px/1.2 inherit;cursor:pointer;box-shadow:0 2px 8px rgba(22,15,30,.18)}
.shop-quick .q-cash{font-weight:600;font-size:11px;color:#3EE6A8}
.shop-quick:disabled{opacity:.45}
.topright{flex:1}
}
.hud-stats{display:none}
@media(max-width:760px){
.topbar .brand{order:1}.topbar .topright{order:2}.topbar nav{order:3}
.hud-stats{order:4;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;padding:6px 0 10px;border-top:1px solid var(--border)}
.hud-stat{all:unset;cursor:pointer;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:4px;row-gap:3px;min-width:0}
.hud-name{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hud-val{font:700 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--night)}
.hud-stat i{grid-column:1/-1;height:4px;border-radius:4px;background:#EEEAF7;overflow:hidden;display:block}
.hud-stat i b{display:block;height:100%;border-radius:4px}
.topbar nav .nav{padding-bottom:10px}
.shell{display:flex!important;flex-direction:column}
.shell>.content{order:1;min-width:0}
.shell>.sidebar{order:2;border-right:0;border-top:1px solid var(--border);padding-top:24px}
.shell>.rightbar{display:none}
}
@media(max-width:760px){.topright{display:flex;gap:6px;align-items:center}.shop-quick{order:-1;margin:0 auto 0 10px}}
@media(max-width:760px){.shell>.content-footer{order:3}}
/* ===== Téléphone : version application (écran fixe, sans défilement de page) ===== */
#mDock,#mId,#mPrio{display:none}
html.m-app,html.m-app body{height:100%;overflow:hidden;overscroll-behavior:none}
html.m-app body{display:flex;flex-direction:column;height:100dvh;background:#fff}
html.m-app .topbar{position:relative;flex:0 0 auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:10px;row-gap:0;padding:max(10px,env(safe-area-inset-top)) 16px 0;height:auto;border-bottom:0;background:#fff}
html.m-app .topbar .brand{grid-column:1;grid-row:1;display:flex;align-items:center;gap:10px;font-family:inherit}
html.m-app .brandmark,html.m-app .brandmark svg{width:40px;height:40px}
html.m-app .brand>span:last-child{display:flex!important;flex-direction:column;border-left:1.5px solid #D9D3E4;padding-left:10px;font:800 21px/1 Manrope,system-ui,sans-serif;letter-spacing:-.9px;color:#120C18;position:relative;padding-bottom:4px}
html.m-app .brand>span:last-child::after{content:"";position:absolute;left:8px;right:-4px;top:19px;height:7px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5Q45 -1 98 2.5' stroke='%2322C55E' stroke-width='2.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%}
html.m-app .brand-sub{margin-top:6px;font:italic 500 11.5px/1 Manrope,system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#2A2238}
html.m-app .topright{grid-column:3;grid-row:1;display:flex;gap:8px;align-items:center;flex:none;margin:0}
html.m-app .shop-quick,html.m-app .demo-tag{display:none!important}
html.m-app .lang-switch{margin:0}
html.m-app #settingsBtn{width:38px;height:38px;border-radius:50%;box-shadow:0 2px 8px rgba(22,15,30,.12);font-size:18px}
html.m-app .topbar nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;width:100%;margin-top:8px;border-bottom:1px solid #EEEAF3;overflow:visible;gap:0}
html.m-app .topbar nav .nav{flex:1;padding:8px 0 9px;font-size:14.5px;font-weight:700;color:#6B4FA0;border-bottom:3px solid transparent;border-radius:0;background:none}
html.m-app .topbar nav .nav.active{color:#120C18;border-bottom-color:#047857}
html.m-app .hud-stats{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:9px 0 8px;border-top:0}
html.m-app .hud-name{font-size:11.5px;color:#1E1726}
html.m-app .hud-val{font:800 13.5px/1 Manrope,system-ui,sans-serif}
html.m-app .hud-stat i{height:5px;background:#E6E2EE}
html.m-app main.shell{flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;padding:0 16px;margin:0;max-width:none;gap:0}
html.m-app .shell>.sidebar,html.m-app .shell>.rightbar,html.m-app .content-footer,html.m-app .page-heading,html.m-app #world,html.m-app .timebar,html.m-app #countryInsight,html.m-app #priorityPanel,html.m-app #liveNotice,html.m-app #decisionCount{display:none!important}
html.m-app .shell>.content{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:0;border:0}
html.m-app #mId{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:12px;flex:0 0 auto;margin:6px 0 0;padding:12px 14px;border:1px solid #E7E2EE;border-radius:18px;background:#F6F5F9;box-shadow:0 1px 3px rgba(22,15,30,.05)}
html.m-app .m-portrait{all:unset;cursor:pointer;position:relative;width:64px;height:64px;border-radius:16px;background:#DDF3E6;box-shadow:inset 0 0 0 3px #fff,0 0 0 1.5px #C9E9D6}
html.m-app .m-face{position:absolute;inset:7px;border-radius:11px;overflow:hidden;background:#E9F6EE}
html.m-app .m-face svg{width:100%;height:100%;display:block}
html.m-app .m-flag{position:absolute;right:-6px;bottom:-6px;width:26px;height:26px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:17px;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.18)}
html.m-app .m-sep{width:1.5px;align-self:stretch;margin:6px 0;background:#D9D3E4}
html.m-app .m-who{min-width:0;display:flex;flex-direction:column;gap:2px}
html.m-app .m-name{font:800 19px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-.5px;color:#120C18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m-app .m-place{font-size:12.5px;color:#2A2238;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m-app .m-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
html.m-app .m-tags span{padding:3px 8px;border-radius:999px;background:#D7F5E5;color:#0B3B26;font:700 10.5px/1.25 Manrope,system-ui,sans-serif;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
html.m-app .m-age{align-self:center;white-space:nowrap;color:#047857;font:800 15px/1 Manrope,system-ui,sans-serif}
html.m-app .m-age b{font-size:26px;letter-spacing:-.8px}
html.m-app #mPrio{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;align-self:center;margin:9px 0 2px;padding:6px 16px;min-height:34px;border:1.5px solid #0E5A37;border-radius:999px;background:#F3FAF6;color:#120C18;font:800 13.5px/1 Manrope,system-ui,sans-serif;cursor:pointer;max-width:100%}
html.m-app #mPrio svg{width:17px;height:17px;flex:none}
html.m-app #mPrio .m-prio-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m-app #lifeView{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;border-top:1px solid #EEEAF3;margin-top:8px;padding-top:8px}
html.m-app #lifeView.hidden{display:none}
html.m-app .timeline-head{flex:0 0 auto;margin:0;display:block}
html.m-app .timeline-head .eyebrow{font-size:11px;letter-spacing:2.2px;color:#3B2A5C;font-weight:800}
html.m-app .timeline-head h3{margin:3px 0 0;font:800 23px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-.8px;color:#120C18}
html.m-app .journal-caption{flex:0 0 auto;margin:4px 0 7px;font-size:11.5px;color:#2A2238}
html.m-app .journal-caption .live-dot{background:#22C55E}
html.m-app .m-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:1px solid #E7E2EE;border-radius:18px;background:#fff;box-shadow:0 1px 3px rgba(22,15,30,.04);scrollbar-width:thin}
html.m-app .m-scroll>.timeline{max-height:none;overflow:visible;border:0;border-radius:0;background:transparent;padding:14px 14px 4px}
html.m-app .m-scroll>#lifeSummary{margin:12px;border-radius:14px}
html.m-app .timeline-copy strong{font-size:14px}
html.m-app .timeline-copy p{font-size:12.5px;line-height:1.5}
html.m-app .timeline-row{padding-bottom:16px}
html.m-app .panel-view:not(.hidden){flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin-top:10px;padding:4px 2px 14px}
/* Barre du bas */
html.m-app #mDock{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;flex:0 0 auto;position:relative;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #EEEAF3;z-index:30}
html.m-app .m-money{display:flex;flex-direction:column;gap:7px;min-width:0}
html.m-app .m-bal{display:flex;align-items:stretch;border:1.5px solid #0E5A37;border-radius:14px;background:#F3FAF6;overflow:hidden}
html.m-app .m-bal-main{all:unset;cursor:pointer;flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:7px 4px 7px 10px;font:600 13.5px/1 Manrope,system-ui,sans-serif;color:#120C18;white-space:nowrap;overflow:hidden}
html.m-app .m-bal-main>span{overflow:hidden;text-overflow:ellipsis}
html.m-app .m-bal-main svg{width:22px;height:22px;flex:none;color:#0E5A37}
html.m-app .m-bal-val{font-weight:800;font-size:15px}
html.m-app .m-bal-val.m-flash{animation:mflash .7s ease}
@keyframes mflash{0%{color:#22C55E;transform:scale(1.12)}100%{color:inherit;transform:none}}
html.m-app .m-bal-arrow{all:unset;cursor:pointer;display:grid;place-items:center;width:34px;color:#120C18}
html.m-app .m-bal-arrow svg{width:18px;height:18px;transition:transform .2s}
html.m-app #mDock.open .m-bal-arrow svg{transform:rotate(180deg)}
html.m-app .m-spend{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 12px;border-radius:15px;background:linear-gradient(180deg,#0B6B3A,#06522B);color:#fff;font:800 16px/1 Manrope,system-ui,sans-serif;box-shadow:0 3px 10px rgba(6,82,43,.3)}
html.m-app .m-spend svg{width:22px;height:22px}
html.m-app .m-spend:disabled{opacity:.45}
html.m-app .m-vsep{width:1px;align-self:stretch;background:#E4DDEE}
html.m-app .m-time{display:flex;flex-direction:column;align-items:center;gap:7px}
html.m-app .m-ctrls{display:flex;align-items:center;gap:7px;padding:5px;border-radius:999px;background:#fff;box-shadow:0 2px 12px rgba(22,15,30,.1)}
html.m-app .m-pause,html.m-app .m-play{all:unset;cursor:pointer;display:grid;place-items:center;border-radius:50%}
html.m-app .m-pause{width:42px;height:42px;background:#E9E3F5;color:#120C18}
html.m-app .m-play{width:48px;height:48px;background:#0B3B22;color:#fff;box-shadow:0 3px 10px rgba(11,59,34,.35)}
html.m-app .m-pause svg{width:18px;height:18px}.m-play svg{width:22px;height:22px;margin-left:2px}
html.m-app .m-pause:disabled{opacity:.45}
html.m-app #mDock.is-running .m-play{background:#22C55E}
html.m-app .m-speed{position:relative;display:flex;align-items:center;gap:3px;padding:8px 10px;border-radius:999px;background:#FBF3E6;font:800 13.5px/1 Manrope,system-ui,sans-serif;color:#120C18}
html.m-app .m-speed svg{width:14px;height:14px}
html.m-app .m-speed select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;font-size:16px}
html.m-app .m-yr{padding:4px 12px;border-radius:999px;background:#DDF3E6;color:#0B3B22;font:800 12px/1.2 Manrope,system-ui,sans-serif;white-space:nowrap}
html.m-app .m-sheet{position:absolute;left:12px;right:12px;bottom:calc(100% + 8px);padding:14px;border-radius:18px;background:#fff;border:1px solid #E7E2EE;box-shadow:0 10px 30px rgba(22,15,30,.18)}
html.m-app .m-sheet[hidden]{display:none}
html.m-app .m-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html.m-app .m-cell{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:#F6F5F9}
html.m-app .m-cell.wide{grid-column:1/-1;background:#E8F7EF}
html.m-app .m-cell span{font-size:11px;color:#5B5070;font-weight:700;text-transform:uppercase;letter-spacing:.6px}
html.m-app .m-cell b{font:800 17px/1.1 Manrope,system-ui,sans-serif;color:#120C18}
html.m-app .m-cell.wide b{font-size:21px;color:#047857}
html.m-app .m-cell.neg b{color:#C2185B}
html.m-app .m-sheet-link{all:unset;cursor:pointer;display:block;margin-top:10px;text-align:center;font:700 12.5px/1.3 Manrope,system-ui,sans-serif;color:#0E5A37}
/* Priorités (fenêtre) */
.m-prio-sub{margin:0 0 12px;color:#5B5070;font-size:13px}
.m-prio-list{display:grid;gap:8px}
.m-prio-list button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:11px 14px;border:1.5px solid #E4DDEE;border-radius:14px;background:#fff;text-align:left;cursor:pointer}
.m-prio-list button strong{font-size:14px}.m-prio-list button small{font-size:12px;color:#5B5070}
.m-prio-list button.selected{border-color:#0E5A37;background:#F3FAF6}
.m-prio-list button:disabled{opacity:.5;cursor:default}
.m-reborn{margin-top:12px;width:100%}
@media(max-height:640px){html.m-app #mId{padding:9px 12px}html.m-app .m-portrait{width:52px;height:52px}html.m-app .timeline-head .eyebrow{display:none}html.m-app .timeline-head h3{font-size:20px}html.m-app .journal-caption{display:none}html.m-app .m-play{width:42px;height:42px}html.m-app .m-pause{width:38px;height:38px}html.m-app .m-spend{padding:8px 12px}}
@media(max-width:360px){html.m-app .topbar nav .nav{font-size:13px}html.m-app .brand>span:last-child{font-size:18px}html.m-app .m-spend{font-size:14.5px}html.m-app .m-ctrls{gap:4px}html.m-app .m-pause{width:36px;height:36px}html.m-app .m-play{width:42px;height:42px}html.m-app .m-speed{padding:7px 8px}html.m-app #mDock{gap:8px;padding-left:12px;padding-right:12px}html.m-app .hud-stats{gap:6px}html.m-app .hud-name{font-size:10px}}
html.m-app .m-tags{gap:3px 4px;margin-top:4px}
html.m-app .m-tags span{padding:2px 7px;font-size:10px}
html.m-app .m-tags span:first-child{background:#0E5A37;color:#fff}
html.m-app #mId{gap:10px;padding:11px 12px}
html.m-app .m-portrait{width:58px;height:58px}
html.m-app .m-age b{font-size:24px}
html.m-app #mDock{gap:10px}
html.m-app .m-bal-main{gap:6px;padding-left:8px;font-size:12px}
html.m-app .m-bal-val{font-size:14px}
html.m-app .m-bal-main svg{width:19px;height:19px}
html.m-app .m-bal-arrow{width:28px}
html.m-app .m-ctrls{gap:5px;padding:4px}
html.m-app .m-pause{width:38px;height:38px}
html.m-app .m-play{width:44px;height:44px}
html.m-app .m-speed{padding:7px 8px;font-size:13px}
html.m-app .topbar{grid-template-columns:minmax(0,1fr) auto}
html.m-app .topbar .brand{min-width:0}
html.m-app .topright{grid-column:2}
html.m-app .brand>span:last-child{min-width:0;font-size:clamp(15px,5.2vw,21px);white-space:nowrap}
html.m-app .brand-sub{font-size:clamp(10px,3vw,11.5px)}
html.m-app .hud-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html.m-app .hud-stat{min-width:0}
html.m-app .hud-name{min-width:0}
@media(max-width:380px){html.m-app .lang-switch button{padding:3px 7px}html.m-app #settingsBtn{width:34px;height:34px}html.m-app .brandmark,html.m-app .brandmark svg{width:34px;height:34px}html.m-app .brand{gap:8px!important}html.m-app .brand>span:last-child{padding-left:8px}}
html.m-app #mPrio .m-prio-txt,html.m-app .m-name,html.m-app .m-place,html.m-app .m-bal-main,html.m-app .m-tags span{line-height:1.3;padding-top:1px}
html.m-app .m-name{line-height:1.25}
/* Logo « One Life » en mode application */
.m-brand{display:none}
html.m-app .brand>span:not(.brandmark):not(.m-brand){display:none!important}
html.m-app .brand .m-brand{display:flex;flex-direction:column;align-items:flex-start;min-width:0;border-left:2px solid #120C18;padding:1px 0 1px 11px}
html.m-app .m-word{position:relative;font:italic 900 clamp(24px,7.6vw,31px)/1 Manrope,"Arial Black",system-ui,sans-serif;letter-spacing:-1.3px;color:#0A0A0A;padding-bottom:7px;white-space:nowrap}
html.m-app .m-word::after{content:"";position:absolute;left:-2px;right:-6px;bottom:0;height:7px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 7Q40 1 99 2.2' stroke='%2320F0A6' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%}
html.m-app .m-i{position:relative;display:inline-block}
html.m-app .m-i i{position:absolute;left:58%;top:-.02em;width:.22em;height:.22em;border-radius:50%;background:#FF4FA0;transform:translateX(-50%)}
html.m-app .m-slogan{margin-top:3px;font:500 clamp(11px,3.4vw,13.5px)/1.2 Manrope,system-ui,sans-serif;color:#0A0A0A;white-space:nowrap}
html.m-app .brandmark svg rect{fill:#20F0A6}
html.m-app .brand>.m-brand::after{content:none!important;display:none!important}
html.m-app .brand>.m-brand{font:inherit;letter-spacing:0;padding-bottom:1px;border-left:2px solid #120C18}
html.m-app .m-word{letter-spacing:-.6px;padding:0 4px 8px 0}
/* ===== Fil de vie coloré par type ===== */
.timeline-row .timeline-copy{border-radius:12px;padding:9px 12px 10px;margin:-6px 0 0;transition:background .2s}
.tl-choice .timeline-copy{background:#F3EEFC}
.tl-daily .timeline-copy{background:#F8F6F1}
.tl-echo .timeline-copy{background:#F8F6F1}
.tl-good .timeline-copy{background:#EAF8F0}
.tl-hard .timeline-copy{background:#FCEEF2}
.tl-signal .timeline-copy{background:#FFF4E0}
.tl-cap .timeline-copy{background:#FFF7D1}
.tl-fact .timeline-copy{background:#EEF4FC}
.tl-choice .timeline-dot{background:#8B6CD1!important}
.tl-good .timeline-dot{background:#22C55E!important}
.tl-hard .timeline-dot{background:#E0487D!important}
.tl-signal .timeline-dot{background:#F0A020!important}
.tl-cap .timeline-dot{background:#E8B400!important}
.tl-fact .timeline-dot{background:#5B8DEF!important}
.tl-echo .timeline-dot,.tl-daily .timeline-dot{background:#C9BFA8!important}
.tl-cap .timeline-copy strong{color:#7A5A00}
.tl-signal .timeline-copy strong{color:#8A4B00}
.tl-extra{display:flex;flex-wrap:wrap;gap:5px 8px;margin-top:6px;align-items:center}
.tl-origin{display:block;width:100%;font-size:11.5px;color:#5B5070;font-style:italic}
.tl-hint{color:#8A4B00;font-style:normal;font-weight:700}
.tl-fx{display:flex;flex-wrap:wrap;gap:4px}
.tl-fx b{font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:999px;background:#fff}
.tl-fx b.up{color:#047857;box-shadow:inset 0 0 0 1px #BFE8D2}
.tl-fx b.down{color:#B4235A;box-shadow:inset 0 0 0 1px #F3C4D4}
.tl-legend{display:flex;flex-wrap:wrap;gap:4px 10px;margin:-14px 0 16px;font-size:11px;color:#5B5070}
.tl-legend .lg{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.tl-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.lg-choice i{background:#E2D7F7}.lg-daily i{background:#ECE7DB}.lg-good i{background:#CDEFDB}.lg-hard i{background:#F7D3DE}.lg-signal i{background:#FFE2AE}.lg-cap i{background:#FFEB99}
html.m-app .tl-legend{margin:0 0 7px;gap:3px 8px;font-size:10px}
html.m-app .journal-caption{display:none}
html.m-app .timeline-copy{padding:8px 10px 9px}
.lg-fact i{background:#D6E4FA}
.fit{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#FFF2C2;color:#7A5A00;font-size:11px;font-weight:800;vertical-align:middle}
.fit-item{box-shadow:inset 3px 0 0 #E8B400}
.tl-stage .timeline-copy{background:linear-gradient(90deg,#E4F7EC,#F3EEFC)}
.tl-stage .timeline-dot{background:#0E5A37!important}
.tl-stage .timeline-copy strong{color:#0B3B22}

/* Fenêtre de décision en blanc (ordinateur et téléphone) */
#eventDialog{background:#FFFFFF;border:1px solid var(--border);color:var(--text);box-shadow:0 24px 60px #16101F33}
#eventDialog::backdrop{background:#16101F66;backdrop-filter:blur(3px)}
#eventDialog .event-dialog-top{background:#F6F3FA;border-bottom:1px solid var(--border)}
#eventDialog .event-dialog-top>span{color:var(--muted)}
#eventDialog .event-dialog-top button{color:var(--text);border-color:#CDBFE3;background:#FFFFFF}
#eventDialog .decision{background:#FFFFFF;color:var(--text)}
#eventDialog .decision h3{color:var(--text)}
#eventDialog .decision p{color:var(--muted)}
#eventDialog .decision-meta,#eventDialog .decision-meta span{color:var(--muted)}
#eventDialog .decision-meta .event-label{color:var(--lime)}
#eventDialog .decision-meta .event-label:before{background:var(--lime)}
#eventDialog .choice{background:#FFFFFF;border:1px solid var(--border);color:var(--text)}
#eventDialog .choice:first-child{background:var(--mint);border-color:var(--mint);color:var(--night)}
#eventDialog .choice:hover:not(:disabled){border-color:var(--lime);background:#F6F3FA}
#eventDialog .choice:first-child:hover:not(:disabled){background:var(--mint)}
#eventDialog .choice:disabled{opacity:.5}
#eventDialog .choice-hint{color:var(--muted);opacity:1}
#eventDialog .choice:first-child .choice-hint{color:var(--night);opacity:.8}
#eventDialog .decision-note{color:var(--muted)}
#eventDialog .birth-facts{border-top-color:var(--border)}
/* Fenêtre de reprise : deux vrais boutons côte à côte */
#resumeLifeBtn,#rebirthBtn{margin:6px 8px 0 0;padding:12px 20px;border-radius:12px;font-weight:700;font-size:14px;cursor:pointer}
#rebirthBtn{background:#FFFFFF;border:1px solid #CDBFE3;color:var(--text)}
#rebirthBtn:hover{border-color:var(--lime)}
@media(max-width:760px){#resumeLifeBtn,#rebirthBtn{width:100%;margin:8px 0 0}}

/* Accessibilité : texte agrandi, animations réduites, focus visible */
html[data-text=large] body{zoom:1.15}
html[data-motion=reduce] *,html[data-motion=reduce] *::before,html[data-motion=reduce] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
:focus-visible{outline:3px solid #047857;outline-offset:2px}
/* Réglages et À propos */
.prefs fieldset{border:1px solid #E4DDEE;border-radius:12px;padding:10px 14px;margin:12px 0}
.prefs legend{font-weight:700;font-size:13px;padding:0 6px}
.pref-opt{display:inline-flex;align-items:center;gap:6px;margin:4px 14px 4px 0;font-size:14px;cursor:pointer}
.prefs small{display:block;color:#5B5070;font-size:12px;line-height:1.6;margin-top:4px}
.prefs kbd{border:1px solid #CDBFE3;border-bottom-width:2px;border-radius:5px;padding:0 5px;font-size:11px;margin:0 1px;background:#FFFFFF}
.pref-install{border:1px solid #CDBFE3;border-radius:10px;padding:10px 14px;font-weight:700;background:#F6F3FA;cursor:pointer}
.about-h{font-family:Unbounded,sans-serif;font-size:15px;margin:20px 0 6px}
.src-group{margin:8px 0;font-size:13px}.src-group ul{margin:4px 0 0 18px;padding:0;color:#5B5070;line-height:1.6}
/* Agir et dépenser : cases par catégorie, recherche, liste */
.asearch{width:100%;box-sizing:border-box;margin:6px 0 14px;padding:12px 14px;border:1px solid #CDBFE3;border-radius:12px;font:inherit;font-size:15px;background:#FFFFFF;color:#16101F}
.asearch:focus{outline:3px solid #3EE6A8;outline-offset:1px;border-color:#047857}
.agrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:4px 0 18px}
.atile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px;border:1px solid #E4DDEE;border-radius:14px;background:#FFFFFF;cursor:pointer;min-height:104px;font:inherit;color:#16101F;transition:border-color .15s,transform .15s}
.atile:hover{border-color:#047857;transform:translateY(-1px)}
.atile-i{font-size:24px;line-height:1}
.atile-t{font-weight:800;font-size:14px;line-height:1.25}
.atile-n{font-size:12px;color:#5B5070}
.atile-free{background:#ECFDF5;border-color:#A7F3D0}
.aback{border:0;background:none;padding:6px 0;margin:4px 0 2px;font:inherit;font-weight:700;color:#047857;cursor:pointer}
.acat-title{font-family:Unbounded,sans-serif;font-size:18px;margin:6px 0 12px}
.alater{margin-top:14px}.alater summary{cursor:pointer;font-weight:700;color:#5B5070;padding:8px 0}
@media(max-width:760px){.agrid{grid-template-columns:1fr 1fr}.atile{min-height:96px;padding:12px}}
/* Défi du jour et succès */
.defi-box{margin:18px 0 6px;padding:16px;border:1px solid #A7F3D0;border-radius:14px;background:#ECFDF5}
.defi-box p{margin:6px 0 12px;color:#5B5070;font-size:14px}
.succes-box{margin:12px 0}.succes-box summary{cursor:pointer;font-weight:800;padding:8px 0}
.succes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:8px}
.succes{border:1px solid #E4DDEE;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:2px;opacity:.55;background:#FFFFFF}
.succes.on{opacity:1;border-color:#A7F3D0;background:#F3FAF6}
.succes span{font-size:20px}.succes b{font-size:13px}.succes small{font-size:12px;color:#5B5070;line-height:1.35}
/* Accueil : les règles du jeu avant la naissance */
.welcome .w-lead{font-size:18px;line-height:1.55;color:#16101F;margin:4px 0 16px}
.w-step{display:flex;gap:14px;align-items:flex-start;margin:12px 0}
.w-step>span{flex:0 0 32px;height:32px;border-radius:50%;background:#3EE6A8;color:#0B1F17;font-weight:800;display:flex;align-items:center;justify-content:center;font-family:Unbounded,sans-serif;font-size:14px}
.w-step b{font-size:15px}.w-step p{margin:4px 0 0;font-size:14px;line-height:1.6;color:#5B5070}
.w-goal{margin:18px 0 6px;padding:14px 16px;border-radius:14px;background:#F6F3FA;font-size:15px;line-height:1.6;color:#16101F}
.w-small{font-size:12px;color:#5B5070;margin:10px 0 16px}
.w-born{width:100%;padding:16px;font-size:17px;border-radius:14px}
/* Acte de naissance : cases claires dans la fenêtre blanche */
#eventDialog .birth-facts>div{background:#F6F3FA;border:1px solid #E4DDEE}
#eventDialog .birth-facts span{color:#5B5070}
#eventDialog .birth-facts strong{color:#16101F}
/* Accueil : volet « Règles du jeu » qui se déroule, seul le volet défile */
.w-acc{border:1px solid #E4DDEE;border-radius:16px;background:#FFFFFF;overflow:hidden;margin:4px 0 14px}
.w-acc-h{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border:0;background:#FFFFFF;text-align:left;cursor:pointer;font:inherit;color:#16101F}
.w-acc-h b{display:block;font-size:15px;font-weight:800}.w-acc-h small{display:block;font-size:12px;color:#5B5070;margin-top:2px}
.w-ic{font-size:20px}.w-ch{margin-left:auto;color:#047857;font-size:13px;transition:transform .2s}
.w-acc.open .w-acc-h{border-bottom:1px solid #E4DDEE}.w-acc.open .w-ch{transform:rotate(180deg)}
.w-acc-b{display:none;overflow-y:auto;overscroll-behavior:contain;max-height:min(44dvh,380px);padding:2px 16px 12px}
.w-acc.open .w-acc-b{display:block}
.w-acc-b::-webkit-scrollbar{width:6px}.w-acc-b::-webkit-scrollbar-thumb{background:#CDBFE3;border-radius:6px}
.w-acc-b .w-step>span{flex-basis:28px;height:28px;font-size:13px}.w-acc-b .w-step p{font-size:13.5px}
.w-acc-b .w-goal{margin:12px 0 4px;padding:12px 14px;border-radius:12px;background:#F6F3FA;font-size:14px;line-height:1.6;color:#16101F}
.welcome .w-small{margin:0 0 12px}
@media(max-width:760px){.w-acc-b{max-height:min(40dvh,340px)}}
/* Entrée : bouton Renaître et tirage au sort du pays */
.w-rebirth{width:100%;margin-top:8px;padding:13px;border-radius:14px;border:1px solid #CDBFE3;background:#FFFFFF;font:inherit;font-weight:700;font-size:15px;color:#16101F;cursor:pointer}
.w-rebirth:hover{border-color:#047857}
.draw{text-align:center;padding:6px 0 10px}
.draw-sub{color:#5B5070;font-size:15px;margin:0 0 18px}
.draw-box{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 16px;border:1px solid #E4DDEE;border-radius:18px;background:#FFFFFF;transition:border-color .3s,box-shadow .3s}
.draw-flag{font-size:64px;line-height:1;min-height:64px}
.draw-name{font-family:Unbounded,sans-serif;font-size:24px;font-weight:700;color:#16101F;min-height:32px}
.draw-box.done{border-color:#3EE6A8;box-shadow:0 0 0 4px #3EE6A833}
.draw-res{margin:16px 0 0;font-size:16px;line-height:1.6;color:#16101F;min-height:52px}
/* Agir (gratuit) et Dépenser : deux parties bien séparées */
.apart{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:18px 0 8px;font-family:Unbounded,sans-serif;font-size:17px}
.apart small{font-family:Manrope,sans-serif;font-size:12px;font-weight:600;color:#5B5070}
.bcard-free{border-color:#A7F3D0}
.acat-kind{display:block;font-family:Manrope,sans-serif;font-size:12px;font-weight:600;color:#5B5070;margin-top:2px}
/* Téléphone : le bouton de l'état en cours est vert (▶ quand le temps passe, ❚❚ en pause) */
html.m-app .m-play,html.m-app .m-pause{background:#E9E3F5;color:#120C18;box-shadow:none;opacity:1}
html.m-app #mDock.is-running .m-play{background:#22C55E;color:#FFFFFF;box-shadow:0 3px 10px rgba(34,197,94,.35)}
html.m-app #mDock:not(.is-running) .m-pause{background:#22C55E;color:#FFFFFF;box-shadow:0 3px 10px rgba(34,197,94,.35)}
html.m-app .m-pause:disabled,html.m-app .m-play:disabled{opacity:.45}
html.m-app #mPrio[hidden]{display:none!important}
/* Cartes compactes (Agir et dépenser) : 2 par ligne sur téléphone, 3 sur ordinateur */
.cgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 10px}
.ccard{background:#FFFFFF;border:1px solid #E4DDEE;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0}
.ccard-free{border-color:#A7F3D0}.ccard-off{opacity:.55}
.cc-i{font-size:20px;line-height:1}.cc-t{font-size:13px;line-height:1.25;color:#16101F;overflow-wrap:anywhere}
.cc-x{font-size:11px;line-height:1.35;color:#5B5070;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cc-lv{font-size:10.5px;font-weight:800;color:#047857}
.cc-f{margin-top:auto;padding-top:4px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.cc-p{font-weight:800;font-size:12.5px;color:#047857;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-b{border:0;border-radius:9px;padding:6px 10px;background:#16101F;color:#FFFFFF;font:inherit;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap}
.cc-b:disabled{background:#CDBFE3;color:#16101F;cursor:default}
.cc-os{margin-top:auto;display:flex;flex-direction:column;gap:4px}
.cc-o{display:flex;justify-content:space-between;gap:6px;border:1px solid #E4DDEE;border-radius:9px;padding:5px 8px;background:#F6F3FA;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer;text-align:left;color:#16101F}
.cc-o b{color:#047857;white-space:nowrap}.cc-o:disabled{opacity:.5;cursor:default}
@media(max-width:760px){.cgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Crédit visible */
.cc-credit{background:#8A4B00}
html.m-app .m-tags .m-debt,.debt-tag{background:#FDECEC!important;color:#B42318!important;font-weight:700}
.asub{font-size:13px;margin:10px 0 2px;color:#16101F}
.cc-why{font-size:10.5px;font-weight:800;color:#8A4B00;background:#FFF4E0;border-radius:6px;padding:2px 6px;align-self:flex-start}
.bhead strong.neg{color:#B42318}
/* La croix reste toujours dans l'angle de la fenêtre, même en descendant */
#modal .modal-header{position:sticky;top:0;z-index:5;background:#F6F3FA;margin-top:0}
#modal .modal-header::after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:10px;background:linear-gradient(#F6F3FA,rgba(246,243,250,0));pointer-events:none}
#modal #closeModal{position:relative;z-index:6}
#modal{padding-top:0}
#modal .modal-header{padding-top:22px;padding-bottom:8px}
.cc-f{flex-wrap:wrap}.cc-credit{flex:1 1 100%;text-align:center}
/* Émigration : deux destinations */
.dp-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.dp-card{background:#FFFFFF;border:1px solid #E4DDEE;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}
.dp-top{display:flex;gap:10px;align-items:center}.dp-flag{font-size:34px;line-height:1}.dp-top b{display:block;font-size:15px}.dp-top small{color:#5B5070;font-size:12px}
.dp-odds span{font-size:11px;color:#5B5070;font-weight:700}.dp-odds b{font-size:15px;color:#047857}
.dp-bar{height:8px;border-radius:6px;background:#EFEAF6;overflow:hidden;margin:4px 0}.dp-bar i{display:block;height:100%;background:#3EE6A8}
.dp-go{width:100%;font-size:13px;padding:10px}
.dp-risk{border:1px dashed #E0A800;background:#FFF8E6;border-radius:12px;padding:8px;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer;text-align:left;color:#16101F}
.dp-risk small{display:block;font-weight:600;color:#8A4B00;font-size:11px}
@media(max-width:560px){.dp-grid{grid-template-columns:1fr}}
.ccard-off{opacity:.5;filter:grayscale(.6)}
.cc-b:disabled,.cc-o:disabled{background:#E4DDEE;color:#6B6680}
/* Évoluer dans son métier */
.evo-steps{list-style:none;padding:0;margin:6px 0 14px;display:flex;flex-direction:column;gap:6px}
.evo-steps li{padding:9px 12px;border:1px solid #E4DDEE;border-radius:12px;background:#FFFFFF;font-weight:700;font-size:14px;color:#5B5070}
.evo-steps li.done{color:#047857;background:#F3FAF6;border-color:#A7F3D0}.evo-steps li.now{outline:2px solid #3EE6A8}
.evo-next{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:14px;background:#FFFFFF;border:1px solid #CDBFE3}
.evo-next small{color:#5B5070;font-size:12.5px}
/* ===== Version ordinateur compacte (maquette web v4) ===== */
html.d-compact #world,html.d-compact .page-heading,html.d-compact .timebar,html.d-compact .sidebar .stats,html.d-compact #countryInsight,html.d-compact .journal-caption{display:none!important}
html.d-compact body{height:100vh;overflow:hidden}
html.d-compact .shell{height:calc(100vh - 72px);align-items:stretch}
html.d-compact .sidebar,html.d-compact .rightbar,html.d-compact .content{height:100%;overflow-y:auto;overscroll-behavior:contain}
html.d-compact .content{padding-top:14px}
#dTop{position:sticky;top:0;z-index:4;background:#FFFFFF;display:flex;flex-direction:column;gap:10px;padding-bottom:10px}
.d-when{display:flex;align-items:center;gap:8px;font-size:13px;color:#5B5070;font-weight:700}.d-when b{color:#16101F}.d-when .sep{opacity:.5}
.d-chap{margin-left:auto;font-size:12px;background:#F6F3FA;border:1px solid #E4DDEE;border-radius:999px;padding:4px 10px;color:#047857}
.d-thin{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.d-thin span{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#5B5070}.d-thin span b{margin-left:auto;color:#16101F}
.d-thin u{display:block;height:4px;border-radius:4px;background:#E9E3F5;margin-top:4px;overflow:hidden;text-decoration:none}.d-thin s{display:block;height:100%;transition:width .6s ease}
.d-mood{font-size:10.5px;font-weight:800;color:#8A4B00;background:#FFF4E0;border-radius:6px;padding:1px 6px}
.d-delta{font-style:normal;font-size:10.5px;font-weight:800}.d-delta.up{color:#047857}.d-delta.down{color:#B42318}
.d-ctrl{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:10px 12px;border:1px solid #E4DDEE;border-radius:16px;background:#FFFFFF}
.d-cl{display:flex;flex-direction:column;align-items:center;gap:4px}.d-pp{display:flex;gap:6px}
.d-pp button{width:40px;height:40px;border-radius:50%;border:0;background:#E9E3F5;color:#16101F;font-weight:800;cursor:pointer}.d-pp button.on{background:#22C55E;color:#FFFFFF}
.d-yr{font-size:11.5px;font-weight:700;color:#5B5070}
.d-speeds{display:flex;gap:2px;border:1px solid #E4DDEE;border-radius:999px;padding:3px;justify-self:start}
.d-speeds button{border:0;background:none;font:inherit;font-size:12px;font-weight:800;padding:6px 9px;border-radius:999px;color:#5B5070;cursor:pointer}.d-speeds button.on{background:#3EE6A8;color:#16101F}
.d-cr{display:flex;flex-direction:column;gap:6px;min-width:280px}
.d-next{border:1px solid #E4DDEE;border-radius:14px;padding:9px 14px;font:inherit;font-weight:800;background:#FFFFFF;cursor:pointer}
.d-ybar{position:relative;height:16px;border-radius:999px;background:#EFEAF6;overflow:hidden}.d-ybar i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#3EE6A8,#22C55E);border-radius:999px}
.d-ybar span{position:relative;display:block;text-align:center;font-size:10.5px;font-weight:800;line-height:16px;color:#16101F}
.d-act{display:flex;gap:6px;align-items:center}.d-bal{border:1px solid #E4DDEE;border-radius:12px;padding:7px 10px;font:inherit;font-size:13px;font-weight:800;background:#FFFFFF;white-space:nowrap;cursor:pointer}.d-bal small{color:#5B5070;font-weight:700}.d-bal small.neg{color:#B42318}
.d-spend{flex:1;border:0;border-radius:12px;padding:10px 12px;background:#0E5A37;color:#FFFFFF;font:inherit;font-weight:800;cursor:pointer}
/* priorités et décision en attente, compactes */
html.d-compact .priority-panel{padding:8px 0;margin:0 0 10px;border:0;background:none}
html.d-compact .priority-panel .section-label{display:inline-block;margin:0 8px 0 0}
html.d-compact .priority-options{display:inline-flex;gap:6px;margin:0;flex-wrap:wrap}
html.d-compact .priority-options button{font-size:12.5px;padding:6px 11px;border-radius:999px}
html.d-compact .priority-panel small{display:none}
html.d-compact #liveNotice{margin:0 0 10px;padding:9px 14px;border-radius:14px}
html.d-compact .timeline-head{margin-top:4px}
/* bébés nés à la même seconde */
.d-twins{margin-top:18px}.d-tw{display:flex;align-items:center;gap:10px;padding:6px 0}.d-twf{width:30px;height:30px;border-radius:50%;background:#E9E3F5;display:grid;place-items:center;font-size:15px}
.d-tw b{display:block;font-size:13px}.d-tw small{font-size:11.5px;color:#5B5070}
html.m-app #dTop,html.m-app #dTwins{display:none!important}
.d-thin em{font-style:normal}
/* Téléphone : barre de l'année */
html.m-app .m-ybar{position:relative;height:14px;border-radius:999px;background:#EFEAF6;overflow:hidden;margin-top:6px;width:100%}
html.m-app .m-ybar i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#3EE6A8,#22C55E)}
html.m-app .m-ybar span{position:relative;display:block;text-align:center;font-size:10px;font-weight:800;line-height:14px;color:#16101F}
/* Vos fréquentations */
.cp-list{display:flex;flex-direction:column;gap:8px}.cp-row{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#FFFFFF;border:1px solid #E4DDEE;border-radius:14px;padding:10px 12px;flex-wrap:wrap}
.cp-row b{display:block;font-size:14px}.cp-row small{font-size:12px;color:#5B5070}.cp-btns{display:flex;gap:6px}.cp-btns button{border:1px solid #CDBFE3;border-radius:10px;padding:7px 10px;font:inherit;font-weight:700;font-size:12.5px;background:#FFFFFF;cursor:pointer}.cp-btns .primary{background:#16101F;color:#fff;border-color:#16101F}
/* En prison : on ne peut plus rien toucher, la vie passe */
html.in-jail .priority-options,html.in-jail #mPrio,html.in-jail .d-spend,html.in-jail .m-spend,html.in-jail #shopBtn,html.in-jail #shopQuick{opacity:.4;pointer-events:none}
/* Mes abonnements */
.sb-total{background:#F6F3FA;border:1px solid #E4DDEE;border-radius:12px;padding:10px 12px;font-size:13px;margin-bottom:10px}
.sb-list{display:flex;flex-direction:column;gap:8px}.sb-row{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#FFFFFF;border:1px solid #E4DDEE;border-radius:14px;padding:10px 12px}
.sb-row.on{border-color:#A7F3D0;background:#F3FAF6}.sb-row b{display:block;font-size:14px}.sb-row small{font-size:12px;color:#5B5070}.sb-r{display:flex;align-items:center;gap:8px;white-space:nowrap}.sb-r span{font-weight:800;color:#047857;font-size:13px}
.sb-r button{border:1px solid #CDBFE3;border-radius:10px;padding:7px 10px;font:inherit;font-weight:700;font-size:12.5px;background:#FFFFFF;cursor:pointer}.sb-r .primary{background:#16101F;color:#fff;border-color:#16101F}
/* Raccourcis en haut d'Agir et dépenser */
.qk{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 4px}.qk button{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #E4DDEE;border-radius:14px;background:#FFFFFF;padding:10px 6px;font:inherit;font-weight:800;font-size:12px;cursor:pointer;text-align:center}
.qk button span{font-size:20px}.qk button:hover{border-color:#047857}.qk-sub{grid-column:1/-1;font-size:12px;color:#5B5070;font-weight:700}
@media(max-width:760px){.qk{grid-template-columns:repeat(2,1fr)}}

.cc-done{display:block;font-size:.72rem;color:#2f7a4a;font-weight:600;margin-top:2px}
.amore>summary{cursor:pointer;font-weight:600;margin:10px 0 6px}

.ag-net{display:flex;justify-content:space-between;align-items:baseline;margin:12px 0 4px;font-weight:700}
.ag-net strong{font-size:1.15rem}
.ag-ledger{margin-top:10px}
.ag-year{display:block;margin:6px 0 2px;text-align:left}
.ag-ppp{font-size:.75rem;margin:2px 0 8px}

/* Grille de vie */
:root{--bl-1:#E0287D;--bl-2:#F29A5B;--bl-3:#FFD166;--bl-4:#8FDDB0;--bl-5:#1F9D6B;--bl-empty:#ECE7F2}
.bl-box{margin:14px 0;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff}
.bl-h{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.bl-h small{font-weight:500;letter-spacing:0;text-transform:none}
.bl-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;max-width:260px}
.bl-grid.bl-big{max-width:300px;gap:3px}
.bl-c{display:block;aspect-ratio:1;border-radius:3px}
.bl-fut{opacity:.55}
.bl-now{outline:2px solid #E0287D;outline-offset:1px}
.bl-le{box-shadow:inset 0 0 0 2px var(--text);border-radius:2px}
.bl-leg{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;font-size:11px;color:var(--muted)}
.bl-leg span{display:inline-flex;align-items:center;gap:5px}
.bl-leg i{display:inline-block;width:10px;height:10px;border-radius:2px}
.bl-leg .bl-le-k{box-shadow:inset 0 0 0 2px var(--text);background:var(--bl-empty)}
.bl-end h4{margin-top:14px}
.bl-leg .bl-now-k{outline:2px solid #E0287D;outline-offset:-2px;background:var(--bl-empty)}

/* Mode automatique */
.au-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;margin-top:12px;padding:10px 12px;border-radius:10px;background:#EAF8F1;color:#14532D;font-size:13px}
.au-bar .link-btn{font-size:12px}
.choice.au-pick{box-shadow:0 0 0 2px #1F9D6B inset}
.au-go{display:block;margin:10px auto 0;font-size:12px}
.au-tog{border:1px solid var(--border);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;background:#fff;color:var(--text);cursor:pointer}
.au-tog.on{background:#1F9D6B;border-color:#1F9D6B;color:#fff}
.au-pill{position:fixed;left:16px;bottom:16px;z-index:60;display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;background:#16101F;color:#fff;font-size:13px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.au-pill button{background:#fff;color:#16101F;border:0;border-radius:999px;padding:4px 10px;font-weight:600;cursor:pointer}
@media(max-width:760px){.au-pill{bottom:140px;left:16px}}

/* Agir et dépenser : une colonne de rangées */
.sh-top{margin:0 0 12px}
.sh-bal{display:flex;align-items:baseline;gap:10px}
.sh-bal span{font-size:13px;color:var(--muted)}
.sh-bal strong{font-size:26px;font-weight:800}
.sh-sub{font-size:13px;color:var(--muted);margin-top:2px}
.sh-sub .neg{color:#C0186A}
.sh-year{display:inline-block;margin-top:4px;font-size:13px}
.sh-ppp{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.sh-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;margin:0 0 6px;scrollbar-width:none}
.sh-chips::-webkit-scrollbar{display:none}
.sh-chip{flex:0 0 auto;border:1px solid var(--border);background:#fff;border-radius:999px;padding:6px 11px;font-size:13px;white-space:nowrap;cursor:pointer;color:var(--text)}
.sh-chip.on{background:#16101F;color:#fff;border-color:#16101F}
.sh-h{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:10px 0 6px;font-weight:700}
.sh-rows{display:flex;flex-direction:column;gap:6px}
.sr{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#F7F5FA;color:var(--text);font:inherit;cursor:pointer}
button.sr:hover{background:#EFEAF6}
.sr-i{flex:0 0 22px;font-size:18px;text-align:center}
.sr-m{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.sr-m b{font-size:14px;font-weight:650;line-height:1.25}
.sr-m small{font-size:12px;color:var(--muted);line-height:1.3}
.sr-m em{font-style:normal;color:#B45309;font-weight:600}
.sr-ok{color:#1F9D6B!important;font-weight:600}
.sr-p{flex:0 0 auto;text-align:right;font-family:'Space Mono',monospace;font-size:13px;font-weight:700;white-space:nowrap;color:#047857}
.sr-p small{display:block;font-family:inherit;font-size:10px;font-weight:500;color:var(--muted)}
.sr-off{color:var(--muted);font-weight:500;font-size:11px;white-space:normal;max-width:90px}
.sr-dis{opacity:.55;cursor:default}
.sr-done{background:#fff}
.sr-multi{cursor:default}
.sr-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sr-pill{border:1px solid var(--border);background:#fff;border-radius:999px;padding:5px 10px;font-size:12px;cursor:pointer;color:var(--text);text-align:left}
.sr-pill span{color:#047857;font-weight:700;white-space:nowrap}
.sr-pill[disabled]{opacity:.5;cursor:default}
.sh-more{margin-top:8px}
.sh-more>summary{cursor:pointer;font-size:13px;font-weight:600;padding:6px 0;color:var(--text)}
.sh-more .sh-rows{margin-top:4px}
.sh-foot{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:16px;padding-top:10px;border-top:1px solid var(--border)}
.sh-foot .link-btn{font-size:13px}
.sh-status{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sh-status span{font-size:11px;padding:3px 8px;border-radius:999px;background:#F1EDF7;color:var(--muted)}
@media(min-width:761px){.sh-chips{flex-wrap:wrap;overflow:visible}}
.sr-grp{background:#fff}
.sr-grp .sr-p small:last-child{display:inline;margin-left:6px;font-size:14px;color:var(--muted)}

/* Amant·e dans « Mes proches » */
.lv-box{margin:14px 0;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff}
.lv-box h4{margin:0 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lv-row{display:flex;gap:10px;align-items:flex-start;padding:6px 0}
.lv-row b{font-size:14px}.lv-row small{display:block;font-size:12px;color:var(--muted)}
.lv-i{font-size:18px}

/* Volets « Mes proches » et « Mon patrimoine » */
.vl-pop{position:fixed;z-index:80;background:#fff;border:1px solid #ECE7F2;border-radius:22px;box-shadow:0 14px 44px rgba(22,16,31,.16);padding:10px;overflow:visible}
.vl-pop.vl-anim{animation:vlIn .16s ease-out}
@keyframes vlIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.vl-in{max-height:inherit;overflow:auto;border-radius:16px}
.vl-caret{position:absolute;top:-8px;width:16px;height:16px;background:#fff;border-left:1px solid #ECE7F2;border-top:1px solid #ECE7F2;transform:rotate(45deg);border-radius:3px 0 0 0}
.vl-list{display:flex;flex-direction:column;gap:8px}
.vl-row{border:1px solid #ECE7F2;border-radius:16px;background:#fff;overflow:hidden}
.vl-row.on{border-color:#DCEFE3}
.vl-head{display:flex;align-items:center;gap:12px;width:100%;padding:10px 10px 10px 12px;background:none;border:0;text-align:left;cursor:pointer;color:var(--text);font:inherit}
.vl-av{flex:0 0 40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:15px;color:#16101F}
.vl-ic{flex:0 0 40px;height:40px;display:grid;place-items:center;color:#2F5D46}
.vl-ic svg,.vl-act svg,.vl-add svg,.vl-ch svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.vl-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.vl-t b{font-size:16px;font-weight:650;line-height:1.25}
.vl-t small{font-size:12px;color:var(--muted);margin-top:1px}
.vl-ch{flex:0 0 34px;height:34px;border-radius:50%;background:#F1EDF7;display:grid;place-items:center;color:#16101F;transition:transform .15s}
.vl-ch svg{width:18px;height:18px}
.vl-row.on .vl-ch{transform:rotate(180deg);background:#E4F5EA}
.vl-acts{display:flex;align-items:stretch;margin:0 8px 8px;background:#EAF7EF;border-radius:14px;padding:6px}
.vl-acts>i{width:1px;background:#CFE6D7;margin:6px 0}
.vl-act{flex:1 1 0;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 6px;background:none;border:0;color:#16101F;font:inherit;font-size:13px;cursor:pointer;text-align:left;line-height:1.2}
.vl-act svg{flex:0 0 22px;color:#1F7A4D}
.vl-act[disabled]{opacity:.4;cursor:default}
.vl-items{margin:0 12px 8px;font-size:13px;display:flex;flex-direction:column;gap:4px}
.vl-items div{display:flex;justify-content:space-between;gap:10px;color:var(--muted)}
.vl-items b{color:var(--text);font-weight:600}
.vl-add{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;padding:12px 14px;border:0;border-top:1px solid #ECE7F2;background:none;font:inherit;font-size:14px;color:#16101F;cursor:pointer}
.vl-add svg{color:#16101F}
.vl-empty{margin:8px;color:var(--muted);font-size:13px}
.sh-mine{color:#1F7A4D}
