:root{--ink:#183c42;--muted:#6b7d7c;--green:#157a70;--green-deep:#0d625b;--green-soft:#e8f3ee;--paper:#f5f7f1;--white:#fffefa;--line:#dbe5dc;--amber:#8e672b;--amber-bg:#fff4dc;--red:#ad4136;--radius:18px;--shadow:0 5px 26px #153b3c07}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.75}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e5b75e;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3.5vw,43px);font-weight:650;line-height:1.4;letter-spacing:-1.4px;margin-bottom:16px}h2{font-size:21px;line-height:1.5;margin-bottom:15px;letter-spacing:-.3px}h3{font-size:16px;line-height:1.6;margin-bottom:10px}p{margin-bottom:15px}.shell{max-width:1160px;margin:0 auto;padding:0 34px 42px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:84px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:650;font-size:24px;text-decoration:none;letter-spacing:2px}.brand small{display:block;font-size:10px;line-height:1.5;letter-spacing:1px;font-weight:400;color:var(--muted)}.brand>span:first-child:not(:last-child){display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:10px 3px 10px 3px;background:var(--green);color:white;font-size:21px;letter-spacing:0}.topbar>a:not(.brand){font-size:12px;text-decoration:none}.hero{padding:44px 0 28px;max-width:910px}.eyebrow{font-size:11px;color:var(--green);letter-spacing:2px;margin:0 0 10px}.lede{font-size:17px;line-height:1.9;color:var(--muted);max-width:790px;margin-bottom:20px}.hero p:not(.eyebrow):not(.lede){color:var(--muted);font-size:13px;line-height:1.9;max-width:760px}.steps{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:12px;color:#58756c;margin-top:24px}.steps>*{display:flex;align-items:center;gap:8px}.steps b,.steps strong{color:var(--green);font-size:11px;font-weight:600}.steps>span,.steps>div{padding:5px 0}.card{padding:27px 29px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.section-head h2{margin:0}.section-head p{font-size:12px;color:var(--muted);margin:6px 0 0}.section-head>span,.section-head>small{font-size:11px;color:var(--muted);white-space:nowrap}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 22px}.upload-box{border:1px dashed #a8c9ba;border-radius:12px;position:relative;min-height:157px;padding:21px;background:#f5f9f2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:7px;font-size:14px;color:var(--ink)}.upload-box strong{font-size:14px;color:var(--ink)}.upload-box p,.upload-box small,.upload-box>span{font-size:11px;color:var(--muted);margin:0;line-height:1.8}.upload-box input[type=file]{padding:5px 0;font-size:11px;border:0;background:transparent;width:100%;color:var(--muted)}input[type=file]::file-selector-button{border:1px solid #c6dbcf;background:white;color:var(--green);font-size:12px;border-radius:6px;padding:7px 12px;margin-right:10px;cursor:pointer}.image-preview{width:100%;max-height:200px;object-fit:contain;border-radius:8px;background:#edf3e9;margin-top:8px}.image-preview:empty{display:none}.image-preview img{display:block;max-width:100%;max-height:200px;object-fit:contain;margin:auto;border-radius:7px}.field{display:block;margin:17px 0}.field>label,.field>span,.field>strong,label.field{display:block;font-size:12px;font-weight:600;color:var(--ink);margin-bottom:7px}.field label small,label small{font-weight:400;color:var(--muted)}label{font-size:13px}textarea,input:not([type=checkbox]):not([type=radio]):not([type=file]),select{display:block;width:100%;border:1px solid #ccdcd0;border-radius:8px;padding:11px 12px;line-height:1.75;font-size:13px;color:var(--ink);background:#fffefa}textarea{resize:vertical;min-height:94px}textarea::placeholder,input::placeholder{color:#97a39d}.field textarea{margin-top:7px}input[type=checkbox],input[type=radio]{accent-color:var(--green);flex-shrink:0}.actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:19px}.actions>span,.actions>small{font-size:11px;color:var(--muted)}button,.actions>a.primary,.actions>a.secondary{border:1px solid transparent;border-radius:8px;padding:10px 17px;min-height:42px;font-size:13px;font-weight:600;line-height:1.5;text-align:center;transition:background .15s}.primary{background:var(--green);color:white;border-color:var(--green);text-decoration:none}.primary:hover:not(:disabled){background:var(--green-deep)}.secondary{background:#fffefa;border-color:#cbdcd0;color:var(--green);text-decoration:none}.secondary:hover:not(:disabled){background:var(--green-soft)}.quiet{background:transparent;border-color:transparent;color:var(--green);font-size:12px;font-weight:400;min-height:34px;padding:6px 4px;text-decoration:underline;text-underline-offset:4px}.status{padding:12px 15px;background:var(--green-soft);border-radius:8px;font-size:12px;color:#3e6d5a;line-height:1.8;margin:15px 0;white-space:pre-wrap;overflow-wrap:anywhere}.status:empty{display:none}.error,.status.error{background:#fff0e9;color:var(--red);border:1px solid #edcfc3}.result-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:19px;align-items:start}.result-card{border:1px solid var(--line);border-radius:12px;padding:21px;background:#fffefa;min-width:0}.result-card h3{margin-bottom:14px}.result-card textarea{font-size:13px}.result-card>.field:first-child{margin-top:0}.stack{display:grid;gap:14px}.item{border-top:1px solid var(--line);padding-top:17px;margin-top:14px}.item:first-child{border-top:0;padding-top:0;margin-top:0}.item h3,.item h4{font-size:14px;margin:0 0 8px}.item p{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.item textarea{font-size:13px}.adopt-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:21px;margin-top:23px}.adopt-row label{display:flex;align-items:flex-start;gap:8px;line-height:1.8;font-size:12px;flex:1;min-width:250px}.adopt-row input{margin-top:5px}.adopt-row .actions{margin:0}.notice{padding:13px 16px;background:var(--amber-bg);border:1px solid #eddfbf;color:var(--amber);font-size:12px;line-height:1.9;border-radius:9px;margin:15px 0;white-space:pre-wrap}.notice:empty{display:none}.notice ul{margin:7px 0 0;padding-left:20px}.notice li{margin:3px 0}.video-box{padding-top:10px}.video-box video{display:block;width:100%;max-height:510px;border-radius:10px;background:#173e43}.video-box p{font-size:12px;color:var(--muted);line-height:1.9}.video-box summary{color:var(--green);font-size:14px;font-weight:600;cursor:pointer;padding:7px 0}.video-box .actions{margin-top:12px}.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}details{margin:14px 0}summary{font-size:12px;color:var(--green);cursor:pointer;line-height:1.8}details[open]>summary{margin-bottom:12px}.muted,small{color:var(--muted)}small{font-size:11px}ul,ol{padding-left:22px}li{margin-bottom:5px}footer{font-size:10px;color:#87968d;padding:12px 0 0;line-height:1.9}.result-card pre,.result-card code{font-family:inherit;white-space:pre-wrap}.result-card .field:last-child{margin-bottom:0}.field input[type=checkbox]{display:inline;width:auto}.item label{display:block;margin:10px 0 6px;font-size:12px;color:var(--muted)}.adopt-row+.actions{padding-top:0}.status[aria-busy=true]{border-left:3px solid var(--green)}progress{width:100%;accent-color:var(--green);height:8px}
@media(max-width:900px){.shell{padding:0 24px 32px}.hero{padding-top:32px}.hero h1{font-size:34px;letter-spacing:-1px}.lede{font-size:15px}.card{padding:23px}.result-grid{gap:15px}.result-card{padding:18px}.section-head h2{font-size:19px}.steps{gap:10px;font-size:11px}.adopt-row{gap:15px}.adopt-row .actions{width:100%}}
@media(max-width:640px){body{font-size:14px}.shell{padding:0 17px 28px}.topbar{min-height:69px;gap:12px;font-size:10px}.brand{font-size:22px;gap:8px}.brand small{font-size:8px;letter-spacing:.7px}.brand>span:first-child:not(:last-child){width:33px;height:33px;font-size:19px}.topbar>a:not(.brand){font-size:10px}.hero{padding:27px 0 20px}.hero h1{font-size:29px;line-height:1.45;letter-spacing:-1px;margin-bottom:13px}.eyebrow{font-size:10px;letter-spacing:1.4px}.lede{font-size:14px;line-height:1.9;margin-bottom:16px}.hero p:not(.eyebrow):not(.lede){font-size:12px}.steps{gap:8px 14px;margin-top:18px;font-size:10px}.steps>*{gap:6px}.steps b,.steps strong{font-size:10px}.card{padding:20px 17px;border-radius:14px;margin-bottom:17px}.section-head{gap:10px;flex-wrap:wrap;margin-bottom:13px}.section-head h2{font-size:18px}.section-head p{font-size:11px}.section-head>span,.section-head>small{font-size:10px}.upload-grid,.result-grid{grid-template-columns:1fr;gap:13px}.upload-grid{margin:15px 0 18px}.upload-box{min-height:133px;padding:17px;gap:6px}.upload-box strong{font-size:13px}.upload-box input[type=file]{font-size:10px}.image-preview,.image-preview img{max-height:240px}.field{margin:15px 0}.field>label,.field>span,.field>strong,label.field{font-size:11px}textarea,input:not([type=checkbox]):not([type=radio]):not([type=file]),select{font-size:14px;padding:10px;min-width:0}textarea{min-height:100px}.actions{gap:9px;margin-top:17px}.actions .primary,.actions .secondary{flex:1;min-width:135px}button,.actions>a.primary,.actions>a.secondary{font-size:12px;padding:10px 13px}.quiet{flex:0 0 auto!important;min-width:0!important;font-size:11px;padding:6px 1px}.actions>span,.actions>small{font-size:10px}.status,.notice{font-size:11px;padding:12px 13px;margin:13px 0}.result-card{padding:17px;border-radius:10px}.result-card h3{font-size:15px;margin-bottom:12px}.result-card textarea{font-size:14px}.adopt-row{display:block;padding-top:18px;margin-top:19px}.adopt-row label{min-width:0;font-size:11px}.adopt-row .actions{margin-top:15px}.adopt-row .primary{width:100%}.item h3,.item h4{font-size:13px}.item p{font-size:12px}.video-box summary{font-size:13px}.video-box p{font-size:11px}.video-box video{border-radius:8px}footer{font-size:9px;line-height:1.9}h2{font-size:19px}.stack{gap:12px}}
@media print{@page{size:A4;margin:16mm}body{background:white;color:#111;font-size:11pt}.topbar,.hero,.steps,.upload-grid,.actions,.adopt-row,.video-box,button,input[type=file],.status,.notice{display:none!important}.shell{padding:0;max-width:none}.card,.result-card{box-shadow:none;border:0;border-radius:0;padding:0;margin:0 0 14px}.result-grid{display:block}.item{break-inside:avoid}textarea,input{border:0!important;padding:0!important;color:#111!important;resize:none}.field label{color:#444}.result-card h3{font-size:13pt}a{color:#111;text-decoration:none}footer{font-size:8pt}}
.brand>span{display:block;max-width:190px;font-size:10px;font-weight:400;line-height:1.65;letter-spacing:.6px;color:var(--muted)}.steps{list-style:none;padding-left:0;counter-reset:flow}.steps li::before{counter-increment:flow;content:"0" counter(flow);font-size:10px;color:var(--green);font-weight:600;letter-spacing:1px;margin-right:3px}.quiet{color:var(--muted);font-size:11px;font-weight:400;line-height:1.9;text-decoration:none;min-height:0;padding:0;background:transparent;border:0}button.quiet,a.quiet{color:var(--green);text-decoration:underline;text-underline-offset:4px;padding:6px 2px;min-height:32px}footer.quiet{font-size:10px;padding-top:10px;line-height:1.9}.field textarea{display:block;width:100%;font-weight:400}.upload-box>label{font-size:13px;font-weight:600}.upload-box label small{display:block;font-size:10px;line-height:1.7;font-weight:400;margin-top:4px}.image-preview img{max-height:200px}.image-preview button{display:block;margin:10px auto 0;font-size:10px;min-height:30px;padding:5px 11px}label.adopt-row{justify-content:flex-start;align-items:flex-start;gap:9px;font-size:12px;line-height:1.9}label.adopt-row input{margin-top:5px}#adopt-area{gap:10px}#adopt-area>.actions{margin-top:3px}#adopt-area>.quiet{margin-bottom:0}.result-grid{margin-bottom:18px}.result-card:disabled,.result-card[aria-disabled=true]{opacity:.62}.field:has(textarea:disabled){opacity:.65}details[open] textarea{min-height:90px}#video-examples>summary{font-size:15px;font-weight:600;color:var(--ink)}#video-examples>summary small{font-size:10px;font-weight:400;color:var(--muted);margin-left:9px}#video-examples>p{font-size:12px;color:var(--muted);margin-top:16px}#video-examples .video-box{margin-top:10px}#video-examples .video-box>a{display:inline-block;font-size:11px;margin-top:11px}
@media(max-width:640px){.brand>span{max-width:148px;font-size:8px;letter-spacing:.4px}.topbar>.eyebrow{font-size:8px;letter-spacing:.4px;white-space:nowrap;margin:0}.steps li{font-size:10px}.steps li::before{font-size:9px}.quiet{font-size:10px}.upload-box label small{font-size:10px}.image-preview,.image-preview img{max-height:200px}label.adopt-row{display:flex;font-size:11px;gap:8px}#adopt-area>.actions{gap:8px}#adopt-area>.actions button{min-width:125px}#video-examples>summary{font-size:13px}#video-examples>summary small{display:block;margin:4px 0 0;font-size:9px}#video-examples>p{font-size:11px}.result-grid{margin-bottom:14px}footer.quiet{font-size:9px}}

.upload-grid>.upload-box:only-child{grid-column:1/-1}
.teacher-request{border-top:1px solid var(--line);margin-top:20px;padding-top:2px}.teacher-request .field{margin-bottom:6px}.teacher-request .actions{margin-top:8px}.teacher-request textarea{min-height:75px}.teacher-video{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.teacher-video>summary{font-size:16px;font-weight:650}.teacher-video>p{font-size:13px;margin-top:13px}.teacher-video video{width:100%;max-height:560px;background:#112c32;border-radius:10px;margin-top:20px}.teacher-video .actions>a{display:inline-block;padding:10px 15px;border-radius:8px;text-decoration:none;font-size:13px}.voice-correction-row{border:1px solid var(--line);padding:17px;border-radius:10px;margin:15px 0;background:#f9fbf7}.voice-correction-row h4{font-size:13px;margin:0 0 8px}.voice-correction-row>p{white-space:pre-wrap;font-size:13px;line-height:1.9}.time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.time-fields label{font-size:12px}#video-correct-area{margin-top:22px}#video-alignment-list p{font-size:12px;overflow-wrap:anywhere}#video-script-area .field textarea{min-height:160px}#video-script-approved,#video-correction-approved{margin-top:5px}#teacher-video small{font-weight:400;margin-left:8px}@media(max-width:640px){.teacher-video>summary{font-size:14px}.teacher-video>.actions button{min-width:140px}.teacher-video video{margin-top:12px}.voice-correction-row{padding:13px}.teacher-request .quiet{margin-top:10px}}@media print{.teacher-request,.teacher-video{display:none!important}}
.zhiyin-voice-start,.zhiyin-voice-stop{font-size:12px;min-height:37px;padding:8px 13px}.zhiyin-voice-start[aria-pressed=true]{background:var(--green-soft);color:var(--green-deep);border-color:#b8d9c9}.zhiyin-voice-status{font-size:11px;font-weight:400;line-height:1.85;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.zhiyin-voice-status.is-active{color:var(--green-deep)}.zhiyin-voice-status.is-error{color:var(--red)}.zhiyin-voice-status:empty{display:none}@media(max-width:640px){.zhiyin-voice-start,.zhiyin-voice-stop{font-size:11px;min-height:37px}.zhiyin-voice-status{font-size:10px}}@media print{.zhiyin-voice-start,.zhiyin-voice-stop,.zhiyin-voice-status{display:none!important}}

/* Teacher workspace */
:root {
  --ink:#182f2a; --muted:#526760; --green:#155c4c; --green-deep:#0e473a;
  --green-soft:#e7f2eb; --paper:#f4f5ee; --white:#fffefa; --line:#d9e2d7;
  --amber:#735019; --amber-bg:#fbf2df; --radius:20px; --shadow:0 9px 28px #142e2110;
}
body { font-size:15px; }
.shell { max-width:1180px; }
.topbar { min-height:74px; border:0; }
.brand { gap:11px; letter-spacing:0; }
.brand .brand-mark { width:37px; height:37px; padding:3px; background:#173e34; border-radius:10px; color:#e9d09b; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.brand .brand-mark circle { fill:#173e34; }
.brand .brand-name { font-size:22px; font-weight:750; letter-spacing:1px; color:var(--ink); }
.brand .brand-caption { font-size:12px; color:var(--muted); border-left:1px solid #c9d5c9; padding-left:11px; }
.edition { display:inline-flex; align-items:center; gap:7px; padding:4px 10px; border:1px solid #d0ded2; border-radius:99px; color:#305b48; font-size:11px; font-weight:650; white-space:nowrap; }
.edition::before { content:""; width:6px; height:6px; border-radius:50%; background:#43795e; }
.upload-roles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.upload-roles>div { padding:12px; border:1px solid var(--line); border-radius:10px; background:#fffefa; }
.upload-roles a { display:inline-flex; align-items:center; min-height:36px; padding:5px 11px; border:1px solid var(--line); border-radius:7px; font-weight:650; }
.upload-roles p { margin:7px 0 0; font-size:12px; color:var(--muted); }
#upload-roles>div:last-child { background:transparent; }
.study-publication { margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.study-publication h3 { margin-bottom:8px; }
#imported-student-work p { margin:0; }
#imported-student-work .actions { margin-top:8px; }
.hero { max-width:none; position:relative; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:center; gap:24px; overflow:hidden; padding:35px 45px 34px; border-radius:23px; color:#f7f7eb; background:radial-gradient(ellipse at 90% 24%,#285644 0,transparent 58%),#153d32; }
.hero .eyebrow { font-weight:650; color:#e8ca91; margin-bottom:11px; letter-spacing:2px; }
.hero h1 { color:inherit; font-size:clamp(34px,4.3vw,55px); line-height:1.22; font-weight:740; margin-bottom:13px; letter-spacing:-.045em; }
.hero .lede { color:#d8e6d9; line-height:1.68; margin:0; font-size:15px; }
.hero-figure { display:block; width:100%; height:auto; color:#b4cdbd; }
.hero-mini-figure { display:none; }
.steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; align-items:stretch; margin:14px 0 24px; border:1px solid var(--line); border-radius:15px; background:var(--white); overflow:hidden; }
.steps li { position:relative; align-items:center; gap:11px; min-width:0; margin:0; padding:10px 14px; border-left:1px solid var(--line); color:var(--muted); }
.steps li:first-child { border-left:0; }
.steps li::before { content:none; }
.steps li[aria-current=step] { background:#e5f0e6; }
.steps li[aria-current=step]::after { content:""; position:absolute; inset:auto 0 0; height:3px; background:#53816a; }
.step-number { flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#eef2e9; color:#365b48; font-size:11px; font-variant-numeric:tabular-nums; font-weight:720; }
.steps li[aria-current=step] .step-number { background:#195a48; color:#fff; }
.steps strong { display:block; color:var(--ink); font-size:13px; line-height:1.4; }
.steps small { display:block; font-size:11px; line-height:1.35; margin-top:2px; }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(238px,270px); align-items:start; gap:22px; }
.workspace main { min-width:0; }
.guide { padding:23px; border:1px solid #d6e1d4; border-radius:var(--radius); background:#eaf0e7; }
.guide .eyebrow { margin-bottom:6px; }
.guide h2 { margin:0 0 16px; font-size:19px; }
.guide-item { padding:12px 0 13px; border-top:1px solid #d4e0d2; }
.guide-item img { display:block; width:100%; height:auto; max-width:200px; margin:0 auto 5px; }
.guide-item h3 { font-size:13px; margin:0 0 3px; }
.guide-item p,.guide-note { color:var(--muted); font-size:12px; line-height:1.7; margin:0; }
.guide-note { border-top:1px solid #d4e0d2; padding-top:13px; }
.card { margin-bottom:18px; }
.section-head { margin-bottom:10px; align-items:center; }
.section-head .eyebrow { margin:0 0 5px; font-weight:700; color:var(--green); }
.section-head h2 { font-size:24px; }
.section-intro { color:var(--muted); margin-bottom:11px; }
#input-section,#result-section,#text-options { scroll-margin-top:12px; }
#mobile-access { padding-block:13px; }
#mobile-access .access-heading { font-size:16px; margin:0; }
#mobile-access #mobile-login-status { font-size:13px; margin:4px 0; }
#mobile-access #mobile-login-status:empty { display:none; }
.shell:has(#video-remote-logout:not(.hidden)) > #service-scope { display:none; }
#mobile-access:has(#video-remote-logout:not(.hidden)) { display:flex; align-items:center; justify-content:space-between; gap:8px 12px; flex-wrap:wrap; }
#mobile-access:has(#video-remote-logout:not(.hidden)) .access-heading { display:none; }
#mobile-access #video-remote-logout { min-height:36px; padding:6px 12px; }
.upload-grid { margin:14px 0 9px; }
.upload-box { border-color:#94b4a1; }
.upload-main { display:grid; grid-template-columns:auto minmax(0,1fr) clamp(100px,17vw,200px); gap:0 15px; min-height:120px; align-items:center; background:#edf5ed; padding:18px; }
.upload-icon { width:46px; height:46px; padding:9px; border:1px solid #cbded0; border-radius:12px; color:#28644f; background:#f8fbf6; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.upload-art { display:block; width:100%; height:auto; }
.upload-content { min-width:0; }
.upload-content>label { display:block; color:var(--ink); font-size:15px; font-weight:700; cursor:pointer; }
.upload-content label small { color:var(--muted); font-size:12px; margin-top:1px; }
.upload-main .image-preview { grid-column:1/-1; }
.upload-box input[type=file] { display:block; color:var(--muted); font-size:12px; padding:5px 0 0; }
input[type=file]::file-selector-button { color:#225643; border-color:#bad0bf; border-radius:8px; padding:7px 12px; font-size:12px; font-weight:650; }
input[type=file]:disabled::file-selector-button { color:#65796e; cursor:not-allowed; }
#photo-scope { margin-bottom:12px; }
#input-section form>details { border-top:1px solid var(--line); margin:0; }
#input-section form>details>summary { padding:8px 0; }
summary { font-size:13px; }
#analysis-form>.actions { margin-bottom:14px; }
#analysis-form>.actions>.primary { min-height:45px; padding-inline:22px; }
#input-section>.quiet { margin:0; }
.teacher-request { margin-top:6px; }
.teacher-request .field { margin-top:10px; }
.teacher-request .field small { margin-left:5px; }
.quiet { font-size:12px; }
.result-card { background:#f9fbf7; }
#result-source { background:#eaf2e9; border-color:#d4e4d7; color:#325a48; }
#missing-next { margin:15px 0 19px; }
#quick-clarification { padding:14px; border:1px solid #e7d8b8; border-radius:12px; background:#fffaf0; }
#quick-clarification>.actions { margin:0; }
#quick-clarification details { margin:11px 0 0; }
#quick-clarification .field { margin-top:0; }
.clarification-photo { margin:0 0 13px; }
.clarification-photo img { display:block; max-width:100%; max-height:280px; width:auto; height:auto; margin:auto; border-radius:8px; }
.clarification-photo figcaption { margin-top:5px; color:var(--muted); font-size:12px; text-align:center; }
#detail-scan .quiet { margin:0 0 6px; }
#detail-selector { display:block; position:relative; max-width:100%; min-height:0; margin:0 auto; padding:0; overflow:hidden; border:0; background:none; cursor:crosshair; }
#detail-source { display:block; max-width:100%; max-height:440px; width:auto; height:auto; }
#detail-frame { position:absolute; pointer-events:none; border:2px solid #995d13; outline:1px solid #fffdf3; background:#f1d49e22; }
#detail-scan>.actions { margin-top:9px; }
#quick-review { gap:10px; }
#quick-review>details,#quick-review>.actions { margin:0; }
.review-finding,.review-evidence { padding:12px 14px; border:1px solid #d9e5d9; border-radius:12px; background:#f6faf4; min-width:0; }
.review-finding { display:grid; grid-template-columns:minmax(0,1fr) clamp(68px,20%,136px); column-gap:10px; border-left:4px solid #54816b; }
.review-art { grid-column:2; grid-row:1/3; align-self:center; display:block; width:100%; height:auto; }
.review-finding>h3,.review-finding>p { grid-column:1; }
.review-finding>h3 { grid-row:1; }
.review-finding>p { grid-row:2; }
.review-finding h3,.review-evidence h3 { font-size:13px; margin:0 0 3px; }
.review-finding p,.review-evidence p { margin:0; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
#result-details,#teacher-video { padding:13px 15px; border:1px solid var(--line); border-radius:12px; background:#fafbf7; }
#result-details>summary,#teacher-video>summary { color:#245541; font-size:15px; font-weight:700; }
#adopt-area { margin-top:16px; border-top:1px solid var(--line); padding-top:14px; }
.output-heading { margin:0; }
.output-title,.video-intro { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.output-title img,.video-intro img { display:block; width:clamp(70px,22%,130px); height:auto; }
.video-intro p { margin:0; font-size:13px; }
#adopt-area .adopt-row { margin:0; padding:0; border-top:0; flex-wrap:nowrap; }
.notice { overflow-wrap:anywhere; }
footer.quiet { display:flex; align-items:baseline; gap:5px 10px; flex-wrap:wrap; border-top:1px solid var(--line); margin-top:4px; padding:13px 0 0; font-size:11px; }
footer strong { color:var(--ink); font-size:13px; }
footer span:last-child { margin-left:auto; }
@media (max-width:880px) {
  .hero { padding:26px 28px; }
  .workspace { grid-template-columns:minmax(0,1fr); gap:0; }
  .guide { display:none; }
}
@media (max-width:640px) {
  body { font-size:14px; }
  .shell { padding-inline:14px; }
  .topbar { min-height:58px; gap:8px; }
  .brand { gap:7px; }
  .brand .brand-mark { width:31px; height:31px; border-radius:8px; }
  .brand .brand-name { font-size:19px; }
  .brand .brand-caption { font-size:10px; padding-left:7px; }
  .edition { font-size:10px; padding:3px 8px; }
  .hero { display:block; padding:15px 18px 14px; border-radius:16px; }
  .hero .eyebrow { margin-bottom:6px; }
  .hero h1 { font-size:clamp(27px,7.8vw,38px); line-height:1.2; margin-bottom:8px; }
  .hero .lede { font-size:13px; }
  .hero-figure { display:none; }
  .hero-mini-figure { display:block; position:absolute; top:11px; right:13px; width:clamp(68px,23vw,101px); height:auto; pointer-events:none; }
  .steps { margin:9px 0 13px; border-radius:10px; }
  .steps li { padding:8px 5px; gap:4px; justify-content:center; }
  .step-number { width:21px; height:21px; font-size:9px; }
  .steps strong { font-size:11px; }
  .steps small { display:none; }
  .card { padding:16px 14px; border-radius:15px; margin-bottom:13px; }
  #mobile-access { padding-block:9px; }
  #mobile-access:has(#video-remote-logout:not(.hidden)) { padding-block:4px; border:0; box-shadow:none; background:transparent; margin-bottom:5px; }
  #mobile-access #mobile-login-status { font-size:11px; }
  .section-head h2 { font-size:20px; }
  .section-head .eyebrow { font-size:11px; }
  .section-intro { margin-bottom:6px; }
  .upload-grid { margin:8px 0; }
  .upload-main { grid-template-columns:minmax(0,1fr) clamp(60px,23vw,105px); min-height:100px; padding:11px; gap:0 8px; }
  .upload-icon { display:none; }
  .upload-content>label { font-size:14px; }
  .upload-content label small,.quiet { font-size:11px; }
  .upload-box input[type=file] { font-size:11px; }
  #analysis-form>.actions>.primary { padding-inline:12px; }
  #analysis-form>.actions { margin-top:12px; }
  #analysis-form>.actions .secondary { min-width:98px; }
  #adopt-area>.actions button { min-width:106px; }
  #result-details,#teacher-video { padding:11px; }
  .review-finding p,.review-evidence p { font-size:13px; }
  footer span:last-child { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  button { transition:none; }
}
@media print {
  .workspace { display:block; }
  .guide,#mobile-access { display:none!important; }
  .review-art,.output-title img,.video-intro img { display:none; }
  .review-finding { display:block; }
  .card,.result-card,#result-details,#teacher-video { box-shadow:none; border:0; padding:0; }
}

footer .filing-link { font-size:13px; white-space:nowrap; text-decoration:none; }
footer .filing-link:hover { text-decoration:underline; }
