:root {
  color-scheme:light;
  --ink:#182e29;
  --muted:#516860;
  --line:#cad8d1;
  --green:#124f45;
  --paper:#f8faf6;
  --white:#fff;
  --mint:#e2f1df;
  font:16px/1.5 "Inter","Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
}

button,select,input {
  font:inherit;
  color:inherit;
}

button,a,input,select,summary {
  touch-action:manipulation;
}

button,select,summary {
  cursor:pointer;
}

button:disabled {
  opacity:.48;
  cursor:default;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.filepick:focus-within {
  outline:3px solid #23876c;
  outline-offset:3px;
}

header {
  background:var(--green);
  color:#f1faee;
}

.bar,main,footer {
  width:min(1112px,calc(100% - 64px));
  margin:auto;
}

.bar {
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:-.4px;
}

.mark {
  display:grid;
  gap:3px;
  width:27px;
  padding:4px 0;
}

.mark i {
  background:#c4ec9d;
  height:3px;
  display:block;
}

.mark i:first-child {
  width:70%;
}

.mark i:last-child {
  width:70%;
  justify-self:end;
}

nav {
  display:flex;
  gap:24px;
}

nav a {
  font-size:.875rem;
  text-underline-offset:4px;
}

.intro {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  align-items:end;
  gap:36px;
  padding:46px 0 32px;
}

.intro h1 {
  font-family:"Iowan Old Style","Baskerville",Georgia,serif;
  font-weight:500;
  line-height:.98;
  letter-spacing:-.055em;
  font-size:clamp(3rem,6vw,5.25rem);
  margin:0;
}

.lead {
  max-width:410px;
  padding-bottom:3px;
}

.lead p {
  font-size:1.15rem;
  line-height:1.5;
  margin:0 0 9px;
}

.privacy,.context,.feedback,.pager,small,footer,.actions {
  color:var(--muted);
}

.privacy {
  font-size:.875rem;
}

.panel {
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--white);
  margin-bottom:20px;
}

.inputs,.report {
  padding:23px 26px;
}

