:root {
  --accent: #2563EB;
  --accent-dark: #0F172A;
  --ink: #0F172A;
  --muted: #5f636d;
  --line: #e5e7eb;
  --soft: #f7f7f8;
  --ad: #f4f4f5;
  --surface: #ffffff;
  --shadow: 0 12px 32px rgba(20, 24, 32, 0.08);
  --radius: 8px;
  --max: 1130px;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.edit-pdf-upload-page {
  min-height: calc(100vh - 72px);
  background: #f7f7fb;
}

.edit-pdf-upload-layout {
  width: min(1500px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: start;
}

.edit-pdf-upload-center {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.edit-pdf-upload-center .ad-band {
  min-height: 64px;
}

.edit-pdf-upload-hero {
  width: 100%;
  min-height: 360px;
  margin: 0 auto;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 34px 28px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.edit-pdf-upload-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
}

.edit-pdf-upload-hero p {
  max-width: 760px;
  margin: 0;
  color: #3e4450;
  font-size: 18px;
  line-height: 1.45;
}

.edit-pdf-picker {
  position: relative;
  margin-top: 28px;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.edit-pdf-select {
  min-width: min(460px, calc(100vw - 64px));
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: #df4038;
  color: #fff;
  box-shadow: 0 8px 18px rgba(95, 40, 34, 0.18);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.edit-pdf-picker.is-dragging .edit-pdf-select {
  outline: 4px solid rgba(223, 64, 56, 0.22);
}

.edit-pdf-cloud-buttons {
  position: absolute;
  left: calc(50% + 240px);
  top: 0;
  display: grid;
  gap: 12px;
}

.edit-pdf-cloud-buttons span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #df4038;
  color: #fff;
  box-shadow: 0 8px 18px rgba(95, 40, 34, 0.2);
  font-size: 25px;
}

.edit-pdf-picker > p {
  color: #555b66;
  font-size: 18px;
}

.pdf-editor-shell {
  --editor-red: #df4038;
  --editor-blue: #2f63e6;
  --editor-chrome: #44464f;
  --editor-border: #d8dce2;
  --editor-offset: 126px;
  min-height: calc(100vh - 72px);
  background: #f1f2f5;
}

.pdf-editor-mainbar,
.pdf-editor-subbar {
  position: sticky;
  z-index: 15;
  display: flex;
  align-items: stretch;
  min-height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--editor-border);
  overflow-x: auto;
}

.pdf-editor-mainbar {
  top: 71px;
  overflow: visible;
}

.pdf-editor-subbar {
  top: 137px;
  justify-content: center;
  min-height: 68px;
  background: #f2f3f5;
}

.pdf-editor-formatbar {
  position: sticky;
  top: 139px;
  z-index: 14;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--editor-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.pdf-editor-formatbar button,
.pdf-format-cell,
.pdf-format-select,
.pdf-format-opacity {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid var(--editor-border);
  background: #fff;
  color: #424650;
  font-size: 18px;
  font-weight: 800;
}

.pdf-editor-formatbar button {
  min-width: 44px;
  padding: 0 14px;
  cursor: pointer;
}

.pdf-editor-formatbar button.is-active {
  color: var(--editor-blue);
  background: #f6f8ff;
}

.pdf-format-leading {
  min-width: 48px;
}

.pdf-format-select {
  padding: 0 12px;
}

.pdf-format-select select,
.pdf-format-opacity select {
  height: 30px;
  min-width: 84px;
  border: 1px solid #b8bec7;
  border-radius: 5px;
  background: #fff;
  color: #5b616b;
  padding: 0 26px 0 10px;
  font: 600 16px/1.1 inherit;
}

.pdf-format-font select {
  min-width: 154px;
}

.pdf-format-font option {
  font-family: var(--font-preview), Arial, sans-serif;
}

.pdf-format-size span {
  font-size: 15px;
  letter-spacing: 0;
}

.pdf-format-color {
  min-width: 68px;
  display: grid;
  gap: 2px;
}

.pdf-format-color i {
  width: 28px;
  height: 4px;
  display: block;
  background: var(--swatch);
  border: 1px solid #9aa3ad;
}

.pdf-format-opacity {
  min-width: 150px;
  padding: 0 14px;
}

.pdf-editor-drawbar .pdf-format-swatch {
  min-width: 72px;
}

.pdf-editor-shapebar {
  overflow: visible;
}

.pdf-editor-shapebar > button {
  min-width: 58px;
  color: #707680;
}

.pdf-editor-shapebar > button.is-active {
  color: var(--editor-red);
  background: #f7f8fb;
}

.pdf-editor-shapebar svg,
.pdf-shape-gallery svg,
.pdf-op-shape svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-shape-gallery {
  position: absolute;
  left: 8px;
  top: 44px;
  z-index: 40;
  width: min(620px, calc(100vw - 420px));
  max-height: 0;
  overflow: hidden;
  background: #c7c7c7;
  border: 1px solid #909090;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  transition: max-height 0.16s ease;
}

.pdf-editor-shapebar:hover .pdf-shape-gallery,
.pdf-shape-gallery:focus-within {
  max-height: 520px;
  overflow-y: auto;
}

.pdf-shape-gallery section {
  padding: 14px 18px 16px;
  border-bottom: 1px solid #8e8e8e;
}

.pdf-shape-gallery h3 {
  margin: 0 0 14px;
  color: #24272c;
  font-size: 17px;
  line-height: 1;
}

.pdf-shape-gallery section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.pdf-shape-gallery button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #51555b;
}

.pdf-shape-gallery button:hover,
.pdf-shape-gallery button.is-active {
  border-color: #2f7cff;
  background: rgba(255, 255, 255, 0.42);
}

.pdf-format-swatch span {
  width: 22px;
  height: 22px;
  display: block;
  border: 1px solid #737983;
  border-radius: 3px;
  background: var(--swatch);
}

.pdf-format-stroke select {
  min-width: 96px;
}

.pdf-format-confirm {
  color: #65c783 !important;
}

.pdf-format-opacity > span {
  width: 22px;
  height: 22px;
  display: block;
  background:
    linear-gradient(45deg, #cfd5dd 25%, transparent 25% 75%, #cfd5dd 75%),
    linear-gradient(45deg, #cfd5dd 25%, transparent 25% 75%, #cfd5dd 75%);
  background-color: #fff;
  background-position: 0 0, 6px 6px;
  background-size: 12px 12px;
  border: 1px solid #aab2bd;
}

.pdf-editor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 238px;
  padding: 9px 14px;
  border-right: 1px solid var(--editor-border);
}

.pdf-editor-toggle button {
  min-width: 104px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--editor-chrome);
  background: #fff;
  color: #373941;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.pdf-editor-toggle button:first-child {
  border-radius: 20px 0 0 20px;
}

.pdf-editor-toggle button:last-child {
  margin-left: -2px;
  border-radius: 0 20px 20px 0;
}

.pdf-editor-toggle button.is-active {
  background: var(--editor-chrome);
  color: #fff;
}

.pdf-editor-primary-tools {
  display: flex;
  align-items: stretch;
}

.pdf-editor-icon-button,
.pdf-editor-tab,
.pdf-editor-tool {
  min-width: 58px;
  border: 0;
  border-left: 1px solid var(--editor-border);
  background: transparent;
  color: #6b7079;
  cursor: pointer;
  font-weight: 700;
}

.pdf-editor-icon-button {
  display: grid;
  place-items: center;
  font-size: 20px;
}

.pdf-editor-tab,
.pdf-editor-tool {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 6px 10px;
  position: relative;
}

.pdf-editor-tab span,
.pdf-editor-tool span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.pdf-editor-tool svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.pdf-editor-tool em {
  display: none;
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--editor-chrome);
  color: #fff;
  font-size: 15px;
  font-style: normal;
  white-space: nowrap;
}

.pdf-editor-tool em::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--editor-chrome);
}

.pdf-editor-tool:hover em {
  display: block;
}

.pdf-editor-primary-tools .pdf-editor-tool.is-active em {
  display: none;
}

.pdf-editor-icon-button.is-active,
.pdf-editor-tab.is-active,
.pdf-editor-tool.is-active {
  color: var(--editor-blue);
  background: #f8f9fb;
}

.pdf-editor-primary-tools .pdf-editor-tool.is-active:first-child {
  color: var(--editor-red);
}

.pdf-editor-primary-tools .pdf-editor-tool[title="Draw"].is-active {
  color: var(--editor-red);
}

.pdf-editor-subbar .pdf-editor-tool {
  min-width: 54px;
  border-left: 0;
  color: #8a9098;
}

.pdf-editor-subbar .pdf-editor-tool.is-active {
  color: #2f6fa9;
}

.pdf-editor-separator {
  align-self: center;
  width: 1px;
  height: 34px;
  margin: 0 10px;
  background: #d6dbe1;
}

.pdf-editor-workbench {
  display: grid;
  grid-template-columns: 224px minmax(500px, 1fr) 304px;
  min-height: calc(100vh - var(--editor-offset));
}

.pdf-editor-shell.has-subbar .pdf-editor-workbench {
  --editor-offset: 182px;
}

.pdf-editor-shell.has-formatbar {
  --editor-offset: 174px;
}

.pdf-editor-left,
.pdf-editor-right {
  background: #fff;
  border-right: 1px solid var(--editor-border);
  overflow-y: auto;
  max-height: calc(100vh - var(--editor-offset));
}

.pdf-editor-right {
  border-right: 0;
  border-left: 1px solid var(--editor-border);
  padding: 16px 14px 104px;
}

.pdf-editor-left {
  padding: 10px 12px;
}

.pdf-editor-left h2,
.pdf-editor-right h1,
.pdf-editor-right h2 {
  margin: 0 0 22px;
  color: #333840;
}

.pdf-editor-left h2,
.pdf-editor-right h1 {
  font-size: 22px;
  line-height: 1.15;
}

.pdf-editor-left h3,
.pdf-editor-right h2,
.pdf-editor-control-group h3 {
  margin: 0 0 14px;
  color: #343941;
  font-size: 17px;
}

.pdf-editor-panel-tabs {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #9ba3ad;
  border-radius: 5px;
}

.pdf-editor-panel-tabs button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #9ba3ad;
  background: #fff;
  color: #7f8791;
  cursor: pointer;
}

.pdf-editor-panel-tabs button:last-child {
  border-right: 0;
}

.pdf-editor-panel-tabs .is-active {
  background: #3f78b5;
  color: #fff;
}

.pdf-editor-thumb-zoom {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: #7b838d;
  font-weight: 800;
}

.pdf-editor-thumbs {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.pdf-editor-thumb {
  width: 100px;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #666d77;
  cursor: pointer;
}

.pdf-editor-thumb canvas {
  width: 96px;
  height: 124px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 3px 11px rgba(15, 23, 42, 0.16);
}

.pdf-editor-thumb.is-active canvas {
  border-color: #3978ff;
}

.pdf-editor-multiselect {
  display: none;
  gap: 12px;
  margin-top: 28px;
  color: #3f4650;
  font-size: 22px;
  line-height: 1.35;
}

.pdf-editor-multiselect input,
.pdf-editor-two input,
.pdf-editor-two select,
.pdf-editor-control-group select,
.pdf-editor-option-row input {
  min-height: 42px;
  border: 1px solid #a8b0bb;
  border-radius: 5px;
  background: #fff;
  padding: 0 10px;
  color: #343941;
}

.pdf-editor-stage {
  position: relative;
  min-width: 0;
  overflow: auto;
  max-height: calc(100vh - var(--editor-offset));
  border-left: 1px solid var(--editor-border);
  border-right: 1px solid var(--editor-border);
}

.pdf-editor-filebar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px 14px 10px;
  color: #505862;
  font-size: 14px;
}

.pdf-editor-page-wrap {
  display: grid;
  justify-items: center;
  padding: 18px 22px 78px;
}

.pdf-editor-page {
  position: relative;
  width: max-content;
  min-width: 0;
  min-height: 0;
  background: #fff;
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.16);
}

#editPdfCanvas {
  display: block;
  max-width: none;
}

#editPdfFallback {
  display: block;
  width: 100%;
  height: 790px;
  border: 0;
}

.pdf-editor-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pdf-op {
  position: absolute;
  transform: translate(-4px, -50%);
  pointer-events: auto;
  color: var(--op-color, #df4b3f);
  opacity: var(--op-opacity, 1);
  cursor: pointer;
  user-select: none;
}

.pdf-editor-shell:has(.pdf-editor-tool[title="Drag"].is-active) .pdf-op {
  cursor: grab;
}

.pdf-editor-shell:has(.pdf-editor-tool[title="Drag"].is-active) .pdf-op:active {
  cursor: grabbing;
}

.pdf-op.is-selected,
.pdf-op-box.is-selected,
.pdf-op-circle.is-selected,
.pdf-op-text.is-selected {
  outline: 2px dashed #5a9bee;
  outline-offset: 2px;
}

.pdf-op-text {
  min-width: 100px;
  padding: 1px 4px;
  color: var(--op-color);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  caret-color: var(--op-color, #df4b3f);
  outline-offset: 2px;
}

.pdf-op-text[contenteditable="true"]:focus,
.pdf-op-text[contenteditable="plaintext-only"]:focus {
  outline: 2px solid #5a9bee;
  background: rgba(255, 255, 255, 0.76);
}

.pdf-op-box {
  width: 150px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--op-color);
  color: var(--op-color);
  font-size: 12px;
}

.pdf-op-image {
  width: 132px;
  min-height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed var(--op-color);
  background: rgba(255, 255, 255, 0.88);
}

.pdf-op-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-op-image svg {
  width: 42px;
  height: 42px;
}

.pdf-op-shape {
  width: 120px;
  height: 80px;
  display: grid;
  place-items: center;
  color: var(--op-color);
}

.pdf-op-shape svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.7;
}

.pdf-op-circle {
  width: 74px;
  height: 46px;
  border: 2px solid var(--op-color);
  border-radius: 50%;
}

.pdf-op-line {
  width: 130px;
  height: 3px;
  background: var(--op-color);
  transform: rotate(-18deg);
}

.pdf-op-freehand {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: var(--op-opacity, 1);
}

.pdf-op-freehand polyline {
  fill: none;
  stroke: var(--op-color, #222);
  stroke-width: calc(var(--op-stroke, 4) * 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pdf-op-freehand.is-selected polyline {
  filter: drop-shadow(0 0 0 #5a9bee);
}

.pdf-op-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--op-color);
}

.pdf-op-highlight {
  width: 150px;
  height: 22px;
  background: var(--op-color);
  opacity: calc(var(--op-opacity, 1) * 0.42);
}

.pdf-op-note {
  min-width: 92px;
  padding: 8px 10px;
  border: 2px solid var(--op-color);
  border-radius: 4px;
  background: #fff8dc;
  color: #2f3237;
}

.pdf-op-cloud {
  min-width: 105px;
  padding: 9px 12px;
  border: 2px dashed var(--op-color);
  border-radius: 22px;
}

.pdf-op-stamp {
  padding: 8px 16px;
  border: 2px solid var(--op-color);
  border-radius: 5px;
  color: var(--op-color);
  font-weight: 900;
  font-style: italic;
}

.pdf-op-signature {
  color: var(--op-color);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 36px;
}

.pdf-editor-controls {
  position: sticky;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  width: max-content;
  max-width: calc(100vw - 36px);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 5px;
  background: #4a4b54;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.pdf-editor-controls button,
.pdf-editor-controls input {
  min-width: 40px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
}

.pdf-editor-controls input {
  width: 84px;
  background: #71717a;
  text-align: center;
  font-size: 20px;
}

.pdf-editor-outline-action {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #3f78b5;
  border-radius: 5px;
  background: #fff;
  color: #3f78b5;
  cursor: pointer;
  font-weight: 700;
}

.pdf-editor-stamp-list {
  display: grid;
  gap: 8px;
}

.pdf-editor-stamp-list button {
  min-height: 56px;
  border: 1px solid #cad0d7;
  border-radius: 5px;
  background: #fff;
  color: #52753f;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
}

.pdf-editor-empty-tool {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #7d858e;
  text-align: center;
}

.pdf-editor-empty-tool svg {
  font-size: 62px;
}

.pdf-editor-control-group {
  padding: 18px 0;
  border-bottom: 1px solid #d8dce2;
}

.pdf-editor-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pdf-editor-two label {
  display: grid;
  gap: 8px;
}

.pdf-editor-format-row {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 10px 18px;
  margin-top: 18px;
}

.pdf-editor-format-row button {
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #87909a;
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
}

.pdf-editor-format-row .is-active {
  border-color: #3f78b5;
  color: #3f78b5;
}

.pdf-editor-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #3f4650;
}

.pdf-editor-check input {
  width: 22px;
  height: 22px;
}

.pdf-editor-palette {
  display: grid;
  grid-template-columns: repeat(7, 28px);
  gap: 14px 16px;
}

.pdf-editor-palette button,
.pdf-editor-signature-colors button {
  width: 28px;
  height: 28px;
  border: 1px solid #9aa3ad;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.pdf-editor-palette button[style*="transparent"] {
  background: linear-gradient(135deg, transparent 45%, #df4038 46%, #df4038 54%, transparent 55%), #fff;
}

.pdf-editor-palette button.is-active {
  outline: 2px solid #3f78b5;
  outline-offset: 3px;
}

.pdf-editor-mini-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  color: #3f78b5;
}

.pdf-editor-mini-actions button {
  border: 0;
  background: transparent;
  color: #89929c;
  cursor: pointer;
  font-weight: 800;
}

.pdf-editor-slider {
  display: grid;
  grid-template-columns: 1fr 68px;
  align-items: center;
  gap: 12px;
}

.pdf-editor-slider span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #a8b0bb;
  border-radius: 5px;
  background: #fff;
  font-size: 20px;
}

.pdf-editor-style-select {
  width: 116px;
  margin-top: 14px;
}

.pdf-editor-help {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  background: #e1f1ff;
  color: #222832;
  font-size: 18px;
  line-height: 1.35;
}

.pdf-editor-remove-all {
  display: block;
  margin: 26px 0 12px auto;
  border: 0;
  background: transparent;
  color: #df4038;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 800;
}

.pdf-editor-layer-list {
  display: grid;
  gap: 6px;
}

.pdf-editor-layer-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 42px 1fr 30px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #f3f3f4;
  color: #777d87;
  cursor: pointer;
  text-align: left;
}

