/* Mise en page contenue : aucune colonne ne doit élargir la page. */
html,body{width:100%;max-width:100%;overflow-x:clip}.shell,main,#app,.workspace,.profile-layout,.metric-grid,.ev-peaks,.panel,.side-stack{min-width:0;max-width:100%}.workspace>*,.profile-layout>*,.ev-peaks>*,.panel-head>*,.toolbar>*{min-width:0}header{height:auto;min-height:81px;padding-block:16px;row-gap:10px}.sync-status{line-height:1.45;overflow-wrap:anywhere;position:static}.heading-row>div{min-width:0}.tabs{max-width:100%}.sidebar nav a{text-align:center}.sidebar nav a>span{display:flex;align-items:center;justify-content:center}.sidebar nav a svg{display:block}
.record-row:nth-child(-n+3){background:transparent}.record-row:nth-child(-n+3) .qty{color:var(--ink)}.record-row.record-live{background:#fff1df}.record-row:hover{background:#fff8ed}
.ev-type-control{display:inline-flex;gap:4px;margin:0 24px 16px;padding:4px;width:auto;max-width:calc(100% - 48px);box-sizing:border-box}.ev-type-control button{flex:1;margin:0;border:0;padding:9px 14px;white-space:nowrap}.ev-panel .panel-head>div:first-child{flex:1 1 240px}#ev-chart{width:100%;min-width:0;overflow:visible;padding:8px 0}.ev-svg{width:100%;min-width:0;max-width:100%;height:auto}.ev-svg text{font-size:12px}
/* Chaque barre réserve sa propre ligne pour le mois et le statut. */
.mini-chart{display:grid;grid-template-columns:repeat(var(--chart-count),minmax(0,1fr));height:170px;gap:clamp(2px,.6vw,8px);align-items:stretch;padding:28px 0 0;margin:16px 0 8px;border:0}.stats-wide .mini-chart{height:260px}.chart-col{display:grid;grid-template-rows:minmax(0,1fr) 42px;align-items:stretch;min-width:0;height:auto}.chart-track{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:0}.mini-chart .chart-col b.chart-value{position:absolute;top:auto;display:block;font-size:12px;font-weight:500;transform:none;white-space:nowrap;line-height:1.2}.chart-track .bar{flex:none;width:min(100%,30px);max-width:30px;min-height:2px}.chart-label{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:8px;line-height:1.2;font-size:12px;color:#777e88;min-width:0}.mini-chart .chart-col .chart-label small.chart-in-progress{position:static;bottom:auto;display:block;width:max-content;visibility:visible;font-size:11px;white-space:nowrap;line-height:1.2;margin:0;color:#a4551b}.side-panel .mini-chart .chart-value{display:none!important}.side-panel .mini-chart .chart-col:hover .chart-value{display:block!important}.side-panel .chart-col:nth-child(even) .chart-label>span{visibility:hidden}.side-panel .chart-col:last-child .chart-label>span{visibility:visible}.side-panel .mini-chart{margin-bottom:8px}
@media(max-width:820px){
 .sidebar{box-sizing:border-box;width:100%;max-width:100vw;padding-inline:16px}.sidebar .brand{min-width:0}.sidebar .brand b{font-size:22px}#mobile-menu{flex:none;max-width:130px;white-space:nowrap;padding:8px 10px}.sidebar nav{width:100%;max-width:100vw;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;gap:8px}.sidebar nav a{min-height:84px;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.35;justify-content:center;align-items:center;padding:10px 4px}.sidebar nav a>span{flex:none}
 .shell{margin-left:0;width:100%;max-width:100%}header{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;align-items:start;gap:9px;padding:16px 18px}.breadcrumb{flex-wrap:wrap}.update{max-width:100%;width:fit-content;white-space:normal;line-height:1.5;margin:0;padding:7px 11px}.sync-status{display:block;order:3;width:100%;max-width:100%;margin:0;line-height:1.5;font-size:13px}.heading-row,.heading-row>div{width:100%;min-width:0}main{padding:24px 16px 36px}.workspace,.profile-layout{grid-template-columns:minmax(0,1fr)}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-width:0;padding:16px 14px}.metric .label{font-size:12px;letter-spacing:0;gap:5px;overflow-wrap:anywhere}.metric .value{font-size:clamp(1.65rem,7vw,2.2rem);overflow-wrap:anywhere}.metric small{font-size:12px;overflow-wrap:anywhere;line-height:1.5}
 .panel-head{width:100%;flex-wrap:wrap;align-items:flex-start;gap:14px;padding:18px 14px 14px}.panel-head h2{overflow-wrap:anywhere}.panel-head .tabs{max-width:100%;flex:none}.toolbar{align-items:stretch;gap:10px;padding:0 14px 16px}.toolbar .search,.toolbar .select-wrap{min-width:0;width:100%;flex:1 1 100%}.toolbar select,.filter{max-width:100%;min-width:0}.search input{width:100%;max-width:100%}.tabs button{padding:9px 11px;white-space:nowrap}.podium{padding:12px;gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}.podium-card{min-width:0}.podium-name{min-width:0;overflow-wrap:anywhere}.podium-count span{display:block;margin:3px 0 0}.list-head,.rank-row{grid-template-columns:28px minmax(0,1fr) 50px;gap:7px}.list-head{letter-spacing:0;font-size:10px}.rank-row .name{overflow-wrap:anywhere}.last-beer-head,.share-head,.share{display:none}.last-beer{white-space:normal}.last-beer small{margin-left:4px}.movement-note{padding-inline:14px;overflow-wrap:anywhere}.list-foot{padding:14px;flex-wrap:wrap;line-height:1.5}
 .record-head,.record-row{grid-template-columns:24px minmax(0,1fr) 76px 38px;gap:7px;padding-inline:10px}.record-head{font-size:10px;letter-spacing:0;height:auto;min-height:38px}.record-row .who{min-width:0}.record-row .name{font-size:13px;overflow-wrap:anywhere}.record-row .name small{font-size:11px}.record-row .record-period{font-size:12px!important;overflow-wrap:anywhere}.record-row .qty{font-size:16px}.record-row .in-progress{font-size:10px;padding:4px 5px}.stats-table{table-layout:fixed;width:100%}.stats-table td,.stats-table th{overflow-wrap:anywhere;padding:12px 7px}.stats-table th{font-size:10px;letter-spacing:0}.stats-table td{font-size:12px}.stats-table td:last-child{max-width:none}.stats-table .in-progress{font-size:11px;padding:4px 6px;white-space:nowrap}
 .stats-wide{padding:20px 14px}.stats-wide .panel-head{padding:0 0 14px!important}.mini-chart{gap:3px}.stats-wide .mini-chart{height:240px}.mini-chart .chart-col b.chart-value{font-size:10px}.chart-label{font-size:11px}.mini-chart .chart-col .chart-label small.chart-in-progress{font-size:10px}.ev-panel{padding:16px 14px}.ev-panel .panel-head{padding:0 0 16px}.ev-panel .panel-head>div:first-child{flex-basis:100%}.ev-type-control{margin:0 0 16px;max-width:100%;width:100%;padding:4px;gap:4px}.ev-type-control button{min-width:0;padding:10px 6px;font-size:13px}.ev-panel .tabs{width:auto}.ev-panel #ev-modes{width:100%}.ev-svg{min-width:0}.ev-peaks{grid-template-columns:minmax(0,1fr)}.ev-person{grid-template-columns:24px 32px minmax(0,1fr) auto}.ev-person>span{overflow-wrap:anywhere}footer{max-width:100%;overflow-wrap:anywhere;padding:20px 16px}
}
/* Verre virtuel : toute la zone disponible, sans page à faire défiler. */
body.beer-toy-open{overflow:hidden!important}#beer-toy{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#111318;color:#fff;box-sizing:border-box;touch-action:none}#beer-toy::backdrop{background:#111318}.beer-stage{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;background:#111318;box-shadow:none;overflow:hidden}.beer-stage canvas{display:block;width:100%;height:100%}.beer-toy-top{position:absolute;z-index:2;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 12px) 14px 12px;background:linear-gradient(#101216bb,transparent);pointer-events:none}.beer-toy-top span{font:600 12px var(--display);letter-spacing:.15em;color:#fff2d0}.beer-toy-top button{pointer-events:auto;width:44px;height:44px;border:1px solid #ffffff66;border-radius:50%;background:#101216aa;color:#fff;font-size:28px;line-height:1;cursor:pointer}.beer-toy-controls{position:absolute;z-index:2;bottom:0;left:0;right:0;padding:14px 12px calc(env(safe-area-inset-bottom) + 14px);background:linear-gradient(transparent,#101216d9 28%);display:flex;flex-direction:column;gap:10px;align-items:center}.beer-toy-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%}.beer-toy-actions button{min-height:42px;border:1px solid #ffffff66;border-radius:24px;background:#101216bb;color:#fff;padding:9px 12px;font:600 13px var(--body);cursor:pointer}.beer-toy-actions button:focus-visible{outline:2px solid #fff;outline-offset:3px}#toy-status{min-height:0;margin:0;font-size:12px;color:#fff2d0;text-align:center;max-width:95%;line-height:1.4}.beer-toy-adjust{display:none;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:12px;background:#101216cc;color:#fff;font-size:13px;width:min(95%,440px)}.beer-toy-adjust.open{display:flex}.beer-toy-adjust input{flex:1;min-width:0;accent-color:#ffab32}.beer-empty{position:absolute;inset:45% 0 auto;color:#fff;font:600 2rem var(--display);text-align:center;pointer-events:none}.toy-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.beer-fullscreen-hint{font-size:12px;color:#fff}
@media(max-width:420px){.beer-toy-actions{gap:6px}.beer-toy-actions button{font-size:12px;padding:8px 10px;min-height:40px}.beer-toy-controls{padding-inline:8px;gap:8px}}@media(max-height:500px){.beer-toy-controls{padding-top:8px;padding-bottom:8px;gap:4px}.beer-toy-top{padding-top:6px}.beer-toy-adjust{padding:6px 12px}.beer-toy-actions button{min-height:36px;padding:7px 10px}}

/* Isolate the game and fullscreen the game itself, never the dashboard. */
#beer-toy[hidden]{display:none!important}
#beer-toy:not([hidden]){display:block!important;z-index:2147483647!important;background:#080b0f!important;isolation:isolate;color-scheme:dark}
body.beer-toy-open> :not(#beer-toy){visibility:hidden!important;pointer-events:none!important}
#beer-toy .beer-stage{z-index:0;background:#080b0f!important}
#beer-toy:fullscreen{width:100vw!important;height:100dvh!important;inset:0!important}
#beer-toy .beer-toy-top{z-index:3}
#beer-toy #toy-settings{pointer-events:auto;width:44px;height:44px;border:1px solid #ffffff55;border-radius:50%;background:#10121666;color:#fff;font-size:24px;cursor:pointer}
#beer-toy .beer-toy-controls{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s}
#beer-toy.settings-open .beer-toy-controls{opacity:1;visibility:visible;pointer-events:auto}
#beer-toy .beer-toy-top{background:none}
#beer-toy.settings-open .beer-toy-controls{background:#101216ed;border-radius:20px 20px 0 0}
#beer-toy #toy-status{color:#fff2d0;font-size:14px}

.profile-daily-average{display:block;margin-top:10px;font-size:14px;line-height:1.45;color:var(--muted,#68707e)}.profile-daily-average span{display:block;font-size:12px;margin-top:2px}

.ev-milestones .milestone-author{display:block;margin-top:8px;color:var(--muted,#68707e);font-size:14px;line-height:1.4;overflow-wrap:anywhere;text-decoration:none}.ev-milestones .milestone-author:hover{text-decoration:underline}.ev-milestones .milestone-author:focus-visible{outline:2px solid currentColor;outline-offset:3px}
