/* Text input panel composed from the PDF extractor's upload-zone design. */
body:not(.workspace-mode).text-citation-page .text-extractor-hero {
  display: grid !important;
  place-items: center !important;
  min-height: 104px !important;
  padding: 12px 16px 0 !important;
}

body:not(.workspace-mode).text-citation-page .text-extractor-hero .extractor-hero-copy {
  width: auto !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

body:not(.workspace-mode).text-citation-page .text-extractor-hero h1 {
  max-width: 1120px !important;
  margin: 0 auto !important;
  font-family: Manrope, Inter, sans-serif !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  transform: translateY(-10px) !important;
}

body:not(.workspace-mode).text-citation-page .text-tool-shell {
  width: min(1120px, calc(100% - 64px)) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

body:not(.workspace-mode).text-citation-page .text-upload-panel {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #ef3733 !important;
  box-shadow: 0 18px 42px rgba(27, 36, 52, .16) !important;
  padding: 18px 12px 12px !important;
}

body:not(.workspace-mode).text-citation-page .text-upload-panel::before {
  content: none !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone {
  position: relative !important;
  display: flex !important;
  min-height: 390px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  overflow: hidden !important;
  border: 2px dashed rgba(255,255,255,.86) !important;
  border-radius: 8px !important;
  background: transparent !important;
  padding: 20px 24px !important;
  color: #fff !important;
  text-align: center !important;
  box-shadow: none !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone::before {
  content: none !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone.is-dragging {
  border-color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  transform: none !important;
}

body:not(.workspace-mode).text-citation-page .text-file-mark {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 90px !important;
  height: 90px !important;
  flex: 0 0 90px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
}

body:not(.workspace-mode).text-citation-page .text-file-mark::after {
  content: none !important;
}

body:not(.workspace-mode).text-citation-page .text-file-mark svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

body:not(.workspace-mode).text-citation-page .text-file-sheet,
body:not(.workspace-mode).text-citation-page .text-file-fold,
body:not(.workspace-mode).text-citation-page .text-file-lines {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body:not(.workspace-mode).text-citation-page .text-file-badge {
  fill: #ef3733 !important;
  stroke: currentColor !important;
  stroke-width: 4 !important;
}

body:not(.workspace-mode).text-citation-page .text-file-mark text {
  fill: currentColor !important;
  font: 900 19px/1 Inter, sans-serif !important;
  letter-spacing: .02em !important;
}

body:not(.workspace-mode).text-citation-page .text-paste-field {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  width: min(760px, calc(100% - 48px)) !important;
  min-width: 0 !important;
  gap: 7px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

body:not(.workspace-mode).text-citation-page .text-paste-field > span {
  padding-left: 2px !important;
  text-align: center !important;
}

body:not(.workspace-mode).text-citation-page .text-paste-field textarea {
  width: 100% !important;
  min-height: 110px !important;
  max-height: 180px !important;
  resize: vertical !important;
  border: 0 !important;
  border-radius: 6px !important;
  outline: 0 !important;
  background: #fff !important;
  padding: 16px 18px !important;
  color: #172033 !important;
  box-shadow: 0 10px 24px rgba(69,20,20,.14) !important;
  font: 500 14px/1.55 Inter, sans-serif !important;
}

body:not(.workspace-mode).text-citation-page .text-paste-field textarea::placeholder {
  color: #718096 !important;
  opacity: 1 !important;
}

body:not(.workspace-mode).text-citation-page .text-paste-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(255,255,255,.36), 0 10px 24px rgba(69,20,20,.14) !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone-actions {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  width: min(520px, calc(100% - 48px)) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone .upload-button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  padding: 0 28px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone .text-extract-button {
  min-width: 236px !important;
  background: #fff !important;
  color: #172033 !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone .text-file-button {
  min-width: 236px !important;
  border: 2px solid rgba(255,255,255,.92) !important;
  background: transparent !important;
  color: #fff !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone .upload-button::before {
  display: grid !important;
  width: 22px !important;
  height: 26px !important;
  place-items: center !important;
  border: 2px solid currentColor !important;
  border-radius: 2px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body:not(.workspace-mode).text-citation-page .text-extract-button::before {
  content: "✓" !important;
}

body:not(.workspace-mode).text-citation-page .text-file-button::before {
  content: "+" !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone .text-extract-button:hover {
  background: #f8fafc !important;
  transform: none !important;
}

body:not(.workspace-mode).text-citation-page .text-dropzone .text-file-button:hover {
  background: rgba(255,255,255,.1) !important;
  transform: none !important;
}

body:not(.workspace-mode).text-citation-page .text-drop-hint {
  position: relative !important;
  z-index: 1 !important;
  width: auto !important;
  margin: 0 !important;
  color: rgba(255,255,255,.9) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

body:not(.workspace-mode).text-citation-page .text-upload-highlights {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: min(100%, 780px) !important;
  margin: 22px auto 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body:not(.workspace-mode).text-citation-page .text-upload-highlights li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  color: #171c26 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body:not(.workspace-mode).text-citation-page .text-upload-highlights .benefit-check {
  display: grid !important;
  width: 22px !important;
  height: 22px !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #09bd72 !important;
  color: #fff !important;
  line-height: 1 !important;
}

body:not(.workspace-mode).text-citation-page .text-status-row {
  min-height: 57px !important;
  margin: 22px auto 0 !important;
  padding: 8px 14px !important;
}

body:not(.workspace-mode).text-citation-page .text-status-row #input-summary {
  display: none !important;
}

body:not(.workspace-mode).text-citation-page .text-input-metrics span {
  min-width: 54px !important;
  padding: 4px 8px !important;
}

@media (max-width: 760px) {
  body:not(.workspace-mode).text-citation-page .text-tool-shell {
    width: min(100%, calc(100% - 24px)) !important;
  }

  body:not(.workspace-mode).text-citation-page .text-dropzone {
    min-height: 430px !important;
    padding: 24px 16px 20px !important;
  }

  body:not(.workspace-mode).text-citation-page .text-extractor-hero {
    min-height: 96px !important;
    padding: 16px 0 0 !important;
  }

  body:not(.workspace-mode).text-citation-page .text-extractor-hero h1 {
    max-width: 340px !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    transform: translateY(-6px) !important;
  }

  body:not(.workspace-mode).text-citation-page .text-paste-field,
  body:not(.workspace-mode).text-citation-page .text-dropzone-actions {
    width: 100% !important;
  }

  body:not(.workspace-mode).text-citation-page .text-dropzone-actions {
    flex-direction: column !important;
  }

  body:not(.workspace-mode).text-citation-page .text-dropzone .upload-button {
    width: 100% !important;
  }

  body:not(.workspace-mode).text-citation-page .text-upload-highlights {
    gap: 8px !important;
    width: min(100%, 430px) !important;
    margin-top: 18px !important;
  }
}

/* Compact two-column composition: same desktop shell height as the PDF uploader. */
body:not(.workspace-mode).text-citation-page #extract-button[hidden] {
  display: none !important;
}

@media (min-width: 761px) {
  body:not(.workspace-mode).text-citation-page .text-dropzone {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px !important;
    grid-template-rows: 90px 52px auto !important;
    min-height: 280px !important;
    height: 280px !important;
    gap: 14px 36px !important;
    padding: 36px 48px !important;
  }

  body:not(.workspace-mode).text-citation-page .text-file-mark {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
  }

  body:not(.workspace-mode).text-citation-page .text-paste-field {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    align-self: center !important;
    width: 100% !important;
  }

  body:not(.workspace-mode).text-citation-page .text-paste-field > span {
    text-align: left !important;
  }

  body:not(.workspace-mode).text-citation-page .text-paste-field textarea {
    min-height: 140px !important;
    max-height: 180px !important;
  }

  body:not(.workspace-mode).text-citation-page .text-dropzone-actions {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 236px !important;
    justify-self: center !important;
  }

  body:not(.workspace-mode).text-citation-page .text-dropzone .text-file-button {
    width: 236px !important;
    min-width: 236px !important;
    border: 0 !important;
    background: #fff !important;
    color: #172033 !important;
  }

  body:not(.workspace-mode).text-citation-page .text-dropzone .text-file-button:hover {
    background: #f8fafc !important;
  }

  body:not(.workspace-mode).text-citation-page .text-drop-hint {
    grid-column: 2 !important;
    grid-row: 3 !important;
    align-self: start !important;
    max-width: 250px !important;
    justify-self: center !important;
    font-size: 13px !important;
  }
}
