/* Help button, Sikka's panel, and guided-tour chrome.
   Colors come from the active theme (--s-header-*, --bs-*, --s-accent). */

/* Field-tip captions. The title is the localisation hint. */
.s-PropertyGrid label.caption.s-field-tip {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

button.s-help-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--s-accent, #f2a900);
  background: #fff;
  color: var(--bs-primary, #1f4e99);
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 1px 4px rgba(28, 36, 48, .25);
}

button.s-help-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

button.s-help-open .s-help-open-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.s-sidebar-header-actions button.s-help-open {
  margin-inline-end: 0.75rem;
}

button.s-help-open:hover,
button.s-help-open[aria-expanded="true"] {
  border-color: var(--bs-primary, #3c8dbc);
}

button.s-help-open:focus-visible {
  outline: 2px solid var(--s-accent, #f2a900);
  outline-offset: 2px;
}

button.s-help-open.s-help-open-floating {
  position: fixed;
  z-index: 1045;
  top: auto;
  left: auto;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 3px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--bs-primary, #3c8dbc);
  color: #fff;
  box-shadow: 0 6px 16px rgba(28, 36, 48, .35);
}

button.s-help-open.s-help-open-floating img {
  width: 100%;
  height: 100%;
}

button.s-help-open.s-help-open-floating .s-help-open-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  width: auto;
  height: auto;
  margin: 0;
  padding: 4px 8px;
  overflow: visible;
  clip: auto;
  transform: translateY(-50%);
  border-radius: 8px;
  background: #1c2430;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(28, 36, 48, .25);
}

button.s-help-open.s-help-open-floating:hover .s-help-open-label,
button.s-help-open.s-help-open-floating:focus-visible .s-help-open-label {
  opacity: 1;
}

.s-help-greet {
  position: fixed;
  z-index: 1046;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 168px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #fff;
  color: var(--bs-body-color, #1c2430);
  border: 1px solid var(--bs-primary, #3c8dbc);
  box-shadow: 0 4px 12px rgba(28, 36, 48, .18);
  font-size: 12px;
  font-weight: 700;
}

.s-help-greet img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.s-help-greet p {
  margin: 0;
}

.s-help-tour-unavailable {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bs-warning, #ffc107) 22%, #fff);
  color: var(--bs-body-color, #1c2430);
  font-size: 14px;
}

.s-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(28, 36, 48, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.s-help-backdrop.s-open {
  opacity: 1;
  pointer-events: auto;
}

.s-help-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1080;
  height: 100vh;
  width: 400px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  background: var(--s-card-bg, #fff);
  color: var(--bs-body-color, #1c2430);
  font-family: var(--bs-body-font-family, "Open Sans", sans-serif);
  box-shadow: -8px 0 28px rgba(28, 36, 48, .18);
  transform: translateX(100%);
  transition: transform .28s ease;
}

.s-help-panel.s-open {
  transform: translateX(0);
}

.s-help-panel-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 18px;
  background: var(--s-header-bg, var(--bs-primary, #1f4e99));
  color: var(--s-header-fg, #fff);
}

.s-help-mascot {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.s-help-panel-heading {
  min-width: 0;
  flex: 1 1 auto;
}

.s-help-panel-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .85;
}

.s-help-panel-title {
  margin: 1px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.s-help-panel-hi {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.s-help-panel-close {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.s-help-search {
  flex: 0 0 auto;
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bs-border-color, #e6edf5);
  background: var(--s-card-bg, #fff);
}

.s-help-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.s-help-search input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--bs-border-color, #d5dde8);
  border-radius: 10px;
  background: var(--s-input-bg, #fff);
  color: var(--s-input-text, var(--bs-body-color, #1c2430));
  font: inherit;
  font-size: 16px;
}

.s-help-search input:focus {
  outline: 2px solid var(--s-accent, #f2a900);
  outline-offset: 1px;
  border-color: var(--bs-primary, #1f4e99);
}

.s-help-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.s-help-results-group {
  margin: 0 0 18px;
}

.s-help-results-group h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #5c6b7a);
}

.s-help-result {
  padding: 10px 0;
  border-top: 1px solid var(--bs-border-color, #e6edf5);
}

.s-help-result-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.s-help-result-snippet {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bs-secondary-color, #3c4b5a);
  overflow-wrap: anywhere;
}

.s-help-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
}

.s-help-result-actions button,
.s-help-back {
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--bs-primary, var(--s-header-bg, #1f4e99));
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.s-help-back {
  display: inline-flex;
  margin-bottom: 12px;
}

.s-help-result-actions button:hover,
.s-help-back:hover {
  text-decoration: underline;
}

.s-help-result mark {
  background: color-mix(in srgb, var(--s-accent, #f2a900) 55%, white);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.s-help-howto h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-body-color, #1c2430);
}

.s-help-howto ol {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

.s-help-howto li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.5;
}

.s-help-media {
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bs-primary, var(--s-header-bg, #1f4e99));
}

.s-help-media img,
.s-help-media video {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  background: color-mix(in srgb, var(--bs-primary, #1f4e99) 82%, #000);
}

.s-help-media figcaption {
  margin: 0;
  padding: 8px 12px 10px;
  color: #fff;
  font-size: 13px;
}

.s-help-tour-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--bs-primary, var(--s-header-bg, #1f4e99));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.s-help-tour-start::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.s-help-tour-start:hover {
  background: var(--s-primary-hover, color-mix(in srgb, var(--bs-primary, #1f4e99) 86%, #000));
}

.s-help-training {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--bs-border-color, #d5dde8);
  border-radius: 12px;
  background: var(--s-card-bg, #fff);
}

.s-help-training-title {
  font-weight: 700;
  font-size: 15px;
}

.s-help-training-hint {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--bs-secondary-color, #5c6b7a);
}

.s-help-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5ced6;
  cursor: pointer;
}

.s-help-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}

.s-help-switch[aria-checked="true"] {
  background: var(--bs-success, #1e9e5a);
}

.s-help-switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.s-help-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 8px 18px;
}

.s-help-empty img {
  width: 120px;
  height: auto;
}

.s-help-empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bs-secondary-color, #3c4b5a);
}

.s-help-center-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 700;
  color: var(--bs-primary, var(--s-header-bg, #1f4e99));
}

.s-help-center-link-quiet {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}

/* Guided tour. driver.css supplies the overlay; this restyles the card. */
.driver-active-element {
  outline: 3px solid var(--s-accent, #f2a900) !important;
  outline-offset: 4px;
  border-radius: 10px;
}

.s-help-tour-pop.driver-popover {
  all: revert;
  box-sizing: border-box;
  position: fixed;
  z-index: 1000000000;
  min-width: 300px;
  max-width: 340px;
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--bs-body-color, #1c2430);
  font-family: var(--bs-body-font-family, "Open Sans", sans-serif);
  box-shadow: 0 10px 32px rgba(28, 36, 48, .22);
  overflow: visible;
}

.s-help-tour-pop .driver-popover-arrow {
  border-color: #fff;
}

.s-help-tour-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a97a5;
}

.s-help-tour-pop .driver-popover-title {
  display: block;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bs-secondary-color, #5c6b7a);
}

.s-help-tour-pop .driver-popover-description {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bs-body-color, #1c2430);
}

.s-help-tour-pop.s-help-tour-finale .driver-popover-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bs-body-color, #1c2430);
}

.s-help-tour-pop.s-help-tour-finale .driver-popover-description {
  font-size: 14px;
  font-weight: 500;
}

.s-help-tour-mascot {
  position: absolute;
  left: -46px;
  bottom: -24px;
  width: 92px;
  height: auto;
  pointer-events: none;
}

.s-help-tour-pop .driver-popover-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.s-help-dots {
  display: flex;
  gap: 6px;
  width: 100%;
}

.s-help-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5dde8;
}

.s-help-dots i.s-on {
  background: var(--bs-primary, var(--s-header-bg, #1f4e99));
}

.s-help-tour-pop .s-help-skip {
  all: unset;
  cursor: pointer;
  color: #6b7785;
  font-size: 14px;
  font-weight: 600;
}

.s-help-tour-pop .driver-popover-footer-btns,
.s-help-tour-pop .driver-popover-navigation-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.s-help-tour-pop .driver-popover-prev-btn,
.s-help-tour-pop .driver-popover-next-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.s-help-tour-pop .driver-popover-prev-btn {
  border: 1.5px solid var(--bs-primary, var(--s-header-bg, #1f4e99));
  color: var(--bs-primary, var(--s-header-bg, #1f4e99));
  background: #fff;
}

.s-help-tour-pop .driver-popover-next-btn {
  border: 1.5px solid var(--bs-primary, var(--s-header-bg, #1f4e99));
  background: var(--bs-primary, var(--s-header-bg, #1f4e99));
  color: #fff;
}

.s-help-tour-pop .driver-popover-next-btn::after {
  content: " →";
}

.s-help-tour-pop .driver-popover-next-btn.s-help-done::after {
  content: none;
}

.s-help-tour-pop .driver-popover-close-btn,
.s-help-tour-pop .driver-popover-progress-text {
  display: none;
}

.s-help-summary {
  font-size: 15px;
  color: #3c4b5a;
  background: #f3f8fb;
  border-left: 4px solid #5baec4;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.s-help-section {
  margin-bottom: 16px;
}

.s-help-section h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #2b6f8f;
  text-transform: none;
}

.s-help-section p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #3c4b5a;
}

.s-help-steps {
  margin: 0 0 6px;
  padding-left: 20px;
}

.s-help-steps li {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.55;
  color: #3c4b5a;
}

.s-help-tips-title {
  font-weight: 700;
  color: #8a6d1c;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-help-tips {
  margin: 0 0 6px;
  padding-left: 20px;
}

.s-help-tips li {
  font-size: 14px;
  line-height: 1.55;
  color: #6b5b2a;
  margin-bottom: 4px;
}

/* Related pages */
.s-help-related {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef2f5;
}

.s-help-related h6 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4a5a69;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.s-help-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.s-help-related-list li {
  margin-bottom: 6px;
}

.s-help-related-list a,
.s-help-link {
  color: #2b6f8f;
  text-decoration: none;
  font-size: 14px;
}

.s-help-related-list a:hover,
.s-help-link:hover {
  text-decoration: underline;
}

/* Footer in panel */
.s-help-panel-footer {
  padding: 12px 18px;
  border-top: 1px solid #eef2f5;
  background: #fafcfd;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Help Center page ---- */
.s-help-unknown {
  padding: 14px;
  font-size: 14px;
  color: #8a6020;
  background: #fdf6e7;
  border: 1px solid #f0e0b8;
  border-radius: 4px;
}

.s-helpcenter-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.s-helpcenter-nav {
  flex: 0 0 300px;
}

.s-helpcenter-nav .card-body {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.s-helpcenter-nav .card-body::-webkit-scrollbar {
  width: 8px;
}
.s-helpcenter-nav .card-body::-webkit-scrollbar-thumb {
  background: #cdd8e0;
  border-radius: 5px;
}

.s-helpcenter-module .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background: #f4f8fa;
  border-bottom: 1px solid #e6edf1;
}

.s-helpcenter-module .card-header .mod-title {
  font-weight: 700;
  color: #162a3f;
  font-size: 14px;
}

.s-helpcenter-module .card-header .mod-count {
  font-size: 12px;
  color: #8a97a5;
}

.s-helpcenter-topics {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.s-helpcenter-topics li {
  margin: 0;
}

.s-helpcenter-topics a {
  display: block;
  padding: 7px 16px 7px 26px;
  color: #3c4b5a;
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.s-helpcenter-topics a:hover {
  background: #f0f6f9;
  color: #2b6f8f;
}

.s-helpcenter-topics a.s-active {
  background: #eaf3f7;
  border-left-color: #5baec4;
  color: #1e5e7d;
  font-weight: 600;
}

.s-helpcenter-content {
  flex: 1 1 auto;
  min-width: 0;
}

.s-helpcenter-content .card-header {
  background: linear-gradient(135deg, #f4f8fa, #eef2f5);
  border-bottom: 1px solid #e6edf1;
  padding: 14px 20px;
}

.s-helpcenter-content .card-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #162a3f;
}

.s-helpcenter-content .card-body {
  padding: 22px 24px;
}

.s-helpcenter-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #162a3f;
  margin: 20px 0 8px;
}

.s-helpcenter-item h3:first-child {
  margin-top: 0;
}

.s-helpcenter-coming-soon {
  color: #8a97a5;
  font-style: italic;
  padding: 18px;
  background: #fafcfd;
  border: 1px dashed #d5e0e7;
  border-radius: 6px;
  text-align: center;
}

@media (max-width: 900px) {
  .s-helpcenter-layout {
    flex-direction: column;
  }
  .s-helpcenter-nav {
    flex: 1 1 auto;
    width: 100%;
  }
}