.sectionhead,.actions,.pager {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.sectionhead {
  margin-bottom:18px;
}

h2,h3,p {
  margin:0;
}

h2 {
  font-size:1.45rem;
  line-height:1.2;
  letter-spacing:-.045em;
}

h3 {
  font-size:.98rem;
  margin-bottom:8px;
  letter-spacing:-.02em;
}

.link {
  border:0;
  background:transparent;
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:4px;
  padding:4px 0;
  font-size:.9rem;
  font-weight:600;
}

.pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.filecard {
  min-width:0;
}

.filepick {
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 16px;
  position:relative;
  border:1px dashed #98b5a6;
  border-radius:7px;
  background:#f6faf4;
  cursor:pointer;
}

.filepick:hover {
  background:#eaf3e7;
}

.filepick input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.filepick strong,.filepick small {
  display:block;
  word-break:break-word;
}

.filepick small {
  font-size:.8rem;
}

.file-icon {
  font:700 .72rem/1 monospace;
  color:var(--green);
  padding:12px 5px;
  border:1px solid #94af9e;
  background:white;
  border-radius:3px;
}

.mapping {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:9px;
}

.mapping:empty {
  display:none;
}

.mapping label {
  flex:1 1 85px;
  min-width:0;
  color:var(--muted);
  font-size:.825rem;
}

.mapping select {
  margin-top:3px;
  width:100%;
}

select,input[type=search] {
  background:#fff;
  border:1px solid var(--line);
  border-radius:5px;
  padding:.38rem .55rem;
  font-size:.9rem;
}

select {
  appearance:none;
  padding-right:1.8rem;
  background-image:linear-gradient(45deg, transparent 50%, #50675c 50%),linear-gradient(135deg,#50675c 50%,transparent 50%);
  background-position:calc(100% - 13px) 52%,calc(100% - 9px) 52%;
  background-size:4px 4px;
  background-repeat:no-repeat;
}

.feedback {
  font-size:.9rem;
  margin-top:10px;
}

.feedback:empty {
  display:none;
}

.context {
  font-size:.82rem;
  margin-bottom:3px;
}

.solid,.pilotbtn {
  border:1px solid var(--green);
  background:var(--green);
  color:white;
  border-radius:6px;
  padding:.56rem .85rem;
  font-size:.9rem;
  font-weight:600;
  text-decoration:none;
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  border-radius:8px;
  background:#f4f8f1;
}

.metric {
  padding:13px 16px;
  display:flex;
  flex-direction:column;
}

.metric+.metric {
  border-left:1px solid var(--line);
}

.metric strong {
  font-family:Georgia,serif;
  font-weight:500;
  font-size:1.8rem;
  letter-spacing:-.04em;
  line-height:1.12;
}

.metric span {
  color:var(--muted);
  font-size:.84rem;
}

.actions {
  margin:17px 0 10px;
}

.actions label {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:.875rem;
}

.actions input {
  max-width:165px;
}

.scroller {
  overflow:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  font-size:.9rem;
}

th,td {
  text-align:left;
  border-bottom:1px solid #e1e9e3;
  padding:10px 8px;
  vertical-align:top;
}

th {
  font-size:.82rem;
  color:var(--muted);
  font-weight:600;
  background:#f6f8f4;
  white-space:nowrap;
}

td:first-child {
  font:600 .88rem/1.6 ui-monospace,monospace;
}

td:nth-child(n+3):nth-child(-n+6) {
  font-variant-numeric:tabular-nums;
}

td:last-child {
  font-size:.82rem;
  max-width:270px;
  overflow-wrap:anywhere;
}

.status {
  border-radius:4px;
  padding:3px 6px;
  background:#eef1ee;
  white-space:nowrap;
  font-size:.82rem;
}

.changed {
  background:#e3f0f9;
  color:#225171;
}

.added {
  background:var(--mint);
  color:#315d35;
}

.removed,.review {
  color:#824c1d;
  background:#f9eed7;
}

.pager {
  font-size:.82rem;
  margin-top:12px;
}

.pager button {
  background:white;
  border:1px solid var(--line);
  border-radius:4px;
  padding:4px 10px;
  margin-left:6px;
}

.guide {
  padding:16px 22px;
}

.guide p {
  max-width:78ch;
  margin-top:.65rem;
}

.guide summary {
  font-weight:650;
}

.pilot {
  background:var(--green);
  color:#f7f9ee;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:28px;
  border-radius:12px;
}

.pilot p {
  max-width:65ch;
  margin-top:7px;
  color:#e0ece2;
}

.pilotbtn {
  white-space:nowrap;
  color:var(--green);
  background:#def0c6;
}

.visually {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}

footer {
  font-size:.85rem;
  padding:22px 0 32px;
  display:flex;
  justify-content:space-between;
}

[hidden] {
  display:none!important;
}

@media(max-width:700px) {
  .bar,main,footer {
    width:calc(100% - 32px);
  }
  .bar {
    height:56px;
  }
  nav {
    gap:12px;
  }
  nav a {
    font-size:.79rem;
  }
  .intro {
    display:block;
    padding:27px 0 22px;
  }
  .intro h1 br {
    display:none;
  }
  .lead {
    margin-top:12px;
  }
  .lead p {
    font-size:1rem;
  }
  .pair {
    grid-template-columns:1fr;
    gap:16px;
  }
  .inputs,.report {
    padding:16px;
  }
  .metrics {
    grid-template-columns:repeat(2,1fr);
  }
  .metric:nth-child(3) {
    border-left:0;
  }
  .metric:nth-child(n+3) {
    border-top:1px solid var(--line);
  }
  .pilot {
    display:block;
    padding:20px;
  }
  .pilotbtn {
    display:inline-block;
    margin-top:14px;
  }
  .actions {
    gap:6px;
  }
  .actions input {
    max-width:120px;
  }
  h2 {
    font-size:1.25rem;
  }
  .brand {
    font-size:.9rem;
  }
}

.worksheet .inputs p {
  max-width:70ch;
  margin:14px 0 18px;
}

.worksheet .inputs a {
  display:inline-block;
}

.worksheet {
  min-height:65vh;
}

/* Purchasing workspace. The worksheet keeps its existing print and reading layout. */
.product {
  --ink:#192c24;
  --muted:#52655a;
  --line:#ced7cb;
  --green:#184936;
  background:#f3f4ed;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.product .skip {
  position:fixed;
  top:-5rem;
  left:1rem;
  z-index:4;
  background:white;
  padding:.5rem;
}

.product .skip:focus {
  top:.5rem;
}

.product .mastbar {
  background:#163d32;
}

.mastbar>div {
  max-width:1540px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 clamp(1rem,3vw,3rem);
  height:60px;
}

.local-indicator {
  font-size:.82rem;
  color:#e0efdd;
}

.local-indicator::before {
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d0eba4;
  margin-right:8px;
}

.desk {
  display:grid;
  grid-template-columns:clamp(200px,20vw,276px) minmax(0,1fr);
  max-width:1540px;
  margin:auto;
  min-height:calc(100vh - 60px);
}

.shelf {
  min-width:0;
  background:#ebeee3;
  border-right:1px solid var(--line);
  padding:32px clamp(12px,1.8vw,27px);
}

.shelf-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
}

.shelf h2 {
  font-weight:650;
  line-height:1.2;
  font-size:1rem;
  letter-spacing:-.03em;
}

.secondary,.backup-import {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.3;
  background:#fff;
  border:1px solid #b8c5b7;
  color:var(--green);
  font-weight:600;
  font-size:.88rem;
  border-radius:5px;
  padding:.57rem .8rem;
  cursor:pointer;
}

.secondary:hover,.backup-import:hover {
  background:#edf4e8;
}

.secondary.small {
  padding:.36rem .6rem;
  font-size:.78rem;
}

.project-list {
  display:grid;
  gap:4px;
  margin:1rem 0;
}

.project-list button {
  display:block;
  width:100%;
  text-align:left;
  overflow-wrap:anywhere;
  line-height:1.3;
  padding:.64rem .75rem;
  border:1px solid transparent;
  border-radius:5px;
  background:none;
  color:var(--ink);
  font-size:.9rem;
}

.project-list button:hover {
  background:#e0e8da;
}

.project-list button[aria-current] {
  background:#d7e2cf;
  border-color:#bdcdb6;
  font-weight:650;
}

.project-list button::before {
  content:"";
  display:inline-block;
  width:.62rem;
  height:.62rem;
  margin-right:.55rem;
  border-radius:2px;
  border:1.5px solid #648470;
}

.shelf-hint,.handoff p {
  font-size:.83rem;
  line-height:1.5;
  color:var(--muted);
}

.handoff {
  border-top:1px solid #cbd5c6;
  margin-top:1.15rem;
  padding-top:1rem;
}

.handoff summary {
  font-size:.9rem;
  font-weight:600;
}

.handoff p {
  margin:.55rem 0;
}

.handoff .secondary,.backup-import {
  font-size:.78rem;
  margin:.2rem .15rem .2rem 0;
}

.backup-import {
  position:relative;
}

.backup-import input {
  inset:0;
  position:absolute;
  opacity:0;
  width:100%;
  cursor:pointer;
}

.backup-import:focus-within {
  outline:3px solid #23876c;
  outline-offset:2px;
}

.shelf-hint:not(:empty) {
  margin-top:.7rem;
}

main.work {
  width:100%;
  min-width:0;
  max-width:1240px;
  margin:0;
  padding:clamp(22px,3.5vw,50px) clamp(16px,3.8vw,60px) 24px;
}

.eyebrow {
  font-size:.78rem;
  font-weight:620;
  letter-spacing:.04em;
  color:var(--muted);
}

.work h1 {
  font:500 clamp(2.2rem,4.5vw,4.3rem)/1.07 "Baskerville","Iowan Old Style",Georgia,serif;
  letter-spacing:-.055em;
  margin:.35rem 0 .55rem;
  overflow-wrap:anywhere;
}

.work-description,.muted {
  color:var(--muted);
}

.work-description {
  font-size:.97rem;
}

.workspace-nav {
  display:flex;
  align-items:stretch;
  gap:clamp(.75rem,2vw,1.7rem);
  border-bottom:1px solid #becab9;
  margin:1.4rem 0;
  background:none;
}

.workspace-nav button {
  padding:.6rem 0 .72rem;
  white-space:nowrap;
  background:none;
  border:0;
  border-bottom:3px solid transparent;
  color:var(--muted);
  font-size:.9rem;
  font-weight:560;
}

.workspace-nav button[aria-current] {
  color:var(--green);
  border-color:var(--green);
  font-weight:700;
}

.workspace-nav button span:not(:empty) {
  display:inline-block;
  min-width:1.2rem;
  padding:.05rem .27rem;
  margin-left:.15rem;
  background:#e1e8db;
  border-radius:4px;
  color:var(--green);
  font-size:.74rem;
}

.workspace-status:not(:empty) {
  border-left:3px solid #689a6f;
  background:#e7f0e0;
  padding:.6rem .8rem;
  margin-bottom:1rem;
  font-size:.9rem;
  overflow-wrap:anywhere;
}

.workspace-status.error {
  border-color:#ae563b;
  background:#fbede3;
  color:#733c26;
}

.product .panel {
  border-radius:9px;
  border-color:var(--line);
  margin-bottom:1rem;
}

.upload-panel,.history-panel,.empty-panel,.product .report {
  padding:clamp(16px,2.2vw,30px);
}

.product .sectionhead h2,.empty-panel h2 {
  font-size:1.42rem;
}

.product .muted,.empty-panel p {
  font-size:.88rem;
  margin-top:.3rem;
}

.product .sectionhead {
  align-items:flex-start;
}

.product .pair {
  gap:1rem;
}

.product .filepick {
  padding:16px 14px;
  background:#f6f8f1;
  border-color:#aac1a6;
}

.product .filepick:hover {
  background:#eef4e5;
}

.product .pair h3 {
  font-size:.88rem;
}

.product .file-icon {
  background:#fff;
  color:#345848;
  border-color:#bacab7;
}

.button-group {
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}

.product .solid:hover {
  background:#265f47;
}

.product .report {
  background:#fff;
}

.purchase-summary {
  display:grid;
  grid-template-columns:minmax(190px,1.15fr) minmax(0,2fr);
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
}

.impact-block {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:14px 17px;
  background:#204c3c;
  color:#f5f6e9;
  overflow-wrap:anywhere;
}

.impact-block>span {
  font-size:.84rem;
  color:#e2eacd;
}

.impact-block strong {
  font:500 clamp(1.55rem,3.2vw,2.6rem)/1.25 Georgia,serif;
  letter-spacing:-.045em;
}

.impact-block small {
  color:#e1e8db;
  font-size:.72rem;
}

.purchase-summary .metrics {
  border:0;
  border-radius:0;
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:#f1f4e9;
}

.purchase-summary .metric {
  justify-content:center;
  padding:12px;
}

.purchase-summary .metric strong {
  font-size:1.65rem;
}

.coverage-note {
  font-size:.82rem;
  color:var(--muted);
  margin:.65rem 0;
  line-height:1.5;
}

.audit-note {
  display:block;
  color:#75522a;
  font-weight:400;
  font:400 .77rem/1.4 Inter,Arial,sans-serif;
  margin-top:.25rem;
  max-width:23rem;
}

.product .scroller {
  max-width:100%;
}

.product .report table {
  min-width:630px;
}

.product .report .actions {
  gap:.7rem;
  flex-wrap:wrap;
}

.review-mark {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--green);
  font-size:.82rem;
  cursor:pointer;
}