.pdf-editor-layer-list button.is-active {
  outline: 2px solid #5a9bee;
}

.pdf-editor-layer-list strong {
  color: #555b66;
  font-size: 19px;
}

.pdf-editor-layer-list em {
  color: #777d87;
  font-style: normal;
}

.pdf-editor-option-row {
  display: grid;
  grid-template-columns: 22px 1fr 30px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pdf-editor-option-row button,
.pdf-editor-link-button {
  border: 0;
  background: transparent;
  color: #747d88;
  cursor: pointer;
}

.pdf-editor-link-button {
  color: #3f4650;
}

.pdf-editor-close {
  min-width: 90px;
  min-height: 42px;
  float: right;
  border: 0;
  border-radius: 5px;
  background: #3f78b5;
  color: #fff;
  cursor: pointer;
}

.pdf-editor-save {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 12;
  min-width: 296px;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 12px;
  background: var(--editor-red);
  color: #fff;
  box-shadow: 0 9px 20px rgba(91, 31, 28, 0.2);
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
}

.pdf-editor-save:disabled {
  opacity: 0.6;
  cursor: progress;
}

.pdf-editor-modal-backdrop,
.pdf-editor-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.38);
}

.pdf-editor-signature-modal {
  width: min(930px, calc(100vw - 28px));
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.pdf-editor-signature-modal header,
.pdf-editor-signature-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 30px;
  border-bottom: 1px solid #d5dbe2;
}

.pdf-editor-signature-modal footer {
  border-top: 1px solid #d5dbe2;
  border-bottom: 0;
}

.pdf-editor-signature-modal h1 {
  margin: 0;
  font-size: 29px;
}

.pdf-editor-signature-modal header button {
  border: 0;
  background: transparent;
  color: #7d858e;
  cursor: pointer;
  font-size: 32px;
}

.pdf-editor-signature-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 30px 22px;
  overflow: hidden;
  border: 1px solid #8f98a3;
  border-radius: 6px;
}

.pdf-editor-signature-tabs button {
  min-height: 54px;
  border: 0;
  border-right: 1px solid #8f98a3;
  background: #fff;
  color: #363b43;
  cursor: pointer;
  font-size: 25px;
}

.pdf-editor-signature-tabs button:last-child {
  border-right: 0;
}

.pdf-editor-signature-tabs .is-active {
  background: #3f78b5;
  color: #fff;
}

.pdf-editor-signature-body {
  position: relative;
  min-height: 400px;
  margin: 0 30px 0;
  display: grid;
  place-items: center;
  border: 1px solid #d0d6dd;
  border-radius: 7px;
  background: #f3f5f7;
}

#signatureDrawCanvas {
  width: 100%;
  max-width: 840px;
  height: 250px;
  touch-action: none;
}

.signature-baseline {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 92px;
  height: 1px;
  background: #8f98a3;
}

.pdf-editor-signature-body > span {
  position: absolute;
  bottom: 54px;
  color: #6f7782;
}

.pdf-editor-signature-body > button {
  position: absolute;
  right: 22px;
  bottom: 46px;
  border: 0;
  background: transparent;
  color: #3f78b5;
  cursor: pointer;
  font-size: 22px;
}

.pdf-editor-typed-signature {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 82px;
  color: #000;
}

#signatureTypedName {
  position: absolute;
  left: 22px;
  bottom: -82px;
  width: 320px;
  min-height: 58px;
  border: 2px solid #2f333a;
  border-radius: 6px;
  padding: 0 18px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 28px;
}

.pdf-editor-signature-upload {
  width: calc(100% - 34px);
  height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  border: 2px dashed #c6ced7;
  color: #68717c;
  cursor: pointer;
  font-size: 24px;
}

.pdf-editor-signature-upload em {
  padding: 8px 22px;
  border: 1px solid #3f78b5;
  border-radius: 6px;
  color: #3f78b5;
  font-style: normal;
}

.pdf-editor-signature-colors {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-right: auto;
}

.pdf-editor-create-signature {
  min-width: 142px;
  min-height: 58px;
  border: 0;
  border-radius: 7px;
  background: #3f78b5;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.pdf-editor-loading {
  color: #fff;
  text-align: center;
}

.pdf-editor-spinner {
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
  border: 10px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.pdf-editor-loading strong {
  font-size: 28px;
}

.pdf-editor-loading span {
  display: block;
  margin-top: 10px;
}

.edit-pdf-result-page {
  background: #f8fafc;
}

.edit-pdf-result-page .merge-result-hero {
  padding-top: 58px;
}

.pdf-editor-shell.is-sign-pdf {
  --editor-offset: 110px;
  background: #f5f6fb;
}

.is-sign-pdf .pdf-editor-workbench {
  grid-template-columns: 152px minmax(560px, 1fr) 380px;
  min-height: calc(100vh - var(--editor-offset));
}

.sign-pdf-mainbar {
  min-height: 60px;
  justify-content: flex-start;
  padding-inline: 22px;
}

.sign-pdf-file-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a4f58;
}

.sign-pdf-file-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid #adb5bf;
  border-radius: 5px;
  background: #fff;
  color: #4d5662;
}

.sign-pdf-file-nav button:first-child svg {
  transform: rotate(90deg);
}

.sign-pdf-file-nav button:nth-child(2) svg {
  transform: rotate(-90deg);
}

.sign-pdf-file-nav input {
  width: 54px;
  min-height: 34px;
  border: 1px solid #adb5bf;
  border-radius: 5px;
  text-align: center;
}

.sign-pdf-file-nav strong {
  margin-left: 18px;
  padding: 7px 12px;
  border: 1px solid #adb5bf;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.is-sign-pdf .pdf-editor-left {
  background: #f6f7fb;
}

.is-sign-pdf .pdf-editor-stage {
  background: #f4f5fa;
}

.is-sign-pdf .pdf-editor-filebar,
.is-sign-pdf .pdf-editor-controls {
  display: none;
}

.is-sign-pdf .pdf-editor-page-wrap {
  padding-top: 42px;
}

.is-sign-pdf .pdf-editor-right {
  padding: 18px 18px 22px;
  overflow-x: hidden;
}

.is-sign-pdf .pdf-editor-right h1 {
  margin-bottom: 14px;
  text-align: center;
  font-size: 24px;
}

.sign-pdf-left-tools {
  padding: 10px;
}

.sign-pdf-left-tools button {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #c7d2e4;
  border-radius: 6px;
  background: #fff;
  color: #315d9a;
  cursor: pointer;
  font-weight: 800;
}

.sign-pdf-left-tools svg {
  width: 17px;
  height: 17px;
}

.sign-pdf-thumbs .pdf-editor-thumb {
  width: 86px;
}

.sign-pdf-thumbs .pdf-editor-thumb.is-dragging {
  opacity: 0.55;
}

.sign-pdf-type h2,
.sign-pdf-fields h2 {
  margin: 22px 0 12px;
  font-size: 16px;
}

.sign-pdf-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sign-pdf-type-grid button {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid #dadfe7;
  border-radius: 7px;
  background: #f4f5fa;
  color: #8a8f98;
  cursor: pointer;
  font-size: 17px;
}

.sign-pdf-type-grid button svg {
  width: 40px;
  height: 40px;
}

.sign-pdf-type-grid .is-active {
  border: 2px solid #df4038;
  background: #fff;
  color: #df4038;
}

.sign-pdf-type-grid .is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.sign-pdf-fields {
  display: grid;
  gap: 8px;
}

.sign-pdf-field {
  min-height: 52px;
  display: grid;
  grid-template-columns: 16px 34px minmax(0, 1fr) 26px 26px 26px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid #cbd7e8;
  border-radius: 5px;
  background: #f7f8fb;
  color: #545b66;
  cursor: pointer;
  text-align: left;
}

.sign-pdf-field:hover {
  border-color: #8fb5f4;
  background: #f3f7ff;
}

.sign-pdf-field.has-value {
  background: #f3f7ff;
}

.sign-pdf-field.is-active {
  outline: 2px solid #7aa7ff;
}

.sign-pdf-grip {
  color: #383d45;
  letter-spacing: 2px;
}

.sign-pdf-field-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #4675ad;
  color: #fff;
  font-weight: 800;
}

.sign-pdf-field-icon svg,
.sign-pdf-edit svg {
  width: 20px;
  height: 20px;
}

.sign-pdf-field-body {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.sign-pdf-field-body em {
  color: #6d82a0;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sign-pdf-field-body strong {
  overflow: hidden;
  color: #4a505a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign-pdf-field-body img {
  width: 150px;
  height: 34px;
  object-fit: contain;
}

.sign-pdf-script {
  font-size: 24px !important;
  font-weight: 400 !important;
}

.sign-pdf-count {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eef8;
  color: #5273a2;
  font-size: 13px;
  font-weight: 900;
}

.sign-pdf-row-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #496b9c;
  cursor: pointer;
}

.sign-pdf-row-action:hover {
  background: #e2ebfb;
}

.sign-pdf-row-action svg {
  width: 18px;
  height: 18px;
}

.sign-pdf-status {
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.sign-pdf-op {
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 64, 56, 0.28);
  background: rgba(255, 255, 255, 0.68);
  color: var(--op-color, #2f3439);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(18px, 2.2vw, 34px);
  line-height: 1;
  transform: translate(-4px, -50%) rotate(var(--op-rotation, 0deg));
}

.sign-pdf-op span {
  color: inherit;
}

.sign-pdf-op img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sign-pdf-op-toolbar {
  position: absolute;
  top: -26px;
  right: -9px;
  display: none;
  align-items: center;
  gap: 4px;
}

.sign-pdf-op.is-selected .sign-pdf-op-toolbar {
  display: flex;
}

.sign-pdf-op-toolbar button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #4675ad;
  color: #fff;
  cursor: pointer;
}

.sign-pdf-op-toolbar button:hover {
  background: #243e62;
}

.sign-pdf-op-toolbar svg {
  width: 16px;
  height: 16px;
}

.sign_stamp {
  border: 2px solid var(--op-color, #df4038);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.sign-pdf-text-op {
  padding: 4px 8px;
  border-color: #a9c2ed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.sign-pdf-text-op span[contenteditable] {
  min-width: 42px;
  outline: 0;
}

.sign-pdf-text-op.is-selected span[contenteditable]:focus {
  background: rgba(255, 255, 255, 0.86);
}

.sign-pdf-selected-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  background: #f7faff;
}

.sign-pdf-selected-panel h2 {
  margin: 0 0 6px;
  font-size: 15px;
}

.sign-pdf-selected-panel > strong {
  display: block;
  margin-bottom: 12px;
  color: #384252;
}

.sign-pdf-field-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.sign-pdf-field-colors button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.sign-pdf-field-colors button.is-active {
  outline: 3px solid rgba(52, 120, 246, 0.28);
  outline-offset: 3px;
}

.sign-pdf-hex {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #596170;
  font-size: 12px;
  font-weight: 800;
}

.sign-pdf-hex input {
  width: 92px;
  min-height: 30px;
  border: 1px solid #c2d0e5;
  border-radius: 5px;
  padding: 0 8px;
  font: 800 13px/1 Arial, sans-serif;
}

.sign-pdf-selected-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sign-pdf-selected-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #c2d3ee;
  border-radius: 6px;
  background: #fff;
  color: #496b9c;
  cursor: pointer;
  font-weight: 800;
}

.sign-pdf-modal {
  width: min(860px, calc(100vw - 34px));
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
}

.sign-pdf-modal header,
.sign-pdf-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid #e2e6ec;
}

.sign-pdf-modal footer {
  justify-content: flex-end;
  border-top: 1px solid #e2e6ec;
  border-bottom: 0;
}

.sign-pdf-modal h1 {
  margin: 0;
  color: #30343b;
  font-size: 30px;
}

.sign-pdf-login,
.sign-pdf-apply {
  min-height: 42px;
  border: 2px solid #df4038;
  border-radius: 7px;
  background: #fff;
  color: #df4038;
  cursor: pointer;
  font-weight: 800;
}

.sign-pdf-apply {
  min-width: 96px;
  border: 0;
  background: #df4038;
  color: #fff;
  font-size: 18px;
}

.sign-pdf-person-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: end;
  padding: 24px 56px 18px;
}

.sign-pdf-person-row label {
  display: grid;
  gap: 8px;
  color: #3a4049;
  font-weight: 800;
}

.sign-pdf-person-row input {
  min-height: 48px;
  border: 1px solid #aeb5bf;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 18px;
}

.sign-pdf-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #df4038;
  border-radius: 50%;
  color: #8590a0;
}

.sign-pdf-tabs {
  display: flex;
  margin: 10px 96px 0;
}

.sign-pdf-tabs button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-bottom-color: #e0e5ec;
  background: #fff;
  color: #30343b;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.sign-pdf-tabs button svg {
  width: 21px;
  height: 21px;
  color: #4675ad;
}

.sign-pdf-tabs .is-active {
  border-top: 3px solid #df4038;
  border-right-color: #e0e5ec;
  border-left-color: #e0e5ec;
  border-bottom-color: #fff;
}

.sign-pdf-maker {
  display: grid;
  grid-template-columns: 46px 1fr;
  margin: 0 56px 28px;
  border: 1px solid #e0e5ec;
}

.sign-pdf-maker aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 30px;
  background: #f0f1f8;
}

.sign-pdf-maker aside button {
  width: 34px;
  height: 34px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #4675ad;
  cursor: pointer;
  font-weight: 900;
}

.sign-pdf-maker aside .is-active {
  background: #fff;
}

.sign-pdf-maker-body {
  min-height: 246px;
  padding: 28px 24px 18px;
}

.sign-pdf-type-list {
  max-height: 186px;
  overflow-y: auto;
  border: 1px solid #edf0f4;
}

.sign-pdf-type-list label {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f4;
  font-size: 27px;
}

.sign-pdf-type-list .is-selected {
  background: #f3f3f8;
}

.sign-pdf-upload-zone,
.sign-pdf-draw-wrap {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #f4f5fa;
  color: #a0a5ae;
  text-align: center;
}

.sign-pdf-upload-zone strong {
  padding: 8px 16px;
  border: 2px solid #df4038;
  border-radius: 7px;
  color: #df4038;
  font-size: 14px;
}

.sign-pdf-upload-zone img,
.sign-pdf-draw-wrap img {
  max-width: 90%;
  max-height: 160px;
  object-fit: contain;
}

.sign-pdf-draw-wrap {
  position: relative;
}

#signPdfDrawCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.sign-pdf-draw-wrap button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #6b7280;
}

.sign-pdf-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: #626a75;
  font-size: 16px;
}

.sign-pdf-color-row button {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.sign-pdf-color-row button.is-active {
  outline: 3px solid rgba(67, 168, 86, 0.3);
  outline-offset: 3px;
}

.sign-pdf-save {
  position: sticky;
  left: auto;
  right: auto;
  bottom: 16px;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  background: #df4038;
}

.sign-font-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-style: italic;
}

.sign-font-formal {
  font-family: "Segoe Script", "Lucida Handwriting", cursive;
  font-style: italic;
  font-weight: 700;
}

.sign-font-neat {
  font-family: "Comic Sans MS", "Bradley Hand ITC", cursive;
  font-style: normal;
  letter-spacing: 0;
}

.sign-font-casual {
  font-family: "Lucida Handwriting", "Segoe Print", cursive;
  font-style: italic;
}

.sign-font-slim {
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-style: normal;
  font-weight: 400;
}

.sign-font-rounded {
  font-family: "Trebuchet MS", "Comic Sans MS", cursive;
  font-style: italic;
  font-weight: 500;
}

.sign-font-boldscript {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 800;
}

.sign-font-marker {
  font-family: Impact, "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 500;
}

.sign-font-elegant {
  font-family: "Monotype Corsiva", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 600;
}

.sign-font-flourish {
  font-family: "Edwardian Script ITC", "Lucida Handwriting", cursive;
  font-style: italic;
  font-weight: 500;
}

.sign-font-classic {
  font-family: "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 600;
}

.sign-font-tall {
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-style: italic;
  font-weight: 700;
  transform: skew(-7deg);
}

.sign-font-soft {
  font-family: "Gabriola", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 500;
}

.sign-font-ink {
  font-family: "Ink Free", "Comic Sans MS", cursive;
  font-style: normal;
  font-weight: 700;
}

.sign-pdf-choice-modal,
.sign-pdf-confirm-modal {
  width: min(660px, calc(100vw - 34px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
}

.sign-pdf-choice-modal h1,
.sign-pdf-confirm-modal h1 {
  margin: 0;
  padding: 28px 34px 20px;
  text-align: center;
  color: #30343b;
  font-size: 30px;
}

.sign-pdf-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 10px 34px 30px;
}

.sign-pdf-choice-options {
  display: grid;
  gap: 12px;
}

.sign-pdf-choice-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #454a54;
  font-size: 22px;
  font-weight: 800;
}

.sign-pdf-choice-options label.is-disabled {
  opacity: 0.42;
}

.sign-pdf-choice-options input[type="radio"] {
  width: 28px;
  height: 28px;
  accent-color: #5fbd7f;
}

.sign-pdf-custom-pages {
  min-height: 40px;
  border: 1px solid #b9c7dc;
  border-radius: 6px;
  padding: 0 12px;
}

.sign-pdf-choice-options p {
  margin: 22px 0 0;
  color: #555b66;
  font-size: 15px;
}

