[hidden]{display:none!important}
.mobile-nav{display:none}
.sidebar-section{display:flex;align-items:center;justify-content:space-between}
.sidebar-section button{font-size:15px;min-height:20px}
.folder-link{font-size:12px;overflow-wrap:anywhere}
.danger-button{color:#b54949;border-color:#e0e0e0}
.danger-button:hover{background:#f6f6f6}
.drag-handle{padding:1px;min-width:24px;min-height:24px;font-size:17px;cursor:grab;color:#a3a3a3}
.drag-handle:active{cursor:grabbing}
.block-tools{left:-30px;top:29px;gap:4px}
.drop-target{border-top:2px solid var(--blue)!important}
.page-break-block{border-top:1px dashed #c3c3c3;border-bottom:1px dashed #c3c3c3;background:#f9f9f9!important;margin-top:40px;margin-bottom:40px}
.page-break-block .question-title{font-size:17px}
.document-outline{position:fixed;right:18px;top:178px;width:145px;max-height:65vh;overflow:auto;border-left:1px solid var(--line);padding-left:14px}
.document-outline>.small{margin-bottom:10px}
.document-outline button{display:block;text-align:left;font-size:10px;color:#959595;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-height:29px;padding:4px 3px}
.field-id{margin-top:24px}
.config-label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#818181;margin-bottom:19px}
.config-label input,.config-label textarea,.config-label select{width:100%;color:#373737}
.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.rule-editor{border-top:1px solid var(--line);margin-top:25px;padding-top:18px}
.rule-editor h3,.settings-card h3{font-size:14px;font-weight:550;margin-bottom:8px}
.rule-editor>select{font-size:12px;margin-bottom:12px}
.rule-editor>button{margin-top:12px;font-size:12px}
.condition-row{display:grid;grid-template-columns:1.2fr 1.2fr 1fr 30px;gap:7px;margin:8px 0;align-items:center}
.condition-row input,.condition-row select{min-width:0;width:100%;font-size:11px;padding:9px 7px}
.condition-row button{padding:4px;min-width:25px}
.calculation-terms{margin-bottom:15px}
.dialog-actions{display:flex;gap:10px;margin-top:30px}
.settings-page{padding:48px 40px;max-width:1200px;margin:auto}
.settings-page .page-heading h1{font-size:26px}
.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
.settings-card{border:1px solid var(--line);border-radius:9px;padding:25px;margin-bottom:24px}
.settings-card h2{font-size:16px;font-weight:600;margin-bottom:20px}
.setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 0;border-bottom:1px solid #f1f1f1;font-size:12px}
.setting-row:last-child{border:0}
.setting-row>span{flex:1;min-width:90px}
.setting-row>span>small{display:block;color:#a4a4a4;font-size:10px;line-height:1.7;margin-top:6px}
.setting-row>input:not([type=checkbox]),.setting-row>select{width:50%;min-width:0;font-size:12px}
.setting-row input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);flex-shrink:0}
.settings-card>.config-label{margin-top:16px}
.color-controls{display:flex;gap:28px;margin-bottom:18px}
.color-controls label{display:flex;flex-direction:column;gap:10px;font-size:11px;color:#8f8f8f}
.color-controls input{width:48px;height:40px;padding:4px;cursor:pointer}
.settings-preview{position:sticky;top:35px}
.settings-preview>.small{margin-bottom:15px}
.preview-card{border:1px solid var(--line);border-radius:8px;padding:25px;overflow:hidden}
.preview-card .form-cover{margin:-25px -25px 22px;height:90px}
.preview-card h2{font-size:21px;line-height:1.5;overflow-wrap:anywhere}
.preview-card p{font-size:11px}
.preview-card .document-icon{font-size:30px}
.preview-card input{font-size:11px;max-width:100%}
.theme-scope .primary{background:var(--form-accent);border-color:var(--form-accent);color:var(--form-ink)}
.theme-scope .primary:hover{filter:brightness(.96)}
.theme-scope .primary:disabled{opacity:.8}
.theme-scope input,.theme-scope textarea,.theme-scope select{color:var(--form-text);background:var(--form-bg)}
.theme-scope input[type=radio],.theme-scope input[type=checkbox]{accent-color:var(--form-accent)}
.theme-scope .public-document{color:var(--form-text)}
.theme-scope .form-title{color:var(--form-text)}
.form-cover{height:150px;margin-bottom:35px;border-radius:5px}
.cover-none{display:none}
.cover-sage{background:linear-gradient(120deg,#dce5cb,#c3c3c3 55%,#d4ddc2)}
.cover-blue{background:linear-gradient(120deg,#d3e5f5,#b6d3ef 55%,#d5e1f5)}
.cover-sand{background:linear-gradient(120deg,#eee4d1,#dfcdb2 55%,#f2e9db)}
.cover-pink{background:linear-gradient(120deg,#e2e2e2,#d8bdce 55%,#dedede)}
.theme-scope[data-width=narrow] .public-document,.document[data-width=narrow]{max-width:500px}
.theme-scope[data-width=wide] .public-document,.document[data-width=wide]{max-width:820px}
.public-main:has(.runtime-root){padding:0}
.runtime-root{padding:70px 28px 30px;min-height:100vh}
.runtime-root>.form-cover{margin:-70px -28px 48px;border-radius:0;height:200px}
.runtime-root>.public-document{padding-top:0}
.runtime-root .form-intro{color:inherit;opacity:.65}
.runtime-root .field-description{color:inherit;opacity:.6;font-size:12px;margin:0 0 13px;white-space:pre-wrap}
.runtime-root .choice-option:has(input:checked){border-color:var(--form-accent);background:transparent;box-shadow:inset 0 0 0 1px var(--form-accent)}
.runtime-root .public-footer{color:inherit;opacity:.4}
.runtime-root .paragraph{color:inherit;opacity:.7}
.runtime-root .success-page{padding-top:0;margin-top:90px}
.runtime-root .success-symbol{background:transparent;color:var(--form-accent);border:2px solid currentColor}
.runtime-buttons{display:flex;gap:12px;align-items:center;margin-top:27px}
.runtime-field{margin:30px 0}
.progress-area{display:flex;flex-direction:column;gap:10px;margin:28px 0 35px;max-width:500px}
.page-indicator{opacity:.45}
progress{width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;accent-color:var(--form-accent);background:#e8e8e8}
progress::-webkit-progress-bar{background:#e8e8e8}
progress::-webkit-progress-value{background:var(--form-accent)}
progress::-moz-progress-bar{background:var(--form-accent)}
.scale-options{flex-direction:row;gap:5px;flex-wrap:wrap}
.scale-options .choice-option{position:relative;min-width:37px;min-height:43px;justify-content:center;padding:9px;flex:1}
.scale-options input{position:absolute;opacity:0;width:1px;height:1px}
.scale-options .choice-option:has(input:focus-visible){outline:3px solid #aed2ff;outline-offset:3px}
.ranking-list{list-style:none;counter-reset:rank;padding:0;max-width:500px}
.ranking-list li{counter-increment:rank;border:1px solid var(--line);padding:8px 12px;display:flex;align-items:center;gap:14px;border-radius:6px;margin:8px 0;font-size:13px}
.ranking-list li:before{content:counter(rank);color:#a1a1a1;font-size:11px}
.ranking-list li>span{flex:1;overflow-wrap:anywhere}
.ranking-list button{padding:5px 8px;min-height:28px}
.matrix{max-width:100%;margin-top:0}
.matrix table{font-size:11px}
.matrix th,.matrix td{min-width:70px;max-width:none;padding:12px;white-space:normal;text-align:center}
.matrix th:first-child{text-align:left;min-width:110px}
.matrix td input{width:15px;height:15px}
.matrix tbody tr{cursor:default}
.calculated-output{display:block;padding:14px 16px;background:#f7f7f7;border-radius:6px;max-width:500px;font-size:22px;color:#687d4a}
.file-drop{padding:20px;border:1px dashed #d0d0d0;border-radius:7px;max-width:500px}
.file-drop>span{display:block;font-size:13px;margin-bottom:14px}
.file-drop input{padding:0;border:0;max-width:100%;font-size:12px}
.file-drop p{margin:10px 0 0}
.signature-input{font-family:Georgia,"Songti SC",serif!important;font-style:italic;font-size:25px!important}
.signature-pad{max-width:500px}
.signature-pad canvas{display:block;width:100%;height:150px;border:1px solid #e0e0e0;border-radius:6px;touch-action:none;background:#fff;cursor:crosshair}
.signature-pad>div{display:flex;align-items:center;justify-content:space-between;margin:4px 0 10px;gap:10px}
.signature-pad input{width:100%}
.signature-pad .text-button{font-size:10px}
.signature-result{display:block;max-width:240px;width:100%;max-height:90px;object-fit:contain;object-position:left}
.save-progress{display:flex;align-items:center;gap:8px;color:#9a9a9a;font-size:11px;margin-top:27px}
.save-progress input{width:14px;height:14px}
.partial-notice{font-size:10px;color:#a7a7a7;margin-top:15px}
.preview-runtime .runtime-root{padding:35px 15px 20px;min-height:0}
.preview-runtime .runtime-root>.form-cover{margin:-35px -15px 30px;height:130px}
.preview-runtime .public-document>h1{font-size:29px}
.preview-banner{display:flex;align-items:center;justify-content:space-between;padding:5px 10px}
.preview-banner button{font-size:10px}
.mobile-preview{width:420px;padding:16px}
.mobile-preview .config-grid{grid-template-columns:1fr}
.share-section{padding:16px 0;border-top:1px solid var(--line);font-size:12px}
.share-section summary{cursor:pointer;color:#848484;margin-bottom:12px}
.share-section textarea{display:block;width:100%;font-size:11px;margin:12px 0}
#qr-mount{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.share-qr{width:160px;height:160px}
.file-link{color:var(--blue)}
.results-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}
.results-toolbar input{flex:1;max-width:320px}
.results-toolbar select{font-size:12px}




.template-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-top:35px}
.template-card{border:1px solid var(--line);border-radius:9px;padding:28px}
.template-icon{font-size:32px;color:#8e8e8e;margin-bottom:23px}
.template-card h2{font-size:18px}
.template-card p{font-size:12px}
.template-card button{font-size:12px;margin-top:12px}
.version-list{max-height:55vh;overflow:auto}
.version-list>div{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line);gap:15px}
.version-list strong{font-size:12px;font-weight:500}
.version-list small{display:block;color:#a0a0a0;font-size:10px;margin-top:6px}
.version-list button{font-size:11px}
@media(max-width:1440px){.document-outline{display:none}}
@media(max-width:1100px){.settings-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.settings-page{padding:35px 25px}.settings-card{padding:20px}.setting-row{gap:10px}.setting-row>input:not([type=checkbox]),.setting-row>select{width:48%}.results-page .page-heading{align-items:flex-start;flex-direction:column}.header-actions #save-status{display:none}}
@media(max-width:900px){.settings-layout{grid-template-columns:1fr}.settings-preview{position:static;max-width:420px;grid-row:1}.preview-card .form-cover{height:65px}.preview-card input,.preview-card button,.preview-card label,.preview-card p{display:none}.preview-card h2{font-size:18px;margin:0}.preview-card .document-icon{font-size:24px;margin-bottom:12px}}
@media(max-width:760px){.sidebar .folder-link,.sidebar .sidebar-section,.sidebar>a.nav-link{display:none}.sidebar nav{margin-left:auto}.editor-tabs>button{padding:6px 7px;font-size:11px}.editor-header{gap:8px}.editor-hint{flex-wrap:wrap;gap:8px}.editor-hint .inline-actions{gap:2px}.editor-hint .text-button{font-size:10px}.document .form-cover{height:100px}.document{margin-top:25px}.settings-page{padding:28px 20px}.settings-card{padding:20px 16px}.settings-page .page-heading h1{font-size:23px}.settings-page .page-heading p{font-size:11px}.setting-row{font-size:11px}.setting-row>input:not([type=checkbox]),.setting-row>select{width:50%;font-size:11px;padding:8px}.condition-row{grid-template-columns:1fr 1fr 28px;gap:6px}.condition-row [data-condition=value],.condition-row [data-term-value]{grid-row:2;grid-column:1/3}.condition-row button{grid-column:3;grid-row:1/3}.config-grid{grid-template-columns:1fr}.rule-editor>select{max-width:100%}.runtime-root{padding:40px 24px 25px}.runtime-root>.form-cover{height:130px;margin:-40px -24px 35px}.runtime-root>.public-document>h1{font-size:29px}.scale-options{gap:4px}.scale-options .choice-option{padding:7px;min-width:33px;min-height:40px;font-size:11px}.results-toolbar{gap:8px;flex-wrap:wrap}.results-toolbar input{min-width:150px;font-size:12px}.results-page .inline-actions{flex-wrap:wrap;font-size:11px}.template-grid{grid-template-columns:1fr;gap:16px}.template-card{padding:23px}.template-icon{margin-bottom:18px}.template-card button{margin-top:4px}.share-input button{padding:7px 9px}.form-row .secondary{font-size:11px}.preview-runtime .runtime-root{padding:25px 5px}.preview-banner{align-items:flex-start;gap:5px;flex-direction:column}.settings-layout{gap:20px}}
@media print{.sidebar,.editor-header,.topbar,.header-actions,.dialog-top,button{display:none!important}.main-shell{margin:0}.answer-detail{max-height:none;overflow:visible}dialog{position:static;max-width:none;width:100%;border:0;box-shadow:none}}
@media(max-width:760px){.mobile-nav{display:inline-flex}}
.quick-home{max-width:760px}
.quick-card{display:grid;gap:14px;padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff;margin:22px 0 16px}
.quick-card .primary{justify-self:start}
.paste-input{width:100%;font-family:inherit;min-height:180px}
.paste-preview ol{margin:8px 0 0;padding-left:22px;display:grid;gap:6px}
.paste-preview li{line-height:1.5}
.paste-preview small{display:block;color:var(--muted);overflow-wrap:anywhere}
.paste-type{display:inline-block;font-size:11px;color:#6d6d6d;background:#f3f3f3;border-radius:4px;padding:1px 6px;margin-right:8px}
.paste-required{font-size:11px;color:#c0563b;margin-left:8px}
.quick-templates{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:32px}
.quick-subtitle{font-size:16px;margin:8px 0 12px}
.sidebar-empty{padding:4px 12px}
.manage-link{display:grid;gap:10px}
.manage-link p{margin:0}
button.file-link{min-height:0;padding:0;font-weight:400}
.dashboard .badge.quick{color:#7d7d7d;margin-right:8px}
/* Paste-to-fill, edit links */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.autofill{margin:0 0 18px}
.autofill-panel{display:grid;gap:10px;margin-top:8px;padding:14px;border:1px dashed #d3d3d3;border-radius:8px}
.autofill-panel textarea{width:100%}
.autofill-panel p{margin:0}
.autofill-actions{display:flex;gap:8px;flex-wrap:wrap}
.autofill-result:empty{display:none}
.autofilled input:not([type=radio]):not([type=checkbox]),.autofilled textarea,.autofilled select{background:#fff8dc;border-color:#e3c56b}
.autofilled .choice-option:has(input:checked){background:#fff8dc;border-color:#e3c56b}
.edit-banner{padding:10px 12px;border-radius:6px;background:#f3f3f3;color:#3b5878;font-size:13px}
.edit-banner a{color:#0a58b8;margin-left:6px;text-decoration:underline}
.edit-link{text-align:left;margin-top:28px;padding:16px;border:1px solid var(--line);border-radius:10px}
.edit-link p{margin:6px 0 0}
.share-input input{flex:1;min-width:0}
/* One question at a time */
.focus-mode .runtime-form{min-height:46vh}
.focus-mode .runtime-field legend{font-size:21px;font-weight:600;line-height:1.45;margin-bottom:12px}
.focus-mode .runtime-field{margin:18px 0 26px}
.focus-mode .choice-option kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-right:8px;border:1px solid currentColor;border-radius:4px;font:600 11px/1 ui-monospace,Menlo,monospace;opacity:.75}
.focus-mode .choice-option:has(input:checked) kbd{opacity:1}
.step-enter{animation:step-in .28s ease-out}
@keyframes step-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* Logic view (preview only) */
.xray-off>fieldset{opacity:.42}
.xray-note{white-space:pre-line;font-size:12px;line-height:1.6;color:#5e5e5e;background:#f5f5f5;border-left:3px solid #8fb0dc;padding:6px 10px;margin:-18px 0 22px;border-radius:0 4px 4px 0}
.xray-off .xray-note{color:#8a5a3c;background:#f5f5f5;border-color:#e2b48f}
[aria-pressed=true]{color:var(--blue)}
/* Text view */
.text-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:20px 28px 40px;align-items:start}
.text-pane{display:grid;gap:12px;position:sticky;top:12px}
.text-pane .form-title{font-size:22px}
.form-text{width:100%;min-height:62vh;font:13px/1.75 ui-monospace,Menlo,"PingFang SC",monospace;tab-size:2}
.text-preview{border:1px solid var(--line);border-radius:12px;padding:14px;min-height:62vh;background:var(--soft)}
.text-preview .public-document{padding:0}
.table-import{display:inline-flex;align-items:center;gap:6px;justify-self:start;color:var(--blue);cursor:pointer;font-size:13px;padding:4px 0}
.table-import:focus-within{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.paste-input.drop-target{border:2px dashed var(--blue)!important;background:#f7f7f7}
/* Results summary charts: one series, one hue */
.view-switch{margin:18px 0 6px}
.view-switch .selected{background:#f1f1f1}
.summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin-top:14px}
.summary-card{border:1px solid var(--line);border-radius:10px;padding:16px 18px;background:#fff;min-width:0}
.summary-card h3{font-size:15px;margin:0 0 4px;overflow-wrap:anywhere}
.bars{display:grid;gap:8px;margin-top:12px}
.bar-row{display:grid;grid-template-columns:minmax(60px,32%) 1fr auto;gap:10px;align-items:center;padding:2px 4px;border-radius:4px;font-size:13px}
.bar-row:hover,.bar-row:focus-visible{background:#f6f6f6}
.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4c4c4c}
.bar-track{height:14px;display:block}
.bar-fill{display:block;height:14px;width:0;background:#2f6fd6;border-radius:0 4px 4px 0;transition:width .6s cubic-bezier(.2,.7,.2,1)}
.bar-value{font-variant-numeric:tabular-nums;color:#373737;white-space:nowrap}
.bar-value small{color:var(--muted)}
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.stat-row strong{display:block;font-size:20px;font-weight:600}
.rank-summary,.text-answers{margin:12px 0 0;padding-left:20px;display:grid;gap:6px;font-size:13px}
.rank-summary li{display:flex;justify-content:space-between;gap:10px}
.text-answers li{overflow-wrap:anywhere}
/* Live wall */
.live-wall{min-height:100vh;padding:32px 44px;box-sizing:border-box}
.live-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.live-top h1{font-size:36px;margin:4px 0 0}
.live-actions{display:flex;gap:8px}
.live-body{display:grid;grid-template-columns:300px minmax(0,1.6fr) minmax(0,1fr);gap:24px;margin-top:28px;align-items:start}
.live-qr img{width:100%;background:#fff;border-radius:12px;padding:12px;box-sizing:border-box;border:1px solid var(--line)}
.live-hero p{overflow-wrap:anywhere}
.live-count strong{display:block;font-size:88px;line-height:1;font-weight:650;font-variant-numeric:tabular-nums}
.live-count span{color:var(--muted)}
.live-charts{display:grid;gap:16px}
.live-wall .bar-row{font-size:16px}
.live-wall .bar-track,.live-wall .bar-fill{height:20px}
.live-feed h2{font-size:16px}
.live-feed ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.live-feed li{padding:12px 14px;border-radius:8px;background:#fff;border:1px solid var(--line);font-size:15px;overflow-wrap:anywhere}
.live-feed li span{display:block;margin-bottom:2px}
.live-feed li.fresh{animation:feed-in .5s ease-out}
@keyframes feed-in{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
.live-wall:fullscreen{background:var(--form-bg,#fff);overflow:auto}
.poster-preview{display:block;width:100%;max-width:280px;margin:0 auto 12px;border-radius:8px;border:1px solid var(--line)}
@media(max-width:900px){.text-editor{grid-template-columns:1fr;padding:16px}.text-pane{position:static}.form-text,.text-preview{min-height:40vh}.live-wall{padding:20px 16px}.live-body{grid-template-columns:1fr}.live-count strong{font-size:64px}.live-top{flex-direction:column}.stat-row{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.step-enter,.live-feed li.fresh{animation:none}.bar-fill{transition:none}}
.field-caption{font-size:12px;color:#606060;margin-bottom:-6px}
.quick-card .config-label{margin:0}
.autofilled legend::after{content:"自动填入";margin-left:8px;font-size:11px;font-weight:500;color:#7a5a00;background:#fff3c4;border-radius:4px;padding:1px 6px;vertical-align:middle}
.remember-edit{display:flex;gap:8px;align-items:center;margin-top:10px;color:#606060}
.live-url{font-size:18px;font-weight:600;color:#373737;overflow-wrap:anywhere;margin:12px 0}
/* Redesign: status bar header */
.editor-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:18px;height:auto;min-height:68px;padding:10px 24px}
.form-status{display:flex;flex-direction:column;gap:3px;min-width:0}
.status-title{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.status-line{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#aaaaaa;margin-right:6px;vertical-align:1px}
.status-dot.on{background:#3f8f4a}
.status-dot.off{background:#c98a2b}
.unpublished{color:#9a6400}
.editor-tabs>button{font-size:13px;color:#616161;padding:7px 14px}
.editor-tabs>.selected{background:#efefef;color:#272727;font-weight:600}
.tab-count{display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:9px;background:#e4e4e4;color:#2f4a22;font-size:11px;line-height:18px;text-align:center}
.header-actions{gap:8px}
.header-actions>button{font-size:13px}
.doc-tools{display:flex;justify-content:flex-end;gap:2px;max-width:760px;margin:0 auto -8px}
.doc-tools .icon-button{color:#8c8c8c}
/* Question cards: type, required and delete inline */
.block-top{opacity:1}
.block-meta{display:flex;align-items:center;gap:8px;min-width:0}
.block-actions{display:flex;align-items:center;gap:6px}
.type-select{font-size:12px;padding:4px 26px 4px 8px;border-color:transparent;background-color:#f4f4f4;color:#4d4d4d;border-radius:6px;max-width:150px}
.type-select:hover,.type-select:focus{border-color:#d7d7d7}
.logic-badge{font-size:11px;color:#3b5878;background:#f0f0f0;border-radius:4px;padding:2px 7px;white-space:nowrap}
.required-toggle{font-size:12px;color:#616161}
.required-toggle input{width:14px;height:14px}
.delete-block{font-size:13px;opacity:.55}
.delete-block:hover,.delete-block:focus-visible{opacity:1;background:#f1f1f1}
.editor-block:not(:hover):not(:focus-within) .block-actions .icon-button{opacity:.35}
.more-types strong{color:#0a58b8}
.menu-list>button{justify-content:flex-start}
/* Answers: numbers first */
.results-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.stat-tiles{display:flex;gap:12px;flex-wrap:wrap}
.stat-tile{min-width:104px;border:1px solid var(--line);border-radius:10px;padding:12px 16px;display:flex;flex-direction:column;gap:4px}
.stat-tile strong{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.stat-tile span{font-size:12px;color:var(--muted)}
.export-group{display:inline-flex;align-items:stretch}
.export-group>.primary{border-radius:7px 0 0 7px}
.menu-button{position:relative}
.menu-button>summary{list-style:none;cursor:pointer;height:100%;display:flex;align-items:center;padding:0 10px;background:var(--blue);color:#fff;border-radius:0 7px 7px 0;border-left:1px solid rgba(255,255,255,.35)}
.menu-button>summary::-webkit-details-marker{display:none}
.menu-pop{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:6px;display:grid;min-width:130px;z-index:5}
.menu-pop>button{justify-content:flex-start;font-size:13px}
/* Share: link and QR first */
.share-qr-block{display:flex;flex-direction:column;align-items:center;gap:10px;margin:8px 0 6px}
.share-qr-block .share-qr{width:200px;height:200px;image-rendering:pixelated}
.open-form{display:inline-block;margin-bottom:6px;font-size:13px}
.share-more{display:grid;gap:18px;margin-top:6px}
.share-more section{display:grid;gap:6px}
.share-more p{margin:0}
/* Settings: core card plus folded groups */
.settings-page{max-width:760px}
.core-settings{border-color:#d5d5d5}
.settings-group{padding:0}
.settings-group>summary{list-style:none;cursor:pointer;padding:18px 24px;display:flex;justify-content:space-between;align-items:center}
.settings-group>summary::-webkit-details-marker{display:none}
.settings-group>summary::after{content:"展开";font-size:12px;color:var(--muted)}
.settings-group[open]>summary::after{content:"收起"}
.settings-group>summary strong{display:block;font-size:15px}
.settings-group>summary small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.settings-body{padding:0 24px 22px}
.appearance-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:24px;align-items:start}
.setting-row small{display:block}
/* Respondent: paste-to-fill as a quiet hint */
.autofill-hint{margin:0 0 18px;color:var(--muted)}
.autofill-hint .text-button{padding:0 4px;min-height:0;color:#0a58b8;font-size:inherit}
@media(max-width:760px){
.editor-header{grid-template-columns:auto minmax(0,1fr);row-gap:8px;padding:10px 14px}
.editor-tabs{grid-column:1/-1;order:3}
.header-actions{grid-column:1/-1;order:4;justify-content:flex-end;flex-wrap:wrap}
.header-actions .text-button[data-action=preview]{margin-right:auto}
.appearance-layout{grid-template-columns:1fr}
.settings-group>summary{padding:16px}
.settings-body{padding:0 16px 18px}
.status-line{white-space:normal}
.stat-tile{min-width:88px;padding:10px 12px}
.stat-tile strong{font-size:22px}
}
