:root {
  --default-font-size: 16px;
  --default-border-radius: 10px;
  --font-size-large: 22px;
  --font-size-medium: 20px;
  --font-size-small: 14px;
  --h1-size: 32px;
  --h2-size: 28px;
  --h3-size: 26px;
  --color-blackish: #12141d;
  --color-green: #2e6ace
}

* {
  outline: unset;
  margin: unset;
  padding: unset;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  font-size: var(--default-font-size);
  text-decoration: none;
  color: inherit;
  line-height: 2;
  max-width: 100%
}

body {
  scroll-behavior: smooth;
  background-color: linear-gradient(180deg, #fcfcfc 0%, #fbfbfb 100%)
}

section {
  padding: 50px 0
}

section a {
  color: var(--color-green)
}

.bg-white {
  background-color: #fff
}

.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 10px;
  margin-inline: auto
}

.d-flex {
  display: flex
}

.content-center {
  justify-content: center
}

.align-center {
  align-items: center
}

.text-center {
  text-align: center
}

.h1, h1 {
  font-size: var(--h1-size)
}

.h2, h2 {
  font-size: var(--h2-size)
}

.h3, h3 {
  font-size: var(--h3-size)
}

.text {
  color: #12141d
}

.m-unset {
  margin: unset !important
}

.p-unset {
  padding: unset !important
}

.d-none {
  display: none
}

.px-2rem {
  padding-left: 2rem;
  padding-right: 2rem
}

.text-green {
  color: var(--color-green)
}

.content-img {
  width: 100%
}

.pointer {
  cursor: pointer
}

.d-none {
  display: none !important
}

.shadow {
  box-shadow: 0 1px #e2e8f0
}

small {
  font-size: 14px
}

.pt-0 {
  padding-top: unset
}

.pb-0 {
  padding-bottom: unset
}

.p-relative {
  position: relative
}

.gigaparts-sale-banner {
  width: 100%;
  height: auto;
  background-color: #4e99ff4d;
  text-align: center
}

.coupon-code {
  color: #4e99ff;
  font-weight: 700
}

.banner-link:hover {
  text-decoration: none
}

header {
  width: 100%;
  border-bottom: 1px solid #eee
}

nav {
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 30px
}

.logo-div {
  display: flex;
  gap: 10px;
  align-items: center
}

.logo {
  width: 30px
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  list-style: none
}

.menu a {
  display: block;
  padding: 5px 10px;
  font-size: 17px;
  font-weight: 500;
  transition: .2s all ease-in-out;
  color: #000
}

.menu a.is-active {
  color: var(--tool-accent, #247ffb);
  font-weight: 700;
}

/* ========== Responsive Mega Menu ========== */
.mega-item {
  position: relative;
}

.mega-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mega-label {
  display: block;
  padding: 5px 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  color: #000;
  transition: .2s all ease-in-out;
}

.mega-label:hover {
  background-color: #eee;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 10px 30px #0000001a;
  min-width: 720px;
  z-index: 2000;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mega-cat h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #111827;
  letter-spacing: .02em;
}

.mega-cat-title {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  width: 100%;
}

.mega-cat-title:hover {
  color: var(--tool-accent, #247ffb);
}

.mega-cat a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
}

.mega-cat a:hover {
  background-color: #f5f8fc;
}

.mega-cat a.is-active {
  color: var(--tool-accent, #247ffb) !important;
  font-weight: 700;
  background-color: #247ffb1a;
}

.cat-menu a.is-active {
  color: var(--tool-accent, #247ffb) !important;
  font-weight: 800;
  background-color: #247ffb1a;
}

.mega-muted {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: #9ca3af;
}

.mega-toggle:checked + .mega-label + .mega-menu {
  display: block;
}

@media (width >=1025px) {
  .mega-item:hover .mega-menu {
    display: block;
  }
}

@media (width <=1024px) {
  .mega-menu {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 10px 10px 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ========== Responsive Category Dropdowns (Header) ========== */
.cat-item {
  position: relative;
}

.cat-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cat-label {
  display: block;
  padding: 5px 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  color: #000;
  transition: .2s all ease-in-out;
  border-radius: 8px;
}

.cat-label:hover {
  background-color: #eee;
}

.cat-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 30px #0000001a;
  min-width: 260px;
  z-index: 2000;
}

.cat-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.cat-menu a:hover {
  background-color: #f5f8fc;
}

.cat-toggle:checked + .cat-label + .cat-menu {
  display: block;
}

@media (width >=1025px) {
  .cat-item:hover .cat-menu {
    display: block;
  }
}

@media (width <=1024px) {
  #menu-toggle:checked ~ .menu {
    transform: scale(1);
  }

  .cat-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 2px 0;
    min-width: 0;
  }
}

.menu-icon, #menu-toggle {
  display: none
}

#menu-toggle:checked~.menu {
  transform: scale(1)
}

