.worksheet-maker{margin:2rem 0;padding:clamp(1rem,3vw,2rem);border:1px solid var(--line,#d8e1d8);border-radius:1.5rem;background:var(--surface,#fff)}
.worksheet-maker__intro{max-width:48rem;margin-bottom:1.5rem}
.worksheet-maker__intro h2{margin:.25rem 0 .65rem}
.worksheet-maker__privacy{padding:.8rem 1rem;border-radius:.8rem;background:#f1f6ee;color:#3b5747}
.worksheet-maker__editor{padding:clamp(1rem,2vw,1.5rem);border-radius:1rem;background:#f7f8f5}
.worksheet-maker__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.worksheet-maker__field{display:grid;gap:.45rem;min-width:0}
.worksheet-maker__field label{font-weight:650}
.worksheet-maker__field p{margin:0;color:var(--muted,#58635d);font-size:.9rem}
.worksheet-maker__field input,.worksheet-maker__field textarea{width:100%;min-width:0;padding:.75rem .85rem;border:1px solid #cbd5cc;border-radius:.7rem;background:#fff;color:var(--ink,#26352f);font:inherit;line-height:1.5}
.worksheet-maker__field textarea{resize:vertical}
.worksheet-maker__meta .worksheet-maker__field:nth-child(3),.worksheet-maker__meta .worksheet-maker__field:nth-child(4){grid-column:1/-1}
.worksheet-maker__question-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 .8rem}
.worksheet-maker__question-head h3{margin:0}
.worksheet-maker__question-head p{margin:.35rem 0 0;color:var(--muted,#58635d)}
.worksheet-maker__questions{display:grid;gap:.8rem}
.worksheet-maker__question{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:.8rem;padding:1rem;border:1px solid #d9e1d8;border-radius:.9rem;background:#fff}
.worksheet-maker__question legend{grid-column:1/-1;padding:0 .3rem;font-weight:700}
.worksheet-maker__question-field{display:grid;gap:.35rem;min-width:0}
.worksheet-maker__question-field--wide{grid-column:1/-1}
.worksheet-maker__question-field label{font-size:.9rem;font-weight:600}
.worksheet-maker__question-field textarea,.worksheet-maker__question-field input,.worksheet-maker__question-field select{width:100%;min-width:0;margin:0;padding:.7rem .8rem;border:1px solid #cbd5cc;border-radius:.7rem;background:#fff;color:var(--ink,#26352f);font:inherit;line-height:1.5}
.worksheet-maker__question-field textarea{resize:vertical}
.worksheet-maker__reviewed{display:flex;align-items:center;gap:.55rem;min-height:2.8rem;font-size:.9rem;font-weight:600}
.worksheet-maker__reviewed input{width:1.1rem;height:1.1rem;accent-color:#3d604b}
.worksheet-maker__question [data-wm-remove]{justify-self:start;white-space:nowrap}
.worksheet-maker__status{min-height:1.5em;margin:.8rem 0 0;color:var(--muted,#58635d)}
.worksheet-maker__preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0}
.worksheet-maker__document{position:relative;min-width:0;padding:1.5rem;border:1px solid #d7ddd7;border-radius:1rem;background:#fff;color:#1f2c25}
.worksheet-maker__document-label{display:inline-flex;margin:0 0 1rem;padding:.35rem .7rem;border-radius:999px;background:#edf4e9;color:#3c5a45;font-size:.85rem;font-weight:700}
.worksheet-maker__document-title{margin:0 0 .35rem;font-family:inherit;font-size:1.5rem}
.worksheet-maker__document-meta{margin:.2rem 0 1rem;color:#66716b}
.worksheet-maker__document-heading{margin:1rem 0 .25rem;font-size:1rem}
.worksheet-maker__document-items{padding-left:1.4rem}
.worksheet-maker__document-items li{padding:0 0 1rem .3rem;break-inside:avoid}
.worksheet-maker__document-items li>p:first-child{margin-top:.25rem;font-weight:600}
.worksheet-maker__answer{padding:.65rem .8rem;border-left:3px solid #92b27f;background:#f4f7f1;white-space:pre-wrap}
.worksheet-maker__points{margin:.4rem 0;color:#53645a;font-size:.9rem}
.worksheet-maker__response-lines{height:5.2rem;background:repeating-linear-gradient(to bottom,transparent 0 calc(1.7rem - 1px),#cbd4cc calc(1.7rem - 1px) 1.7rem)}
.worksheet-maker__empty{padding:1rem;border-radius:.7rem;background:#f7f8f5;color:#68736c}
.worksheet-maker__name-line{margin-top:1.5rem;font-size:.85rem;color:#59645d}
.worksheet-maker__print-watermark{display:none}
.worksheet-maker__actions{display:flex;flex-wrap:wrap;gap:.75rem}
.worksheet-maker__actions .button{min-height:2.8rem}
.worksheet-maker__bank{margin:1.5rem 0;padding:clamp(1rem,2vw,1.5rem);border:1px solid #d8e1d8;border-radius:1rem;background:#f8faf6}
.worksheet-maker__bank-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem}
.worksheet-maker__bank-head h3{margin:0}
.worksheet-maker__bank-head p{max-width:52rem;margin:.45rem 0;color:var(--muted,#58635d)}
.worksheet-maker__bank-save{display:flex;align-items:center;gap:.55rem;flex:none;font-weight:650}
.worksheet-maker__bank-save input{width:1.1rem;height:1.1rem;accent-color:#3d604b}
.worksheet-maker__bank-privacy{padding:.7rem .85rem;border-radius:.7rem;background:#edf4e9;color:#3b5747;font-size:.92rem}
.worksheet-maker__bank-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.65rem .75rem;margin:1rem 0}
.worksheet-maker__bank-controls label{grid-column:1/-1;font-weight:650}
.worksheet-maker__bank-controls input{width:100%;min-width:0;min-height:2.8rem;padding:.6rem .75rem;border:1px solid #cbd5cc;border-radius:.7rem;background:#fff;color:var(--ink,#26352f);font:inherit}
.worksheet-maker__bank-list{display:grid;gap:.55rem;max-height:24rem;overflow:auto;padding:.15rem}
.worksheet-maker__bank-item{display:flex;align-items:flex-start;gap:.75rem;padding:.8rem;border:1px solid #d9e1d8;border-radius:.75rem;background:#fff;cursor:pointer}
.worksheet-maker__bank-item input{flex:none;width:1.1rem;height:1.1rem;margin:.2rem 0 0;accent-color:#3d604b}
.worksheet-maker__bank-item-copy{display:grid;gap:.25rem;min-width:0;overflow-wrap:anywhere}
.worksheet-maker__bank-item-meta{color:var(--muted,#58635d);font-size:.88rem}
.worksheet-maker__bank-empty{padding:1rem;border-radius:.75rem;background:#fff;color:var(--muted,#58635d)}
.worksheet-maker__bank-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.8rem}
.worksheet-maker__bank-actions .button{min-height:2.7rem}
.worksheet-maker__bank-status{min-height:1.5rem;margin:.75rem 0 0;color:var(--muted,#58635d)}
.worksheet-maker__import{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}
.worksheet-maker__import input{position:absolute;width:1px;height:1px;opacity:0}
@media(max-width:760px){.worksheet-maker__meta,.worksheet-maker__preview{grid-template-columns:1fr}.worksheet-maker__bank-controls{grid-template-columns:1fr}.worksheet-maker__bank-head{flex-direction:column}.worksheet-maker__actions,.worksheet-maker__bank-actions{flex-direction:column;align-items:stretch}}
@media(max-width:480px){.worksheet-maker__question-head{align-items:flex-start;flex-direction:column}.worksheet-maker__question{grid-template-columns:1fr}.worksheet-maker__question>*{grid-column:1/-1!important}.worksheet-maker__actions,.worksheet-maker__bank-actions{flex-direction:column;align-items:stretch}.worksheet-maker__bank-actions .button{width:100%}}
@media print{
  @page{size:auto;margin:16mm}
  body *{visibility:hidden!important}
  .worksheet-maker[data-wm-print="student"] [data-wm-student],.worksheet-maker[data-wm-print="student"] [data-wm-student] *,.worksheet-maker[data-wm-print="key"] [data-wm-key],.worksheet-maker[data-wm-print="key"] [data-wm-key] *{visibility:visible!important}
  .worksheet-maker[data-wm-print="student"] [data-wm-student],.worksheet-maker[data-wm-print="key"] [data-wm-key]{position:absolute;inset:0 auto auto 0;width:100%;padding:0;border:0;border-radius:0;background:#fff;color:#000;font:12pt/1.5 Georgia,serif}
  .worksheet-maker__document-label,.worksheet-maker__privacy,.worksheet-maker__print-watermark{display:none!important}
  .worksheet-maker__document-title{font-size:20pt}
  .worksheet-maker__document-items{padding-left:1.5rem}
  .worksheet-maker__document-items li{padding-bottom:1.5rem;break-inside:avoid}
  .worksheet-maker__response-lines{height:5.5rem}
  .worksheet-maker__answer{border-color:#444;background:#fff}
}
