.studio-panel{margin-bottom:30px;background:linear-gradient(145deg,#fffdfb,#fff5f9)}
.studio-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.studio-intro h2{margin:5px 0}.studio-intro p{color:var(--muted);margin:0}.studio-intro>.tag{white-space:nowrap}
.studio-mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.studio-mode{min-height:116px;display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;gap:2px 10px;text-align:left;background:white;color:var(--ink);border:1px solid var(--line);padding:16px}.studio-mode>span{grid-row:1/3;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--pink);color:var(--rose);font:900 1.5rem Nunito,sans-serif}.studio-mode strong{font:800 1rem Nunito,sans-serif}.studio-mode small{color:var(--muted);line-height:1.35}.studio-mode.active,.studio-mode:hover{border-color:var(--rose);background:#fff8fb}.studio-mode.active{box-shadow:0 0 0 2px #a6295d22}
.studio-workspace{display:grid;grid-template-columns:245px minmax(0,1fr);gap:25px;align-items:start}.studio-controls{display:grid;gap:15px}.studio-actions{display:grid;gap:9px}.studio-preview{container-type:inline-size;min-width:0;background:#eee7e9;border-radius:15px;padding:16px;overflow:hidden}.studio-preview .studio-sheet{--u:calc((100cqw - 32px)/210);width:calc(210 * var(--u));height:calc(297 * var(--u));margin:auto;box-shadow:0 5px 24px #3b1b2920}.studio-old-heading{border-top:1px solid var(--line);padding-top:28px}
.studio-sheet{--u:1mm;width:calc(210 * var(--u));height:calc(297 * var(--u));padding:calc(10 * var(--u));background:white;color:#302932;font-family:Arial,sans-serif;box-sizing:border-box;display:grid;grid-template-rows:calc(25 * var(--u)) 1fr calc(8 * var(--u));overflow:hidden}.studio-sheet *{box-sizing:border-box}.studio-sheet>header{border-bottom:1px solid #b9adb3;display:grid;grid-template-columns:1fr auto;align-items:center;gap:calc(1 * var(--u));padding-bottom:calc(3 * var(--u))}.studio-sheet>header strong{font-size:calc(5 * var(--u))}.studio-sheet>header span{grid-column:1/-1;font-size:calc(3.3 * var(--u));color:#62565d}.studio-sheet>header i{grid-column:2;grid-row:1;font-style:normal;font-size:calc(3 * var(--u))}.studio-sheet>main{padding:calc(7 * var(--u)) 0;min-height:0;overflow:hidden}.studio-sheet h2{font:bold calc(5.2 * var(--u))/1.2 Arial,sans-serif;text-align:center;margin:0 0 calc(6 * var(--u))}.studio-sheet p{font-size:calc(3.6 * var(--u));text-align:center}.studio-sheet>footer{border-top:1px solid #ccc;display:flex;align-items:end;font-size:calc(2.7 * var(--u));color:#756a70}
.trace-name{font:bold calc(16 * var(--u))/1.35 Arial,sans-serif;text-align:center;letter-spacing:calc(1.3 * var(--u));color:rgba(80,70,76,var(--fade));border-bottom:1px dashed #aaa;margin:calc(3 * var(--u)) auto;width:90%}.copy-line{height:calc(23 * var(--u));border-bottom:2px solid #777;width:90%;margin:auto}.initial-letter{font:bold calc(80 * var(--u))/1 Arial,sans-serif;text-align:center;color:#eee;-webkit-text-stroke:1px #777}.letter-hunt{display:grid;grid-template-columns:repeat(4,1fr);gap:calc(5 * var(--u));margin:calc(7 * var(--u)) auto;width:80%}.letter-hunt span,.letter-boxes span{display:grid;place-items:center;border:1px dashed #777;border-radius:calc(2 * var(--u));font:bold calc(12 * var(--u))/1 Arial,sans-serif;height:calc(24 * var(--u))}.letter-hunt .target{border:2px solid #444}.name-model{font:bold calc(15 * var(--u))/1.3 Arial,sans-serif;text-align:center;letter-spacing:calc(1 * var(--u));margin:calc(10 * var(--u))}.letter-boxes{display:flex;justify-content:center;gap:calc(2 * var(--u));flex-wrap:wrap}.letter-boxes span{width:calc(20 * var(--u));height:calc(23 * var(--u))}.letter-boxes.empty{margin-top:calc(5 * var(--u))}.answer-number{width:calc(30 * var(--u));height:calc(26 * var(--u));border:2px solid #555;border-radius:calc(3 * var(--u));margin:calc(6 * var(--u)) auto}.drawing-space{height:calc(65 * var(--u));border:1px dashed #888;border-radius:calc(3 * var(--u));margin:calc(5 * var(--u))}.drawing-space.short{height:calc(35 * var(--u))}
.footprint{width:calc(18 * var(--u));height:calc(18 * var(--u));object-fit:contain}.footprint.flip{transform:scaleX(-1)}.footprint-path{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:calc(4 * var(--u));width:88%;margin:auto}.dino-goal{display:block;width:calc(58 * var(--u));height:calc(58 * var(--u));object-fit:contain;margin:calc(4 * var(--u)) auto}.dino-clue{display:block;width:calc(42 * var(--u));height:calc(42 * var(--u));object-fit:contain;margin:0 auto calc(4 * var(--u))}.dino-footprint-pair{display:flex;align-items:center;justify-content:center;gap:calc(18 * var(--u));margin:calc(8 * var(--u))}.dino-footprint-pair .dino-goal{margin:0;width:calc(68 * var(--u));height:calc(68 * var(--u))}.footprint-large{width:calc(68 * var(--u));height:calc(68 * var(--u))}.trace-paths{display:grid;gap:calc(8 * var(--u));margin-top:calc(5 * var(--u))}.trace-paths span{height:calc(10 * var(--u));border-bottom:2px dashed #888;border-radius:50%}.footprint-find{display:grid;grid-template-columns:repeat(3,1fr);gap:calc(6 * var(--u));justify-items:center}.footprint-find .footprint{width:calc(34 * var(--u));height:calc(34 * var(--u))}.count-footprints{display:grid;gap:calc(5 * var(--u))}.count-footprints>div{display:grid;grid-template-columns:1fr calc(18 * var(--u));align-items:center;border-bottom:1px dashed #aaa;padding:calc(3 * var(--u))}.count-footprints span{display:flex;gap:calc(2 * var(--u));align-items:center}.count-footprints .footprint{width:calc(14 * var(--u));height:calc(14 * var(--u))}.count-footprints i{height:calc(15 * var(--u));border:1px solid #555}
.think-picture{width:calc(27 * var(--u));height:calc(27 * var(--u));object-fit:contain}.intruder-rows{display:grid;gap:calc(7 * var(--u))}.intruder-rows>div{display:flex;justify-content:space-around;border-bottom:1px dashed #aaa;padding-bottom:calc(4 * var(--u))}.shadow-match{display:grid;grid-template-columns:1fr 1fr;gap:calc(35 * var(--u));width:75%;margin:auto}.shadow-match>div{display:grid;gap:calc(7 * var(--u));justify-items:center}.shadow{filter:grayscale(1) brightness(0)}.visual-search{display:grid;grid-template-columns:repeat(5,1fr);gap:calc(6 * var(--u));justify-items:center}.classify-boxes{display:grid;grid-template-columns:1fr 1fr;gap:calc(8 * var(--u));height:calc(105 * var(--u))}.classify-boxes>div{border:2px dashed #777;border-radius:calc(4 * var(--u));padding:calc(4 * var(--u));text-align:center}.classify-boxes strong{font-size:calc(4 * var(--u))}.classify-cutouts{display:flex;justify-content:space-around;border-top:1px dashed #777;padding-top:calc(6 * var(--u));margin-top:calc(8 * var(--u))}.studio-bn img{filter:grayscale(1)}.studio-outline img{filter:none}.studio-outline .initial-letter{color:white;-webkit-text-stroke:1.4px #333}.studio-outline *{color:#111!important}
.studio-print-document{margin:0;background:#ece7e9}.studio-print-document>.studio-sheet{margin:0 auto}.studio-print-tools{display:flex;justify-content:center;gap:10px;padding:18px}.studio-print-tools button{border:1px solid transparent;border-radius:10px;padding:13px 20px;background:#a6295d;color:white;font:700 16px Arial;cursor:pointer}.studio-print-tools .back{background:white;color:#8a214d;border-color:#d8afc0}
@media print{html,body.studio-print-document{margin:0!important;padding:0!important;background:white}.studio-print-tools{display:none!important}.studio-print-document>.studio-sheet{margin:0}.studio-sheet{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media(max-width:900px){.studio-intro{display:grid}.roster-editor{width:100%}.studio-workspace{grid-template-columns:1fr}.studio-controls{grid-template-columns:1fr 1fr}.studio-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}}
@media(max-width:620px){.studio-mode-grid{grid-template-columns:1fr}.studio-mode{min-height:90px}.roster-grid,.studio-controls{grid-template-columns:1fr}.studio-actions{grid-column:auto;grid-template-columns:1fr}.studio-preview{padding:8px}.studio-preview .studio-sheet{--u:calc((100cqw - 16px)/210)}}
.studio-simple-picker{margin:16px 0}.studio-simple-picker .field{max-width:440px}.studio-simple-picker select{font-size:1.1rem;min-height:48px}.worksheet-shape{width:calc(17.2 * var(--u));height:calc(17.2 * var(--u));flex-shrink:0}.worksheet-dots{display:flex;flex-wrap:wrap;gap:calc(3.44 * var(--u));align-items:center;max-width:calc(111.11 * var(--u))}.worksheet-dots i{display:block;width:calc(6.61 * var(--u));height:calc(6.61 * var(--u));border:2px solid #222;border-radius:50%;background:white;flex-shrink:0}.number-trace{display:flex;justify-content:space-around;font-size:calc(23.81 * var(--u));font-weight:800;color:#bcbcbc;margin:calc(5.29 * var(--u)) 0}.number-exercises,.shape-exercises{display:grid;gap:calc(7.41 * var(--u));margin:calc(5.82 * var(--u)) 0}.number-exercises>div,.shape-exercises>div{display:flex;align-items:center;gap:calc(4.76 * var(--u));min-height:calc(22.75 * var(--u));border-bottom:1px solid #bbb;padding-bottom:calc(4.76 * var(--u))}.number-exercises b,.shape-exercises i{width:calc(15.34 * var(--u));height:calc(15.34 * var(--u));border:1.5px solid #222;margin-left:auto;flex-shrink:0}.shape-exercises i{margin-left:0}.shape-exercises strong{border-right:2px solid #555;padding-right:calc(3.97 * var(--u))}.complete-number-space{min-width:calc(26.46 * var(--u));min-height:calc(18.52 * var(--u));flex:1;border-bottom:1px dashed #555}.trace-exercises{display:grid;gap:calc(10.05 * var(--u));margin:calc(6.61 * var(--u)) 0}.trace-exercises svg{width:100%;height:calc(22.49 * var(--u))}.studio-sheet h2{line-height:1.3}.studio-sheet main>h2{margin:calc(4.23 * var(--u)) 0}.studio-sheet .drawing-space{min-height:calc(26.46 * var(--u))}

/* === CAMPOS INFANTIL FINALES === */
.studio-sheet{
  --u:1mm;
  width:calc(210 * var(--u));
  height:calc(297 * var(--u));
  padding:calc(8 * var(--u));
  background:white;
  color:#302932;
  font-family:Arial,sans-serif;
  box-sizing:border-box;
  display:grid;
  grid-template-rows:calc(24 * var(--u)) calc(19 * var(--u)) minmax(0,1fr) calc(24 * var(--u));
  gap:calc(2 * var(--u));
  overflow:hidden;
}
.studio-sheet *{box-sizing:border-box}
.studio-student-name{
  width:100%;
  border:1.5px solid #51454f;
  border-radius:calc(3 * var(--u));
  display:grid;
  grid-template-columns:auto calc(17 * var(--u)) minmax(0,1fr);
  align-items:center;
  gap:calc(3 * var(--u));
  padding:0 calc(5 * var(--u));
}
.studio-student-name strong,.studio-date-field strong{font:bold calc(4.4 * var(--u))/1 Arial,sans-serif}
.studio-start-hand{width:calc(17 * var(--u));height:calc(17 * var(--u));object-fit:contain}
.studio-student-name span,.studio-date-field span{height:calc(13 * var(--u));border-bottom:1px solid #8b8087}
.studio-sheet>header{border-bottom:1px solid #b9adb3;display:grid;align-content:center;gap:calc(1 * var(--u));padding-bottom:calc(1.5 * var(--u))}
.studio-sheet>header strong{font-size:calc(4.7 * var(--u))}
.studio-sheet>header span{font-size:calc(3 * var(--u));color:#62565d}
.studio-sheet>main{padding:calc(2 * var(--u)) 0;min-height:0;overflow:hidden}
.studio-sheet h2{font:bold calc(4.8 * var(--u))/1.15 Arial,sans-serif;text-align:center;margin:0 0 calc(4 * var(--u))}
.studio-sheet p{font-size:calc(3.4 * var(--u));text-align:center}
.studio-student-footer{width:100%;display:grid;grid-template-columns:7fr 3fr;border:1.5px solid #51454f;border-radius:calc(3 * var(--u));overflow:hidden}
.studio-date-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:calc(3 * var(--u));padding:0 calc(5 * var(--u));border-right:1.5px solid #51454f}
.studio-brand{display:flex;align-items:center;justify-content:center;gap:calc(2 * var(--u));font:bold calc(3.3 * var(--u))/1.05 Arial,sans-serif;text-align:center;padding:calc(1 * var(--u))}
.studio-brand img{width:calc(17 * var(--u));height:calc(17 * var(--u));object-fit:contain}
.studio-sheet main>h2{margin:calc(2 * var(--u)) 0}
.studio-sheet .drawing-space{min-height:calc(18 * var(--u));height:auto;margin:calc(2.5 * var(--u))}
.studio-sheet .number-trace{font-size:calc(19 * var(--u));margin:calc(2.5 * var(--u)) 0}
.studio-sheet .number-exercises,.studio-sheet .shape-exercises{gap:calc(4.2 * var(--u));margin:calc(3 * var(--u)) 0}
.studio-sheet .number-exercises>div,.studio-sheet .shape-exercises>div{min-height:calc(20 * var(--u));padding-bottom:calc(3 * var(--u))}
.studio-sheet .letter-boxes.empty{margin-top:calc(2 * var(--u))}
.studio-sheet .letter-boxes span{height:calc(19 * var(--u))}

/* === CAMPOS ALUMNO V3 UNIFICADOS === */
.studio-sheet{
  padding:calc(5 * var(--u))!important;display:grid!important;
  grid-template-rows:calc(17 * var(--u)) calc(25 * var(--u)) minmax(0,1fr) calc(25 * var(--u))!important;
  gap:calc(2 * var(--u))!important;
}
.studio-sheet>header{
  grid-row:1!important;min-height:0;margin:0!important;padding:0 0 calc(1.5 * var(--u))!important;
  display:grid!important;grid-template-columns:1fr!important;align-content:center!important;gap:calc(.7 * var(--u))!important;
  border-bottom:1px solid #b9adb3!important;
}
.studio-sheet>header strong{font-size:calc(4.5 * var(--u))!important;line-height:1}
.studio-sheet>header span{grid-column:1!important;font-size:calc(2.9 * var(--u))!important;line-height:1.1}
.studio-student-name{
  grid-row:2!important;width:100%!important;border:1.5px solid #51454f!important;border-radius:calc(3 * var(--u))!important;
  display:grid!important;grid-template-columns:auto calc(18 * var(--u)) minmax(0,1fr)!important;align-items:center!important;
  gap:calc(3 * var(--u))!important;padding:0 calc(5 * var(--u))!important;
}
.studio-student-name strong,.studio-date-field strong{font:bold calc(4.6 * var(--u))/1 Arial,sans-serif!important}
.studio-start-hand{width:calc(18 * var(--u))!important;height:calc(18 * var(--u))!important;object-fit:contain}
.studio-student-name span,.studio-date-field span{height:calc(14 * var(--u))!important;border-bottom:1px solid #8b8087}
.studio-sheet>main{grid-row:3!important;width:100%!important;min-width:0!important;min-height:0!important;padding:calc(2 * var(--u)) 0!important;overflow:hidden!important}
.studio-date-full{
  grid-row:4!important;width:100%!important;border:1.5px solid #51454f!important;border-radius:calc(3 * var(--u))!important;
  display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;
  gap:calc(3 * var(--u))!important;padding:0 calc(5 * var(--u))!important;
}
.studio-student-footer,.studio-brand{display:none!important}
.studio-sheet .drawing-space{width:100%!important;max-width:none!important;margin:calc(3 * var(--u)) 0!important}
.studio-sheet .letter-boxes.empty{
  width:100%!important;max-width:none!important;margin:calc(3 * var(--u)) 0!important;padding:0!important;border:0!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:calc(5 * var(--u))!important;
}
.studio-sheet .letter-boxes.empty span{width:100%!important;height:calc(27 * var(--u))!important}
.studio-sheet .letter-hunt,.studio-sheet .copy-line,.studio-sheet .trace-name,.studio-sheet .footprint-path,
.studio-sheet .shape-exercises,.studio-sheet .number-exercises,.studio-sheet .trace-exercises{
  width:100%!important;max-width:none!important;
}

/* === APROVECHAR TODO EL ALTO V4 === */
.studio-sheet>main{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-evenly!important;
  align-items:stretch!important;
  gap:calc(2.5 * var(--u))!important;
  overflow:hidden!important;
}
.studio-sheet>main>h2,
.studio-sheet>main>p{
  flex:0 0 auto!important;
  margin:calc(1.2 * var(--u)) 0!important;
}
.studio-sheet>main>.number-trace,
.studio-sheet>main>.number-exercises,
.studio-sheet>main>.shape-exercises,
.studio-sheet>main>.trace-exercises,
.studio-sheet>main>.letter-hunt,
.studio-sheet>main>.letter-boxes,
.studio-sheet>main>.drawing-space,
.studio-sheet>main>.footprint-path,
.studio-sheet>main>.dino-footprint-pair,
.studio-sheet>main>.footprint-find,
.studio-sheet>main>.count-footprints,
.studio-sheet>main>.intruder-rows,
.studio-sheet>main>.shadow-match,
.studio-sheet>main>.visual-search,
.studio-sheet>main>.classify-boxes,
.studio-sheet>main>.classify-cutouts{
  flex:1 1 0!important;
  min-height:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.studio-sheet .number-exercises,
.studio-sheet .shape-exercises,
.studio-sheet .trace-exercises,
.studio-sheet .count-footprints,
.studio-sheet .intruder-rows{
  align-content:space-evenly!important;
}
.studio-sheet .number-exercises>div,
.studio-sheet .shape-exercises>div,
.studio-sheet .count-footprints>div{
  min-height:0!important;
  height:auto!important;
}
.studio-sheet .trace-exercises{
  display:grid!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
}
.studio-sheet .trace-exercises svg{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
.studio-sheet .drawing-space{
  height:auto!important;
  min-height:calc(34 * var(--u))!important;
}
.studio-sheet .letter-boxes.empty{
  align-items:stretch!important;
}
.studio-sheet .letter-boxes.empty span{
  height:100%!important;
  min-height:calc(28 * var(--u))!important;
}
.studio-sheet .trace-name,
.studio-sheet .copy-line,
.studio-sheet .name-model,
.studio-sheet .initial-letter{
  flex:0 1 auto!important;
  width:100%!important;
  max-width:none!important;
  margin:calc(1.5 * var(--u)) 0!important;
}

/* === GENERADOR POLICUBOS V1 === */
.poly-main{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:calc(2 * var(--u))!important;
  padding:0!important;
  overflow:hidden!important;
}
.poly-title{text-align:center;flex:none!important;margin:0!important}
.poly-title h2{margin:0!important;font:bold calc(5.1 * var(--u))/1.05 Arial,sans-serif!important}
.poly-title p{margin:calc(1 * var(--u)) 0 0!important;font-size:calc(3 * var(--u))!important;line-height:1.15!important}
.poly-grid{min-height:0;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:calc(3 * var(--u))}
.poly-count-4 .poly-grid{grid-template-rows:repeat(2,minmax(0,1fr))}
.poly-count-6 .poly-grid{grid-template-rows:repeat(3,minmax(0,1fr))}
.poly-count-8 .poly-grid{grid-template-rows:repeat(4,minmax(0,1fr));gap:calc(2 * var(--u))}
.poly-card{
  position:relative;min-width:0;min-height:0;overflow:hidden;border:1.3px solid #8f8188;
  border-radius:calc(3 * var(--u));background:#fff;padding:calc(4 * var(--u));
}
.poly-card-number{
  position:absolute;top:calc(2 * var(--u));left:calc(2 * var(--u));width:calc(8 * var(--u));height:calc(8 * var(--u));
  border-radius:50%;display:grid;place-items:center;background:#f7d9e7;font:bold calc(3.7 * var(--u))/1 Arial,sans-serif;
}
.poly-cube{
  --cube-size:calc(15 * var(--u));position:relative;display:inline-block;width:var(--cube-size);
  height:calc(var(--cube-size) * .82);flex:0 0 auto;background:var(--cube-color);border:1.4px solid #202020;
  border-radius:calc(.5 * var(--u));
}
.poly-cube::before{
  content:"";position:absolute;left:27%;top:-21%;width:46%;height:22%;background:var(--cube-color);
  border:1.4px solid #202020;border-bottom:0;border-radius:calc(.4 * var(--u)) calc(.4 * var(--u)) 0 0;
}
.poly-cube::after{
  content:"";position:absolute;left:31%;top:23%;width:34%;aspect-ratio:1;border:1.4px solid #202020;
  border-radius:50%;background:transparent;
}
.studio-bn .poly-cube,.studio-outline .poly-cube{--cube-color:#fff!important}
.poly-tower-card{display:grid;align-items:center;padding-top:calc(11 * var(--u))}
.poly-tower-targets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:calc(3 * var(--u));align-items:center;justify-items:center}
.poly-tower-target{display:grid;justify-items:center;align-content:center;gap:calc(2 * var(--u))}
.poly-tower-target strong{font:bold calc(7 * var(--u))/1 Arial,sans-serif}
.poly-op-card{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:calc(3 * var(--u));align-items:center;padding-top:calc(11 * var(--u))}
.poly-op-visual{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:calc(3 * var(--u))}
.poly-op-visual>b,.poly-rest-visual>b{font:bold calc(7 * var(--u))/1 Arial,sans-serif}
.poly-group{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:calc(1.2 * var(--u));min-width:0}
.poly-rest-visual{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:calc(3 * var(--u))}
.poly-rest-visual>div{display:flex;align-items:center;justify-content:center}
.poly-equation{display:grid;grid-template-columns:1fr auto 1fr auto 1.2fr;align-items:center;gap:calc(2 * var(--u))}
.poly-equation b{font:bold calc(6.5 * var(--u))/1 Arial,sans-serif}
.poly-equation i{display:block;height:calc(14 * var(--u));border:1.6px solid #777;border-radius:calc(2 * var(--u));background:#fff}
.poly-equation i.result{border-width:2px}
.poly-count-4 .poly-cube{--cube-size:calc(18 * var(--u))}
.poly-count-4 .poly-tower-target strong{font-size:calc(8 * var(--u))}
.poly-count-4 .poly-card{padding:calc(5 * var(--u));padding-top:calc(12 * var(--u))}
.poly-count-4 .poly-equation i{height:calc(17 * var(--u))}
.poly-count-6 .poly-cube{--cube-size:calc(14 * var(--u))}
.poly-count-6 .poly-card{padding:calc(3.5 * var(--u));padding-top:calc(10 * var(--u))}
.poly-count-6 .poly-tower-target strong{font-size:calc(6.5 * var(--u))}
.poly-count-6 .poly-equation i{height:calc(12 * var(--u))}
.poly-count-8 .poly-title h2{font-size:calc(4.4 * var(--u))!important}
.poly-count-8 .poly-title p{font-size:calc(2.55 * var(--u))!important}
.poly-count-8 .poly-cube{--cube-size:calc(11 * var(--u))}
.poly-count-8 .poly-card{padding:calc(2.5 * var(--u));padding-top:calc(8.5 * var(--u))}
.poly-count-8 .poly-card-number{width:calc(6.5 * var(--u));height:calc(6.5 * var(--u));font-size:calc(3 * var(--u))}
.poly-count-8 .poly-tower-targets{gap:calc(1.5 * var(--u))}
.poly-count-8 .poly-tower-target{gap:calc(1 * var(--u))}
.poly-count-8 .poly-tower-target strong{font-size:calc(5 * var(--u))}
.poly-count-8 .poly-op-visual,.poly-count-8 .poly-rest-visual{gap:calc(1.5 * var(--u))}
.poly-count-8 .poly-group{gap:calc(.7 * var(--u))}
.poly-count-8 .poly-equation{gap:calc(1.2 * var(--u))}
.poly-count-8 .poly-equation i{height:calc(9 * var(--u))}
.poly-count-8 .poly-equation b,.poly-count-8 .poly-op-visual>b,.poly-count-8 .poly-rest-visual>b{font-size:calc(4.8 * var(--u))}

/* === POLICUBOS V2: MAS ESPACIO Y OPERACIONES HORIZONTALES === */
.poly-main{
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:calc(1.2 * var(--u))!important;
}
.poly-title{margin:0!important;padding:0!important}
.poly-title h2{margin:0!important;font-size:calc(4.2 * var(--u))!important;line-height:1!important}
.poly-title p{margin:calc(.6 * var(--u)) 0 0!important;font-size:calc(2.6 * var(--u))!important;line-height:1.08!important}

.poly-torres .poly-grid{height:100%!important;align-self:stretch!important}
.poly-torres .poly-card{padding-top:calc(8 * var(--u))!important}
.poly-torres.poly-count-4 .poly-card{padding-top:calc(9 * var(--u))!important}
.poly-torres.poly-count-6 .poly-card{padding-top:calc(7 * var(--u))!important}
.poly-torres.poly-count-8 .poly-card{padding-top:calc(6 * var(--u))!important}

.poly-op-card{display:block!important;padding-top:calc(10 * var(--u))!important}
.poly-math-layout{
  width:100%;height:100%;min-height:0;display:grid;
  grid-template-columns:minmax(0,1fr) calc(8 * var(--u)) minmax(0,1fr) calc(7 * var(--u)) minmax(calc(16 * var(--u)),.72fr);
  gap:calc(1.6 * var(--u));align-items:stretch;
}
.poly-operand,.poly-result-column{
  min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;
  align-items:end;justify-items:stretch;gap:calc(2 * var(--u));
}
.poly-operand .poly-group{
  width:100%;height:100%;min-height:0;align-content:center;justify-content:center;align-self:stretch;
}
.poly-number-box,.poly-result-box{
  display:block;width:100%;height:calc(15 * var(--u));box-sizing:border-box;
  border:1.6px solid #777;border-radius:calc(2 * var(--u));background:#fff;
}
.poly-result-box{width:82%;justify-self:center;border-width:2px}
.poly-result-spacer{display:block;min-height:0}
.poly-math-sign,.poly-math-equals{
  align-self:end;justify-self:center;margin-bottom:calc(3.7 * var(--u));
  font:bold calc(7 * var(--u))/1 Arial,sans-serif;
}
.poly-math-equals{width:100%;text-align:center}

.poly-sumas.poly-count-4 .poly-math-layout,
.poly-restas.poly-count-4 .poly-math-layout{
  grid-template-columns:minmax(0,1fr) calc(9 * var(--u)) minmax(0,1fr) calc(8 * var(--u)) minmax(calc(18 * var(--u)),.72fr);
  gap:calc(2.2 * var(--u));
}
.poly-sumas.poly-count-4 .poly-number-box,
.poly-restas.poly-count-4 .poly-number-box,
.poly-sumas.poly-count-4 .poly-result-box,
.poly-restas.poly-count-4 .poly-result-box{height:calc(18 * var(--u))}

.poly-sumas.poly-count-6 .poly-math-layout,
.poly-restas.poly-count-6 .poly-math-layout{gap:calc(1.5 * var(--u))}
.poly-sumas.poly-count-6 .poly-number-box,
.poly-restas.poly-count-6 .poly-number-box,
.poly-sumas.poly-count-6 .poly-result-box,
.poly-restas.poly-count-6 .poly-result-box{height:calc(13 * var(--u))}

/* 8 actividades: una sola columna de franjas horizontales */
.poly-sumas.poly-count-8 .poly-grid,
.poly-restas.poly-count-8 .poly-grid{
  grid-template-columns:1fr!important;
  grid-template-rows:repeat(8,minmax(0,1fr))!important;
  gap:calc(1.4 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-card,
.poly-restas.poly-count-8 .poly-card{
  padding:calc(1.5 * var(--u)) calc(3 * var(--u))!important;
  padding-left:calc(8.5 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-card-number,
.poly-restas.poly-count-8 .poly-card-number{
  top:50%!important;transform:translateY(-50%);
  left:calc(1.2 * var(--u))!important;width:calc(6 * var(--u))!important;height:calc(6 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-math-layout,
.poly-restas.poly-count-8 .poly-math-layout{
  grid-template-columns:minmax(0,1fr) calc(6 * var(--u)) minmax(0,1fr) calc(5.5 * var(--u)) minmax(calc(13 * var(--u)),.58fr);
  gap:calc(1 * var(--u));align-items:center;
}
.poly-sumas.poly-count-8 .poly-operand,
.poly-restas.poly-count-8 .poly-operand,
.poly-sumas.poly-count-8 .poly-result-column,
.poly-restas.poly-count-8 .poly-result-column{
  grid-template-rows:minmax(0,1fr) calc(8 * var(--u));gap:calc(.5 * var(--u));
}
.poly-sumas.poly-count-8 .poly-cube,
.poly-restas.poly-count-8 .poly-cube{--cube-size:calc(9.5 * var(--u))!important}
.poly-sumas.poly-count-8 .poly-group,
.poly-restas.poly-count-8 .poly-group{flex-wrap:nowrap!important;gap:calc(.45 * var(--u))!important}
.poly-sumas.poly-count-8 .poly-number-box,
.poly-restas.poly-count-8 .poly-number-box,
.poly-sumas.poly-count-8 .poly-result-box,
.poly-restas.poly-count-8 .poly-result-box{
  height:calc(8 * var(--u))!important;border-radius:calc(1.3 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-result-box,
.poly-restas.poly-count-8 .poly-result-box{width:74%!important}
.poly-sumas.poly-count-8 .poly-math-sign,
.poly-restas.poly-count-8 .poly-math-sign,
.poly-sumas.poly-count-8 .poly-math-equals,
.poly-restas.poly-count-8 .poly-math-equals{
  align-self:end!important;margin-bottom:calc(1.2 * var(--u))!important;font-size:calc(4.7 * var(--u))!important;
}


/* === POLICUBOS V3 · SUMAS Y RESTAS SIEMPRE EN TARJETAS VERTICALES === */

/* Reducimos un poco el bloque de título para ganar zona útil arriba y abajo. */
.poly-sumas .poly-main,
.poly-restas .poly-main{
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:calc(.9 * var(--u))!important;
}
.poly-sumas .poly-title,
.poly-restas .poly-title{
  margin:0!important;
  padding:0!important;
}
.poly-sumas .poly-title h2,
.poly-restas .poly-title h2{
  margin:0!important;
  font-size:calc(4.1 * var(--u))!important;
  line-height:1!important;
}
.poly-sumas .poly-title p,
.poly-restas .poly-title p{
  margin:calc(.45 * var(--u)) 0 0!important;
  font-size:calc(2.45 * var(--u))!important;
  line-height:1.05!important;
}

/* Todas las composiciones quedan en rejilla de tarjetas verticales. */
.poly-sumas .poly-grid,
.poly-restas .poly-grid{
  width:100%!important;
  height:100%!important;
  align-self:stretch!important;
  align-content:stretch!important;
  justify-content:stretch!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:calc(1.5 * var(--u)) calc(1.8 * var(--u))!important;
}
.poly-sumas.poly-count-4 .poly-grid,
.poly-restas.poly-count-4 .poly-grid{
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
}
.poly-sumas.poly-count-6 .poly-grid,
.poly-restas.poly-count-6 .poly-grid{
  grid-template-rows:repeat(3,minmax(0,1fr))!important;
}
.poly-sumas.poly-count-8 .poly-grid,
.poly-restas.poly-count-8 .poly-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  gap:calc(1.25 * var(--u)) calc(1.55 * var(--u))!important;
}

/* Más alto útil dentro de la tarjeta y menos desperdicio. */
.poly-sumas .poly-card,
.poly-restas .poly-card{
  display:block!important;
  padding:calc(8.2 * var(--u)) calc(2.8 * var(--u)) calc(2.2 * var(--u))!important;
}
.poly-sumas.poly-count-4 .poly-card,
.poly-restas.poly-count-4 .poly-card{
  padding:calc(9 * var(--u)) calc(3 * var(--u)) calc(2.5 * var(--u))!important;
}
.poly-sumas.poly-count-6 .poly-card,
.poly-restas.poly-count-6 .poly-card{
  padding:calc(8 * var(--u)) calc(2.8 * var(--u)) calc(2.2 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-card,
.poly-restas.poly-count-8 .poly-card{
  padding:calc(7.2 * var(--u)) calc(2.4 * var(--u)) calc(1.8 * var(--u))!important;
}

/* El número vuelve siempre a su sitio superior izquierdo (quitamos la versión horizontal). */
.poly-sumas.poly-count-8 .poly-card-number,
.poly-restas.poly-count-8 .poly-card-number{
  top:calc(1.2 * var(--u))!important;
  left:calc(1.2 * var(--u))!important;
  transform:none!important;
  width:calc(6 * var(--u))!important;
  height:calc(6 * var(--u))!important;
}

/* Estructura vertical de operaciones: cubos arriba de su número, resultado estrecho. */
.poly-sumas .poly-math-layout,
.poly-restas .poly-math-layout{
  width:100%;
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) calc(7.6 * var(--u)) minmax(0,1fr) calc(6.2 * var(--u)) minmax(calc(14 * var(--u)), .64fr)!important;
  gap:calc(1.1 * var(--u));
  align-items:stretch!important;
}
.poly-sumas .poly-operand,
.poly-restas .poly-operand,
.poly-sumas .poly-result-column,
.poly-restas .poly-result-column{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  align-items:end;
  gap:calc(1.05 * var(--u))!important;
}
.poly-sumas .poly-operand .poly-group,
.poly-restas .poly-operand .poly-group{
  width:100%;
  height:100%;
  min-height:0;
  align-content:center;
  justify-content:center;
  align-self:stretch;
}
.poly-sumas .poly-number-box,
.poly-restas .poly-number-box,
.poly-sumas .poly-result-box,
.poly-restas .poly-result-box{
  height:calc(12 * var(--u))!important;
}
.poly-sumas .poly-result-box,
.poly-restas .poly-result-box{
  width:72%!important;
  justify-self:center;
}
.poly-sumas .poly-math-sign,
.poly-restas .poly-math-sign,
.poly-sumas .poly-math-equals,
.poly-restas .poly-math-equals{
  align-self:end!important;
  justify-self:center!important;
  margin-bottom:calc(2.2 * var(--u))!important;
  font-size:calc(5.6 * var(--u))!important;
}

/* 4 tarjetas: muy amplias. */
.poly-sumas.poly-count-4 .poly-math-layout,
.poly-restas.poly-count-4 .poly-math-layout{
  grid-template-columns:minmax(0,1fr) calc(8.2 * var(--u)) minmax(0,1fr) calc(6.8 * var(--u)) minmax(calc(16 * var(--u)), .67fr)!important;
  gap:calc(1.35 * var(--u))!important;
}
.poly-sumas.poly-count-4 .poly-number-box,
.poly-restas.poly-count-4 .poly-number-box,
.poly-sumas.poly-count-4 .poly-result-box,
.poly-restas.poly-count-4 .poly-result-box{
  height:calc(14 * var(--u))!important;
}

/* 6 tarjetas: equilibrio. */
.poly-sumas.poly-count-6 .poly-math-layout,
.poly-restas.poly-count-6 .poly-math-layout{
  grid-template-columns:minmax(0,1fr) calc(7.6 * var(--u)) minmax(0,1fr) calc(6.2 * var(--u)) minmax(calc(14 * var(--u)), .64fr)!important;
  gap:calc(1.05 * var(--u))!important;
}
.poly-sumas.poly-count-6 .poly-number-box,
.poly-restas.poly-count-6 .poly-number-box,
.poly-sumas.poly-count-6 .poly-result-box,
.poly-restas.poly-count-6 .poly-result-box{
  height:calc(11.5 * var(--u))!important;
}

/* 8 tarjetas: siguen verticales, pero ligeramente más compactas. */
.poly-sumas.poly-count-8 .poly-math-layout,
.poly-restas.poly-count-8 .poly-math-layout{
  grid-template-columns:minmax(0,1fr) calc(6.4 * var(--u)) minmax(0,1fr) calc(5.4 * var(--u)) minmax(calc(12 * var(--u)), .58fr)!important;
  gap:calc(.8 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-operand,
.poly-restas.poly-count-8 .poly-operand,
.poly-sumas.poly-count-8 .poly-result-column,
.poly-restas.poly-count-8 .poly-result-column{
  gap:calc(.7 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-group,
.poly-restas.poly-count-8 .poly-group{
  gap:calc(.35 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-cube,
.poly-restas.poly-count-8 .poly-cube{
  --cube-size:calc(8.6 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-number-box,
.poly-restas.poly-count-8 .poly-number-box,
.poly-sumas.poly-count-8 .poly-result-box,
.poly-restas.poly-count-8 .poly-result-box{
  height:calc(8.8 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-math-sign,
.poly-restas.poly-count-8 .poly-math-sign,
.poly-sumas.poly-count-8 .poly-math-equals,
.poly-restas.poly-count-8 .poly-math-equals{
  margin-bottom:calc(1.5 * var(--u))!important;
  font-size:calc(4.6 * var(--u))!important;
}


/* === POLICUBOS V4: TODAS LAS SUMAS Y RESTAS EN HORIZONTAL === */
.poly-sumas .poly-grid,
.poly-restas .poly-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  width:100%!important;
  height:100%!important;
  align-content:stretch!important;
  gap:calc(1.5 * var(--u))!important;
}
.poly-sumas.poly-count-4 .poly-grid,
.poly-restas.poly-count-4 .poly-grid{grid-template-rows:repeat(4,minmax(0,1fr))!important}
.poly-sumas.poly-count-6 .poly-grid,
.poly-restas.poly-count-6 .poly-grid{grid-template-rows:repeat(6,minmax(0,1fr))!important;gap:calc(1.3 * var(--u))!important}
.poly-sumas.poly-count-8 .poly-grid,
.poly-restas.poly-count-8 .poly-grid{grid-template-rows:repeat(8,minmax(0,1fr))!important;gap:calc(1.1 * var(--u))!important}

.poly-sumas .poly-title,
.poly-restas .poly-title{margin:0!important;padding:0!important}
.poly-sumas .poly-title h2,
.poly-restas .poly-title h2{margin:0!important;font-size:calc(4 * var(--u))!important;line-height:1!important}
.poly-sumas .poly-title p,
.poly-restas .poly-title p{margin:calc(.35 * var(--u)) 0 0!important;font-size:calc(2.35 * var(--u))!important;line-height:1.05!important}

.poly-sumas .poly-card,
.poly-restas .poly-card{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:calc(1.8 * var(--u)) calc(3 * var(--u)) calc(1.8 * var(--u)) calc(10 * var(--u))!important;
}
.poly-sumas .poly-card-number,
.poly-restas .poly-card-number{
  top:50%!important;
  left:calc(1.5 * var(--u))!important;
  transform:translateY(-50%)!important;
  width:calc(6.5 * var(--u))!important;
  height:calc(6.5 * var(--u))!important;
  font-size:calc(3 * var(--u))!important;
}

.poly-sumas .poly-math-layout,
.poly-restas .poly-math-layout{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) calc(7 * var(--u)) minmax(0,1fr) calc(6 * var(--u)) minmax(calc(14 * var(--u)),.55fr)!important;
  gap:calc(1.2 * var(--u))!important;
  align-items:stretch!important;
}
.poly-sumas .poly-operand,
.poly-restas .poly-operand,
.poly-sumas .poly-result-column,
.poly-restas .poly-result-column{
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  min-width:0!important;
  min-height:0!important;
  align-items:end!important;
  gap:calc(.7 * var(--u))!important;
}
.poly-sumas .poly-operand .poly-group,
.poly-restas .poly-operand .poly-group{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:center!important;
  align-items:center!important;
  align-content:center!important;
  gap:calc(.45 * var(--u))!important;
}
.poly-sumas .poly-number-box,
.poly-restas .poly-number-box,
.poly-sumas .poly-result-box,
.poly-restas .poly-result-box{display:block!important;height:calc(8.5 * var(--u))!important;border-radius:calc(1.4 * var(--u))!important}
.poly-sumas .poly-result-box,
.poly-restas .poly-result-box{width:72%!important;justify-self:center!important}
.poly-sumas .poly-math-sign,
.poly-restas .poly-math-sign,
.poly-sumas .poly-math-equals,
.poly-restas .poly-math-equals{
  align-self:end!important;
  justify-self:center!important;
  margin-bottom:calc(1.55 * var(--u))!important;
  font-size:calc(4.8 * var(--u))!important;
  line-height:1!important;
}

.poly-sumas.poly-count-4 .poly-card,
.poly-restas.poly-count-4 .poly-card{padding-top:calc(2.6 * var(--u))!important;padding-bottom:calc(2.6 * var(--u))!important}
.poly-sumas.poly-count-4 .poly-cube,
.poly-restas.poly-count-4 .poly-cube{--cube-size:calc(13.5 * var(--u))!important}
.poly-sumas.poly-count-4 .poly-number-box,
.poly-restas.poly-count-4 .poly-number-box,
.poly-sumas.poly-count-4 .poly-result-box,
.poly-restas.poly-count-4 .poly-result-box{height:calc(11 * var(--u))!important}
.poly-sumas.poly-count-4 .poly-math-sign,
.poly-restas.poly-count-4 .poly-math-sign,
.poly-sumas.poly-count-4 .poly-math-equals,
.poly-restas.poly-count-4 .poly-math-equals{margin-bottom:calc(2.2 * var(--u))!important;font-size:calc(5.5 * var(--u))!important}

.poly-sumas.poly-count-6 .poly-cube,
.poly-restas.poly-count-6 .poly-cube{--cube-size:calc(11.2 * var(--u))!important}
.poly-sumas.poly-count-6 .poly-number-box,
.poly-restas.poly-count-6 .poly-number-box,
.poly-sumas.poly-count-6 .poly-result-box,
.poly-restas.poly-count-6 .poly-result-box{height:calc(9.5 * var(--u))!important}

.poly-sumas.poly-count-8 .poly-card,
.poly-restas.poly-count-8 .poly-card{padding-top:calc(1.2 * var(--u))!important;padding-bottom:calc(1.2 * var(--u))!important}
.poly-sumas.poly-count-8 .poly-cube,
.poly-restas.poly-count-8 .poly-cube{--cube-size:calc(8.8 * var(--u))!important}
.poly-sumas.poly-count-8 .poly-number-box,
.poly-restas.poly-count-8 .poly-number-box,
.poly-sumas.poly-count-8 .poly-result-box,
.poly-restas.poly-count-8 .poly-result-box{height:calc(7.3 * var(--u))!important}
.poly-sumas.poly-count-8 .poly-math-sign,
.poly-restas.poly-count-8 .poly-math-sign,
.poly-sumas.poly-count-8 .poly-math-equals,
.poly-restas.poly-count-8 .poly-math-equals{margin-bottom:calc(1.15 * var(--u))!important;font-size:calc(4.2 * var(--u))!important}

.poly-sumas.poly-count-4 .poly-grid,
.poly-sumas.poly-count-6 .poly-grid,
.poly-sumas.poly-count-8 .poly-grid,
.poly-restas.poly-count-4 .poly-grid,
.poly-restas.poly-count-6 .poly-grid,
.poly-restas.poly-count-8 .poly-grid{grid-template-columns:1fr!important}


/* === POLICUBOS V5: EVITAR SOLAPE DEL NUMERO DE ACTIVIDAD === */
/* Reservamos una franja real para el número de actividad. Así, incluso con 5 policubos,
   el primer grupo nunca puede invadir el círculo 1/2/3/4... */
.poly-sumas .poly-card,
.poly-restas .poly-card{
  padding-left:calc(13.5 * var(--u))!important;
}
.poly-sumas .poly-card-number,
.poly-restas .poly-card-number{
  left:calc(2 * var(--u))!important;
  width:calc(5.8 * var(--u))!important;
  height:calc(5.8 * var(--u))!important;
  z-index:3!important;
}
.poly-sumas .poly-operand .poly-group,
.poly-restas .poly-operand .poly-group{
  box-sizing:border-box!important;
  padding-inline:calc(.4 * var(--u))!important;
}

/* Con 8 ganamos un poco de ancho sin volver a acercarnos al número. */
.poly-sumas.poly-count-8 .poly-card,
.poly-restas.poly-count-8 .poly-card{
  padding-left:calc(12.5 * var(--u))!important;
}
.poly-sumas.poly-count-8 .poly-card-number,
.poly-restas.poly-count-8 .poly-card-number{
  left:calc(1.8 * var(--u))!important;
  width:calc(5.4 * var(--u))!important;
  height:calc(5.4 * var(--u))!important;
}

/* === IMPRESION A4 CENTRADA V2 === */

/* Vista de "Preparar impresión": centrada en la ventana, sin recortar FECHA. */
body.studio-print-document{
  width:100%!important;
  min-width:100%!important;
  height:auto!important;
  min-height:100vh!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  background:#ece7e9!important;
}
.studio-print-document>.studio-print-tools{
  width:100%!important;
  flex:0 0 auto!important;
}
.studio-print-document>.studio-sheet{
  flex:0 0 auto!important;
  width:210mm!important;
  min-width:210mm!important;
  max-width:210mm!important;
  height:auto!important;
  min-height:297mm!important;
  max-height:none!important;
  margin:0 auto 28px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

/* PDF / impresora */
@media print{
  @page{
    size:A4 portrait;
    margin:0;
  }

  html{
    width:210mm!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }

  body.studio-print-document{
    display:block!important;
    width:210mm!important;
    min-width:210mm!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    overflow:visible!important;
  }

  .studio-print-tools{
    display:none!important;
  }

  /*
    Se imprime la ficha nativa de 210×297 mm al 94%.
    Así caben NOMBRE + actividad + FECHA en una única página,
    y al reducir ancho y alto a la vez quedan márgenes simétricos.
  */
  .studio-print-document>.studio-sheet{
    width:210mm!important;
    min-width:210mm!important;
    max-width:210mm!important;
    height:auto!important;
    min-height:297mm!important;
    max-height:none!important;

    zoom:.94!important;

    margin:4mm auto 0!important;
    padding:10mm!important;
    box-sizing:border-box!important;
    overflow:visible!important;

    break-inside:avoid!important;
    page-break-inside:avoid!important;
    break-after:avoid!important;
    page-break-after:avoid!important;

    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }

  .studio-print-document>.studio-sheet>*,
  .studio-print-document>.studio-sheet main,
  .studio-print-document .poly-main,
  .studio-print-document .poly-grid,
  .studio-print-document .poly-card{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  /* Nunca dejamos que FECHA fuerce un salto propio. */
  .studio-print-document .studio-student-date,
  .studio-print-document [class*="student-date"],
  .studio-print-document [class*="date-field"],
  .studio-print-document footer{
    break-before:avoid!important;
    page-break-before:avoid!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
}


/* === FICHAS CON PROPÓSITO V6 · COLOR + LENGUAJE + VOCABULARIO + DINOS === */

/* Color real en elementos que antes se quedaban negros. */
.studio-color .worksheet-dots i{background:var(--dot-color)!important;border-color:#3d3a3c!important}
.studio-bn .worksheet-dots i,
.studio-outline .worksheet-dots i{background:#fff!important;border-color:#222!important}
.studio-color .name-model{color:#a62d61}
.studio-color .initial-letter{color:#f6b4ca;-webkit-text-stroke:1.2px #9a315c}
.studio-color .letter-hunt span,
.studio-color .letter-boxes span{background:#fff7fa;border-color:#d58aa8}
.studio-color .letter-hunt span:nth-child(3n+2),
.studio-color .letter-boxes span:nth-child(3n+2){background:#eef7ff;border-color:#82add0}
.studio-color .letter-hunt span:nth-child(3n),
.studio-color .letter-boxes span:nth-child(3n){background:#f2faef;border-color:#8dbd83}
.studio-color .letter-hunt .target{background:#ffe7f0;border-color:#a62d61}
.studio-bn .initial-letter,
.studio-outline .initial-letter{color:#fff!important;-webkit-text-stroke:1.3px #333!important}
.studio-bn .letter-hunt span,.studio-bn .letter-boxes span,
.studio-outline .letter-hunt span,.studio-outline .letter-boxes span{background:#fff!important;border-color:#555!important}
.studio-color .shape-exercises strong{border-color:#d4a0b5}
.studio-color .number-exercises>div,
.studio-color .shape-exercises>div{border-bottom-color:#d9b9c6}

/* Chips de color para vocabulario/atención. */
.vocab-color-chip{display:inline-block;width:calc(27 * var(--u));height:calc(27 * var(--u));border-radius:50%;border:2px solid #333}
.vocab-color-chip.is-color{background:var(--chip)}
.vocab-color-chip.is-outline{background:#fff}
.studio-bn .vocab-color-chip,.studio-outline .vocab-color-chip{background:#fff!important;border-color:#222!important}

/* LENGUAJE · letras y sílabas */
.language-main{min-height:0;height:100%;overflow:hidden}
.language-syllables{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:calc(2 * var(--u));padding:0!important}
.lang-syllable-row{display:grid;grid-template-columns:calc(28 * var(--u)) minmax(0,1fr);align-items:center;gap:calc(5 * var(--u));border-bottom:1px solid #d7ccd1;padding:calc(2 * var(--u)) 0;min-height:0}
.lang-source-letter{width:calc(24 * var(--u));height:calc(24 * var(--u));display:grid;place-items:center;border:2px solid #444;border-radius:50%;font:700 calc(15 * var(--u))/1 Arial,sans-serif}
.studio-color .lang-source-letter{background:#ffe8f1;border-color:#b94f79;color:#8d2858}
.lang-syllable-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:calc(1.5 * var(--u))}
.lang-syllable-options>div{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:calc(.8 * var(--u));min-width:0}
.lang-vowel{font:bold calc(7 * var(--u))/1 Arial,sans-serif}
.lang-arrow{font-size:calc(4 * var(--u));color:#777}
.lang-trace-syllable{font:bold calc(7.3 * var(--u))/1 Arial,sans-serif;color:#b7b1b4}
.lang-write-circle{display:block;width:calc(13 * var(--u));height:calc(13 * var(--u));border:1.5px solid #555;border-radius:50%}

/* LENGUAJE · contar sílabas */
.lang-count-grid{display:grid;gap:calc(2 * var(--u));align-content:stretch;padding:0!important}
.lang-count-grid.lang-count-4{grid-template-rows:repeat(4,minmax(0,1fr))}
.lang-count-grid.lang-count-6{grid-template-rows:repeat(6,minmax(0,1fr))}
.lang-count-grid.lang-count-8{grid-template-rows:repeat(8,minmax(0,1fr));gap:calc(1 * var(--u))}
.lang-count-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:calc(4 * var(--u));padding:calc(2 * var(--u)) calc(4 * var(--u)) calc(2 * var(--u)) calc(11 * var(--u));border:1px solid #cfc4c9;border-radius:calc(2.2 * var(--u))}
.lang-word-number{position:absolute;left:calc(2 * var(--u));top:50%;transform:translateY(-50%);width:calc(6 * var(--u));height:calc(6 * var(--u));display:grid;place-items:center;border-radius:50%;background:#f8dce7;font:bold calc(3 * var(--u))/1 Arial,sans-serif}
.lang-count-card>strong{font:bold calc(6 * var(--u))/1 Arial,sans-serif;letter-spacing:calc(.4 * var(--u))}
.lang-count-options{display:flex;gap:calc(2 * var(--u))}
.lang-count-options span{width:calc(12 * var(--u));height:calc(12 * var(--u));display:grid;place-items:center;border:1.5px solid #444;border-radius:50%;font:bold calc(4.2 * var(--u))/1 Arial,sans-serif}
.studio-color .lang-count-options span:nth-child(1){background:#fff0c9}
.studio-color .lang-count-options span:nth-child(2){background:#e7f4ff}
.studio-color .lang-count-options span:nth-child(3){background:#eaf7ec}
.studio-color .lang-count-options span:nth-child(4){background:#fde8f0}
.studio-bn .lang-count-options span,.studio-outline .lang-count-options span{background:#fff!important}

/* LENGUAJE · completar palabras */
.lang-word-grid{display:grid;gap:calc(2 * var(--u));align-content:stretch;padding:0!important}
.lang-word-grid.lang-count-4{grid-template-rows:repeat(4,minmax(0,1fr))}
.lang-word-grid.lang-count-6{grid-template-rows:repeat(6,minmax(0,1fr))}
.lang-word-grid.lang-count-8{grid-template-rows:repeat(8,minmax(0,1fr));gap:calc(1 * var(--u))}
.lang-word-card{position:relative;display:grid;grid-template-columns:calc(28 * var(--u)) minmax(0,1fr);align-items:center;gap:calc(5 * var(--u));padding:calc(1.5 * var(--u)) calc(3 * var(--u)) calc(1.5 * var(--u)) calc(10 * var(--u));border:1px solid #cec2c8;border-radius:calc(2.2 * var(--u));min-height:0}
.lang-word-picture{width:calc(25 * var(--u));height:calc(25 * var(--u));object-fit:contain}
.lang-word-card .lang-word-number{left:calc(1.5 * var(--u))}
.lang-word-boxes{display:flex;align-items:center;gap:calc(1.3 * var(--u));min-width:0}
.lang-word-boxes span{width:calc(14 * var(--u));height:calc(15 * var(--u));display:grid;place-items:center;border:1.6px solid #4b4548;border-radius:calc(1 * var(--u));font:bold calc(6 * var(--u))/1 Arial,sans-serif}
.lang-word-boxes .blank{background:#fff}
.studio-color .lang-word-boxes .given{background:#eaf8ef;border-color:#3b9b6b}
.studio-color .lang-word-boxes .blank{border-color:#78b99a}
.studio-bn .lang-word-boxes span,.studio-outline .lang-word-boxes span{background:#fff!important;border-color:#333!important}
.lang-count-8 .lang-word-picture{width:calc(19 * var(--u));height:calc(19 * var(--u))}
.lang-count-8.lang-word-grid .lang-word-card{grid-template-columns:calc(21 * var(--u)) minmax(0,1fr)}
.lang-count-8 .lang-word-boxes span{width:calc(11 * var(--u));height:calc(12 * var(--u));font-size:calc(4.7 * var(--u))}

/* DINOSAURIOS · une con flechas 4/6/8 */
.dino-match-main{display:grid!important;grid-template-columns:minmax(0,1fr) calc(30 * var(--u)) minmax(0,1fr);gap:calc(3 * var(--u));height:100%;padding:0!important;align-items:stretch}
.dino-match-column{display:grid;align-content:stretch;gap:calc(1.5 * var(--u));min-height:0}
.dino-match-count-4 .dino-match-column{grid-template-rows:repeat(4,minmax(0,1fr))}
.dino-match-count-6 .dino-match-column{grid-template-rows:repeat(6,minmax(0,1fr))}
.dino-match-count-8 .dino-match-column{grid-template-rows:repeat(8,minmax(0,1fr));gap:calc(.8 * var(--u))}
.dino-match-column article{position:relative;display:grid;place-items:center;min-height:0;border:1px solid #d0c4ca;border-radius:calc(2 * var(--u));padding:calc(1 * var(--u));overflow:hidden}
.dino-match-dinos article{grid-template-columns:calc(8 * var(--u)) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.dino-match-dinos article>span{grid-row:1/3;width:calc(6 * var(--u));height:calc(6 * var(--u));display:grid;place-items:center;border-radius:50%;background:#f8dce7;font:bold calc(3 * var(--u))/1 Arial,sans-serif}
.dino-match-picture{width:calc(31 * var(--u));height:calc(27 * var(--u));object-fit:contain}
.dino-match-dinos strong{font:bold calc(2.8 * var(--u))/1 Arial,sans-serif}
.dino-match-footprint{width:calc(28 * var(--u))!important;height:calc(28 * var(--u))!important}
.dino-match-channel{display:grid;place-items:center;position:relative;border-left:1px dashed #c8bbc1;border-right:1px dashed #c8bbc1}
.dino-match-channel strong{writing-mode:vertical-rl;transform:rotate(180deg);font:bold calc(2.6 * var(--u))/1 Arial,sans-serif;color:#9a8f94;letter-spacing:calc(.5 * var(--u))}
.dino-match-count-8 .dino-match-picture{width:calc(22 * var(--u));height:calc(19 * var(--u))}
.dino-match-count-8 .dino-match-footprint{width:calc(20 * var(--u))!important;height:calc(20 * var(--u))!important}

/* El modo contorno siempre vuelve a blanco + línea negra. */
.studio-outline .worksheet-shape *{fill:none!important;stroke:#222!important}
.studio-bn .worksheet-shape *{fill:none!important;stroke:#222!important}
.studio-outline .lang-source-letter,
.studio-bn .lang-source-letter{background:#fff!important;color:#111!important;border-color:#333!important}


/* === FICHAS CON PROPÓSITO V9 · ESTRUCTURA ROBUSTA MATCH + FORMAS === */

/* Los dos ejercicios de unir comparten una estructura por FILAS.
   Esto evita los desbordamientos de las versiones anteriores. */
.match-sheet{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:calc(2 * var(--u))!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.match-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) calc(52 * var(--u)) minmax(0,1fr)!important;
  align-items:end!important;
  gap:calc(2 * var(--u))!important;
  padding:0 calc(3 * var(--u)) calc(1.5 * var(--u))!important;
  border-bottom:1px solid #ddd2d7!important;
}
.match-heading strong{
  font:bold calc(3.3 * var(--u))/1 Arial,sans-serif!important;
  color:#70646a!important;
  text-align:center!important;
}
.match-list{
  display:grid!important;
  min-height:0!important;
  height:100%!important;
  gap:calc(1.5 * var(--u))!important;
}
.match-count-4 .match-list{grid-template-rows:repeat(4,minmax(0,1fr))!important}
.match-count-5 .match-list{grid-template-rows:repeat(5,minmax(0,1fr))!important}
.match-count-6 .match-list{grid-template-rows:repeat(6,minmax(0,1fr))!important}
.match-count-8 .match-list{grid-template-rows:repeat(8,minmax(0,1fr))!important;gap:calc(.8 * var(--u))!important}
.match-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) calc(52 * var(--u)) minmax(0,1fr)!important;
  align-items:center!important;
  gap:calc(2 * var(--u))!important;
  min-width:0!important;
  min-height:0!important;
}
.match-draw-space{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  position:relative!important;
}
.match-draw-space::before,
.match-draw-space::after{
  content:""!important;
  position:absolute!important;
  top:50%!important;
  width:calc(4 * var(--u))!important;
  height:calc(4 * var(--u))!important;
  border:1.3px solid #8f858a!important;
  border-radius:50%!important;
  transform:translateY(-50%)!important;
}
.match-draw-space::before{left:calc(1 * var(--u))!important}
.match-draw-space::after{right:calc(1 * var(--u))!important}

/* MAYÚSCULA / MINÚSCULA */
.case-symbol{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  background:transparent!important;
  border:0!important;
  padding:0 calc(7 * var(--u))!important;
}
.case-upper-symbol{justify-content:flex-start!important}
.case-lower-symbol{justify-content:flex-end!important}
.case-symbol>span{
  position:absolute!important;
  left:calc(1 * var(--u))!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:calc(5.5 * var(--u))!important;
  height:calc(5.5 * var(--u))!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#f8dce7!important;
  color:#77364f!important;
  font:bold calc(2.7 * var(--u))/1 Arial,sans-serif!important;
}
.case-upper-symbol strong{
  font:bold calc(14 * var(--u))/1 Arial,sans-serif!important;
  color:#111!important;
}
.case-lower-symbol strong{
  font:400 calc(14 * var(--u))/1 "Comic Sans MS","Trebuchet MS",cursive!important;
  color:#111!important;
}

/* CUENTA LAS LETRAS: vuelve a ocupar TODO el alto útil. */
.letter-count-sheet{
  display:grid!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  align-content:stretch!important;
}
.letter-count-4{grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:calc(4 * var(--u))!important}
.letter-count-6{grid-template-rows:repeat(6,minmax(0,1fr))!important;gap:calc(2 * var(--u))!important}
.letter-count-8{grid-template-rows:repeat(8,minmax(0,1fr))!important;gap:calc(1 * var(--u))!important}
.letter-count-card{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:calc(5 * var(--u))!important;
  padding:calc(2 * var(--u)) calc(4 * var(--u)) calc(2 * var(--u)) calc(11 * var(--u))!important;
  border:1.2px solid #d3c6cc!important;
  border-radius:calc(2.5 * var(--u))!important;
}
.letter-count-card>strong{
  font:bold calc(6.8 * var(--u))/1 Arial,sans-serif!important;
  letter-spacing:calc(.3 * var(--u))!important;
}
.letter-count-options{
  display:flex!important;
  align-items:center!important;
  gap:calc(2 * var(--u))!important;
}
.letter-count-options span{
  width:calc(13 * var(--u))!important;
  height:calc(13 * var(--u))!important;
  display:grid!important;
  place-items:center!important;
  border:1.4px solid #555!important;
  border-radius:50%!important;
  font:bold calc(4.5 * var(--u))/1 Arial,sans-serif!important;
}
.studio-color .letter-count-options span:nth-child(4n+1){background:#fff0c9!important}
.studio-color .letter-count-options span:nth-child(4n+2){background:#e7f4ff!important}
.studio-color .letter-count-options span:nth-child(4n+3){background:#eaf7ec!important}
.studio-color .letter-count-options span:nth-child(4n){background:#fde8f0!important}
.letter-count-4 .letter-count-card>strong{font-size:calc(8 * var(--u))!important}
.letter-count-4 .letter-count-options span{width:calc(15 * var(--u))!important;height:calc(15 * var(--u))!important;font-size:calc(5.2 * var(--u))!important}
.letter-count-8 .letter-count-card>strong{font-size:calc(5.4 * var(--u))!important}
.letter-count-8 .letter-count-options span{width:calc(10 * var(--u))!important;height:calc(10 * var(--u))!important;font-size:calc(3.8 * var(--u))!important}

/* DINOSAURIO / HUELLA: una fila vertical por pareja, igual que mayúscula/minúscula. */
.dino-match-cell{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:calc(.7 * var(--u))!important;
  border:1.2px dashed #a99ba2!important;
  border-radius:calc(2.5 * var(--u))!important;
  background:#fff!important;
  padding:calc(1 * var(--u)) calc(4 * var(--u))!important;
  overflow:hidden!important;
}
.dino-match-number{
  position:absolute!important;
  left:calc(1.2 * var(--u))!important;
  top:calc(1.2 * var(--u))!important;
  width:calc(5.3 * var(--u))!important;
  height:calc(5.3 * var(--u))!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#f8dce7!important;
  color:#77364f!important;
  font:bold calc(2.6 * var(--u))/1 Arial,sans-serif!important;
}
.dino-match-picture{
  width:calc(28 * var(--u))!important;
  height:calc(21 * var(--u))!important;
  object-fit:contain!important;
}
.dino-match-footprint{
  width:calc(25 * var(--u))!important;
  height:calc(25 * var(--u))!important;
  object-fit:contain!important;
}
.dino-match-cell>strong{
  font:bold calc(2.8 * var(--u))/1 Arial,sans-serif!important;
  text-align:center!important;
}
.match-count-4 .dino-match-picture{width:calc(38 * var(--u))!important;height:calc(29 * var(--u))!important}
.match-count-4 .dino-match-footprint{width:calc(33 * var(--u))!important;height:calc(33 * var(--u))!important}
.match-count-8 .dino-match-picture{width:calc(20 * var(--u))!important;height:calc(15 * var(--u))!important}
.match-count-8 .dino-match-footprint{width:calc(18 * var(--u))!important;height:calc(18 * var(--u))!important}
.match-count-8 .dino-match-cell>strong{font-size:calc(2.2 * var(--u))!important}

/* FORMAS: sólo reconocer + repasar. Se elimina "Continuar serie". */
.shape-recognize-list{
  display:grid!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  height:calc(100% - 12 * var(--u))!important;
  min-height:0!important;
}
.shape-recognize-row{
  display:grid!important;
  grid-template-columns:calc(22 * var(--u)) 1px minmax(0,1fr)!important;
  align-items:center!important;
  gap:calc(4 * var(--u))!important;
  min-width:0!important;
  border-bottom:1px solid #edc0d1!important;
  padding:calc(3 * var(--u)) 0!important;
}
.shape-model{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  border-right:0!important;
  padding:0!important;
}
.shape-model .worksheet-shape{
  width:calc(18 * var(--u))!important;
  height:calc(18 * var(--u))!important;
}
.shape-recognize-divider{
  width:1px!important;
  height:calc(20 * var(--u))!important;
  background:#d78aa7!important;
}
.shape-candidates{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  align-items:center!important;
  justify-items:center!important;
  gap:calc(1.5 * var(--u))!important;
  min-width:0!important;
}
.shape-candidates .worksheet-shape{
  width:calc(17 * var(--u))!important;
  height:calc(17 * var(--u))!important;
}

/* === FICHAS CON PROPÓSITO V11 · CALIGRAFÍA ESCOLAR TIPO RUBIO === */
.case-match-sheet .match-heading{
  grid-template-columns:minmax(0,1fr) calc(50 * var(--u)) minmax(0,1fr)!important;
  padding:0 calc(5 * var(--u)) calc(2 * var(--u))!important;
}
.case-match-sheet .match-row{
  grid-template-columns:minmax(0,1fr) calc(50 * var(--u)) minmax(0,1fr)!important;
  gap:calc(1.8 * var(--u))!important;
}
.case-match-sheet .match-list{
  gap:calc(1.1 * var(--u))!important;
}
.case-match-sheet .case-symbol{
  justify-content:center!important;
  align-items:center!important;
  padding:0 calc(2 * var(--u))!important;
}
.case-match-sheet .case-upper-symbol,
.case-match-sheet .case-lower-symbol{
  justify-content:center!important;
  align-items:center!important;
}
.case-match-sheet .case-symbol > span{
  left:calc(.7 * var(--u))!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:calc(5.4 * var(--u))!important;
  height:calc(5.4 * var(--u))!important;
  font-size:calc(2.5 * var(--u))!important;
}
.case-match-sheet .case-upper-symbol strong,
.case-match-sheet .case-lower-symbol strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:calc(12.5 * var(--u))!important;
  text-align:center!important;
}
.case-match-sheet .case-upper-symbol strong{
  font:700 calc(15.5 * var(--u))/1 Arial,sans-serif!important;
  letter-spacing:calc(.15 * var(--u))!important;
}
.case-match-sheet .case-lower-symbol strong{
  font:400 calc(14.2 * var(--u))/1.05 "Lucida Handwriting","Segoe Print","Bradley Hand","Comic Sans MS","Apple Chancery",cursive!important;
  font-style:normal!important;
  letter-spacing:0!important;
  transform:translateY(calc(.15 * var(--u))) scaleX(.96)!important;
}
.case-match-sheet .match-draw-space{
  min-height:calc(10.5 * var(--u))!important;
}
.case-match-sheet .match-draw-space::before,
.case-match-sheet .match-draw-space::after{
  width:calc(4.6 * var(--u))!important;
  height:calc(4.6 * var(--u))!important;
  border-width:1.6px!important;
}
.case-match-sheet.match-count-4 .match-list,
.case-match-sheet.match-count-5 .match-list,
.case-match-sheet.match-count-6 .match-list,
.case-match-sheet.match-count-8 .match-list{
  gap:calc(1.05 * var(--u))!important;
}


/* === FICHAS CON PROPÓSITO V12 · MOTOR DE LENGUAJE UNIFICADO === */
.school-glyph{
  width:calc(16 * var(--u));
  height:calc(18 * var(--u));
  overflow:visible;
}
.school-glyph path{
  fill:none;
  stroke:#171417;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.school-glyph-fallback{font:bold calc(13 * var(--u))/1 serif}
.case-lower-symbol .school-glyph{width:calc(18 * var(--u));height:calc(20 * var(--u))}
.studio-bn .school-glyph path,.studio-outline .school-glyph path{stroke:#111}

/* Tarjetas de lenguaje reutilizables 4/6/8 */
.lang-mini-grid{
  display:grid!important;
  height:100%!important;
  min-height:0!important;
  align-content:stretch!important;
  gap:calc(2 * var(--u))!important;
}
.lang-mini-grid.lang-count-4{grid-template-rows:repeat(4,minmax(0,1fr))}
.lang-mini-grid.lang-count-6{grid-template-rows:repeat(6,minmax(0,1fr));gap:calc(1.3 * var(--u))!important}
.lang-mini-grid.lang-count-8{grid-template-rows:repeat(8,minmax(0,1fr));gap:calc(.8 * var(--u))!important}
.lang-mini-card{
  display:grid;
  grid-template-columns:calc(27 * var(--u)) minmax(0,1fr) auto;
  align-items:center;
  gap:calc(4 * var(--u));
  min-height:0;
  padding:calc(1.5 * var(--u)) calc(3 * var(--u));
  border:1.2px solid #d3c7cc;
  border-radius:calc(2.5 * var(--u));
}
.lang-mini-picture{width:calc(25 * var(--u));height:calc(25 * var(--u));object-fit:contain}
.lang-mini-word{font:bold calc(5.6 * var(--u))/1 Arial,sans-serif}
.lang-count-8 .lang-mini-picture{width:calc(18 * var(--u));height:calc(18 * var(--u))}
.lang-count-8 .lang-mini-card{grid-template-columns:calc(20 * var(--u)) minmax(0,1fr) auto}
.lang-count-8 .lang-mini-word{font-size:calc(4.4 * var(--u))}

/* Completa vocal */
.missing-vowel-word{display:flex;align-items:center;gap:calc(.8 * var(--u));font-size:calc(6 * var(--u))}
.missing-vowel-word strong{font:bold calc(6 * var(--u))/1 Arial,sans-serif}
.vowel-gap{width:calc(9 * var(--u));height:calc(10 * var(--u));border:1.6px solid #555;border-radius:calc(1.3 * var(--u));background:#fff}
.vowel-choices,.letter-choice-row{display:flex;gap:calc(1.4 * var(--u))}
.vowel-choices span,.letter-choice-row span{
  width:calc(10 * var(--u));height:calc(10 * var(--u));
  display:grid;place-items:center;border:1.4px solid #555;border-radius:50%;
  font:bold calc(3.8 * var(--u))/1 Arial,sans-serif;background:#fff
}
.studio-color .vowel-choices span:nth-child(odd),
.studio-color .letter-choice-row span:nth-child(odd){background:#fff0f5}

/* Imagen ↔ palabra */
.vocab-match-sheet{height:100%;min-height:0;padding:0!important}
.vocab-match-list{display:grid;height:100%;gap:calc(1.5 * var(--u));min-height:0}
.match-count-4 .vocab-match-list{grid-template-rows:repeat(4,minmax(0,1fr))}
.match-count-6 .vocab-match-list{grid-template-rows:repeat(6,minmax(0,1fr))}
.match-count-8 .vocab-match-list{grid-template-rows:repeat(8,minmax(0,1fr));gap:calc(.7 * var(--u))}
.vocab-match-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) calc(52 * var(--u)) minmax(0,1fr);
  align-items:center;gap:calc(2 * var(--u));min-height:0
}
.vocab-match-row>div{display:grid;place-items:center}
.vocab-match-picture{width:calc(27 * var(--u));height:calc(27 * var(--u));object-fit:contain}
.vocab-match-row>strong{text-align:center;font:bold calc(5 * var(--u))/1 Arial,sans-serif}

/* Repaso de minúsculas escolares */
.lowercase-trace-grid{
  display:grid!important;
  height:100%!important;
  grid-template-rows:repeat(6,minmax(0,1fr));
  gap:calc(1.5 * var(--u))!important;
  min-height:0!important;
}
.lowercase-trace-card{
  position:relative;
  display:grid;
  grid-template-columns:calc(30 * var(--u)) calc(48 * var(--u)) minmax(0,1fr);
  align-items:center;
  gap:calc(4 * var(--u));
  border-bottom:1px solid #e2d5da;
}
.lowercase-trace-card>span{
  position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:calc(5.5 * var(--u));height:calc(5.5 * var(--u));
  display:grid;place-items:center;border-radius:50%;background:#f8dce7;
  font:bold calc(2.6 * var(--u))/1 Arial,sans-serif
}
.school-trace-model{display:grid;place-items:center}
.school-trace-model .school-glyph{width:calc(25 * var(--u));height:calc(27 * var(--u))}
.school-trace-copy{display:flex;align-items:center;justify-content:space-evenly;opacity:.28}
.school-trace-copy .school-glyph{width:calc(20 * var(--u));height:calc(22 * var(--u))}
.school-write-line{height:calc(17 * var(--u));border-bottom:1.5px dashed #777}

/* Un mismo banco visual para Atención y Lenguaje */
.vocab-color-chip{
  display:inline-block;width:calc(27 * var(--u));height:calc(27 * var(--u));
  border-radius:50%;border:2px solid #333;background:var(--chip)
}
.studio-bn .vocab-color-chip,.studio-outline .vocab-color-chip{background:#fff!important}



/* === FICHAS CON PROPÓSITO V13 · CALIGRAFÍA ESCOLAR + AJUSTES LENGUAJE === */

/* Referencia visual: Cursive Standard. El primer nombre permite usarla si
   está instalada localmente; Playwrite ES es el fallback web estable. */
.school-cursive-letter,
.school-cursive-trace{
  font-family:"Cursive Standard","Playwrite ES",cursive!important;
  font-weight:400!important;
  font-style:normal!important;
  text-transform:none!important;
  letter-spacing:0!important;
  color:#111!important;
}

/* Mayúscula ↔ minúscula */
.case-lower-symbol .school-cursive-letter{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:calc(18 * var(--u))!important;
  font-size:calc(15.5 * var(--u))!important;
  line-height:1!important;
}
.case-match-sheet .case-upper-symbol strong{
  font-size:calc(15.5 * var(--u))!important;
}
.case-match-sheet .case-symbol{
  align-items:center!important;
  justify-content:center!important;
}

/* COMPLETA LA VOCAL · 4 tarjetas: usar de verdad todo el alto disponible */
.lang-mini-grid.lang-count-4{
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  gap:calc(3.4 * var(--u))!important;
  height:100%!important;
  min-height:0!important;
  align-content:stretch!important;
}
.lang-count-4 .lang-mini-card{
  height:100%!important;
  min-height:0!important;
  grid-template-columns:calc(36 * var(--u)) minmax(0,1fr) auto!important;
  gap:calc(5 * var(--u))!important;
  padding:calc(3.2 * var(--u)) calc(4 * var(--u))!important;
}
.lang-count-4 .lang-mini-picture{
  width:calc(33 * var(--u))!important;
  height:calc(33 * var(--u))!important;
}
.lang-count-4 .missing-vowel-word strong{
  font-size:calc(7.2 * var(--u))!important;
}
.lang-count-4 .vowel-gap{
  width:calc(11.5 * var(--u))!important;
  height:calc(12.5 * var(--u))!important;
}
.lang-count-4 .vowel-choices span,
.lang-count-4 .letter-choice-row span{
  width:calc(12.5 * var(--u))!important;
  height:calc(12.5 * var(--u))!important;
  font-size:calc(4.6 * var(--u))!important;
}
.lang-count-4 .vowel-choices,
.lang-count-4 .letter-choice-row{
  gap:calc(1.8 * var(--u))!important;
}

/* LETRA INICIAL / FINAL · la flecha forma parte de la palabra y señala
   exactamente el extremo que se está trabajando. */
.edge-letter-card{
  grid-template-columns:calc(34 * var(--u)) minmax(0,1fr) auto!important;
}
.edge-word-cue{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:calc(1.3 * var(--u))!important;
  min-width:0!important;
}
.edge-word-cue strong{
  display:inline-flex!important;
  align-items:baseline!important;
  font:bold calc(6.2 * var(--u))/1 Arial,sans-serif!important;
  letter-spacing:calc(.2 * var(--u))!important;
  white-space:nowrap!important;
}
.edge-arrow{
  display:inline-block!important;
  font:bold calc(6.2 * var(--u))/1 Arial,sans-serif!important;
  color:#8e365a!important;
  transform:translateY(calc(-.15 * var(--u)))!important;
}
.edge-focus-letter{
  font:inherit!important;
  font-style:normal!important;
  color:#a6295d!important;
  border-bottom:calc(.7 * var(--u)) solid #f1b5cc!important;
}
.lang-count-4 .edge-word-cue strong,
.lang-count-4 .edge-arrow{
  font-size:calc(7.2 * var(--u))!important;
}

/* REPASO DE MINÚSCULAS con el mismo modelo escolar */
.school-trace-model .school-cursive-trace{
  display:inline-block!important;
  font-size:calc(19 * var(--u))!important;
  line-height:1!important;
}
.school-trace-copy .school-cursive-trace{
  display:inline-block!important;
  font-size:calc(16 * var(--u))!important;
  line-height:1!important;
}
.school-trace-copy{
  opacity:.28!important;
}

/* === V14 · ÚNICO SISTEMA DE MINÚSCULAS ESCOLARES ===
   No usar font-family para letras pedagógicas en minúscula.
   Usar siempre ROSA_SCHOOL_SCRIPT / .school-glyph. */
.case-lower-symbol{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.case-lower-symbol .school-glyph{
  width:calc(18 * var(--u))!important;
  height:calc(20 * var(--u))!important;
  color:#111!important;
}
.case-match-sheet .case-upper-symbol strong{
  font-size:calc(15.5 * var(--u))!important;
}
.school-trace-model .school-glyph{
  width:calc(25 * var(--u))!important;
  height:calc(27 * var(--u))!important;
  color:#111!important;
}
.school-trace-copy .school-glyph{
  width:calc(20 * var(--u))!important;
  height:calc(22 * var(--u))!important;
  color:#bdbdbd!important;
}
.school-trace-copy{opacity:1!important}

/* Neutraliza cualquier regla antigua basada en fuentes cursivas. */
.school-cursive-letter,
.school-cursive-trace{
  font-family:inherit!important;
}

/* === V15 · Minúsculas escolares homogéneas con Cursive de DaFont === */
.case-match-sheet .case-upper-symbol strong {
  font-size: calc(15.2 * var(--u)) !important;
}

.case-lower-symbol,
.school-trace-model,
.school-trace-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.case-lower-symbol .school-glyph,
.case-lower-symbol .school-script-glyph,
.case-lower-symbol .school-font-glyph {
  font-size: calc(15.5 * var(--u)) !important;
  min-width: calc(11 * var(--u)) !important;
  min-height: calc(18 * var(--u)) !important;
}

.school-trace-model .school-glyph,
.school-trace-model .school-script-glyph,
.school-trace-model .school-font-glyph {
  font-size: calc(20 * var(--u)) !important;
  min-width: calc(15 * var(--u)) !important;
  min-height: calc(22 * var(--u)) !important;
}

.school-trace-copy .school-glyph,
.school-trace-copy .school-script-glyph,
.school-trace-copy .school-font-glyph {
  font-size: calc(16.5 * var(--u)) !important;
  min-width: calc(12 * var(--u)) !important;
  min-height: calc(18 * var(--u)) !important;
  color: #bfbfbf !important;
}

/* === V16 · REPARACIÓN DEFINITIVA LENGUAJE === */
.case-match-sheet .case-symbol{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-height:0!important;padding:0 calc(3 * var(--u))!important;border:0!important;background:transparent!important}
.case-match-sheet .case-upper-symbol>span{position:absolute!important;left:calc(.8 * var(--u))!important;top:50%!important;transform:translateY(-50%)!important;width:calc(5.2 * var(--u))!important;height:calc(5.2 * var(--u))!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#f8dce7!important;color:#77364f!important;font:bold calc(2.5 * var(--u))/1 Arial,sans-serif!important}
.case-match-sheet .case-lower-symbol>span{position:static!important;transform:none!important;width:auto!important;height:auto!important;border-radius:0!important;background:transparent!important}
.case-match-sheet .case-upper-symbol strong{font:bold calc(15.5 * var(--u))/1 Arial,sans-serif!important}
.case-match-sheet .case-lower-symbol .school-glyph{width:calc(19 * var(--u))!important;height:calc(21 * var(--u))!important;color:#111!important}
.lowercase-trace-grid{display:grid!important;grid-template-rows:repeat(6,minmax(0,1fr))!important;height:100%!important;min-height:0!important;gap:calc(1.5 * var(--u))!important}
.lowercase-trace-card{position:relative!important;display:grid!important;grid-template-columns:calc(31 * var(--u)) calc(50 * var(--u)) minmax(0,1fr)!important;align-items:center!important;gap:calc(4 * var(--u))!important;min-height:0!important;border-bottom:1px solid #e2d5da!important}
.lowercase-trace-card>span{position:absolute!important;left:0!important;top:50%!important;transform:translateY(-50%)!important;width:calc(5.5 * var(--u))!important;height:calc(5.5 * var(--u))!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#f8dce7!important;font:bold calc(2.6 * var(--u))/1 Arial,sans-serif!important}
.school-trace-model,.school-trace-copy{display:flex!important;align-items:center!important;justify-content:center!important}.school-trace-model .school-glyph{width:calc(25 * var(--u))!important;height:calc(28 * var(--u))!important;color:#111!important}.school-trace-copy{justify-content:space-evenly!important;opacity:1!important}.school-trace-copy .school-glyph{width:calc(20 * var(--u))!important;height:calc(23 * var(--u))!important;color:#bdbdbd!important}
.lang-word-grid.lang-count-4{display:grid!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;height:100%!important;min-height:0!important;align-content:stretch!important;gap:calc(3 * var(--u))!important;padding:0!important}
.lang-word-grid.lang-count-4 .lang-word-card{position:relative!important;display:grid!important;grid-template-columns:calc(38 * var(--u)) minmax(0,1fr)!important;align-items:center!important;justify-items:start!important;gap:calc(6 * var(--u))!important;width:100%!important;height:100%!important;min-height:0!important;padding:calc(3 * var(--u)) calc(5 * var(--u)) calc(3 * var(--u)) calc(10 * var(--u))!important;border:1.2px solid #d3c6cc!important;border-radius:calc(2.7 * var(--u))!important}
.lang-word-grid.lang-count-4 .lang-word-picture{width:calc(35 * var(--u))!important;height:calc(35 * var(--u))!important;object-fit:contain!important}.lang-word-grid.lang-count-4 .lang-word-boxes{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:calc(1.5 * var(--u))!important;min-width:0!important}.lang-word-grid.lang-count-4 .lang-word-boxes span{width:calc(13.5 * var(--u))!important;height:calc(13.5 * var(--u))!important;display:grid!important;place-items:center!important;font:bold calc(5.5 * var(--u))/1 Arial,sans-serif!important}.lang-word-grid.lang-count-4 .lang-word-number{left:calc(2 * var(--u))!important;top:50%!important;transform:translateY(-50%)!important}
.edge-letter-card{grid-template-columns:calc(34 * var(--u)) minmax(0,1fr) auto!important}.edge-word-cue{display:flex!important;align-items:center!important;justify-content:center!important;gap:calc(1.2 * var(--u))!important}.edge-word-cue strong,.edge-arrow{font:bold calc(6.4 * var(--u))/1 Arial,sans-serif!important}.lang-count-4 .edge-word-cue strong,.lang-count-4 .edge-arrow{font-size:calc(7.4 * var(--u))!important}.edge-arrow{color:#8e365a!important}.edge-focus-letter{font:inherit!important;font-style:normal!important;color:#a6295d!important;border-bottom:calc(.65 * var(--u)) solid #f1b5cc!important}

/* === V17 · FUENTE ESCOLAR REAL ÚNICA === */

/* UNE MAYÚSCULA / MINÚSCULA */
.case-match-sheet .case-symbol{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}

.case-match-sheet .case-upper-symbol>span{
  position:absolute!important;
  left:calc(1 * var(--u))!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:calc(5.5 * var(--u))!important;
  height:calc(5.5 * var(--u))!important;
  display:grid!important;
  place-items:center!important;
  background:#f8dce7!important;
  border-radius:50%!important;
  color:#77364f!important;
  font:bold calc(2.5 * var(--u))/1 Arial,sans-serif!important;
}

.case-match-sheet .case-upper-symbol strong{
  font:bold calc(15.5 * var(--u))/1 Arial,sans-serif!important;
}

.case-match-sheet .case-lower-symbol .rosa-school-letter{
  font-size:calc(17.5 * var(--u))!important;
  color:#111!important;
  min-width:calc(18 * var(--u))!important;
  min-height:calc(19 * var(--u))!important;
}

/* REPASA MINÚSCULAS: misma fuente que la ficha de unir. */
.school-trace-model,
.school-trace-copy{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.school-trace-model .school-model-letter{
  font-size:calc(20 * var(--u))!important;
  color:#111!important;
  min-width:calc(24 * var(--u))!important;
}

.school-trace-copy{
  justify-content:space-evenly!important;
  opacity:1!important;
}

.school-trace-copy .school-trace-letter{
  font-size:calc(17 * var(--u))!important;
  color:#bebebe!important;
  min-width:calc(18 * var(--u))!important;
}

/* Neutraliza los SVG antiguos si sobreviven en CSS/HTML. */
.case-lower-symbol svg.school-glyph,
.school-trace-model svg.school-glyph,
.school-trace-copy svg.school-glyph{
  display:none!important;
}

/* COMPLETA PALABRAS · 4 TARJETAS: 4 filas iguales usando todo el alto. */
.lang-word-grid.lang-count-4{
  display:grid!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  height:100%!important;
  min-height:0!important;
  align-content:stretch!important;
  gap:calc(3 * var(--u))!important;
  padding:0!important;
}

.lang-word-grid.lang-count-4 .lang-word-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:calc(40 * var(--u)) minmax(0,1fr)!important;
  align-items:center!important;
  gap:calc(6 * var(--u))!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:calc(3 * var(--u)) calc(5 * var(--u)) calc(3 * var(--u)) calc(11 * var(--u))!important;
}

.lang-word-grid.lang-count-4 .lang-word-picture{
  width:calc(37 * var(--u))!important;
  height:calc(37 * var(--u))!important;
  object-fit:contain!important;
}

.lang-word-grid.lang-count-4 .lang-word-boxes{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:calc(1.6 * var(--u))!important;
}

.lang-word-grid.lang-count-4 .lang-word-boxes span{
  width:calc(14.5 * var(--u))!important;
  height:calc(14.5 * var(--u))!important;
  font-size:calc(5.5 * var(--u))!important;
}


/* Creación guiada y actividades con dibujos originales de contorno limpio. */
.studio-guided .studio-intro{align-items:flex-start;gap:20px;margin-bottom:25px}.studio-guided .studio-intro h2{margin:8px 0}.studio-series-link{font-size:.9rem;color:#754c61;white-space:nowrap;font-weight:700}.studio-guided .studio-workspace{grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:26px}.studio-guided .studio-controls{display:flex;flex-direction:column;gap:16px}.studio-step{padding:18px;background:#fffcf7;border:1px solid #e7ded1;border-radius:16px;display:grid;gap:13px}.studio-step h3{display:flex;align-items:center;gap:9px;margin:0 0 4px;font-size:1rem;color:#485c4b}.studio-step h3>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e8eedf;color:#485c4b;font-size:.85rem;flex-shrink:0}.studio-step .field{margin:0;display:grid;gap:6px}.studio-step select{width:100%;min-width:0;font-size:.95rem}.studio-model-help,.studio-option-note,.studio-outline-note,.studio-step>p{font-size:.86rem;line-height:1.5;margin:0;color:#676962}.studio-outline-note{padding:10px;background:#f1f3eb;border-radius:8px}.studio-step.studio-actions{display:grid;grid-template-columns:1fr}.studio-preview-column{min-width:0}.studio-preview-label{display:flex;justify-content:space-between;gap:10px;padding:0 2px 12px;font-size:.75rem;color:#747067}.studio-preview-label strong{letter-spacing:.07em}.studio-guided .studio-preview{background:#eceee6;border:1px solid #e1e4d9}
.studio-sheet>main.picture-math{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:calc(4 * var(--u))!important;justify-content:stretch!important;align-content:stretch!important}
.studio-sheet .picture-math>h2{font-size:calc(4.2 * var(--u));line-height:1.25;margin:calc(2 * var(--u)) 0!important}
.picture-exercises{display:grid;grid-template-rows:repeat(var(--exercise-count),minmax(0,1fr));gap:calc(5 * var(--u));min-height:0;width:100%}
.picture-kind-choose .picture-exercises{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:calc(6 * var(--u))}
.picture-exercise{border:calc(.45 * var(--u)) solid #333;border-radius:calc(2.5 * var(--u));min-width:0;min-height:0;overflow:hidden;background:white}
.picture-set{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);place-items:center;gap:calc(1.5 * var(--u));min-height:0;min-width:0;padding:calc(3 * var(--u));height:100%}
.picture-set[style="--items:1"]{grid-template-columns:1fr}.picture-set[style="--items:2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.math-picture{display:block;width:100%;height:100%;max-width:calc(32 * var(--u));max-height:calc(32 * var(--u));min-height:0;min-width:0;object-fit:contain}
.picture-choice{display:grid;grid-template-rows:minmax(0,1fr) calc(19 * var(--u))}
.picture-options{display:grid;grid-template-columns:repeat(3,1fr);border-top:calc(.45 * var(--u)) solid #333;min-height:0}
.picture-options span{display:grid;place-items:center;font:400 calc(12 * var(--u))/1 Arial,sans-serif;color:#222}.picture-options span+span{border-left:calc(.45 * var(--u)) solid #333}
.picture-sum{display:grid;grid-template-columns:minmax(0,1fr) calc(9 * var(--u)) minmax(0,1fr) calc(9 * var(--u)) calc(17 * var(--u));align-items:center;gap:calc(1 * var(--u));padding:calc(3 * var(--u))}
.picture-sum .picture-set{padding:0;gap:calc(1 * var(--u))}.picture-sum .math-picture{max-width:calc(25 * var(--u));max-height:calc(25 * var(--u))}.math-sign{font:400 calc(12 * var(--u))/1 Arial,sans-serif;text-align:center;color:#222}.picture-answer{display:block;width:calc(14 * var(--u));height:calc(14 * var(--u));border-bottom:calc(.5 * var(--u)) dashed #555}
.picture-color-row{display:grid;grid-template-columns:calc(32 * var(--u)) minmax(0,1fr);align-items:center;padding:calc(4 * var(--u));gap:calc(4 * var(--u))}.picture-target{font:500 calc(27 * var(--u))/1 Arial,sans-serif;text-align:center;color:#222}.picture-color-row .picture-set{grid-template-columns:repeat(4,minmax(0,1fr));padding:0}.picture-color-row .math-picture{max-width:calc(35 * var(--u));max-height:calc(35 * var(--u))}
.studio-print-document>.studio-picture-sheet{height:297mm!important;min-height:297mm!important;max-height:297mm!important}
@media print{.studio-print-document>.studio-picture-sheet{height:297mm!important;min-height:297mm!important;max-height:297mm!important;overflow:hidden!important}.studio-picture-sheet .picture-exercise{break-inside:avoid}}
@media(max-width:1100px){.studio-guided .studio-workspace{grid-template-columns:245px minmax(0,1fr);gap:18px}.studio-series-link{white-space:normal}}
@media(max-width:900px){.studio-guided .studio-workspace{grid-template-columns:1fr}.studio-guided .studio-controls{display:grid;grid-template-columns:1fr 1fr}.studio-step.studio-actions{grid-column:1/-1}.studio-guided .studio-intro{display:block}.studio-series-link{display:inline-block;margin-top:12px}}
@media(max-width:600px){.studio-guided .studio-controls{display:flex}.studio-step{padding:15px}.studio-preview-label{flex-wrap:wrap}}
