:root {
  --brand: #e2283e;
  --brand-dark: #c01d32;
  --brand-ink: #b31b30;
  --brand-soft: #fdecee;
  --ink: #1c1c32;
  --text: #3d4a58;
  --muted: #66717f;
  --faint: #8b95a1;
  --line: #e3e8ee;
  --line-strong: #d0d7e0;
  --bg: #f3f6f9;
  --paper: #ffffff;
  --footer: #121a22;
  --warn-bg: #fff4e8;
  --warn-ink: #8a4b12;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --display: "Barlow", "Nunito", sans-serif;
  --radius: 12px;
  --wrap: 100%;
  --shadow: 0 1px 2px rgba(21, 32, 43, 0.04), 0 10px 28px rgba(21, 32, 43, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

main { flex: 1 0 auto; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover { color: var(--ink); }

.brand__logo {
  display: block;
  height: 68px;
  width: auto;
}

.head__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  scrollbar-width: none;
}

.head__nav::-webkit-scrollbar { display: none; }

.head__nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  padding: 8px 10px;
  border-radius: 8px;
}

.head__nav a:hover {
  color: var(--ink);
  background: #f4f7fa;
}

.head__nav a.is-on {
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.hero { padding: 36px 0 4px; }

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  max-width: 46rem;
  font-size: 17.5px;
  color: var(--text);
}

.picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.picks__label {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  margin-right: 2px;
}

.picks a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.picks a:hover {
  border-color: #f3b4bd;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.ad-slot:not(:has(ins, iframe)) {
  display: none;
}

.ad-slot:has(ins, iframe) {
  display: grid;
  place-items: center;
  margin: 22px 0 8px;
}

.ad-slot--box:has(ins, iframe) { min-height: 250px; }

.tool-layout:not(:has(.ad-slot ins, .ad-slot iframe)) {
  grid-template-columns: minmax(0, 1fr);
}

.tool-layout:not(:has(.ad-slot ins, .ad-slot iframe)) .rail {
  display: none;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
  position: sticky;
  top: 68px;
  z-index: 5;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 43, 0.04);
}

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }

.tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.tabs button:hover { color: var(--ink); background: #f4f7fa; }

.tabs button.is-on {
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.bar__side {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.search {
  width: 220px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: #fbfcfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px 50%;
  background-size: 16px;
  color: var(--ink);
  padding: 0 12px 0 34px;
  font-size: 14px;
}

.search:focus {
  outline: 2px solid var(--brand);
  border-color: transparent;
  background-color: #fff;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.tool[hidden] { display: none !important; }

.tool {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  min-height: 112px;
  box-shadow: 0 1px 0 rgba(21, 32, 43, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tool:hover {
  border-color: #f3b4bd;
  background: #fff;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0, 137, 189, 0.1);
  transform: translateY(-1px);
}

.tool__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fff6f7);
  border: 1px solid #f3d5d9;
  color: var(--brand-ink);
  display: grid;
  place-items: center;
}

.tool__icon svg { width: 36px; height: 36px; display: block; overflow: visible; }

.tool__icon--lg {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  border-radius: 16px;
}

.tool__icon--lg svg { width: 42px; height: 42px; }

.ico [class] {
  transform-box: fill-box;
  transform-origin: center;
}

.ico-merge .back { animation: n-merge-back 2.4s ease-in-out infinite; }
.ico-merge .front { animation: n-merge-front 2.4s ease-in-out infinite; }
.ico-split .left { animation: n-split-l 2.2s ease-in-out infinite; }
.ico-split .right { animation: n-split-r 2.2s ease-in-out infinite; }
.ico-remove .mark { animation: n-pop 1.8s ease-in-out infinite; }
.ico-extract .out { animation: n-extract 2.2s ease-in-out infinite; }
.ico-organize .r1 { animation: n-row 2.6s ease-in-out infinite; }
.ico-organize .r2 { animation: n-row 2.6s ease-in-out infinite reverse; }
.ico-organize .r3 { animation: n-row 2.6s ease-in-out 0.3s infinite; }
.ico-rotate .page { animation: n-tilt 2.2s ease-in-out infinite; }
.ico-compress .l { animation: n-press-l 1.6s ease-in-out infinite; }
.ico-compress .r { animation: n-press-r 1.6s ease-in-out infinite; }
.ico-repair .spark { animation: n-pop 1.8s ease-in-out infinite; }
.ico-jpg .badge,
.ico-word .badge,
.ico-ppt .badge,
.ico-excel .badge { animation: n-badge 2s ease-in-out infinite; }
.ico-photo .shot,
.ico-slide .shot,
.ico-sheet .shot,
.ico-doc .shot { animation: n-extract 2.3s ease-in-out infinite; }
.ico-numbers .n { animation: n-pop 1.8s ease-in-out infinite; }
.ico-watermark .stamp { animation: n-drift 2.6s ease-in-out infinite; }
.ico-crop .c1 { animation: n-crop1 2s ease-in-out infinite; }
.ico-crop .c2 { animation: n-crop2 2s ease-in-out infinite; }
.ico-crop .c3 { animation: n-crop3 2s ease-in-out infinite; }
.ico-crop .c4 { animation: n-crop4 2s ease-in-out infinite; }
.ico-edit .pen { animation: n-tilt 1.8s ease-in-out infinite; }
.ico-sign .ink {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: n-draw 2.4s ease-in-out infinite;
}
.ico-lock .shackle { animation: n-shackle 2.2s ease-in-out infinite; }
.ico-unlock .shackle { animation: n-open 2.2s ease-in-out infinite; }

.tools .tool:nth-child(3n) .ico [class] { animation-delay: -0.45s; }
.tools .tool:nth-child(3n+1) .ico [class] { animation-delay: -1s; }

@keyframes n-merge-back { 50% { transform: translate(-3px, 2px); } }
@keyframes n-merge-front { 50% { transform: translate(3px, -2px); } }
@keyframes n-split-l { 50% { transform: translate(-2px, 0); } }
@keyframes n-split-r { 50% { transform: translate(2px, 0); } }
@keyframes n-pop { 50% { transform: scale(1.12); } }
@keyframes n-extract { 50% { transform: translate(2px, -2px); } }
@keyframes n-row { 50% { transform: translateX(3px); } }
@keyframes n-tilt { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes n-press-l { 50% { transform: translateX(3px); } }
@keyframes n-press-r { 50% { transform: translateX(-3px); } }
@keyframes n-badge { 50% { transform: translate(1px, 2px) scale(1.06); } }
@keyframes n-drift { 0%, 100% { transform: rotate(-14deg) translateX(-1px); } 50% { transform: rotate(-8deg) translateX(2px); } }
@keyframes n-crop1 { 50% { transform: translate(2px, 2px); } }
@keyframes n-crop2 { 50% { transform: translate(-2px, 2px); } }
@keyframes n-crop3 { 50% { transform: translate(2px, -2px); } }
@keyframes n-crop4 { 50% { transform: translate(-2px, -2px); } }
@keyframes n-draw { 0% { stroke-dashoffset: 46; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes n-shackle { 50% { transform: translateY(1.5px); } }
@keyframes n-open { 50% { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .ico [class] { animation: none !important; }
}

.tool__group {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 3px;
}

.tool h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.tool:has(.badge) h2 { padding-right: 72px; }

.tool p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 8px;
}

.empty {
  grid-column: 1 / -1;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 22px;
  color: var(--muted);
  text-align: center;
}

.foot {
  margin-top: 36px;
  background: var(--footer);
  color: #c5ced6;
}

.foot a { color: #fff; }
.foot a:hover { color: var(--brand); }

.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 0;
  font-size: 14px;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.foot__logo {
  display: block;
  height: 58px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 5px 10px;
}

.foot .foot__tag {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  max-width: 36ch;
}

.foot strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.foot p { margin: 0; max-width: 62ch; }

.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.home-faq {
  margin: 36px auto 8px;
  max-width: 74ch;
}

.home-faq h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.page {
  max-width: 72ch;
  margin: 28px auto 56px;
}

.steps {
  margin: 48px auto 8px;
  max-width: 1040px;
  text-align: center;
}

.steps h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.steps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.step__art {
  height: 168px;
  display: grid;
  place-items: center;
  padding: 18px 16px 8px;
  background: #fff;
}

.step__art svg { width: 100%; max-width: 210px; height: 132px; }

.step__body {
  flex: 1;
  background: var(--brand-soft);
  padding: 16px 16px 18px;
}

.step__body h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.step__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
}

.steps .btn { margin-top: 22px; }

.page h1 {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.page h2 {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.page p,
.page li { color: var(--text); }

.page p { margin: 0 0 12px; }

.page ul,
.page ol { margin: 0 0 12px; padding-left: 1.25em; }

.page li { margin: 0 0 6px; }

.page .updated {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.contact label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.contact textarea { min-height: 140px; resize: vertical; }

.contact input:focus,
.contact textarea:focus {
  outline: 2px solid #f3a8b3;
  border-color: var(--brand);
}

.crumb {
  margin: 22px 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.crumb span { margin: 0 4px; color: #c0c7d0; }
.crumb a { font-weight: 700; }

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

.tool-intro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tool-page h1 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.lede {
  margin: 0;
  max-width: 58ch;
  color: var(--text);
}

.rail {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 86px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.drop {
  border: 1.5px dashed #b7c9d6;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, #fff6f7 0%, #fbfcfd 55%);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  gap: 6px;
}

.drop.is-over {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.drop__mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.drop__mark svg { width: 30px; height: 30px; }

.drop h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.drop__hint { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

.drop__note { margin: 10px 0 0; color: var(--faint); font-size: 13px; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--brand-dark); color: #fff; }

.btn:disabled {
  background: #c5d0da;
  cursor: not-allowed;
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover { background: #f4f7f9; color: var(--ink); }

.btn--text {
  background: none;
  border: 0;
  color: var(--brand-ink);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  font-size: 13.5px;
}

.previews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 190px));
  gap: 16px;
}

.preview { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.preview[draggable="true"] { cursor: grab; }

.preview.is-dragging { opacity: 0.45; }

.preview__sheet {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.07);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.preview__sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.preview__fallback {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--brand-ink);
}

.preview__order,
.preview__remove {
  position: absolute;
  top: 8px;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.preview__order {
  left: 8px;
  background: var(--brand);
  color: #fff;
}

.preview__remove {
  right: 8px;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(21, 32, 43, 0.16);
  cursor: pointer;
  line-height: 1;
}

.preview__remove:hover { background: #fff1f0; color: #b42318; }

.preview__name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  word-break: break-word;
}

.preview__meta {
  margin: -4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.preview__moves { display: flex; justify-content: center; gap: 6px; }

.preview--add { cursor: default; }

.preview__add {
  aspect-ratio: 3 / 4;
  width: 100%;
  border: 1.5px dashed #b7c9d6;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--brand-ink);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.preview__add span { font-size: 28px; line-height: 1; font-weight: 600; }

.preview__add:hover { border-color: var(--brand); background: var(--brand-soft); }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.icon-btn:hover { border-color: #f3b4bd; background: var(--brand-soft); color: var(--brand-ink); }

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #fff;
  color: var(--ink);
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.options h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

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

.field span,
.field legend {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field select {
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  max-width: 360px;
  width: 100%;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--brand);
  border-color: transparent;
}

.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  font-size: 14.5px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.choices label:has(input:checked) {
  background: var(--brand-soft);
  border-color: #f3b4bd;
  color: var(--brand-ink);
}

.note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.btn--lg {
  min-width: 190px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 8px;
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fff;
}

.action-bar__meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.editor-tools button[data-mode],
.editor-tools .btn--ghost {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.editor-tools button[data-mode].is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.editor-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.editor-swatch input[type="color"] {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.editor-swatch select,
.editor-swatch input[type="number"] {
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.editor-swatch select { max-width: 140px; }

.editor-swatch input[type="number"] { width: 64px; }

.edit-pages { display: grid; gap: 18px; }

.edit-page__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.edit-frame {
  position: relative;
  width: min(760px, 100%);
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.08);
}

.edit-frame canvas { width: 100%; height: auto; display: block; }

.edit-layer { position: absolute; inset: 0; cursor: crosshair; }

.edit-item { position: absolute; box-sizing: border-box; min-width: 28px; min-height: 22px; }

.edit-item--text {
  line-height: 1.2;
  cursor: text;
  border: 1px dashed #f3b4bd;
  background: rgba(255, 255, 255, 0.55);
  padding: 2px 4px;
  overflow: hidden;
}

.edit-item--text span {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}

.edit-item.is-on { outline: 2px solid var(--brand); }

.edit-item--highlight { background: rgba(255, 214, 0, 0.45); cursor: move; }

.edit-item--cover {
  background: #fff;
  border: 1px dashed #b7c3ce;
  cursor: move;
}

.edit-item--image { cursor: move; }

.edit-item--image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  display: block;
}

.edit-item__x,
.edit-item__size {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  padding: 0;
}

.edit-item__x {
  top: -9px;
  right: -9px;
  background: #fff;
  color: #b42318;
  box-shadow: 0 1px 4px rgba(21, 32, 43, 0.18);
  font-weight: 700;
  cursor: pointer;
}

.edit-item__size {
  right: -8px;
  bottom: -8px;
  width: 22px;
  height: 22px;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(21, 32, 43, 0.28);
  cursor: nwse-resize;
  z-index: 2;
}

.pending {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--brand-soft);
  color: #8d1828;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
}

.pending--warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.add-more { margin: 12px 0 0; }

.guide {
  margin: 28px auto 8px;
  max-width: 68ch;
}

.guide__about {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.guide h2 {
  margin: 26px 0 10px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.guide__steps {
  margin: 0;
  padding-left: 1.25em;
}

.guide__steps li {
  margin: 0 0 8px;
  color: var(--text);
}

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

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 28px 12px 0;
  list-style: none;
  position: relative;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 10px;
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
}

.faq__item[open] summary::after { content: "–"; }

.faq__item p {
  margin: 0 0 14px;
  color: var(--text);
}

.more { margin: 28px 0 8px; }

.more h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.more__links { display: flex; flex-wrap: wrap; gap: 8px; }

.more__links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.more__links a:hover {
  border-color: #f3b4bd;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.missing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.missing--page {
  margin: 48px auto 72px;
  max-width: 520px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.missing--page h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.missing--page p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 980px) {
  .tool-layout { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: 1fr 1fr; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .brand__logo { height: 54px; }
  .head__inner { flex-wrap: wrap; padding: 10px 0; min-height: 0; gap: 8px 16px; }
  .head__nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .head__nav a { white-space: nowrap; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 30px; }
  .steps h2 { font-size: 28px; }
  .steps__grid { grid-template-columns: 1fr; }
  .page h1 { font-size: 30px; }
  .bar {
    flex-direction: column;
    align-items: stretch;
    position: static;
  }
  .bar__side { margin-left: 0; flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .tools, .rail { grid-template-columns: 1fr; }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; }
  .action-bar { flex-direction: column; align-items: stretch; }
  .btn--lg { width: 100%; }
  .tool-page h1 { font-size: 28px; }
  .tool-intro { align-items: center; }
}
