/* Citation Style Converter — visual parity with the main LumaCite tool family. */
.style-converter-page {
  --style-red: #ef3f34;
  --style-red-dark: #d9332a;
  --style-ink: #172033;
  --style-muted: #64738a;
  --style-line: #cbd8e7;
  --style-panel: rgba(255, 255, 255, 0.97);
  overflow-x: hidden;
  background: #f4f7ff;
}

.style-converter-page main {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 0 16px 72px;
}

.style-converter-page main::before {
  position: fixed;
  inset: 63px 0 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(20, 115, 230, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(20, 115, 230, 0.14) 1.5px, transparent 1.5px),
    radial-gradient(ellipse at 16% 18%, rgba(20, 115, 230, 0.32), transparent 48%),
    radial-gradient(ellipse at 86% 82%, rgba(239, 63, 52, 0.42), transparent 54%),
    linear-gradient(180deg, #fbfdff 0%, #f7f8fb 58%, #f4f7ff 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.style-converter-page .style-extractor-hero {
  display: grid;
  place-items: center;
  width: calc(100% - 16px);
  min-height: 104px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.style-converter-page .style-extractor-hero .extractor-hero-copy {
  width: 100%;
}

.style-converter-page .style-extractor-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--style-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(33px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.style-converter-page .style-tool-shell {
  display: block;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.style-converter-page .converter-card {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.style-converter-page .style-input-stage {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--style-red);
  box-shadow: 0 22px 40px rgba(199, 44, 35, 0.2);
  color: #fff;
  padding: 45px 60px 42px;
}

.style-converter-page .style-input-stage::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.style-converter-page .style-input-stage .card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 20px;
}

.style-converter-page .style-input-stage .step-label {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.style-converter-page .style-input-stage h2 {
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.style-converter-page .style-input-stage .card-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
}

.style-converter-page .style-input-stage .privacy-note {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
}

.style-converter-page .style-input-stage .privacy-note svg {
  stroke: #fff;
}

.style-converter-page .input-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin: 0 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.style-converter-page .input-tabs button {
  position: relative;
  width: auto;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  padding: 0 4px 10px;
}

.style-converter-page .input-tabs button.is-active {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.style-converter-page .input-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
  content: "";
}

.style-converter-page .input-panel {
  margin: 0;
}

.style-converter-page .style-input-stage .textarea-label {
  margin-bottom: 8px;
  color: #fff;
  font-size: 10px;
}

.style-converter-page .style-input-stage .textarea-label span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.style-converter-page #citation-input {
  display: block;
  width: 100%;
  min-height: 190px;
  max-height: 320px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 25px rgba(139, 25, 20, 0.14);
  color: var(--style-ink);
  font-size: 12px;
  line-height: 1.58;
  padding: 16px 18px;
}

.style-converter-page #citation-input:focus {
  border: 0;
  outline-color: rgba(255, 255, 255, 0.75);
}

.style-converter-page #citation-input::placeholder {
  color: #7c8999;
}

.style-converter-page .input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 11px;
}

.style-converter-page .style-input-stage .text-button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 10px;
  padding: 0 12px;
}

.style-converter-page .style-input-stage .text-button:hover {
  background: #fff;
  color: var(--style-red-dark);
}