.sign-pdf-choice-note {
  align-self: center;
  padding: 28px;
  border: 1px solid #3478f6;
  border-radius: 7px;
  background: #e5f2ff;
  color: #222936;
  font-size: 18px;
  line-height: 1.45;
}

.sign-pdf-choice-modal footer,
.sign-pdf-confirm-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 22px 24px;
  border-top: 1px solid #d9dee8;
}

.sign-pdf-link-button,
.sign-pdf-outline-danger {
  min-width: 110px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #df4038;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  text-decoration: underline;
}

.sign-pdf-outline-danger {
  border: 2px solid #df4038;
  border-radius: 9px;
  text-decoration: none;
}

.sign-pdf-confirm-modal h1 {
  padding: 52px 40px 36px;
}

.sign-pdf-confirm-modal footer {
  justify-content: center;
  padding-bottom: 56px;
  border-top: 0;
}

.sign-pdf-remove-modal {
  width: min(620px, calc(100vw - 34px));
}

.sign-pdf-remove-modal .sign-pdf-choice-options {
  padding: 4px 76px 34px;
}

@media (max-width: 1180px) {
  .pdf-editor-workbench {
    grid-template-columns: 280px minmax(420px, 1fr);
  }

  .pdf-editor-right {
    grid-column: 1 / -1;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #d8dce2;
  }

  .pdf-editor-save {
    right: 18px;
    min-width: 300px;
  }
}

