/* Citation Style Converter — compact tool-shell parity pass. */
.style-converter-page main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 72px;
}

.style-converter-page .style-extractor-hero,
.style-converter-page .style-tool-shell,
.style-converter-page .extractor-section,
.style-converter-page .section-heading,
.style-converter-page .workflow-card-grid,
.style-converter-page .feature-card-grid {
  margin-right: auto;
  margin-left: auto;
}

.style-converter-page .section-heading {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.style-converter-page .site-footer.site-footer--unified.site-footer--unified.site-footer--unified.site-footer--unified {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.style-converter-page .style-tool-shell {
  width: min(1120px, calc(100% - 64px));
}

.style-converter-page .converter-card.upload-panel {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.style-converter-page:not(.workspace-mode) .style-input-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(250px, 0.72fr);
  gap: 56px;
  min-height: 386px;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #ef3733;
  box-shadow: 0 18px 42px rgba(27, 36, 52, 0.16);
  color: #fff;
  padding: 47px 58px 44px;
  text-align: left;
}

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

body.style-converter-page:not(.workspace-mode) .style-input-stage.is-dragging {
  background: #e73531;
}

.style-converter-page .style-input-stage.is-dragging::before {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.style-converter-page .converter-input-column,
.style-converter-page .converter-action-column {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.style-converter-page .converter-input-heading {
  margin-bottom: 20px;
}

.style-converter-page .converter-input-heading .step-label {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.style-converter-page .converter-input-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.style-converter-page .converter-input-heading p {
  max-width: 650px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.48;
}

.style-converter-page .style-input-stage .textarea-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.style-converter-page .style-input-stage .textarea-label span:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.style-converter-page #citation-input {
  display: block;
  width: 100%;
  min-height: 196px;
  max-height: 310px;
  resize: vertical;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 25px rgba(139, 25, 20, 0.14);
  color: #172033;
  font-size: 13px;
  line-height: 1.58;
  padding: 16px 18px;
}

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

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

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

.style-converter-page .style-input-stage .text-button:hover {
  background: #fff;
  color: #d9332a;
}

.style-converter-page .converter-action-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
}

.style-converter-page .converter-action-column > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.style-converter-page .converter-file-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
  color: #fff;
}

.style-converter-page .converter-file-mark span {
  display: grid;
  width: 47px;
  height: 58px;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.style-converter-page .converter-file-mark i {
  font-size: 23px;
  font-style: normal;
  font-weight: 800;
}

.style-converter-page .converter-file-button.upload-button {
  order: 0;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 5px;
  color: #172033;
  font-size: 13px;
  padding: 0 18px;
}

.style-converter-page .converter-file-button.upload-button::before {
  width: 18px;
  height: 21px;
  font-size: 14px;
}

.style-converter-page .converter-drop-hint {
  margin: 8px auto 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.style-converter-page .file-chips {
  display: flex;
  max-height: 44px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  overflow: auto;
  margin: 0 0 9px;
}

.style-converter-page .file-chips:empty {
  display: none;
}

.style-converter-page .file-chips span {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 9px;
}

.style-converter-page .converter-output-select {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.style-converter-page .converter-output-select select {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  text-transform: none;
}

.style-converter-page .converter-action-column .convert-button {
  width: 100%;
  min-height: 46px;
  margin: 10px 0 0;
  border-radius: 5px;
  background: #232733;
  box-shadow: none;
  font-size: 12px;
}

.style-converter-page .converter-action-column .privacy-note {
  justify-content: center;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.style-converter-page .converter-action-column .privacy-note svg {
  width: 13px;
  stroke: #fff;
}

.style-converter-page .converter-upload-highlights {
  margin-top: 22px;
}

.style-converter-page .converter-status-row {
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(760px, calc(100% - 32px));
  min-height: 64px;
  margin: 20px auto 0;
  background: rgba(246, 250, 255, 0.97);
  padding: 12px 18px;
}

.style-converter-page .converter-status-row .upload-status-copy strong {
  position: static;
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}

.style-converter-page .converter-status-row .upload-status-copy p {
  margin: 3px 0 0;
  color: #64738a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.style-converter-page .converter-status-facts {
  display: flex;
  gap: 7px;
  align-items: center;
}

.style-converter-page .converter-status-facts span {
  display: grid;
  min-width: 63px;
  min-height: 40px;
  place-items: center;
  align-content: center;
  border: 1px solid #d4dfeb;
  border-radius: 6px;
  background: #fff;
  color: #738095;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.1;
  text-transform: uppercase;
}

.style-converter-page .converter-status-facts strong {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #172033;
  font-size: 13px;
}

.style-converter-page .converter-settings {
  width: min(760px, calc(100% - 32px));
  margin: 12px auto 0;
  overflow: hidden;
  border: 1px solid #cbd8e7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 18px rgba(37, 53, 79, 0.07);
}

.style-converter-page .converter-settings > summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 14px;
  color: #172033;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
  padding: 0 16px;
}

.style-converter-page .converter-settings > summary::-webkit-details-marker {
  display: none;
}

.style-converter-page .converter-settings > summary small {
  margin-left: auto;
  color: #8190a2;
  font-size: 9px;
  font-weight: 600;
}

.style-converter-page .converter-settings > summary::after {
  color: #ef3733;
  content: "+";
  font-size: 19px;
  font-weight: 500;
}

.style-converter-page .converter-settings[open] > summary::after {
  content: "−";
}

.style-converter-page .converter-settings-body {
  border-top: 1px solid #d9e3ef;
  background: #fff;
  padding: 24px;
}

.style-converter-page .converter-settings .style-step-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.style-converter-page .converter-settings .step-label {
  color: #ef3733;
}

.style-converter-page .converter-settings h2 {
  margin: 0;
  color: #172033;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.style-converter-page .converter-settings .style-search {
  position: relative;
  display: block;
  width: 230px;
  min-height: 40px;
}

.style-converter-page .converter-settings .style-search input {
  position: static;
  display: block;
  opacity: 1;
}

.style-converter-page .converter-settings .style-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.style-converter-page .converter-settings .style-option {
  min-height: 68px;
  border-radius: 7px;
  padding: 11px;
}

.style-converter-page .converter-settings .style-option.is-active {
  border-color: #ef3733;
  background: #fff2f0;
  padding: 10px;
}

.style-converter-page .converter-settings .style-option strong {
  font-size: 12px;
}

.style-converter-page .converter-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  border: 0;
  padding: 0;
}

.style-converter-page .converter-settings-grid label {
  text-transform: none;
  letter-spacing: 0;
}

.style-converter-page .converter-settings .enrich-option {
  width: 100%;
  margin: 14px 0 0;
  border: 0;
  background: #f6f8fb;
  box-shadow: none;
}

.style-converter-page .results-shell {
  margin-top: 24px;
}

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

.style-converter-page .workflow-card-grid article {
  min-height: 184px;
  border-radius: 8px;
}

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

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

.style-converter-page .style-features-section .feature-card-grid article {
  min-height: 148px;
  border-top: 1px solid #d9e3ef;
  padding: 20px;
}

.style-converter-page .style-features-section .feature-card-grid p {
  color: #172033;
  font-size: 16px;
  line-height: 1.28;
}

.style-converter-page .style-faq-section .faq-list {
  display: grid;
  gap: 0;
  width: min(760px, calc(100% - 32px)) !important;
  margin-right: auto;
  margin-left: auto;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.style-converter-page .style-faq-section .faq-group {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid #d5e1ef !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  padding: 0 !important;
}

.style-converter-page .style-faq-section .faq-group:last-child {
  border-bottom: 0 !important;
}

.style-converter-page .style-faq-section .faq-group > summary {
  position: relative;
  display: block;
  min-height: 62px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #d5e1ef;
  border-left: 1px solid #d5e1ef;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #c9362e;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.2;
  list-style: none;
  outline: none;
  padding: 22px 72px 20px 22px;
  text-transform: uppercase;
}

.style-converter-page .style-faq-section .faq-group:first-child > summary {
  border-top: 1px solid #d5e1ef;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.style-converter-page .style-faq-section .faq-group:last-child > summary {
  border-bottom: 1px solid #d5e1ef;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.style-converter-page .style-faq-section .faq-group[open]:last-child > summary {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.style-converter-page .style-faq-section .faq-group > summary::-webkit-details-marker,
.style-converter-page .style-faq-section .faq-group-content > details > summary::-webkit-details-marker {
  display: none;
}

.style-converter-page .style-faq-section .faq-group > summary::marker,
.style-converter-page .style-faq-section .faq-group-content > details > summary::marker {
  content: "";
}

.style-converter-page .style-faq-section .faq-group > summary::after,
.style-converter-page .style-faq-section .faq-group-content > details > summary::after {
  position: absolute;
  top: 50%;
  right: 34px;
  display: block;
  width: 20px;
  height: 20px;
  border: 0;
  background-color: currentColor;
  color: #c9362e;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform 180ms ease;
}

.style-converter-page .style-faq-section .faq-group[open] > summary {
  border-bottom: 1px solid #c9d9eb;
}

.style-converter-page .style-faq-section .faq-group[open] > summary::after,
.style-converter-page .style-faq-section .faq-group-content > details[open] > summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.style-converter-page .style-faq-section .faq-group-content {
  display: grid;
  gap: 0;
  margin: 0;
  border: 0;
  border-right: 1px solid #dce8f6;
  border-left: 1px solid #dce8f6;
  border-top: 1px solid #dce8f6;
  background: linear-gradient(90deg, rgba(238, 246, 255, 0.98), rgba(246, 250, 255, 0.9));
  box-shadow: inset 0 12px 24px rgba(40, 67, 95, 0.055);
  padding: 20px 22px 24px;
}

.style-converter-page .style-faq-section .faq-group-content > details {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd9ea;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 0;
}

.style-converter-page .style-faq-section .faq-group-content > details:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.style-converter-page .style-faq-section .faq-group-content > details:last-child {
  border-bottom: 1px solid #cbd9ea;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.style-converter-page .style-faq-section .faq-group-content > details > summary {
  position: relative;
  display: block;
  min-height: 62px;
  color: #172033;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  list-style: none;
  outline: none;
  padding: 21px 72px 20px 22px;
}

.style-converter-page .style-faq-section .faq-group-content > details > summary::after {
  right: 38px;
  width: 18px;
  height: 18px;
  color: #1575e6;
}

.style-converter-page .style-faq-section .faq-group-content > details > p {
  max-width: 760px;
  margin: 0;
  color: #5f6e83;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.58;
  padding: 0 72px 20px 22px;
}

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

@media (max-width: 900px) {
  body.style-converter-page:not(.workspace-mode) .style-input-stage {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 34px;
    padding: 42px 40px 38px;
  }

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

@media (max-width: 680px) {
  .style-converter-page .style-tool-shell {
    width: min(100% - 24px, 560px);
  }

  body.style-converter-page:not(.workspace-mode) .style-input-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 35px 25px 30px;
  }

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

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

  .style-converter-page .converter-action-column {
    padding-top: 3px;
  }

  .style-converter-page .converter-file-mark {
    display: none;
  }

  .style-converter-page .converter-status-row {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(calc(100% - 28px), 420px);
    padding: 16px;
  }

  .style-converter-page .converter-status-facts {
    justify-content: stretch;
  }

  .style-converter-page .converter-status-facts span {
    min-width: 0;
    flex: 1;
  }

  .style-converter-page .converter-settings {
    width: min(calc(100% - 28px), 420px);
  }

  .style-converter-page .converter-settings > summary small {
    display: none;
  }

  .style-converter-page .converter-settings-body {
    padding: 20px 16px;
  }

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

  .style-converter-page .converter-settings .style-search {
    width: 100%;
  }

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

  .style-converter-page .converter-settings-grid,
  .style-converter-page .style-features-section .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .style-converter-page .style-faq-section .faq-list,
  .style-converter-page .style-guides-section .guides-card {
    width: 100% !important;
  }

  .style-converter-page .style-faq-section .faq-group > summary {
    min-height: 56px;
    font-size: 13px;
    padding: 19px 54px 18px 17px;
  }

  .style-converter-page .style-faq-section .faq-group > summary::after {
    right: 20px;
    width: 18px;
    height: 18px;
  }

  .style-converter-page .style-faq-section .faq-group-content {
    padding: 14px 12px 16px;
  }

  .style-converter-page .style-faq-section .faq-group-content > details > summary {
    min-height: 54px;
    font-size: 13px;
    padding: 18px 48px 17px 15px;
  }

  .style-converter-page .style-faq-section .faq-group-content > details > summary::after {
    right: 18px;
    width: 16px;
    height: 16px;
  }

  .style-converter-page .style-faq-section .faq-group-content > details > p {
    font-size: 12px;
    padding: 0 48px 17px 15px;
  }

  .style-converter-page .style-features-section .feature-card-grid article {
    min-height: 0;
  }
}