.dropdown {
  display: inline-block;
  position: relative
}

.dd-button {
  display: inline-block;
  border: 1px solid gray;
  border-radius: 4px;
  padding: 0 30px 0 20px;
  background-color: #fff;
  cursor: pointer;
  white-space: nowrap;
  color: #000
}

.dd-button:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid black
}

.dd-button:hover {
  background-color: #eee
}

.dd-input {
  display: none
}

.dd-menu {
  position: absolute;
  top: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0;
  margin: 2px 0 0;
  box-shadow: 0 0 6px #0000001a;
  background-color: #fff;
  list-style-type: none;
  min-width: fit-content;
  width: 100%;
  max-height: 150px;
  overflow: auto
}

.dd-input+.dd-menu {
  display: none
}

.dd-input:checked+.dd-menu {
  display: block
}

.dd-menu li {
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap
}

.dd-menu li:hover {
  background-color: #f6f6f6
}

.dd-menu li a {
  display: block;
  padding: unset;
  font-size: 14px
}

.dd-menu li.divider {
  padding: 0;
  border-bottom: 1px solid #cccccc
}

.heading {
  display: inline-block;
  line-height: 1;
  margin-inline: auto;
  position: relative
}

.browse-label {
  padding: 5px 10px;
  background-color: var(--color-green);
  color: #fff;
  border-radius: var(--default-border-radius);
  min-width: 200px;
  display: inline-block;
  cursor: pointer
}

.heading:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--color-green);
  bottom: 3px;
  z-index: -1
}

.drag-text {
  font-size: var(--font-size-medium)
}

section.hero {
  min-height: 100px;
  max-height: fit-content;
  height: 100%;
  padding-top: unset;
  padding-bottom: 20px
}

.outer-tool-card {
  box-shadow: 0 7.6376471519470215px 40.097633361816406px 1.9094117879867554px #2463eb0d;
  padding: 1rem;
  margin-top: 1.375rem;
  border-radius: var(--default-border-radius);
  background-color: #f9fafb;
  border: 1px solid #d1d5db
}

.promotion__banner {
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
  justify-content: flex-end;
  text-decoration: none;
  color: #000;
  position: relative
}

.promotion__feature {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: .5px solid #d1d5db;
  padding: 5px 10px;
  box-shadow: 0 0 8px #00000029;
  font-weight: 600;
  cursor: pointer
}

