/* HomeGlo profile editor and private support workspace. */
.hg-customer-profile-link{display:flex;align-items:center;gap:12px;margin-bottom:14px;font:700 13px/1.5 "Manrope",sans-serif;color:#934929}
.hg-customer-profile-link img{width:64px;height:64px;object-fit:cover;border-radius:50%}
.hg-manager-account-avatar img,.hg-connect-staff-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.hg-connect-staff-avatar{overflow:hidden}.hg-manager-customer-avatar img{width:38px;height:38px;object-fit:cover;border-radius:50%}

.hg-photo-editor,.hg-chat{--hg-ink:#322c28;--hg-muted:#71645b;--hg-line:#e5dcd4;--hg-accent:#934929;--hg-wash:#fbf7f2;color:var(--hg-ink);font:400 14px/1.6 "Manrope",sans-serif;box-sizing:border-box}
.hg-photo-editor *,.hg-chat *{box-sizing:border-box}
.hg-photo-editor button,.hg-chat button,.hg-connect-file{min-height:44px;border:1px solid #ded1c5;border-radius:10px;background:white;color:#49362c;padding:10px 16px;font:700 13px/1.4 "Manrope",sans-serif;cursor:pointer}
.hg-photo-editor button:disabled,.hg-chat button:disabled{opacity:.5;cursor:not-allowed}
.hg-photo-editor :is(button,input,a):focus-visible,.hg-chat :is(button,input,textarea,select,a):focus-visible{outline:3px solid #934929;outline-offset:3px}
.hg-photo-editor [hidden],.hg-chat [hidden]{display:none!important}
.hg-connect-primary{background:#934929!important;color:#fff!important;border-color:#934929!important}
.hg-connect-status{min-height:24px;font-size:14px;color:#67452e;overflow-wrap:anywhere}
.hg-connect-file{display:inline-flex;align-items:center;position:relative;overflow:hidden}
.hg-connect-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.hg-connect-file:focus-within{outline:3px solid #934929;outline-offset:3px}
.hg-photo-editor{width:100%;padding:24px;border:1px solid var(--hg-line);border-radius:18px;background:var(--hg-wash);margin:0 0 24px;text-align:left}
.hg-photo-heading{display:flex;align-items:center;gap:20px;margin-bottom:20px}
.hg-photo-heading h2{margin:0 0 4px;font:600 28px/1.2 "Cormorant Garamond",serif}
.hg-photo-heading p{margin:0;color:var(--hg-muted);font-size:13px}
.hg-photo-avatar{flex:0 0 84px;width:84px;height:84px;border-radius:50%;overflow:hidden;background:#eadccf;display:grid;place-items:center;font:600 30px serif}
.hg-photo-avatar img{width:100%;height:100%;object-fit:cover}
.hg-crop-dialog{width:min(520px,calc(100% - 24px));max-height:92dvh;padding:24px;border:1px solid #e2d6cb;border-radius:22px;background:#fffaf5;color:#322c28;overflow:auto;box-shadow:0 30px 100px #22150c55}
.hg-crop-dialog::backdrop{background:#21150eb3}
.hg-crop-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.hg-crop-head h2{margin:0;font:600 30px/1.2 "Cormorant Garamond",serif}
.hg-crop-head button{font-size:24px;padding:4px 14px}
.hg-crop-dialog p{font-size:14px;color:#71645b}
.hg-crop-stage{position:relative;aspect-ratio:1;max-width:360px;margin:20px auto;overflow:hidden;border-radius:12px;background:#ded6ce}
.hg-crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.hg-crop-stage canvas:active{cursor:grabbing}
.hg-crop-mask{position:absolute;inset:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 100px #0008;pointer-events:none}
.hg-crop-dialog label{display:grid;gap:6px;font-size:13px;margin-top:12px}
.hg-crop-dialog input[type=range]{width:100%;accent-color:#934929;min-height:28px}
.hg-crop-position{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hg-crop-tools{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}
.hg-crop-tools .hg-connect-primary{margin-left:auto}
.hg-chat{max-width:1400px;margin:0 auto 32px;padding:24px;background:#fbf8f4;border-radius:20px}
.hg-chat-heading{margin-bottom:20px}.hg-chat-heading small{font-size:11px;letter-spacing:.15em;font-weight:800;color:#934929}
.hg-chat-heading h1{font:600 clamp(30px,3vw,44px)/1.15 "Cormorant Garamond",serif;margin:6px 0 10px}
.hg-chat-heading p{color:#71645b;margin:0;font-size:14px}
.hg-chat-preview{padding:12px 16px;border-radius:10px;background:#fff0cd;color:#705215}
.hg-chat-access{padding:16px 20px;margin:20px 0;border:1px solid #e5dcd4;border-radius:12px;background:#fff}
.hg-chat-access summary{font-weight:700;cursor:pointer;min-height:30px}.hg-chat-access form{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.hg-chat-access label{display:flex;align-items:center;gap:8px}
.hg-chat-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,2fr);border:1px solid #e5dcd4;background:#fff;border-radius:16px;overflow:hidden;min-height:600px}
.hg-chat-list-panel{padding:18px;border-right:1px solid #e5dcd4;background:#fffdfa;min-width:0}
.hg-chat-list-panel form{display:grid;gap:12px;margin-bottom:20px}
.hg-chat label{font-size:13px;font-weight:600}
.hg-chat input:not([type=checkbox]):not([type=file]),.hg-chat select,.hg-chat textarea{width:100%;border:1px solid #d9cfc6;border-radius:9px;padding:12px;font:400 14px/1.5 "Manrope",sans-serif;background:white;color:#322c28}
.hg-chat-threads{display:grid;gap:8px;max-height:560px;overflow:auto}
.hg-chat .hg-chat-thread{display:grid;gap:5px;text-align:left;padding:14px;border-color:transparent;background:transparent;width:100%;min-width:0}
.hg-chat-thread strong{font-size:14px;overflow-wrap:anywhere}
.hg-chat-thread span{font-size:12px;color:#71645b}
.hg-chat .hg-chat-thread:hover,.hg-chat .hg-chat-thread.is-active{background:#f6eee6;border-color:#dbc6b5}
.hg-chat-conversation{display:flex;flex-direction:column;min-width:0}
.hg-chat-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:18px;border-bottom:1px solid #e5dcd4}
.hg-chat-toolbar h2{font:600 23px/1.3 "Cormorant Garamond",serif;margin:0;flex:1 1 180px;overflow-wrap:anywhere}
.hg-chat-toolbar>span{padding:4px 10px;background:#f2eee7;border-radius:20px;font-size:12px}
.hg-chat-toolbar label{max-width:200px;font-size:12px}
.hg-chat-messages{height:440px;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth;background:#fdfbf8;overscroll-behavior:contain}
.hg-chat-bubble{align-self:flex-start;max-width:85%;padding:12px 16px;border-radius:15px 15px 15px 3px;border:1px solid #e8dfd7;background:#fff;overflow-wrap:anywhere}
.hg-chat-bubble.is-mine{align-self:flex-end;border-radius:15px 15px 3px 15px;background:#f2e4d7;border-color:#e2cdbb}
.hg-chat-bubble strong{font-size:12px;color:#714a32}
.hg-chat-bubble p{white-space:pre-wrap;margin:6px 0;font:400 14px/1.65 "Manrope",sans-serif}
.hg-chat-bubble time{display:block;font-size:10px;color:#71645b;margin-top:8px}
.hg-chat-bubble img{display:block;max-width:100%;max-height:240px;border-radius:8px;margin:8px 0;object-fit:contain}
.hg-chat-empty{color:#71645b;font-size:14px;padding:14px}
.hg-chat [data-chat-compose]{padding:18px;border-top:1px solid #e5dcd4;margin-top:auto}
.hg-chat-compose-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.hg-chat-compose-actions [data-chat-file]{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.hg-chat-compose-actions [data-chat-send]{margin-left:auto}
.hg-chat [data-chat-compose]>small{display:block;font-size:11px;color:#71645b}
.hg-product-chat-link a{display:inline-block;padding:12px 0;color:#934929;font-weight:700}
@media(max-width:900px){.hg-chat{padding:16px}.hg-chat-layout{grid-template-columns:1fr}.hg-chat-list-panel{border-right:0;border-bottom:1px solid #e5dcd4}.hg-chat-threads{max-height:200px}.hg-chat-messages{height:420px}.hg-chat-toolbar{padding:14px}}
@media(max-width:600px){.hg-photo-editor{padding:18px}.hg-photo-heading{align-items:flex-start;gap:14px}.hg-photo-avatar{width:64px;height:64px;flex-basis:64px}.hg-photo-heading h2{font-size:25px}.hg-crop-dialog{padding:18px}.hg-crop-tools button{flex:1}.hg-chat{padding:10px}.hg-chat input,.hg-chat textarea,.hg-chat select{font-size:16px!important}.hg-chat-bubble{max-width:94%}.hg-chat-messages{padding:14px}.hg-chat-toolbar label{max-width:100%;flex:1 1 160px}.hg-chat-access form{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.hg-chat-messages{scroll-behavior:auto}}
