/* Scoped print template for routine view only */
.routine-back-v383,.routine-exit-v383{background:#68182e!important;color:#fff!important;border:1px solid #a54761!important;text-decoration:none;padding:10px 16px;border-radius:10px;font-weight:700}
.print-watermark-v383{display:none}
@media print{
 @page{size:A4;margin:13mm 12mm}
 body:has(.routine-v13){background:#fff!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 body:has(.routine-v13) .print-head-v383{display:block!important;text-align:center!important;margin:0 0 12mm!important;padding:0 0 4mm!important;border-bottom:1px solid #cbd5e1!important;position:relative;z-index:2}
 body:has(.routine-v13) .print-head-v383 h1{font-size:19pt!important;color:#111!important;margin:0 0 5mm!important;text-transform:uppercase}
 body:has(.routine-v13) .print-client-v383{font-size:12pt!important;color:#111!important;margin:0!important}
 body:has(.routine-v13) .print-watermark-v383{display:flex!important;align-items:center;justify-content:center;position:fixed!important;top:0;left:0;width:100%;height:100%;z-index:0!important;pointer-events:none!important;transform:rotate(-35deg);font-size:clamp(42px,7vw,100px)!important;font-weight:900!important;letter-spacing:.08em!important;color:rgba(90,90,90,.09)!important;text-align:center!important;overflow:hidden!important}
 body:has(.routine-v13) .routine-v13{position:relative;z-index:1;background:transparent!important}
 body:has(.routine-v13) .routine-v13 .day,body:has(.routine-v13) .routine-v13 .day-items,body:has(.routine-v13) .routine-v13 article{background:transparent!important}
 body:has(.routine-v13) .page-head,body:has(.routine-v13) .routine-actions,body:has(.routine-v13) .no-print{display:none!important}
}

/* V3.8.4: force black numerals and labels in the printed prescription.
   Earlier theme rules set b/span text white with !important. */
@media print {
 body:has(.routine-v13) .routine-v13 .prescription,
 body:has(.routine-v13) .routine-v13 .prescription *,
 body[data-ui-style]:has(.routine-v13) .content .routine-v13 .prescription,
 body[data-ui-style]:has(.routine-v13) .content .routine-v13 .prescription :is(span,small,b,strong) {
   color:#000000!important;
   -webkit-text-fill-color:#000000!important;
   text-shadow:none!important;
   opacity:1!important;
   visibility:visible!important;
 }
 body:has(.routine-v13) .routine-v13 .prescription span {
   background:#ffffff!important;
   background-image:none!important;
   border:1px solid #b8b8b8!important;
 }
 body:has(.routine-v13) .routine-v13 .prescription b {
   font-weight:800!important;
   font-size:12pt!important;
 }
 body:has(.routine-v13) .routine-v13 .prescription small {
   font-weight:600!important;
   font-size:8pt!important;
 }
}

/* V3.8.5: printed exercise name only, matching numerical typography */
@media print {
 body:has(.routine-v13) .routine-v13 .routine-name > span {display:none!important;}
 body:has(.routine-v13) .routine-v13 .routine-name h3,
 body[data-ui-style]:has(.routine-v13) .content .routine-v13 .routine-name h3 {
   display:block!important; color:#000!important; -webkit-text-fill-color:#000!important;
   font-family:Arial,Helvetica,sans-serif!important; font-size:12pt!important;
   font-weight:800!important; line-height:1.3!important;
   text-shadow:none!important; opacity:1!important; margin:0!important;
 }
 body:has(.routine-v13) .routine-v13 .prescription b {font-family:Arial,Helvetica,sans-serif!important;}
}
