.balance-survey{max-width:980px;min-width:0;display:grid;gap:22px;color:var(--text)}
.balance-survey-heading{display:grid;gap:12px}
.balance-survey-heading>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.balance-survey-heading h2{font-size:23px;line-height:1.5;margin:0}
.balance-survey-heading p{font-size:14px;line-height:1.8;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-state{font-size:12px;white-space:nowrap;padding:4px 9px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}
.balance-survey-privacy{padding:13px 16px;background:var(--panel);border-left:3px solid var(--teal);border-radius:4px}
.balance-survey-help,.balance-survey-response-type{font-size:13px;color:var(--muted);line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-warning{font-size:12px;color:var(--danger);line-height:1.7;margin:8px 0 10px;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-tabs{display:flex;gap:8px;flex-wrap:wrap}
.balance-survey-form{display:grid;gap:22px}
.balance-survey-form-status,.balance-survey-results-summary{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.balance-survey-form-status [data-balance-progress],.balance-survey-results-summary strong{color:var(--text);font-weight:650;font-variant-numeric:tabular-nums}
.balance-survey-question{min-width:0;margin:0;padding:20px 22px 22px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.balance-survey-question legend{padding:0 6px;font-size:15px;font-weight:650;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere;max-width:100%}
.balance-survey-question .balance-survey-response-type{margin:7px 0 12px;font-size:12px}
.balance-survey-options,.balance-survey-number{display:grid;gap:9px}
.balance-survey-option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--bg);font-size:14px;line-height:1.7;cursor:pointer;min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-option:has(input:checked){border-color:var(--teal);background:var(--panel2)}
.balance-survey-option input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;padding:0;accent-color:var(--teal)}
.balance-survey-option span{min-width:0}
.balance-survey input[type=number]{width:150px;max-width:100%;font-size:16px}
.balance-survey textarea{font:inherit;line-height:1.8;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:7px;resize:vertical;padding:12px;width:100%;min-width:0}
.balance-survey textarea:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.balance-survey-number-label{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;font-size:14px;margin:2px 0 7px}
.balance-survey-number-input{display:flex;align-items:center;gap:9px;min-width:0}
.balance-survey-presets{display:flex;gap:8px;flex-wrap:wrap}
.balance-survey-presets .button[aria-pressed=true]{border-color:var(--teal);color:var(--teal)}
.balance-survey-ranking{display:grid;gap:12px}
.balance-survey-ranking-list{display:grid;gap:8px}
.balance-survey-rank-option{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:12px;text-align:left;font:inherit;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere;min-width:0}
.balance-survey-rank-option[aria-pressed=true]{border-color:var(--teal);background:var(--panel2)}
.balance-survey-rank-option>span:last-child{min-width:0}
.balance-survey-rank{display:inline-grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:5px;background:var(--panel2);font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--muted)}
.balance-survey-rank-option[aria-pressed=true] .balance-survey-rank{background:var(--teal);color:var(--bg)}
.balance-survey-ranking-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.balance-survey-ranking-actions .balance-survey-option{border:0;background:transparent;padding:8px 0}
.balance-survey-submit{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px}
.balance-survey-error,.balance-survey-validation{color:var(--danger);font-size:13px;line-height:1.7}
.balance-survey-error{padding:12px 15px;border:1px solid var(--danger);border-radius:7px;overflow-wrap:anywhere}
.balance-survey-message{padding:12px 15px;border:1px solid var(--teal);border-radius:7px;font-size:13px;color:var(--text)}
.balance-survey-validation{margin-top:10px}
.balance-survey-question.is-incomplete{border-color:var(--danger)}
.balance-survey-loading{font-size:13px;color:var(--muted)}
.balance-survey-results{display:grid;gap:20px}
.balance-survey-result-question{padding:20px 22px;border:1px solid var(--line);border-radius:10px;background:var(--panel);display:grid;gap:14px;min-width:0}
.balance-survey-result-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px 20px;flex-wrap:wrap}
.balance-survey-result-heading h3{font-size:15px;font-weight:650;line-height:1.7;flex:1;min-width:180px;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-result-heading>span{font-size:12px;color:var(--muted);white-space:nowrap}
.balance-survey-result-bars{display:grid;gap:14px}
.balance-survey-result-row{display:grid;gap:6px;min-width:0}
.balance-survey-result-label{display:flex;justify-content:space-between;align-items:flex-start;gap:8px 16px;font-size:13px;line-height:1.7}
.balance-survey-result-label span{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-result-label strong{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.balance-survey-result-track{height:7px;border-radius:3px;background:var(--panel2);overflow:hidden}
.balance-survey-result-fill{height:100%;background:var(--teal);border-radius:3px}
.balance-survey-number-results{display:grid;gap:13px;font-size:13px}
.balance-survey-ranking-results{margin:0;padding-left:24px;display:grid;gap:12px}
.balance-survey-ranking-results li{padding-left:4px;font-size:13px;line-height:1.8}
.balance-survey-ranking-results li>span{display:block;word-break:keep-all;overflow-wrap:anywhere}
.balance-survey-ranking-results strong{font-weight:600;margin-right:12px;font-variant-numeric:tabular-nums}
.balance-survey-ranking-results small{color:var(--muted);display:block;font-size:12px}
.balance-survey-raw{border-top:1px solid var(--line);padding-top:20px;display:grid;gap:16px}
.balance-survey-raw-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.balance-survey-raw-actions select{max-width:100%;font-size:16px}
.balance-survey-response-detail{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.balance-survey-response-detail h3{margin-bottom:8px}
.balance-survey-response-detail dl{margin:18px 0 0;display:grid;gap:9px}
.balance-survey-response-detail dt{font-size:14px;font-weight:650;line-height:1.7;overflow-wrap:anywhere}
.balance-survey-response-detail dd{font-size:13px;line-height:1.8;white-space:pre-wrap;margin:0 0 14px;padding-left:12px;border-left:2px solid var(--line);overflow-wrap:anywhere}
@media(max-width:650px){.balance-survey{gap:18px}.balance-survey-heading h2{font-size:20px}.balance-survey-question{padding:16px 13px}.balance-survey-question legend{font-size:14px}.balance-survey-option{padding:10px;font-size:14px}.balance-survey-result-question{padding:16px 14px}.balance-survey-submit{align-items:stretch}.balance-survey-submit .button{width:100%}.balance-survey-result-label{flex-wrap:wrap;gap:2px 12px}.balance-survey-result-label strong{margin-left:auto}.balance-survey-ranking-actions{justify-content:space-between}.balance-survey-form-status{align-items:flex-start;flex-direction:column;gap:5px}.balance-survey-raw-actions{align-items:stretch;flex-direction:column}}
