/* Orchid-GRP analysis tools
   This layer is intentionally scoped to .tool-page so database and home pages
   keep their own presentation. It loads after each imported tool's legacy CSS. */

body.tool-page {
  --tool-orchid-ink: #4f1830;
  --tool-orchid-deep: #8f2248;
  --tool-orchid-plum: #c4477f;
  --tool-orchid-rose: #df7ba1;
  --tool-orchid-blush: #fff1f6;
  --tool-orchid-mist: #fff8fb;
  --tool-orchid-line: rgba(184, 70, 112, 0.2);
  --tool-orchid-soft-line: rgba(184, 70, 112, 0.12);
  --tool-orchid-shadow: 0 22px 54px rgba(122, 42, 76, 0.12);
}

body.tool-page .site-content {
  padding: 0 0 3rem;
}

body.tool-page .content-box-wrapper > * {
  position: relative;
  z-index: 1;
}

/* Legacy tool styles sometimes declare a global .container width. Keep those
   declarations inside the tool content from changing the shared site chrome. */
@media (min-width: 1200px) {
  body.tool-page > .navbar > .container,
  body.tool-page > .site-footer > .container {
    max-width: var(--orchid-layout-max) !important;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* A few imported templates use Bootstrap 5 spacing helpers while the shared
   site shell is Bootstrap 4. Keep those helpers predictable without loading a
   second framework over the global navigation. */
body.tool-page .site-content .me-1 { margin-right: 0.25rem !important; }
body.tool-page .site-content .me-2 { margin-right: 0.5rem !important; }
body.tool-page .site-content .me-3 { margin-right: 1rem !important; }
body.tool-page .site-content .ms-1 { margin-left: 0.25rem !important; }
body.tool-page .site-content .ms-2 { margin-left: 0.5rem !important; }
body.tool-page .site-content .ps-1 { padding-left: 0.25rem !important; }
body.tool-page .site-content .text-end { text-align: right !important; }
body.tool-page .site-content .fw-semibold { font-weight: 600 !important; }
body.tool-page .site-content .fw-bold { font-weight: 700 !important; }
body.tool-page .site-content .visually-hidden {
  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;
}

/* Bootstrap 5 gutter helpers used by the imported tool forms. The site shell
   remains on Bootstrap 4, so reproduce only the layout utilities the tools
   actually use. */
body.tool-page .site-content .row.g-3,
body.tool-page .site-content .row.g-4 {
  margin-top: -1rem;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

body.tool-page .site-content .row.g-3 > [class*="col-"],
body.tool-page .site-content .row.g-4 > [class*="col-"] {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

body.tool-page .site-content .row.g-3 > [class*="col-"] {
  margin-top: 1rem;
}

body.tool-page .site-content .row.g-4 {
  margin-top: -1.5rem;
}

body.tool-page .site-content .row.g-4 > [class*="col-"] {
  margin-top: 1.5rem;
}

body.tool-page .site-content > .container {
  width: 100%;
  max-width: var(--orchid-layout-max) !important;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

body.tool-page .section-container > .container,
body.tool-page .legacy-tool-page > .container,
body.tool-page .legacy-tool-page .main-container {
  width: calc(100% - 30px);
  max-width: var(--orchid-layout-max) !important;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 1200px) {
  body.tool-page .site-content > .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

body.tool-page .section-container,
body.tool-page .legacy-tool-page {
  margin: 0 !important;
  padding: 0 !important;
}

body.tool-page .content-box-wrapper,
body.tool-page .legacy-tool-page > .content-wrapper,
body.tool-page .legacy-tool-page .main-container > .content-wrapper {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 30px);
  max-width: 1110px;
  margin-top: 3rem !important;
  margin-right: auto !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  padding: 30px 36px !important;
  border: 1px solid #eed5df !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow:
    0 2px 24px rgba(143, 34, 72, 0.05),
    0 8px 40px rgba(143, 34, 72, 0.04) !important;
}

body.tool-page .container > .content-box-wrapper,
body.tool-page .legacy-tool-page .main-container > .content-wrapper {
  width: 100%;
  max-width: 100%;
}

/* The form shares the wide, padded surface with the tool title and introduction. */
body.tool-page .content-box-wrapper.tool-workspace {
  width: 100%;
  max-width: 876px;
}

body.tool-page .tool-workspace > .row > :has(> form, > .custom-form-card > form, > p:only-child) {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
}

body.tool-page .tool-workspace > .row:has(> div > p:only-child) {
  margin-bottom: 1.5rem !important;
}

body.tool-page .tool-workspace > .row > div > p:only-child {
  text-align: start !important;
}

body.tool-page .section-title,
body.tool-page .pipeline-title,
body.tool-page .legacy-tool-page > h1,
body.tool-page .legacy-tool-page > h2,
body.tool-page .legacy-tool-page > h3,
body.tool-page .content-box-wrapper > h1,
body.tool-page .content-box-wrapper > h2,
body.tool-page .content-box-wrapper > h3 {
  margin-top: 0;
  color: var(--tool-orchid-deep) !important;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

body.tool-page .section-title,
body.tool-page .pipeline-title {
  margin-bottom: 0.35rem !important;
  font-size: 2rem !important;
  line-height: 1.2;
}

body.tool-page .section-title::after {
  display: none;
}

body.tool-page .section-subtitle,
body.tool-page .pipeline-subtitle {
  color: #b0a0a8 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.5;
  text-transform: none;
}

body.tool-page .section-divider {
  width: 100px !important;
  height: 3px !important;
  margin: 10px auto 2rem !important;
  border: 0 !important;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tool-orchid-plum), var(--tool-orchid-deep)) !important;
  opacity: 1 !important;
}

body.tool-page .pipeline-divider {
  width: 100px !important;
  height: 3px !important;
  margin: 10px auto !important;
  border-radius: 3px !important;
  background: linear-gradient(90deg, var(--tool-orchid-plum), var(--tool-orchid-deep)) !important;
}

body.tool-page .content-box-wrapper p,
body.tool-page .content-wrapper p,
body.tool-page .step-desc,
body.tool-page .form-text,
body.tool-page small.text-muted {
  color: rgba(63, 42, 57, 0.74) !important;
}

body.tool-page .text-light-yellow,
body.tool-page .text-warning,
body.tool-page a.text-light-yellow,
body.tool-page .text-primary,
body.tool-page .text-success {
  color: var(--tool-orchid-deep) !important;
}

body.tool-page .legacy-tool-page h1,
body.tool-page .legacy-tool-page h2 {
  color: var(--tool-orchid-deep) !important;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
}

body.tool-page .site-content a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
  color: var(--tool-orchid-deep);
}

body.tool-page .site-content a:not(.btn):hover {
  color: var(--tool-orchid-plum);
}

/* Forms and upload controls */
body.tool-page .custom-form-card,
body.tool-page .result-card,
body.tool-page .result-section,
body.tool-page .intro-panel,
body.tool-page .desc-card,
body.tool-page .karyotype-box,
body.tool-page .desc-box,
body.tool-page .sequence-container,
body.tool-page .iframe-container {
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  border: 1px solid var(--tool-orchid-soft-line) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 251, 0.94)) !important;
  box-shadow: 0 12px 30px rgba(122, 42, 76, 0.07) !important;
}

body.tool-page .tool-workspace .custom-form-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body.tool-page .form-label-fancy,
body.tool-page .form-label,
body.tool-page label:not(.form-check-label) {
  color: var(--tool-orchid-ink) !important;
  font-weight: 700 !important;
}

/* A standalone field label should read as one unit: marker + name. Some
   imported templates use space-between on every fancy label, which pushes
   the marker and text to opposite edges of the input column. */
body.tool-page label.form-label-fancy {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body.tool-page .form-label-fancy::before,
body.tool-page .label-text::before {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin-right: 0.5rem !important;
  flex: 0 0 auto;
  color: var(--tool-orchid-plum) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: "★" !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  transform: none !important;
}

/* In a few forms .form-label-fancy is the row that contains both the real
   label and an Example button. Do not create a second marker on that wrapper. */
body.tool-page div.form-label-fancy::before {
  display: none !important;
  content: none !important;
}

body.tool-page .form-control,
body.tool-page .form-select,
body.tool-page select,
body.tool-page textarea,
body.tool-page input[type="text"],
body.tool-page input[type="number"],
body.tool-page input[type="email"],
body.tool-page input[type="file"] {
  min-height: 44px;
  color: #4f3341 !important;
  border: 1px solid rgba(155, 92, 119, 0.3) !important;
  border-radius: 11px !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 1px 2px rgba(105, 45, 72, 0.03) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.tool-page .form-select {
  display: block;
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.8rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235c1831' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

body.tool-page .form-select-lg {
  min-height: 48px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  padding-left: 1rem;
  font-size: 1.1rem;
}

body.tool-page .form-control-color {
  width: 3rem;
  min-height: 38px;
  padding: 0.25rem !important;
}

body.tool-page textarea.form-control {
  min-height: 120px;
}

body.tool-page .form-control:hover,
body.tool-page .form-select:hover,
body.tool-page select:hover,
body.tool-page textarea:hover,
body.tool-page input:hover {
  border-color: rgba(196, 71, 127, 0.48) !important;
}

body.tool-page .form-control:focus,
body.tool-page .form-select:focus,
body.tool-page select:focus,
body.tool-page textarea:focus,
body.tool-page input:focus {
  border-color: var(--tool-orchid-plum) !important;
  outline: 0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 0.22rem rgba(196, 71, 127, 0.13) !important;
}

body.tool-page input[type="file"] {
  overflow: hidden;
  padding: 0.42rem !important;
}

body.tool-page input[type="file"]::file-selector-button {
  margin: -0.42rem 0.8rem -0.42rem -0.42rem;
  padding: 0.68rem 1rem;
  color: var(--tool-orchid-deep);
  border: 0;
  border-right: 1px solid var(--tool-orchid-line);
  background: var(--tool-orchid-blush);
  font-weight: 700;
  cursor: pointer;
}

body.tool-page label.orchid-upload-label.form-label-fancy {
  flex-wrap: nowrap !important;
  align-items: baseline !important;
}

body.tool-page .tool-example-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.5rem;
}

body.tool-page .tool-example-row > label {
  min-width: 0;
  margin: 0 !important;
  overflow-wrap: anywhere;
}

body.tool-page .tool-example-row > label.form-label-fancy {
  display: block !important;
}

body.tool-page .tool-example-row > .btn-example-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 0 !important;
  padding: 0.125rem 0.5rem !important;
  font: inherit;
  font-size: 0.875rem !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  cursor: pointer;
}

body.tool-page .tool-example-row > .btn-example-tag:hover {
  transform: none;
}

body.tool-page .tool-example-row > .btn-example-tag:focus-visible {
  outline: 2px solid var(--tool-orchid-plum);
  outline-offset: 2px;
}

/* The transparent native input stays above the English text and handles clicks, focus, and file drops. */
body.tool-page .orchid-file-picker {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 44px;
  min-width: 0;
  overflow: hidden;
  color: #4f3341;
  border: 1px solid rgba(155, 92, 119, 0.3);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
}

body.tool-page .orchid-file-picker-button,
body.tool-page .orchid-file-picker-status {
  align-content: center;
  padding-inline: 0.75rem;
  white-space: nowrap;
}

body.tool-page .orchid-file-picker-button {
  flex: 0 0 auto;
  color: var(--tool-orchid-deep);
  border-inline-end: 1px solid rgba(155, 92, 119, 0.25);
  background: #fff1f6;
  font-weight: 700;
}

body.tool-page .orchid-file-picker-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.tool-page input[type="file"].orchid-file-input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 44px !important;
  margin-top: -44px !important;
  opacity: 0;
  cursor: pointer;
}

body.tool-page .orchid-file-picker:has(+ .orchid-file-input:hover) {
  border-color: rgba(196, 71, 127, 0.48);
}

body.tool-page .orchid-file-picker:has(+ .orchid-file-input:focus-visible) {
  outline: 2px solid var(--tool-orchid-plum);
  outline-offset: 2px;
}

body.tool-page .orchid-file-picker:has(+ .orchid-file-input:disabled) {
  opacity: 0.6;
}

body.tool-page .orchid-file-picker:has(+ .orchid-file-input.is-invalid),
body.tool-page .was-validated .orchid-file-picker:has(+ .orchid-file-input:invalid) {
  border-color: #dc3545;
}

/* Share the header, control, and help-text tracks across fields in the same row. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    body.tool-page .orchid-upload-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tool-page .orchid-upload-row:has(> .col-md-4) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.tool-page .orchid-upload-row:has(> .col-xl-4) {
      grid-template-columns: minmax(0, 1fr);
    }

    body.tool-page .orchid-upload-row > :is(.col-md-4, .col-md-6, .col-md-12, .col-xl-4) {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      align-items: start;
      min-width: 0;
      max-width: none;
    }

    body.tool-page .orchid-upload-row > .col-md-12 {
      grid-column: 1 / -1;
    }

    body.tool-page .orchid-upload-row > div > :is(.orchid-file-picker, input[type="file"]) {
      grid-area: 2 / 1;
    }

    body.tool-page .orchid-upload-row input[type="file"].orchid-file-input {
      margin-top: 0 !important;
    }
  }

  @media (min-width: 1200px) {
    body.tool-page .orchid-upload-row:has(> .col-xl-4) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

body.tool-page .form-check-input,
body.tool-page input[type="radio"],
body.tool-page input[type="checkbox"] {
  accent-color: var(--tool-orchid-deep);
}

body.tool-page .input-group-header,
body.tool-page h5[style*="border-left"] {
  color: var(--tool-orchid-deep) !important;
  border-color: var(--tool-orchid-plum) !important;
}

/* Primary and auxiliary actions */
body.tool-page .btn-search-gradient.tool-form-submit {
  padding: 12px 50px;
  font-size: 1.1rem;
}

body.tool-page .tool-workspace form button:is(.btn-search-gradient, .btn-submit-custom) {
  display: block;
  width: min(100%, 33rem) !important;
  min-height: 52px;
  margin-inline: auto;
  white-space: normal;
}

body.tool-page .btn-search-gradient,
body.tool-page .btn-submit-custom,
body.tool-page .btn-download-result,
body.tool-page .btn-download-table,
body.tool-page .btn-primary,
body.tool-page .btn-success {
  color: #ffffff !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--tool-orchid-deep), var(--tool-orchid-plum)) !important;
  box-shadow: 0 8px 20px rgba(143, 34, 72, 0.22) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

body.tool-page .btn-search-gradient:hover,
body.tool-page .btn-submit-custom:hover,
body.tool-page .btn-download-result:hover,
body.tool-page .btn-download-table:hover,
body.tool-page .btn-primary:hover,
body.tool-page .btn-success:hover {
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  filter: saturate(1.08);
  box-shadow: 0 12px 26px rgba(143, 34, 72, 0.29) !important;
}

body.tool-page .btn-example-tag,
body.tool-page .example-badge,
body.tool-page .tool-btn,
body.tool-page .btn-outline-primary,
body.tool-page .btn-outline-success {
  color: var(--tool-orchid-deep) !important;
  border: 1px solid rgba(196, 71, 127, 0.25) !important;
  border-radius: 999px !important;
  background: rgba(255, 239, 246, 0.9) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.tool-page .btn-example-tag:hover,
body.tool-page .example-badge:hover,
body.tool-page .tool-btn:hover,
body.tool-page .btn-outline-primary:hover,
body.tool-page .btn-outline-success:hover {
  color: #ffffff !important;
  border-color: var(--tool-orchid-plum) !important;
  background: var(--tool-orchid-plum) !important;
  transform: translateY(-1px);
}

body.tool-page .spinner-border.text-warning,
body.tool-page .text-warning .spinner-border {
  color: var(--tool-orchid-plum) !important;
}

body.tool-page [id^="wait"][style*="color"] {
  color: var(--tool-orchid-deep) !important;
}

/* Pipelines */
body.tool-page .pipeline-header {
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem) !important;
}

body.tool-page .flow-container::before {
  background: linear-gradient(180deg, rgba(196, 71, 127, 0.08), rgba(196, 71, 127, 0.38), rgba(196, 71, 127, 0.08)) !important;
}

body.tool-page .flow-arrow {
  color: var(--tool-orchid-plum) !important;
  background: #fff8fb !important;
}

body.tool-page .step-card {
  border: 1px solid var(--tool-orchid-soft-line) !important;
  border-left: 6px solid var(--tool-orchid-plum) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ffffff, #fff8fb) !important;
  box-shadow: 0 12px 30px rgba(122, 42, 76, 0.08) !important;
}

body.tool-page .step-card:hover {
  border-color: rgba(196, 71, 127, 0.3) !important;
  box-shadow: 0 18px 38px rgba(122, 42, 76, 0.14) !important;
}

body.tool-page .step-number {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--tool-orchid-deep), var(--tool-orchid-plum)) !important;
  box-shadow: 0 8px 18px rgba(143, 34, 72, 0.2) !important;
}