@media (max-width: 760px) {
  .edit-pdf-upload-hero {
    padding-top: 36px;
  }

  .edit-pdf-upload-hero h1 {
    font-size: 38px;
  }

  .edit-pdf-upload-hero p {
    font-size: 19px;
  }

  .edit-pdf-cloud-buttons {
    position: static;
    grid-auto-flow: column;
    margin-top: 10px;
  }

  .pdf-editor-mainbar {
    top: 64px;
  }

  .pdf-editor-subbar {
    top: 130px;
    justify-content: flex-start;
  }

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

  .pdf-editor-left,
  .pdf-editor-right,
  .pdf-editor-stage {
    max-height: none;
  }

  .pdf-editor-left {
    order: 2;
  }

  .pdf-editor-stage {
    order: 1;
  }

  .pdf-editor-right {
    order: 3;
    padding-bottom: 120px;
  }

  .pdf-editor-page-wrap {
    padding-inline: 12px;
  }

  .pdf-editor-page {
    min-width: 320px;
  }

  #editPdfFallback {
    width: 92vw;
    height: 620px;
  }

  .pdf-editor-save {
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-width: 0;
    width: calc(100% - 36px);
    min-height: 70px;
    font-size: 22px;
  }

  .pdf-editor-signature-modal footer {
    display: grid;
  }

  #signatureTypedName {
    position: static;
    margin-top: 12px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e1e1e1;
  box-shadow: 0 1px 8px rgba(15, 18, 25, 0.05);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(calc(100% - 44px), 1320px);
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  color: #0F172A;
  font-size: 14px;
  font-weight: 700;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-trigger,
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.nav-trigger {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 10px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover .nav-trigger,
.nav-trigger:focus-visible {
  background: #eef5ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.nav-trigger svg:first-child,
.lang-button svg:first-child,
.language-trigger svg:first-child {
  font-size: 16px;
}

.nav-trigger svg:last-child,
.lang-button svg:last-child,
.language-trigger svg:last-child {
  font-size: 13px;
  stroke-width: 2.4;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: min(1280px, calc(100vw - 28px));
  max-height: min(72vh, 680px);
  overflow: auto;
  transform: translateX(-50%) translateY(10px);
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid #e5e9f2;
  border-top: 1px solid #e5e9f2;
  background: #fff;
}

.mega-menu-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.mega-group {
  min-width: 0;
}

.mega-group h3 {
  margin: 0 0 14px;
  color: #717783;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mega-tool-list {
  display: grid;
  gap: 9px;
}

.mega-tool {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 9px;
  padding: 8px;
  color: #111827;
  transition: background 150ms ease, transform 150ms ease;
}

.mega-tool:hover,
.mega-tool:focus-visible {
  background: #f5f8ff;
  transform: translateX(2px);
}

.mega-tool .tool-glyph,
.mega-tool .tool-custom-icon,
.mega-tool .tool-icon-empty {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
}

.mega-tool .tool-glyph svg {
  width: 19px;
  height: 19px;
}

.mega-tool .tool-glyph::after {
  display: none;
}

.mega-tool .tool-glyph-badge {
  right: -6px;
  bottom: -5px;
  min-width: 20px;
  height: 18px;
  border-radius: 6px;
  font-size: 8px;
}

.mega-tool strong,
.mega-tool em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-tool strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.mega-tool em {
  margin-top: 2px;
  color: #646b78;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.language-picker {
  position: relative;
  color: #0F172A;
}

.language-trigger {
  min-width: 190px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d7dce6;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.language-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-trigger svg:first-child {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.language-trigger svg:last-child {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
  width: min(330px, calc(100vw - 28px));
  max-height: min(70vh, 520px);
  overflow: hidden;
  border: 1px solid #d7dce6;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.language-menu[hidden] {
  display: none;
}

.language-search-wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dce6;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0 10px;
}

.language-search-wrap svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #64748b;
}

.language-search {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0F172A;
  font: inherit;
  font-weight: 700;
}

.language-options {
  max-height: min(56vh, 430px);
  display: grid;
  gap: 4px;
  margin-top: 8px;
  overflow: auto;
  padding-right: 2px;
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #0F172A;
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

[dir="rtl"] .language-option {
  text-align: right;
}

.language-option:hover,
.language-option:focus-visible {
  background: #eef5ff;
  color: #1d4ed8;
}

.language-option.is-active {
  background: #2563eb;
  color: #fff;
}

.signin-button,
.signup-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 14px;
}

.signin-button {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #fff;
}

.signup-button {
  border: 1px solid var(--accent);
  color: #fff;
  background: linear-gradient(180deg, #2563EB 0%, #0F172A 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.home-shell {
  background: #fff;
  min-height: calc(100vh - 70px);
}

.home-layout {
  width: min(100% - 44px, 1408px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px minmax(0, var(--max)) 120px;
  gap: 19px;
  align-items: start;
}

.home-center {
  min-width: 0;
}

.home-rail {
  display: grid;
  gap: 24px;
  padding-top: 28px;
}

.home-hero {
  width: 100%;
  min-height: 240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 34px 0 24px;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 0 auto 14px;
  color: #0F172A;
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: #2563EB;
}

.hero-copy p {
  max-width: 840px;
  margin: 0 auto 20px;
  color: #5d616a;
  font-size: 16px;
  line-height: 1.45;
}

.hero-search {
  width: min(100%, 520px);
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  border: 1px solid #d9dce3;
  background: #fff;
  color: #707581;
  padding: 0 16px;
  box-shadow: 0 9px 20px rgba(17, 24, 39, 0.06);
}

.hero-search svg {
  flex: 0 0 auto;
  font-size: 20px;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0F172A;
  font-size: 16px;
  font-weight: 700;
}

.hero-search input::placeholder {
  color: #8b9099;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 250px;
  transform: scale(0.86);
  transform-origin: center;
}

.hero-banner-visual {
  min-height: 230px;
  display: grid;
  place-items: center;
  transform: none;
}

.hero-banner-img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.orbit {
  position: absolute;
  inset: 74px 42px 42px 28px;
  border: 2px dashed #d5d7dc;
  border-radius: 50%;
  transform: rotate(13deg);
}

.hero-doc {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 170px;
  height: 230px;
  transform: translateX(-50%);
  border: 2px solid #14171c;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 25, 35, 0.05);
}

.doc-fold {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 58px;
  height: 58px;
  border-left: 2px solid #14171c;
  border-bottom: 2px solid #14171c;
  border-radius: 0 10px 0 10px;
  background: #fff;
}

.pdf-label {
  position: absolute;
  top: 42px;
  left: -17px;
  min-width: 78px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(180deg, #2563EB 0%, #0F172A 100%);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.doc-line {
  position: absolute;
  left: 50px;
  height: 5px;
  border-radius: 10px;
  background: #d9dbe0;
}

.line-a {
  top: 105px;
  width: 98px;
}

.line-b {
  top: 128px;
  width: 102px;
}

.line-c {
  top: 151px;
  width: 82px;
}

.line-d {
  top: 174px;
  width: 62px;
}

.floating-card {
  position: absolute;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd0d6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(18, 24, 34, 0.05);
  font-size: 28px;
  font-weight: 900;
}

.image-card {
  left: 18px;
  top: 92px;
  color: #06B6D4;
}

.word-card {
  right: 24px;
  top: 92px;
  color: #2563EB;
}

.excel-card {
  left: 42px;
  bottom: 42px;
  color: #06B6D4;
}

.ppt-card {
  right: 40px;
  bottom: 42px;
  color: #06B6D4;
}

.spark {
  position: absolute;
  color: #06B6D4;
  font-size: 18px;
  font-weight: 500;
}

.spark-a {
  left: 86px;
  top: 54px;
}

.spark-b {
  right: 42px;
  top: 52px;
}

.spark-c {
  right: 0;
  top: 112px;
}

.spark-d {
  left: 0;
  bottom: 78px;
}

.spark-e {
  right: 108px;
  bottom: 18px;
}

.home-content {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.home-main {
  min-width: 0;
}

.ad-band,
.ad-side {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #f7f7f8 0%, #eeeeef 100%);
  color: #3f4248;
  font-size: 14px;
}

.ad-band {
  width: 100%;
  min-height: 56px;
}

.home-ad-top {
  margin-bottom: 18px;
}

.home-ad-bottom {
  margin-top: 26px;
}

.ad-side {
  width: 100%;
  min-height: 870px;
  margin-top: 6px;
}

.home-rail-ad {
  width: 100%;
  min-height: 760px;
  margin-top: 0;
}

.home-rail-ad + .home-rail-ad {
  min-height: 560px;
}

.home-rail-ad + .home-rail-ad + .home-rail-ad {
  min-height: 560px;
}

@media (min-width: 1500px) {
  .workspace,
  .social-workspace,
  .edit-pdf-upload-layout {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
  }
}

@media (max-width: 1280px) {
  .home-layout {
    width: min(var(--max), calc(100% - 44px));
    grid-template-columns: minmax(0, 1fr);
  }

  .home-rail {
    display: none;
  }
}

.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 90px;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
}

.tool-tab {
  min-height: 42px;
  border: 1px solid #d9dce3;
  border-radius: 999px;
  background: #fff;
  color: #42464f;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.04);
}

.tool-tab.is-active {
  border-color: #20232a;
  background: #20232a;
  color: #fff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
}

.home-grid-ad {
  grid-column: 1 / -1;
  min-width: 0;
}

.home-grid-ad-mobile {
  display: none;
}

.home-grid-ad-band {
  min-height: 90px;
}

.tool-card {
  position: relative;
  width: 100%;
  height: 172px;
  min-height: 172px;
  padding: 13px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e3e4e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 25, 34, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(21, 25, 34, 0.09);
}

.tool-card h2 {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 800;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-card p {
  margin: 0;
  max-width: 178px;
  color: #4f545d;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-page {
  min-height: calc(100vh - 70px);
  background: #f6f7fb;
  padding: 34px 22px 60px;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-head,
.admin-card,
.admin-login {
  border: 1px solid #e1e4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.admin-head h1,
.admin-card h2 {
  margin: 0 0 6px;
  color: #0F172A;
}

.admin-head p,
.admin-card p,
.admin-tool-copy p {
  margin: 0;
  color: #626774;
  line-height: 1.45;
}

.admin-login {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.admin-login label {
  display: grid;
  gap: 8px;
  color: #22252d;
  font-weight: 800;
}

.admin-login input {
  min-height: 48px;
  border: 1px solid #d6d9e0;
  border-radius: 7px;
  padding: 0 13px;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-card {
  padding: 22px;
}

.admin-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 18px;
  align-items: center;
}

.admin-tool-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-tool-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e7ec;
  border-radius: 8px;
}

.admin-tool-copy h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.admin-tool-copy span {
  display: inline-block;
  margin-top: 6px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
}

.admin-icon-preview {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e5eb;
  border-radius: 8px;
  background: #fafafa;
}

.admin-icon-preview .tool-visual,
.admin-icon-preview .tool-glyph,
.admin-icon-preview .tool-custom-icon,
.admin-icon-preview .tool-icon-empty {
  width: 42px;
  height: 42px;
}

.admin-hero-preview {
  width: 180px;
  height: 132px;
}

.admin-hero-preview .hero-visual {
  width: 180px;
  min-height: 132px;
  transform: scale(0.38);
  transform-origin: center;
}

.admin-hero-preview img,
.hero-custom-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-custom-visual {
  display: grid;
  place-items: center;
}

.hero-visual-empty {
  min-height: 0;
}

.admin-empty-icon {
  color: #737985;
  font-size: 12px;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.admin-upload-button input {
  display: none;
}

.tools-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #d7d9df;
  border-radius: 8px;
  color: #626774;
  font-size: 15px;
  font-weight: 700;
}

.card-arrow {
  position: absolute;
  right: 17px;
  bottom: 14px;
  color: #06B6D4;
  font-size: 25px;
  line-height: 1;
}

.tool-visual {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.tool-glyph {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
  isolation: isolate;
  overflow: visible;
}

.tool-glyph::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  z-index: -1;
}

.tool-glyph::after {
  content: "";
  position: absolute;
  inset: auto 8px -7px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  filter: blur(8px);
  z-index: -2;
}

.tool-glyph svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.2;
}

.tool-glyph-blue {
  background: linear-gradient(145deg, #3B82F6 0%, #16225F 100%);
}

.tool-glyph-cyan {
  background: linear-gradient(145deg, #22D3EE 0%, #2563EB 100%);
}

.tool-glyph-dark {
  background: linear-gradient(145deg, #111827 0%, #334155 52%, #2563EB 130%);
}

.tool-glyph-converter {
  background: conic-gradient(from 145deg, #2563EB, #06B6D4, #38BDF8, #1D4ED8, #2563EB);
}

.tool-glyph-downloader {
  background: conic-gradient(from 155deg, #F43F5E, #F97316, #EC4899, #7C3AED, #F43F5E);
}

.tool-glyph-calculator {
  background: conic-gradient(from 155deg, #0F766E, #14B8A6, #84CC16, #22C55E, #0F766E);
}

.tool-glyph-editor {
  background: conic-gradient(from 155deg, #7C3AED, #A855F7, #EC4899, #6366F1, #7C3AED);
}

.tool-glyph-others {
  background: conic-gradient(from 155deg, #0F172A, #475569, #2563EB, #0EA5E9, #0F172A);
}

.tool-glyph-badge {
  position: absolute;
  right: -7px;
  bottom: -6px;
  min-width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 7px;
  padding: 0 5px;
  background: #06B6D4;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.16);
}

.paper {
  position: absolute;
  display: block;
  width: 26px;
  height: 36px;
  border: 1.8px solid #22262d;
  border-radius: 5px;
  background: #fff;
}

.paper::after {
  content: "";
  position: absolute;
  top: -1.8px;
  right: -1.8px;
  width: 10px;
  height: 10px;
  border-left: 1.8px solid #22262d;
  border-bottom: 1.8px solid #22262d;
  border-radius: 0 5px 0 3px;
  background: #fff;
}

.paper-main {
  left: 14px;
  top: 3px;
}

.paper-alt {
  left: 4px;
  top: 0;
}

.tool-custom-icon,
.tool-icon-empty {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.tool-icon-empty {
  display: block;
}

.red-lines,
.red-lines::before,
.red-lines::after {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #06B6D4;
}

.red-lines {
  left: 20px;
  top: 24px;
  width: 16px;
}

.red-lines::before {
  content: "";
  top: -9px;
}

.red-lines::after {
  content: "";
  top: 9px;
}

.badge {
  position: absolute;
  display: none;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.badge-word {
  right: 0;
  top: 18px;
  background: #2563EB;
}

.badge-ppt {
  right: 1px;
  top: 18px;
  background: #06B6D4;
}

.badge-excel {
  right: 2px;
  top: 18px;
  background: #06B6D4;
}

.badge-img {
  right: 0;
  top: 18px;
  background: #06B6D4;
}

.badge-social {
  right: 0;
  top: 18px;
  background: #0F172A;
}

.badge-pdf {
  right: 2px;
  top: 18px;
  background: #2563EB;
  font-size: 12px;
}

.down-mark {
  position: absolute;
  display: none;
  left: 20px;
  top: 12px;
  color: #06B6D4;
  font-size: 26px;
  font-weight: 500;
}

.tool-merge .paper-main {
  left: 14px;
  top: 4px;
}

.tool-split .paper-alt {
  left: 5px;
  top: 3px;
}

.tool-split .paper-main {
  left: 18px;
  top: 6px;
}

.tool-compress .paper-alt,
.tool-word .paper-alt,
.tool-ppt .paper-alt,
.tool-excel .paper-alt,
.tool-wordOnly .paper-alt,
.tool-pptOnly .paper-alt,
.tool-excelOnly .paper-alt,
.tool-image .paper-alt,
.tool-jpg .paper-alt,
.tool-social .paper-alt,
.tool-pdfTool .paper-alt,
.tool-qr .paper-alt {
  display: none;
}

.tool-compress .down-mark {
  display: block;
}

.tool-compress .red-lines,
.tool-compress .red-lines::before,
.tool-compress .red-lines::after {
  display: none;
}

.tool-word .badge-word,
.tool-ppt .badge-ppt,
.tool-excel .badge-excel,
.tool-wordOnly .badge-word,
.tool-pptOnly .badge-ppt,
.tool-excelOnly .badge-excel,
.tool-image .badge-img,
.tool-jpg .badge-pdf,
.tool-jpg .badge-img,
.tool-social .badge-social,
.tool-pdfTool .badge-pdf,
.tool-qr .badge-social {
  display: grid;
}

.tool-word .red-lines,
.tool-ppt .red-lines,
.tool-excel .red-lines,
.tool-image .red-lines,
.tool-jpg .red-lines,
.tool-social .red-lines,
.tool-pdfTool .red-lines,
.tool-qr .red-lines,
.tool-wordOnly .red-lines,
.tool-pptOnly .red-lines,
.tool-excelOnly .red-lines,
.tool-word .red-lines::before,
.tool-ppt .red-lines::before,
.tool-excel .red-lines::before,
.tool-image .red-lines::before,
.tool-jpg .red-lines::before,
.tool-social .red-lines::before,
.tool-pdfTool .red-lines::before,
.tool-qr .red-lines::before,
.tool-wordOnly .red-lines::before,
.tool-pptOnly .red-lines::before,
.tool-excelOnly .red-lines::before,
.tool-word .red-lines::after,
.tool-ppt .red-lines::after,
.tool-excel .red-lines::after,
.tool-image .red-lines::after,
.tool-jpg .red-lines::after,
.tool-social .red-lines::after,
.tool-pdfTool .red-lines::after,
.tool-qr .red-lines::after,
.tool-wordOnly .red-lines::after,
.tool-pptOnly .red-lines::after,
.tool-excelOnly .red-lines::after {
  display: none;
}

.tool-image .badge-img {
  color: #fff;
}

.feature-strip {
  margin-top: 30px;
  background: #f5f5f6;
  border-top: 1px solid #eeeeef;
  border-bottom: 1px solid #eeeeef;
}

.feature-inner {
  width: min(var(--max), calc(100% - 44px));
  min-height: 122px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.feature-item {
  min-height: 72px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid #d9dadd;
}

.feature-item:last-child {
  border-right: 0;
}

.feature-item svg {
  margin-bottom: 9px;
  color: #2563EB;
  font-size: 34px;
  stroke-width: 1.7;
}

.feature-item h2 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.1;
}

.feature-item p {
  margin: 0;
  max-width: 180px;
  color: #5f636d;
  font-size: 12px;
  line-height: 1.45;
}

.footer {
  background: #fff;
  color: #262a31;
}

.footer-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 32px 0 20px;
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 38px;
}

.footer-logo {
  width: max-content;
}

.footer-logo .brand-logo-img {
  height: 38px;
}

.footer-brand p {
  margin: 14px 0 18px;
  color: #6d727c;
  font-size: 13px;
  line-height: 1.55;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e3e7;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.footer-column {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-column h3 {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.3;
}

.footer-column a {
  color: #4f545d;
  font-size: 13px;
}

.copyright {
  margin: 8px 0 0;
  padding: 0 0 22px;
  color: #6e747d;
  text-align: center;
  font-size: 12px;
}

.tool-page {
  min-height: calc(100vh - 70px);
  background: #f6f7fb;
}

.tool-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 34px 16px 22px;
}

.tool-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
}

.tool-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.workspace {
  width: min(1500px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: start;
}

.tool-content-column {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.tool-content-column .ad-band {
  min-height: 64px;
}

.upload-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(25, 31, 43, 0.06);
  overflow: hidden;
}

.drop-zone {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  text-align: center;
  border: 2px dashed transparent;
  transition: border-color 150ms ease, background 150ms ease;
}

.drop-zone.is-dragging {
  border-color: var(--accent);
  background: #eff6ff;
}

.upload-core {
  max-width: 560px;
}

.select-button {
  min-width: 260px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--accent-dark);
}

.select-button:hover {
  background: #2563EB;
}

.select-button:active {
  transform: translateY(2px);
  box-shadow: 0 6px 0 var(--accent-dark);
}

.drop-hint {
  margin: 16px 0 0;
  color: #7b818b;
  font-size: 15px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-list {
  display: grid;
  gap: 9px;
  margin: 26px auto 0;
  text-align: left;
}

.upload-options {
  width: min(360px, 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.upload-options label {
  color: #333840;
  font-weight: 800;
}

.upload-options select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #262a31;
  font: inherit;
  font-weight: 800;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
  font-size: 14px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.file-size {
  color: #858b94;
  font-size: 12px;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.ghost-button,
.process-button {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #333840;
}

.process-button {
  border: 0;
  background: var(--accent);
  color: white;
}

.process-button:disabled {
  cursor: not-allowed;
  background: #cfd3db;
}

.status {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.status.error {
  color: #2563EB;
  background: #eff6ff;
}

.status.success {
  color: #0F172A;
  background: #f2fbf6;
}

.side-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.side-panel-left,
.side-panel-right {
  min-width: 0;
}

.image-convert-editor-page {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  background: #f4f5fa;
  color: #33343b;
}

.image-convert-stage {
  min-width: 0;
  display: grid;
  place-items: start center;
  padding: 34px 52px 64px;
  border-right: 1px solid #d8dce5;
}

.image-convert-board {
  width: min(100%, 980px);
}

.image-convert-sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  margin-bottom: 40px;
}

.image-convert-sortbar strong {
  display: block;
  color: #2f323a;
  font-size: 18px;
}

.image-convert-sortbar span {
  color: #747b86;
  font-size: 13px;
}

.image-convert-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-convert-actions button,
.image-convert-add {
  min-width: 48px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7dbe3;
  border-radius: 7px;
  background: #fff;
  color: #3a3f49;
  font-weight: 900;
  cursor: pointer;
}

.image-convert-add {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(47, 99, 230, 0.3);
}

.image-convert-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-convert-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.image-convert-card {
  width: 178px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 14px 12px;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 37, 50, 0.08);
  cursor: grab;
}

.image-convert-card.is-dragging {
  opacity: 0.55;
}

.image-convert-thumb {
  width: min(142px, calc(142px * var(--preview-ratio, 0.765)));
  height: min(184px, calc(142px / var(--preview-ratio, 0.765)));
  aspect-ratio: var(--preview-ratio, 0.765);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8f9fc;
  border: 1px solid #eef0f4;
  box-shadow: inset 0 0 0 8px #fff;
}

.image-convert-thumb img,
.image-convert-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #fff;
}

.image-convert-card p {
  width: 100%;
  margin: 2px 0 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a3d45;
  font-weight: 700;
}

.image-convert-card > span {
  color: #858b94;
  font-size: 12px;
}

.image-convert-order {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  gap: 8px;
}

.image-convert-order button {
  width: 34px;
  height: 30px;
  border: 1px solid #d8dce4;
  border-radius: 6px;
  background: #fff;
  color: #525863;
  cursor: pointer;
}

.image-convert-order button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.image-convert-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 24px 22px;
  background: #fff;
}

.image-convert-panel h1 {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8dce5;
  color: #30323a;
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
}

.watermark-editor-page {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  background: #f4f5fa;
  color: #30323a;
}

.watermark-stage {
  min-width: 0;
  padding: 28px 46px 64px;
  border-right: 1px solid #cfd4dd;
  overflow: auto;
}

.watermark-toolbar {
  width: min(100%, 1040px);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.watermark-toolbar strong {
  display: block;
  font-size: 20px;
}

.watermark-toolbar span {
  color: #737b87;
  font-size: 13px;
}

.watermark-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watermark-actions button,
.watermark-add {
  min-width: 46px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7dbe3;
  border-radius: 7px;
  background: #fff;
  color: #343842;
  font-weight: 900;
  cursor: pointer;
}

.watermark-add {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #df4b3f;
  color: #fff;
  font-size: 34px;
  box-shadow: 0 7px 16px rgba(223, 75, 63, 0.28);
}

.watermark-add input,
.watermark-image-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.watermark-pages {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}

.watermark-empty {
  min-height: 280px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #626b78;
}

.watermark-page-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 15px 14px 12px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 37, 50, 0.08);
  cursor: grab;
}

.watermark-page-card.is-dragging {
  opacity: 0.55;
}

.watermark-page-thumb {
  --preview-ratio: 0.72;
  position: relative;
  width: min(124px, calc(124px * var(--preview-ratio)));
  height: min(162px, calc(124px / var(--preview-ratio)));
  aspect-ratio: var(--preview-ratio);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eef0f4;
  background: #fff;
  box-shadow: inset 0 0 0 7px #fff;
}

.watermark-page-thumb canvas {
  max-width: 100%;
  max-height: 100%;
}

.watermark-page-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.watermark-page-card strong,
.watermark-page-card > span {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watermark-page-card strong {
  font-size: 13px;
}

.watermark-page-card > span {
  color: #7b8390;
  font-size: 12px;
}

.watermark-preview-overlay,
.watermark-preview-mosaic span {
  position: absolute;
  z-index: 2;
  max-width: 90%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.watermark-preview-overlay img,
.watermark-preview-mosaic span img {
  max-width: 48px;
  max-height: 34px;
  object-fit: contain;
  display: block;
}

.watermark-preview-mosaic span {
  transform: translate(-50%, -50%);
}

.watermark-image-dot {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  background: currentColor;
}

.watermark-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px 18px;
  background: #fff;
  overflow: auto;
}

.watermark-panel h1 {
  margin: 0 -18px;
  padding: 0 18px 16px;
  border-bottom: 1px solid #d9dde5;
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
}

.watermark-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -16px -18px 4px;
  border-bottom: 1px solid #e0e4eb;
}

.watermark-mode-tabs button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 0;
  border-right: 1px solid #e0e4eb;
  background: #fff;
  color: #858b96;
  font-weight: 800;
  cursor: pointer;
}

.watermark-mode-tabs button.is-active {
  color: #151923;
}

.watermark-mode-tabs span {
  border-bottom: 4px solid currentColor;
  font-size: 42px;
  line-height: 0.9;
}

.watermark-mode-tabs svg {
  width: 42px;
  height: 42px;
}

.watermark-field,
.watermark-two-cols label,
.watermark-page-range label {
  display: grid;
  gap: 8px;
  color: #313640;
  font-weight: 800;
}

.watermark-field input,
.watermark-format select,
.watermark-format input[type="number"],
.watermark-two-cols select,
.watermark-page-range input {
  min-height: 42px;
  border: 1px solid #cbd1dc;
  border-radius: 5px;
  background: #fff;
  color: #343944;
  font: inherit;
}

.watermark-field input {
  padding: 0 12px;
}

.watermark-format {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px repeat(3, 36px) 42px;
  gap: 8px;
  align-items: center;
}

.watermark-format button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #222631;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.watermark-format button.is-active {
  background: #eef3ff;
  color: #2563EB;
}

.watermark-image-button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  background: #f5f6fb;
  color: #343944;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 37, 50, 0.1);
}

.watermark-image-button svg {
  width: 48px;
  align-self: stretch;
  padding: 12px;
  background: #df4b3f;
  color: #fff;
}

.watermark-position {
  display: grid;
  gap: 10px;
}

.watermark-position > span,
.watermark-page-range > span,
.watermark-layer > span {
  font-weight: 900;
}

.watermark-position-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.watermark-grid {
  width: 74px;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #cfd5df;
}

.watermark-grid button {
  position: relative;
  border: 0;
  border-right: 1px dashed #cfd5df;
  border-bottom: 1px dashed #cfd5df;
  background: #fff;
  cursor: pointer;
}

.watermark-grid button.is-active::after,
.watermark-free-dot {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #df4b3f;
  transform: translate(-50%, -50%);
}

.watermark-grid button.is-active::after {
  left: 50%;
  top: 50%;
}

.watermark-mosaic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.watermark-free-position {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.watermark-free-page {
  position: relative;
  width: 78px;
  height: 102px;
  border: 1px solid #cfd5df;
  background:
    linear-gradient(#eef1f6 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, #eef1f6 1px, transparent 1px) 0 0 / 33.333% 100%,
    #fff;
  cursor: crosshair;
}

.watermark-free-position small {
  color: #727b89;
  line-height: 1.35;
}

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

.watermark-page-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.watermark-page-range > span {
  grid-column: 1 / -1;
}

.watermark-page-range input {
  width: 100%;
  padding: 0 8px;
}

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

.watermark-layer > span {
  grid-column: 1 / -1;
}

.watermark-layer button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f4f5fb;
  color: #808792;
  font-weight: 800;
  cursor: pointer;
}

.watermark-layer button.is-active {
  border-color: #df4b3f;
  color: #df4b3f;
  background: #fff;
}

.watermark-submit {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  background: #df4b3f;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(223, 75, 63, 0.26);
}

.watermark-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.watermark-status {
  min-height: 20px;
  color: #657080;
  font-size: 13px;
}

.watermark-status.error {
  color: #c9362b;
  font-weight: 800;
}

.organize-editor-page {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  background: #f4f5fa;
  color: #30323a;
}

.organize-stage {
  position: relative;
  min-width: 0;
  padding: 76px 58px 72px;
  border-right: 3px solid #df4b3f;
  overflow: auto;
}

.organize-pages {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 28px;
}

.organize-page-card {
  position: relative;
  min-height: 230px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px 16px 12px;
  border: 3px solid var(--file-color, #efb1b2);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}

.organize-page-card.is-dragging {
  opacity: 0.55;
}

.organize-page-thumb {
  --preview-ratio: 0.72;
  width: min(128px, calc(128px * var(--preview-ratio)));
  height: min(168px, calc(128px / var(--preview-ratio)));
  aspect-ratio: var(--preview-ratio);
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 37, 50, 0.1);
  transform: rotate(var(--page-rotation, 0deg));
}

.organize-page-thumb canvas {
  max-width: 100%;
  max-height: 100%;
}

.organize-blank-preview {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #c8ced8;
  color: #8a929d;
  font-size: 13px;
  font-weight: 800;
}

.organize-page-card > span {
  color: #68707d;
  font-size: 13px;
  font-weight: 800;
}

.organize-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.organize-page-card:hover .organize-card-actions {
  opacity: 1;
}

.organize-card-actions button,
.organize-blank-before {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #df4b3f;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(31, 37, 50, 0.18);
}

.organize-card-actions button:last-child {
  background: #df4b3f;
  color: #fff;
}

.organize-card-actions svg,
.organize-blank-before svg {
  width: 16px;
  height: 16px;
}

.organize-blank-before {
  position: absolute;
  right: -18px;
  top: 50%;
  z-index: 2;
  color: #9aa1ad;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
}

.organize-page-card:hover .organize-blank-before {
  opacity: 1;
}

.organize-floating-actions {
  position: fixed;
  right: 408px;
  top: 295px;
  z-index: 5;
  display: grid;
  gap: 10px;
}

.organize-floating-actions button,
.organize-fab {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1d232e;
  font-size: 15px;
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(31, 37, 50, 0.16);
}

.organize-fab {
  position: relative;
  background: #df4b3f;
  color: #fff;
  font-size: 34px;
}

.organize-fab input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.organize-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px 18px;
  background: #fff;
}

.organize-panel h1 {
  margin: 0 -18px;
  padding: 0 18px 20px;
  border-bottom: 1px solid #d8dce5;
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
}

.organize-file-list {
  display: grid;
  gap: 0;
}

.organize-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.organize-panel-head button {
  border: 0;
  background: none;
  color: #d94135;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.organize-file-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(31, 37, 50, 0.12);
  background: var(--file-color);
  color: #3b4653;
  text-align: left;
  font: inherit;
}

.organize-file-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.organize-sort-grid button {
  min-height: 42px;
  border: 1px solid #d5dae3;
  border-radius: 7px;
  background: #fff;
  color: #343944;
  font-weight: 900;
  cursor: pointer;
}

.organize-submit {
  margin-top: clamp(80px, 28vh, 320px);
}

@media (max-width: 980px) {
  .watermark-editor-page {
    grid-template-columns: 1fr;
  }

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

  .watermark-stage {
    padding: 18px 14px 28px;
    border-right: 0;
  }

  .organize-stage {
    padding: 18px 14px 28px;
    border-right: 0;
  }

  .organize-floating-actions {
    position: sticky;
    top: 78px;
    right: auto;
    margin-left: auto;
    width: 46px;
  }

  .watermark-toolbar {
    align-items: flex-start;
  }

  .watermark-pages {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }

  .watermark-panel {
    border-top: 1px solid #d8dce5;
  }

  .organize-panel {
    border-top: 1px solid #d8dce5;
  }
}

@media (max-width: 640px) {
  .watermark-toolbar {
    display: grid;
  }

  .watermark-actions {
    justify-content: space-between;
  }

  .organize-pages {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
  }

  .organize-page-card {
    min-height: 196px;
    padding: 14px 10px 10px;
  }

  .watermark-panel {
    gap: 14px;
    padding: 16px 14px;
  }

  .watermark-panel h1,
  .watermark-mode-tabs {
    margin-left: -14px;
    margin-right: -14px;
  }

  .watermark-format {
    grid-template-columns: minmax(0, 1fr) 58px repeat(3, 34px);
  }

  .watermark-format input[type="color"] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .watermark-two-cols,
  .watermark-layer {
    grid-template-columns: 1fr;
  }

  .organize-sort-grid {
    grid-template-columns: 1fr;
  }
}

.image-convert-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e0e4eb;
  border-radius: 8px;
  background: #fff;
}

.image-convert-option.is-selected {
  background: #eef6ff;
  border-color: #d8eaff;
}

.image-convert-option svg {
  width: 34px;
  height: 34px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.image-convert-option strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 16px;
}

.image-convert-option p {
  margin: 0;
  color: #555b66;
  line-height: 1.35;
}

.image-convert-quality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-convert-quality h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: #30323a;
  font-size: 17px;
}

.image-convert-quality button {
  min-height: 58px;
  border: 1px solid #e1e4ea;
  border-radius: 7px;
  background: #f7f8fb;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
}

.image-convert-quality button.is-active {
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--accent);
}

.image-convert-quality span {
  display: block;
  font-size: 12px;
}

.image-convert-submit {
  min-height: 78px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 99, 230, 0.28);
}

.image-convert-submit svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.image-convert-status {
  min-height: 20px;
  color: #737b86;
  font-size: 13px;
}

.image-convert-status.error {
  color: #2563EB;
  font-weight: 800;
}

.pdfa-editor-page {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.pdfa-stage {
  background: #f4f5fa;
}

.pdfa-panel {
  gap: 12px;
  padding: 0;
  overflow-y: hidden;
  border-left: 1px solid #d8dce5;
}

.pdfa-panel h1 {
  margin: 0;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #d8dce5;
  font-size: 26px;
}

.pdfa-info-box {
  margin: 0 18px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #e4f3ff;
  color: #17202f;
  font-size: 13px;
  line-height: 1.38;
}

.pdfa-info-box svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: #2f8df1;
}

.pdfa-info-box p {
  grid-column: 2;
  margin: 0;
}

.pdfa-info-box p + p {
  margin-top: 8px;
}

.pdfa-select-label {
  margin: 0 18px -4px;
  color: #383c46;
  font-size: 15px;
  font-weight: 900;
}

.pdfa-select {
  min-height: 42px;
  margin: 0 18px;
  padding: 0 12px;
  border: 1px solid #2f323a;
  border-radius: 5px;
  background: #f8f8fc;
  color: #232936;
  font: inherit;
  font-size: 16px;
}

.pdfa-description {
  margin: 0 18px;
  color: #3e4450;
  font-size: 13px;
  line-height: 1.38;
}

.pdfa-description p {
  margin: 0 0 8px;
}

.pdfa-description ul {
  margin: 0;
  padding-left: 18px;
}

.pdfa-description li + li {
  margin-top: 3px;
}

.pdfa-downgrade {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
  padding: 14px 18px;
  border-top: 1px solid #e1e4ea;
  background: #fff;
  cursor: pointer;
}

.pdfa-downgrade input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdfa-checkmark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #78d091;
  border-radius: 6px;
  color: #78d091;
}

.pdfa-checkmark svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
}

.pdfa-downgrade input:not(:checked) + .pdfa-checkmark svg {
  opacity: 0;
}

.pdfa-downgrade strong {
  display: block;
  color: #30323a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.pdfa-downgrade small {
  display: block;
  margin-top: 4px;
  color: #505766;
  font-size: 12px;
  line-height: 1.35;
}

.pdfa-panel .image-convert-submit {
  width: calc(100% - 36px);
  margin: auto 18px 10px;
  min-height: 56px;
  font-size: 18px;
}

.pdfa-panel .image-convert-status {
  margin: 0 18px 12px;
}

.pdfa-thumb canvas {
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 0 0 1px #e7e9ee;
}

.image-convert-loading {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #f4f5fa;
  color: #33343b;
}

.image-convert-loading strong {
  font-size: 30px;
}

.image-convert-loading span {
  color: #727985;
}

.protect-panel {
  gap: 22px;
}

.protect-copy {
  margin: 0;
  color: #30343c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.protect-output-options {
  display: grid;
  gap: 10px;
}

.protect-output-options h2 {
  margin: 0 0 2px;
  color: #20242c;
  font-size: 16px;
  font-weight: 900;
}

.protect-output-options label {
  min-height: 68px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.protect-output-options label.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(223, 75, 63, 0.12);
}

.protect-output-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.protect-output-options span {
  display: grid;
  gap: 3px;
}

.protect-output-options strong {
  color: #20242c;
  font-size: 15px;
}

.protect-output-options small {
  color: #727985;
  font-size: 13px;
  line-height: 1.3;
}

.protect-password-field {
  min-height: 56px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 60px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c9ced8;
  border-radius: 7px;
  background: #fff;
}

.protect-password-field > svg {
  width: 20px;
  height: 20px;
  justify-self: center;
  color: #737985;
  stroke: currentColor;
}

.protect-password-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: #20242c;
  font: inherit;
  font-size: 18px;
}

.protect-password-field button {
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.protect-password-field button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.protect-file-icon {
  display: grid;
  place-items: center;
}

.rotate-cards .rotate-card {
  position: relative;
}

.rotate-thumb img,
.rotate-thumb canvas {
  transform: rotate(var(--item-rotation, 0deg));
  transform-origin: center;
  transition: transform 160ms ease;
}

.rotate-card-actions {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 8px;
}

.rotate-card-actions button {
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dce4;
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}

.rotate-card-actions button:first-child svg {
  transform: scaleX(-1);
}

.rotate-card-actions svg,
.rotate-side-actions svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.rotate-panel {
  gap: 18px;
}

.rotate-reset {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.rotate-side-actions {
  display: grid;
  gap: 10px;
}

.rotate-side-actions button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #eceef4;
  border-radius: 8px;
  background: #f7f8fb;
  color: #30343c;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(31, 37, 50, 0.08);
}

.rotate-side-actions button svg {
  width: 100%;
  height: 58px;
  padding: 17px 24px;
  background: var(--accent);
  color: #fff;
}

.rotate-side-actions button:nth-child(2) svg {
  transform: scaleX(-1);
}

.merge-editor-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  background: #f5f5fa;
  color: #33343b;
}

.merge-board {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 92px 88px 72px;
}

.merge-editor-brand,
.merge-loading-brand {
  position: absolute;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  color: #2563EB;
}

.merge-editor-brand .brand-logo-img,
.merge-loading-brand .brand-logo-img {
  height: 42px;
}

.merge-file-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
  justify-content: center;
  gap: 18px;
}

.merge-card {
  position: relative;
  min-height: 318px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 24px 18px 18px;
  border: 1px solid #eceef3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(28, 34, 48, 0.08);
  cursor: grab;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.merge-card:hover,
.merge-card.is-drop-target {
  border-color: #2563EB;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.merge-card.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.merge-preview {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f6f8;
}

.merge-preview-canvas {
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 30, 42, 0.08);
}

.merge-preview-placeholder,
.merge-preview-fallback {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #7c838f;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.merge-preview-placeholder svg,
.merge-preview-fallback svg {
  font-size: 34px;
  color: #2563EB;
}

.merge-file-title {
  min-width: 0;
  overflow: hidden;
  color: #393b42;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.merge-file-meta {
  color: #8a9099;
  text-align: center;
  font-size: 12px;
}

.merge-remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f1f5;
  color: #4e525a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.merge-remove-button:hover {
  background: #2563EB;
  color: #fff;
}

.merge-floating-actions {
  position: absolute;
  top: 86px;
  right: 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.merge-add-button,
.merge-sort-button {
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(20, 24, 32, 0.18);
  cursor: pointer;
}

.merge-add-button {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #2563EB;
  color: #fff;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
}

.merge-count-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 4px solid #2563EB;
  border-radius: 50%;
  background: #20242b;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.merge-sort-button {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 0;
  padding-left: 15px;
  background: #fff;
  color: #20242b;
  font-size: 16px;
  font-weight: 900;
  line-height: 0.85;
}

.merge-sort-button::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 0;
  height: 24px;
  border-left: 3px solid currentColor;
}

.merge-sort-button::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.merge-editor-status {
  position: absolute;
  left: 28px;
  bottom: 22px;
  max-width: calc(100% - 56px);
  color: #6c717b;
  font-size: 14px;
}

.merge-editor-status.error {
  color: #2563EB;
}

.merge-editor-status.success {
  color: #0F172A;
}

.merge-sidebar {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  border-left: 1px solid #d8d9df;
  background: #fff;
}

.merge-sidebar-content {
  padding: 34px 28px;
}

.merge-sidebar h1 {
  margin: 0 0 26px;
  color: #33343b;
  text-align: center;
  font-size: 38px;
  line-height: 1.1;
}

.merge-info-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #ecfeff;
  color: #2a3038;
  font-size: 20px;
  line-height: 1.25;
}

.merge-info-box svg {
  margin-top: 2px;
  color: #06B6D4;
  font-size: 23px;
}

.merge-info-box p {
  margin: 0;
}

.merge-primary-button {
  min-height: 78px;
  margin: 0 22px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 8px;
  background: #2563EB;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(72, 40, 36, 0.24);
}

.merge-primary-button:hover {
  background: #2563EB;
}

.merge-primary-button:disabled {
  cursor: not-allowed;
  background: #cfd3db;
  box-shadow: none;
}

.merge-primary-button svg {
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.merge-loading-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  gap: 24px;
  padding-top: 86px;
  background: #f6f6fb;
  border-top: 2px solid #2563EB;
  text-align: center;
}

.merge-loading-page h1 {
  margin: 156px 0 4px;
  color: #3a3a42;
  font-size: 36px;
  line-height: 1.15;
}

.merge-loading-brand {
  position: static;
  color: #0F172A;
}

.merge-spinner {
  width: 116px;
  height: 116px;
  border: 16px solid #e4e4e6;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: mergeSpin 900ms linear infinite;
}

@keyframes mergeSpin {
  to {
    transform: rotate(360deg);
  }
}

.merge-result-page {
  min-height: calc(100vh - 70px);
  background: #f6f6fb;
}

.merge-result-ad {
  margin-top: 24px;
}

.merge-result-hero {
  width: min(100% - 32px, 920px);
  margin: 42px auto 34px;
  text-align: center;
}

.merge-result-hero h1 {
  margin: 0 0 30px;
  color: #383941;
  font-size: 36px;
  line-height: 1.15;
}

.merge-result-actions {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.merge-result-back,
.merge-result-icons span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.merge-result-back {
  width: 52px;
  height: 52px;
  background: #555760;
  font-size: 28px;
}

.merge-result-download {
  min-height: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 8px;
  background: #2563EB;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(75, 42, 38, 0.2);
}

.merge-result-download:hover {
  background: #2563EB;
}

.merge-result-download svg {
  font-size: 36px;
}

.merge-result-icons {
  display: grid;
  grid-template-columns: repeat(2, 52px);
  gap: 8px;
}

.merge-result-icons span {
  width: 52px;
  height: 52px;
  background: #2563EB;
  font-size: 25px;
}

.merge-result-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.merge-result-main {
  display: grid;
  gap: 26px;
}

.continue-panel {
  padding: 28px;
  border-radius: 8px;
  background: #fff;
}

.continue-panel h2,
.share-panel h2 {
  margin: 0 0 18px;
  color: #30323a;
  font-size: 24px;
  line-height: 1.2;
}

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

.continue-link {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-radius: 6px;
  background: #f7f7fb;
  color: #24262d;
  font-size: 17px;
  font-weight: 800;
}

.continue-link:hover {
  color: #2563EB;
}

.share-panel {
  text-align: center;
}

.share-panel p {
  margin: -8px 0 18px;
  color: #5f636d;
  font-size: 20px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.share-buttons button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d4d7df;
  border-radius: 7px;
  background: #fff;
  color: #22252c;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.merge-result-side {
  position: sticky;
  top: 94px;
}

.split-editor-page {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  background: #f6f6fb;
}

.split-board {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 52px 34px 64px;
  overflow: auto;
}

.split-sidebar {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-left: 1px solid #d8d9df;
  background: #fff;
}

.split-sidebar-scroll {
  overflow: auto;
  padding-bottom: 24px;
}

.split-sidebar h1 {
  margin: 0;
  padding: 28px 24px;
  border-bottom: 1px solid #dedfe5;
  color: #33343b;
  text-align: center;
  font-size: 36px;
  line-height: 1.1;
}

.split-mode-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #dedfe5;
}

.split-mode-tabs button {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid #dedfe5;
  background: #fff;
  color: #8a8f98;
  font-size: 18px;
  cursor: pointer;
}

.split-mode-tabs button:last-of-type {
  border-right: 0;
}

.split-mode-tabs button svg {
  font-size: 38px;
}

.split-mode-tabs button.is-active {
  color: #24262d;
}

.split-mode-tabs button.is-active::before {
  content: "✓";
  position: absolute;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #06B6D4;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  transform: translateX(-44px);
}

.split-mode-tabs button.is-disabled {
  color: #b7bbc3;
  cursor: not-allowed;
}

.split-mode-tabs button.is-disabled::after {
  content: "♛";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #06B6D4;
  color: #0F172A;
  font-size: 14px;
}

.split-mode-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 4px;
  background: #4b4d55;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.split-mode-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #4b4d55;
  transform: translateX(-50%);
}

.split-control-section {
  display: grid;
  gap: 22px;
  padding: 28px 24px;
}

.split-control-section h2 {
  margin: 0;
  color: #33343b;
  font-size: 19px;
  line-height: 1.2;
}

.split-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.split-segmented-two {
  grid-template-columns: repeat(2, 1fr);
}

.split-segmented button {
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: #f4f4fa;
  color: #8a8f98;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(25, 31, 43, 0.08);
}

.split-segmented button.is-active {
  border: 2px solid #2563EB;
  background: #fff;
  color: #2563EB;
}

.split-segmented button.is-disabled {
  color: #9ca1aa;
  cursor: not-allowed;
}

.split-ranges-form,
.split-fixed-form {
  display: grid;
  gap: 20px;
}

.split-range-row {
  display: grid;
  gap: 10px;
}

.split-range-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b4f58;
  font-size: 18px;
}

.split-range-row-title strong {
  font-weight: 700;
}

.split-range-row-title em {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #eceef5;
  font-style: normal;
}

.split-range-row-title button {
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #f1f2f5;
  color: #565b64;
  font-weight: 900;
  cursor: pointer;
}

.split-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-range-inputs label,
.split-fixed-input,
.split-pages-input {
  display: grid;
  gap: 8px;
  color: #33343b;
  font-size: 17px;
  font-weight: 700;
}

.split-range-inputs label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  border: 1px solid #c8cbd3;
  border-radius: 5px;
  overflow: hidden;
}

.split-range-inputs span {
  height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid #c8cbd3;
  color: #555a63;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.split-range-inputs input,
.split-fixed-input input,
.split-pages-input input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8cbd3;
  border-radius: 5px;
  background: #fff;
  color: #33343b;
  font-size: 19px;
}

.split-range-inputs input {
  border: 0;
  text-align: right;
  padding: 0 8px;
}

.split-fixed-input {
  grid-template-columns: 1fr 110px;
  align-items: center;
}

.split-fixed-input input {
  padding: 0 12px;
  text-align: right;
}

.split-pages-input input {
  padding: 0 14px;
}

.split-add-range {
  min-height: 42px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 2px solid #2563EB;
  border-radius: 7px;
  background: #fff;
  color: #2563EB;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.split-add-range span {
  font-size: 24px;
  line-height: 1;
}

.split-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  color: #555a63;
  font-size: 18px;
  line-height: 1.35;
  cursor: pointer;
}

