:root{--red:#d31f2b;--ink:#171719;--muted:#666874;--line:#e5e3df;--paper:#f5f2ec;--green:#097a50}*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{background:var(--paper);color:var(--ink);font-family:Arial,Noto Sans Devanagari,sans-serif}button,input,textarea{font:inherit}.topbar{background:white;border-bottom:1px solid var(--line);justify-content:space-between;min-height:84px;padding:14px max(28px,calc((100vw - 1500px) / 2))}.brand,.topbar{align-items:center;display:flex}.brand{gap:14px}.brand div{display:flex;flex-direction:column;gap:4px}.brand strong{color:var(--red);font-size:12px;letter-spacing:1.3px}.brand span:last-child{font-size:20px}.logo,.mini-logo{align-items:center;background:var(--red);border-radius:50%;color:white;display:inline-flex;font-weight:800;justify-content:center}.logo{font-size:22px;height:44px;width:44px}.mini-logo{font-size:13px;height:30px;width:30px}.mode{background:#edf8f3;border-radius:999px;color:var(--green);font-size:12px;font-weight:700;padding:10px 14px}.steps{align-items:center;background:white;border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);min-height:52px;padding:0 max(28px,calc((100vw - 1050px) / 2));text-align:center}.steps b,.steps span{font-size:12px}.steps b{color:var(--red)}.steps span{color:#7b7d86}.workspace{display:grid;grid-gap:24px;gap:24px;grid-template-columns:minmax(540px,1.25fr) minmax(390px,.95fr);margin:28px auto 60px;max-width:1040px;padding:0 18px}.panel{background:white;border:1px solid #dedede;border-radius:18px;box-shadow:0 18px 45px rgba(36,30,22,.08);padding:24px}.section-title{align-items:center;display:flex;gap:12px}.section-title span{align-items:center;background:#fff0f1;border-radius:8px;color:var(--red);display:inline-flex;font-weight:800;height:30px;justify-content:center;width:30px}.section-title h1,.section-title h2{font-size:18px;font-weight:500;margin:0}.help{color:var(--muted);font-size:12px;margin:7px 0 20px 42px}.dropzone{align-items:center;background:#fffafa;border:1.5px dashed var(--red);border-radius:14px;cursor:pointer;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:112px;padding:18px;text-align:center}.dropzone input{height:1px;opacity:0;position:absolute;width:1px}.dropzone strong{overflow-wrap:anywhere}.dropzone small{color:var(--muted)}.grid{display:grid;grid-gap:14px;gap:14px;grid-template-columns:1fr 1fr}label{display:flex;flex-direction:column;font-size:12px;font-weight:700;gap:8px;margin-top:18px}input,textarea{background:white;border:1px solid #cfd2d8;border-radius:10px;color:var(--ink);outline:none;padding:13px 14px}input:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(211,31,43,.09)}textarea{resize:vertical}.field-note{color:var(--muted);font-weight:400}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.consent{align-items:center;background:#fff8e8;border:1px solid #e6bd66;border-radius:10px;flex-direction:row;font-size:11px;gap:10px;line-height:1.45;padding:12px}.consent input{accent-color:var(--red);height:17px;width:17px}.preview-heading{align-items:flex-start;display:flex;justify-content:space-between}.preview-heading b{color:var(--red);font-size:11px;letter-spacing:1px}.preview-heading h2{font-size:18px;font-weight:500;margin:5px 0 0}.preview-heading>span{background:#eaf7f0;border-radius:7px;color:var(--green);font-size:11px;font-weight:800;padding:8px 10px}.phone{background:#24272c;border:7px solid #24272c;border-radius:28px;margin:22px auto 12px;max-width:315px;overflow:hidden}.phone-head{align-items:center;background:#07695b;color:white;display:flex;gap:9px;padding:10px}.chat{background-color:#ece5dd;background-image:radial-gradient(#d7d0c5 1px,transparent 0);background-size:10px 10px;max-height:505px;overflow:auto;padding:10px}.chat object{border:0;display:block;width:100%}.chat object,.empty-preview{background:white;border-radius:8px;height:210px}.empty-preview{align-items:center;color:#8a8b91;display:flex;justify-content:center}.chat pre{background:#d9ffd1;border-radius:9px;font-family:inherit;font-size:11px;line-height:1.42;margin:8px 0;padding:10px;white-space:pre-wrap}.document-card{align-items:center;background:#f7fff5;border-radius:8px;display:flex;font-size:10px;gap:8px;padding:9px}.document-card b{background:#ee2737;border-radius:4px;color:white;padding:7px 5px}.document-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note{color:var(--muted);font-size:10px;line-height:1.45}button{background:var(--red);border:0;border-radius:11px;color:white;cursor:pointer;font-weight:800;padding:15px;width:100%}button:disabled{cursor:not-allowed;opacity:.55}.result{border-radius:10px;font-size:12px;font-weight:700;margin-top:10px;padding:13px}.success{background:#e5f7ec;color:#087044}.error{background:#fde8e8;color:#a2111a}@media (max-width:900px){.workspace{grid-template-columns:1fr;max-width:650px}.preview-panel{order:-1}.steps{padding:0 10px}.steps b,.steps span{font-size:10px}}@media (max-width:560px){.topbar{padding:12px 15px}.brand span:last-child{font-size:16px}.brand strong,.mode{font-size:9px}.mode{padding:8px}.workspace{margin-top:14px;padding:0 10px}.panel{border-radius:14px;padding:16px}.grid{grid-template-columns:1fr}.preview-panel{display:none}}