:root {
  color-scheme: light;
  --bg: #f7fbfc;
  --surface: #ffffff;
  --surface-2: #eef5f6;
  --surface-3: #fdf8ee;
  --ink: #10202a;
  --muted: #526976;
  --line: #d8e4e7;
  --accent: #168f84;
  --accent-2: #f2a541;
  --danger: #b74242;
  --success: #247a47;
  --focus: #1b6fd3;
  --shadow: 0 14px 34px rgba(16, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef7f8 0, rgba(247, 251, 252, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(22, 143, 132, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(27, 111, 211, 0.42);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 252, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.hero-tool {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}

.pdf-hero {
  padding: 42px 0 30px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-layout > *,
.content-grid > * {
  min-width: 0;
}

.intro h1,
.page-head h1 {
  margin: 0 0 10px;
  max-width: min(850px, 100%);
  font-size: clamp(1.85rem, 4.7vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.page-head h1 {
  display: flex;
  align-items: center;
  gap: 13px;
}

.page-head h1.has-heading-icon::before {
  display: none;
}

.page-head h1::before {
  content: "";
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(22, 143, 132, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(255, 255, 255, 0.85) 67% 100%),
    linear-gradient(180deg, #e7f4f2, #d7ece9);
  box-shadow: 0 10px 20px rgba(16, 32, 42, 0.08);
}

.intro p,
.page-head p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

.tool-shell {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-shell.flush {
  margin-top: 0;
}

.upload-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.upload-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.2rem;
}

.upload-panel h2.has-heading-icon::before,
.section h2.has-heading-icon::before,
.side-box h2.has-heading-icon::before {
  display: none;
}

.upload-panel h2::before,
.section h2::before,
.side-box h2::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(currentColor, currentColor) 8px 9px / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 15px / 14px 2px no-repeat,
    #e7f4f2;
  color: var(--accent);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  text-decoration: none;
}

.upload-action:hover {
  border-color: rgba(22, 143, 132, 0.55);
}

.upload-action strong,
.upload-action span {
  display: block;
}

.upload-action span {
  color: var(--muted);
  font-size: 0.88rem;
}

.tool-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.category-chip:hover {
  color: var(--ink);
  border-color: rgba(22, 143, 132, 0.55);
}

.tool-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  overflow-x: auto;
}

.tool-tab {
  min-height: 48px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.tool-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
}

.tool-panel {
  padding: 18px;
}

.tool-panel h2,
.tool-panel h3 {
  margin: 0 0 12px;
}

.tool-panel[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input[type="range"] {
  min-height: 30px;
  padding: 0;
}

input[type="color"] {
  height: 46px;
  padding: 5px;
}

input[readonly] {
  background: #f8fbfb;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.button-row.compact {
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.accent {
  background: var(--accent);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.status-line {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.status-line strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.trust-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-item strong {
  display: block;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.tool-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.tool-list.featured {
  grid-template-columns: 1fr;
}

.tool-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.tool-card.large {
  min-height: 86px;
}

.tool-card:hover {
  border-color: rgba(22, 143, 132, 0.55);
  box-shadow: 0 10px 22px rgba(16, 32, 42, 0.08);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7f4f2;
  color: var(--accent);
  font-size: 0;
  font-weight: 900;
  overflow: hidden;
  position: relative;
}

.tool-icon.has-svg-icon::before,
.tool-icon.has-svg-icon::after {
  display: none;
}

.tool-icon::before,
.directory-card::before,
.side-box a::before {
  content: "";
  display: block;
  width: 20px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) 5px 7px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 12px / 10px 2px no-repeat,
    transparent;
}

.tool-icon::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-34deg);
}

.tool-card:nth-child(2n) .tool-icon {
  background: #fff1dd;
  color: #a86100;
}

.tool-card strong {
  display: block;
  line-height: 1.2;
}

.tool-card span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-head {
  padding: 34px 0 20px;
}

.tool-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pdf-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pdf-tool-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 158px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 32, 42, 0.05);
}

.pdf-tool-card:hover {
  border-color: rgba(22, 143, 132, 0.55);
  transform: translateY(-1px);
}

.pdf-tool-card .tool-icon {
  width: 44px;
  height: 44px;
}

.pdf-tool-card strong {
  font-size: 1.02rem;
}

.pdf-tool-card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.directory-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-height: 146px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 32, 42, 0.05);
}

.directory-card::before {
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  place-self: start;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background-color: #e7f4f2;
  color: var(--accent);
}

.directory-card.has-card-icon::before {
  display: none;
}

.directory-card:hover {
  border-color: rgba(22, 143, 132, 0.55);
  transform: translateY(-1px);
}

.directory-card.has-card-icon .svg-tool-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  place-self: start;
}

.directory-card .category-label,
.directory-card strong,
.directory-card > span:not(.svg-tool-icon) {
  grid-column: 2;
}

.directory-card strong {
  font-size: 1.02rem;
}

.directory-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: #e7f4f2;
  color: #12675f;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.directory-card:nth-child(3n) .category-label {
  background: #fff1dd;
  color: #8a5200;
}

.directory-card:nth-child(4n) .category-label {
  background: #eaf0ff;
  color: #31599f;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.side-box {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.side-box h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.side-box a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

.side-box a::before {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  background-color: #e7f4f2;
  color: var(--accent);
}

.side-box a.has-link-icon::before {
  display: none;
}

.svg-tool-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e7f4f2;
  color: var(--accent);
}

.svg-tool-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.svg-tool-icon.small {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.svg-tool-icon.small svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.svg-tool-icon.heading {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(22, 143, 132, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(16, 32, 42, 0.08);
}

.svg-tool-icon.heading svg {
  width: 27px;
  height: 27px;
}

.svg-tool-icon.section-heading {
  width: 30px;
  height: 30px;
}

.svg-tool-icon.section-heading svg {
  width: 18px;
  height: 18px;
}

.upload-action:nth-child(2n) .svg-tool-icon,
.tool-card:nth-child(2n) .svg-tool-icon,
.directory-card:nth-child(3n) .svg-tool-icon {
  background: #fff1dd;
  color: #a86100;
}

.directory-card:nth-child(4n) .svg-tool-icon,
.pdf-tool-card:nth-child(3n) .svg-tool-icon {
  background: #eaf0ff;
  color: #31599f;
}

.page-head h1 .svg-tool-icon {
  order: -1;
}

.side-box a .svg-tool-icon {
  margin-right: 9px;
}

.upload-action[href*="merge"] .tool-icon::before,
.pdf-tool-card[href*="merge"] .tool-icon::before,
.side-box a[href*="merge"]::before {
  box-shadow: 6px 4px 0 -2px currentColor;
}

.upload-action[href*="compress"] .tool-icon::before,
.pdf-tool-card[href*="compress"] .tool-icon::before,
.side-box a[href*="compress"]::before {
  width: 24px;
  height: 18px;
  border-radius: 9px;
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat;
}

.pdf-tool-card[href*="split"] .tool-icon::before,
.side-box a[href*="split"]::before {
  background:
    linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 7px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 12px / 10px 2px no-repeat;
}

.upload-action[href*="pdf-to-jpg"] .tool-icon::before,
.pdf-tool-card[href*="pdf-to-jpg"] .tool-icon::before,
.pdf-tool-card[href*="image-to-pdf"] .tool-icon::before,
.directory-card[href*="image"]::before,
.side-box a[href*="image"]::before {
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 58%, currentColor 59% 66%, transparent 67%) 0 0 / 100% 100% no-repeat,
    linear-gradient(currentColor, currentColor) 5px 15px / 10px 2px no-repeat;
}

.pdf-tool-card[href*="sign"] .tool-icon::before,
.side-box a[href*="sign"]::before {
  width: 25px;
  height: 10px;
  border-width: 0 0 3px;
  border-radius: 0;
  transform: rotate(-10deg);
  background: none;
}

.pdf-tool-card[href*="rotate"] .tool-icon::before,
.side-box a[href*="rotate"]::before {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-25deg);
  background: none;
}

.pdf-tool-card[href*="delete"] .tool-icon::before,
.side-box a[href*="delete"]::before {
  width: 19px;
  height: 22px;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) center 6px / 11px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 11px / 11px 2px no-repeat;
}

.pdf-tool-card[href*="watermark"] .tool-icon::before,
.side-box a[href*="watermark"]::before {
  border-style: dashed;
}

.pdf-tool-card[href*="page-numbers"] .tool-icon::before,
.side-box a[href*="page-numbers"]::before {
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(90deg, transparent 0 35%, currentColor 36% 49%, transparent 50% 100%);
}

.directory-card[href*="currency"]::before,
.directory-card[href*="aed-to-inr"]::before,
.directory-card[href*="usd-to-pkr"]::before {
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center 10px / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 16px / 12px 2px no-repeat;
}

.directory-card[href*="crypto"]::before {
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 3px 18px no-repeat,
    linear-gradient(currentColor, currentColor) center / 18px 3px no-repeat;
}

.directory-card[href*="unit"]::before,
.directory-card[href*="percentage"]::before {
  background:
    linear-gradient(currentColor, currentColor) 5px 7px / 13px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 14px / 13px 2px no-repeat;
}

.directory-card[href*="time"]::before {
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center 6px / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 11px 13px / 8px 2px no-repeat;
}

.directory-card[href*="text-case"]::before {
  background:
    linear-gradient(currentColor, currentColor) 4px 6px / 15px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 14px / 10px 2px no-repeat;
}

.directory-card[href*="color"]::before {
  border-radius: 50%;
  background: conic-gradient(from 45deg, currentColor 0 25%, transparent 0 50%, currentColor 0 75%, transparent 0);
}

.section {
  padding: 26px 0;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
}

.popular-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pair-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.drop-zone {
  padding: 18px;
  border: 1px dashed #a7bdc4;
  border-radius: 8px;
  background: #fbfdfd;
}

.drop-zone input {
  margin-top: 8px;
  background: #fff;
}

.editor-shell {
  display: grid;
  gap: 14px;
}

.editor-toolbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.editor-toolbar .button-row {
  margin: 0;
}

.editor-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf1f3;
  overflow: auto;
  padding: 16px;
}