.promotion__feature.pro {
  background: linear-gradient(96.74deg, #ff9d48 0%, #ffc24c 100%);
  color: #fff
}

.pro-tag {
  position: absolute;
  background-image: url(/build/assets/pro-tag-b46022db.svg);
  top: -22px;
  left: -5px;
  width: 200px;
  color: #fff;
  box-shadow: unset;
  border: unset
}

.inner-tool-card {
  min-height: 300px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  border: 2px dashed var(--color-green);
  border-radius: var(--default-border-radius);
  background-color: #f5f8fc
}

.inner-tool-card.revert {
  min-height: 200px
}

.before-input {
  gap: 10px;
  flex-direction: column;
  align-items: center
}

.tool-instruction {
  gap: 1rem;
  justify-content: center;
  align-items: center
}

.selected-images-card {
  border: 1px solid #cbd5e199;
  padding: 1rem;
  border-radius: var(--default-border-radius)
}

.upload-image-stats {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.remove-all {
  border: 1px solid #cbd5e199;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--default-border-radius)
}

.upload-count {
  border-radius: 50%;
  padding: 5px 10px;
  background-color: var(--color-green);
  color: #fff;
  font-size: var(--font-size-small)
}

.uploaded-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem
}

.uploaded-images__box {
  border: 1px solid #cbd5e199;
  display: flex;
  justify-content: space-between;
  padding: .725rem
}

.uploaded-images__box .left {
  display: flex;
  gap: .725rem
}

.uploaded-images__box .left img {
  width: 100px;
  aspect-ratio: 4/3
}

.img-size-name {
  display: flex;
  flex-direction: column
}

.img-size-name span {
  font-weight: 700;
  font-size: small
}

.img-size-name small {
  font-size: small;
  color: #969db2
}

.delete-image {
  line-height: 1.5;
  border-radius: 50%;
  padding: 0 10px;
  background-color: #fef1f1;
  color: #ef4343;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-large)
}

.after-result-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem
}

.reset {
  background-color: #2e6ace;
  border-radius: var(--default-border-radius);
  padding: 5px 10px;
  color: #fff;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px
}

.reset :is(span), .download :is(span) {
  font-size: var(--font-size-small)
}

.download {
  padding: 5px 10px;
  border-radius: var(--default-border-radius);
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  gap: 5px
}

.converted-images__box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  align-items: flex-start
}

.converted-images__box .right {
  flex: 1;
  position: relative
}

.converted-images__box .left {
  display: flex;
  flex-direction: column;
  max-width: 100px;
  width: 100%;
  word-break: break-word;
  align-items: center
}

.text-not-found {
  display: flex;
  flex-direction: column;
  align-items: center
}

.text-not-found strong {
  color: #ef4444
}

.text-not-found p {
  font-size: 14px;
  color: #9ca3af
}

.image__text {
  border: 1px solid #ccc;
  min-height: 150px;
  border-radius: var(--default-border-radius);
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  font-size: small;
  padding: 0 2.5rem 0 .5rem;
  resize: none
}

.base64-img {
  aspect-ratio: 4/3;
  object-fit: contain;
  width: 100%
}

.utilities-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  z-index: 99;
  flex-direction: column
}

.utilities-btn span {
  border: 1px solid #ccc;
  padding: 5px;
  display: grid;
  place-items: center;
  border-radius: var(--default-border-radius);
  background-color: #fff
}

.convert-btn-row {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: flex-start;
  position: relative
}

.cloudflare_container {
  position: absolute;
  right: 0;
  top: 0
}

.convert-btn {
  padding: 5px 10px;
  background-color: var(--color-green);
  color: #fff;
  border-radius: var(--default-border-radius);
  border: unset;
  min-width: 150px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center
}

.result-section {
  margin-top: 2rem;
  padding-bottom: 1rem
}

#display-section {
  padding-bottom: 1rem
}

.adv_text {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 1px
}

.text {
  max-width: 900px;
  margin-inline: auto
}

.bg-set {
  background-color: #f5f8fc
}

.how-to-convert-row {
  display: flex;
  justify-content: space-between;
  gap: 3rem
}

.convert-graphic {
  display: flex;
  align-items: center;
  gap: 1rem
}

.convert-graphic img {
  width: 100%
}

.convert-step {
  text-align: left
}

.convert-step li {
  padding: 1rem;
  border-top: 1px solid #dfe4ea
}

.feature-table {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  margin-top: 2rem;
  border-collapse: collapse
}

.feature-table tr>td:first-child {
  font-weight: 700;
  background-color: #f5f8fc;
  border-style: solid;
  border-color: #cbd5e1
}

.feature-table td {
  padding: 8px 20px;
  border: 1px solid #ddd
}

.how-it-work-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem
}

.how-it-work-detail {
  background-color: #3870cf;
  padding: 3rem;
  color: #fff;
  border-radius: var(--default-border-radius);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 2
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  gap: 3rem
}

.feature-img {
  width: 70px;
  aspect-ratio: 1/1
}

.use-of-ocr {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  align-items: flex-start
}

