:root{--navy:#10274b;--accent:#0b69c8;--muted:#72849c;--line:#e0e8f2;--light:#f6f9fd;--panel:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#edf3fa;color:var(--navy);font-family:Inter,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible{outline:3px solid #66b6ff88;outline-offset:2px}.hidden{display:none!important}
.topbar{height:77px;background:#fff;border-bottom:1px solid #e5edf5;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:0 24px;position:relative;z-index:10}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{background:#0a2450;color:#fff;width:44px;height:44px;display:grid;place-items:center;font-weight:950;font-size:28px;border-radius:14px;letter-spacing:-4px;flex-shrink:0}.brand-mark span{color:#41beff}.brand-copy b{display:block;font-size:16px;letter-spacing:-.55px}.brand-copy em{font-style:normal;font-weight:600}.brand-copy small{display:block;font-size:11px;color:#7a8ba2;margin-top:3px}.top-right{display:flex;align-items:center;gap:8px}.save-status{font-size:11px;color:#74849b;white-space:nowrap;margin-right:8px}.save-status i{display:inline-block;width:7px;height:7px;background:#2cbe83;border-radius:50%;margin-right:5px}.button{border:0;border-radius:11px;padding:11px 14px;font-size:12px;font-weight:850;min-height:42px;white-space:nowrap}.button-primary{background:linear-gradient(115deg,#0b84e6,#0657b4);color:white;box-shadow:0 6px 17px #0b6bbd32}.button-muted{border:1px solid #e4ebf4;background:#f6f9fd;color:#355879}.button:hover{filter:brightness(1.045)}.icon-button{height:35px;width:35px;border:1px solid #e3eaf3;background:white;color:#355981;border-radius:9px;font-size:23px;line-height:1}.icon-button:disabled{opacity:.34;cursor:default}.price-tag{background:#ffffff33;padding:6px 7px;border-radius:7px;margin-left:7px;font-size:10px}.full{width:100%;display:block}
.layout{display:grid;grid-template-columns:335px minmax(0,1fr);height:calc(100vh - 77px);min-height:650px}.sidebar{overflow-y:auto;background:white;border-right:1px solid #e3ebf2;padding:24px 20px 17px;scrollbar-width:thin}.sidebar-top .eyebrow,.eyebrow{font-size:10px;font-weight:900;letter-spacing:1.5px;color:#268dd7}.sidebar-top h1{font-size:25px;letter-spacing:-1px;margin:10px 0 7px;line-height:1.1}.sidebar-top h1 span{color:#147acc}.sidebar-top p{font-size:12px;line-height:1.52;color:#76869e;margin:0 0 19px}.tab-bar{display:flex;gap:3px;background:#f1f6fc;border-radius:12px;padding:4px;margin-bottom:17px}.tab{border:0;background:transparent;border-radius:8px;padding:10px 4px;font-size:11px;font-weight:750;color:#75869b;flex:1;white-space:nowrap}.tab.active{background:#fff;color:#0a5ba9;box-shadow:0 2px 9px #2a65931c}.tab span{color:#1480d3}.tab-pane{display:none}.tab-pane.active{display:block}.section-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 11px}.section-row.compact{margin:9px 0 12px}.section-row h2,.group-heading{font-size:13px;font-weight:900;letter-spacing:-.15px;margin:0}.section-row p{font-size:11px;color:#8a9aaf;margin:3px 0 0}.count{font-size:10px;background:#eaf5ff;color:#1780cd;padding:3px 7px;border-radius:9px}.mini-action{border:0;background:#e9f5ff;color:#066fc2;font-size:12px;font-weight:850;padding:8px 10px;border-radius:9px}.product-list{display:flex;flex-direction:column;gap:6px}.product-list-item{display:flex;align-items:center;gap:7px;padding:5px 7px;min-height:39px;border:1px solid #e3ebf4;border-radius:9px;background:#fff;cursor:pointer}.product-list-item.active{border-color:#77b9eb;background:#f0f8ff}.product-list-item.dragging{opacity:.5}.product-list-name{font-size:12px;font-weight:720;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grip{cursor:grab;touch-action:none;color:#7897b6;border:0;background:transparent;font-size:18px;font-weight:700;width:20px;padding:0}.order-actions{display:flex;flex-direction:column;gap:1px}.order-actions button{width:21px;height:15px;line-height:12px;border:1px solid #e7edf5;border-radius:4px;background:#f8fbff;color:#527495;padding:0;font-size:11px}.order-actions button:hover{background:#deefff}.ordinal{font-size:10px;color:#acb9ca;width:15px;text-align:center}
.selected-panel{margin:22px 0 0;background:#f7fafd;border:1px solid #e4eaf3;border-radius:13px;padding:14px 12px}.field{display:block;margin:0 0 13px}.field>span,.field>label,.color-compact label{display:block;color:#3b5675;font-size:11px;font-weight:800;margin-bottom:7px}.field input:not([type=color]):not([type=range]),.field select,.field textarea{width:100%;background:#fff;border:1px solid #dce6f0;border-radius:9px;padding:10px 11px;color:#1b3a5d;font-size:12px;outline:none;min-height:39px}.field textarea{line-height:1.55;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#65b5f1;box-shadow:0 0 0 3px #138dea13}.field input[type=range]{width:100%;accent-color:#0c76c9;margin:6px 0}.field output{float:right;font-size:10px;color:#6783a2;font-weight:600}.field small{font-size:10px;line-height:1.5;color:#8597aa;display:block;margin-top:5px}.color-compact{display:flex;align-items:center;gap:9px;margin:7px 0 11px}.color-compact label{margin:0;flex:1}.color-compact input{border:1px solid #dce6ef;width:39px;height:34px;background:white;padding:2px;border-radius:8px;cursor:pointer}.text-action{border:0;background:transparent;color:#0e6bb5;font-size:10px;font-weight:750;padding:0}.text-action:disabled{opacity:.4}.row-buttons{display:flex;gap:7px;margin:14px 0}.small-btn{padding:8px 10px;border:1px solid #dae6f1;background:white;color:#406286;border-radius:8px;font-size:11px;font-weight:780}.small-btn:hover{background:#f2f9ff}.small-btn.danger{color:#d25455;border-color:#f2dedf}.small-btn.full{width:100%;margin:6px 0 13px}.ingredient-editor{display:flex;flex-direction:column;gap:5px}.ingredient-row{display:flex;align-items:center;gap:5px;background:#fff;border:1px solid #e0e9f3;border-radius:8px;padding:4px 5px;min-width:0}.ingredient-row.dragging{opacity:.55}.ingredient-row .number{font-size:10px;font-weight:900;color:#3986c8;background:#eaf5ff;border-radius:5px;min-width:23px;height:24px;display:grid;place-items:center}.ingredient-row input{min-width:0;flex:1;border:0!important;background:none;outline:0!important;box-shadow:none!important;font-size:12px;padding:5px 0;color:#304c6d}.remove-ingredient{border:0;background:transparent;color:#b0becb;font-size:19px;line-height:1;width:19px;padding:0}.remove-ingredient:hover{color:#d84d58}.add-ingredient{margin-top:9px;border:1px dashed #83b9df;background:#eff8ff;border-radius:9px;color:#0873c1;width:100%;min-height:37px;font-size:11px;font-weight:900}.end-actions{display:flex;justify-content:space-between;gap:5px;margin:22px 0}.link-btn{background:transparent;border:0;color:#6383a5;font-size:11px;text-decoration:underline;padding:5px}.mobile-project-actions{display:none;gap:8px;margin:12px 0}.mobile-project-actions button{flex:1}.sidebar-foot{text-align:center;margin-top:35px;font-size:9px;letter-spacing:1px;font-weight:850;color:#abb9ca;line-height:1.5}.sidebar-foot span{color:#0a80d2}
.group-heading{padding:15px 0 12px;margin-top:7px;border-top:1px solid #e7edf4}.group-heading:first-child{border:0;padding-top:2px}.upload-tools{display:flex;gap:8px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.swatches{display:flex;gap:9px;flex-wrap:wrap}.swatch{width:32px;height:32px;border:3px solid white;border-radius:10px;background:var(--c);outline:1px solid #dce8f1}.swatch.active{outline:3px solid #79c7ff}.field input[type=color]{width:55px;height:36px;padding:3px;border:1px solid #dce6f1;border-radius:8px;background:white;cursor:pointer}.helper-box{background:#eff7ff;border:1px solid #d6eafc;border-radius:12px;padding:12px;color:#597c9d;font-size:11px;line-height:1.65;margin:12px 0 15px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:9px;border-top:1px solid #ebf0f6;padding:14px 0;cursor:pointer}.toggle-row b{display:block;font-size:12px}.toggle-row small{display:block;font-size:10px;color:#8798ac;line-height:1.5;margin-top:2px}.toggle-row input{appearance:none;width:38px;height:22px;background:#b7c5d5;border-radius:20px;position:relative;flex-shrink:0;cursor:pointer;outline:none}.toggle-row input:before{content:"";width:16px;height:16px;position:absolute;top:3px;left:3px;border-radius:50%;background:#fff;transition:.18s}.toggle-row input:checked{background:#0a7bd4}.toggle-row input:checked:before{left:19px}.ai-intro{background:linear-gradient(145deg,#092a57,#146cbe);color:white;padding:21px;border-radius:13px;margin-bottom:20px}.ai-intro span{font-size:25px}.ai-intro h2{font-size:18px;margin:10px 0 8px}.ai-intro p{font-size:12px;color:#d6e8fc;line-height:1.55;margin:0}.micro-note{font-size:10px;color:#8190a5;line-height:1.6}
.workspace{min-width:0;overflow:auto;padding:25px 24px;background:radial-gradient(circle at 65% 15%,#d8eafa,transparent 52%),#edf3fa}.workspace-heading{max-width:1600px;margin:0 auto 15px;display:flex;justify-content:space-between;align-items:end;gap:14px}.workspace-heading h2{font-size:23px;letter-spacing:-.9px;margin:5px 0}.workspace-heading p{font-size:12px;color:#8092a7;line-height:1.4;margin:0}.zoom-controls{display:flex;align-items:center;gap:6px;color:#6b819c;font-size:11px;white-space:nowrap}.zoom-controls button{height:29px;min-width:29px;border:1px solid #d9e5f1;border-radius:7px;background:#fff;color:#2e679b;font-size:15px}.zoom-controls button:last-child{font-size:10px;padding:0 8px}.zoom-controls strong{font-size:11px;min-width:40px;text-align:center}.zoom-controls #pageCount{margin-right:9px}.hint-strip{display:flex;gap:19px;flex-wrap:wrap;border:1px solid #e1eaf3;background:#ffffff91;border-radius:10px;padding:11px 15px;margin:0 auto 15px;max-width:1600px;color:#7290ab;font-size:11px}.hint-strip b{color:#446789}.preview-stage{border:1px dashed #c7d9e9;background:repeating-linear-gradient(45deg,#e8eff7,#e8eff7 14px,#e5edf6 14px,#e5edf6 28px);border-radius:15px;min-height:570px;padding:26px 18px;overflow:auto}.sheet-wrapper{position:relative;margin:0 auto 30px;transition:width .16s,height .16s}.sheet{width:1123px;height:794px;position:absolute;left:0;top:0;transform-origin:top left;background:var(--paper,#fff);padding:17px 20px 16px;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;box-shadow:0 17px 52px #0d32602b;border-radius:2px;color:var(--deep,#103969)}.sheet.decor:before{content:"";position:absolute;top:-37px;left:-30px;width:110%;height:74px;border-radius:0 0 55% 20%;background:linear-gradient(100deg,var(--accent),#a4ddff 31%,transparent 81%);opacity:.38;pointer-events:none}.sheet.decor:after{content:"";position:absolute;bottom:-30px;left:-40px;width:110%;height:61px;border-radius:50% 35% 0 0;background:linear-gradient(90deg,var(--accent),#a4ddff 39%,var(--accent) 96%);opacity:.72;z-index:-1;pointer-events:none}.sheet-header{height:107px;flex-shrink:0;display:flex;gap:18px;align-items:center;padding:5px 18px 10px;position:relative}.logo-slot{width:112px;min-width:112px;height:91px;display:flex;align-items:center;justify-content:center;position:relative;border:2px dashed #b2d3ef;border-radius:13px;background:#f5faff9a;color:var(--accent);cursor:pointer;padding:3px}.logo-slot img{display:block;width:auto;height:auto;object-fit:contain;max-width:100%;max-height:100%}.logo-placeholder{text-align:center;line-height:1.2;color:#5b9ccc;font-weight:850;font-size:13px}.logo-placeholder b{display:block;font-size:25px;font-weight:600}.logo-placeholder small{display:block;font-size:10px}.logo-slot.has-logo{border:1px solid transparent;background:transparent}.sheet-header-text{min-width:0;flex:1;text-align:center;align-self:center}.sheet-title-edit{font-size:37px;font-weight:950;letter-spacing:-1.4px;line-height:1.08;color:var(--deep);min-height:43px;display:block;outline:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-subtitle-edit{font-size:15px;color:var(--accent);text-transform:uppercase;font-weight:850;letter-spacing:2.5px;margin-top:2px;min-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-header-text:after{content:"";display:block;height:5px;background:var(--accent);border-radius:5px;margin:3px 2% 0}.sheet-title-edit:focus,.sheet-subtitle-edit:focus,.sheet-footer-edit:focus{outline:2px dashed #4fa2e8;outline-offset:2px;background:#fff}.sheet-header-icon{width:80px;min-width:80px;display:flex;justify-content:center;color:var(--deep)}.sheet-header-icon svg{height:61px;width:70px;stroke:currentColor}.sheet-header-icon:empty{display:none}
.sheet-main{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:var(--grid);grid-template-rows:repeat(var(--rows),minmax(0,1fr));gap:12px;padding:2px 0 15px}.product-card{min-width:0;min-height:0;border:2px solid var(--card-accent);border-radius:15px;background:linear-gradient(140deg,#fff,rgba(238,248,255,.66));overflow:hidden;position:relative;display:flex;flex-direction:column;box-shadow:0 2px 7px #053b7314;user-select:none}.product-card.is-selected{box-shadow:0 0 0 3px #ffcb75,0 3px 13px #1e5e9b23}.product-card.drop-target{outline:4px dashed #f49b3e;outline-offset:-6px}.product-card.dragging{opacity:.55}.product-card-head{height:45px;min-height:45px;position:relative;background:linear-gradient(175deg,var(--card-accent),var(--card-deep));border-radius:11px 11px 0 0;color:#fff;display:flex;align-items:center;justify-content:center;padding:6px 33px 6px 9px;cursor:grab}.card-name-edit{font-weight:950;font-size:var(--headsize,28px);line-height:1.15;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;outline:none;text-align:center;user-select:text;cursor:text}.card-name-edit:focus{outline:2px dashed #ffffff99;border-radius:5px;white-space:normal}.card-drag{position:absolute;right:9px;top:9px;min-width:27px;height:26px;border-radius:7px;border:1px solid #ffffff42;color:#fff;background:#ffffff26;cursor:grab;font-size:17px;touch-action:none}.card-drag:active,.ing-drag:active{cursor:grabbing}.card-ingredients{flex:1;min-height:0;display:flex;flex-direction:column;gap:4px;padding:9px 8px 8px;overflow:hidden}.ingredient-line{display:flex;align-items:center;gap:4px;border:1.6px solid var(--card-accent);border-radius:100px;background:linear-gradient(180deg,#f8fcff,var(--card-pale));color:#16253c;min-height:22px;flex:1;max-height:35px;padding:2px 4px;position:relative;overflow:hidden}.ing-num{font-size:12px;line-height:1;min-width:23px;height:23px;border-radius:30px;background:var(--card-accent);color:white;font-weight:900;display:grid;place-items:center;flex-shrink:0;letter-spacing:-.5px}.ing-num.hidden-num{display:none}.ing-text-edit{font-size:var(--fontsize,18px);font-weight:830;line-height:1.07;text-align:center;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:none;user-select:text;cursor:text}.ing-text-edit:focus{background:white;outline:2px dashed #5ca4e0;outline-offset:0;white-space:normal}.ing-drag{color:var(--card-accent);background:#ffffffba;border:0;border-radius:6px;font-size:15px;height:24px;min-width:17px;padding:0 1px;cursor:grab;touch-action:none;opacity:.05}.product-card:hover .ing-drag,.product-card.is-selected .ing-drag{opacity:.8}.ing-remove{position:absolute;top:50%;right:21px;transform:translateY(-50%);width:16px;height:18px;padding:0;border:0;border-radius:4px;color:#b94e47;background:#ffefef;font-size:15px;line-height:1;opacity:0;cursor:pointer;z-index:2}.product-card.is-selected .ingredient-line:hover .ing-remove{opacity:1}.ingredient-line.drop-target{background:#ffedcc;outline:2px dashed #f0a33f;outline-offset:-2px}.product-card.dense .card-ingredients{gap:3px;padding:7px 7px}.product-card.dense .ing-text-edit{font-size:calc(var(--fontsize,18px) * .85)}.product-card.dense .ingredient-line{min-height:17px;padding:1px 3px}.product-card.dense .ing-num{font-size:10px;min-width:19px;height:19px}.product-card.very-dense .card-ingredients{gap:2px;padding:5px 6px}.product-card.very-dense .ing-text-edit{font-size:calc(var(--fontsize,18px) * .67)}.product-card.very-dense .ingredient-line{min-height:15px;padding:1px 3px}.product-card.very-dense .ing-num{font-size:9px;min-width:16px;height:16px}.product-card.very-dense .ing-drag{font-size:12px}.sheet.style-flat .ingredient-line{border-radius:6px}.sheet.style-minimal .ingredient-line{border-radius:5px;background:#fff;border:0;border-bottom:1px solid var(--card-accent);box-shadow:none}.sheet.style-minimal .product-card{background:#fff}.sheet.font-modern .ing-text-edit{font-weight:610}.sheet.font-modern .card-name-edit{font-weight:750}.sheet.font-rounded .card-name-edit,.sheet.font-rounded .ing-text-edit{font-family:"Trebuchet MS",Arial,sans-serif;letter-spacing:0}.card-add{position:absolute;right:5px;bottom:5px;border:1px solid #b6dfff;border-radius:7px;background:#fff;color:#1277bc;font-size:11px;padding:4px 6px;font-weight:850;opacity:0;z-index:3;box-shadow:0 2px 8px #2a6da33a}.product-card.is-selected:hover .card-add{opacity:1}.empty-slot{border:1.5px dashed #b6cfe6;border-radius:13px;background:#ffffff46;display:grid;place-items:center}.empty-slot button{border:0;background:transparent;color:#96b6d1;font-weight:750;cursor:pointer;font-size:14px}.column-handle{position:absolute;top:4px;bottom:17px;width:15px;transform:translateX(-50%);z-index:5;background:transparent;cursor:col-resize;touch-action:none;border:0;padding:0;display:flex;justify-content:center;align-items:center}.column-handle:before{content:"";height:91%;border-left:2px dashed #0c7dce9c;opacity:.24}.column-handle:after{content:"↔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:26px;height:32px;display:grid;place-items:center;border-radius:8px;background:#fff;color:#056ac4;border:1px solid #a5d9ff;box-shadow:0 2px 9px #1e68ae33;font-size:15px;opacity:.3}.column-handle:hover:before,.column-handle:hover:after,.column-handle.active:before,.column-handle.active:after{opacity:1}.sheet-footer{height:17px;min-height:17px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--deep);opacity:.64;font-size:10px;font-weight:750}.sheet-footer-edit{min-width:0;max-width:93%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}.sheet.demo-printed .demo-watermark{display:flex}.demo-watermark{display:none;position:absolute;left:23%;width:54%;top:37%;height:24%;transform:rotate(-25deg);align-items:center;justify-content:center;border:8px solid #6ba8d766;color:#6ba8d766;background:#ffffff19;font-size:51px;font-weight:950;letter-spacing:3px;pointer-events:none;z-index:60}.workspace-bottom{display:flex;gap:15px;justify-content:space-between;margin:15px auto;max-width:1600px;font-size:11px;color:#8599aa}.workspace-bottom #layoutWarning{color:#b87c27}
.modal-backdrop{position:fixed;inset:0;background:#071b3dc4;backdrop-filter:blur(4px);z-index:30;display:flex;align-items:center;justify-content:center;padding:18px}.payment-modal{background:#fff;border-radius:19px;max-width:440px;width:100%;padding:27px 28px 25px;position:relative;text-align:center;box-shadow:0 22px 70px #03132b88}.modal-close{position:absolute;top:12px;right:14px;border:0;background:#edf4fb;border-radius:50%;height:30px;width:30px;color:#62829e;font-size:22px}.modal-symbol{width:54px;height:54px;display:grid;place-items:center;background:#e8f4ff;color:#0c7acb;border-radius:17px;margin:0 auto 13px;font-size:30px}.modal-symbol.success{background:#e2faed;color:#199458}.payment-modal h2{font-size:24px;letter-spacing:-.7px;margin:8px 0}.payment-modal p{color:#77889f;font-size:12px;line-height:1.57}.price-panel{background:#f1f8ff;border:1px solid #d5eafa;border-radius:13px;display:flex;justify-content:space-between;gap:10px;text-align:left;padding:14px;margin:20px 0 13px}.price-panel small{display:block;font-size:11px;color:#7191af}.price-panel strong{display:block;font-size:35px;letter-spacing:-1.5px;color:#0863b8;margin-top:4px}.price-panel ul{margin:0;padding-left:18px;font-size:11px;color:#587d9f;line-height:1.9}.demo-box{border-top:1px solid #e6ecf4;margin-top:16px;padding-top:12px;display:flex;flex-direction:column;gap:4px;color:#8394a7;font-size:11px}.demo-box b{color:#4a6a8a}.demo-box button{border:0;background:transparent;color:#0b69b0;text-decoration:underline;font-size:11px;margin:6px auto 0}.payment-warning{color:#b65d36!important;font-size:11px!important;margin:9px 0 0}.payment-warning:empty{display:none}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);color:#fff;background:#14345c;z-index:70;padding:12px 18px;max-width:90vw;border-radius:11px;box-shadow:0 7px 22px #001c4b45;font-size:12px;text-align:center}
@media(max-width:1050px){.layout{grid-template-columns:298px minmax(0,1fr)}.sidebar{padding:20px 15px}.workspace{padding:21px 13px}.topbar{padding:0 13px}.save-status{display:none}.hint-strip{gap:9px}}
@media(max-width:700px){.topbar{height:auto;min-height:68px;padding:9px 12px;flex-wrap:wrap}.brand-mark{width:35px;height:35px;font-size:23px}.brand-copy b{font-size:12px}.brand-copy small{font-size:9px}.top-right{margin-left:auto}.top-right .desktop-action,.top-right .icon-button{display:none}.top-right .button{min-height:35px;padding:9px;font-size:11px}.price-tag{padding:4px 5px}.layout{display:flex;flex-direction:column;height:auto;min-height:100vh}.sidebar{overflow:visible;border-right:0;border-bottom:1px solid #e1ebf5;padding:17px 14px}.sidebar-top{display:none}.sidebar .tab-bar{margin-bottom:13px}.product-list{display:grid;grid-template-columns:1fr 1fr}.mobile-project-actions{display:flex}.product-list-item{min-width:0}.workspace{padding:19px 9px}.workspace-heading{flex-direction:column;align-items:flex-start}.workspace-heading h2{font-size:20px}.zoom-controls{align-self:flex-end}.hint-strip{font-size:10px}.hint-strip span:nth-child(4){display:none}.preview-stage{min-height:430px;padding:17px 12px}.workspace-bottom{flex-direction:column;font-size:10px}}

/* V4: folha física em mm, em edição e impressão */
.sheet{width:297mm;height:210mm;padding:var(--safe-mm,10mm);border-radius:0;box-shadow:0 18px 54px #092c5330}
.sheet-header{height:28mm;min-height:28mm;padding:0 2mm 2.5mm;gap:3mm}
.logo-slot{width:27mm;min-width:27mm;height:22mm;border-radius:2.5mm}
.sheet-header-icon{width:20mm;min-width:20mm}
.sheet-header-icon svg{height:16mm;width:19mm}
.sheet-title-edit{font-size:35px;min-height:11mm;line-height:1.05}
.sheet-subtitle-edit{min-height:6mm;font-size:13px}
.sheet-main{gap:3mm;padding:0.8mm 0 2mm}
.product-card{border-radius:3mm}
.product-card-head{height:11mm;min-height:11mm;border-radius:2.5mm 2.5mm 0 0}
.card-ingredients{padding:1.8mm 1.6mm 1.6mm;gap:1mm}
.ingredient-line{min-height:5.6mm;max-height:9.2mm;padding:0.5mm 1mm}
.sheet-footer{height:5mm;min-height:5mm}
.measurement-ruler,.sheet-safeguide{display:none;pointer-events:none;position:absolute;z-index:15}
.sheet.show-guides .measurement-ruler{display:block;opacity:.8}
.measurement-ruler.ruler-x{left:0;top:0;width:100%;height:2mm;background:repeating-linear-gradient(90deg,#188bca9c 0,#188bca9c .21mm,transparent .21mm,transparent 10mm)}
.measurement-ruler.ruler-y{top:0;left:0;height:100%;width:2mm;background:repeating-linear-gradient(180deg,#188bca9c 0,#188bca9c .21mm,transparent .21mm,transparent 10mm)}
.sheet.show-guides .sheet-safeguide{display:block;inset:var(--safe-mm,10mm);outline:1.25px dashed #0d94d77a;outline-offset:0}
.sheet-safeguide span{position:absolute;left:1.5mm;top:-5.4mm;color:#4689af;font-size:8px;font-weight:800;letter-spacing:.2px;background:#ffffffc7;padding:0 1mm;white-space:nowrap}
.paper-information{display:flex;gap:12px;align-items:center;border:1px solid #d9e8f7;border-radius:11px;padding:10px 12px;margin:0 0 14px;background:linear-gradient(90deg,#f0f9ff,#fff)}
.paper-information-icon{width:34px;height:40px;background:#0b72c6;border-radius:4px;color:#fff;font-size:15px;font-weight:900;display:grid;place-items:center;box-shadow:inset -5px 0 #0755a2}
.paper-information strong{display:block;font-size:14px;color:#183e62}
.paper-information span{display:block;font-size:10px;color:#7995ae;line-height:1.4;margin-top:3px}
.paper-details{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:10px 11px;margin:-4px 0 10px;background:#f1f8ff;border-radius:8px;color:#557f9e}
.paper-details strong{font-size:12px;color:#0d619d}
.dimension-banner{max-width:1600px;margin:0 auto 10px;padding:10px 14px;display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#eaf6ff;border:1px solid #d1e9fc;border-radius:10px;color:#407598;font-size:11px}
.dimension-banner b{color:#0d609d}
.product-card.has-overflow{outline:2px solid #eab15b;outline-offset:-2px}
@media(max-width:700px){.dimension-banner{gap:4px;font-size:9px}.dimension-banner span:last-child{display:none}}

@page{size:297mm 210mm;margin:0}
@media print{html,body{background:white!important;margin:0!important;width:297mm!important;height:auto!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.topbar,.sidebar,.workspace-heading,.hint-strip,.workspace-bottom,.modal-backdrop,.toast{display:none!important}.layout,.workspace,.preview-stage,#sheets{display:block!important;overflow:visible!important;background:white!important;min-height:0!important;width:297mm!important;height:auto!important;padding:0!important;margin:0!important;border:0!important}.sheet-wrapper{width:297mm!important;height:210mm!important;margin:0!important;break-after:page;page-break-after:always}.sheet-wrapper:last-child{break-after:auto;page-break-after:auto}.sheet{position:relative!important;top:0!important;left:0!important;width:297mm!important;height:210mm!important;transform:none!important;border-radius:0!important;box-shadow:none!important}.column-handle,.card-drag,.ing-drag,.ing-remove,.card-add,.empty-slot,.logo-placeholder{display:none!important}.product-card.is-selected{box-shadow:0 2px 7px #053b7314!important}.logo-slot:not(.has-logo){border-color:transparent!important;background:transparent!important}.logo-slot{cursor:default!important}.card-name-edit:focus,.ing-text-edit:focus,.sheet-title-edit:focus,.sheet-subtitle-edit:focus,.sheet-footer-edit:focus{outline:0!important}.sheet.demo-printed .demo-watermark{display:flex!important}body:not(.allow-print) .sheet{visibility:hidden!important}body:not(.allow-print) #sheets:before{content:"Impressão não liberada. Clique no botão Imprimir e siga o processo de pagamento.";position:fixed;left:15mm;top:35mm;color:#14345b;z-index:200;display:block;font-size:19px}}

@media print{.measurement-ruler,.sheet-safeguide,.dimension-banner{display:none!important}.sheet{padding:var(--safe-mm,10mm)!important;box-shadow:none!important} .product-card.has-overflow{outline:0!important}}

/* V5: controles diretos dos blocos — visíveis também em dispositivos com toque. */
.product-card-head{padding-right:78px}
.card-controls{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:2px;z-index:4}
.card-controls button{position:static;flex:0 0 auto;display:grid;place-items:center;width:22px;min-width:22px;height:24px;border-radius:6px;border:1px solid #ffffff76;color:#fff;background:#ffffff2b;padding:0;font-size:19px;font-weight:800;line-height:1;transition:background .15s ease,transform .15s ease}
.card-controls .card-quick-add{background:#e1f7e9;color:#096d40;border-color:#b6e7c7;font-size:19px}
.card-controls .card-quick-delete{background:#ffe9e9;color:#b22332;border-color:#f2c0c0;font-size:21px}
.card-controls .card-drag{font-size:16px;cursor:grab;touch-action:none}
.card-controls .card-quick-add:hover{background:#bdedce}
.card-controls .card-quick-delete:hover{background:#ffd1d1}
.card-controls button:active{transform:scale(.92)}
@media(max-width:700px){.card-controls button{height:27px;width:24px}.product-card-head{padding-right:78px}}
@media print{.card-controls,.card-quick-action{display:none!important}.product-card-head{padding-right:9px!important}}


/* V6 · botões leves no cabeçalho dos blocos; arrasto livre em duas dimensões. */
.sheet-header-spacer{width:27mm;min-width:27mm;flex-shrink:0;height:1mm}
.product-card-head{padding-right:72px}
.card-controls{right:6px;gap:1px}
.card-controls button,.card-controls .card-quick-add,.card-controls .card-quick-delete,.card-controls .card-drag{
  width:20px;min-width:20px;height:25px;min-height:25px;display:grid;place-items:center;
  padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#fff;
  box-shadow:none;font-size:24px;font-weight:550;line-height:1;opacity:.93;
}
.card-controls .card-quick-add,.card-controls .card-quick-delete{background:transparent;color:#fff;border:0}
.card-controls .card-quick-add:hover,.card-controls .card-quick-delete:hover,.card-controls .card-drag:hover{background:transparent;color:#bcecff;opacity:1}
.card-controls .card-quick-delete:hover{color:#ffd6d6}
.card-controls .card-drag{font-size:16px;cursor:grab;touch-action:none}
.card-controls .card-drag:active{cursor:grabbing}
.product-card.drop-target{outline:3px dashed #f3a94a;outline-offset:-4px}
.product-card.drop-before{box-shadow:inset 5px 0 #f9c46a,0 2px 7px #053b7314}
.product-card.drop-after{box-shadow:inset -5px 0 #f9c46a,0 2px 7px #053b7314}
.bottom-print-area{max-width:1600px;margin:18px auto 7px;padding:17px 16px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
.bottom-print-btn{min-width:235px;min-height:47px;font-size:14px;box-shadow:0 6px 21px #086bc835}
.bottom-print-area span{font-size:11px;color:#7891a9;text-align:center}
@media(max-width:700px){.product-card-head{padding-right:72px}.card-controls button,.card-controls .card-quick-add,.card-controls .card-quick-delete,.card-controls .card-drag{width:20px;min-width:20px;height:25px}.bottom-print-area{margin:12px auto 7px}.bottom-print-btn{width:min(100%,280px)}}
@media print{.bottom-print-area{display:none!important}.sheet-header-spacer{width:27mm!important;min-width:27mm!important}}

/* V7 — Linha horizontal que ajusta a altura das duas fileiras. */
.sheet-main{grid-template-rows:var(--row-tracks,repeat(var(--rows),minmax(0,1fr)))}
.row-handle{position:absolute;left:0;right:0;width:100%;height:18px;transform:translateY(-50%);border:0;background:transparent;z-index:8;padding:0;margin:0;cursor:row-resize;touch-action:none;display:flex;align-items:center;justify-content:center}
.row-handle::before{content:"";position:absolute;top:50%;left:0;right:0;border-top:2px dashed #238ed2a3;transform:translateY(-50%);opacity:.62;pointer-events:none}
.row-handle span{position:relative;display:grid;place-items:center;width:32px;height:25px;border:1px solid #84c4f1;background:#ffffff;color:#056cb8;border-radius:11px;box-shadow:0 2px 10px #1668a23b;font-size:19px;font-weight:800;line-height:1;opacity:.92;pointer-events:none}
.row-handle:hover::before,.row-handle.active::before{opacity:1;border-color:#0876c7}
.row-handle:hover span,.row-handle.active span{background:#e9f5ff;color:#07578c;opacity:1}
.product-card-head .card-quick-delete,.product-card-head .card-quick-add{cursor:pointer;position:relative;z-index:6}
@media print{.row-handle{display:none!important}}

/* V8 — o botão de adicionar produto pertence APENAS às casas vazias da folha.
   Os cartões já preenchidos mostram somente excluir e arrastar. */
.product-card-head{padding-right:51px}
.card-controls{right:6px;gap:3px}
.card-controls .card-quick-delete,.card-controls .card-drag{width:20px;min-width:20px}
.empty-slot{overflow:hidden;min-height:0}
.empty-slot .empty-slot-add{
 width:100%;height:100%;min-height:100%;display:flex;flex-direction:column;
 align-items:center;justify-content:center;gap:5px;
 border:0;background:transparent;color:#779ec4;cursor:pointer;
 font-size:14px;font-weight:850;transition:background-color .16s,color .16s;
}
.empty-slot .empty-slot-add:hover,.empty-slot .empty-slot-add:focus-visible{
 background:#e6f5ffba;color:#0b72c6;
}
.empty-plus{font-size:32px;font-weight:500;line-height:1;display:block}
@media(max-width:700px){.product-card-head{padding-right:52px}}
@media print{.empty-slot,.empty-slot-add{display:none!important}}

/* MOI produção: cobrança em servidor */
.secondary-pay-btn{margin-top:10px;background:#f6f9fd;border:1px solid #d9e8f4;color:#27628e}.payment-help{font-size:11px!important;margin-top:12px!important}.payment-warning{white-space:pre-line}.bottom-print-btn{min-width:190px}
@media print{.row-handle,.bottom-print-area,.dimension-banner{display:none!important}}

/* V4 — modalidades de impressão no popup, edição gratuita preservada */
.purchase-plans{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:17px 0 12px;text-align:left}
.purchase-option{border:1px solid #d8e4f0;border-radius:12px;padding:13px;background:#fff;display:flex;flex-direction:column;gap:9px;min-width:0}
.purchase-option-unlimited{background:#f2f8ff;border-color:#b9d9f7}
.purchase-label strong{display:block;font-size:14px;color:#143c64}
.purchase-label span{display:block;font-size:10px;color:#7891ac;margin-top:3px;line-height:1.35}
.purchase-price{font-weight:900;color:#0d6ac0;font-size:23px;line-height:1.1}
.purchase-price-note{font-size:11px;font-weight:750;line-height:1.3;color:#42709b}
.purchase-option p{margin:0 0 auto;font-size:11px;line-height:1.5;min-height:34px}
.purchase-option button{white-space:normal;min-height:42px}
.unlimited-availability{font-size:10px;color:#6689a9;line-height:1.35;min-height:12px}
.payment-modal:has(.purchase-plans){max-width:600px}
@media(max-width:530px){.purchase-plans{grid-template-columns:1fr}.purchase-option p{min-height:0}.payment-modal:has(.purchase-plans){max-height:calc(100vh - 28px);overflow-y:auto}.purchase-option{gap:6px}}

/* V5: conta opcional para a oferta ilimitada. Não aparece no PDF. */
.account-modal{max-width:500px;max-height:90vh;overflow:auto;text-align:left}
.account-modal .eyebrow,.account-modal>h2,.account-modal>.account-lead{text-align:left}
.account-tabs{display:flex;background:#f0f6fc;border-radius:12px;padding:4px;gap:4px;margin:20px 0}
.account-tabs button{flex:1;min-width:0;background:transparent;border:0;border-radius:9px;padding:10px 5px;color:#547493;font-size:11px;font-weight:800}
.account-tabs button.active{color:#0a5ba9;background:white;box-shadow:0 2px 8px #18486925}
.account-form .field{margin-bottom:12px}
.account-form input{width:100%;border-radius:9px;border:1px solid #dce6f0;background:white;padding:11px;font-size:13px;min-height:42px}
.account-message{font-size:12px;color:#b75d32;line-height:1.5;margin:11px 0;min-height:0}
.account-message.ok{color:#147853}
.account-link{border:0;background:transparent;color:#0b76c4;text-decoration:underline;padding:8px 0;font-size:12px}
.account-profile-email{font-weight:800;color:#0e315e;background:#f2f7fc;border-radius:9px;padding:12px;margin:10px 0}
.account-license{font-size:12px;color:#4e7192;padding:10px 12px;background:#edf7ff;border:1px solid #d4ebff;border-radius:9px;margin-bottom:15px}
.account-modal h3{font-size:14px;margin:16px 0 10px}
.my-fichas{display:flex;flex-direction:column;gap:7px;max-height:220px;overflow:auto;margin-bottom:14px}
.my-ficha-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:9px 10px;background:#f7fafd;border:1px solid #e1ebf4;border-radius:9px;font-size:12px}
.my-ficha-row strong{display:block;color:#183f67;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.my-ficha-row small{display:block;color:#8499aa;font-size:10px;margin-top:3px}
.my-ficha-row button{border:0;border-radius:8px;background:#e2f2ff;color:#0c67ad;font-size:11px;padding:7px 9px;font-weight:850}
@media(max-width:700px){.account-top-btn{font-size:10px!important;padding:8px!important}.account-modal{padding:20px 17px}}
@media print{#accountModal,.account-top-btn{display:none!important}}

/* V7 oferta anual: leitura discreta do prazo */
.purchase-period{font-size:.47em;font-weight:700;color:#617e9d;white-space:nowrap;}

/* Lançamento antecipado do editor, sem cobrança ativa. */
.launch-notice{display:none;max-width:1600px;margin:0 auto 16px;padding:12px 15px;border:1px solid #cce5f6;border-radius:10px;background:#eaf6ff;color:#215e87;font-weight:700;font-size:12px;}
body.editor-only .launch-notice{display:block;}
body.editor-only #payBtn,body.editor-only #buyUnlimitedBtn{opacity:.6;cursor:not-allowed;}
@media print{.launch-notice{display:none!important}}