.split-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.split-checkbox span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #bfc4cc;
  border-radius: 5px;
  background: #fff;
}

.split-checkbox input:checked + span {
  border-color: #06B6D4;
}

.split-checkbox input:checked + span::before {
  content: "✓";
  color: #06B6D4;
  font-size: 24px;
  font-weight: 900;
}

.split-info-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 15px;
  border-radius: 8px;
  background: #ecfeff;
  color: #2c3138;
  font-size: 17px;
  line-height: 1.35;
}

.split-info-box svg {
  margin-top: 2px;
  color: #06B6D4;
  font-size: 21px;
}

.split-info-box p {
  margin: 0;
}

.split-primary-button {
  min-height: 78px;
  margin: 0 24px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 8px;
  background: #2563EB;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(72, 40, 36, 0.24);
}

.split-primary-button:disabled {
  cursor: not-allowed;
  background: #cfd3db;
  box-shadow: none;
}

.split-primary-button svg {
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.split-range-board {
  width: min(100%, 1040px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.split-range-group {
  display: grid;
  gap: 12px;
  min-width: min(100%, 430px);
}

.split-range-group h2 {
  margin: 0;
  color: #555a63;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

.split-range-pages {
  min-height: 286px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  border: 1px dashed #aeb3bd;
}

.split-pages-board {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: center;
  gap: 24px;
}

.split-page-card {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 20px 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 34, 48, 0.06);
}

.split-page-card.is-clickable {
  cursor: pointer;
}

.split-page-card.is-clickable:hover {
  border-color: #b8bdc7;
}

.split-page-card.is-selected {
  border-color: #06B6D4;
}

.split-page-preview {
  height: 188px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f6f8;
}

.split-preview-canvas {
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 30, 42, 0.08);
}

.split-page-number {
  color: #555a63;
  text-align: center;
  font-size: 15px;
}

.split-checkmark {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #06B6D4;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  z-index: 1;
}

.split-ellipsis {
  color: #0F172A;
  font-size: 30px;
  font-weight: 900;
}

.split-preview-loading {
  display: grid;
  place-items: center;
  gap: 18px;
  color: #555a63;
}

.split-preview-loading p {
  margin: 0;
  font-size: 18px;
}

.split-editor-status {
  position: absolute;
  left: 28px;
  bottom: 20px;
  color: #606773;
  font-size: 14px;
}

.split-editor-status.error {
  color: #2563EB;
}

.split-editor-status.success {
  color: #0F172A;
}

.ppt-editor-page {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  background: #f6f6fb;
}

.ppt-board {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: start center;
  padding: 122px 92px 74px;
  overflow: auto;
}

.ppt-file-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
  justify-content: center;
  gap: 18px;
}

.ppt-card {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 22px 16px 16px;
  border: 1px solid #eceef3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(28, 34, 48, 0.08);
  cursor: grab;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.ppt-card:hover,
.ppt-card.is-drop-target {
  border-color: #2563EB;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.ppt-card.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.ppt-preview {
  height: 224px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f6f8;
}

.ppt-preview-canvas {
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 30, 42, 0.08);
}

.ppt-file-title {
  min-width: 0;
  overflow: hidden;
  color: #444953;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.ppt-floating-actions {
  position: absolute;
  top: 96px;
  right: 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.ppt-editor-status {
  position: absolute;
  left: 28px;
  bottom: 20px;
  color: #606773;
  font-size: 14px;
}

.ppt-editor-status.error {
  color: #2563EB;
}

.ppt-editor-status.success {
  color: #0F172A;
}

.ppt-sidebar {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-left: 1px solid #d8d9df;
  background: #fff;
}

.ppt-sidebar h1 {
  margin: 0;
  padding: 32px 24px 30px;
  border-bottom: 1px solid #dedfe5;
  color: #33343b;
  text-align: center;
  font-size: 34px;
  line-height: 1.1;
}

.ppt-primary-button {
  align-self: end;
  min-height: 78px;
  margin: 0 24px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 8px;
  background: #2563EB;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(72, 40, 36, 0.24);
}

.ppt-primary-button:hover {
  background: #2563EB;
}

.ppt-primary-button:disabled {
  cursor: not-allowed;
  background: #cfd3db;
  box-shadow: none;
}

.ppt-primary-button svg {
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.excel-editor-page {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  background: #f6f6fb;
}

.excel-board {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: start center;
  padding: 122px 92px 74px;
  overflow: auto;
}

.excel-file-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
  justify-content: center;
  gap: 18px;
}

.excel-card-item {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 22px 16px 16px;
  border: 1px solid #eceef3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(28, 34, 48, 0.08);
  cursor: grab;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.excel-card-item:hover,
.excel-card-item.is-drop-target {
  border-color: #2563EB;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.excel-card-item.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.excel-preview {
  height: 224px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f6f8;
}

.excel-preview-canvas {
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 30, 42, 0.08);
}

.excel-file-title {
  min-width: 0;
  overflow: hidden;
  color: #444953;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.excel-floating-actions {
  position: absolute;
  top: 96px;
  right: 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.excel-editor-status {
  position: absolute;
  left: 28px;
  bottom: 20px;
  color: #606773;
  font-size: 14px;
}

.excel-editor-status.error {
  color: #2563EB;
}

.excel-editor-status.success {
  color: #0F172A;
}

.excel-sidebar {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border-left: 1px solid #d8d9df;
  background: #fff;
}

.excel-sidebar h1 {
  margin: 0;
  padding: 32px 24px 30px;
  border-bottom: 1px solid #dedfe5;
  color: #33343b;
  text-align: center;
  font-size: 34px;
  line-height: 1.1;
}

.excel-method {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #d8d9df;
  background: #fff;
}

.excel-method.is-active {
  background: #eeeef7;
}

.excel-method strong {
  display: block;
  color: #2563EB;
  font-size: 16px;
  font-weight: 500;
}

.excel-method strong span {
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #ecfeff;
  color: #0F172A;
  font-size: 13px;
  font-weight: 800;
}

.excel-method p {
  margin: 4px 0 0;
  color: #4b4f59;
  font-size: 20px;
  line-height: 1.18;
}

.excel-method.is-disabled p,
.excel-method.is-disabled strong {
  color: #555a66;
}

.excel-check {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #06B6D4;
  color: #fff;
}

.excel-check svg {
  width: 24px;
  height: 24px;
}

.excel-layout-panel {
  padding: 28px 24px;
}

.excel-layout-panel h2 {
  margin: 0 0 14px;
  color: #33343b;
  font-size: 20px;
}

.excel-layout-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.excel-layout-toggle button {
  min-height: 74px;
  border: 0;
  border-radius: 8px;
  background: #f4f4fa;
  color: #858895;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(28, 34, 48, 0.08);
}

.excel-layout-toggle button.is-selected {
  border: 2px solid #2563EB;
  background: #fff;
  color: #2563EB;
}

.excel-page-label-option {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b4f59;
  font-size: 17px;
  line-height: 1.3;
  cursor: pointer;
}

.excel-page-label-option input {
  width: 24px;
  height: 24px;
  accent-color: #06B6D4;
  flex: 0 0 auto;
  cursor: pointer;
}

.excel-primary-button {
  align-self: end;
  min-height: 78px;
  margin: 0 24px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 8px;
  background: #2563EB;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(72, 40, 36, 0.24);
}

.excel-primary-button:hover {
  background: #2563EB;
}

.excel-primary-button:disabled {
  cursor: not-allowed;
  background: #cfd3db;
  box-shadow: none;
}

.excel-primary-button svg {
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.social-workspace {
  width: min(1500px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: start;
}

.social-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.social-main .ad-band {
  min-height: 64px;
}

.social-link-panel,
.social-preview-panel {
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.social-link-panel {
  padding: 22px;
}

.social-url-label {
  display: block;
  margin-bottom: 8px;
  color: #33343b;
  font-size: 17px;
  font-weight: 800;
}

.social-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.social-url-row input {
  min-height: 52px;
  width: 100%;
  border: 1px solid #d4d8df;
  border-radius: 7px;
  padding: 0 18px;
  color: #0F172A;
  font-size: 17px;
}

.social-preview-button {
  min-width: 156px;
  min-height: 52px;
  gap: 9px;
}

.social-policy {
  margin: 12px 0 0;
  color: #606773;
  font-size: 13px;
  line-height: 1.45;
}

.social-preview-panel {
  margin-top: 14px;
  padding: 20px;
}

.social-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef0f3;
}

.social-platform {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #eff6ff;
  color: #2563EB;
  font-size: 13px;
  font-weight: 900;
}

.social-preview-head h2 {
  margin: 12px 0 0;
  color: #20232a;
  font-size: 25px;
  line-height: 1.2;
}

.social-preview-head p {
  margin: 7px 0 0;
  color: #626875;
  font-size: 15px;
}

.social-preview-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

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

.social-media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 24, 34, 0.05);
}

.social-media-card.is-selected {
  border-color: #2563EB;
}

.social-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 14px rgba(10, 15, 25, 0.16);
  cursor: pointer;
}

.social-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.social-check span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #b7bcc6;
  border-radius: 50%;
  color: #fff;
  background: #fff;
}

.social-check input:checked + span {
  border-color: #06B6D4;
  background: #06B6D4;
}

.social-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f2f5;
}

