/* Field Guide look: base styles come from https://pranavgudise.dev/kit/demo.css; this file adds the tracker's own parts. */
:root { --mark: #e3ecd9; }
[hidden] { display: none !important; }
.head h1 { margin: 24px 0 12px; }
.head .lead { max-width: 52em; margin: 0; color: var(--ink-2); font-size: 18px; }
h3 { font: 500 17px/1.4 var(--sans); margin: 24px 0 8px; }
code { background: rgb(27 26 23 / .05); padding: 1px 5px; border-radius: 4px; }
section[id] { scroll-margin-top: 16px; }

/* ---------- the workspace: queue on the left, the source document on the right ---------- */
.desk { margin-top: 24px; }
.deskbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.seg { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--sans); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.asof { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.asof input { font: 400 15px/1 var(--sans); color: var(--ink); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 0; border: 1px solid var(--rule); border-radius: 16px; background: #fbfaf6; overflow: hidden; }
.stat { padding: 14px 18px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat .n { font: 400 30px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start; }
.work { min-width: 0; }
.work h2 { margin: 40px 0 16px; }

.banner { font-size: 14px; color: var(--ink-2); background: var(--tint-2); border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; max-width: 52em; }
.group-title { font: 400 20px/1.3 var(--serif); color: var(--ink); margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.group-title:first-of-type { margin-top: 18px; }
.card { margin: 0 0 14px; background: #fbfaf6; }
.card.verified { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.card.rejected { border-color: var(--ink); border-style: dashed; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.card h3 { margin: 0; font: 400 21px/1.25 var(--serif); }
.meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 24px; font: 500 12px/1 var(--mono); letter-spacing: .03em; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--green-wash); border-color: var(--green-wash); color: var(--green); }
.chip.warn { border: 1px dashed var(--ink); color: var(--ink); }
.chip.bad { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fields { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.field { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 12px 14px; background: #fff; border: 1px solid var(--rule-soft); border-radius: 12px; }
.field input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 3px 0 0; accent-color: var(--green); }
.field .k { font: 400 12.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-2); }
.field .v { margin-top: 2px; }
.dates { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.quote { margin: 8px 0 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--green); font-size: 14px; }
.quote .from { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 500; }
.auto::before { content: ""; width: 9px; height: 5px; border-left: 1.35px solid currentColor; border-bottom: 1.35px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
button.link, .link { font: inherit; font-size: 13px; background: none; border: none; color: var(--green); cursor: pointer; padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.btn { min-height: 40px; padding: 0 18px; font-size: 14px; background: var(--green); border-color: var(--green); color: #fff; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--ink); border: 1px dashed var(--ink); }
.text { font-size: 14px; min-width: 0; flex: 1 1 200px; background: #fff; }
.signoff { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.table-wrap { overflow-x: auto; }
.empty { color: var(--ink-2); padding: 16px 18px; border: 1px dashed var(--rule); border-radius: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 6px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: #fbfaf6; }
.toolbar label { font-weight: 500; font-size: 14px; }
.toolbar .spacer { flex: 1; }

/* the source, styled as the document itself */
.source { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; border-left: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgb(27 26 23 / .45); display: none; flex-direction: column; z-index: 10; }
.source.open { display: flex; }
.source-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.source-title { font: 400 20px/1.25 var(--serif); }
.source-body { position: relative; overflow: auto; padding: 20px 24px; white-space: pre-wrap; font-size: 14px; line-height: 1.65; }
.source-body mark { background: var(--mark); color: inherit; padding: 1px 0; border-radius: 2px; box-shadow: 0 0 0 2px var(--mark); }
.source-body .note { color: var(--ink-2); font-style: italic; }
.source-empty { white-space: normal; color: var(--ink-2); margin: 0; }

@media (min-width: 1100px) {
  .panes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .source { position: sticky; top: 16px; bottom: auto; width: auto; height: calc(100vh - 32px); display: flex; border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 1px 0 rgb(27 26 23 / .04), 0 24px 48px -32px rgb(27 26 23 / .35); z-index: auto; overflow: hidden; }
  #source-close { display: none; }
}

/* ---------- below the tool ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; margin-top: 16px; }
.side { position: sticky; top: 24px; margin-top: 64px; display: grid; gap: 22px; font-size: 14px; color: var(--ink-2); }
.side h3 { margin: 0 0 6px; font: 500 13px/1.3 var(--sans); color: var(--ink); }
.side p { margin: 0; }
.side nav a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
.side nav a:hover { color: var(--ink); }
.side pre { font-size: 12px; margin: 6px 0 0; }
.note { color: var(--ink-2); font-size: 15px; max-width: 44em; }
.point { font-size: 17px; max-width: 42em; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.step { border: 1px solid var(--rule); border-radius: 16px; background: #fbfaf6; padding: 18px 20px; min-width: 0; }
.step h3 { margin: 0 0 6px; font: 400 21px/1.25 var(--serif); display: flex; gap: 10px; align-items: baseline; }
.step h3 span { font: 400 15px/1 var(--serif); color: var(--green); min-width: 12px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* deadlines ahead timeline */
.chart { border: 1px solid var(--rule); border-radius: 16px; background: #fbfaf6; padding: 16px 24px 16px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 16em) minmax(0, 1fr); column-gap: 20px; align-items: center; min-height: 52px; border-top: 1px solid var(--rule-soft); }
.tl-row.tl-head { min-height: 26px; border-top: 0; }
.tl-lab { font-size: 14px; line-height: 1.3; padding: 8px 0; min-width: 0; }
.tl-lab b { display: block; font-weight: 500; }
.tl-lab span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.tl-track { position: relative; height: 100%; min-height: 26px; background: linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat; }
.tl-head .tl-track { background: none; }
.tl-axis span { position: absolute; bottom: 4px; transform: translateX(-50%); font: 400 11.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.tl-axis span::after { content: ""; position: absolute; left: 50%; top: 16px; height: 6px; width: 1px; background: var(--rule); }
.tl-win { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 3px; background: rgb(27 26 23 / .06); }
.tl-win.verified { background: var(--green-wash); }
.tl-win.rejected { background: none; }
.tl-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fbfaf6; border: 1.5px solid var(--ink); }
.tl-dot.verified { background: var(--green); border-color: var(--green); }
.tl-dot.rejected { border-style: dashed; border-color: var(--ink-2); opacity: .6; }
.tl-row.rejected .tl-lab { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.tl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: center; border-top: 1px solid var(--rule-soft); padding-top: 12px; margin-top: 2px; }
.tl-foot p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .lg { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); }
.legend .lg.verified { background: var(--green); border-color: var(--green); }
.legend .lg.rejected { border-style: dashed; border-color: var(--ink-2); }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; margin-top: 48px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .tl-row { grid-template-columns: minmax(0, 1fr); }
  .tl-row.tl-head .tl-lab { display: none; }
  .tl-lab { padding: 10px 0 0; }
  .tl-track { min-height: 30px; }
  .tl-axis span.odd { display: none; }
}
@media (max-width: 640px) {
  .card { padding: 16px; }
  .chart { padding: 14px 16px; }
  .stat { padding: 12px 14px; }
  .stat .n { font-size: 24px; }
  .field { padding: 10px 10px; grid-template-columns: 24px 1fr; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}
