:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fafafa;
  color: #111;
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}
.header h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
}
.sub { margin: 0 0 16px 0; color: #333; }
.muted { color: #666; }

.panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.label { display: block; font-weight: 600; margin-bottom: 8px; }
textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  resize: vertical;
}

.formats {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.78;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.formats-label {
  font-weight: 600;
  opacity: 0.9;
}

.formats-items {
  opacity: 0.9;
}


.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
button {
  border: 1px solid #ddd;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
#exportJson {
  background: #fff;
  color: #111;
}
.status { color: #444; font-size: 13px; }

.results { margin-top: 16px; display: grid; gap: 12px; }
.card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
}
.card .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.badge {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f2f2;
}
.kv { margin-top: 8px; font-family: ui-monospace, monospace; font-size: 12px; white-space: pre-wrap; }
.warn { color: #8a4b00; margin-top: 8px; font-size: 13px; }
.footer {
  margin-top: 16px;
  padding: 14px 14px 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}


.footer-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.trust-badge {
  font-size: 12px;
  opacity: 0.85;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: rgba(0,0,0,0.02);
  user-select: none;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-badge .shield {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 600;
  letter-spacing: 0.02em;
}


.privacy {
  max-width: 540px;
}

.privacy > summary {
  cursor: pointer;
  font-size: 12px;
  opacity: 0.9;
  list-style: none;
  user-select: none;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
}

.privacy > summary {
  transition: background 0.15s ease, opacity 0.15s ease;
}

.privacy > summary:hover {
  opacity: 1;
  background: rgba(0,0,0,0.04);
}


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

.privacy[open] > summary {
  background: rgba(0,0,0,0.03);
}

.privacy-body {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
  font-size: 12px;
  line-height: 1.45;
}

.privacy-body p {
  margin: 0 0 8px 0;
}

.privacy-body p:last-child {
  margin-bottom: 0;
}

.fineprint {
  opacity: 0.8;
}

.footer-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  opacity: 1;
}

.dot {
  opacity: 0.5;
}

