:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #16221b;
  background: #f1f3ef;
  --ink: #16221b;
  --faint: #57635b;
  --line: #dbe2db;
  --green: #1a5137;
  --light: #eef6ef;
  --amber: #8b4614;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #258b58; outline-offset: 2px; }
a { color: var(--green); }
.top { border-bottom: 1px solid var(--line); background: #fff; padding-top: env(safe-area-inset-top, 0); }
.top-inner { max-width: 1250px; padding: 0 28px; min-height: 68px; margin: auto; display: flex; align-items: center; gap: 34px; }
.brand { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 1.28rem; font-weight: 760; }
.brand-icon { background: #1a5137; color: #fff; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; font-size: .95rem; }
nav { display: flex; gap: 6px; }
nav a { text-decoration: none; padding: 9px 13px; border-radius: 9px; color: var(--faint); font-size: .9rem; font-weight: 640; }
nav a[aria-current] { color: var(--green); background: var(--light); }
main { max-width: 1250px; margin: 0 auto; padding: 35px 28px 55px; }
.heading { margin: 0 0 26px; }
.heading h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.048em; line-height: 1.04; }
.heading p { margin: 0; color: var(--faint); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.workbench { display: grid; grid-template-columns: minmax(230px, 305px) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel h2 { font-size: 1.08rem; letter-spacing: -.02em; margin: 0 0 19px; }
.panel h3 { font-size: 1rem; margin: 0; }
.panel-head, .block-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.block-head { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 18px; }
.block-head select { max-width: min(65%, 253px); }
.drop { border: 1px dashed #a2baa7; border-radius: 12px; background: var(--light); text-align: center; display: grid; justify-items: center; gap: 9px; padding: 17px 10px 12px; }
.drop.dragging { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.plus { font-size: 1.55rem; color: var(--green); background: white; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; border-radius: 9px; padding: 9px 13px; min-height: 42px; border: 1px solid transparent; font-weight: 680; cursor: pointer; text-decoration: none; font-size: .92rem; }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: #123e2a; }
.secondary { color: var(--green); border-color: #c8d7cb; background: #f7faf7; }
.secondary:hover, .bare:hover { background: var(--light); }
.bare, .link { border: 0; background: transparent; color: var(--green); }
.bare { min-height: 34px; padding: 5px 9px; }
.link { cursor: pointer; padding: 6px 2px; font-size: .88rem; text-decoration: underline; }
button:disabled { opacity: .57; cursor: wait; }
.file-button { position: relative; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #258b58; outline-offset: 2px; }
.paste, .extras { margin-top: 15px; }
summary { cursor: pointer; color: var(--green); font-size: .9rem; font-weight: 650; padding: 8px 0; }
.paste textarea { min-height: 92px; margin: 8px 0; }
.small { color: var(--faint); font-size: .84rem; line-height: 1.4; }
.small:empty, .status:empty { display: none; }
.status { color: var(--green); line-height: 1.4; }
.status.error { color: #9c2e1b; }
.notice { padding: 11px 15px; border: 1px solid #e3d8b6; background: #fcf8ea; border-radius: 10px; margin-bottom: 16px; }
.sources { margin: 10px 0 0; padding: 0; list-style: none; }
.sources li { border-top: 1px solid var(--line); padding: 10px 0 3px; }
.source-top { display: flex; gap: 7px; justify-content: space-between; align-items: start; }
.source-top strong { overflow-wrap: anywhere; font-size: .87rem; }
.source-top button { margin-top: -8px; }
.source-text { font: inherit; color: var(--faint); white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; max-height: 240px; font-size: .83rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 5px; grid-template-rows: min-content 1fr; align-content: start; }
.field span { font-size: .84rem; font-weight: 680; }
.field.wide { grid-column: 1 / -1; }
input:not([type=checkbox]):not([type=file]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #cfd8d0; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); }
input[type=date] { min-width: 0; }
input::placeholder, textarea::placeholder { color: #6b776e; }
input.suggested { background: #f2f9f2 !important; border-color: #93b49b !important; }
.issue-bar { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 17px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .89rem; line-height: 1.3; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.issue { margin-top: 11px; }
.issue-bar .small { margin: 8px 0 0; }
.suggestions { padding: 11px 13px; margin-top: 15px; border: 1px solid #cddfcf; background: #f5faf5; border-radius: 10px; }
.suggestion-row { margin: 8px 0; overflow-wrap: anywhere; }
.suggestion-row p { margin: 0 0 4px; font-size: .88rem; }
.suggestion-row .choices { display: grid; gap: 5px; }
.suggestion-row .choice { text-align: left; justify-content: start; font-weight: 560; }
.conflict { color: var(--amber); }
.profile { max-width: 790px; }
.profile .button { margin-top: 16px; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; margin: 0 0 15px; }
.metrics div { background: #e5efe6; border: 1px solid #d2e1d4; border-radius: 13px; display: grid; gap: 5px; padding: 14px 16px; }
.metrics span { color: #41624b; font-size: .85rem; }
.metrics strong { font-size: 1.5rem; letter-spacing: -.025em; }
.filters { display: grid; grid-template-columns: minmax(230px, 2.25fr) repeat(4, minmax(100px, 1fr)); gap: 9px; }
.registry-rows { margin-top: 19px; }
.ride { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: minmax(180px, 1.8fr) minmax(130px, 1.05fr) minmax(100px, .75fr) minmax(185px, 1.1fr); gap: 12px; align-items: start; }
.ride:last-child { padding-bottom: 0; }
.ride--active { background: #f1f8f1; }
.ride > div { min-width: 0; overflow-wrap: anywhere; }
.ride p { margin: 3px 0; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.downloads { display: flex; flex-wrap: wrap; gap: 6px; align-items: start; }
.downloads .button { min-height: 36px; padding: 6px 10px; }
.downloads details { width: 100%; }
.downloads details .link { display: block; text-align: left; overflow-wrap: anywhere; }
.empty { text-align: center; color: var(--faint); padding: 26px 8px 21px; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 850px) {
  .workbench { grid-template-columns: minmax(200px, 235px) minmax(0, 1fr); }
  .panel { padding: 16px; }
  .filters { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .search { grid-column: 1 / -1; }
  .ride { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .top-inner { padding: 10px 13px 8px; align-items: start; flex-direction: column; gap: 6px; }
  nav { width: 100%; flex-wrap: wrap; }
  nav a { padding: 7px 9px; }
  main { padding: 21px 12px 32px; }
  .heading { margin-bottom: 17px; }
  .heading-row { align-items: start; }
  .heading-row > a { white-space: nowrap; }
  .workbench { grid-template-columns: 1fr; }
  .drop { padding-top: 13px; }
  .fields { gap: 10px; }
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metrics strong { font-size: 1.25rem; }
}
