:root {
  --red:#a62629; --red-dark:#8e1d21; --red-soft:#f9edef; --ink:#252525;
  --muted:#747474; --line:#d7d7d7; --paper:#fff; --warm:#f6f4f0; --gold:#d7b478;
  --serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;
  font-family:"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  color:var(--ink); background:#e9e7e3; font-synthesis:weight;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-size:16px;line-height:1.6}
button,input,textarea{font:inherit;color:inherit;touch-action:manipulation}
button{cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;background:none}
button:disabled{cursor:default;opacity:.5}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #bd9150;outline-offset:3px}
[tabindex="-1"]:focus{outline:0}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
svg{display:block;flex-shrink:0}
button svg{pointer-events:none}
.phone-app{max-width:480px;width:100%;min-height:100dvh;margin:auto;background:var(--paper);container-type:inline-size;overflow:clip}
.app-header{height:52px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;background:#fcfbf8;border-bottom:4px double var(--red);position:relative;gap:14px}
.wordmark{display:flex;align-items:center;padding:0;gap:12px;text-align:left;min-height:44px}
.wordmark svg{width:34px;height:29px;fill:none;stroke:var(--red);stroke-width:1.4;stroke-linejoin:round}
.wordmark span{font-family:var(--serif);font-size:24px;font-weight:700;border-left:1px solid var(--red);padding-left:11px;line-height:1.2;letter-spacing:2px}
.guide-button{font-size:14px;min-height:44px;white-space:nowrap;padding:0}
.header-back{width:36px;min-height:44px;padding:7px 7px 7px 0;color:var(--red)}
.header-back svg{width:23px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}
.nav-title{font-family:var(--serif);font-size:23px;font-weight:700;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;pointer-events:none;letter-spacing:2px}
.government-banner{background:#a02024 url("government-banner.webp") center bottom / 100% auto no-repeat;color:#fffaf0;text-align:center}
.hero-banner{height:67cqw;min-height:225px;max-height:322px;padding-top:5cqw}
.hero-banner h1{font-family:var(--serif);font-size:10.5cqw;font-weight:700;line-height:1.22;letter-spacing:3px}
.hero-banner h1 span{display:block}
.banner-subtitle{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:13px;font-family:var(--serif);color:var(--gold);font-size:15px;letter-spacing:6px}
.banner-subtitle span{height:1px;width:36px;background:var(--gold)}
.welcome-body{padding:20px 20px 126px}
.section-heading{font-family:var(--serif);font-size:23px;line-height:1.4;font-weight:700;display:flex;align-items:center;gap:12px;letter-spacing:1px}
.section-heading:before{content:"";width:4px;height:22px;display:block;flex-shrink:0;border-radius:1px;background:var(--red)}
.survey-introduction>p{font-size:15px;line-height:1.85;margin-top:12px;text-align:justify}
.survey-facts{display:grid;grid-template-columns:1fr 1fr 1.2fr;margin:25px 0 26px;align-items:center}
.survey-facts>div{display:flex;flex-direction:column;align-items:center;gap:10px;border-right:1px solid var(--line)}
.survey-facts>div:last-child{border:0}
.survey-facts svg{width:30px;height:30px;fill:none;stroke:var(--red);stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.survey-facts span{font-size:14px;white-space:nowrap;font-weight:550}
.filling-tips{background:var(--warm);border-radius:7px;padding:15px 16px}
.filling-tips h2{font-family:var(--serif);font-weight:700;font-size:21px;letter-spacing:1px;margin-bottom:5px}
.filling-tips ol{margin:0;padding-left:21px;font-size:13px;line-height:1.7}
.filling-tips li{padding:10px 0}
.filling-tips li+li{border-top:1px solid #dedbd5}
.resume-note{margin:15px 0 0;color:var(--red);font-size:12px;text-align:center}
.bottom-dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:480px;width:100%;padding:13px 13px max(11px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f2f2f2;z-index:20}
.primary-button{min-height:49px;width:100%;border:1px solid var(--red);border-radius:6px;background:linear-gradient(110deg,#a62327,#a11f24);color:#fff;display:flex;justify-content:center;align-items:center;gap:16px;padding:10px 14px;font-size:19px;line-height:1.45;font-weight:600;letter-spacing:2px;transition:background .15s}
.primary-button:hover{background:var(--red-dark)}
.primary-button:active{background:#801c20}
.primary-button>span{white-space:nowrap}
.primary-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.preview-note{font-size:10px;line-height:1.6;color:#858585;text-align:center;margin-top:9px;letter-spacing:.3px}
.compact-banner{height:35.5cqw;min-height:127px;max-height:170px;padding-top:13px}
.compact-banner>p{font-family:var(--serif);font-size:clamp(23px,6.4cqw,30px);line-height:1.35;font-weight:700;letter-spacing:1px}
.question-content{padding:18px 20px 132px}
.progress-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.progress-top .section-heading{font-size:22px}
.progress-top>span{font-size:13px;white-space:nowrap;color:#626262;letter-spacing:.5px}
.progress-top b{font-weight:400}
.progress-track{height:6px;background:#e0e1e3;border-radius:5px;overflow:hidden;margin:15px 0 20px}
.progress-track>span{display:block;height:100%;width:14.2857%;background:var(--red);transition:width .2s}
.question-field{padding:0;border:0;margin:0;min-width:0}
.question-field legend{padding:0;max-width:100%;font-family:var(--serif);font-size:22px;font-weight:700;line-height:1.5}
.required-star{color:var(--red);font:20px Georgia,serif;margin-left:6px}
.question-instruction{display:flex;align-items:flex-start;gap:8px;margin:10px 0 14px;color:#6b6b6b;font-size:12px;line-height:1.8}
.type-pill{background:var(--red-soft);color:var(--red);border-radius:3px;padding:1px 8px;white-space:nowrap;flex-shrink:0;font-size:12px}
.answer-options{display:grid;gap:8px}
.answer-option{min-height:46px;position:relative;display:flex;align-items:center;gap:15px;border:1px solid #c9c9cc;border-radius:5px;padding:10px 15px;background:#fff;cursor:pointer}
.answer-option input{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-width:20px;margin:0;border:1.4px solid #888;border-radius:50%;background:white;display:grid;place-items:center;flex-shrink:0;position:relative}
.answer-option input:checked{border-color:var(--red)}
.answer-option input[type=radio]:checked:after{content:"";width:12px;height:12px;border-radius:50%;background:var(--red)}
.answer-option input[type=checkbox]{border-radius:3px}
.answer-option input[type=checkbox]:checked{background:var(--red)}
.answer-option input[type=checkbox]:checked:after{content:"";display:block;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.answer-option:hover{border-color:#ae6263}
.answer-option:has(input:checked){background:#faedef;border-color:var(--red)}
.answer-option:has(input:focus-visible){outline:2px solid #bd9150;outline-offset:2px}
.answer-option:has(input:focus-visible) input{outline:none}
.option-copy{font-size:16px;line-height:1.5;font-weight:500}
.option-copy .parenthetical{display:block}
.other-wrap{margin-top:16px}
.other-wrap label{font-size:14px;display:block;margin-bottom:6px;color:#555}
.other-wrap textarea{width:100%;min-height:84px;resize:vertical;border:1px solid #bfc0c3;border-radius:4px;background:#fff;padding:12px;font-size:16px;line-height:1.6}
.other-wrap textarea::placeholder{font-size:13px;color:#8c8c8c}
.answer-error{color:#a01c22;background:#fff2f2;border-left:3px solid var(--red);padding:9px 11px;font-size:13px;margin:14px 0 0}
.draft-note{display:flex;justify-content:center;align-items:center;gap:8px;margin:16px 0 0;font-size:12px;color:#767676;line-height:1.8}
.draft-note:before{content:"✓";width:16px;height:16px;border:1.2px solid #858585;border-radius:50%;font-size:11px;display:grid;place-items:center;line-height:1;flex-shrink:0}
.dock-actions{display:flex;gap:9px}
.outline-button{min-height:49px;border:1px solid var(--red);color:var(--red);border-radius:6px;background:white;font-size:16px;font-weight:550;padding:10px 12px;display:flex;align-items:center;justify-content:center}
.outline-button:hover{background:#fff6f6}
.dock-actions .outline-button{flex:0 0 32%}
.dock-actions .primary-button{flex:1}
.review-content{padding:22px 20px 130px}
.review-title>p{font-size:14px;color:#727272;margin-top:10px}
.review-answers{border-top:1px solid var(--line);margin-top:22px}
.review-item{display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #e2e2e2;padding:17px 0}
.review-number{font-family:var(--serif);font-size:20px;color:var(--red);min-width:24px;line-height:1.5}
.review-item-content{flex:1;min-width:0}
.review-item h2{font-size:14px;font-weight:500;line-height:1.6;color:#6b6b6b;margin-bottom:7px}
.review-item p{font-size:16px;line-height:1.7;overflow-wrap:anywhere}
.edit-answer{width:32px;min-height:44px;padding:8px;color:var(--red);flex-shrink:0}
.edit-answer svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.4}
.review-disclaimer{font-size:12px;color:#767676;line-height:1.9;margin-top:18px}
.success-content{padding:39px 27px;text-align:center}
.success-check{width:67px;height:67px;border:2px solid var(--red);border-radius:50%;color:var(--red);display:grid;place-items:center;margin:0 auto 20px}
.success-check svg{width:39px;height:39px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.success-content h1{font-family:var(--serif);font-size:29px;font-weight:700;letter-spacing:2px;margin-bottom:10px}
.success-thanks{font-size:15px;color:#666}
.saved-card{background:var(--warm);text-align:left;padding:19px 17px;margin:25px 0;border-radius:5px;border-left:3px solid var(--red)}
.saved-card h2{font-size:15px;font-weight:600;margin-bottom:7px}
.saved-card p{font-size:13px;line-height:1.8;color:#767676}
.success-content>.primary-button{font-size:17px}
.text-button{min-height:44px;color:#777;font-size:14px;text-decoration:underline;text-underline-offset:4px;margin-top:14px;padding:8px 16px}
.bottom-sheet{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-width:480px;max-height:90dvh;overflow:auto;margin:0 auto;padding:12px 23px max(23px,env(safe-area-inset-bottom));border:0;border-top:3px solid var(--red);border-radius:10px 10px 0 0;background:white;color:var(--ink)}
.bottom-sheet::backdrop{background:#15151570}
.sheet-handle{height:3px;width:32px;border-radius:3px;background:#d9d9d9;margin:0 auto 18px}
.sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.close-button{width:40px;height:40px;font-size:28px;line-height:1;color:#777}
.guide-list{padding-left:21px;margin:0 0 23px}
.guide-list li{padding-left:4px;margin-bottom:20px;font-size:15px;color:var(--red)}
.guide-list h3{font-size:16px;font-weight:550;color:#333;margin-bottom:6px}
.guide-list p{font-size:14px;color:#737373;line-height:1.8}
.restart-copy{font-size:15px;line-height:1.8;color:#737373;margin-top:15px}
.restart-actions{display:flex;gap:10px;margin-top:25px}
.restart-actions>button{flex:1;font-size:16px;letter-spacing:0}
@media(min-width:481px){.phone-app{border-left:1px solid #dedbd6;border-right:1px solid #dedbd6}.app-header{height:58px}.hero-banner{padding-top:24px}.welcome-body{padding:24px 25px 130px}.survey-introduction>p{font-size:17px}.survey-facts{margin:28px 0}.survey-facts span{font-size:16px}.filling-tips ol{font-size:15px}.compact-banner{padding-top:17px}.question-content{padding:23px 24px 136px}.answer-option{min-height:51px}.option-copy{font-size:17px}}
@media(max-width:360px){.app-header{padding:0 15px;height:48px}.wordmark span{font-size:22px}.wordmark svg{width:30px}.guide-button{font-size:13px}.nav-title{font-size:21px}.hero-banner h1{font-size:36px}.hero-banner{padding-top:16px}.banner-subtitle{font-size:13px;margin-top:11px;gap:11px}.welcome-body{padding:18px 17px 123px}.survey-introduction>p{font-size:14px}.section-heading{font-size:22px}.survey-facts{margin:22px 0}.survey-facts span{font-size:13px}.filling-tips{padding:13px}.filling-tips ol{font-size:12px}.question-content{padding:17px 17px 130px}.question-field legend{font-size:21px}.answer-option{padding:11px 12px;gap:12px}.option-copy{font-size:15px}.question-instruction{font-size:11px}.progress-top>span{font-size:12px}.progress-top .section-heading{font-size:21px}.bottom-dock{padding-left:12px;padding-right:12px}.preview-note{font-size:9px}.primary-button{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media(max-width:360px){.dock-actions .primary-button{font-size:16px;letter-spacing:1px;gap:8px;padding-left:10px;padding-right:10px}.dock-actions .primary-button svg{width:20px;height:20px}}
body.large-text{font-size:20px}
body.large-text .survey-introduction>p,body.large-text .option-copy,body.large-text .guide-list p,body.large-text .filling-tips ol{font-size:20px}
body.large-text .question-field legend{font-size:26px}
.closed-note{margin:12px 0 0;color:var(--red);text-align:center;font-size:14px}
.rank-list{display:flex;flex-direction:column;gap:8px}
.matrix-table{width:100%;border-collapse:collapse;font-size:14px}
.matrix-table th,.matrix-table td{border:1px solid var(--line);padding:8px;text-align:center}
.matrix-table th:first-child,.matrix-table td:first-child{text-align:left}

