.zunlora-mobile-menu {
  position: fixed;
  inset: 4rem 0 auto;
  z-index: 49;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.98);
  box-shadow: 0 18px 35px -28px rgb(28 25 23 / 0.48);
  backdrop-filter: blur(18px);
}

.zunlora-mobile-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 0 0.875rem;
  color: hsl(var(--foreground));
  font-size: 0.925rem;
  font-weight: 600;
}

.zunlora-mobile-menu a:hover,
.zunlora-mobile-menu a:focus-visible {
  background: hsl(var(--muted));
  outline: none;
}

.zunlora-status {
  margin-top: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--muted) / 0.55);
  padding: 0.75rem 0.875rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  line-height: 1.45;
}

.zunlora-status[data-kind="error"] {
  border-color: rgb(244 63 94 / 0.25);
  background: rgb(255 241 242);
  color: rgb(159 18 57);
}

.zunlora-faq-answer {
  overflow: hidden;
  padding: 0 2rem 1.5rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.7;
}

.zunlora-faq-answer[hidden] {
  display: none;
}

.dark .zunlora-status[data-kind="error"] {
  background: rgb(76 5 25 / 0.35);
  color: rgb(253 164 175);
}

.zunlora-upload-result {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  background: hsl(var(--card));
  box-shadow: 0 24px 70px -38px rgb(28 25 23 / 0.42);
}

.zunlora-result-canvas {
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  background-color: #eceae7;
  background-image:
    linear-gradient(45deg, #d8d5d1 25%, transparent 25%),
    linear-gradient(-45deg, #d8d5d1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d8d5d1 75%),
    linear-gradient(-45deg, transparent 75%, #d8d5d1 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.zunlora-result-canvas canvas {
  display: block;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.zunlora-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.25rem;
}

.zunlora-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 0 1.15rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

.zunlora-action--primary {
  border-color: rgb(5 150 105);
  background: rgb(5 150 105);
  color: white;
}

.zunlora-processing {
  padding: 1.5rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.zunlora-legal-copy h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: 0;
}

.zunlora-legal-copy h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 650;
}

.zunlora-legal-copy p,
.zunlora-legal-copy li {
  margin-top: 0.5rem;
  color: hsl(var(--foreground) / 0.9);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.zunlora-legal-copy ul {
  margin: 0.5rem 0 0 1.25rem;
  list-style: disc;
}

.zunlora-legal-copy a {
  color: rgb(5 150 105);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .zunlora-mobile-menu { display: none; }
}
