/* V116 targeted layout: count is view state, not a new-puzzle request. */
body:has(.print-workshop-v115) #printPreview{
 display:grid!important;align-items:start;justify-content:center!important;
 gap:18px;max-width:1100px!important;margin:20px auto 24px!important;
 grid-template-columns:repeat(2,minmax(0,390px))!important;
}
body:has(.print-workshop-v115) #printPreview[data-count="1"]{
 grid-template-columns:minmax(0,490px)!important;
}
body:has(.print-workshop-v115) #printPreview[data-count="2"]{
 grid-template-columns:repeat(2,minmax(0,440px))!important;
}
body:has(.print-workshop-v115) #printPreview[data-count="4"]{
 grid-template-columns:repeat(2,minmax(0,440px))!important;
}
body:has(.print-workshop-v115) #printPreview .print-puzzle{
 width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
body:has(.print-workshop-v115) #printPreview .print-grid{
 margin-left:auto!important;margin-right:auto!important;
 max-width:100%!important;
}
body:has(.print-workshop-v115) #printPreview .answer-sheets{
 grid-column:1/-1!important;display:grid!important;
 grid-template-columns:subgrid;gap:16px;margin-top:12px;
}
body:has(.print-workshop-v115) #printPreview .answer-sheets>h2{
 grid-column:1/-1;margin:3px 0 0;
}
body:has(.print-workshop-v115) #printGenerate{
 background:#edf6ff!important;color:#1e5d8b!important;
 border:1px solid #a6cbe5!important;
}
body:has(.print-workshop-v115) #printGenerate:hover{background:#ddecff!important}
body:has(.print-workshop-v115) #printNow{
 background:#086ba7!important;color:#fff!important;font-weight:800!important;
}
.custom-workspace .custom-controls{
 align-content:start!important;
}
.custom-workspace .custom-controls>.custom-modes-v114{
 box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;
 display:flex!important;justify-content:start!important;
 flex-wrap:wrap!important;gap:5px!important;
 padding:6px!important;margin:0!important;
 background:#f3f8ff!important;border:1px solid #bed9ed!important;
 border-radius:12px!important;
}
.custom-workspace .custom-controls>.custom-modes-v114 .custom-mode-v114{
 flex:1 1 110px!important;min-width:0!important;max-width:none!important;
 padding:6px 8px!important;font-size:10.5px!important;line-height:1.28!important;
 min-height:40px!important;border-radius:9px!important;
}
.custom-workspace .custom-controls>#customModeDescription{
 grid-column:1/-1!important;margin:0!important;padding:0 4px 2px!important;
 text-align:start!important;font-size:11px!important;color:#566c82!important;
 min-width:0!important;max-width:100%!important;line-height:1.4!important;
}
.custom-hero:has(h1){margin-bottom:14px!important}
.custom-hero>p{font-size:13px!important;line-height:1.6!important}
body.dark .custom-controls>.custom-modes-v114{
 background:#182b3d!important;border-color:#4a6b85!important;
}
body.dark .custom-controls>#customModeDescription{color:#bed5e7!important}
@media(min-width:981px){
 .custom-workspace .custom-controls{grid-template-columns:minmax(0,1fr)!important;}
}
@media(min-width:641px) and (max-width:980px){
 .custom-workspace .custom-controls>.custom-modes-v114,
 .custom-workspace .custom-controls>#customModeDescription{
 grid-column:1/-1!important}
}
@media(max-width:720px){
 body:has(.print-workshop-v115) #printPreview,
 body:has(.print-workshop-v115) #printPreview[data-count]{
  grid-template-columns:minmax(0,1fr)!important;max-width:460px!important;
 }
 body:has(.print-workshop-v115) #printPreview .answer-sheets{
  grid-template-columns:minmax(0,1fr)!important;
 }
}
@media print{
 body:has(.print-workshop-v115) #printPreview,
 body:has(.print-workshop-v115) #printPreview[data-count]{
  display:block!important;max-width:none!important;margin:0!important;
 }
 body:has(.print-workshop-v115) #printPreview .answer-sheets{
  display:block!important;
 }
 body:has(.print-workshop-v115) #printPreview .print-puzzle{
  width:auto!important;max-width:none!important;box-shadow:none!important;
 }
}
