.help-tools-page.help-overlay-open {
  overflow: hidden;
}

.help-tools-page.help-overlay-open > header,
.help-tools-page.help-overlay-open > main,
.help-tools-page.help-overlay-open > footer,
.help-tools-page.help-overlay-open > .back-to-top,
.help-tools-page.help-overlay-open > #paintChatbot {
  filter: blur(3px);
  transition: filter 0.18s ease;
}

.small-tool-card.is-interactive {
  position: relative;
  width: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

button.small-tool-card {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

a.small-tool-card:hover,
a.small-tool-card:focus,
a.small-tool-card:active {
  color: inherit;
  text-decoration: none;
}

.small-tool-card.is-interactive::after {
  position: absolute;
  right: 17px;
  bottom: 17px;
  content: "\f105";
  color: var(--nash-red);
  font-family: FontAwesome;
  font-size: 16px;
  line-height: 1;
  opacity: 0.9;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.small-tool-card.is-interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 10, 24, 0.22);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
}

.small-tool-card.is-interactive:hover::after {
  transform: translateX(4px);
}

.hto-overlay[hidden] {
  display: none;
}

.hto-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 22px;
}

.hto-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 21, 35, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hto-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(4, 21, 35, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hto-overlay.is-open .hto-backdrop,
.hto-overlay.is-open .hto-dialog {
  opacity: 1;
}

.hto-overlay.is-open .hto-dialog {
  transform: translateY(0) scale(1);
}

.hto-dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px 28px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 26, 40, 0.09);
}

.hto-title-block h2 {
  margin: 0;
  color: var(--nash-ink);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hto-title-block p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--nash-muted);
  font-size: 15px;
  line-height: 1.5;
}

.hto-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nash-ink);
  background: #fff5f5;
  border: 1px solid rgba(225, 10, 24, 0.18);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hto-close:hover {
  color: #ffffff;
  background: var(--nash-red);
  transform: rotate(90deg);
}

.hto-body {
  min-height: 0;
  overflow: auto;
  padding: 22px 28px 24px;
  scroll-behavior: smooth;
}

.hto-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #ffffff;
  border-top: 1px solid rgba(16, 26, 40, 0.09);
}

.hto-status {
  min-height: 20px;
  color: #4f5966;
  font-size: 13px;
  line-height: 1.35;
}

.hto-control-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.hto-search {
  position: relative;
}

.hto-search label,
.hto-filter-label {
  display: block;
  margin: 0 0 7px;
  color: var(--nash-ink);
  font-size: 13px;
  font-weight: 700;
}

.hto-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 43px;
  color: var(--nash-ink);
  background: #fbfcfe;
  border: 1px solid rgba(16, 26, 40, 0.12);
  border-radius: 10px;
  font-size: 15px;
}

.hto-search i {
  position: absolute;
  left: 16px;
  bottom: 15px;
  color: var(--nash-red);
}

.hto-chip-row,
.hto-tag-row,
.hto-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hto-chip,
.hto-tag,
.hto-action,
.hto-link-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--nash-ink);
  background: #ffffff;
  border: 1px solid rgba(16, 26, 40, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hto-chip.is-active,
.hto-tag.is-active,
.hto-action.is-primary,
.hto-link-action.is-primary {
  color: #ffffff;
  background: var(--nash-red);
  border-color: var(--nash-red);
}

.hto-chip:hover,
.hto-tag:hover,
.hto-action:hover,
.hto-link-action:hover {
  color: #ffffff;
  background: var(--nash-red);
  border-color: var(--nash-red);
  text-decoration: none;
}

.hto-action:disabled,
.hto-action:disabled:hover {
  color: var(--nash-muted);
  background: #f3f5f8;
  border-color: rgba(16, 26, 40, 0.1);
  cursor: not-allowed;
  opacity: 0.62;
}

.hto-link-action {
  text-decoration: none;
}

.hto-workspace {
  display: grid;
  gap: 18px;
}

.hto-workspace--split {
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.45fr);
  align-items: start;
}

.hto-results {
  display: grid;
  gap: 10px;
}

.hto-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hto-result-card {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 15px;
  color: var(--nash-ink);
  text-align: left;
  background: #fbfcfe;
  border: 1px solid rgba(16, 26, 40, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hto-result-card:hover,
.hto-result-card.is-selected {
  border-color: rgba(225, 10, 24, 0.38);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.09);
  transform: translateY(-1px);
}

.hto-result-card strong {
  color: var(--nash-ink);
  font-size: 15px;
  line-height: 1.25;
}

.hto-result-card span,
.hto-result-card small {
  color: var(--nash-muted);
  font-size: 13px;
  line-height: 1.4;
}

.hto-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: var(--nash-red);
  background: #fff0f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hto-detail {
  min-width: 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(16, 26, 40, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.08);
}

