:root{color:#403329;font-synthesis:none;text-rendering:optimizelegibility;--ink:#3e533b;--ink-deep:#3b2b24;--paper:#fff8eb;--paper-muted:#eddfc8;--line:#cbb597;--accent:#ad5233;--accent-soft:#f0dac5;--success:#405f45;--danger:#a84a3f;--shadow:0 18px 48px #53391f21;background:#efe2cb;font-family:Nunito,Inter,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{isolation:isolate;background:radial-gradient(at 50% 12%,#f8efdd 0%,#0000 65%),linear-gradient(#efe2cb 0%,#e5d3b8 100%);min-width:320px;min-height:100vh;margin:0;position:relative}body:before,body:after{content:"";width:var(--ornament-width,clamp(110px, 15vw, 190px));z-index:-1;background-image:url(/animal-wallpaper-small.jpg);background-repeat:repeat-y;background-size:auto var(--ornament-size,clamp(600px, 76vw, 960px));mix-blend-mode:multiply;opacity:.95;pointer-events:none;position:fixed;top:0;bottom:0}body:before{-webkit-mask-image:linear-gradient(to right, #000 var(--ornament-solid,76%), transparent), var(--ornament-clear,linear-gradient(#000, #000));-webkit-mask-composite:source-in;-webkit-mask-image:linear-gradient(to right, #000 var(--ornament-solid,76%), transparent), var(--ornament-clear,linear-gradient(#000, #000));mask-image:linear-gradient(to right, #000 var(--ornament-solid,76%), transparent), var(--ornament-clear,linear-gradient(#000, #000));background-position:0 0;left:0;-webkit-mask-composite:source-in;mask-composite:intersect}body:after{-webkit-mask-image:linear-gradient(to left, #000 var(--ornament-solid,76%), transparent), var(--ornament-clear,linear-gradient(#000, #000));-webkit-mask-composite:source-in;-webkit-mask-image:linear-gradient(to left, #000 var(--ornament-solid,76%), transparent), var(--ornament-clear,linear-gradient(#000, #000));mask-image:linear-gradient(to left, #000 var(--ornament-solid,76%), transparent), var(--ornament-clear,linear-gradient(#000, #000));background-position:100% 0;right:0;-webkit-mask-composite:source-in;mask-composite:intersect}#root{min-height:100vh;position:relative}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #d46f4c57}.student-shell{flex-direction:column;min-height:100vh;display:flex}.hero{color:var(--ink);text-align:center;background:0 0;padding:62px 24px 26px;position:relative}.student-identity{z-index:2;color:var(--ink);align-items:center;gap:10px;font-size:13px;display:flex;position:absolute;top:18px;right:max(18px,50% - 550px)}.student-identity span{font-weight:800}.student-identity button{min-height:36px;color:var(--ink);cursor:pointer;background:#fffaf0d1;border:1px solid #4a5f4947;border-radius:999px;padding:0 13px;box-shadow:0 5px 14px #5e452b14}.student-identity button:hover{background:#fffaf0;transform:translateY(-1px)}.hero__eyebrow,.section-kicker{color:var(--accent);letter-spacing:.16em;text-transform:uppercase;font-size:12px;font-weight:800;display:block}.hero__eyebrow{color:#a75038;background:#fffaf0d1;border-radius:999px;margin-bottom:12px;padding:7px 13px;font-size:15px;display:inline-block;box-shadow:0 6px 18px #5e452b14}.hero h1{color:var(--ink-deep);letter-spacing:.04em;text-shadow:0 2px #ffffffb8;margin:0;font-family:STIX Two Text,Songti SC,serif;font-size:clamp(34px,6vw,54px)}.hero__subtitle{color:#71563f;letter-spacing:.18em;margin:8px 0 2px;font-family:STIX Two Text,Songti SC,serif;font-size:22px;font-weight:600}.animal-hero{aspect-ratio:3;object-fit:contain;mix-blend-mode:multiply;-webkit-mask-composite:source-in;pointer-events:none;width:min(920px,100%);height:auto;margin:14px auto 0;display:block;-webkit-mask-image:linear-gradient(#0000,#000 8% 84%,#0000),linear-gradient(90deg,#0000,#000 4% 96%,#0000);mask-image:linear-gradient(#0000,#000 8% 84%,#0000),linear-gradient(90deg,#0000,#000 4% 96%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}.animal-hero--compact{width:100%;margin:6px 0 22px}.workspace{z-index:2;flex:1;width:min(820px,100% - 32px);margin:0 auto 36px;position:relative}.input-card,.result-card,.control-card,.teacher-login__card{box-shadow:var(--shadow);background:#fff8eb;border:1px solid #7e5e3942;border-radius:28px}.input-card,.result-card{padding:clamp(24px,5vw,42px)}.section-heading,.result-heading,.teacher-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.section-heading h2,.result-heading h2,.control-card h2{color:var(--ink-deep);margin:6px 0 0;font-family:STIX Two Text,Songti SC,serif;font-size:clamp(22px,4vw,28px);line-height:1.35}.range-label,.reason-chip{background:var(--paper-muted);color:#655e54;border-radius:999px;flex:none;padding:7px 11px;font-size:12px;font-weight:700}.tabs{background:#e7d7bd;border-radius:17px;grid-template-columns:1fr 1fr;gap:7px;margin:30px 0 24px;padding:6px;display:grid}.tab{color:#69523f;cursor:pointer;background:0 0;border:0;border-radius:12px;min-height:46px;font-weight:800}.tab--active{color:var(--ink-deep);background:var(--paper);box-shadow:0 5px 15px #5e452b1a}.textarea-label,.select-label{color:#514c44;margin-bottom:9px;font-size:13px;font-weight:800;display:block}textarea,.teacher-login input,select{border:1px solid var(--line);color:#1e2937;background:#fffefb;border-radius:13px;width:100%;transition:border-color .16s,box-shadow .16s}textarea{resize:vertical;min-height:210px;padding:18px;line-height:1.8}textarea:focus,.teacher-login input:focus,select:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 4px #d46f4c1f}textarea::placeholder{color:#9b958a}.text-meta{color:#827a6f;justify-content:space-between;gap:16px;margin:10px 2px 22px;font-size:12px;display:flex}.count{font-variant-numeric:tabular-nums}.primary-button,.secondary-button,.text-button{cursor:pointer;border-radius:11px;min-height:46px;padding:0 20px;font-weight:800;transition:transform .15s,box-shadow .15s,background .15s}.primary-button{color:#fff;background:#415f43;border:1px solid #354d35;box-shadow:0 9px 22px #3e604838}.primary-button:hover{background:#334d35;transform:translateY(-1px)}.secondary-button{color:var(--ink-deep);background:#fffaf0;border:1px solid #cdbba5}.secondary-button:hover{background:#f5eadb;transform:translateY(-1px)}.text-button{color:#8f452f;text-underline-offset:3px;background:0 0;border:0;text-decoration:underline}button:disabled{cursor:not-allowed;opacity:.55;transform:none}.full-width{width:100%}.photo-panel{gap:14px;display:grid}.upload-box{text-align:center;cursor:pointer;background:#fbf2e5;border:1px dashed #c59d7b;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:190px;display:flex}.upload-box:hover{border-color:var(--accent);background:#faeadc}.upload-box:focus-within{outline-offset:3px;outline:3px solid #d46f4c57}.upload-box[aria-disabled=true]{cursor:wait;opacity:.65}.upload-box input{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.upload-box__preview{object-fit:contain;border-radius:8px;width:100%;height:clamp(72px,14dvh,120px);display:block}.upload-box__title{color:var(--ink);font-weight:800}.upload-box__hint{color:#81796e;font-size:13px}.upload-box__file{color:var(--success);background:#e8f2ed;border-radius:7px;margin-top:8px;padding:6px 10px;font-size:12px}.notice{border-radius:10px;margin:16px 0;padding:12px 14px;font-size:14px;line-height:1.55}.notice--error{color:#842f29;background:#fae9e5;border:1px solid #ecc2b9}.notice--success{color:#275d49;background:#e9f3ee;border:1px solid #c6ded2}.notice--fallback{color:#75511f;background:#fbf2dc;border:1px solid #ead5a5;margin-top:0}.notice--action{justify-content:space-between;align-items:center;gap:14px;display:flex}.notice--action .text-button{min-height:32px;color:inherit;white-space:nowrap;padding:0 6px}.reason-chip{color:#87442f;background:var(--accent-soft)}.anchor-question{border-left:4px solid var(--accent);background:#faeee2;border-radius:0 16px 16px 0;margin:28px 0;padding:20px 22px}.anchor-question span{color:var(--accent);letter-spacing:.12em;font-size:12px;font-weight:900}.anchor-question p{color:#342f29;margin:8px 0 0;font-family:STIX Two Text,Songti SC,serif;font-size:18px;line-height:1.75}.followup-section h3{color:#514a40;letter-spacing:.08em;margin:0 0 16px;font-size:14px}.question-list{counter-reset:question;gap:12px;margin:0;padding:0;list-style:none;display:grid}.question-list li{counter-increment:question;color:#433a33;background:#fffdf8;border:1px solid #e0d2c0;border-radius:16px;grid-template-columns:34px 1fr;align-items:start;gap:12px;padding:17px 18px;line-height:1.7;display:grid}.question-list li:before{content:counter(question);color:#fff;background:var(--accent);border-radius:50%;place-items:center;width:29px;height:29px;font-size:13px;font-weight:800;display:grid}.classroom-tip{color:#6d655a;border-top:1px solid #e2dbd0;margin:24px 0 0;padding-top:19px;font-size:14px;line-height:1.7}.result-actions{grid-template-columns:1.3fr 1fr;gap:12px;margin-top:24px;display:grid}.message-result{text-align:center;padding:26px 0}.message-result h2{max-width:560px;color:var(--ink);margin:12px auto 28px;font-family:STIX Two Text,Songti SC,serif}.history-overlay{z-index:50;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#10243f7a;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.history-dialog{background:var(--paper);border:1px solid #61564538;border-radius:20px;flex-direction:column;width:min(860px,100%);max-height:min(82vh,900px);padding:clamp(22px,4vw,34px);display:flex;box-shadow:0 28px 90px #10243f4d}.history-dialog__header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px;display:flex}.history-dialog__header h2{color:var(--ink);margin:6px 0 0;font-family:STIX Two Text,Songti SC,serif;font-size:28px}.history-empty{color:#756e63;text-align:center;background:#f5f1e8;border-radius:12px;padding:28px}.history-events{gap:14px;padding-right:5px;display:grid;overflow-y:auto}.history-event{background:#fff;border:1px solid #ded7ca;border-radius:13px;padding:18px}.history-event p{color:#4d473f;margin:9px 0;font-size:14px;line-height:1.7}.history-event p strong{color:var(--ink);margin-bottom:3px;font-size:12px;display:block}.history-event ol{color:#3f4b5b;margin:10px 0 0;padding-left:22px;line-height:1.75}.teacher-shell{min-height:100vh;padding:38px max(24px,50vw - 590px) 60px}.teacher-header{align-items:center;margin-bottom:28px}.teacher-header h1{color:var(--ink);margin:6px 0;font-family:STIX Two Text,Songti SC,serif;font-size:38px}.teacher-header p{color:#766f64;margin:0}.link-button{place-items:center;text-decoration:none;display:inline-grid}.teacher-grid{grid-template-columns:1.4fr .8fr;align-items:start;gap:20px;display:grid}.control-card{padding:28px}.control-card--wide{min-height:350px}.mode-options{grid-template-columns:1fr 1fr;gap:12px;margin:24px 0;display:grid}.mode-option{border:1px solid var(--line);color:#3c4653;text-align:left;cursor:pointer;background:#fff;border-radius:13px;min-height:110px;padding:18px}.mode-option strong,.mode-option span{display:block}.mode-option strong{color:var(--ink);margin-bottom:8px}.mode-option span{color:#756f65;font-size:13px;line-height:1.55}.mode-option--active{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:#eff3f7}select{min-height:46px;padding:0 13px}.stats-grid{grid-template-columns:1fr 1fr;gap:10px;margin:22px 0;display:grid}.stats-grid div{background:#f5f1e8;border-radius:12px;padding:15px}.stats-grid dt{color:#777064;font-size:12px}.stats-grid dd{color:var(--ink);font-variant-numeric:tabular-nums;margin:5px 0 0;font-size:25px;font-weight:800}.stats-grid small{margin-left:3px;font-size:10px}.question-preview,.student-records{grid-column:1/-1}.student-records__layout{grid-template-columns:260px 1fr;gap:18px;min-height:260px;margin-top:24px;display:grid}.student-list{border-right:1px solid #e0d9cd;flex-direction:column;gap:8px;padding-right:8px;display:flex}.student-list>p{color:#827a6f;font-size:14px}.student-list__item{color:#344052;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;width:100%;padding:13px 14px}.student-list__item strong,.student-list__item span{display:block}.student-list__item span{color:#81796e;margin-top:4px;font-size:12px}.student-list__item--active{background:#edf2f7;border-color:#bac7d5}.conversation-list{align-content:start;gap:12px;max-height:620px;padding-right:4px;display:grid;overflow:auto}.conversation-list h3{color:var(--ink);margin:0 0 2px;font-size:17px}.muted-text{color:#81796e;font-size:14px}.conversation-event{background:#fff;border:1px solid #e0d9cd;border-radius:12px;padding:16px}.conversation-event__meta{color:#81796e;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:12px;display:flex}.conversation-event__meta span{color:var(--accent);font-weight:800}.conversation-event p{color:#4d473f;margin:8px 0;font-size:14px;line-height:1.65}.conversation-event p strong{color:var(--ink);margin-bottom:3px;font-size:12px;display:block}.conversation-event ol{color:#4d473f;margin:10px 0 0;padding-left:22px;font-size:14px;line-height:1.7}.teacher-report{background:#f6f8f1;border:1px solid #cbd5c5;border-radius:12px;margin-top:18px;overflow:hidden}.teacher-report summary{color:var(--ink);cursor:pointer;padding:14px 16px;font-weight:800}.teacher-report summary span,.teacher-report h4>span{color:#63725b;background:#e6ecdf;border-radius:999px;margin-left:8px;padding:2px 7px;font-size:11px;font-weight:500;display:inline-block}.teacher-report__body,.teacher-report--status{padding:16px}.teacher-report__body{border-top:1px solid #dce3d6}.teacher-report h4{color:var(--ink);margin:0 0 10px;font-size:15px}.teacher-report section+section{margin-top:22px}.teacher-report p,.teacher-report li{overflow-wrap:anywhere;white-space:pre-wrap}.teacher-report blockquote{color:#52604a;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border-left:3px solid #b3c0a9;margin:8px 0;padding:8px 12px;font-size:14px}.teacher-report__item+.teacher-report__item{margin-top:14px}.teacher-report__question{font-weight:700}.teacher-report__heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.teacher-report__heading h4{margin-bottom:0}.teacher-report__revision{color:#453c33;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #e2dfd4;border-radius:8px;margin-top:10px;padding:16px;font-size:14px;line-height:1.85}.teacher-report ul{color:#4d473f;padding-left:20px;font-size:14px;line-height:1.75}.teacher-report-note{margin-top:14px}.preview-list{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:22px;display:grid}.preview-list article{background:#fff;border:1px solid #e0d9cd;border-radius:12px;padding:17px}.preview-list article div{align-items:center;gap:9px;display:flex}.preview-list article div span{color:#fff;background:var(--ink);border-radius:5px;padding:4px 7px;font-size:11px;font-weight:800}.preview-list article p{color:#5f584e;margin:10px 0 0;font-size:14px;line-height:1.65}.teacher-login{place-items:center;min-height:100vh;padding:24px;display:grid}.teacher-login__card{width:min(440px,100%);padding:38px}.teacher-login h1{color:var(--ink);margin:8px 0;font-family:STIX Two Text,Songti SC,serif}.teacher-login p{color:#756e63;margin:0 0 24px}.teacher-login label{margin-bottom:8px;font-size:13px;font-weight:800;display:block}.teacher-login input{min-height:48px;margin-bottom:16px;padding:0 13px}.student-entry{background:radial-gradient(circle at 50% 10%,#e28d5d1a,#0000 34rem);place-items:center;min-height:100vh;padding:28px;display:grid}.student-entry__card{width:min(640px,100%);box-shadow:var(--shadow);background:#fffaf0f7;border:1px solid #7e64482e;border-radius:30px;padding:clamp(28px,5vw,46px)}.student-entry .section-kicker{font-size:15px}.student-entry h1{color:var(--ink);margin:10px 0;font-family:STIX Two Text,Songti SC,serif;font-size:clamp(30px,6vw,42px)}.student-entry p{color:#746557;margin:0 0 14px;line-height:1.75}.student-entry label{color:#514c44;margin-bottom:9px;font-size:13px;font-weight:800;display:block}.student-entry input{border:1px solid var(--line);color:#453a33;background:#fffdf8;border-radius:15px;width:100%;min-height:54px;margin-bottom:18px;padding:0 16px}.student-entry input:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 4px #d46f4c1f}@media (width>=761px) and (width<=1200px){body{--ornament-clear:linear-gradient(to bottom, #000 190px, transparent 240px, transparent 530px, #000 590px)}}@media (width<=760px){body{--ornament-clear:linear-gradient(to bottom, #000 150px, transparent 220px, transparent 365px, #000 420px)}body:before,body:after{opacity:.8;background-size:auto 360px;width:70px}.hero{padding:28px 12px 18px}.student-identity{flex-wrap:wrap;justify-content:center;margin:0 0 20px;position:relative;top:auto;right:auto}.history-overlay{padding:10px}.history-dialog{border-radius:15px;max-height:92vh}.hero__subtitle{font-size:15px}.animal-hero{width:min(100%,560px);margin-top:20px}.animal-hero--compact{margin:4px 0 20px}.workspace{width:min(100% - 20px,760px)}.input-card,.result-card{border-radius:22px;padding:23px 18px}.section-heading,.result-heading{gap:12px}.range-label,.reason-chip{font-size:11px}.result-actions{grid-template-columns:1fr}.teacher-shell{padding:24px 14px 40px}.teacher-header{flex-direction:column;align-items:flex-start}.teacher-grid{grid-template-columns:1fr}.question-preview,.student-records{grid-column:auto}.student-records__layout{grid-template-columns:1fr}.student-list{border-bottom:1px solid #e0d9cd;border-right:0;flex-direction:row;padding:0 0 12px;overflow-x:auto}.student-list__item{min-width:150px}.mode-options,.preview-list{grid-template-columns:1fr}}@media (width>=1000px){body:has(.student-shell--input){--ornament-size:min(960px, 100dvh, 76vw);--ornament-width:min(190px, 20dvh, 15vw);--ornament-gap:clamp(16px, 2vw, 28px);--ornament-solid:90%;--ornament-clear:linear-gradient(#000, #000)}.student-shell--input{width:min(1240px, calc(100% - (var(--ornament-width) + var(--ornament-gap)) * 2));grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(28px,3vw,48px);min-height:100dvh;margin:0 auto;padding:72px 0 28px;display:grid;position:relative}.student-shell--input .student-identity{top:20px;right:0}.student-shell--input .hero{min-width:0;padding:0;position:static}.student-shell--input .hero h1{font-size:clamp(22px,2.4vw,38px);line-height:1.35}.student-shell--input .hero__subtitle{margin:12px 0 0;font-size:22px}.student-shell--input .animal-hero{width:100%;margin-top:28px}.student-shell--input .workspace{width:100%;min-width:0;margin:0}.student-shell--input .input-card{padding:clamp(22px,2.2vw,32px)}.student-shell--input .section-heading{gap:14px}.student-shell--input .section-heading h2{font-size:clamp(21px,1.8vw,26px)}.student-shell--input .tabs{margin:20px 0 16px}.student-shell--input textarea{height:clamp(150px,100dvh - 460px,280px);min-height:150px;padding:14px 16px;display:block}.student-shell--input .text-meta{margin:8px 2px 16px}.student-shell--input .upload-box{min-height:clamp(170px,100dvh - 420px,310px);padding:16px}.student-shell--input .upload-box__file{overflow-wrap:anywhere;max-width:100%}}@media (width>=1000px) and (height<=700px){.student-shell--input{padding-top:64px;padding-bottom:20px}.student-shell--input .input-card{padding:20px 24px}.student-shell--input .tabs{margin:14px 0 12px}.student-shell--input .text-meta{margin-bottom:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
