.cg-page{max-width:1500px;margin:auto;padding:14px 0 40px}.cg-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 19px}.cg-tab{border:1px solid #e6e0ed;background:#fff;color:#243047;border-radius:18px;padding:9px 13px;font:700 13px inherit;cursor:pointer;box-shadow:0 3px 13px #151c3210}.cg-tab span{color:var(--crm-accent,#eb008b);font-size:18px;margin-right:6px}.cg-tab:hover,.cg-tab.is-active{background:#121c36;color:#fff;border-color:#121c36}.cg-hero{border-radius:22px;color:#fff;padding:29px 35px;margin-bottom:17px;background:radial-gradient(circle at 82% 26%,var(--crm-accent,#eb008b) 0 5%,transparent 28%),linear-gradient(110deg,#172345,#40215b 70%,var(--crm-accent,#eb008b));box-shadow:0 16px 30px #24275120}.cg-hero small,.cg-title small{letter-spacing:.16em;font-weight:800;font-size:11px}.cg-hero h2{font-size:clamp(26px,3vw,39px);margin:9px 0}.cg-hero h2 span{color:#ffd36e}.cg-hero p{margin:0;opacity:.86}.cg-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(330px,1fr);gap:17px}.cg-card{background:#fff;border-radius:20px;padding:25px;margin:0 0 17px;border:1px solid #eae8f0;box-shadow:0 12px 26px #192b4212;border-top:4px solid var(--crm-accent,#eb008b)}.cg-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.cg-title small{color:var(--crm-accent,#eb008b)}.cg-title h3{margin:4px 0 0;font-size:22px;color:#152037}.cg-status{padding:6px 10px;border-radius:30px;background:#f1f1f6;font-weight:800;font-size:11px;text-transform:uppercase}.cg-status.open{background:#ddf8e8;color:#08734b}.cg-status.closed{background:#eae8f3}.cg-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.cg-form label{font-weight:700;font-size:13px;color:#425066}.cg-form input,.cg-form select,.cg-form textarea,.cg-share input,.cg-station input{width:100%;min-width:0;display:block;margin-top:6px;padding:10px 12px;border:1px solid #d6dce7;border-radius:10px;background:#fff;color:#152037;font:inherit}.cg-form label.cg-wide,.cg-actions{grid-column:1/-1}.cg-form textarea{resize:vertical}.cg-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}.cg-page button,.cg-link{cursor:pointer;border:0;border-radius:10px;padding:10px 14px;background:var(--crm-accent,#eb008b);color:#fff;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.cg-page .cg-secondary,.cg-page .cg-text,.cg-station .cg-secondary{background:#f3f5fa;color:#192641;border:1px solid #dce2ed}.cg-page .cg-text{border:0;background:transparent;color:var(--crm-accent,#eb008b);padding:5px 0}.cg-page .cg-icon-button{background:#fff1f6;color:#c32763;padding:7px 11px;font-size:19px}.cg-page .cg-list{display:grid;gap:8px}.cg-row{display:flex;align-items:center;gap:12px;border-top:1px solid #e8eaf0;padding:13px 0}.cg-row>div{flex:1;min-width:0}.cg-row>div strong{font-size:16px}.cg-row p,.cg-card p{color:#627084;line-height:1.5}.cg-row p{margin:3px 0;font-size:13px}.cg-row>b{color:var(--crm-accent,#eb008b);font-size:18px}.cg-upload{display:inline-flex;color:var(--crm-accent,#eb008b);cursor:pointer;font-weight:800;font-size:12px}.cg-upload input{display:none}.cg-share{text-align:left}.cg-qr{display:flex;justify-content:center;margin:6px 0 15px}.cg-qr svg{width:min(220px,100%);height:auto;border:1px solid #e8eaf1;border-radius:14px}.cg-share .cg-link{margin-top:12px}.cg-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.cg-metrics div{padding:16px 6px;border-radius:12px;text-align:center;background:#f8edf6}.cg-metrics strong{display:block;font-size:26px;color:var(--crm-accent,#eb008b)}.cg-metrics span{font-size:11px;color:#63718a}.cg-board p{display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf0f4;padding:9px 0;margin:0}.cg-board span{color:var(--crm-accent,#eb008b);font-weight:800}.cg-board b{flex:1}.cg-recent{max-height:350px;overflow:auto}.cg-recent p{border-bottom:1px solid #eee;margin:0;padding:9px 0}.cg-recent button{padding:4px 8px}.cg-station{text-align:center}.cg-station input{text-align:left}@media(max-width:900px){.cg-grid{grid-template-columns:1fr}}@media(max-width:580px){.cg-card{padding:19px}.cg-form{grid-template-columns:1fr}.cg-hero{padding:24px}.cg-tabs{flex-wrap:nowrap;overflow:auto;scroll-snap-type:x mandatory}.cg-tab{flex:0 0 auto;scroll-snap-align:start}.cg-row{flex-wrap:wrap}.cg-row>div{flex-basis:75%}}
/* Barre de jeux compacte : neuf onglets toujours sur une seule rangée. */
.cg-tabs{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));align-items:stretch;width:100%;gap:5px;padding:6px;margin:12px 0 17px;border:1px solid #eee4ee;border-radius:16px;background:#faf6fa;overflow:visible;box-shadow:0 7px 19px #18213b0a}
.cg-tabs .cg-tab{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:5px 6px;border:1px solid transparent;border-radius:11px;box-shadow:none;background:transparent;color:#23314c;font-family:inherit;font-size:11px;font-weight:750;line-height:1.1;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.cg-tabs .cg-tab:hover{background:#fff;color:var(--crm-accent,#eb008b);border-color:#f4d5e6;box-shadow:0 4px 10px #ba346117}
.cg-tabs .cg-tab.is-active,.cg-tabs .cg-tab.is-active:hover{background:#202542;color:#fff;border-color:#202542;box-shadow:0 6px 13px #22274736}
.cg-tabs .cg-tab:focus-visible{outline:3px solid #f06aa8;outline-offset:2px}
.cg-tab .cg-tab-icon{flex:none;display:grid;place-items:center;width:29px;height:29px;margin:0;border-radius:9px;background:#ffe8f3;color:var(--crm-accent,#eb008b)}
.cg-tabs .cg-tab.is-active .cg-tab-icon{background:#ffffff22;color:#fff}
.cg-tab-icon svg{width:19px;height:19px;display:block;stroke:currentColor}
.cg-tab .cg-tab-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;color:inherit}
@media(max-width:1180px){.cg-tabs{gap:3px}.cg-tabs .cg-tab{flex-direction:column;gap:2px;min-height:55px;font-size:9px;padding:3px 1px}.cg-tab .cg-tab-icon{width:25px;height:25px;border-radius:7px}.cg-tab-icon svg{width:17px;height:17px}}
@media(max-width:760px){.cg-tabs{gap:2px;padding:4px;border-radius:12px}.cg-tabs .cg-tab{height:40px;min-height:40px;padding:2px 0}.cg-tabs .cg-tab-label{display:none}.cg-tab .cg-tab-icon{width:25px;height:25px;background:transparent;color:var(--crm-accent,#eb008b)}.cg-tabs .cg-tab.is-active .cg-tab-icon{background:transparent}.cg-tab-icon svg{width:21px;height:21px}}
/* Ajustement après vérification dans le CRM : neutralise les styles globaux des boutons. */
#content nav.cg-tabs{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:4px!important;padding:4px!important;margin:9px 0 15px!important;background:#f9f7fb!important;border:1px solid #e8e4ed!important;box-shadow:none!important}
#content nav.cg-tabs>button.cg-tab{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;padding:3px 5px!important;margin:0!important;border:1px solid transparent!important;border-radius:9px!important;background:#fff!important;color:#2a3550!important;box-shadow:none!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;line-height:1!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap!important}
#content nav.cg-tabs>button.cg-tab:hover{background:#fff2f8!important;color:var(--crm-accent,#eb008b)!important;border-color:#f0c7dc!important}
#content nav.cg-tabs>button.cg-tab.is-active{background:#232b49!important;color:#fff!important;border-color:#232b49!important}
#content nav.cg-tabs>button.cg-tab .cg-tab-icon{display:grid!important;place-items:center!important;flex:none!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:0!important;margin:0!important;border-radius:7px!important;background:#fce7f2!important;color:var(--crm-accent,#eb008b)!important;font-size:0!important}
#content nav.cg-tabs>button.cg-tab.is-active .cg-tab-icon{background:#ffffff23!important;color:#fff!important}
#content nav.cg-tabs>button.cg-tab .cg-tab-icon svg{display:block!important;width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;margin:0!important;color:inherit!important;stroke:currentColor!important}
#content nav.cg-tabs>button.cg-tab .cg-tab-label{display:block!important;min-width:0!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important;font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important}
@media(max-width:1180px){#content nav.cg-tabs>button.cg-tab{flex-direction:column!important;gap:1px!important;height:46px!important;min-height:46px!important;padding:2px 1px!important}#content nav.cg-tabs>button.cg-tab .cg-tab-label{font-size:9px!important}}
@media(max-width:760px){#content nav.cg-tabs{gap:2px!important;padding:3px!important}#content nav.cg-tabs>button.cg-tab{height:35px!important;min-height:35px!important;padding:2px 0!important}#content nav.cg-tabs>button.cg-tab .cg-tab-label{display:none!important}#content nav.cg-tabs>button.cg-tab .cg-tab-icon{background:transparent!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important}#content nav.cg-tabs>button.cg-tab.is-active .cg-tab-icon{background:transparent!important}#content nav.cg-tabs>button.cg-tab .cg-tab-icon svg{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important}}

/* Keep game navigation independent of the shared flex menus. */
html body #shell main #content nav.cg-tabs{
 display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;
 grid-auto-flow:row!important;align-items:stretch!important;gap:6px!important;
 box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
 height:auto!important;min-height:0!important;margin:0 0 12px!important;padding:8px!important;
 border:1px solid #e3e0ed!important;border-radius:12px!important;background:#fff!important;
 overflow:visible!important;box-shadow:none!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab]{
 display:flex!important;flex:initial!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;gap:6px!important;width:100%!important;min-width:0!important;max-width:100%!important;
 height:40px!important;min-height:40px!important;padding:7px 5px!important;margin:0!important;
 border:1px solid #e3e0ed!important;border-radius:9px!important;background:#fff!important;color:#435674!important;
 box-shadow:none!important;text-decoration:none!important;font-family:Visby,Arial,sans-serif!important;
 font-size:12px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab] .cg-tab-icon{
 display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 18px!important;
 width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab] .cg-tab-icon svg{
 display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;margin:0!important;padding:0!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab] .cg-tab-label{
 display:block!important;min-width:0!important;margin:0!important;color:inherit!important;
 font-size:12px!important;font-weight:inherit!important;line-height:1.2!important;white-space:nowrap!important;overflow:visible!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab]:hover{
 background:#fff5fa!important;border-color:#efb7d8!important;color:#eb008b!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab]:is(.is-active,[aria-pressed="true"]){
 background:#fff0f8!important;border-color:#efa9d2!important;color:#eb008b!important;font-weight:650!important;
}
html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab]:focus-visible{
 outline:2px solid #eb008b!important;outline-offset:2px!important;
}
html body #shell main #content :is(.cg-page,.cq-page){width:100%;max-width:none;min-width:0;margin:0;padding:0 0 20px;font-family:Visby,Arial,sans-serif}
html body #shell main #content :is(.cg-hero,.cq-hero){
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 10px!important;
 box-sizing:border-box!important;min-height:64px!important;margin:0 0 12px!important;padding:12px 16px!important;
 border:1px solid #e4dfed!important;border-left:4px solid #eb008b!important;border-radius:12px!important;
 background:linear-gradient(100deg,#fff1f8,#f9f9fd)!important;color:#1b2940!important;box-shadow:none!important;
}
html body #shell main #content :is(.cg-hero,.cq-hero)>div:has(>h2){flex:1 1 280px!important;min-width:0!important;width:auto!important}
html body #shell main #content :is(.cg-hero,.cq-hero) h2{margin:0!important;font-size:20px!important;line-height:1.25!important}
html body #shell main #content :is(.cg-hero,.cq-hero) :is(.cq-overline,small){display:none!important}
html body #shell main #content :is(.cg-hero,.cq-hero) p{font-size:12px!important;line-height:1.4!important;margin:5px 0 0!important;color:#64748b!important}
html body #shell main #content :is(.cg-hero,.cq-hero) :is(.cq-button-line,.crm-game-product-tools){display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important;gap:7px!important;margin:0!important}
html body #shell main #content .cq-hero .cq-hero-badge{margin:0!important;padding:6px 9px!important;font-size:10px!important;letter-spacing:.03em!important}
html body #shell main #content :is(.cg-hero,.cq-hero) .crm-game-product-tools :is(button,.button){min-height:36px!important;padding:8px 11px!important;font:600 12px/1.25 Visby,Arial,sans-serif!important;border:1px solid #d7dfec!important;border-radius:9px!important;background:#fff!important;color:#435674!important;box-shadow:none!important}
html body #shell main #content :is(.cg-hero,.cq-hero) .crm-games-portal{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 1 auto!important;order:3;
 min-width:0!important;max-width:100%!important;min-height:36px!important;height:auto!important;margin:0!important;padding:8px 11px!important;
 border:1px solid #d7dfec!important;border-radius:9px!important;background:#fff!important;color:#435674!important;box-shadow:none!important;
 font:600 12px/1.25 Visby,Arial,sans-serif!important;text-decoration:none!important;white-space:normal!important;
}
html body #shell main #content .crm-games-portal>svg{display:block!important;flex:none;width:17px!important;height:17px!important;margin:0!important;padding:0!important;background:none!important}
html body #shell main #content .crm-games-portal>span{font:inherit!important}
html body #shell main #content :is(.cg-hero,.cq-hero) .crm-games-portal:hover{color:#eb008b!important;border-color:#efa9d2!important;background:#fff5fa!important}
html body #shell main #content :is(.cg-grid,.cq-columns){gap:12px;min-width:0}
html body #shell main #content :is(.cg-grid,.cq-columns)>div{min-width:0}
html body #shell main #content :is(.cg-card,.cq-card){padding:16px;margin-bottom:12px;border-radius:12px;box-shadow:none}
html body #shell main #content :is(.cg-title,.cq-section-title){gap:8px;margin-bottom:12px;flex-wrap:wrap}
html body #shell main #content :is(.cg-title,.cq-section-title) h3{font-size:16px;line-height:1.3;margin:3px 0 0}
html body #shell main #content :is(.cg-title,.cq-section-title) :is(small,span){font-size:10px}
html body #shell main #content :is(.cg-form,.cq-settings){gap:10px}
html body #shell main #content :is(.cg-page,.cq-page) :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0;font-family:inherit}
@media(max-width:1250px){
 html body #shell main #content nav.cg-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:600px){
 html body #shell main #content nav.cg-tabs{gap:5px!important;padding:6px!important;margin-bottom:10px!important}
 html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab]{min-height:44px!important;height:44px!important;gap:5px!important;padding:6px 3px!important}
 html body #shell main #content nav.cg-tabs>button.cg-tab[data-game-tab] .cg-tab-label{font-size:11px!important}
 html body #shell main #content :is(.cg-hero,.cq-hero){padding:10px 12px!important;gap:8px!important;justify-content:flex-start!important}
 html body #shell main #content :is(.cg-hero,.cq-hero) h2{font-size:18px!important}
 html body #shell main #content :is(.cg-hero,.cq-hero)>div:has(>h2){flex:1 0 100%!important}
 html body #shell main #content :is(.cg-hero,.cq-hero) .crm-games-portal{min-height:40px!important}
 html body #shell main #content :is(.cg-card,.cq-card){padding:12px}
}
