.hm-pledge-admin,.hm-pledge-user{max-width:1150px;margin:0 auto;color:var(--text,#233149);line-height:1.85}
.hm-pledge-admin *,.hm-pledge-user *{box-sizing:border-box}
.hm-pledge-admin-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 0 22px}.hm-pledge-admin h1,.hm-pledge-user h1{font-size:clamp(22px,3vw,29px);margin:0 0 4px}.hm-pledge-admin-head small,.hm-pledge-user header small{color:var(--text-muted,#71809b)}
.hm-pledge-admin p,.hm-pledge-user header p{margin:4px 0 10px;color:var(--text-muted,#6d7b91)}
.hm-pledge-edition{padding:9px 14px;border:1px solid var(--border,#dce2e9);border-radius:14px;white-space:nowrap;background:var(--surface,#fff)}
.hm-pledge-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.hm-pledge-tabs button{border:1px solid var(--border,#d5deea);border-radius:13px;padding:10px 15px;background:var(--surface,#fff);color:inherit;font:inherit;font-weight:650;cursor:pointer}.hm-pledge-tabs button.is-current{background:#1a6674;color:#fff;border-color:#1a6674}
.hm-pledge-pane,.hm-pledge-section,.hm-rules-text{padding:clamp(15px,3vw,24px);border:1px solid var(--border,#dbe1e8);border-radius:20px;background:var(--surface,#fff);box-shadow:0 3px 14px #143c6010}
.hm-pledge-pane[hidden],.hm-pledge-detail[hidden],.hm-pledge-q[hidden]{display:none!important}
.hm-pledge-pane h2{font-size:20px;margin:0 0 2px}.hm-pledge-admin label{display:grid;gap:6px;font-weight:650}
.hm-pledge-admin textarea,.hm-pledge-admin input,.hm-pledge-admin select,.hm-pledge-q textarea,.hm-pledge-q input:not([type=radio]):not([type=checkbox]),.hm-pledge-q select{min-width:0;width:100%;background:var(--surface,#fff);color:inherit;border:1px solid var(--border,#d2dce8);border-radius:11px;padding:11px 12px;font:inherit}
.hm-pledge-admin textarea:focus,.hm-pledge-admin input:focus,.hm-pledge-admin select:focus,.hm-pledge-q :is(textarea,input,select):focus{outline:2px solid #3b9f9d;outline-offset:1px}
.hm-pledge-pane-head,.hm-pledge-bank-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.hm-pledge-bank-section{background:var(--surface-soft,#f7f9fc);border:1px solid var(--border,#dce4ed);border-radius:16px;padding:12px;margin:13px 0}.hm-pledge-bank-head input{flex:1;min-width:150px;font-weight:750;background:transparent}.hm-pledge-bank-question{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface,#fff);border:1px solid var(--border,#dce4ed);border-radius:12px;margin:7px 0;cursor:grab}.hm-pledge-bank-question b{font-size:14px;font-weight:650;flex:1}.hm-pledge-question-actions{display:flex;gap:5px;flex-wrap:wrap}.hm-small-btn,.hm-mini{font:inherit;border:1px solid var(--border,#d5dfea);border-radius:9px;padding:5px 9px;background:var(--surface,#fff);color:inherit;cursor:pointer;white-space:nowrap}.hm-small-btn.is-assigned{background:#dcf3ee;border-color:#a5d7c9;color:#166659}
.hm-pledge-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.hm-pledge-lane{border:2px dashed var(--border,#cbd8e4);border-radius:16px;background:var(--surface-soft,#f9fafc);padding:13px;min-height:180px}.hm-pledge-lane.is-over{background:#e3f5f1;border-color:#168c7c}.hm-pledge-lane h3{margin:0 0 12px}.hm-pledge-lane-question{display:flex;align-items:center;gap:6px;background:var(--surface,#fff);border-radius:10px;margin:7px 0;padding:8px;border:1px solid var(--border,#dde4eb);cursor:grab}.hm-pledge-lane-text{flex:1;font-size:13px;line-height:1.6}.hm-pledge-grip{color:#8291a0;font-size:20px}.hm-pledge-empty{font-size:13px;color:#748398}.hm-pledge-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:17px}.hm-pledge-dirty{margin-inline-end:auto;font-size:13px;color:#a46c32}.hm-pledge-admin #hmPledgePublish{display:flex;justify-content:flex-end;margin:8px 0 24px}
.hm-pledge-detail{position:fixed;top:4%;bottom:4%;left:clamp(6px,3vw,28px);width:min(460px,calc(100vw - 12px));overflow:auto;background:var(--surface,#fff);color:inherit;box-shadow:0 15px 60px #1b324555;border:1px solid var(--border,#d9e1ed);padding:20px;border-radius:20px;z-index:1100;display:grid;align-content:start;gap:12px}.hm-pledge-detail-head{display:flex;justify-content:space-between;align-items:center}.hm-pledge-detail-head h2{margin:0}.hm-pledge-detail-head button{border:0;background:transparent;font-size:30px;cursor:pointer;color:inherit}
.hm-pledge-preview-stage{display:flex;gap:8px;padding:12px 0}.hm-pledge-preview-item{padding:13px;margin:10px 0;background:var(--surface-soft,#f8fafc);border:1px solid var(--border,#dbe4ed);border-radius:13px;display:grid;gap:3px}.hm-pledge-preview-item small{color:#748198}.hm-pledge-preview-item p{font-size:13px}
.hm-pledge-user{max-width:790px}.hm-pledge-user header{margin:12px 0 20px}.hm-rules-text{white-space:pre-line;font-size:16px;line-height:2.4;margin-bottom:20px}.hm-pledge-action{display:block;margin:20px 0 25px;min-width:180px;max-width:100%;font-weight:750!important}.hm-pledge-section{min-width:0;margin-bottom:15px}.hm-pledge-section legend{padding:0 8px;font-weight:800;font-size:18px}.hm-pledge-q{padding:14px 0;border-bottom:1px solid var(--border,#e1e6ee)}.hm-pledge-q:last-child{border:0}.hm-pledge-q.has-error{background:#fff2f1;border-radius:10px;padding:12px}.hm-pledge-prompt{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:9px}.hm-pledge-prompt span{font-size:11px;color:#ae593f}.hm-pledge-choices{display:flex;gap:8px;flex-wrap:wrap}.hm-pledge-choice{display:inline-flex;align-items:center;gap:6px;background:var(--surface-soft,#f6f8fb);border:1px solid var(--border,#dce3ec);border-radius:10px;padding:8px 12px;cursor:pointer;line-height:1.7}.hm-pledge-choice input{width:17px;height:17px;accent-color:#258179}.hm-pledge-matrix-wrap{overflow:auto}.hm-pledge-matrix{border-collapse:collapse;width:100%;min-width:380px}.hm-pledge-matrix th,.hm-pledge-matrix td{border-bottom:1px solid var(--border,#e0e5ee);padding:10px;text-align:center}.hm-pledge-matrix th:first-child{text-align:right}.hm-pledge-matrix th{font-size:13px}.hm-pledge-matrix input{width:18px;height:18px;accent-color:#168e86}.hm-pledge-matrix-choice{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-width:36px;min-height:36px}.hm-pledge-matrix-choice-text{display:none}.hm-pledge-error{display:block;color:#af2733;font-size:13px;padding:6px 0}.hm-pledge-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-block:8px}
@media(max-width:700px){.hm-pledge-admin-head{align-items:flex-start;flex-direction:column}.hm-pledge-board{grid-template-columns:1fr}.hm-pledge-bank-question{align-items:stretch;flex-direction:column}.hm-pledge-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hm-pledge-tabs button{font-size:13px;padding:9px 3px}.hm-pledge-prompt{flex-direction:column;gap:2px}.hm-pledge-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hm-pledge-choice{font-size:13px;padding:8px}.hm-pledge-action{width:100%}.hm-pledge-detail{top:1%;bottom:1%;padding:14px}}
.hm-pledge-response-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px;margin-top:15px}.hm-pledge-response-link{display:grid;gap:2px;text-decoration:none;padding:12px;border:1px solid var(--border,#dde4ec);border-radius:12px;color:inherit}.hm-pledge-response-link:hover,.hm-pledge-response-link.is-active{background:var(--surface-soft,#edf7f4);border-color:#65ab9e}.hm-pledge-response-link small{color:#738298}.hm-pledge-response-stage{margin:18px 0;border-top:1px solid var(--border,#dae2eb);padding-top:12px}.hm-pledge-response-answer{padding:10px;border-bottom:1px solid var(--border,#e2e8f1);display:grid;gap:2px}.hm-pledge-response-answer small{color:#6c7a89}.hm-pledge-response-answer p{color:inherit;margin:0}.hm-pledge-response-answer ul{margin:0}.hm-pledge-user .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media print {.sidebar,.sidebar-backdrop,.hm-pledge-tabs,.hm-pledge-admin-head a,.hm-pledge-response-list{display:none!important}.hm-pledge-admin{max-width:none}.hm-pledge-pane{box-shadow:none;border:0}}
/* Responsive pledge matrix: each row becomes a compact question card; no horizontal scrolling. */
@media (max-width:700px){
  .hm-pledge-user,.hm-pledge-questionnaire,.hm-pledge-section,.hm-pledge-q{min-width:0;max-width:100%}
  .hm-pledge-prompt b{overflow-wrap:anywhere}
  .hm-pledge-matrix-wrap{width:100%;max-width:100%;min-width:0;overflow:visible!important}
  .hm-pledge-matrix,.hm-pledge-matrix tbody{display:block;width:100%;min-width:0!important;max-width:100%}
  .hm-pledge-matrix thead{display:none}
  .hm-pledge-matrix tbody tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr));gap:7px;padding:12px 0;border-bottom:1px solid var(--border,#dce3ec);width:100%;min-width:0}
  .hm-pledge-matrix tbody tr:last-child{border-bottom:0}
  .hm-pledge-matrix tbody th{grid-column:1/-1;display:block;min-width:0;white-space:normal!important;text-align:right!important;background:none!important;border:0!important;padding:0 2px 2px!important;font-size:14px;font-weight:750;overflow-wrap:anywhere}
  .hm-pledge-matrix tbody td{display:block;min-width:0;width:100%;border:0!important;padding:0!important;white-space:normal!important;background:transparent!important}
  .hm-pledge-matrix-choice{display:flex;justify-content:center;align-items:center;gap:8px;min-width:0;width:100%;min-height:46px;padding:8px 6px;border:1px solid var(--border,#d5dfea);border-radius:11px;background:var(--surface-soft,#f6f8fb);line-height:1.6;white-space:normal;overflow-wrap:anywhere}
  .hm-pledge-matrix-choice input{flex:0 0 auto;width:19px!important;height:19px!important;margin:0;accent-color:#168e86}
  .hm-pledge-matrix-choice-text{display:inline;color:inherit;font-size:13px;font-weight:700}
  .hm-pledge-matrix-choice:has(input:checked){background:#e3f5f1;border-color:#4daea0;color:#176d62}
  .hm-pledge-matrix-choice:focus-within{outline:2px solid #3b9f9d;outline-offset:1px}
}
