500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#182b27;--green:#123e35;--green2:#1f6d58;--mint:#d8eee3;--paper:#f7f7f1;--line:#e4eae2;--muted:#7c8981;--orange:#e7a86b;--shadow:0 14px 36px rgba(13,50,36,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}.hidden{display:none!important}.visually-hidden{position:absolute!important;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}
.app-shell{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#10352f;color:#f0f6ef;padding:31px 20px 24px;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(15,47,40,.04)}.brand{display:flex;align-items:center;gap:11px;margin:0 0 65px 7px}.brand-symbol{width:40px;height:40px;display:grid;place-items:center;color:#b5e5ca;background:#26564b;border-radius:12px}.brand-symbol svg{width:26px}.brand strong{font:800 21px/1 'Manrope',sans-serif;letter-spacing:-1.1px}.brand strong span{color:#a8dfbf}.brand small{display:block;letter-spacing:1.7px;font-size:7.5px;color:#a8c7b8;margin-top:7px;font-weight:700}.nav-caption{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#86a99a;margin:0 12px 20px}.sidebar nav{display:grid;gap:6px}.nav-link{display:flex;align-items:center;gap:13px;border:0;background:transparent;color:#aecabe;padding:13px 12px;text-align:left;border-radius:9px;font-size:12px;font-weight:700;width:100%;transition:background .2s,color .2s}.nav-link:hover{background:#20483f;color:#fff}.nav-link.active{color:white;background:#2a584c}.nav-icon{display:grid;place-items:center;font-family:Manrope,sans-serif;letter-spacing:.1px;font-size:10px;color:#a2c6b3;border:1px solid #64887a;border-radius:7px;width:30px;height:30px;flex-shrink:0}.nav-link.active .nav-icon{background:#b9e3cc;color:#194137;border-color:#b9e3cc}.sidebar-note{display:flex;gap:10px;margin-top:auto;background:#1a463b;border:1px solid #305d4f;border-radius:12px;padding:16px 14px}.sidebar-note b{font-size:11px;color:#d2ecdb}.sidebar-note p{font-size:10px;line-height:1.7;color:#a8c5b7;margin:7px 0 0}.note-dot{width:8px;height:8px;background:#b9e3cc;border-radius:50%;flex-shrink:0;margin-top:4px}.sidebar-footer{font-size:8px;font-weight:700;letter-spacing:1.3px;color:#668e7d;text-align:center;padding-top:24px}.sidebar-footer span{color:#c3eac9;margin-left:6px}
.main{padding:0 clamp(20px,4.2vw,70px);min-width:0;max-width:1600px;width:100%;margin:0 auto}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e8df;font-size:9px;letter-spacing:1.45px;font-weight:800;color:#7e8e85}.topbar-right{color:#668473}.topbar-right span{margin:0 8px;color:#acb9ad}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5eb48a;margin-right:9px}.view{display:none;animation:reveal .25s ease}.view.active{display:block}@keyframes reveal{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.hero-copy{padding:49px 0 37px;max-width:730px}.hero-copy.compact{padding:42px 0 31px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#428b6b}.eyebrow span{color:#b2c1b5;margin:0 8px}.hero-copy h1{font:800 clamp(29px,3.2vw,48px)/1.18 'Manrope',sans-serif;letter-spacing:-2px;margin:15px 0 16px}.hero-copy h1 em{font-style:normal;color:#2e8868}.hero-copy p{color:#75867c;font-size:13px;line-height:1.8;margin:0;max-width:620px}.prepare-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(420px,1.33fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid #e6ebe5;border-radius:15px;box-shadow:var(--shadow);padding:24px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}.mini-label{font-size:9px;color:#75a18d;letter-spacing:1.8px;font-weight:800}.panel h2{font:800 19px/1.3 Manrope,sans-serif;letter-spacing:-.6px;margin:6px 0 0}.panel-emoji{font-size:29px;font-weight:300;color:#3a8b6c;background:#e5f4ea;width:45px;height:45px;display:grid;place-items:center;border-radius:12px}.field-label{display:block;font-size:11px;font-weight:800;margin:19px 0 9px;color:#4a5c52}.field-label span{font-weight:400;color:#9daaa1}.text-input{border:1px solid #dce5dc;border-radius:8px;width:100%;background:#fbfcf9;padding:12px 14px;color:#193a30;outline:none;font-size:12px;min-height:44px}.text-input:focus{border-color:#3a9970;box-shadow:0 0 0 3px #d6f0df}.text-input::placeholder{color:#a1ada5}.select-wrap{position:relative}.select-wrap:after{content:'⌄';position:absolute;right:16px;top:8px;font-size:22px;pointer-events:none;color:#58836a}.select-wrap select{appearance:none}.metric-info{margin:23px 0;background:#f0f7f1;border-radius:9px;display:flex;padding:14px;gap:11px;align-items:flex-start}.metric-icon{font-family:serif;font-size:21px;color:#4c946e;line-height:1}.metric-info p{margin:0;font-size:10.5px;line-height:1.65;color:#6d8a78}.primary-btn,.secondary-btn,.ghost-btn,.file-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;border-radius:8px;border:0;min-height:44px;padding:12px 17px;font-weight:800;font-size:11px;text-decoration:none;transition:transform .2s,background .2s}.primary-btn{background:#175443;color:#fff}.primary-btn:hover{background:#24745a;transform:translateY(-1px)}.primary-btn span{font-size:16px}.secondary-btn{background:#dceee2;color:#27644d}.secondary-btn:hover{background:#c7e7d3}.ghost-btn{background:transparent;color:#447660;border:1px solid #d9e7de}.ghost-btn:hover{background:#f3faf5}.file-btn{background:#ecf5ef;color:#27644d;border:1px dashed #9fbfa8;cursor:pointer}.wide{width:100%}.small{min-height:35px;padding:10px 13px;font-size:10px}.key-heading{margin-bottom:8px}.key-progress{border-radius:20px;background:#e5f5e9;color:#397957;font:800 11px Manrope;padding:8px 12px;white-space:nowrap}.muted-copy{font-size:11px;color:#89958b;margin:0 0 25px;line-height:1.65}.key-legend{display:flex;justify-content:space-between;max-width:355px;padding:0 2px 8px;color:#98a59c;font-size:8px;letter-spacing:1.1px;font-weight:800}.key-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.key-row{display:flex;align-items:center;justify-content:space-between;min-height:43px;gap:5px;border-bottom:1px solid #f0f2ee}.question-num{font:800 11px Manrope;color:#445e50;min-width:26px}.answer-options{display:flex;gap:4px}.answer-choice{border:1px solid #dfe8df;background:#fff;color:#8c9d90;width:25px;height:25px;border-radius:6px;font-size:10px;font-weight:800;display:grid;place-items:center;padding:0}.answer-choice:hover{border-color:#58a47c;color:#33724d}.answer-choice.selected{background:#1a7353;color:white;border-color:#1a7353}.key-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:25px}.key-actions button{min-height:38px}
.sheet-layout{display:grid;grid-template-columns:minmax(270px,.45fr) minmax(400px,1fr);gap:25px;align-items:start}.sheet-toolbar{position:sticky;top:22px}.tag{font-size:9px;letter-spacing:.7px;color:#38765b;background:#eaf6ec;border-radius:5px;padding:7px 9px;font-weight:800;white-space:nowrap}.steps-list{display:grid;gap:24px;margin:25px 0 32px}.steps-list>div{display:flex;align-items:start;gap:13px}.steps-list b{flex-shrink:0;background:#e4f1e8;color:#327352;width:29px;height:29px;display:grid;place-items:center;border-radius:9px;font:800 12px Manrope}.steps-list p{margin:2px 0 0;color:#7d8d81;font-size:11px;line-height:1.6}.steps-list p strong{color:#456f5a}.sheet-toolbar>.ghost-btn{margin-top:10px}.sheet-preview-zone{min-width:0;overflow:hidden}.preview-head{display:flex;justify-content:space-between;color:#889b8a;font-size:9px;font-weight:800;letter-spacing:1.5px;margin:8px 1px 16px}.sheet-preview-zone #paperViewport{overflow:hidden;position:relative;background:#dce4da;border:1px solid #d9e2d6;border-radius:12px;box-shadow:inset 0 0 0 1px #eef2e9;display:flex;align-items:flex-start;justify-content:flex-start;padding:0}
.print-paper{width:210mm;height:297mm;background:#fff;color:#111;position:relative;flex-shrink:0;overflow:hidden;font-family:Arial,sans-serif}.print-paper *{box-sizing:border-box}.paper-marker{background:#070707;position:absolute;width:8.5mm;height:8.5mm;transform:translate(-50%,-50%)}.paper-header{position:absolute;left:27mm;top:12mm;right:27mm;text-align:center}.paper-header .title{font:bold 15pt Arial;letter-spacing:.25px;max-height:13mm;overflow:hidden}.paper-header .subtitle{font:8pt Arial;color:#333;margin-top:2mm}.paper-fields{position:absolute;top:33mm;left:23mm;right:23mm;font:10pt Arial;display:grid;grid-template-columns:1fr 45mm;gap:5mm 8mm}.paper-field{display:flex;gap:4mm;align-items:end;white-space:nowrap}.paper-field .line{border-bottom:.35mm solid #444;flex:1;min-height:5mm}.paper-instruction{position:absolute;left:23mm;right:23mm;top:58mm;border:0.3mm solid #aaa;background:#f3f3f3;padding:2mm 3mm;text-align:center;font:bold 8pt Arial}.paper-group-title{font:bold 9pt Arial;position:absolute;transform:translateY(-50%)}.paper-letter{font:bold 8pt Arial;position:absolute;transform:translate(-50%,-50%);text-align:center}.paper-row{position:absolute;font:bold 9pt Arial;transform:translateY(-50%);width:9mm}.paper-bubble{position:absolute;border:.42mm solid #202020;width:4.8mm;height:4.8mm;border-radius:50%;transform:translate(-50%,-50%)}.paper-divider{position:absolute;top:72mm;height:188mm;left:105mm;border-left:.25mm dashed #ddd}.paper-footer{position:absolute;bottom:9mm;left:25mm;right:25mm;font:7pt Arial;color:#666;text-align:center}
.scan-layout{display:grid;grid-template-columns:minmax(285px,.75fr) minmax(340px,1.2fr);gap:22px;align-items:start}.key-ready{display:flex;align-items:center;gap:8px;border:1px solid #f0dfc6;background:#fff7e8;border-radius:8px;padding:12px;font-weight:700;color:#8d6c37;font-size:11px;line-height:1.4}.key-ready.ready{background:#e9f7ed;border-color:#d3eadb;color:#30714c}.status-dot{width:8px;height:8px;border-radius:50%;background:#e5ae4f;flex-shrink:0}.key-ready.ready .status-dot{background:#50b47b}.scan-actions-panel .field-label{margin-top:22px}.scan-actions-panel .primary-btn{margin-top:20px}.scan-actions-panel .file-btn{margin-top:9px}.camera-block{margin-top:15px;background:#ecf1ea;padding:10px;border-radius:10px}.camera-block video{display:block;width:100%;aspect-ratio:3/4;max-height:450px;object-fit:cover;border-radius:6px;background:#192d27}.camera-block .primary-btn{margin-top:10px}.camera-block .ghost-btn{margin-top:8px}.scan-message{border-top:1px solid #e9eee8;padding-top:15px;font-size:11px;line-height:1.65;color:#758a79}.scan-message.error{color:#ab603e}.scan-message.success{color:#28774e}.scan-view-panel{min-width:0}.scan-empty{min-height:380px;background:#f8fbf7;border:1px dashed #dce9dd;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}.empty-art{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:#edf5eb;margin-bottom:20px;color:#376c59}.empty-art svg{width:110px}.scan-empty h3{font:800 15px Manrope;margin:0 0 7px}.scan-empty p{font-size:11px;color:#889b8a;line-height:1.7;max-width:230px}.canvas-wrap{background:#e6ebe6;border-radius:10px;overflow:hidden;display:flex;justify-content:center}.canvas-wrap canvas{display:block;max-width:100%;max-height:620px;width:auto;height:auto;touch-action:manipulation}.corner-helper{padding:13px;background:#fff7e6;color:#7d5d2f;font-size:12px;border-radius:8px;margin-top:12px;line-height:1.6}.scan-tools{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}.scan-tools button{font-size:10px;min-height:37px}.result-panel{margin-top:23px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat{padding:20px;background:#f7faf5;border:1px solid #e8efe7;border-radius:10px}.stat.strong-stat{background:#174e3f;color:#f3fff5;border-color:#174e3f}.stat span{display:block;font-size:9px;letter-spacing:1px;font-weight:800;opacity:.68}.stat strong{display:block;font:800 35px Manrope;margin:9px 0 3px;letter-spacing:-1px}.stat small{font-size:10px;opacity:.64}.review-callout{color:#688371;background:#edf6ee;border-radius:8px;font-size:11px;padding:13px 15px;margin:18px 0;line-height:1.6}.answer-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 22px}.review-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eef1eb;min-height:47px}.review-number{font:800 11px Manrope;min-width:24px}.review-buttons{display:flex;gap:4px;flex:1}.review-choice{width:26px;height:26px;border:1px solid #dce5dd;background:white;border-radius:6px;color:#788e7c;font-size:10px;font-weight:800}.review-choice.selected{background:#2c7d60;color:white;border-color:#2c7d60}.review-choice.selected.wrong{background:#b87358;border-color:#b87358}.review-meta{font-size:9px;text-align:right;min-width:57px;font-weight:800;color:#6a9774}.review-meta.wrong{color:#b7775b}.review-meta.review{color:#c59044}.result-footer{display:flex;flex-wrap:wrap;gap:12px;margin-top:23px}.history-panel{min-height:350px}.history-empty{text-align:center;margin:35px auto 50px;max-width:350px;color:#829388;font-size:12px;line-height:1.8}.history-empty strong{display:block;color:#264738;font:800 18px Manrope}.history-table{width:100%;border-collapse:collapse;font-size:11px}.history-table th{text-align:left;color:#8b9b8d;font-size:9px;letter-spacing:1px;padding:13px 9px;border-bottom:1px solid #e1ebe3}.history-table td{padding:14px 9px;border-bottom:1px solid #edf1ec}.history-table td strong{color:#235841}.history-table .delete-btn{border:0;background:#fff2ef;color:#a3685f;border-radius:7px;padding:7px 9px;font-size:10px}.history-scroll{overflow-x:auto}.main-footer{border-top:1px solid #e5eae2;color:#a2b0a4;font-weight:800;font-size:9px;letter-spacing:1.3px;text-align:center;margin-top:55px;padding:26px 0 33px}.main-footer span{color:#6ba87c;margin:0 9px}
@media(max-width:1250px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:28px 14px}.main{padding:0 27px}.prepare-layout{grid-template-columns:minmax(265px,.8fr) minmax(360px,1.2fr)}.key-grid{gap:0 8px}.answer-choice{width:23px;height:23px}.sheet-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1020px){.prepare-layout,.scan-layout,.sheet-layout{grid-template-columns:1fr}.sheet-toolbar{position:static}.sheet-preview-zone{max-width:800px}.key-grid{gap:0 20px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{height:auto;position:relative;padding:17px 16px 10px}.brand{margin:0 0 14px 0}.brand-symbol{width:34px;height:34px}.brand strong{font-size:19px}.brand small{font-size:7px}.nav-caption,.sidebar-note,.sidebar-footer{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px;scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.nav-link{white-space:nowrap;width:auto;padding:9px 8px;flex:1;gap:4px;justify-content:center;font-size:10px;flex-direction:column}.nav-icon{width:26px;height:25px;font-size:9px}.main{padding:0 16px}.topbar{height:45px;font-size:8px}.hero-copy,.hero-copy.compact{padding:27px 0 22px}.hero-copy h1{font-size:30px;letter-spacing:-1.6px}.hero-copy p{font-size:12px}.panel{padding:18px;border-radius:13px}.prepare-layout,.scan-layout,.sheet-layout{gap:13px}.key-grid{grid-template-columns:1fr 1fr;gap:0 7px}.answer-options{gap:3px}.answer-choice{width:24px;height:26px}.key-row{min-height:42px}.key-progress{font-size:10px}.result-stats{gap:6px}.stat{padding:12px 9px}.stat span{font-size:7px}.stat strong{font-size:28px}.stat small{font-size:8px}.answer-review{grid-template-columns:1fr}.sheet-preview-zone{margin:0 -4px}.scan-empty{min-height:280px}.preview-head{font-size:8px}.main-footer{margin-top:35px;font-size:7px}.panel-heading{align-items:flex-start}.panel-heading .tag{font-size:7px}.sheet-toolbar{padding-bottom:20px}}
@media(max-width:390px){.nav-link{font-size:9px}.answer-choice{width:22px}.question-num{min-width:18px}.key-grid{gap:0 2px}.key-row{gap:2px}.panel h2{font-size:17px}}
@media print{@page{size:A4;margin:0}html,body{margin:0!important;padding:0!important;background:white!important;width:210mm!important;height:297mm!important;overflow:hidden!important}.app-shell,.main,.view,.sheet-layout,.sheet-preview-zone,#paperViewport{display:block!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;max-width:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;transform:none!important}.sidebar,.topbar,.hero-copy,.sheet-toolbar,.preview-head,.main-footer,#view-prepare,#view-scan,#view-history{display:none!important}#view-sheet{display:block!important}.print-paper{display:block!important;width:210mm!important;height:297mm!important;transform:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
