/* Unified MyHarbour Web Studio brand palette, Quicksand, and launcher alignment, v4. */
/* Lighthouse: unobtrusive, accessible global help / project messaging. */
#harbour-help-launcher,
#harbour-help-panel,
#harbour-help-backdrop {box-sizing:border-box}
#harbour-help-panel *,#harbour-help-panel *::before,#harbour-help-panel *::after,
#harbour-help-launcher * {box-sizing:border-box}
#harbour-help-launcher {
  position:fixed;bottom:calc(21px + env(safe-area-inset-bottom,0px));right:clamp(22px,5.1vw,85px);
  z-index:2147482500;display:flex;align-items:center;justify-content:center;gap:9px;
  min-width:61px;min-height:60px;padding:0 18px;
  color:#fff;background:#278BFF;border:2px solid #e8f3ff;border-radius:999px;
  box-shadow:0 9px 30px rgba(9,45,83,.30);
  cursor:pointer;font:800 14px/1.15 "Quicksand",system-ui,sans-serif;
  transition:transform .18s ease,background .18s ease;
}
#harbour-help-launcher:hover {background:#146dc4;transform:translateY(-2px)}
#harbour-help-launcher:focus-visible,
#harbour-help-panel button:focus-visible,#harbour-help-panel a:focus-visible {
  outline:3px solid #63b2ff;outline-offset:3px;
}
#harbour-help-launcher[hidden],#harbour-help-panel[hidden],#harbour-help-backdrop[hidden] {display:none!important}
#harbour-help-backdrop {position:fixed;inset:0;background:rgba(9,29,52,.37);z-index:2147482490}
#harbour-help-panel {
  position:fixed;bottom:calc(94px + env(safe-area-inset-bottom,0px));right:23px;
  z-index:2147482501;width:min(420px,calc(100vw - 28px));
  height:min(620px,calc(100dvh - 120px));min-height:min(350px,calc(100dvh - 120px));
  display:flex;flex-direction:column;overflow:hidden;
  background:#f8fbff;border:1px solid #d4e5f7;border-radius:18px;
  box-shadow:0 22px 76px rgba(9,38,68,.34);
  color:#112A4E;font:500 14px/1.55 "Quicksand",system-ui,sans-serif;
  text-align:left;
}
#harbour-help-panel .hc-header {
  display:flex;flex:0 0 auto;align-items:center;gap:12px;
  padding:16px 16px;background:#112A4E;color:#fff;
}
#harbour-help-panel .hc-mark {
  display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;
  color:#fff;background:#278BFF;border-radius:14px;
}
#harbour-help-panel .hc-title-group {
  display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;
}
#harbour-help-panel #hc-title {
  color:#fff;font:750 18px/1.16 "Quicksand","Quicksand",system-ui,sans-serif;
  letter-spacing:-.01em;
}
#harbour-help-panel #hc-subtitle {
  color:#d5e8ff;font:500 11.5px/1.35 "Quicksand",system-ui,sans-serif;
  overflow-wrap:anywhere;
}
#harbour-help-panel .hc-close {
  width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;
  color:white;background:transparent;border:1px solid rgba(255,255,255,.38);
  border-radius:11px;cursor:pointer;padding:0;
}
#harbour-help-panel .hc-close:hover {background:#275887}
#harbour-help-panel .hc-content {
  display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;
}
#harbour-help-panel .hc-content [hidden] {display:none!important}
#harbour-help-panel .hc-guided,#harbour-help-panel .hc-workspace,
#harbour-help-panel .hc-project-thread {display:flex;flex-direction:column;min-height:0;flex:1}
#harbour-help-panel .hc-guided-messages {
  display:flex;flex-direction:column;gap:12px;overflow-y:auto;
  overscroll-behavior:contain;min-height:0;flex:1;padding:18px 15px 12px;
}
#harbour-help-panel .hc-bubble {max-width:93%;padding:12px 14px;border-radius:14px;overflow-wrap:anywhere}
#harbour-help-panel .hc-bubble p {margin:0;line-height:1.55;color:inherit;font-size:13.5px}
#harbour-help-panel .hc-assistant {
  align-self:flex-start;background:#e9f2fc;border:1px solid #d6e7f9;color:#234864;
  border-bottom-left-radius:4px;
}
#harbour-help-panel .hc-visitor {
  align-self:flex-end;background:#278BFF;color:#fff;border-bottom-right-radius:4px;
}
#harbour-help-panel .hc-reply-links {display:flex;flex-direction:column;gap:7px;margin-top:13px}
#harbour-help-panel .hc-reply-links a {
  align-self:flex-start;color:#155e9f;text-decoration:none;font:750 12.5px/1.3 "Quicksand",sans-serif;
  background:#fff;border:1px solid #bcd8f0;border-radius:8px;padding:10px 12px;
}
#harbour-help-panel .hc-reply-links a:hover {background:#edf8ff;text-decoration:underline}
#harbour-help-panel .hc-guided-choices {
  display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto;padding:14px 14px 10px;
  border-top:1px solid #dce9f5;background:#fff;
}
#harbour-help-panel .hc-question {
  background:#edf5ff;color:#23527d;border:1px solid #bdd8f1;
  border-radius:22px;padding:10px 12px;cursor:pointer;
  font:750 12px/1.25 "Quicksand",sans-serif;min-height:40px;
}
#harbour-help-panel .hc-question:hover {background:#d7eafd}
#harbour-help-panel .hc-public-form {
  flex:0 0 auto;padding:10px 14px 6px;background:#fff;
  border-top:1px solid #e0eaf5;
}
#harbour-help-panel .hc-public-form label {display:block;color:#315c80;font:700 11px "Quicksand",sans-serif;margin-bottom:6px}
#harbour-help-panel .hc-public-form > div {display:flex;gap:7px;align-items:stretch}
#harbour-help-panel .hc-public-form input {
  min-width:0;flex:1;width:100%;min-height:41px;padding:9px 11px;color:#243f5b;
  border:1px solid #c7dced;border-radius:9px;background:#f9fcff;
  font:500 13px "Quicksand",sans-serif;
}
#harbour-help-panel .hc-public-form button {
  flex:0 0 auto;border:0;background:#278BFF;color:#fff;min-height:41px;
  padding:8px 12px;border-radius:9px;cursor:pointer;font:750 12px "Quicksand",sans-serif;
}
#harbour-help-panel .hc-disclosure {flex:0 0 auto;margin:0;padding:5px 15px 14px;background:#fff;color:#65809a;font:500 11px/1.4 "Quicksand",sans-serif}
#harbour-help-panel .hc-no-website {
  overflow-y:auto;padding:36px 26px;min-height:0;
  display:flex;flex:1;flex-direction:column;align-items:flex-start;
}
#harbour-help-panel .hc-help-icon {
  width:51px;height:51px;border-radius:15px;background:#e0efff;
  color:#278BFF;display:grid;place-items:center;margin-bottom:18px;
}
#harbour-help-panel .hc-no-website h3 {margin:0 0 11px;color:#112A4E;font:800 24px/1.2 "Quicksand",sans-serif}
#harbour-help-panel .hc-no-website p {margin:0 0 19px;color:#536f86;font:500 14px/1.7 "Quicksand",sans-serif}
#harbour-help-panel .hc-no-website .hc-subtle {margin-top:18px;font-size:12px;color:#61768a}
#harbour-help-panel .hc-primary-action {
  min-height:48px;background:#278BFF;color:#fff;border:none;border-radius:9px;
  padding:13px 18px;font:800 13px "Quicksand",sans-serif;cursor:pointer;
}
#harbour-help-panel #customer-site-chat.hc-mounted {
  display:flex!important;flex:1;flex-direction:column;min-height:0;
  padding:0;margin:0;background:transparent;border:0;border-radius:0;
}
#harbour-help-panel #customer-site-chat[hidden] {display:none!important}
#harbour-help-panel .customer-site-chat-head {
  display:flex;flex:0 0 auto;justify-content:flex-end;align-items:center;
  padding:9px 16px 8px;margin:0;border-bottom:1px solid #dce9f6;
}
#harbour-help-panel .customer-site-chat-head h3 {display:none}
#harbour-help-panel #customer-chat-refresh {
  border:0;background:transparent;color:#2a6392;padding:6px;
  font:700 12px "Quicksand",sans-serif;cursor:pointer;
}
#harbour-help-panel #customer-chat-list {
  display:flex;flex:1;min-height:80px;max-height:none;
  flex-direction:column;gap:9px;overflow-y:auto;overscroll-behavior:contain;
  padding:16px;margin:0;background:#f8fbff;
}
#harbour-help-panel #customer-chat-list > p {
  color:#536e87;margin:7px 0;font:500 14px/1.6 "Quicksand",sans-serif;
}
#harbour-help-panel .customer-chat-item {
  flex:0 0 auto;max-width:96%;background:#fff;border:1px solid #d8e7f5;
  border-radius:11px;gap:4px;padding:11px 12px;
}
#harbour-help-panel .customer-chat-item strong {font-size:12px;color:#278BFF}
#harbour-help-panel .customer-chat-item small {font-size:10px;color:#67829d}
#harbour-help-panel .customer-chat-item p {font-size:13px;line-height:1.6;color:#25435c}
#harbour-help-panel #customer-chat-form {
  display:grid;gap:8px;flex:0 0 auto;padding:12px 15px;
  background:#fff;border-top:1px solid #d5e5f2;
}
#harbour-help-panel #customer-chat-form label {
  color:#1e496d;font:800 12px "Quicksand",sans-serif;
}
#harbour-help-panel #customer-chat-form textarea {
  width:100%;min-height:70px;max-height:135px;resize:vertical;min-width:0;
  color:#1e4263;background:#f9fcff;border:1px solid #c7dced;
  border-radius:10px;padding:10px 12px;
  font:500 14px/1.5 "Quicksand",sans-serif;
}
#harbour-help-panel #customer-chat-form button {
  min-height:41px;border:0;border-radius:8px;padding:10px 16px;
  background:#278BFF;color:white;font:800 13px "Quicksand",sans-serif;
}
#harbour-help-panel #customer-chat-form button:disabled {opacity:.55;cursor:wait}
#harbour-help-panel #customer-chat-feedback {
  flex:0 0 auto;padding:0 15px 10px;margin:0;background:#fff;
  color:#325f84;font:600 12px/1.4 "Quicksand",sans-serif;
}
#harbour-help-panel #customer-chat-feedback:empty {display:none}
@media(max-width:620px) {
  #harbour-help-launcher {
    right:14px;bottom:calc(18px + env(safe-area-inset-bottom,0px));
    width:59px;height:59px;padding:0;border-radius:50%;
  }
  #harbour-help-launcher .hc-launcher-caption {display:none}
  #harbour-help-panel {
    inset:auto 0 0 0;width:100vw;height:min(88dvh,800px);min-height:0;
    max-height:calc(100dvh - 12px);
    border-radius:19px 19px 0 0;border-bottom:0;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  #harbour-help-panel .hc-header {padding:13px 16px}
  #harbour-help-panel .hc-guided-messages {padding:14px}
  #harbour-help-panel #customer-chat-list {padding:13px}
  #harbour-help-panel .hc-no-website {padding:26px 22px}
}
@media(prefers-reduced-motion:reduce) {#harbour-help-launcher {transition:none}}
@supports selector(body:has(dialog[open])) {
  body:has(dialog[open]) #harbour-help-launcher {display:none}
}
