:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#203b35;background:#f6f7f3;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}.top{height:76px;padding:0 max(5vw,20px);display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #e5ebe5}.brand{display:flex;gap:10px;align-items:center}.brand strong,.brand small{display:block}.brand small{color:#82918a;font-size:11px;margin-top:3px}.logo{display:grid;place-items:center;border-radius:12px;background:#1e6655;color:white;width:39px;height:39px;font-weight:700;font-size:20px}main{max-width:1120px;margin:0 auto;padding:28px 22px 60px}.nav{display:flex;gap:6px;overflow:auto;margin-bottom:28px;padding-bottom:5px}.nav button{white-space:nowrap;background:transparent;color:#71847b;padding:11px 16px;border-radius:10px}.nav button.active{background:#e1f0e9;color:#19644f;font-weight:700}.hero{padding:35px;border-radius:20px;background:#e1f2e8;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.hero h1{margin:8px 0 10px;font-size:30px;letter-spacing:.02em}.hero p,.muted{color:#71847b;line-height:1.7}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:700;color:#4b8a6e}.hero-art{font-size:82px;color:#91c0aa;margin:0 30px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stat,.panel{background:white;border:1px solid #e8ede8;border-radius:16px;padding:23px}.stat strong{display:block;font-size:30px;color:#1f6c56;margin-top:12px}.stat small{color:#788a81}.panel{margin-bottom:18px}.panel h2{margin:0 0 7px;font-size:20px}.panel p{line-height:1.65}.page-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.page-head h1{margin:0;font-size:25px}.page-head p{margin:7px 0 0;color:#7c8c84}.primary,.secondary,.danger,.file-button{padding:11px 17px;border-radius:10px;font-weight:600;display:inline-block;text-align:center}.primary,.file-button{background:#246c55;color:#fff}.primary:hover,.file-button:hover{background:#175740}.secondary{background:#eff5f0;color:#326d57}.danger{background:#fff1ed;color:#a45236}.small{font-size:14px;padding:8px 12px}.row{padding:16px 0;border-top:1px solid #edf1ed;display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.row:first-of-type{border-top:0}.row h3{margin:0 0 5px;font-size:16px}.row p{margin:4px 0;color:#7a8b81;font-size:14px;white-space:pre-wrap}.row-actions{display:flex;gap:7px;flex-wrap:wrap;flex-shrink:0}.tag{display:inline-block;background:#edf5ef;color:#4b7b60;border-radius:20px;padding:4px 9px;font-size:12px;margin:2px}.warn{background:#fff6df;color:#79602d;border-radius:10px;padding:13px 15px;line-height:1.6;font-size:14px}.info{background:#eef7f0;color:#486f57;border-radius:10px;padding:13px 15px;line-height:1.6;font-size:14px}.empty{text-align:center;color:#83918a;padding:35px 10px;line-height:1.7}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full{grid-column:1/-1}label{display:block;font-size:14px;font-weight:600;margin:0 0 7px}input:not([type=checkbox]):not([type=file]),textarea,select{width:100%;border:1px solid #dce5dc;border-radius:9px;background:white;color:#243d34;padding:10px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:#71aa8b;box-shadow:0 0 0 3px #e6f2e8}textarea{min-height:95px;resize:vertical}input[type=file]{max-width:100%}.gap{margin-top:16px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar input{max-width:360px}.photo{display:block;max-width:100%;max-height:420px;object-fit:contain;border-radius:10px;background:#f1f4f0}.canvas-wrap{overflow:hidden;background:#e8eee9;border-radius:10px;line-height:0;touch-action:none}.canvas-wrap canvas{display:block;max-width:100%;height:auto;touch-action:none}.modal{position:fixed;inset:0;background:#18251db8;z-index:5;display:flex;align-items:center;justify-content:center;padding:20px}.modal[hidden]{display:none}.dialog{background:white;width:min(720px,100%);max-height:90dvh;overflow:auto;border-radius:18px;padding:24px}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:20px}.dialog h2{margin:0}.close{background:#eef4ef;color:#335b4a;border-radius:50%;width:36px;height:36px;font-size:20px}.topic-list{max-height:190px;overflow:auto;border:1px solid #e3eae3;border-radius:10px;padding:8px}.topic-list label{display:flex;align-items:center;gap:8px;padding:7px;margin:0;font-weight:400}.question{white-space:pre-wrap;line-height:1.8;color:#253f36}.answer{white-space:pre-wrap;background:#f0f7f0;border-radius:10px;padding:15px;line-height:1.7}.error{color:#a33f35}#notice:not(:empty){position:fixed;right:16px;top:16px;background:#1d5846;color:#fff;border-radius:9px;padding:12px 18px;z-index:10;box-shadow:0 5px 20px #0002}footer{text-align:center;color:#9daaa1;font-size:12px;line-height:1.8;padding:10px 20px 35px}.login{max-width:420px;margin:8vh auto}.login h1{font-size:26px}.status{font-size:13px;color:#6c8275}.preview-result{background:#f8faf7;padding:14px;border-radius:9px;margin:12px 0}.preview-result pre{white-space:pre-wrap;font:inherit;line-height:1.6}.loading{text-align:center;padding:70px}.skip{font-size:13px;color:#7d8a80}@media(max-width:600px){.top{height:65px}.top small{display:none}main{padding:18px 15px 45px}.nav{margin-bottom:16px}.nav button{padding:9px 12px}.hero{padding:24px}.hero h1{font-size:24px}.hero-art{font-size:54px;margin:0}.cards{gap:8px}.stat{padding:14px}.stat strong{font-size:24px}.stat small{font-size:12px}.panel{padding:18px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.row{flex-direction:column}.page-head{align-items:flex-start}.dialog{padding:18px}.modal{padding:10px}.row-actions{width:100%}.page-head h1{font-size:22px}}
/* Camera capture and review */
.capture-panel{overflow:hidden}.capture-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:4px 0 18px}.capture-intro h2{font-size:21px;margin:10px 0 6px}.capture-intro p{color:#778b7e;font-size:14px;margin:0}.step-pill{display:inline-flex;color:#32775d;background:#e6f3ea;border-radius:30px;padding:5px 10px;font-size:12px;font-weight:700;letter-spacing:.03em}.camera-mark{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:#e6f3ea;color:#6b9d7b;font-size:38px}.capture-actions{display:flex;gap:10px;flex-wrap:wrap}.camera-start{min-height:48px;padding-inline:23px}.camera-start span{font-size:19px;vertical-align:-1px}.file-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:48px}.file-pick input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}.file-pick:focus-within{outline:3px solid #92c2a8;outline-offset:2px}.capture-note{font-size:13px;color:#778b7e;margin-top:12px}.privacy-note{color:#72867a;font-size:13px;line-height:1.65}.privacy-note summary{cursor:pointer;color:#527960}.privacy-note p{margin:8px 0}.viewfinder{width:min(100%,560px);height:min(60dvh,560px);min-height:250px;position:relative;background:#192821;border-radius:16px;overflow:hidden;isolation:isolate}.viewfinder video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.finder-frame{position:absolute;left:8%;right:8%;top:18%;bottom:18%;border:1px solid #ffffffaa;border-radius:10px;box-shadow:0 0 0 999px #0005}.finder-frame i{position:absolute;width:24px;height:24px;border-color:white;border-style:solid}.finder-frame i:nth-child(1){left:-2px;top:-2px;border-width:4px 0 0 4px;border-radius:7px 0 0 0}.finder-frame i:nth-child(2){right:-2px;top:-2px;border-width:4px 4px 0 0;border-radius:0 7px 0 0}.finder-frame i:nth-child(3){left:-2px;bottom:-2px;border-width:0 0 4px 4px;border-radius:0 0 0 7px}.finder-frame i:nth-child(4){right:-2px;bottom:-2px;border-width:0 4px 4px 0;border-radius:0 0 7px 0}.finder-help{position:absolute;left:0;right:0;top:7%;text-align:center;color:white;font-weight:600;font-size:14px;text-shadow:0 1px 4px #000}.shutter-row{width:min(100%,560px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:14px 0}.shutter-row>button:first-child{justify-self:start}.shutter{display:grid;place-items:center;width:72px;height:72px;background:transparent;border:3px solid #256a54;border-radius:50%;padding:4px}.shutter span{display:block;width:100%;height:100%;border-radius:50%;background:#246c55}.shutter-label{font-size:13px;color:#71877a;text-align:right}.preview-heading,.result-title{margin-top:30px;border-top:1px solid #e7eee8;padding-top:22px}.preview-heading{display:flex;justify-content:space-between;align-items:end}.preview-heading h2,.result-title h2{margin:8px 0 0}.canvas-wrap{max-height:70dvh;display:flex;justify-content:center}.canvas-wrap canvas{object-fit:contain;max-height:70dvh}.photo-frame{min-height:130px;background:#f1f5f0;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}.photo-frame .photo{max-height:440px;margin:0}.detail-link{display:inline-block;margin-top:8px;color:#296e55;font-size:14px;text-decoration:none}.detail-link:hover{text-decoration:underline}.result-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}.result-remove{background:#fff0ec;color:#a7513e;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:600}.removed-list{padding:12px;background:#f7f9f6;border-radius:10px;color:#64796c;font-size:14px}.removed-list summary,#archived-rows summary{cursor:pointer;font-weight:600}.removed-row{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #e8eee8;line-height:1.5;overflow-wrap:anywhere}.section-title{display:flex;align-items:start;justify-content:space-between}.section-title p{margin:7px 0 15px}.recent-icon{color:#7cab8c;font-size:27px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8aba9c;outline-offset:3px}@media(max-width:600px){.capture-intro{padding-bottom:16px}.camera-mark{width:52px;height:52px;font-size:30px}.capture-actions{display:grid;grid-template-columns:1fr 1fr}.camera-start{grid-column:1/-1;width:100%;font-size:16px}.file-pick{padding:10px;font-size:14px}.viewfinder{height:min(57dvh,500px)}.shutter{width:68px;height:68px}.preview-heading,.result-title{margin-top:24px}.photo-frame .photo{max-height:58dvh}}
/* Touch-friendly camera and detected-question controls */
.finder-frame{touch-action:none;cursor:move}.finder-help{pointer-events:none}.finder-handle{position:absolute;width:44px;height:44px;min-width:44px;padding:0;background:transparent;border:0;border-radius:0;touch-action:none}.finder-handle::before{content:'';position:absolute;width:24px;height:24px;border-color:white;border-style:solid}.finder-handle.nw{left:-22px;top:-22px}.finder-handle.ne{right:-22px;top:-22px}.finder-handle.sw{left:-22px;bottom:-22px}.finder-handle.se{right:-22px;bottom:-22px}.finder-handle.nw::before{left:20px;top:20px;border-width:4px 0 0 4px;border-radius:6px 0 0 0}.finder-handle.ne::before{right:20px;top:20px;border-width:4px 4px 0 0;border-radius:0 6px 0 0}.finder-handle.sw::before{left:20px;bottom:20px;border-width:0 0 4px 4px;border-radius:0 0 0 6px}.finder-handle.se::before{right:20px;bottom:20px;border-width:0 4px 4px 0;border-radius:0 0 6px 0}.detected-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.detected-option{min-height:44px;background:#eff5ef;color:#466b56;border:1px solid #dcebe0;border-radius:10px;padding:9px 15px;font-weight:600}.detected-option.active{background:#d9efe0;color:#145b40;border-color:#599978;box-shadow:inset 0 0 0 1px #599978}