.use-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 3;
  align-items: flex-start
}

.use-card__item {
  display: flex;
  background-color: #fff;
  font-weight: 700;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: var(--default-border-radius);
  align-items: center;
  gap: 1rem;
  width: 100%;
  cursor: pointer
}

.use-card__item.active {
  margin-left: 1.5rem
}

.use-card__item .left {
  display: flex;
  align-items: center;
  gap: .725rem
}

.use-card__item .left .count {
  background-color: #247ffb1a;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 50%;
  color: #247ffb
}

.use_card_text {
  flex: 2;
  margin-inline: auto;
  padding: 2rem;
  border-radius: var(--default-border-radius);
  background-color: #fff;
  position: sticky;
  top: 0
}

.who-can-use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem
}

.who-can-use__card {
  display: flex;
  gap: 2rem;
  align-items: flex-start
}

.who-can-use__card .left {
  display: flex;
  align-items: flex-start
}

.who-can-use__card .left img {
  min-width: 100px
}

.accordion {
  display: flex;
  flex-direction: column;
  min-width: 300px;
  margin: 50px auto
}

.accordion-item {
  margin-top: 16px;
  border: 1px solid #fcfcfc;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: #0000000d 0 1px 2px
}

.accordion-item .accordion-item-title {
  position: relative;
  margin: 0;
  display: flex;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 14px 20px;
  box-sizing: border-box;
  align-items: center;
  font-weight: 700
}

.accordion-item .accordion-item-desc {
  display: none;
  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  color: #444;
  border-top: 1px dashed #ddd;
  padding: 10px 20px 20px;
  box-sizing: border-box
}

.accordion-item input[type=checkbox] {
  position: absolute;
  height: 0;
  width: 0;
  opacity: 0
}

.accordion-item input[type=checkbox]:checked~.accordion-item-desc {
  display: block
}

.accordion-item-desc * {
  font-size: 14px
}

.accordion-item-desc a {
  color: #2e6ace;
  font-weight: 700
}

.accordion-item-desc ol {
  list-style: inside
}

.accordion-item input[type=checkbox]:checked~.accordion-item-title .icon:after {
  content: "-";
  font-size: 20px
}

.accordion-item input[type=checkbox]~.accordion-item-title .icon:after {
  content: "+";
  font-size: 20px
}

.accordion-item:first-child {
  margin-top: 0
}

.accordion-item .icon {
  margin-left: 14px
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 2px 10px #0000001a;
  width: 470px;
  max-width: 99%
}

dialog::backdrop {
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px)
}

.dialog-heading {
  font-size: 22px
}

.dialog p {
  color: #475569
}

.dialog-body {
  text-align: center
}

.close-button {
  cursor: pointer;
  font-size: 40px;
  position: absolute;
  top: -15px;
  right: 10px;
  color: #ef4343
}

.model-features {
  width: 100%;
  position: relative;
  display: flex;
  gap: 1rem
}

.choose-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0
}

.choose-plan, .plan-items {
  flex: 1
}

.subscription-price {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer
}

.font-bold {
  font-weight: 700
}

.feature-list-heading {
  margin-top: 5px;
  text-align: left
}

.model-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  row-gap: 13px;
  column-gap: 25px
}

.model-feature-list li {
  display: flex;
  align-items: center;
  gap: 5px
}

.model-feature-list li * {
  font-size: var(--font-size-small);
  line-height: 1.5
}

.original-price {
  font-size: var(--font-size-medium);
  font-weight: 600
}

.original-price small {
  color: #9da9b5;
  font-weight: 400
}

.plan-option {
  width: 20px;
  height: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #9da9b5;
  border-radius: 50%;
  position: relative;
  background-color: #fff;
  outline: none;
  cursor: pointer
}

.plan-option:checked {
  border-color: var(--color-green)
}

.plan-option:checked:before, .plan-option:checked:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%)
}

.plan-option:checked:before {
  width: 5px;
  height: 5px;
  background-color: #fff;
  z-index: 1
}

.plan-option:checked:after {
  width: 10px;
  height: 10px;
  background-color: var(--color-green);
  z-index: 2
}