.hto-detail h3 {
  margin: 0;
  color: var(--nash-ink);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hto-detail h4 {
  margin: 22px 0 10px;
  color: var(--nash-ink);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hto-detail p,
.hto-detail li,
.hto-empty {
  color: #263241;
  font-size: 14px;
  line-height: 1.62;
}

.hto-detail p {
  margin: 10px 0 0;
}

.hto-detail ul,
.hto-detail ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.hto-detail-grid,
.hto-product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hto-info-box {
  padding: 15px;
  background: #fbfcfe;
  border: 1px solid rgba(16, 26, 40, 0.09);
  border-radius: 12px;
}

.hto-info-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--nash-ink);
  font-size: 13px;
}

.hto-warning {
  margin-top: 18px;
  padding: 14px 16px;
  color: #433015;
  background: #fff7e3;
  border: 1px solid #f1d79a;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.hto-product-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.hto-product-card img,
.hto-video-thumb img {
  width: 100%;
  height: 74px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f5f8;
}

.hto-product-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.hto-product-hero img {
  width: 160px;
  height: 130px;
  object-fit: contain;
  background: #fbfcfe;
  border: 1px solid rgba(16, 26, 40, 0.08);
  border-radius: 14px;
}

.hto-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.hto-player-panel {
  min-width: 0;
  padding: 16px;
  background: #101a28;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.13);
}

.hto-player-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  border-radius: 12px;
}

.hto-player-panel h3,
.hto-player-panel p,
.hto-player-panel label {
  color: #ffffff;
}

.hto-player-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.hto-player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hto-player-controls select {
  min-height: 40px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.hto-video-thumb {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.hto-favorite {
  color: var(--nash-red);
}

.hto-empty {
  padding: 22px;
  background: #fbfcfe;
  border: 1px dashed rgba(16, 26, 40, 0.18);
  border-radius: 14px;
}

.hto-print-region {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hto-backdrop,
  .hto-dialog,
  .small-tool-card.is-interactive,
  .small-tool-card.is-interactive::after,
  .hto-close,
  .hto-result-card {
    transition: none;
  }
}

@media only screen and (max-width: 991px) {
  .hto-overlay {
    padding: 24px 18px;
  }

  .hto-dialog {
    width: 92vw;
    max-height: 90vh;
  }

  .hto-workspace--split,
  .hto-video-layout {
    grid-template-columns: 1fr;
  }

  .hto-results-grid,
  .hto-detail-grid,
  .hto-product-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 767px) {
  .help-tools-page.help-overlay-open > header,
  .help-tools-page.help-overlay-open > main,
  .help-tools-page.help-overlay-open > footer,
  .help-tools-page.help-overlay-open > .back-to-top,
  .help-tools-page.help-overlay-open > #paintChatbot {
    filter: blur(2px);
  }

  .hto-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .hto-dialog {
    width: 100%;
    max-height: min(94vh, 100dvh);
    border-radius: 20px 20px 0 0;
  }

  .hto-dialog-header {
    padding: 18px 18px 15px;
  }

  .hto-title-block h2 {
    font-size: 23px;
  }

  .hto-body {
    padding: 18px;
  }

  .hto-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }

  .hto-action-row,
  .hto-chip-row,
  .hto-tag-row {
    width: 100%;
  }

  .hto-action,
  .hto-link-action,
  .hto-chip,
  .hto-tag {
    min-height: 44px;
  }

  .hto-detail {
    padding: 18px;
    border-radius: 14px;
  }

  .hto-product-hero,
  .hto-product-card,
  .hto-video-thumb {
    grid-template-columns: 1fr;
  }

  .hto-product-hero img {
    width: 100%;
    height: 170px;
  }
}

@media print {
  body.help-printing > *:not(.hto-print-region) {
    display: none !important;
  }

  body.help-printing .hto-print-region {
    display: block !important;
    padding: 0;
    color: #111111;
    background: #ffffff;
  }

  .hto-print-region h1,
  .hto-print-region h2,
  .hto-print-region h3 {
    color: #111111;
  }

  .hto-print-region p,
  .hto-print-region li {
    color: #222222;
    font-size: 11pt;
    line-height: 1.45;
  }

  .hto-print-region a {
    color: #111111;
    text-decoration: none;
  }
}
