:root {
  color-scheme: light;
  --ink: #17211a;
  --muted: #647067;
  --line: #dfe7dd;
  --panel: rgba(255,255,255,.86);
  --green: #274f2e;
  --green-2: #3f7d47;
  --gold: #d5a849;
  --cream: #f7f3e8;
  --wash: #edf6ec;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(213,168,73,.25), transparent 32rem),
    radial-gradient(circle at top right, rgba(63,125,71,.18), transparent 34rem),
    linear-gradient(180deg, #fbfaf4 0%, #eef6ec 100%);
  color: var(--ink);
}
button, select, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 56px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 34px;
  border: 1px solid rgba(39,79,46,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 24px 70px rgba(36,53,36,.08);
  backdrop-filter: blur(16px);
}
.eyebrow { margin: 0 0 9px; color: var(--green-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(36px, 7vw, 74px); line-height: .94; letter-spacing: 0; }
h2 { margin: 0; font-size: 24px; letter-spacing: 0; }
.sub { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.privacy { border: 1px solid rgba(63,125,71,.24); border-radius: 16px; padding: 18px; background: #f8fff5; }
.privacy strong, .privacy span { display: block; }
.privacy span { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.drop-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  border: 1px dashed rgba(39,79,46,.38);
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  cursor: pointer;
  transition: .18s ease;
}
.drop-card:hover { transform: translateY(-2px); border-color: var(--green-2); box-shadow: 0 18px 38px rgba(36,53,36,.09); }
.drop-card input { position: absolute; opacity: 0; pointer-events: none; }
.label { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--green); background: #e6f3e4; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.drop-card strong { display: block; margin-top: 30px; font-size: 24px; }
.drop-card small { display: block; margin-top: 10px; color: var(--muted); line-height: 1.5; }
.mapping-panel, .results {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(39,79,46,.16);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(36,53,36,.08);
}
.mapping-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.mapping-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 10px;
}
.primary, .secondary, .tab {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.primary { margin-top: 16px; padding: 13px 18px; color: white; background: var(--green); }
.secondary { padding: 10px 13px; color: var(--green); background: #eef7ec; border: 1px solid #d7e8d4; }
.metric-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; }
.metric-grid article { padding: 16px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.metric-grid span { display: block; min-height: 34px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-grid strong { display: block; margin-top: 8px; font-size: 24px; }
.actions, .tab-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.table-section, .tabs { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--muted); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf1ec; text-align: left; font-size: 14px; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; background: #f7fbf5; color: #435046; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.tab { padding: 10px 13px; color: var(--muted); background: transparent; border: 1px solid transparent; }
.tab.active { color: var(--green); background: white; border-color: var(--line); }
@media (max-width: 920px) {
  .hero, .upload-grid, .mapping-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 16px; }
  .hero, .mapping-panel, .results { padding: 18px; border-radius: 16px; }
  .metric-grid { grid-template-columns: 1fr; }
}

