/* IntactPDF — SaaS-doc soft blue (Smallpdf/iLovePDF mood; not WebpKit dark) */
:root {
  --bg: #f4f7fb;
  --bg-card: #ffffff;
  --bg-muted: #e8eef7;
  --bg-tertiary: #eef3fa;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d7e0ec;
  --line-strong: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --danger: #dc2626;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.625rem, 3.8vw, 2.05rem);
  --page-gutter: clamp(1rem, 4vw, 1.75rem);
  --panel-pad-x: clamp(1rem, 3.2vw, 1.5rem);
  --page-max: 72rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--batch-bar-h, 0px) + 0.75rem);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.18);
}

html[lang^="zh"] body { line-height: 1.65; letter-spacing: 0.01em; }

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  padding-bottom: 3rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: var(--page-gutter); top: 0.5rem; }

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  background: var(--bg);
  position: relative;
  z-index: 10;
  flex-wrap: nowrap;
}

.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; flex: 0 0 auto; min-width: 0; }
.brand a { display: flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { display: block; flex: 0 0 auto; flex-shrink: 0; align-self: center; border-radius: 8px; }
.brand-name { display: block; white-space: nowrap; font-size: var(--text-base); letter-spacing: -0.01em; }
.brand small { display: block; font-weight: 500; font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: nowrap;
}
.lang-switch { display: inline-flex; gap: 0.15rem; flex: 0 0 auto; }
.lang-btn { min-width: 44px; min-height: 44px; padding: 0.35rem 0.55rem; }
.lang-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; min-height: 44px; }
.nav-guides {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.55rem;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.nav-guides a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 0.35rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav-guides a:hover { color: var(--accent); }

/* Desktop: single row — brand left, nav + lang right; never show Tools toggle */
@media (min-width: 900px) {
  .topbar { flex-wrap: nowrap; align-items: center; }
  .nav-toggle { display: none !important; }
  .nav-guides {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .top-actions { flex-wrap: nowrap; }
}

/* Tablet/mobile: hamburger only; dropdown when open */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex !important; }
  .nav-guides {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    min-width: 12rem;
    box-shadow: var(--shadow-sm);
    z-index: 20;
  }
  .nav-guides.is-open { display: flex; }
  .nav-guides a { padding: 0.55rem 0.65rem; white-space: normal; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
}

.top-converter { min-height: 44px; text-decoration: none; }
.top-converter-short { display: none; }
@media (max-width: 430px) {
  .topbar--compact { flex-wrap: wrap; }
  .topbar--compact .brand { width: 100%; }
  .topbar--compact .top-actions { width: 100%; justify-content: flex-start; }
  .top-converter-full { display: none; }
  .top-converter-short { display: inline; }
}

/* Hero */
.hero { margin: 0 0 1.1rem; }
.hero h1 {
  margin: 0 0 0.45rem;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lead { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.7; max-width: 38rem; }

/* Panel */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem var(--panel-pad-x) 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Dropzone — SaaS bar */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 200px;
  padding: 1.5rem 1.15rem 1.35rem;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.dropzone.is-drag {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone.is-drag .drop-drag-label { display: block; }
.drop-drag-label {
  display: none;
  position: absolute;
  inset: auto 0 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-size: var(--text-base);
  pointer-events: none;
}
.drop-ico {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.35);
}
.dropzone h2 { margin: 0; font-size: var(--text-lg); font-weight: 650; }
.drop-sub, .drop-hint { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.drop-choose { margin-top: 0.25rem; min-height: 44px; }
.drop-sample {
  margin-top: 0.15rem;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
}
.drop-sample:hover { color: var(--accent); }
.paste-kbd {
  font-family: var(--mono);
  font-size: var(--text-xs);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  background: var(--bg-tertiary);
}

.page-drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}
.page-drop-overlay.is-active { display: flex; }
.page-drop-overlay-inner {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: var(--accent);
  font-weight: 650;
  background: var(--bg-card);
}

.trust-block { margin-top: 0.85rem; }
.trust-line { margin: 0; font-size: var(--text-base); color: var(--muted); }
.trust-line strong { color: var(--ink); }
.trust-proof { margin-top: 0.45rem; font-size: var(--text-sm); color: var(--muted); }
.trust-proof summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); }
.trust-proof ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.trust-proof li { margin: 0.25rem 0; }
.rank-note { margin: 0.5rem 0 0; font-size: var(--text-sm); }

/* Options / diff chrome */
.options-band { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.options-label { margin: 0 0 0.5rem; font-size: var(--text-sm); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.diff-chrome { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.65rem; }
.device-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  padding: 0.15rem 0.65rem;
  font-size: var(--text-sm);
}
.device-chip summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
}
.device-chip summary::-webkit-details-marker { display: none; }
.device-chip-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
  flex: 0 0 auto;
}
.offline-pill {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.35);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.vs-cloud-list { margin: 0.25rem 0 0.55rem; padding-left: 1.25rem; color: var(--muted); font-size: var(--text-sm); }
.session-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-family: var(--mono); font-size: var(--text-sm); color: var(--muted);
  background: var(--bg-tertiary); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
}
.session-clear { min-height: 36px; font-size: var(--text-sm); }