.divider {
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #fff0;
  width: 100%;
  margin: 10px 0
}

.subscribe-section {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
  gap: 10px
}

.plans-pricing-btn {
  background: #f6f8fc;
  padding: 3px 24px;
  color: #000;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-size: 16px
}

.subscription-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(90.38deg, #a28cff .04%, #6688ff 99.39%);
  color: #fff;
  padding: 3px 20px;
  border-radius: 8px;
  font-size: 16px
}

.pulse {
  box-shadow: 0 0 0 0 var(--color-green);
  cursor: pointer;
  -webkit-animation: pulse 1.25s infinite cubic-bezier(.66, 0, 0, 1);
  -moz-animation: pulse 1.25s infinite cubic-bezier(.66, 0, 0, 1);
  -ms-animation: pulse 1.25s infinite cubic-bezier(.66, 0, 0, 1);
  animation: pulse 1.25s infinite cubic-bezier(.66, 0, 0, 1)
}

.pulse:hover {
  -webkit-animation: none;
  -moz-animation: none;
  -ms-animation: none;
  animation: none
}

.um-cta {
  background: linear-gradient(90.38deg, #a28cff .04%, #6688ff 99.39%);
  border-radius: 5px;
  color: #fff !important;
  font-size: 20px;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center;
  gap: 5px
}

.below-tool-ad {
  display: flex;
  gap: 1rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  justify-content: space-between
}

.blog__grid, .other-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch
}

.other-tools-grid {
  margin-bottom: 3rem
}

.card-container, .other-tool-card {
  background-color: #fff;
  border-radius: 8px;
  margin: auto;
  box-shadow: 0 2px 20px #0000001a;
  overflow: hidden;
  height: 100%
}

.other-tool-card {
  border-radius: 10px;
  padding: 1.5rem 2rem;
  color: #000;
  width: 100%
}

.other-tool-heading {
  font-weight: 700;
  font-size: 22px
}

.card-image img {
  height: 220px;
  width: 100%;
  border-radius: 8px 8px 0 0;
  background-size: cover
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 16px
}

.card-badge {
  text-transform: uppercase;
  background-color: #fff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 70px;
  margin: 0;
  font-size: 12px
}

.card-badge-blue {
  background-color: #92d4e4
}

.card-badge-purple {
  background-color: #3d1d94
}

.card-badge-pink {
  background-color: #c62bcb
}

.card-body h3 {
  font-size: 16px;
  margin: 8px 0
}

.card-body p {
  font-size: 14px;
  margin: 8px 0 16px
}

.card-author {
  display: flex;
  align-items: center
}

.card-author p {
  margin: 0 16px;
  font-size: 12px
}

.card-author p:last-child {
  color: #888
}

.card-author img {
  border-radius: 50%;
  height: 48px;
  width: 48px;
  margin-top: auto
}

.auth-btn {
  border: 1px solid #35373e !important;
  padding: 0 10px !important;
  border-radius: 5px;
  display: flex !important;
  gap: 5px;
  align-items: center
}

.logout-btn {
  color: #ef4444 !important;
  border: 1px solid #ef4444 !important
}

.footer {
  width: 100%;
  background: #f5f8fc;
  display: block
}

.inner-footer {
  padding: 30px 10px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr
}

.footer-items {
  padding: 10px 20px;
  color: #6b7280
}

.footer-items h3 {
  font-size: var(--default-font-size);
  color: #12141d
}

.footer-items ul {
  list-style: none
}

.footer__brand {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem
}

.footer__brand p {
  font-size: var(--font-size-large);
  color: #12141d;
  font-weight: 700
}

.footer__brand img {
  width: 30px
}

.footer-bottom {
  text-align: center;
  color: #969db2
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px
}

.result__loading {
  width: calc(100% - 10px);
  height: 5px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  background-color: #f9fafb;
  margin-top: -10px;
  margin-inline: auto
}

.result__loading:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(234, 234, 234, 0) 2.85%, rgba(169, 149, 253, .909375) 53.25%, #a28cff 100%);
  border-radius: 3px;
  animation: progress 2s linear infinite
}

