#sap-help {
  --sap-ink: #142c46;
  --sap-blue: #2359a3;
  --sap-navy: #193955;
  --sap-line: #ccd9e8;
  --sap-muted: #495e75;
  box-sizing: border-box;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10000;
  width: min(500px, calc(100% - 44px));
  pointer-events: none;
  color: var(--sap-ink);
  font: 400 16px/1.45 Roboto, Arial, sans-serif;
  text-align: left;
}
#sap-help *, #sap-help *::before, #sap-help *::after { box-sizing: border-box; }
#sap-help [hidden], #sap-help[hidden] { display: none !important; }
#sap-help button, #sap-help input, #sap-help textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}
#sap-help button { cursor: pointer; }
#sap-help :is(button,input,textarea):focus-visible, #sap-help .sap-help-upload:focus-within {
  outline: 3px solid #2984d4;
  outline-offset: 2px;
}
#sap-help .sap-help-launch, #sap-help .sap-help-panel { pointer-events: auto; }
#sap-help .sap-help-launch {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 375px;
  max-width: 100%;
  margin-left: auto;
  padding: 13px 17px 13px 13px;
  border: 1px solid #3769a3;
  border-radius: 14px;
  background: linear-gradient(132deg, #22579c, #183955);
  color: white;
  text-align: left;
  box-shadow: 0 10px 26px #0d203e59;
}
#sap-help .sap-help-launch:hover { background: linear-gradient(132deg, #2c66ae, #214665); }
#sap-help .sap-help-launch strong { display: block; font-size: 19px; line-height: 1.2; font-weight: 700; }
#sap-help .sap-help-launch small { display: block; color: #e6effa; margin-top: 4px; font-size: 14px; }
#sap-help .sap-help-arrow { color: #e7f1ff; font-size: 21px; margin-left: auto; }
#sap-help .sap-help-dot {
  display: inline-block;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  vertical-align: 1px;
  background: #a7bfd7;
}
#sap-help[data-online="true"] .sap-help-dot { background: #8de6aa; }
#sap-help .sap-help-camera {
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff27;
}
#sap-help .sap-help-camera::before {
  content: "";
  width: 20px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
}
#sap-help .sap-help-camera::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 1.6px solid currentColor;
  border-radius: 100%;
}
#sap-help .sap-help-launch .sap-help-camera { width: 48px; height: 48px; }
#sap-help .sap-help-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 44px);
  background: #fff;
  border: 1px solid #cbd9e7;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 15px 45px #0d203e50;
  overscroll-behavior: contain;
}
#sap-help .sap-help-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 16px 22px;
  color: #fff;
  background: linear-gradient(120deg, #193955 0%, #2c6197 100%);
}
#sap-help .sap-help-head strong { font-size: 20px; font-weight: 700; }
#sap-help .sap-help-head p { color: #e6effa; font-size: 14px; margin: 2px 0 0; }
#sap-help .sap-help-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff50;
  border-radius: 8px;
  color: white;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}
