#ec-refined .ec-first-then{max-width:960px;margin:0 auto}
#ec-refined .ft-intro{margin:0 0 24px;color:var(--muted)}
#ec-refined .ft-picker-grid,#ec-refined .ft-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#ec-refined .ft-picker{border:1px solid #bac9b2;border-radius:15px;padding:24px;background:#edf2e8;min-width:0}
#ec-refined .ft-picker.then{background:#f6f0e1;border-color:#dbcfad}
#ec-refined .ft-step-label{display:block;font-size:1.7em;font-weight:750;letter-spacing:.05em;margin:0 0 16px;color:#253e34}
#ec-refined .ft-picker select{display:block;width:100%;min-height:52px;background:#fffefa;color:#253e34;border:1px solid #8c9d84;border-radius:8px;padding:12px 38px 12px 13px;font:600 1em/1.4 'Segoe UI',Arial,sans-serif}
#ec-refined .ft-choice-preview{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:20px;background:#fffefa;border-radius:10px;overflow:hidden}
#ec-refined .ft-choice-preview img{width:100%;max-width:320px;height:auto;aspect-ratio:1;object-fit:contain}
#ec-refined .ft-choice-preview strong{display:block;padding:0 16px 18px;font-size:1.1em;text-align:center;line-height:1.4}
#ec-refined .ft-empty{color:#6b7769;font-size:.88em;padding:32px;text-align:center}
#ec-refined .ft-generate-row{display:flex;flex-direction:column;align-items:center;gap:9px;margin:26px 0 0}
#ec-refined #ft-generate{padding:16px 34px;font-size:1em;min-width:245px}
#ec-refined .ft-generate-row p{margin:0}
#ec-refined .ft-feedback{font-size:.9em;color:#485d50;text-align:center;margin:14px 0 0}
#ec-refined .ft-feedback:empty{display:none}
#ec-refined #ft-ready{font-size:1.6em;margin:0 0 24px;scroll-margin-top:24px}
#ec-refined .ft-board{padding:24px;background:#fffefa;border:1px solid var(--line);border-radius:15px}
#ec-refined .ft-board-card{border:2px solid #a7b89c;border-radius:11px;overflow:hidden;background:#fffefa;min-width:0}
#ec-refined .ft-board-card.then{border-color:#cbbd93}
#ec-refined .ft-board-card h3{margin:0;padding:18px;text-align:center;background:#e1ead9;font:750 1.7em/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:.06em;color:#253e34}
#ec-refined .ft-board-card.then h3{background:#eee4c9}
#ec-refined .ft-board-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#ec-refined .ft-board-card>p{margin:0;padding:12px 16px 24px;text-align:center;font-size:1.45em;font-weight:650;line-height:1.3;color:#253e34}
#ec-refined .ft-credit{margin:20px 0 0;text-align:center;font-size:.72em;color:#526b59}
#ec-refined .ft-credit span{white-space:nowrap}
#ec-refined .ft-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}
#ec-refined .ft-actions button{font-size:.9em;min-height:48px}
#ec-refined .ft-card-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px;background:#edf1e7}
#ec-refined .ft-card-preview>span{display:flex;flex-direction:column;background:#fffefa;border:1px solid #cad5bf;border-radius:8px;overflow:hidden}
#ec-refined .ft-card-preview b{display:block;background:#e1ead9;padding:9px 5px;text-align:center;color:#253e34;font-size:.83em;letter-spacing:.06em}
#ec-refined .ft-card-preview>span:nth-child(2) b{background:#eee4c9}
#ec-refined .ft-card-preview img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#ec-refined .ft-card-preview small{display:block;font-size:.7em;line-height:1.35;text-align:center;padding:2px 6px 12px;color:#253e34}
@media(max-width:620px){
 #ec-refined .ft-picker-grid{grid-template-columns:1fr;gap:18px}
 #ec-refined .ft-picker{padding:18px}
 #ec-refined .ft-step-label{font-size:1.45em;margin-bottom:12px}
 #ec-refined .ft-choice-preview{min-height:180px;margin-top:14px}
 #ec-refined .ft-choice-preview img{max-width:230px}
 #ec-refined .ft-choice-preview strong{font-size:1em}
 #ec-refined .ft-board{padding:10px}
 #ec-refined .ft-board-grid{gap:10px}
 #ec-refined .ft-board-card h3{padding:13px 6px;font-size:1.05em}
 #ec-refined .ft-board-card>p{font-size:.94em;padding:8px 7px 14px;overflow-wrap:break-word}
 #ec-refined .ft-credit{font-size:.63em;margin-top:15px}
 #ec-refined .ft-actions button{flex:1 1 145px}
}
@media print{
 #ec-refined .ec-first-then .lc-teaching{display:none!important}
 @page firstthen{margin:12mm}
 #ec-refined[data-first-then=true] main>.ec-first-then{display:block!important;max-width:none;margin:0}
 #ec-refined[data-first-then=true] .ec-first-then #ft-form,#ec-refined[data-first-then=true] .ft-result>h2,#ec-refined[data-first-then=true] .ft-actions,#ec-refined[data-first-then=true] .ft-feedback{display:none!important}
 #ec-refined[data-first-then=true] .ec-first-then[data-ft-stage=choose]::before{content:'Choose two activities and generate your First–Then board before printing.';display:block;font:16pt/1.5 Arial}
 #ec-refined .ft-board{page:firstthen;padding:0;border:0;border-radius:0;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #ec-refined .ft-board-grid{grid-template-columns:1fr 1fr;gap:5mm}
 #ec-refined .ft-board-card h3{font-size:25pt;padding:5mm;color:#253e34}
 #ec-refined .ft-board-card img{max-height:88mm;width:100%;height:auto;object-fit:contain}
 #ec-refined .ft-board-card>p{font-size:22pt;padding:4mm 3mm 6mm}
 #ec-refined .ft-credit{font-size:10pt;margin:5mm 0 0}
}