.style-converter-page .style-input-stage .upload-panel > label {
  min-height: 225px;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.style-converter-page .style-input-stage .upload-panel > label:hover,
.style-converter-page .style-input-stage .upload-panel > label.is-dragging {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.style-converter-page .style-input-stage .upload-icon {
  background: #fff;
  color: var(--style-red);
}

.style-converter-page .style-input-stage .upload-panel label > span:not(.upload-icon),
.style-converter-page .style-input-stage .upload-panel small,
.style-converter-page .style-input-stage .upload-panel label b {
  color: rgba(255, 255, 255, 0.9);
}

.style-converter-page .style-input-stage .file-chips span {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.style-converter-page .workspace-progress {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  width: min(720px, calc(100% - 32px));
  margin: 20px auto 0;
}

.style-converter-page .workspace-progress > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.style-converter-page .workspace-progress span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  flex: 0 0 23px;
  border: 0;
  border-radius: 50%;
  background: #0fbe70;
  box-shadow: 0 5px 13px rgba(15, 190, 112, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.style-converter-page .workspace-progress strong {
  color: var(--style-ink);
  font-size: 12px;
  font-weight: 800;
}

.style-converter-page .workspace-progress small {
  display: none;
}

.style-converter-page .workspace-progress i {
  width: 68px;
  height: 1px;
  margin: 0 8px;
  background: rgba(20, 115, 230, 0.23);
}

.style-converter-page .input-settings {
  width: min(750px, 100%);
  margin: 20px auto 0;
  border: 1px solid var(--style-line);
  border-radius: 7px;
  background: var(--style-panel);
  box-shadow: 0 8px 18px rgba(37, 53, 79, 0.07);
}

.style-converter-page .input-settings summary {
  min-height: 49px;
  align-items: center;
  color: var(--style-ink);
  font-size: 11px;
  padding: 0 16px;
}

.style-converter-page .input-settings summary::before {
  order: 3;
  margin-left: auto;
  color: var(--style-red);
  font-size: 18px;
}

.style-converter-page .input-settings summary small {
  margin-left: auto;
  margin-right: 12px;
}

.style-converter-page .settings-grid {
  background: #fff;
}

.style-converter-page .style-step {
  width: 100%;
  margin: 32px 0 0;
  border: 1px solid var(--style-line);
  border-top: 5px solid var(--style-red);
  border-radius: 11px;
  background: var(--style-panel);
  box-shadow: 0 16px 32px rgba(32, 49, 76, 0.09);
  padding: 27px 30px 30px;
}

.style-converter-page .style-step-heading {
  align-items: center;
}

.style-converter-page .style-step .step-label,
.style-converter-page .results-shell .step-label {
  color: var(--style-red);
}

.style-converter-page .style-step h2,
.style-converter-page .results-shell h2 {
  color: var(--style-ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.style-converter-page .style-search {
  width: 290px;
}

.style-converter-page .style-grid {
  gap: 11px;
  margin-top: 20px;
}

.style-converter-page .style-option {
  min-height: 82px;
  border-color: #c7d4e3;
  border-radius: 8px;
  padding: 14px;
}

.style-converter-page .style-option.is-active {
  border-color: var(--style-red);
  background: #fff2f0;
  box-shadow: 0 4px 13px rgba(239, 63, 52, 0.1);
}

.style-converter-page .style-option i {
  background: var(--style-red);
}

.style-converter-page .style-select-row {
  margin-top: 15px;
}

.style-converter-page select,
.style-converter-page .style-search input {
  min-height: 40px;
  border-color: #bccbdd;
  border-radius: 6px;
}

.style-converter-page .enrich-option {
  width: min(750px, 100%);
  margin: 18px auto 0;
  border: 1px solid var(--style-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 16px rgba(37, 53, 79, 0.06);
  padding: 12px 14px;
}

.style-converter-page .enrich-option input {
  accent-color: var(--style-red);
}

.style-converter-page .convert-button {
  width: min(330px, 100%);
  min-height: 48px;
  margin: 18px auto 0;
  border-radius: 6px;
  background: #232733;
  box-shadow: 0 9px 20px rgba(35, 39, 51, 0.18);
}

.style-converter-page .convert-button:hover {
  background: #161a23;
}

.style-converter-page .status-line {
  width: min(750px, 100%);
  min-height: 42px;
  margin: 12px auto 0;
  border: 1px solid var(--style-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  color: #59687c;
  font-size: 10px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}

.style-converter-page .results-shell {
  scroll-margin-top: 78px;
  margin-top: 32px;
  border-color: var(--style-line);
  border-top: 5px solid var(--style-red);
  border-radius: 11px;
  box-shadow: 0 16px 34px rgba(32, 49, 76, 0.1);
}

.style-converter-page .bibliography-entry .csl-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
}

.style-converter-page .bibliography-entry .csl-left-margin {
  grid-column: 1;
}

.style-converter-page .bibliography-entry .csl-right-inline {
  grid-column: 2;
}

.style-converter-page .results-actions button.is-primary {
  border-color: #232733;
  background: #232733;
}

.style-converter-page .results-footer p span {
  color: #0fbe70;
}

.style-converter-page .extractor-section {
  width: min(1169px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.style-converter-page .style-workflow-section {
  margin-top: 58px;
}

.style-converter-page .section-heading {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}

.style-converter-page .section-pill {
  display: inline-flex;
  min-width: 154px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--style-red);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.style-converter-page .workflow-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.style-converter-page .workflow-card-grid article {
  min-height: 168px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(31, 47, 72, 0.07);
}

.style-converter-page .style-features-section {
  margin-top: 58px;
}

.style-converter-page .style-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.style-converter-page .style-logo-grid article {
  min-height: 132px;
  border: 1px solid var(--style-line);
  border-top: 4px solid #1473e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 9px 22px rgba(31, 47, 72, 0.06);
  padding: 20px;
}

.style-converter-page .style-logo-grid article:nth-child(2n) {
  border-top-color: var(--style-red);
}

.style-converter-page .style-logo-grid article:nth-child(3n) {
  border-top-color: #0f8f5f;
}

.style-converter-page .style-logo-grid strong {
  color: var(--style-ink);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 850;
}

.style-converter-page .style-logo-grid p {
  margin: 8px 0 0;
  color: var(--style-muted);
  font-size: 11px;
  line-height: 1.55;
}

.style-converter-page .style-faq-section,
.style-converter-page .style-guides-section {
  margin-top: 58px;
}

.style-converter-page .faq-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--style-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(31, 47, 72, 0.07);
  padding: 0 20px;
}

.style-converter-page .faq-list details:last-child {
  border-bottom: 0;
}

.style-converter-page .guides-card {
  overflow: hidden;
  border: 1px solid var(--style-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(31, 47, 72, 0.07);
}

.style-converter-page .guide-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  border-bottom: 1px solid var(--style-line);
  color: var(--style-ink);
  padding: 12px 20px;
  text-decoration: none;
}

.style-converter-page .guide-row:last-child {
  border-bottom: 0;
}

.style-converter-page .guide-row strong {
  font-size: 12px;
}

.style-converter-page .guide-row span {
  color: var(--style-muted);
  font-size: 11px;
}

.style-converter-page .guide-row em {
  color: var(--style-red);
  font-size: 18px;
  font-style: normal;
}

.style-converter-page .site-footer.site-footer--unified {
  margin-top: 76px;
}

@media (max-width: 900px) {
  .style-converter-page .style-input-stage {
    padding: 42px 42px 38px;
  }

  .style-converter-page .workflow-card-grid,
  .style-converter-page .style-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .style-converter-page main {
    padding-right: 8px;
    padding-left: 8px;
  }

  .style-converter-page .style-extractor-hero {
    min-height: 92px;
  }

  .style-converter-page .style-extractor-hero h1 {
    font-size: 32px;
  }

  .style-converter-page .style-tool-shell,
  .style-converter-page .extractor-section {
    width: calc(100% - 8px);
  }

  .style-converter-page .style-input-stage {
    min-height: 0;
    border-radius: 10px;
    padding: 34px 24px 30px;
  }

  .style-converter-page .style-input-stage::before {
    inset: 8px;
  }

  .style-converter-page .style-input-stage .card-heading {
    gap: 12px;
  }

  .style-converter-page .style-input-stage h2 {
    font-size: 20px;
  }

  .style-converter-page .style-input-stage .privacy-note {
    margin-top: 0;
  }

  .style-converter-page #citation-input {
    min-height: 220px;
  }

  .style-converter-page .workspace-progress {
    width: 100%;
  }

  .style-converter-page .workspace-progress > div {
    flex-direction: column;
    gap: 5px;
  }

  .style-converter-page .workspace-progress i {
    width: 22px;
    margin: 0 3px;
  }

  .style-converter-page .style-step {
    border-radius: 8px;
    padding: 23px 18px 24px;
  }

  .style-converter-page .style-step-heading {
    align-items: flex-start;
  }

  .style-converter-page .workflow-card-grid,
  .style-converter-page .style-logo-grid {
    grid-template-columns: 1fr;
  }

  .style-converter-page .guide-row {
    grid-template-columns: 1fr auto;
    gap: 5px 15px;
    padding: 15px 16px;
  }

  .style-converter-page .guide-row span {
    grid-column: 1;
  }

  .style-converter-page .guide-row em {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
