html, body {
  margin: 0;
  background: var(--paper, #F5F3EC);
  color: var(--ink, #20242E);
}
.upload-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 28px 12px;
}
.upload-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 28px;
  max-width: 640px;
  margin: 8px auto 28px;
  box-sizing: border-box;
}
.upload-tabs {
  display: flex;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin: 0 0 18px;
}
.upload-tabs .upload-tab {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border: none;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink-faint);
  cursor: pointer;
}
.upload-tabs .upload-tab.active,
.upload-tabs button.active,
.upload-tabs button[aria-selected="true"] {
  background: var(--panel) !important;
  color: var(--ink) !important;
}
.upload-drop {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none'%3E%3Crect x='7' y='4' width='20' height='26' rx='2' stroke='%2320242E' stroke-width='1.7'/%3E%3Cline x1='11' y1='12' x2='23' y2='12' stroke='%2320242E' stroke-width='1.5'/%3E%3Cline x1='11' y1='17' x2='23' y2='17' stroke='%2320242E' stroke-width='1.5'/%3E%3Cline x1='11' y1='22' x2='18' y2='22' stroke='%2320242E' stroke-width='1.5'/%3E%3Cpath d='M24 24L29 29M29 29L29 25M29 29L25 29' stroke='%232C6650' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 22px;
  padding: 64px 24px 34px;
  min-height: 148px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s, background-color 0.15s;
}
.upload-drop:hover,
.upload-drop:focus-within,
.upload-drop.is-hover {
  border-color: var(--verified);
  background-color: var(--verified-bg);
}
.upload-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 64px;
}
.upload-drop-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
}
.upload-drop-sub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 4px;
  pointer-events: none;
}
.text-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
}
.check-line a {
  color: var(--verified);
  text-decoration: underline;
}
.upload-cta .upload-submit,
.upload-cta .btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--verified);
  color: var(--panel);
  -webkit-text-fill-color: var(--panel);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.upload-cta .btn-primary:disabled,
.upload-cta .upload-submit:disabled {
  background: var(--line);
  color: var(--ink-faint);
  -webkit-text-fill-color: var(--ink-faint);
  cursor: not-allowed;
}
.flash {
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.flash-error { background: var(--flag-bg); color: var(--flag); }
.flash-ok { background: var(--verified-bg); color: #1d4a37; }
.flash-info { background: var(--amber-bg); color: #6b4a12; }
.paywall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}
.paywall-col .pack-buy {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.letter-copy {
  width: 100%;
  box-sizing: border-box;
  min-height: 260px;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 8px 0 24px;
}
.compare-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px 28px;
}
.compare-wrap .btn { margin-top: 8px; }
.report-page-back {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.unsub-page {
  max-width: 520px;
  margin: 48px auto;
  padding: 0 16px 80px;
  font-family: var(--serif);
  color: var(--ink);
}
.unsub-page h1 { font-size: 22px; }
.unsub-page p { color: var(--ink-soft); }
@media (max-width: 560px) {
  .upload-section { padding: 8px 16px 12px; }
  .paywall-grid { grid-template-columns: 1fr; }
}