.editor-stage {
  position: relative;
  width: max-content;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 32, 42, 0.18);
  cursor: crosshair;
}

.editor-stage canvas {
  display: block;
}

.editor-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: crosshair;
  pointer-events: none;
}

.editor-text-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: crosshair;
  pointer-events: auto;
}

.editor-word {
  position: absolute;
  display: block;
  min-width: 3px;
  min-height: 3px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: transparent;
  cursor: text;
  line-height: 1;
  overflow: hidden;
  pointer-events: auto;
  white-space: nowrap;
}

.editor-word:hover,
.editor-word:focus-visible {
  border-color: rgba(22, 143, 132, 0.72);
  background: rgba(22, 143, 132, 0.12);
  outline: none;
}

.editor-inline-input {
  position: absolute;
  z-index: 6;
  min-height: 0;
  padding: 1px 3px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 32, 42, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.editor-annotation {
  position: absolute;
  z-index: 3;
  min-height: 0;
  padding: 3px 5px;
  border: 1px solid rgba(16, 32, 42, 0.38);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: move;
  overflow: hidden;
  pointer-events: auto;
  text-align: left;
}

.editor-signature {
  border-color: rgba(22, 143, 132, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  background: rgba(255, 255, 255, 0.7);
}

.editor-highlight {
  background: rgba(255, 230, 65, 0.48);
  border-color: rgba(201, 163, 0, 0.6);
  color: #654e00;
  font-size: 0.78rem;
  font-weight: 800;
}

.editor-replace {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(22, 143, 132, 0.55);
}

.editor-link {
  background: rgba(231, 244, 242, 0.42);
  border-color: #168f84;
  color: #12675f;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
}

.editor-image {
  padding: 0;
  border-color: rgba(22, 143, 132, 0.7);
  background: rgba(255, 255, 255, 0.4);
}

.editor-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.editor-line {
  background: transparent;
  border: 0;
  font-size: 0;
}

.editor-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: rotate(-18deg);
  transform-origin: center;
}

.editor-ellipse {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.editor-redact {
  background: #0b1114;
  border-color: #0b1114;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.editor-box {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid currentColor;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.editor-pagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.pdf-editor-page {
  background: #e8e8e8;
}

.editor-contextbar {
  display: none !important;
}

.pdf-editor-page .site-header {
  border-bottom: 1px solid #d1d1d1;
  background: #fff;
}

.editor-app {
  min-height: calc(100vh - 74px);
  background: #e8e8e8;
}

.editor-pro {
  gap: 0;
}

.editor-start,
.editor-titlebar {
  background: #fff;
  text-align: center;
}

.editor-start {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: 42px 18px 76px;
  background:
    linear-gradient(176deg, #fff 0 42%, #f4f4f4 42.4% 100%);
}

.editor-start[hidden],
.editor-workbench[hidden],
.editor-applybar[hidden] {
  display: none;
}

.editor-start-inner {
  width: min(680px, 100%);
  margin: 0 auto;
}

.editor-start h1,
.editor-titlebar h1 {
  margin: 0;
  color: #232a30;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.editor-start h1 span,
.editor-titlebar h1 span {
  margin-left: 6px;
  color: #4e5961;
  font-size: 0.38em;
  font-weight: 500;
  vertical-align: top;
}

.editor-start p,
.editor-titlebar p {
  margin: 8px 0 0;
  color: #9aa5ac;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 500;
}

.editor-upload-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 154px;
  padding: 0 28px;
  border: 0;
  border-radius: 5px;
  background: #00b889;
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.editor-upload-button span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
}

.editor-upload-button:hover,
.editor-apply-button:hover {
  background: #00a779;
}

.editor-blank-button {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: #00a779;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
}

.editor-start .editor-privacy {
  width: min(640px, 100%);
  margin: 46px auto 0;
  color: #7e878d;
  font-size: 1rem;
  line-height: 1.6;
}

.editor-titlebar {
  padding: 34px 16px 30px;
}

.editor-titlebar h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.editor-titlebar p {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
}

.editor-titlebar .status-line {
  min-height: 20px;
  margin-top: 10px;
  color: #536068;
  font-size: 0.95rem;
}

.editor-filebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px max(14px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #d5d5d5;
  background: #f7f7f7;
}

.editor-file-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #0076df;
  border-radius: 4px;
  background: #fff;
  color: #006dcc;
  cursor: pointer;
  font-weight: 800;
}

.editor-filebar .status-line {
  margin: 0;
  color: #4e5c63;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-commandbar,
.editor-page-actions,
.editor-floating-toolbar {
  display: flex;
  justify-content: center;
}

.editor-commandbar {
  flex-wrap: wrap;
  gap: 0;
  padding: 20px 12px 14px;
  background: #e8e8e8;
}

.editor-command,
.editor-icon-button,
.editor-insert-button,
.editor-floating-toolbar > button,
.editor-floating-toolbar > select,
.editor-floating-toolbar > input {
  min-height: 34px;
  border: 1px solid #0078e7;
  border-right-width: 0;
  background: #f9fcff;
  color: #006dcc;
  font: inherit;
  font-size: 0.88rem;
}

.editor-command:first-child,
.editor-icon-button:first-child,
.editor-floating-toolbar > :first-child {
  border-radius: 4px 0 0 4px;
}

.editor-command:last-child,
.editor-icon-button:last-of-type,
.editor-insert-button,
.editor-floating-toolbar > :last-child {
  border-right-width: 1px;
  border-radius: 0 4px 4px 0;
}

.editor-command {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  cursor: pointer;
}

.editor-command span {
  min-width: 18px;
  color: #006dcc;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.editor-command:hover,
.editor-command.is-active,
.editor-icon-button:hover,
.editor-insert-button:hover,
.editor-floating-toolbar > button:hover,
.editor-floating-toolbar > button[aria-pressed="true"] {
  background: #eaf5ff;
}

.editor-command:disabled,
.editor-icon-button:disabled,
.editor-insert-button:disabled {
  color: #7a9bb7;
  cursor: not-allowed;
  opacity: 0.72;
}

.editor-pagebar {
  justify-content: center;
  padding: 8px 12px 16px;
  background: #e8e8e8;
}

.editor-pagebar strong {
  min-width: 54px;
  color: #2990e7;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.editor-page-actions {
  flex-wrap: wrap;
  gap: 0;
}

.editor-icon-button {
  min-width: 38px;
  padding: 0 8px;
  cursor: pointer;
}

.editor-page-actions .editor-icon-button:nth-last-child(2) {
  border-right-width: 1px;
  border-radius: 0 4px 4px 0;
}

.editor-insert-button {
  margin-left: 14px;
  padding: 0 15px;
  border-right-width: 1px;
  border-radius: 4px;
  cursor: pointer;
}

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

.pdf-editor-page .editor-workspace {
  min-height: 68vh;
  padding: 20px 12px 86px;
  border: 0;
  border-radius: 0;
  background: #e8e8e8;
}

.pdf-editor-page .editor-stage {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.pdf-editor-page .editor-word:hover,
.pdf-editor-page .editor-word:focus-visible {
  border-color: #0078e7;
  background: rgba(0, 120, 231, 0.08);
}

.pdf-editor-page .editor-inline-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.editor-floating-toolbar {
  position: absolute;
  z-index: 8;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 110, 210, 0.25));
}

.editor-floating-toolbar[hidden] {
  display: none;
}

.editor-floating-toolbar > button,
.editor-floating-toolbar > select {
  min-width: 42px;
  padding: 0 10px;
  cursor: pointer;
}

.editor-floating-toolbar > input[type="color"] {
  width: 42px;
  padding: 4px;
  cursor: pointer;
}

.editor-resize-handle {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 5;
  width: 11px;
  height: 11px;
  border: 1px solid #0078e7;
  border-radius: 50%;
  background: #fff;
  cursor: nwse-resize;
}

.editor-applybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  background: rgba(255, 244, 223, 0.96);
}

.editor-apply-button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 5px;
  background: #00b889;
  color: #fff;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 900;
}

.editor-apply-button::after {
  content: ">";
  margin-left: 14px;
  font-size: 1.3rem;
}

.editor-apply-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.pdf-editor-page .editor-seo-content {
  padding-top: 28px;
  padding-bottom: 30px;
}

.tool-output {
  background: #fbfdfd;
}

.color-preview {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent);
}

.file-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.file-result strong,
.file-result span {
  overflow-wrap: anywhere;
}

.file-result span {
  color: var(--muted);
  font-size: 0.9rem;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 14px;
}

summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0 0 14px;
}

.notice {
  margin-top: 14px;
  padding: 12px;
  border-left: 4px solid var(--accent-2);
  background: #fff8ed;
  color: #6b4a15;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: #10202a;
  color: #dce8eb;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #abc0c8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: #dce8eb;
}

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

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .tool-layout,
  .content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }

  .cards,
  .trust-row,
  .tool-directory,
  .pdf-tool-grid,
  .upload-grid,
  .editor-toolbar {
    grid-template-columns: 1fr;
  }

  .editor-filebar {
    grid-template-columns: 1fr;
  }

  .editor-commandbar,
  .editor-pagebar {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .wrap,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .form-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    padding: 14px;
  }

  .file-result {
    grid-template-columns: 1fr;
  }

  .editor-command,
  .editor-icon-button,
  .editor-insert-button {
    flex: 1 1 auto;
  }

  .editor-floating-toolbar {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }
}