.review-mark input {
  margin:0;
  width:1rem;
  height:1rem;
  accent-color:var(--green);
}

.history-list-item {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  text-align:left;
  border:0;
  border-top:1px solid var(--line);
  background:none;
  padding:.8rem .16rem;
}

.history-list-item:hover {
  background:#f4f7ef;
}

.history-list-item strong,.history-list-item small {
  display:block;
  overflow-wrap:anywhere;
}

.history-list-item strong {
  font-size:.93rem;
}

.history-list-item small {
  font-size:.8rem;
  margin-top:.2rem;
}

.history-list-item::after {
  content:"›";
  font-size:1.3rem;
  color:#46745a;
}

.empty-panel p,.empty-line {
  color:var(--muted);
  font-size:.9rem;
}

.utilities {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.6rem 1.5rem;
  font-size:.82rem;
  margin-top:1rem;
  color:var(--muted);
}

.product dialog {
  color:var(--ink);
  border:1px solid #bac9bb;
  border-radius:9px;
  width:min(420px,calc(100% - 2rem));
  padding:1.4rem;
  background:white;
}

.product dialog::backdrop {
  background:rgba(14,32,26,.43);
}

.product dialog form>label {
  display:block;
  margin:1rem 0;
  font-size:.9rem;
  font-weight:600;
}