body.tool-page .step-title {
  color: var(--tool-orchid-ink) !important;
}

/* Tool directories and legacy sidebars */
body.tool-page .usage-section,
body.tool-page .tool-card,
body.tool-page .card,
body.tool-page .content-wrapper,
body.tool-page .sticky-sidebar {
  border-color: var(--tool-orchid-soft-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 28px rgba(122, 42, 76, 0.07) !important;
}

body.tool-page .tool-card:hover,
body.tool-page .card:hover {
  border-color: rgba(196, 71, 127, 0.28) !important;
  box-shadow: 0 16px 34px rgba(122, 42, 76, 0.12) !important;
  transform: translateY(-3px);
}

body.tool-page .tool-header,
body.tool-page .card-header,
body.tool-page .result-header,
body.tool-page .sequence-header {
  color: var(--tool-orchid-deep) !important;
  border-color: var(--tool-orchid-soft-line) !important;
  background: linear-gradient(90deg, rgba(255, 237, 244, 0.88), rgba(255, 250, 252, 0.96)) !important;
}

body.tool-page .usage-title,
body.tool-page .tool-header h3,
body.tool-page .tool-header h4,
body.tool-page .card-header h3,
body.tool-page .card-header h4 {
  color: var(--tool-orchid-deep) !important;
}

body.tool-page .list-group {
  overflow: hidden;
  border: 1px solid var(--tool-orchid-soft-line);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(122, 42, 76, 0.06);
}

body.tool-page .list-group-item {
  color: #563345 !important;
  border-color: rgba(196, 71, 127, 0.1) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

body.tool-page .list-group-item:hover,
body.tool-page .list-group-item.active {
  color: var(--tool-orchid-deep) !important;
  border-color: rgba(196, 71, 127, 0.18) !important;
  background: linear-gradient(90deg, rgba(255, 232, 241, 0.92), rgba(255, 249, 251, 0.98)) !important;
}

/* Results, tables and feedback */
body.tool-page .table-responsive,
body.tool-page .result-table-wrapper,
body.tool-page .result-table-container,
body.tool-page .result-container {
  overflow-x: auto;
  border: 1px solid var(--tool-orchid-soft-line);
  border-radius: 14px;
  background: #ffffff;
}

body.tool-page table {
  margin-bottom: 0;
  color: #513444;
  background: #ffffff;
}

body.tool-page table thead th,
body.tool-page .table thead th {
  color: var(--tool-orchid-deep) !important;
  border-color: rgba(196, 71, 127, 0.18) !important;
  background: linear-gradient(180deg, #fff1f6, #fff9fb) !important;
  font-weight: 800;
}

body.tool-page table td,
body.tool-page table th {
  border-color: rgba(196, 71, 127, 0.1) !important;
  vertical-align: middle;
}

body.tool-page table tbody tr:hover {
  background: rgba(255, 239, 246, 0.55) !important;
}

body.tool-page .alert-success {
  color: #496029;
  border-color: rgba(107, 139, 59, 0.22);
  background: rgba(244, 250, 234, 0.92);
}

body.tool-page .alert-warning {
  color: #765129;
  border-color: rgba(210, 150, 72, 0.24);
  background: rgba(255, 248, 232, 0.95);
}

body.tool-page .alert-light,
body.tool-page .bg-light {
  border-color: var(--tool-orchid-soft-line) !important;
  background: #fff8fb !important;
}

body.tool-page .badge.bg-success,
body.tool-page .badge-success {
  background: var(--tool-orchid-deep) !important;
}

body.tool-page pre,
body.tool-page code,
body.tool-page .sequence-content {
  border-color: var(--tool-orchid-soft-line) !important;
  border-radius: 10px;
  background: #fff9fb !important;
}

body.tool-page .loading-area,
body.tool-page .text-loading {
  color: var(--tool-orchid-deep) !important;
}

body.tool-page .progress-bar {
  background: linear-gradient(90deg, var(--tool-orchid-deep), var(--tool-orchid-plum)) !important;
}

body.tool-page ::selection {
  color: var(--tool-orchid-ink);
  background: rgba(223, 123, 161, 0.28);
}

@media (max-width: 991.98px) {
  body.tool-page .sticky-sidebar {
    position: static !important;
    margin-bottom: 1.5rem;
  }

  body.tool-page .step-card {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  body.tool-page .site-content {
    padding: 0 0 3rem;
  }

  body.tool-page .site-content > .container,
  body.tool-page .section-container > .container,
  body.tool-page .legacy-tool-page > .container,
  body.tool-page .legacy-tool-page .main-container {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  body.tool-page .content-box-wrapper,
  body.tool-page .legacy-tool-page > .content-wrapper,
  body.tool-page .legacy-tool-page .main-container > .content-wrapper {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  body.tool-page .custom-form-card,
  body.tool-page .result-card,
  body.tool-page .result-section {
    border-radius: 14px !important;
  }

  body.tool-page .btn-search-gradient,
  body.tool-page .btn-submit-custom {
    width: 100%;
    justify-content: center;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }

  body.tool-page .step-card {
    border-top: 5px solid var(--tool-orchid-plum) !important;
    border-left: 1px solid var(--tool-orchid-soft-line) !important;
  }

  body.tool-page .pipeline-header {
    margin-bottom: 2rem !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.tool-page *,
  body.tool-page *::before,
  body.tool-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
