/* Roulivo 0.8.1 Group Draw */
#group-draw-dialog{width:min(1160px,calc(100% - 24px));max-height:92dvh;padding:30px;overflow:auto;scrollbar-width:none}
#group-draw-dialog::-webkit-scrollbar{display:none}
.group-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-right:34px;margin-bottom:24px}.group-kicker{margin:0 0 7px;color:var(--green);font-size:11px;font-weight:800;letter-spacing:.16em}.group-heading h2{font-size:clamp(28px,4vw,42px);line-height:1.08;margin:0}.group-heading p{max-width:760px;margin:12px 0 0;color:var(--muted);font-size:16px;line-height:1.6}.group-heading-actions,.group-actions{display:flex;flex-wrap:wrap;gap:9px}.group-heading-actions{justify-content:flex-end}.group-card{border:1px solid var(--line);border-radius:16px;background:var(--bg);padding:22px;margin-bottom:18px}.group-card h3{margin:0;font:700 20px Manrope,'DM Sans',sans-serif}.group-card p{margin:5px 0 0;color:var(--muted);line-height:1.5}.group-section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.group-section-title>span{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:var(--soft);color:var(--green);font-weight:800}.group-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.group-setup label{display:grid;gap:7px;font-weight:700}.group-setup input:not([type=checkbox]),.group-setup select,.group-setup textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--ink);padding:12px;font:inherit;font-size:15px}.group-setup textarea{resize:vertical;min-height:120px;line-height:1.45}.group-check{display:flex!important;align-items:flex-start;gap:11px!important;margin-top:18px;padding:14px;border-radius:10px;background:var(--surface);font-weight:400!important}.group-check input{margin-top:3px;width:18px;height:18px;accent-color:var(--green)}.group-check span{display:grid;gap:3px}.group-check small{color:var(--muted);font-weight:400;line-height:1.4}.group-actions{margin-top:14px}.group-file{display:inline-flex!important;align-items:center;justify-content:center;cursor:pointer;margin:0!important}.group-rules summary{cursor:pointer;font-weight:800;font-size:16px}.group-rules>p{margin:11px 0 18px}.group-ready{display:flex;justify-content:space-between;gap:20px;align-items:center;background:color-mix(in srgb,var(--green) 7%,var(--surface))}.group-ready>div{max-width:720px}.group-ready strong{font-size:17px}.group-ready .primary{flex:none}.group-status{min-height:21px;margin:8px 0 0;color:var(--muted);font-size:14px}.group-status[data-type=error]{color:#b63b34}.group-draw-layout{display:grid;grid-template-columns:minmax(350px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}.group-wheel-card{position:sticky;top:0;text-align:center}.group-progress{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;color:var(--muted)}.group-progress strong{font-size:16px;color:var(--ink)}.group-progress-track{height:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;overflow:hidden;margin:10px 0 16px}.group-progress-track i{display:block;height:100%;background:var(--green);border-radius:999px}.group-wheel-stage{padding:6px 8px 0}.group-wheel-stage .wheel-shell{width:min(100%,390px);margin:0 auto;position:relative}.group-rotor{border-radius:50%;overflow:hidden}.group-rotor svg{display:block;width:100%;height:auto;aspect-ratio:1}.group-wheel-center{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:var(--surface);box-shadow:0 5px 20px #0002;font-weight:800;font-size:18px}.group-current{min-height:72px;margin:18px 0 4px;padding:13px;border-radius:11px;background:var(--surface);display:grid;place-items:center;align-content:center;gap:3px}.group-current strong{font-size:18px;overflow-wrap:anywhere}.group-current span{font-size:13px;color:var(--muted)}.group-draw-actions{justify-content:center}.group-draw-actions button{min-width:145px}.group-results{background:var(--surface)}.group-results-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}.group-results-head h3{font-size:24px}.group-results-head span{font-size:12px;color:var(--muted);text-align:right}.group-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.group-result-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--bg)}.group-result-card header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:var(--soft);border-bottom:1px solid var(--line)}.group-result-card header strong{font-size:15px}.group-result-card header span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.group-result-card ol{list-style:none;padding:0;margin:0}.group-result-card li{min-height:44px;display:flex;align-items:center;gap:8px;padding:10px 13px;border-bottom:1px solid var(--line);font-size:14px}.group-result-card li:last-child{border-bottom:0}.group-result-card li span{flex:1;overflow-wrap:anywhere}.group-result-card li small{color:var(--muted);white-space:nowrap}.group-result-card li b{font-size:11px}.group-result-card li.empty{color:var(--muted);opacity:.55}.group-result-card li.locked{background:color-mix(in srgb,var(--green) 5%,var(--surface))}.dark .group-ready{background:color-mix(in srgb,var(--green) 10%,var(--surface))}
body[data-roulivo-mode="groups"] .experience-switch #group-draw-button{background:var(--green);color:var(--surface)}.dark[data-roulivo-mode="groups"] .experience-switch #group-draw-button{color:#12291b}
@media(max-width:860px){#group-draw-dialog{padding:24px 18px}.group-draw-layout{grid-template-columns:1fr}.group-wheel-card{position:static}.group-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#group-draw-dialog{padding:20px 14px}.group-heading{display:block;padding-right:24px}.group-heading-actions{justify-content:flex-start;margin-top:14px}.group-fields,.group-results-grid{grid-template-columns:1fr}.group-card{padding:16px}.group-ready{align-items:stretch;flex-direction:column}.group-ready .primary{width:100%}.group-wheel-stage .wheel-shell{width:min(92vw,350px)}.group-results-head{align-items:flex-start;flex-direction:column}.group-results-head span{text-align:left}.group-draw-actions{display:grid;grid-template-columns:1fr 1fr}.group-draw-actions button{min-width:0}.experience-switch #group-draw-button{flex:0 0 auto!important}}
@media(prefers-reduced-motion:reduce){.group-rotor{transition:none!important}}
/* Draw Tools hardening */
.group-history summary{cursor:pointer;font-weight:800}.group-history summary span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:var(--soft);font-size:11px;color:var(--green);margin-left:6px}.group-history-list{display:grid;gap:8px;margin-top:14px}.group-history-list article{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px 12px}.group-history-list article div{display:grid;gap:2px}.group-history-list article small{color:var(--muted)}.group-history-list article>span{font-size:12px;color:var(--muted);text-align:right;overflow-wrap:anywhere}@media(max-width:620px){.group-history-list article{align-items:flex-start;flex-direction:column}.group-history-list article>span{text-align:left}}
.group-ready-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.group-ready-actions button{flex:none}@media(max-width:620px){.group-ready-actions{display:grid;grid-template-columns:1fr;width:100%}.group-ready-actions button{width:100%}}

/* Roulivo 0.9.6.6 mobile hardening */
#group-draw-dialog,.group-draw-layout,.group-wheel-card,.group-results,.group-results-grid,.group-result-card{box-sizing:border-box;min-width:0;max-width:100%}
#group-draw-dialog{overflow-x:hidden}
.group-result-card li span{min-width:0}
@media(max-width:620px){
 #group-draw-dialog{width:calc(100dvw - 10px);max-width:calc(100dvw - 10px);padding:calc(14px + env(safe-area-inset-top,0px)) 10px calc(14px + env(safe-area-inset-bottom,0px));margin:auto;overflow-x:hidden}
 .group-heading,.group-card,.group-ready,.group-draw-layout,.group-results,.group-results-grid,.group-result-card{width:100%;max-width:100%;min-width:0}
 .group-card{padding:14px;border-radius:13px}
 .group-wheel-stage{padding-inline:0;overflow:hidden}
 .group-wheel-stage .wheel-shell{width:min(100%,340px);max-width:100%}
 .group-results-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .group-result-card header{padding:10px 11px;gap:8px;min-width:0}
 .group-result-card li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;min-width:0;padding:9px 11px}
 .group-result-card li span{overflow-wrap:anywhere;word-break:break-word}
 .group-result-card li small{max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .group-draw-actions{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .group-draw-actions button{width:100%;min-width:0;white-space:normal}
}
@media(max-width:390px){
 .group-draw-actions{grid-template-columns:1fr}
 .group-result-card li small{max-width:28vw}
}
