:root{font:16px/1.55 system-ui,sans-serif;color:#172033;background:#f2f5f9}*{box-sizing:border-box}body{margin:0}header,footer{padding:1rem max(1rem,calc((100% - 900px)/2));background:#142740;color:white;display:flex;justify-content:space-between;gap:1rem}header a{color:white}main{max-width:900px;margin:1.5rem auto;padding:0 1rem}.card,.guide{background:#fff;border-radius:1rem;padding:clamp(1rem,4vw,2rem);box-shadow:0 8px 25px #16294712}h1{line-height:1.2}textarea,input,select,button{font:inherit;padding:.7rem;border:1px solid #aab5c4;border-radius:.45rem}textarea{width:100%;resize:vertical;font:1rem/1.6 ui-monospace,monospace}button{background:#155eef;color:white;border:0;cursor:pointer;margin:.3rem 0}.actions,.screen-actions{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:.8rem 0}form>label,.grid label{display:grid;gap:.3rem}form>button{width:100%}.toggle{display:flex;align-items:center;gap:.5rem}.error{color:#b42318}.note{background:#fff7e6;padding:.8rem;border-radius:.5rem}.guide{margin:1rem 0}.ad-slot{min-height:90px;text-align:center;padding:1rem;color:#65748b}#output{margin-top:1rem;border-top:1px solid #d0d5dd;padding-top:1rem}#questions li,#answers li{padding:.65rem 0;border-bottom:1px solid #eaecf0;min-height:3rem}#questions{padding-inline-start:2.5rem}.answer-line{letter-spacing:.06em}#answer-section{break-before:page}dialog{border:0;border-radius:1rem;max-width:min(95vw,520px)}dialog::backdrop{background:#1119}#share-choices{display:flex;gap:.4rem;flex-wrap:wrap}canvas{max-width:100%}[hidden]{display:none!important}@media(max-width:520px){.grid{grid-template-columns:1fr}}@media print{@page{margin:16mm}body{background:#fff;color:#000;font:12pt/1.4 Georgia,serif}header,footer,.actions,form,.guide,.ad-slot,.note,.screen-actions,dialog,#error,#install-help{display:none!important}main{max-width:none;margin:0;padding:0}.card{padding:0;box-shadow:none;border:0}#output{border:0;margin:0;padding:0}#answer-section{break-before:page}.answer-line{display:inline-block;min-width:65mm;border-bottom:1px solid #333;color:transparent}h2{margin-top:0}#questions li,#answers li{min-height:12mm;border-color:#aaa}}
