*{box-sizing:border-box}[hidden]{display:none!important}:root{font-family:Inter,system-ui,sans-serif;color:#18243b;background:#f3f6fb}body{margin:0}header{background:#142346;color:#fff;padding:12px 4vw;display:flex;gap:24px;align-items:center}.brand{text-decoration:none;color:white;font-weight:750;font-size:21px;white-space:nowrap}.brand span{background:#7354e8;font-size:12px;padding:9px;border-radius:8px}.brand b{color:#b5a4ff}header small{margin-left:auto;color:#d6dfff}nav{display:flex;gap:5px}nav button{background:#26375c;color:white;border:0}button,.primary{background:white;border:1px solid #dbe1ee;border-radius:8px;padding:10px 13px;font-size:13px;font-weight:650;color:#233454;cursor:pointer;text-decoration:none;display:inline-block}button:hover{border-color:#7860e8}.primary{background:#6948dc;color:white;border-color:#6948dc}button:disabled{opacity:.45;cursor:not-allowed}main{max-width:1250px;margin:24px auto;padding:0 20px}.hero{padding:48px 42px;border-radius:22px;background:radial-gradient(ellipse at 90% 5%,#7652d6,transparent 65%),#172447;color:white}.hero h1{font-size:clamp(35px,5vw,62px);letter-spacing:-2px;line-height:1.04;margin:14px 0}.hero p{color:#e0e5f8;max-width:570px}.hero small{letter-spacing:2px;color:#d1c7ff}.hero .primary{background:white;color:#4328ad;margin-top:12px}.section{display:flex;align-items:center;justify-content:space-between;margin:26px 0 15px;gap:12px}.section h2,.section p{margin:5px 0}.section p,.small{font-size:12px;color:#67758c;line-height:1.6}input,select,textarea{font:inherit;padding:9px;border:1px solid #d5ddeb;border-radius:7px;max-width:100%;color:#18243b;background:white}#tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tile{text-align:left;min-height:140px;padding:20px;border-radius:14px}.tile b{display:block;margin:11px 0 5px;font-size:16px}.tile small{font-weight:400;color:#61718c}.ico{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#ece7ff;color:#6843d5;font-size:23px}.notice{background:#e5f3ef;border-radius:12px;padding:18px;font-size:13px;color:#235b53;margin-top:22px}#editor{max-width:none;padding:0;margin:0}.toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:12px;background:white;border-bottom:1px solid #dce2ee}.toolbar input{width:195px}.workspace{display:grid;grid-template-columns:170px minmax(0,1fr) 255px;min-height:75vh}.side,.props{background:white;padding:15px;border:1px solid #e0e5ef}.side h3,.props h3{font-size:14px;margin:8px 0 14px}#pages,.pageactions{display:grid;gap:6px}#pages{max-height:42vh;overflow:auto}.active{background:#eae3ff!important;color:#5733c7!important;border-color:#9d89ef!important}.stage{min-width:0;padding:15px;overflow:auto;text-align:center;background:#e8edf5}.stagehead{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.stagehead b{overflow-wrap:anywhere}#hint{font-size:12px;color:#52647d}#paper{position:relative;width:min(100%,780px);margin:12px auto;box-shadow:0 6px 28px #162c5520;background:white;line-height:0}#canvas{width:100%;height:auto;display:block}#layer{position:absolute;inset:0;touch-action:none;line-height:normal}.word{position:absolute;cursor:text;background:transparent;touch-action:none}.word:hover,.word.selected{background:#8b6cf43b;outline:1px solid #825af2}.object{position:absolute;outline:1px dashed #6948dc;cursor:move;touch-action:none;white-space:pre-wrap;line-height:1.1;overflow:visible}.object.chosen{outline:2px solid #6948dc}.object img{width:100%;height:100%;pointer-events:none;object-fit:fill}.handle{position:absolute;bottom:-6px;right:-6px;width:12px;height:12px;background:#6948dc;border:2px solid white;border-radius:50%;cursor:nwse-resize;touch-action:none}.props label,.toolbox label{display:grid;gap:5px;margin:10px 0;font-size:13px;font-weight:650}.props textarea{min-height:80px}.props button{width:100%;margin:4px 0}.props .check{display:flex;align-items:center}.toolbox{background:white;border:1px solid #dfe5f0;padding:24px;border-radius:14px;max-width:700px}.toolbox #fileList>div{display:flex;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid #eee}.toolbox #fileList span{flex:1;font-size:13px;overflow-wrap:anywhere}.toolbox textarea{min-height:140px}#empty{padding:100px 10px;color:#68778f}#status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:20;background:#172447;color:white;padding:12px 18px;border-radius:9px;font-size:13px;display:none}#status.show{display:block}dialog{border:1px solid #d5ddeb;border-radius:16px;width:min(94vw,650px);padding:20px}dialog::backdrop{background:#15244799}#pad{width:100%;border:1px dashed #a6b1c5;border-radius:8px;touch-action:none;margin:12px 0;background:white}footer{text-align:center;color:#708097;font-size:12px;padding:22px}@media(max-width:850px){#tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:1fr}.stage{grid-row:1}.pageactions,#pages{display:flex;flex-wrap:wrap}.hero{padding:30px 24px}header{gap:10px;padding:12px}.brand{font-size:16px}header small{display:none}.section{flex-wrap:wrap}.props{display:grid;grid-template-columns:1fr 1fr;gap:8px}.props h3,.props hr,.props .small{grid-column:1/-1}}