/* 问卷二维码 */
#questionnaireQrCtl { position: absolute; top: 146px; right: 70px; z-index: 22;
  width: min(620px, calc(100vw - 100px)); max-height: calc(100vh - 170px); padding: 0 16px 14px;
  border: 1px solid #dce7e2; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgba(15,23,42,.24); }
#questionnaireQrCtl.hidden { display: none; }
.qr-head { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border-bottom: 1px solid #edf0ef; }
.qr-head span { color: #1f2937; font-size: 14px; font-weight: 700; }
.qr-head button { width: 26px; height: 26px; border: none; background: transparent; color: #718078; font-size: 20px; cursor: pointer; }
.qr-head button:hover { color: #176149; }
.qr-body { display: flex; align-items: center; justify-content: center; min-height: 340px; padding: 14px 0 8px; overflow: hidden; }
.qr-body img { display: block; width: 100%; height: auto; max-height: calc(100vh - 250px); object-fit: contain; }
.qr-caption { color: #68756f; font-size: 12px; line-height: 1.5; text-align: center; }
.qr-loading { display: flex; flex-direction: column; align-items: center; gap: 9px; color: #75817c; font-size: 11px; }
.qr-loading i { width: 20px; height: 20px; border: 2px solid #dce7e2; border-top-color: #2f8a68; border-radius: 50%; animation: qn-spin .8s linear infinite; }
.qr-unavailable { display: flex; flex-direction: column; gap: 5px; padding: 14px; color: #7a5a17; text-align: center; line-height: 1.5; }
.qr-unavailable b { font-size: 13px; }
.qr-unavailable span { font-size: 11px; }
@media (max-width: 760px), (max-height: 620px) {
  #questionnaireQrCtl { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 86px); }
  .qr-body { min-height: 0; }
  .qr-body img { max-height: calc(100vh - 180px); }
}

/* 独立民意问卷分析页 */
#questionnairePanel {
  position: absolute;
  z-index: 18;
  left: calc(var(--sb) + clamp(8px, 1.5vw, 24px));
  right: clamp(8px, 1.5vw, 24px);
  top: 30px;
  bottom: 28px;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}
#questionnairePanel.hidden { display: none; }
.qn-panel-head {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #d9e2ec;
  background: #fff;
}
.qn-panel-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 6px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 18px;
}
.qn-panel-title { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.qn-panel-title b { color: #172033; font-size: 20px; line-height: 1.2; }
.qn-panel-title span { margin-top: 2px; color: #64748b; font-size: 12px; }
#questionnaireAnalysisExport {
  margin-right: 10px;
  padding: 8px 13px;
  border: 1px solid #bed0eb;
  border-radius: 5px;
  background: #fff;
  color: #245ca6;
  cursor: pointer;
}
#questionnaireAnalysisClose {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
}
.qn-panel-content { height: calc(100% - 59px); padding: 16px; overflow: auto; }
.qn-panel-content .sp-city-questionnaire {
  min-height: calc(100% - 34px);
  margin: 0;
  padding: 18px;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  background: #fff;
}
.qn-panel-content .qn-loading { min-height: 220px; justify-content: center; }
@media (max-width: 760px) {
  #questionnairePanel { position: fixed; inset: 8px; border-radius: 6px; }
  .qn-panel-head { padding: 0 10px; }
  .qn-panel-title b { font-size: 17px; }
  .qn-panel-content { padding: 10px; }
}
