.mfd-survey{margin:28px 0;color:#362641}.mfd-survey>p,.mfd-survey-card>p{color:#756780;font-size:13px;line-height:1.6}.mfd-survey-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px}.mfd-survey-card{min-width:0;padding:22px;background:#fff;border:1px solid #e1dbe6;border-radius:10px;margin-bottom:18px}.mfd-survey-card h3{font-size:17px;line-height:1.5;margin:0;color:#4e008e}.mfd-survey-option{margin:18px 0}.mfd-survey-label{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:14px;line-height:1.5}.mfd-survey-label span{overflow-wrap:anywhere}.mfd-survey-label strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}.mfd-survey-track{height:9px;background:#eee8f4;border-radius:6px;margin-top:7px;overflow:hidden}.mfd-survey-track>div{height:100%;background:#4e008e;border-radius:6px}.mfd-survey-card svg{display:block;width:100%;max-width:800px;height:auto}.mfd-survey-card table{width:100%;text-align:left;border-collapse:collapse}.mfd-survey-card td,.mfd-survey-card th{padding:8px;border-bottom:1px solid #e1dbe6}.mfd-survey-card summary{cursor:pointer;color:#604673;font-size:13px}.mfd-survey-grid .mfd-survey-card{margin:0}@media(max-width:480px){.mfd-survey-card{padding:16px}.mfd-survey-label{flex-wrap:wrap;gap:4px}}
.mfd-survey-card{container-type:inline-size}@container(max-width:400px){.mfd-survey-card svg text{font-size:24px}}

.mfd-survey-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:14px;align-items:start}.mfd-survey-columns .mfd-survey-option{display:flex;flex-direction:column;min-width:0}.mfd-survey-columns .mfd-survey-track{order:-1;height:150px;width:100%;max-width:60px;align-self:center;display:flex;align-items:flex-end}.mfd-survey-columns .mfd-survey-track>div{width:100%}.mfd-survey-columns .mfd-survey-label{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;margin-top:8px}.mfd-survey-card table{table-layout:fixed;overflow-wrap:anywhere}
.mfd-survey-controls{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0}.mfd-survey-controls label{display:flex;flex-direction:column;gap:6px;flex:1 1 200px;font-size:13px}.mfd-survey-controls label[hidden]{display:none}.mfd-survey-controls select,.mfd-survey-controls input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:9px;font-size:16px;border:1px solid #d5cadf;border-radius:6px;background:white;color:#362641}.mfd-survey-actions,.mfd-survey-card-controls{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.mfd-survey-tools button{padding:9px 12px;border:1px solid #d5cadf;border-radius:6px;background:#fff;color:#4e008e;cursor:pointer}.mfd-survey-tools button:disabled{opacity:.5;cursor:default}.mfd-survey-tools .comparison>div{background:#cda177}.mfd-survey-tools blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0;padding:12px;border-left:3px solid #cda177;background:#faf8fc}.mfd-survey-report-scope{font-size:13px;color:#756780}.mfd-survey-card[hidden],.mfd-survey-grid[hidden]{display:none}
/* Print a standalone report in normal flow; hidden dashboard layout consumes no pages. */
#mfd-survey-print-root{display:none}
@media print{
 html:has(body.mfd-print-survey){margin:0!important;padding:0!important;height:auto!important;min-height:0!important}
 body.mfd-print-survey{margin:0!important;padding:0!important;height:auto!important;min-height:0!important;background:#fff!important}
 body.mfd-print-survey> :not(#mfd-survey-print-root){display:none!important}
 body.mfd-print-survey>#mfd-survey-print-root{display:block!important;position:static!important;width:auto;max-width:none;height:auto;min-height:0;margin:0;padding:0;color:#000;background:#fff}
 #mfd-survey-print-root .mfd-survey-grid{display:block}
 #mfd-survey-print-root .mfd-survey-card{break-inside:avoid;margin:0 0 18px;container-type:normal}
 #mfd-survey-print-root .mfd-survey-card:last-child{margin-bottom:0}
 #mfd-survey-print-root .mfd-survey-track{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

.mfd-survey-tools .mfd-survey-explore{display:inline-flex;align-items:center;justify-content:center;margin:4px 0 24px;padding:12px 20px;min-height:44px;background:#4e008e;border-color:#4e008e;color:#fff;font-size:14px;font-weight:600;box-shadow:0 3px 8px #35005d1a}
.mfd-survey-tools .mfd-survey-explore:hover{background:#390068;border-color:#390068}
.mfd-survey-tools button:focus-visible{outline:3px solid #cda177;outline-offset:3px}
.mfd-survey-control-panel{padding:22px;margin:18px 0 22px;border:1px solid #e1dbe6;border-radius:12px;background:#fff;box-shadow:0 2px 8px #35005d08}
.mfd-survey-control-panel .mfd-survey-controls{margin:0 0 18px;align-items:end}
.mfd-survey-control-panel .mfd-survey-actions{padding-top:16px;margin:0;border-top:1px solid #eee8f4}
.mfd-survey-control-panel [role=status]:empty{display:none}
.mfd-survey-tools .mfd-survey-card-controls{gap:6px;margin:12px 0 16px}
.mfd-survey-tools .mfd-survey-card-controls button{padding:5px 10px;min-height:30px;border:1px solid transparent;border-radius:999px;background:#f1ecf6;color:#604673;font-size:12px;font-weight:500;box-shadow:none}
.mfd-survey-tools .mfd-survey-card-controls button:hover{background:#e7dcef;border-color:#d5c4e3}
.mfd-survey-tools .mfd-survey-card-controls .mfd-survey-hide{background:transparent;color:#756780;border-color:#e1dbe6}
@media(max-width:480px){.mfd-survey-control-panel{padding:16px}.mfd-survey-tools .mfd-survey-explore{width:100%}}
@media(pointer:coarse){.mfd-survey-tools .mfd-survey-card-controls button{min-height:44px}}
.mfd-answer-builder{flex:1 1 100%;min-width:0;margin:0 0 8px;padding:16px;border:1px solid #e1dbe6;border-radius:8px;background:#faf8fc}.mfd-answer-builder legend{padding:0 6px;color:#4e008e;font-weight:600}.mfd-answer-builder>p,.mfd-written-hint{font-size:13px;color:#756780;line-height:1.6}.mfd-answer-builder>label{max-width:300px;margin:12px 0}.mfd-answer-builder>button{margin:8px 8px 0 0}.mfd-answer-row{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px 0;border-top:1px solid #e7e0ec}.mfd-answer-row label{flex:1 1 220px}.mfd-answer-row button{margin-bottom:1px}.mfd-written-hint{flex-basis:100%;margin:0}

.mfd-written-picker{flex:1 1 100%;min-width:0;border:1px solid #ded5e8;border-radius:10px;padding:16px}.mfd-written-picker legend{font-weight:700;color:#4b0082}.mfd-written-picker>label{display:flex;align-items:flex-start;gap:10px;margin:12px 0}.mfd-written-picker input[type=checkbox]{width:auto;min-height:0;margin-top:4px}.mfd-written-picker>button{margin:0 8px 8px 0}.mfd-written-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:16px 0}.mfd-written-search label{display:grid;gap:6px}

/* Keep checkbox rows horizontal despite the report's stacked field labels. */
.mfd-survey-controls .mfd-written-picker{margin:0;background:#faf8fc;padding:18px;box-sizing:border-box}
.mfd-written-picker legend{padding:0 6px;font-size:15px}
.mfd-written-picker>p{margin:4px 0 14px;color:#756780;font-size:13px;line-height:1.6}
.mfd-survey-controls .mfd-written-picker>label{display:flex;flex-direction:row;align-items:flex-start;flex:none;gap:12px;margin:6px 0;padding:12px;border:1px solid #e7e0ec;border-radius:7px;background:#fff;cursor:pointer;font-size:14px;line-height:1.5}
.mfd-survey-controls .mfd-written-picker>label:hover{border-color:#bda8cc}
.mfd-survey-controls .mfd-written-picker>label:has(input:checked){border-color:#ab8fc1;background:#f2ecf8}
.mfd-survey-controls .mfd-written-picker input[type=checkbox]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:2px 0 0;border-radius:3px;accent-color:#4e008e}
.mfd-written-picker>label>span{flex:1;min-width:0;overflow-wrap:anywhere}
.mfd-written-picker input:focus-visible{outline:2px solid #4e008e;outline-offset:3px}
.mfd-survey-controls>button[type=submit]{background:#4e008e;color:#fff;border-color:#4e008e;font-weight:600}
@media(max-width:480px){.mfd-survey-controls .mfd-written-picker{padding:12px}.mfd-survey-controls .mfd-written-picker>label{padding:10px}}

.mfd-base-controls{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0}.mfd-question-panel,.mfd-compare-panel{flex:1 1 100%;min-width:0;border:1px solid #ded5e8;border-radius:10px;padding:18px;margin:0;background:#faf8fc}.mfd-question-panel>legend,.mfd-compare-panel>summary{font-size:15px;font-weight:700;color:#4e008e;padding:0 6px}.mfd-compare-panel>summary{cursor:pointer}.mfd-question-panel>p,.mfd-compare-panel>p,.mfd-survey-actions>p{font-size:13px;color:#756780;line-height:1.6}.mfd-question-panel .mfd-written-picker{border:0;padding:0;background:transparent;margin:16px 0}.mfd-question-panel h3{font-size:14px}.mfd-survey-actions>p{flex-basis:100%;margin:0}.mfd-base-controls label[hidden]{display:none!important}.mfd-survey-report-scope{padding:14px;background:#f2ecf8;border-radius:8px;line-height:1.7}

#pd-filters[hidden],#mfd-filters[hidden]{display:none!important}

/* Consistent dashboard controls in Safari, Chrome, and Firefox. */
:is(#pd-app,#mfd-app) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){-webkit-appearance:none;appearance:none;box-sizing:border-box;min-height:44px;border:1px solid #d5cadf;border-radius:6px;background-color:#fff;color:#362641;font-family:inherit;font-size:16px;font-weight:400;line-height:1.4;padding:10px 12px;box-shadow:none;color-scheme:light}
:is(#pd-app,#mfd-app) select{padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236c587b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
:is(#pd-app,#mfd-app) select[multiple]{background-image:none;padding-right:12px}
:is(#pd-app,#mfd-app) input[type=date]{min-width:155px;text-align:left}
:is(#pd-app,#mfd-app) input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
:is(#pd-app,#mfd-app) input::-webkit-datetime-edit{padding:0}
:is(#pd-app,#mfd-app) input[type=search]::-webkit-search-decoration{-webkit-appearance:none}
:is(#pd-app,#mfd-app) input::placeholder{color:#8b7e96;opacity:1}
:is(#pd-app,#mfd-app) :is(input,select,textarea):disabled{background-color:#f5f2f7;color:#877b90;-webkit-text-fill-color:#877b90;opacity:1;cursor:not-allowed}
:is(#pd-app,#mfd-app) input[type=checkbox]{-webkit-appearance:none;appearance:none;display:inline-grid;place-content:center;box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:2px 0 0;border:1px solid #a89ab3;border-radius:4px;background:#fff;box-shadow:none;vertical-align:middle;cursor:pointer}
:is(#pd-app,#mfd-app) input[type=checkbox]::before{content:'';display:block;width:10px;height:6px;margin:-2px 0 0;border:solid white;border-width:0 0 2px 2px;transform:rotate(-45deg);visibility:hidden}
:is(#pd-app,#mfd-app) input[type=checkbox]:checked{background:#4e008e;border-color:#4e008e}
:is(#pd-app,#mfd-app) input[type=checkbox]:checked::before{visibility:visible}
:is(#pd-app,#mfd-app) :is(input,select,textarea):focus-visible{outline:2px solid #854ab0;outline-offset:2px;border-color:#854ab0}
@media(forced-colors:active){:is(#pd-app,#mfd-app) input[type=checkbox]{appearance:auto;-webkit-appearance:auto}:is(#pd-app,#mfd-app) input[type=checkbox]::before{display:none}}

/* Reserve the arrow area even when the selected question is very long. */
:is(#pd-app,#mfd-app) select:not([multiple]){box-sizing:border-box;min-width:0;max-width:100%;padding-right:48px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background-position:right 14px center}
:is(#pd-app,#mfd-app) :is(.filters,.mfd-toolbar,.mfd-survey-controls,.mfd-base-controls,.mfd-answer-row) label{min-width:0}
:is(#pd-app,#mfd-app) :is(.filters,.mfd-toolbar,.mfd-survey-controls,.mfd-base-controls,.mfd-answer-row) select{width:100%}

/* Opaque arrow gutter prevents Safari's native selected text painting beneath it. */
:is(#pd-app,#mfd-app) .mfd-select-label{display:block;position:relative;min-width:0;max-width:100%;width:100%;border-radius:6px}
:is(#pd-app,#mfd-app) .mfd-select-label select{display:block;width:100%;background-image:none;padding-right:48px!important}
.mfd-select-arrow{position:absolute;right:1px;bottom:1px;height:42px;width:40px;border-radius:0 5px 5px 0;background:#fff;pointer-events:none;display:grid;place-items:center}
.mfd-select-arrow::after{content:'';width:7px;height:7px;border-right:1.5px solid #6c587b;border-bottom:1.5px solid #6c587b;transform:translateY(-2px) rotate(45deg)}
select:disabled+.mfd-select-arrow{background:#f5f2f7}
@media(forced-colors:active){.mfd-select-arrow{background:Canvas}.mfd-select-arrow::after{border-color:CanvasText}}

/* Separate written responses from the preceding chart grid. */
.mfd-survey-report-output > .mfd-survey-grid + .mfd-survey-card{margin-top:18px}
