@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --white: #fff;
  --ink: #141827;
  --muted: #555e70;
  --edge: #e1e3e7;
  --wash: #f7f7f3;
  --accent: #304bd3;
  --accent-hover: #243ba9;
  --amber: #754d13;
  --red: #9c342d;
  --sans: Inter, "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #3154f4; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(100%, 1320px); padding-inline: clamp(17px, 4.6vw, 70px); margin-inline: auto; }
.symbols { width: 0; height: 0; position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6px; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5; transform: translateY(-150%); padding: 9px 14px; background: var(--white); border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { transform: none; }
#main-content { flex: 1 0 auto; }
.header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--edge); background: var(--paper); }
.bar { width: min(100%, 1320px); padding: 12px clamp(17px, 4.6vw, 70px); margin-inline: auto; min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font: 770 24px/1 var(--sans); letter-spacing: -.049em; text-decoration: none; }
.brand img { display: block; flex: 0 0 auto; }
.brand span { white-space: nowrap; }
.bar nav { display: flex; gap: clamp(4px, 1.2vw, 16px); align-items: center; }
.header-link { display: inline-flex; gap: 7px; align-items: center; min-height: 41px; padding: 7px 9px; border-radius: 8px; font-size: 14px; font-weight: 620; color: #39445e; text-decoration: none; }
.header-link[aria-current='page'], .header-link:hover { color: var(--accent); background: #edf1ff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 700; min-height: 41px; padding: 8px 13px; background: var(--white); color: var(--ink); border: 1px solid transparent; border-radius: 8px; line-height: 1.15; text-decoration: none; white-space: nowrap; transition: background .18s, border-color .18s; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: #d8deea; background: #ffffff; }
.button-outline:hover { border-color: #a8b7e9; background: #eff2fb; }
.button-danger { background: #9b3730; color: #fff; }
.button-danger:hover { background: #852c25; }
.text-button { padding: 0; color: var(--accent); border: 0; background: transparent; font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.text-button:hover { text-decoration: underline; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--edge); border-radius: 7px; font-size: 14px; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { color: var(--accent); background: #edf0ff; }
.bar .mobile-nav nav { position: absolute; inset: calc(100% + 7px) 0 auto auto; display: grid; width: min(225px, calc(100vw - 36px)); padding: 5px; gap: 2px; background: var(--paper); border: 1px solid var(--edge); border-radius: 8px; box-shadow: 0 9px 25px #15234018; }
.bar .mobile-nav nav a { min-height: 44px; padding-inline: 10px; }

.hero { background: var(--paper); padding-block: clamp(29px, 5vw, 62px) clamp(24px, 4vw, 44px); }
.converter-shell { max-width: 1110px; }
.hero-titlebar { display: grid; gap: 9px; margin-bottom: 23px; }
.hero-titlebar h1, .advanced-heading h1 { font: 680 clamp(34px, 5.4vw, 64px)/1.06 var(--sans); letter-spacing: -.061em; outline: none; text-wrap: balance; }
.hero-titlebar em { font-style: normal; }
.tool-title { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 14px); min-width: 0; }
.tool-title h1 { min-width: 0; overflow-wrap: anywhere; }
.tool-title > .mode-icon { --icon-size: clamp(37px, 5vw, 52px); --glyph-size: 51%; border-radius: 9px; }
.history-title .mode-icon, .account-view .mode-icon { --icon-size: 43px; --glyph-size: 22px; border-radius: 9px; }
.lede { max-width: 60ch; color: var(--muted); font-size: clamp(15px, 1.45vw, 18px); line-height: 1.48; }

.conversion-panel { display: grid; border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.conversion-panel:has(.inspector:not([hidden])) { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }
.upload-area { display: flex; flex-direction: column; min-width: 0; padding: clamp(13px, 2.3vw, 25px); }
.inspector { min-width: 0; border-inline-start: 1px solid var(--edge); padding: clamp(14px, 2.3vw, 25px); }
.inspector > h2 { font-size: 17px; line-height: 1.2; font-weight: 680; }
.format-field { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.format-field legend { padding: 0; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--wash); border: 1px solid var(--edge); border-radius: 7px; padding: 3px; gap: 3px; }
.formats button, .segments button { border: 1px solid transparent; background: transparent; color: #38465e; font-size: 13px; font-weight: 700; border-radius: 5px; padding: 5px 8px; min-height: 44px; }
.formats button:hover, .segments button:hover { background: #ebeeff; }
.formats button[aria-pressed="true"], .segments button[aria-pressed="true"] { background: var(--paper); border-color: #ccd4f0; color: var(--accent); }

.pdf-label, .doc-label { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; min-width: 32px; border-radius: 4px; padding: 2px 5px; font-size: 10px; font-weight: 800; letter-spacing: .035em; line-height: 1.45; }
.pdf-label { background: #f0e5e3; color: #853f37; }
.doc-label { background: #e8edff; color: #2646b1; }

.sample-preview { margin-top: 16px; border-bottom: 1px solid var(--edge); }
.sample-preview summary { padding-block: 13px; min-height: 44px; color: var(--accent); cursor: pointer; font-size: 14px; font-weight: 650; }
.sample-body { background: var(--wash); padding: clamp(13px, 2vw, 21px); border-radius: 7px; margin-bottom: 12px; }
.sample-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px 12px; margin-bottom: 8px; }
.sample-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-align: start; }
.mobile-stage { display: none; }
.stage { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3vw, 30px); }
.stage-sheet { width: min(45%, 252px); min-width: 0; }
.stage-sheet figcaption { color: var(--muted); font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.stage-sheet img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--edge); }
.sample-body[data-stage="source"] .stage-result, .sample-body[data-stage="result"] .stage-source { display: none; }
.ocr-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #354157; cursor: pointer; padding-block: 12px; min-height: 62px; border-block: 1px solid var(--edge); margin-block: 15px 16px; }
.ocr-option strong { display: block; font-size: 14px; color: var(--ink); }
.ocr-option small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }
.ocr-option input { width: 38px; height: 22px; flex: 0 0 auto; appearance: none; border-radius: 13px; background: #dfe5f0; border: 1px solid #c6d0e3; cursor: pointer; position: relative; margin: 0; }
.ocr-option input::before { content: ""; position: absolute; background: #fff; width: 14px; height: 14px; border-radius: 50%; top: 3px; left: 3px; box-shadow: 0 1px 2px #28375a26; transition: transform .17s ease; }
.ocr-option input:checked { background: var(--accent); border-color: var(--accent); }
.ocr-option input:checked::before { transform: translateX(16px); }
.entry { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 172px; flex: 1; border: 1px dashed #b0b9cf; border-radius: 7px; padding: 15px; text-align: center; background: var(--wash); transition: background .17s, border-color .17s; }
.entry.dragging { background: #e9eeff; border-color: var(--accent); }
.entry .button { min-height: 50px; width: min(100%, 230px); font-size: 15px; gap: 8px; }
.entry p, .entry small { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (pointer: coarse) { .entry .drop-hint { display: none; } }
.upload-mark { display: grid; place-items: center; color: var(--accent); background: #e9eeff; width: 43px; height: 43px; border-radius: 9px; flex: 0 0 auto; }
.upload-mark .icon { width: 23px; height: 23px; }
.entry-note, .entry-error { margin-top: 10px; font-size: 13px; line-height: 1.35; }
.entry-note { display: flex; align-items: flex-start; gap: 5px; color: #535e74; }
.entry-note .icon { width: 15px; height: 15px; margin-top: 1px; }
.entry-error { color: var(--red); }

.workflow { padding-block: 48px 50px; scroll-margin-top: 80px; }
.workflow-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 23px; }
.workflow h2, .faq h2 { font: 650 clamp(24px, 3.2vw, 36px)/1.14 var(--sans); letter-spacing: -.044em; }
.workflow-heading > p { font-size: 15px; color: var(--muted); }
.steps { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.steps li { border-top: 1px solid #d3daea; padding-top: 12px; }
.steps li > .icon { color: var(--accent); }
.steps h3 { margin-top: 6px; font-size: 16px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 300px; margin-top: 5px; }
.faq { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1fr); gap: 15px; padding-block: 17px 55px; }
.faq details { border-block-start: 1px solid var(--edge); }
.faq details:last-child { border-block-end: 1px solid var(--edge); }
.faq summary { min-height: 49px; display: list-item; padding-block: 13px; cursor: pointer; font-size: 15px; color: #33415d; font-weight: 730; }
.faq details p { margin: 0 0 14px 15px; max-width: 490px; font-size: 15px; color: var(--muted); line-height: 1.5; }


.footer { margin-top: auto; border-top: 1px solid var(--edge); }
.footer-inner { padding-block: 15px; display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 760 19px/1 var(--sans); color: var(--ink); letter-spacing: -.055em; }
.footer .text-button { color: #505c74; }
.footer .icon { width: 16px; height: 16px; margin-inline-end: 3px; }

#processing { padding-block: 65px; }
.progress-view { width: min(100%, 470px); margin-inline: auto; background: var(--white); border: 1px solid var(--edge); border-radius: 14px; padding: 26px; text-align: center; }
.progress-view .upload-mark { margin: 0 auto 13px; }
.progress-view h1, .history-title h1 { font: 500 38px/1.1 var(--sans); letter-spacing: -.055em; outline: none; }
#process-name { color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.progress-line { margin-block: 17px 9px; height: 5px; background: #e7edff; border-radius: 8px; overflow: hidden; }
.progress-line span { display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 8px; animation: progress 1.6s infinite ease-in-out alternate; }
@keyframes progress { from { transform: translateX(-35%); } to { transform: translateX(185%); } }
#process-stage { min-height: 32px; color: var(--muted); font-size: 14px; }
#cancel { margin-top: 8px; }

.compare-view { background: #eff2f8; }
.compare-top { background: var(--paper); border-bottom: 1px solid #d7deeb; }
.compare-head { padding-block: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.identity, .compare-actions, .tool-cluster { display: flex; align-items: center; gap: 7px; }
.identity > div { min-width: 0; }
.identity p { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.identity h1 { font: 500 clamp(24px, 3.3vw, 39px)/1.1 var(--sans); letter-spacing: -.043em; outline: none; overflow-wrap: anywhere; }
.compare-actions { flex: 0 0 auto; }
.icon-button { display: inline-grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; padding: 0; background: #fff; border: 1px solid #d8deea; border-radius: 7px; color: #3e4c67; }
.icon-button:hover:not(:disabled) { background: #eaf0ff; border-color: #adbbec; }
.icon-button .icon { width: 18px; height: 18px; }
.compare-wrap { padding-block: 12px 22px; }
.compare-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.compare-toolbar .sync { min-height: 35px; font-size: 13px; padding: 6px 8px; }
.compare-toolbar .sync[aria-pressed="true"] { background: #e7edff; }
.page-count, #zoom-view { color: #40516e; font-size: 14px; min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.zoom-controls { margin-inline-start: auto; }
.mobile-docs { display: none; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.document-pane { min-width: 0; background: #e9edf5; border: 1px solid #d3daea; border-radius: 10px; overflow: hidden; }
.document-grid[data-active='source'] .source-pane h2, .document-grid[data-active='result'] .result-pane h2 { box-shadow: inset 0 2px #5271ef; }
.document-pane h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; padding: 0 10px; border-bottom: 1px solid #d9e0ed; background: #ffffff; }
.paper-space { padding: 12px; height: clamp(370px, 61vh, 800px); overflow: auto; scrollbar-color: #a4b2ce #e9edf5; }
.paper-space canvas { display: block; margin-inline: auto; background: #fff; box-shadow: 0 4px 14px #25365a2a; }
.pane-info { padding: 10px; font-size: 15px; color: var(--muted); }
.compare-note { font-size: 14px; color: #535e74; margin-top: 12px; }

.history-view { padding-block: 34px 56px; }
.history-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.history-title p { color: var(--muted); margin-top: 7px; font-size: 15px; }
.history-table { border: 1px solid #d8deea; border-radius: 10px; overflow: hidden; background: #fff; }
.history-empty { padding: 22px; }
.history-empty p { color: var(--muted); margin-block: 6px 13px; }
.history-table table { border-collapse: collapse; width: 100%; }
.history-table th, .history-table td { text-align: start; padding: 12px 10px; font-size: 14px; border-bottom: 1px solid #e1e6ef; }
.history-table th { background: #f0f3fa; color: #374762; }
.history-table tbody tr:last-child td { border-bottom: 0; }
.history-table td:first-child { overflow-wrap: anywhere; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9ba6ba; }
.status-pill[data-status="ready"]::before { background: #3154f4; }
.status-pill[data-status="error"]::before { background: #ba6458; }
.status-pill[data-status="queued"]::before, .status-pill[data-status="processing"]::before { background: #a47429; }
dialog { max-width: min(450px, calc(100vw - 25px)); padding: 23px; background: #ffffff; color: var(--ink); border: 1px solid var(--edge); border-radius: 12px; box-shadow: 0 12px 33px #18234b36; }
dialog::backdrop { background: #17213f70; }
dialog h2 { font: 500 28px/1.1 var(--sans); letter-spacing: -.039em; margin-bottom: 10px; }
dialog p { color: #4b5872; font-size: 15px; line-height: 1.49; margin: 8px 0; }
dialog .button { margin-top: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; }
.toast { position: fixed; z-index: 2; bottom: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); width: max-content; padding: 12px 15px; border-radius: 7px; background: #243a9d; color: #fff; font-size: 14px; }

.catalog-hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 77% 22%, #e0e8ff 0, #f0f4ff 44%, #f8faff 83%);
  border-bottom: 1px solid #e0e7f7;
}
.catalog-hero-inner {
  --art-height: clamp(420px, 37vw, 550px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: var(--art-height);
}
.catalog-intro { padding-block: 40px; }
.catalog-intro h1 { font: 660 clamp(51px, 7.1vw, 104px)/.96 var(--sans); letter-spacing: -.078em; }
.catalog-intro h1 span { white-space: nowrap; }
.catalog-intro h1 em { color: var(--accent); font-style: normal; }
.catalog-intro p { max-width: 400px; margin: 21px 0 24px; color: #45526d; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.47; }
.catalog-actions, .catalog-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.catalog-primary { min-height: 49px; padding-inline: 15px; gap: 11px; }
.catalog-primary .icon { transition: transform .22s ease; }
.catalog-primary:hover .icon { transform: translateX(3px); }
.catalog-links a { display: inline-flex; align-items: center; min-height: 44px; color: #344267; font-size: 14px; font-weight: 650; text-underline-offset: 4px; }
.catalog-links a:hover { color: var(--accent); }
.catalog-art {
  position: relative;
  isolation: isolate;
  align-self: stretch;
}
.catalog-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#7390df25 1px, transparent 1px), linear-gradient(90deg, #7390df25 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 48% 53%, #000 45%, #000c 79%, transparent 100%);
}
.cover-sheet {
  position: absolute;
  width: min(48%, calc(var(--art-height) * .49));
  overflow: hidden;
  border: 1px solid #cfd7e9;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 46px #14245929, 0 2px 4px #18245e19;
  transform: rotate(var(--turn));
  animation: cover-enter .7s ease-out both;
}
.cover-sheet-source { top: 10%; left: 8%; --turn: -7deg; }
.cover-sheet-result { top: 14%; right: 8%; --turn: 7deg; animation-delay: .09s; }
.cover-sheet figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; border-bottom: 1px solid #e1e6f2; padding: clamp(4px, 1vw, 8px) clamp(5px, 1vw, 11px); color: #363f5a; font-size: clamp(9px, 1.6vw, 12px); font-weight: 650; }
.cover-sheet img { display: block; width: 100%; height: auto; }
.cover-sheet figcaption span { padding: 3px 5px; border-radius: 4px; background: #e9eeff; color: #2946b7; font-size: 10px; }
.cover-arrow { position: absolute; z-index: 1; top: 46%; left: 50%; translate: -50% -50%; width: clamp(40px, 5vw, 66px); aspect-ratio: 1; border-radius: 27%; display: grid; place-items: center; background: linear-gradient(140deg, #3e63ff, #223bdc); color: #fff; box-shadow: 0 8px 25px #2d4de955; }
.cover-arrow .icon { width: 46%; height: 46%; transition: transform .22s ease; }
.catalog-art:hover .cover-arrow .icon { transform: translateX(3px); }
@keyframes cover-enter {
  from { opacity: 0; transform: translateY(clamp(6px, 1.4vw, 24px)) rotate(0); }
  to { opacity: 1; transform: translateY(0) rotate(var(--turn)); }
}

.catalog-tools { scroll-margin-top: 68px; }
.catalog-tools-header { background: var(--wash); border-bottom: 1px solid var(--edge); }
.catalog-tools-inner { display: grid; gap: 10px; padding-block: clamp(18px, 2.5vw, 30px); }
.catalog-tools-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; }
.catalog-tools-title h2 { font: 690 clamp(24px, 3vw, 38px)/1.14 var(--sans); letter-spacing: -.045em; }
.catalog-editor { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; text-underline-offset: 4px; }
.catalog-editor:hover { text-decoration: underline; }
.catalog-editor .icon { width: 17px; height: 17px; transition: transform .16s; }
.catalog-editor:hover .icon { transform: translateX(3px); }
.catalog-filter { display: grid; grid-template-columns: minmax(0, 1fr) clamp(184px, 21vw, 228px); gap: 10px; }
.catalog-search, .catalog-category { position: relative; display: grid; min-width: 0; }
.catalog-filter .icon { position: absolute; inset-block-start: 50%; translate: 0 -50%; pointer-events: none; }
.catalog-search .icon { inset-inline-start: 12px; color: var(--accent); }
.catalog-category .icon { inset-inline-end: 12px; color: var(--muted); }
.catalog-filter input, .catalog-filter select { min-height: 46px; width: 100%; min-width: 0; background: var(--paper); border: 1px solid #d2d6df; border-radius: 7px; color: var(--ink); padding: 9px 12px; font-size: 16px; }
.catalog-filter input { padding-inline-start: 39px; }
.catalog-filter select { appearance: none; padding-inline-end: 38px; cursor: pointer; }
@media (forced-colors: active) {
  .catalog-filter select { appearance: auto; padding-inline-end: 12px; }
  .catalog-category .icon { display: none; }
}
.catalog-index { padding-block: 27px 65px; }
.catalog-match { color: var(--muted); font-size: 14px; padding: 4px 0 10px; }
.tool-category + .tool-category, #advanced-results > .tool-category:first-child { margin-top: 25px; }
.tool-category h2 { color: var(--ink); font-weight: 660; font-size: clamp(19px, 2.5vw, 30px); line-height: 1.2; letter-spacing: -.04em; margin-bottom: 10px; }
.mode-glyph { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.mode-icon {
  --mode-color: #3148bf;
  --mode-bg: #ebefff;
  --icon-size: 42px;
  --glyph-size: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--icon-size);
  height: var(--icon-size);
  border: 1px solid color-mix(in srgb, var(--mode-color) 12%, transparent);
  border-radius: 12px;
  color: var(--mode-color);
  background: var(--mode-bg);
}
.mode-icon .mode-glyph { width: var(--glyph-size); height: var(--glyph-size); }
.mode-icon[data-tone="pages"] { --mode-color: #18645d; --mode-bg: #e9f6f2; }
.mode-icon[data-tone="design"] { --mode-color: #5a3aa5; --mode-bg: #f2edff; }
.mode-icon[data-tone="security"] { --mode-color: #85521a; --mode-bg: #fbf1e4; }
.mode-icon[data-tone="forms"] { --mode-color: #245b94; --mode-bg: #eaf4fe; }
.mode-icon[data-tone="attachments"] { --mode-color: #0d6c70; --mode-bg: #e7f6f6; }
.mode-icon[data-tone="analysis"] { --mode-color: #356441; --mode-bg: #edf5e8; }
.mode-icon[data-tone="filters"] { --mode-color: #545990; --mode-bg: #f0f1fc; }
.mode-icon[data-tone="workspace"] { --mode-color: #345794; --mode-bg: #edf3ff; }

.catalog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.catalog-tool { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; min-width: 0; min-height: 82px; padding: 12px 3px; border-block-start: 1px solid var(--edge); text-decoration: none; transition: color .18s, background .18s; }
.catalog-tool:hover, .catalog-tool:focus-visible { color: var(--accent); background: #f6f7fc; }
.catalog-tool > .mode-icon { --icon-size: 36px; --glyph-size: 20px; --mode-bg: #f1f2f8; --mode-color: #344bc0; border-radius: 7px; }
.catalog-tool-copy { display: grid; min-width: 0; gap: 3px; }
.catalog-tool strong { font-size: clamp(15px, 1.5vw, 19px); letter-spacing: -.027em; line-height: 1.22; text-wrap: pretty; }
.catalog-tool small { color: var(--muted); font-size: 13px; line-height: 1.38; }
.catalog-arrow { color: #586794; }
.catalog-arrow .mode-glyph { width: 15px; height: 15px; }

.breadcrumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 11px; color: #56617a; font-size: 13px; line-height: 1.2; }
.breadcrumbs .icon { width: 14px; height: 14px; stroke-width: 1.5px; }
.breadcrumbs a { text-underline-offset: 3px; }
.tool-option { display: grid; gap: 6px; margin-block: 15px; color: var(--ink); font-size: 14px; font-weight: 650; }
.tool-option select, .tool-option input, #account-form input { width: 100%; min-height: 43px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #cbd4e7; border-radius: 7px; }
.tool-option small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.related { padding-block: 0 49px; }
.related h2 { font-size: clamp(22px, 3vw, 31px); letter-spacing: -.04em; }
.related nav { display: flex; gap: 9px 22px; flex-wrap: wrap; margin-top: 13px; }
.landing-trust { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 9px; }
.hero-titlebar .landing-trust { margin-top: 0; }
.landing-trust a { color: var(--accent); text-underline-offset: 3px; }
.landing-example { margin-block: 23px 30px; padding-block: 16px; border-block: 1px solid var(--edge); }
.landing-example h2 { font-size: clamp(19px, 2.5vw, 25px); letter-spacing: -.04em; margin-bottom: 6px; }
.landing-example p { color: var(--muted); max-width: 66ch; line-height: 1.5; overflow-wrap: anywhere; }
.landing-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.landing-downloads .button { white-space: normal; text-align: start; }
.advanced-guide { padding-block: 12px 28px; }
.related a { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 15px; font-weight: 620; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.related .mode-icon { --icon-size: 29px; --glyph-size: 17px; border-radius: 8px; }
.account-view { padding-block: clamp(31px, 6vw, 65px); }
.account-view > h1 { font-size: clamp(41px, 6.4vw, 75px); font-weight: 640; letter-spacing: -.075em; line-height: 1; margin-bottom: 22px; }
.account-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 385px); gap: 24px; padding-block: 27px; border-block: 1px solid var(--edge); }
.account-description h2 { font-size: clamp(23px, 3.6vw, 43px); font-weight: 620; letter-spacing: -.06em; overflow-wrap: anywhere; }
.account-description p { color: var(--muted); font-size: 15px; margin-top: 7px; }
.account-description a { color: var(--accent); text-underline-offset: 4px; }
.account-segments { display: flex; gap: 4px; padding: 4px; background: #edf1fa; border-radius: 8px; }
.account-segments button { flex: 1; min-width: 0; }
#account-form { display: grid; gap: 8px; margin-top: 18px; }
#account-form label { font-size: 14px; font-weight: 650; }
#account-form input { margin-bottom: 5px; }
#account-form .button { margin-top: 3px; min-height: 44px; }
.account-usage { background: #f3f5fb; padding: 17px; border-radius: 10px; }
.account-usage h2 { font-size: 19px; font-weight: 650; margin-bottom: 9px; }
.account-usage p { color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.account-usage .button { margin-top: 7px; }
.account-message { margin-block: 11px; }
.catalog-intro h1:focus, .account-view h1:focus { outline: none; }

@media (max-width: 840px) {
  .catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 735px) {
  .bar { min-height: 59px; padding-block: 7px; }
  .bar nav { gap: 3px; }
  .bar .desktop-nav a { padding-inline: 7px; }
  .brand { gap: 6px; font-size: 22px; }
  .brand img { width: 32px; height: 32px; }
  .catalog-hero-inner { --art-height: clamp(218px, 68vw, 350px); grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .catalog-intro { padding-block: 28px 0; }
  .catalog-intro h1 { max-width: 410px; font-size: clamp(47px, 10vw, 74px); }
  .catalog-intro p { margin-block: 12px 15px; }
  .catalog-art { width: min(100%, 520px); min-height: var(--art-height); justify-self: center; }
  .catalog-tools { scroll-margin-top: 60px; }
  .account-layout { grid-template-columns: 1fr; }
  .hero { padding-block: 22px; }
  .hero-titlebar { margin-bottom: 18px; }
  .workflow { padding-block: 23px 29px; }
  .workflow-heading { margin-bottom: 12px; }
  .steps { grid-template-columns: 1fr; gap: 13px; }
  .steps li { display: grid; grid-template-columns: 21px 1fr; column-gap: 8px; padding-top: 9px; }
  .steps h3 { margin: 0; }
  .steps p { grid-column: 2; max-width: none; }
  .faq { grid-template-columns: 1fr; padding-block: 9px 32px; }
  .compare-head { padding-block: 11px; flex-wrap: wrap; }
  .compare-head .identity { width: 100%; }
  .mobile-docs { display: inline-flex; gap: 4px; width: 100%; order: -1; }
  .mobile-docs button { flex: 1; }
  .document-grid { grid-template-columns: 1fr; }
  .document-grid[data-active="source"] .result-pane, .document-grid[data-active="result"] .source-pane { display: none; }
  .paper-space { height: max(380px, 52dvh); }
  .history-title { align-items: flex-start; flex-direction: column; }
  .history-table th:nth-child(3), .history-table td:nth-child(3) { display: none; }
}
@media (max-width: 620px) {
  .bar .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .conversion-panel:has(.inspector:not([hidden])) { grid-template-columns: 1fr; }
  .inspector { border-inline-start: 0; border-block-start: 1px solid var(--edge); }
  .entry { min-height: 139px; }
  .entry .button { width: 100%; }
  .mobile-stage { display: flex; flex: 1 1 220px; gap: 2px; padding: 2px; background: var(--paper); border: 1px solid var(--edge); border-radius: 7px; }
  .mobile-stage button { flex: 1; }
  .sample-actions { flex-wrap: wrap; justify-content: flex-start; }
  .stage-sheet { width: min(87%, 260px); }
  .sample-body[data-stage="spread"] .stage-result { display: none; }
  .footer-inner { flex-wrap: wrap; row-gap: 10px; }
}
@media (max-width: 440px) {
  .catalog-list { grid-template-columns: 1fr; }
  .catalog-tool { min-height: 63px; padding-block: 9px; }
  .catalog-index { padding-block-start: 20px; }
  .catalog-tools-title { column-gap: 8px; }
  .catalog-tools-title h2 { font-size: clamp(20px, 5.4vw, 24px); }
  .catalog-filter { grid-template-columns: 1fr; }
  .tool-option :is(input,select), #account-form input { font-size: 16px; }
  .compare-toolbar { gap: 7px; }
  .tool-cluster { gap: 4px; }
  .page-count, #zoom-view { min-width: 37px; }
  .compare-toolbar .sync { padding-inline: 6px; gap: 4px; }
}
@media (max-width: 380px) {
  .catalog-hero-inner { --art-height: 196px; }
  .catalog-intro { padding-block-start: 22px; }
  .catalog-intro h1 { font-size: 44px; }
  .catalog-intro p { margin-block: 10px 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.history-tool { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.pane-page { margin-inline-start: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.document-grid.result-only { grid-template-columns: 1fr; }
.document-grid.result-only .source-pane, .compare-toolbar.result-only .mobile-docs,
.compare-toolbar.result-only .sync { display: none; }
.compare-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 13px; color: #45516a; font-size: 14px; }
#size-change { color: var(--accent); font-size: 13px; font-weight: 690; }
#pages[aria-invalid="true"] { border-color: var(--red); }

.advanced-view { padding-block: clamp(23px, 4.6vw, 57px); }
.advanced-shell { max-width: 1110px; }
.advanced-heading { margin-block: 12px 23px; }
.advanced-heading h1 { max-width: 890px; }
.advanced-heading h1:focus, .advanced-result h2:focus { outline: none; }
.advanced-heading p { max-width: 650px; margin-top: 12px; color: #4f5970; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.48; }
.advanced-form, .advanced-native, .advanced-result { border: 1px solid #cfd8eb; background: #fff; border-radius: 13px; }
.advanced-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); overflow: hidden; }
.advanced-form.single-column { grid-template-columns: 1fr; }
.advanced-input-section { min-width: 0; padding: clamp(16px, 2.7vw, 28px); }
.advanced-input-section + .advanced-input-section { border-inline-start: 1px solid #e0e6f2; }
.advanced-form.single-column .advanced-input-section { border-inline-start: 0; }
.advanced-input-section h2, .advanced-native h2, .advanced-result h2 { font-size: clamp(20px, 2.8vw, 30px); font-weight: 640; letter-spacing: -.052em; line-height: 1.2; margin-bottom: 13px; }
.advanced-file-field { min-width: 0; border: 0; margin: 0 0 13px; padding: 0; }
.advanced-file-field:last-child { margin-bottom: 0; }
.advanced-file-field legend { font-size: 14px; color: #29334d; font-weight: 690; margin-bottom: 6px; }
.advanced-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 13px;
  min-height: 75px;
  padding: 10px;
  border: 1px dashed #a5b6d6;
  border-radius: 9px;
  background: #f6f8ff;
}
.advanced-drop.dragging { background: #e8eeff; border-color: var(--accent); }
.accessible-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.accessible-file:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.accessible-file:disabled + label { cursor: default; opacity: .6; }
.advanced-file-pick { cursor: pointer; }
.advanced-drop small, .advanced-option > small { color: #53617a; font-size: 12px; line-height: 1.45; }
.advanced-file-list { list-style: none; padding: 0; margin: 0; }
.advanced-file-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 9px; min-width: 0; padding: 5px 0; margin-top: 3px; border-bottom: 1px solid #e1e7f2; font-size: 13px; }
.advanced-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.advanced-file-list small { color: #52607b; font-size: 11px; white-space: nowrap; }
.advanced-file-actions { display: inline-flex; gap: 4px; }
.advanced-file-actions button { height: 31px; width: 31px; }
.advanced-file-actions .icon { width: 16px; height: 16px; }
.advanced-option { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin: 0 0 12px; font-size: 14px; }
.advanced-option:last-child { margin-bottom: 0; }
.advanced-option label { color: #29334d; font-weight: 660; }
.advanced-option :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cbd4e7;
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
}
.advanced-option :is(input, select, textarea):disabled { background: #f4f6fa; }
.advanced-option textarea { resize: vertical; }
.advanced-option textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.advanced-checkbox { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 6px 0; }
.advanced-checkbox input { margin: 0 1px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.advanced-checkbox small { grid-column: 1/-1; }
.advanced-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  grid-column: 1/-1;
  border-top: 1px solid #e0e6f2;
  background: #f6f8fd;
  padding: 13px clamp(16px, 2.7vw, 28px);
}
.advanced-form-actions #advanced-status { color: #52607b; font-size: 14px; }
.advanced-form[data-pending="true"] .advanced-form-actions { box-shadow: inset 0 2px var(--accent); animation: processing-pulse 1.4s ease-in-out infinite alternate; }
@keyframes processing-pulse { from { box-shadow: inset 0 2px #2849ee; } to { box-shadow: inset 0 2px #a4b7ff; } }
.advanced-form > :is(.entry-error, .text-button) { grid-column: 1/-1; margin: 10px clamp(16px, 2.7vw, 28px); }
#upload-payment { display: inline-block; margin-top: 7px; }
.advanced-native { display: flex; align-items: flex-start; gap: 15px; padding: clamp(18px, 3vw, 30px); }
.advanced-native > div { min-width: 0; }
.advanced-native > .upload-mark { flex: none; }
.advanced-native h2 { margin-bottom: 5px; }
.advanced-native p, .advanced-result p { color: var(--muted); font-size: 14px; }
.advanced-native .button { margin-top: 13px; white-space: normal; }
.advanced-native .button .icon { flex: none; }
.advanced-result { margin-block-start: 20px; overflow: hidden; scroll-margin-top: 82px; }
.advanced-result-header { display: flex; justify-content: space-between; align-items: center; gap: 9px 15px; flex-wrap: wrap; padding: 15px clamp(16px, 2.7vw, 28px); }
.advanced-result-header h2 { margin: 0 0 5px; }
.advanced-result-header p { overflow-wrap: anywhere; }
.advanced-summary { padding: 0 clamp(16px, 2.7vw, 28px) 16px; }
.advanced-summary table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.advanced-summary th, .advanced-summary td { border-block-end: 1px solid var(--edge); padding: 6px 12px 6px 0; text-align: start; }
.advanced-summary .advanced-summary-title { color: var(--ink); font-weight: 650; margin-bottom: 6px; }
.advanced-preview { background: #eaf0fc; border-top: 1px solid #dee5f4; }
.advanced-preview .tool-cluster { padding: 9px 13px; background: #f6f8fd; border-bottom: 1px solid #dbe4f6; }
.advanced-preview #advanced-page { min-width: 46px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
#advanced-preview-note { padding: 13px; }
.advanced-paper { max-height: min(72svh, 850px); overflow: auto; padding: 13px; }
.advanced-paper canvas { display: block; margin-inline: auto; background: #fff; box-shadow: 0 5px 17px #21375630; }
.advanced-json { overflow: auto; max-height: 55svh; padding: 14px; margin: 0; background: #f0f4fd; border-top: 1px solid #dee5f4; color: #24334d; tab-size: 2; }
.advanced-related { padding: 27px 0 0; }
.account-billing { border-block: 1px solid #dce3f2; margin-block: 12px; padding-block: 13px 14px; }
.account-billing p:empty { display: none; }

@media (max-width: 760px) {
  .advanced-form { grid-template-columns: 1fr; }
  .advanced-input-section + .advanced-input-section { border-inline-start: 0; border-top: 1px solid #e0e6f2; }
  .advanced-heading { margin-block: 10px 16px; }
  .advanced-file-actions button { min-height: 44px; min-width: 39px; }
  .advanced-option :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; }
}

.account-continuation { max-width: 480px; color: #45516a; line-height: 1.45; }

.editor-entry { padding-block: clamp(40px, 9vw, 100px); }
.editor-entry h1 { font-size: clamp(27px, 4vw, 42px); letter-spacing: -.05em; }
.editor-entry p { margin: 10px 0 16px; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.result-action-status { margin: 0; padding: 0 clamp(16px, 2.7vw, 28px) 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 620px) {
  .compare-actions { flex-wrap: wrap; justify-content: flex-start; }
  #compare-editor { padding-inline: 9px; font-size: 13px; white-space: normal; }
  .compare-view .icon-button { width: 44px; height: 44px; }
  .compare-actions .button, .compare-toolbar .sync { min-height: 44px; }
  .advanced-file-pick, .advanced-form-actions .button { min-height: 44px; }
}
