:root{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#25343c;background:#f4f6f6;font-size:16px;line-height:1.75;color-scheme:light;--accent:#1a6668;--line:#dce4e5}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid #b8cbcd;border-radius:7px;background:white;color:#27464c;padding:10px 18px}button:hover{background:#eef5f5}button:disabled{opacity:.5;cursor:default}button.primary{color:#fff;background:var(--accent);border-color:var(--accent);font-weight:600;min-width:155px}a{color:var(--accent)}:focus-visible{outline:3px solid #d59829;outline-offset:3px}.top{position:sticky;top:0;background:#fff;z-index:5;border-bottom:1px solid var(--line)}.top-inner{max-width:1040px;margin:auto;display:flex;justify-content:space-between;padding:13px 20px;font-size:14px}.track{height:3px;background:#edf1f1}#progress-bar{height:3px;width:0;background:var(--accent);transition:width .15s}.panel,.questions{max-width:780px;margin:28px auto;background:#fff;padding:30px;border:1px solid var(--line);border-radius:12px}h1{font-size:25px;line-height:1.5;margin:0 0 18px}p{margin:12px 0}.subtle{color:#667780;font-size:14px}.checks label{display:block;margin:15px 0}.checks input{width:20px;height:20px;vertical-align:middle;margin-right:10px;accent-color:var(--accent)}.actions{margin-top:24px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.intro{max-width:1000px;margin:20px auto 12px;padding:0 18px}.card-stage{width:100%;max-width:1000px;margin:auto;background:white;overflow-x:auto;line-height:0;border:1px solid var(--line);min-height:100px}.card-stage.mobile{max-width:375px}.card-stage iframe{border:0;display:block;margin:auto;background:white;width:1000px;height:700px}.card-stage.mobile iframe{width:100%;height:700px}.questions{margin-top:24px}.scale-note{background:#f1f6f6;padding:12px 16px;border-radius:6px;font-size:14px;margin:0 0 20px}.rating{border:0;padding:20px 0;margin:0;border-bottom:1px solid var(--line)}.rating legend{font-weight:600;float:left;width:100%;margin-bottom:13px}.choices{clear:both;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.choice{position:relative;display:flex;align-items:center;justify-content:center;min-height:46px;cursor:pointer}.choice input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.choice span{display:flex;align-items:center;justify-content:center;border:1px solid #becdd0;background:#fff;border-radius:6px;width:100%;min-height:46px;line-height:1.25;padding:8px}.choice input:checked+span{background:#e3f0ee;border-color:var(--accent);color:#105659;box-shadow:inset 0 0 0 1px var(--accent);font-weight:700}.choice input:focus-visible+span{outline:3px solid #d59829;outline-offset:2px}.choice.unknown{grid-column:1/-1;max-width:150px;margin-top:3px}.choice.unknown span{min-height:38px;font-size:14px}.end-labels{display:flex;justify-content:space-between;color:#6c7880;font-size:12px;margin:5px 0}.error{color:#a03327}.load-status{max-width:780px;margin:12px auto;padding:0 18px;font-size:14px;color:#52666d}#message{max-width:780px;margin:15px auto;color:#983629;padding:0 18px;min-height:0}.bottom{max-width:1000px;margin:28px auto;padding:18px;color:#6b787e;font-size:13px;display:flex;gap:20px;justify-content:space-between;align-items:center;border-top:1px solid var(--line)}.bottom button{padding:5px 10px;font-size:13px}.bg-field{margin-bottom:20px}.bg-field label{display:block;font-weight:600;margin-bottom:7px}select{border:1px solid #bccdd0;border-radius:6px;padding:10px;background:white;max-width:100%;width:100%}.id{font-family:monospace;font-size:15px;word-break:break-all}dialog{border:0;border-radius:8px;padding:0;width:96vw;max-width:96vw;max-height:94vh}dialog::backdrop{background:#17252cdd}.zoom-head{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:white}.zoom-stage{overflow:auto;max-height:calc(94vh - 70px);background:#f4f6f6;padding:10px}.zoom-stage img{display:block;max-width:none;height:auto;margin:auto}.review-wrap{max-width:1080px;margin:25px auto;padding:0 20px}.review-wrap .panel{max-width:none}.stats{display:flex;gap:30px;flex-wrap:wrap}.stats strong{display:block;font-size:28px;color:var(--accent)}table{border-collapse:collapse;font-size:14px;width:100%}td,th{text-align:left;border-bottom:1px solid var(--line);padding:9px}.table-wrap{overflow:auto}.links{display:flex;gap:20px;flex-wrap:wrap}
@media(max-width:800px){.panel,.questions{margin:16px 12px;padding:22px 16px;border-radius:8px}.intro{margin-top:16px;font-size:15px}.choices{gap:4px}.choice span{padding:6px 2px}.rating legend{font-size:15px}h1{font-size:22px}.bottom{margin:18px 12px;padding:16px 0;flex-wrap:wrap}.top-inner{padding:11px 16px}.questions .primary{width:100%}.card-stage{border-inline:0}.scale-note{padding:10px;font-size:13px}}

/* Keep readable card text; only its embedded map shrinks to fit the pane. */
.top-inner{align-items:center;gap:8px}.top-actions,.zoom-actions{display:flex;align-items:center;gap:10px}.top-actions button{font-size:13px;padding:4px 9px}
.trial-layout{max-width:1000px;margin:20px auto}.stimulus-pane{min-width:0;min-height:0}.stimulus-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-shrink:0}.stimulus-toolbar strong{font-size:16px}.stimulus-toolbar button{font-size:13px;padding:6px 12px}.reading-actions{display:flex;justify-content:center;margin:20px auto}.reading-actions[hidden],#ratings[hidden]{display:none}
.answering-page{overflow:hidden}.answering-page body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.answering-page .top{flex-shrink:0}.answering-page .top-inner{max-width:1600px}.answering-page #app{display:flex;flex-direction:column;flex:1;min-height:0}.answering-page #message{flex-shrink:0;margin:4px auto}.answering-page #message:empty{display:none}.answering-page .bottom{flex-shrink:0;width:100%;max-width:1600px;margin:0 auto;padding:8px 24px;gap:8px;border-top:0;font-size:12px;flex-wrap:nowrap}.answering-page .bottom button{padding:4px 8px;font-size:12px;white-space:nowrap}
.trial-layout.answering{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(400px,1fr);grid-template-rows:minmax(0,1fr);gap:24px;flex:1;min-height:0;max-width:1600px;width:calc(100% - 48px);margin:12px auto}
.answering .stimulus-pane{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;overflow:hidden}
.answering .card-stage{position:relative;flex:1;min-height:0;max-width:none;width:100%;margin:0;border:0;overflow:hidden;background:#fff}.answering .card-stage iframe{position:absolute;transform-origin:top left;margin:0}
.answering .load-status{padding:0;margin:8px 0 0;font-size:12px;flex-shrink:0}
.trial-layout .questions{min-width:0;min-height:0;max-width:none;width:100%;margin:0;padding:22px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:18px}.answer-instruction{margin:0 0 14px;font-size:14px;color:#52666d}.trial-layout .choices{gap:5px}.trial-layout .choice span{padding-inline:2px}.trial-layout .rating{padding-block:16px}
.zoom-head{gap:8px}.zoom-actions button{padding:7px 11px;font-size:14px}.zoom-stage{overscroll-behavior:contain}.zoom-stage img{max-width:100%;max-height:calc(94vh - 95px);width:auto;height:auto;object-fit:contain}.zoom-stage.actual-size img{max-width:none;max-height:none}
html.rating-page{scroll-padding-top:calc(var(--header-height,54px) + 16px)}
@media(max-width:979px){.trial-layout.answering{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(140px,62%) minmax(0,1fr);gap:8px;width:calc(100% - 24px);margin:8px auto}.answering .stimulus-pane{padding:8px}.stimulus-toolbar{margin-bottom:6px}.stimulus-toolbar strong{font-size:14px}.stimulus-toolbar button{font-size:12px;padding:4px 10px}.trial-layout .questions{padding:16px}.answering-page .bottom{padding:5px 12px;font-size:11px}.trial-layout:not(.answering){margin:16px 12px}.zoom-head{padding:8px 10px;font-size:14px}.zoom-actions{gap:6px}.zoom-actions button{padding:6px 8px;font-size:13px}}
@media(max-height:500px){.zoom-stage img{max-height:calc(94vh - 85px)}}

/* Stable actions, compact optional instructions and readable small-screen panes. */
[hidden]{display:none!important}
.recovery{flex-shrink:0;margin:6px auto;padding:10px 14px;max-width:780px;width:calc(100% - 24px);background:#fff4df;border:1px solid #dbc08b;border-radius:8px;font-size:14px}
.recovery p{margin:0 0 8px}.recovery button{padding:6px 12px;font-size:14px}
.trial-layout .questions{padding:0;display:flex;flex-direction:column;overflow:hidden}
.rating-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:12px;padding:18px 22px 8px}
.rating-help{font-size:14px;margin:0 0 8px}.rating-help summary{cursor:pointer;color:#52666d;padding:3px 0}
.rating-help[open] summary{margin-bottom:8px}.rating-help .scale-note{margin-bottom:4px}
.answer-footer{flex-shrink:0;display:flex;gap:8px;align-items:center;justify-content:space-between;padding:10px 18px;border-top:1px solid var(--line);background:white}
.answer-footer span{font-size:13px;color:#52666d;white-space:nowrap}.answer-footer .primary{padding:8px 14px;width:auto;min-width:140px}
.card-more{flex-shrink:0;visibility:hidden;border:0;border-radius:0;padding:0;font-size:12px;line-height:24px;color:#52666d;background:#f3f7f7;width:100%}
.card-more:hover{background:#e8f1f1}
.load-actions{padding:20px;overflow-y:auto;min-height:0;font-size:14px}.load-actions h2{font-size:18px;margin:0 0 8px}.load-actions p{margin:0 0 12px}.load-actions .actions{margin-top:10px}
.load-failed .questions{justify-content:center}.load-failed .card-more{display:none}
@media(max-width:979px){
 .trial-layout.answering{grid-template-rows:minmax(140px,1.25fr) minmax(225px,1fr)}
 .rating-scroll{padding:8px 14px 6px}.rating-help{font-size:13px;margin:0 0 4px}.rating-help summary{padding:0;line-height:22px}
 .trial-layout .rating{padding:8px 0}.rating legend{margin-bottom:8px}.trial-layout .choices{gap:4px}
 .answer-footer{padding:6px 12px}.answer-footer .primary{padding:7px 12px;min-width:135px;font-size:14px}
 .answer-footer span{font-size:12px}.load-actions{padding:12px}.load-actions .actions{gap:8px}
 .load-actions button{padding:7px 10px;font-size:14px}
}
@media(max-width:699px) and (max-height:650px){
 .trial-layout.answering{grid-template-rows:minmax(100px,1fr) minmax(215px,1.15fr);gap:6px;margin:5px auto}
 .answering .stimulus-pane{padding:5px}.top-inner{padding:7px 10px;font-size:12px}.top-actions{gap:5px}.top-actions button{font-size:12px;padding:3px 7px}
 .answering-page .bottom{padding:3px 10px}.card-more{line-height:20px}
 .load-failed.trial-layout.answering{grid-template-rows:minmax(70px,.6fr) minmax(230px,1.4fr)}
}
@media(min-width:700px) and (max-height:500px){
 .trial-layout.answering{grid-template-columns:minmax(0,1fr) minmax(320px,1fr);grid-template-rows:minmax(0,1fr);gap:10px;margin:6px auto}
 .rating-scroll{padding:8px 12px}.answer-footer{padding:5px 10px}.answering .stimulus-pane{padding:6px}
 .top-inner{padding:7px 14px}.answering-page .bottom{padding:3px 12px}
}

/* Seven discrete ratings with native form validation and vertical scroll gestures. */
.score-rail{position:relative;gap:0!important;touch-action:pan-y;user-select:none;padding-top:4px}
.score-line{position:absolute;left:7.142857%;right:7.142857%;top:14px;height:4px;border-radius:2px;background:#dce5e5;pointer-events:none}
.score-line i{display:block;height:100%;background:var(--accent);border-radius:2px;width:0}
.score-rail .choice{min-height:44px;touch-action:pan-y}
.score-rail .choice input{inset:0;touch-action:pan-y}
.score-rail .choice span{position:absolute;top:25px;min-height:0;height:18px;font-size:13px;line-height:18px;padding:0;border:0;border-radius:0;background:transparent;pointer-events:none}
.score-rail .choice span::before{content:"";position:absolute;left:50%;top:-17px;transform:translateX(-50%);width:8px;height:8px;background:#9bafb1;border-radius:50%}
.score-rail .choice input:checked+span{box-shadow:none;background:transparent;color:#105659;font-weight:700}
.score-rail .choice input:checked+span::before{width:20px;height:20px;top:-23px;background:var(--accent);border:3px solid white;box-shadow:0 0 0 1px var(--accent)}
.score-rail .choice input:focus-visible+span{outline:0}
.score-rail .choice input:focus-visible+span::before{outline:3px solid #d59829;outline-offset:3px}
.score-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;clear:both}
.score-value{font-size:13px;color:#52666d;min-width:0}
.score-meta .choice.unknown{min-height:32px;margin:0;flex:0 0 90px;max-width:none}
.score-meta .choice.unknown span{min-height:32px;font-size:12px;padding:4px 8px}
.trial-layout .rating legend{margin-bottom:5px}
.trial-layout .end-labels{margin:0 0 5px}
 html.answering-page{overflow:visible}
 .answering-page body{height:auto;min-height:100vh;min-height:100dvh;display:block;overflow:visible}
 .answering-page #app{display:block}
 .trial-layout.answering{display:block;max-width:1000px;width:calc(100% - 40px);margin:20px auto}
 .answering .stimulus-pane{display:block;padding:8px;overflow:visible}
 .answering .card-stage{display:block;overflow:hidden;min-height:100px}
 .answering .card-stage #card-frame{position:relative}
 .answering .card-more{display:none!important}
 .trial-layout .questions{margin-top:12px;overflow:visible}
 .rating-scroll{overflow:visible;padding:12px 14px 8px}
 .trial-layout .rating{padding:10px 0}
 .rating-help{margin-bottom:4px}
 .answer-footer{padding:10px 12px;border-radius:0 0 8px 8px}
 .answering-page .bottom{padding:8px 12px 14px;flex-wrap:wrap}
 .answering-page #message:not(:empty){padding:8px 12px}
 .load-failed .stimulus-pane{display:none}
 .load-actions{padding:16px}

@media(max-width:979px){
 .trial-layout.answering{width:calc(100% - 24px);margin:12px auto}
 .top-inner{gap:5px;padding:9px 12px;font-size:12px}
 .top-actions{gap:6px}.top-actions button{padding:4px 6px;font-size:12px}
}

/* Endpoints flank the rail on the same line. */
.score-control{clear:both;display:grid;grid-template-columns:18px minmax(0,1fr) 18px;gap:4px;align-items:center}
.score-endpoint{font-size:14px;line-height:44px;text-align:center;color:#27464c}
.score-rail{padding-top:0}
.score-line{top:20px}
.score-rail .choice span::before{top:-7px}
.score-rail .choice input:checked+span::before{top:-13px}

/* Instruction checks share the map-rating rail and its interactions. */
.attention-panel .rating{padding:10px 0}.attention-panel .rating legend{margin-bottom:5px}
.attention-help{margin-top:22px;font-size:13px;color:#52666d}.attention-help summary{cursor:pointer}.attention-panel .actions{margin-top:20px}
.panel a{overflow-wrap:anywhere}

/* The save footer supplies the final separator. */
.rating-scroll > .rating:last-of-type{border-bottom:0}

/* Registered website identity is separate from the questionnaire heading. */
.bottom{flex-wrap:wrap}
.bottom .site-registration{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 12px;flex-basis:100%;font-size:12px;line-height:1.6;color:#6b787e}
.site-registration a{color:inherit;white-space:nowrap;text-decoration:none}

/* Reserve document space for the desktop filing row, including on long pages. */
@media(min-width:980px){
 body{position:relative;min-height:100vh;min-height:100dvh;padding-bottom:48px}
 .bottom .site-registration{position:absolute;left:0;right:0;bottom:18px;padding:0 18px}
}