.social-thumb.is-portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, 230px);
  margin: 0 auto;
  background: #171a20;
}

.social-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.social-thumb.is-portrait img {
  object-fit: contain;
}

.social-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #2563EB;
  font-size: 42px;
}

.social-type {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(17, 19, 24, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-card-body {
  padding: 14px;
}

.social-card-body h3 {
  min-height: 38px;
  margin: 0;
  color: #23262d;
  font-size: 15px;
  line-height: 1.25;
}

.social-card-body p {
  margin: 8px 0 0;
  color: #626875;
  font-size: 13px;
}

.social-download-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.social-download-button {
  min-height: 52px;
  gap: 9px;
}

@media (max-width: 900px) {
  .header-inner {
    width: min(calc(100% - 28px), 1180px);
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
  }

  .nav-item {
    height: auto;
  }

  .mega-menu {
    left: 14px;
    right: 14px;
    width: auto;
    transform: translateY(10px);
  }

  .nav-item:hover .mega-menu,
  .nav-item:focus-within .mega-menu {
    transform: translateY(0);
  }

  .mega-menu-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
  }

  .language-trigger {
    min-width: 152px;
    max-width: 170px;
  }

  .language-menu {
    right: 0;
    width: min(300px, calc(100vw - 28px));
  }

  .lang-button,
  .signin-button {
    display: none;
  }

  .home-hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-visual {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .home-content {
    grid-template-columns: 1fr;
  }

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

  .merge-board {
    min-height: auto;
    padding: 86px 20px 34px;
  }

  .merge-editor-brand {
    top: 18px;
    left: 20px;
  }

  .merge-floating-actions {
    top: 78px;
    right: 18px;
  }

  .merge-sidebar {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid #d8d9df;
  }

  .merge-sidebar-content {
    padding: 24px 20px 16px;
  }

  .merge-sidebar h1 {
    font-size: 30px;
    text-align: left;
  }

  .merge-primary-button {
    margin: 0 20px 20px;
  }

  .merge-editor-status {
    position: static;
    margin-top: 18px;
    text-align: center;
  }

  .merge-result-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .merge-result-download {
    width: 100%;
    min-height: 78px;
    font-size: 26px;
  }

  .merge-result-icons {
    grid-template-columns: repeat(4, 48px);
  }

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

  .merge-result-side {
    display: none;
  }

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

  .split-board {
    min-height: auto;
    padding: 32px 18px 52px;
  }

  .split-sidebar {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid #d8d9df;
  }

  .split-sidebar h1 {
    text-align: left;
  }

  .split-primary-button {
    margin: 0 18px 18px;
  }

  .split-editor-status {
    position: static;
    padding: 0 18px 18px;
    text-align: center;
  }

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

  .ppt-board {
    min-height: auto;
    padding: 42px 18px 54px;
  }

  .ppt-floating-actions {
    top: 28px;
    right: 18px;
  }

  .ppt-sidebar {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid #d8d9df;
  }

  .ppt-sidebar h1 {
    text-align: left;
  }

  .ppt-primary-button {
    margin: 0 18px 18px;
  }

  .ppt-editor-status {
    position: static;
    margin-top: 18px;
    text-align: center;
  }

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

  .excel-board {
    min-height: auto;
    padding: 42px 18px 54px;
  }

  .excel-floating-actions {
    top: 28px;
    right: 18px;
  }

  .excel-sidebar {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid #d8d9df;
  }

  .excel-sidebar h1 {
    text-align: left;
  }

  .excel-primary-button {
    margin: 0 18px 18px;
  }

  .excel-editor-status {
    position: static;
    margin-top: 18px;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid-ad-desktop {
    display: none;
  }

  .home-grid-ad-mobile {
    display: block;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .edit-pdf-upload-layout {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .workspace > .side-panel,
  .social-workspace > .side-panel,
  .edit-pdf-upload-layout > .side-panel {
    display: none;
  }

  .side-panel .ad-side {
    display: none;
  }

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

  .pdfa-stage {
    padding: 24px 18px 32px;
    border-right: 0;
  }

  .pdfa-panel {
    border-left: 0;
    border-top: 1px solid #d8dce5;
    overflow-y: visible;
  }

  .feature-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 0;
  }

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .signup-button {
    display: none;
  }

  .home-hero {
    width: min(100% - 24px, var(--max));
    padding: 34px 0 26px;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
  }

  .nav-trigger {
    padding: 0 9px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-button {
    min-width: 100%;
  }

  .hero-visual {
    min-height: 240px;
    transform: scale(0.84);
    transform-origin: top center;
    margin-bottom: -34px;
  }

  .hero-banner-visual {
    min-height: 220px;
    transform: none;
    margin-bottom: 0;
  }

  .hero-banner-img {
    width: min(100%, 300px);
  }

  .home-layout,
  .home-content,
  .feature-inner,
  .footer-inner,
  .workspace,
  .social-workspace,
  .edit-pdf-upload-layout {
    width: min(100% - 24px, var(--max));
  }

  .tool-content-column .ad-band,
  .social-main .ad-band,
  .edit-pdf-upload-center .ad-band {
    width: 100%;
    min-height: 58px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 212px;
  }

  .feature-inner {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid #d9dadd;
    padding: 18px 0;
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tool-page,
  .tool-hero {
    width: 100vw;
    max-width: 100vw;
  }

  .tool-hero p {
    width: min(100%, 720px);
    max-width: 100%;
    padding: 0 14px;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tool-hero {
    padding: 26px 14px 18px;
  }

  .tool-hero h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .select-button {
    min-width: 100%;
    font-size: 19px;
    padding: 0 14px;
  }

  .drop-zone {
    min-height: 220px;
    padding: 24px 16px;
  }

  .action-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .merge-card {
    min-height: 300px;
  }

  .merge-preview {
    height: 208px;
  }

  .merge-floating-actions {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 18px;
  }

  .merge-add-button {
    width: 58px;
    height: 58px;
  }

  .merge-sort-button {
    width: 50px;
    height: 50px;
  }

  .merge-info-box {
    font-size: 17px;
  }

  .merge-primary-button {
    min-height: 68px;
    font-size: 24px;
  }

  .merge-loading-page h1 {
    margin-top: 110px;
    font-size: 30px;
  }

  .merge-spinner {
    width: 96px;
    height: 96px;
    border-width: 13px;
  }

  .merge-result-hero h1 {
    font-size: 30px;
  }

  .merge-result-download {
    font-size: 22px;
  }

  .continue-grid {
    grid-template-columns: 1fr;
  }

  .share-panel p {
    font-size: 17px;
  }

  .split-sidebar h1 {
    padding: 22px 18px;
    font-size: 30px;
  }

  .split-mode-tabs button {
    min-height: 96px;
    font-size: 15px;
  }

  .split-mode-tabs button svg {
    font-size: 30px;
  }

  .split-control-section {
    padding: 22px 18px;
  }

  .split-segmented,
  .split-segmented-two,
  .split-range-inputs,
  .split-fixed-input {
    grid-template-columns: 1fr;
  }

  .split-range-pages {
    min-height: 0;
    flex-wrap: wrap;
    padding: 14px;
  }

  .split-page-card {
    min-height: 232px;
  }

  .split-page-preview {
    height: 174px;
  }

  .split-primary-button {
    min-height: 68px;
    font-size: 24px;
  }

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

  .ppt-card {
    min-height: 288px;
  }

  .ppt-preview {
    height: 210px;
  }

  .ppt-floating-actions {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 18px;
  }

  .ppt-sidebar h1 {
    padding: 22px 18px;
    font-size: 30px;
  }

  .ppt-primary-button {
    min-height: 68px;
    font-size: 22px;
  }

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

  .excel-card-item {
    min-height: 288px;
  }

  .excel-preview {
    height: 210px;
  }

  .excel-floating-actions {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 18px;
  }

  .excel-sidebar h1 {
    padding: 22px 18px;
    font-size: 30px;
  }

  .excel-method {
    min-height: 0;
    padding: 18px;
  }

  .excel-method p {
    font-size: 17px;
  }

  .excel-layout-panel {
    padding: 22px 18px;
  }

  .excel-layout-toggle {
    grid-template-columns: 1fr;
  }

  .excel-primary-button {
    min-height: 68px;
    font-size: 22px;
  }

  .social-workspace {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
  }

  .social-link-panel,
  .social-preview-panel {
    min-width: 0;
    overflow: hidden;
    padding: 18px;
  }

  .social-policy,
  .social-link-panel .status {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .social-url-row {
    grid-template-columns: 1fr;
  }

  .social-preview-button {
    width: 100%;
  }

  .social-preview-head {
    display: grid;
  }

  .social-preview-actions {
    width: 100%;
  }

  .social-preview-actions button {
    flex: 1 1 auto;
  }

  .social-media-grid {
    grid-template-columns: 1fr;
  }

  .social-download-actions {
    display: grid;
  }

  .social-download-button {
    width: 100%;
  }
}


/* QR and barcode tools */
.qr-tool-page {
  min-height: calc(100vh - 70px);
  background: #f5f7fb;
  color: #202636;
}

.qr-workspace {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr) 220px;
  gap: 22px;
}

.qr-ad-top,
.qr-ad-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
}

.qr-ad-bottom {
  margin-top: 0;
  margin-bottom: 34px;
}

.qr-ad-side {
  align-self: start;
}

.qr-panel,
.qr-generator-start,
.qr-code-preview-panel,
.qr-editor-side {
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.qr-upload-panel,
.qr-results-panel,
.qr-generator-start,
.qr-editor-side {
  padding: 28px;
}

.qr-upload-panel .tool-glyph,
.qr-generator-start .tool-glyph {
  margin-bottom: 18px;
}

.qr-upload-panel h1,
.qr-generator-start h1,
.qr-editor-side h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.qr-upload-panel p,
.qr-generator-start p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #607086;
  font-size: 16px;
  line-height: 1.55;
}

.qr-method-grid,
.qr-generator-actions,
.qr-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.qr-method-card {
  position: relative;
  flex: 1 1 230px;
  min-height: 154px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid #cfd9eb;
  border-radius: 8px;
  background: #f9fbff;
  color: #202636;
  text-align: left;
  cursor: pointer;
}

.qr-method-card:hover {
  border-color: #4f7fd8;
  box-shadow: 0 10px 24px rgba(79, 127, 216, 0.14);
}

.qr-method-card svg {
  width: 30px;
  height: 30px;
  color: #4f76b2;
}

.qr-method-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.qr-method-card strong {
  font-size: 20px;
}

.qr-method-card span {
  color: #68768a;
  font-size: 14px;
}

.qr-camera-box {
  margin-top: 20px;
}

.qr-camera-box video {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: #101827;
}

.qr-camera-box button,
.qr-generator-actions button,
.qr-editor-actions button,
.qr-editor-side button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: #df4b3f;
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.qr-results-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.qr-empty-result {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #cfd9eb;
  border-radius: 8px;
  color: #718097;
}

.qr-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #f8fbff;
}

.qr-result-card span {
  display: block;
  margin-bottom: 4px;
  color: #6a7a91;
  font-size: 12px;
  text-transform: uppercase;
}

.qr-result-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.qr-result-card button,
.qr-result-card a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cad6e7;
  border-radius: 7px;
  background: #fff;
  color: #254b83;
  padding: 0 12px;
  font-weight: 800;
  text-decoration: none;
}

.qr-result-card svg {
  width: 16px;
  height: 16px;
}

.qr-generator-start {
  width: min(780px, calc(100% - 32px));
  margin: 42px auto 70px;
}

.qr-generator-ad-layout {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: start;
}

.qr-generator-start label,
.qr-editor-side label {
  display: grid;
  gap: 8px;
  color: #384456;
  font-weight: 800;
}

.qr-generator-start textarea,
.qr-editor-side textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid #cfd9eb;
  border-radius: 8px;
  padding: 14px;
  color: #202636;
  font: inherit;
  font-weight: 600;
}

.qr-generator-actions {
  margin-top: 18px;
}

.qr-generator-editor {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 32px;
  background: #f5f7fb;
}

.qr-generator-editor .qr-ad-top,
.qr-generator-editor .qr-ad-bottom {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.qr-code-preview-panel {
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 28px;
}

.qr-code-stage {
  width: min(100%, 720px);
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px dashed #c9d5e7;
  border-radius: 8px;
  background: #eef3fb;
}

.qr-code-stage canvas {
  max-width: min(100%, 620px);
  max-height: 520px;
  background: transparent;
}

.qr-transparent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #39475a;
  font-weight: 800;
}

.qr-editor-side {
  align-self: start;
}

.qr-editor-side button {
  width: 100%;
  margin-top: 16px;
}

.qr-editor-ad {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .qr-workspace,
  .qr-generator-editor,
  .qr-generator-ad-layout {
    grid-template-columns: 1fr;
  }

  .qr-generator-editor {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .qr-workspace {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  .qr-upload-panel,
  .qr-generator-start,
  .qr-results-panel,
  .qr-editor-side,
  .qr-code-preview-panel {
    padding: 20px;
  }

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

.qr-ad-shell {
  width: min(100% - 28px, 1440px);
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: 16px 0 22px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: start;
}

.qr-center-shell {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.qr-side-ad .ad-side {
  min-height: 620px;
  margin: 0;
}

.qr-center-shell .qr-ad-top,
.qr-center-shell .qr-ad-bottom {
  width: 100%;
  min-height: 90px;
  margin: 0;
}

.qr-center-shell .qr-workspace {
  width: 100%;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
}

.qr-upload-panel,
.qr-generator-start {
  min-height: 0;
}

.qr-upload-panel h1,
.qr-generator-start h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.qr-upload-panel p,
.qr-generator-start p {
  margin-bottom: 16px;
}

.qr-method-card {
  min-height: 118px;
}

.qr-generator-start {
  width: 100%;
  margin: 0;
}

.qr-generator-start textarea {
  min-height: 108px;
}

.qr-generator-editor {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: start;
}

.qr-code-stage {
  min-height: 560px;
}

.qr-code-stage canvas {
  max-height: 540px;
}

.qr-design-panel {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.qr-design-section {
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.qr-design-heading {
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  color: #111827 !important;
  text-align: left;
}

.qr-design-heading strong,
.qr-design-heading small {
  display: block;
}

.qr-design-heading strong {
  font-size: 18px;
}

.qr-design-heading small {
  margin-top: 4px;
  color: #627086;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.qr-design-body {
  padding: 16px;
  border-top: 1px solid #e3e8f1;
}

.qr-design-section.is-collapsed .qr-design-body {
  display: none;
}

.qr-design-body h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.qr-option-row,
.qr-logo-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.qr-design-option {
  width: 88px !important;
  min-width: 88px;
  min-height: 102px !important;
  margin: 0 !important;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px !important;
  border: 1px solid #cfd6e3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 10px;
}

.qr-design-option.is-active {
  border-color: #5178ff !important;
  box-shadow: inset 0 0 0 2px #5178ff;
}

.qr-frame-preview {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  position: relative;
  border: 2px solid #111;
  border-radius: 7px;
  background: #fff;
}

.qr-frame-preview i {
  width: 32px;
  height: 32px;
  display: block;
  background:
    linear-gradient(90deg, #111 8px, transparent 0) 0 0/16px 16px,
    linear-gradient(#111 8px, transparent 0) 0 0/16px 16px,
    #e5e7eb;
}

.qr-frame-preview-asset {
  overflow: hidden;
  border-color: #d0d6e2;
  background: #fff;
}

.qr-frame-preview-asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-frame-controls {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.qr-frame-controls > label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

.qr-frame-controls > label input {
  min-height: 44px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.qr-frame-preview b {
  position: absolute;
  bottom: 4px;
  font-size: 8px;
}

.qr-frame-preview-none {
  border-color: #cfd6e3;
}

.qr-frame-preview-none::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #111;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.qr-frame-preview-none i,
.qr-frame-preview-none b {
  display: none;
}

.qr-frame-preview-solid-caption b,
.qr-frame-preview-ticket b,
.qr-frame-preview-badge b,
.qr-frame-preview-ribbon b,
.qr-frame-preview-label-bottom b {
  left: 8px;
  right: 8px;
  bottom: 2px;
  border-radius: 3px;
  background: #111;
  color: #fff;
}

.qr-frame-preview-phone {
  border-width: 5px 3px;
  border-radius: 12px;
}

.qr-pattern-preview {
  width: 54px;
  height: 54px;
  position: relative;
  display: block;
}

.qr-pattern-preview i {
  position: absolute;
  left: calc(var(--x) * 10px);
  top: calc(var(--y) * 10px);
  width: 8px;
  height: 8px;
  background: #111;
}

.qr-pattern-preview-dots i {
  border-radius: 50%;
}

.qr-pattern-preview-rounded i,
.qr-pattern-preview-classy i {
  border-radius: 3px;
}

.qr-pattern-preview-diamond i {
  transform: rotate(45deg) scale(.82);
}

.qr-corner-preview {
  width: 50px;
  height: 50px;
  display: block;
  position: relative;
}

.qr-corner-preview-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 6px solid #111;
}

.qr-corner-preview-dot::before {
  content: "";
  position: absolute;
  inset: 17px;
  background: #111;
}

.qr-corner-preview-rounded::before {
  border-radius: 10px;
}

.qr-corner-preview-circle::before,
.qr-corner-preview-dot.qr-corner-preview-dot::before {
  border-radius: 50%;
}

.qr-corner-preview-none::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid #111;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.qr-color-card {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f6f7f9;
}

.qr-color-input {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.qr-color-input input[type="text"] {
  height: 44px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.qr-color-input input[type="color"] {
  width: 48px;
  height: 44px;
  padding: 0;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  background: #fff;
}

.qr-logo-option {
  width: 54px !important;
  min-width: 54px;
  height: 54px;
  min-height: 54px !important;
  margin: 0 !important;
  border: 1px solid #cfd6e3 !important;
  border-radius: 10px !important;
  background: #fff;
  color: #111827;
  font-weight: 900;
}

.qr-logo-option.is-active {
  border-color: #5178ff !important;
  box-shadow: inset 0 0 0 2px #5178ff;
}

.qr-logo-upload {
  min-height: 104px;
  display: grid !important;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 14px !important;
  border: 2px dashed #5c7cff;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}

.qr-logo-upload svg {
  width: 42px;
  height: 42px;
  color: #5c7cff;
}

.qr-logo-upload small {
  display: block;
  margin-top: 4px;
  color: #66758a;
}

.qr-logo-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .qr-ad-shell {
    grid-template-columns: 1fr;
  }

  .qr-side-ad {
    display: none;
  }
}

@media (max-width: 920px) {
  .qr-center-shell .qr-workspace,
  .qr-generator-editor {
    grid-template-columns: 1fr;
  }
}

.qr-generator-editor {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
  padding: 28px 7vw 108px;
  background: #f4f6fb;
}

.qr-customizer-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.qr-customizer-column h1 {
  margin: 18px 0 6px;
  color: #101828;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.12;
}

.qr-customizer-column > label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.qr-customizer-column textarea {
  min-height: 98px;
  resize: vertical;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 700;
}

.qr-customizer-column #qrRegenerateButton {
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #d75145;
  color: #fff;
  padding: 0 22px;
  font-weight: 900;
}

.qr-generator-editor-simple {
  grid-template-columns: minmax(360px, 640px) minmax(300px, 420px);
  justify-content: center;
}

.qr-simple-generator-column {
  align-self: start;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.qr-simple-generator-column h1 {
  margin-top: 0;
}

.qr-simple-transparent-toggle {
  width: fit-content;
}

.qr-phone-preview-column {
  position: sticky;
  top: 88px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.qr-phone-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 2px solid #5b7dff;
  border-radius: 999px;
  background: #fff;
  color: #5b7dff;
  font-size: 14px;
  font-weight: 900;
}

.qr-phone-toggle span,
.qr-phone-toggle strong {
  padding: 8px 16px;
  border-radius: 999px;
}

.qr-phone-toggle strong {
  background: #5b7dff;
  color: #fff;
}

.qr-phone-shell {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 18;
  border: 12px solid #08090c;
  border-radius: 46px;
  background: #fff;
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.qr-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 86px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #08090c;
  z-index: 2;
}

.qr-phone-status {
  height: 52px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 22px 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.qr-phone-url {
  width: calc(100% - 34px);
  height: 34px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef1f5;
  color: #727783;
  font-size: 12px;
  font-weight: 900;
}

.qr-phone-canvas-wrap {
  height: calc(100% - 96px);
  display: grid;
  place-items: center;
  padding: 26px;
}

.qr-phone-canvas-wrap canvas {
  max-width: 100%;
  max-height: 72%;
  background: transparent;
}

.qr-editor-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto auto minmax(190px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 12px 7vw;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.08);
}

.qr-editor-bottom-bar a,
.qr-editor-bottom-bar span,
.qr-editor-bottom-bar strong {
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.qr-editor-bottom-bar strong {
  color: #111827;
}

.qr-editor-bottom-bar button {
  justify-self: end;
  min-width: 190px;
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: #5b7dff;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(91, 125, 255, 0.28);
}

.qr-customizer-column .qr-design-panel {
  margin-top: 4px;
  gap: 18px;
}

.qr-customizer-column .qr-design-section {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.qr-customizer-column .qr-design-heading {
  padding: 20px 24px;
}

.qr-customizer-column .qr-design-heading strong {
  font-size: clamp(20px, 2vw, 26px);
}

.qr-customizer-column .qr-design-heading small {
  font-size: 15px;
}

.qr-customizer-column .qr-design-body {
  padding: 22px 24px 24px;
}

.qr-frame-option-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 126px;
  grid-template-rows: repeat(2, 166px);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 12px;
}

.qr-frame-option-row .qr-design-option {
  width: 126px !important;
  min-width: 126px;
  min-height: 166px !important;
}

.qr-frame-option-row .qr-frame-preview {
  width: 92px;
  height: 118px;
}

.qr-frame-option-row .qr-frame-preview i {
  width: 56px;
  height: 56px;
}

.qr-frame-preview-black-bottom b,
.qr-frame-preview-black-card b,
.qr-frame-preview-arrow-caption b,
.qr-frame-preview-gift b,
.qr-frame-preview-laptop b,
.qr-frame-preview-envelope b,
.qr-frame-preview-scooter b,
.qr-frame-preview-hand b,
.qr-frame-preview-cup b,
.qr-frame-preview-clipboard b,
.qr-frame-preview-notebook b,
.qr-frame-preview-drink b,
.qr-frame-preview-cloche b,
.qr-frame-preview-chef b,
.qr-frame-preview-mug b,
.qr-frame-preview-beer b {
  left: 8px;
  right: 8px;
  bottom: 6px;
  border-radius: 4px;
  background: #111;
  color: #fff;
}

.qr-frame-preview-script {
  border-color: #d1d5db;
}

.qr-frame-preview-script b {
  background: transparent;
  color: #111;
  font-family: cursive;
  font-size: 12px;
}

.qr-frame-preview-black-card {
  background: #111;
}

.qr-frame-preview-black-card i {
  background:
    linear-gradient(90deg, #111 8px, transparent 0) 0 0/16px 16px,
    linear-gradient(#111 8px, transparent 0) 0 0/16px 16px,
    #e5e7eb;
  border-radius: 6px;
}

.qr-frame-preview-arrow-caption::before {
  content: "";
  position: absolute;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #111;
}

.qr-frame-preview-gift::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 42px;
  height: 16px;
  background: #8b8e95;
  border-radius: 3px;
}

.qr-frame-preview-laptop::after,
.qr-frame-preview-envelope::after,
.qr-frame-preview-cup::after,
.qr-frame-preview-notebook::after,
.qr-frame-preview-drink::after,
.qr-frame-preview-cloche::after,
.qr-frame-preview-chef::after,
.qr-frame-preview-mug::after,
.qr-frame-preview-beer::after {
  content: "";
  position: absolute;
  border-color: #111;
}

.qr-frame-preview-laptop::after {
  left: 8px;
  right: 8px;
  bottom: -5px;
  height: 9px;
  background: #111;
  border-radius: 0 0 8px 8px;
}

.qr-frame-preview-envelope::after {
  left: 8px;
  right: 8px;
  bottom: 24px;
  height: 22px;
  border-left: 3px solid #111;
  border-right: 3px solid #111;
  border-bottom: 3px solid #111;
  transform: skewY(-8deg);
}

.qr-frame-preview-cup {
  border-radius: 8px 8px 16px 16px;
}

.qr-frame-preview-drink {
  transform: skewX(-5deg);
}

.qr-frame-preview-cloche::after {
  left: 22px;
  right: 22px;
  bottom: 21px;
  height: 20px;
  border-top: 4px solid #111;
  border-radius: 40px 40px 0 0;
}

.qr-frame-preview-chef::after {
  top: -10px;
  left: 20px;
  width: 52px;
  height: 24px;
  border: 4px solid #111;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}

.qr-frame-preview-mug::after,
.qr-frame-preview-beer::after {
  right: -10px;
  top: 44px;
  width: 16px;
  height: 28px;
  border: 4px solid #111;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.qr-download-page .qr-download-ad-shell {
  min-height: calc(100vh - 110px);
  align-items: stretch;
}

.qr-download-card {
  min-height: 420px;
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 30px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.qr-download-card h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.qr-download-card p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.qr-download-preview-box {
  width: min(100%, 360px);
  min-height: 210px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
}

.qr-download-preview {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.qr-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.qr-download-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #d75145;
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
}

.qr-download-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qr-download-back {
  color: #2563eb;
  font-weight: 900;
}

.qr-editor-ad-page {
  background: #f4f6fb;
}

.qr-editor-ad-shell {
  min-height: calc(100vh - 94px);
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  padding-top: 14px;
}

.qr-editor-ad-shell .qr-center-shell {
  gap: 10px;
}

.qr-editor-ad-shell .qr-ad-top,
.qr-editor-ad-shell .qr-ad-bottom,
.qr-download-ad-shell .qr-ad-top,
.qr-download-ad-shell .qr-ad-bottom {
  min-height: 76px;
}

.qr-editor-ad-shell .ad-side,
.qr-download-ad-shell .ad-side {
  min-height: calc(100vh - 150px);
}

.qr-generator-editor.qr-generator-editor-simple {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 468.44px) minmax(240px, 468.44px);
  gap: 26px;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
}

.qr-simple-generator-column {
  min-height: 0;
}

.qr-simple-generator-column > .qr-simple-transparent-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
  color: #334155;
}

.qr-simple-generator-column > .qr-simple-transparent-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

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

.qr-editor-download-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #d75145;
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
}

.qr-editor-download-actions button:hover,
.qr-download-actions button:hover,
.qr-customizer-column #qrRegenerateButton:hover {
  filter: brightness(0.96);
}

.qr-simple-generator-column .status:empty {
  display: none;
}

.qr-editor-back-link {
  width: fit-content;
  color: #64748b;
  font-weight: 900;
  text-decoration: none;
}

.qr-generator-editor-simple .qr-phone-preview-column {
  position: static;
  align-self: center;
}

.qr-generator-editor-simple .qr-phone-shell {
  width: auto;
  height: min(468.44px, calc(100vh - 250px));
  min-height: 360px;
  aspect-ratio: 9 / 18;
  border-width: 10px;
  border-radius: 38px;
}

.qr-generator-editor-simple .qr-phone-canvas-wrap {
  padding: 18px;
}

.qr-generator-editor-simple .qr-phone-canvas-wrap canvas {
  max-width: 86%;
  max-height: 68%;
}

.qr-download-page .qr-download-ad-shell {
  padding-top: 14px;
}

.qr-download-page .qr-center-shell {
  gap: 10px;
}

.qr-download-page .qr-download-card {
  min-height: min(420px, calc(100vh - 310px));
  padding: 24px;
}

.qr-download-actions button {
  min-width: 220px;
}

@media (max-width: 1080px) {
  .qr-generator-editor {
    grid-template-columns: 1fr;
    padding: 18px 18px 104px;
  }

  .qr-phone-preview-column {
    position: static;
  }

  .qr-editor-bottom-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: stretch;
    padding: 10px 18px;
  }

  .qr-editor-bottom-bar span,
  .qr-editor-bottom-bar strong {
    display: none;
  }

  .qr-editor-bottom-bar button {
    width: 100%;
    min-width: 0;
  }
}

.qr-phone-toggle {
  display: none !important;
}

.qr-phone-canvas-wrap canvas {
  max-height: 72%;
  max-width: 88%;
}

.qr-editor-bottom-bar {
  grid-template-columns: minmax(120px, 1fr) minmax(190px, 1fr);
}

.qr-editor-bottom-bar span,
.qr-editor-bottom-bar strong {
  display: none;
}

.qr-frame-option-row {
  grid-auto-columns: 98px;
  grid-template-rows: repeat(2, 124px);
  gap: 10px;
}

.qr-frame-option-row .qr-design-option {
  width: 98px !important;
  min-width: 98px;
  min-height: 124px !important;
  padding: 8px !important;
}

.qr-frame-option-row .qr-design-option > .qr-design-label {
  display: none;
}

.qr-frame-option-row .qr-frame-preview {
  width: 74px;
  height: 96px;
}

.qr-frame-preview-asset img {
  filter: grayscale(1) contrast(1.12);
}

.qr-frame-preview-native {
  position: relative;
  overflow: visible;
  border: 2px solid #111;
  background: #fff;
}

.qr-frame-preview-native i {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 42px !important;
  height: 42px !important;
  transform: translateX(-50%);
  border-radius: 4px;
  background:
    linear-gradient(90deg, #111 7px, transparent 0) 0 0/14px 14px,
    linear-gradient(#111 7px, transparent 0) 0 0/14px 14px,
    #e5e7eb;
}

.qr-frame-preview-native b {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 17px;
  border-radius: 3px;
  background: #111;
}

.qr-frame-preview-native-1 {
  border-color: #d1d5db;
}

.qr-frame-preview-native-1 b,
.qr-frame-preview-native-1::before {
  display: none;
}

.qr-frame-preview-native-2 {
  border: 0;
}

.qr-frame-preview-native-2 b {
  background: transparent;
}

.qr-frame-preview-native-3,
.qr-frame-preview-native-5 {
  border-width: 3px;
}

.qr-frame-preview-native-6,
.qr-frame-preview-native-7,
.qr-frame-preview-native-9,
.qr-frame-preview-native-17,
.qr-frame-preview-native-21,
.qr-frame-preview-native-27 {
  background: #111;
}

.qr-frame-preview-native-6 i,
.qr-frame-preview-native-7 i,
.qr-frame-preview-native-9 i,
.qr-frame-preview-native-17 i,
.qr-frame-preview-native-21 i,
.qr-frame-preview-native-27 i {
  background:
    linear-gradient(90deg, #111 7px, transparent 0) 0 0/14px 14px,
    linear-gradient(#111 7px, transparent 0) 0 0/14px 14px,
    #e5e7eb;
  outline: 7px solid #fff;
}

.qr-frame-preview-native-8::before,
.qr-frame-preview-native-20::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid #111;
}

.qr-frame-preview-native-10::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 2px;
  height: 9px;
  border-bottom: 3px solid #111;
  border-radius: 0 0 10px 10px;
}

.qr-frame-preview-native-11 {
  border-color: #d1d5db;
}

.qr-frame-preview-native-11 b {
  background: transparent;
  border-bottom: 2px solid #111;
  transform: rotate(-8deg);
}

.qr-frame-preview-native-12::before,
.qr-frame-preview-native-19::before,
.qr-frame-preview-native-25::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 34px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #858993;
}

.qr-frame-preview-native-13::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 48px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #111;
}

.qr-frame-preview-native-14::after,
.qr-frame-preview-native-26::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -8px;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: #858993;
}

.qr-frame-preview-native-15::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 24px;
  height: 22px;
  border-left: 3px solid #111;
  border-right: 3px solid #111;
  border-bottom: 3px solid #111;
  transform: skewY(-8deg);
}

.qr-frame-preview-native-16::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 14px;
  width: 38px;
  height: 20px;
  border-bottom: 7px solid #858993;
  border-radius: 50%;
}

.qr-frame-preview-native-18::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 14px;
  width: 20px;
  height: 58px;
  background: #111;
}

.qr-frame-preview-native-24 {
  border-width: 7px 4px;
  border-radius: 13px;
}

.qr-frame-preview-native-28::after,
.qr-frame-preview-native-30::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 17px;
  right: 17px;
  height: 20px;
  border: 3px solid #111;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.qr-frame-preview-native-31::after,
.qr-frame-preview-native-32::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 37px;
  width: 18px;
  height: 28px;
  border: 5px solid #111;
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.qr-frame-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f6f7f9;
}

.qr-frame-controls .qr-color-card {
  display: contents;
}

.qr-frame-controls > label,
.qr-frame-controls .qr-color-card label {
  margin: 0;
  gap: 7px;
  font-size: 15px;
}

.qr-frame-controls > label input,
.qr-frame-controls .qr-color-input input[type="text"] {
  min-height: 42px;
  height: 42px;
}

.qr-frame-controls .qr-color-input {
  margin-top: 0;
}

.qr-color-input-compact {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.qr-color-input-compact input[type="color"] {
  width: 42px;
  height: 42px;
}

.qr-design-heading > span[aria-hidden] {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: transparent;
  font-size: 0;
  position: relative;
}

.qr-design-heading > span[aria-hidden]::before {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 3px solid #111827;
  border-bottom: 3px solid #111827;
  transform: rotate(45deg) translateY(-2px);
}

.qr-design-section:not(.is-collapsed) .qr-design-heading > span[aria-hidden]::before {
  transform: rotate(225deg) translateY(-2px);
}

@media (max-width: 720px) {
  .qr-frame-controls {
    grid-template-columns: 1fr;
  }
}

.qr-frame-option-row {
  grid-auto-columns: 78px;
  grid-template-rows: repeat(2, 98px);
  gap: 10px;
  padding-bottom: 8px;
}

.qr-frame-option-row .qr-design-option {
  width: 78px !important;
  min-width: 78px;
  min-height: 98px !important;
  padding: 7px !important;
}

.qr-frame-option-row .qr-frame-preview {
  width: 58px;
  height: 76px;
}

.qr-frame-preview-modern {
  position: relative;
  overflow: visible;
  border: 2px solid #111827;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8dee8;
}

.qr-frame-preview-modern i {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 30px !important;
  height: 30px !important;
  transform: translateX(-50%);
  border-radius: 4px;
  background:
    linear-gradient(90deg, #111827 5px, transparent 0) 0 0/10px 10px,
    linear-gradient(#111827 5px, transparent 0) 0 0/10px 10px,
    #e5e7eb;
  outline: 4px solid #fff;
}

.qr-frame-preview-modern b {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 13px;
  border-radius: 3px;
  background: #111827;
}

.qr-frame-preview-modern em {
  position: absolute;
  display: block;
}

.qr-frame-preview-modern-1 {
  border-color: #cbd5e1;
}

.qr-frame-preview-modern-1 b {
  display: none;
}

.qr-frame-preview-modern-3,
.qr-frame-preview-modern-11 {
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 8px #111827;
}

.qr-frame-preview-modern-4,
.qr-frame-preview-modern-26,
.qr-frame-preview-modern-30 {
  background: #111827;
}

.qr-frame-preview-modern-4 i,
.qr-frame-preview-modern-26 i,
.qr-frame-preview-modern-30 i {
  outline-color: #fff;
}

.qr-frame-preview-modern-5::after,
.qr-frame-preview-modern-10::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: -5px;
  height: 12px;
  border-bottom: 3px solid #111827;
  border-radius: 0 0 10px 10px;
}

.qr-frame-preview-modern-6::before,
.qr-frame-preview-modern-25::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 4px solid transparent;
  border-top-color: #111827;
  border-left-color: #111827;
  border-radius: 9px;
}

.qr-frame-preview-modern-7::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 19px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #111827;
}

.qr-frame-preview-modern-8 b,
.qr-frame-preview-modern-12 b {
  border-radius: 999px;
}

.qr-frame-preview-modern-9 {
  box-shadow: 0 6px 12px rgba(15, 23, 42, .18);
}

.qr-frame-preview-modern-13::before,
.qr-frame-preview-modern-24::before,
.qr-frame-preview-modern-28::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: 13px;
  height: 10px;
  background: #111827;
}

.qr-frame-preview-modern-14::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: -7px;
  height: 15px;
  border-radius: 5px;
  background: #8b93a1;
}

.qr-frame-preview-modern-16::before,
.qr-frame-preview-modern-22::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed #8b93a1;
  border-radius: 5px;
}

.qr-frame-preview-modern-18::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  border-top: 19px solid #8b93a1;
  border-left: 19px solid transparent;
}

.qr-frame-preview-modern-19::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 7px;
  height: 9px;
  border-radius: 99px;
  background: #d8dee8;
}

.qr-frame-preview-modern-20 {
  border-width: 5px 3px;
  border-radius: 15px;
}

.qr-frame-preview-modern-21::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 15px;
  height: 22px;
  border-radius: 0 14px 14px 0;
  background: #111827;
}

.qr-frame-preview-modern-23::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 19px;
  height: 18px;
  border-left: 3px solid #111827;
  border-right: 3px solid #111827;
  border-bottom: 3px solid #111827;
  transform: skewY(-8deg);
}