@keyframes progress {
  0% {
    transform: translate(-100%)
  }

  to {
    transform: translate(100%)
  }
}

[data-tooltip] {
  position: relative;
  cursor: pointer
}

[data-tooltip]:before, [data-tooltip]:after {
  line-height: 1;
  font-size: .9em;
  pointer-events: none;
  position: absolute;
  box-sizing: border-box;
  display: none;
  opacity: 0
}

[data-tooltip]:before {
  content: "";
  border: 5px solid transparent;
  z-index: 100
}

[data-tooltip]:after {
  content: attr(data-tooltip);
  text-align: center;
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 12px;
  border-radius: 9px;
  background: var(--color-green);
  color: #fff;
  z-index: 99;
  text-shadow: 2px 0px 0px #800000
}

[data-tooltip]:hover:before, [data-tooltip]:hover:after {
  display: block;
  opacity: 1
}

[data-tooltip]:not([data-flow]):before, [data-tooltip][data-flow=top]:before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: var(--color-green)
}

[data-tooltip]:not([data-flow]):after, [data-tooltip][data-flow=top]:after {
  bottom: calc(100% + 5px)
}

[data-tooltip]:not([data-flow]):before, [tooltip]:not([data-flow]):after, [data-tooltip][data-flow=top]:before, [data-tooltip][data-flow=top]:after {
  left: 50%;
  -webkit-transform: translate(-50%, -4px);
  transform: translate(-50%, -4px)
}

[data-tooltip][data-flow=bottom]:before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: var(--color-green)
}

[data-tooltip][data-flow=bottom]:after {
  top: calc(100% + 5px)
}

[data-tooltip][data-flow=bottom]:before, [data-tooltip][data-flow=bottom]:after {
  left: 50%;
  -webkit-transform: translate(-50%, 8px);
  transform: translate(-50%, 8px)
}

[data-tooltip][data-flow=left]:before {
  top: 50%;
  border-right-width: 0;
  border-left-color: var(--color-green);
  left: calc(0em - 5px);
  -webkit-transform: translate(-8px, -50%);
  transform: translate(-8px, -50%)
}

[data-tooltip][data-flow=left]:after {
  top: 50%;
  right: calc(100% + 5px);
  -webkit-transform: translate(-8px, -50%);
  transform: translate(-8px, -50%)
}

[data-tooltip][data-flow=right]:before {
  top: 50%;
  border-left-width: 0;
  border-right-color: var(--color-green);
  right: calc(0em - 5px);
  -webkit-transform: translate(8px, -50%);
  transform: translate(8px, -50%)
}

[data-tooltip][data-flow=right]:after {
  top: 50%;
  left: calc(100% + 5px);
  -webkit-transform: translate(8px, -50%);
  transform: translate(8px, -50%)
}

[data-tooltip=""]:after, [data-tooltip=""]:before {
  display: none !important
}

::-webkit-scrollbar {
  width: 5px
}

::-webkit-scrollbar-thumb {
  background: var(--color-green);
  border-radius: 50px
}

.content-section :is(ul, ol) {
  list-style: inside
}

@media (width <=1024px) {
  .menu {
    flex-direction: column;
    background-color: #fff;
    align-items: start;
    position: absolute;
    top: 110px;
    left: 0;
    width: 100%;
    z-index: 1;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease-in-out;
    box-shadow: #00000026 1.95px 1.95px 2.6px
  }

  .menu li:not(.dd-item) {
    margin-bottom: 10px;
    margin-left: 1rem
  }

  .menu-icon {
    display: block;
    color: #000;
    font-size: 28px;
    cursor: pointer
  }
}

