:root {
  --ink: #12263a;
  --ink-soft: #3d5166;
  --teal: #0f4c5c;
  --teal-2: #148f88;
  --sand: #f4efe6;
  --paper: #fffdf8;
  --coral: #e36414;
  --line: #e4d9c8;
  --ok: #1f7a4d;
  --bad: #b42318;
  --shadow: 0 18px 40px rgba(18, 38, 58, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(20, 143, 136, 0.12), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(227, 100, 20, 0.1), transparent 45%),
    var(--sand);
  line-height: 1.55;
}
h1, h2, h3, .brand strong {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.header-inner, .brand { display: flex; align-items: center; gap: 14px; }
.header-inner { justify-content: space-between; padding: 8px 0; overflow: visible; }
.brand img { display: block; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 1.05rem; color: var(--ink); }
.brand small { font-size: 0.62rem; color: var(--ink-soft); font-family: Manrope, sans-serif; letter-spacing: 0; }
.nav-desk { display: flex; gap: 18px; align-items: center; overflow: visible; }
.nav-desk > a, .cat-mega-btn { color: var(--ink); font-weight: 600; }
.cat-mega-btn {
  background: none; border: 0; font: inherit; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-mega-btn::after {
  content: "▾"; font-size: 0.72rem; color: var(--ink-soft); transition: transform .15s;
}
.cat-mega-btn.is-on { color: var(--teal); }
.cat-mega-btn.is-on::after { transform: rotate(180deg); color: var(--teal); }
.cat-mega {
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: min(72vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-shadow: inset 0 10px 16px -16px rgba(18, 38, 58, 0.25);
}
.cat-mega-inner { padding: 14px 0 18px; }
.cat-mega-h {
  margin: 0 0 10px; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-soft); font-weight: 800;
}
.cat-mega-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.cat-mega-link {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.cat-mega-link:hover { border-color: var(--teal); background: #e7f3f1; color: var(--ink); }
.cat-mega-link strong { font-size: 0.96rem; }
.cat-mega-link span {
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.cat-mega-all {
  display: inline-block; margin-top: 12px; font-weight: 800; color: var(--teal);
}
.header-search, .hero-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.header-search input, .hero-search input {
  border: 0; background: transparent; outline: none; width: 180px; font: inherit;
}
.nav-toggle { display: none; background: none; border: 0; }
.nav-mobile { display: none; gap: 8px; padding: 12px 16px 18px; background: var(--paper); max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; }
.nav-mobile.is-open { display: grid; }
.nav-mobile a { color: var(--ink); font-weight: 600; }
.nav-mobile-label {
  margin: 10px 0 0; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-soft); font-weight: 800;
}
.nav-mobile-cats {
  display: grid; gap: 6px; max-height: 42vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 0 8px; border-bottom: 1px solid var(--line);
}
.hero { padding: 64px 0 24px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; margin: 8px 0 12px; max-width: 16ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 800; color: var(--teal); }
.lede { max-width: 52ch; color: var(--ink-soft); font-size: 1.08rem; }
.hero-search { max-width: 560px; padding: 8px 8px 8px 16px; margin-top: 22px; }
.hero-search input { flex: 1; width: auto; }
.hero-search button, .btn-primary, .btn-ghost, button.btn-primary {
  border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.btn-primary, .hero-search button { background: var(--teal); color: #fff; }
.btn-primary:hover, .hero-search button:hover { background: #0c3b47; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin-top: 0.75rem; }
.section { padding: 28px 0 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.tool-grid, .cat-grid, .why-grid, .stat-grid { display: grid; gap: 16px; }
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
}
.why-grid { grid-template-columns: repeat(3, 1fr); }
.tool-card, .cat-card, .panel, .why-grid article {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-card a { display: grid; gap: 8px; padding: 18px; color: inherit; min-height: 100%; }
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 14px;
  color: inherit;
  min-height: 0;
  height: auto;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cat-card:hover {
  border-color: #9fc4be;
  box-shadow: 0 10px 28px rgba(18, 38, 58, 0.08);
}
.cat-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.tool-card h3, .cat-card strong { margin: 0; color: var(--ink); }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.cat-card-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}
.cat-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #eee6d8;
}
.cat-card-count {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.cat-card-cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--teal);
}
.cat-card:hover .cat-card-cta { color: #0c3b47; }
.cat-all .cat-icon { background: #f3eee4; color: var(--ink); }
.use { color: var(--coral); font-weight: 800; font-size: 0.86rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges i { font-style: normal; font-size: 0.65rem; letter-spacing: 0.06em; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #e7f3f1; color: var(--teal); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.how-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 8px; }
.search-wrap { position: relative; }
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; max-height: 380px; overflow: auto;
}
.search-drop a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.search-drop a:hover { background: var(--sand); }
.search-drop span { color: var(--ink-soft); font-size: 0.85rem; }
.hero-search .search-drop { left: 0; right: 0; }

.flow-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.flow-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); padding: 8px 10px; border-radius: 12px; background: #faf6ef; }
.flow-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e4d9c8; color: var(--ink); font-size: 0.75rem; }
.flow-steps li.is-current { color: var(--teal); background: #e7f3f1; }
.flow-steps li.is-current span, .flow-steps li.is-done span { background: var(--teal); color: #fff; }
.flow-steps li.is-done { color: var(--ok); }
.flow-steps-modern {
  gap: 4px; padding: 5px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #faf6ef, #f4efe6); box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.flow-steps-modern li {
  justify-content: center; text-align: center; border-radius: 12px; background: transparent;
  font-size: 0.82rem; padding: 10px 8px;
}
.flow-steps-modern li.is-current {
  background: var(--paper); color: var(--teal); box-shadow: 0 8px 20px rgba(18, 38, 58, 0.08);
}
.flow-steps-modern li.is-done { color: var(--ok); background: rgba(232, 246, 238, 0.7); }
.btn-xl { padding: 14px 28px; font-size: 1.05rem; letter-spacing: 0.01em; box-shadow: 0 10px 24px rgba(15, 76, 92, 0.22); }
.btn-xl:hover { transform: translateY(-1px); }
.step-h { margin: 0 0 10px; font-size: 1.05rem; }
.step-block { margin-bottom: 20px; }

.upload-zone {
  border: 2px dashed #cbbda8; border-radius: 20px; background: #faf6ef;
  min-height: 200px; display: grid; place-items: center; cursor: pointer;
  padding: 28px 16px; text-align: center; transition: border-color .15s, background .15s, transform .15s;
}
.upload-zone.is-drag { border-color: var(--teal); background: #e7f3f1; transform: scale(1.01); }
.upload-zone.has-files { min-height: 0; padding: 12px; }
.upload-zone.has-files .upload-idle { display: none; }
.upload-zone input { display: none; }
.upload-title { display: block; font-size: 1.15rem; }
.upload-or { display: block; color: var(--ink-soft); margin: 6px 0; font-size: 0.9rem; }
.choose-fake { display: inline-block; background: var(--teal); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.upload-types { color: var(--ink-soft); font-size: 0.88rem; margin: 12px 0 0; }
.privacy-note { font-size: 0.85rem; color: var(--ink-soft); margin: 10px 0 0; }

.file-cards { display: grid; gap: 10px; margin-top: 14px; }
.file-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.file-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #e7f3f1; display: grid; place-items: center; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-glyph { font-size: 0.7rem; font-weight: 800; color: var(--teal); }
.file-meta { display: grid; gap: 2px; }
.file-meta strong { word-break: break-all; }
.file-meta span, .file-ready { font-size: 0.85rem; color: var(--ink-soft); }
.file-ready.ok { color: var(--ok); font-weight: 700; font-style: normal; }
.file-actions { display: flex; flex-direction: column; gap: 4px; }
.file-actions .btn-ghost { padding: 6px 10px; font-size: 0.8rem; }

.file-error, .success-box, .process-status {
  margin-top: 12px; padding: 16px; border-radius: 16px;
}
.file-error { background: #fff6e8; border: 1px solid #f0c989; }
.success-box { background: #e8f6ee; border: 1px solid #b7e0c7; display: grid; gap: 10px; justify-items: start; }
.success-mark { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; }
.process-status { background: #e7f3f1; }
.bar { height: 8px; border-radius: 99px; background: #d5ebe8; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 40%; background: var(--teal); animation: load 1s ease infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }
.lock-row { flex-direction: row; align-items: center; font-weight: 600; }
.lock-row input { width: auto; }

.lang-switch { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  width: min(280px, 80vw); max-height: 70vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px;
}
.lang-hint { font-size: 0.78rem; color: var(--ink-soft); margin: 4px 8px 10px; }
.lang-menu a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.lang-menu a:hover, .lang-menu a.is-on { background: #e7f3f1; }
.file-summary { font-weight: 700; margin: 12px 0 0; }
.file-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.file-lang, .file-keep { display: block; font-size: 0.82rem; }
.file-keep { color: var(--ok); font-weight: 700; }
.doc-settings {
  background: #faf6ef; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
}
.doc-settings-card {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: linear-gradient(135deg, #e7f3f1, #faf6ef); border-color: #b7dcd4;
}
.doc-settings-icon { font-size: 1.6rem; line-height: 1; margin-top: 2px; }
.doc-settings-card h4 { margin: 0 0 6px; font-size: 1rem; }
.doc-settings-card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.92rem; }
.doc-settings-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.88rem; }
.doc-settings-list li { margin: 4px 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 6px 0; }
.check-row input { width: auto; }
.muted-check { color: var(--ink-soft); }
.setting-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 0; }
.upload-drop-line { display: block; color: var(--ink-soft); margin-top: 4px; }
.result-list { margin: 0; padding-left: 18px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 8px; }

html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[lang="ar"] body { font-family: "Noto Naskh Arabic", Manrope, sans-serif; }
html[lang="bn"] body { font-family: "Noto Sans Bengali", Manrope, sans-serif; }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", Manrope, sans-serif; }
html[lang="th"] body { font-family: "Noto Sans Thai", Manrope, sans-serif; }
html[lang="zh"] body { font-family: "Noto Sans SC", Manrope, sans-serif; }
html[lang="ja"] body { font-family: "Noto Sans JP", Manrope, sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", Manrope, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .brand strong,
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] .brand strong,
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] .brand strong,
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] .brand strong,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .brand strong,
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .brand strong,
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] .brand strong {
  font-family: inherit;
}
.tool-icon, .cat-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: #e7f3f1; color: var(--teal);
}
.tool-icon.lg { width: 56px; height: 56px; }
.icon { width: 22px; height: 22px; }
.why-grid article { padding: 20px; }
.why h2, .faq h2 { margin-bottom: 8px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.site-footer { margin-top: 40px; background: var(--teal); color: #e7f3f1; padding: 48px 0 24px; }
.site-footer a, .site-footer .brand strong { color: #fff; display: block; margin: 6px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.legal { text-align: center; opacity: 0.8; margin: 28px 0 0; }
.page-head { padding: 36px 0 8px; }
.crumb { color: var(--ink-soft); }
.tool-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.panel { padding: 20px; margin-bottom: 16px; }
.dropzone {
  display: grid; place-items: center; min-height: 140px; border: 1.5px dashed #cbbda8;
  border-radius: 16px; background: #faf6ef; cursor: pointer; margin-bottom: 14px;
}
.dropzone input { display: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.field-grid .wide, .form label, .calc-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.wide { grid-column: 1 / -1; }
input, textarea, select {
  font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  width: 100%;
}
.tool-output, .paper-preview {
  margin-top: 16px; padding: 16px; background: #faf6ef; border-radius: 12px; white-space: pre-wrap;
  overflow: auto;
}
.paper-preview { background: #fff; border: 1px solid var(--line); white-space: normal; }
.steps { padding: 0; list-style: none; }
.steps li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); font-weight: 800; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.related-link { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 48px; }
.form { display: grid; gap: 12px; }
.flash { padding: 10px 12px; border-radius: 10px; }
.flash.ok { background: #e8f6ee; color: var(--ok); }
.flash.bad { background: #fde8e6; color: var(--bad); }
.prose :where(h2,h3) { margin-top: 1.4em; }
.muted { color: var(--ink-soft); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sign-canvas, .preview-canvas, .qr-canvas { width: 100%; max-width: 700px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gradient-preview { height: 90px; border-radius: 12px; margin: 12px 0; }
.html-frame { width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ad-slot { margin: 12px 0; text-align: center; }
.ad-mobile-only { display: none; }
@media (max-width: 860px) {
  .nav-desk, .header-search, .cat-mega { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .why-grid, .tool-layout, .contact-grid, .footer-grid, .field-grid, .split-2, .how-grid, .flow-steps, .file-card { grid-template-columns: 1fr; }
  .ad-mobile-only { display: block; }
  .ad-desktop-only { display: none; }
  .hero { padding-top: 36px; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .btn-primary, .btn-ghost, .crumb, aside { display: none !important; }
  body { background: #fff; }
  .tool-layout { grid-template-columns: 1fr; }
  .paper-preview { box-shadow: none; }
  .cv-edit, .cv-toolbar, .cv-start, .cv-confirm, .tool-hero { display: none !important; }
  .cv-sheet { transform: none !important; box-shadow: none; width: auto; }
}

.tool-page-wide .tool-layout { grid-template-columns: 1fr; }
.tool-page-wide aside { display: none; }
.tool-page-wide .wrap, .tool-page-wide { width: min(1280px, calc(100% - 32px)); }

.cv-start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 20px; }
.cv-mode { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #faf6ef; cursor: pointer; text-align: left; }
.cv-mode.is-on, .cv-mode:hover { border-color: var(--teal); background: #e7f3f1; }
.cv-mode input { margin-top: 8px; }
.cv-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cv-paper-tag { font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: #e7f3f1; color: var(--teal); }
.cv-zoom-ctrl { display: flex; align-items: center; gap: 6px; }
.cv-split { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr); gap: 20px; align-items: start; }
.cv-edit { display: grid; gap: 10px; }
.cv-sec { background: #faf6ef; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.cv-sec summary { cursor: pointer; font-weight: 800; }
.cv-sec summary em { font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; }
.cv-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; }
.cv-item-bar { display: flex; justify-content: flex-end; gap: 4px; }
.cv-preview-col { position: sticky; top: 76px; }
.cv-stage { overflow: auto; background: #e8e0d2; border-radius: 16px; padding: 16px; min-height: 480px; }
.cv-scale { transform: scale(var(--cv-zoom, 0.78)); transform-origin: top center; width: 210mm; margin: 0 auto; }
.cv-sheet {
  width: 210mm; min-height: 297mm; background: #fff; color: #1b2430;
  padding: 18mm 16mm; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45;
}
.cv-sheet h1 { margin: 0; font-size: 28px; color: #0f4c5c; }
.cv-sheet h2 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #0f4c5c; border-bottom: 1px solid #d7cbb8; padding-bottom: 4px; margin: 16px 0 8px; }
.cv-title { margin: 2px 0; font-weight: 700; }
.cv-contact { color: #3d5166; font-size: 12px; }
.cv-head { display: flex; gap: 14px; align-items: center; }
.cv-avatar { width: 72px; height: 72px; overflow: hidden; flex-shrink: 0; background: #e7f3f1; }
.cv-avatar.circle { border-radius: 50%; }
.cv-avatar.square { border-radius: 10px; }
.cv-avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(var(--z, 100) / 100)) translate(var(--x, 0%), var(--y, 0%)); }
.cv-job { margin-bottom: 10px; }
.cv-job-h { display: flex; justify-content: space-between; gap: 8px; }
.cv-muted { color: #5b6b7c; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.cv-chips li { background: #e7f3f1; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.cv-sheet.tpl-executive h1 { font-family: Fraunces, Georgia, serif; }
.cv-sheet.tpl-minimal { padding-top: 24mm; }
.cv-sheet.tpl-minimal h2 { border: 0; letter-spacing: 0.2em; }
.cv-sheet.tpl-corporate .cv-head { background: #0f4c5c; color: #fff; margin: -18mm -16mm 12mm; padding: 16mm; }
.cv-sheet.tpl-corporate .cv-head h1, .cv-sheet.tpl-corporate .cv-contact, .cv-sheet.tpl-corporate .cv-title { color: #fff; }
.cv-sheet.tpl-ats .cv-avatar { display: none; }
.cv-sheet.tpl-ats h1, .cv-sheet.tpl-ats h2 { color: #111; font-family: "Times New Roman", Times, serif; }
.cv-work.is-confirm .cv-split { grid-template-columns: 1fr; }
.cv-photo-tools { display: grid; gap: 8px; }
.cv-photo-drop { border: 1px dashed #cbbda8; padding: 10px; border-radius: 12px; }

.color-studio { display: grid; gap: 16px; }
.cs-layout { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
.cs-sv { width: 100%; height: 180px; border-radius: 14px; cursor: crosshair; display: block; }
.cs-swatch { height: 92px; border-radius: 14px; border: 1px solid var(--line); margin: 8px 0; }
.cs-hex-big { font-size: 1.1rem; }
.cs-sample { padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.cs-table { width: 100%; border-collapse: collapse; }
.cs-table th { text-align: left; padding: 8px; width: 90px; }
.cs-table td { padding: 8px; border-top: 1px solid var(--line); }
.cs-block { background: #faf6ef; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cs-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cs-chip { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cs-native { position: relative; overflow: hidden; }

.tool-page-wide .tool-layout { grid-template-columns: 1fr; }
.tool-page-pdf-editor .crumb { margin-bottom: 8px; }
.pdf-editor-hero { display: block; margin-bottom: 20px; padding: 4px 0 0; }
.pdf-editor-hero h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 8px 0 12px; letter-spacing: -0.02em; }
.pdf-editor-hero .lede { max-width: 52ch; font-size: 1.08rem; color: #718096; line-height: 1.55; }
.pdf-editor-hero .eyebrow { color: #0F6070; font-weight: 600; }
.pdf-trust-badges {
  list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: .92rem; color: #718096;
}
.pdf-trust-badges li { margin: 0; }
.tool-interface-pdf-editor {
  padding: 0; border: none; box-shadow: none; background: transparent;
}
.upload-zone-pdf {
  min-height: 200px; border-color: #E4E9EC; background: #fff;
  border-radius: 16px; box-shadow: 0 1px 3px rgba(18, 38, 58, 0.06);
}
.upload-zone-pdf .upload-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.upload-zone-pdf .upload-title { font-size: 1.15rem; color: #172126; }
.pdf-open-btn { width: 100%; max-width: 420px; margin: 14px 0 18px; }
.pdf-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 1.2em 0;
}
.pdf-feature-card {
  background: #fff; border: 1px solid #E4E9EC; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 2px rgba(18, 38, 58, 0.04);
}
.pdf-feature-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: #172126; }
.pdf-feature-card span { color: #718096; font-size: .92rem; line-height: 1.45; }
.seo-content h2 { margin-top: 1.6em; font-size: 1.35rem; color: #172126; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content ul, .seo-content ol { padding-left: 1.2em; }
.seo-content li { margin: 6px 0; }

/* ── PDF Editor App (screenshot layout) ── */
.pdf-editor { margin-top: 12px; }
.pdf-editor-app {
  border: 1px solid #E5E7EB; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.pdf-editor-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #fff; border-bottom: 1px solid #E5E7EB;
  position: sticky; top: 0; z-index: 45;
}
.pdf-header-zoom {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  padding: 4px 8px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E5E7EB;
}
.pdf-header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto;
}
.pdf-subbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 14px; background: #F8FAFC; border-bottom: 1px solid #E5E7EB;
}
.pdf-save-status {
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #EFF6FF; color: #2563EB;
}
.pdf-save-status.is-saving { background: #FFF8E6; color: #9A6700; }
.pdf-save-status.is-unsaved { background: #FFF0F0; color: #C53030; }
.pdf-zoom-label { min-width: 48px; text-align: center; font-weight: 700; font-size: .88rem; color: #0F172A; }
.pdf-action-btn {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px;
  border: 1px solid #E5E7EB; background: #fff; cursor: pointer; font-size: .88rem; color: #0F172A;
}
.pdf-action-btn:hover { background: #EFF6FF; border-color: #BFDBFE; }
.pdf-action-btn:disabled { opacity: .35; cursor: not-allowed; }
.pdf-action-btn.pdf-action-text { font-size: .78rem; font-weight: 600; padding: 0 10px; }
.pdf-action-sep { color: #CBD5E0; }
.pdf-page-nav-label { font-size: .84rem; font-weight: 600; min-width: 56px; text-align: center; }
.pdf-btn-print {
  height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #CBD5E1; background: #fff; color: #0F172A;
  font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.pdf-btn-print:hover { background: #F8FAFC; border-color: #94A3B8; }
.pdf-dl-menu { position: relative; display: flex; align-items: stretch; }
.pdf-btn-download {
  height: 38px; padding: 0 16px; border: none; border-radius: 10px 0 0 10px;
  background: #2563EB; color: #fff; font-size: .88rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28); white-space: nowrap;
}
.pdf-btn-download:hover { background: #1D4ED8; }
.pdf-dl-toggle {
  width: 32px; height: 38px; border: none; border-left: 1px solid rgba(255,255,255,.28);
  border-radius: 0 10px 10px 0; background: #2563EB; color: #fff; cursor: pointer; font-size: .7rem;
}
.pdf-dl-toggle:hover { background: #1D4ED8; }
.pdf-dl-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 4px; min-width: 200px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.pdf-dl-dropdown button {
  display: block; width: 100%; border: none; background: transparent; text-align: left;
  padding: 10px 14px; border-radius: 8px; cursor: pointer; font-size: .88rem; color: #0F172A;
}
.pdf-dl-dropdown button:hover { background: #EFF6FF; }

.pdf-main-toolbar {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: thin;
}
.pdf-tb-divider { width: 1px; height: 36px; background: #E5E7EB; margin: 0 6px; flex-shrink: 0; }
.pdf-shape-menu { position: relative; display: flex; align-items: center; }
.pdf-shape-more {
  width: 28px; height: 52px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; cursor: pointer; color: #64748B; font-size: .75rem;
}
.pdf-shape-more:hover { background: #EFF6FF; }
.pdf-shape-dropdown {
  position: absolute; top: 100%; left: 0; z-index: 50; margin-top: 4px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); min-width: 140px;
}
.pdf-shape-dropdown button {
  display: block; width: 100%; border: none; background: transparent; text-align: left;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .88rem;
}
.pdf-shape-dropdown button:hover { background: #EFF6FF; }
.pdf-tool-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; height: 54px; padding: 4px 6px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; cursor: pointer; color: #334155;
  transition: background .12s; flex-shrink: 0;
}
.pdf-tool-card:hover:not(.is-active):not(:disabled) { background: #EFF6FF; }
.pdf-tool-card.is-active { background: #DBEAFE; color: #1D4ED8; border-color: #BFDBFE; }
.pdf-tool-card:disabled { opacity: .4; cursor: not-allowed; }
.pdf-tool-icon { font-size: 1.2rem; line-height: 1; margin-bottom: 3px; }
.pdf-tool-label { font-size: .7rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }

.pdf-context-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 8px 14px; background: #F8FAFC; border-bottom: 1px solid #E5E7EB; min-height: 42px;
}
.pdf-context-idle { margin: 0; color: #64748B; font-size: .88rem; }
.pdf-context-text:not([hidden]), .pdf-context-shape:not([hidden]), .pdf-context-draw:not([hidden]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: 100%;
}
.pdf-context-idle[hidden], .pdf-context-text[hidden], .pdf-context-shape[hidden], .pdf-context-draw[hidden] {
  display: none !important;
}
.pdf-context-bar label { display: flex; align-items: center; gap: 6px; color: #64748B; font-size: .82rem; }
.pdf-context-bar select {
  padding: 5px 8px; border-radius: 8px; border: 1px solid #E5E7EB; background: #fff; color: #0F172A;
}
.pdf-color-label input[type="color"] {
  width: 28px; height: 28px; padding: 0; border: 1px solid #E5E7EB; border-radius: 8px; cursor: pointer;
}
.pdf-prop-style {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #E5E7EB;
  background: #fff; cursor: pointer; font-weight: 700;
}
.pdf-prop-style.is-active { background: #2563EB; color: #fff; border-color: #2563EB; }

.pdf-editor-shell {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0;
  height: min(72vh, 720px);
  min-height: 520px;
  max-height: min(85vh, 900px);
  background: #EEF1F4;
}
/* Keep page thumbnails visible: .tool-page-wide aside { display:none } must not hide this pane */
.tool-page-pdf-editor .pdf-sidebar,
.tool-page-wide .pdf-sidebar {
  display: flex !important;
}
.pdf-sidebar {
  background: #fff; border-right: 1px solid #E5E7EB;
  display: flex; flex-direction: column; padding: 10px 8px;
  min-width: 0;
}
.pdf-manage-pages {
  width: 100%; padding: 10px 8px; margin-bottom: 8px; border-radius: 10px;
  border: 1px solid #E5E7EB; background: #F8FAFC; color: #0F172A;
  font-size: .78rem; font-weight: 700; cursor: pointer;
}
.pdf-manage-pages:hover { background: #EFF6FF; border-color: #BFDBFE; color: #2563EB; }
.pdf-sidebar-btns { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.pdf-sidebar-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid #E5E7EB;
  background: #F8FAFC; cursor: pointer; font-size: .78rem;
}
.pdf-sidebar-btn:hover { background: #EFF6FF; color: #2563EB; }
.pdf-thumbs {
  list-style: none; margin: 0; padding: 4px 2px; overflow: auto; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.pdf-thumb {
  position: relative; border-radius: 8px; padding: 4px; cursor: pointer;
  border: 2px solid transparent; text-align: center;
}
.pdf-thumb.is-active { border-color: #2563EB; background: #EFF6FF; }
.pdf-thumb.is-dragging { opacity: .5; }
.pdf-thumb canvas {
  width: 100%; height: auto; display: block; border-radius: 4px; background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.pdf-thumb span { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; color: #64748B; }
.pdf-thumb.is-active span { color: #2563EB; }

.pdf-workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.pdf-editor-stage {
  position: relative; flex: 1 1 auto; overflow: auto; background: #EEF1F4;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 28px 20px 40px; min-height: 0; width: 100%; box-sizing: border-box;
}
.pdf-stage-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 100%; min-width: 0;
}
.pdf-page-frame {
  background: #fff; border-radius: 2px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  padding: 0; line-height: 0; margin: 0 auto; flex-shrink: 0;
}
.pdf-editor-canvas-wrap { position: relative; display: inline-block; line-height: 0; vertical-align: top; }
.pdf-bg, .pdf-draw-layer { display: block; max-width: none; height: auto; }
.pdf-draw-layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.pdf-object-layer, .pdf-text-layer, .pdf-search-layer { position: absolute; left: 0; top: 0; }
.pdf-text-layer { pointer-events: none; }
.pdf-text-block {
  position: absolute; background: rgba(255,255,255,.88); border: 1px dashed transparent;
  padding: 0 3px; line-height: 1.2; outline: none; color: #172126; pointer-events: none;
  box-sizing: border-box;
}
.pdf-text-block.is-editable,
.pdf-text-block.is-selectable {
  pointer-events: auto; cursor: move; border-color: rgba(37,99,235,.35);
}
.pdf-text-block.is-editable { cursor: text; }
.pdf-text-block.is-selected {
  border-color: #2563EB; background: #fff; box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.pdf-text-block.is-editable:focus {
  border-color: #2563EB; background: #fff; box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.pdf-obj { position: absolute; box-sizing: border-box; cursor: move; }
.pdf-obj.is-selected { outline: 2px solid #2563EB; outline-offset: 1px; }
.pdf-obj-note { border-radius: 6px; overflow: hidden; }
.pdf-obj-highlight { border-radius: 2px; }
.pdf-resize-handle {
  position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px;
  background: #2563EB; border: 2px solid #fff; border-radius: 2px; cursor: nwse-resize;
}
.pdf-shape-preview { position: absolute; pointer-events: none; box-sizing: border-box; }
.pdf-search-hit { position: absolute; background: rgba(255,230,0,.45); pointer-events: none; border-radius: 2px; }

.pdf-sign-dialog {
  border: none; border-radius: 16px; padding: 22px 22px 18px; max-width: 460px;
  box-shadow: 0 16px 48px rgba(15,23,42,.2); position: relative;
}
.pdf-sign-dialog::backdrop { background: rgba(15,23,42,.45); }
.pdf-sign-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: none; border-radius: 8px; background: #F1F5F9; color: #475569;
  font-size: 1rem; cursor: pointer; line-height: 1;
}
.pdf-sign-close:hover { background: #E2E8F0; }
.pdf-sign-dialog h4 { margin: 0 32px 6px 0; }
.pdf-sign-pad {
  display: block; width: 100%; border: 1px solid #E5E7EB; border-radius: 10px;
  background: #fff; touch-action: none; margin: 10px 0;
}
.pdf-sign-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pdf-editor-stage[data-tool="pencil"] .pdf-page-frame,
.pdf-editor-stage[data-tool="highlight"] .pdf-page-frame,
.pdf-editor-stage[data-tool="rect"] .pdf-page-frame,
.pdf-editor-stage[data-tool="ellipse"] .pdf-page-frame,
.pdf-editor-stage[data-tool="line"] .pdf-page-frame,
.pdf-editor-stage[data-tool="arrow"] .pdf-page-frame,
.pdf-editor-stage[data-tool="sign"] .pdf-page-frame,
.pdf-editor-stage[data-tool="add-text"] .pdf-page-frame { cursor: crosshair; }

.tool-mount-pdf-editor .file-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 14px; border: 1px solid #E5E7EB; background: #fff;
}
.tool-mount-pdf-editor .file-card .file-glyph {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: #EFF6FF; color: #2563EB; font-weight: 800; font-size: .72rem;
}
.tool-mount-pdf-editor .file-lang-badge {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: #EFF6FF; color: #2563EB; font-size: .78rem; font-weight: 700;
}
.tool-mount-pdf-editor .file-card .file-ready { font-style: normal; color: #2563EB; font-weight: 600; font-size: .84rem; }

@media (max-width: 900px) {
  .pdf-editor-header { flex-wrap: wrap; }
  .pdf-header-zoom { order: 1; }
  .pdf-header-actions { order: 2; width: 100%; justify-content: flex-end; margin-left: 0; }
  .pdf-main-toolbar { order: 3; width: 100%; }
  .pdf-editor-shell { grid-template-columns: 1fr; }
  .pdf-sidebar { max-height: 130px; border-right: none; border-bottom: 1px solid #E5E7EB; }
  .pdf-thumbs { flex-direction: row; overflow-x: auto; }
  .pdf-thumb { min-width: 64px; }
  .pdf-tool-card { min-width: 50px; height: 48px; }
  .pdf-btn-print { display: none; }
  .pdf-save-status { display: none; }
}

.cs-native input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cs-dev-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; align-items: center; margin: 6px 0; }
.cs-contrast-demo { padding: 16px; border-radius: 12px; font-weight: 700; margin-bottom: 8px; }

@media (max-width: 980px) {
  .cv-split, .cs-layout, .cv-start-grid { grid-template-columns: 1fr; }
  .cv-preview-col { position: static; }
}