.naming-drawer { margin: 0.5rem 0; font-size: var(--text-sm); }
.naming-drawer summary { cursor: pointer; min-height: 40px; color: var(--muted); }
.naming-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.35rem 0 0.5rem; }
.naming-opt { display: flex; align-items: flex-start; gap: 0.4rem; color: var(--ink); }
.naming-pattern-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.naming-pattern-row input {
  font-size: var(--text-base);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-muted);
  color: var(--ink);
  min-height: 44px;
}
.naming-preview { margin: 0.25rem 0 0; font-family: var(--mono); color: var(--accent); font-size: var(--text-sm); }

.tool-actions { margin-top: 0.35rem; }

/* Controls */
.controls { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.controls-label { margin: 0 0 0.35rem; font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.quality-block { display: flex; flex-direction: column; gap: 0.55rem; }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.preset-chip { min-height: 40px; font-size: var(--text-sm); }
.preset-chip.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 0 auto; /* factory: no flex-grow empty band */
}
.field label { font-size: var(--text-base); color: var(--ink); }
.field .value { font-family: var(--mono); color: var(--accent); }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.format-row label { font-size: var(--text-base); margin-right: 0.25rem; }
.format-row select {
  font-size: var(--text-base);
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-muted);
  color: var(--ink);
}

.opt-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem; /* tight proximity to slider band */
  margin-top: 0.15rem;
}
.opt-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: var(--text-base);
  cursor: pointer;
}
.opt-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.meta-note { margin: 0; font-size: var(--text-sm); color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.actions .btn { min-height: 44px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-muted);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
}
.btn:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: var(--danger); color: var(--danger); background: rgba(248, 113, 113, 0.08); }

/* Progress / status / results */
.progress-wrap {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 232, 180, 0.25);
}
.progress-meta, .progress-file-row {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: var(--text-sm); color: var(--muted); margin-bottom: 0.35rem;
}
.progress-live { color: var(--accent); font-weight: 600; }
.progress-pct { font-family: var(--mono); }
.progress-bar {
  height: 8px; border-radius: 999px; background: var(--bg-tertiary); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .progress-fill, .dropzone, .result-card { transition: none !important; }
}

.status {
  margin-top: 0.65rem;
  min-height: 1.4em;
  font-size: var(--text-base);
  color: var(--muted);
}
.status.is-error { color: var(--danger); }
.status.is-warn { color: #fbbf24; }
.status.is-ok { color: var(--accent); }
body:not(.has-files) .status:empty { display: none; }

.results {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.result-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}
.result-card.is-pending { border-left-color: var(--line-strong); opacity: 0.85; }
.result-card.is-error { border-left-color: var(--danger); }
.result-thumb {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; background: var(--bg-tertiary);
}
.result-thumb.placeholder {
  display: grid; place-items: center; color: var(--muted); font-size: var(--text-xs);
}
.result-meta { min-width: 0; }
.result-name { font-weight: 600; font-size: var(--text-base); margin: 0 0 0.2rem; word-break: break-all; }
.result-size { font-family: var(--mono); font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.result-size .save { color: var(--accent); }
.result-card a.btn, .result-card .btn { min-height: 44px; white-space: nowrap; }

.skipped-box {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--muted);
}
.skipped-title { margin: 0 0 0.35rem; font-weight: 600; color: var(--ink); }
.skipped-box ul { margin: 0; padding-left: 1.1rem; }

.privacy-receipt { margin-top: 0.85rem; font-size: var(--text-sm); }
.privacy-receipt summary { cursor: pointer; min-height: 40px; color: var(--accent); }
.receipt-pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

.batch-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.batch-bar-label { font-family: var(--mono); font-size: var(--text-sm); color: var(--muted); }
.batch-bar-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.share-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* SEO / guides / FAQ — reading ≥16px */
.seo-copy, .faq, .guides, .legal-page, .article {
  margin-top: 2rem;
}
.seo-copy h2, .faq h2, .guides h2, .article h2 {
  font-size: var(--text-lg);
  margin: 0 0 0.65rem;
}
.seo-copy p, .seo-copy li, .faq p, .article p, .article li, .legal-page p, .legal-page li {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted);
}
.seo-copy ol { padding-left: 1.2rem; }
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .guides-grid { grid-template-columns: 1fr 1fr; }
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
}
.guide-card:hover { border-color: var(--accent); }
.guide-card strong { color: var(--ink); font-size: var(--text-base); }
.guide-card span { color: var(--muted); font-size: var(--text-sm); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq details p { margin: 0.35rem 0 0.65rem; }

.crosslink {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  font-size: var(--text-base);
  color: var(--muted);
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-guides, .footer-compare {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; align-items: center;
}
.footer a { min-height: 44px; display: inline-flex; align-items: center; }

.legal-page h1 { font-size: var(--text-xl); margin: 0 0 0.5rem; }
.legal-page h2 { font-size: var(--text-lg); margin: 1.5rem 0 0.5rem; color: var(--ink); }
.legal-page code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-muted);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.article .cta-row { margin: 1.25rem 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

body:not(.has-files) .options-band .naming-drawer,
body:not(.has-files) .options-band .session-clear,
body:not(.has-files) #clearBtn,
body:not(.has-files) #zipBtn { /* idle quiet — buttons stay but disabled via JS */ }

@media (max-width: 420px) {
  .result-card { grid-template-columns: 56px 1fr; }
  .result-card a.btn, .result-card .btn { grid-column: 1 / -1; }
  .result-thumb { width: 56px; height: 56px; }
}


/* Tool card grid (suite hub) */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  min-height: 6.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  color: inherit;
  text-decoration: none;
}
.tool-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tool-card-ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}
.tool-card strong {
  font-size: var(--text-base);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.tool-card span {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* Page list (organize / split) */
.page-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
}
.page-list .page-num {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--muted);
  min-width: 3.5rem;
}
.page-list .page-actions { margin-left: auto; display: flex; gap: 0.25rem; }
.page-list button { min-height: 36px; min-width: 36px; }

