/* Mobile-first additions; keep public/style.css as the original design baseline. */
.mobile-room{max-width:680px;margin:0 auto;padding:0 22px calc(104px + env(safe-area-inset-bottom));min-height:100svh;font-size:16px;line-height:1.9}
.mobile-top{min-height:76px;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);margin-bottom:26px}
.mobile-top .brand-mark{font-size:30px;line-height:1;min-width:44px;min-height:44px;display:flex;align-items:center;text-decoration:none}
.mobile-top>span{font-size:14px;line-height:1.6;color:var(--muted)}
.mobile-room h1{font-family:var(--serif);font-size:clamp(27px,6vw,38px);font-weight:400;line-height:1.6;letter-spacing:0;margin:25px 0}
.mobile-room p{margin:16px 0}.mobile-room .small{font-size:14px}.mobile-room .eyebrow{font-size:12px}
.mobile-room button,.mobile-room .button,.mobile-room .text-button,.mobile-room summary,.mobile-room .inline-check,.mobile-room .private-control{min-height:44px;line-height:1.6}
.mobile-room .button{padding:12px 18px;font-size:16px}.mobile-room .text-button{padding:8px 6px;font-size:14px}
.mobile-room .message{border:0;padding:0;margin:0}.mobile-room .message-role{font-size:14px;margin-bottom:10px}
.mobile-room .message-question{font-size:clamp(23px,5.5vw,30px);font-weight:400;line-height:1.7;margin:12px 0 24px}
.mobile-room .options{display:grid;grid-template-columns:1fr;gap:8px}
.mobile-room .option{display:flex;align-items:center;min-height:52px;padding:14px 16px;cursor:pointer;gap:12px;font-size:16px;border-radius:0}
.mobile-room .option:has(input:checked){background:var(--ink);color:var(--paper)}
.mobile-room input[type=checkbox],.mobile-room input[type=radio]{width:19px;height:19px;flex-shrink:0;accent-color:var(--ink)}
.mobile-room textarea,.mobile-room .input{font-size:16px;border-radius:0;min-height:52px;padding:14px}
.mobile-room textarea{min-height:112px}.mobile-room .field-label{font-size:16px}
.question-meta{display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);margin-bottom:24px}
.question-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px}
.question-actions>.button{flex:1}.mobile-room .cloud-status{font-size:14px;color:var(--muted);line-height:1.8;margin:22px 0 16px;overflow-wrap:anywhere}
.mobile-bottom{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--ink);background:var(--paper);padding-bottom:env(safe-area-inset-bottom);z-index:20}
.mobile-bottom a{display:flex;align-items:center;justify-content:center;min-height:58px;text-decoration:none;font-size:15px;border-top:2px solid transparent}
.mobile-bottom a[aria-current=page]{border-top-color:var(--ink);font-weight:600}
.question-picker{max-height:65svh;overflow:auto}.question-picker button{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:18px 0;min-height:60px;font-size:16px;line-height:1.8}
.question-picker span{display:block;font-size:13px;color:var(--muted)}
.onboarding .action-row{margin-top:30px}.onboarding .signature{font-size:15px;margin:28px 0}
.settings-list{display:grid}.settings-list button,.settings-list a{padding:18px 0;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);font-size:16px;text-decoration:none}
.notification-settings{border-top:1px solid var(--ink);margin-top:32px;padding-top:22px}.notification-settings h2{font-size:22px;font-family:var(--serif)}
.field-record,.record-entry{border-top:1px solid var(--ink);margin-top:30px;padding-top:20px}.field-record .text-block{white-space:pre-wrap}
.field-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.field-images img{max-width:100%;height:auto;display:block}.field-images figure{margin:0}
.file-label{position:relative;overflow:hidden;cursor:pointer}.file-label input{position:absolute;opacity:0;inset:0;cursor:pointer;width:100%;height:100%}
.file-label:has(input:disabled){opacity:.4;cursor:not-allowed}
.mobile-room .message-answer{margin:0;padding:16px 0;background:none;border-top:1px solid var(--line);font-size:16px}
.slow-essay{max-width:980px;margin:auto}.slow-essay h1{font-family:var(--serif);font-size:clamp(32px,5.4vw,62px);font-weight:400;line-height:1.6;margin:40px 0 18px}
.essay-english{font-size:18px;color:var(--muted)}.essay-body{max-width:660px;margin:70px auto;font-size:18px;line-height:2.05}
.essay-body h2,.essay-body h3{font-family:var(--serif);font-weight:400}.essay-body p{margin:0 0 28px}.essay-body .lead{font-family:var(--serif);font-size:28px;margin:48px 0}
.method-steps{margin:55px 0}.method-steps section{padding:25px 0;border-top:1px solid var(--line)}.method-steps section>span{font-size:14px;color:var(--muted)}.method-steps h3{font-size:24px;margin:8px 0 14px}.method-steps p{margin:0}
.self-paced-statement{font-family:var(--serif);font-size:clamp(23px,3vw,35px);line-height:1.8;border-top:1px solid var(--line);padding:30px 0}.self-paced-statement small{display:block;font-family:var(--sans);font-size:15px;color:var(--muted);margin:12px 0}
@media(min-width:720px){.mobile-room{padding-top:12px}.mobile-bottom{width:680px;margin:auto}.mobile-room .options{grid-template-columns:1fr}.mobile-room .question-actions{gap:14px}}
@media(max-width:650px){.home .hero-title{font-size:clamp(37px,9.2vw,62px)}.home .encounter-symbol{display:none}.slow-essay .eyebrow{font-size:12px}.essay-body{font-size:17px;margin-top:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.mobile-question .question-flags [data-value="skipped"]{display:none}

/* V2.1 responsive author desk + preserved Mobile First respondent experience */
html,body,#app{max-width:100%;overflow-x:hidden}
.container,main,.view,.room-shell{min-width:0;max-width:100%}
img,svg,video,canvas{max-width:100%}
input,textarea,select,button{max-width:100%}
.wrap,.participant-meta,.notice,.message-answer,.editor-note{overflow-wrap:anywhere}
.home .hero-title{font-size:clamp(34px,10.7vw,160px);line-height:.92;letter-spacing:-.065em;overflow-wrap:anywhere}
.home .hero-title span{white-space:nowrap}
.home .intro-right{padding-left:0;min-width:0}
.home .intro-left{min-width:0;grid-template-columns:minmax(0,66px) minmax(0,1fr)}
.home .intro-statement{font-size:clamp(22px,6.2vw,32px);overflow-wrap:anywhere}
.home .hero-english{min-width:0;overflow-wrap:anywhere}
.desk-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:42px 0 28px;border-bottom:1px solid var(--ink)}
.desk-heading h1{font-size:clamp(42px,5vw,72px);line-height:1;letter-spacing:-.06em;margin:12px 0}
.desk-heading-actions{display:flex;align-items:center;gap:22px}
.desk-v21{display:grid;grid-template-columns:minmax(190px,230px) minmax(460px,1fr) minmax(240px,300px);gap:28px;padding-top:26px;align-items:start}
.desk-v21>*{min-width:0}
.desk-column-title{font-size:12px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:16px}
.people-search{font-size:16px;margin:14px 0 8px}
.people-list{max-height:calc(100dvh - 310px);overflow:auto;border-top:1px solid var(--line)}
.person-button{width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:16px 10px;min-height:68px}
.person-button.active{background:var(--soft)}
.person-button strong,.person-button .small{display:block}
.central-person-head{display:flex;justify-content:space-between;align-items:start;gap:20px;border-bottom:1px solid var(--line);padding:0 0 20px}
.central-person-head h2{font-size:34px;margin:8px 0 0}
.central-editor{padding:26px 0 38px;border-bottom:1px solid var(--ink);min-width:0}
.central-editor>h2,.central-timeline>h2{font-family:var(--serif);font-size:28px}
.editor-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 22px}
.editor-tabs button{min-height:44px;padding:9px 14px;border:1px solid var(--line);background:transparent}
.editor-tabs button.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.editor-sticky-actions{position:sticky;top:8px;z-index:4;background:var(--paper);padding:10px 0;border-bottom:1px solid var(--line);margin:14px 0 20px}
.editor-sticky-actions .button{min-height:44px}
.editor-question{padding:24px 0;border-top:1px solid var(--line);min-width:0}
.editor-question textarea{width:100%;min-height:82px;font-size:16px}
.editor-question select,.editor-small-row{font-size:16px}
.editor-small-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.editor-small-row select{display:block;width:100%;min-height:44px;margin-top:8px}
.editor-question textarea[data-edit=options]{min-height:110px}
.desk-ops{position:sticky;top:14px;max-height:calc(100dvh - 28px);overflow:auto;border-left:1px solid var(--line);padding-left:20px}
.ops-card{border-top:1px solid var(--line);padding:18px 0}
.ops-card h3{font-family:var(--serif);font-size:20px;margin-bottom:12px}
.ops-card .action-row{margin:12px 0}
.ops-card .text-button{display:inline-block;margin:7px 12px 5px 0;text-align:left}
.round-ops{padding:12px 0;border-top:1px solid var(--line)}
.round-ops strong,.round-ops span{display:block;margin-bottom:5px}
.central-timeline{padding-top:28px}
.central-timeline>.action-row{margin-bottom:14px}
.danger-text{color:#8b1e18;border-color:#8b1e18}
.danger-button{background:#8b1e18;border-color:#8b1e18}
.import-compare{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-height:55vh;overflow:auto}
.import-compare section{padding:14px;border:1px solid var(--line);min-width:0}
.import-compare p{font-size:14px;overflow-wrap:anywhere}
.respondent-preview{max-height:min(78dvh,850px);overflow:auto;padding:8px 8px 24px;max-width:680px}
.preview-progress{height:4px;background:var(--line);margin:12px 0 26px}
.preview-progress span{height:100%;display:block;background:var(--ink)}
.preview-option{display:flex;gap:12px;align-items:center;min-height:48px;padding:12px;border:1px solid var(--line);margin:8px 0}
.preview-textarea{width:100%;min-height:120px;font-size:16px;padding:14px;background:transparent;border:1px solid var(--line)}
.preview-field-notes{padding:18px 0;border-top:1px solid var(--line);margin-top:20px}
.preview-field-notes h3{font-family:var(--serif)}
#ce-code,#ce-email{font-size:16px;min-height:50px;max-width:100%}
#ce-login .button,#ce-verify .button{min-height:48px}
#ce-verify [data-action=resend-otp]{min-height:44px;margin-right:16px}
.modal-close{min-width:44px;min-height:44px}

@media(max-width:1180px){
 .desk-v21{grid-template-columns:minmax(180px,220px) minmax(0,1fr);gap:22px}
 .desk-v21 .desk-ops{position:static;grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-left:0;border-top:1px solid var(--line);padding:12px 0 0;max-height:none;overflow:visible}
 .desk-v21 .desk-column-title{grid-column:1/-1}
}
@media(max-width:760px){
 .container{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
 .site-header{height:72px}
 .brand{gap:10px;min-width:0}.brand-name{font-size:13px;letter-spacing:.06em}.brand-mark{font-size:27px}
 .navigation{top:71px;padding:20px max(20px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));max-height:calc(100dvh - 72px);overflow:auto}
 .home .hero-meta{margin-bottom:34px}.home .hero-title{font-size:clamp(31px,10.4vw,64px);line-height:.98;letter-spacing:-.065em;margin-bottom:25px}.home .hero-title span{white-space:normal;overflow-wrap:anywhere}
 .home .hero-subrow{grid-template-columns:1fr;gap:7px;padding-bottom:20px}.home .hero-chinese{font-size:25px;letter-spacing:.22em}.home .hero-english{justify-self:start;font-size:14px;line-height:1.6}
 .home .home-intro{grid-template-columns:minmax(0,1fr);gap:20px;padding:28px 0}.home .intro-left{grid-template-columns:minmax(0,54px) minmax(0,1fr);gap:14px}.home .encounter-symbol{width:48px;height:86px}.home .intro-statement{font-size:clamp(21px,6.3vw,27px);line-height:1.6}.home .intro-right{padding:0;margin:0;max-width:none}.home .intro-right p{font-size:15px;line-height:1.8}.home .desktop-break{display:none}.home .byline{gap:16px;margin-top:18px}
 .home .home-entries{grid-template-columns:1fr}.home .entry,.home .entry+.entry{padding:22px 0;border-left:0;border-bottom:1px solid var(--line)}.home .entry .entry-label{margin-bottom:18px}.home .entry h2{font-size:28px}.home .entry h2 span{font-size:18px}
 .room-shell{min-height:calc(100dvh - 72px);padding-bottom:calc(28px + env(safe-area-inset-bottom))}
 .room-shell .page-heading{padding:28px 0 20px;gap:10px}.room-shell .page-heading h1{font-size:clamp(40px,12vw,62px)!important;line-height:1.05}.room-shell .page-heading .zh-title{font-size:22px;line-height:1.6}
 .room-tools{display:flex;flex-wrap:wrap;gap:8px 16px}.room-tools button,.room-tools a{min-height:44px;padding:8px 0}
 .round-form textarea,.round-form input,.round-form select{font-size:16px!important;max-width:100%}.round-form textarea{min-height:116px;resize:vertical}.round-form button{min-height:44px}
 .desk-heading{align-items:start;flex-direction:column;padding:26px 0 18px;gap:12px}.desk-heading h1{font-size:42px}.desk-heading-actions{justify-content:space-between;width:100%;gap:10px}
 .desk-v21{display:flex;flex-direction:column;gap:18px;padding-top:16px}.desk-v21 .desk-people,.desk-v21 .desk-center,.desk-v21 .desk-ops{width:100%;max-width:100%}
 .desk-v21 .desk-people{order:0}.desk-v21 .desk-center{order:1}.desk-v21 .desk-ops{order:2;display:block;border-top:1px solid var(--ink);padding:14px 0;max-height:none}
 .people-list{display:flex;overflow:auto;max-height:none;border-top:1px solid var(--line);gap:8px;padding:8px 0}
 .person-button{flex:0 0 min(76vw,265px);border:1px solid var(--line);padding:12px}
 .central-person-head{display:block}.central-person-head>.action-row{margin-top:12px}.central-person-head h2{font-size:28px}
 .central-editor{padding:20px 0 28px}.central-editor>h2,.central-timeline>h2{font-size:24px}
 .editor-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.editor-tabs button{flex:0 0 auto;font-size:14px}
 .editor-sticky-actions{top:0;display:flex;gap:6px}.editor-sticky-actions .button{flex:1;padding:9px 8px;font-size:13px;white-space:normal}
 .editor-small-row{grid-template-columns:1fr;gap:6px}.editor-question{padding:18px 0}.editor-question textarea{font-size:16px;min-height:94px}
 .desk-ops .ops-card{padding:14px 0}.desk-ops .action-row .button{flex:1}.desk-ops .ops-card .text-button{min-height:44px}
 .import-compare{grid-template-columns:1fr;max-height:52dvh}
 .respondent-preview{padding:4px 0 20px}.respondent-preview .message-question{font-size:24px;line-height:1.6}
 .interview-layout{min-height:0}.question-actions{position:sticky;bottom:env(safe-area-inset-bottom);background:var(--paper);padding:8px 0;z-index:3}
 .site-footer{margin-top:40px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
 .home .hero-title{font-size:clamp(28px,9.8vw,36px);letter-spacing:-.07em}
 .home .intro-left{grid-template-columns:minmax(0,44px) minmax(0,1fr);gap:10px}.home .encounter-symbol{width:40px}
 .desk-heading h1{font-size:36px}.editor-sticky-actions .button{font-size:12px;padding-inline:5px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