.product dialog input {
  display:block;
  width:100%;
  border:1px solid #a8b9aa;
  border-radius:5px;
  margin-top:.3rem;
  padding:.55rem .65rem;
}

.product dialog .button-group {
  justify-content:flex-end;
}

@media(max-width:890px) {
  .desk {
    grid-template-columns:185px minmax(0,1fr);
  }
  main.work {
    padding:26px 18px;
  }
  .shelf {
    padding:26px 12px;
  }
  .report-head {
    flex-wrap:wrap;
  }
  .purchase-summary {
    grid-template-columns:minmax(150px,1fr) minmax(0,1.75fr);
  }
}

@media(max-width:700px) {
  .desk {
    display:block;
  }
  .shelf {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:12px 16px;
  }
  .shelf .project-list {
    display:flex;
    flex-wrap:wrap;
    margin:.4rem 0;
  }
  .project-list button {
    width:auto;
    font-size:.8rem;
    padding:.35rem .52rem;
  }
  .shelf-hint:not(:empty) {
    margin:.35rem 0;
  }
  .handoff {
    margin-top:.5rem;
    padding-top:.5rem;
  }
  .shelf-title {
    justify-content:flex-start;
    gap:.8rem;
  }
  .product .workspace-nav {
    gap:1rem;
    overflow:auto;
    margin:1rem 0;
  }
  .work .button-group {
    gap:.35rem;
  }
  .product .report table {
    font-size:.84rem;
  }
  .purchase-summary {
    grid-template-columns:1fr;
  }
  .purchase-summary .metrics {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .purchase-summary .metric {
    border-top:0;
  }
  .purchase-summary .metric+.metric {
    border-left:1px solid var(--line);
  }
  .product .upload-panel .sectionhead {
    gap:.65rem;
  }
  .product .upload-panel .link {
    white-space:nowrap;
  }
  .product .actions {
    margin-top:.6rem;
  }
}

.history-entry {
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
}

.history-entry .history-list-item {
  min-width:0;
  border-top:0;
}

.history-entry>.link,.handoff .delete-project {
  color:#794731;
  font-size:.79rem;
}

.handoff .delete-project {
  display:block;
  margin-top:.4rem;
}