@media (width <=1000px) {
  .blog__grid, .other-tools-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (width <=992px) {
  .how-to-convert-row {
    flex-direction: column-reverse;
    align-items: center
  }

  .how-it-work-row {
    flex-direction: column
  }

  .promotion__feature:nth-child(3), .promotion__feature:nth-child(4), .promotion__feature:nth-child(5) {
    display: none
  }
}

@media (width <=768px) {
  .blog__grid, .other-tools-grid {
    grid-template-columns: 1fr
  }

  .accordion {
    padding: 0 10px
  }

  .accordion h1 {
    font-size: 22px
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
  }

  .convert-step {
    list-style: inside
  }

  .who-can-use__card, .use-of-ocr {
    flex-direction: column;
    gap: 1rem;
    align-items: center
  }

  .inner-footer {
    grid-template-columns: 1fr 1fr
  }
}

@media (width <=600px) {
  .features-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem
  }

  .who-can-use-grid {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  .upload-image-stats {
    flex-direction: column
  }

  .converted-images__box {
    gap: .5rem
  }

  .converted-images__box .left {
    max-width: 80px
  }

  .utilities-btn {
    top: 0;
    right: 0
  }

  .img-size-name span:last-child {
    display: none
  }

  .reset, .download {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px
  }

  .reset :is(span), .download :is(span) {
    font-size: 14px
  }

  .px-2rem {
    padding-left: 1rem;
    padding-right: 1rem
  }

  section.hero {
    background-image: unset;
    padding-top: unset
  }

  .outer-tool-card {
    margin-top: unset
  }

  .browse-label {
    padding: 2px 5px;
    min-width: 150px
  }

  .promotion__feature:nth-child(2), .promotion__feature:nth-child(6) {
    display: none
  }
}

@media (width <=425px) {
  .how-it-work-detail {
    padding: 1rem
  }

  .inner-footer {
    grid-template-columns: 1fr
  }
}

@media (width <=375px) {
  .after-result-actions img {
    display: none
  }
}

.converted-images__box .right {
  text-align: right
}

.result__loading {
  top: calc(100% - 1rem)
}

.jpg-to-word-box {
  align-items: unset;
  display: flex;
  border: 1px solid #ddd;
  padding: 10px 5px;
  border-radius: 5px
}

.jpg-to-word-box .left {
  max-width: unset;
  flex-direction: row;
  gap: 1rem;
  width: fit-content
}

.jpg-to-word-box .right {
  text-align: right;
  display: flex;
  justify-content: flex-end
}

.jpg-to-word-box .base64-img {
  max-width: 100px
}

.jpg-to-word-box .right .download-icon {
  padding: 0 10px;
  border-radius: var(--default-border-radius);
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: fit-content;
  align-self: flex-start;
  box-shadow: 0 -3px 6px #aaaaaa69 inset
}

@media(width <=425px) {
  .download-icon :is(p) {
    display: none;
    min-width: 40px;
    padding: 2px 10px
  }
}

#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* semi-transparent black */
  z-index: 9999;
  display: none;
}

#overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  display: flex;
  align-items: center;
  font-size: 28px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.loading-circle {
  border: 4px dashed #fff;
  border-radius: 50%;
  border-top: 2px solid #247ffb;
  /* Blue color */
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  /* Rotate animation */
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ========== High-level tool workspace (imagetotext.info style) ========== */
:root {
  --tool-accent: #247ffb;
  --tool-accent-dark: #1a66d6;
  --tool-surface: #ffffff;
  --tool-muted: #64748b;
  --tool-border: #e2e8f0;
  --tool-soft: #f0f7ff;
  --tool-danger: #ef4444;
  --tool-success: #16a34a;
  --tool-shadow: 0 12px 40px rgba(36, 127, 251, 0.08);
}

.tool-hero {
  padding: 28px 0 8px;
}

.tool-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-blackish);
  margin-bottom: 0.5rem;
}

.tool-hero .tool-lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--tool-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.tool-workspace {
  margin-top: 1.25rem;
  background: var(--tool-surface);
  border: 1px solid var(--tool-border);
  border-radius: 16px;
  box-shadow: var(--tool-shadow);
  overflow: hidden;
  position: relative;
}

.tool-dropzone {
  min-height: 320px;
  margin: 1rem;
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(36, 127, 251, 0.08), transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.tool-dropzone.is-dragging {
  border-color: var(--tool-accent);
  background: #eaf3ff;
  transform: scale(1.005);
}

.tool-dropzone-inner {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.tool-drop-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #e8f2ff);
  border: 1px solid #dbeafe;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(36, 127, 251, 0.12);
  animation: floatY 3s ease-in-out infinite;
}

.tool-drop-icon svg {
  width: 42px;
  height: 42px;
  color: var(--tool-accent);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tool-drop-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-blackish);
  line-height: 1.4;
}

