:root {
  --ink: #102a2a;
  --muted: #607473;
  --line: #d9e5e2;
  --soft: #f0f7f5;
  --green: #146b5c;
  --green-dark: #0c4c42;
  --mint: #dff3ed;
  --cream: #fbfcf8;
  --amber: #a76114;
  --amber-soft: #fff2db;
  --shadow: 0 20px 60px rgba(24, 70, 63, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px 32px;
}
.brand { align-items: center; color: var(--ink); display: inline-flex; font-size: 17px; font-weight: 750; gap: 10px; text-decoration: none; }
.brand-mark { align-items: center; background: var(--green); border-radius: 10px; color: white; display: inline-flex; height: 36px; justify-content: center; width: 36px; }
.privacy-pill { align-items: center; background: #edf6f3; border: 1px solid #d3e7e1; border-radius: 999px; color: var(--green-dark); display: inline-flex; font-size: 12px; font-weight: 700; gap: 7px; padding: 8px 12px; }

.hero {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 680px;
  padding: 54px 32px 86px;
  position: relative;
}
.hero::before { background: radial-gradient(circle, rgba(64, 168, 141, .16), transparent 68%); content: ""; height: 520px; left: -260px; pointer-events: none; position: absolute; top: 20px; width: 520px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { align-items: center; color: var(--green); display: inline-flex; font-size: 12px; font-weight: 800; gap: 7px; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { font-size: clamp(48px, 6vw, 78px); letter-spacing: -.055em; line-height: .98; margin: 24px 0 26px; max-width: 720px; }
.hero h1 span { color: var(--green); }
.hero-copy > p { color: var(--muted); font-size: 18px; line-height: 1.75; margin: 0; max-width: 650px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.trust-row span { align-items: center; color: #315b55; display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; }
.tool-scope-note { align-items: flex-start; background: #f3f8f6; border: 1px solid #dbe9e5; border-radius: 13px; color: #526a66; display: flex; font-size: 12px; gap: 10px; line-height: 1.55; margin-top: 22px; max-width: 650px; padding: 13px 15px; }
.tool-scope-note svg { color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.tool-scope-note strong { color: var(--ink); }

.upload-card { background: rgba(255,255,255,.88); border: 1px solid #dce8e5; border-radius: 26px; box-shadow: var(--shadow); padding: 28px; position: relative; }
.card-heading, .review-header { align-items: flex-start; display: flex; justify-content: space-between; }
.card-heading svg { color: var(--green); }
.step-label { color: var(--green); display: block; font-size: 11px; font-weight: 850; letter-spacing: .15em; margin-bottom: 7px; text-transform: uppercase; }
.card-heading h2, .review-header h2 { font-size: 24px; letter-spacing: -.03em; margin: 0; }
.dropzone-stack { display: grid; gap: 12px; margin: 24px 0 18px; }
.dropzone { align-items: center; background: #f9fcfb; border: 1px dashed #bfd5cf; border-radius: 15px; cursor: pointer; display: grid; gap: 13px; grid-template-columns: auto 1fr auto; min-height: 82px; padding: 15px; transition: .18s ease; }
.dropzone:hover, .dropzone.is-dragging { background: var(--mint); border-color: var(--green); transform: translateY(-1px); }
.dropzone.has-file { background: #eff8f5; border-style: solid; }
.dropzone input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.dropzone-icon { align-items: center; background: white; border: 1px solid #d8e7e3; border-radius: 12px; color: var(--green); display: inline-flex; height: 46px; justify-content: center; width: 46px; }
.dropzone.has-file .dropzone-icon { background: var(--green); color: white; }
.dropzone-copy { display: grid; gap: 5px; min-width: 0; }
.dropzone-copy strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-copy small { color: var(--muted); font-size: 12px; }
.dropzone-action { color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.primary-button, .download-button { align-items: center; border: 0; border-radius: 12px; cursor: pointer; display: inline-flex; font-weight: 800; gap: 9px; justify-content: center; transition: .18s ease; }
.primary-button { background: var(--green); color: white; font-size: 14px; min-height: 50px; width: 100%; }
.primary-button:hover:not(:disabled), .download-button:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled, .download-button:disabled { cursor: not-allowed; opacity: .5; }
.privacy-note { color: #778b88; font-size: 11px; margin: 12px 0 0; text-align: center; }
.inline-error { align-items: flex-start; background: #fff0ef; border: 1px solid #f2cfcc; border-radius: 11px; color: #9c362f; display: flex; font-size: 12px; gap: 8px; line-height: 1.5; margin: 0 0 14px; padding: 11px 12px; }
.inline-error svg { flex: 0 0 auto; margin-top: 1px; }
.inline-error.wide { margin: 18px 0; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.how-it-works { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: 1176px; }
.how-it-works article { display: grid; gap: 16px; grid-template-columns: auto 1fr; padding: 29px 34px; }
.how-it-works article + article { border-left: 1px solid var(--line); }
.how-it-works article > span { color: #8ba29e; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding-top: 2px; }
.how-it-works strong { display: block; font-size: 14px; margin-bottom: 6px; }
.how-it-works p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }

.review-section { margin: 0 auto; max-width: 1240px; padding: 100px 32px 80px; scroll-margin-top: 20px; }
.review-header { gap: 28px; }
.review-header h2 { font-size: 34px; }
.review-header p { color: var(--muted); font-size: 14px; margin: 9px 0 0; }
.download-button { background: var(--green); color: white; font-size: 13px; min-height: 46px; padding: 0 18px; white-space: nowrap; }
.summary-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin: 30px 0 22px; }
.summary-card { background: white; border: 1px solid var(--line); border-radius: 15px; display: grid; min-height: 130px; padding: 18px; }
.summary-card span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.summary-card strong { font-size: 34px; letter-spacing: -.04em; margin-top: 5px; }
.summary-card small { align-self: end; color: #778986; font-size: 11px; }
.summary-card.success strong { color: var(--green); }
.summary-card.warning strong { color: var(--amber); }
.summary-card.review strong { color: #6f58a8; }

.table-card { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(30, 70, 65, .06); overflow: hidden; }
.table-tools { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; padding: 14px; }
.search-field { align-items: center; background: #f7faf9; border: 1px solid var(--line); border-radius: 9px; display: flex; gap: 8px; padding: 0 11px; width: 280px; }
.search-field svg { color: #78918d; }
.search-field input { background: transparent; border: 0; color: var(--ink); height: 38px; outline: 0; width: 100%; }
.table-tools select, tbody select { background: #f7faf9; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); outline: none; }
.table-tools select { height: 40px; padding: 0 34px 0 11px; }
.result-count { color: var(--muted); font-size: 11px; margin-left: auto; }
.table-scroll { max-height: 640px; overflow: auto; }
table { border-collapse: collapse; min-width: 930px; width: 100%; }
th { background: #f5f9f8; color: #667d79; font-size: 10px; letter-spacing: .08em; padding: 12px 16px; position: sticky; text-align: left; text-transform: uppercase; top: 0; z-index: 2; }
td { border-top: 1px solid #edf1f0; font-size: 12px; padding: 12px 16px; vertical-align: middle; }
td:first-child { min-width: 210px; }
td:nth-child(2) { min-width: 310px; }
td strong { display: block; font-size: 12px; }
td small { color: #81908e; display: block; font-size: 10px; margin-top: 4px; }
tbody select { font-size: 11px; height: 35px; max-width: 290px; padding: 0 28px 0 9px; width: 100%; }
.time-cell { color: #234c46; font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.status-badge { border-radius: 999px; display: inline-flex; font-size: 10px; font-weight: 800; padding: 6px 9px; white-space: nowrap; }
.status-badge.matched { background: var(--mint); color: var(--green-dark); }
.status-badge.incomplete { background: var(--amber-soft); color: #8e4c08; }
.status-badge.unmatched { background: #f0f2f2; color: #697775; }
.status-badge.ambiguous { background: #eee9fb; color: #644a9e; }

.cleaner-section { margin: 0 auto; max-width: 1240px; padding: 28px 32px 90px; }
.cleaner-card { margin-top: 20px; max-width: none; }
.cleaner-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cleaner-actions > span { align-items: center; color: #166534; display: inline-flex; font-weight: 800; gap: 8px; margin-right: auto; }

footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 0 auto; max-width: 1176px; padding: 30px 0 44px; }
footer p { color: var(--muted); font-size: 12px; }
footer .brand { font-size: 14px; }
footer .brand-mark { border-radius: 8px; height: 30px; width: 30px; }

@media (max-width: 960px) {
  .hero { gap: 42px; grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { max-width: 760px; }
  .upload-card { max-width: 700px; width: 100%; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .site-header { padding: 18px 20px; }
  .privacy-pill { font-size: 0; padding: 9px; }
  .hero { min-height: auto; padding: 52px 20px 65px; }
  .hero h1 { font-size: 46px; }
  .hero-copy > p { font-size: 16px; }
  .upload-card { border-radius: 20px; padding: 20px; }
  .dropzone { grid-template-columns: auto 1fr; }
  .dropzone-action { display: none; }
  .how-it-works { grid-template-columns: 1fr; margin: 0 20px; }
  .how-it-works article + article { border-left: 0; border-top: 1px solid var(--line); }
  .review-section { padding: 70px 20px; }
  .cleaner-section { padding: 20px 20px 70px; }
  .review-header { align-items: stretch; flex-direction: column; }
  .download-button { width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .table-tools { align-items: stretch; flex-wrap: wrap; }
  .search-field { width: 100%; }
  .table-tools select { flex: 1; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; margin: 0 20px; }
}
@media (max-width: 450px) {
  .hero h1 { font-size: 40px; }
  .summary-grid { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* v2 static rebuild additions. Everything above is the original CSS.    */
/* ===================================================================== */
[hidden] { display: none !important; }
a { color: var(--green); }
:focus-visible { outline: 3px solid rgba(20, 107, 92, .45); outline-offset: 2px; }
.dropzone:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 107, 92, .18); }
.inline-error.noscript { display: block; margin: 0 auto 8px; max-width: 1176px; width: calc(100% - 64px); }

/* Review actions: main download + secondary match report */
.review-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.secondary-button { align-items: center; background: white; border: 1px solid #bfd5cf; border-radius: 12px; color: var(--green-dark); cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 800; gap: 8px; min-height: 46px; padding: 0 16px; transition: .18s ease; white-space: nowrap; }
.secondary-button:hover { background: var(--mint); border-color: var(--green); }

/* Summary cards double as filters */
button.summary-card { color: inherit; cursor: pointer; font: inherit; text-align: left; transition: .18s ease; width: 100%; }
button.summary-card:hover { border-color: #b9d3cc; transform: translateY(-1px); }
button.summary-card.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 107, 92, .14); }

/* Notices (multi-date PDF, duplicate selections) */
.notice { align-items: flex-start; border-radius: 14px; display: flex; font-size: 13px; gap: 12px; line-height: 1.55; margin: 22px 0 0; padding: 14px 16px; }
.notice > svg { flex: 0 0 auto; margin-top: 2px; }
.notice p { margin: 4px 0 10px; }
.notice small { color: #8a5a1c; display: block; font-size: 11px; margin-top: 8px; }
.notice.warning { background: var(--amber-soft); border: 1px solid #f1d6a6; color: #6d3f07; }
.notice.warning > svg { color: var(--amber); }
.date-picker { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 10px; font-weight: 800; }
.date-picker select { background: white; border: 1px solid #e3c48d; border-radius: 9px; color: var(--ink); height: 40px; padding: 0 12px; }
#dupe-notice { margin: 0 0 18px; }
#dupe-notice p { margin-bottom: 0; }

/* Table extras */
.warn-text { color: #8e4c08 !important; font-weight: 700; }
tr.is-duplicate td { background: #fffaf0; }
.empty-rows { color: var(--muted); font-size: 13px; margin: 0; padding: 28px 16px; text-align: center; }

/* PDF employees with no itinerary row */
.extra-panel { background: white; border: 1px solid var(--line); border-radius: 18px; margin-top: 18px; padding: 0; }
.extra-panel summary { align-items: center; cursor: pointer; display: flex; font-size: 14px; font-weight: 800; gap: 10px; list-style: none; padding: 16px 18px; }
.extra-panel summary::-webkit-details-marker { display: none; }
.extra-panel summary svg { color: var(--green); }
.extra-panel summary::after { color: var(--muted); content: "Show"; font-size: 11px; font-weight: 800; margin-left: auto; }
.extra-panel[open] summary::after { content: "Hide"; }
.extra-panel > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; padding: 0 18px 12px; }
.person-list { list-style: none; margin: 0; padding: 0 0 6px; }
.person-list li { align-items: center; border-top: 1px solid #edf1f0; display: grid; font-size: 12px; gap: 12px; grid-template-columns: minmax(160px, 1.4fr) minmax(90px, .8fr) minmax(140px, 1fr) auto; padding: 10px 18px; }
.person-list .muted { color: var(--muted); }

footer .version { color: #8ba29e; margin-left: 6px; white-space: nowrap; }
footer a { font-weight: 700; margin-left: 6px; }

@media (max-width: 700px) {
  .review-actions { flex-direction: column; align-items: stretch; }
  .secondary-button { justify-content: center; width: 100%; }
  .person-list li { grid-template-columns: 1fr auto; }
  .inline-error.noscript { width: calc(100% - 40px); }
}
@media print {
  .site-header, .hero, .how-it-works, .cleaner-section, .review-actions, .table-tools, footer { display: none !important; }
  .table-scroll { max-height: none; overflow: visible; }
}
.cleaner-card > .primary-button, .cleaner-card > .inline-error { margin-top: 14px; }
.cleaner-card > .inline-error { margin-bottom: 0; }
