:root{font-family:Arial,sans-serif;color:#1f2937;background:#eef1f5}*{box-sizing:border-box}body{margin:0;padding:24px}.dexcy-designer{max-width:1200px;margin:auto}.designer-header{margin:0 0 18px}.designer-header h1{margin:0 0 5px}.designer-header p{margin:0;color:#667085}.layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px}.panel,.workspace-column{background:#fff;border:1px solid #d6dbe3;border-radius:12px;padding:18px;box-shadow:0 2px 10px #0000000a;min-width:0}.controls{display:flex;flex-direction:column;gap:14px}label,.label-line>span{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px}textarea,input,select,button{font:inherit}textarea,input[type=number],select{width:100%;min-width:0;border:1px solid #cbd1da;border-radius:7px;padding:9px;background:#fff}.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.fine{font-size:12px;color:#667085;margin:0}.center{text-align:center}.link{border:0;background:none;text-decoration:underline;text-align:left;padding:0;cursor:pointer}.secondary,.primary,dialog button,.help-button{border:0;border-radius:8px;padding:10px 13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.secondary{background:#e9eef5;color:#1f2937}.primary{background:#1769e0;color:#fff;font-weight:700}.primary.inactive{background:#9ca9ba;cursor:not-allowed}.label-line{display:flex;align-items:center;gap:7px;margin-bottom:6px}.info-button{width:20px;height:20px;padding:0;border-radius:50%;border:1px solid #98a2b3;background:#fff;color:#475467;font-weight:700;cursor:pointer}.material-field{min-width:0}.material-subtitle{font-size:12px;color:#475467;margin-top:5px;line-height:1.35}.check{display:flex;flex-direction:row;align-items:flex-start;font-weight:400}.manual-check{margin-bottom:12px}.slider-control{margin:12px 0}.slider-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.slider-heading label{display:block}.slider-heading output{font-weight:700;font-size:13px;color:#344054}.slider-control input[type=range]{width:100%;padding:0}.helpbox{border-top:1px solid #e5e7eb;padding-top:13px}.helpbox p{margin:5px 0 10px}.help-button{background:#25364f;color:#fff;font-weight:700}.toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}.toolbar label{min-width:190px}.stage{height:560px;border:1px solid #cfd5de;border-radius:10px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.stage canvas{width:100%;height:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none}.bg-white{background:#fff}.bg-black{background:#111}.bg-checker,.checker-review{background-color:#60656c;background-image:linear-gradient(45deg,#747980 25%,transparent 25%),linear-gradient(-45deg,#747980 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#747980 75%),linear-gradient(-45deg,transparent 75%,#747980 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0}.warning{margin-top:12px;background:#fff5d6;border:1px solid #f1cc65;padding:10px;border-radius:8px}.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.summary>div{background:#f6f8fb;border-radius:8px;padding:10px}.summary span{display:block;font-size:12px;color:#667085}.summary strong{display:block;margin-top:4px}.summary .price{background:#182235;color:#fff}.summary .price span{color:#bbc5d6}.summary .price strong{font-size:22px}.complexity-badge{display:inline-flex!important;width:max-content;padding:5px 9px;border-radius:999px;color:#fff}.complexity-level1{background:#25834a}.complexity-level2{background:#2474b5}.complexity-level3{background:#d77a13}.complexity-level4{background:#c43b3b}.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.design-id{font-size:12px;color:#667085}.cart-status{margin-top:10px;font-size:13px}.cart-status.error{color:#b42318}.cart-status.success{color:#067647}dialog{border:0;border-radius:12px;max-width:680px;width:92%;max-height:92vh;overflow:auto;box-shadow:0 25px 70px #0005;padding:18px}dialog::backdrop{background:#0008}.review-dialog{max-width:760px}.review-preview{border-radius:8px;overflow:hidden}.review-preview canvas{width:100%;height:360px;display:block}.review-details{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.review-details div{background:#f5f7fa;padding:8px;border-radius:6px;overflow-wrap:anywhere}.single-color-note{padding:10px;background:#f4f7fb;border-radius:7px}.approval-panel{border:2px solid #e35959;background:#fff0f0;border-radius:10px;padding:14px;transition:.2s}.approval-panel.approved{border-color:#2f9b58;background:#eefbf2}.approval-title{font-weight:800;color:#b42318;margin-bottom:9px}.approval-panel.approved .approval-title{color:#067647}.approval-check{display:flex;flex-direction:row;gap:10px;align-items:flex-start;font-weight:600;line-height:1.35;margin:8px 0}.approval-check input{width:22px;height:22px;flex:0 0 auto;accent-color:#1769e0}.approval-warning{color:#b42318;font-weight:700;margin-top:10px}.approval-panel.flash{animation:flashRed .35s ease 2}@keyframes flashRed{50%{background:#ffd6d6;border-color:#b42318}}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.reset-button{margin-top:10px;width:100%}@media(max-width:900px){body{padding:12px}.layout{grid-template-columns:1fr}.stage{height:420px}.summary{grid-template-columns:1fr 1fr}.toolbar{justify-content:stretch}.toolbar label{width:100%}}@media(max-width:520px){.two,.review-details{grid-template-columns:1fr}.summary{grid-template-columns:1fr}.actions{align-items:stretch;flex-direction:column}.actions .primary{width:100%}}

@media(max-width:520px){.review-preview canvas{height:260px}.review-dialog{width:96%;padding:12px}.review-details div{padding:7px}.single-color-note{margin:8px 0}.approval-panel{padding:11px}}

.dexcy-designer .checker-light{background-color:#e7e9ec;background-image:linear-gradient(45deg,#f7f8fa 25%,transparent 25%),linear-gradient(-45deg,#f7f8fa 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f7f8fa 75%),linear-gradient(-45deg,transparent 75%,#f7f8fa 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0}

/* Review preview backgrounds: light vinyl uses a darker checkerboard; dark vinyl uses a light checkerboard. */
.dexcy-designer .checker-dark{
  background-color:#555b63;
  background-image:
    linear-gradient(45deg,#6b7179 25%,transparent 25%),
    linear-gradient(-45deg,#6b7179 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#6b7179 75%),
    linear-gradient(-45deg,transparent 75%,#6b7179 75%);
  background-size:28px 28px;
  background-position:0 0,0 14px,14px -14px,-14px 0;
}

/* V15 UI polish */
.size-editor{border:1px solid #d8dee8;border-radius:10px;padding:13px;background:#f8fafc;display:flex;flex-direction:column;gap:10px}.size-editor-title{display:flex;align-items:center;gap:7px}.size-editor-title h2{font-size:15px;margin:0}.dimension-stepper{display:flex;align-items:center;justify-content:space-between;gap:10px}.dimension-name{font-weight:700;font-size:13px}.stepper-controls{display:grid;grid-template-columns:36px minmax(74px,100px) auto 36px;align-items:center;gap:5px}.step-button,.compact-stepper button{border:1px solid #b9c2d0;background:#fff;border-radius:7px;font-size:20px;line-height:1;width:36px;height:36px;cursor:pointer}.dimension-input{text-align:center;font-weight:700;padding:7px!important}.dimension-unit{font-size:12px;color:#667085}.proportion-toggle{align-self:center;border:1px solid #b9c2d0;background:#fff;border-radius:999px;padding:7px 12px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:13px}.proportion-toggle.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.line-height-status{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;border-top:1px solid #e1e6ee;padding-top:10px}.status-label{display:block;font-size:12px;color:#667085}.line-height-status strong{font-size:18px}.production-status{grid-column:1/-1;font-weight:700;font-size:13px;padding:7px 9px;border-radius:7px}.production-status.ready{background:#eaf8ef;color:#17713c}.production-status.blocked{background:#fff0f0;color:#b42318}.compact-adjustment{border:1px solid #e1e6ee;border-radius:8px;padding:10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.compact-adjustment>span{font-weight:700;font-size:13px}.compact-stepper{display:flex;align-items:center;gap:7px}.compact-stepper output{min-width:54px;text-align:center;font-weight:700}.editor-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:8px}.toolbar-group{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.tool-button{border:1px solid #c9d1dc;background:#fff;color:#344054;border-radius:7px;padding:7px 9px;cursor:pointer;font-size:13px}.tool-button:hover{background:#f1f5f9}.tool-button:disabled{opacity:.4;cursor:not-allowed}.tool-button.active{background:#eaf2ff;border-color:#2563eb;color:#1d4ed8}.tool-button.icon-only{min-width:34px;font-size:17px}.zoom-value{min-width:52px;text-align:center;font-weight:700;font-size:13px}.background-control{min-width:180px}.help-dialog h3{margin-bottom:4px}.help-dialog p{margin-top:0}.stage.grid-enabled canvas{background:transparent}.summary{grid-template-columns:repeat(4,minmax(0,1fr))}.stage{min-height:420px}.resize-cue{font-size:11px;color:#667085}
@media(max-width:900px){.editor-toolbar{align-items:stretch}.background-control{width:100%;min-width:0}.toolbar-group{justify-content:center}.stage{height:480px}.stepper-controls{grid-template-columns:42px minmax(78px,1fr) auto 42px}.step-button,.compact-stepper button{width:42px;height:42px}.summary{grid-template-columns:1fr 1fr}}
@media(max-width:520px){body{padding:8px}.panel,.workspace-column{padding:12px}.stage{height:410px}.editor-toolbar{position:relative}.toolbar-group{width:100%}.tool-button{flex:1}.tool-button.icon-only{flex:0 0 38px}.dimension-stepper{align-items:flex-start;flex-direction:column}.stepper-controls{width:100%}.summary{grid-template-columns:1fr}.designer-header h1{font-size:21px}}

/* V16 compact information layout and editor toolbar */
.inline-option-row,.adjustment-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.inline-option-row .mirror-check{flex:1;margin:0}.editor-toolbar{justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.toolbar-group{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.alignment-tools{display:inline-flex;align-items:center;border:1px solid #cbd1da;border-radius:7px;overflow:hidden}.alignment-tools .tool-button{border-radius:0;border-right:1px solid #cbd1da;min-width:34px}.alignment-tools .tool-button:last-child{border-right:0}.tool-button.active{background:#dbeafe;color:#174ea6}.background-control{margin-left:auto;min-width:180px}.summary{grid-template-columns:1.25fr .7fr .85fr 1fr;gap:7px}.summary>div{padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}.summary span{font-size:11px;line-height:1.15}.summary strong{margin-top:0;font-size:14px;text-align:right}.summary .price strong{font-size:19px}.complexity-badge{padding:3px 7px;font-size:12px}.warning{padding:7px 10px;font-size:12px;margin-top:8px}.warning-block{display:flex;align-items:center;gap:5px}.review-value{margin-top:4px}.review-value.multiline{white-space:pre-line;line-height:1.35}.review-preview canvas{height:420px}.review-details{grid-template-columns:repeat(2,minmax(0,1fr))}.review-details>div{font-size:13px}.stage{min-height:360px}.fine.center{font-size:11px;line-height:1.35}.production-status.blocked{color:#b42318}.production-status.ready{color:#067647}

@media(max-width:900px){.editor-toolbar{align-items:stretch}.toolbar-group{width:100%;justify-content:center}.background-control{width:100%;margin-left:0}.summary{grid-template-columns:repeat(4,minmax(0,1fr))}.stage{height:460px}}
@media(max-width:700px){.summary{grid-template-columns:1fr 1fr}.summary>div{min-height:44px}.review-preview canvas{height:320px}}
@media(max-width:520px){.editor-toolbar{gap:6px}.toolbar-group{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.toolbar-group .tool-button,.zoom-value{flex:0 0 auto}.summary{grid-template-columns:1fr 1fr}.summary>div{padding:7px 8px}.summary span{font-size:10px}.summary strong{font-size:12px}.summary .price strong{font-size:17px}.stage{height:430px;min-height:430px}.review-preview canvas{height:300px}}

/* Version 1.0 spacing controls, alignment icons, and mobile canvas fit */
.compact-adjustment > span,
.compact-adjustment .adjustment-label-row > span {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.compact-adjustment .adjustment-label-row { margin: 0; flex: 1 1 auto; }
@media (min-width: 901px) {
  .compact-adjustment { padding: 8px 9px; min-height: 42px; }
  .compact-stepper { gap: 5px; }
  .compact-stepper button { width: 30px; height: 30px; font-size: 17px; border-radius: 6px; }
  .compact-stepper output { min-width: 46px; font-size: 12px; }
}
.alignment-tools { flex: 0 0 auto; white-space: nowrap; }
.alignment-tools .alignment-button { width:34px;min-width:34px;height:34px;padding:7px;display:inline-flex;align-items:center;justify-content:center; }
.align-icon { width:18px;height:15px;display:flex;flex-direction:column;justify-content:space-between; }
.align-icon i { display:block;height:2px;background:currentColor;border-radius:2px; }
.align-icon i:nth-child(1){width:100%}.align-icon i:nth-child(2){width:68%}.align-icon i:nth-child(3){width:86%}
.align-icon-left{align-items:flex-start}.align-icon-center{align-items:center}.align-icon-right{align-items:flex-end}
@media (max-width:520px){
  .compact-adjustment > span,.compact-adjustment .adjustment-label-row > span{font-size:13px;font-weight:700}
  .compact-stepper button{width:42px;height:42px;font-size:20px}.compact-stepper output{min-width:54px;font-size:14px}
  .view-tools{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;width:100%;-webkit-overflow-scrolling:touch}
  .alignment-tools{display:inline-flex;flex:0 0 104px;min-width:104px}
  .alignment-tools .alignment-button{flex:0 0 34px;width:34px;min-width:34px}
}

.review-text-value{white-space:pre-line;word-break:break-word;}


/* Version 1.2.5 visual refinements */
.dexcy-designer #fontSelect,
.dexcy-designer #materialSelect { font: inherit; font-size: 14px; font-weight: 400; }
.dexcy-designer .summary > div { align-items:center; }
.dexcy-designer .summary span,
.dexcy-designer .summary strong,
.dexcy-designer .summary .price strong { font-size:14px; line-height:1.25; font-weight:700; }
.dexcy-designer .summary .complexity-badge { font-size:14px; }
@media(max-width:700px){
  .dexcy-designer{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:8px;padding-right:8px;}
  .dexcy-designer .layout{width:100%;}
  .dexcy-designer .panel,.dexcy-designer .workspace-column{width:100%;max-width:none;}
}

/* 1.2.5 refinements */
#fontSelect option{padding:6px 8px;font-size:16px}
.summary>div:not(.price){display:flex;align-items:center;gap:5px;white-space:nowrap;min-width:0}
.summary>div:not(.price) span,.summary>div:not(.price) strong{display:inline;margin:0;font-size:14px;line-height:1.25;color:#344054;font-weight:600}
.summary>div:not(.price) strong{overflow:hidden;text-overflow:ellipsis}
.summary .price span{font-size:13px}
.summary .price strong{font-size:22px}
@media(max-width:900px){.summary>div:not(.price){white-space:normal;flex-wrap:wrap}}


/* Version 1.2.7 font picker and summary refinements */
.dexcy-designer .font-field{display:block}
.dexcy-designer .font-field>span{display:block;margin-bottom:6px;font-weight:600}
.dexcy-designer .font-picker{position:relative}
.dexcy-designer .native-font-select{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.dexcy-designer .font-picker-button{width:100%;min-height:42px;border:1px solid #c7ced9;background:#fff;border-radius:7px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer}
.dexcy-designer .font-picker-button:focus{outline:2px solid #93b4ff;outline-offset:1px}
.dexcy-designer #fontPickerLabel{font-size:17px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dexcy-designer .font-picker-arrow{font-family:Arial,sans-serif;font-size:14px;color:#667085}
.dexcy-designer .font-picker-menu{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;right:0;max-height:330px;overflow:auto;background:#fff;border:1px solid #c7ced9;border-radius:8px;box-shadow:0 12px 30px #10182826;padding:5px}
.dexcy-designer .font-picker-option{width:100%;border:0;background:#fff;border-radius:6px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer}
.dexcy-designer .font-picker-option:hover,.dexcy-designer .font-picker-option.active{background:#eef4ff}
.dexcy-designer .font-picker-name{font-size:18px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dexcy-designer .font-picker-category{font-family:Arial,sans-serif;font-size:11px;color:#667085;white-space:nowrap}

.dexcy-designer .summary{grid-template-columns:1.05fr .52fr 1.48fr 1fr;gap:7px}
.dexcy-designer .summary>div{min-width:0;padding:7px 8px}
.dexcy-designer .summary>div:not(.price){white-space:nowrap;overflow:hidden}
.dexcy-designer .summary>div:not(.price) span,
.dexcy-designer .summary>div:not(.price) strong{font-size:12px;line-height:1.2;font-weight:600;color:#344054}
.dexcy-designer .summary .complexity-badge{font-size:12px;line-height:1.15;white-space:nowrap;padding:3px 6px;max-width:none;overflow:visible;text-overflow:clip}
.dexcy-designer .summary .price span{font-size:12px;font-weight:600}
.dexcy-designer .summary .price strong{font-size:25px;line-height:1.05;font-weight:800}
@media(max-width:900px){
  .dexcy-designer .summary{grid-template-columns:1fr 1fr}
  .dexcy-designer .summary>div:not(.price){white-space:normal}
}
@media(max-width:520px){
  .dexcy-designer #fontPickerLabel{font-size:16px}
  .dexcy-designer .font-picker-name{font-size:17px}
  .dexcy-designer .summary>div:not(.price) span,.dexcy-designer .summary>div:not(.price) strong{font-size:11px}
  .dexcy-designer .summary .complexity-badge{font-size:11px}
  .dexcy-designer .summary .price strong{font-size:21px}
}

/* Version 1.2.8 summary rebalance */
.dexcy-designer .summary{grid-template-columns:1.15fr .65fr 1.20fr 1fr}
.dexcy-designer .summary>div:not(.price) span,
.dexcy-designer .summary>div:not(.price) strong{font-size:13px}
.dexcy-designer .summary .complexity-badge{font-size:13px}
.dexcy-designer .summary .price strong{font-size:25px}
@media(max-width:520px){
  .dexcy-designer .summary>div:not(.price) span,
  .dexcy-designer .summary>div:not(.price) strong,
  .dexcy-designer .summary .complexity-badge{font-size:11.5px}
  .dexcy-designer .summary .price strong{font-size:21px}
}


/* Version 1.2.9 resize and complexity readability fixes */
.dexcy-designer .summary .complexity-badge,
.dexcy-designer .summary .complexity-badge strong,
.dexcy-designer .summary strong.complexity-badge{
  color:#fff !important;
}
