:root {
  --ink:#211c2a; --muted:#635d6d; --line:#e5e0eb; --purple:#5c32be; --purple-dark:#49249f;
  --paper:#faf9fc; --panel:#fff; --lavender:#f0eafb; --focus:#784ed7;
  --page-width:1240px;
}
html {scroll-padding-top:18px}
body {background:var(--paper);color:var(--ink)}
.section-width {width:min(var(--page-width), calc(100% - 96px));min-width:0}
.header-shell {background:#fff;border-bottom:1px solid var(--line)}
.header-shell .header {
  position:relative;inset:auto;transform:none;z-index:auto;margin:0 auto;width:min(var(--page-width),calc(100% - 96px));height:auto;min-height:72px;
  background:none;border:0;border-radius:0;box-shadow:none;padding:13px 0;display:grid;
  grid-template-columns:1fr auto 1fr;gap:30px;align-items:center;
}
.header .brand {font-size:25px;font-weight:750;letter-spacing:-.065em;width:max-content}
.header .brand-mark {width:34px;height:34px}
.header .desktop-nav {display:flex;gap:clamp(18px,3vw,38px);line-height:1.25}
.header .desktop-nav a,.header-login {font-size:14px;font-weight:600;color:#47404f}
.header .desktop-nav a:hover,.header-login:hover {color:var(--purple)}
.header .header-actions {margin-left:0;justify-content:flex-end;gap:clamp(14px,1.8vw,23px)}
.header .header-actions .button {font-size:13px!important;min-height:39px!important;padding:8px 12px!important;line-height:1.2;border-radius:8px;white-space:nowrap}
.menu-toggle {display:none;border:1px solid var(--line);background:white;border-radius:8px;padding:0 9px;min-height:42px;gap:5px;color:var(--ink)}
.menu-toggle svg {width:18px;height:18px}
.site-announcement {margin:0!important;position:static!important}
.preview-note {position:static!important}
.skip-link:focus {z-index:30}
.workspace,.account-section {padding-top:34px}
.account-section.is-admin {padding-top:26px}
.button.black,.process-button,.download-main {background:#231e2d;color:#fff}
.button.black:hover,.process-button:hover,.download-main:hover {background:#3a304b;color:white}
.button.purple {background:var(--purple);color:#fff}
.button.purple:hover {background:var(--purple-dark)}
.work-hero {
  display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:clamp(25px,5.2vw,80px);
  align-items:center;padding-block:clamp(44px,6.2vw,96px) clamp(36px,5.2vw,73px)
}
.work-intro {min-width:0}
.hero-formats {display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#675782;font-size:13px;font-weight:700;margin:0 0 19px}
.hero-formats span {width:4px;height:4px;border-radius:50%;background:#ad92d3}
.work-intro h1 {color:#201b29;font-weight:750;font-size:clamp(42px,5.1vw,76px);line-height:1;letter-spacing:-.063em;margin:0;overflow-wrap:anywhere}
.work-intro h1 span {color:#633ac4}
.work-intro .hero-description {font-size:clamp(16px,1.52vw,19px);line-height:1.56;margin:22px 0 28px;max-width:485px;color:#51495e}
.hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.hero-actions .button {min-height:47px;font-size:14px;padding:11px 15px;border-radius:9px}
.hero-privacy,.hero-drop-label {display:flex;align-items:center;gap:7px;margin:16px 0 0;font-size:13px;font-weight:500;color:#645b73}
.hero-privacy svg,.hero-drop-label svg {width:15px;height:15px}
.hero-stage {
  min-width:0;padding:clamp(13px,2.8vw,33px) clamp(13px,2.7vw,34px) 13px;border:1px solid #e5daf6;border-radius:20px;
  background:radial-gradient(#9b79c52d 1px,transparent 1px) 0 0/15px 15px,linear-gradient(145deg,#f1eaff,#ede6f7);
}
.hero-stage.drag-over {border:2px dashed var(--purple);background-color:#e6d9fa}
.hero-window {background:white;border:1px solid #dcd3e7;border-radius:12px;box-shadow:0 14px 38px #3c266622;overflow:hidden}
.hero-window-top,.hero-window-bottom {display:flex;align-items:center;justify-content:space-between;min-width:0;gap:12px;padding:11px 12px}
.hero-window-top {min-height:48px}
.hero-window-top>span {display:inline-flex;align-items:center;gap:7px;color:#332940;font-size:13px;font-weight:700}
.hero-window-top>span svg {width:16px;height:16px;color:#6b43b6}
.hero-window-bottom div {min-width:0;flex:1}
.hero-window-bottom strong {display:block;font-size:14px;color:#332940;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-window-bottom p {margin:1px 0 0;color:#6a6274;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.hero-window-bottom .text-button,#home-reset {color:var(--purple);font-size:13px;font-weight:700;min-height:34px;flex:0 0 auto}
.hero-demo-tabs,.live-mode {display:flex;gap:2px;background:#f1eef5;border-radius:7px;padding:3px}
.hero-demo-tabs button,.live-mode button {
  padding:4px 10px;min-height:27px;border:0;border-radius:5px;background:transparent;color:#655d72;font-size:13px;font-weight:600;white-space:nowrap
}
.hero-demo-tabs button[aria-pressed=true],.live-mode button[aria-pressed=true] {background:white;color:#40256c;box-shadow:0 1px 2px #33244319}
.hero-media {margin:0 10px}
.hero-picture {position:relative;aspect-ratio:1.67;background:linear-gradient(165deg,#97a9bf,#a7b1c7 36%,#758c96 37%,#688c96);border-radius:7px;overflow:hidden}
.hero-picture img {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-picture .hero-original {clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.hero-drop-label {justify-content:center;margin:11px 0 0}
.hero-pdf {height:auto;aspect-ratio:1.67;background:#eeebf5;border-radius:7px;display:grid;place-items:center;overflow:hidden;padding:12px}
.sample-paper {display:block;width:min(250px,70%);min-height:90%;padding:12px 16px 17px;border:1px solid #e1d9e8;border-radius:5px;background:white;box-shadow:0 8px 24px #241d3b1a}
.sample-paper>div:first-child {display:flex;justify-content:space-between;color:#6c489b;font-size:10px;font-weight:700}
.sample-paper strong {display:block;font-size:17px;margin-top:8px}
.sample-paper p {font-size:11px;margin:0 0 8px;color:#66616d}
.sample-paper i {display:block;height:3px;border-radius:2px;margin-top:5px;background:#e6e0ed}
.sample-paper>i:nth-of-type(2n) {width:82%}
.sample-paper .sample-table {margin-top:10px;border:1px solid #ebe4f4;border-radius:3px;padding:4px 7px 8px}
.hero-picked {display:grid;gap:6px;padding:2px 10px 8px;max-height:255px;overflow:auto}
.hero-picked .file-row {margin:0}
.hero-picked p.picked-more {padding:6px 9px;margin:0;color:var(--muted);font-size:13px}
.tools-section {padding-top:29px;border-top:1px solid var(--line);scroll-margin-top:7px}
.tools-section .section-heading {align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.tools-section .section-heading h2,.how-section>h2,.faq-section>h2 {font-size:clamp(27px,3.25vw,45px);letter-spacing:-.052em;line-height:1.09;margin:0}
.catalog-subtitle {margin:5px 0 0;color:var(--muted);font-size:15px}
.home-search {min-width:200px;width:min(340px,42%);min-height:44px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #dcd6e5;border-radius:9px;background:white}
.home-search:focus-within {outline:2px solid var(--focus)}
.home-search input {min-width:0;width:100%;border:0;background:transparent;color:inherit;font-size:16px}
.home-search input:focus {outline:0}
.home-search kbd {font:13px monospace;color:#60586b;background:#f1eef5;padding:2px 6px;border-radius:4px}
.catalog-bar {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 13px}
.catalog-bar .filters {display:flex;flex-wrap:wrap;gap:5px;margin:0;min-width:0}
.catalog-bar .filter {font-size:13px;min-height:34px;padding:5px 10px;border-radius:7px}
.catalog-bar .filter.active {color:#4e2c91;border-color:#d4c3eb;background:#eee6f8}
#show-catalog {font-size:13px;font-weight:700;color:var(--purple);white-space:nowrap;min-height:34px}
.tool-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tool-card,.tool-card.featured {background:white;border:1px solid #e4dfea;border-radius:11px;box-shadow:none;min-height:0}
.card-main {min-height:116px;padding:16px 42px 16px 64px;position:relative}
.card-main .tool-icon {position:absolute;left:13px;top:16px;width:37px;height:37px;background:var(--tone-bg);color:#594583;border-radius:8px}
.card-main .tool-category {display:none}
.card-main h3 {font-size:16px;margin:0 0 4px;letter-spacing:-.027em}
.card-main p {margin:0;color:#645d6d;font-size:14px}
.card-favorite {top:10px;right:8px}
.tool-card:hover {border-color:#baa3d9}
.how-section {margin-block:59px 32px;padding-top:28px;border-top:1px solid var(--line)}
.how-grid {padding-top:18px;gap:18px}
.how-grid article {min-width:0;background:#fff;border:1px solid var(--line);padding:18px;border-radius:11px}
.how-grid h3 {margin:9px 0 3px}
.how-grid p {margin:0;color:var(--muted)}
.faq-section {margin-block:36px;padding-top:26px;border-top:1px solid var(--line);gap:25px}
.faq-list {min-width:0}
.workspace-layout {align-items:start}
.workspace-main,.settings-panel {min-width:0}
.settings-panel {position:static}
.settings-panel input:not([type=checkbox]):not([type=radio]),.settings-panel select,.settings-panel textarea {max-width:100%}
.module-panel:empty {display:none}
.module-panel {margin-top:16px}
.module-panel canvas,.module-panel img {max-width:100%}
.result-next,.preview-tools,.preset-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-start;margin-top:8px}
.result-next {margin:14px 0}
.result-info {font-size:14px;margin:7px 0;color:#55486c;overflow-wrap:anywhere}
.result-row {flex-wrap:wrap}
.result-row .file-details {flex:1 1 140px}
.result-row .button {white-space:normal}
.preset-box {border-block:1px solid var(--line);padding:12px 0;margin:14px 0}
.preset-box summary {font-weight:600;cursor:pointer}
.preset-box p,.preset-box label,.preset-entry small {display:block;color:#655e6e;font-size:13px;margin:8px 0}
.preset-box input,.preset-box select {border:1px solid #d5cfdf;border-radius:8px;width:100%;padding:8px}
.pdf-preview {display:block;max-width:100%;max-height:65vh;width:auto;margin:12px auto;background:#fff;box-shadow:0 1px 10px #21113529}
.before-after {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.before-after figure {min-width:0;margin:0}
.before-after canvas,.comparison img {max-width:100%;height:auto}
.busy-settings {pointer-events:none}
.preset-entry {padding:12px;border-bottom:1px solid #e7e3ed;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.preset-entry a {flex:1}
.workspace-info,.notice,.form-error {overflow-wrap:anywhere}
.form-error {white-space:pre-wrap}
.preview-title {margin:10px 0;font-size:22px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid var(--focus);outline-offset:2px}
.file-thumb.preview-trigger {align-self:center;border:1px solid #e4d9ef;color:#643e9f;background:#f2ebfa;cursor:pointer;overflow:hidden;flex-shrink:0}
.file-thumb.preview-trigger:hover {border-color:#936ace}
.file-thumb.preview-trigger img {width:100%;height:100%;object-fit:contain;display:block}
.file-preview-action {min-height:36px;flex:0 0 auto;white-space:nowrap;padding-inline:9px!important;font-size:13px!important}
.file-preview-lg {width:min(870px,calc(100% - 24px));max-width:870px}
.file-preview-lg .preview-title {padding-right:35px;overflow-wrap:anywhere}
.file-preview-info,.preview-document-note {color:var(--muted);font-size:14px;margin:4px 0 10px}
.file-preview-image {display:block;max-height:68vh;max-width:100%;margin:auto;object-fit:contain;border-radius:6px}
.file-preview-text {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;background:#f9f8fb;border:1px solid var(--line);padding:16px;border-radius:9px;max-height:57vh;overflow:auto}
.file-preview-data {overflow:auto;max-height:58vh}
.file-preview-data table {border-collapse:collapse;width:100%;font-size:14px}
.file-preview-data td,.file-preview-data th {border:1px solid var(--line);text-align:left;padding:7px 9px;min-width:68px;overflow-wrap:anywhere}
.file-preview-data th {background:#f3edf9}
.preview-slide {border:1px solid var(--line);margin-bottom:9px;border-radius:8px;padding:12px;background:white}
.preview-slide h3,.preview-slide p {margin:0 0 5px}
.preview-slide p {white-space:pre-line;overflow-wrap:anywhere}
.compare-line {position:absolute;z-index:2;inset:0 auto 0 var(--split);width:2px;transform:translateX(-50%);background:#fff;box-shadow:0 0 8px #21162c54;pointer-events:none}
.compare-line>span {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:white;color:#2e2341;box-shadow:0 2px 7px #20152f41;font-size:16px;font-weight:700;white-space:nowrap}
.compare-label {position:absolute;z-index:3;top:8px;pointer-events:none;background:#211b2cdd;color:white;padding:3px 8px;border-radius:5px;font-size:12px;font-weight:700}
.compare-before {left:8px}.compare-after {right:8px}
.compare-range {position:absolute;inset:0;height:100%;width:100%;margin:0;z-index:4;opacity:0;cursor:ew-resize;touch-action:pan-y}
.hero-picture:focus-within,.live-surface:focus-within {outline:2px solid #a284ee;outline-offset:2px}
#photo-live-preview {margin:0 0 15px;min-width:0}
.live-card {background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px}
.live-head {display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.live-head h2 {font-size:18px;line-height:1.2;margin:0}
.live-head .pl-control {margin:0;width:100%;min-width:0}
.live-head .pl-control select {max-width:100%}
.live-surface {position:relative;isolation:isolate;width:100%;overflow:hidden;border-radius:9px;background:#f2eff7;min-height:120px}
.live-surface canvas {display:block;width:100%;height:auto;max-height:68vh;object-fit:contain}
.live-surface .live-before {position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.live-surface[data-mode=before] .live-before {clip-path:none}
.live-surface[data-mode=after] .live-before {display:none}
.live-surface[data-mode=before] :is(.compare-line,.compare-range,.compare-after),.live-surface[data-mode=after] :is(.compare-line,.compare-range,.compare-before) {display:none}
.live-status {margin:8px 0 0;font-size:13px;color:var(--muted);min-height:20px}
.photo-presets {display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}
.photo-presets button {min-height:36px;font-size:12px;padding:5px 8px;border-radius:7px}
.photo-presets button[aria-pressed=true] {background:#eee6fa;border-color:#c7afe9;color:#4b258e}
@media(max-width:1020px) {
  .header-shell .header,.section-width {width:calc(100% - 56px)}
  .header-shell .header {grid-template-columns:auto 1fr auto;gap:18px}
  .header .desktop-nav {justify-self:center}
  .header .desktop-nav a,.header-login {font-size:13px}
  .header .header-actions {gap:11px}
  .work-intro h1 {font-size:clamp(38px,5.35vw,58px)}
}
@media(max-width:840px) {
  .header-shell .header {grid-template-columns:auto 1fr auto;column-gap:12px;row-gap:0;padding-block:10px;min-height:62px}
  .header .header-actions {grid-column:2;grid-row:1}
  .header .menu-toggle {display:inline-flex;align-items:center;grid-column:3;grid-row:1;justify-self:end;font-size:13px;font-weight:600}
  .header .desktop-nav {display:none;grid-column:1/-1;grid-row:2;justify-self:stretch;justify-content:space-between;padding:11px 0 2px;margin-top:9px;border-top:1px solid var(--line);gap:10px}
  .header.menu-open .desktop-nav {display:flex}
  .header .desktop-nav a {display:inline}
  .tool-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-stage {padding:13px 13px 10px}
}
@media(max-width:660px) {
  .section-width,.header-shell .header {width:calc(100% - 32px)}
  .work-hero {grid-template-columns:1fr;gap:22px;padding-block:25px 24px}
  .work-intro h1 {font-size:clamp(39px,8vw,56px)}
  .hero-formats {margin-bottom:12px}
  .work-intro .hero-description {margin:14px 0 17px}
  .hero-privacy {margin-top:11px}
  .tools-section .section-heading {display:grid;grid-template-columns:1fr;gap:10px}
  .home-search {width:100%}
  .catalog-bar {justify-content:flex-start;flex-wrap:wrap}
  .catalog-subtitle {display:none}
  .tool-grid {grid-template-columns:1fr}
  .card-main {min-height:82px;padding:12px 42px 13px 61px}
  .card-main .tool-icon {top:12px}
  .how-section,.faq-section {margin-block:34px 24px}
  .how-grid {gap:8px}
  .workspace,.account-section {padding-top:20px}
  .workspace-heading {flex-wrap:wrap}
  .workspace-layout {grid-template-columns:minmax(0,1fr)}
  .workspace:has(#photo-live-preview:not([hidden])) .workspace-layout {display:flex;flex-direction:column;gap:12px}
  .workspace-main,.settings-panel {width:100%}
  .workspace:has(.live-surface) .workspace-main {display:contents}
  .workspace:has(.live-surface) #photo-live-preview {order:1;width:100%;margin:0}
  .workspace:has(.live-surface) .settings-panel {order:2}
  .workspace:has(.live-surface) :is(.dropzone,.file-toolbar,.file-list,.workspace-info,.result-panel) {order:3;width:100%}
  .settings-panel input,.settings-panel select,.settings-panel textarea {font-size:16px}
  .before-after,.comparison {grid-template-columns:1fr}
  .file-preview-action {display:none}
}
@media(max-width:510px) {
  .header .brand {font-size:20px;gap:6px}
  .header .brand-mark {width:29px;height:29px}
  .header .header-actions {gap:7px}
  .header .header-actions .button {font-size:12px!important;padding:7px 8px!important}
  .header-login,.menu-toggle {font-size:12px}
  .header #header-register {display:none}
  .header #header-account .avatar-small {display:none}
  .header #header-admin {max-width:108px;overflow:hidden;text-overflow:ellipsis}
  .hero-window-top,.hero-window-bottom {padding:8px}
  .hero-window-top>span,.hero-demo-tabs button {font-size:12px}
  .hero-window-bottom strong {font-size:13px}
}
@media(max-width:365px) {
  .header-shell .header {column-gap:7px}
  .header .brand {font-size:18px}
  .menu-toggle {padding-inline:5px}
  .menu-toggle span:last-child {display:none}
  .header .header-actions {gap:5px}
  .hero-actions .button {padding:9px 10px}
}
.hero-picture .demo-photo-tone {filter:brightness(1.12) contrast(1.15) saturate(1.16)}
.preview-tools input[type=number] {width:83px;padding:5px;border:1px solid var(--line);border-radius:6px;text-align:center}
#photo-live-preview .pl-editor {margin:0;padding:12px;border-radius:13px}
#photo-live-preview:not([hidden]) + .dropzone.has-files {margin:0 0 11px;min-height:0;padding:10px}
#photo-live-preview:not([hidden]) + .dropzone.has-files .drop-alternative {margin:0}
.live-mode .pl-btn {padding:4px 10px}
@media (max-width:660px) {
  .workspace:has(.live-surface) #photo-live-preview {position:sticky;top:5px;z-index:8}
  .live-surface canvas {max-height:min(30vh,240px)}
  .live-head h2 {font-size:16px}
}

.header #mobile-register {display:none}
@media(max-width:510px) {
  .header #mobile-register:not([hidden]) {display:inline}
  .header .desktop-nav {flex-wrap:wrap;justify-content:flex-start;gap:6px 14px}
  .header .desktop-nav a {padding:4px 0}
}