.tool-drop-sub {
  color: var(--tool-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.tool-browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tool-accent), var(--tool-accent-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(36, 127, 251, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-browse-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(36, 127, 251, 0.35);
}

.tool-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 1rem 1rem;
  color: var(--tool-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.tool-privacy svg {
  width: 16px;
  height: 16px;
  color: var(--tool-success);
  flex-shrink: 0;
}

.tool-panel {
  display: none;
  padding: 1rem;
}

.tool-panel.is-active {
  display: block;
  animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tool-panel-title {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--tool-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.tool-actions-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--tool-border);
  background: #fff;
  color: var(--color-blackish);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tool-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.tool-btn-primary {
  background: linear-gradient(135deg, var(--tool-accent), var(--tool-accent-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 127, 251, 0.25);
}

.tool-btn-primary:hover {
  background: linear-gradient(135deg, var(--tool-accent-dark), #1557b8);
}

.tool-btn-ghost {
  background: transparent;
}

.tool-btn-danger {
  color: var(--tool-danger);
  border-color: #fecaca;
  background: #fff5f5;
}

.tool-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.tool-thumb-card {
  position: relative;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  animation: fadeSlideIn 0.3s ease;
}

.tool-thumb-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.tool-thumb-meta {
  padding: 0.65rem 0.75rem 0.85rem;
}

.tool-thumb-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.tool-thumb-size {
  font-size: 0.75rem;
  color: var(--tool-muted);
  line-height: 1.4;
}

.tool-thumb-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.tool-thumb-remove:hover {
  background: var(--tool-danger);
}

.tool-add-more {
  border: 2px dashed #bfd7ff;
  border-radius: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--tool-accent);
  background: var(--tool-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tool-add-more:hover {
  background: #e8f2ff;
  border-color: var(--tool-accent);
}

.tool-add-more span {
  font-weight: 700;
  font-size: 0.95rem;
}

.tool-add-more small {
  color: var(--tool-muted);
  font-size: 0.75rem;
}

.tool-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tool-border);
}

.tool-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--tool-border);
}

.tool-option label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tool-muted);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tool-option select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--tool-border);
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tool-option-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.tool-option-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--tool-accent);
}

.tool-result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-result-card {
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.tool-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--tool-border);
}

.tool-result-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.tool-result-file img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.tool-result-file strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  line-height: 1.3;
}

.tool-result-file small {
  color: var(--tool-muted);
  font-size: 0.75rem;
}

.tool-result-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tool-result-body {
  padding: 0.85rem 1rem 1rem;
}

.tool-result-body textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--tool-border);
  border-radius: 10px;
  padding: 0.85rem;
  resize: vertical;
  font-size: 0.92rem;
  line-height: 1.55;
  background: #fff;
}

.tool-pdf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  background: #fff;
}

.tool-pdf-row .left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.tool-pdf-row .left img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}

/* Processing overlay */
.tool-processing {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tool-processing.is-active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tool-processing-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--tool-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.tool-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: var(--tool-accent);
  animation: spin 0.85s linear infinite;
}

.tool-processing-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tool-processing-sub {
  color: var(--tool-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.tool-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.tool-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #247ffb 50%, #1d4ed8);
  transition: width 0.25s ease;
  position: relative;
}

.tool-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.tool-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--tool-muted);
}

.tool-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tool-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-toast.is-error {
  background: #991b1b;
}

.tool-toast.is-success {
  background: #166534;
}

#overlay {
  display: none !important;
}

@media (max-width: 640px) {
  .tool-dropzone {
    min-height: 260px;
    margin: 0.75rem;
  }

  .tool-panel-header,
  .tool-footer-bar,
  .tool-pdf-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-actions-inline,
  .tool-result-actions {
    width: 100%;
  }

  .tool-btn {
    flex: 1;
  }

  .tool-result-file strong {
    max-width: 180px;
  }

  .tool-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}