.cloud-portal-app .tb-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.cloud-portal-app .tb-help:hover {
  background: rgba(255, 255, 255, .21);
}

.cloud-portal-app .tb-help:focus-visible {
  outline: 3px solid rgba(245, 202, 84, .7);
  outline-offset: 2px;
}

.cloud-portal-app .tb-help-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #174936;
  font-family: Arial, sans-serif;
  font-size: .75rem;
  font-weight: 900;
}

.cloud-portal-app .tb-help.has-onboarding::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border: 2px solid #174936;
  border-radius: 999px;
  background: #f4ca56;
}

.portal-help-root[hidden] {
  display: none !important;
}

.portal-help-root {
  position: fixed;
  z-index: 12000;
  inset: 0;
  font-family: var(--sans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.portal-help-overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(9, 29, 22, .42);
  cursor: default;
  backdrop-filter: blur(1px);
}

.portal-help-panel {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  display: grid;
  width: min(440px, calc(100vw - 28px));
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 1px solid #d8d0be;
  background: #f8f6ef;
  color: #24342c;
  box-shadow: -18px 0 48px rgba(9, 29, 22, .22);
  animation: portal-help-in .2s ease-out;
}

@keyframes portal-help-in {
  from { transform: translateX(24px); opacity: .4; }
  to { transform: translateX(0); opacity: 1; }
}

.portal-help-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #dfd8c8;
  background: #fff;
}

.portal-help-panel > header > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.portal-help-panel > header h1 {
  margin: 0;
  color: #143d2d;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.25rem;
  line-height: 1.1;
}

.portal-help-panel > header p {
  margin: 4px 0 0;
  color: #657068;
  font-size: .8rem;
  line-height: 1.35;
}

.portal-help-panel > header > button {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #d9d1bf;
  border-radius: 9px;
  background: #fff;
  color: #143d2d;
  font-size: 1.35rem;
  cursor: pointer;
}

.portal-help-panel > header > button:hover {
  background: #f1eee5;
}

.portal-help-brand {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #174936;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.portal-help-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #dfd8c8;
  background: #fff;
}

.portal-help-tabs button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #56635b;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.portal-help-tabs button:hover {
  background: #f1eee5;
}

.portal-help-tabs button.on {
  background: #e5eee8;
  color: #143d2d;
  box-shadow: inset 0 0 0 1px #bdd0c4;
}

.portal-help-body {
  min-height: 0;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
}

.portal-help-view-head {
  margin-bottom: 13px;
}

.portal-help-view-head > span,
.portal-help-topic-kicker {
  display: block;
  color: #8b6d1d;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-help-view-head h2 {
  margin: 5px 0 0;
  color: #143d2d;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.4rem;
  line-height: 1.15;
}

.portal-help-view-head p {
  margin: 6px 0 0;
  color: #5f6962;
  font-size: .86rem;
  line-height: 1.5;
}

.portal-help-topic {
  padding: 15px;
  border: 1px solid #dbd3c1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 61, 45, .06);
}

.portal-help-topic h3 {
  margin: 5px 0 0;
  color: #143d2d;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.08rem;
  line-height: 1.25;
}

.portal-help-summary {
  margin: 7px 0 0;
  color: #3e4a43;
  font-size: .88rem;
  line-height: 1.52;
}

.portal-help-topic dl {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
}

.portal-help-topic dl > div {
  padding-top: 9px;
  border-top: 1px solid #ebe6da;
}

.portal-help-topic dt {
  color: #6b736d;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portal-help-topic dd {
  margin: 3px 0 0;
  color: #334039;
  font-size: .82rem;
  line-height: 1.48;
}

.portal-help-topic.compact {
  margin-top: 9px;
  padding: 12px;
  box-shadow: none;
}

.portal-help-topic.compact h3 {
  font-size: .97rem;
}

.portal-help-topic.compact .portal-help-summary {
  font-size: .8rem;
}

.portal-help-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #174936;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
}

.portal-help-action:hover {
  background: #226a4a;
}

.portal-help-primary {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  padding: 9px 13px;
  border: 1px solid #174936;
  border-radius: 10px;
  background: #174936;
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 850;
  cursor: pointer;
}

.portal-help-primary:hover {
  background: #226a4a;
}

.portal-help-primary:disabled {
  border-color: #c8c3b7;
  background: #e7e3d9;
  color: #747a75;
  cursor: not-allowed;
}

.portal-help-muted {
  margin: 8px 2px 0;
  color: #69716c;
  font-size: .76rem;
  line-height: 1.45;
  text-align: center;
}

.portal-help-text-button {
  margin-top: 14px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #174936;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.portal-help-progress {
  height: 8px;
  margin: 2px 0 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ded2;
}

.portal-help-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #174936, #2e8261);
  transition: width .2s ease;
}

.portal-help-checklist {
  display: grid;
  gap: 9px;
}

