.homk-designer-launcher {
    margin: 1.35rem 0;
    padding: 1rem;
    border: 1px solid #d8dde3;
    border-radius: 14px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}
.homk-designer-launcher__copy { display:flex; flex-direction:column; gap:.18rem; }
.homk-designer-launcher__copy strong { font-size:1.05rem; }
.homk-designer-launcher__copy span { font-size:.92rem; opacity:.76; }
.homk-designer-launcher__actions { display:flex; align-items:center; gap:.75rem; }
.homk-launcher-preview {
    width:88px; height:76px; object-fit:cover; border-radius:10px; border:1px solid #d8dde3; background:#f4f6f8;
}
.homk-designer__status { grid-column:1 / -1; min-height:1.2em; font-size:.88em; font-weight:600; }
.homk-designer__status.is-error { color:#b42318; }
.homk-designer__status.is-success { color:#067647; }
.homk-designer__status.is-busy { color:#344054; }
.homk-designer-launcher.is-saving { opacity:.72; pointer-events:none; }

html.homk-modal-open, body.homk-modal-open { overflow:hidden !important; }
.homk-designer-modal { position:fixed; inset:0; z-index:999999; display:none; }
.homk-designer-modal.is-open { display:block; }
.homk-designer-modal__backdrop { position:absolute; inset:0; background:rgba(16,24,40,.64); backdrop-filter:blur(5px); }
.homk-designer-modal__dialog {
    position:absolute; inset:3.5vh 3vw; max-width:1500px; margin:auto;
    display:flex; flex-direction:column; overflow:hidden;
    background:#fff; border-radius:18px; box-shadow:0 28px 80px rgba(0,0,0,.30);
}
.homk-designer-modal__header {
    flex:0 0 auto; display:flex; align-items:flex-start; justify-content:space-between; gap:1rem;
    padding:1rem 1.2rem; border-bottom:1px solid #e4e7ec; background:#fff;
}
.homk-designer-modal__header h2 { margin:0 0 .2rem; font-size:1.35rem; }
.homk-designer-modal__header p { margin:0; font-size:.9rem; color:#667085; }
.homk-modal-close {
    border:0; background:#f2f4f7; width:38px; height:38px; border-radius:999px; font-size:26px; line-height:34px; cursor:pointer;
}
.homk-designer-modal__body {
    flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(0, 58fr) minmax(360px, 42fr); overflow:hidden;
}
.homk-editor-panel, .homk-mockup-panel { min-width:0; min-height:0; }
.homk-editor-panel { padding:1rem; overflow:auto; border-right:1px solid #e4e7ec; background:#fff; }
.homk-mockup-panel { padding:1rem; display:flex; flex-direction:column; background:#f7f8fa; }
.homk-mockup-panel--hidden { display:none; }

.homk-designer__toolbar, .homk-designer__object-tools, .homk-text-tools { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.homk-designer__toolbar { margin-bottom:.8rem; }
.homk-text-tools { flex:1 1 420px; }
.homk-text-tools input[type="text"] { min-width:170px; flex:1 1 180px; }
.homk-text-tools select { max-width:180px; }
.homk-text-tools input[type="color"] { width:46px; min-height:38px; padding:2px; }

.homk-designer__stage-wrap {
    width:100%; overflow:auto; border:1px solid #d0d5dd; border-radius:12px; padding:9px; box-sizing:border-box;
    background-image:linear-gradient(45deg,#f0f1f3 25%,transparent 25%),linear-gradient(-45deg,#f0f1f3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0f1f3 75%),linear-gradient(-45deg,transparent 75%,#f0f1f3 75%);
    background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0;
}
.homk-designer__stage { width:100%; max-width:1000px; margin:0 auto; }
#homk-canvas { display:block; width:100%; height:auto; background:#fff; border:2px dashed rgba(0,0,0,.18); box-sizing:border-box; touch-action:none; user-select:none; }
.homk-designer__object-tools { margin-top:.8rem; }
.homk-designer__help { margin:.65rem 0 0; font-size:.86em; color:#667085; }

.homk-mockup-panel__heading { display:flex; gap:1rem; justify-content:space-between; align-items:flex-start; margin-bottom:.75rem; }
.homk-mockup-panel__heading h3 { margin:0 0 .2rem; }
.homk-mockup-panel__heading p { margin:0; color:#667085; font-size:.88rem; }
.homk-designer__size { white-space:nowrap; font-size:.78em; padding:.3rem .55rem; border-radius:999px; background:#eaecf0; color:#344054; }
.homk-mockup-wrap {
    position:relative; flex:1 1 auto; min-height:360px; border:1px solid #d0d5dd; border-radius:14px; overflow:hidden;
    background:radial-gradient(circle at 50% 35%,#fff 0,#eef2f6 58%,#e4e9ef 100%);
}
#homk-mockup-canvas { display:block; width:100%; height:100%; min-height:360px; }
.homk-angle-presets { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; margin-top:.75rem; }
.homk-angle-slider-wrap { display:grid; grid-template-columns:auto 1fr; gap:.75rem; align-items:center; margin-top:.75rem; }
.homk-angle-slider-wrap span { font-size:.9rem; color:#667085; font-weight:600; }
#homk-angle-slider { width:100%; }

.homk-designer-modal__footer {
    flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:1rem;
    padding:.85rem 1.2rem; border-top:1px solid #e4e7ec; background:#fff;
}
.homk-designer-modal__footer span { font-size:.85rem; color:#667085; }

.woocommerce .variation-Eigenontwerp img,
.woocommerce .wc-item-meta img,
.homk-cart-design-preview img {
    display:block; max-width:170px; height:auto; margin-top:6px; border-radius:10px; border:1px solid #d7dce1; background:#fff;
}

@media (max-width: 980px) {
    .homk-designer-modal__dialog { inset:1.5vh 1.5vw; }
    .homk-designer-modal__body { grid-template-columns:1fr; overflow:auto; }
    .homk-editor-panel { border-right:0; border-bottom:1px solid #e4e7ec; overflow:visible; }
    .homk-mockup-panel { min-height:520px; }
    .homk-mockup-wrap { min-height:420px; }
}

@media (max-width: 640px) {
    .homk-designer-launcher { grid-template-columns:1fr; }
    .homk-designer-launcher__actions { justify-content:space-between; }
    .homk-designer-modal__dialog { inset:0; border-radius:0; }
    .homk-designer-modal__header { padding:.8rem; }
    .homk-designer-modal__header p { display:none; }
    .homk-editor-panel, .homk-mockup-panel { padding:.75rem; }
    .homk-text-tools { flex-basis:100%; }
    .homk-text-tools input[type="text"] { flex-basis:100%; }
    .homk-mockup-panel { min-height:430px; }
    .homk-mockup-wrap, #homk-mockup-canvas { min-height:340px; }
    .homk-angle-slider-wrap { grid-template-columns:1fr; }
    .homk-designer-modal__footer { padding:.7rem .8rem; }
    .homk-designer-modal__footer span { display:none; }
    .homk-designer-modal__footer .button { margin-left:auto; }
}


/* v0.5 custom mockup gallery */
.homk-mockup-wrap { position: relative; }
.homk-mockup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 3px 14px rgba(16,24,40,.16);
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}
.homk-mockup-nav--prev { left: 12px; }
.homk-mockup-nav--next { right: 12px; }
.homk-no-mockups {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #667085;
    text-align: center;
    pointer-events: none;
}
.homk-mockup-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .75rem;
    overflow-x: auto;
    padding-bottom: 4px;
}
.homk-mockup-thumb {
    flex: 0 0 92px;
    appearance: none;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}
.homk-mockup-thumb.is-active {
    border-color: #2271b1;
}
.homk-mockup-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 6px;
    background: #f4f6f8;
}
.homk-mockup-thumb span {
    display: block;
    margin-top: 4px;
    font-size: .76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* v0.7.2: respect the HTML hidden attribute even though the empty-state uses display:grid */
.homk-no-mockups[hidden] { display: none !important; }

/* v0.8.0 extra ontwerptools */
.homk-art-tools { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; flex:1 1 100%; }
.homk-art-tools select { max-width:180px; }
.homk-art-tools input[type="color"] { width:46px; min-height:38px; padding:2px; }
#homk-crop:disabled { opacity:.45; }

/* Crop editor */
.homk-crop-modal { display:none; position:fixed; inset:0; z-index:1000002; }
.homk-crop-modal.is-open { display:block; }
.homk-crop-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.70); }
.homk-crop-modal__dialog { position:absolute; inset:5vh 8vw; max-width:1200px; margin:auto; background:#fff; border-radius:14px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 28px 80px rgba(0,0,0,.38); }
.homk-crop-modal__header { display:flex; justify-content:space-between; gap:1rem; padding:1rem 1.2rem; border-bottom:1px solid #e4e7ec; }
.homk-crop-modal__header h3 { margin:0 0 .2rem; }
.homk-crop-modal__header p { margin:0; color:#667085; font-size:.9rem; }
.homk-crop-modal__body { flex:1 1 auto; min-height:0; overflow:auto; padding:12px; background:#252a31; }
#homk-crop-canvas { display:block; width:100%; height:auto; max-height:70vh; object-fit:contain; margin:auto; touch-action:none; cursor:crosshair; }
.homk-crop-modal__footer { display:flex; justify-content:flex-end; gap:.6rem; padding:.85rem 1.2rem; border-top:1px solid #e4e7ec; }

@media (max-width: 640px) {
    .homk-art-tools select { max-width:none; flex:1 1 130px; }
    .homk-crop-modal__dialog { inset:0; border-radius:0; }
}

/* v0.9.0 templates */
.homk-template-picker {
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:12px;
    padding:10px;
    border:1px solid #d0d5dd;
    border-radius:10px;
    background:#f8fafc;
}
.homk-template-picker__label { font-weight:700; }
.homk-template-picker__buttons { display:flex; flex-wrap:wrap; gap:7px; }
.homk-template-choice.is-active { box-shadow:0 0 0 2px rgba(34,113,177,.22); border-color:#2271b1 !important; }
.homk-template-picker__hint { font-size:.85rem; color:#667085; }
.homk-designer-launcher.is-template-mode .homk-free-design-tool { display:none !important; }
.homk-designer-launcher.is-template-mode #homk-duplicate,
.homk-designer-launcher.is-template-mode #homk-back,
.homk-designer-launcher.is-template-mode #homk-front { display:none !important; }

/* crop editor: vaste CSS-pixelmaat zodat handles exact onder de cursor liggen */
#homk-crop-canvas { width:auto; max-width:100%; height:auto; max-height:none; }
.homk-crop-rotation {
    display:grid;
    grid-template-columns:auto minmax(180px,1fr) 52px;
    gap:10px;
    align-items:center;
    max-width:760px;
    margin:12px auto 0;
    padding:10px 12px;
    border-radius:9px;
    background:#fff;
    color:#1d2939;
}
.homk-crop-rotation label { font-weight:600; }
.homk-crop-rotation input { width:100%; }
.homk-crop-rotation output { text-align:right; font-variant-numeric:tabular-nums; }

@media (max-width:640px) {
    .homk-crop-rotation { grid-template-columns:1fr 48px; }
    .homk-crop-rotation label { grid-column:1 / -1; }
}

/* v0.9.3 crop-paneel met live voorbeeld */
.homk-crop-modal__body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;background:#252a31}
.homk-crop-work{min-width:0;display:flex;flex-direction:column;gap:10px}
.homk-crop-toolbar{display:grid;gap:9px;background:#fff;padding:10px;border-radius:8px}
.homk-crop-zoom{display:grid;grid-template-columns:120px 1fr 58px;gap:8px;align-items:center}
.homk-crop-zoom label{font-weight:600}.homk-crop-zoom input{width:100%}.homk-crop-zoom output{text-align:right;font-variant-numeric:tabular-nums}
.homk-crop-actions{display:flex;gap:7px;flex-wrap:wrap}
.homk-crop-preview{background:#fff;border-radius:8px;padding:12px;align-self:start}
.homk-crop-preview h4{margin:0 0 6px}.homk-crop-preview p{font-size:.86rem;color:#667085;margin:0 0 10px}
#homk-crop-preview-canvas{display:block;width:100%;height:auto;background:#f3f4f6;border:1px solid #d0d5dd;border-radius:6px}
@media(max-width:900px){.homk-crop-modal__body{grid-template-columns:1fr}.homk-crop-preview{order:-1}.homk-crop-zoom{grid-template-columns:1fr 50px}.homk-crop-zoom label{grid-column:1/-1}}

/* v0.9.4: eenvoudigere editor + visuele templatekeuze */
.homk-template-picker {
    padding: 0;
    border: 0;
    background: transparent;
    gap: 9px;
}
.homk-template-picker__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.homk-template-picker__label { font-size: .95rem; }
.homk-template-picker__hint { margin-left:auto; text-align:right; font-size:.78rem; }
.homk-template-picker__buttons {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 132px);
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 8px;
    scroll-snap-type: inline proximity;
}
.homk-template-choice {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border: 2px solid #e4e7ec;
    border-radius: 11px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    text-align: left;
    scroll-snap-align: start;
}
.homk-template-choice:hover { border-color:#98a2b3; }
.homk-template-choice.is-active {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 2px rgba(34,113,177,.12);
}
.homk-template-choice__preview {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: #f2f4f7;
}
.homk-template-choice__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.homk-template-choice__preview--free {
    font-size: 30px;
    background: linear-gradient(135deg,#f8fafc,#e8edf3);
    color: #2271b1;
}
.homk-template-choice__placeholder { font-size:28px; color:#98a2b3; }
.homk-template-choice__name {
    display: block;
    min-width: 0;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.homk-designer__toolbar {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
    align-items: start;
}
.homk-primary-tools { display:flex; gap:7px; flex-wrap:wrap; }
.homk-primary-action { min-height: 38px; }
.homk-tool-group {
    margin: 0;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}
.homk-tool-group > summary {
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    user-select: none;
}
.homk-tool-group > summary::-webkit-details-marker { display:none; }
.homk-tool-group > summary::after { content:'›'; float:right; transform:rotate(90deg); color:#667085; }
.homk-tool-group[open] > summary::after { transform:rotate(-90deg); }
.homk-tool-group .homk-text-tools,
.homk-tool-group .homk-art-tools {
    padding: 9px;
    border-top: 1px solid #e4e7ec;
}
.homk-art-tool-line { display:flex; flex:1 1 260px; gap:7px; align-items:center; }
.homk-art-tool-line select { flex:1 1 auto; min-width:120px; }
.homk-designer__object-tools {
    padding: 8px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #f8fafc;
}

/* Mobiel: ontwerp en voorbeeld altijd onder elkaar, nooit overlappend. */
@media (max-width: 900px) {
    .homk-designer-modal__dialog {
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }
    .homk-designer-modal__body {
        display: block !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .homk-editor-panel,
    .homk-mockup-panel {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box;
    }
    .homk-editor-panel { border-right:0; border-bottom:1px solid #e4e7ec; }
    .homk-mockup-panel { display:block; }
    .homk-mockup-panel--hidden { display:none !important; }
    .homk-mockup-wrap {
        display:block;
        width:100%;
        min-height:0 !important;
        height:auto !important;
        aspect-ratio: 720 / 620;
    }
    #homk-mockup-canvas {
        display:block;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        aspect-ratio:720 / 620;
    }
    .homk-designer__toolbar { grid-template-columns: 1fr; }
    .homk-primary-tools { display:grid; grid-template-columns:1fr 1fr; }
    .homk-primary-tools .button, .homk-primary-tools label.button { width:100%; text-align:center; justify-content:center; }
    .homk-template-picker__hint { display:none; }
    .homk-template-picker__buttons { grid-auto-columns:minmax(104px, 116px); }
    .homk-designer-modal__footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: #fff;
    }
}

@media (max-width: 520px) {
    .homk-designer-modal__header { position:sticky; top:0; z-index:6; padding:.7rem .75rem; }
    .homk-designer-modal__header h2 { font-size:1.05rem; }
    .homk-editor-panel, .homk-mockup-panel { padding:.65rem; }
    .homk-template-choice__name { font-size:.74rem; }
    .homk-template-picker__buttons { grid-auto-columns: 100px; }
    .homk-designer__object-tools { gap:5px; }
    .homk-designer__object-tools .button { flex:1 1 calc(50% - 5px); min-width:0; padding-left:7px; padding-right:7px; font-size:.78rem; }
    .homk-designer__help { display:none; }
    .homk-mockup-panel__heading { margin-bottom:.45rem; }
    .homk-mockup-thumbs { gap:.4rem; }
    .homk-mockup-thumb { flex-basis:72px; }
}

/* v0.9.6 - uitlijnen in Vrij ontwerp */
.homk-align-group { margin-top:.7rem; }
.homk-align-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:8px; }
.homk-align-tools .button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:38px; }
.homk-align-hint { margin:.5rem 0 0; font-size:.78rem; line-height:1.35; color:#667085; }
@media (max-width:700px){
  .homk-align-tools { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .homk-align-tools .button { min-height:42px; }
}

/* v0.9.7: echte primaire knop voor foto upload */
.homk-photo-add-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}


.homk-template-group{margin-top:12px}.homk-template-group__label{font-size:12px;font-weight:700;color:#475467;text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px}.homk-template-picker__buttons--free{margin-bottom:10px}

/* v1.0.1 - inklapbare templatekiezer en categorieën */
.homk-template-picker__toggle,
.homk-template-group__toggle {
    appearance:none;
    width:100%;
    border:1px solid #d0d5dd;
    background:#fff;
    color:#1d2939;
    border-radius:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    text-align:left;
}
.homk-template-picker__toggle { padding:10px 12px; justify-content:space-between; }
.homk-template-picker__toggle > span:first-child { display:flex; flex-direction:column; gap:2px; min-width:0; }
.homk-template-picker__toggle strong { font-size:.95rem; }
.homk-template-picker__toggle small { color:#667085; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.homk-template-picker__toggle-arrow { font-size:18px; transition:transform .18s ease; }
.homk-template-picker.is-collapsed .homk-template-picker__toggle-arrow { transform:rotate(-90deg); }
.homk-template-picker__content { display:block; padding-top:9px; }
.homk-template-picker.is-collapsed .homk-template-picker__content { display:none; }
.homk-template-group { margin-top:9px; }
.homk-template-group__toggle { padding:8px 10px; }
.homk-template-group__toggle > span:first-child { flex:1; font-weight:700; }
.homk-template-group__count { min-width:24px; height:24px; border-radius:999px; display:grid; place-items:center; background:#eef2f6; color:#475467; font-size:.75rem; }
.homk-template-group__arrow { transition:transform .18s ease; }
.homk-template-group:not(.is-collapsed) .homk-template-group__arrow { transform:rotate(90deg); }
.homk-template-group__content { display:block; padding-top:8px; }
.homk-template-group.is-collapsed .homk-template-group__content { display:none; }
@media(max-width:640px){
    .homk-template-picker__toggle { min-height:46px; }
    .homk-template-group__toggle { min-height:42px; }
}

/* v1.0.2 - robuuste responsive layout + nooit uitgerekte mockups */
#homk-mockup-canvas {
    max-width: 100%;
    object-fit: contain;
    image-rendering: auto;
}
.homk-template-picker,
.homk-template-picker__content,
.homk-template-group,
.homk-template-group__content,
.homk-template-choice {
    position: relative;
    pointer-events: auto;
}
.homk-template-choice,
.homk-template-group__toggle,
.homk-template-picker__toggle {
    touch-action: manipulation;
}

/* Tablet/telefoon: altijd eerst de volledige editor, daarna het voorbeeld. */
@media (max-width: 1100px) {
    .homk-designer-modal__body {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important;
    }
    .homk-editor-panel {
        order: 1 !important;
        flex: 0 0 auto !important;
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e4e7ec !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 2;
    }
    .homk-mockup-panel {
        order: 2 !important;
        flex: 0 0 auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1;
    }
    .homk-mockup-panel--hidden { display:none !important; }
    .homk-mockup-wrap {
        width: 100% !important;
        height: auto !important;
        min-height: 320px !important;
        aspect-ratio: auto !important;
    }
    #homk-mockup-canvas {
        display:block !important;
        width:100% !important;
        height:clamp(320px, 58vw, 620px) !important;
        min-height:0 !important;
        max-height:620px !important;
        aspect-ratio:auto !important;
    }
    .homk-template-picker { z-index:4; }
    .homk-template-picker__content { z-index:5; }
}

@media (max-width: 640px) {
    .homk-mockup-wrap { min-height: 270px !important; }
    #homk-mockup-canvas {
        height:clamp(270px, 68vw, 430px) !important;
        max-height:430px !important;
    }
}

/* v1.0.3 hoge-kwaliteit export */
.homk-designer-modal__footer-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:.55rem;
    flex-wrap:wrap;
    margin-left:auto;
}
.homk-designer-modal__footer-actions .button { margin-left:0 !important; }
.homk-export-hq__note {
    color:#667085;
    font-size:.75rem;
    white-space:nowrap;
}
.homk-export-hq[disabled] { opacity:.6; cursor:wait; }
@media (max-width: 720px) {
    .homk-designer-modal__footer { align-items:flex-end; }
    .homk-designer-modal__footer-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:.45rem; }
    .homk-designer-modal__footer-actions .button { width:100%; min-width:0; white-space:normal; line-height:1.2; }
    .homk-export-hq__note { grid-column:1 / -1; text-align:right; white-space:normal; }
}
@media (max-width: 430px) {
    .homk-designer-modal__footer-actions { grid-template-columns:1fr; }
    .homk-export-hq__note { grid-column:1; text-align:center; }
}
