:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#173633;background:#f1f4f0;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#153b39;color:white;padding:18px max(20px,calc((100% - 780px)/2));display:flex;align-items:center;gap:12px}header small{display:block;color:#bad3c8;font-size:12px}.brand{border:1px solid #b2dbb7;border-radius:10px;padding:4px 12px;font-size:28px}header button{margin-left:auto}main{max-width:780px;margin:auto;padding:16px 20px 36px}h1{font-size:26px;line-height:1.2;margin:8px 0}h2{font-size:20px}p{line-height:1.5}button,.file{font:inherit;border:0;border-radius:10px;background:#176b50;color:white;padding:13px 17px;cursor:pointer;font-weight:600}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #b58318;outline-offset:3px}.secondary{background:#e2e9e3;color:#244b40;font-size:14px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.file input{width:1px;height:1px;opacity:0;position:absolute}input[type=password]{font:inherit;padding:12px;border:1px solid #b1c0b4;border-radius:8px;width:100%;margin:10px 0 15px}.toolbar,.title{display:flex;justify-content:space-between;align-items:center;gap:10px}.toolbar{border-bottom:1px solid #d8e0d8;padding-bottom:14px;margin-bottom:24px;font-size:13px}.title small{letter-spacing:1.5px;color:#56746b;font-size:10px}.camera{position:relative;background:#182c28;border-radius:16px;overflow:hidden;aspect-ratio:3/4;max-height:560px;margin:20px auto 0}.camera video{width:100%;height:100%;object-fit:contain}.frame{position:absolute;inset:9% 8% 16%;pointer-events:none}.frame i{position:absolute;width:34px;height:34px;border:3px solid #dcecb8}.frame i:nth-child(1){left:0;top:0;border-right:0;border-bottom:0}.frame i:nth-child(2){right:0;top:0;border-left:0;border-bottom:0}.frame i:nth-child(3){right:0;bottom:0;border-left:0;border-top:0}.frame i:nth-child(4){left:0;bottom:0;border-right:0;border-top:0}#cameraHint{position:absolute;bottom:16px;left:8%;right:8%;font-size:12px;color:white;text-align:center;background:#173633d9;border-radius:6px;padding:8px}.sheet{padding:18px;background:white;border:1px solid #dce3da;border-radius:14px}.muted,footer{font-size:12px;color:#61756c}.confirm{display:flex;gap:10px;font-size:14px;line-height:1.5;margin:20px 0}.confirm input{min-width:20px}#send{width:100%}#pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.page img{width:100%;height:130px;object-fit:contain;background:#e9ede7;border-radius:6px}.page{font-size:13px}.page button{padding:7px;margin-top:6px;width:100%}details{margin-top:20px;border-top:1px solid #d6dfd4;padding-top:18px}summary{cursor:pointer;font-weight:600}#status{border-left:4px solid #4c8b62;padding:10px 12px;background:#e1ebe0;overflow-wrap:anywhere}#status.error{border-color:#b44730;background:#f9e7df;color:#88391f}#drafts button{display:block;margin:10px 0;width:100%;text-align:left}footer{margin-top:28px}[hidden]{display:none!important}@media(min-width:600px){.camera{aspect-ratio:4/3}.frame{inset:8% 12% 16%}}@media(prefers-reduced-motion:no-preference){button{transition:opacity .15s}}

/* Paired installation instructions: one screen, RU + KK. */
.help-pair{margin:18px 0}.help-pair p{margin:6px 0}.help-kk{display:block;color:#365b4c;line-height:1.5}.help summary .help-kk{margin-top:4px;font-weight:500}.install-kk{display:block;font-size:.85em;font-weight:500;margin-top:2px}#install{flex-shrink:0}@media(max-width:400px){header{padding:16px 14px;gap:9px}header button{padding:10px 12px}}

.setup-kk{display:block;font-size:.85em;font-weight:400;line-height:1.5;margin-top:4px}#status{white-space:pre-line}

/* Group instructions by language, never interleave paragraphs. */
.help-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:20px}.help-language{min-width:0}.help-language h2{margin:0 0 18px;font-size:20px;line-height:1.35}.help-language p{margin:0 0 18px}.help-language+.help-language{border-left:1px solid #d6dfd4;padding-left:28px}@media(max-width:600px){.help-columns{grid-template-columns:1fr;gap:24px}.help-language+.help-language{border-left:0;border-top:1px solid #d6dfd4;padding:24px 0 0}}

.button-help {position:fixed;left:16px;right:16px;bottom:24px;z-index:1000;max-width:640px;margin:auto;padding:14px 18px;border:1px solid #52655e;border-radius:12px;background:#fff9dd;color:#172d24;box-shadow:0 4px 24px #0003;font-size:15px;line-height:1.45;pointer-events:none}
.button-help[hidden] {display:none}

