:root{color-scheme:light;font-family:"Segoe UI",system-ui,sans-serif;--blue:#1677ff;--line:#d9dee8;--panel:#fff;--muted:#697386}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#eef1f6;color:#182034;user-select:none}button{font:inherit;border:1px solid var(--line);background:#fff;color:#263043;border-radius:8px;padding:8px 12px;cursor:pointer}button:hover{background:#f5f8fc;border-color:#bfc8d7}button.primary{background:var(--blue);border-color:var(--blue);color:#fff}button.danger{color:#c52d35}.toolbar{height:62px;display:flex;align-items:center;gap:16px;padding:0 16px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;min-width:200px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#1677ff,#64a9ff);color:#fff;font-size:19px;font-weight:700}.brand div{display:flex;flex-direction:column}.brand small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.toolbar-group{display:flex;align-items:center;gap:6px}.toolbar .toolbar-group:last-child{margin-left:auto}.zoom-group button{min-width:42px}.tabsbar{height:42px;display:flex;align-items:flex-end;background:#e7ebf2;border-bottom:1px solid #cdd4df;padding:5px 10px 0}.tabs{display:flex;gap:4px;overflow:auto;max-width:calc(100vw - 60px)}.tab{height:36px;display:flex;align-items:center;gap:8px;min-width:140px;max-width:230px;padding:0 8px 0 12px;background:#dfe4ec;border:1px solid #cdd4df;border-bottom:0;border-radius:8px 8px 0 0;cursor:pointer}.tab.active{background:#fff}.tab-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px}.tab-dirty{width:7px;height:7px;border-radius:50%;background:#f59d24;flex:none}.tab-close{border:0;background:transparent;padding:2px 5px;border-radius:5px}.new-tab{height:31px;margin:0 0 4px 5px;padding:3px 10px}.layout{height:calc(100vh - 104px);display:grid;grid-template-columns:260px minmax(500px,1fr) 280px}.sidebar{background:var(--panel);overflow:auto;padding:16px}.left-sidebar{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line)}.sidebar section+section{margin-top:22px}.section-title{display:flex;justify-content:space-between;color:#778195;font-size:11px;font-weight:700;letter-spacing:.08em;margin-bottom:9px}.empty-note{color:#8a93a3;font-size:13px;line-height:1.4;padding:8px 4px}.page-list{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.page-button{padding:9px 4px}.page-button.selected{border-color:var(--blue);color:var(--blue);background:#eef6ff}.placement-list,.asset-list{display:flex;flex-direction:column;gap:7px}.list-row{display:grid;grid-template-columns:40px 1fr auto;gap:8px;align-items:center;width:100%;padding:7px;border:1px solid transparent;border-radius:9px;cursor:pointer}.list-row:hover{background:#f5f7fa}.list-row.selected{border-color:#9bc7ff;background:#eef6ff}.thumb{width:38px;height:34px;object-fit:contain;background:#f2f4f8;border-radius:5px}.row-copy{min-width:0}.row-copy strong,.row-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-copy strong{font-size:13px}.row-copy small{color:var(--muted);margin-top:2px}.icon-button{padding:6px 8px;color:#c52d35;border-color:transparent;background:transparent}.workspace{position:relative;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:42px;background-color:#e9edf3;background-image:radial-gradient(#d0d6df 1px,transparent 1px);background-size:18px 18px}.workspace.dragover:after{content:"Отпустите файлы — они откроются во вкладках";position:fixed;inset:130px 300px 90px 280px;display:grid;place-items:center;border:3px dashed #1677ff;background:rgba(238,246,255,.92);font-size:20px;color:#1677ff;border-radius:16px;z-index:20}.empty-state{margin:auto;max-width:430px;text-align:center;color:#566176}.empty-icon{margin:0 auto 18px;width:82px;height:102px;display:grid;place-items:center;border:2px solid #a8b5c8;border-radius:10px;font-weight:700;font-size:21px;background:#fff}.empty-state h2{color:#253047}.empty-state p{line-height:1.5}.page-surface{position:relative;flex:none;background:white;box-shadow:0 12px 35px rgba(39,51,75,.25)}.page-surface canvas{display:block;width:100%;height:100%}.marks-layer{position:absolute;inset:0;overflow:visible}.placed-mark{position:absolute;transform:translate(-50%,-50%);touch-action:none;cursor:grab}.placed-mark img{display:block;width:100%;height:100%;pointer-events:none;transform-origin:center}.placed-mark.selected::after{content:"";position:absolute;inset:-2px;border:2px dashed var(--blue);border-radius:4px}.resize-handle,.delete-handle{position:absolute;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:12px;z-index:2}.resize-handle{right:-12px;bottom:-12px;background:var(--blue);cursor:nwse-resize}.delete-handle{left:-12px;top:-12px;background:#e2454d;cursor:pointer}.size-badge{position:absolute;left:50%;top:-39px;transform:translateX(-50%);background:rgba(20,24,31,.86);color:#fff;padding:5px 8px;border-radius:14px;font-size:12px;white-space:nowrap}.zoom-dock{position:fixed;left:calc(50% - 50px);bottom:18px;display:flex;align-items:center;gap:8px;padding:7px 10px;background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 16px #aab2c2}.zoom-dock input{width:130px}.zoom-dock button{padding:4px 9px}.zoom-dock span{width:45px;font-size:12px}.toast{position:fixed;left:50%;bottom:76px;transform:translateX(-50%);padding:10px 16px;color:#fff;background:rgba(31,38,49,.92);border-radius:9px;z-index:50}.inspector label{display:block;font-size:13px;margin:19px 0}.inspector label output{float:right;color:var(--muted)}.inspector input[type=range]{width:100%;margin-top:10px}.selected-preview{display:flex;gap:10px;align-items:center;padding:10px;background:#f6f8fb;border-radius:9px}.selected-preview img{width:68px;height:54px;object-fit:contain}.inspector-buttons{display:flex;gap:8px}.inspector-buttons button{flex:1}.hint{margin-top:30px;padding:12px;color:#627087;background:#f5f7fa;border-radius:9px;font-size:13px}.hint p{margin:6px 0 0;line-height:1.55}.hidden{display:none!important}.modal{position:fixed;inset:0;background:rgba(24,32,52,.5);display:grid;place-items:center;z-index:100;padding:30px}.modal-card{width:min(1080px,95vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:24px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}.modal-head h2{margin:0}.modal-head p{margin:5px 0 0;color:var(--muted)}.modal-head button{font-size:22px;padding:3px 10px}.about-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:28px}.about-grid h3{margin:8px 0 10px}.about-grid p{line-height:1.5;color:#566176}.update-status{padding:12px;background:#f5f7fa;border-radius:9px;margin:8px 0}.about-actions{display:flex;gap:8px;margin:10px 0 16px}.release-note{font-size:13px;margin:5px 0;color:#566176}.doc-step{display:grid;grid-template-columns:180px 1fr;gap:14px;align-items:center;margin:12px 0;padding:10px;border:1px solid #e0e5ed;border-radius:12px}.doc-step img{width:180px;height:90px}.doc-step p{margin:4px 0 0;font-size:13px}.inspector-empty{margin-top:20px}.unsaved-dialog{width:min(430px,calc(100vw - 32px));border:1px solid var(--line);border-radius:14px;padding:24px;color:#182034;box-shadow:0 20px 60px rgba(0,0,0,.25)}.unsaved-dialog::backdrop{background:rgba(24,32,52,.5)}.unsaved-dialog h3{margin:0 0 10px}.unsaved-dialog p{line-height:1.5;overflow-wrap:anywhere}.unsaved-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:22px}@media(max-width:1200px){.layout{grid-template-columns:230px minmax(430px,1fr) 250px}.toolbar{gap:8px}.brand{min-width:150px}.brand small{max-width:130px}.about-grid{grid-template-columns:1fr}.doc-step{grid-template-columns:150px 1fr}.doc-step img{width:150px}}
