/* Entity: BrightEyes. Scoped controls never become part of the imported email. */
.html-designer{min-width:0;color:var(--ink,#1d2c27);font:14px/1.5 "Avenir Next",Avenir,"Segoe UI",sans-serif;background:var(--paper,#f5f5f0)}
.html-designer [hidden]{display:none!important}.html-designer button,.html-designer input,.html-designer select,.html-designer textarea{font:inherit;box-sizing:border-box}.html-designer button{min-height:38px;border:1px solid var(--line,#dedfd7);border-radius:5px;background:#fff;color:var(--ink,#1d2c27);padding:8px 11px;cursor:pointer}.html-designer button:hover{background:#edf3ee}.html-designer button:disabled{opacity:.5;cursor:default}.html-designer :is(button,input,select,textarea):focus-visible{outline:3px solid #9dc6ae;outline-offset:2px}.html-designer h3{font-size:14px;margin:0 0 12px}.html-designer p{margin:0 0 12px}.hd-toolbar{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--line,#dedfd7);background:#fff}.hd-tabs,.hd-history{display:flex;gap:6px;flex-wrap:wrap}.hd-tabs [aria-selected=true],.hd-history [aria-pressed=true]{background:#236e4f;color:#fff;border-color:#236e4f}.hd-status{padding:10px 18px;font-size:12px;color:#53675b;background:#edf4ee}.hd-errors{margin:12px 18px;padding:12px;border-left:3px solid #a34035;color:#8f2e25;background:#fff2ed;overflow-wrap:anywhere}.hd-discard{margin:0 18px 12px}.hd-notes{padding:12px 18px;font-size:12px;color:#53675b;overflow-wrap:anywhere}.hd-notes ul{padding-left:20px}.hd-notes summary{cursor:pointer}.hd-layout{display:grid;grid-template-columns:155px minmax(260px,1fr) 260px;align-items:start;min-width:0;gap:0}.hd-palette,.hd-inspector{position:sticky;top:75px;max-height:72vh;overflow:auto;background:#fff;padding:18px 14px;min-width:0;scrollbar-gutter:stable}.hd-palette{border-right:1px solid var(--line,#dedfd7)}.hd-inspector{border-left:1px solid var(--line,#dedfd7)}.hd-palette p,.hd-help,.hd-catalogue-note{color:#626e66;font-size:12px}.hd-add-buttons{display:grid;gap:7px}.hd-palette .hd-catalogue-note{margin-top:18px}.hd-canvas-area{min-width:0;padding:14px 16px 20px}.hd-canvas-help{color:#626e66;font-size:12px;text-align:center}.hd-device{position:relative;width:100%;max-width:800px;margin:auto;transition:max-width .15s ease;background:#e9ebe5;border:1px solid #d7ddd4;border-radius:5px;overflow:hidden}.hd-device.hd-mobile{max-width:375px}.hd-device iframe{display:block;width:100%;height:65vh;min-height:420px;border:0;background:#fff}.hd-field{display:block;margin:0 0 14px;min-width:0}.hd-field>span{display:block;margin-bottom:5px;font-size:12px;font-weight:600}.hd-field :is(input,select,textarea){display:block;min-width:0;width:100%;max-width:100%;border:1px solid #cfd8cf;border-radius:4px;padding:8px;background:#fff;color:#1d2c27;min-height:38px}.hd-field input[type=color]{height:40px;padding:5px}.hd-field textarea{resize:vertical}.hd-settings>button{margin-bottom:14px;width:100%}.html-designer .hd-primary{background:#236e4f;color:#fff;border-color:#236e4f}.hd-section-actions{border-top:1px solid #dedfd7;padding-top:14px;display:flex;gap:7px;flex-wrap:wrap}.hd-section-actions p{flex-basis:100%;font-size:12px}.html-designer .hd-danger{color:#96392c}.hd-check,.hd-product{display:flex;align-items:flex-start;gap:8px;font-size:12px;margin-bottom:12px}.hd-check input,.hd-product input{margin-top:3px;flex-shrink:0}.hd-products{max-height:240px;overflow:auto;margin-bottom:14px;border:1px solid #dedfd7;padding:10px;border-radius:4px}.hd-product span{min-width:0;overflow-wrap:anywhere}.hd-product small{display:block;color:#626e66}.hd-source{padding:18px;min-width:0}.hd-source>label{display:block;font-weight:600;margin-bottom:8px}.hd-source textarea{display:block;width:100%;max-width:100%;height:60vh;min-height:320px;overflow:auto;resize:vertical;padding:14px;border:1px solid #cfd8cf;border-radius:4px;background:#fff;color:#172622;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre}.hd-source p{font-size:12px;color:#626e66;margin:10px 0}
@media(max-width:1050px){.hd-layout{grid-template-columns:120px minmax(200px,1fr) 230px}.hd-palette,.hd-inspector{padding:14px 10px}.hd-canvas-area{padding:12px 8px}}
@media(max-width:720px){.hd-toolbar{padding:12px;gap:9px}.hd-toolbar button{font-size:12px;min-height:36px;padding:7px 9px}.hd-history{gap:5px}.hd-layout{grid-template-columns:minmax(0,1fr)}.hd-palette{position:static;max-height:none;border-right:0;border-bottom:1px solid #dedfd7;padding:14px}.hd-palette h3,.hd-palette>p{margin-bottom:8px}.hd-palette .hd-catalogue-note{margin-top:10px;margin-bottom:0}.hd-add-buttons{display:flex;flex-wrap:wrap;gap:6px}.hd-add-buttons button{font-size:12px;min-height:36px}.hd-inspector{position:static;max-height:none;border-left:0;border-top:1px solid #dedfd7;padding:18px 14px}.hd-canvas-area{padding:14px 8px}.hd-device iframe{height:58vh;min-height:360px}.hd-source{padding:14px}.hd-source textarea{font-size:12px}.hd-status,.hd-notes{padding:10px 14px}.hd-errors{margin:10px 14px}.hd-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.hd-settings>:is(.hd-products,.hd-help,button),.hd-settings>.hd-field:has(textarea){grid-column:1/-1}.hd-settings .hd-check{grid-column:1/-1}.hd-section-actions button{flex:1}.hd-section-actions .hd-danger{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.hd-device{transition:none}}
.html-designer .hd-tabs [aria-selected=true]:hover,.html-designer .hd-history [aria-pressed=true]:hover,.html-designer .hd-primary:hover{background:#19583e;color:#fff;border-color:#19583e}
/* Product card panel: connects a card of the imported design to a catalogue product. */
.hd-card{margin:0 0 16px;padding:12px;border:1px solid var(--line,#dedfd7);border-radius:8px;background:#f7f8f4}.hd-card h4{margin:0 0 6px;font-size:14px}.hd-card .hd-help{margin:0 0 10px}.hd-card-products{display:grid;gap:6px;max-height:300px;overflow:auto;margin:0 0 10px}.html-designer button.hd-card-product{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;width:100%;min-height:56px;padding:6px 8px;text-align:left;background:#fff;cursor:pointer}.html-designer button.hd-card-product:hover,.html-designer button.hd-card-product:focus-visible{border-color:#236e4f;outline:0;box-shadow:0 0 0 2px #236e4f33}.hd-card-product img,.hd-card-product i{display:block;width:44px;height:44px;object-fit:contain;background:#fff;border-radius:4px}.hd-card-product i{background:#e9ebe4}.hd-card-product span{min-width:0;font-size:13px;line-height:1.3;overflow-wrap:anywhere}.hd-card-product small{display:block;color:#5a6a60;font-size:11px;margin-top:2px}.hd-card-actions{display:flex;gap:8px;flex-wrap:wrap}.hd-card-actions button{flex:1 1 120px}.hd-card-empty{padding:10px;background:#fff7e0;border-radius:6px;color:#4d3d00}
.hd-click-layer{position:absolute;top:0;left:0;bottom:0;right:14px;cursor:pointer;background:transparent;touch-action:none}
