:root{--navy:#102a35;--navy2:#183944;--gold:#e3bb74;--goldlight:#f2dca9;--ink:#233d45;--muted:#72828a;--paper:#f7f4ed;--line:#e1e4df;--green:#438d75;--shadow:0 14px 36px rgba(13,34,43,.10)}
*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{font-family:Inter,"Segoe UI",Arial,sans-serif;background:#e9efe9;color:var(--ink);overflow:hidden}button{font:inherit;cursor:pointer}button:disabled{opacity:.44;cursor:not-allowed}button:focus-visible{outline:3px solid #f1b54c;outline-offset:2px}#app{display:flex;flex-direction:column}
.topbar{height:76px;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 20px;background:#102b37;color:#fff;border-bottom:1px solid rgba(232,200,141,.35);position:relative;z-index:11}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-icon{font-size:29px;width:49px;height:49px;display:grid;place-items:center;background:linear-gradient(135deg,#eecf8d,#b98340);border:2px solid #f8e7b8;border-radius:15px;color:#102e35;box-shadow:inset 0 1px 6px #fff7d266}.brand-name{font-weight:900;letter-spacing:1.45px;font-size:17px;white-space:nowrap}.brand-name span{color:#f6d28d}.brand-tag{letter-spacing:2.4px;font-weight:700;color:#c5d0cd;font-size:9px;padding-top:5px}.brand-tag em{font-style:normal;color:#f3c67e}.top-stats{display:flex;gap:10px;min-width:0}.stat{min-width:126px;border:1px solid #37535b;background:#173744;border-radius:12px;display:flex;align-items:center;gap:9px;padding:10px 12px}.stat-ico{font-size:17px;color:#f4c98a}.stat small{font-size:10px;color:#b0c2c5;display:block;margin-bottom:3px}.stat strong{font-size:17px;color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums}.top-actions{display:flex;gap:7px}.ui-icon{width:36px;height:36px;border:1px solid #4a626d;border-radius:10px;color:#f7ecd1;background:#1b3b48;font-size:21px;transition:background .2s}.ui-icon:hover,.stage-btn:hover{background:#355d6e}
.workspace{display:flex;flex:1;min-height:0}.build-panel{width:296px;min-width:296px;background:#fbfaf6;display:flex;flex-direction:column;z-index:8;box-shadow:4px 0 20px #102e3510}.panel-head,.inspector-head{padding:22px 18px 15px;display:flex;justify-content:space-between;align-items:start}.panel-head small,.inspector-head small{color:#bc955a;letter-spacing:2px;font-size:10px;font-weight:800}.panel-head h2,.inspector-head h2{margin:5px 0 0;color:#1c3944;font-size:20px;letter-spacing:-.6px}.panel-close{display:none;border:0;background:transparent;color:#597078;font-size:26px}.category-strip{display:flex;gap:5px;padding:4px 13px 14px;overflow:visible;flex-wrap:wrap;row-gap:6px;scrollbar-width:thin;flex-shrink:0}.cat-btn{border:1px solid #dce3dd;background:#f2f4ee;color:#61717a;padding:8px 10px;border-radius:10px;font-size:10px;font-weight:800;white-space:nowrap;letter-spacing:.1px}.cat-btn.active{color:#183b45;background:#f3e3bf;border-color:#e5c47c}.catalog-scroll{padding:2px 12px 15px;overflow-y:auto;flex:1;scrollbar-color:#d6dcd5 transparent}.catalog-label{font-size:11px;color:#9c8a67;font-weight:800;letter-spacing:1.4px;margin:8px 5px 11px}.catalog-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.item-card{position:relative;padding:8px;border-radius:13px;background:#fff;border:1px solid #e3e7e0;text-align:left;box-shadow:0 4px 9px #172f3a0a;min-width:0;transition:transform .1s,border .1s}.item-card:hover{transform:translateY(-1px);border-color:#bb9659}.item-card.active{border:2px solid #bd8845;background:#fff9eb;padding:7px;box-shadow:0 3px 13px #d1a45d30}.item-preview{width:100%;height:79px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:radial-gradient(ellipse at 50% 70%,#c2debd,#e6f0df);overflow:hidden}.item-preview img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 2px #122f3422)}.item-name{display:block;font-size:11px;font-weight:800;margin:8px 2px 3px;line-height:1.25;color:#1a3941}.item-price{display:block;font-size:12px;font-weight:800;color:#a17641;margin:0 2px 3px}.item-card.unaffordable{opacity:.65}.item-card .dim{position:absolute;right:6px;top:5px;font-size:9px;color:#425a5c;background:#ffffffc9;padding:3px 5px;border-radius:6px;font-weight:700}.build-footer{padding:13px 16px 15px;border-top:1px solid #e5e6e0;background:#f8f6ee}.build-footer p{font-size:11px;color:#89918d;line-height:1.45;margin:6px 0 0}.legend-line{display:flex;gap:6px;align-items:center;font-size:10px;color:#708179}.legend{height:10px;width:10px;display:inline-block;border-radius:3px}.legend.good{background:#68b27b}.legend.bad{background:#de887b;margin-left:3px}
.game-stage{flex:1;min-width:0;min-height:0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#9bbfa4,#597c72);touch-action:none}#world{width:100%;height:100%;display:block;cursor:grab;touch-action:none;outline:0}#world:active{cursor:grabbing}.stage-top-left{position:absolute;top:20px;left:21px;pointer-events:none}.park-chip{display:flex;align-items:center;gap:11px;background:#102d3ae8;color:#fff;border:1px solid #f4d49b8a;padding:11px 15px;border-radius:13px;box-shadow:0 9px 22px #18302b34;backdrop-filter:blur(10px)}.park-chip .spark{font-size:27px;color:#f7d38c}.park-chip b{font-size:11px;letter-spacing:1.1px}.park-chip small{display:block;font-size:10px;color:#bed5d2;margin-top:5px}.stage-top-right{position:absolute;right:20px;top:19px;display:flex;flex-direction:column;gap:7px}.stage-btn{width:39px;height:39px;background:#173c48e8;border:1px solid #ffffff56;box-shadow:0 5px 12px #1b3e4630;border-radius:11px;color:#fff;font-size:21px}.tool-notice{position:absolute;top:21px;left:50%;transform:translateX(-50%);max-width:calc(100% - 260px);min-width:250px;background:#fbf9f0ee;border-radius:12px;box-shadow:0 8px 25px #0b3d4224;display:flex;gap:11px;align-items:center;padding:11px 12px;color:#26434c;border:1px solid #fff6de}.tool-notice>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e7d39e;color:#26434c;font-size:20px;flex-shrink:0}.tool-notice div{min-width:0}.tool-notice b{display:block;font-size:12px;line-height:1.3}.tool-notice div span{display:block;font-size:10px;margin-top:3px;color:#7d8681;line-height:1.3}.tool-notice button{background:transparent;border:0;color:#83928f;font-size:20px;margin-left:5px}.stage-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;position:absolute;bottom:22px;left:20px;right:20px;pointer-events:none}.stage-bottom>div{pointer-events:auto;display:flex;align-items:center;gap:5px;padding:6px;background:#12333de9;border:1px solid #e2c48b55;border-radius:12px;box-shadow:0 8px 22px #0f2e3b44}.stage-bottom button{border:0;border-radius:8px;background:transparent;color:#f7f8eb;font-size:12px;font-weight:800;padding:9px 12px}.stage-bottom button:hover,.stage-bottom button.active{background:#f0d49d;color:#213841}.stage-bottom #btn-pause{font-size:18px;padding:6px 13px}.stage-action-links button{font-size:12px;white-space:nowrap}.mobile-tools{display:none}
#toast-zone{position:absolute;bottom:84px;left:50%;transform:translateX(-50%);z-index:8;display:flex;flex-direction:column;gap:7px;align-items:center;pointer-events:none;max-width:95%}.toast{color:#fff;background:#173b47f5;border:1px solid #edd3a1;padding:12px 17px;border-radius:12px;box-shadow:0 9px 20px #12333d40;font-weight:700;font-size:12px;text-align:center;animation:pop .24s ease-out}.toast.error{border-color:#f0a6a0;background:#583e46f5}@keyframes pop{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.info-panel{width:276px;min-width:276px;background:#f8f7f2;border-left:1px solid #e0e5df;display:flex;flex-direction:column;overflow-y:auto;z-index:8}.inspector-head{padding:22px 17px 15px}.inspector-head h2{font-size:19px}#inspector-content{padding:0 14px;flex:1}.section-card{background:#fff;border:1px solid #e5e7df;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 4px 10px #28454a06}.section-card h3{font-size:13px;color:#223e49;margin:0 0 11px}.section-card .hint{font-size:11px;color:#788882;line-height:1.5;margin:7px 0}.mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mini-stat{padding:11px;background:#f3f4ee;border-radius:9px}.mini-stat small{font-size:10px;color:#829088;display:block;margin-bottom:5px}.mini-stat b{font-size:15px;color:#2d4950;font-variant-numeric:tabular-nums}.bar-box{background:#e6ece6;height:7px;overflow:hidden;border-radius:99px;margin-top:8px}.bar-fill{background:linear-gradient(90deg,#5ba67c,#8bc79c);height:100%;width:0%;border-radius:99px}.mission{display:flex;gap:9px;margin-bottom:10px;align-items:flex-start;color:#586a68;font-size:11px;line-height:1.4}.mission .check{display:grid;place-items:center;width:20px;height:20px;background:#eaf1e9;color:#669371;font-weight:800;border-radius:6px;flex-shrink:0}.mission.done .check{background:#4b9778;color:white}.mission.done span{text-decoration:line-through;opacity:.65}.activity{border-left:2px solid #e2cd9c;padding:0 0 10px 10px;margin-left:4px;font-size:11px;color:#667a78;line-height:1.5}.activity time{font-weight:800;color:#b18c55;display:block;font-size:10px}.sidebar-footer{font-size:9px;font-weight:900;letter-spacing:.7px;padding:18px;border-top:1px solid #e2e7e0;color:#506669}.sidebar-footer span{font-weight:400;color:#9baba3;margin-left:6px}.selection-preview{height:128px;border-radius:12px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse,#b5d7b0,#e8eedd);margin-bottom:12px}.selection-preview img{max-width:100%;max-height:125px}.selection-title{font-size:19px;font-weight:900;color:#1a3c45}.selection-sub{font-size:11px;color:#8a998e;margin:4px 0 14px}.price-control{display:flex;justify-content:space-between;align-items:center;background:#f4f4ef;border-radius:10px;padding:7px}.price-control button{height:34px;width:34px;border-radius:8px;border:1px solid #d8dfd5;background:white;font-size:19px}.price-control b{font-size:16px}.action-primary,.action-muted,.action-danger{width:100%;border:0;border-radius:9px;padding:11px;font-size:12px;font-weight:800;margin-top:8px}.action-primary{background:#264c52;color:#fff}.action-muted{background:#e9eee7;color:#2e5660}.action-danger{background:#f7e7e1;color:#9a4b3f}.metric-row{display:flex;align-items:center;justify-content:space-between;margin:8px 0;font-size:12px;color:#6e807a}.metric-row b{color:#24474e}.warning-pill{color:#a15c42;background:#faeadd;padding:8px;border-radius:7px;font-size:11px;line-height:1.4;margin-top:10px}
.backdrop{display:none}.modal-scrim{position:fixed;inset:0;background:#08202ad6;display:none;justify-content:center;align-items:center;padding:20px;z-index:30;backdrop-filter:blur(6px)}.modal-scrim.open{display:flex}.modal{width:min(95vw,530px);max-height:85vh;overflow-y:auto;border-radius:20px;background:#fffdfa;position:relative;padding:30px;box-shadow:0 28px 75px #0008;border:2px solid #d8b878}.modal-x{position:absolute;right:17px;top:15px;border:0;background:#edf1ee;color:#5b7779;border-radius:10px;font-size:23px;width:36px;height:36px}.modal-eyebrow{color:#bc9251;font-size:10px;font-weight:900;letter-spacing:2px}.modal h2{font-size:25px;margin:10px 40px 16px 0;color:#1d3e47}.modal p{font-size:13px;line-height:1.6;color:#61736d}.modal ul{font-size:13px;line-height:1.7;color:#60746e;padding-left:20px}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:20px}.modal-actions button{border:0;border-radius:10px;padding:11px 17px;font-weight:800;font-size:12px}.modal-actions .neutral{background:#eaf0eb;color:#27444d}.modal-actions .positive{background:#1a4b50;color:#fff}.modal-actions .negative{background:#a54b45;color:#fff}.budget-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.budget-card{background:#f3f5ef;padding:13px;border-radius:10px}.budget-card small{display:block;color:#728782;font-size:10px}.budget-card b{display:block;font-size:19px;color:#21434c;margin-top:5px}.modal .smallnote{font-size:11px;color:#91a09a}
@media(max-width:1320px){.info-panel{width:248px;min-width:248px}.build-panel{width:263px;min-width:263px}.top-stats{gap:5px}.stat{min-width:108px;padding:8px}.stat strong{font-size:15px}.topbar{padding:0 12px}.tool-notice{top:82px;max-width:90%}}
@media(max-width:1080px){.info-panel{display:none;position:absolute;right:0;top:76px;bottom:0;width:290px;min-width:0;z-index:15;box-shadow:-10px 10px 26px #102d3652}.info-panel.open{display:flex}.info-panel .panel-close{display:block}.stat-day{display:none}.tool-notice{top:17px;left:57%;max-width:300px}.brand-name{font-size:15px}}
@media(max-width:760px){.topbar{height:65px;min-height:65px;padding:0 10px;gap:6px}.brand{gap:7px}.brand-icon{width:35px;height:35px;font-size:19px;border-radius:10px}.brand-name{font-size:12px;letter-spacing:.2px}.brand-tag{font-size:7px;letter-spacing:.8px}.top-stats{margin-left:auto;gap:4px}.stat{min-width:0;padding:5px 7px;border-radius:8px}.stat-ico{display:none}.stat small{font-size:8px}.stat strong{font-size:11px}.stat:nth-child(3){display:none}.top-actions{gap:3px}.top-actions .ui-icon{width:28px;height:29px;font-size:16px}.top-actions #btn-save,.top-actions #btn-full{display:none}.build-panel{position:absolute;left:0;right:0;bottom:0;height:278px;width:100%;min-width:0;z-index:20;border-radius:20px 20px 0 0;transform:translateY(110%);transition:transform .2s;box-shadow:0 -12px 40px #102d3655}.build-panel.open{transform:translateY(0)}.panel-head{padding:11px 15px 5px}.panel-head h2{font-size:16px}.panel-head small{font-size:8px}.build-panel .panel-close{display:block}.catalog-scroll{padding:3px 12px}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.item-card{padding:5px}.item-card.active{padding:4px}.item-preview{height:61px}.item-name{font-size:10px}.item-price{font-size:10px}.item-card .dim{display:none}.category-strip{padding:3px 11px 7px;flex-wrap:nowrap;overflow-x:auto}.cat-btn{padding:7px 10px}.build-footer{display:none}.game-stage{height:auto}.stage-top-left{top:12px;left:12px}.park-chip{padding:7px 9px;border-radius:9px;gap:7px}.park-chip .spark{font-size:18px}.park-chip b{font-size:9px}.park-chip small{font-size:9px;margin-top:3px}.stage-top-right{top:12px;right:11px}.stage-btn{width:31px;height:31px;font-size:18px}.tool-notice{top:auto;bottom:110px;left:50%;max-width:96%;min-width:0;width:calc(100% - 26px);padding:7px 10px}.tool-notice>span{height:26px;width:26px;font-size:16px}.tool-notice b{font-size:11px}.tool-notice div span{font-size:9px}.stage-bottom{left:9px;right:9px;bottom:60px}.stage-bottom>div{padding:3px;gap:1px}.stage-bottom button{padding:7px 9px;font-size:11px}.stage-action-links button{padding:7px}.stage-action-links button span{display:none}.stage-bottom #btn-pause{padding:3px 9px}.mobile-tools{position:absolute;bottom:0;left:0;right:0;display:flex;padding:9px 9px calc(9px + env(safe-area-inset-bottom));gap:7px;background:#112f3bea;border-top:1px solid #f1d0966b}.mobile-tools button{flex:1;border:1px solid #5c767b;border-radius:9px;background:#294b54;color:#f6e4be;font-size:10px;font-weight:900;padding:10px 5px}.mobile-tools button:first-child{background:#ebc788;color:#193a43;border-color:#ead6a5}.info-panel{top:65px;bottom:0}.backdrop{position:absolute;inset:65px 0 0;background:#07232a77;z-index:14}.backdrop.open{display:block}#toast-zone{bottom:165px;width:100%}.modal{padding:24px}.modal h2{font-size:21px}}
@media(max-width:400px){.stat:nth-child(2){display:none}.topbar{gap:4px}.brand-name{font-size:11px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-action-links #btn-new{display:none}}

/* V1.1 : nomenclature personnalisable et catalogue illustré */
.rename-field{display:flex;flex-direction:column;gap:9px;margin:12px 0 15px}.rename-field label{font-size:12px;font-weight:900;color:#35515a}.rename-field input{display:block;width:100%;border:2px solid #e6c891;border-radius:11px;padding:13px 14px;font-size:16px;font-weight:750;color:#193540;background:#fff;outline:none}.rename-field input:focus{box-shadow:0 0 0 4px #e8c78b44;border-color:#b88b48}.rename-button{background:#e5eaf2;color:#183b51}.selection-title{overflow-wrap:anywhere}.item-preview img{object-fit:contain;image-rendering:auto;filter:drop-shadow(0 8px 9px #253a3260)}.selection-preview img{filter:drop-shadow(0 9px 8px #233b3e44)}

.ui-gallery{display:grid;place-items:center;text-decoration:none;font-size:19px}

/* V1.3 personnel */
.staff-catalog{display:flex;flex-direction:column;gap:11px;padding:10px 0 25px}.staff-summary{background:#e9f0e8;color:#365d5c;padding:11px;border-radius:12px;font-size:12px;font-weight:800}.staff-card{background:linear-gradient(145deg,#fffdf5,#edf0e7);border:1px solid #dccfae;border-radius:14px;padding:11px;display:grid;grid-template-columns:63px 1fr;gap:7px;box-shadow:0 3px 10px #17343a13}.staff-card>img{height:86px;width:60px;object-fit:contain;object-position:bottom}.staff-card>div:not(.staff-actions){display:flex;flex-direction:column;gap:4px}.staff-card b{font-size:12px;color:#193e47}.staff-card small{font-size:10px;line-height:1.35;color:#597373}.staff-card em{font-size:10px;font-weight:800;color:#a07a45;font-style:normal}.staff-actions{grid-column:1/-1;display:flex;gap:6px}.staff-actions button{flex:1;padding:9px 5px;border-radius:9px;border:0;background:#1f5559;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.staff-actions button:last-child{background:#f0e7df;color:#915b49}.staff-actions button:disabled{opacity:.4;cursor:not-allowed}.staff-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.staff-modal-grid>div{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;background:#f0f5f0;border:1px solid #dce5db;padding:12px 6px;border-radius:11px}.staff-modal-grid img{height:95px;width:75px;object-fit:contain}.staff-modal-grid b{font-size:12px;color:#254b54}.staff-modal-grid span{font-size:11px;color:#528977;font-weight:800}.staff-modal-grid small{font-size:10px;color:#687e79;line-height:1.4}
@media(max-width:760px){.staff-card{grid-template-columns:50px 1fr;padding:8px}.staff-card>img{width:46px;height:76px}.staff-actions button{padding:7px 4px}.staff-catalog{padding:0 0 10px}}
/* V2.1 — central park gate badge is an accessible clickable control */
.stage-top-left{pointer-events:auto;z-index:5}
.park-chip{cursor:pointer;user-select:none;transition:border-color .15s,box-shadow .15s}
.park-chip:hover,.park-chip:focus-visible{border-color:#ffde97;box-shadow:0 0 0 2px #e7bd6480,0 10px 22px #17303850;outline:none}

@media (max-width:760px){.top-actions .ui-gallery{display:none}}

/* V3.7 — Catalogue rétractable sur ordinateur. Le plateau s'agrandit. */
@media (min-width:761px){
 .workspace .build-panel{transition:width .22s ease,min-width .22s ease,opacity .18s ease;overflow:hidden;flex-shrink:0}
 .workspace.build-collapsed .build-panel{width:0!important;min-width:0!important;opacity:0;pointer-events:none;box-shadow:none}
}
.build-toggle{position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:9;width:29px;height:72px;border:1px solid #e8c98e;border-left:0;border-radius:0 10px 10px 0;background:#1a4050ee;color:#fff0bf;font-size:28px;box-shadow:2px 5px 13px #123a4c60}
.build-toggle:hover{background:#2a6370}
@media(max-width:760px){.build-toggle{display:none}}
.satisfaction-breakdown{margin:15px 0 9px;display:grid;gap:10px}
.sat-line{display:grid;grid-template-columns:1fr auto;gap:3px 6px;align-items:center;font-size:11px;color:#5c716b}
.sat-line b{font-size:11px;color:#294f55}.sat-track{grid-column:1/-1;height:5px;border-radius:9px;background:#e2e8dd;overflow:hidden}
.sat-track i{display:block;height:100%;border-radius:9px;transition:width .4s}
.starter-card{background:linear-gradient(140deg,#f4faed,#fff9e8);border:1px solid #e0dec8}

/* V5.9 — Gestion avancée : lisibilité sur ordinateur, tablette et mobile */
.management-banner{width:100%;height:88px;object-fit:contain;object-position:left center;display:block;border-radius:11px;background:linear-gradient(105deg,#eef5ee,#fbf7e6);margin:0 0 15px;max-width:100%}
.finance-graph{min-height:113px;display:flex;gap:5px;align-items:flex-end;justify-content:space-around;padding:12px 8px 18px;background:#f3f6f0;border:1px solid #dde8dd;border-radius:12px;overflow-x:auto;margin:10px 0 18px}
.fin-bar-col{min-width:23px;max-width:38px;flex:1;display:flex;flex-direction:column-reverse;align-items:center;gap:5px;font-size:10px;font-weight:800;color:#64827b}
.fin-bar-col i{display:block;width:100%;max-width:27px;border-radius:5px 5px 1px 1px;min-height:4px}
.positive-text{color:#257d5b!important}.negative-text{color:#b45452!important}
.profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px}
.profile-summary>div{display:flex;flex-direction:column;gap:5px;text-align:center;background:#f0f4ed;border-radius:9px;padding:10px 6px}
.profile-summary b{font-size:18px;color:#315b60}.profile-summary small{font-size:10px;color:#587370;line-height:1.3}
.review-line{margin:8px 0;border:1px solid #dde6df;background:#f8faf6;border-left:4px solid #62a989;border-radius:9px;padding:9px 11px}
.review-line.negative{border-left-color:#d48568;background:#fff9f4}
.review-line span{font-size:11px;color:#456166}.review-line p{margin:5px 0!important;font-size:12px!important;color:#47626a!important}
.thought-bubble{margin:15px 0;background:#e7f1ea;border:1px solid #cce1d0;border-radius:11px;padding:12px;font-size:14px;color:#315950;line-height:1.5}
@media(max-width:760px){.management-banner{height:66px}.finance-graph{gap:2px}.profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-card b{font-size:16px}}

.live-thoughts{display:grid;gap:7px;padding:6px 0 12px}.live-thoughts>div{font-size:12px;color:#355960;background:#f2f6ee;border-radius:7px;padding:9px 11px}.live-thoughts b{color:#184650}

.finance-periods{display:flex;gap:7px;margin:7px 0 4px}.finance-periods button{border:1px solid #d3e0d7;border-radius:8px;padding:7px 13px;font-size:11px;font-weight:800;background:#f4f6f0;color:#4b686a}.finance-periods button.selected{background:#245159;color:white;border-color:#245159}.rename-field small{font-size:11px;line-height:1.45;color:#798a84}


/* V6.0 — Publicité et événements : cartes compactes et commandes accessibles */
.campaign-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:9px 0 18px}
.campaign-card{min-width:0;background:linear-gradient(155deg,#fffdf5,#eef4ed);border:1px solid #d7dfcf;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:7px}
.campaign-card-heading{display:flex;flex-direction:column;gap:4px}.campaign-card b{font-size:13px;color:#244953}.campaign-card small{font-size:10px;color:#6a867f}.campaign-card p{font-size:11px;line-height:1.45;margin:0;color:#55716c}.campaign-stat{display:flex;flex-wrap:wrap;gap:4px}.campaign-stat span{padding:4px 6px;background:#e3eee5;border-radius:6px;font-size:10px;font-weight:800;color:#386b5f}
.campaign-buy{margin-top:auto;font-size:11px!important;padding:9px!important;width:100%}.campaign-buy:disabled,.modal-actions button:disabled{opacity:.42;cursor:not-allowed}
.mgmt-line{display:flex;flex-direction:column;gap:4px;padding:9px 12px;margin:7px 0;border:1px solid #d8e4dd;border-left:4px solid #d7aa53;border-radius:9px;background:#f8faf3}.mgmt-line strong{font-size:12px;color:#2c5154}.mgmt-line span{font-size:11px;color:#5d7773}
.event-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.event-choice{padding:12px;border-radius:12px;background:#eff5ef;border:1px solid #d9e5db}.event-choice b{color:#264c51;font-size:12px}.event-choice p{font-size:11px;color:#607a77;line-height:1.45}.event-choice small{font-size:10px;font-weight:800;color:#a67b3f}
.event-history{background:#f7f8f2;border-radius:10px;border:1px solid #dae4dd;padding:10px;margin:8px 0;display:flex;flex-direction:column;gap:4px}.event-history b{color:#254c53;font-size:12px}.event-history small{color:#996e3d;font-size:10px}.event-history p{margin:0!important;font-size:11px!important;color:#55716b!important}
#btn-events.unread{background:#a75636;border-color:#ffd49a;box-shadow:0 0 0 2px #ffc66a99;animation:event-notice 1.8s ease-in-out infinite}@keyframes event-notice{50%{box-shadow:0 0 0 5px #efad5f33}}
@media(max-width:650px){.campaign-grid,.event-choices{grid-template-columns:1fr}.campaign-card{padding:10px}.event-choice{padding:9px}.top-actions #btn-marketing,.top-actions #btn-events{font-size:15px}}

#btn-bench-rotate{background:#f6d391;color:#183747;border:1px solid #d9ac63;border-radius:9px;font-size:19px;font-weight:900;padding:4px 10px;min-width:40px;min-height:35px;cursor:pointer;}#btn-bench-rotate:hover{background:#ffe5ad;}

/* Theme Park Empire V6.2 — sélecteur visuel des quatre vraies images des bancs */
.bench-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:10px 0 6px}
.bench-choice{min-width:0;height:75px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;border:1px solid #d4dfd8;border-radius:9px;background:#f6f8f4;padding:4px 1px;color:#34515b;font-size:9px;font-weight:700;cursor:pointer}
.bench-choice img{display:block;max-width:100%;width:49px;height:50px;object-fit:contain;filter:drop-shadow(0 2px 2px #1d2e2830)}
.bench-choice.active{outline:2px solid #d0a04a;background:#fff7e2;border-color:#c89b43}
.bench-choice:disabled{opacity:.38;cursor:not-allowed}
.bench-choice:not(:disabled):hover{background:#e9f2e9}

/* V6.9 : outils de modification des files, accessibles même sur mobile. */
.queue-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 15px}
.queue-edit-actions button{min-width:0;min-height:39px;padding:9px 7px;border-radius:9px;font-size:11px;line-height:1.3;font-weight:800;text-align:center}
.queue-edit-actions #clear-ride-queue{grid-column:1/-1}
@media(max-width:390px){.queue-edit-actions{grid-template-columns:1fr}.queue-edit-actions #clear-ride-queue{grid-column:1}}

/* V9.6 — contrôle des quatre côtés de la case iso pour distributeur de sodas */
.soda-orientation-title{font-size:11px;font-weight:800;color:#44616a;margin:10px 0 5px}
.soda-orientation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:7px 0}
.soda-direction-btn{min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;border:1px solid #cfded9;border-radius:9px;background:#f4f8f5;padding:6px 2px;color:#2f5661;font-size:10px;cursor:pointer}
.soda-dir-arrow{font-size:22px;line-height:24px;font-weight:900}
.soda-direction-btn.active{border-color:#bc8f40;outline:2px solid #dfbf78;background:#fff3d8;color:#784c17}
.soda-direction-btn:hover{background:#edf7f2}
.soda-auto-btn{display:block;width:100%;margin-top:7px;border:1px solid #c3d3cf;border-radius:7px;background:#e9f2ed;padding:8px;color:#2c5e5b;font-size:11px;font-weight:800;cursor:pointer}
.soda-builder-direction{margin:8px 0 11px;padding:10px;border:1px solid #dce5dd;background:#fff;border-radius:10px}
.soda-builder-direction>b{font-size:11px;color:#2e5357}
.soda-build-hint{font-size:10px;line-height:1.35;margin-top:6px;color:#5b7975}

/* V10.3 — choix de revêtement immédiatement visible, y compris sur mobile */
.paving-tip{font-size:11px;color:#697e7d;line-height:1.45;margin:4px 4px 13px;padding:9px 10px;border-left:3px solid #cfac68;background:#f4f0e5;border-radius:8px;}

@media(max-width:760px){.paving-tip{font-size:10px;line-height:1.25;padding:6px 7px;margin:0 2px 6px}.catalog-label{margin:6px 3px 7px}}

/* V10.5.2 : directeur / accès / gestion des sauvegardes */
.ui-icon.director-has-alerts{box-shadow:0 0 0 2px #e5a65d,inset 0 0 0 1px #e5a65d;}
.director-alert-chip{position:absolute;z-index:14;top:73px;right:18px;border:1px solid #eebd66;border-radius:12px;padding:8px 13px;cursor:pointer;background:rgba(37,54,63,.94);color:#fff4d4;font-weight:800;box-shadow:0 6px 18px #10273155;}
.director-alert-chip[hidden]{display:none!important;}
.director-intro{font-size:12px;font-weight:700;color:#5b6262;margin-bottom:10px;}
.director-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 15px;}
.director-cards>div{display:flex;flex-direction:column;gap:5px;padding:10px;border-radius:10px;background:#e8eee9;border:1px solid #d0ded4;}
.director-cards small{font-size:11px;color:#54676d}.director-cards b{font-size:18px;color:#21383d;font-variant-numeric:tabular-nums;}
.director-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 10px;margin:4px 0 6px;border:1px solid #dedccf;border-radius:9px;background:#fffdf7;color:#213741;text-align:left;cursor:pointer;font:600 12px system-ui;}
.director-item:hover{border-color:#4f967a;background:#f1faf3;}.director-item small{display:block;margin:4px 0 0;font-size:11px;color:#63747b;font-weight:500;}.director-item strong{white-space:nowrap;font-size:11px;color:#326b55;}
#modal-content>h3{margin-top:18px;margin-bottom:8px;color:#174657;}
.transfer-file{display:block;width:100%;font-size:12px;margin:14px 0 4px;}
@media(max-width:760px){.director-alert-chip{top:62px;right:8px;padding:6px 8px;font-size:11px}.topbar .top-actions{gap:3px}.topbar .top-actions .ui-icon{min-width:31px}}

/* V10.5.3 — commandes de rotation compactes, réassort direction. */
.rotation-build-hint{display:flex;flex-direction:column;gap:5px;margin:8px 8px 12px;padding:11px 12px;background:#eff6f2;border:1px solid #bcd6ce;border-radius:12px;color:#295d5b;font-size:12px;line-height:1.5}
.rotation-build-hint b{font-size:12px}.rotation-build-hint kbd{display:inline-block;padding:0px 5px;border-radius:4px;background:#fff;border:1px solid #c7d5d0;box-shadow:0 1px 0 #a8bdb5;font:700 12px system-ui}
.director-restock-panel{border:1px solid #c4d8d1;background:#f1f8f4;border-radius:12px;padding:12px;margin:8px 0 16px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.director-restock-panel>div{flex:1;min-width:160px;color:#2a615c}.director-restock-panel strong{font-size:14px}
.director-restock-panel p{margin:4px 0 0;font-size:12px;line-height:1.35;color:#617a75}
.director-restock-panel button{flex:0 1 auto;min-width:190px;white-space:normal;text-align:center}
.director-restock-panel button:disabled{opacity:.48;cursor:not-allowed}
.director-restock-summary{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #ccd8d3;border-bottom:1px solid #ccd8d3;padding:12px 0;margin:12px 0;font-weight:700;color:#275951}
.director-restock-summary strong{font-size:18px;white-space:nowrap}
.director-restock-error{color:#aa4939;font-weight:700}
@media(max-width:560px){.director-restock-panel{display:block}.director-restock-panel button{width:100%;margin-top:10px;min-width:0}.rotation-build-hint{margin:7px 4px 11px}}

/* V10.6.1 : interface plus lisible, sans supprimer aucune commande. */
.topbar{gap:12px;padding:0 16px}
.top-actions{gap:7px}
.top-actions #btn-transfer,.top-actions #btn-help,.top-actions #btn-marketing,.top-actions #btn-events,.top-actions #btn-full{display:none!important}
.top-actions #btn-director,.top-actions #btn-menu{min-width:40px;min-height:40px}
#btn-menu{background:#e7c582;color:#17333b;border-color:#e7c582;font-weight:900}
.build-panel{width:264px;min-width:264px}.panel-head{padding:16px 16px 8px}.category-strip{padding-bottom:8px}
.catalog-grid{gap:7px}.item-card{padding:7px}.item-preview{height:69px}.item-name{margin-top:6px}
.build-footer{padding:9px 12px}.build-footer p{line-height:1.3}
.info-panel{width:266px;min-width:266px}.inspector-head{padding:17px 17px 11px}
.sidebar-fold{padding:0!important;overflow:hidden}.sidebar-fold summary{list-style:none;cursor:pointer;padding:13px 14px;font-weight:850;font-size:12px;color:#244852;display:flex;align-items:center;justify-content:space-between}
.sidebar-fold summary::-webkit-details-marker{display:none}.sidebar-fold summary:after{content:'＋';color:#7a916d;font-size:18px}
.sidebar-fold[open] summary{border-bottom:1px solid #e8ede7}.sidebar-fold[open] summary:after{content:'−'}
.sidebar-fold>div,.sidebar-fold>button,.sidebar-fold>p{margin-left:13px!important;margin-right:13px!important}
.sidebar-fold>button{width:calc(100% - 26px)!important}.sidebar-fold[open]{padding-bottom:12px!important}
.progression-track{height:9px;background:#e4ebe4;border-radius:20px;overflow:hidden;margin:7px 0 12px}.progression-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#60a77a,#e5ba65)}
.director-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.director-tabs button{font-size:11px;font-weight:800;border-radius:9px;padding:9px 10px;border:1px solid #d4e2d8;background:#eef3ef;color:#3b5a59;cursor:pointer}
.director-tabs button.active{background:#254b53;color:#fff;border-color:#254b53}
.director-main-summary{border:1px solid #d8e4dc;border-radius:10px;background:#f4f8f3;padding:11px;margin:10px 0;font-size:12px;color:#416259}
.director-urgent{border-left:4px solid #c26d4b}
.game-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0 16px}.game-menu-grid button{padding:11px 7px;background:#f1f6f0;color:#244f52;border:1px solid #d4e4db;border-radius:10px;font-size:12px;font-weight:800;cursor:pointer;min-height:48px}
.game-menu-grid button:hover{background:#dcece0}.game-menu-section h3{font-size:12px;color:#a27a43;margin:12px 0 7px}
@media(max-width:1320px){.build-panel{width:250px;min-width:250px}.info-panel{width:244px;min-width:244px}}
@media(max-width:760px){.top-actions #btn-director,.top-actions #btn-menu{min-width:33px;min-height:33px}.build-panel{width:100%;min-width:0;height:330px}.catalog-grid{gap:5px}.item-preview{height:60px}.game-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#btn-new{display:none!important}

/* Afficher les commandes uniquement pendant une action ou une rotation. */
.tool-notice[hidden]{display:none!important}

/* V10.6.4 — commandes économiques compactes et lisibles sur toutes les tailles. */
#modal-content select,#modal-content input[type=number],#modal-content input[type=text]{border:1px solid #bfd2c9;border-radius:8px;padding:8px;color:#214a50;background:#fff;font:600 12px system-ui;max-width:100%;box-sizing:border-box;}
#modal-content input[type=checkbox]{accent-color:#316a58;min-width:18px;min-height:18px;}
#modal-content .metric-row:has(input),#modal-content .metric-row:has(select){gap:10px;align-items:center;flex-wrap:wrap;}
#director-reserve{width:110px;max-width:40vw;}
@media(max-width:760px){#modal-content .budget-grid{gap:7px}#modal-content .budget-card b{font-size:15px}.director-cards{gap:5px}.director-cards>div{padding:8px}}

/* V10.6.5 — informations prioritaires et orientation compacte. */
.director-priority-mini{border:1px solid #dbad77;background:rgba(255,244,219,.07)}
.director-priority-mini h3{margin-bottom:9px}
.director-priority-mini .metric-row{align-items:flex-start;gap:8px}
.director-priority-mini .metric-row span{min-width:0;flex:1}
.director-priority-mini .metric-row b{text-align:right;max-width:58%;overflow-wrap:anywhere;font-size:12px}
.compact-rotation{margin:8px 0;border:1px solid rgba(171,145,106,.35);border-radius:10px;padding:8px 10px}
.compact-rotation summary{cursor:pointer;font-weight:650;font-size:13px}
.compact-rotation[open]>summary{margin-bottom:10px}

/* V11.0 — météo discrète intégrée à la scène, sans modifier les sprites */
.stage-top-left{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.climate-chip{display:flex;gap:9px;align-items:center;padding:8px 13px;border:1px solid rgba(246,216,154,.55);border-radius:11px;background:#163c46ed;color:#fdf7ea;box-shadow:0 6px 18px #09252d40;cursor:pointer;text-align:left;max-width:205px;backdrop-filter:blur(8px)}
.climate-chip:hover,.climate-chip:focus-visible{border-color:#ffdfa0;background:#245365;outline:none}
.climate-chip>span:first-child{font-size:21px;flex:0 0 24px}
.climate-chip b{display:block;font-size:11px;line-height:1.2}
.climate-chip small{display:block;font-size:10px;opacity:.84;margin-top:2px}
.climate-hero{display:flex;align-items:center;gap:17px;padding:16px;background:linear-gradient(115deg,#e7f2ec,#f9f4e6);border:1px solid #d8e6dc;border-radius:13px;color:#2b5756;margin:7px 0 14px}
.climate-today{font-size:26px;white-space:nowrap}.climate-today strong{font-size:22px;color:#24514d}
.climate-hero small,.climate-forecast-row small{display:block;font-size:11px;color:#66827e;margin-top:4px}
.climate-forecast-row{padding:9px 0;border-bottom:1px solid #e4ebe5}.climate-forecast-row b{white-space:nowrap}
.climate-animation{padding:13px;border-radius:12px;border:1px solid #dfdbc7;background:#faf7ed;color:#345b58}
.climate-animation p{font-size:12px;line-height:1.45}.climate-animation button{width:100%;min-height:40px;margin-top:8px}
.climate-director-link{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#246a79;cursor:pointer;font-weight:800;display:block;margin-top:5px;padding:4px 0}
@media(max-width:760px){.stage-top-left{gap:5px}.climate-chip{padding:5px 9px;gap:6px;border-radius:8px;max-width:156px}.climate-chip>span:first-child{font-size:16px;flex-basis:19px}.climate-chip b{font-size:10px}.climate-chip small{font-size:9px}.climate-hero{gap:8px;padding:10px}.climate-today{font-size:19px}.climate-today strong{font-size:16px}}

.climate-upcoming{font-size:12px;color:#35665c;background:#eaf2e8;padding:9px 11px;border-radius:8px;margin:8px 0}

/* V11.1 : catalogue de prix par produit, utilisable dans le panneau latéral étroit. */
.shop-products{margin:15px -2px 10px;padding:11px 9px;border:1px solid #d9e4d9;border-radius:11px;background:#f7faf6;}
.shop-products-title{display:flex;flex-direction:column;gap:3px;margin-bottom:9px;color:#244b51;font-size:13px;}
.shop-products-title small{color:#73857b;font-size:10px;font-weight:500;}
.shop-product-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 0;border-top:1px solid #e0e7e0;}
.shop-product-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px;}
.shop-product-name strong{font-size:11px;line-height:1.2;color:#284951;overflow-wrap:anywhere;}
.shop-product-name small{font-size:9.5px;line-height:1.35;color:#74827c;}
.shop-product-edit{display:flex;align-items:center;gap:3px;flex:0 0 auto;}
.shop-product-edit input{width:79px;max-width:21vw;height:34px;border-radius:7px;border:1px solid #bdcdc0;background:#fff;color:#264a53;padding:6px 5px;font:700 12px system-ui;text-align:right;box-sizing:border-box;}
.shop-product-edit input:focus{outline:2px solid #529bba;outline-offset:1px;}
.shop-product-edit span{font-size:11px;font-weight:700;color:#6b7c74;}
.shop-sync-row{display:flex;align-items:center;gap:9px;border-top:1px solid #dce5dc;padding-top:12px;cursor:pointer;}
.shop-sync-row>input{width:17px;height:17px;accent-color:#287e6b;flex-shrink:0;}
.shop-sync-row>span{display:flex;flex-direction:column;gap:2px;}
.shop-sync-row b{font-size:11px;color:#264f4c;}
.shop-sync-row small{font-size:9.5px;line-height:1.4;color:#73857a;}

/* V11.14 — information météo et alertes dans la barre principale, accessible au tactile */
.topbar{gap:10px;padding:0 14px}
.top-stats{flex:1;justify-content:flex-end;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none;min-width:0;padding:4px 0}
.top-stats::-webkit-scrollbar{display:none}
.top-stats .stat{min-width:112px;flex:0 0 auto;padding:7px 10px}
.top-stats .stat strong{font-size:16px}
.top-stats .climate-chip,.top-stats .director-alert-chip{position:static;flex:0 0 auto;margin:0;box-shadow:none;transform:none;min-height:47px;max-width:none;border:1px solid #42616a;border-radius:12px;white-space:nowrap}
.top-stats .climate-chip{background:#173c48;padding:7px 11px}
.top-stats .climate-chip b{font-size:11px;color:#fff0cf}
.top-stats .climate-chip small{font-size:10px}
.top-stats .director-alert-chip{display:flex;align-items:center;justify-content:center;min-width:96px;padding:7px 10px;background:#193742;color:#f9d999;font-size:12px}
.top-stats .director-alert-chip.is-clear{border-color:#42665c;color:#b7ead1}
.top-stats .director-alert-chip[hidden]{display:flex!important}
.top-stats .stat:nth-child(3){cursor:pointer}
.top-stats .stat:nth-child(3).is-low strong{color:#fa9a86}
.top-stats .stat:nth-child(3).is-high strong{color:#a4e8c7}
.review-controls{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}
.review-controls button{border:1px solid #c8d8d9;background:#f6faf8;color:#274b55;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:750}
.review-controls button.active{background:#214b56;color:white}
.review-line{padding:10px 11px;margin:8px 0;border-radius:9px;background:#f7fbf9;border-left:4px solid #6aa890}
.review-line.negative{border-color:#ce8173;background:#fff7f4}
.review-line small{display:block;color:#7c8b8c;font-size:11px;margin:3px 0}
.review-line[hidden]{display:none}
.live-thoughts>div{padding:9px 4px;border-bottom:1px solid #e5ebea;font-size:12px;line-height:1.45}
.guest-identity-note{font-size:12px;color:#536e73;margin-top:5px}
@media(max-width:1270px){.brand-tag{display:none}.brand{gap:6px}.brand-icon{height:37px;width:37px}.brand-name{font-size:13px}.top-stats .stat{min-width:90px;padding:6px 8px}.top-stats .stat-ico{display:none}.top-stats .stat strong{font-size:13px}.top-actions{gap:4px}}
@media(max-width:920px){.top-stats{justify-content:flex-start}.top-stats .stat-day{display:none}.top-stats .stat:nth-child(2){display:none}}
@media(max-width:760px){.topbar{height:66px;min-height:66px;padding:0 6px;gap:4px}.brand-icon{width:27px;height:29px;border-radius:7px;font-size:15px}.brand-name{font-size:10px;letter-spacing:-.4px}.top-stats{gap:4px;overscroll-behavior-x:contain}.top-stats .stat{min-width:66px;padding:4px 6px}.top-stats .stat strong{font-size:11px}.top-stats .stat small{font-size:8px}.top-stats .stat:nth-child(3){display:flex}.top-stats .climate-chip{min-height:36px;padding:4px 6px;gap:4px}.top-stats .climate-chip>span:first-child{font-size:16px;flex-basis:18px}.top-stats .climate-chip b{font-size:9px}.top-stats .climate-chip small{font-size:8px}.top-stats .director-alert-chip{min-width:63px;min-height:36px;font-size:10px;padding:4px 6px}.top-actions .ui-icon{width:27px;min-width:27px!important}.top-actions #btn-director,.top-actions #btn-menu{min-width:27px;min-height:32px}.info-panel{top:66px}.backdrop{inset:66px 0 0}}
@media(max-width:420px){.top-stats .stat:first-child{display:none}.top-stats .stat:nth-child(3){display:flex}.top-actions #btn-menu{display:none}}
@media(max-width:420px){
 .brand-name,.brand-tag{display:none!important}
 .brand::after{content:'TPE';font-size:10px;letter-spacing:.3px;font-weight:900;color:#f5d48e}
 .top-actions #btn-director{display:none!important}
 .top-actions #btn-menu{display:grid!important;place-items:center}
}

/* GRAND PARK MANAGER V11.15 — logo de marque et centrage réel de la barre supérieure. */
.topbar{
  display:grid;
  grid-template-columns:minmax(258px,1fr) minmax(0,max-content) minmax(110px,1fr);
  align-items:center;
  column-gap:12px;
  padding:0 16px;
}
.topbar .brand{grid-column:1;justify-self:start;min-width:0;max-width:100%;gap:11px}
.topbar .brand-icon{width:55px;height:55px;flex:0 0 55px;background:transparent;border:0;border-radius:14px;box-shadow:none;display:grid;place-items:center;overflow:visible}
.topbar .brand-icon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 5px rgba(0,0,0,.26))}
.topbar .brand-copy{min-width:0}
.topbar .brand-name{font-size:16px;line-height:1.11;letter-spacing:.7px;font-weight:900;color:#fff2d0;white-space:nowrap}
.topbar .brand-name span{color:#f3c985}
.topbar .brand-tag{display:block;font-size:9px;line-height:1.2;letter-spacing:2.2px;margin-top:4px}
.topbar .top-stats{grid-column:2;justify-self:center;align-self:center;flex:initial;width:max-content;max-width:100%;min-width:0;justify-content:center;gap:7px;padding:4px 0;scrollbar-width:thin}
.topbar .top-actions{grid-column:3;justify-self:end;flex:0 0 auto;gap:7px;align-items:center}
/* Une barre qui reste utilisable lorsque l'écran ne peut pas afficher toutes les cartes. */
@media(max-width:1550px){
  .topbar{grid-template-columns:minmax(234px,1fr) minmax(0,auto) minmax(90px,1fr);gap:8px}
  .topbar .brand-name{font-size:14px;letter-spacing:.2px}
  .topbar .top-stats{width:100%;justify-content:center;overflow-x:auto;overscroll-behavior-x:contain}
  .topbar .top-stats .stat{min-width:94px;padding:6px 8px}
  .topbar .top-stats .stat strong{font-size:14px}
  .topbar .top-stats .stat-ico{display:none}
}
@media(max-width:1160px){
  .topbar{grid-template-columns:minmax(204px,auto) minmax(0,1fr) auto}
  .topbar .brand-icon{width:43px;height:43px;flex-basis:43px}
  .topbar .brand-name{font-size:12px}
  .topbar .brand-tag{font-size:8px;letter-spacing:1px}
  .topbar .top-stats{justify-content:flex-start}
}
@media(max-width:760px){
  .topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;padding:0 6px;height:66px;min-height:66px}
  .topbar .brand{gap:4px}
  .topbar .brand-icon{width:35px;height:35px;flex-basis:35px}
  .topbar .brand-name{font-size:10px;line-height:1.09;letter-spacing:-.25px}
  .topbar .brand-tag{display:none}
  .topbar .top-stats{width:100%;max-width:100%;justify-content:flex-start;gap:4px;overflow-x:auto}
  .topbar .top-stats .stat{padding:4px 6px;min-width:66px}
  .topbar .top-stats .stat strong{font-size:11px}
  .topbar .top-actions{gap:3px}
}
@media(max-width:540px){
  .topbar .brand{gap:0}
  .topbar .brand-name{display:none}
  .topbar .brand-icon{width:37px;height:37px;flex-basis:37px}
  .topbar .brand:after{content:'GPM';display:block;font-size:10px;color:#f5d48e;font-weight:900;letter-spacing:.3px;margin-left:2px}
  .topbar .top-actions #btn-director{display:none!important}
  .topbar .top-actions #btn-menu{display:grid!important;place-items:center}
}

/* GPM 11.18 : musique d'ambiance distincte des effets sonores, contrôle compact */
.stage-action-links #btn-music.music-toggle{border:1px solid #d3ac69a8;background:#2e4c51;color:#fff2c4;min-width:104px}
.stage-action-links #btn-music.music-toggle[aria-pressed="true"]{background:#e7c47e;color:#17343e}
.music-volume-control{display:flex;align-items:center;gap:6px;padding:0 7px;color:#f4dfa9;font:700 10px/1.3 system-ui,sans-serif;white-space:nowrap}
.music-volume-control input{accent-color:#e9c57a;cursor:pointer;width:78px;min-width:55px;max-width:78px;height:18px}
@media(max-width:900px){.stage-action-links #btn-music.music-toggle{min-width:34px}.music-volume-control>span{display:none}.music-volume-control input{width:52px}}
@media(max-width:760px){.stage-action-links #btn-music.music-toggle{min-width:34px}.stage-action-links .music-volume-control{display:none}}

/* V11.34 – menus compacts et panneau de gestion contextuel */
.top-actions .ui-icon{border-radius:12px}
.gpm-inspector-hero{text-align:center;padding:2px 1px 8px}
.gpm-inspector-hero .selection-preview{height:88px;margin-bottom:8px;background:linear-gradient(145deg,#e6f0e6,#c5d8ca)}
.gpm-inspector-hero .selection-preview img{max-height:86px}
.gpm-inspector-hero .selection-title{font-size:17px}
.gpm-inspector-hero .selection-sub{font-size:11px;margin:3px 0}
.gpm-inspector-tabs{display:flex;gap:3px;margin:7px 0 10px;border-radius:11px;padding:3px;background:#e9efea}
.gpm-inspector-tabs button{flex:1;border:0;border-radius:8px;background:transparent;color:#426068;font-size:11px;font-weight:800;padding:8px 3px;cursor:pointer}
.gpm-inspector-tabs button.active{background:#224952;color:#fff;box-shadow:0 2px 6px #13353b22}
.gpm-inspector-pane[hidden]{display:none!important}
.gpm-inspector-content>.hint,.gpm-inspector-content>.smallnote{display:none}
.gpm-inspector-content .selection-preview,.gpm-inspector-content .selection-title,.gpm-inspector-content .selection-sub{display:none}
.gpm-stock-quick{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:10px;background:#f2f5f0;color:#21464b;margin-bottom:10px}
.gpm-stock-quick small{font-size:11px;color:#627975}
.gpm-stock-ledger{margin-top:12px;padding:8px 10px;border-top:1px solid #dbe4df}
.gpm-inspector-pane .action-danger{margin-top:15px}
.stock-manager-summary{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;color:#49646b;font-size:12px}
.stock-manager-summary strong{color:#1b454c}
.stock-table-scroll{overflow-x:auto;width:100%;margin:8px 0 12px;border:1px solid #e0e8e3;border-radius:10px}
.stock-table{border-collapse:collapse;width:100%;min-width:475px;font-size:11px}
.stock-table th{padding:10px 7px;text-align:left;background:#eaf1eb;color:#3e5960}
.stock-table td{padding:8px 6px;border-top:1px solid #e8ece7;vertical-align:middle}
.stock-table td strong{display:block;font-size:11px;color:#22444c}
.stock-table td small{display:block;font-size:10px;color:#738580;white-space:nowrap}
.stock-table input,.stock-table select{max-width:66px;box-sizing:border-box;border:1px solid #c8d9d1;border-radius:7px;background:#fff;color:#183f46;padding:6px 3px;font:700 11px system-ui}
.stock-auto-toggle{display:flex;gap:9px;align-items:center;padding:9px 2px;font-size:13px;font-weight:750;color:#24464e}
.stock-auto-toggle input{accent-color:#2d7775;width:18px;height:18px}
.stock-footnote{color:#6e837e;font-size:11px;line-height:1.45;margin:5px 0 10px}
.stock-order-total{display:flex;justify-content:space-between;align-items:center;padding:11px;background:#eef4ee;border-radius:10px;color:#28545b}
.stock-order-total strong{font-size:18px}
#stock-order-status.invalid{color:#a64b43;font-size:11px;margin:7px 0}
#inspector-content .section-card .hint{font-size:11px}
.game-menu-grid{gap:8px}
.game-menu-section h3{font-size:12px;margin:12px 0 8px}
#inspector-content .section-card{padding:12px}
@media(max-width:760px){.gpm-inspector-tabs{position:sticky;top:0;z-index:2}.stock-table{min-width:420px}.modal{width:96vw}}

/* V13.1.1 : historique lisible sans changer les panneaux existants. */
.visitor-thought-history{display:grid;gap:6px;margin:8px 0 14px}.thought-history-row{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid #d6e4dc;border-radius:9px;background:#f6faf7;color:#315950}.thought-history-row b{font-size:13px;font-weight:600}.thought-history-row small{display:block;margin-top:3px;color:#658077;font-size:11px}

/* V13.3 — gestion du personnel sur écran et mobile. */
.staff-role-icon{width:60px;height:86px;display:grid;place-items:center;font-size:44px;background:#e7eeeb;border-radius:12px}
.staff-manage-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:13px}
.staff-manage-dashboard>div{display:flex;flex-direction:column;gap:4px;padding:10px;background:#eef5f0;border-radius:10px}
.staff-manage-dashboard small{font-size:10px;color:#647b75}.staff-manage-dashboard b{font-size:16px;color:#214956}
.staff-role-summaries{display:grid;gap:5px;margin:8px 0 13px}.staff-role-summary{display:flex;justify-content:space-between;background:#faf6eb;border:1px solid #e8dfcb;border-radius:8px;padding:7px 10px;font-size:12px}
.staff-bulk-recruit{display:flex;gap:7px;margin:8px 0 16px;flex-wrap:wrap}.staff-bulk-recruit select,.staff-bulk-recruit button{border-radius:9px;border:1px solid #cbd8d0;padding:9px;font:inherit;font-size:12px;background:white}.staff-bulk-recruit select:first-child{flex:1;min-width:140px}.staff-bulk-recruit button{background:#1f5559;color:white;cursor:pointer;font-weight:800}
.staff-employee-heading{display:flex;justify-content:space-between;align-items:center;gap:5px}.staff-employee-heading h3{margin:5px 0}.staff-employee-heading button{font-size:11px;border:0;border-radius:8px;background:#f2e1da;color:#884a41;padding:8px}.staff-employee-heading button:disabled{opacity:.45}
.staff-employees{max-height:240px;overflow:auto;display:grid;gap:6px;margin:10px 0}.staff-employee{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px;align-items:center;border:1px solid #dbe5df;border-radius:9px;padding:8px;background:#fff}.staff-employee-check input{width:16px;height:16px}.staff-employee-main{min-width:0;display:flex;flex-direction:column;gap:3px}.staff-employee-main b{font-size:12px;color:#28484e;overflow-wrap:anywhere}.staff-employee-main small{font-size:10px;color:#68817a}.staff-employee-bars{display:flex;align-items:center;gap:5px;font-size:10px;color:#60776e;flex-wrap:wrap}.staff-employee-bars progress{height:7px;max-width:110px;accent-color:#4b9479}.staff-employee-tools{display:flex;gap:3px}.staff-employee-tools button{width:27px;height:27px;border:0;border-radius:7px;background:#ecf1ed;color:#46645e;cursor:pointer}.staff-employee-tools button:last-child{background:#f8e8e2;color:#9d4f48}.staff-rename-label{display:block;font-size:12px;font-weight:800;margin-bottom:7px}.staff-rename{width:100%;padding:10px;border:1px solid #cbd8d0;border-radius:8px}
@media(max-width:760px){.staff-role-icon{width:46px;height:76px;font-size:34px}.staff-manage-dashboard b{font-size:13px}.staff-bulk-recruit{flex-wrap:wrap}.staff-employees{max-height:34vh}.staff-employee-bars progress{width:70px}}

/* V13.4 — Statistiques, onglets et graphiques compacts, sans encombrer le panneau latéral. */
.modal:has(.analytics-tabs){width:min(95vw,900px);max-height:92vh;}
.analytics-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 13px;border-bottom:1px solid #e2e8e2;margin-bottom:14px;}
.analytics-tabs button{border:1px solid #d5ded5;background:#f3f5ef;color:#365b5d;border-radius:10px;padding:9px 11px;font-size:11px;font-weight:750;cursor:pointer;}
.analytics-tabs button.active{background:#214e53;color:#fff;border-color:#214e53;}
.analytics-content{overflow-wrap:anywhere;}
.analytics-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:15px;}
.analytics-cards>div{background:#f0f5ee;border:1px solid #e3e9e0;border-radius:11px;padding:12px;min-width:0;}
.analytics-cards small{display:block;color:#6e807a;font-size:10px;margin-bottom:5px;}
.analytics-cards b{font-size:18px;font-weight:850;color:#204a51;font-variant-numeric:tabular-nums;}
.analytics-section{margin:18px 0;}.analytics-section h3{margin:0 0 12px;font-size:14px;color:#234c51;}
.analytics-section .metric-row{gap:20px;padding:6px 0;border-bottom:1px solid #edf1ec;align-items:flex-start;}
.analytics-section .metric-row span{min-width:0;}.analytics-section .metric-row b{text-align:right;max-width:70%;}
.analytics-building{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#f8f9f4;border:1px solid #dae3dc;border-radius:11px;padding:12px;margin:7px 0;width:100%;gap:5px;color:#32565a;cursor:pointer;}
.analytics-building:hover,.analytics-building:focus-visible{border-color:#b89c59;background:#fbf9ec;}.analytics-building b{font-size:13px;}.analytics-building span{font-size:11px;color:#637a77;line-height:1.4;}
.analytics-alert{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fbf1e5;border:1px solid #efd2b4;border-radius:10px;padding:11px;margin:7px 0;}.analytics-alert b{display:block;font-size:12px;color:#855335;}.analytics-alert small{display:block;color:#876e60;margin-top:5px;}.analytics-alert button{border:0;border-radius:7px;background:#f8e2c7;padding:8px;white-space:nowrap;color:#855335;font-weight:bold;cursor:pointer;}
.analytics-meter{display:grid;grid-template-columns:minmax(120px,1fr) minmax(60px,2fr) 52px;align-items:center;gap:12px;margin:10px 0;color:#4b6966;font-size:11px;}.analytics-meter-track{background:#e4ede5;border-radius:99px;height:9px;overflow:hidden;}.analytics-meter-track i{display:block;height:100%;background:#6eb38e;border-radius:99px;}.analytics-meter b{text-align:right;color:#24505a;}
.analytics-thought{border-bottom:1px solid #edf0eb;padding:8px 0;display:flex;flex-direction:column;gap:4px;}.analytics-thought b{font-size:10px;color:#526d69;}.analytics-thought span{font-size:12px;color:#253e47;}
.analytics-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px;}.analytics-filters label{font-size:11px;font-weight:750;color:#54736e;}.analytics-filters select{display:block;border:1px solid #c9d7cc;border-radius:8px;background:#fff;padding:9px;min-width:128px;margin-top:5px;}
.analytics-graph{display:flex;align-items:flex-end;gap:5px;min-height:175px;padding:13px 5px;border-bottom:2px solid #dce6dd;overflow-x:auto;}.analytics-bar-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;flex:1;min-width:22px;}.analytics-bar-column span{font-size:9px;color:#607a74;}.analytics-bar-column i{background:linear-gradient(#80bba4,#4d917b);width:min(90%,35px);border-radius:6px 6px 0 0;min-height:4px;}.analytics-bar-column i.negative{background:linear-gradient(#e4ae9f,#c06d62);}.analytics-bar-column small{font-size:9px;color:#7a9189;}
@media(max-width:600px){.modal:has(.analytics-tabs){padding:16px;max-height:94vh;}.analytics-cards{grid-template-columns:repeat(2,minmax(0,1fr));}.analytics-cards b{font-size:15px;}.analytics-tabs{flex-wrap:nowrap;overflow-x:auto;}.analytics-tabs button{flex:0 0 auto;}.analytics-meter{grid-template-columns:minmax(95px,1fr) minmax(45px,1fr) 37px;gap:7px;}.analytics-section .metric-row b{max-width:55%;}}

/* V15.5 — ciblage accessible sans agrandir le panneau de marketing. */
.campaign-target-label{display:flex;flex-direction:column;gap:5px;margin:10px 0;color:#3b5367;font-size:12px;font-weight:800}
.campaign-target{appearance:auto;width:100%;max-width:100%;min-height:38px;padding:7px 10px;border:1px solid #98adbe;border-radius:8px;background:#fffdf8;color:#17334b;font:600 13px system-ui}
.campaign-target:focus-visible{outline:2px solid #2585a3;outline-offset:2px}

/* Grand Park Manager V15.8 — navigation claire et compacte. */
.gpm-legacy-controls[hidden]{display:none!important}
.gpm-main-nav{display:flex;align-items:center;gap:5px;justify-self:end;min-width:0}
.gpm-main-nav button{min-height:43px;border:1px solid #46626a;background:#1a3c47;color:#eee9d8;border-radius:11px;padding:6px 11px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;font-size:12px;white-space:nowrap;min-width:58px;transition:background .15s}
.gpm-main-nav button:hover,.gpm-main-nav button:focus-visible{background:#305d64;border-color:#dec189}
.gpm-main-nav button span{font-size:17px;line-height:1.15}
.gpm-main-nav button b{font-size:10px;font-weight:750;letter-spacing:.1px}
.topbar{grid-template-columns:minmax(190px,1fr) minmax(0,auto) auto!important;gap:10px;padding:0 12px}
.topbar .top-stats{justify-content:center}
.gpm-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:4px 0}
.gpm-hub-grid button{border:1px solid #cbd9d3;border-radius:12px;background:#f9faf7;color:#244450;display:flex;align-items:center;gap:10px;min-height:56px;padding:9px;text-align:left}
.gpm-hub-grid button:hover{background:#eaf3ef;border-color:#95ae9d}
.gpm-hub-grid button span{font-size:23px;min-width:28px;text-align:center}.gpm-hub-grid button strong{font-size:12px;line-height:1.3}
.gpm-quick-tools{position:absolute;top:180px;right:14px;z-index:6;pointer-events:auto}
#gpm-tools-toggle{border:1px solid #ffffff60;border-radius:10px;padding:9px 11px;background:#173c48ef;color:#f6eccc;font-weight:750;font-size:12px;box-shadow:0 6px 14px #17374033}
.gpm-tools-list{background:#183d47f2;border:1px solid #a0aa99;border-radius:12px;padding:5px;margin-top:6px;min-width:165px;box-shadow:0 12px 24px #122e3a46}
.gpm-tools-list[hidden]{display:none!important}
.gpm-tools-list button{width:100%;text-align:left;border:0;background:transparent;color:#f5f4e9;border-radius:8px;padding:10px;font-size:12px}
.gpm-tools-list button:hover{background:#375b62}
.gpm-aux-controls{display:none!important}
/* L'inspecteur n'occupe le plateau que lorsqu'un élément est sélectionné. */
@media(min-width:761px){.workspace.gpm-inspector-idle .info-panel{display:none!important}.build-panel{width:244px;min-width:244px}.info-panel{width:265px;min-width:265px}}
.build-panel .panel-head{padding:14px 14px 8px}.build-panel .panel-head h2{font-size:17px}
.build-footer{padding:8px 12px}.build-footer p{font-size:10px;margin:0;line-height:1.5}
.catalog-label{letter-spacing:1px;font-size:10px;margin:6px 3px 9px}
.category-strip{padding:3px 9px 9px;gap:4px}.cat-btn{padding:7px 8px;font-size:10px}
.item-card{padding:7px}.item-preview{height:69px}.item-name{margin:6px 1px 2px}
#inspector-content .selection-preview{height:108px}#inspector-content .selection-preview img{max-height:104px}
#inspector-content .selection-title{font-size:16px}
#inspector-content .selection-sub{margin:3px 0 9px}
.gpm-inspector-content p.smallnote{font-size:10px;line-height:1.4}
.gpm-inspector-tabs{gap:4px}.gpm-inspector-tabs button{font-size:10px;padding:7px 6px}
.top-stats .director-alert-chip[hidden]{display:none!important}
@media(max-width:1200px){.gpm-main-nav button{padding:5px 7px;min-width:42px}.gpm-main-nav button b{font-size:9px}.topbar{grid-template-columns:minmax(135px,auto) minmax(0,1fr) auto!important}}
@media(max-width:920px){.gpm-main-nav button b{display:none}.gpm-main-nav button{min-width:35px;padding:7px}.gpm-main-nav button span{font-size:18px}.topbar{grid-template-columns:auto minmax(0,1fr) auto!important}}
@media(max-width:760px){.topbar{grid-template-columns:auto minmax(0,1fr) auto!important;padding:0 5px}.gpm-main-nav{gap:2px}.gpm-main-nav button{min-width:31px;min-height:35px;padding:4px}.gpm-main-nav button span{font-size:16px}.gpm-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gpm-quick-tools{top:160px;right:8px}.build-panel{width:100%;min-width:0}.stage-bottom{bottom:16px}.gpm-aux-controls{display:none!important}}
@media(max-width:420px){.gpm-main-nav button{min-width:28px;padding:4px 3px}.gpm-main-nav button span{font-size:15px}.topbar .brand:after{display:none}.gpm-hub-grid button{min-height:49px;padding:7px}.gpm-hub-grid button strong{font-size:11px}}

/* V15.8.1 — disponibilité des aperçus du catalogue */
.catalog-preview-unavailable{position:relative;background:#edf0ed}.catalog-preview-unavailable::after{content:"Aperçu indisponible";color:#617980;font-weight:700;font-size:10px;padding:6px;text-align:center}.item-preview img{max-width:100%;max-height:100%;object-fit:contain}

/* V15.9 : lisibilité des cartes même lorsque les deux fichiers image échouent. */
.item-preview.catalog-preview-unavailable{display:flex;align-items:center;justify-content:center;min-height:72px}
.catalog-preview-message{display:block;max-width:95%;font-size:11px;line-height:1.3;text-align:center;opacity:.75;white-space:normal}

/* V15.9.2 — Ouverture de fiche sans déplacement du plateau.
   L'inspecteur se superpose à droite ; il ne participe plus au layout flex.
   La zone du canvas ne change donc pas de taille à chaque sélection. */
@media (min-width:1081px){
 .workspace{position:relative}
 .workspace .info-panel{
  position:absolute!important;
  top:0;bottom:0;right:0;
  height:100%;max-height:100%;
  z-index:12;
  box-shadow:-10px 0 24px rgba(13,34,43,.16);
  transition:none!important;
 }
 .workspace.gpm-inspector-idle .info-panel{display:none!important}
}
/* Sur les petites fenêtres l'inspecteur est déjà un tiroir flottant. */

/* Grand Park Manager V15.9.3 — hiérarchie claire sans déplacement du plateau */
.gpm-inspector-hero-compact{display:grid;grid-template-columns:62px minmax(0,1fr);column-gap:10px;text-align:left;align-items:center;padding:0 0 9px}
.gpm-inspector-hero-compact .selection-preview{grid-row:1/3;width:62px;height:60px;margin:0;border-radius:9px}
.gpm-inspector-hero-compact .selection-preview img{max-width:60px;max-height:58px;object-fit:contain}
.gpm-inspector-hero-compact .selection-title{font-size:14px;line-height:1.15;overflow-wrap:anywhere}
.gpm-inspector-hero-compact .selection-sub{font-size:10px;margin:2px 0;line-height:1.25}
.gpm-quick-price{padding:11px;margin:0 0 9px;background:#eef4ed;border:1px solid #d7e5d8;border-radius:11px}
.gpm-quick-price-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:8px}
.gpm-quick-price-head strong{font-size:13px;color:#20494e}.gpm-quick-price-head small{font-size:10px;color:#71877e}
.gpm-quick-price-controls>.price-control{padding:4px 8px;margin-bottom:7px;background:white}
.gpm-quick-price-controls>.shop-cents-label{display:block;font-size:10px;font-weight:700;color:#526e68;margin-bottom:4px}
.gpm-quick-price-controls>#shop-price-input{width:100%;box-sizing:border-box;min-height:35px;border:1px solid #c4d8ce;border-radius:8px;font-size:15px;font-weight:750;padding:5px 9px;background:white;color:#23464b}
.gpm-price-advice{margin-top:8px}.gpm-price-advice summary,.gpm-inspector-details summary{cursor:pointer;font-weight:750;font-size:11px;color:#496c69;padding:5px 0}
.gpm-price-advice>.metric-row{font-size:11px}.gpm-inspector-details{border-top:1px solid #e1e9e2;margin-top:10px;padding-top:7px}
.gpm-inspector-tabs{margin:0 0 10px}.gpm-inspector-tabs button{padding:9px 3px;font-size:10px;white-space:nowrap}
.gpm-queue-guide{font-size:11px;line-height:1.45;color:#526e69}
.gpm-queue-state{border-radius:9px;background:#f0f4f0;padding:10px;color:#355c58;display:flex;flex-direction:column;gap:4px}
.gpm-queue-state.ready{background:#e4f3e8;color:#286a4a}.gpm-queue-state.warning{background:#fff2e3;color:#95603a}
.gpm-queue-state strong{font-size:12px}.gpm-queue-state span{font-size:11px}
.gpm-queue-guide ol{margin:11px 0 10px;padding-left:19px}.gpm-queue-guide li{padding-left:3px;margin-bottom:9px}
.gpm-queue-guide li::marker{font-weight:900;color:#438578}
.gpm-queue-stats{margin-top:10px;border-top:1px solid #e3eae2;padding-top:5px}
.gpm-inspector-pane .queue-edit-actions{margin:8px 0}.gpm-inspector-pane .queue-edit-actions #clear-ride-queue{font-size:10px}
.gpm-inspector-content>h3{margin:12px 0 7px}.gpm-inspector-content>.hint{display:none}
@media(max-width:760px){.gpm-quick-price{margin-top:3px}.gpm-inspector-hero-compact .selection-preview{height:54px}}

/* V15.9.4 - étiquette compacte du service automatique */
.gpm-soda-fast-label{display:inline-block;margin:2px 0 6px;font-size:11px;font-weight:650;line-height:1.5;color:#347355} 

/* V15.12.7 — Gestion et bilans larges, sans défilement horizontal sur ordinateur. */
.modal-scrim:has(.gpm-modal-stock),.modal-scrim:has(.gpm-modal-daily){padding:12px;box-sizing:border-box}
.modal.gpm-modal-stock{box-sizing:border-box;width:min(96vw,980px);max-height:calc(100dvh - 24px);padding:25px 32px;overflow-x:hidden}
.modal.gpm-modal-daily{box-sizing:border-box;width:min(97vw,1160px);max-height:calc(100dvh - 24px);padding:24px 32px;overflow-x:hidden}
.modal.gpm-modal-stock h2,.modal.gpm-modal-daily h2{margin-bottom:15px}
.gpm-modal-stock .stock-table-scroll{overflow-x:visible;border-radius:12px;margin:8px 0 12px}
.gpm-modal-stock .stock-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}
.gpm-modal-stock .stock-table th,.gpm-modal-stock .stock-table td{padding:9px 11px;overflow-wrap:anywhere}
.gpm-modal-stock .stock-table th:nth-child(1){width:27%}
.gpm-modal-stock .stock-table th:nth-child(2){width:22%}
.gpm-modal-stock .stock-table th:nth-child(3){width:10%}
.gpm-modal-stock .stock-table th:nth-child(4){width:13%}
.gpm-modal-stock .stock-table th:nth-child(5){width:28%}
.gpm-modal-stock .stock-table td small{white-space:normal;line-height:1.2}
.gpm-modal-stock .stock-table input,.gpm-modal-stock .stock-table select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:9px 5px;text-align:center}
.gpm-modal-stock .gpm-qty-stepper{display:flex;align-items:center;gap:5px;min-width:0}
.gpm-modal-stock .gpm-qty-stepper button{flex:0 0 32px;height:35px;border-radius:8px;border:1px solid #bdcfc7;background:#f6faf6;color:#24505a;font-size:19px;font-weight:700;cursor:pointer}
.gpm-modal-stock .gpm-qty-stepper button:hover{background:#dbece3}
.gpm-modal-stock .gpm-qty-stepper input{flex:1;min-width:0;width:1px;appearance:textfield;-moz-appearance:textfield}
.gpm-modal-stock .gpm-qty-stepper input::-webkit-inner-spin-button,.gpm-modal-stock .gpm-qty-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.gpm-modal-stock .stock-manager{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;row-gap:5px}
.gpm-modal-stock .stock-manager-summary,.gpm-modal-stock .stock-table-scroll,.gpm-modal-stock .stock-order-total{grid-column:1/-1}
.gpm-modal-stock .stock-manager .shop-sync-row{grid-column:1;align-self:center}
.gpm-modal-stock .stock-manager>.metric-row{grid-column:2;align-self:center}
.gpm-modal-stock .stock-auto-toggle{grid-column:1}
.gpm-modal-stock .stock-footnote{grid-column:2;align-self:center}
.gpm-modal-stock #stock-order-status{grid-column:1/-1}
.gpm-daily-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start}
.gpm-daily-col{min-width:0}
.gpm-daily-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gpm-modal-daily .budget-card{padding:11px 13px}
.gpm-modal-daily .budget-card b{font-size:17px;margin-top:4px}
.gpm-modal-daily .gpm-daily-col h3{font-size:18px;margin:14px 0 10px;color:#19404a}
.gpm-modal-daily .gpm-daily-col h3:first-child{margin-top:0}
.gpm-modal-daily .metric-row{font-size:12px;padding:7px 3px;gap:10px}
.gpm-modal-daily .metric-row span{min-width:0}
.gpm-modal-daily .metric-row b{white-space:nowrap}
.gpm-daily-note{font-size:11px!important;line-height:1.35!important;margin:8px 0 0!important}
.gpm-daily-divider{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:10px 12px;border-radius:10px;background:#edf4ed;font-size:12px;color:#335b62}
.gpm-daily-divider b{white-space:nowrap}
.gpm-modal-daily .modal-actions{margin-top:12px}
@media(max-width:840px){
 .modal.gpm-modal-stock,.modal.gpm-modal-daily{padding:22px 20px;width:min(98vw,760px)}
 .gpm-modal-stock .stock-table th,.gpm-modal-stock .stock-table td{padding:7px 5px}
 .gpm-modal-stock .gpm-qty-stepper{gap:2px}
 .gpm-modal-stock .gpm-qty-stepper button{flex-basis:27px}
 .gpm-daily-layout{gap:16px}
}
@media(max-width:680px){
 .gpm-daily-layout,.gpm-modal-stock .stock-manager{grid-template-columns:1fr}
 .gpm-modal-stock .stock-manager>*{grid-column:1!important}
 .gpm-modal-stock .stock-table th:nth-child(1){width:25%}
 .gpm-modal-stock .stock-table th:nth-child(2){width:18%}
 .gpm-modal-stock .stock-table th:nth-child(3){width:11%}
 .gpm-modal-stock .stock-table th:nth-child(4){width:16%}
 .gpm-modal-stock .stock-table th:nth-child(5){width:30%}
 .gpm-modal-stock .stock-table th,.gpm-modal-stock .stock-table td{font-size:10px;padding:7px 3px}
 .gpm-modal-stock .stock-table td small{font-size:9px}
 .gpm-modal-stock .gpm-qty-stepper button{flex-basis:23px;height:31px}
 .gpm-modal-stock .gpm-qty-stepper input{font-size:11px}
 .gpm-modal-stock .stock-table input,.gpm-modal-stock .stock-table select{padding:6px 1px;font-size:11px}
}

/* V15.12.9 — activité ATM : statistiques lisibles, sans nouvelle barre de défilement. */
.gpm-atm-statistics{padding:12px 14px;margin:8px 0 12px;border-radius:14px;background:#f1f6f3;border:1px solid #d6e6db}.gpm-atm-statistics h3{margin:2px 0 9px;color:#234b4f;font-size:15px}.gpm-atm-statistics .metric-row{padding:6px 0;gap:10px}.gpm-atm-statistics .metric-row span{font-size:12px}.gpm-atm-statistics .metric-row b{white-space:nowrap}.gpm-atm-statistics .smallnote{margin:10px 0 1px;font-size:11px;line-height:1.45}

/* V15.16.3 — Réglage universel par article sur téléphone, tablette et ordinateur. */
.shop-product-row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;align-items:start;padding:10px 0}
.shop-product-edit{display:grid;grid-template-columns:32px minmax(56px,1fr) 11px 32px;align-items:center;gap:5px;width:100%;max-width:100%;box-sizing:border-box}
.shop-product-edit input{width:100%;max-width:none;min-width:0;height:36px;font-size:13px;text-align:center}
.shop-product-edit button{display:grid;place-items:center;width:32px;height:36px;padding:0;border-radius:8px;border:1px solid #cad5cb;background:#fff;color:#244b51;font-size:20px;font-weight:700;cursor:pointer;touch-action:manipulation}
.shop-product-edit button:hover{background:#e6f1e9;border-color:#76ac93}
.shop-product-edit button:focus-visible{outline:2px solid #368baf;outline-offset:2px}
.shop-product-edit span{font-size:12px;text-align:center}
@media(max-width:760px){.shop-product-edit{grid-template-columns:34px minmax(56px,1fr) 11px 34px}.shop-product-edit button{width:34px;height:38px}}

/* V15.16.5 : statistiques lisibles dans la fiche étroite sans gêner les prix. */
.gpm-finance-explainer{margin-top:12px;border-top:1px solid #d9e4de;padding-top:7px}
.gpm-finance-explainer .metric-row span{line-height:1.35}
.gpm-finance-explainer .smallnote{line-height:1.5;margin:7px 0;font-size:10px}
.shop-product-name small{display:block;line-height:1.4;overflow-wrap:anywhere}
.gpm-stock-ledger .smallnote{font-size:10px;line-height:1.45}

/* V15.16.13 — billetterie au pas de 1 €, interface tactile accessible. */
.gpm-entry-stepper{display:grid;grid-template-columns:44px minmax(70px,1fr) 20px 44px;align-items:center;gap:7px;max-width:310px}
.gpm-entry-stepper input{min-width:0;text-align:center;width:100%;box-sizing:border-box}
.gpm-entry-stepper>span{text-align:center;font-weight:800;color:#35515a}
.gpm-entry-stepper button,.gpm-entry-quick button{min-width:40px;min-height:43px;border:1px solid #b8cfc4;border-radius:10px;background:#f4fbf7;color:#254f51;font-size:24px;font-weight:800;cursor:pointer;touch-action:manipulation}
.gpm-entry-stepper button:hover:not(:disabled),.gpm-entry-quick button:hover:not(:disabled){background:#dfefdf;border-color:#6fa389}
.gpm-entry-stepper button:disabled,.gpm-entry-quick button:disabled{opacity:.36;cursor:default}
.gpm-entry-stepper button:focus-visible,.gpm-entry-quick button:focus-visible{outline:3px solid #368baf;outline-offset:2px}
.gpm-entry-quick{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;margin:10px 0;border:1px solid #d7e5dd;border-radius:12px;background:#f8fbf7}
.gpm-entry-quick b{font-size:16px;white-space:nowrap;color:#244b51}
@media(max-width:420px){.gpm-entry-stepper{grid-template-columns:42px minmax(54px,1fr) 18px 42px;gap:4px}.gpm-entry-stepper button{min-width:42px}}

/* V15.16.32 — Catégorie Sols & terrains : deux galeries distinctes. */
#catalog .gpm-ground-intro{display:flex;align-items:flex-start;gap:11px;margin:4px 0 10px;padding:12px;border:1px solid #d8e4d7;border-radius:12px;background:linear-gradient(120deg,#e8f3e4,#f8f5e9)}
#catalog .gpm-ground-intro__icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#d7e8cf;font-size:20px}
#catalog .gpm-ground-intro strong{display:block;margin:1px 0 4px;font-size:12px;color:#274a43;line-height:1.2}
#catalog .gpm-ground-intro p{margin:0;color:#61756e;font-size:10.5px;line-height:1.43}
#catalog .gpm-ground-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 14px}
#catalog .gpm-ground-action{display:flex;align-items:center;gap:6px;min-width:0;padding:9px 7px;border:1px solid #d7e0da;border-radius:11px;background:#fff;text-align:left;color:#294a4b;cursor:pointer}
#catalog .gpm-ground-action:hover,#catalog .gpm-ground-action:focus-visible{border-color:#bd955a;background:#fffbf1}
#catalog .gpm-ground-action>span:first-child{font-size:20px;line-height:1}
#catalog .gpm-ground-action b{display:block;font-size:10px;line-height:1.2}
#catalog .gpm-ground-action small{display:block;font-size:9px;color:#77867e;line-height:1.25;margin-top:3px}
#catalog .gpm-ground-group{margin:0 0 15px;padding:0}
#catalog .gpm-ground-group__heading{margin:0 1px 8px;padding:0 0 7px;border-bottom:1px solid #dce1d7}
#catalog .gpm-ground-group__heading h3{margin:0 0 3px;font-size:12px;letter-spacing:.2px;color:#31534b;font-weight:900}
#catalog .gpm-ground-group__heading p{margin:0;color:#72827a;font-size:10px;line-height:1.35}
#catalog .gpm-ground-group--featured .gpm-ground-group__heading{border-color:#d9bf83}
#catalog .gpm-ground-group--featured .gpm-ground-group__heading h3{color:#9c6c2c}
#catalog .gpm-ground-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#catalog .gpm-ground-card{min-width:0;display:block;padding:7px!important;overflow:hidden;transition:border-color .12s,box-shadow .12s,transform .12s}
#catalog .gpm-ground-card.active{border:2px solid #b88a44;background:#fff8e8;padding:6px!important;box-shadow:0 0 0 2px #d8b06632}
#catalog .gpm-ground-card:focus-visible{outline:2px solid #477a83;outline-offset:2px}
#catalog .gpm-ground-card__swatch{height:88px;max-height:none;border-radius:9px;background:linear-gradient(130deg,#e5ece6,#f4f3ee);overflow:hidden}
#catalog .gpm-ground-card__swatch img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #314b4530)}
#catalog .gpm-ground-card__title{display:block;margin:7px 1px 3px;color:#274741;font-size:11px;font-weight:900;line-height:1.2}
#catalog .gpm-ground-card__desc{display:block;margin:0 1px;color:#73827b;font-size:9px;line-height:1.25;min-height:23px}
#catalog .gpm-ground-card__price{display:block;margin:5px 1px 2px;color:#926c36;font-size:11px;font-weight:900}
#catalog .gpm-ground-water-heading{margin:4px 2px 9px;padding-top:11px;border-top:1px solid #d8ddd7;color:#78877c;font-size:10px;font-weight:900;letter-spacing:.9px}
@media (max-width:760px){#catalog .gpm-ground-intro{padding:9px;margin:2px 0 8px}#catalog .gpm-ground-actions{margin-bottom:10px}#catalog .gpm-ground-card__swatch{height:83px}#catalog .gpm-ground-card__title{font-size:11px}#catalog .gpm-ground-group{margin-bottom:12px}}
@media (min-width:550px) and (max-width:760px){#catalog .gpm-ground-palette{grid-template-columns:repeat(3,minmax(0,1fr))}}
