:root{font-family:Microsoft YaHei,system-ui,sans-serif;color:#20262b;background:#fff}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;overflow:hidden}button,input,textarea,select{font:inherit}.app{height:100vh;display:flex;flex-direction:column;overflow:hidden;padding:42px max(6vw,48px)}header{display:flex;flex:none;justify-content:space-between;align-items:center;max-width:1480px;width:100%;margin:auto;color:#171b1e}.brand{font-size:15px;letter-spacing:.08em;color:#657075}.progress{display:flex;align-items:center;gap:16px;font-size:15px}.progress i{width:min(440px,40vw);height:24px;background:#dedede;border-radius:99px;overflow:hidden}.progress b{display:block;height:100%;border-radius:99px;background:#657076;transition:width .35s}.content{flex:1;min-height:0;overflow-y:auto;max-width:1480px;width:100%;margin:0 auto;padding:48px 0 64px}.card{background:#fff;border-radius:36px;box-shadow:0 16px 40px #27323a1c;padding:44px;max-width:880px;margin:0 auto}.card h1{margin-top:0;font-size:28px}.card p{line-height:1.8;color:#4f5b61}.card label{display:block;margin:22px 0 8px;font-weight:600}input,textarea,select{border:1px solid #cbd1d4;border-radius:12px;padding:12px;width:100%;margin-top:8px;background:#fff}textarea{min-height:100px}button,.actions a{background:#3e555d;color:#fff;border:0;border-radius:14px;padding:13px 20px;cursor:pointer;margin-top:18px;text-decoration:none;display:inline-block}button:disabled{background:#c5ccce;cursor:not-allowed}.secondary,.link{background:#edf0f1;color:#304149}.link{display:block;margin-top:8px;padding:7px;background:transparent;text-decoration:underline}.error{color:#a83b3b!important;background:#fff0f0;padding:10px;border-radius:10px}.entrance{margin-top:9vh;max-width:560px}.statusline{text-align:center;color:#6c777b;margin-bottom:22px}.hint{color:#738087;font-size:14px}.actions{display:flex;gap:12px;justify-content:flex-end}.signature-pad{position:relative}.signature-pad canvas{display:block;width:100%;height:170px;border:1px dashed #9ca7ab;border-radius:14px;touch-action:none;position:relative;z-index:1}.signature-pad span{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#aeb8bb;font-size:16px;pointer-events:none;z-index:2}.signature-pad.signed span{display:none}.timer{font-weight:700;color:#354b54!important}.chat-stage{max-width:760px;margin:7vh auto}.chat{min-width:0}.bubble{width:fit-content;max-width:86%;padding:22px 25px;line-height:1.8;border-radius:30px;margin:15px 0;white-space:pre-wrap}.user{margin-left:auto;background:#e5ebec;border-bottom-right-radius:8px}.ai{background:#fff;box-shadow:0 16px 44px #2836401c;border-bottom-left-radius:8px}.send{display:block;margin:35px auto}.send span{font-size:20px;margin-left:9px}.thinking,.reading{text-align:center;color:#738087}.thinking-dots{display:inline-flex;gap:4px;vertical-align:middle}.thinking-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;animation:thinking-bounce 1s infinite ease-in-out}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes thinking-bounce{0%,60%,to{transform:translateY(0);opacity:.35}30%{transform:translateY(-5px);opacity:1}}.split{display:grid;grid-template-columns:minmax(300px,1fr) minmax(400px,600px);gap:48px;align-items:center;max-width:1300px;margin:6vh auto}.mini{margin:0;max-width:620px}.fact-options{display:grid;gap:10px;margin:20px 0}.fact-options label{display:flex;align-items:center;gap:12px;margin:0;padding:14px;border:1px solid #d8dfe1;border-radius:12px;font-weight:400;cursor:pointer}.fact-options label.selected{border-color:#526970;background:#eef3f4}.fact-options input{width:auto;margin:0}.behavior-stage{margin-top:4vh}.behavior-actions{display:flex;gap:12px;margin-top:22px}.behavior-choice{flex:1;margin:0;background:#e9eeef;color:#26383f;text-align:center}.behavior-choice:hover,.behavior-choice.selected{background:#d2dde0}.continue{min-width:110px}.survey{max-width:900px}.survey fieldset{border:0;border-top:1px solid #e3e7e8;padding:28px 0;margin:12px 0}.survey legend{font-size:17px;line-height:1.6}.likert{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;margin:20px 0 6px}.likert label{display:flex!important;justify-content:center;margin:0!important;width:40px;height:40px;justify-self:center;cursor:pointer}.likert input{position:absolute;opacity:0;pointer-events:none}.likert span{display:grid;place-items:center;width:40px;height:40px;border:1px solid #c3cccf;border-radius:50%;font-weight:400;transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.likert label:hover span{transform:scale(1.12);border-color:#667f87;box-shadow:0 4px 12px #40545b20}.likert input:focus-visible+span{outline:3px solid #aec1c6;outline-offset:3px}.likert input:checked+span{background:#415960;color:#fff;border-color:#415960}.likert-labels{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;font-size:13px;color:#738087}.likert-labels span:first-child{grid-column:1;justify-self:start}.likert-labels span:last-child{grid-column:3;justify-self:end}.likert-labels span:nth-child(2):not(:last-child){grid-column:2;justify-self:center}input[type=range]{padding:0;height:6px;border-radius:99px;accent-color:#415960;margin-top:18px}.slider-labels{display:flex;justify-content:space-between;font-size:13px;color:#738087;margin-top:10px}.slider-labels span:nth-child(2){color:#20262b;font-weight:700}.survey-split{flex:1;min-height:0;align-items:start;overflow:visible;margin:0 auto}.survey-split>.chat{align-self:start}.survey-scroll{width:100%;height:100%;overflow-y:auto;overscroll-behavior:contain;padding:32px 64px 56px 44px;scrollbar-gutter:stable}.admin textarea{min-height:220px;font-family:ui-monospace,monospace}.admin pre{background:#f1f4f5;padding:14px;border-radius:12px}.admin a{margin-right:8px}.mobile{display:none}@media(max-width:1023px){.app>*:not(.mobile){display:none}.app{padding:30px}.mobile{display:block;padding:30px;background:#f1f4f5;border-radius:18px;line-height:1.7}}@media(min-width:1024px)and (max-width:1200px){.app{padding:36px}.split{gap:35px}.progress i{width:280px}}.survey .stem{font-size:19px;font-weight:600;color:#26333a;line-height:1.7;margin:22px 0 4px}.survey-section:first-of-type .stem{margin-top:8px}.reading-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0;gap:30px;padding:0 8vw;text-align:center}.reading-intro{font-size:18px;line-height:1.9;color:#4f5b61;margin:0;max-width:720px}.reading-card{background:#fff;border-radius:28px;box-shadow:0 16px 40px #27323a1c;padding:36px 40px;max-width:720px;text-align:left}.reading-tag{display:inline-block;font-size:13px;letter-spacing:.08em;color:#657075;background:#eef2f3;border-radius:8px;padding:4px 12px;margin-bottom:16px}.reading-question{font-size:20px;line-height:1.9;color:#26333a;white-space:pre-wrap;margin:0}.compare{max-width:1180px}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:24px 0 8px}.compare-cell{min-width:0}.compare-cell h2{margin:0 0 6px;font-size:18px;color:#35434a}.content:has(.survey-split),.content:has(.reading-stage){overflow:hidden;display:flex;flex-direction:column}.fact-options.grid-2{grid-template-columns:1fr 1fr;gap:28px}.instructions h2{font-size:19px;margin:26px 0 4px;color:#263238}.instructions h2:first-of-type{margin-top:20px}.instructions ul{margin:8px 0;padding-left:22px;color:#4f5b61;line-height:1.8}.instructions ul li{margin:6px 0}.confirm-check{display:flex!important;align-items:center;gap:10px;margin:26px 0 6px!important;padding:14px 18px;border:1.5px solid #cbd1d4;border-radius:14px;font-weight:600;cursor:pointer;background:#f7f9f9}.confirm-check:has(input:disabled){color:#9aa5a9;cursor:not-allowed}.confirm-check input{width:18px;height:18px;margin:0;flex:none;accent-color:#3e555d}.debugbar{display:flex;align-items:center;justify-content:center;gap:10px;margin:-4px auto 20px;padding:10px 14px;max-width:780px;background:#fff4d7;border:1px solid #f0d68c;border-radius:12px;font-size:13px}.debugbar select{width:auto;margin:0;padding:7px}.debugbar button{margin:0;padding:7px 13px;background:#6b5718}.debugbar .debug-exit{background:#80544d}
