#lrd-input{width:100%;box-sizing:border-box;resize:vertical;font:inherit;padding:.8rem;line-height:1.7}
.lrd-options,.lrd-actions,.lrd-controls{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin:1rem 0}
#lrd-error{white-space:pre-line}
.lrd-sheet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 2rem}
.lrd-card{border:3px solid #af2029;border-radius:2rem;padding:1.2rem;color:#75151c;background:#fff8ee;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:230px;overflow-wrap:anywhere;position:relative}
.lrd-card:before{content:"";width:35%;height:6px;background:#af2029;position:absolute;top:-5px;left:32.5%;border-radius:3px}
.lrd-card p{margin:.4rem 0}.lrd-card-title{font-weight:700}.lrd-card-number,.lrd-card-type{font-size:.95rem}.lrd-card-q{font-size:1.8rem;font-weight:700;line-height:1.45}
#lrd-answers td{overflow-wrap:anywhere}#lrd-answers table{table-layout:fixed;width:100%}#lrd-answers th:first-child{width:4rem}
.lrd-overlay{position:fixed;inset:0;z-index:10000;background:#fff8ee;color:#75151c;padding:2rem;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overscroll-behavior:contain}
.lrd-overlay[hidden]{display:none}.lrd-overlay h2{font-size:clamp(2rem,5vw,4.5rem);overflow-wrap:anywhere;max-width:100%;margin:1rem 0}.lrd-overlay p{max-width:100%;overflow-wrap:anywhere}
#lrd-draw-answer{font-size:2.5rem;font-weight:700}.lrd-drawing{overflow:hidden}
@media(max-width:500px){.lrd-sheet{grid-template-columns:1fr}.lrd-overlay{padding:1rem;justify-content:flex-start}.lrd-card{min-height:190px}}
@page{size:A4 portrait;margin:10mm}
@media print{
  body>*:not(main),body>main>*:not(#lrd-result){display:none!important}
  body,body.lrd-drawing,body>main{margin:0!important;padding:0!important;width:auto!important;max-width:none!important;overflow:visible!important;background:white!important}
  #lrd-result{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  #lrd-result[hidden]{display:none!important}
  .lrd-preview-heading,#lrd-result .ad-card,#lrd-result ins{display:none!important}
  .lrd-sheet{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));height:270mm;gap:5mm;margin:0;break-before:page;break-inside:avoid}
  .lrd-sheet:first-child{break-before:auto}.lrd-card:before{display:none}
  .lrd-count-4{grid-template-rows:repeat(2,minmax(0,1fr))}.lrd-count-6{grid-template-rows:repeat(3,minmax(0,1fr))}.lrd-count-8{grid-template-rows:repeat(4,minmax(0,1fr))}
  .lrd-card{min-height:0;padding:4mm;break-inside:avoid;border-width:1mm;border-radius:8mm;box-sizing:border-box;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .lrd-card-q{font-size:19pt;line-height:1.2}.lrd-count-8 .lrd-card-q{font-size:16pt}.lrd-card p{margin:1mm 0}.lrd-card-title,.lrd-card-type,.lrd-card-number{font-size:10pt}
  #lrd-answers{break-before:page}#lrd-answers .table-scroll{overflow:visible}#lrd-answers thead{display:table-header-group}#lrd-answers tr{break-inside:avoid}
}