.qr-frame-preview-modern-27::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 18px;
  height: 20px;
  border-top: 4px solid #111827;
  border-radius: 50% 50% 0 0;
}

.qr-frame-preview-modern-29 {
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px #cbd5e1, 0 6px 12px rgba(15, 23, 42, .12);
}

.qr-frame-option-row .qr-design-option > .qr-frame-preview {
  display: grid;
}

.qr-frame-preview-modern-1 b {
  display: block;
  left: 15px;
  right: 15px;
  border-radius: 999px;
}

.qr-frame-preview-modern-2 {
  background: #111827;
  border-color: #111827;
}

.qr-frame-preview-modern-2 i {
  outline-width: 6px;
}

.qr-frame-preview-modern-3 b {
  left: 12px;
  right: 12px;
}

.qr-frame-preview-vector {
  overflow: hidden;
  border-color: #cfd6e3;
  background: #fff;
}

.qr-frame-preview-vector img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Compact one-screen QR/barcode generator editor and download views. */
.qr-editor-ad-page,
.qr-download-page {
  min-height: calc(100vh - 78px);
  overflow-x: hidden;
}

.qr-editor-ad-page .site-footer,
.qr-download-page .site-footer {
  display: none;
}

.qr-editor-ad-page .qr-ad-shell,
.qr-download-page .qr-ad-shell {
  width: min(100% - 24px, 1540px);
  min-height: calc(100vh - 96px);
  height: calc(100vh - 96px);
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  gap: 14px;
  padding: 10px 0;
  align-items: stretch;
}

