.web-support-launcher,
.web-support-dialog {
  --ws-blue:#075bc3;
  --ws-deep:#172337;
  --ws-muted:#536379;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-sizing:border-box;
}
.web-support-launcher {
  position:fixed;
  z-index:510;
  inset:auto max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:10px 15px;
  color:#fff;
  background:var(--ws-blue);
  border:1px solid #004fac;
  border-radius:999px;
  box-shadow:0 5px 18px #1b427344;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}
.web-support-launcher:hover,
.web-support-primary:hover { background:#084b9e; }
.web-support-dialog {
  color-scheme:light;
  position:fixed;
  inset:auto max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) auto;
  width:min(440px,calc(100vw - 36px));
  max-height:min(660px,calc(100dvh - 36px));
  height:min(585px,calc(100dvh - 36px));
  margin:0;
  padding:0;
  border:1px solid #d9e2ee;
  border-radius:20px;
  color:var(--ws-deep);
  background:#fff;
  box-shadow:0 18px 80px #0b1f483b;
  overflow:auto;
}
.web-support-dialog:not([open]),
.web-support-dialog [hidden] { display:none !important; }
.web-support-dialog::backdrop { background:#09162c53; }
.web-support-window {
  display:flex;
  flex-direction:column;
  min-height:100%;
  height:100%;
  min-width:0;
  padding:16px;
  gap:9px;
}
.web-support-window, .web-support-window * { box-sizing:border-box; }
.web-support-window p { margin:0; }
.web-support-header { display:flex;align-items:center;gap:11px; }
.web-support-header h2 { color:var(--ws-deep);font-size:19px;line-height:1.3;margin:0;flex:1; }
.web-support-brand {
  color:#fff;
  background:#113861;
  min-width:37px;
  padding:4px 7px;
  border-radius:8px;
  font-weight:700;
  font-size:13px;
  letter-spacing:.04em;
  text-align:center;
}
.web-support-close, .web-support-text-button, .web-support-primary {
  font:inherit;
  cursor:pointer;
}
.web-support-close {
  margin:auto -3px auto auto;
  width:38px;height:38px;
  color:#263b57;
  background:#f1f5fb;
  border:1px solid #e5ebf5;
  border-radius:50%;
  font-size:25px;
  line-height:1;
}
.web-support-close:hover { background:#e4ecf8; }
.web-support-intro,.web-support-actions,.web-support-error,.web-support-label {
  color:var(--ws-muted);
  font-size:13px;
  line-height:1.45;
}
.web-support-actions { display:flex;align-items:center;gap:6px;justify-content:space-between;min-height:24px; }
.web-support-text-button {
  display:inline-block;
  color:var(--ws-blue);
  background:none;
  border:0;
  padding:4px 2px;
  text-decoration:underline;
  text-underline-offset:.16em;
  font-size:13px;
}
.web-support-text-button:disabled,.web-support-primary:disabled { opacity:.58;cursor:default; }
.web-support-history {
  flex:1 1 165px;
  min-height:82px;
  overflow:auto;
  overscroll-behavior:contain;
  background:#f3f6fb;
  border:1px solid #e4ebf5;
  border-radius:12px;
  padding:10px;
  font-size:14px;
}
.web-support-empty { color:var(--ws-muted);font-size:13px;line-height:1.5; }
.web-support-messages {
  display:flex;
  flex-direction:column;
  list-style:none;
  gap:9px;
  padding:0;
  margin:0;
}
.web-support-messages li {
  width:fit-content;
  max-width:min(100%,305px);
  background:#fff;
  border:1px solid #dfe9f5;
  color:var(--ws-deep);
  border-radius:11px;
  padding:7px 10px;
}
.web-support-messages li.web-support-own {
  align-self:flex-end;
  background:#e3efff;
  border-color:#cfdff4;
}
.web-support-messages li span { color:var(--ws-muted);font-size:11px;line-height:1.4; }
.web-support-messages li p { overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5; }
.web-support-error { color:#a22d2d; }
.web-support-form { display:grid;gap:5px; }
.web-support-label { color:var(--ws-deep);font-weight:650; }
.web-support-form textarea {
  display:block;
  width:100%;
  min-height:58px;
  max-height:108px;
  padding:8px 9px;
  border:1px solid #a8bdd5;
  border-radius:10px;
  background:#fff;
  color:var(--ws-deep);
  font:inherit;
  font-size:16px;
  resize:vertical;
}
.web-support-compose-actions { display:flex;align-items:center;justify-content:space-between; }
.web-support-count { color:var(--ws-muted);font-size:11px; }
.web-support-primary {
  min-height:38px;
  padding:7px 14px;
  color:#fff;
  background:var(--ws-blue);
  border:1px solid transparent;
  border-radius:9px;
  font-size:14px;
  font-weight:650;
}
.web-support-dialog :focus-visible,
.web-support-launcher:focus-visible { outline:2px solid #1378e6;outline-offset:2px; }
@media (max-width:580px) {
  .web-support-launcher {
    inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto;
  }
  .web-support-dialog {
    inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;
    max-width:none;
    width:auto;
    height:min(600px,calc(100dvh - 16px));
    max-height:calc(100dvh - 16px);
    border-radius:15px;
  }
  .web-support-window { padding:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .web-support-dialog *, .web-support-launcher { scroll-behavior:auto !important; }
}
