:root{--navy:#172e45;--ink:#19344d;--soft:#5f778d;--pale:#edf3f7;--paper:#fff;--line:#dce6ee;--blue:#347ea8;--pink:#eaa3a7;--mint:#c4e5d1;font-family:ui-rounded,'Avenir Next',Avenir,'Segoe UI',system-ui,sans-serif;color:var(--ink);background:#f2f6f9}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}button,select,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #80bbdd;outline-offset:2px}.sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.topbar{background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 22px;min-height:75px;box-shadow:0 4px 15px #122e4411}.brandgroup{display:flex;align-items:center;gap:15px;min-width:0}.brandlogo{width:134px;max-height:42px;object-fit:contain}.branddivider{height:34px;width:1px;background:#60778b80}.appname{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.appname strong{font-size:19px;letter-spacing:-.55px}.appname small{font-size:11px;color:#acc7dc}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool-divider{width:1px;height:29px;background:#5f7184;margin:0 4px}.btn{border-radius:10px;padding:10px 13px;min-height:38px;font-size:12px;font-weight:750;line-height:1.15;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;color:#254865;transition:background .15s,border .15s,transform .15s}.btn:not(:disabled):hover{background:#eef6fb;border-color:#a6cede}.btn.ghost{background:transparent;border-color:#ffffff26;color:#f3faff}.btn.ghost:hover{background:#ffffff1a}.btn.outline{background:#eaf3f8;color:#1c4a65;border-color:#eaf3f8}.btn.primary{background:#8dcee9;color:#123a53;border-color:#8dcee9}.btn.primary:hover{background:#b1e0f3}.btn.thin{padding:9px 12px;min-height:35px}.btn.block{width:100%}.btn.add-text{background:#f8e9ed;border:1px solid #f0ced7;color:#7e4358;justify-content:flex-start;padding:13px;font-size:13px}.btn.add-text:hover{background:#f9dce4}.download-icon{font-size:20px;line-height:10px}.add-icon{display:grid;place-items:center;width:25px;height:25px;background:#e9acba;border-radius:7px;color:#70394c;font-weight:950}
.app-shell{display:grid;grid-template-columns:minmax(245px,278px) minmax(480px,1fr) minmax(282px,326px);height:calc(100vh - 117px);min-height:560px;max-height:1600px}.library-panel,.inspector-panel{background:#fff;min-height:0;display:flex;flex-direction:column}.library-panel{border-right:1px solid #dce7ed}.inspector-panel{border-left:1px solid #dce7ed}.pane-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 20px 15px;border-bottom:1px solid #eff3f7;gap:7px}.pane-heading h2{font-size:17px;letter-spacing:-.35px;margin:0}.eyebrow{font-size:10px;color:#81a0b3;font-weight:850;letter-spacing:1.05px;white-space:nowrap}.aside-scroll,.inspector-scroll{overflow-y:auto;min-height:0;padding:5px 18px 26px;scrollbar-width:thin}.section-block{border-bottom:1px solid #edf1f5;padding:17px 1px 20px}.section-block:last-child{border:0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;gap:7px}.section-head h3{font-size:13px;margin:0;letter-spacing:-.1px}.counter{font-size:10px;font-weight:800;color:#7694a7;background:#edf5fa;border-radius:6px;padding:4px 7px;white-space:nowrap}.control{width:100%;border-radius:9px;border:1px solid #d5e2eb;background:#fafcfe;padding:9px 10px;color:#23475f;font-size:12px;min-height:37px}.control:focus{border-color:#83bfdb}.control.small{width:auto;min-width:73px;min-height:32px;padding:5px 7px}.control[type=color]{padding:4px;width:100%;min-height:38px;cursor:pointer}.field-label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#6c8295}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:9px}.micro{color:#8798a7;line-height:1.55;font-size:10.5px;margin:9px 0 0}.micro code{color:#4e7592}.template-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.template-card{display:flex;flex-direction:column;gap:6px;text-align:left;padding:6px;background:#fff;border:1px solid #dce6ed;border-radius:11px;min-width:0}.template-card:hover{border-color:#83bddc}.template-card.active{border:2px solid #56a6d2;padding:5px;background:#f0f8fd}.template-swatch{height:72px;border-radius:7px;position:relative;overflow:hidden;isolation:isolate}.template-swatch:before{content:'';position:absolute;inset:12px 20% auto 12px;height:10px;background:#fff9;border-radius:3px}.template-swatch:after{content:'';position:absolute;left:12px;right:24%;top:30px;height:6px;background:#fff7;border-radius:2px;box-shadow:0 11px 0 #fff6}.swatch-blob{width:35px;height:35px;position:absolute;right:11px;bottom:8px;border-radius:50%;background:#ffe79e}.template-name{font-size:11px;font-weight:800;padding:0 3px 2px;color:#31516b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.graphic-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:13px}.graphic-card{height:61px;border:1px solid #deebf0;border-radius:10px;background:#fbfdff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;color:#51758c;font-size:9px;min-width:0}.graphic-card:hover{background:#e8f5fd;border-color:#80b7d7}.graphic-card svg{width:29px;height:29px}
.work-area{display:flex;flex-direction:column;min-width:0;min-height:0;background:#edf3f7}.work-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 25px 13px}.work-head h1{font-size:18px;margin:0;letter-spacing:-.55px}.work-head p{font-size:11px;color:#8198aa;margin:4px 0 0}.work-head-right{display:flex;align-items:center;gap:15px}.auto-state{font-size:10px;color:#6c9483;white-space:nowrap}.zoom-label{display:flex;gap:8px;align-items:center;font-size:11px;color:#6e879a}.canvas-scroll{flex:1;overflow:auto;min-height:0;padding:14px 25px 30px;display:flex;background-color:#eff4f7;background-image:linear-gradient(45deg,#e7eff4 25%,transparent 25%),linear-gradient(-45deg,#e7eff4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7eff4 75%),linear-gradient(-45deg,transparent 75%,#e7eff4 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.board-frame{display:flex;min-width:100%;min-height:100%;align-items:center;justify-content:center}.board-mat{margin:auto;filter:drop-shadow(0px 10px 18px #23415e35);max-width:none;flex:none}.board-mat:focus-visible{outline:4px solid #7cc6df}.board-mat svg{display:block;width:100%;height:100%;touch-action:none;max-width:none;user-select:none}.board-mat svg [data-id]{cursor:grab}.board-mat svg [data-id]:active{cursor:grabbing}.canvas-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 25px;background:#f8fbfd;color:#8196a8;font-size:10px;border-top:1px solid #dce5ed}.canvas-foot span:last-child{white-space:nowrap}
.inspector-scroll{padding-top:14px}.inspector-section{margin-bottom:23px;padding-bottom:20px;border-bottom:1px solid #eaf0f4}.inspector-section:last-child{border-bottom:0}.inspector-section h3{font-size:13px;margin:0 0 12px}.inspect-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.inspect-grid .full{grid-column:1/-1}.select-tip{background:#f1f6fb;border:1px solid #d7e7f2;padding:12px;border-radius:12px;margin-bottom:12px;font-size:11px;color:#55738b;line-height:1.55}.select-tip strong{color:#2c5b7a}.selection-indicator{font-size:10px;background:#e2f4fa;border-radius:7px;padding:7px 9px;color:#326a85;margin-top:7px;margin-bottom:10px}.inspector-inputs .field-label{margin-bottom:11px}.inspector-inputs textarea{width:100%;resize:vertical;min-height:98px;line-height:1.45;font-size:13px}.inspector-actions{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 0}.inspector-actions .btn{flex:1;min-width:68px;font-size:11px;padding:8px 10px}.subnote{font-size:10px;color:#8399ab;line-height:1.5;margin:8px 0 0}.switch{display:flex;gap:8px;align-items:center;font-size:12px;color:#425a70}.switch input{accent-color:#589fc9}.layers-head{margin-top:19px}.layer-list{display:flex;flex-direction:column;gap:5px}.layer{width:100%;text-align:left;padding:9px 10px;background:#f9fbfd;color:#58738c;border:1px solid #e5edf2;border-radius:8px;font-size:11px;display:flex;gap:8px;align-items:center;min-width:0}.layer.selected{background:#eaf7fe;border-color:#76bbdc;color:#1c587a;font-weight:800}.layer .type-icon{background:#e1edf4;width:24px;height:24px;border-radius:6px;display:grid;place-items:center;flex:none}.layer .layer-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hint{margin-top:9px}.empty-inspector{font-size:12px;color:#738da0;line-height:1.6}.empty-icon{width:58px;height:58px;border-radius:17px;background:#f0f7fb;display:grid;place-items:center;font-size:30px;margin-bottom:14px}.page-footer{height:42px;background:#fff;border-top:1px solid #e0eaf0;text-align:center;display:grid;place-items:center;color:#7d96aa;font-size:11px;padding:5px 12px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,18px);background:#173d55;color:#fff;padding:13px 18px;border-radius:12px;box-shadow:0 8px 25px #18334c38;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;max-width:min(92vw,560px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.notice{display:inline-block;background:#f0e8fc;color:#6e4d9b;border-radius:7px;padding:4px 6px;font-size:10px;font-weight:800}.color-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#6e8399;font-weight:800}.btn.quiet{background:#f7fafd}.position-chip{font-size:11px;color:#6a8195;background:#f2f6f9;border:1px solid #e2ebf2;border-radius:8px;padding:8px 10px;display:flex;justify-content:space-between;gap:6px}.rich-tools{border:1px solid #dbe9f2;background:#f7fbfe;padding:10px;border-radius:10px}.rich-tools .field-label{margin-bottom:8px}.object-options{display:flex;gap:8px;flex-wrap:wrap}.object-options .btn{padding:8px 10px}.object-options .btn.active{background:#e3f2fb;border-color:#76bcda}
@media(max-width:1230px){.app-shell{grid-template-columns:235px minmax(380px,1fr) 275px}.topbar{padding:12px}.toolbar{gap:5px}.brandlogo{width:108px}.appname strong{font-size:17px}.work-head{padding:14px}.canvas-scroll{padding:12px}}
@media(max-width:990px){.topbar{flex-wrap:wrap;justify-content:center}.app-shell{height:auto;min-height:calc(100vh - 120px);max-height:none;grid-template-columns:270px minmax(0,1fr)}.library-panel{grid-column:1;grid-row:2;border-top:1px solid var(--line)}.work-area{grid-column:1/-1;grid-row:1;height:680px}.inspector-panel{grid-column:2;grid-row:2;border-top:1px solid var(--line)}.aside-scroll,.inspector-scroll{max-height:none;overflow:visible}.library-panel,.inspector-panel{display:block}.work-head{padding:15px 22px}.canvas-scroll{min-height:540px}}
@media(max-width:600px){.topbar{justify-content:flex-start;gap:12px}.brandgroup{width:100%}.toolbar{gap:5px;width:100%;justify-content:space-between}.toolbar .btn{padding:9px 10px;font-size:11px}.toolbar .btn.ghost span{display:none}.tool-divider{display:none}.app-shell{display:flex;flex-direction:column}.work-area{order:0;height:540px;flex:none}.library-panel{order:1}.inspector-panel{order:2}.canvas-scroll{min-height:350px;padding:9px}.work-head{padding:15px 12px}.work-head p{display:none}.work-head h1{font-size:15px}.work-head-right{gap:5px}.auto-state{display:none}.canvas-foot{padding:9px;font-size:9px}.canvas-foot span:first-child{max-width:65%}.library-panel,.inspector-panel{border:0;border-top:1px solid var(--line)}.template-list{grid-template-columns:repeat(3,1fr)}.template-swatch{height:60px}.graphic-gallery{grid-template-columns:repeat(6,1fr)}.page-footer{height:auto;min-height:42px}}
@media(prefers-reduced-motion:reduce){.btn,.toast{transition:none}}
