:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24283a;background:#f7f8fa;font-synthesis:none;font-weight:400;--purple:#7460db;--purple-dark:#604bc9;--muted:#808292;--border:#e7e7ee}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ac9af4;outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.site-header{height:94px;max-width:1360px;margin:auto;padding:0 54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:20px}.brand{display:flex;align-items:center;color:#292637;text-decoration:none;font-size:25px;letter-spacing:-1.1px;font-weight:750}.brand-mark{display:grid;place-items:center;background:var(--purple);color:white;width:35px;height:39px;border-radius:10px;margin-right:10px;transform:rotate(-5deg)}.brand-mark svg{width:23px;height:25px}.brand-dot{color:var(--purple)}.header-note{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.status-dot{background:#a494e2;width:6px;height:6px;border-radius:50%}.privacy-badge{display:flex;align-items:center;gap:7px;color:#6c687f;background:#efedf7;padding:9px 12px;border-radius:7px;font-size:11px;font-weight:550}.privacy-badge svg{width:15px;height:15px}
main{max-width:1080px;margin:0 auto;padding:0 34px}.intro{text-align:center;padding:57px 0 31px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.1px;color:#8a7bb4;margin-bottom:15px}h1{font-size:48px;line-height:1.13;letter-spacing:-2px;margin:0;font-weight:720}h1 span{color:var(--purple)}.intro p{font-size:14px;line-height:1.8;color:var(--muted);margin:17px 0 0}
.upload-view{max-width:774px;margin:0 auto}.drop-zone{border:1.5px dashed #cfc7e4;background:linear-gradient(125deg,#fff 0%,#fcfaff 100%);border-radius:15px;min-height:305px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:27px 20px;transition:background .2s,border-color .2s,transform .2s}.drop-zone.drag-over{background:#eee8ff;border-color:var(--purple);transform:scale(1.008)}.upload-art{position:relative;width:73px;height:74px;margin-bottom:17px}.art-back{position:absolute;width:46px;height:57px;top:6px;left:6px;background:#e8e1fa;border:1px solid #d9ceef;border-radius:6px;transform:rotate(-13deg)}.art-page{position:absolute;top:0;right:9px;width:46px;height:60px;background:white;border:1px solid #d8cdec;border-radius:6px;transform:rotate(8deg);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;box-shadow:0 4px 10px #6c538610}.art-page svg{color:#a596c3;width:24px;height:24px}.art-page span{font-size:9px;font-weight:750;letter-spacing:1px;color:#9a88c3}.art-plus{position:absolute;bottom:5px;right:0;border-radius:50%;background:var(--purple);color:white;font-size:20px;width:26px;height:26px;display:grid;place-items:center;border:3px solid #fbf9ff}.drop-zone h2{font-size:18px;font-weight:650;letter-spacing:-.4px;margin:0 0 8px}.drop-zone p{color:var(--muted);font-size:13px;margin:0 0 21px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;border-radius:7px;font-size:12px;font-weight:600;min-height:41px;transition:background .15s,box-shadow .15s;border:1px solid transparent}.button svg{width:16px;height:16px}.primary{color:white;background:var(--purple);box-shadow:0 3px 5px #7560da17}.primary:hover:not(:disabled){background:var(--purple-dark);box-shadow:0 3px 9px #7560da35}.secondary{background:white;border-color:var(--border);color:#666576}.secondary:hover:not(:disabled){background:#f4f1fc}.upload-hint{color:#aaa6b5;font-size:10px;margin-top:14px}.sample-row{display:flex;justify-content:center;align-items:center;gap:6px;margin:18px 0;color:#93909e;font-size:11px}.text-button{background:none;border:0;padding:7px 4px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#777184;font-weight:550;border-radius:4px}.text-button:hover:not(:disabled){color:var(--purple);background:#f0ecf9}.text-button svg{width:15px;height:15px}.sample-row button{color:var(--purple)}
.editor{background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:0 4px 18px #27203603;overflow:hidden}.document-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:23px 25px}.document-info{display:flex;gap:12px;align-items:center;min-width:0}.document-info>div:last-child{min-width:0}.file-icon{width:39px;height:45px;background:#f0ebfb;color:var(--purple);display:grid;place-items:center;border-radius:7px;flex-shrink:0}.file-icon svg{width:23px;height:25px}.document-info h2{font-size:13px;font-weight:650;margin:0 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:390px}.document-info p{font-size:10px;color:var(--muted);margin:0}.document-actions{display:flex;gap:9px;flex-shrink:0}.editor-toolbar{border-top:1px solid var(--border);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:9px 25px}.selection-tools,.history-tools{display:flex;align-items:center;gap:15px}.select-all{display:flex;align-items:center;gap:8px;font-size:11px;color:#73707e;cursor:pointer}input[type=checkbox]{appearance:none;width:15px;height:15px;margin:0;border:1px solid #d5d0df;border-radius:4px;background:white;cursor:pointer;display:grid;place-content:center;flex-shrink:0}input[type=checkbox]:checked{background:var(--purple);border-color:var(--purple)}input[type=checkbox]:checked:before{content:"";width:7px;height:4px;border-left:1.5px solid white;border-bottom:1.5px solid white;transform:rotate(-45deg) translateY(-1px)}input[type=checkbox]:indeterminate{background:var(--purple)}input[type=checkbox]:indeterminate:before{content:"";height:2px;width:7px;background:white}.divider{width:1px;height:16px;background:var(--border)}.danger:hover:not(:disabled){color:#c44c61;background:#fff1f3}.canvas-heading{display:flex;justify-content:space-between;font-size:10px;color:#96909f;background:#faf9fc;padding:22px 25px 0}.canvas-heading strong{font-weight:600;color:#71697d}.canvas-dot{margin:0 9px}.page-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:23px 20px;padding:22px 25px 26px;background:#faf9fc;min-height:200px}.page-card{min-width:0;position:relative;border-radius:9px;transition:transform .15s}.page-preview{height:239px;background:#f0eef4;border:1px solid #e6e2ed;border-radius:7px;padding:25px 19px 17px;display:flex;align-items:center;justify-content:center;position:relative;cursor:grab;transition:background .15s,border-color .15s;overflow:hidden}.page-preview canvas{max-width:100%;max-height:100%;width:auto;height:auto;background:white;box-shadow:0 3px 9px #29213417;pointer-events:none}.page-card.selected .page-preview{border-color:#a190e1;background:#ece7f9;box-shadow:0 0 0 1px #a190e1}.page-checkbox{position:absolute;top:10px;left:10px;z-index:1}.grip{position:absolute;top:8px;right:9px;color:#aba3b6;width:14px;height:14px}.page-caption{display:flex;align-items:center;justify-content:space-between;padding-top:10px;gap:5px}.page-label{font-size:11px;font-weight:600;color:#686270}.page-origin{display:block;font-weight:400;font-size:9px;color:#a59cab;margin-top:3px}.page-actions{display:flex;gap:2px}.icon-button{width:25px;height:27px;display:grid;place-items:center;background:transparent;border:0;border-radius:4px;color:#8e839d;padding:4px}.icon-button svg{width:14px;height:14px}.icon-button:hover:not(:disabled){background:#e9e2f6;color:var(--purple-dark)}.icon-button.remove:hover{background:#ffe8ed;color:#ba4964}.previous svg{transform:rotate(180deg)}.page-card.dragging{opacity:.35}.page-card.drop-target .page-preview{border:2px solid var(--purple);background:#e7dffa}.preview-placeholder{font-size:11px;color:#93889f;text-align:center;line-height:1.6}.empty-pages{text-align:center;background:#faf9fc;padding:40px 20px;color:#918399}.empty-pages>svg{height:35px;width:35px}.empty-pages h3{font-size:17px;color:#5b5265}.empty-pages p{font-size:12px}.editor-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 25px;color:#a29aa9;font-size:10px}.editor-footer>span:first-child{display:flex;align-items:center;gap:5px}.editor-footer svg{height:13px;width:13px}
.features{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;gap:30px;padding:42px 20px 46px;max-width:850px;margin:0 auto}.feature-icon{width:36px;height:36px;display:grid;place-items:center;margin:0 auto 13px;border-radius:10px;background:#eeebf6;color:#9685ba}.feature-icon svg{height:19px;width:19px}.features h3{font-size:12px;font-weight:650;margin:0 0 8px;color:#5c576a}.features p{font-size:11px;line-height:1.8;color:#9893a1;margin:0}.site-footer{max-width:1252px;margin:0 auto;border-top:1px solid var(--border);padding:24px 0 28px;display:flex;justify-content:space-between;font-size:10px;color:#a5a0ad}.message{max-width:774px;padding:13px 17px;margin:16px auto;border:1px solid #dcd3f3;background:#f2eefb;border-radius:8px;color:#695488;font-size:12px;line-height:1.5}.message.error{color:#a03950;background:#fff0f3;border-color:#efced7}.loading{position:fixed;inset:0;z-index:10;background:#fbfaffed;display:flex;align-items:center;justify-content:center;gap:13px;color:#72638d;font-size:14px;backdrop-filter:blur(3px)}.spinner{width:24px;height:24px;border:2px solid #dfd5f0;border-top-color:var(--purple);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.intro{padding-top:75px}.upload-view{margin-top:8px}.features{padding-top:54px}}
@media(max-width:1000px){.site-header{padding:0 30px}.site-footer{margin:0 30px}.page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.document-info h2{max-width:240px}}
@media(max-width:700px){.site-header{height:76px;padding:0 20px}.header-note{display:none}main{padding:0 18px}.intro{padding:38px 0 26px}h1{font-size:39px}.intro p{font-size:12px}.page-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px 15px;gap:20px 12px}.page-preview{height:220px;padding:28px 14px 15px}.document-bar{padding:18px 15px;align-items:stretch;flex-direction:column;gap:16px}.document-info h2{max-width:calc(100vw - 130px)}.document-actions{justify-content:space-between}.document-actions .button{flex:1}.editor-toolbar{padding:8px 15px}.selection-tools,.history-tools{gap:8px}.canvas-heading{padding:18px 15px 0}.move-hint{display:none}.editor-footer{padding:13px 15px;font-size:9px}.features{padding:32px 0;gap:16px}.features p br{display:none}.features h3{line-height:1.6}.site-footer{margin:0 20px;padding:19px 0;gap:15px;line-height:1.7}.site-footer span:last-child{text-align:right}.privacy-badge{font-size:9px;padding:8px}.brand{font-size:22px}.brand-mark{width:30px;height:34px}.upload-hint{font-size:9px}.drop-zone h2{font-size:16px}.page-label{font-size:10px}.icon-button{width:23px}.page-caption{gap:2px}}
.canvas-heading{align-items:center;gap:12px;flex-wrap:wrap}.add-page-actions{display:flex;gap:8px;flex-wrap:wrap}.page-label{min-width:0}.page-origin{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}.page-actions{flex-shrink:0}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
