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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-hover: #222633;
  --border: #2e3345;
  --text: #e8eaef;
  --text-muted: #8b92a8;
  --accent: #6c8cff;
  --accent-hover: #8aa4ff;
  --success: #4ade80;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --top-tabs-bg: rgba(15, 17, 23, 0.92);
  --overlay: rgba(0, 0, 0, 0.6);
  --download-text: #0f1117;
}

[data-theme="light"] {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-hover: #eef0f6;
  --border: #d5dae6;
  --text: #1a1d27;
  --text-muted: #5c6378;
  --accent: #4a6cf7;
  --accent-hover: #3558e8;
  --success: #16a34a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --top-tabs-bg: rgba(244, 245, 249, 0.92);
  --overlay: rgba(15, 17, 23, 0.45);
  --download-text: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--top-tabs-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-brand {
  border-bottom: 1px solid var(--border);
}

.site-brand-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-menu-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-hover);
}

.nav-menu-icon {
  width: 18px;
  height: 18px;
}

.nav-menu-icon-close {
  display: none;
}

.site-top.is-menu-open .nav-menu-icon-open {
  display: none;
}

.site-top.is-menu-open .nav-menu-icon-close {
  display: block;
}

.site-logo {
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.site-logo-accent {
  color: var(--accent);
}

.site-logo:hover .site-logo-accent {
  color: var(--accent-hover);
}

.top-tabs {
  background: transparent;
}

.top-tabs-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  padding: 0 1.5rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-tabs-inner::-webkit-scrollbar {
  display: none;
}

.theme-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-hover);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 0 auto;
  justify-content: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border);
}

.tab-btn:hover svg {
  opacity: 1;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(108, 140, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tab-btn.active svg {
  color: var(--accent);
  opacity: 1;
}

.app {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.trust-badges.hidden {
  display: none;
}



.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.drop-icon {
  width: 72px;
  height: 72px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.drop-text {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.drop-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(108, 140, 255, 0.08);
  border: 1px solid rgba(108, 140, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
}

.privacy-note svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: var(--accent-hover);
}

.default-controls {
  margin-top: 1.5rem;
}

.resize-settings,
.pdf-settings,
.watermark-settings {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.watermark-settings-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 1rem;
  align-items: end;
}

.watermark-text-group {
  grid-column: span 1;
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
}

.color-input {
  width: 100%;
  height: 42px;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.file-card-metadata {
  grid-template-columns: 80px 1fr auto;
}

.file-card-pdf {
  grid-template-columns: 28px 80px 1fr auto;
}

.pdf-page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.resize-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resize-settings-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.ratio-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.ratio-lock svg {
  width: 14px;
  height: 14px;
}

.dimension-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dimension-input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
}

.dimension-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.file-card-resize {
  grid-template-columns: 80px 1fr 130px auto;
}

.file-dimensions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.file-dimensions-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.file-dimension-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.file-dimension-input {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
}

.file-dimension-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.control-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  min-width: 160px;
}

select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

select option:disabled {
  color: var(--text-muted);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

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

.file-list-area {
  margin-top: 1.5rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state[hidden] {
  display: none;
}

.empty-illustration {
  width: 120px;
  height: 100px;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.empty-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.file-card {
  display: grid;
  grid-template-columns: 80px 1fr 130px auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.file-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
}

.file-info {
  min-width: 0;
}

.file-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.file-status {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.file-status.pending {
  color: var(--text-muted);
}

.file-status.done {
  color: var(--success);
}

.file-status.error {
  color: #f87171;
}

.file-format {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.file-format-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.file-output-select {
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.file-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-download {
  background: var(--success);
  color: var(--download-text);
}

.btn-download:hover {
  filter: brightness(1.1);
}

.btn-remove {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-remove:hover {
  color: #f87171;
  border-color: #f87171;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 1.25rem;
}

.reassurance {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.reassurance-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.reassurance-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(108, 140, 255, 0.12);
  margin-bottom: 0.85rem;
}

.reassurance-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.reassurance-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.reassurance-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.how-it-works {
  margin-top: 2.5rem;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.step-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.step-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-lead {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.footer-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.stats-banner {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stats-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: background 0.15s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  background: var(--surface-hover);
}

.faq-item p {
  padding: 0.45rem 1.15rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tool-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.tool-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.guide-page {
  padding-bottom: 2rem;
}

.guide-eyebrow {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.guide-section p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.related-tools-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-tools-list a {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.compare-modal[hidden] {
  display: none;
}

.compare-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
}

.compare-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.compare-title {
  font-size: 1.05rem;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.compare-close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.compare-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.compare-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-panel {
  margin: 0;
  min-width: 0;
}

.compare-panel figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.compare-img-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 55vh;
}

.compare-img-wrap img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  display: block;
}

.metadata-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.metadata-modal[hidden] {
  display: none;
}

.metadata-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
}

.metadata-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.metadata-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metadata-loading {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0;
}

.metadata-group-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.metadata-rows {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
}

.metadata-rows dt {
  color: var(--text-muted);
  font-weight: 500;
}

.metadata-rows dd {
  color: var(--text);
  word-break: break-word;
}

.metadata-empty-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
}

.metadata-empty-msg[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .reassurance-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .compare-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .watermark-settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .watermark-text-group {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) {
  .top-tabs-inner {
    padding-top: 0.65rem;
  }
}

@media (max-width: 760px) {
  .site-brand-inner {
    padding: 0.85rem 1.25rem 0.65rem;
  }

  .nav-menu-toggle {
    display: flex;
  }

  .top-tabs {
    position: relative;
  }

  .top-tabs-inner {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    max-width: none;
    margin: 0;
    padding: 0.35rem 1.25rem 0.75rem;
    background: var(--top-tabs-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    overflow: visible;
    gap: 0.2rem;
  }

  .site-top.is-menu-open .top-tabs-inner {
    display: flex;
  }

  .tab-btn {
    flex: none;
    justify-content: flex-start;
    width: 100%;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
  }

  .tab-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 620px) {
  .tab-btn {
    font-size: 0.82rem;
    padding: 0.7rem 1rem;
  }

  .tab-btn svg {
    width: 15px;
    height: 15px;
  }

  .file-card-pdf {
    grid-template-columns: 28px 64px 1fr;
  }

  .file-card-metadata {
    grid-template-columns: 64px 1fr;
  }

  .trust-badges {
    gap: 0.45rem;
  }

  .trust-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }

  .privacy-note {
    font-size: 0.8rem;
  }

  .file-card {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto auto;
  }

  .file-card-resize {
    grid-template-rows: auto auto auto auto;
  }

  .file-format,
  .file-dimensions {
    grid-column: 1 / -1;
  }

  .file-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }

  .file-thumb {
    width: 64px;
    height: 64px;
  }
}