.file-chip-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.65rem 0 0; padding: 0; list-style: none;
}
.file-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  max-width: 100%;
}
.file-chip button {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; min-width: 28px; min-height: 28px;
}
.file-chip button:hover { color: var(--danger); }

.tool-panel-title {
  margin: 0 0 0.75rem;
  font-size: var(--text-md);
  font-weight: 650;
}

.password-row {
  display: flex; flex-direction: column; gap: 0.35rem;
  margin-top: 0.65rem;
}
.password-row input {
  font-size: var(--text-base);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--ink);
  min-height: 44px;
}

.range-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end;
}
.range-row .field { flex: 0 0 auto; min-width: 6rem; }
.range-row input[type="number"] {
  width: 5rem;
  font-size: var(--text-base);
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--ink);
  min-height: 44px;
}

.SEO-space { margin-top: 2rem; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}
.guide-card {
  display: block;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
}
.guide-card:hover { border-color: var(--accent); text-decoration: none; color: inherit; }
.guide-card strong { display: block; margin-bottom: 0.25rem; }
.guide-card span { font-size: var(--text-sm); color: var(--muted); }

.sister-links {
  margin: 1.5rem 0 0;
  padding: 0.85rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--muted);
}
.sister-links a { margin-right: 0.75rem; }

.btn-primary { color: #fff !important; }
.btn-primary:hover { color: #fff !important; }

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  width: 100%;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.seo-copy h2 { margin: 1.5rem 0 0.65rem; font-size: var(--text-lg); }
.seo-copy h3 { margin: 1.1rem 0 0.4rem; font-size: var(--text-md); }
.seo-copy p, .seo-copy li { font-size: var(--text-base); line-height: 1.7; color: var(--ink); }
.seo-copy ol { padding-left: 1.25rem; }
.legal-page h1 { font-size: var(--text-xl); margin: 0 0 0.5rem; }
.legal-page h2 { font-size: var(--text-lg); margin: 1.5rem 0 0.5rem; }
.legal-page p, .legal-page li { font-size: var(--text-base); line-height: 1.7; }
.article-page .lead { margin-bottom: 1rem; }
.field.is-disabled { opacity: 0.55; }
.status.is-error { color: var(--danger); }
.status.is-warn { color: #b45309; }
.status.is-ok { color: #15803d; }
.result-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.85rem; margin-top: 0.55rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--bg-card);
}
.result-meta { margin: 0.2rem 0 0; font-size: var(--text-sm); color: var(--muted); font-family: var(--mono); }
.batch-bar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 1rem; padding: 0.75rem 0.85rem;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.batch-bar-actions { display: flex; gap: 0.4rem; }
.privacy-receipt { margin-top: 0.85rem; font-size: var(--text-sm); }
.receipt-pre {
  white-space: pre-wrap; font-family: var(--mono); font-size: var(--text-xs);
  background: var(--bg-muted); padding: 0.65rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); max-height: 12rem; overflow: auto;
}
.meta-note { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.opt-row { display: flex; flex-direction: column; gap: 0.35rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; flex: 0 0 auto; }
.field input[type="range"] { width: 100%; }
select {
  font-size: var(--text-base); min-height: 44px; padding: 0.4rem 0.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--ink);
}
body:not(.has-files) .options-band .naming-drawer,
body:not(.has-files) #sessionClearBtn { }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Full-width multi-column footer (portfolio layout) */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
  width: 100%;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, var(--accent-text, currentColor));
  opacity: 0.95;
}
.footer-copy { margin: 0 0 0.4rem; color: var(--muted); }
.footer-note { margin: 0; color: var(--muted); opacity: 0.85; max-width: 22rem; line-height: 1.45; }
.footer-links,
.cross-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
}
.footer-links a,
.cross-links a { margin: 0; }
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(12rem, 1.4fr) minmax(8rem, 0.9fr) minmax(9rem, 1fr);
    gap: 1.5rem 2rem;
  }
}
