:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #19312e;
  background: #f3f5f3;
  font-size: 15px;
  --green: #205b4b;
  --line: #d8e1dd;
  --muted: #5b6d66;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #205b4b;
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #c7d4cd;
  border-radius: 7px;
  background: white;
  color: #24483d;
  padding: 10px 14px;
  min-height: 44px;
}
button:hover {
  background: #eaf1ed;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #d89527;
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #174737;
}
header {
  min-height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-decoration: none;
}
.brand span {
  display: block;
  letter-spacing: 0;
  font-size: 19px;
  margin-top: 3px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
}
main {
  padding: 28px;
  max-width: 1920px;
  margin: auto;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #60786c;
  margin: 0 0 8px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.025em;
  margin: 0 0 9px;
}
h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  line-height: 1.55;
  margin: 8px 0;
}
.muted,
.footnote {
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login {
  max-width: 500px;
  margin: 35px auto;
  padding: 28px;
}
.login form {
  display: grid;
  gap: 18px;
}
label {
  font-size: 12px;
  font-weight: 650;
  display: grid;
  gap: 7px;
}
input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bdcec4;
  background: white;
  border-radius: 6px;
  min-height: 44px;
}
.freshness {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #e8efe9;
  border: 1px solid #cfded3;
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 13px;
}
.freshness p {
  margin: 4px 0 0;
}
.freshness button {
  margin-left: auto;
  flex-shrink: 0;
}
.status-dot {
  margin-top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9f6f25;
  flex-shrink: 0;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
}
.search {
  flex: 1;
}
.status-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.ownership-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 14px;
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}
.ownership-metrics span {
  color: var(--muted);
}
.outcome {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.outcome pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.boundary-packet, .value-receipt, .fractional-receipt {
  overflow-wrap: anywhere;
}
.boundary-views {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.boundary-views figure {
  margin: 0;
  min-width: 0;
}
.boundary-views img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.boundary-views figcaption {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.record-warning {
  color: #9b381f;
  font-weight: 700;
}
.status-filters button {
  font-size: 12px;
  border-radius: 22px;
  min-height: 40px;
}
.status-filters button[aria-pressed='true'] {
  background: #1c4e40;
  color: white;
  border-color: #1c4e40;
}
.count {
  margin-left: 8px;
  font-weight: 750;
}
.desk {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.queue {
  overflow: hidden;
}
.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}
.queue-heading h2 {
  font-size: 15px;
  margin: 0;
}
.queue-heading span {
  color: var(--muted);
  font-size: 12px;
}
#queue {
  max-height: calc(100vh - 430px);
  min-height: 280px;
  overflow: auto;
}
.deed-row {
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid #e6ebe7;
  border-radius: 0;
  padding: 16px;
  display: block;
  background: white;
}
.deed-row[aria-current='true'] {
  background: #eaf3ed;
  box-shadow: inset 4px 0 #25664e;
}
.row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.row-date {
  color: var(--muted);
  font-size: 11px;
}
.row-parties {
  font-size: 12px;
  line-height: 1.45;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.row-parcels {
  font-size: 11px;
  margin-top: 9px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
  background: #eef0f1;
  color: #53616a;
}
.badge.needs_review {
  background: #fff0d7;
  color: #88500e;
}
.badge.shadow_recorded {
  background: #e3f0e8;
  color: #2b694e;
}
.badge.partially_processed {
  background: #fff0d7;
  color: #88500e;
}
.badge.eligible {
  background: #e9edf7;
  color: #475e85;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.pagination button {
  font-size: 11px;
  padding: 7px;
  min-height: 40px;
}
.pagination span {
  font-size: 11px;
}
.detail {
  padding: 22px;
  min-width: 0;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.detail-top h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
  margin: 6px 0;
}
.detail-top .muted {
  font-size: 12px;
}
.step {
  border-left: 3px solid #c89036;
  background: #fff8e9;
  padding: 13px 15px;
  margin: 20px 0;
  font-size: 13px;
}
.step p {
  margin: 5px 0;
}
.step a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 650;
}
.context {
  font-size: 11px;
  color: #627069;
  background: #f0f4f1;
  border-radius: 5px;
  padding: 8px 10px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 1fr);
  gap: 22px;
}
.document {
  min-width: 0;
}
.document-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.document select {
  min-width: 0;
  max-width: 65%;
  padding: 8px;
}
.document iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: 1px solid var(--line);
  background: #f1f1ed;
  border-radius: 5px;
}
.facts section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 18px;
}
.facts dl {
  margin: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 4px;
}
.facts dd {
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.legal {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.6;
  max-height: 240px;
  overflow: auto;
}
.parcel {
  padding: 12px;
  background: #f5f7f5;
  border: 1px solid #dde5df;
  border-radius: 7px;
  margin: 9px 0;
}
.parcel strong {
  font-size: 14px;
}
.parcel p {
  font-size: 11px;
}
.parcel nav {
  font-size: 12px;
  gap: 14px;
  margin-top: 9px;
}
.possible {
  border-style: dashed;
}
.empty {
  padding: 36px 22px;
  color: var(--muted);
}
details {
  margin: 15px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  padding: 9px 0;
  font-weight: 650;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f3f5f3;
  padding: 12px;
}
.detail-nav {
  display: flex;
  gap: 6px;
}
.detail-nav button {
  font-size: 12px;
  padding: 7px 10px;
}
.mobile-tabs {
  display: none;
}
.footnote {
  font-size: 11px;
  max-width: 1000px;
  margin-top: 20px;
}
#error,
#login-error {
  color: #a02a2a;
}
#error {
  padding: 15px;
  background: #fff0ed;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .desk {
    grid-template-columns: 380px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .review-columns {
    grid-template-columns: 1fr;
  }
  .document iframe {
    height: 450px;
  }
  .facts {
    grid-row: 1;
  }
}
@media (max-width: 760px) {
  header {
    padding: 14px 16px;
    align-items: start;
  }
  nav {
    font-size: 11px;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .brand {
    font-size: 10px;
    flex-shrink: 0;
  }
  .brand span {
    font-size: 16px;
  }
  main {
    padding: 20px 12px;
  }
  h1 {
    font-size: 25px;
  }
  .intro {
    align-items: start;
  }
  .intro #reviewer {
    font-size: 11px;
    margin-left: 12px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .search {
    grid-column: 1/-1;
  }
  .freshness {
    font-size: 12px;
    padding: 12px;
  }
  .desk {
    grid-template-columns: 1fr;
  }
  .detail {
    padding: 16px;
  }
  .queue #queue {
    max-height: 360px;
  }
  .detail-top {
    align-items: start;
  }
  .detail-top h2 {
    font-size: 23px;
  }
  .mobile-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0;
  }
  .mobile-tabs button[aria-pressed='true'] {
    background: var(--green);
    color: white;
  }
  .review-columns {
    display: block;
  }
  .review-columns[data-tab='facts'] .document {
    display: none;
  }
  .review-columns[data-tab='document'] .facts {
    display: none;
  }
  .document iframe {
    height: 65vh;
  }
  .detail-nav button {
    font-size: 11px;
    padding: 7px;
  }
  .footnote {
    font-size: 11px;
  }
  .status-filters {
    gap: 6px;
  }
  .status-filters button {
    font-size: 11px;
    padding: 8px 10px;
  }
}

.freshness.attention {
  background: #fff3de;
  border-color: #e3c285;
}
.freshness.attention .status-dot {
  background: #ae6020;
}
