:root{font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#18243c;background:#f3f5f9;font-size:16px;line-height:1.65}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #3978bd;outline-offset:3px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}.topbar{background:#192749;color:white;min-height:88px;padding:20px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:14px;align-items:center}.brand strong{font-size:1.4rem;letter-spacing:.08em}.brand>div>span{display:block;font-size:.875rem;color:#c7d1e6}.mark{width:36px;height:36px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.mark i{border-radius:2px;background:#369a70}.mark i:nth-child(2){background:#8767c7}.mark i:nth-child(3){background:#e4a338}.mark i:nth-child(4){background:#4e8bd2}main{max-width:1236px;padding:38px 28px 50px;margin:auto}h1{font-size:2rem;line-height:1.35;margin:4px 0 12px;font-weight:650}h2{font-size:1.45rem;line-height:1.6;margin:0}h3{font-size:1rem;margin:0 0 10px}p{margin:0 0 12px}.eyebrow{font-size:.875rem;font-weight:650;color:#596782;letter-spacing:.08em;margin-bottom:8px}.intro,.result-head{display:flex;justify-content:space-between;gap:32px;align-items:center;margin-bottom:26px}.intro>div:first-child{max-width:740px}.intro p:not(.eyebrow){color:#59657a}.progress{min-width:140px}.progress strong{display:block;font-size:1.8rem;font-weight:600}.progress span{font-size:.875rem;color:#59657a}.track{height:4px;background:#dde3ed;border-radius:4px;margin-top:10px;overflow:hidden}.track i{display:block;height:100%;background:#293f70;transition:width .2s}.question-nav{display:grid;grid-template-columns:repeat(16,1fr);gap:7px;margin-bottom:26px}.question-nav button{background:transparent;border:1px solid #ccd4e1;min-height:42px;border-radius:7px;color:#5b6680;font-size:.875rem}.question-nav button.done{background:#e3eaf5;color:#23385e;border-color:#acbbd2}.question-nav button.current{background:#23385e;color:white;border-color:#23385e}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px}.question-card{background:white;border:1px solid #dbe1eb;border-radius:14px;padding:30px}.question-heading{display:flex;gap:16px;align-items:baseline}.question-heading>span{color:#a0adc2;font-size:1.8rem;font-weight:600;line-height:1.2}.context{color:#626e82;margin:10px 0 22px}.na-line{border-top:1px solid #e4e8ef;padding-top:16px;margin-bottom:22px;font-size:.875rem;color:#59657a}.na-line input{width:17px;height:17px;vertical-align:middle;margin-right:7px;accent-color:#23385e}.option{border:1px solid #dce2ec;border-radius:10px;margin-bottom:14px;padding:18px}.option-top{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:12px}.option-title{display:flex;align-items:center;gap:12px;font-weight:600}.letter{color:#677793;border:1px solid #dce2ec;border-radius:5px;width:28px;text-align:center;font-size:.875rem;flex-shrink:0}.state-tag{font-size:.75rem;color:#718096;white-space:nowrap}.choice-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice{border:1px solid #dce2ec;background:#fafbfd;color:#43506a;text-align:left;padding:12px;border-radius:7px;font-size:.9375rem;line-height:1.6}.choice b{display:block;font-size:.875rem;color:#69778e;margin-bottom:5px}.choice.selected{background:#edf2fb;border-color:#526e9f;color:#15294d;box-shadow:inset 0 0 0 1px #526e9f}.choice.selected b{color:#23385e}.unselect{border:0;background:none;color:#61728b;padding:8px 0 0;font-size:.875rem;text-decoration:underline;text-underline-offset:3px}.ranking{margin-top:25px;border-top:1px solid #e3e8f0;padding-top:22px}.ranking>p{color:#68758b;font-size:.875rem}#rankControls{display:flex;gap:14px;flex-wrap:wrap}#rankControls label{display:flex;align-items:center;gap:9px;font-size:.9375rem}select{border:1px solid #cbd5e2;background:white;border-radius:6px;padding:7px 9px;min-width:75px}.order-preview{padding-top:13px;font-weight:600}.question-actions{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #e4e8ef;padding-top:22px;margin-top:12px}.primary,.quiet{border:1px solid #cbd5e2;border-radius:7px;padding:10px 18px;min-height:44px;background:white;color:#293b5d;font-weight:550;font-size:.9375rem}.primary{color:white;background:#23385e;border-color:#23385e}.primary:hover{background:#314b7a}.quiet:hover{background:#edf1f7}.quiet.light{color:#e2e9f7;background:transparent;border-color:#576685}.quiet.light:hover{background:#2e3e60}.error{color:#aa3041;font-size:.9375rem;min-height:0;margin-top:12px}.error:empty{display:none}.guide{border-bottom:1px solid #d5ddeb;padding:3px 0 24px;margin-bottom:24px}.guide>div:not(.mini-map){display:flex;gap:12px;margin:18px 0}.guide p{font-size:.875rem;color:#59657a}.guide strong{color:#293853;display:block;margin-bottom:2px}.guide>div>div>span{display:block}.symbol{color:#314567;font-size:1.6rem;line-height:1.5;width:30px;flex-shrink:0}.symbol.zero{color:#8895a9}.small{font-size:.8125rem!important;color:#737f91!important}.mini-map{height:135px;background:linear-gradient(90deg,transparent 48%,#f3f5f9 48% 52%,transparent 52%),linear-gradient(0deg,transparent 48%,#f3f5f9 48% 52%,transparent 52%),conic-gradient(from 0deg,#ded5ef 0 25%,#d3e2f3 0 50%,#f4dfb9 0 75%,#cce7db 0);border-radius:7px;margin:12px 0 18px}.result-head{align-items:flex-start}.result-head p:last-child{color:#626e82}.legend{display:flex;gap:15px 24px;flex-wrap:wrap;font-size:.875rem;margin:25px 0 13px}.legend>span{display:flex;align-items:center;gap:8px}.legend i{width:12px;height:12px;border-radius:3px;border:1px solid #0001}.map-help{font-size:.875rem;color:#65728a}.map-scroll{overflow-x:auto;border:1px solid #d6dfea;background:white;border-radius:12px;padding:16px;margin-top:18px}.map{display:grid;grid-template-columns:46px repeat(8,minmax(90px,1fr));gap:5px;min-width:860px}.axis{display:flex;align-items:center;justify-content:center;font-weight:600;min-height:36px;font-size:.9375rem}.axis.corner{font-size:.75rem;color:#74839a;font-weight:400}.cell{min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #0001;border-radius:5px;padding:7px 3px;gap:0;line-height:1.5;color:#142b3e}.cell strong{font-size:1.08rem;font-weight:650}.cell .qualification{font-size:.8125rem;white-space:nowrap}.cell .meta{font-size:.75rem;margin-top:5px}.cell:hover{outline:2px solid #23385e;outline-offset:-2px}.result-bottom{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:32px}.result-bottom h2{font-size:1.2rem;margin-bottom:13px}.reading-note p{font-size:.875rem;color:#626e82}table{width:100%;border-collapse:collapse;font-size:.875rem;text-align:left}th,td{padding:10px;border-bottom:1px solid #d7deea}th{font-weight:550;color:#63708a}footer{padding:24px;text-align:center;color:#7a879b;border-top:1px solid #dce2ec;font-size:.8125rem}dialog{border:1px solid #cdd6e4;border-radius:14px;max-width:620px;width:calc(100% - 32px);padding:30px;color:#18243c}dialog::backdrop{background:#17244088}.dialog-close{position:absolute;top:8px;right:12px;border:0;background:none;font-size:1.8rem;color:#63718b;padding:3px 10px}.detail-state{display:inline-block;background:#edf1f7;padding:4px 12px;border-radius:5px;margin:15px 0}.detail-statement{font-size:1.08rem;padding:18px 0;border-top:1px solid #e1e6ee}.detail-hint{color:#63718b;font-size:.875rem}@media(min-width:1000px){.question-card{padding:34px}.guide{position:relative}}@media(max-width:850px){.workspace{grid-template-columns:1fr}aside{display:grid;grid-template-columns:1fr 1fr;gap:22px}.question-nav{grid-template-columns:repeat(8,1fr)}.result-bottom{grid-template-columns:1fr}.intro{gap:18px}.intro>div:first-child{max-width:600px}}@media(max-width:560px){main{padding:24px 16px 34px}.topbar{padding:16px;min-height:78px}.brand{gap:10px}.mark{width:29px;height:29px}.brand strong{font-size:1.2rem}.brand>div>span{font-size:.8125rem}h1{font-size:1.65rem}.intro{align-items:flex-start}.progress{min-width:70px}.progress strong{font-size:1.2rem}.progress span{font-size:.75rem}.question-nav{gap:6px;margin-bottom:20px}.question-card{padding:20px 16px}.question-heading{gap:10px}h2{font-size:1.25rem}.question-heading>span{font-size:1.35rem}.choice-row{grid-template-columns:1fr}.option{padding:14px}.state-tag{font-size:.75rem}.choice{font-size:1rem}.option-title{font-size:1rem;line-height:1.5}aside{grid-template-columns:1fr}.guide:last-child{display:none}.result-head{flex-direction:column;gap:6px}.legend{gap:10px 16px}.map-scroll{padding:10px}.quiet.light{font-size:.8125rem;padding:8px 10px}.result-bottom{gap:22px}.context{font-size:.9375rem}}
@media print{.topbar button,.result-head button,footer,.map-help,dialog{display:none}main{padding:0}.map-scroll{overflow:visible;border:0;padding:0}.map{min-width:0;grid-template-columns:25px repeat(8,1fr)}.cell{min-height:75px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.cell strong{font-size:14px}.cell .qualification,.cell .meta{font-size:10px}.result-bottom{break-inside:avoid}}

.header-actions{display:flex;gap:12px;align-items:center}.header-actions a{text-decoration:none}.participant-line{padding:18px 22px;border:1px solid #dbe1eb;background:#fff;border-radius:10px;margin-bottom:22px}.participant-line label{font-weight:600;margin-right:12px}.participant-line input,.admin-search input,#shareUrl{border:1px solid #bac7d9;border-radius:6px;padding:9px 12px;background:#fff;max-width:100%;font-size:1rem}.participant-line p{margin:12px 0 0;font-size:.875rem;color:#5f6c80}.result-tools{padding:20px;border:1px solid #dbe1eb;background:white;border-radius:12px;margin:18px 0}.tool-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}#saveStatus{font-weight:600;margin:0;color:#29486d}#shareBox{margin-top:18px;padding-top:16px;border-top:1px solid #dbe1eb}#shareBox label{display:block;font-size:.875rem}#shareUrl{width:min(100%,680px);margin:8px 8px 8px 0}#actionStatus{font-size:.875rem;margin-top:10px;color:#586781}.record-id{display:block;color:#718096;font-size:.8125rem}.admin-search{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.admin-empty{padding:40px;border:1px solid #dbe1eb;border-radius:12px;background:#fff}.admin-table{padding:16px;background:#fff;border:1px solid #dbe1eb;border-radius:12px}.admin-table th,.admin-table td{padding:14px;font-size:.9375rem}.admin-paging{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin:24px 0}.readonly-notice{padding:14px 18px;background:#e9eff8;border:1px solid #bdcce3;border-radius:8px;margin:18px 0}.readonly-notice a{margin-right:18px}.result-tools .small{margin:8px 0 0}.download-preview{display:block;max-width:100%;height:auto;margin-top:14px;border:1px solid #dbe1eb}.status-error{color:#aa3041!important}@media(max-width:600px){.topbar{flex-wrap:wrap}.header-actions{flex-wrap:wrap}.participant-line{padding:16px}.participant-line label{display:block;margin-bottom:8px}.participant-line input{width:100%}.result-tools{padding:16px}.tool-buttons>button{flex:1 1 auto}.admin-search label{width:100%}.admin-search input{flex:1;min-width:0}.admin-empty{padding:24px}.result-tools button{font-size:.875rem}.header-actions .quiet{padding:8px 10px}}@media print{.result-tools,.readonly-notice,.participant-line,.header-actions{display:none}}

#rankControls{display:block}.rank-bank{border:1px dashed #b8c8df;border-radius:10px;padding:14px;background:#f5f8fd;margin:14px 0}.rank-bank-label{font-size:.875rem;font-weight:600;color:#596b87;margin-bottom:10px}.rank-bank-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:44px}.rank-card{display:flex;flex-direction:column;gap:6px;width:100%;border:1px solid #b9c9df;border-radius:8px;padding:12px;background:white;text-align:left;font-size:.9375rem;line-height:1.45;color:#243b60;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;min-height:80px}.rank-card-top{display:flex;gap:8px;align-items:center;font-size:.875rem}.rank-card-top b{font-size:1rem}.rank-card-top>span:last-child{margin-left:auto;font-size:1.35rem;color:#6d82a1}.rank-card.picked{outline:3px solid #477aba;background:#eff5ff}.rank-direction{display:flex;justify-content:space-between;gap:8px;margin:16px 0 8px;font-size:.875rem;color:#415875;flex-wrap:wrap}.rank-direction span{color:#6b7e96}.rank-scroll{overflow-x:auto;border:1px solid #bac9dd;border-radius:10px;background:#eaf0f8;padding:10px;overscroll-behavior-x:contain}.rank-board{display:flex;align-items:stretch;gap:6px;min-height:205px;width:max-content;min-width:100%}.rank-empty{width:100%;min-width:230px;min-height:190px;border:2px dashed #a7bbd7;border-radius:8px;background:#f8faff;color:#596e8d;padding:20px;font-size:1rem}.rank-column{width:154px;flex:0 0 154px;min-height:205px;border:2px solid #c5d2e5;border-radius:8px;background:#f8faff;padding:10px;display:flex;flex-direction:column;gap:10px;cursor:pointer}.rank-column-label{text-align:center;font-size:.875rem;color:#425b7e;font-weight:650}.rank-column-cards{display:flex;flex-direction:column;gap:10px}.rank-tie-hint{margin-top:auto;text-align:center;padding:12px 0 2px;font-size:.875rem;color:#7186a3}.rank-insert{width:44px;flex:0 0 44px;border:1px dashed #aabfdb;border-radius:8px;background:#eff4fb;color:#5a7397;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:4px;font-size:.875rem}.rank-insert b{font-size:1.5rem;font-weight:400}.rank-insert span{writing-mode:vertical-rl;letter-spacing:.08em}.rank-instruction{font-size:.875rem;color:#59708e;margin:12px 0 0}.rank-origin{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;flex-wrap:wrap}.drag-label{font-size:.875rem;font-weight:400;color:#526d96;white-space:nowrap}.rank-drag-ghost{position:fixed;z-index:10000;width:160px;pointer-events:none;transform:translate(-50%,-55%);filter:drop-shadow(0 8px 16px #162d4a44)}.rank-drag-ghost .rank-card{background:#f7fbff;border-color:#3c6fae;transform:rotate(-2deg)}.drag-source{opacity:.35}.rank-drop.drop-active,.rank-bank.drop-active{outline:3px solid #447dbd;outline-offset:-2px;background:#dceaff}.rank-column:focus-visible{outline:3px solid #3978bd;outline-offset:2px}@media(max-width:560px){.rank-column{width:132px;flex-basis:132px;padding:8px}.rank-scroll{margin-left:-6px;margin-right:-6px;padding:8px}.rank-card{padding:10px;font-size:.875rem}.rank-origin{gap:8px}.drag-label{width:100%;padding-left:36px}.rank-bank{padding:10px}.rank-direction{font-size:.875rem}.rank-insert{width:44px;flex-basis:44px}}

.account-bind{padding:12px 0;border-bottom:1px solid #dbe1eb;margin-bottom:12px}.account-bind p{font-size:.875rem;color:#526982;margin-bottom:8px}.account-bind .quiet{display:inline-block;text-decoration:none}.account-bind a,.account-bind button{margin-right:12px}.header-actions{flex-wrap:wrap}.topbar .header-actions{justify-content:flex-end}@media(max-width:560px){.header-actions{gap:8px}.account-bind a,.account-bind button{margin-bottom:8px}}

.auth-main{max-width:560px;padding-top:44px}.auth-card{background:#fff;padding:30px;border:1px solid #dbe1eb;border-radius:14px}.auth-card>p{color:#596b85}.account-form{display:flex;flex-direction:column;gap:10px;margin-top:24px}.account-form label{font-weight:600;margin-top:8px}.account-form input{border:1px solid #b6c5db;border-radius:7px;padding:12px;background:#fff;font-size:1rem;min-width:0}.account-form .primary{margin:14px 0 8px}.account-form .small{margin-top:4px}.account-form>p:last-child{text-align:center}@media(max-width:560px){.auth-card{padding:22px 18px}.auth-main{padding-top:26px}}

/* KaTeX owns all of its internal span layout, especially the not-in slash. */
.questionnaire-root .math-inline{position:relative}
.guide .symbol{display:inline-block}.guide .symbol .math-prose{display:inline}.guide .symbol .katex{font-size:1em}

/* Bound the report shell independently of the map's intrinsic 860px width. */
.questionnaire-root{width:100%;min-width:0;max-width:100%;contain:inline-size}
.questionnaire-root>main{width:100%;min-width:0}
.questionnaire-root .topbar{width:100%;min-width:0;flex-wrap:wrap}
.questionnaire-root .topbar .brand,.questionnaire-root .header-actions{min-width:0;max-width:100%}
.questionnaire-root .header-actions>*{max-width:100%;white-space:normal}
.questionnaire-root #questionnaire,.questionnaire-root #results,.questionnaire-root .workspace>*,.questionnaire-root .result-head>*,.questionnaire-root .result-bottom>*{min-width:0;max-width:100%}
.questionnaire-root .map-scroll{width:100%;max-width:100%;min-width:0;contain:inline-size;overflow-x:auto;overscroll-behavior-x:contain}
.questionnaire-root .map{width:100%}
.questionnaire-root .result-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
.questionnaire-root .result-head,.questionnaire-root .result-tools{overflow-wrap:anywhere}
.questionnaire-root .rank-scroll{max-width:100%;min-width:0;contain:inline-size}
.questionnaire-root .brand>div>span{overflow-wrap:anywhere}
@media(max-width:850px){.questionnaire-root .workspace,.questionnaire-root .result-bottom{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.questionnaire-root .rank-scroll{margin-left:0;margin-right:0}.questionnaire-root .topbar .header-actions{justify-content:flex-start}.questionnaire-root .result-head>div{width:100%}}

/* At pinch-zoom-out, fill the visual viewport instead of retaining a narrow layout strip. */
.questionnaire-root{width:max(100%,var(--cbmap-visual-width,0px));max-width:none}
