.choice-field{margin:14px 0;border:1px solid #cfdddd;border-radius:12px;padding:14px;min-width:0}.choice-field legend{font-weight:700;padding:0 7px}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;max-height:230px;overflow:auto}.choice-grid label.checkbox{margin:0;font-weight:500;align-items:flex-start}.choice-grid input{width:18px;height:18px;flex:none}.term-list{max-height:280px;overflow:auto;display:grid;gap:6px}.term-list .row{padding:6px;border-bottom:1px solid #edf1f1}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px}.template-grid img{width:100%;height:275px;object-fit:contain;background:#edf3f3;border-radius:12px}.template-grid h2{font-size:19px;margin-top:16px}.chosen-photo{width:100%;max-height:160px;object-fit:contain}.template-choices .panel{padding:12px}.hub-settings{margin-top:24px}.hub-settings details{margin:18px 0}.hub-settings summary{font-weight:700;cursor:pointer}.hub-settings code{overflow-wrap:anywhere}.small-dialog{max-height:90vh;overflow:auto}.small-dialog form{min-width:0}fieldset small{display:block;margin-top:10px;color:#49626a}

.grid2>.choice-field{grid-column:1/-1}.choice-grid label span{overflow-wrap:anywhere;min-width:0}.template-choices select{max-width:100%}
@media(max-width:650px){.grid2{grid-template-columns:minmax(0,1fr)!important}.choice-grid{grid-template-columns:minmax(0,1fr)}.hub-settings .two-panels{display:block}.pagehead>button{flex-shrink:0}.choice-field{padding:12px}}