.qr-editor-ad-page .qr-center-shell,
.qr-download-page .qr-center-shell {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 64px;
  gap: 8px;
}

.qr-editor-ad-page .qr-center-shell .qr-ad-top,
.qr-editor-ad-page .qr-center-shell .qr-ad-bottom,
.qr-download-page .qr-center-shell .qr-ad-top,
.qr-download-page .qr-center-shell .qr-ad-bottom {
  min-height: 0;
  height: 64px;
  border-radius: 8px;
}

.qr-editor-ad-page .qr-side-ad .ad-side,
.qr-download-page .qr-side-ad .ad-side {
  min-height: 0;
  height: 100%;
  border-radius: 8px;
}

.qr-editor-ad-page .qr-generator-editor.qr-generator-editor-simple {
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(340px, 468px) minmax(260px, 468px);
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  padding: 0;
}

.qr-editor-ad-page .qr-simple-generator-column {
  max-height: 100%;
  gap: 12px;
  padding: 20px 24px;
  overflow: hidden;
}

.qr-editor-ad-page .qr-simple-generator-column h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 2px;
}

.qr-editor-ad-page .qr-customizer-column textarea {
  min-height: 118px;
  max-height: 150px;
}

.qr-editor-ad-page .qr-customizer-column #qrRegenerateButton {
  min-height: 42px;
  padding: 0 20px;
}

.qr-editor-ad-page .qr-editor-download-actions {
  gap: 8px;
}

.qr-editor-ad-page .qr-editor-download-actions button {
  min-height: 44px;
}

.qr-editor-ad-page .qr-editor-back-link {
  margin-top: -2px;
}

.qr-editor-ad-page .qr-phone-shell {
  height: min(468.44px, calc(100vh - 250px));
  min-height: 330px;
  width: auto;
  border-width: 10px;
  border-radius: 36px;
}

.qr-editor-ad-page .qr-phone-notch {
  top: 12px;
  width: 76px;
  height: 22px;
}

.qr-editor-ad-page .qr-phone-status {
  height: 46px;
  padding: 0 18px 7px;
}

.qr-editor-ad-page .qr-phone-url {
  height: 30px;
  font-size: 11px;
}

.qr-editor-ad-page .qr-phone-canvas-wrap {
  height: calc(100% - 84px);
  padding: 16px;
}

.qr-editor-ad-page .qr-phone-canvas-wrap canvas {
  max-width: 84%;
  max-height: 66%;
}

.qr-download-page .qr-download-card {
  min-height: 0;
  height: 100%;
  gap: 12px;
  padding: 18px 24px;
  overflow: hidden;
}

.qr-download-page .qr-download-card h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.qr-download-page .qr-download-preview-box {
  width: min(100%, 300px);
  min-height: 0;
  max-height: 240px;
  padding: 12px;
}

.qr-download-page .qr-download-preview {
  max-height: 210px;
}

.qr-download-page .qr-download-actions button {
  min-width: 220px;
  min-height: 46px;
}

@media (max-width: 1180px) {
  .qr-editor-ad-page .qr-ad-shell,
  .qr-download-page .qr-ad-shell {
    height: auto;
    min-height: calc(100vh - 96px);
    grid-template-columns: 1fr;
  }

  .qr-editor-ad-page .qr-center-shell,
  .qr-download-page .qr-center-shell {
    height: auto;
    grid-template-rows: 64px auto 64px;
  }
}

@media (max-width: 820px) {
  .qr-editor-ad-page .qr-generator-editor.qr-generator-editor-simple {
    grid-template-columns: 1fr;
  }

  .qr-editor-ad-page .qr-phone-shell {
    height: 390px;
  }
}

/* Image to Text Converter */
.image-text-page {
  background: #f4f6fb;
  color: #111827;
}

.image-text-ad-shell {
  width: min(100% - 24px, 1540px);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  gap: 14px;
  align-items: stretch;
}

.image-text-center-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 64px;
  gap: 8px;
}

.image-text-ad-top,
.image-text-ad-bottom {
  min-height: 0;
  height: 64px;
  margin: 0;
  border-radius: 8px;
}

.image-text-side-ad .ad-side {
  min-height: 0;
  height: 100%;
  margin: 0;
  border-radius: 8px;
}

.image-text-upload-page .site-footer,
.image-text-download-page .site-footer {
  display: none;
}

.image-text-upload-card,
.image-text-editor-card,
.image-text-download-card {
  min-height: 0;
  height: 100%;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.image-text-upload-card {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto;
  gap: 12px;
  padding: clamp(18px, 3vw, 34px);
  text-align: center;
}

.image-text-upload-card h1,
.image-text-editor-card h1,
.image-text-download-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.image-text-upload-card p,
.image-text-editor-card p,
.image-text-download-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 750;
  line-height: 1.4;
}

.image-text-drop-zone {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
}

.image-text-upload-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.image-text-upload-actions button {
  min-width: 150px;
}

.image-text-processing-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-text-processing-card {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 34px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.image-text-processing-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.image-text-processing-list {
  width: 100%;
  display: grid;
  gap: 8px;
}

.image-text-processing-list div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.image-text-editor-ad-shell {
  min-height: calc(100vh - 96px);
}

.image-text-editor-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
}

.image-text-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.image-text-editor-card h1 {
  font-size: clamp(28px, 3.5vw, 44px);
}

.image-text-columns {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.image-text-result-column {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
}

.image-text-result-title {
  display: grid;
  gap: 3px;
}

.image-text-result-title strong {
  font-size: 18px;
}

.image-text-result-title span {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-text-result-column textarea {
  width: 100%;
  min-height: 180px;
  resize: none;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: #111827;
  font: 650 15px/1.55 Arial, sans-serif;
}

.image-text-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-text-result-actions button,
.image-text-download-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #d75145;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
}

.image-text-result-actions button:first-child {
  background: #2563eb;
}

.image-text-download-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
  overflow: hidden;
}

.image-text-download-card pre {
  width: min(100%, 720px);
  min-height: 0;
  height: 100%;
  max-height: 260px;
  margin: 0;
  overflow: auto;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  color: #1f2937;
  text-align: left;
  white-space: pre-wrap;
  font: 650 14px/1.55 Arial, sans-serif;
}

.image-text-download-actions button {
  min-width: 220px;
}

.image-text-download-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.image-text-back-link {
  color: #64748b;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .image-text-ad-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .image-text-center-shell {
    grid-template-rows: 64px auto 64px;
  }

  .image-text-side-ad {
    display: none;
  }
}

@media (max-width: 720px) {
  .image-text-ad-shell {
    width: min(100% - 16px, 1540px);
  }

  .image-text-upload-card,
  .image-text-editor-card,
  .image-text-download-card {
    padding: 16px;
  }

  .image-text-editor-head {
    display: grid;
  }

  .image-text-result-actions {
    grid-template-columns: 1fr;
  }
}

/* Calculator categories and tools */
.calculator-page {
  min-height: calc(100vh - 72px);
  background: #f3f6fb;
}

.calculator-ad-shell {
  width: min(100% - 32px, 1580px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 22px;
  align-items: stretch;
}

.calculator-center {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.calculator-top-ad,
.calculator-bottom-ad {
  min-height: 72px;
}

.calculator-side-ad .ad-side {
  position: sticky;
  top: 92px;
  min-height: 520px;
}

.calculator-category-hero,
.calculator-workspace {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.calculator-category-hero {
  padding: 34px;
}

.calculator-category-hero h1,
.calculator-intro h1 {
  margin: 10px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.calculator-category-hero p,
.calculator-intro p,
.calculator-explainer p {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.55;
}

.calculator-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
}

.calculator-back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.calculator-card {
  min-height: 158px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.calculator-card:hover {
  border-color: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.calculator-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
}

.calculator-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.calculator-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.calculator-card span:last-child {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.calculator-workspace {
  padding: 34px;
  display: grid;
  gap: 24px;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: #f8fafc;
}

.calculator-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 0 14px;
  font: 800 16px/1.2 Arial, sans-serif;
}

.calculator-submit {
  min-height: 52px;
  align-self: end;
  border: 0;
  border-radius: 8px;
  background: #d25749;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.calculator-result {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.calculator-result strong {
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.calculator-result span {
  color: #475569;
  font-size: 16px;
  line-height: 1.45;
}

.calculator-explainer {
  padding: 18px;
  border-radius: 8px;
  background: #f8fafc;
}

.calculator-explainer h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}

@media (max-width: 1180px) {
  .calculator-ad-shell {
    grid-template-columns: 1fr;
  }

  .calculator-side-ad {
    display: none;
  }
}

@media (max-width: 760px) {
  .calculator-ad-shell {
    width: min(100% - 16px, 1580px);
  }

  .calculator-category-hero,
  .calculator-workspace {
    padding: 20px;
  }

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