:root {
  color-scheme: light;
  --ink: #172b4d;
  --muted: #5d6b82;
  --line: #dbe5f1;
  --soft: #f7fafc;
  --accent: #635bff;
  --accent-dark: #4038d6;
  --green: #2f9e18;
  --green-bg: #dcffc7;
  --shadow: 0 18px 45px rgba(18, 34, 64, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.1), rgba(0, 163, 224, 0.08)),
    #f4f7fb;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0;
}

.panel,
.report-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 229, 241, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  font-size: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
}

.brand p {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

.account {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.account h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

dt {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

dd {
  margin: 2px 0 0;
  line-height: 1.35;
}

.dropzone {
  min-height: 170px;
  margin-top: 22px;
  border: 1.5px dashed #a8b7ce;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--accent);
  background: #f8f7ff;
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 54px;
  height: 38px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #0a2540;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.dropzone small,
.status {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 7px;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 750;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary {
  color: var(--ink);
  background: #edf2f7;
}

.status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #167a2f;
}

.preview {
  min-width: 0;
}

.report-card {
  overflow: hidden;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.report-head strong,
.report-head span {
  display: block;
}

.stripe-logo {
  display: block;
  width: 72px;
  height: auto;
  margin-bottom: 10px;
}

.report-head span {
  color: var(--muted);
  margin-top: 4px;
}

.stamp {
  color: var(--accent);
  font-weight: 800;
  border: 1px solid #c9c5ff;
  border-radius: 999px;
  padding: 5px 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 11px 16px;
  border-bottom: 1px solid #e5edf6;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #0a2540;
  font-size: 12px;
}

.ok {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #68d144;
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
}

.card-icon,
.boleto-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 18px;
  border-radius: 3px;
  margin-right: 6px;
  color: #fff;
  background: #1238d6;
  font-size: 10px;
  vertical-align: middle;
}

.boleto-icon {
  background: #e6edf5;
  color: #111827;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .preview {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 22px;
  }

  .panel {
    padding: 18px;
  }

  .brand {
    display: block;
  }

  .brand-mark {
    margin-bottom: 12px;
  }

  h1 {
    font-size: 23px;
  }

  .actions {
    flex-direction: column;
  }
}
