@font-face{font-family:HPLato;src:url('./fonts/Lato-Regular.ttf')}@font-face{font-family:HPLato;src:url('./fonts/Lato-Bold.ttf');font-weight:700}@font-face{font-family:HPLato;src:url('./fonts/Lato-Italic.ttf');font-style:italic}@font-face{font-family:HPAmiri;src:url('./fonts/Amiri-Regular.ttf')}@font-face{font-family:HPAmiri;src:url('./fonts/Amiri-Bold.ttf');font-weight:700}
.hps{--hps-release:0.5.0;--ink:#382c27;--wine:#613b31;--line:#e2dcd3;--paper:#fffcf7;--muted:#726b62;font:14px/1.5 HPLato,Arial,sans-serif;color:var(--ink);background:var(--paper);min-height:100vh;text-align:left}.hps *{box-sizing:border-box}.hps [hidden]{display:none!important}.hps button,.hps input,.hps select,.hps textarea{font:inherit}.hps button{cursor:pointer;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:9px 13px;line-height:1.35;transition:background .15s}.hps button:hover{background:#f0e7dc}.hps button:disabled{cursor:not-allowed;opacity:.45}.hps :focus-visible{outline:3px solid #b38e61;outline-offset:3px}.hps a{color:inherit}.hps h1,.hps h2,.hps p{margin:0}.hps .hps-title{font:42px/1.08 HPAmiri,Georgia,serif;letter-spacing:-.8px;margin:8px 0 14px}.hps h2{font-size:16px;font-weight:700}.hps p{margin:9px 0;color:var(--muted)}.hps-header{height:87px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:16px 30px;gap:18px}.hps-header>div{display:flex;align-items:center;gap:22px}.hps-brand{font:30px/1 HPAmiri,Georgia,serif;text-decoration:none;letter-spacing:.5px}.hps-brand span{display:block;font:9px/1.6 HPLato,sans-serif;letter-spacing:2px}.hps-material{color:var(--muted);font-size:12px}.hps-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100vh - 87px)}.hps-panel{padding:28px 25px 16px;border-right:1px solid var(--line);background:var(--paper);height:calc(100vh - 87px);overflow:auto;overscroll-behavior:contain}.hps-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#8a735c}.hps-intro{font-size:13px}.hps-steps{display:flex;margin:24px 0 22px;border-bottom:1px solid var(--line)}.hps-steps button{width:50%;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 2px;text-align:left;color:var(--muted)}.hps-steps [aria-current]{border-bottom-color:var(--wine);color:var(--wine)}.hps-label-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.hps-quiet{border:0!important;padding:5px 6px!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}.hps-add{display:flex;gap:7px;margin:13px 0}.hps-add button{flex:1;padding:10px 4px;font-size:12px}.hps-block{display:flex;gap:8px;width:100%;align-items:center;margin:6px 0;text-align:left}.hps-block span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hps-block small{font-size:10px;color:var(--muted);text-transform:uppercase}.hps-block[aria-pressed=true]{background:#eee4d6;border-color:#b89c7c}.hps-properties{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.hps label{display:block;font-size:12px;font-weight:700;margin:12px 0 5px}.hps input:not([type=checkbox]):not([type=range]),.hps select,.hps textarea{width:100%;padding:9px 10px;border:1px solid #d6cdbf;border-radius:5px;background:white;color:var(--ink);min-height:38px}.hps textarea{resize:vertical}.hps input[type=range]{width:100%}.hps-inline,.hps-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hps-inline{grid-template-columns:1fr auto}.hps-small{font-size:11px!important}.hps-primary{display:flex;justify-content:space-between;align-items:center;background:var(--wine)!important;color:white!important;border-color:var(--wine)!important;width:100%;margin-top:20px;padding:13px 17px!important}.hps-presets{margin:20px 0}.hps-panel footer{border-top:1px solid var(--line);margin-top:24px;padding-top:15px;display:flex;flex-wrap:wrap;gap:8px}.hps-panel footer span{display:block;width:100%;font-size:10px;color:var(--muted)}.hps-preview{background:#eeeae3;min-width:0;display:flex;flex-direction:column;height:calc(100vh - 87px);position:sticky;top:0;padding:28px 30px 22px}.hps-preview-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.hps-preview-head h2{font:24px HPAmiri,Georgia,serif;margin-top:4px}.hps-view-toggle{display:flex;padding:3px;border:1px solid #d8d1c6;border-radius:7px;background:#f8f5ee;flex-shrink:0}.hps-view-toggle button{border:0;font-size:12px}.hps-view-toggle [aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #382c2720}.hps-stage{flex:1;min-height:260px;position:relative;display:flex;align-items:center;justify-content:center;padding:48px 12px;overflow:hidden}.hps-stage>canvas{display:block;width:min(100%,900px);height:auto;max-height:100%;object-fit:contain;box-shadow:0 16px 24px #382c2726;touch-action:none;cursor:grab}.hps-stage>canvas:active{cursor:grabbing}#hps-three{position:absolute;inset:0}#hps-three canvas{display:block;width:100%;height:100%;touch-action:none}#hps-loading{position:absolute;padding:15px;background:white;border-radius:6px}.hps-preview-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.hps-preview-foot>div{display:flex;gap:8px;flex-wrap:wrap}.hps-preview-foot button{font-size:11px;background:#f7f4ed}.hps-preview-foot [aria-pressed=true]{border-color:#9a7b59;background:#e5d8c6}.hps-hint{font-size:12px;text-align:center;margin:14px 0!important}.hps-key{font-size:10px;color:#776b5e;display:flex;justify-content:center;flex-wrap:wrap;gap:16px}.hps-key span{display:flex;align-items:center;gap:5px}.hps-key i{width:9px;height:9px;background:#171411;border-radius:50%}.hps-key .hps-natural{background:#c9ab7a}.hps-specs{display:grid;grid-template-columns:75px 1fr;font-size:12px;gap:9px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.hps-specs dt{color:var(--muted)}.hps-specs dd{margin:0}.hps-check{display:flex!important;gap:9px;align-items:flex-start;font-weight:400!important;margin-top:18px!important}.hps-check input{margin-top:4px;accent-color:var(--wine)}.hps-ok,.hps-error{font-size:12px;padding:12px;border-radius:5px;background:#e8eee3;color:#395337}.hps-error{background:#fae7df;color:#8d3929}.hps-view-check{font-size:12px;margin:8px 0}.hps-view-check::before{content:'○ ';color:#967b5c}.hps-view-check.done::before{content:'✓ ';color:#476b3b}#hps-status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#382c27;color:white;z-index:999999;padding:13px 22px;border-radius:6px;max-width:90vw;box-shadow:0 4px 20px #0003}.hps dialog{border:1px solid var(--line);border-radius:12px;padding:24px;max-width:760px;width:calc(100% - 32px);max-height:90vh;overflow:auto;color:var(--ink);background:var(--paper)}.hps dialog::backdrop{background:#271f19aa}.hps dialog header{display:flex;justify-content:space-between;align-items:center}.hps dialog h2{font:28px HPAmiri,Georgia,serif}.hps-image-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hps-image-compare figure{margin:10px 0}.hps-image-compare img,.hps-image-compare canvas{width:100%;height:230px;object-fit:contain;background:white;border:1px solid var(--line)}.hps-image-compare figcaption{font-size:12px;text-align:center}.hps-empty{padding:16px 0;color:var(--muted);font-size:12px}.hps-launch-wrap{margin:18px 0}.hps-launch{padding:14px 20px!important;background:#613b31!important;color:white!important;border:0!important;cursor:pointer}.hps-launch-summary{font-size:13px;margin:8px 0}.hps-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;padding:0!important;margin:0!important;z-index:999999;background:#fffcf7}.hps-shell::backdrop{background:#0008}
@media(min-width:1500px){.hps-workspace{grid-template-columns:380px 1fr}.hps-panel{padding:34px}.hps-preview{padding:38px 50px}}
@media(max-width:980px){.hps-workspace{grid-template-columns:305px 1fr}.hps-preview{padding:20px}.hps-preview-head{display:block}.hps-view-toggle{width:max-content;margin-top:12px}.hps-stage{padding:30px 0}.hps-preview-foot{align-items:flex-start}.hps-preview-foot>span{white-space:nowrap}}
@media(max-width:720px){.hps-header{height:70px;padding:12px 18px}.hps-brand{font-size:26px}.hps-material{display:none}.hps-workspace{display:flex;flex-direction:column}.hps-preview{order:-1;height:430px;position:relative;padding:18px 16px}.hps-preview-head{display:flex;gap:8px}.hps-preview-head h2{font-size:20px}.hps-view-toggle{margin:0}.hps-eyebrow{font-size:8px;letter-spacing:1.5px}.hps-stage{min-height:200px;padding:20px 6px}.hps-preview-foot button{padding:7px;font-size:10px}.hps-preview-foot>span{font-size:10px}.hps-hint{font-size:10px;margin:9px 0!important}.hps-key{font-size:9px;gap:8px}.hps-panel{height:auto;overflow:visible;border-right:0;padding:24px 22px}.hps .hps-title{font-size:34px}.hps-panel .hps-intro{margin:8px 0}.hps-image-compare{gap:10px}.hps-image-compare img,.hps-image-compare canvas{height:160px}.hps-header .hps-quiet{max-width:80px}.hps-stage>canvas{max-width:560px}}
.hps-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.hps-block span:first-child{flex:0 0 24px}.hps-block.active{background:#eee4d6;border-color:#b89c7c}.hps-properties>.hps-inline{display:flex;flex-wrap:wrap;margin-top:14px}.hps-properties>.hps-inline button{font-size:11px}.hps-properties h3{margin:0;font-size:14px}.hps-pass{font-size:12px!important;color:#42613e!important}.hps-fail{font-size:12px!important;color:#a33d27!important}#hps-review-views{display:flex;gap:8px;margin:15px 0}#hps-review-views button{font-size:12px}.hps-stage>canvas{max-height:none}

@media(max-width:720px){.hps-preview{height:auto;min-height:430px}.hps-stage{height:220px;min-height:220px;flex:none}.hps-preview-head h2{font-size:18px}.hps-preview-head .hps-eyebrow{font-size:7px;letter-spacing:1px}.hps-key{padding-bottom:4px}}

.hps .hps-icon-button{width:34px;height:34px;padding:7px;border-color:transparent;display:inline-flex;align-items:center;justify-content:center}.hps button svg{width:18px;height:18px;flex:none;vertical-align:middle}.hps .hps-secondary{display:inline-flex;gap:7px;align-items:center;font-size:12px;background:#f7f3ed;border:1px solid #d9cfc0;padding:9px 12px}.hps .hps-panel footer .hps-secondary{flex:1;justify-content:center}.hps-selection{position:absolute;border:1.5px solid #613b31;pointer-events:none;z-index:3;transform-origin:center}.hps .hps-handle{position:absolute;width:24px;height:24px;min-width:24px;padding:0;transform:translate(-50%,-50%);border:0;border-radius:0;background:transparent;pointer-events:auto;touch-action:none}.hps-handle::after{content:'';position:absolute;inset:7px;border:1.5px solid #613b31;background:#fffcf7;border-radius:1px}.hps-handle[data-handle=n],.hps-handle[data-handle=s]{cursor:ns-resize}.hps-handle[data-handle=e],.hps-handle[data-handle=w]{cursor:ew-resize}.hps-handle[data-handle=nw],.hps-handle[data-handle=se]{cursor:nwse-resize}.hps-handle[data-handle=ne],.hps-handle[data-handle=sw]{cursor:nesw-resize}.hps .hps-ratio{position:absolute;z-index:4;width:32px;height:32px;padding:6px;border-radius:50%;transform:translate(-50%,-50%);background:#fffcf7;box-shadow:0 2px 9px #382c2726;border:1px solid #b79f81;touch-action:manipulation}.hps .hps-ratio[aria-pressed=true]{background:#613b31;color:white}.hps-divider-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}.hps-divider-gallery button{height:43px;padding:8px 6px;min-width:0;background:#fff}.hps-divider-gallery img{width:100%;height:25px;object-fit:contain;display:block}.hps-divider-gallery [aria-pressed=true]{background:#e9ddca;border-color:#8a6a4b}

.hps .hps-field-note{font-size:12px;color:#8d3929;background:#fae7df;padding:10px;border-radius:5px}.hps-selection{border-color:#4f6c80}.hps-handle::after{border-color:#4f6c80}.hps .hps-block[aria-pressed=true]{background:#eee4d6;border-color:#b89c7c}

/* Bespoke Creation Studio refinements. */
.hps-brand{display:flex;align-items:center;gap:12px;letter-spacing:0}.hps-brand-mark{display:block;width:38px;height:65px;object-fit:contain}.hps-brand-name{display:flex!important;flex-direction:column;align-items:flex-start}.hps-brand-name>img{width:156px;height:43px;object-fit:contain}.hps-brand-name>span{font-size:9px;letter-spacing:1.1px;text-transform:none}.hps .hps-title{font-size:29px;line-height:1.1;margin:0 0 8px}.hps-steps{margin:17px 0}.hps-presets{margin:0 0 22px}.hps-presets h2 label{font-size:16px;margin:0 0 9px}.hps-label-row>span{display:flex;flex:none}.hps-label-row h2{font-size:15px}.hps-add{display:grid;grid-template-columns:repeat(6,1fr)}.hps-add button{grid-column:span 2}.hps-add button:nth-child(n+4){grid-column:span 3}.hps-tool-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.hps-tool-row .hps-icon-button{border-color:var(--line);width:35px;height:35px}.hps-tool-row .hps-danger{margin-left:auto;color:#933f35}.hps-align-note{font-size:10px!important;margin-bottom:3px!important}.hps-stroke-status{background:#e5eee1;border:1px solid #c4d5bc;color:#354d2e;border-radius:6px;padding:9px 12px;font-size:12px;margin:0 0 12px}.hps-stroke-status.is-pending{background:#f2eee5;border-color:#ddd1bd;color:#69543a}.hps-stroke-status.is-failing{background:#fae7df;border-color:#dcb5a6;color:#8d3929}.hps .hps-strengthen{font-size:12px;width:100%;margin:12px 0 0;border-color:#b18a6e;background:#f0e4d7}.hps-block.has-stroke-error{border-left:3px solid #b04931}.hps-block .hps-badge{color:#9d3b25;font-size:10px}.hps-morse-code{font:15px monospace!important;letter-spacing:1px;overflow-wrap:anywhere;color:#382c27!important}.hps-properties .hps-field-note[hidden]{display:none}.hps .hps-review-stroke{font-size:12px;color:#8d3929}
@media(max-width:720px){.hps-header{height:81px;padding:8px 15px;gap:8px}.hps-brand{gap:7px}.hps-brand-mark{width:32px;height:59px}.hps-brand-name>img{width:130px;height:35px}.hps-brand-name>span{font-size:8px;letter-spacing:.7px}.hps .hps-title{font-size:27px}.hps-stroke-status{font-size:11px;margin-bottom:9px}.hps .hps-icon-button{min-width:35px;min-height:35px}.hps-panel{padding-top:18px}.hps-steps{margin-top:12px}}

/* Stable list rows keep remove actions beside each element, outside its select button. */
.hps-element-row{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:6px;margin:6px 0;min-width:0}.hps-element-row.is-selected{background:#eee4d6;border-color:#b89c7c}.hps-element-row.has-stroke-error{border-left:3px solid #b04931}.hps-element-row .hps-block{border:0;border-radius:5px 0 0 5px;margin:0;min-width:0;flex:1;padding:10px 8px;gap:5px;background:transparent}.hps-element-row .hps-block span:first-child{flex-basis:20px}.hps-element-row .hps-block small{font-size:9px;white-space:nowrap}.hps-element-row .hps-element-remove{flex:0 0 32px;padding:7px;border:0;border-left:1px solid var(--line);border-radius:0 5px 5px 0;color:#8b5143;display:flex;align-items:center;justify-content:center}.hps-element-remove svg{width:16px;height:16px;display:block}.hps-element-remove:hover{background:#f6dfd7!important}.hps-tool-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.hps-tool-row .hps-icon-button{width:100%;min-width:0}
/* Product-scoped order: guidance + Personalise, then aligned quantity/Add to cart. */
.woocommerce div.product form.cart.hps-product-form{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;align-items:stretch;margin:22px 0}.hps-product-form .hps-launch-wrap{grid-column:1/-1;display:flex;flex-direction:column;gap:14px;background:#faf7f2;border:1px solid #dfd5c9;border-radius:4px;padding:18px;margin:0 0 4px}.hps-product-form .hps-launch-summary{font-size:13px;line-height:1.65;margin:0;padding:0;color:#51453b}.hps-launch-summary strong{display:block;font-size:14px;margin-bottom:4px}.woocommerce div.product form.cart.hps-product-form .hps-launch,.woocommerce div.product form.cart.hps-product-form .single_add_to_cart_button{float:none;margin:0!important;min-height:48px;display:flex;align-items:center;justify-content:center;padding:12px 18px!important;border:1px solid #613b31!important;border-radius:3px!important;background:#613b31!important;color:#fff!important;font-size:14px!important;font-weight:600;line-height:1.4!important;letter-spacing:.2px;box-sizing:border-box;width:100%}.woocommerce div.product form.cart.hps-product-form button:after{display:none!important}.woocommerce div.product form.cart.hps-product-form button:disabled{opacity:.45;cursor:not-allowed}.woocommerce div.product form.cart.hps-product-form .quantity{float:none;margin:0!important;width:68px;align-self:stretch}.woocommerce div.product form.cart.hps-product-form input.qty{width:68px!important;height:48px!important;padding:8px!important;box-sizing:border-box;border:1px solid #dfd5c9!important;border-radius:3px!important;background:#fff!important;color:#382c27!important;font-size:15px!important;line-height:1.4!important}

/* Finish guidance stays visible in both material previews and binary artwork mode. */
.hps-key i{background:#4b2e1d}.hps-key.is-binary i{background:#000}.hps-key.is-binary .hps-natural{background:#fff;border:1px solid #b9ac9b}.hps .hps-finish-note{font-size:12px;line-height:1.5;text-align:center;max-width:650px;align-self:center;margin:9px 0 0;color:#554333}.hps-launch-wrap .hps-finish-note{font-size:12px;line-height:1.5;color:#554333;margin:9px 0 12px}

.hps dialog.hps-draft-dialog{max-width:540px;padding:26px}.hps-draft-dialog header{gap:18px;align-items:flex-start}.hps-draft-dialog header h2{line-height:1.2;margin-top:5px}.hps-draft-dialog header button{flex:none}.hps-draft-dialog label{display:block;font-size:13px;font-weight:600;margin:16px 0 6px}.hps-draft-dialog input{width:100%;min-width:0;border:1px solid #cfc2b1;padding:10px 12px;border-radius:5px;background:white;color:#382c27}.hps-draft-dialog input[readonly]{font:13px/1.8 monospace;margin-bottom:10px}.hps-draft-dialog h3{font-size:21px;margin:20px 0 8px}.hps-draft-warning{margin:18px 0 0;padding:15px;background:#fff0db;border:1px solid #d5b185;border-radius:6px}.hps-draft-warning p{color:#684c2a}.hps-draft-help:empty{display:none}.hps-draft-dialog .hps-small{line-height:1.6}#hps-draft-legacy{margin-top:15px}@media(max-width:600px){.hps dialog.hps-draft-dialog{padding:20px;max-height:92dvh}.hps-draft-dialog input[readonly]{font-size:11px}}
