:root{--accent:#6d5dfc;--accent2:#8d7bff;--ink:#202238;--muted:#74788f;--line:#e7e8f1;--panel:#fff;--bg:#f5f6fb;--danger:#dc4c64;--shadow:0 15px 45px rgba(35,36,66,.08);--zoom:.55}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 15% 0,#f0edff 0,transparent 28%),var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.topbar{height:66px;padding:0 max(22px,calc((100vw - 1320px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.9);border-bottom:1px solid var(--line);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:800}.brand-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--accent),#a492ff);box-shadow:0 7px 18px rgba(109,93,252,.28)}.privacy{font-size:13px;color:#555b70;display:flex;align-items:center;gap:8px}.privacy-dot,.status-dot{width:8px;height:8px;border-radius:50%;background:#24bd73;box-shadow:0 0 0 4px #dff7eb}.hero{text-align:center;padding:56px 20px 34px}.eyebrow{display:inline-block;color:var(--accent);background:#ebe8ff;border:1px solid #ddd7ff;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:900;letter-spacing:.13em}.hero h1{font-size:clamp(32px,4vw,50px);line-height:1.08;margin:16px 0 12px;letter-spacing:-.04em}.hero h1 span{color:var(--accent)}.hero p{max-width:690px;margin:0 auto;color:var(--muted);font-size:17px;line-height:1.65}.workspace{width:min(1320px,calc(100% - 32px));margin:0 auto 56px;display:grid;grid-template-columns:350px 1fr;background:var(--panel);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);min-height:720px}.controls{padding:26px;border-right:1px solid var(--line);background:#fff}.step-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.step-head>span{width:28px;height:28px;display:grid;place-items:center;background:var(--accent);color:#fff;border-radius:9px;font-weight:800;font-size:13px}.step-head div{display:flex;flex-direction:column}.step-head strong{font-size:14px}.step-head small{font-size:11px;color:var(--muted);margin-top:2px}.drop-zone{min-height:132px;border:1.5px dashed #c9c3ff;background:#faf9ff;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;transition:.2s}.drop-zone:hover,.drop-zone.dragover{border-color:var(--accent);background:#f3f0ff;transform:translateY(-1px)}.upload-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--accent);color:#fff;font-size:22px;margin-bottom:9px}.drop-zone strong{font-size:13px}.drop-zone small{font-size:11px;color:var(--muted);margin-top:5px}.file-summary{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.file-summary div{display:flex;flex-direction:column}.file-summary strong{font-size:12px}.file-summary small{font-size:10px;color:var(--muted)}.text-danger{border:0;background:none;color:var(--danger);font-weight:700;font-size:11px;cursor:pointer}.thumb-list{display:flex;gap:6px;overflow:auto;margin-top:10px;max-height:62px}.thumb{position:relative;flex:0 0 54px;height:54px;border-radius:8px;overflow:hidden;background:#eee}.thumb img{width:100%;height:100%;object-fit:cover}.thumb button{position:absolute;right:2px;top:2px;width:17px;height:17px;border:0;border-radius:50%;background:rgba(25,26,42,.78);color:#fff;line-height:15px;cursor:pointer}.thumb.more{display:grid;place-items:center;background:#eeecff;color:var(--accent);font-size:11px;font-weight:800}.controls hr{border:0;border-top:1px solid var(--line);margin:22px 0}.field-label{display:block;font-size:11px;font-weight:800;color:#565b70;margin:15px 0 8px}.segmented{display:grid;grid-template-columns:repeat(4,1fr);padding:3px;border:1px solid var(--line);background:#f7f7fa;border-radius:10px}.segmented button{border:0;background:transparent;border-radius:7px;padding:9px 7px;color:#676b7d;font-weight:750;cursor:pointer}.segmented button.active{background:#fff;color:var(--accent);box-shadow:0 2px 9px rgba(41,43,70,.12)}#orientationOptions{grid-template-columns:1fr 1fr}.select-wrap select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.toggle-row{display:flex;justify-content:space-between;align-items:center;margin-top:15px}.toggle-row div{display:flex;flex-direction:column}.toggle-row strong{font-size:12px}.toggle-row small{font-size:10px;color:var(--muted);margin-top:2px}.switch input{display:none}.switch span{display:block;width:36px;height:21px;background:#d9dbe5;border-radius:99px;position:relative;cursor:pointer;transition:.2s}.switch span:after{content:"";position:absolute;width:15px;height:15px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #999;transition:.2s}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{transform:translateX(15px)}.primary-btn,.download-btn{width:100%;border:0;border-radius:11px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;padding:13px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(109,93,252,.24);margin-top:20px}.primary-btn:disabled{background:#d9d9e4;box-shadow:none;cursor:not-allowed}.preview-panel{min-width:0;display:flex;flex-direction:column;background:#f6f7fb}.preview-head{height:62px;background:#fff;border-bottom:1px solid var(--line);padding:0 20px;display:flex;align-items:center;justify-content:space-between}.preview-head>div:first-child{display:flex;align-items:center;gap:10px;font-size:13px}.zoom-controls{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.zoom-controls button{width:27px;height:27px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#555;cursor:pointer}.preview-stage{padding:28px;flex:1;overflow:auto;min-height:590px}.pages-container{display:flex;gap:28px;align-items:flex-start;justify-content:center;flex-wrap:wrap}.paper{position:relative;background:#fff;box-shadow:0 7px 25px rgba(31,33,58,.16);flex:none;width:calc(794px * var(--zoom));height:calc(1123px * var(--zoom));overflow:hidden}.paper.landscape{width:calc(1123px * var(--zoom));height:calc(794px * var(--zoom))}.photo-cell{position:absolute;overflow:hidden;background:#e7e8ee}.photo-cell img{width:100%;height:100%;display:block;object-fit:contain}.photo-cell.crop img{object-fit:cover}.photo-cell.cutline{outline:1px dashed rgba(40,40,50,.45);outline-offset:-1px}.page-number{position:absolute;right:6px;bottom:3px;font-size:calc(14px * var(--zoom));color:#a3a5b0}.empty-state{min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.empty-paper{width:115px;height:160px;background:#fff;border:1px dashed #cfd1de;border-radius:4px;box-shadow:0 8px 24px rgba(38,40,68,.08);display:grid;place-items:center;margin-bottom:18px}.empty-paper span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#efedff;color:var(--accent);font-size:22px}.empty-state h2{font-size:16px;color:#484c61;margin:0 0 7px}.empty-state p{font-size:12px;margin:0}.result-bar{background:#fff;border-top:1px solid var(--line);padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.result-bar>div{display:flex;flex-direction:column}.result-bar strong{font-size:12px}.result-bar small{color:var(--muted);font-size:10px;margin-top:3px}.download-btn{width:auto;margin:0;padding:11px 17px}.how-it-works{width:min(1050px,calc(100% - 32px));margin:0 auto 60px}.how-it-works h2{text-align:center;font-size:22px}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.how-grid article{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.how-grid article>span{flex:0 0 30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#ece9ff;color:var(--accent);font-weight:900}.how-grid strong{font-size:13px}.how-grid p{font-size:11px;color:var(--muted);line-height:1.5;margin:5px 0 0}footer{text-align:center;color:#8a8da0;font-size:11px;padding:26px}footer a{color:var(--accent);font-weight:700}.hidden{display:none!important}
.field-hint{display:block;color:var(--muted);font-size:10px;line-height:1.45;margin-top:6px}.segmented.disabled{opacity:.48}.segmented button:disabled{cursor:not-allowed}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.controls{border-right:0;border-bottom:1px solid var(--line)}.preview-stage{min-height:480px}.privacy{display:none}.how-grid{grid-template-columns:1fr}.pages-container{justify-content:flex-start}.paper{--zoom:.45}}
@media(max-width:520px){.workspace{width:100%;border-radius:0;border-left:0;border-right:0}.hero{padding-top:38px}.preview-stage{padding:18px}.paper{--zoom:.37}.paper.landscape{--zoom:.31}.result-bar{align-items:flex-start;flex-direction:column}.download-btn{width:100%}}
@media print{@page{size:A4 portrait;margin:0}body{background:#fff}.topbar,.hero,.controls,.preview-head,.result-bar,.how-it-works,footer{display:none!important}.workspace,.preview-panel,.preview-stage{display:block;width:auto;margin:0;padding:0;border:0;box-shadow:none;background:#fff}.pages-container{display:block}.paper,.paper.landscape{--zoom:1;box-shadow:none;page-break-after:always;margin:0}.paper:last-child{page-break-after:auto}.page-number{display:none}}