.portal-help-check-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #ddd5c4;
  border-radius: 11px;
  background: #fff;
}

.portal-help-checklist label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.portal-help-checklist input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #174936;
}

.portal-help-checklist b {
  display: block;
  color: #26372e;
  font-size: .84rem;
  line-height: 1.4;
}

.portal-help-checklist a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid #c9d6cd;
  border-radius: 7px;
  color: #174936;
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
}

.portal-help-success {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #bed8c8;
  border-radius: 10px;
  background: #e9f3ed;
  color: #174936;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.45;
}

.portal-help-privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 12px;
  padding: 10px 11px;
  border: 1px solid #cbded2;
  border-radius: 10px;
  background: #edf5f0;
  color: #294436;
}

.portal-help-privacy span {
  font-weight: 900;
}

.portal-help-privacy p {
  margin: 0;
  font-size: .77rem;
  line-height: 1.42;
}

.portal-help-chat {
  display: grid;
  gap: 10px;
  max-height: min(430px, 48vh);
  padding: 2px 2px 10px;
  overflow: auto;
  overscroll-behavior: contain;
}

.portal-help-message {
  max-width: 94%;
  padding: 11px;
  border-radius: 12px 12px 12px 3px;
  background: #ece9df;
  color: #334039;
}

.portal-help-message.user {
  justify-self: end;
  border-radius: 12px 12px 3px 12px;
  background: #174936;
  color: #fff;
}

.portal-help-message > p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.48;
}

.portal-help-message > b {
  display: block;
  margin-bottom: 2px;
  color: #143d2d;
  font-size: .78rem;
}

.portal-help-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.portal-help-suggestions button {
  padding: 6px 9px;
  border: 1px solid #b9cbbf;
  border-radius: 999px;
  background: #fff;
  color: #174936;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}

.portal-help-ask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 10px;
}

.portal-help-ask input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfc7b6;
  border-radius: 9px;
  background: #fff;
  color: #24342c;
  font: inherit;
  font-size: .82rem;
}

.portal-help-ask button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #174936;
  border-radius: 9px;
  background: #174936;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
}

.portal-help-panel > footer {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 10px 15px;
  border-top: 1px solid #dfd8c8;
  background: #fff;
  color: #69716c;
  font-size: .7rem;
  line-height: 1.4;
}

.portal-help-panel :focus-visible,
.portal-help-pick-banner :focus-visible {
  outline: 3px solid rgba(44, 122, 89, .34);
  outline-offset: 2px;
}

body.portal-help-open {
  overflow: hidden;
}

body.portal-help-picking,
body.portal-help-picking * {
  cursor: help !important;
}

body.portal-help-picking .portal-help-pick-banner,
body.portal-help-picking .portal-help-pick-banner * {
  cursor: default !important;
}

body.portal-help-picking .portal-help-pick-banner button {
  cursor: pointer !important;
}

body.portal-help-picking::before {
  content: "";
  position: fixed;
  z-index: 11800;
  inset: 0;
  background: rgba(9, 29, 22, .3);
  pointer-events: none;
}

.portal-help-pick-target {
  position: relative !important;
  z-index: 11900 !important;
  outline: 4px solid #f0bf32 !important;
  outline-offset: 4px !important;
  border-radius: 8px;
  background-color: rgba(255, 247, 205, .16) !important;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .88) !important;
}

.portal-help-pick-target:hover,
.portal-help-pick-target:focus {
  outline-color: #fff !important;
  box-shadow: 0 0 0 8px #f0bf32 !important;
}

.portal-help-pick-banner {
  position: fixed;
  z-index: 13000;
  left: 50%;
  bottom: 22px;
  display: flex;
  width: min(680px, calc(100vw - 28px));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateX(-50%);
  padding: 11px 12px 11px 15px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 12px;
  background: #143d2d;
  color: #fff;
  box-shadow: 0 16px 42px rgba(9, 29, 22, .32);
  font-size: .82rem;
  line-height: 1.4;
}

.portal-help-pick-banner button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  background: #fff;
  color: #143d2d;
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}

.portal-help-panel .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .cloud-portal-app .tb-help-label {
    display: none;
  }

  .cloud-portal-app .tb-help {
    width: 34px;
    min-width: 34px;
    padding: 5px;
  }
}

@media (max-width: 620px) {
  .portal-help-panel {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(88vh, 760px);
    border-top: 1px solid #d8d0be;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    animation-name: portal-help-up;
  }

  @keyframes portal-help-up {
    from { transform: translateY(24px); opacity: .4; }
    to { transform: translateY(0); opacity: 1; }
  }

  .portal-help-panel > header {
    padding: 14px 14px 11px;
  }

  .portal-help-body {
    padding: 14px;
  }

  .portal-help-pick-banner {
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-help-panel {
    animation: none;
  }

  .portal-help-progress i {
    transition: none;
  }
}