#sap-help .sap-help-close:hover { background: #ffffff26; }
#sap-help .sap-help-body { padding: 19px 22px 22px; overflow-y: auto; }
#sap-help .sap-help-form { display: grid; gap: 10px; margin: 0; }
#sap-help .sap-help-followup { color: var(--sap-muted); margin: 0; }
#sap-help .sap-help-part {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 12px;
}
#sap-help .sap-help-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  aspect-ratio: 1;
  padding: 8px;
  margin: 0;
  text-align: center;
  border: 1px dashed #7e9ec5;
  border-radius: 10px;
  cursor: pointer;
  background: #f3f7fc;
  color: #204d8e;
}
#sap-help .sap-help-upload:hover { background: #eaf2fc; }
#sap-help .sap-help-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#sap-help .sap-help-upload .sap-help-camera { background: #ddeafa; }
#sap-help .sap-help-upload strong { font-weight: 700; }
#sap-help .sap-help-upload small { display: block; font-size: 12px; color: var(--sap-muted); }
#sap-help .sap-help-field { display: grid; gap: 4px; font-weight: 600; color: var(--sap-ink); }
#sap-help .sap-help-comment { grid-template-rows: auto 1fr; margin: 0; }
#sap-help .sap-help-field small { color: var(--sap-muted); font-weight: 400; padding-left: 4px; }
#sap-help .sap-help-field :is(input,textarea) {
  padding: 8px 9px;
  color: var(--sap-ink);
  border: 1px solid var(--sap-line);
  border-radius: 7px;
  background: #fff;
  width: 100%;
  box-shadow: none;
  min-height: 38px;
}
#sap-help .sap-help-field textarea { resize: vertical; }
#sap-help .sap-help-field :is(input,textarea)::placeholder { color: #586e85; }
#sap-help .sap-help-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--sap-blue);
  border-radius: 7px;
  font-weight: 700;
}
#sap-help .sap-help-send { background: var(--sap-blue); color: #fff; }
#sap-help .sap-help-send:hover { background: #184880; }
#sap-help .sap-help-send:disabled { opacity: .65; cursor: wait; }
#sap-help .sap-help-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
#sap-help .sap-help-files li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: #f3f7fc;
  border-radius: 6px;
  padding: 4px 5px;
}
#sap-help .sap-help-files img { width: 29px; height: 29px; border-radius: 3px; object-fit: cover; }
#sap-help .sap-help-files span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sap-help .sap-help-files button { padding: 4px 6px; background: transparent; color: #204d8e; border: 0; }
#sap-help .sap-help-result { margin: 9px 0 0 !important; font-size: 13px; font-weight: 600; }
#sap-help .sap-help-result:empty { display: none; }
#sap-help .sap-help-result[data-state="error"] { color: #a52832; }
#sap-help .sap-help-result[data-state="success"] { color: #19643b; }
@media (max-width: 767px), (max-width: 950px) and (max-height: 560px) and (pointer: coarse) {
  #sap-help .sap-help-launch {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 24px);
    min-height: 44px;
    gap: 8px;
    margin: 0;
    padding: 6px 11px 6px 8px;
    border-radius: 14px;
    box-shadow: 0 3px 10px #0d203e40;
  }
  #sap-help .sap-help-launch strong {
    max-width: 15ch;
    font-size: 13px;
    line-height: 1.15;
    white-space: normal;
    text-wrap: balance;
  }
  #sap-help .sap-help-launch .sap-help-camera { width: 26px; height: 26px; border-radius: 7px; }
  #sap-help .sap-help-launch small, #sap-help .sap-help-launch .sap-help-arrow { display: none; }
}
@media (max-width: 480px) {
  #sap-help { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  #sap-help .sap-help-panel { max-height: calc(100dvh - max(12px, env(safe-area-inset-bottom)) - 12px); }
  #sap-help .sap-help-head { padding: 12px 13px 12px 16px; }
  #sap-help .sap-help-body { padding: 16px; }
  #sap-help .sap-help-part { grid-template-columns: min(128px, 40%) minmax(0, 1fr); gap: 9px; }
  #sap-help .sap-help-upload strong { font-size: 14px; }
}

#sap-help .sap-help-welcome { display: grid; gap: 10px; }
#sap-help .sap-help-welcome h2 { margin: 0; color: var(--sap-ink); font: 700 26px/1.2 Roboto, Arial, sans-serif; letter-spacing: -.02em; }
#sap-help .sap-help-welcome p { margin: 0 0 5px; font-size: 15px; line-height: 1.5; color: var(--sap-muted); }
#sap-help .sap-help-welcome .sap-help-tip { margin: 3px 0 0; padding-top: 12px; border-top: 1px solid #dce5ee; font-size: 13px; }
#sap-help .sap-help-choice { display: grid; grid-template-columns: 42px minmax(0,1fr) 12px; gap: 12px; align-items: center; padding: 13px 14px; width: 100%; min-height: 70px; border: 1px solid #c9d9eb; border-radius: 10px; background: #fff; color: var(--sap-ink); text-align: left; box-shadow: none; white-space: normal; }
#sap-help .sap-help-choice:hover { background: #f2f7fd; border-color: #648ab8; }
#sap-help .sap-help-choice strong { display: block; font-size: 17px; line-height: 1.25; font-weight: 700; }
#sap-help .sap-help-choice small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--sap-muted); }
#sap-help .sap-help-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #e9f1fb; color: #2359a3; border-radius: 10px; }
#sap-help .sap-help-icon svg { width: 24px; height: 24px; }
#sap-help .sap-help-chevron { color: #31609a; font-size: 24px; line-height: 1; }
#sap-help .sap-help-back { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; margin: 0 0 9px; color: #2359a3; background: transparent; border: none; box-shadow: none; font-size: 14px; font-weight: 600; }
